{"type": "func", "start": 4637142, "end": 4637250, "name": "GJBaseGameLayer::unclaimCustomParticle", "pseudocode": "// \n// GJBaseGameLayer::unclaimCustomParticle from 0x46c1d6 to 0x46c242 (108 bytes)\n// \n// 0 xrefs:\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\nint __fastcall GJBaseGameLayer::unclaimCustomParticle(int result, const std::string *a2, int *a3)\n{\n  int v3; // r5\n  cocos2d::CCArray *v6; // r6\n  cocos2d::CCArray *v7; // r7\n  cocos2d::CCArray *v8; // r0\n  int v9; // r3\n\n  v3 = result;\n  if ( a3 )\n  {\n    result = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(result + 10796), a2);\n    v6 = (cocos2d::CCArray *)result;\n    if ( result )\n    {\n      v7 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(v3 + 10832), a2);\n      if ( (*(int (__fastcall **)(int *))(*a3 + 448))(a3) )\n        v8 = *(cocos2d::CCArray **)(v3 + 10800);\n      else\n        v8 = v6;\n      cocos2d::CCArray::addObject(v8, (cocos2d::CCObject *)a3);\n      cocos2d::CCArray::removeObject(v7, (cocos2d::CCObject *)a3, 1);\n      cocos2d::CCParticleSystem::stopSystem((cocos2d::CCParticleSystem *)a3);\n      v9 = *a3;\n      *((_BYTE *)a3 + 593) = 1;\n      return (*(int (__fastcall **)(int *))(v9 + 784))(a3);\n    }\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::unclaimCustomParticle from 0x46c1d6 to 0x46c242 (108 bytes)\n; \n; 0 xrefs:\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.W          {R4-R8,LR}                                             ; +0x0, 0x46c1d6\nMOV             R5, R0                                                 ; +0x4, 0x46c1da\nMOV             R7, R1                                                 ; +0x6, 0x46c1dc\nMOV             R4, R2                                                 ; +0x8, 0x46c1de\nCBZ             R2, locret_46C23E                                      ; +0xa, 0x46c1e0\nMOVW            R3, #0x2A2C                                            ; +0xc, 0x46c1e2\nLDR             R0, [R0,R3]                                            ; +0x10, 0x46c1e6\nBL              _ZN7cocos2d12CCDictionary12objectForKeyERKSs; cocos2d::CCDictionary::objectForKey(std::string const&) ; +0x12, 0x46c1e8\nMOV             R6, R0                                                 ; +0x16, 0x46c1ec\nCBZ             R0, locret_46C23E                                      ; +0x18, 0x46c1ee\nMOVW            R3, #0x2A50                                            ; +0x1a, 0x46c1f0\nMOV             R1, R7                                                 ; +0x1e, 0x46c1f4\nLDR             R0, [R5,R3]                                            ; +0x20, 0x46c1f6\nBL              _ZN7cocos2d12CCDictionary12objectForKeyERKSs; cocos2d::CCDictionary::objectForKey(std::string const&) ; +0x22, 0x46c1f8\nLDR             R3, [R4]                                               ; +0x26, 0x46c1fc\nLDR.W           R3, [R3,#0x1C0]                                        ; +0x28, 0x46c1fe\nMOV             R7, R0                                                 ; +0x2c, 0x46c202\nMOV             R0, R4                                                 ; +0x2e, 0x46c204\nBLX             R3                                                     ; +0x30, 0x46c206\nCBZ             R0, loc_46C212                                         ; +0x32, 0x46c208\nMOVW            R3, #0x2A30                                            ; +0x34, 0x46c20a\nLDR             R0, [R5,R3]                                            ; +0x38, 0x46c20e\nB               loc_46C214                                             ; +0x3a, 0x46c210\nMOV             R0, R6; this                                           ; +0x3c, 0x46c212\nMOV             R1, R4; cocos2d::CCObject *                            ; +0x3e, 0x46c214\nBL              _ZN7cocos2d7CCArray9addObjectEPNS_8CCObjectE; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x40, 0x46c216\nMOV             R1, R4; cocos2d::CCObject *                            ; +0x44, 0x46c21a\nMOV             R0, R7; this                                           ; +0x46, 0x46c21c\nMOVS            R2, #1; bool                                           ; +0x48, 0x46c21e\nBL              _ZN7cocos2d7CCArray12removeObjectEPNS_8CCObjectEb; cocos2d::CCArray::removeObject(cocos2d::CCObject *,bool) ; +0x4a, 0x46c220\nMOV             R0, R4; this                                           ; +0x4e, 0x46c224\nBL              _ZN7cocos2d16CCParticleSystem10stopSystemEv; cocos2d::CCParticleSystem::stopSystem(void) ; +0x50, 0x46c226\nLDR             R3, [R4]                                               ; +0x54, 0x46c22a\nMOVS            R1, #1                                                 ; +0x56, 0x46c22c\nMOV             R0, R4                                                 ; +0x58, 0x46c22e\nSTRB.W          R1, [R4,#0x251]                                        ; +0x5a, 0x46c230\nLDR.W           R3, [R3,#0x310]                                        ; +0x5e, 0x46c234\nPOP.W           {R4-R8,LR}                                             ; +0x62, 0x46c238\nBX              R3                                                     ; +0x66, 0x46c23c\nPOP.W           {R4-R8,PC}                                             ; +0x68, 0x46c23e", "xrefs": [], "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"}