//
// sub_10000FB80 from 0x10000fb80 to 0x10000fc04 (132 bytes)
//
// 1 xrefs:
// > sub_10000F854 @ 0x10000fa10
//
// 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 10:57:15 +0000
//
__int64 __fastcall sub_10000FB80(__int64 a1, __int64 a2)
{
__int64 v3; // x20
__int64 v4; // x0
unsigned int *v5; // x8
__int64 v6; // x9
unsigned __int64 v7; // x20
_QWORD *v8; // x21
if ( a2 )
{
v3 = a2;
do
{
sub_1002E74E0(*(_QWORD *)(a1 + 1000), v3);
v3 = *(_QWORD *)(v3 + 64);
}
while ( v3 );
}
v4 = *(_QWORD *)(a1 + 1000);
if ( v4 )
{
v5 = *(unsigned int **)(v4 + 56);
v6 = *v5;
if ( (_DWORD)v6 )
{
v7 = *((_QWORD *)v5 + 2);
v8 = (_QWORD *)(v7 + 8 * v6 - 8);
do
{
if ( !*v8 )
break;
sub_10000FC04(a1);
--v8;
}
while ( (unsigned __int64)v8 >= v7 );
v4 = *(_QWORD *)(a1 + 1000);
}
}
return sub_1002E7674(v4);
}