//
// sub_1004BA680 from 0x1004ba680 to 0x1004ba700 (128 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_1004BA680(__int64 a1)
{
__int64 v2; // x20
__int64 v3; // x21
__int64 (__fastcall *v4)(__int64, __int64, _QWORD); // x22
__int64 v5; // x0
__int64 result; // x0
v2 = a1 + 1056;
v3 = a1 + 8;
while ( (*(_DWORD *)(a1 + 1100) - *(_DWORD *)(a1 + 1096)) * *(_DWORD *)(a1 + 1080) <= (*(_DWORD *)(a1 + 1092) - 1)
* *(_DWORD *)(a1 + 1068) )
{
v4 = *(__int64 (__fastcall **)(__int64, __int64, _QWORD))(a1 + 16);
v5 = sub_1004B86F8(v2);
result = v4(v3, v5, *(unsigned int *)(a1 + 1064));
if ( (_DWORD)result )
return result;
}
return 0;
}