{"type": "func", "start": 5372385696, "end": 5372386132, "name": "GJGarageLayer::onBack", "pseudocode": "// \n// GJGarageLayer::onBack from 0x1403819a0 to 0x140381b54 (436 bytes)\n// \n// 3 xrefs:\n// > GJGarageLayer::keyBackClicked @ 0x140381b69\n// > GJGarageLayer::init @ 0x14037c3f5\n// > <???> @ 0x140922964\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:31:05 +0000\n// \n\n// Hidden C++ exception states: #wind=2\nvoid __fastcall GJGarageLayer::onBack(cocos2d::CCObject *a1)\n{\n  __int64 v2; // rax\n  struct cocos2d::CCScene *v3; // rax\n  struct cocos2d::CCScene *v4; // rbx\n  __int64 v5; // rcx\n  cocos2d::CCDirector *v6; // rax\n  __int64 v7; // rcx\n  cocos2d::CCDirector *v8; // rax\n  __int64 v9; // rcx\n  __int64 v10; // rcx\n  struct cocos2d::CCScene *v11; // rbx\n  cocos2d::CCDirector *v12; // rax\n  __int64 v13; // rcx\n  __int64 v14; // rax\n  const struct cocos2d::CCPoint *v15; // rax\n  struct cocos2d::CCActionInterval *v16; // rax\n  struct cocos2d::CCFiniteTimeAction *v17; // rbx\n  __int64 v18; // rax\n  struct cocos2d::CCAction *v19; // rax\n  void *v20; // [rsp+30h] [rbp+8h] BYREF\n  char v21; // [rsp+40h] [rbp+18h] BYREF\n\n  if ( !*((_BYTE *)a1 + 512) )\n  {\n    (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)a1 + 992LL))(a1, 0);\n    v2 = qword_14090BFD0;\n    if ( !qword_14090BFD0 )\n    {\n      v20 = operator new(0x6E8u);\n      qword_14090BFD0 = GameManager::GameManager((__int64)v20);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n      v2 = qword_14090BFD0;\n    }\n    if ( *(_BYTE *)(v2 + 1112) )\n    {\n      *(_BYTE *)(v2 + 1112) = 0;\n      cocos2d::CCObject::retain(a1);\n      (*(void (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a1 + 512LL))(a1);\n      (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)a1 + 992LL))(a1, 0);\n      v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v7);\n      cocos2d::CCDirector::popScene(v8);\n      v11 = *(struct cocos2d::CCScene **)(cocos2d::CCDirector::sharedDirector(v9) + 280);\n      if ( v11 )\n      {\n        *((_BYTE *)a1 + 512) = 1;\n        v12 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v10);\n        cocos2d::CCDirector::willSwitchToScene(v12, v11);\n        (*(void (__fastcall **)(struct cocos2d::CCScene *, cocos2d::CCObject *, __int64))(*(_QWORD *)v11 + 456LL))(\n          v11,\n          a1,\n          1000);\n        cocos2d::CCObject::release(a1);\n        v14 = cocos2d::CCDirector::sharedDirector(v13);\n        cocos2d::CCDirector::getWinSize(v14, &v20);\n        cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v21, 0.0, *((float *)&v20 + 1));\n        v16 = cocos2d::CCMoveTo::create(0.30000001, v15);\n        v17 = cocos2d::CCEaseIn::create(v16, 2.0);\n        v18 = cocos2d::CCCallFunc::create(a1, sub_14003F5B0);\n        v19 = cocos2d::CCSequence::create(v17, v18, 0);\n        cocos2d::CCNode::runAction(a1, v19);\n      }\n    }\n    else\n    {\n      *((_BYTE *)a1 + 512) = 1;\n      v3 = (struct cocos2d::CCScene *)MenuLayer::scene(0);\n      v4 = cocos2d::CCTransitionFade::create(0.5, v3);\n      v6 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v5);\n      cocos2d::CCDirector::replaceScene(v6, v4);\n    }\n  }\n}", "assembly": "; \n; GJGarageLayer::onBack from 0x1403819a0 to 0x140381b54 (436 bytes)\n; \n; 3 xrefs:\n; > GJGarageLayer::keyBackClicked @ 0x140381b69\n; > GJGarageLayer::init @ 0x14037c3f5\n; > <???> @ 0x140922964\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:31:05 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1403819a0\npush    rdi                                                            ; +0x5, 0x1403819a5\nsub     rsp, 20h                                                       ; +0x6, 0x1403819a6\nmov     rdi, rcx                                                       ; +0xa, 0x1403819aa\ncmp     byte ptr [rcx+200h], 0                                         ; +0xd, 0x1403819ad\njnz     loc_140381B49                                                  ; +0x14, 0x1403819b4\nmov     rax, [rcx]                                                     ; +0x1a, 0x1403819ba\nxor     edx, edx                                                       ; +0x1d, 0x1403819bd\ncall    qword ptr [rax+3E0h]                                           ; +0x1f, 0x1403819bf\nmov     rax, cs:qword_14090BFD0                                        ; +0x25, 0x1403819c5\ntest    rax, rax                                                       ; +0x2c, 0x1403819cc\njnz     short loc_140381A03                                            ; +0x2f, 0x1403819cf\nmov     ecx, 6E8h; Size                                                ; +0x31, 0x1403819d1\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x36, 0x1403819d6\nmov     [rsp+28h+arg_0], rax                                           ; +0x3b, 0x1403819db\nmov     rcx, rax                                                       ; +0x40, 0x1403819e0\ncall    GameManager__GameManager                                       ; +0x43, 0x1403819e3\nnop                                                                    ; +0x48, 0x1403819e8\nmov     cs:qword_14090BFD0, rax                                        ; +0x49, 0x1403819e9\nmov     rcx, [rax]                                                     ; +0x50, 0x1403819f0\nmov     rdx, [rcx+48h]                                                 ; +0x53, 0x1403819f3\nmov     rcx, rax                                                       ; +0x57, 0x1403819f7\ncall    rdx                                                            ; +0x5a, 0x1403819fa\nmov     rax, cs:qword_14090BFD0                                        ; +0x5c, 0x1403819fc\ncmp     byte ptr [rax+458h], 0                                         ; +0x63, 0x140381a03\njnz     short loc_140381A4B                                            ; +0x6a, 0x140381a0a\nmov     byte ptr [rdi+200h], 1                                         ; +0x6c, 0x140381a0c\nxor     ecx, ecx                                                       ; +0x73, 0x140381a13\ncall    MenuLayer__scene                                               ; +0x75, 0x140381a15\nmov     rdx, rax                                                       ; +0x7a, 0x140381a1a\nmovss   xmm0, cs:dword_140834F20                                       ; +0x7d, 0x140381a1d\ncall    cs:?create@CCTransitionFade@cocos2d@@SAPEAV12@MPEAVCCScene@2@@Z; cocos2d::CCTransitionFade::create(float,cocos2d::CCScene *) ; +0x85, 0x140381a25\nmov     rbx, rax                                                       ; +0x8b, 0x140381a2b\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x8e, 0x140381a2e\nmov     rcx, rax                                                       ; +0x94, 0x140381a34\nmov     rdx, rbx                                                       ; +0x97, 0x140381a37\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x9a, 0x140381a3a\nadd     rsp, 20h                                                       ; +0x9f, 0x140381a3f\npop     rdi                                                            ; +0xa3, 0x140381a43\njmp     cs:?replaceScene@CCDirector@cocos2d@@QEAA_NPEAVCCScene@2@@Z; cocos2d::CCDirector::replaceScene(cocos2d::CCScene *) ; +0xa4, 0x140381a44\nmov     byte ptr [rax+458h], 0                                         ; +0xab, 0x140381a4b\nmov     rcx, rdi                                                       ; +0xb2, 0x140381a52\ncall    cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0xb5, 0x140381a55\nmov     rax, [rdi]                                                     ; +0xbb, 0x140381a5b\nmov     rcx, rdi                                                       ; +0xbe, 0x140381a5e\ncall    qword ptr [rax+200h]                                           ; +0xc1, 0x140381a61\nmov     rax, [rdi]                                                     ; +0xc7, 0x140381a67\nxor     edx, edx                                                       ; +0xca, 0x140381a6a\nmov     rcx, rdi                                                       ; +0xcc, 0x140381a6c\ncall    qword ptr [rax+3E0h]                                           ; +0xcf, 0x140381a6f\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xd5, 0x140381a75\nmov     rcx, rax                                                       ; +0xdb, 0x140381a7b\ncall    cs:?popScene@CCDirector@cocos2d@@QEAAXXZ; cocos2d::CCDirector::popScene(void) ; +0xde, 0x140381a7e\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xe4, 0x140381a84\nmov     rbx, [rax+118h]                                                ; +0xea, 0x140381a8a\ntest    rbx, rbx                                                       ; +0xf1, 0x140381a91\njz      loc_140381B49                                                  ; +0xf4, 0x140381a94\nmov     byte ptr [rdi+200h], 1                                         ; +0xfa, 0x140381a9a\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x101, 0x140381aa1\nmov     rcx, rax                                                       ; +0x107, 0x140381aa7\nmov     rdx, rbx                                                       ; +0x10a, 0x140381aaa\ncall    cs:?willSwitchToScene@CCDirector@cocos2d@@QEAAXPEAVCCScene@2@@Z; cocos2d::CCDirector::willSwitchToScene(cocos2d::CCScene *) ; +0x10d, 0x140381aad\nmov     rax, [rbx]                                                     ; +0x113, 0x140381ab3\nmov     r8d, 3E8h                                                      ; +0x116, 0x140381ab6\nmov     rdx, rdi                                                       ; +0x11c, 0x140381abc\nmov     rcx, rbx                                                       ; +0x11f, 0x140381abf\ncall    qword ptr [rax+1C8h]                                           ; +0x122, 0x140381ac2\nmov     rcx, rdi                                                       ; +0x128, 0x140381ac8\ncall    cs:?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x12b, 0x140381acb\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x131, 0x140381ad1\nmov     rcx, rax                                                       ; +0x137, 0x140381ad7\nlea     rdx, [rsp+28h+arg_0]                                           ; +0x13a, 0x140381ada\ncall    cs:?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x13f, 0x140381adf\nmovss   xmm2, dword ptr [rsp+28h+arg_0+4]                              ; +0x145, 0x140381ae5\nxorps   xmm1, xmm1                                                     ; +0x14b, 0x140381aeb\nlea     rcx, [rsp+28h+arg_10]                                          ; +0x14e, 0x140381aee\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x153, 0x140381af3\nmov     rdx, rax                                                       ; +0x159, 0x140381af9\nmovss   xmm0, cs:dword_140834EA0                                       ; +0x15c, 0x140381afc\ncall    cs:?create@CCMoveTo@cocos2d@@SAPEAV12@MAEBVCCPoint@2@@Z; cocos2d::CCMoveTo::create(float,cocos2d::CCPoint const &) ; +0x164, 0x140381b04\nmovss   xmm1, cs:width                                                 ; +0x16a, 0x140381b0a\nmov     rcx, rax                                                       ; +0x172, 0x140381b12\ncall    cs:?create@CCEaseIn@cocos2d@@SAPEAV12@PEAVCCActionInterval@2@M@Z; cocos2d::CCEaseIn::create(cocos2d::CCActionInterval *,float) ; +0x175, 0x140381b15\nmov     rbx, rax                                                       ; +0x17b, 0x140381b1b\nlea     rdx, sub_14003F5B0                                             ; +0x17e, 0x140381b1e\nmov     rcx, rdi                                                       ; +0x185, 0x140381b25\ncall    cs:?create@CCCallFunc@cocos2d@@SAPEAV12@PEAVCCObject@2@P832@EAAXXZ@Z; cocos2d::CCCallFunc::create(cocos2d::CCObject *,void (cocos2d::CCObject::*)(void)) ; +0x188, 0x140381b28\nxor     r8d, r8d                                                       ; +0x18e, 0x140381b2e\nmov     rdx, rax                                                       ; +0x191, 0x140381b31\nmov     rcx, rbx                                                       ; +0x194, 0x140381b34\ncall    cs:?create@CCSequence@cocos2d@@SAPEAV12@PEAVCCFiniteTimeAction@2@ZZ; cocos2d::CCSequence::create(cocos2d::CCFiniteTimeAction *,...) ; +0x197, 0x140381b37\nmov     rdx, rax                                                       ; +0x19d, 0x140381b3d\nmov     rcx, rdi                                                       ; +0x1a0, 0x140381b40\ncall    cs:?runAction@CCNode@cocos2d@@QEAAPEAVCCAction@2@PEAV32@@Z; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x1a3, 0x140381b43\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x1a9, 0x140381b49\nadd     rsp, 20h                                                       ; +0x1ae, 0x140381b4e\npop     rdi                                                            ; +0x1b2, 0x140381b52\nretn                                                                   ; +0x1b3, 0x140381b53", "xrefs": ["GJGarageLayer::keyBackClicked @ 0x140381b69", "GJGarageLayer::init @ 0x14037c3f5", "<???> @ 0x140922964"], "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"}