{"type": "func", "start": 4637480, "end": 4637558, "name": "GJGameLoadingLayer::loadLevel", "pseudocode": "// \n// GJGameLoadingLayer::loadLevel from 0x46c328 to 0x46c376 (78 bytes)\n// \n// 0 xrefs:\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; // r5\n  cocos2d::CCScene *v3; // r0\n  cocos2d::CCTransitionFade *v4; // r1\n  cocos2d::CCDirector *v5; // r0\n  cocos2d::CCDirector *v6; // r6\n  cocos2d::CCScene *v7; // r0\n\n  if ( a1->m_editor )\n  {\n    v2 = cocos2d::CCDirector::sharedDirector();\n    v3 = LevelEditorLayer::scene(a1->m_level, 0);\n    v4 = cocos2d::CCTransitionFade::create(0.4, v3);\n    v5 = v2;\n  }\n  else\n  {\n    v6 = cocos2d::CCDirector::sharedDirector();\n    v7 = PlayLayer::scene(a1->m_level, 0, 0);\n    v4 = cocos2d::CCTransitionFade::create(0.4, v7);\n    v5 = v6;\n  }\n  cocos2d::CCDirector::replaceScene(v5, v4);\n}", "assembly": "; \n; GJGameLoadingLayer::loadLevel from 0x46c328 to 0x46c376 (78 bytes)\n; \n; 0 xrefs:\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            {R4-R6,LR}                                             ; +0x0, 0x46c328\nMOV             R4, R0                                                 ; +0x2, 0x46c32a\nLDRB.W          R5, [R0,#0x140]                                        ; +0x4, 0x46c32c\nCBZ             R5, loc_46C350                                         ; +0x8, 0x46c330\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0xa, 0x46c332\nMOVS            R1, #0; GJGameLevel *                                  ; +0xe, 0x46c336\nMOV             R5, R0                                                 ; +0x10, 0x46c338\nLDR.W           R0, [R4,#0x13C]; this                                  ; +0x12, 0x46c33a\nBL              _ZN16LevelEditorLayer5sceneEP11GJGameLevelb; LevelEditorLayer::scene(GJGameLevel *,bool) ; +0x16, 0x46c33e\nMOV             R1, R0; float                                          ; +0x1a, 0x46c342\nLDR             R0, =0x3ECCCCCD; this                                  ; +0x1c, 0x46c344\nBL              _ZN7cocos2d16CCTransitionFade6createEfPNS_7CCSceneE; cocos2d::CCTransitionFade::create(float,cocos2d::CCScene *) ; +0x1e, 0x46c346\nMOV             R1, R0                                                 ; +0x22, 0x46c34a\nMOV             R0, R5; this                                           ; +0x24, 0x46c34c\nB               loc_46C36E                                             ; +0x26, 0x46c34e\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x28, 0x46c350\nMOV             R1, R5; GJGameLevel *                                  ; +0x2c, 0x46c354\nMOV             R2, R5; bool                                           ; +0x2e, 0x46c356\nMOV             R6, R0                                                 ; +0x30, 0x46c358\nLDR.W           R0, [R4,#0x13C]; this                                  ; +0x32, 0x46c35a\nBL              _ZN9PlayLayer5sceneEP11GJGameLevelbb; PlayLayer::scene(GJGameLevel *,bool,bool) ; +0x36, 0x46c35e\nMOV             R1, R0; float                                          ; +0x3a, 0x46c362\nLDR             R0, =0x3ECCCCCD; this                                  ; +0x3c, 0x46c364\nBL              _ZN7cocos2d16CCTransitionFade6createEfPNS_7CCSceneE; cocos2d::CCTransitionFade::create(float,cocos2d::CCScene *) ; +0x3e, 0x46c366\nMOV             R1, R0; lpsrc                                          ; +0x42, 0x46c36a\nMOV             R0, R6; this                                           ; +0x44, 0x46c36c\nPOP.W           {R4-R6,LR}                                             ; +0x46, 0x46c36e\nB.W             _ZN7cocos2d10CCDirector12replaceSceneEPNS_7CCSceneE; cocos2d::CCDirector::replaceScene(cocos2d::CCScene *) ; +0x4a, 0x46c372", "xrefs": [], "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"}