{"type": "func", "start": 4296320092, "end": 4296320268, "name": "GJShopLayer::dGJShopLayer", "pseudocode": "// \n// GJShopLayer::dGJShopLayer from 0x10014a45c to 0x10014a50c (176 bytes)\n// \n// 4 xrefs:\n// > j_GJShopLayer::dGJShopLayer @ 0x10014a510\n// > sub_10014A514 @ 0x10014a518\n// > sub_10014A51C @ 0x10014a524\n// > sub_10014A530 @ 0x10014a53c\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n__int64 __fastcall GJShopLayer::dGJShopLayer(__int64 a1)\n{\n  cocos2d::CCDirector *v2; // x0\n  cocos2d::CCTouchDispatcher *v3; // x0\n  cocos2d::CCObject *v4; // x0\n\n  *(_QWORD *)a1 = off_1007988A8;\n  *(_QWORD *)(a1 + 320) = off_100798D40;\n  *(_QWORD *)(a1 + 328) = &off_100798DB0;\n  *(_QWORD *)(a1 + 336) = off_100798DC8;\n  *(_QWORD *)(a1 + 344) = &off_100798DE8;\n  *(_QWORD *)(a1 + 352) = off_100798E08;\n  *(_QWORD *)(a1 + 408) = &off_100798E30;\n  *(_QWORD *)(a1 + 416) = &off_100798E48;\n  *(_QWORD *)(a1 + 424) = off_100798E60;\n  v2 = cocos2d::CCDirector::sharedDirector();\n  v3 = (cocos2d::CCTouchDispatcher *)((__int64 (__fastcall *)(cocos2d::CCDirector *))v2->getTouchDispatcher)(v2);\n  cocos2d::CCTouchDispatcher::unregisterForcePrio(v3, (cocos2d::CCObject *)a1);\n  if ( GameManager::sharedState()->m_rewardedVideoDelegate == (RewardedVideoDelegate *)(a1 + 424) )\n    GameManager::sharedState()->m_rewardedVideoDelegate = nullptr;\n  v4 = *(cocos2d::CCObject **)(a1 + 448);\n  if ( v4 )\n    cocos2d::CCObject::release(v4);\n  if ( *(char *)(a1 + 487) < 0 )\n    operator delete(*(void **)(a1 + 464));\n  return cocos2d::CCLayer::dCCLayer((_QWORD *)a1);\n}", "assembly": "; \n; GJShopLayer::dGJShopLayer from 0x10014a45c to 0x10014a50c (176 bytes)\n; \n; 4 xrefs:\n; > j_GJShopLayer::dGJShopLayer @ 0x10014a510\n; > sub_10014A514 @ 0x10014a518\n; > sub_10014A51C @ 0x10014a524\n; > sub_10014A530 @ 0x10014a53c\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x10014a45c\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x10014a460\nADD             X29, SP, #0x10                                         ; +0x8, 0x10014a464\nMOV             X19, X0                                                ; +0xc, 0x10014a468\nADRL            X8, off_1007988A8                                      ; +0x10, 0x10014a46c\nSTR             X8, [X0]                                               ; +0x18, 0x10014a474\nADD             X9, X8, #(off_100798D40 - 0x1007988A8)                 ; +0x1c, 0x10014a478\nADD             X10, X8, #(off_100798DB0 - 0x1007988A8)                ; +0x20, 0x10014a47c\nSTP             X9, X10, [X0,#0x140]                                   ; +0x24, 0x10014a480\nADD             X9, X8, #(off_100798DC8 - 0x1007988A8)                 ; +0x28, 0x10014a484\nADD             X10, X8, #(off_100798DE8 - 0x1007988A8)                ; +0x2c, 0x10014a488\nSTP             X9, X10, [X0,#0x150]                                   ; +0x30, 0x10014a48c\nADD             X9, X8, #(off_100798E08 - 0x1007988A8)                 ; +0x34, 0x10014a490\nSTR             X9, [X0,#0x160]                                        ; +0x38, 0x10014a494\nADD             X9, X8, #(off_100798E30 - 0x1007988A8)                 ; +0x3c, 0x10014a498\nADD             X10, X8, #(off_100798E48 - 0x1007988A8)                ; +0x40, 0x10014a49c\nSTP             X9, X10, [X0,#0x198]                                   ; +0x44, 0x10014a4a0\nADD             X8, X8, #(off_100798E60 - 0x1007988A8)                 ; +0x48, 0x10014a4a4\nSTR             X8, [X0,#0x1A8]                                        ; +0x4c, 0x10014a4a8\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x50, 0x10014a4ac\nLDR             X8, [X0]                                               ; +0x54, 0x10014a4b0\nLDR             X8, [X8,#0xA0]                                         ; +0x58, 0x10014a4b4\nBLR             X8                                                     ; +0x5c, 0x10014a4b8\nMOV             X1, X19                                                ; +0x60, 0x10014a4bc\nBL              cocos2d__CCTouchDispatcher__unregisterForcePrio        ; +0x64, 0x10014a4c0\nBL              GameManager__sharedState                               ; +0x68, 0x10014a4c4\nADD             X8, X19, #0x1A8                                        ; +0x6c, 0x10014a4c8\nLDR             X9, [X0,#0x4A8]                                        ; +0x70, 0x10014a4cc\nCMP             X9, X8                                                 ; +0x74, 0x10014a4d0\nB.NE            loc_10014A4E0                                          ; +0x78, 0x10014a4d4\nBL              GameManager__sharedState                               ; +0x7c, 0x10014a4d8\nSTR             XZR, [X0,#0x4A8]                                       ; +0x80, 0x10014a4dc\nLDR             X0, [X19,#0x1C0]                                       ; +0x84, 0x10014a4e0\nCBZ             X0, loc_10014A4EC                                      ; +0x88, 0x10014a4e4\nBL              cocos2d__CCObject__release                             ; +0x8c, 0x10014a4e8\nLDRSB           W8, [X19,#0x1E7]                                       ; +0x90, 0x10014a4ec\nTBZ             W8, #0x1F, loc_10014A4FC                               ; +0x94, 0x10014a4f0\nLDR             X0, [X19,#0x1D0]; __p                                  ; +0x98, 0x10014a4f4\nBL              __ZdlPv; operator delete(void *)                       ; +0x9c, 0x10014a4f8\nMOV             X0, X19                                                ; +0xa0, 0x10014a4fc\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0xa4, 0x10014a500\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0xa8, 0x10014a504\nB               cocos2d__CCLayer__dCCLayer                             ; +0xac, 0x10014a508", "xrefs": ["j_GJShopLayer::dGJShopLayer @ 0x10014a510", "sub_10014A514 @ 0x10014a518", "sub_10014A51C @ 0x10014a524", "sub_10014A530 @ 0x10014a53c"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}