{"type": "func", "start": 6442895072, "end": 6442895213, "name": "cocos2d::CCParticleSystemQuad::createWithTotalParticles", "pseudocode": "// \n// cocos2d::CCParticleSystemQuad::createWithTotalParticles from 0x18006c6e0 to 0x18006c76d (141 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801be008\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:55 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nstruct cocos2d::CCParticleSystemQuad *__fastcall cocos2d::CCParticleSystemQuad::createWithTotalParticles(\n        unsigned int a1,\n        unsigned __int8 a2)\n{\n  cocos2d::CCParticleSystemQuad *v4; // rax\n  cocos2d::CCObject *v5; // rbx\n\n  v4 = (cocos2d::CCParticleSystemQuad *)sub_1800E4AC0(0x348u);\n  if ( v4 )\n    v5 = cocos2d::CCParticleSystemQuad::CCParticleSystemQuad(v4);\n  else\n    v5 = nullptr;\n  if ( v5 )\n  {\n    if ( (*(unsigned __int8 (__fastcall **)(cocos2d::CCObject *, _QWORD, _QWORD))(*(_QWORD *)v5 + 1568LL))(v5, a1, a2) )\n    {\n      cocos2d::CCObject::autorelease(v5);\n      return v5;\n    }\n    (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v5 + 8LL))(v5, 1);\n    return nullptr;\n  }\n  return v5;\n}", "assembly": "; \n; cocos2d::CCParticleSystemQuad::createWithTotalParticles from 0x18006c6e0 to 0x18006c76d (141 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801be008\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:55 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x18006c6e0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x18006c6e5\npush    rdi                                                            ; +0xa, 0x18006c6ea\nsub     rsp, 20h                                                       ; +0xb, 0x18006c6eb\nmovzx   edi, dl                                                        ; +0xf, 0x18006c6ef\nmov     esi, ecx                                                       ; +0x12, 0x18006c6f2\nmov     ecx, 348h; Size                                                ; +0x14, 0x18006c6f4\ncall    sub_1800E4AC0                                                  ; +0x19, 0x18006c6f9\nmov     [rsp+28h+arg_10], rax                                          ; +0x1e, 0x18006c6fe\ntest    rax, rax                                                       ; +0x23, 0x18006c703\njz      short loc_18006C715                                            ; +0x26, 0x18006c706\nmov     rcx, rax; this                                                 ; +0x28, 0x18006c708\ncall    ??0CCParticleSystemQuad@cocos2d@@QEAA@XZ; cocos2d::CCParticleSystemQuad::CCParticleSystemQuad(void) ; +0x2b, 0x18006c70b\nmov     rbx, rax                                                       ; +0x30, 0x18006c710\njmp     short loc_18006C717                                            ; +0x33, 0x18006c713\nxor     ebx, ebx                                                       ; +0x35, 0x18006c715\ntest    rbx, rbx                                                       ; +0x37, 0x18006c717\njz      short loc_18006C75A                                            ; +0x3a, 0x18006c71a\nmov     rax, [rbx]                                                     ; +0x3c, 0x18006c71c\nmovzx   r8d, dil                                                       ; +0x3f, 0x18006c71f\nmov     edx, esi                                                       ; +0x43, 0x18006c723\nmov     rcx, rbx                                                       ; +0x45, 0x18006c725\ncall    qword ptr [rax+620h]                                           ; +0x48, 0x18006c728\nmov     rcx, rbx; this                                                 ; +0x4e, 0x18006c72e\ntest    al, al                                                         ; +0x51, 0x18006c731\njz      short loc_18006C74D                                            ; +0x53, 0x18006c733\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x55, 0x18006c735\nmov     rax, rbx                                                       ; +0x5a, 0x18006c73a\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x5d, 0x18006c73d\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x62, 0x18006c742\nadd     rsp, 20h                                                       ; +0x67, 0x18006c747\npop     rdi                                                            ; +0x6b, 0x18006c74b\nretn                                                                   ; +0x6c, 0x18006c74c\nmov     rax, [rbx]                                                     ; +0x6d, 0x18006c74d\nmov     edx, 1                                                         ; +0x70, 0x18006c750\ncall    qword ptr [rax+8]                                              ; +0x75, 0x18006c755\nxor     ebx, ebx                                                       ; +0x78, 0x18006c758\nmov     rax, rbx                                                       ; +0x7a, 0x18006c75a\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x7d, 0x18006c75d\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x82, 0x18006c762\nadd     rsp, 20h                                                       ; +0x87, 0x18006c767\npop     rdi                                                            ; +0x8b, 0x18006c76b\nretn                                                                   ; +0x8c, 0x18006c76c", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801be008"], "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"}