//
// sub_1001DE4FC from 0x1001de4fc to 0x1001de590 (148 bytes)
//
// 1 xrefs:
// > sub_1001E3E04 @ 0x1001e3f68
//
// 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:00:29 +0000
//
__int64 __fastcall sub_1001DE4FC(__int64 a1, int a2, __int64 a3)
{
__int64 v5; // x20
unsigned int *v6; // x9
__int64 v7; // x8
__int64 *v8; // x21
unsigned __int64 v9; // x22
__int64 v10; // x1
__int64 *v11; // x8
int v12; // w9
v5 = sub_1002E736C(a1);
if ( !a3 )
return v5;
v6 = *(unsigned int **)(a3 + 56);
v7 = *v6;
if ( !(_DWORD)v7 )
return v5;
v8 = *((__int64 **)v6 + 2);
v9 = (unsigned __int64)&v8[v7 - 1];
do
{
v10 = *v8;
if ( !*v8 )
return v5;
v11 = *(__int64 **)(v10 + 632);
if ( !v11 )
goto LABEL_11;
while ( 1 )
{
v12 = *((_DWORD *)v11 + 7);
if ( v12 <= a2 )
break;
LABEL_10:
v11 = (__int64 *)*v11;
if ( !v11 )
goto LABEL_11;
}
if ( v12 < a2 )
{
++v11;
goto LABEL_10;
}
sub_1002E74E0(v5, v10);
LABEL_11:
++v8;
}
while ( (unsigned __int64)v8 <= v9 );
return v5;
}