{"type": "func", "start": 5369348048, "end": 5369348413, "name": "CreatorLayer::scene", "pseudocode": "// \n// CreatorLayer::scene from 0x14009bfd0 to 0x14009c13d (365 bytes)\n// \n// 7 xrefs:\n// > GameManager::returnToLastScene @ 0x140189ff5\n// > GameManager::returnToLastScene @ 0x14018a1c6\n// > GauntletSelectLayer::onBack @ 0x1401fa71f\n// > MenuLayer::onCreator @ 0x140335d86\n// > SecretRewardsLayer::onBack @ 0x1403d7dc0\n// > SecretLayer2::onBack @ 0x1403e98bd\n// > <???> @ 0x1406c7560\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 *CreatorLayer::scene()\n{\n  cocos2d::CCScene *v0; // rsi\n  __int64 v1; // rdx\n  __int64 v2; // rcx\n  CreatorLayer *v3; // rdi\n\n  v0 = (cocos2d::CCScene *)cocos2d::CCScene::create();\n  *(_QWORD *)(cocos2d::CCApplication::sharedApplication(v2, v1) + 224) = v0;\n  v3 = (CreatorLayer *)operator new(0x1C0u);\n  cocos2d::CCLayer::CCLayer(v3);\n  cocos2d::CCSceneTransitionDelegate::CCSceneTransitionDelegate(&v3->cocos2d::CCSceneTransitionDelegate);\n  v3->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (CreatorLayer_vtbl *)&CreatorLayer::`vftable';\n  v3->cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&CreatorLayer::`vftable';\n  v3->cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&CreatorLayer::`vftable';\n  v3->cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&CreatorLayer::`vftable';\n  v3->cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&CreatorLayer::`vftable';\n  v3->cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&CreatorLayer::`vftable';\n  v3->cocos2d::CCSceneTransitionDelegate::__vftable = (cocos2d::CCSceneTransitionDelegate_vtbl *)&CreatorLayer::`vftable';\n  v3->DialogDelegate::__vftable = (DialogDelegate_vtbl *)&CreatorLayer::`vftable';\n  v3->m_secretDoorSprite = nullptr;\n  v3->m_questsSprite = nullptr;\n  v3->m_vaultDialogIndex = -1;\n  v3->m_versusDialogIndex = 0;\n  if ( CreatorLayer::init(v3) )\n  {\n    cocos2d::CCObject::autorelease(v3);\n    v0->addChild_1(v0, v3);\n    if ( v3 )\n    {\n      v0->m_pDelegate = (cocos2d::CCSceneDelegate *)&v3->cocos2d::CCSceneTransitionDelegate;\n      return v0;\n    }\n  }\n  else\n  {\n    ((void (__fastcall *)(CreatorLayer *, __int64))v3->~CreatorLayer)(v3, 1);\n    v0->addChild_1(v0, nullptr);\n  }\n  v0->m_pDelegate = nullptr;\n  return v0;\n}", "assembly": "; \n; CreatorLayer::scene from 0x14009bfd0 to 0x14009c13d (365 bytes)\n; \n; 7 xrefs:\n; > GameManager::returnToLastScene @ 0x140189ff5\n; > GameManager::returnToLastScene @ 0x14018a1c6\n; > GauntletSelectLayer::onBack @ 0x1401fa71f\n; > MenuLayer::onCreator @ 0x140335d86\n; > SecretRewardsLayer::onBack @ 0x1403d7dc0\n; > SecretLayer2::onBack @ 0x1403e98bd\n; > <???> @ 0x1406c7560\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, 0x14009bfd0\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x14009bfd5\npush    rdi                                                            ; +0xa, 0x14009bfda\nsub     rsp, 20h                                                       ; +0xb, 0x14009bfdb\ncall    cs:?create@CCScene@cocos2d@@SAPEAV12@XZ; cocos2d::CCScene::create(void) ; +0xf, 0x14009bfdf\nmov     rsi, rax                                                       ; +0x15, 0x14009bfe5\ncall    cs:?sharedApplication@CCApplication@cocos2d@@SAPEAV12@XZ; cocos2d::CCApplication::sharedApplication(void) ; +0x18, 0x14009bfe8\nmov     [rax+0E0h], rsi                                                ; +0x1e, 0x14009bfee\nmov     ecx, 1C0h; Size                                                ; +0x25, 0x14009bff5\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x2a, 0x14009bffa\nmov     rdi, rax                                                       ; +0x2f, 0x14009bfff\nmov     [rsp+28h+arg_0], rax                                           ; +0x32, 0x14009c002\nmov     rcx, rax                                                       ; +0x37, 0x14009c007\ncall    cs:??0CCLayer@cocos2d@@QEAA@XZ; cocos2d::CCLayer::CCLayer(void) ; +0x3a, 0x14009c00a\nlea     rcx, [rdi+198h]                                                ; +0x40, 0x14009c010\ncall    cs:??0CCSceneTransitionDelegate@cocos2d@@QEAA@XZ; cocos2d::CCSceneTransitionDelegate::CCSceneTransitionDelegate(void) ; +0x47, 0x14009c017\nlea     rax, ??_7CreatorLayer@@6B@; const CreatorLayer::`vftable'      ; +0x4d, 0x14009c01d\nmov     [rdi], rax                                                     ; +0x54, 0x14009c024\nlea     rax, ??_7CreatorLayer@@6B@_0; const CreatorLayer::`vftable'    ; +0x57, 0x14009c027\nmov     [rdi+140h], rax                                                ; +0x5e, 0x14009c02e\nlea     rax, ??_7CreatorLayer@@6B@_1; const CreatorLayer::`vftable'    ; +0x65, 0x14009c035\nmov     [rdi+148h], rax                                                ; +0x6c, 0x14009c03c\nlea     rax, ??_7CreatorLayer@@6B@_2; const CreatorLayer::`vftable'    ; +0x73, 0x14009c043\nmov     [rdi+150h], rax                                                ; +0x7a, 0x14009c04a\nlea     rax, ??_7CreatorLayer@@6B@_3; const CreatorLayer::`vftable'    ; +0x81, 0x14009c051\nmov     [rdi+158h], rax                                                ; +0x88, 0x14009c058\nlea     rax, ??_7CreatorLayer@@6B@_4; const CreatorLayer::`vftable'    ; +0x8f, 0x14009c05f\nmov     [rdi+160h], rax                                                ; +0x96, 0x14009c066\nlea     rax, ??_7CreatorLayer@@6B@_5; const CreatorLayer::`vftable'    ; +0x9d, 0x14009c06d\nmov     [rdi+198h], rax                                                ; +0xa4, 0x14009c074\nlea     rax, ??_7CreatorLayer@@6B@_6; const CreatorLayer::`vftable'    ; +0xab, 0x14009c07b\nmov     [rdi+1A0h], rax                                                ; +0xb2, 0x14009c082\nxor     ebx, ebx                                                       ; +0xb9, 0x14009c089\nmov     [rdi+1A8h], rbx                                                ; +0xbb, 0x14009c08b\nmov     [rdi+1B0h], rbx                                                ; +0xc2, 0x14009c092\nmov     dword ptr [rdi+1B8h], 0FFFFFFFFh                               ; +0xc9, 0x14009c099\nmov     [rdi+1BCh], ebx                                                ; +0xd3, 0x14009c0a3\nmov     rax, cs:off_1405433E8                                          ; +0xd9, 0x14009c0a9\nlea     rcx, CreatorLayer__init                                        ; +0xe0, 0x14009c0b0\ncmp     rax, rcx                                                       ; +0xe7, 0x14009c0b7\nmov     rcx, rdi                                                       ; +0xea, 0x14009c0ba\njnz     short loc_14009C0C6                                            ; +0xed, 0x14009c0bd\ncall    CreatorLayer__init                                             ; +0xef, 0x14009c0bf\njmp     short loc_14009C0C8                                            ; +0xf4, 0x14009c0c4\ncall    rax ; CreatorLayer__init                                       ; +0xf6, 0x14009c0c6\nmov     rcx, rdi                                                       ; +0xf8, 0x14009c0c8\ntest    al, al                                                         ; +0xfb, 0x14009c0cb\njz      short loc_14009C10A                                            ; +0xfd, 0x14009c0cd\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xff, 0x14009c0cf\nmov     rax, [rsi]                                                     ; +0x105, 0x14009c0d5\nmov     rdx, rdi                                                       ; +0x108, 0x14009c0d8\nmov     rcx, rsi                                                       ; +0x10b, 0x14009c0db\ncall    qword ptr [rax+1C0h]                                           ; +0x10e, 0x14009c0de\ntest    rdi, rdi                                                       ; +0x114, 0x14009c0e4\njz      short loc_14009C123                                            ; +0x117, 0x14009c0e7\nlea     rax, [rdi+198h]                                                ; +0x119, 0x14009c0e9\nmov     [rsi+140h], rax                                                ; +0x120, 0x14009c0f0\nmov     rax, rsi                                                       ; +0x127, 0x14009c0f7\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x12a, 0x14009c0fa\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x12f, 0x14009c0ff\nadd     rsp, 20h                                                       ; +0x134, 0x14009c104\npop     rdi                                                            ; +0x138, 0x14009c108\nretn                                                                   ; +0x139, 0x14009c109\nmov     rax, [rdi]                                                     ; +0x13a, 0x14009c10a\nmov     edx, 1                                                         ; +0x13d, 0x14009c10d\ncall    qword ptr [rax+8]                                              ; +0x142, 0x14009c112\nmov     rax, [rsi]                                                     ; +0x145, 0x14009c115\nxor     edx, edx                                                       ; +0x148, 0x14009c118\nmov     rcx, rsi                                                       ; +0x14a, 0x14009c11a\ncall    qword ptr [rax+1C0h]                                           ; +0x14d, 0x14009c11d\nmov     [rsi+140h], rbx                                                ; +0x153, 0x14009c123\nmov     rax, rsi                                                       ; +0x15a, 0x14009c12a\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x15d, 0x14009c12d\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x162, 0x14009c132\nadd     rsp, 20h                                                       ; +0x167, 0x14009c137\npop     rdi                                                            ; +0x16b, 0x14009c13b\nretn                                                                   ; +0x16c, 0x14009c13c", "xrefs": ["GameManager::returnToLastScene @ 0x140189ff5", "GameManager::returnToLastScene @ 0x14018a1c6", "GauntletSelectLayer::onBack @ 0x1401fa71f", "MenuLayer::onCreator @ 0x140335d86", "SecretRewardsLayer::onBack @ 0x1403d7dc0", "SecretLayer2::onBack @ 0x1403e98bd", "<???> @ 0x1406c7560"], "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"}