//
// sub_100632338 from 0x100632338 to 0x1006323f0 (184 bytes)
//
// 1 xrefs:
// > sub_10063275C @ 0x100632760
//
// 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:28 +0000
//
__int64 __fastcall sub_100632338(__int64 a1)
{
__int64 v2; // x8
__int64 v3; // x20
__int64 result; // x0
__int64 v5; // x9
memset_pattern16((void *)(a1 + 536), &unk_100770E30, 0x80u);
*(_DWORD *)(a1 + 664) = *(_DWORD *)(*(_QWORD *)(a1 + 168) + 1744LL);
v2 = *(_QWORD *)(a1 + 232);
if ( *(int *)(v2 + 96) >= 1 )
{
v3 = 0;
while ( 1 )
{
v5 = *(_QWORD *)(*(_QWORD *)(v2 + 104) + 8 * v3);
if ( *(_DWORD *)v5 == 2 )
break;
if ( !*(_DWORD *)v5 )
{
result = sub_1005CDB48(a1, v3, *(float *)(v5 + 56));
if ( (_DWORD)result )
return result;
goto LABEL_8;
}
LABEL_9:
if ( ++v3 >= *(int *)(v2 + 96) )
return 0;
}
result = sub_1005CDC30(a1, v3);
if ( (_DWORD)result )
return result;
LABEL_8:
v2 = *(_QWORD *)(a1 + 232);
goto LABEL_9;
}
return 0;
}