{"type": "func", "start": 6442886480, "end": 6442886621, "name": "cocos2d::CCParticleSystemQuad::createWithTotalParticles", "pseudocode": "// \n// cocos2d::CCParticleSystemQuad::createWithTotalParticles from 0x18006a550 to 0x18006a5dd (141 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b3cc0\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=1\nstruct cocos2d::CCParticleSystemQuad *__fastcall cocos2d::CCParticleSystemQuad::createWithTotalParticles(\n        unsigned int a1,\n        unsigned __int8 a2)\n{\n  cocos2d::CCParticleSystemQuad *v4; // rax\n  cocos2d::CCParticleSystemQuad *v5; // rbx\n\n  v4 = (cocos2d::CCParticleSystemQuad *)operator new(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::CCParticleSystemQuad *, _QWORD, _QWORD))v5->initWithTotalParticles)(\n           v5,\n           a1,\n           a2) )\n    {\n      cocos2d::CCObject::autorelease(v5);\n      return v5;\n    }\n    ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v5->~CCParticleSystemQuad)(v5, 1);\n    return nullptr;\n  }\n  return v5;\n}", "assembly": "; \n; cocos2d::CCParticleSystemQuad::createWithTotalParticles from 0x18006a550 to 0x18006a5dd (141 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b3cc0\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x18006a550\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x18006a555\npush    rdi                                                            ; +0xa, 0x18006a55a\nsub     rsp, 20h                                                       ; +0xb, 0x18006a55b\nmovzx   edi, dl                                                        ; +0xf, 0x18006a55f\nmov     esi, ecx                                                       ; +0x12, 0x18006a562\nmov     ecx, 348h; Size                                                ; +0x14, 0x18006a564\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x19, 0x18006a569\nmov     [rsp+28h+arg_10], rax                                          ; +0x1e, 0x18006a56e\ntest    rax, rax                                                       ; +0x23, 0x18006a573\njz      short loc_18006A585                                            ; +0x26, 0x18006a576\nmov     rcx, rax; this                                                 ; +0x28, 0x18006a578\ncall    ??0CCParticleSystemQuad@cocos2d@@QEAA@XZ; cocos2d::CCParticleSystemQuad::CCParticleSystemQuad(void) ; +0x2b, 0x18006a57b\nmov     rbx, rax                                                       ; +0x30, 0x18006a580\njmp     short loc_18006A587                                            ; +0x33, 0x18006a583\nxor     ebx, ebx                                                       ; +0x35, 0x18006a585\ntest    rbx, rbx                                                       ; +0x37, 0x18006a587\njz      short loc_18006A5CA                                            ; +0x3a, 0x18006a58a\nmov     rax, [rbx]                                                     ; +0x3c, 0x18006a58c\nmovzx   r8d, dil                                                       ; +0x3f, 0x18006a58f\nmov     edx, esi                                                       ; +0x43, 0x18006a593\nmov     rcx, rbx                                                       ; +0x45, 0x18006a595\ncall    qword ptr [rax+610h]                                           ; +0x48, 0x18006a598\nmov     rcx, rbx; this                                                 ; +0x4e, 0x18006a59e\ntest    al, al                                                         ; +0x51, 0x18006a5a1\njz      short loc_18006A5BD                                            ; +0x53, 0x18006a5a3\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x55, 0x18006a5a5\nmov     rax, rbx                                                       ; +0x5a, 0x18006a5aa\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x5d, 0x18006a5ad\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x62, 0x18006a5b2\nadd     rsp, 20h                                                       ; +0x67, 0x18006a5b7\npop     rdi                                                            ; +0x6b, 0x18006a5bb\nretn                                                                   ; +0x6c, 0x18006a5bc\nmov     rax, [rbx]                                                     ; +0x6d, 0x18006a5bd\nmov     edx, 1                                                         ; +0x70, 0x18006a5c0\ncall    qword ptr [rax+8]                                              ; +0x75, 0x18006a5c5\nxor     ebx, ebx                                                       ; +0x78, 0x18006a5c8\nmov     rax, rbx                                                       ; +0x7a, 0x18006a5ca\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x7d, 0x18006a5cd\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x82, 0x18006a5d2\nadd     rsp, 20h                                                       ; +0x87, 0x18006a5d7\npop     rdi                                                            ; +0x8b, 0x18006a5db\nretn                                                                   ; +0x8c, 0x18006a5dc", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b3cc0"], "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"}