{"type": "func", "start": 5373382544, "end": 5373382688, "name": "MenuLayer::onGarage", "pseudocode": "// \n// MenuLayer::onGarage from 0x140474f90 to 0x140475020 (144 bytes)\n// \n// 4 xrefs:\n// > MenuLayer::keyDown @ 0x140475583\n// > MenuLayer::init @ 0x1404723f9\n// > <???> @ 0x1409282f8\n// > <???> @ 0x140928304\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\nvoid __fastcall MenuLayer::onGarage(__int64 a1)\n{\n  __int64 v1; // rdx\n  __int64 v2; // rcx\n  __int64 v3; // r8\n  __int64 v4; // r9\n  __int64 v5; // rax\n  struct cocos2d::CCScene *v6; // rax\n  struct cocos2d::CCScene *v7; // rbx\n  __int64 v8; // rcx\n  cocos2d::CCDirector *v9; // rax\n  void *v10; // [rsp+30h] [rbp+8h]\n\n  if ( !*(_BYTE *)(a1 + 432) )\n  {\n    MenuLayer::willClose(a1);\n    v5 = qword_14090BFD0;\n    if ( !qword_14090BFD0 )\n    {\n      v10 = operator new(0x6E8u);\n      qword_14090BFD0 = GameManager::GameManager((__int64)v10);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n      v5 = qword_14090BFD0;\n    }\n    *(_BYTE *)(v5 + 959) = 1;\n    v6 = (struct cocos2d::CCScene *)GJGarageLayer::scene(v2, v1, v3, v4);\n    v7 = cocos2d::CCTransitionFade::create(0.5, v6);\n    v9 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v8);\n    cocos2d::CCDirector::replaceScene(v9, v7);\n  }\n}", "assembly": "; \n; MenuLayer::onGarage from 0x140474f90 to 0x140475020 (144 bytes)\n; \n; 4 xrefs:\n; > MenuLayer::keyDown @ 0x140475583\n; > MenuLayer::init @ 0x1404723f9\n; > <???> @ 0x1409282f8\n; > <???> @ 0x140928304\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, 0x140474f90\nsub     rsp, 20h                                                       ; +0x2, 0x140474f92\ncmp     byte ptr [rcx+1B0h], 0                                         ; +0x6, 0x140474f96\njnz     short loc_14047501A                                            ; +0xd, 0x140474f9d\ncall    MenuLayer__willClose                                           ; +0xf, 0x140474f9f\nmov     rax, cs:qword_14090BFD0                                        ; +0x14, 0x140474fa4\ntest    rax, rax                                                       ; +0x1b, 0x140474fab\njnz     short loc_140474FE2                                            ; +0x1e, 0x140474fae\nmov     ecx, 6E8h; Size                                                ; +0x20, 0x140474fb0\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x25, 0x140474fb5\nmov     [rsp+28h+arg_0], rax                                           ; +0x2a, 0x140474fba\nmov     rcx, rax                                                       ; +0x2f, 0x140474fbf\ncall    GameManager__GameManager                                       ; +0x32, 0x140474fc2\nnop                                                                    ; +0x37, 0x140474fc7\nmov     cs:qword_14090BFD0, rax                                        ; +0x38, 0x140474fc8\nmov     rcx, [rax]                                                     ; +0x3f, 0x140474fcf\nmov     rdx, [rcx+48h]                                                 ; +0x42, 0x140474fd2\nmov     rcx, rax                                                       ; +0x46, 0x140474fd6\ncall    rdx                                                            ; +0x49, 0x140474fd9\nmov     rax, cs:qword_14090BFD0                                        ; +0x4b, 0x140474fdb\nmov     byte ptr [rax+3BFh], 1                                         ; +0x52, 0x140474fe2\ncall    GJGarageLayer__scene                                           ; +0x59, 0x140474fe9\nmov     rdx, rax                                                       ; +0x5e, 0x140474fee\nmovss   xmm0, cs:dword_140834F20                                       ; +0x61, 0x140474ff1\ncall    cs:?create@CCTransitionFade@cocos2d@@SAPEAV12@MPEAVCCScene@2@@Z; cocos2d::CCTransitionFade::create(float,cocos2d::CCScene *) ; +0x69, 0x140474ff9\nmov     rbx, rax                                                       ; +0x6f, 0x140474fff\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x72, 0x140475002\nmov     rcx, rax                                                       ; +0x78, 0x140475008\nmov     rdx, rbx                                                       ; +0x7b, 0x14047500b\nadd     rsp, 20h                                                       ; +0x7e, 0x14047500e\npop     rbx                                                            ; +0x82, 0x140475012\njmp     cs:?replaceScene@CCDirector@cocos2d@@QEAA_NPEAVCCScene@2@@Z; cocos2d::CCDirector::replaceScene(cocos2d::CCScene *) ; +0x83, 0x140475013\nadd     rsp, 20h                                                       ; +0x8a, 0x14047501a\npop     rbx                                                            ; +0x8e, 0x14047501e\nretn                                                                   ; +0x8f, 0x14047501f", "xrefs": ["MenuLayer::keyDown @ 0x140475583", "MenuLayer::init @ 0x1404723f9", "<???> @ 0x1409282f8", "<???> @ 0x140928304"], "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"}