You can look more into this in this video by Kaze Emanuar, famous N64 romhacker.
https://www.youtube.com/watch?v=xwls5SpNn1s&t=427s