{"type": "func", "start": 5371073152, "end": 5371073333, "name": "GJBaseGameLayer::unclaimCustomParticle", "pseudocode": "// \n// GJBaseGameLayer::unclaimCustomParticle from 0x140241280 to 0x140241335 (181 bytes)\n// \n// 5 xrefs:\n// > <???> @ 0x1405670c8\n// > <???> @ 0x1405c9cb0\n// > <???> @ 0x140681da0\n// > <???> @ 0x140681db0\n// > <???> @ 0x1406ce40c\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 v6; // rsi\n  cocos2d::CCArray *v7; // rbp\n  cocos2d::CCArray *v8; // rcx\n  __int64 v9; // rax\n  __int64 v10; // rdx\n\n  if ( a3 )\n  {\n    v6 = cocos2d::CCDictionary::objectForKey(a1[1561], a2);\n    if ( v6 )\n    {\n      v7 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(a1[1571], a2);\n      if ( (*(unsigned int (__fastcall **)(__int64 *))(*a3 + 888))(a3) )\n        v8 = (cocos2d::CCArray *)a1[1562];\n      else\n        v8 = (cocos2d::CCArray *)v6;\n      cocos2d::CCArray::addObject(v8, (struct cocos2d::CCObject *)a3);\n      cocos2d::CCArray::removeObject(v7, (struct cocos2d::CCObject *)a3, 1);\n      cocos2d::CCParticleSystem::stopSystem((cocos2d::CCParticleSystem *)a3);\n      v9 = *a3;\n      LOBYTE(v10) = 1;\n      *((_BYTE *)a3 + 697) = 1;\n      (*(void (__fastcall **)(__int64 *, __int64))(v9 + 1528))(a3, v10);\n    }\n  }\n}", "assembly": "; \n; GJBaseGameLayer::unclaimCustomParticle from 0x140241280 to 0x140241335 (181 bytes)\n; \n; 5 xrefs:\n; > <???> @ 0x1405670c8\n; > <???> @ 0x1405c9cb0\n; > <???> @ 0x140681da0\n; > <???> @ 0x140681db0\n; > <???> @ 0x1406ce40c\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\ntest    r8, r8                                                         ; +0x0, 0x140241280\njz      locret_140241334                                               ; +0x3, 0x140241283\nmov     [rsp+arg_8], rbx                                               ; +0x9, 0x140241289\nmov     [rsp+arg_10], rbp                                              ; +0xe, 0x14024128e\npush    rdi                                                            ; +0x13, 0x140241293\nsub     rsp, 20h                                                       ; +0x14, 0x140241294\nmov     rdi, rcx                                                       ; +0x18, 0x140241298\nmov     [rsp+28h+arg_0], rsi                                           ; +0x1b, 0x14024129b\nmov     rcx, [rcx+30C8h]                                               ; +0x20, 0x1402412a0\nmov     rbx, r8                                                        ; +0x27, 0x1402412a7\nmov     rbp, rdx                                                       ; +0x2a, 0x1402412aa\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::objectForKey(std::string const &) ; +0x2d, 0x1402412ad\nmov     rsi, rax                                                       ; +0x33, 0x1402412b3\ntest    rax, rax                                                       ; +0x36, 0x1402412b6\njz      short loc_140241320                                            ; +0x39, 0x1402412b9\nmov     rcx, [rdi+3118h]                                               ; +0x3b, 0x1402412bb\nmov     rdx, rbp                                                       ; +0x42, 0x1402412c2\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::objectForKey(std::string const &) ; +0x45, 0x1402412c5\nmov     rdx, [rbx]                                                     ; +0x4b, 0x1402412cb\nmov     rcx, rbx                                                       ; +0x4e, 0x1402412ce\nmov     rbp, rax                                                       ; +0x51, 0x1402412d1\ncall    qword ptr [rdx+378h]                                           ; +0x54, 0x1402412d4\nmov     rdx, rbx                                                       ; +0x5a, 0x1402412da\ntest    eax, eax                                                       ; +0x5d, 0x1402412dd\njz      short loc_1402412EA                                            ; +0x5f, 0x1402412df\nmov     rcx, [rdi+30D0h]                                               ; +0x61, 0x1402412e1\njmp     short loc_1402412ED                                            ; +0x68, 0x1402412e8\nmov     rcx, rsi                                                       ; +0x6a, 0x1402412ea\ncall    cs:?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x6d, 0x1402412ed\nmov     r8b, 1                                                         ; +0x73, 0x1402412f3\nmov     rdx, rbx                                                       ; +0x76, 0x1402412f6\nmov     rcx, rbp                                                       ; +0x79, 0x1402412f9\ncall    cs:?removeObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@_N@Z; cocos2d::CCArray::removeObject(cocos2d::CCObject *,bool) ; +0x7c, 0x1402412fc\nmov     rcx, rbx                                                       ; +0x82, 0x140241302\ncall    cs:?stopSystem@CCParticleSystem@cocos2d@@QEAAXXZ; cocos2d::CCParticleSystem::stopSystem(void) ; +0x85, 0x140241305\nmov     rax, [rbx]                                                     ; +0x8b, 0x14024130b\nmov     dl, 1                                                          ; +0x8e, 0x14024130e\nmov     rcx, rbx                                                       ; +0x90, 0x140241310\nmov     byte ptr [rbx+2B9h], 1                                         ; +0x93, 0x140241313\ncall    qword ptr [rax+5F8h]                                           ; +0x9a, 0x14024131a\nmov     rsi, [rsp+28h+arg_0]                                           ; +0xa0, 0x140241320\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xa5, 0x140241325\nmov     rbp, [rsp+28h+arg_10]                                          ; +0xaa, 0x14024132a\nadd     rsp, 20h                                                       ; +0xaf, 0x14024132f\npop     rdi                                                            ; +0xb3, 0x140241333\nretn                                                                   ; +0xb4, 0x140241334", "xrefs": ["<???> @ 0x1405670c8", "<???> @ 0x1405c9cb0", "<???> @ 0x140681da0", "<???> @ 0x140681db0", "<???> @ 0x1406ce40c"], "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"}