//
// sub_1006372D4 from 0x1006372d4 to 0x10063739c (200 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009e09c8
//
// 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 11:10:31 +0000
//
__int64 __fastcall sub_1006372D4(__int64 *a1)
{
__int64 v1; // x19
unsigned int *v2; // x8
unsigned int v3; // w9
__int64 v4; // x8
__int64 i; // x20
__int64 result; // x0
__int64 v7; // x8
v1 = *a1;
*(_DWORD *)(v1 + 536) = 1065353216;
*(_DWORD *)(v1 + 544) = 1065353216;
*(_DWORD *)(v1 + 600) = -1;
*(_BYTE *)(v1 + 604) = 0;
*(_QWORD *)(v1 + 552) = 0x3F800000FFFFFFFFLL;
v2 = (unsigned int *)(v1 + 100);
do
v3 = __ldaxr(v2);
while ( __stlxr(v3 | 0x10, v2) );
v4 = *(_QWORD *)(v1 + 232);
if ( *(int *)(v4 + 96) >= 1 )
{
for ( i = 0; i < *(int *)(v4 + 96); ++i )
{
v7 = *(_QWORD *)(*(_QWORD *)(v4 + 104) + 8 * i);
if ( *(_DWORD *)v7 )
{
if ( *(_DWORD *)v7 == 1 )
{
result = sub_1005CDBC8(v1, i);
if ( (_DWORD)result )
return result;
}
}
else
{
result = sub_1005CDB48(v1, i, *(float *)(v7 + 56));
if ( (_DWORD)result )
return result;
}
v4 = *(_QWORD *)(v1 + 232);
}
}
return 0;
}