//
// sub_1000BFC80 from 0x1000bfc80 to 0x1000bfdd0 (336 bytes)
//
// 1 xrefs:
// > sub_10009B654 @ 0x10009b750
//
// 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:46 +0000
//
void __fastcall sub_1000BFC80(__int64 a1, int a2, int a3)
{
__int64 v6; // x0
char *CString; // x22
__int64 StoredOnlineLevels; // x0
__int64 v9; // x23
int v10; // w26
__int64 v11; // x25
__int64 v12; // x0
void (__fastcall ***v13)(_QWORD, __int64, char *); // x0
__int64 v14; // x19
void *__p[2]; // [xsp+18h] [xbp-58h] BYREF
char v16; // [xsp+2Fh] [xbp-41h]
v6 = sub_1003065B0("messages_%i_%i", a3, 0);
CString = (char *)cocos2d::CCString::getCString(v6);
StoredOnlineLevels = GameLevelManager::getStoredOnlineLevels(a1, CString);
if ( StoredOnlineLevels )
{
v9 = StoredOnlineLevels;
v10 = 0;
while ( !(unsigned int)sub_1002E757C(v9) )
{
LABEL_7:
v12 = sub_1003065B0("messages_%i_%i", a3, ++v10);
CString = (char *)cocos2d::CCString::getCString(v12);
v9 = GameLevelManager::getStoredOnlineLevels(a1, CString);
if ( !v9 )
return;
}
v11 = 0;
while ( *(_DWORD *)(sub_1002E75A0(v9, v11) + 316) != a2 )
{
v11 = (unsigned int)(v11 + 1);
if ( (unsigned int)v11 >= (unsigned int)sub_1002E757C(v9) )
goto LABEL_7;
}
sub_1002E7664(v9, v11, 1);
v13 = *(void (__fastcall ****)(_QWORD, __int64, char *))(a1 + 1384);
if ( v13 )
{
(**v13)(v13, v9, CString);
if ( !(unsigned int)sub_1002E757C(v9) )
{
v14 = *(_QWORD *)(a1 + 1040);
sub_100009900(__p, CString);
cocos2d::CCDictionary::removeObjectForKey(v14, (char *)__p);
if ( v16 < 0 )
operator delete(__p[0]);
}
}
}
}