//
// sub_1001D7498 from 0x1001d7498 to 0x1001d759c (260 bytes)
//
// 1 xrefs:
// > sub_1001D7714 @ 0x1001d7804
//
// 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:25 +0000
//
__int64 __fastcall sub_1001D7498(__int64 a1, __int64 a2, __int64 a3)
{
__int64 v3; // x8
__int64 *v6; // x8
__int64 *v7; // x9
int v8; // w10
int v9; // w9
__int64 v10; // x1
__int64 v11; // x0
__int64 v13; // x0
unsigned int v14; // w21
__int64 *v15; // x8
int v16; // w9
int v17; // w10
__int64 v18; // x1
__int64 v19; // x0
v3 = *(_QWORD *)(a3 + 16);
if ( v3 )
{
v6 = *(__int64 **)(a3 + 8);
if ( v6 )
{
v7 = *(__int64 **)(a3 + 8);
do
{
v8 = *((_DWORD *)v7 + 7);
if ( v8 < 0 )
{
if ( v8 == -1 )
return 1;
++v7;
}
v7 = (__int64 *)*v7;
}
while ( v7 );
do
{
v9 = *((_DWORD *)v6 + 7);
if ( v9 <= 1 )
{
if ( v9 == 1 )
return 1;
++v6;
}
v6 = (__int64 *)*v6;
}
while ( v6 );
}
v10 = *(unsigned int *)(a2 + 60);
v11 = *(_QWORD *)(a1 + 824);
if ( (int)v10 >= 1 && v11 != 0 )
{
v13 = cocos2d::CCDictionary::objectForKey_1(v11, v10);
if ( v13 )
{
v14 = 0;
while ( 1 )
{
v15 = *(__int64 **)(a3 + 8);
if ( v15 )
{
v16 = *(_DWORD *)(v13 + 76);
do
{
v17 = *((_DWORD *)v15 + 7);
if ( v16 >= v17 )
{
if ( v17 >= v16 )
return 1;
++v15;
}
v15 = (__int64 *)*v15;
}
while ( v15 );
}
v18 = *(unsigned int *)(v13 + 60);
v19 = *(_QWORD *)(a1 + 824);
if ( (int)v18 < 1 || v19 == 0 )
break;
v13 = cocos2d::CCDictionary::objectForKey_1(v19, v18);
v3 = 0;
if ( v13 )
{
if ( v14++ < 0x63 )
continue;
}
return v3;
}
}
}
return 0;
}
return v3;
}