//
// sub_1003D4114 from 0x1003d4114 to 0x1003d41c8 (180 bytes)
//
// 2 xrefs:
// > GameStatsManager::recountSpecialStats @ 0x1003d360c
// > GameStatsManager::dataLoaded @ 0x1003de328
//
// 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:12 +0000
//
__int64 __fastcall sub_1003D4114(_QWORD *a1)
{
__int64 v2; // x20
__int64 result; // x0
unsigned int v4; // w21
__int64 v5; // x0
char *CString; // x0
void *__p[2]; // [xsp+8h] [xbp-38h] BYREF
char v8; // [xsp+1Fh] [xbp-21h]
sub_1003DE554();
v2 = cocos2d::CCDictionary::allKeys(a1[98]);
result = sub_1002E757C(v2);
if ( (_DWORD)result )
{
v4 = 0;
do
{
v5 = cocos2d::CCArray::stringAtIndex(v2, v4);
CString = (char *)cocos2d::CCString::getCString(v5);
sub_100009900(__p, CString);
if ( !cocos2d::CCDictionary::objectForKey(a1[45], __p) && !cocos2d::CCDictionary::objectForKey(a1[100], __p) )
cocos2d::CCDictionary::removeObjectForKey(a1[98], (char *)__p);
if ( v8 < 0 )
operator delete(__p[0]);
++v4;
result = sub_1002E757C(v2);
}
while ( v4 < (unsigned int)result );
}
return result;
}