{"type": "func", "start": 6442876608, "end": 6442876730, "name": "cocos2d::CCParticleSystem::createWithTotalParticles", "pseudocode": "// \n// cocos2d::CCParticleSystem::createWithTotalParticles from 0x180067ec0 to 0x180067f3a (122 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bdf00\n// \n// This function is hookable on this platform (idp: pc, 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:21:53 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nstruct cocos2d::CCParticleSystem *__fastcall cocos2d::CCParticleSystem::createWithTotalParticles(unsigned int a1)\n{\n  cocos2d::CCParticleSystem *v2; // rax\n  cocos2d::CCObject *v3; // rbx\n\n  v2 = (cocos2d::CCParticleSystem *)sub_1800E4AC0(0x318u);\n  if ( v2 )\n    v3 = cocos2d::CCParticleSystem::CCParticleSystem(v2);\n  else\n    v3 = nullptr;\n  if ( v3 )\n  {\n    if ( (*(unsigned __int8 (__fastcall **)(cocos2d::CCObject *, _QWORD, _QWORD))(*(_QWORD *)v3 + 1568LL))(v3, a1, 0) )\n    {\n      cocos2d::CCObject::autorelease(v3);\n      return v3;\n    }\n    (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v3 + 8LL))(v3, 1);\n    return nullptr;\n  }\n  return v3;\n}", "assembly": "; \n; cocos2d::CCParticleSystem::createWithTotalParticles from 0x180067ec0 to 0x180067f3a (122 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bdf00\n; \n; This function is hookable on this platform (idp: pc, 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:21:53 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180067ec0\npush    rdi                                                            ; +0x5, 0x180067ec5\nsub     rsp, 20h                                                       ; +0x6, 0x180067ec6\nmov     edi, ecx                                                       ; +0xa, 0x180067eca\nmov     ecx, 318h; Size                                                ; +0xc, 0x180067ecc\ncall    sub_1800E4AC0                                                  ; +0x11, 0x180067ed1\nmov     [rsp+28h+arg_8], rax                                           ; +0x16, 0x180067ed6\ntest    rax, rax                                                       ; +0x1b, 0x180067edb\njz      short loc_180067EED                                            ; +0x1e, 0x180067ede\nmov     rcx, rax; this                                                 ; +0x20, 0x180067ee0\ncall    ??0CCParticleSystem@cocos2d@@QEAA@XZ; cocos2d::CCParticleSystem::CCParticleSystem(void) ; +0x23, 0x180067ee3\nmov     rbx, rax                                                       ; +0x28, 0x180067ee8\njmp     short loc_180067EEF                                            ; +0x2b, 0x180067eeb\nxor     ebx, ebx                                                       ; +0x2d, 0x180067eed\ntest    rbx, rbx                                                       ; +0x2f, 0x180067eef\njz      short loc_180067F2C                                            ; +0x32, 0x180067ef2\nmov     rax, [rbx]                                                     ; +0x34, 0x180067ef4\nxor     r8d, r8d                                                       ; +0x37, 0x180067ef7\nmov     edx, edi                                                       ; +0x3a, 0x180067efa\nmov     rcx, rbx                                                       ; +0x3c, 0x180067efc\ncall    qword ptr [rax+620h]                                           ; +0x3f, 0x180067eff\nmov     rcx, rbx; this                                                 ; +0x45, 0x180067f05\ntest    al, al                                                         ; +0x48, 0x180067f08\njz      short loc_180067F1F                                            ; +0x4a, 0x180067f0a\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x4c, 0x180067f0c\nmov     rax, rbx                                                       ; +0x51, 0x180067f11\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x54, 0x180067f14\nadd     rsp, 20h                                                       ; +0x59, 0x180067f19\npop     rdi                                                            ; +0x5d, 0x180067f1d\nretn                                                                   ; +0x5e, 0x180067f1e\nmov     rax, [rbx]                                                     ; +0x5f, 0x180067f1f\nmov     edx, 1                                                         ; +0x62, 0x180067f22\ncall    qword ptr [rax+8]                                              ; +0x67, 0x180067f27\nxor     ebx, ebx                                                       ; +0x6a, 0x180067f2a\nmov     rax, rbx                                                       ; +0x6c, 0x180067f2c\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x6f, 0x180067f2f\nadd     rsp, 20h                                                       ; +0x74, 0x180067f34\npop     rdi                                                            ; +0x78, 0x180067f38\nretn                                                                   ; +0x79, 0x180067f39", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801bdf00"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}