//
// sub_F01BC from 0xf01bc to 0xf0224 (104 bytes)
//
// 3 xrefs:
// > sub_F05B8 @ 0xf1020
// > sub_F2414 @ 0xf27a0
// > sub_F2414 @ 0xf27bc
//
// 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_F01BC(__int64 a1, __int64 a2, _QWORD *a3)
{
__int64 v3; // x9
unsigned int (__fastcall *v4)(__int64, _QWORD *, _QWORD); // x8
__int64 result; // x0
__int64 v8; // x8
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_F2D5C();
if ( (_DWORD)result )
{
v8 = *a3 - (unsigned int)sub_F0224(a2);
*a3 = v8;
return 1;
}
return result;
}