{"type": "func", "start": 4297084960, "end": 4297085144, "name": "GJBaseGameLayer::unclaimCustomParticle", "pseudocode": "// \n// GJBaseGameLayer::unclaimCustomParticle from 0x100205020 to 0x1002050d8 (184 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x10078fe40\n// > <???> @ 0x1007c0c58\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 GJBaseGameLayer::unclaimCustomParticle(__int64 result, __int64 a2, __int64 a3)\n{\n  __int64 v5; // x20\n  __int64 v6; // x22\n  __int64 v7; // x21\n  __int64 v8; // x0\n\n  if ( a3 )\n  {\n    v5 = result;\n    result = cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(result + 12168), a2);\n    if ( result )\n    {\n      v6 = result;\n      v7 = cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(v5 + 12224), a2);\n      if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a3 + 896LL))(a3) )\n        v8 = *(_QWORD *)(v5 + 12176);\n      else\n        v8 = v6;\n      sub_10024A2D0(v8, a3);\n      sub_10024A444(v7, a3, 1);\n      cocos2d::CCParticleSystem::stopSystem((cocos2d::CCParticleSystem *)a3);\n      *(_BYTE *)(a3 + 689) = 1;\n      return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a3 + 1568LL))(a3, 1);\n    }\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::unclaimCustomParticle from 0x100205020 to 0x1002050d8 (184 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x10078fe40\n; > <???> @ 0x1007c0c58\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\nSTP             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x100205020\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x100205024\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x100205028\nADD             X29, SP, #0x20                                         ; +0xc, 0x10020502c\nCBZ             X2, loc_10020507C                                      ; +0x10, 0x100205030\nMOV             X19, X2                                                ; +0x14, 0x100205034\nMOV             X21, X1                                                ; +0x18, 0x100205038\nMOV             X20, X0                                                ; +0x1c, 0x10020503c\nLDR             X0, [X0,#0x2F88]                                       ; +0x20, 0x100205040\nBL              cocos2d__CCDictionary__objectForKey_1                  ; +0x24, 0x100205044\nCBZ             X0, loc_10020507C                                      ; +0x28, 0x100205048\nMOV             X22, X0                                                ; +0x2c, 0x10020504c\nLDR             X0, [X20,#0x2FC0]                                      ; +0x30, 0x100205050\nMOV             X1, X21                                                ; +0x34, 0x100205054\nBL              cocos2d__CCDictionary__objectForKey_1                  ; +0x38, 0x100205058\nMOV             X21, X0                                                ; +0x3c, 0x10020505c\nLDR             X8, [X19]                                              ; +0x40, 0x100205060\nLDR             X8, [X8,#0x380]                                        ; +0x44, 0x100205064\nMOV             X0, X19                                                ; +0x48, 0x100205068\nBLR             X8                                                     ; +0x4c, 0x10020506c\nCBZ             W0, loc_10020508C                                      ; +0x50, 0x100205070\nLDR             X0, [X20,#0x2F90]                                      ; +0x54, 0x100205074\nB               loc_100205090                                          ; +0x58, 0x100205078\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x5c, 0x10020507c\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x60, 0x100205080\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x64, 0x100205084\nRET                                                                    ; +0x68, 0x100205088\nMOV             X0, X22                                                ; +0x6c, 0x10020508c\nMOV             X1, X19                                                ; +0x70, 0x100205090\nBL              sub_10024A2D0                                          ; +0x74, 0x100205094\nMOV             W20, #1                                                ; +0x78, 0x100205098\nMOV             X0, X21                                                ; +0x7c, 0x10020509c\nMOV             X1, X19                                                ; +0x80, 0x1002050a0\nMOV             W2, #1                                                 ; +0x84, 0x1002050a4\nBL              sub_10024A444                                          ; +0x88, 0x1002050a8\nMOV             X0, X19                                                ; +0x8c, 0x1002050ac\nBL              cocos2d__CCParticleSystem__stopSystem                  ; +0x90, 0x1002050b0\nSTRB            W20, [X19,#0x2B1]                                      ; +0x94, 0x1002050b4\nLDR             X8, [X19]                                              ; +0x98, 0x1002050b8\nLDR             X2, [X8,#0x620]                                        ; +0x9c, 0x1002050bc\nMOV             X0, X19                                                ; +0xa0, 0x1002050c0\nMOV             W1, #1                                                 ; +0xa4, 0x1002050c4\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0xa8, 0x1002050c8\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0xac, 0x1002050cc\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0xb0, 0x1002050d0\nBR              X2                                                     ; +0xb4, 0x1002050d4", "xrefs": ["<???> @ 0x10078fe40", "<???> @ 0x1007c0c58"], "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"}