//
// sub_53B14 from 0x53b14 to 0x53b84 (112 bytes)
//
// 1 xrefs:
// > ??> @ 0x10c2a8
//
// 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_53B14(_QWORD *a1, _DWORD *a2)
{
_QWORD *v2; // x8
__int64 v3; // x9
__int64 result; // x0
if ( !a2 )
return 31;
v2 = (_QWORD *)a1[93];
if ( v2 || (v2 = (_QWORD *)a1[92]) != nullptr )
{
LABEL_4:
v3 = 612;
if ( *((_DWORD *)v2 + 154) <= *((_DWORD *)v2 + 155) )
v3 = 608;
*a2 = *(_DWORD *)((char *)v2 + v3);
return 0;
}
if ( a1[83] )
{
v2 = a1 + 14;
goto LABEL_4;
}
result = ((__int64 (*)(void))loc_5262C)();
if ( !(_DWORD)result )
return 0;
return result;
}