Emergent Halperin–Saslow mode, gauge glass and quenched disorders in quantum Ising magnet TmMgGaO4