{"type": "func", "start": 6442856144, "end": 6442856326, "name": "cocos2d::CCParticleSmoke::create", "pseudocode": "// \n// cocos2d::CCParticleSmoke::create from 0x180062ed0 to 0x180062f86 (182 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b38dc\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\nstruct cocos2d::CCParticleSmoke *__fastcall cocos2d::CCParticleSmoke::create()\n{\n  cocos2d::CCParticleSystemQuad *v0; // rax\n  cocos2d::CCParticleSystemQuad *v1; // rbx\n  bool (__stdcall *init)(cocos2d::CCParticleSystem *__hidden); // rax\n  char v3; // al\n  cocos2d::CCParticleSystemQuad *(__fastcall *v5)(cocos2d::CCParticleSystemQuad *, char); // r8\n\n  v0 = (cocos2d::CCParticleSystemQuad *)operator new(0x348u);\n  v1 = v0;\n  if ( v0 )\n  {\n    cocos2d::CCParticleSystemQuad::CCParticleSystemQuad(v0);\n    v1->cocos2d::CCParticleSystem::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (cocos2d::CCParticleSystemQuad_vtbl *)&cocos2d::CCParticleSmoke::`vftable'{for `cocos2d::CCNode'};\n    v1->cocos2d::CCParticleSystem::cocos2d::CCTextureProtocol::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCTextureProtocol_vtbl *)&cocos2d::CCParticleSmoke::`vftable'{for `cocos2d::CCTextureProtocol'};\n  }\n  else\n  {\n    v1 = nullptr;\n  }\n  if ( v1 )\n  {\n    init = v1->init;\n    if ( (char *)init == (char *)cocos2d::CCParticleSmoke::init )\n      v3 = ((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v1->cocos2d::CCParticleSystem::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable[1].copyWithZone)(\n             v1,\n             200);\n    else\n      v3 = ((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))init)(v1);\n    if ( v3 )\n    {\n      cocos2d::CCObject::autorelease(v1);\n      return (struct cocos2d::CCParticleSmoke *)v1;\n    }\n    v5 = (cocos2d::CCParticleSystemQuad *(__fastcall *)(cocos2d::CCParticleSystemQuad *, char))v1->~CCParticleSystemQuad;\n    if ( v5 == sub_180062710 )\n    {\n      sub_180062710(v1, 1);\n      return nullptr;\n    }\n    v5(v1, 1);\n    return nullptr;\n  }\n  return (struct cocos2d::CCParticleSmoke *)v1;\n}", "assembly": "; \n; cocos2d::CCParticleSmoke::create from 0x180062ed0 to 0x180062f86 (182 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b38dc\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\npush    rbx                                                            ; +0x0, 0x180062ed0\nsub     rsp, 20h                                                       ; +0x2, 0x180062ed2\nmov     ecx, 348h; Size                                                ; +0x6, 0x180062ed6\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xb, 0x180062edb\nmov     rbx, rax                                                       ; +0x10, 0x180062ee0\nmov     [rsp+28h+arg_0], rax                                           ; +0x13, 0x180062ee3\ntest    rax, rax                                                       ; +0x18, 0x180062ee8\njz      short loc_180062F0F                                            ; +0x1b, 0x180062eeb\nmov     rcx, rax; this                                                 ; +0x1d, 0x180062eed\ncall    ??0CCParticleSystemQuad@cocos2d@@QEAA@XZ; cocos2d::CCParticleSystemQuad::CCParticleSystemQuad(void) ; +0x20, 0x180062ef0\nlea     rax, ??_7CCParticleSmoke@cocos2d@@6BCCNode@1@@; const cocos2d::CCParticleSmoke::`vftable'{for `cocos2d::CCNode'} ; +0x25, 0x180062ef5\nmov     [rbx], rax                                                     ; +0x2c, 0x180062efc\nlea     rax, ??_7CCParticleSmoke@cocos2d@@6BCCTextureProtocol@1@@; const cocos2d::CCParticleSmoke::`vftable'{for `cocos2d::CCTextureProtocol'} ; +0x2f, 0x180062eff\nmov     [rbx+140h], rax                                                ; +0x36, 0x180062f06\njmp     short loc_180062F11                                            ; +0x3d, 0x180062f0d\nxor     ebx, ebx                                                       ; +0x3f, 0x180062f0f\ntest    rbx, rbx                                                       ; +0x41, 0x180062f11\njz      short loc_180062F7D                                            ; +0x44, 0x180062f14\nmov     r8, [rbx]                                                      ; +0x46, 0x180062f16\nmov     rax, [r8+48h]                                                  ; +0x49, 0x180062f19\nlea     rcx, ?init@CCParticleSmoke@cocos2d@@UEAA_NXZ; cocos2d::CCParticleSmoke::init(void) ; +0x4d, 0x180062f1d\ncmp     rax, rcx                                                       ; +0x54, 0x180062f24\nmov     rcx, rbx                                                       ; +0x57, 0x180062f27\njnz     short loc_180062F3A                                            ; +0x5a, 0x180062f2a\nmov     edx, 0C8h                                                      ; +0x5c, 0x180062f2c\ncall    qword ptr [r8+638h]                                            ; +0x61, 0x180062f31\njmp     short loc_180062F3C                                            ; +0x68, 0x180062f38\ncall    rax                                                            ; +0x6a, 0x180062f3a\nmov     rcx, rbx; Block                                                ; +0x6c, 0x180062f3c\ntest    al, al                                                         ; +0x6f, 0x180062f3f\njz      short loc_180062F51                                            ; +0x71, 0x180062f41\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x73, 0x180062f43\nmov     rax, rbx                                                       ; +0x78, 0x180062f48\nadd     rsp, 20h                                                       ; +0x7b, 0x180062f4b\npop     rbx                                                            ; +0x7f, 0x180062f4f\nretn                                                                   ; +0x80, 0x180062f50\nmov     rax, [rbx]                                                     ; +0x81, 0x180062f51\nmov     r8, [rax+8]                                                    ; +0x84, 0x180062f54\nlea     rax, sub_180062710                                             ; +0x88, 0x180062f58\nmov     edx, 1                                                         ; +0x8f, 0x180062f5f\ncmp     r8, rax                                                        ; +0x94, 0x180062f64\njnz     short loc_180062F78                                            ; +0x97, 0x180062f67\ncall    sub_180062710                                                  ; +0x99, 0x180062f69\nxor     ebx, ebx                                                       ; +0x9e, 0x180062f6e\nmov     eax, ebx                                                       ; +0xa0, 0x180062f70\nadd     rsp, 20h                                                       ; +0xa2, 0x180062f72\npop     rbx                                                            ; +0xa6, 0x180062f76\nretn                                                                   ; +0xa7, 0x180062f77\ncall    r8                                                             ; +0xa8, 0x180062f78\nxor     ebx, ebx                                                       ; +0xab, 0x180062f7b\nmov     rax, rbx                                                       ; +0xad, 0x180062f7d\nadd     rsp, 20h                                                       ; +0xb0, 0x180062f80\npop     rbx                                                            ; +0xb4, 0x180062f84\nretn                                                                   ; +0xb5, 0x180062f85", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b38dc"], "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"}