{"type": "func", "start": 7130556, "end": 7130644, "name": "CreatorLayer::scene", "pseudocode": "// \n// CreatorLayer::scene from 0x6ccdbc to 0x6cce14 (88 bytes)\n// \n// 9 xrefs:\n// > MenuLayer::onCreator @ 0x5c2e04\n// > GameManager::returnToLastScene @ 0x5f1108\n// > GameManager::returnToLastScene @ 0x5f1284\n// > GauntletSelectLayer::onBack @ 0x918064\n// > SecretLayer2::onBack @ 0x93a834\n// > MapSelectLayer::onBack @ 0x97d7d8\n// > MultiplayerLayer::onBack @ 0x9b0a50\n// > SecretRewardsLayer::onBack @ 0xa61400\n// > <???> @ 0xc1398\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\ncocos2d::CCScene *CreatorLayer::scene()\n{\n  cocos2d::CCSceneDelegate_vtbl *v0; // x19\n  CreatorLayer *v1; // x20\n  void (__fastcall *v2)(cocos2d::CCSceneDelegate *__hidden, cocos2d::CCScene *); // x1\n\n  v0 = (cocos2d::CCSceneDelegate_vtbl *)cocos2d::CCScene::create();\n  AppDelegate::get()->cocos2d::CCSceneDelegate::__vftable = v0;\n  v1 = CreatorLayer::create();\n  (*((void (__fastcall **)(cocos2d::CCSceneDelegate_vtbl *, CreatorLayer *))v0->willSwitchToScene + 55))(v0, v1);\n  v2 = (void (__fastcall *)(cocos2d::CCSceneDelegate *__hidden, cocos2d::CCScene *))&v1->cocos2d::CCSceneTransitionDelegate;\n  if ( !v1 )\n    v2 = nullptr;\n  v0[40].willSwitchToScene = v2;\n  return (cocos2d::CCScene *)v0;\n}", "assembly": "; \n; CreatorLayer::scene from 0x6ccdbc to 0x6cce14 (88 bytes)\n; \n; 9 xrefs:\n; > MenuLayer::onCreator @ 0x5c2e04\n; > GameManager::returnToLastScene @ 0x5f1108\n; > GameManager::returnToLastScene @ 0x5f1284\n; > GauntletSelectLayer::onBack @ 0x918064\n; > SecretLayer2::onBack @ 0x93a834\n; > MapSelectLayer::onBack @ 0x97d7d8\n; > MultiplayerLayer::onBack @ 0x9b0a50\n; > SecretRewardsLayer::onBack @ 0xa61400\n; > <???> @ 0xc1398\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, 0x6ccdbc\nMOV             X29, SP                                                ; +0x4, 0x6ccdc0\nSTP             X19, X20, [SP,#var_s10]                                ; +0x8, 0x6ccdc4\nBL              _ZN7cocos2d7CCScene6createEv; cocos2d::CCScene::create(void) ; +0xc, 0x6ccdc8\nMOV             X19, X0                                                ; +0x10, 0x6ccdcc\nBL              _ZN11AppDelegate3getEv; AppDelegate::get(void)         ; +0x14, 0x6ccdd0\nSTR             X19, [X0,#0x18]                                        ; +0x18, 0x6ccdd4\nBL              _ZN12CreatorLayer6createEv; CreatorLayer::create(void) ; +0x1c, 0x6ccdd8\nMOV             X20, X0                                                ; +0x20, 0x6ccddc\nLDR             X2, [X19]                                              ; +0x24, 0x6ccde0\nMOV             X0, X19                                                ; +0x28, 0x6ccde4\nMOV             X1, X20                                                ; +0x2c, 0x6ccde8\nLDR             X2, [X2,#0x1B8]                                        ; +0x30, 0x6ccdec\nBLR             X2                                                     ; +0x34, 0x6ccdf0\nCMP             X20, XZR                                               ; +0x38, 0x6ccdf4\nADD             X1, X20, #0x198                                        ; +0x3c, 0x6ccdf8\nCSEL            X1, X1, XZR, NE                                        ; +0x40, 0x6ccdfc\nSTR             X1, [X19,#0x140]                                       ; +0x44, 0x6cce00\nMOV             X0, X19                                                ; +0x48, 0x6cce04\nLDP             X19, X20, [SP,#var_s10]                                ; +0x4c, 0x6cce08\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x50, 0x6cce0c\nRET                                                                    ; +0x54, 0x6cce10", "xrefs": ["MenuLayer::onCreator @ 0x5c2e04", "GameManager::returnToLastScene @ 0x5f1108", "GameManager::returnToLastScene @ 0x5f1284", "GauntletSelectLayer::onBack @ 0x918064", "SecretLayer2::onBack @ 0x93a834", "MapSelectLayer::onBack @ 0x97d7d8", "MultiplayerLayer::onBack @ 0x9b0a50", "SecretRewardsLayer::onBack @ 0xa61400", "<???> @ 0xc1398"], "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"}