//
// sub_1004E817C from 0x1004e817c to 0x1004e81f4 (120 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
//
bool __fastcall sub_1004E817C(__int64 a1, __int64 a2, _QWORD *a3)
{
__int64 v3; // x9
unsigned int (__fastcall *v4)(__int64, _QWORD *, _QWORD); // x8
_BOOL8 result; // x0
v3 = *(_QWORD *)(a2 + 8);
v4 = *(unsigned int (__fastcall **)(__int64, _QWORD *, _QWORD))(v3 + 16);
if ( !v4 || v4(a2, a3, *(_QWORD *)(v3 + 104)) )
return 0;
result = sub_10042ACB0(*(_QWORD *)(*(_QWORD *)(a2 + 8) + 120LL));
if ( result )
{
*a3 -= (unsigned int)sub_10042ACD4(*(_DWORD **)(*(_QWORD *)(a2 + 8) + 120LL)) >> 3;
return 1;
}
return result;
}