//
// GameLevelManager::getDemonLevelsString from 0x1000abc34 to 0x1000abde0 (428 bytes)
//
// 1 xrefs:
// > GameLevelManager::updateUserScore @ 0x1000bc41c
//
// 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:36 +0000
//
void __usercall GameLevelManager::getDemonLevelsString(__int64 a1@, _QWORD *a2@)
{
__int64 v3; // x8
__int64 v4; // x25
char v5; // w26
const void *v6; // x0
_DWORD *v7; // x0
_DWORD *v8; // x23
__int64 v9; // x0
__int64 v11; // x20
unsigned int v12; // [xsp+Ch] [xbp-274h] BYREF
__int128 v13; // [xsp+10h] [xbp-270h] BYREF
void *__p; // [xsp+20h] [xbp-260h]
_BYTE v15[512]; // [xsp+28h] [xbp-258h] BYREF
v13 = xmmword_10075BA80;
__p = v15;
v3 = *(_QWORD *)(a1 + 760);
if ( v3 && (v4 = *(_QWORD *)(v3 + 56)) != 0 )
{
v5 = 1;
do
{
while ( 1 )
{
v6 = *(const void **)(v4 + 264);
v4 = *(_QWORD *)(v4 + 288);
if ( !v6 )
break;
v7 = __dynamic_cast(
v6,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,
(const struct __class_type_info *)&`typeinfo for'GJGameLevel,
0);
if ( !v7 )
break;
v8 = v7;
if ( v7[237] - v7[238] != 10 )
break;
if ( v7[215] - v7[214] != 100 )
break;
v9 = GameStatsManager::sharedState(v7);
if ( !(unsigned int)GameStatsManager::hasCompletedLevel(v9, v8) )
break;
if ( (v5 & 1) == 0 )
sub_10000CB50((__int64 *)&v13, ",", 0);
v12 = v8[82] - v8[83];
sub_100009A40((int)&v13, v12, (int)&v12);
v5 = 0;
if ( !v4 )
goto LABEL_23;
}
}
while ( v4 );
if ( (v5 & 1) != 0 )
goto LABEL_16;
LABEL_23:
v11 = v13;
if ( *((_QWORD *)&v13 + 1) < (unsigned __int64)(v13 + 1) )
sub_100009ED4((__int64)&v13, v13 + 1);
*((_BYTE *)__p + v11) = 0;
sub_100009900(a2, (char *)__p);
}
else
{
LABEL_16:
sub_100009900(a2, "");
}
if ( __p != v15 && __p != nullptr )
operator delete[](__p);
}