{"type": "func", "start": 5373381504, "end": 5373381657, "name": "MenuLayer::onPlay", "pseudocode": "// \n// MenuLayer::onPlay from 0x140474b80 to 0x140474c19 (153 bytes)\n// \n// 3 xrefs:\n// > MenuLayer::keyDown @ 0x1404755b8\n// > MenuLayer::init @ 0x140472374\n// > <???> @ 0x1409282d4\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:32:40 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nvoid __fastcall MenuLayer::onPlay(__int64 a1)\n{\n  __int64 v1; // rdx\n  __int64 v2; // r8\n  __int64 v3; // r9\n  __int64 v4; // rax\n  struct cocos2d::CCScene *v5; // rax\n  struct cocos2d::CCScene *v6; // rbx\n  __int64 v7; // rcx\n  cocos2d::CCDirector *v8; // rax\n  void *v9; // [rsp+30h] [rbp+8h]\n\n  if ( !*(_BYTE *)(a1 + 432) )\n  {\n    MenuLayer::willClose(a1);\n    v4 = qword_14090BFD0;\n    if ( !qword_14090BFD0 )\n    {\n      v9 = operator new(0x6E8u);\n      qword_14090BFD0 = GameManager::GameManager((__int64)v9);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n      v4 = qword_14090BFD0;\n    }\n    *(_DWORD *)(v4 + 740) = 8;\n    v5 = (struct cocos2d::CCScene *)LevelSelectLayer::scene(0, v1, v2, v3);\n    v6 = cocos2d::CCTransitionFade::create(0.5, v5);\n    v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v7);\n    cocos2d::CCDirector::replaceScene(v8, v6);\n  }\n}", "assembly": "; \n; MenuLayer::onPlay from 0x140474b80 to 0x140474c19 (153 bytes)\n; \n; 3 xrefs:\n; > MenuLayer::keyDown @ 0x1404755b8\n; > MenuLayer::init @ 0x140472374\n; > <???> @ 0x1409282d4\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:32:40 +0000\n; \npush    rbx                                                            ; +0x0, 0x140474b80\nsub     rsp, 20h                                                       ; +0x2, 0x140474b82\ncmp     byte ptr [rcx+1B0h], 0                                         ; +0x6, 0x140474b86\njnz     loc_140474C13                                                  ; +0xd, 0x140474b8d\ncall    MenuLayer__willClose                                           ; +0x13, 0x140474b93\nmov     rax, cs:qword_14090BFD0                                        ; +0x18, 0x140474b98\ntest    rax, rax                                                       ; +0x1f, 0x140474b9f\njnz     short loc_140474BD6                                            ; +0x22, 0x140474ba2\nmov     ecx, 6E8h; Size                                                ; +0x24, 0x140474ba4\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x29, 0x140474ba9\nmov     [rsp+28h+arg_0], rax                                           ; +0x2e, 0x140474bae\nmov     rcx, rax                                                       ; +0x33, 0x140474bb3\ncall    GameManager__GameManager                                       ; +0x36, 0x140474bb6\nnop                                                                    ; +0x3b, 0x140474bbb\nmov     cs:qword_14090BFD0, rax                                        ; +0x3c, 0x140474bbc\nmov     rcx, [rax]                                                     ; +0x43, 0x140474bc3\nmov     rdx, [rcx+48h]                                                 ; +0x46, 0x140474bc6\nmov     rcx, rax                                                       ; +0x4a, 0x140474bca\ncall    rdx                                                            ; +0x4d, 0x140474bcd\nmov     rax, cs:qword_14090BFD0                                        ; +0x4f, 0x140474bcf\nmov     dword ptr [rax+2E4h], 8                                        ; +0x56, 0x140474bd6\nxor     ecx, ecx                                                       ; +0x60, 0x140474be0\ncall    LevelSelectLayer__scene                                        ; +0x62, 0x140474be2\nmov     rdx, rax                                                       ; +0x67, 0x140474be7\nmovss   xmm0, cs:dword_140834F20                                       ; +0x6a, 0x140474bea\ncall    cs:?create@CCTransitionFade@cocos2d@@SAPEAV12@MPEAVCCScene@2@@Z; cocos2d::CCTransitionFade::create(float,cocos2d::CCScene *) ; +0x72, 0x140474bf2\nmov     rbx, rax                                                       ; +0x78, 0x140474bf8\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x7b, 0x140474bfb\nmov     rcx, rax                                                       ; +0x81, 0x140474c01\nmov     rdx, rbx                                                       ; +0x84, 0x140474c04\nadd     rsp, 20h                                                       ; +0x87, 0x140474c07\npop     rbx                                                            ; +0x8b, 0x140474c0b\njmp     cs:?replaceScene@CCDirector@cocos2d@@QEAA_NPEAVCCScene@2@@Z; cocos2d::CCDirector::replaceScene(cocos2d::CCScene *) ; +0x8c, 0x140474c0c\nadd     rsp, 20h                                                       ; +0x93, 0x140474c13\npop     rbx                                                            ; +0x97, 0x140474c17\nretn                                                                   ; +0x98, 0x140474c18", "xrefs": ["MenuLayer::keyDown @ 0x1404755b8", "MenuLayer::init @ 0x140472374", "<???> @ 0x1409282d4"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}