//
// sub_5A494 from 0x5a494 to 0x5a4dc (72 bytes)
//
// 4 xrefs:
// > sub_59CF0 @ 0x59d10
// > sub_7C19C @ 0x7c360
// > sub_7C19C @ 0x7c5c0
// > sub_7C19C @ 0x7c618
//
// 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_5A494(__int64 a1, _QWORD *a2)
{
_QWORD *v2; // x20
v2 = (_QWORD *)(a1 + 472);
if ( ((unsigned int)(***(_QWORD *(__fastcall ****)(_QWORD *__return_ptr, _QWORD))(a1 + 472))(
*(_QWORD **)(a1 + 472),
*(_QWORD *)(a1 + 472))
& 1) != 0 )
v2 = (_QWORD *)(*v2 + 192LL);
*a2 = *v2;
return 0;
}