//
// GJWorldNode::onLevel from 0x62f6dc to 0x62f722 (70 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:55:15 +0000
//
GJGameLevel *__fastcall GJWorldNode::onLevel(GJGameLevel *this, cocos2d::CCObject *a2)
{
GJGameLevel *v2; // r4
int v3; // r3
GameLevelManager *v5; // r6
char *v6; // r0
int v7; // r3
const char **MainLevel; // r0
GJWorldNode *v9; // r2
int *v10; // r0
v2 = this;
v3 = *((_DWORD *)this + 69);
if ( !*(_BYTE *)(v3 + 337) && !*(_BYTE *)(v3 + 344) )
{
v5 = (GameLevelManager *)GameLevelManager::sharedState(this);
v6 = (char *)(*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2);
MainLevel = (const char **)GameLevelManager::getMainLevel(v5, v6, 1, v7);
*((_DWORD *)v2 + 68) = MainLevel;
v10 = WorldLevelPage::create(MainLevel, v2, v9);
return (GJGameLevel *)(*(int (__fastcall **)(int *))(*v10 + 656))(v10);
}
return this;
}