{"type": "func", "start": 4296844412, "end": 4296844776, "name": "GJShopLayer::onBack", "pseudocode": "// \n// GJShopLayer::onBack from 0x1001ca47c to 0x1001ca5e8 (364 bytes)\n// \n// 3 xrefs:\n// > GJShopLayer::keyBackClicked @ 0x1001cb240\n// > sub_1001CB244 @ 0x1001cb248\n// > GJShopLayer::init @ 0x1001c9810\n// \n// This function is hookable on this platform (idp: arm, 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:00:19 +0000\n// \n\nvoid __fastcall GJShopLayer::onBack(__int64 a1)\n{\n  __int64 v2; // x0\n  __int64 v3; // x0\n  __int64 v4; // x0\n  __int64 v5; // x0\n  void *v6; // x20\n  int v7; // w0\n  _DWORD *v8; // x0\n  __int64 v9; // x0\n  float *v10; // x0\n  __int64 v11; // x0\n  __int64 v12; // x20\n  __int64 v13; // x0\n  __int64 v14; // x0\n  __int64 v15; // x0\n  __int64 v16; // x19\n  void *__p[2]; // [xsp+18h] [xbp-38h] BYREF\n  char v18; // [xsp+2Fh] [xbp-21h]\n  float v19; // [xsp+30h] [xbp-20h] BYREF\n  __int64 v20; // [xsp+38h] [xbp-18h] BYREF\n\n  if ( (*(_BYTE *)(a1 + 432) & 1) == 0 )\n  {\n    *(_BYTE *)(a1 + 432) = 1;\n    v2 = cocos2d::CCDirector::sharedDirector(a1);\n    v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 160LL))(v2);\n    cocos2d::CCTouchDispatcher::unregisterForcePrio(v3, a1);\n    cocos2d::CCObject::retain(a1);\n    v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 520LL))(a1);\n    if ( *(_DWORD *)(a1 + 456) )\n      v5 = SecretRewardsLayer::scene(1);\n    else\n      v5 = GJGarageLayer::scene(v4);\n    v6 = (void *)v5;\n    if ( v5 )\n    {\n      v7 = cocos2d::CCDirector::sharedDirector(v5);\n      if ( (unsigned int)cocos2d::CCDirector::replaceScene(v7, v6) )\n      {\n        (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1072LL))(a1, 0);\n        (*(void (__fastcall **)(void *, __int64, __int64))(*(_QWORD *)v6 + 464LL))(v6, a1, 1000);\n        v8 = cocos2d::CCObject::release((_DWORD *)a1);\n        v9 = cocos2d::CCDirector::sharedDirector(v8);\n        cocos2d::CCDirector::getWinSize(&v20, v9);\n        v10 = sub_1000262BC(&v19, 0.0, *((float *)&v20 + 1));\n        v11 = cocos2d::CCMoveTo::create(v10, 0.3);\n        v12 = cocos2d::CCEaseIn::create(v11, 2.0);\n        cocos2d::CCCallFunc::create(a1, 536, 1);\n        v13 = sub_10021D420(v12);\n        cocos2d::CCNode::runAction(a1, v13);\n        LODWORD(v12) = *(_DWORD *)(a1 + 456);\n        v15 = GameManager::sharedState(v14);\n        v16 = v15;\n        if ( (_DWORD)v12 )\n        {\n          sub_100009900(__p, \"secretLoop.mp3\");\n          GameManager::fadeInMusic(v16, __p);\n          if ( v18 < 0 )\n            operator delete(__p[0]);\n        }\n        else\n        {\n          GameManager::fadeInMenuMusic(v15);\n        }\n      }\n    }\n  }\n}", "assembly": "; \n; GJShopLayer::onBack from 0x1001ca47c to 0x1001ca5e8 (364 bytes)\n; \n; 3 xrefs:\n; > GJShopLayer::keyBackClicked @ 0x1001cb240\n; > sub_1001CB244 @ 0x1001cb248\n; > GJShopLayer::init @ 0x1001c9810\n; \n; This function is hookable on this platform (idp: arm, 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:00:19 +0000\n; \nSUB             SP, SP, #0x60                                          ; +0x0, 0x1001ca47c\nSTP             X20, X19, [SP,#0x50+var_10]                            ; +0x4, 0x1001ca480\nSTP             X29, X30, [SP,#0x50+var_s0]                            ; +0x8, 0x1001ca484\nADD             X29, SP, #0x50                                         ; +0xc, 0x1001ca488\nLDRB            W8, [X0,#0x1B0]                                        ; +0x10, 0x1001ca48c\nTBNZ            W8, #0, loc_1001CA5D8                                  ; +0x14, 0x1001ca490\nMOV             X19, X0                                                ; +0x18, 0x1001ca494\nMOV             W8, #1                                                 ; +0x1c, 0x1001ca498\nSTRB            W8, [X0,#0x1B0]                                        ; +0x20, 0x1001ca49c\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x24, 0x1001ca4a0\nLDR             X8, [X0]                                               ; +0x28, 0x1001ca4a4\nLDR             X8, [X8,#0xA0]                                         ; +0x2c, 0x1001ca4a8\nBLR             X8                                                     ; +0x30, 0x1001ca4ac\nMOV             X1, X19                                                ; +0x34, 0x1001ca4b0\nBL              cocos2d__CCTouchDispatcher__unregisterForcePrio        ; +0x38, 0x1001ca4b4\nMOV             X0, X19                                                ; +0x3c, 0x1001ca4b8\nBL              cocos2d__CCObject__retain                              ; +0x40, 0x1001ca4bc\nLDR             X8, [X19]                                              ; +0x44, 0x1001ca4c0\nLDR             X8, [X8,#0x208]                                        ; +0x48, 0x1001ca4c4\nMOV             X0, X19                                                ; +0x4c, 0x1001ca4c8\nBLR             X8                                                     ; +0x50, 0x1001ca4cc\nLDR             W8, [X19,#0x1C8]                                       ; +0x54, 0x1001ca4d0\nCBZ             W8, loc_1001CA4E4                                      ; +0x58, 0x1001ca4d4\nMOV             W0, #1                                                 ; +0x5c, 0x1001ca4d8\nBL              SecretRewardsLayer__scene                              ; +0x60, 0x1001ca4dc\nB               loc_1001CA4E8                                          ; +0x64, 0x1001ca4e0\nBL              GJGarageLayer__scene                                   ; +0x68, 0x1001ca4e4\nMOV             X20, X0                                                ; +0x6c, 0x1001ca4e8\nCBZ             X0, loc_1001CA5D8                                      ; +0x70, 0x1001ca4ec\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x74, 0x1001ca4f0\nMOV             X1, X20; lpsrc                                         ; +0x78, 0x1001ca4f4\nBL              cocos2d__CCDirector__replaceScene                      ; +0x7c, 0x1001ca4f8\nCBZ             W0, loc_1001CA5D8                                      ; +0x80, 0x1001ca4fc\nLDR             X8, [X19]                                              ; +0x84, 0x1001ca500\nLDR             X8, [X8,#0x430]                                        ; +0x88, 0x1001ca504\nMOV             X0, X19                                                ; +0x8c, 0x1001ca508\nMOV             W1, #0                                                 ; +0x90, 0x1001ca50c\nBLR             X8                                                     ; +0x94, 0x1001ca510\nLDR             X8, [X20]                                              ; +0x98, 0x1001ca514\nLDR             X8, [X8,#0x1D0]                                        ; +0x9c, 0x1001ca518\nMOV             X0, X20                                                ; +0xa0, 0x1001ca51c\nMOV             X1, X19                                                ; +0xa4, 0x1001ca520\nMOV             W2, #0x3E8                                             ; +0xa8, 0x1001ca524\nBLR             X8                                                     ; +0xac, 0x1001ca528\nMOV             X0, X19                                                ; +0xb0, 0x1001ca52c\nBL              cocos2d__CCObject__release                             ; +0xb4, 0x1001ca530\nBL              cocos2d__CCDirector__sharedDirector                    ; +0xb8, 0x1001ca534\nSUB             X8, X29, #-var_18                                      ; +0xbc, 0x1001ca538\nBL              cocos2d__CCDirector__getWinSize                        ; +0xc0, 0x1001ca53c\nLDUR            S1, [X29,#var_14]                                      ; +0xc4, 0x1001ca540\nSUB             X0, X29, #-var_20                                      ; +0xc8, 0x1001ca544\nFMOV            S0, WZR                                                ; +0xcc, 0x1001ca548\nBL              sub_1000262BC                                          ; +0xd0, 0x1001ca54c\nADRP            X8, #dword_10075BD00@PAGE                              ; +0xd4, 0x1001ca550\nLDR             S0, [X8,#dword_10075BD00@PAGEOFF]                      ; +0xd8, 0x1001ca554\nBL              cocos2d__CCMoveTo__create                              ; +0xdc, 0x1001ca558\nFMOV            S0, #2.0                                               ; +0xe0, 0x1001ca55c\nBL              cocos2d__CCEaseIn__create                              ; +0xe4, 0x1001ca560\nMOV             X20, X0                                                ; +0xe8, 0x1001ca564\nMOV             X0, X19                                                ; +0xec, 0x1001ca568\nMOV             W1, #0x218                                             ; +0xf0, 0x1001ca56c\nMOV             W2, #1                                                 ; +0xf4, 0x1001ca570\nBL              cocos2d__CCCallFunc__create                            ; +0xf8, 0x1001ca574\nSTP             X0, XZR, [SP,#0x50+var_50]                             ; +0xfc, 0x1001ca578\nMOV             X0, X20                                                ; +0x100, 0x1001ca57c\nBL              sub_10021D420                                          ; +0x104, 0x1001ca580\nMOV             X1, X0                                                 ; +0x108, 0x1001ca584\nMOV             X0, X19                                                ; +0x10c, 0x1001ca588\nBL              cocos2d__CCNode__runAction                             ; +0x110, 0x1001ca58c\nLDR             W20, [X19,#0x1C8]                                      ; +0x114, 0x1001ca590\nBL              GameManager__sharedState                               ; +0x118, 0x1001ca594\nMOV             X19, X0                                                ; +0x11c, 0x1001ca598\nCBZ             W20, loc_1001CA5D0                                     ; +0x120, 0x1001ca59c\nADRL            X1, aSecretloopMp3; \"secretLoop.mp3\"                   ; +0x124, 0x1001ca5a0\nADD             X0, SP, #0x50+__p; int                                 ; +0x12c, 0x1001ca5a8\nBL              sub_100009900                                          ; +0x130, 0x1001ca5ac\nADD             X1, SP, #0x50+__p                                      ; +0x134, 0x1001ca5b0\nMOV             X0, X19                                                ; +0x138, 0x1001ca5b4\nBL              GameManager__fadeInMusic                               ; +0x13c, 0x1001ca5b8\nLDRSB           W8, [SP,#0x50+var_21]                                  ; +0x140, 0x1001ca5bc\nTBZ             W8, #0x1F, loc_1001CA5D8                               ; +0x144, 0x1001ca5c0\nLDR             X0, [SP,#0x50+__p]; __p                                ; +0x148, 0x1001ca5c4\nBL              __ZdlPv; operator delete(void *)                       ; +0x14c, 0x1001ca5c8\nB               loc_1001CA5D8                                          ; +0x150, 0x1001ca5cc\nMOV             X0, X19                                                ; +0x154, 0x1001ca5d0\nBL              GameManager__fadeInMenuMusic                           ; +0x158, 0x1001ca5d4\nLDP             X29, X30, [SP,#0x50+var_s0]                            ; +0x15c, 0x1001ca5d8\nLDP             X20, X19, [SP,#0x50+var_10]                            ; +0x160, 0x1001ca5dc\nADD             SP, SP, #0x60 ; '`'                                    ; +0x164, 0x1001ca5e0\nRET                                                                    ; +0x168, 0x1001ca5e4", "xrefs": ["GJShopLayer::keyBackClicked @ 0x1001cb240", "sub_1001CB244 @ 0x1001cb248", "GJShopLayer::init @ 0x1001c9810"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}