{"type": "func", "start": 4297727964, "end": 4297728148, "name": "GJBaseGameLayer::unclaimCustomParticle", "pseudocode": "// \n// GJBaseGameLayer::unclaimCustomParticle from 0x1002a1fdc to 0x1002a2094 (184 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1008df9f8\n// > <???> @ 0x100919080\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:02:13 +0000\n// \n\n__int64 __fastcall GJBaseGameLayer::unclaimCustomParticle(__int64 result, __int64 a2, _BYTE *a3)\n{\n  __int64 v5; // x20\n  __int64 v6; // x22\n  __int64 v7; // x21\n  __int64 v8; // x0\n  float v9; // s0\n\n  if ( a3 )\n  {\n    v5 = result;\n    result = cocos2d::CCDictionary::objectForKey(*(_QWORD *)(result + 12288), a2);\n    if ( result )\n    {\n      v6 = result;\n      v7 = cocos2d::CCDictionary::objectForKey(*(_QWORD *)(v5 + 12344), a2);\n      if ( (*(unsigned int (__fastcall **)(_BYTE *))(*(_QWORD *)a3 + 912LL))(a3) )\n        v8 = *(_QWORD *)(v5 + 12296);\n      else\n        v8 = v6;\n      sub_1002E74E0(v8, a3);\n      sub_1002E765C(v7, a3, 1);\n      v9 = cocos2d::CCParticleSystem::stopSystem((__int64)a3);\n      a3[689] = 1;\n      return (*(__int64 (__fastcall **)(_BYTE *, __int64, float))(*(_QWORD *)a3 + 1584LL))(a3, 1, v9);\n    }\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::unclaimCustomParticle from 0x1002a1fdc to 0x1002a2094 (184 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1008df9f8\n; > <???> @ 0x100919080\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:02:13 +0000\n; \nSTP             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x1002a1fdc\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1002a1fe0\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1002a1fe4\nADD             X29, SP, #0x20                                         ; +0xc, 0x1002a1fe8\nCBZ             X2, loc_1002A2038                                      ; +0x10, 0x1002a1fec\nMOV             X19, X2                                                ; +0x14, 0x1002a1ff0\nMOV             X21, X1                                                ; +0x18, 0x1002a1ff4\nMOV             X20, X0                                                ; +0x1c, 0x1002a1ff8\nLDR             X0, [X0,#0x3000]                                       ; +0x20, 0x1002a1ffc\nBL              cocos2d__CCDictionary__objectForKey                    ; +0x24, 0x1002a2000\nCBZ             X0, loc_1002A2038                                      ; +0x28, 0x1002a2004\nMOV             X22, X0                                                ; +0x2c, 0x1002a2008\nLDR             X0, [X20,#0x3038]                                      ; +0x30, 0x1002a200c\nMOV             X1, X21                                                ; +0x34, 0x1002a2010\nBL              cocos2d__CCDictionary__objectForKey                    ; +0x38, 0x1002a2014\nMOV             X21, X0                                                ; +0x3c, 0x1002a2018\nLDR             X8, [X19]                                              ; +0x40, 0x1002a201c\nLDR             X8, [X8,#0x390]                                        ; +0x44, 0x1002a2020\nMOV             X0, X19                                                ; +0x48, 0x1002a2024\nBLR             X8                                                     ; +0x4c, 0x1002a2028\nCBZ             W0, loc_1002A2048                                      ; +0x50, 0x1002a202c\nLDR             X0, [X20,#0x3008]                                      ; +0x54, 0x1002a2030\nB               loc_1002A204C                                          ; +0x58, 0x1002a2034\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x5c, 0x1002a2038\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x60, 0x1002a203c\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x64, 0x1002a2040\nRET                                                                    ; +0x68, 0x1002a2044\nMOV             X0, X22                                                ; +0x6c, 0x1002a2048\nMOV             X1, X19                                                ; +0x70, 0x1002a204c\nBL              sub_1002E74E0                                          ; +0x74, 0x1002a2050\nMOV             W20, #1                                                ; +0x78, 0x1002a2054\nMOV             X0, X21                                                ; +0x7c, 0x1002a2058\nMOV             X1, X19                                                ; +0x80, 0x1002a205c\nMOV             W2, #1                                                 ; +0x84, 0x1002a2060\nBL              sub_1002E765C                                          ; +0x88, 0x1002a2064\nMOV             X0, X19                                                ; +0x8c, 0x1002a2068\nBL              cocos2d__CCParticleSystem__stopSystem                  ; +0x90, 0x1002a206c\nSTRB            W20, [X19,#0x2B1]                                      ; +0x94, 0x1002a2070\nLDR             X8, [X19]                                              ; +0x98, 0x1002a2074\nLDR             X2, [X8,#0x630]                                        ; +0x9c, 0x1002a2078\nMOV             X0, X19                                                ; +0xa0, 0x1002a207c\nMOV             W1, #1                                                 ; +0xa4, 0x1002a2080\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0xa8, 0x1002a2084\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0xac, 0x1002a2088\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0xb0, 0x1002a208c\nBR              X2                                                     ; +0xb4, 0x1002a2090", "xrefs": ["<???> @ 0x1008df9f8", "<???> @ 0x100919080"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}