//
// sub_100705480 from 0x100705480 to 0x1007054f0 (112 bytes)
//
// 4 xrefs:
// > sub_100669274 @ 0x1006692d0
// > sub_1006FDF14 @ 0x1006fdf34
// > sub_100737B30 @ 0x100737b5c
// > sub_100738754 @ 0x100738770
//
// 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:12:51 +0000
//
__int64 __fastcall sub_100705480(__int64 result, __int64 (__fastcall *a2)(_QWORD, __int64), __int64 a3)
{
_QWORD *v5; // x21
int v6; // w8
__int64 v7; // x22
_QWORD *v8; // x8
_QWORD *v9; // x23
v5 = (_QWORD *)result;
if ( result )
{
v6 = *(_DWORD *)(result + 24) - 1;
if ( (v6 & 0x80000000) == 0 )
{
v7 = v6;
do
{
v8 = *(_QWORD **)(*v5 + 8 * v7);
if ( v8 )
{
do
{
v9 = (_QWORD *)v8[1];
result = a2(*v8, a3);
v8 = v9;
}
while ( v9 );
}
}
while ( v7-- >= 1 );
}
}
return result;
}