//
// sub_8A7B4 from 0x8a7b4 to 0x8a818 (100 bytes)
//
// 1 xrefs:
// > sub_8B140 @ 0x8b184
//
// 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 12:14:11 +0000
//
__int64 __fastcall sub_8A7B4(__int64 a1)
{
__int64 v1; // x19
unsigned int v2; // w20
int v3; // w8
_QWORD *v4; // x9
_QWORD v6[2]; // [xsp+0h] [xbp-30h] BYREF
v6[0] = a1;
sub_8B50C(v6);
v2 = 0;
v3 = *(_DWORD *)(v1 + 32) - 1;
*(_DWORD *)(v1 + 32) = v3;
if ( !v3 )
{
v4 = *(_QWORD **)(v1 + 8);
v2 = 1;
*v4 = *(_QWORD *)v1;
*(_QWORD *)(*(_QWORD *)v1 + 8LL) = v4;
*(_QWORD *)v1 = v1;
*(_QWORD *)(v1 + 8) = v1;
}
sub_51F94((__int64)v6);
return v2;
}