//
// sub_1000CA1C0 from 0x1000ca1c0 to 0x1000ca318 (344 bytes)
//
// 3 xrefs:
// > sub_10009A0A8 @ 0x10009a1d8
// > sub_10009A224 @ 0x10009a34c
// > sub_10009A5B8 @ 0x10009a6d4
//
// 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 10:58:51 +0000
//
void __fastcall sub_1000CA1C0(__int64 a1, __int64 a2, __int64 a3)
{
__int64 i; // x23
_QWORD *v7; // x0
char *v8; // x22
__int64 StoredOnlineLevels; // x0
__int64 v10; // x25
__int64 v11; // x26
void (__fastcall ***v12)(_QWORD, __int64, char *); // x0
__int64 v13; // x23
void *__p[2]; // [xsp+8h] [xbp-58h] BYREF
char v15; // [xsp+1Fh] [xbp-41h]
for ( i = 0; ; i = (unsigned int)(i + 1) )
{
v7 = sub_100009900(__p, "");
v8 = (char *)sub_1000C10B0((__int64)v7, a3, i, (__int64)__p);
if ( v15 < 0 )
operator delete(__p[0]);
StoredOnlineLevels = GameLevelManager::getStoredOnlineLevels(a1, v8);
if ( !StoredOnlineLevels )
break;
v10 = StoredOnlineLevels;
if ( (unsigned int)sub_1002E757C(StoredOnlineLevels) )
{
v11 = 0;
while ( *(_DWORD *)(sub_1002E75A0(v10, v11) + 376) != (_DWORD)a2 )
{
v11 = (unsigned int)(v11 + 1);
if ( (unsigned int)v11 >= (unsigned int)sub_1002E757C(v10) )
goto LABEL_9;
}
sub_1002E7664(v10, v11, 1);
v12 = *(void (__fastcall ****)(_QWORD, __int64, char *))(a1 + 1376);
if ( v12 )
{
(**v12)(v12, v10, v8);
if ( !(unsigned int)sub_1002E757C(v10) )
{
v13 = *(_QWORD *)(a1 + 1040);
sub_100009900(__p, v8);
cocos2d::CCDictionary::removeObjectForKey(v13, (char *)__p);
if ( v15 < 0 )
operator delete(__p[0]);
}
}
break;
}
LABEL_9:
;
}
sub_1000CB318(a1, a3, a2);
if ( (a3 & 1) == 0 )
sub_1000C1124(a1);
}