//
// sub_84FEF4 from 0x84fef4 to 0x84ff20 (44 bytes)
//
// 1 xrefs:
// > sub_84D530 @ 0x84d5b6
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:02:30 +0000
//
unsigned int __fastcall sub_84FEF4(unsigned int a1, int a2, _BYTE *a3)
{
char v3; // r3
char v4; // r4
unsigned int result; // r0
v3 = BYTE2(a1);
v4 = BYTE1(a1);
*a3 = a1;
a3[4] = a2;
result = HIBYTE(a1);
a3[1] = v4;
a3[2] = v3;
a3[5] = BYTE1(a2);
a3[3] = result;
a3[6] = BYTE2(a2);
a3[7] = HIBYTE(a2);
return result;
}