//
// sub_1003CEDF4 from 0x1003cedf4 to 0x1003ceea4 (176 bytes)
//
// 4 xrefs:
// > LevelInfoLayer::init @ 0x100028fd4
// > sub_1000A79F0 @ 0x1000a7a84
// > GameManager::dataLoaded @ 0x1003b9804
// > GameStatsManager::completedLevel @ 0x1003ced94
//
// 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:10 +0000
//
void __fastcall sub_1003CEDF4(__int64 a1, _DWORD *a2)
{
_BOOL8 v4; // x0
char *v5; // x0
__int64 v6; // x21
__int64 v7; // x22
void *__p[2]; // [xsp+8h] [xbp-38h] BYREF
char v9; // [xsp+1Fh] [xbp-21h]
v4 = sub_1003CEBF8(a1, (__int64)a2);
if ( !v4 && a2[233] - a2[234] == 1 )
{
v5 = (char *)sub_1003CE918(v4, (__int64)a2);
v6 = *(_QWORD *)(a1 + 608);
v7 = *(_QWORD *)(a1 + 320);
sub_100009900(__p, v5);
cocos2d::CCDictionary::setObject(v6, v7, __p);
if ( v9 < 0 )
operator delete(__p[0]);
if ( a2[237] - a2[238] >= 10 )
GameStatsManager::incrementStat(a1, "5", 1);
}
}