{"type": "func", "start": 5372588224, "end": 5372588770, "name": "GJShopLayer::onBack", "pseudocode": "// \n// GJShopLayer::onBack from 0x1403b30c0 to 0x1403b32e2 (546 bytes)\n// \n// 3 xrefs:\n// > GJShopLayer::keyBackClicked @ 0x1403b32f9\n// > GJShopLayer::init @ 0x1403b0d8d\n// > <???> @ 0x140923c24\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:23 +0000\n// \n\n// Hidden C++ exception states: #wind=3\nvoid __fastcall GJShopLayer::onBack(__int64 a1)\n{\n  __int64 v2; // rax\n  cocos2d::CCTouchDispatcher *v3; // rax\n  __int64 v4; // rdx\n  __int64 v5; // rcx\n  __int64 v6; // r8\n  __int64 v7; // r9\n  __int64 v8; // rax\n  __int64 v9; // rcx\n  struct cocos2d::CCScene *v10; // rbx\n  cocos2d::CCDirector *v11; // rax\n  __int64 v12; // rcx\n  __int64 v13; // rax\n  const struct cocos2d::CCPoint *v14; // rax\n  struct cocos2d::CCActionInterval *v15; // rax\n  struct cocos2d::CCFiniteTimeAction *v16; // rbx\n  __int64 v17; // rax\n  struct cocos2d::CCAction *v18; // rax\n  __int64 v19; // rcx\n  __int64 v20; // rcx\n  char v21[16]; // [rsp+20h] [rbp-28h] BYREF\n  __int64 v22; // [rsp+30h] [rbp-18h]\n  __int64 v23; // [rsp+38h] [rbp-10h]\n  char v24; // [rsp+50h] [rbp+8h] BYREF\n  float v25; // [rsp+54h] [rbp+Ch]\n  char *v26; // [rsp+60h] [rbp+18h] BYREF\n  void *v27; // [rsp+68h] [rbp+20h]\n\n  if ( !*(_BYTE *)(a1 + 432) )\n  {\n    *(_BYTE *)(a1 + 432) = 1;\n    v2 = cocos2d::CCDirector::sharedDirector(a1);\n    v3 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 144LL))(v2);\n    cocos2d::CCTouchDispatcher::unregisterForcePrio(v3, (struct cocos2d::CCObject *)a1);\n    cocos2d::CCObject::retain((cocos2d::CCObject *)a1);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 512LL))(a1);\n    if ( *(_DWORD *)(a1 + 456) )\n    {\n      LOBYTE(v5) = 1;\n      v8 = SecretRewardsLayer::scene(v5);\n    }\n    else\n    {\n      v8 = GJGarageLayer::scene(v5, v4, v6, v7);\n    }\n    v10 = (struct cocos2d::CCScene *)v8;\n    if ( v8 )\n    {\n      v11 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v9);\n      if ( cocos2d::CCDirector::replaceScene(v11, v10) )\n      {\n        (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 992LL))(a1, 0);\n        (*(void (__fastcall **)(struct cocos2d::CCScene *, __int64, __int64))(*(_QWORD *)v10 + 456LL))(v10, a1, 1000);\n        cocos2d::CCObject::release((cocos2d::CCObject *)a1);\n        v13 = cocos2d::CCDirector::sharedDirector(v12);\n        cocos2d::CCDirector::getWinSize(v13, &v24);\n        cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v26, 0.0, v25);\n        v15 = cocos2d::CCMoveTo::create(0.30000001, v14);\n        v16 = cocos2d::CCEaseIn::create(v15, 2.0);\n        v17 = cocos2d::CCCallFunc::create(a1, sub_14003F5B0);\n        v18 = cocos2d::CCSequence::create(v16, v17, 0);\n        cocos2d::CCNode::runAction((cocos2d::CCNode *)a1, v18);\n        if ( *(_DWORD *)(a1 + 456) )\n        {\n          v26 = v21;\n          v21[15] = 0;\n          v22 = 14;\n          v23 = 15;\n          strcpy(v21, \"secretLoop.mp3\");\n          if ( !qword_14090BFD0 )\n          {\n            v27 = operator new(0x6E8u);\n            qword_14090BFD0 = GameManager::GameManager((__int64)v27);\n            (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n          }\n          GameManager::fadeInMusic(v19, (__int64)v21);\n        }\n        else\n        {\n          v20 = qword_14090BFD0;\n          if ( !qword_14090BFD0 )\n          {\n            v26 = (char *)operator new(0x6E8u);\n            qword_14090BFD0 = GameManager::GameManager((__int64)v26);\n            (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n            v20 = qword_14090BFD0;\n          }\n          GameManager::fadeInMenuMusic(v20);\n        }\n      }\n    }\n  }\n}", "assembly": "; \n; GJShopLayer::onBack from 0x1403b30c0 to 0x1403b32e2 (546 bytes)\n; \n; 3 xrefs:\n; > GJShopLayer::keyBackClicked @ 0x1403b32f9\n; > GJShopLayer::init @ 0x1403b0d8d\n; > <???> @ 0x140923c24\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:23 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1403b30c0\npush    rdi                                                            ; +0x5, 0x1403b30c5\nsub     rsp, 40h                                                       ; +0x6, 0x1403b30c6\nmov     rdi, rcx                                                       ; +0xa, 0x1403b30ca\ncmp     byte ptr [rcx+1B0h], 0                                         ; +0xd, 0x1403b30cd\njnz     loc_1403B32D7                                                  ; +0x14, 0x1403b30d4\nmov     byte ptr [rcx+1B0h], 1                                         ; +0x1a, 0x1403b30da\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x21, 0x1403b30e1\nmov     rdx, [rax]                                                     ; +0x27, 0x1403b30e7\nmov     rcx, rax                                                       ; +0x2a, 0x1403b30ea\ncall    qword ptr [rdx+90h]                                            ; +0x2d, 0x1403b30ed\nmov     rcx, rax                                                       ; +0x33, 0x1403b30f3\nmov     rdx, rdi                                                       ; +0x36, 0x1403b30f6\ncall    cs:?unregisterForcePrio@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCTouchDispatcher::unregisterForcePrio(cocos2d::CCObject *) ; +0x39, 0x1403b30f9\nmov     rcx, rdi                                                       ; +0x3f, 0x1403b30ff\ncall    cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x42, 0x1403b3102\nmov     rax, [rdi]                                                     ; +0x48, 0x1403b3108\nmov     rcx, rdi                                                       ; +0x4b, 0x1403b310b\ncall    qword ptr [rax+200h]                                           ; +0x4e, 0x1403b310e\ncmp     dword ptr [rdi+1C8h], 0                                        ; +0x54, 0x1403b3114\njz      short loc_1403B3126                                            ; +0x5b, 0x1403b311b\nmov     cl, 1                                                          ; +0x5d, 0x1403b311d\ncall    SecretRewardsLayer__scene                                      ; +0x5f, 0x1403b311f\njmp     short loc_1403B312B                                            ; +0x64, 0x1403b3124\ncall    GJGarageLayer__scene                                           ; +0x66, 0x1403b3126\nmov     rbx, rax                                                       ; +0x6b, 0x1403b312b\ntest    rax, rax                                                       ; +0x6e, 0x1403b312e\njz      loc_1403B32D7                                                  ; +0x71, 0x1403b3131\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x77, 0x1403b3137\nmov     rcx, rax                                                       ; +0x7d, 0x1403b313d\nmov     rdx, rbx                                                       ; +0x80, 0x1403b3140\ncall    cs:?replaceScene@CCDirector@cocos2d@@QEAA_NPEAVCCScene@2@@Z; cocos2d::CCDirector::replaceScene(cocos2d::CCScene *) ; +0x83, 0x1403b3143\ntest    al, al                                                         ; +0x89, 0x1403b3149\njz      loc_1403B32D7                                                  ; +0x8b, 0x1403b314b\nmov     rax, [rdi]                                                     ; +0x91, 0x1403b3151\nxor     edx, edx                                                       ; +0x94, 0x1403b3154\nmov     rcx, rdi                                                       ; +0x96, 0x1403b3156\ncall    qword ptr [rax+3E0h]                                           ; +0x99, 0x1403b3159\nmov     rax, [rbx]                                                     ; +0x9f, 0x1403b315f\nmov     r8d, 3E8h                                                      ; +0xa2, 0x1403b3162\nmov     rdx, rdi                                                       ; +0xa8, 0x1403b3168\nmov     rcx, rbx                                                       ; +0xab, 0x1403b316b\ncall    qword ptr [rax+1C8h]                                           ; +0xae, 0x1403b316e\nmov     rcx, rdi                                                       ; +0xb4, 0x1403b3174\ncall    cs:?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0xb7, 0x1403b3177\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xbd, 0x1403b317d\nmov     rcx, rax                                                       ; +0xc3, 0x1403b3183\nlea     rdx, [rsp+48h+arg_0]                                           ; +0xc6, 0x1403b3186\ncall    cs:?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0xcb, 0x1403b318b\nmovss   xmm2, [rsp+48h+arg_4]                                          ; +0xd1, 0x1403b3191\nxorps   xmm1, xmm1                                                     ; +0xd7, 0x1403b3197\nlea     rcx, [rsp+48h+arg_10]                                          ; +0xda, 0x1403b319a\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xdf, 0x1403b319f\nmov     rdx, rax                                                       ; +0xe5, 0x1403b31a5\nmovss   xmm0, cs:dword_140834EA0                                       ; +0xe8, 0x1403b31a8\ncall    cs:?create@CCMoveTo@cocos2d@@SAPEAV12@MAEBVCCPoint@2@@Z; cocos2d::CCMoveTo::create(float,cocos2d::CCPoint const &) ; +0xf0, 0x1403b31b0\nmovss   xmm1, cs:width                                                 ; +0xf6, 0x1403b31b6\nmov     rcx, rax                                                       ; +0xfe, 0x1403b31be\ncall    cs:?create@CCEaseIn@cocos2d@@SAPEAV12@PEAVCCActionInterval@2@M@Z; cocos2d::CCEaseIn::create(cocos2d::CCActionInterval *,float) ; +0x101, 0x1403b31c1\nmov     rbx, rax                                                       ; +0x107, 0x1403b31c7\nlea     rdx, sub_14003F5B0                                             ; +0x10a, 0x1403b31ca\nmov     rcx, rdi                                                       ; +0x111, 0x1403b31d1\ncall    cs:?create@CCCallFunc@cocos2d@@SAPEAV12@PEAVCCObject@2@P832@EAAXXZ@Z; cocos2d::CCCallFunc::create(cocos2d::CCObject *,void (cocos2d::CCObject::*)(void)) ; +0x114, 0x1403b31d4\nxor     r8d, r8d                                                       ; +0x11a, 0x1403b31da\nmov     rdx, rax                                                       ; +0x11d, 0x1403b31dd\nmov     rcx, rbx                                                       ; +0x120, 0x1403b31e0\ncall    cs:?create@CCSequence@cocos2d@@SAPEAV12@PEAVCCFiniteTimeAction@2@ZZ; cocos2d::CCSequence::create(cocos2d::CCFiniteTimeAction *,...) ; +0x123, 0x1403b31e3\nmov     rdx, rax                                                       ; +0x129, 0x1403b31e9\nmov     rcx, rdi                                                       ; +0x12c, 0x1403b31ec\ncall    cs:?runAction@CCNode@cocos2d@@QEAAPEAVCCAction@2@PEAV32@@Z; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x12f, 0x1403b31ef\ncmp     dword ptr [rdi+1C8h], 0                                        ; +0x135, 0x1403b31f5\njz      loc_1403B3294                                                  ; +0x13c, 0x1403b31fc\nlea     rax, [rsp+48h+var_28]                                          ; +0x142, 0x1403b3202\nmov     [rsp+48h+arg_10], rax                                          ; +0x147, 0x1403b3207\nmov     word ptr [rsp+48h+var_28+0Eh], 0                               ; +0x14c, 0x1403b320c\nmov     [rsp+48h+var_18], 0Eh                                          ; +0x153, 0x1403b3213\nmov     [rsp+48h+var_10], 0Fh                                          ; +0x15c, 0x1403b321c\nmovsd   xmm0, cs:qword_140781B58                                       ; +0x165, 0x1403b3225\nmovsd   qword ptr [rsp+48h+var_28], xmm0                               ; +0x16d, 0x1403b322d\nmov     eax, cs:dword_140781B60                                        ; +0x173, 0x1403b3233\nmov     dword ptr [rsp+48h+var_28+8], eax                              ; +0x179, 0x1403b3239\nmovzx   eax, cs:word_140781B64                                         ; +0x17d, 0x1403b323d\nmov     word ptr [rsp+48h+var_28+0Ch], ax                              ; +0x184, 0x1403b3244\ncmp     cs:qword_14090BFD0, 0                                          ; +0x189, 0x1403b3249\njnz     short loc_1403B327F                                            ; +0x191, 0x1403b3251\nmov     ecx, 6E8h; Size                                                ; +0x193, 0x1403b3253\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x198, 0x1403b3258\nmov     [rsp+48h+arg_18], rax                                          ; +0x19d, 0x1403b325d\nmov     rcx, rax                                                       ; +0x1a2, 0x1403b3262\ncall    GameManager__GameManager                                       ; +0x1a5, 0x1403b3265\nnop                                                                    ; +0x1aa, 0x1403b326a\nmov     cs:qword_14090BFD0, rax                                        ; +0x1ab, 0x1403b326b\nmov     rcx, [rax]                                                     ; +0x1b2, 0x1403b3272\nmov     rdx, [rcx+48h]                                                 ; +0x1b5, 0x1403b3275\nmov     rcx, rax                                                       ; +0x1b9, 0x1403b3279\ncall    rdx                                                            ; +0x1bc, 0x1403b327c\nnop                                                                    ; +0x1be, 0x1403b327e\nlea     rdx, [rsp+48h+var_28]                                          ; +0x1bf, 0x1403b327f\ncall    GameManager__fadeInMusic                                       ; +0x1c4, 0x1403b3284\nmov     rbx, [rsp+48h+arg_8]                                           ; +0x1c9, 0x1403b3289\nadd     rsp, 40h                                                       ; +0x1ce, 0x1403b328e\npop     rdi                                                            ; +0x1d2, 0x1403b3292\nretn                                                                   ; +0x1d3, 0x1403b3293\nmov     rcx, cs:qword_14090BFD0                                        ; +0x1d4, 0x1403b3294\ntest    rcx, rcx                                                       ; +0x1db, 0x1403b329b\njnz     short loc_1403B32D2                                            ; +0x1de, 0x1403b329e\nmov     ecx, 6E8h; Size                                                ; +0x1e0, 0x1403b32a0\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1e5, 0x1403b32a5\nmov     [rsp+48h+arg_10], rax                                          ; +0x1ea, 0x1403b32aa\nmov     rcx, rax                                                       ; +0x1ef, 0x1403b32af\ncall    GameManager__GameManager                                       ; +0x1f2, 0x1403b32b2\nnop                                                                    ; +0x1f7, 0x1403b32b7\nmov     cs:qword_14090BFD0, rax                                        ; +0x1f8, 0x1403b32b8\nmov     rcx, [rax]                                                     ; +0x1ff, 0x1403b32bf\nmov     rdx, [rcx+48h]                                                 ; +0x202, 0x1403b32c2\nmov     rcx, rax                                                       ; +0x206, 0x1403b32c6\ncall    rdx                                                            ; +0x209, 0x1403b32c9\nmov     rcx, cs:qword_14090BFD0                                        ; +0x20b, 0x1403b32cb\ncall    GameManager__fadeInMenuMusic                                   ; +0x212, 0x1403b32d2\nmov     rbx, [rsp+48h+arg_8]                                           ; +0x217, 0x1403b32d7\nadd     rsp, 40h                                                       ; +0x21c, 0x1403b32dc\npop     rdi                                                            ; +0x220, 0x1403b32e0\nretn                                                                   ; +0x221, 0x1403b32e1", "xrefs": ["GJShopLayer::keyBackClicked @ 0x1403b32f9", "GJShopLayer::init @ 0x1403b0d8d", "<???> @ 0x140923c24"], "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"}