{"type": "func", "start": 4297101772, "end": 4297101912, "name": "GJGameLoadingLayer::transitionToLoadingLayer", "pseudocode": "// \n// GJGameLoadingLayer::transitionToLoadingLayer from 0x1002091cc to 0x100209258 (140 bytes)\n// \n// 3 xrefs:\n// > PauseLayer::goEdit @ 0x10014368c\n// > EndLevelLayer::goEdit @ 0x1002f8418\n// > EditorPauseLayer::playStep3 @ 0x10039e7a8\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\nGJGameLoadingLayer *__fastcall GJGameLoadingLayer::transitionToLoadingLayer(GJGameLevel *a1, bool a2)\n{\n  cocos2d::CCScene *v4; // x21\n  GJGameLoadingLayer *v5; // x19\n  cocos2d::CCDirector *v6; // x20\n  cocos2d::CCTransitionFade *v7; // x0\n\n  v4 = cocos2d::CCScene::create();\n  AppDelegate::get()->m_resourceRootPath.m_data.m_long.longStorage = (char *)v4;\n  v5 = GJGameLoadingLayer::create(a1, a2);\n  ((void (__fastcall *)(cocos2d::CCScene *, GJGameLoadingLayer *))v4->addChild)(v4, v5);\n  v4->m_eObjType = PlayLayerObjectType;\n  v6 = cocos2d::CCDirector::sharedDirector();\n  v7 = cocos2d::CCTransitionFade::create_1(0.1, v4);\n  cocos2d::CCDirector::replaceScene(v6, v7);\n  return v5;\n}", "assembly": "; \n; GJGameLoadingLayer::transitionToLoadingLayer from 0x1002091cc to 0x100209258 (140 bytes)\n; \n; 3 xrefs:\n; > PauseLayer::goEdit @ 0x10014368c\n; > EndLevelLayer::goEdit @ 0x1002f8418\n; > EditorPauseLayer::playStep3 @ 0x10039e7a8\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, 0x1002091cc\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1002091d0\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1002091d4\nADD             X29, SP, #0x20                                         ; +0xc, 0x1002091d8\nMOV             X19, X1                                                ; +0x10, 0x1002091dc\nMOV             X20, X0                                                ; +0x14, 0x1002091e0\nBL              cocos2d__CCScene__create                               ; +0x18, 0x1002091e4\nMOV             X21, X0                                                ; +0x1c, 0x1002091e8\nBL              AppDelegate__get                                       ; +0x20, 0x1002091ec\nSTR             X21, [X0,#0x18]                                        ; +0x24, 0x1002091f0\nMOV             X0, X20                                                ; +0x28, 0x1002091f4\nMOV             X1, X19                                                ; +0x2c, 0x1002091f8\nBL              GJGameLoadingLayer__create                             ; +0x30, 0x1002091fc\nMOV             X19, X0                                                ; +0x34, 0x100209200\nLDR             X8, [X21]                                              ; +0x38, 0x100209204\nLDR             X8, [X8,#0x1B8]                                        ; +0x3c, 0x100209208\nMOV             X0, X21                                                ; +0x40, 0x10020920c\nMOV             X1, X19                                                ; +0x44, 0x100209210\nBLR             X8                                                     ; +0x48, 0x100209214\nMOV             W8, #5                                                 ; +0x4c, 0x100209218\nSTR             W8, [X21,#0x1C]                                        ; +0x50, 0x10020921c\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x54, 0x100209220\nMOV             X20, X0                                                ; +0x58, 0x100209224\nADRP            X8, #dword_100635370@PAGE                              ; +0x5c, 0x100209228\nLDR             S0, [X8,#dword_100635370@PAGEOFF]                      ; +0x60, 0x10020922c\nMOV             X0, X21                                                ; +0x64, 0x100209230\nBL              cocos2d__CCTransitionFade__create_1                    ; +0x68, 0x100209234\nMOV             X1, X0; lpsrc                                          ; +0x6c, 0x100209238\nMOV             X0, X20; int                                           ; +0x70, 0x10020923c\nBL              cocos2d__CCDirector__replaceScene                      ; +0x74, 0x100209240\nMOV             X0, X19                                                ; +0x78, 0x100209244\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x7c, 0x100209248\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x80, 0x10020924c\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x84, 0x100209250\nRET                                                                    ; +0x88, 0x100209254", "xrefs": ["PauseLayer::goEdit @ 0x10014368c", "EndLevelLayer::goEdit @ 0x1002f8418", "EditorPauseLayer::playStep3 @ 0x10039e7a8"], "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"}