//
// sub_100600804 from 0x100600804 to 0x1006009f4 (496 bytes)
//
// 5 xrefs:
// > sub_100600AD8 @ 0x100601098
// > sub_1006010CC @ 0x1006011ec
// > sub_100611F60 @ 0x100611fd0
// > sub_100613A64 @ 0x100613bac
// > sub_1006156D0 @ 0x1006159fc
//
// 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:09:57 +0000
//
double __fastcall sub_100600804(__int64 a1, __int64 a2)
{
__int64 v3; // x21
int v5; // w8
__int64 i; // x22
__int64 v7; // x1
int v8; // w8
__int64 v9; // x22
__int64 v10; // x23
int v11; // w8
__int64 v12; // x22
__int64 v13; // x23
int v14; // w8
__int64 v15; // x22
__int64 v16; // x23
__int64 v17; // x22
__int64 v18; // x23
__int64 v19; // x1
__int64 v20; // x8
__int64 v21; // x1
v3 = *(_QWORD *)(a2 + 32);
if ( v3 )
{
v5 = *(_DWORD *)(v3 + 8);
if ( v5 >= 1 )
{
for ( i = 0; i < v5; ++i )
{
v7 = *(_QWORD *)(v3 + 32 + 8 * i);
if ( v7 )
{
sub_10059EEE8(a1, v7);
v5 = *(_DWORD *)(v3 + 8);
}
}
}
v8 = *(_DWORD *)(v3 + 12);
if ( v8 >= 1 )
{
v9 = 0;
v10 = v3 + 544;
do
{
if ( *(_QWORD *)(v10 + 8 * v9 + 256) )
{
(*((void (__fastcall **)(__int64))*(&off_1009AC450 + *(int *)(v10 + 4 * v9)) + 2))(a1);
v8 = *(_DWORD *)(v3 + 12);
}
++v9;
}
while ( v9 < v8 );
}
v11 = *(_DWORD *)(v3 + 16);
if ( v11 >= 1 )
{
v12 = 0;
v13 = v3 + 1312;
do
{
if ( *(_QWORD *)(v13 + 8 * v12 + 256) )
{
(*(void (__fastcall **)(__int64))(qword_1009AC428[*(int *)(v13 + 4 * v12)] + 24LL))(a1);
v11 = *(_DWORD *)(v3 + 16);
}
++v12;
}
while ( v12 < v11 );
}
v14 = *(_DWORD *)(v3 + 20);
if ( v14 >= 1 )
{
v15 = 0;
v16 = v3 + 2080;
do
{
if ( *(_QWORD *)(v16 + 8 * v15 + 256) )
{
(*((void (__fastcall **)(__int64))*(&off_1009AC438 + *(int *)(v16 + 4 * v15)) + 3))(a1);
v14 = *(_DWORD *)(v3 + 20);
}
++v15;
}
while ( v15 < v14 );
}
if ( *(int *)(v3 + 24) >= 1 )
{
v17 = 0;
v18 = 0;
do
{
v19 = *(_QWORD *)(v3 + 2848 + 8 * v18);
if ( v19 )
sub_10060D1BC(a1, v19);
v20 = *(_QWORD *)(v3 + 4896);
if ( v20 )
sub_10060D228(a1, v20 + v17);
++v18;
v17 += 72;
}
while ( v18 < *(int *)(v3 + 24) );
}
v21 = *(_QWORD *)(v3 + 4896);
if ( v21 )
sub_10059EEE8(a1, v21);
sub_10059EEE8(a1, v3);
}
*(_QWORD *)(a2 + 32) = 0;
*(_OWORD *)a2 = 0u;
*(_OWORD *)(a2 + 16) = 0u;
return 0.0;
}