//
// sub_10054EB6C from 0x10054eb6c to 0x10054ebf0 (132 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009aa370
//
// 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:07:52 +0000
//
__int64 __fastcall sub_10054EB6C(_QWORD *a1, __int64 a2)
{
__int64 v2; // x21
__int64 v4; // x19
__int64 v5; // x9
__int64 v6; // x21
if ( !a2 )
return 31;
v2 = a2;
v4 = a1[8];
sub_1005DBDD8(v4);
v5 = a1[6];
*(_QWORD *)(v2 + 8) = a1 + 5;
*(_QWORD *)(v2 + 16) = v5;
v2 += 8;
a1[6] = v2;
**(_QWORD **)(v2 + 8) = v2;
v6 = 28;
if ( (_QWORD *)a1[2] == a1 + 2 )
{
if ( (_QWORD *)a1[3] == a1 + 2 )
v6 = 0;
else
v6 = 28;
}
sub_1005DBE08(v4);
return v6;
}