{"type": "func", "start": 8739480, "end": 8739604, "name": "GJGameLoadingLayer::loadLevel", "pseudocode": "// \n// GJGameLoadingLayer::loadLevel from 0x855a98 to 0x855b14 (124 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x341b8\n// > GJGameLoadingLayer::gameLayerDidUnload @ 0x86c820\n// > <???> @ 0x1229900\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 GJGameLoadingLayer::loadLevel(GJGameLoadingLayer *a1)\n{\n  cocos2d::CCDirector *v2; // x20\n  cocos2d::CCScene *v3; // x0\n  cocos2d::CCTransitionFade *v4; // x1\n\n  if ( a1->m_editor )\n  {\n    v2 = cocos2d::CCDirector::sharedDirector();\n    v3 = LevelEditorLayer::scene(a1->m_level, 0);\n  }\n  else\n  {\n    v2 = cocos2d::CCDirector::sharedDirector();\n    v3 = PlayLayer::scene(a1->m_level, 0, 0);\n  }\n  v4 = cocos2d::CCTransitionFade::create(0.4, v3);\n  cocos2d::CCDirector::replaceScene(v2, v4);\n}", "assembly": "; \n; GJGameLoadingLayer::loadLevel from 0x855a98 to 0x855b14 (124 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x341b8\n; > GJGameLoadingLayer::gameLayerDidUnload @ 0x86c820\n; > <???> @ 0x1229900\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\nSTP             X29, X30, [SP,#-0x20+var_s0]!                          ; +0x0, 0x855a98\nMOV             X29, SP                                                ; +0x4, 0x855a9c\nSTP             X19, X20, [SP,#var_s10]                                ; +0x8, 0x855aa0\nMOV             X19, X0                                                ; +0xc, 0x855aa4\nLDRB            W0, [X0,#0x1A0]; this                                  ; +0x10, 0x855aa8\nCBNZ            W0, loc_855AE4                                         ; +0x14, 0x855aac\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x18, 0x855ab0\nMOV             X20, X0                                                ; +0x1c, 0x855ab4\nLDR             X0, [X19,#0x198]; this                                 ; +0x20, 0x855ab8\nMOV             W1, #0; GJGameLevel *                                  ; +0x24, 0x855abc\nMOV             W2, #0; bool                                           ; +0x28, 0x855ac0\nBL              _ZN9PlayLayer5sceneEP11GJGameLevelbb; PlayLayer::scene(GJGameLevel *,bool,bool) ; +0x2c, 0x855ac4\nLDR             S0, flt_855B14; float                                  ; +0x30, 0x855ac8\nBL              _ZN7cocos2d16CCTransitionFade6createEfPNS_7CCSceneE; cocos2d::CCTransitionFade::create(float,cocos2d::CCScene *) ; +0x34, 0x855acc\nMOV             X1, X0; lpsrc                                          ; +0x38, 0x855ad0\nMOV             X0, X20; this                                          ; +0x3c, 0x855ad4\nLDP             X19, X20, [SP,#var_s10]                                ; +0x40, 0x855ad8\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x44, 0x855adc\nB               _ZN7cocos2d10CCDirector12replaceSceneEPNS_7CCSceneE; cocos2d::CCDirector::replaceScene(cocos2d::CCScene *) ; +0x48, 0x855ae0\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x4c, 0x855ae4\nMOV             X20, X0                                                ; +0x50, 0x855ae8\nLDR             X0, [X19,#0x198]; this                                 ; +0x54, 0x855aec\nMOV             W1, #0; GJGameLevel *                                  ; +0x58, 0x855af0\nBL              _ZN16LevelEditorLayer5sceneEP11GJGameLevelb; LevelEditorLayer::scene(GJGameLevel *,bool) ; +0x5c, 0x855af4\nLDR             S0, flt_855B14; float                                  ; +0x60, 0x855af8\nBL              _ZN7cocos2d16CCTransitionFade6createEfPNS_7CCSceneE; cocos2d::CCTransitionFade::create(float,cocos2d::CCScene *) ; +0x64, 0x855afc\nMOV             X1, X0; lpsrc                                          ; +0x68, 0x855b00\nMOV             X0, X20; this                                          ; +0x6c, 0x855b04\nLDP             X19, X20, [SP,#var_s10]                                ; +0x70, 0x855b08\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x74, 0x855b0c\nB               _ZN7cocos2d10CCDirector12replaceSceneEPNS_7CCSceneE; cocos2d::CCDirector::replaceScene(cocos2d::CCScene *) ; +0x78, 0x855b10", "xrefs": ["<???> @ 0x341b8", "GJGameLoadingLayer::gameLayerDidUnload @ 0x86c820", "<???> @ 0x1229900"], "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"}