{"type": "func", "start": 4705504, "end": 4705574, "name": "GJGameLoadingLayer::transitionToLoadingLayer", "pseudocode": "// \n// GJGameLoadingLayer::transitionToLoadingLayer from 0x47cce0 to 0x47cd26 (70 bytes)\n// \n// 3 xrefs:\n// > PauseLayer::goEdit @ 0x3a7bd2\n// > EditorPauseLayer::playStep3 @ 0x3ff582\n// > EndLevelLayer::goEdit @ 0x42796c\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 *GJGameLoadingLayer::transitionToLoadingLayer(GJGameLevel *a1, bool a2)\n{\n  cocos2d::CCSceneDelegate_vtbl *v4; // r4\n  GJGameLoadingLayer *v5; // r5\n  cocos2d::CCDirector *v6; // r6\n  cocos2d::CCTransitionFade *v7; // r0\n\n  v4 = (cocos2d::CCSceneDelegate_vtbl *)cocos2d::CCScene::create();\n  AppDelegate::get()->cocos2d::CCSceneDelegate::__vftable = v4;\n  v5 = GJGameLoadingLayer::create(a1, a2);\n  (*((void (__fastcall **)(cocos2d::CCSceneDelegate_vtbl *, GJGameLoadingLayer *))v4->willSwitchToScene + 55))(v4, v5);\n  v4[6].willSwitchToScene = (void (__fastcall *)(cocos2d::CCSceneDelegate *__hidden, cocos2d::CCScene *))&byte_5;\n  v6 = cocos2d::CCDirector::sharedDirector();\n  v7 = cocos2d::CCTransitionFade::create(0.1, (cocos2d::CCScene *)v4);\n  cocos2d::CCDirector::replaceScene(v6, v7);\n  return v5;\n}", "assembly": "; \n; GJGameLoadingLayer::transitionToLoadingLayer from 0x47cce0 to 0x47cd26 (70 bytes)\n; \n; 3 xrefs:\n; > PauseLayer::goEdit @ 0x3a7bd2\n; > EditorPauseLayer::playStep3 @ 0x3ff582\n; > EndLevelLayer::goEdit @ 0x42796c\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, 0x47cce0\nMOV             R5, R1                                                 ; +0x2, 0x47cce2\nMOV             R6, R0                                                 ; +0x4, 0x47cce4\nBL              _ZN7cocos2d7CCScene6createEv; cocos2d::CCScene::create(void) ; +0x6, 0x47cce6\nMOV             R4, R0                                                 ; +0xa, 0x47ccea\nBL              _ZN11AppDelegate3getEv; AppDelegate::get(void)         ; +0xc, 0x47ccec\nMOV             R1, R5; GJGameLevel *                                  ; +0x10, 0x47ccf0\nSTR             R4, [R0,#0xC]                                          ; +0x12, 0x47ccf2\nMOV             R0, R6; this                                           ; +0x14, 0x47ccf4\nBL              _ZN18GJGameLoadingLayer6createEP11GJGameLevelb; GJGameLoadingLayer::create(GJGameLevel *,bool) ; +0x16, 0x47ccf6\nLDR             R3, [R4]                                               ; +0x1a, 0x47ccfa\nLDR.W           R3, [R3,#0xDC]                                         ; +0x1c, 0x47ccfc\nMOV             R5, R0                                                 ; +0x20, 0x47cd00\nMOV             R0, R4                                                 ; +0x22, 0x47cd02\nMOV             R1, R5                                                 ; +0x24, 0x47cd04\nBLX             R3                                                     ; +0x26, 0x47cd06\nMOVS            R3, #5                                                 ; +0x28, 0x47cd08\nSTR             R3, [R4,#0x18]                                         ; +0x2a, 0x47cd0a\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x2c, 0x47cd0c\nMOV             R1, R4; float                                          ; +0x30, 0x47cd10\nMOV             R6, R0                                                 ; +0x32, 0x47cd12\nLDR             R0, =0x3DCCCCCD; this                                  ; +0x34, 0x47cd14\nBL              _ZN7cocos2d16CCTransitionFade6createEfPNS_7CCSceneE; cocos2d::CCTransitionFade::create(float,cocos2d::CCScene *) ; +0x36, 0x47cd16\nMOV             R1, R0; lpsrc                                          ; +0x3a, 0x47cd1a\nMOV             R0, R6; this                                           ; +0x3c, 0x47cd1c\nBL              _ZN7cocos2d10CCDirector12replaceSceneEPNS_7CCSceneE; cocos2d::CCDirector::replaceScene(cocos2d::CCScene *) ; +0x3e, 0x47cd1e\nMOV             R0, R5                                                 ; +0x42, 0x47cd22\nPOP             {R4-R6,PC}                                             ; +0x44, 0x47cd24", "xrefs": ["PauseLayer::goEdit @ 0x3a7bd2", "EditorPauseLayer::playStep3 @ 0x3ff582", "EndLevelLayer::goEdit @ 0x42796c"], "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"}