{"type": "func", "start": 4298255456, "end": 4298255718, "name": "GJShopLayer::dGJShopLayer", "pseudocode": "// \n// GJShopLayer::dGJShopLayer from 0x100322c60 to 0x100322d66 (262 bytes)\n// \n// 4 xrefs:\n// > sub_100322D70 @ 0x100322d75\n// > sub_100322D80 @ 0x100322d8c\n// > sub_100322DA0 @ 0x100322da9\n// > sub_100322DC0 @ 0x100322dd3\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; // rax\n  cocos2d::CCTouchDispatcher *v3; // rax\n  cocos2d::CCObject *v4; // rdi\n\n  *(_QWORD *)a1 = off_1009136F8;\n  *(_QWORD *)(a1 + 320) = off_100913B90;\n  *(_QWORD *)(a1 + 328) = &off_100913C00;\n  *(_QWORD *)(a1 + 336) = off_100913C18;\n  *(_QWORD *)(a1 + 344) = off_100913C38;\n  *(_QWORD *)(a1 + 352) = off_100913C58;\n  *(_QWORD *)(a1 + 408) = &off_100913C80;\n  *(_QWORD *)(a1 + 416) = &off_100913C98;\n  *(_QWORD *)(a1 + 424) = off_100913CB0;\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  {\n    GameManager::sharedState()->m_rewardedVideoDelegate = nullptr;\n    v4 = *(cocos2d::CCObject **)(a1 + 448);\n    if ( !v4 )\n      goto LABEL_6;\n    goto LABEL_5;\n  }\n  v4 = *(cocos2d::CCObject **)(a1 + 448);\n  if ( v4 )\nLABEL_5:\n    cocos2d::CCObject::release(v4);\nLABEL_6:\n  if ( (*(_BYTE *)(a1 + 464) & 1) != 0 )\n    operator delete(*(void **)(a1 + 480));\n  return cocos2d::CCLayer::dCCLayer(a1);\n}", "assembly": "; \n; GJShopLayer::dGJShopLayer from 0x100322c60 to 0x100322d66 (262 bytes)\n; \n; 4 xrefs:\n; > sub_100322D70 @ 0x100322d75\n; > sub_100322D80 @ 0x100322d8c\n; > sub_100322DA0 @ 0x100322da9\n; > sub_100322DC0 @ 0x100322dd3\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\npush    rbp                                                            ; +0x0, 0x100322c60\nmov     rbp, rsp                                                       ; +0x1, 0x100322c61\npush    rbx                                                            ; +0x4, 0x100322c64\npush    rax                                                            ; +0x5, 0x100322c65\nmov     rbx, rdi                                                       ; +0x6, 0x100322c66\nlea     rax, off_1009136F8                                             ; +0x9, 0x100322c69\nmov     [rdi], rax                                                     ; +0x10, 0x100322c70\nlea     rax, off_100913B90                                             ; +0x13, 0x100322c73\nmov     [rdi+140h], rax                                                ; +0x1a, 0x100322c7a\nlea     rax, off_100913C00                                             ; +0x21, 0x100322c81\nmov     [rdi+148h], rax                                                ; +0x28, 0x100322c88\nlea     rax, off_100913C18                                             ; +0x2f, 0x100322c8f\nmov     [rdi+150h], rax                                                ; +0x36, 0x100322c96\nlea     rax, off_100913C38                                             ; +0x3d, 0x100322c9d\nmov     [rdi+158h], rax                                                ; +0x44, 0x100322ca4\nlea     rax, off_100913C58                                             ; +0x4b, 0x100322cab\nmov     [rdi+160h], rax                                                ; +0x52, 0x100322cb2\nlea     rax, off_100913C80                                             ; +0x59, 0x100322cb9\nmov     [rdi+198h], rax                                                ; +0x60, 0x100322cc0\nlea     rax, off_100913C98                                             ; +0x67, 0x100322cc7\nmov     [rdi+1A0h], rax                                                ; +0x6e, 0x100322cce\nlea     rax, off_100913CB0                                             ; +0x75, 0x100322cd5\nmov     [rdi+1A8h], rax                                                ; +0x7c, 0x100322cdc\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x83, 0x100322ce3\nmov     rcx, [rax]                                                     ; +0x88, 0x100322ce8\nmov     rdi, rax                                                       ; +0x8b, 0x100322ceb\ncall    qword ptr [rcx+0A0h]                                           ; +0x8e, 0x100322cee\nmov     rdi, rax                                                       ; +0x94, 0x100322cf4\nmov     rsi, rbx                                                       ; +0x97, 0x100322cf7\ncall    cocos2d__CCTouchDispatcher__unregisterForcePrio                ; +0x9a, 0x100322cfa\ncall    GameManager__sharedState                                       ; +0x9f, 0x100322cff\nlea     rcx, [rbx+1A8h]                                                ; +0xa4, 0x100322d04\ncmp     [rax+4A8h], rcx                                                ; +0xab, 0x100322d0b\njz      short loc_100322D22                                            ; +0xb2, 0x100322d12\nmov     rdi, [rbx+1C0h]                                                ; +0xb4, 0x100322d14\ntest    rdi, rdi                                                       ; +0xbb, 0x100322d1b\njnz     short loc_100322D3E                                            ; +0xbe, 0x100322d1e\njmp     short loc_100322D43                                            ; +0xc0, 0x100322d20\ncall    GameManager__sharedState                                       ; +0xc2, 0x100322d22\nmov     qword ptr [rax+4A8h], 0                                        ; +0xc7, 0x100322d27\nmov     rdi, [rbx+1C0h]                                                ; +0xd2, 0x100322d32\ntest    rdi, rdi                                                       ; +0xd9, 0x100322d39\njz      short loc_100322D43                                            ; +0xdc, 0x100322d3c\ncall    cocos2d__CCObject__release                                     ; +0xde, 0x100322d3e\ntest    byte ptr [rbx+1D0h], 1                                         ; +0xe3, 0x100322d43\njz      short loc_100322D58                                            ; +0xea, 0x100322d4a\nmov     rdi, [rbx+1E0h]; __p                                           ; +0xec, 0x100322d4c\ncall    __ZdlPv; operator delete(void *)                               ; +0xf3, 0x100322d53\nmov     rdi, rbx                                                       ; +0xf8, 0x100322d58\nadd     rsp, 8                                                         ; +0xfb, 0x100322d5b\npop     rbx                                                            ; +0xff, 0x100322d5f\npop     rbp                                                            ; +0x100, 0x100322d60\njmp     cocos2d__CCLayer__dCCLayer                                     ; +0x101, 0x100322d61", "xrefs": ["sub_100322D70 @ 0x100322d75", "sub_100322D80 @ 0x100322d8c", "sub_100322DA0 @ 0x100322da9", "sub_100322DC0 @ 0x100322dd3"], "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"}