PA_
prefixed functions seem to be from palibds, which is a Nintendo DS homebrew development library.
DS being a constrained device it is logical that whoever wrote this code packed multiple byte-sized info into a bigger 16-bit short and using bit shifting to extract a specific byte
Is the Pic AI generated? Lol