{"type": "func", "start": 5373560304, "end": 5373560517, "name": "ParticleGameObject::unclaimParticle", "pseudocode": "// \n// ParticleGameObject::unclaimParticle from 0x1404a05f0 to 0x1404a06c5 (213 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x14060d8d8\n// > <???> @ 0x1406dc50c\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// Hidden C++ exception states: #wind=2\nvoid ParticleGameObject::unclaimParticle(ParticleGameObject *a1)\n{\n  bool v2; // zf\n  __int64 v3; // rcx\n  __int64 v4; // rcx\n  void *v5; // [rsp+30h] [rbp+8h]\n  void *v6; // [rsp+30h] [rbp+8h]\n\n  if ( a1->m_particleData.m_data.m_size && a1->m_particle )\n  {\n    v2 = !a1->m_editorEnabled;\n    v3 = qword_1406C2ED8;\n    if ( v2 )\n    {\n      if ( !qword_1406C2ED8 )\n      {\n        v6 = operator new(0x668u);\n        qword_1406C2ED8 = sub_14017AB00((__int64)v6);\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n        v3 = qword_1406C2ED8;\n      }\n      v4 = *(_QWORD *)(v3 + 520);\n    }\n    else\n    {\n      if ( !qword_1406C2ED8 )\n      {\n        v5 = operator new(0x668u);\n        qword_1406C2ED8 = sub_14017AB00((__int64)v5);\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n        v3 = qword_1406C2ED8;\n      }\n      v4 = *(_QWORD *)(v3 + 528);\n    }\n    (*(void (__fastcall **)(__int64, std::string *, cocos2d::CCParticleSystemQuad *))(*(_QWORD *)v4 + 1312LL))(\n      v4,\n      &a1->m_particleData,\n      a1->m_particle);\n    a1->m_particle = nullptr;\n  }\n}", "assembly": "; \n; ParticleGameObject::unclaimParticle from 0x1404a05f0 to 0x1404a06c5 (213 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x14060d8d8\n; > <???> @ 0x1406dc50c\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    rbx                                                            ; +0x0, 0x1404a05f0\nsub     rsp, 20h                                                       ; +0x2, 0x1404a05f2\nmov     rbx, rcx                                                       ; +0x6, 0x1404a05f6\ncmp     qword ptr [rcx+5C8h], 0                                        ; +0x9, 0x1404a05f9\njz      loc_1404A06BF                                                  ; +0x11, 0x1404a0601\ncmp     qword ptr [rcx+308h], 0                                        ; +0x17, 0x1404a0607\njz      loc_1404A06BF                                                  ; +0x1f, 0x1404a060f\ncmp     byte ptr [rcx+28Dh], 0                                         ; +0x25, 0x1404a0615\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x2c, 0x1404a061c\njz      short loc_1404A0662                                            ; +0x33, 0x1404a0623\ntest    rcx, rcx                                                       ; +0x35, 0x1404a0625\njnz     short loc_1404A0659                                            ; +0x38, 0x1404a0628\nmov     ecx, 668h; Size                                                ; +0x3a, 0x1404a062a\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x3f, 0x1404a062f\nmov     [rsp+28h+arg_0], rax                                           ; +0x44, 0x1404a0634\nmov     rcx, rax                                                       ; +0x49, 0x1404a0639\ncall    sub_14017AB00                                                  ; +0x4c, 0x1404a063c\nnop                                                                    ; +0x51, 0x1404a0641\nmov     cs:qword_1406C2ED8, rax                                        ; +0x52, 0x1404a0642\nmov     rdx, [rax]                                                     ; +0x59, 0x1404a0649\nmov     rcx, rax                                                       ; +0x5c, 0x1404a064c\ncall    qword ptr [rdx+48h]                                            ; +0x5f, 0x1404a064f\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x62, 0x1404a0652\nmov     rcx, [rcx+210h]                                                ; +0x69, 0x1404a0659\njmp     short loc_1404A069D                                            ; +0x70, 0x1404a0660\ntest    rcx, rcx                                                       ; +0x72, 0x1404a0662\njnz     short loc_1404A0696                                            ; +0x75, 0x1404a0665\nmov     ecx, 668h; Size                                                ; +0x77, 0x1404a0667\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x7c, 0x1404a066c\nmov     [rsp+28h+arg_0], rax                                           ; +0x81, 0x1404a0671\nmov     rcx, rax                                                       ; +0x86, 0x1404a0676\ncall    sub_14017AB00                                                  ; +0x89, 0x1404a0679\nnop                                                                    ; +0x8e, 0x1404a067e\nmov     cs:qword_1406C2ED8, rax                                        ; +0x8f, 0x1404a067f\nmov     rdx, [rax]                                                     ; +0x96, 0x1404a0686\nmov     rcx, rax                                                       ; +0x99, 0x1404a0689\ncall    qword ptr [rdx+48h]                                            ; +0x9c, 0x1404a068c\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x9f, 0x1404a068f\nmov     rcx, [rcx+208h]                                                ; +0xa6, 0x1404a0696\nmov     rax, [rcx]                                                     ; +0xad, 0x1404a069d\nmov     r8, [rbx+308h]                                                 ; +0xb0, 0x1404a06a0\nlea     rdx, [rbx+5B8h]                                                ; +0xb7, 0x1404a06a7\ncall    qword ptr [rax+520h]                                           ; +0xbe, 0x1404a06ae\nmov     qword ptr [rbx+308h], 0                                        ; +0xc4, 0x1404a06b4\nadd     rsp, 20h                                                       ; +0xcf, 0x1404a06bf\npop     rbx                                                            ; +0xd3, 0x1404a06c3\nretn                                                                   ; +0xd4, 0x1404a06c4", "xrefs": ["<???> @ 0x14060d8d8", "<???> @ 0x1406dc50c"], "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"}