//
// sub_5736C from 0x5736c to 0x57424 (184 bytes)
//
// 2 xrefs:
// > ??> @ 0x10c578
// > ??> @ 0x10c7a0
//
// 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:50 +0000
//
__int64 __fastcall sub_5736C(__int64 a1, __int64 a2, unsigned int a3)
{
__int64 v6; // x22
__int64 v7; // x23
__int64 result; // x0
float v9; // s0
int v11; // w8
if ( (a3 & 0x80000000) != 0 )
return 31;
if ( a2 )
{
v6 = 0;
v7 = 12LL * a3;
while ( v7 != v6 )
{
result = sub_56FC0((_DWORD *)(a2 + v6));
if ( (_DWORD)result )
return result;
if ( !v6 || *(float *)(a2 + v6) > *(float *)(a2 + v6 - 12) )
{
v9 = *(float *)(a2 + v6 + 4);
v6 += 12;
if ( v9 >= 0.0 && v9 <= 1.0 )
continue;
}
return 31;
}
}
v11 = *(_DWORD *)(a1 + 72);
*(_QWORD *)(a1 + 224) = a2;
*(_DWORD *)(a1 + 232) = a3;
*(_DWORD *)(a1 + 72) = v11 | 4;
return 0;
}