//
// sub_10011D520 from 0x10011d520 to 0x10011d5b8 (152 bytes)
//
// 2 xrefs:
// > sub_10011CF20 @ 0x10011cf78
// > sub_10011D028 @ 0x10011d050
//
// 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:59:13 +0000
//
__int64 __fastcall sub_10011D520(__int64 result, __int64 a2, __int64 a3, __n128 a4)
{
__int64 v6; // x20
__int64 v7; // x22
__int64 v8; // x23
__int64 v9; // x0
if ( (*(_BYTE *)(result + 1012) & 1) == 0 )
{
v6 = result;
if ( *(_QWORD *)(result + 680) )
v7 = sub_1002E73C8(a4);
else
v7 = *(_QWORD *)(result + 688);
if ( (unsigned int)sub_1002E757C(v7) )
{
v8 = 0;
do
{
v9 = sub_1002E75A0(v7, v8);
sub_100435534(v9, a2, a3);
v8 = (unsigned int)(v8 + 1);
}
while ( (unsigned int)v8 < (unsigned int)sub_1002E757C(v7) );
}
return sub_10011D5B8(v6);
}
return result;
}