//
// sub_1004A6A50 from 0x1004a6a50 to 0x1004a6a84 (52 bytes)
//
// 0 xrefs:
//
// 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_1004A6A50(__int64 a1)
{
__int64 v1; // x8
__int64 v2; // x8
if ( *(_WORD *)(a1 + 416) != 1 || (v1 = *(_QWORD *)(*(_QWORD *)(a1 + 120) + 16LL), (*(_BYTE *)(v1 + 124) & 4) != 0) )
v2 = 0;
else
v2 = *(_QWORD *)(v1 + 88);
*(_QWORD *)(a1 + 112) = v2;
return 0;
}