//
// sub_10013B72C from 0x10013b72c to 0x10013b824 (248 bytes)
//
// 1 xrefs:
// > LevelListCell::loadFromList @ 0x10012911c
//
// 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:59:29 +0000
//
__int64 (__fastcall ***__fastcall sub_10013B72C(__int64 a1))(_QWORD, __int64, __int64, __int64, _QWORD)
{
__int64 (__fastcall ***result)(_QWORD, __int64, __int64, __int64, _QWORD); // x0
__int64 v3; // x2
__int64 v4; // x0
__int64 v5; // x0
__int64 v6; // x0
int v7; // w20
__int64 v8; // x0
void *v9; // x1
__int64 v10; // x0
__int64 v11; // x0
__int64 v12; // x20
__int64 v13; // x0
__int64 v14; // x1
if ( *(_BYTE *)(a1 + 560) == 1 )
{
result = *(__int64 (__fastcall ****)(_QWORD, __int64, __int64, __int64, _QWORD))(*(_QWORD *)(a1 + 416) + 632LL);
if ( result )
{
if ( *(_BYTE *)(a1 + 561) )
v3 = 39;
else
v3 = 28;
return (__int64 (__fastcall ***)(_QWORD, __int64, __int64, __int64, _QWORD))(**result)(result, a1, v3, 1, 0);
}
}
else
{
v4 = GameManager::sharedState(a1);
v5 = GameManager::onlyCuratedLevels(v4);
if ( (_DWORD)v5 )
{
v6 = GameManager::sharedState(v5);
return (__int64 (__fastcall ***)(_QWORD, __int64, __int64, __int64, _QWORD))sub_1003B6200(v6);
}
else if ( *(_DWORD *)(*(_QWORD *)(a1 + 552) + 544LL) == 2 )
{
v7 = cocos2d::CCDirector::sharedDirector(v5);
v8 = LevelListLayer::scene(*(_QWORD *)(a1 + 552));
v9 = (void *)cocos2d::CCTransitionFade::create_1(v8, 0.5);
return (__int64 (__fastcall ***)(_QWORD, __int64, __int64, __int64, _QWORD))cocos2d::CCDirector::replaceScene(
v7,
v9);
}
else
{
v10 = GameLevelManager::sharedState();
sub_1000B7884(v10, *(_QWORD *)(a1 + 552));
v12 = cocos2d::CCDirector::sharedDirector(v11);
v13 = LevelListLayer::scene(*(_QWORD *)(a1 + 552));
v14 = cocos2d::CCTransitionFade::create_1(v13, 0.5);
return (__int64 (__fastcall ***)(_QWORD, __int64, __int64, __int64, _QWORD))cocos2d::CCDirector::pushScene(
v12,
v14);
}
}
return result;
}