//
// sub_100636D38 from 0x100636d38 to 0x100636e00 (200 bytes)
//
// 0 xrefs:
//
// 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_100636D38(__int64 a1)
{
unsigned int *v2; // x8
unsigned int v3; // w9
__int64 v4; // x8
__int64 i; // x20
__int64 result; // x0
__int64 v7; // x8
*(_DWORD *)(a1 + 536) = 1065353216;
*(_DWORD *)(a1 + 544) = 1065353216;
*(_DWORD *)(a1 + 600) = -1;
*(_BYTE *)(a1 + 604) = 0;
v2 = (unsigned int *)(a1 + 100);
*(_QWORD *)(a1 + 552) = 0x3F800000FFFFFFFFLL;
do
v3 = __ldaxr(v2);
while ( __stlxr(v3 | 0x10, v2) );
v4 = *(_QWORD *)(a1 + 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(a1, i);
if ( (_DWORD)result )
return result;
}
}
else
{
result = sub_1005CDB48(a1, i, *(float *)(v7 + 56));
if ( (_DWORD)result )
return result;
}
v4 = *(_QWORD *)(a1 + 232);
}
}
return 0;
}