{"type": "func", "start": 6442867248, "end": 6442867368, "name": "cocos2d::CCParticleSystem::create", "pseudocode": "// \n// cocos2d::CCParticleSystem::create from 0x180065a30 to 0x180065aa8 (120 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b3ba0\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::create(const char *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 ( cocos2d::CCParticleSystem::initWithFile(v3, a1, 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::create from 0x180065a30 to 0x180065aa8 (120 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b3ba0\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, 0x180065a30\npush    rdi                                                            ; +0x5, 0x180065a35\nsub     rsp, 20h                                                       ; +0x6, 0x180065a36\nmov     rdi, rcx                                                       ; +0xa, 0x180065a3a\nmov     ecx, 318h; Size                                                ; +0xd, 0x180065a3d\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x12, 0x180065a42\nmov     [rsp+28h+arg_8], rax                                           ; +0x17, 0x180065a47\ntest    rax, rax                                                       ; +0x1c, 0x180065a4c\njz      short loc_180065A5E                                            ; +0x1f, 0x180065a4f\nmov     rcx, rax; this                                                 ; +0x21, 0x180065a51\ncall    ??0CCParticleSystem@cocos2d@@QEAA@XZ; cocos2d::CCParticleSystem::CCParticleSystem(void) ; +0x24, 0x180065a54\nmov     rbx, rax                                                       ; +0x29, 0x180065a59\njmp     short loc_180065A60                                            ; +0x2c, 0x180065a5c\nxor     ebx, ebx                                                       ; +0x2e, 0x180065a5e\ntest    rbx, rbx                                                       ; +0x30, 0x180065a60\njz      short loc_180065A9A                                            ; +0x33, 0x180065a63\nxor     r8d, r8d; bool                                                 ; +0x35, 0x180065a65\nmov     rdx, rdi; char *                                               ; +0x38, 0x180065a68\nmov     rcx, rbx; this                                                 ; +0x3b, 0x180065a6b\ncall    ?initWithFile@CCParticleSystem@cocos2d@@QEAA_NPEBD_N@Z; cocos2d::CCParticleSystem::initWithFile(char const *,bool) ; +0x3e, 0x180065a6e\nmov     rcx, rbx; this                                                 ; +0x43, 0x180065a73\ntest    al, al                                                         ; +0x46, 0x180065a76\njz      short loc_180065A8D                                            ; +0x48, 0x180065a78\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x4a, 0x180065a7a\nmov     rax, rbx                                                       ; +0x4f, 0x180065a7f\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x52, 0x180065a82\nadd     rsp, 20h                                                       ; +0x57, 0x180065a87\npop     rdi                                                            ; +0x5b, 0x180065a8b\nretn                                                                   ; +0x5c, 0x180065a8c\nmov     rax, [rbx]                                                     ; +0x5d, 0x180065a8d\nmov     edx, 1                                                         ; +0x60, 0x180065a90\ncall    qword ptr [rax+8]                                              ; +0x65, 0x180065a95\nxor     ebx, ebx                                                       ; +0x68, 0x180065a98\nmov     rax, rbx                                                       ; +0x6a, 0x180065a9a\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x6d, 0x180065a9d\nadd     rsp, 20h                                                       ; +0x72, 0x180065aa2\npop     rdi                                                            ; +0x76, 0x180065aa6\nretn                                                                   ; +0x77, 0x180065aa7", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b3ba0"], "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"}