//
// sub_100488A3C from 0x100488a3c to 0x100488aac (112 bytes)
//
// 1 xrefs:
// > ??> @ 0x100828060
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall sub_100488A3C(__int64 a1)
{
__int64 v2; // x0
void (*v3)(void); // x8
__int64 (*v4)(void); // x8
__int64 result; // x0
v2 = *(_QWORD *)(a1 + 792);
if ( !v2 )
return sub_1004A5E18(a1);
v3 = *(void (**)(void))(v2 + 264);
if ( v3 && (*(_BYTE *)(v2 + 45) & 2) != 0 )
{
v3();
v2 = *(_QWORD *)(a1 + 792);
*(_DWORD *)(v2 + 44) &= ~0x200u;
}
v4 = *(__int64 (**)(void))(v2 + 88);
if ( !v4 )
return sub_1004A5E18(a1);
result = v4();
if ( !(_DWORD)result )
return sub_1004A5E18(a1);
return result;
}