//
// sub_1000C2090 from 0x1000c2090 to 0x1000c2154 (196 bytes)
//
// 2 xrefs:
// > sub_10022ADF4 @ 0x10022aea0
// > sub_10022ADF4 @ 0x10022b01c
//
// 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:47 +0000
//
void __fastcall sub_1000C2090(__int64 a1, int a2)
{
int v4; // w23
char v5; // w22
__int64 v6; // x0
char *CString; // x0
char *v8; // x1
_BOOL4 v9; // w0
char *v10; // x1
void *__p[2]; // [xsp+18h] [xbp-48h] BYREF
char v12; // [xsp+2Fh] [xbp-31h]
v4 = 0;
v5 = 1;
do
{
if ( (v5 & 1) == 0 )
break;
GameLevelManager::sharedState();
v6 = sub_1003065B0("a_%i_%i", a2, v4);
CString = (char *)cocos2d::CCString::getCString(v6);
sub_100009900(__p, CString);
if ( v12 >= 0 )
v8 = (char *)__p;
else
v8 = (char *)__p[0];
v9 = sub_1000ADDDC(a1, v8);
v5 = v9;
if ( v9 )
{
if ( v12 >= 0 )
v10 = (char *)__p;
else
v10 = (char *)__p[0];
sub_1000ADE4C(a1, v10);
}
if ( v12 < 0 )
operator delete(__p[0]);
++v4;
}
while ( v4 != 101 );
}