//
// sub_1006543A4 from 0x1006543a4 to 0x100654410 (108 bytes)
//
// 2 xrefs:
// > sub_1006537B8 @ 0x100653f04
// > sub_1006537B8 @ 0x10065398c
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 11:10:51 +0000
//
__int64 __fastcall sub_1006543A4(__int64 result, __int64 a2)
{
__int64 i; // x8
_BYTE *v3; // x11
__int64 v4; // x9
for ( i = 0; i != 64; i += 8 )
{
v3 = (_BYTE *)(a2 + i);
*v3 = *(_BYTE *)(result + i + 7);
v3[1] = *(_WORD *)(result + i + 6);
v3[2] = (unsigned __int16)WORD2(*(_QWORD *)(result + i)) >> 8;
v3[3] = *(_DWORD *)(result + i + 4);
v3[4] = BYTE3(*(_QWORD *)(result + i));
v3[5] = BYTE2(*(_QWORD *)(result + i));
v3[6] = BYTE1(*(_QWORD *)(result + i));
v4 = *(_QWORD *)(result + i);
v3[7] = v4;
}
return result;
}