{"type": "func", "start": 4296401696, "end": 4296401863, "name": "GJBaseGameLayer::unclaimCustomParticle", "pseudocode": "// \n// GJBaseGameLayer::unclaimCustomParticle from 0x10015e320 to 0x10015e3c7 (167 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1008b7400\n// > <???> @ 0x1008c1980\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\nvoid __fastcall GJBaseGameLayer::unclaimCustomParticle(_QWORD *a1, __int64 a2, __int64 a3)\n{\n  __int64 v4; // rax\n  __int64 v5; // r12\n  __int64 v6; // r15\n  __int64 v7; // rdi\n\n  if ( a3 )\n  {\n    v4 = cocos2d::CCDictionary::objectForKey_1(a1[1516], a2);\n    if ( v4 )\n    {\n      v5 = v4;\n      v6 = cocos2d::CCDictionary::objectForKey_1(a1[1523], a2);\n      if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a3 + 896LL))(a3) )\n        v7 = a1[1517];\n      else\n        v7 = v5;\n      sub_10071FCD0(v7, a3);\n      sub_100720220(v6, a3, 1);\n      cocos2d::CCParticleSystem::stopSystem((cocos2d::CCParticleSystem *)a3);\n      *(_BYTE *)(a3 + 689) = 1;\n      (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a3 + 1568LL))(a3, 1);\n    }\n  }\n}", "assembly": "; \n; GJBaseGameLayer::unclaimCustomParticle from 0x10015e320 to 0x10015e3c7 (167 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1008b7400\n; > <???> @ 0x1008c1980\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, 0x10015e320\nmov     rbp, rsp                                                       ; +0x1, 0x10015e321\npush    r15                                                            ; +0x4, 0x10015e324\npush    r14                                                            ; +0x6, 0x10015e326\npush    r12                                                            ; +0x8, 0x10015e328\npush    rbx                                                            ; +0xa, 0x10015e32a\ntest    rdx, rdx                                                       ; +0xb, 0x10015e32b\njz      short loc_10015E378                                            ; +0xe, 0x10015e32e\nmov     rbx, rdx                                                       ; +0x10, 0x10015e330\nmov     r15, rsi                                                       ; +0x13, 0x10015e333\nmov     r14, rdi                                                       ; +0x16, 0x10015e336\nmov     rdi, [rdi+2F60h]                                               ; +0x19, 0x10015e339\ncall    cocos2d__CCDictionary__objectForKey_1                          ; +0x20, 0x10015e340\ntest    rax, rax                                                       ; +0x25, 0x10015e345\njz      short loc_10015E378                                            ; +0x28, 0x10015e348\nmov     r12, rax                                                       ; +0x2a, 0x10015e34a\nmov     rdi, [r14+2F98h]                                               ; +0x2d, 0x10015e34d\nmov     rsi, r15                                                       ; +0x34, 0x10015e354\ncall    cocos2d__CCDictionary__objectForKey_1                          ; +0x37, 0x10015e357\nmov     r15, rax                                                       ; +0x3c, 0x10015e35c\nmov     rax, [rbx]                                                     ; +0x3f, 0x10015e35f\nmov     rdi, rbx                                                       ; +0x42, 0x10015e362\ncall    qword ptr [rax+380h]                                           ; +0x45, 0x10015e365\ntest    eax, eax                                                       ; +0x4b, 0x10015e36b\njz      short loc_10015E381                                            ; +0x4d, 0x10015e36d\nmov     rdi, [r14+2F68h]                                               ; +0x4f, 0x10015e36f\njmp     short loc_10015E384                                            ; +0x56, 0x10015e376\npop     rbx                                                            ; +0x58, 0x10015e378\npop     r12                                                            ; +0x59, 0x10015e379\npop     r14                                                            ; +0x5b, 0x10015e37b\npop     r15                                                            ; +0x5d, 0x10015e37d\npop     rbp                                                            ; +0x5f, 0x10015e37f\nretn                                                                   ; +0x60, 0x10015e380\nmov     rdi, r12                                                       ; +0x61, 0x10015e381\nmov     rsi, rbx                                                       ; +0x64, 0x10015e384\ncall    sub_10071FCD0                                                  ; +0x67, 0x10015e387\nmov     rdi, r15                                                       ; +0x6c, 0x10015e38c\nmov     rsi, rbx                                                       ; +0x6f, 0x10015e38f\nmov     edx, 1                                                         ; +0x72, 0x10015e392\ncall    sub_100720220                                                  ; +0x77, 0x10015e397\nmov     rdi, rbx                                                       ; +0x7c, 0x10015e39c\ncall    cocos2d__CCParticleSystem__stopSystem                          ; +0x7f, 0x10015e39f\nmov     byte ptr [rbx+2B1h], 1                                         ; +0x84, 0x10015e3a4\nmov     rax, [rbx]                                                     ; +0x8b, 0x10015e3ab\nmov     rax, [rax+620h]                                                ; +0x8e, 0x10015e3ae\nmov     rdi, rbx                                                       ; +0x95, 0x10015e3b5\nmov     esi, 1                                                         ; +0x98, 0x10015e3b8\npop     rbx                                                            ; +0x9d, 0x10015e3bd\npop     r12                                                            ; +0x9e, 0x10015e3be\npop     r14                                                            ; +0xa0, 0x10015e3c0\npop     r15                                                            ; +0xa2, 0x10015e3c2\npop     rbp                                                            ; +0xa4, 0x10015e3c4\njmp     rax                                                            ; +0xa5, 0x10015e3c5", "xrefs": ["<???> @ 0x1008b7400", "<???> @ 0x1008c1980"], "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"}