//
// sub_1001DE114 from 0x1001de114 to 0x1001de188 (116 bytes)
//
// 1 xrefs:
// > sub_1001DE188 @ 0x1001de1f0
//
// 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_1001DE114(__int64 a1, int a2)
{
__int64 v4; // x0
__int64 v5; // x20
__int64 v6; // x8
__int64 v7; // x21
__int64 v8; // x1
v4 = cocos2d::CCDictionary::count(*(_QWORD *)(a1 + 440));
v5 = sub_1002E7510(v4);
v6 = *(_QWORD *)(a1 + 440);
if ( v6 )
{
v7 = *(_QWORD *)(v6 + 56);
while ( v7 )
{
v8 = *(_QWORD *)(v7 + 264);
v7 = *(_QWORD *)(v7 + 288);
if ( a2 == -1 || *(_DWORD *)(v8 + 400) == a2 )
sub_1002E74E0(v5, v8);
}
}
return v5;
}