ASX ends lower on miners; BHP slumps, 4D Medical dives – AFR