//
// sub_537A4 from 0x537a4 to 0x5382c (136 bytes)
//
// 1 xrefs:
// > ??> @ 0x10c270
//
// 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_537A4(__int64 a1, long double a2)
{
__int64 result; // x0
__int64 v5; // x8
__int64 v6; // x21
if ( (*(_BYTE *)(a1 + 60) & 0x80) == 0 )
{
result = sub_53590(a1, *(float *)&a2);
if ( (_DWORD)result )
return result;
if ( *(_QWORD *)(a1 + 768) )
{
v5 = 0;
while ( 1 )
{
v6 = v5 + 24;
if ( v5 == 96 )
break;
result = sub_53484(a1, *(_QWORD *)(a1 + 8) + v5 + 73656, a2);
v5 = v6;
if ( (_DWORD)result )
return result;
}
}
}
return 0;
}