{"type": "func", "start": 4297102492, "end": 4297102596, "name": "GJGameLoadingLayer::loadLevel", "pseudocode": "// \n// GJGameLoadingLayer::loadLevel from 0x10020949c to 0x100209504 (104 bytes)\n// \n// 1 xrefs:\n// > GJGameLoadingLayer::gameLayerDidUnload @ 0x1001da9a8\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 GJGameLoadingLayer::loadLevel(GJGameLoadingLayer *a1)\n{\n  _BOOL4 m_editor; // w21\n  cocos2d::CCDirector *v3; // x19\n  GJGameLevel *m_level; // x0\n  cocos2d::CCScene *v5; // x0\n  cocos2d::CCTransitionFade *v6; // x1\n\n  m_editor = a1->m_editor;\n  v3 = cocos2d::CCDirector::sharedDirector();\n  m_level = a1->m_level;\n  if ( m_editor )\n    v5 = LevelEditorLayer::scene(m_level, 0);\n  else\n    v5 = PlayLayer::scene(m_level, 0, 0);\n  v6 = cocos2d::CCTransitionFade::create_1(0.4, v5);\n  cocos2d::CCDirector::replaceScene(v3, v6);\n}", "assembly": "; \n; GJGameLoadingLayer::loadLevel from 0x10020949c to 0x100209504 (104 bytes)\n; \n; 1 xrefs:\n; > GJGameLoadingLayer::gameLayerDidUnload @ 0x1001da9a8\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             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x10020949c\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1002094a0\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1002094a4\nADD             X29, SP, #0x20                                         ; +0xc, 0x1002094a8\nMOV             X20, X0                                                ; +0x10, 0x1002094ac\nLDRB            W21, [X0,#0x1A0]                                       ; +0x14, 0x1002094b0\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x18, 0x1002094b4\nMOV             X19, X0                                                ; +0x1c, 0x1002094b8\nLDR             X0, [X20,#0x198]                                       ; +0x20, 0x1002094bc\nCMP             W21, #1                                                ; +0x24, 0x1002094c0\nB.NE            loc_1002094D4                                          ; +0x28, 0x1002094c4\nMOV             W1, #0                                                 ; +0x2c, 0x1002094c8\nBL              LevelEditorLayer__scene                                ; +0x30, 0x1002094cc\nB               loc_1002094E0                                          ; +0x34, 0x1002094d0\nMOV             W1, #0                                                 ; +0x38, 0x1002094d4\nMOV             W2, #0                                                 ; +0x3c, 0x1002094d8\nBL              PlayLayer__scene                                       ; +0x40, 0x1002094dc\nADRP            X8, #dword_10063537C@PAGE                              ; +0x44, 0x1002094e0\nLDR             S0, [X8,#dword_10063537C@PAGEOFF]                      ; +0x48, 0x1002094e4\nBL              cocos2d__CCTransitionFade__create_1                    ; +0x4c, 0x1002094e8\nMOV             X1, X0; lpsrc                                          ; +0x50, 0x1002094ec\nMOV             X0, X19; int                                           ; +0x54, 0x1002094f0\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x58, 0x1002094f4\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x5c, 0x1002094f8\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x60, 0x1002094fc\nB               cocos2d__CCDirector__replaceScene                      ; +0x64, 0x100209500", "xrefs": ["GJGameLoadingLayer::gameLayerDidUnload @ 0x1001da9a8"], "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"}