{"type": "func", "start": 6442867376, "end": 6442867498, "name": "cocos2d::CCParticleSystem::createWithTotalParticles", "pseudocode": "// \n// cocos2d::CCParticleSystem::createWithTotalParticles from 0x180065ab0 to 0x180065b2a (122 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b3bac\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::CCParticleSystem *__fastcall cocos2d::CCParticleSystem::createWithTotalParticles(unsigned int a1)\n{\n  cocos2d::CCParticleSystem *v2; // rax\n  cocos2d::CCParticleSystem *v3; // rbx\n\n  v2 = (cocos2d::CCParticleSystem *)operator new(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::CCParticleSystem *, _QWORD, _QWORD))v3->initWithTotalParticles)(\n           v3,\n           a1,\n           0) )\n    {\n      cocos2d::CCObject::autorelease(v3);\n      return v3;\n    }\n    ((void (__fastcall *)(cocos2d::CCParticleSystem *, __int64))v3->~CCParticleSystem)(v3, 1);\n    return nullptr;\n  }\n  return v3;\n}", "assembly": "; \n; cocos2d::CCParticleSystem::createWithTotalParticles from 0x180065ab0 to 0x180065b2a (122 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b3bac\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, 0x180065ab0\npush    rdi                                                            ; +0x5, 0x180065ab5\nsub     rsp, 20h                                                       ; +0x6, 0x180065ab6\nmov     edi, ecx                                                       ; +0xa, 0x180065aba\nmov     ecx, 318h; Size                                                ; +0xc, 0x180065abc\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x11, 0x180065ac1\nmov     [rsp+28h+arg_8], rax                                           ; +0x16, 0x180065ac6\ntest    rax, rax                                                       ; +0x1b, 0x180065acb\njz      short loc_180065ADD                                            ; +0x1e, 0x180065ace\nmov     rcx, rax; this                                                 ; +0x20, 0x180065ad0\ncall    ??0CCParticleSystem@cocos2d@@QEAA@XZ; cocos2d::CCParticleSystem::CCParticleSystem(void) ; +0x23, 0x180065ad3\nmov     rbx, rax                                                       ; +0x28, 0x180065ad8\njmp     short loc_180065ADF                                            ; +0x2b, 0x180065adb\nxor     ebx, ebx                                                       ; +0x2d, 0x180065add\ntest    rbx, rbx                                                       ; +0x2f, 0x180065adf\njz      short loc_180065B1C                                            ; +0x32, 0x180065ae2\nmov     rax, [rbx]                                                     ; +0x34, 0x180065ae4\nxor     r8d, r8d                                                       ; +0x37, 0x180065ae7\nmov     edx, edi                                                       ; +0x3a, 0x180065aea\nmov     rcx, rbx                                                       ; +0x3c, 0x180065aec\ncall    qword ptr [rax+610h]                                           ; +0x3f, 0x180065aef\nmov     rcx, rbx; this                                                 ; +0x45, 0x180065af5\ntest    al, al                                                         ; +0x48, 0x180065af8\njz      short loc_180065B0F                                            ; +0x4a, 0x180065afa\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x4c, 0x180065afc\nmov     rax, rbx                                                       ; +0x51, 0x180065b01\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x54, 0x180065b04\nadd     rsp, 20h                                                       ; +0x59, 0x180065b09\npop     rdi                                                            ; +0x5d, 0x180065b0d\nretn                                                                   ; +0x5e, 0x180065b0e\nmov     rax, [rbx]                                                     ; +0x5f, 0x180065b0f\nmov     edx, 1                                                         ; +0x62, 0x180065b12\ncall    qword ptr [rax+8]                                              ; +0x67, 0x180065b17\nxor     ebx, ebx                                                       ; +0x6a, 0x180065b1a\nmov     rax, rbx                                                       ; +0x6c, 0x180065b1c\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x6f, 0x180065b1f\nadd     rsp, 20h                                                       ; +0x74, 0x180065b24\npop     rdi                                                            ; +0x78, 0x180065b28\nretn                                                                   ; +0x79, 0x180065b29", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b3bac"], "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"}