//
// sub_100526C00 from 0x100526c00 to 0x100526cc0 (192 bytes)
//
// 1 xrefs:
// > sub_10052661C @ 0x100526704
//
// 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:07:15 +0000
//
_DWORD *__fastcall sub_100526C00(__int64 a1, int *a2, __int64 a3, _DWORD **a4)
{
__int64 v6; // x9
_QWORD *v7; // x22
int v8; // w8
_QWORD *v9; // x20
int v10; // w9
_DWORD *v11; // x23
v7 = (_QWORD *)(a1 + 8);
v6 = *(_QWORD *)(a1 + 8);
if ( v6 )
{
v8 = *a2;
while ( 1 )
{
while ( 1 )
{
v9 = (_QWORD *)v6;
v10 = *(_DWORD *)(v6 + 32);
if ( v8 >= v10 )
break;
v6 = *v9;
v7 = v9;
if ( !*v9 )
goto LABEL_10;
}
if ( v10 >= v8 )
break;
v6 = v9[1];
if ( !v6 )
{
v7 = v9 + 1;
goto LABEL_10;
}
}
}
else
{
v9 = (_QWORD *)(a1 + 8);
LABEL_10:
v11 = operator new(0x38u);
v11[8] = **a4;
*((_QWORD *)v11 + 5) = 0;
*((_QWORD *)v11 + 6) = 0;
sub_10000A0F0((__int64 **)a1, (__int64)v9, v7, v11);
return v11;
}
return v9;
}