//
// sub_537A4 from 0x537a4 to 0x5382c (136 bytes)
//
// 1 xrefs:
// > ??> @ 0x10c270
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:13:48 +0000
//
__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;
}