//
// sub_1006C650C from 0x1006c650c to 0x1006c65f0 (228 bytes)
//
// 1 xrefs:
// > sub_10070EF78 @ 0x10070efc0
//
// 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:12:18 +0000
//
__int64 __fastcall sub_1006C650C(unsigned int *a1, _BYTE *a2, __int64 a3, int a4)
{
__int64 result; // x0
unsigned int v6; // w8
unsigned int v7; // w8
unsigned int v8; // [xsp+0h] [xbp-20h] BYREF
unsigned int v9; // [xsp+4h] [xbp-1Ch]
v8 = _byteswap_ulong(*a1);
v9 = _byteswap_ulong(a1[1]);
if ( a4 )
result = sub_1006C65F0(&v8, a3);
else
result = sub_1006C6A30(&v8, a3);
v6 = v8;
*a2 = HIBYTE(v8);
a2[1] = BYTE2(v6);
a2[2] = BYTE1(v6);
a2[3] = v6;
v7 = v9;
a2[4] = HIBYTE(v9);
a2[5] = BYTE2(v7);
a2[6] = BYTE1(v7);
a2[7] = v7;
return result;
}