//
// sub_1003DE554 from 0x1003de554 to 0x1003de630 (220 bytes)
//
// 1 xrefs:
// > sub_1003D4114 @ 0x1003d412c
//
// 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:04:20 +0000
//
__int64 __fastcall sub_1003DE554(__int64 a1)
{
__int64 v2; // x20
__int64 result; // x0
unsigned int v4; // w21
__int64 v5; // x0
char *CString; // x0
__int64 v7; // x22
void *__p[2]; // [xsp+0h] [xbp-50h] BYREF
__int64 v9; // [xsp+10h] [xbp-40h]
void *v10[2]; // [xsp+18h] [xbp-38h] BYREF
__int64 v11; // [xsp+28h] [xbp-28h]
v2 = cocos2d::CCDictionary::allKeys(*(_QWORD *)(a1 + 800));
result = sub_1002E757C(v2);
if ( (_DWORD)result )
{
v4 = 0;
do
{
v5 = cocos2d::CCArray::stringAtIndex(v2, v4);
CString = (char *)cocos2d::CCString::getCString(v5);
sub_100009900(v10, CString);
v7 = cocos2d::CCDictionary::objectForKey(*(_QWORD *)(a1 + 784), v10);
if ( SHIBYTE(v11) < 0 )
{
sub_1000097D0(__p, v10[0], (unsigned __int64)v10[1]);
}
else
{
*(_OWORD *)__p = *(_OWORD *)v10;
v9 = v11;
}
sub_1003D4B28(a1, v7, (__int128 *)__p);
if ( SHIBYTE(v9) < 0 )
operator delete(__p[0]);
if ( SHIBYTE(v11) < 0 )
operator delete(v10[0]);
++v4;
result = sub_1002E757C(v2);
}
while ( v4 < (unsigned int)result );
}
return result;
}