{"type": "func", "start": 5371618256, "end": 5371618525, "name": "LevelAreaInnerLayer::scene", "pseudocode": "// \n// LevelAreaInnerLayer::scene from 0x1402c63d0 to 0x1402c64dd (269 bytes)\n// \n// 4 xrefs:\n// > GameManager::returnToLastScene @ 0x14018a06a\n// > LevelAreaLayer::onEnterTower @ 0x1402c5870\n// > SecretLayer5::onBack @ 0x1403f7fb9\n// > <???> @ 0x1406d2b64\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\n// local variable allocation has failed, the output may be wrong!\n// Hidden C++ exception states: #wind=1\ncocos2d::CCScene *LevelAreaInnerLayer::scene(bool a1)\n{\n  cocos2d::CCScene *v2; // rsi\n  __int64 v3; // rdx\n  __int64 v4; // rcx\n  LevelAreaInnerLayer *v5; // rdi\n\n  v2 = (cocos2d::CCScene *)cocos2d::CCScene::create(a1);\n  *(_QWORD *)(cocos2d::CCApplication::sharedApplication(v4, v3) + 224) = v2;\n  v5 = (LevelAreaInnerLayer *)operator new(0x1B8u);\n  cocos2d::CCLayer::CCLayer(v5);\n  v5->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (LevelAreaInnerLayer_vtbl *)&LevelAreaInnerLayer::`vftable';\n  v5->cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&LevelAreaInnerLayer::`vftable';\n  v5->cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&LevelAreaInnerLayer::`vftable';\n  v5->cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&LevelAreaInnerLayer::`vftable';\n  v5->cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&LevelAreaInnerLayer::`vftable';\n  v5->cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&LevelAreaInnerLayer::`vftable';\n  v5->DialogDelegate::__vftable = (DialogDelegate_vtbl *)&LevelAreaInnerLayer::`vftable';\n  v5->m_nextFloorButton = nullptr;\n  v5->m_enteringLevel = 0;\n  v5->m_levelID = 0;\n  v5->m_exiting = 0;\n  if ( LevelAreaInnerLayer::init(v5, a1) )\n  {\n    cocos2d::CCObject::autorelease(v5);\n  }\n  else\n  {\n    ((void (__fastcall *)(LevelAreaInnerLayer *, __int64))v5->~LevelAreaInnerLayer)(v5, 1);\n    v5 = nullptr;\n  }\n  v2->addChild_1(v2, v5);\n  return v2;\n}", "assembly": "; \n; LevelAreaInnerLayer::scene from 0x1402c63d0 to 0x1402c64dd (269 bytes)\n; \n; 4 xrefs:\n; > GameManager::returnToLastScene @ 0x14018a06a\n; > LevelAreaLayer::onEnterTower @ 0x1402c5870\n; > SecretLayer5::onBack @ 0x1403f7fb9\n; > <???> @ 0x1406d2b64\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1402c63d0\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x1402c63d5\npush    rdi                                                            ; +0xa, 0x1402c63da\nsub     rsp, 20h                                                       ; +0xb, 0x1402c63db\nmovzx   ebx, cl                                                        ; +0xf, 0x1402c63df\ncall    cs:?create@CCScene@cocos2d@@SAPEAV12@XZ; cocos2d::CCScene::create(void) ; +0x12, 0x1402c63e2\nmov     rsi, rax                                                       ; +0x18, 0x1402c63e8\ncall    cs:?sharedApplication@CCApplication@cocos2d@@SAPEAV12@XZ; cocos2d::CCApplication::sharedApplication(void) ; +0x1b, 0x1402c63eb\nmov     [rax+0E0h], rsi                                                ; +0x21, 0x1402c63f1\nmov     ecx, 1B8h; Size                                                ; +0x28, 0x1402c63f8\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x2d, 0x1402c63fd\nmov     rdi, rax                                                       ; +0x32, 0x1402c6402\nmov     [rsp+28h+arg_8], rax                                           ; +0x35, 0x1402c6405\nmov     rcx, rax                                                       ; +0x3a, 0x1402c640a\ncall    cs:??0CCLayer@cocos2d@@QEAA@XZ; cocos2d::CCLayer::CCLayer(void) ; +0x3d, 0x1402c640d\nlea     rax, ??_7LevelAreaInnerLayer@@6B@; const LevelAreaInnerLayer::`vftable' ; +0x43, 0x1402c6413\nmov     [rdi], rax                                                     ; +0x4a, 0x1402c641a\nlea     rax, ??_7LevelAreaInnerLayer@@6B@_0; const LevelAreaInnerLayer::`vftable' ; +0x4d, 0x1402c641d\nmov     [rdi+140h], rax                                                ; +0x54, 0x1402c6424\nlea     rax, ??_7LevelAreaInnerLayer@@6B@_1; const LevelAreaInnerLayer::`vftable' ; +0x5b, 0x1402c642b\nmov     [rdi+148h], rax                                                ; +0x62, 0x1402c6432\nlea     rax, ??_7LevelAreaInnerLayer@@6B@_2; const LevelAreaInnerLayer::`vftable' ; +0x69, 0x1402c6439\nmov     [rdi+150h], rax                                                ; +0x70, 0x1402c6440\nlea     rax, ??_7LevelAreaInnerLayer@@6B@_3; const LevelAreaInnerLayer::`vftable' ; +0x77, 0x1402c6447\nmov     [rdi+158h], rax                                                ; +0x7e, 0x1402c644e\nlea     rax, ??_7LevelAreaInnerLayer@@6B@_4; const LevelAreaInnerLayer::`vftable' ; +0x85, 0x1402c6455\nmov     [rdi+160h], rax                                                ; +0x8c, 0x1402c645c\nlea     rax, ??_7LevelAreaInnerLayer@@6B@_5; const LevelAreaInnerLayer::`vftable' ; +0x93, 0x1402c6463\nmov     [rdi+198h], rax                                                ; +0x9a, 0x1402c646a\nmov     qword ptr [rdi+1A0h], 0                                        ; +0xa1, 0x1402c6471\nmov     byte ptr [rdi+1A8h], 0                                         ; +0xac, 0x1402c647c\nmov     dword ptr [rdi+1ACh], 0                                        ; +0xb3, 0x1402c6483\nmov     byte ptr [rdi+1B0h], 0                                         ; +0xbd, 0x1402c648d\nmovzx   edx, bl                                                        ; +0xc4, 0x1402c6494\nmov     rcx, rdi                                                       ; +0xc7, 0x1402c6497\ncall    LevelAreaInnerLayer__init                                      ; +0xca, 0x1402c649a\nmov     rcx, rdi                                                       ; +0xcf, 0x1402c649f\ntest    al, al                                                         ; +0xd2, 0x1402c64a2\njz      short loc_1402C64AE                                            ; +0xd4, 0x1402c64a4\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xd6, 0x1402c64a6\njmp     short loc_1402C64BB                                            ; +0xdc, 0x1402c64ac\nmov     rax, [rdi]                                                     ; +0xde, 0x1402c64ae\nmov     edx, 1                                                         ; +0xe1, 0x1402c64b1\ncall    qword ptr [rax+8]                                              ; +0xe6, 0x1402c64b6\nxor     edi, edi                                                       ; +0xe9, 0x1402c64b9\nmov     rax, [rsi]                                                     ; +0xeb, 0x1402c64bb\nmov     rdx, rdi                                                       ; +0xee, 0x1402c64be\nmov     rcx, rsi                                                       ; +0xf1, 0x1402c64c1\ncall    qword ptr [rax+1C0h]                                           ; +0xf4, 0x1402c64c4\nmov     rax, rsi                                                       ; +0xfa, 0x1402c64ca\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xfd, 0x1402c64cd\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x102, 0x1402c64d2\nadd     rsp, 20h                                                       ; +0x107, 0x1402c64d7\npop     rdi                                                            ; +0x10b, 0x1402c64db\nretn                                                                   ; +0x10c, 0x1402c64dc", "xrefs": ["GameManager::returnToLastScene @ 0x14018a06a", "LevelAreaLayer::onEnterTower @ 0x1402c5870", "SecretLayer5::onBack @ 0x1403f7fb9", "<???> @ 0x1406d2b64"], "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"}