//
// sub_1006304B0 from 0x1006304b0 to 0x100630514 (100 bytes)
//
// 3 xrefs:
// > ??> @ 0x1009ab168
// > ??> @ 0x1009ab390
// > ??> @ 0x1009adc48
//
// 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:27 +0000
//
__int64 __fastcall sub_1006304B0(_DWORD *a1, _DWORD *a2)
{
__int64 result; // x0
_BYTE v5[4]; // [xsp+Ch] [xbp-14h] BYREF
result = (*(__int64 (__fastcall **)(_DWORD *, _BYTE *))(*(_QWORD *)a1 + 152LL))(a1, v5);
if ( !(_DWORD)result )
{
if ( (v5[0] & 0x10) != 0 )
{
if ( a2 )
{
*a2 = a1[59];
return 0;
}
else
{
return 31;
}
}
else
{
return 40;
}
}
return result;
}