{"type": "func", "start": 4298917888, "end": 4298918012, "name": "GJWorldNode::onLevel", "pseudocode": "// \n// GJWorldNode::onLevel from 0x1003c4800 to 0x1003c487c (124 bytes)\n// \n// 1 xrefs:\n// > GJWorldNode::init @ 0x1003c41bd\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall GJWorldNode::onLevel(GJWorldNode *a1, cocos2d::CCObject *a2)\n{\n  WorldSelectLayer *m_selectLayer; // rax\n  GameLevelManager *v3; // r15\n  int v4; // eax\n  GJGameLevel *MainLevel; // rax\n  WorldLevelPage *v6; // rax\n\n  m_selectLayer = a1->m_selectLayer;\n  if ( !m_selectLayer->m_enteringLevel && !m_selectLayer->m_buttonsLocked )\n  {\n    v3 = GameLevelManager::sharedState();\n    v4 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);\n    MainLevel = GameLevelManager::getMainLevel(v3, v4, 1);\n    a1->m_level = MainLevel;\n    v6 = WorldLevelPage::create(MainLevel, a1);\n    ((void (__fastcall *)(WorldLevelPage *))v6->show)(v6);\n  }\n}", "assembly": "; \n; GJWorldNode::onLevel from 0x1003c4800 to 0x1003c487c (124 bytes)\n; \n; 1 xrefs:\n; > GJWorldNode::init @ 0x1003c41bd\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbp                                                            ; +0x0, 0x1003c4800\nmov     rbp, rsp                                                       ; +0x1, 0x1003c4801\npush    r15                                                            ; +0x4, 0x1003c4804\npush    r14                                                            ; +0x6, 0x1003c4806\npush    rbx                                                            ; +0x8, 0x1003c4808\npush    rax                                                            ; +0x9, 0x1003c4809\nmov     rax, [rdi+158h]                                                ; +0xa, 0x1003c480a\ncmp     byte ptr [rax+1C1h], 0                                         ; +0x11, 0x1003c4811\njnz     short loc_1003C4823                                            ; +0x18, 0x1003c4818\ncmp     byte ptr [rax+1D0h], 0                                         ; +0x1a, 0x1003c481a\njz      short loc_1003C482E                                            ; +0x21, 0x1003c4821\nadd     rsp, 8                                                         ; +0x23, 0x1003c4823\npop     rbx                                                            ; +0x27, 0x1003c4827\npop     r14                                                            ; +0x28, 0x1003c4828\npop     r15                                                            ; +0x2a, 0x1003c482a\npop     rbp                                                            ; +0x2c, 0x1003c482c\nretn                                                                   ; +0x2d, 0x1003c482d\nmov     rbx, rdi                                                       ; +0x2e, 0x1003c482e\nmov     r14, rsi                                                       ; +0x31, 0x1003c4831\ncall    GameLevelManager__sharedState                                  ; +0x34, 0x1003c4834\nmov     r15, rax                                                       ; +0x39, 0x1003c4839\nmov     rax, [r14]                                                     ; +0x3c, 0x1003c483c\nmov     rdi, r14                                                       ; +0x3f, 0x1003c483f\ncall    qword ptr [rax+40h]                                            ; +0x42, 0x1003c4842\nmov     rdi, r15                                                       ; +0x45, 0x1003c4845\nmov     esi, eax                                                       ; +0x48, 0x1003c4848\nmov     edx, 1                                                         ; +0x4a, 0x1003c484a\ncall    GameLevelManager__getMainLevel                                 ; +0x4f, 0x1003c484f\nmov     [rbx+150h], rax                                                ; +0x54, 0x1003c4854\nmov     rdi, rax                                                       ; +0x5b, 0x1003c485b\nmov     rsi, rbx                                                       ; +0x5e, 0x1003c485e\ncall    WorldLevelPage__create                                         ; +0x61, 0x1003c4861\nmov     rcx, [rax]                                                     ; +0x66, 0x1003c4866\nmov     rdi, rax                                                       ; +0x69, 0x1003c4869\nadd     rsp, 8                                                         ; +0x6c, 0x1003c486c\npop     rbx                                                            ; +0x70, 0x1003c4870\npop     r14                                                            ; +0x71, 0x1003c4871\npop     r15                                                            ; +0x73, 0x1003c4873\npop     rbp                                                            ; +0x75, 0x1003c4875\njmp     qword ptr [rcx+508h]                                           ; +0x76, 0x1003c4876", "xrefs": ["GJWorldNode::init @ 0x1003c41bd"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}