//
// sub_5FFF74 from 0x5fff74 to 0x5fffa6 (50 bytes)
//
// 5 xrefs:
// > sub_600D80 @ 0x600e10
// > sub_601420 @ 0x60143e
// > sub_6049F4 @ 0x604b18
// > sub_6049F4 @ 0x604c02
// > sub_6049F4 @ 0x604cb2
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
int __fastcall sub_5FFF74(int a1, unsigned int a2)
{
int result; // r0
result = a1 + 4;
*(_BYTE *)(result - 4) = (a2 >> 18) | 0xF0;
*(_BYTE *)(result - 3) = (a2 >> 12) & 0x3F | 0x80;
*(_BYTE *)(result - 2) = (a2 >> 6) & 0x3F | 0x80;
*(_BYTE *)(result - 1) = a2 & 0x3F | 0x80;
return result;
}