{"type": "func", "start": 6442855760, "end": 6442855942, "name": "cocos2d::CCParticleMeteor::create", "pseudocode": "// \n// cocos2d::CCParticleMeteor::create from 0x180062d50 to 0x180062e06 (182 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b38c4\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::CCParticleMeteor *__fastcall cocos2d::CCParticleMeteor::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::CCParticleMeteor::`vftable'{for `cocos2d::CCNode'};\n    v1->cocos2d::CCParticleSystem::cocos2d::CCTextureProtocol::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCTextureProtocol_vtbl *)&cocos2d::CCParticleMeteor::`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::CCParticleMeteor::init )\n      v3 = ((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v1->cocos2d::CCParticleSystem::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable[1].copyWithZone)(\n             v1,\n             150);\n    else\n      v3 = ((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))init)(v1);\n    if ( v3 )\n    {\n      cocos2d::CCObject::autorelease(v1);\n      return (struct cocos2d::CCParticleMeteor *)v1;\n    }\n    v5 = (cocos2d::CCParticleSystemQuad *(__fastcall *)(cocos2d::CCParticleSystemQuad *, char))v1->~CCParticleSystemQuad;\n    if ( v5 == sub_1800625D0 )\n    {\n      sub_1800625D0(v1, 1);\n      return nullptr;\n    }\n    v5(v1, 1);\n    return nullptr;\n  }\n  return (struct cocos2d::CCParticleMeteor *)v1;\n}", "assembly": "; \n; cocos2d::CCParticleMeteor::create from 0x180062d50 to 0x180062e06 (182 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b38c4\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, 0x180062d50\nsub     rsp, 20h                                                       ; +0x2, 0x180062d52\nmov     ecx, 348h; Size                                                ; +0x6, 0x180062d56\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xb, 0x180062d5b\nmov     rbx, rax                                                       ; +0x10, 0x180062d60\nmov     [rsp+28h+arg_0], rax                                           ; +0x13, 0x180062d63\ntest    rax, rax                                                       ; +0x18, 0x180062d68\njz      short loc_180062D8F                                            ; +0x1b, 0x180062d6b\nmov     rcx, rax; this                                                 ; +0x1d, 0x180062d6d\ncall    ??0CCParticleSystemQuad@cocos2d@@QEAA@XZ; cocos2d::CCParticleSystemQuad::CCParticleSystemQuad(void) ; +0x20, 0x180062d70\nlea     rax, ??_7CCParticleMeteor@cocos2d@@6BCCNode@1@@; const cocos2d::CCParticleMeteor::`vftable'{for `cocos2d::CCNode'} ; +0x25, 0x180062d75\nmov     [rbx], rax                                                     ; +0x2c, 0x180062d7c\nlea     rax, ??_7CCParticleMeteor@cocos2d@@6BCCTextureProtocol@1@@; const cocos2d::CCParticleMeteor::`vftable'{for `cocos2d::CCTextureProtocol'} ; +0x2f, 0x180062d7f\nmov     [rbx+140h], rax                                                ; +0x36, 0x180062d86\njmp     short loc_180062D91                                            ; +0x3d, 0x180062d8d\nxor     ebx, ebx                                                       ; +0x3f, 0x180062d8f\ntest    rbx, rbx                                                       ; +0x41, 0x180062d91\njz      short loc_180062DFD                                            ; +0x44, 0x180062d94\nmov     r8, [rbx]                                                      ; +0x46, 0x180062d96\nmov     rax, [r8+48h]                                                  ; +0x49, 0x180062d99\nlea     rcx, ?init@CCParticleMeteor@cocos2d@@UEAA_NXZ; cocos2d::CCParticleMeteor::init(void) ; +0x4d, 0x180062d9d\ncmp     rax, rcx                                                       ; +0x54, 0x180062da4\nmov     rcx, rbx                                                       ; +0x57, 0x180062da7\njnz     short loc_180062DBA                                            ; +0x5a, 0x180062daa\nmov     edx, 96h                                                       ; +0x5c, 0x180062dac\ncall    qword ptr [r8+638h]                                            ; +0x61, 0x180062db1\njmp     short loc_180062DBC                                            ; +0x68, 0x180062db8\ncall    rax                                                            ; +0x6a, 0x180062dba\nmov     rcx, rbx; Block                                                ; +0x6c, 0x180062dbc\ntest    al, al                                                         ; +0x6f, 0x180062dbf\njz      short loc_180062DD1                                            ; +0x71, 0x180062dc1\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x73, 0x180062dc3\nmov     rax, rbx                                                       ; +0x78, 0x180062dc8\nadd     rsp, 20h                                                       ; +0x7b, 0x180062dcb\npop     rbx                                                            ; +0x7f, 0x180062dcf\nretn                                                                   ; +0x80, 0x180062dd0\nmov     rax, [rbx]                                                     ; +0x81, 0x180062dd1\nmov     r8, [rax+8]                                                    ; +0x84, 0x180062dd4\nlea     rax, sub_1800625D0                                             ; +0x88, 0x180062dd8\nmov     edx, 1                                                         ; +0x8f, 0x180062ddf\ncmp     r8, rax                                                        ; +0x94, 0x180062de4\njnz     short loc_180062DF8                                            ; +0x97, 0x180062de7\ncall    sub_1800625D0                                                  ; +0x99, 0x180062de9\nxor     ebx, ebx                                                       ; +0x9e, 0x180062dee\nmov     eax, ebx                                                       ; +0xa0, 0x180062df0\nadd     rsp, 20h                                                       ; +0xa2, 0x180062df2\npop     rbx                                                            ; +0xa6, 0x180062df6\nretn                                                                   ; +0xa7, 0x180062df7\ncall    r8                                                             ; +0xa8, 0x180062df8\nxor     ebx, ebx                                                       ; +0xab, 0x180062dfb\nmov     rax, rbx                                                       ; +0xad, 0x180062dfd\nadd     rsp, 20h                                                       ; +0xb0, 0x180062e00\npop     rbx                                                            ; +0xb4, 0x180062e04\nretn                                                                   ; +0xb5, 0x180062e05", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b38c4"], "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"}