{"type": "func", "start": 5372780896, "end": 5372781271, "name": "SecretLayer2::scene", "pseudocode": "// \n// SecretLayer2::scene from 0x1403e2160 to 0x1403e22d7 (375 bytes)\n// \n// 4 xrefs:\n// > CreatorLayer::onSecretVault @ 0x14009e610\n// > GameManager::returnToLastScene @ 0x14018a074\n// > SecretLayer3::onBack @ 0x1403ef750\n// > <???> @ 0x1406d7f1c\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// Hidden C++ exception states: #wind=1\ncocos2d::CCScene *SecretLayer2::scene()\n{\n  __int64 v0; // rcx\n  cocos2d::CCScene *v1; // rdi\n  __int64 v2; // rcx\n  SecretLayer2 *v3; // rbx\n\n  v1 = (cocos2d::CCScene *)cocos2d::CCScene::create(v0);\n  *(_QWORD *)(cocos2d::CCApplication::sharedApplication(v2) + 224) = v1;\n  v3 = (SecretLayer2 *)operator new(0x208u);\n  cocos2d::CCLayer::CCLayer(v3);\n  v3->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (SecretLayer2_vtbl *)&SecretLayer2::`vftable';\n  v3->cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&SecretLayer2::`vftable';\n  v3->cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&SecretLayer2::`vftable';\n  v3->cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&SecretLayer2::`vftable';\n  v3->cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&SecretLayer2::`vftable';\n  v3->cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&SecretLayer2::`vftable';\n  v3->TextInputDelegate::__vftable = (TextInputDelegate_vtbl *)&SecretLayer2::`vftable';\n  v3->FLAlertLayerProtocol::__vftable = (FLAlertLayerProtocol_vtbl *)&SecretLayer2::`vftable';\n  v3->DialogDelegate::__vftable = (DialogDelegate_vtbl *)&SecretLayer2::`vftable';\n  *(_QWORD *)&v3->m_threadTag = -1;\n  *(_QWORD *)&v3->m_selectedThread = 0;\n  v3->m_basicMessageCount = 0;\n  v3->m_errorMessageIndex = -1;\n  v3->m_searchInput = nullptr;\n  v3->m_messageLabel = nullptr;\n  v3->m_messageThreads = nullptr;\n  v3->m_exiting = 0;\n  v3->m_doorDialogIndex = -1;\n  v3->m_secretLevelButton = nullptr;\n  v3->m_secretLevelLabels = nullptr;\n  v3->m_secretDoorButton = nullptr;\n  if ( SecretLayer2::init(v3) )\n  {\n    cocos2d::CCObject::autorelease(v3);\n  }\n  else\n  {\n    ((void (__fastcall *)(SecretLayer2 *, __int64))v3->~SecretLayer2)(v3, 1);\n    v3 = nullptr;\n  }\n  v1->addChild_1(v1, v3);\n  return v1;\n}", "assembly": "; \n; SecretLayer2::scene from 0x1403e2160 to 0x1403e22d7 (375 bytes)\n; \n; 4 xrefs:\n; > CreatorLayer::onSecretVault @ 0x14009e610\n; > GameManager::returnToLastScene @ 0x14018a074\n; > SecretLayer3::onBack @ 0x1403ef750\n; > <???> @ 0x1406d7f1c\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_8], rbx                                               ; +0x0, 0x1403e2160\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x1403e2165\npush    rdi                                                            ; +0xa, 0x1403e216a\nsub     rsp, 20h                                                       ; +0xb, 0x1403e216b\ncall    cs:?create@CCScene@cocos2d@@SAPEAV12@XZ; cocos2d::CCScene::create(void) ; +0xf, 0x1403e216f\nmov     rdi, rax                                                       ; +0x15, 0x1403e2175\ncall    cs:?sharedApplication@CCApplication@cocos2d@@SAPEAV12@XZ; cocos2d::CCApplication::sharedApplication(void) ; +0x18, 0x1403e2178\nmov     [rax+0E0h], rdi                                                ; +0x1e, 0x1403e217e\nmov     ecx, 208h; Size                                                ; +0x25, 0x1403e2185\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x2a, 0x1403e218a\nmov     rbx, rax                                                       ; +0x2f, 0x1403e218f\nmov     [rsp+28h+arg_0], rax                                           ; +0x32, 0x1403e2192\nmov     rcx, rax                                                       ; +0x37, 0x1403e2197\ncall    cs:??0CCLayer@cocos2d@@QEAA@XZ; cocos2d::CCLayer::CCLayer(void) ; +0x3a, 0x1403e219a\nlea     rax, ??_7SecretLayer2@@6B@; const SecretLayer2::`vftable'      ; +0x40, 0x1403e21a0\nmov     [rbx], rax                                                     ; +0x47, 0x1403e21a7\nlea     rax, ??_7SecretLayer2@@6B@_0; const SecretLayer2::`vftable'    ; +0x4a, 0x1403e21aa\nmov     [rbx+140h], rax                                                ; +0x51, 0x1403e21b1\nlea     rax, ??_7SecretLayer2@@6B@_1; const SecretLayer2::`vftable'    ; +0x58, 0x1403e21b8\nmov     [rbx+148h], rax                                                ; +0x5f, 0x1403e21bf\nlea     rax, ??_7SecretLayer2@@6B@_2; const SecretLayer2::`vftable'    ; +0x66, 0x1403e21c6\nmov     [rbx+150h], rax                                                ; +0x6d, 0x1403e21cd\nlea     rax, ??_7SecretLayer2@@6B@_3; const SecretLayer2::`vftable'    ; +0x74, 0x1403e21d4\nmov     [rbx+158h], rax                                                ; +0x7b, 0x1403e21db\nlea     rax, ??_7SecretLayer2@@6B@_4; const SecretLayer2::`vftable'    ; +0x82, 0x1403e21e2\nmov     [rbx+160h], rax                                                ; +0x89, 0x1403e21e9\nlea     rax, ??_7SecretLayer2@@6B@_5; const SecretLayer2::`vftable'    ; +0x90, 0x1403e21f0\nmov     [rbx+198h], rax                                                ; +0x97, 0x1403e21f7\nlea     rax, ??_7SecretLayer2@@6B@_6; const SecretLayer2::`vftable'    ; +0x9e, 0x1403e21fe\nmov     [rbx+1A0h], rax                                                ; +0xa5, 0x1403e2205\nlea     rax, ??_7SecretLayer2@@6B@_7; const SecretLayer2::`vftable'    ; +0xac, 0x1403e220c\nmov     [rbx+1A8h], rax                                                ; +0xb3, 0x1403e2213\nmov     qword ptr [rbx+1B0h], 0FFFFFFFFFFFFFFFFh                       ; +0xba, 0x1403e221a\nxor     esi, esi                                                       ; +0xc5, 0x1403e2225\nmov     [rbx+1B8h], rsi                                                ; +0xc7, 0x1403e2227\nmov     [rbx+1C0h], esi                                                ; +0xce, 0x1403e222e\nmov     dword ptr [rbx+1C4h], 0FFFFFFFFh                               ; +0xd4, 0x1403e2234\nmov     [rbx+1C8h], rsi                                                ; +0xde, 0x1403e223e\nmov     [rbx+1D0h], rsi                                                ; +0xe5, 0x1403e2245\nmov     [rbx+1E0h], rsi                                                ; +0xec, 0x1403e224c\nmov     [rbx+1E8h], sil                                                ; +0xf3, 0x1403e2253\nmov     dword ptr [rbx+1ECh], 0FFFFFFFFh                               ; +0xfa, 0x1403e225a\nmov     [rbx+1F0h], rsi                                                ; +0x104, 0x1403e2264\nmov     [rbx+1F8h], rsi                                                ; +0x10b, 0x1403e226b\nmov     [rbx+200h], rsi                                                ; +0x112, 0x1403e2272\nmov     rax, cs:off_1405D2F00                                          ; +0x119, 0x1403e2279\nlea     rcx, SecretLayer2__init                                        ; +0x120, 0x1403e2280\ncmp     rax, rcx                                                       ; +0x127, 0x1403e2287\nmov     rcx, rbx                                                       ; +0x12a, 0x1403e228a\njnz     short loc_1403E2296                                            ; +0x12d, 0x1403e228d\ncall    SecretLayer2__init                                             ; +0x12f, 0x1403e228f\njmp     short loc_1403E2298                                            ; +0x134, 0x1403e2294\ncall    rax ; SecretLayer2__init                                       ; +0x136, 0x1403e2296\nmov     rcx, rbx                                                       ; +0x138, 0x1403e2298\ntest    al, al                                                         ; +0x13b, 0x1403e229b\njz      short loc_1403E22A7                                            ; +0x13d, 0x1403e229d\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x13f, 0x1403e229f\njmp     short loc_1403E22B5                                            ; +0x145, 0x1403e22a5\nmov     rax, [rbx]                                                     ; +0x147, 0x1403e22a7\nmov     edx, 1                                                         ; +0x14a, 0x1403e22aa\ncall    qword ptr [rax+8]                                              ; +0x14f, 0x1403e22af\nmov     rbx, rsi                                                       ; +0x152, 0x1403e22b2\nmov     rax, [rdi]                                                     ; +0x155, 0x1403e22b5\nmov     rdx, rbx                                                       ; +0x158, 0x1403e22b8\nmov     rcx, rdi                                                       ; +0x15b, 0x1403e22bb\ncall    qword ptr [rax+1C0h]                                           ; +0x15e, 0x1403e22be\nmov     rax, rdi                                                       ; +0x164, 0x1403e22c4\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x167, 0x1403e22c7\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x16c, 0x1403e22cc\nadd     rsp, 20h                                                       ; +0x171, 0x1403e22d1\npop     rdi                                                            ; +0x175, 0x1403e22d5\nretn                                                                   ; +0x176, 0x1403e22d6", "xrefs": ["CreatorLayer::onSecretVault @ 0x14009e610", "GameManager::returnToLastScene @ 0x14018a074", "SecretLayer3::onBack @ 0x1403ef750", "<???> @ 0x1406d7f1c"], "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"}