{"type": "func", "start": 6442865008, "end": 6442865190, "name": "cocos2d::CCParticleMeteor::create", "pseudocode": "// \n// cocos2d::CCParticleMeteor::create from 0x180065170 to 0x180065226 (182 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bdc18\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:21:52 +0000\n// \n\nstruct cocos2d::CCParticleMeteor *__fastcall cocos2d::CCParticleMeteor::create()\n{\n  cocos2d::CCParticleSystemQuad *v0; // rax\n  cocos2d::CCObject *v1; // rbx\n  bool (__fastcall *v2)(cocos2d::CCParticleMeteor *__hidden); // rax\n  char v3; // al\n  cocos2d::CCParticleSystemQuad *(__fastcall *v5)(cocos2d::CCParticleSystemQuad *, char); // r8\n\n  v0 = (cocos2d::CCParticleSystemQuad *)sub_1800E4AC0(0x348u);\n  v1 = v0;\n  if ( v0 )\n  {\n    cocos2d::CCParticleSystemQuad::CCParticleSystemQuad(v0);\n    *(_QWORD *)v1 = &cocos2d::CCParticleMeteor::`vftable'{for `cocos2d::CCNode'};\n    *((_QWORD *)v1 + 40) = &cocos2d::CCParticleMeteor::`vftable'{for `cocos2d::CCTextureProtocol'};\n  }\n  else\n  {\n    v1 = nullptr;\n  }\n  if ( v1 )\n  {\n    v2 = *(bool (__fastcall **)(cocos2d::CCParticleMeteor *__hidden))(*(_QWORD *)v1 + 72LL);\n    if ( v2 == cocos2d::CCParticleMeteor::init )\n      v3 = (*(__int64 (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v1 + 1608LL))(v1, 150);\n    else\n      v3 = v2(v1);\n    if ( v3 )\n    {\n      cocos2d::CCObject::autorelease(v1);\n      return v1;\n    }\n    v5 = *(cocos2d::CCParticleSystemQuad *(__fastcall **)(cocos2d::CCParticleSystemQuad *, char))(*(_QWORD *)v1 + 8LL);\n    if ( v5 == sub_1800649F0 )\n    {\n      sub_1800649F0(v1, 1);\n      return nullptr;\n    }\n    v5(v1, 1);\n    return nullptr;\n  }\n  return v1;\n}", "assembly": "; \n; cocos2d::CCParticleMeteor::create from 0x180065170 to 0x180065226 (182 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bdc18\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:21:52 +0000\n; \npush    rbx                                                            ; +0x0, 0x180065170\nsub     rsp, 20h                                                       ; +0x2, 0x180065172\nmov     ecx, 348h; Size                                                ; +0x6, 0x180065176\ncall    sub_1800E4AC0                                                  ; +0xb, 0x18006517b\nmov     rbx, rax                                                       ; +0x10, 0x180065180\nmov     [rsp+28h+arg_0], rax                                           ; +0x13, 0x180065183\ntest    rax, rax                                                       ; +0x18, 0x180065188\njz      short loc_1800651AF                                            ; +0x1b, 0x18006518b\nmov     rcx, rax; this                                                 ; +0x1d, 0x18006518d\ncall    ??0CCParticleSystemQuad@cocos2d@@QEAA@XZ; cocos2d::CCParticleSystemQuad::CCParticleSystemQuad(void) ; +0x20, 0x180065190\nlea     rax, ??_7CCParticleMeteor@cocos2d@@6BCCNode@1@@; const cocos2d::CCParticleMeteor::`vftable'{for `cocos2d::CCNode'} ; +0x25, 0x180065195\nmov     [rbx], rax                                                     ; +0x2c, 0x18006519c\nlea     rax, ??_7CCParticleMeteor@cocos2d@@6BCCTextureProtocol@1@@; const cocos2d::CCParticleMeteor::`vftable'{for `cocos2d::CCTextureProtocol'} ; +0x2f, 0x18006519f\nmov     [rbx+140h], rax                                                ; +0x36, 0x1800651a6\njmp     short loc_1800651B1                                            ; +0x3d, 0x1800651ad\nxor     ebx, ebx                                                       ; +0x3f, 0x1800651af\ntest    rbx, rbx                                                       ; +0x41, 0x1800651b1\njz      short loc_18006521D                                            ; +0x44, 0x1800651b4\nmov     r8, [rbx]                                                      ; +0x46, 0x1800651b6\nmov     rax, [r8+48h]                                                  ; +0x49, 0x1800651b9\nlea     rcx, ?init@CCParticleMeteor@cocos2d@@UEAA_NXZ; cocos2d::CCParticleMeteor::init(void) ; +0x4d, 0x1800651bd\ncmp     rax, rcx                                                       ; +0x54, 0x1800651c4\nmov     rcx, rbx                                                       ; +0x57, 0x1800651c7\njnz     short loc_1800651DA                                            ; +0x5a, 0x1800651ca\nmov     edx, 96h                                                       ; +0x5c, 0x1800651cc\ncall    qword ptr [r8+648h]                                            ; +0x61, 0x1800651d1\njmp     short loc_1800651DC                                            ; +0x68, 0x1800651d8\ncall    rax                                                            ; +0x6a, 0x1800651da\nmov     rcx, rbx; Block                                                ; +0x6c, 0x1800651dc\ntest    al, al                                                         ; +0x6f, 0x1800651df\njz      short loc_1800651F1                                            ; +0x71, 0x1800651e1\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x73, 0x1800651e3\nmov     rax, rbx                                                       ; +0x78, 0x1800651e8\nadd     rsp, 20h                                                       ; +0x7b, 0x1800651eb\npop     rbx                                                            ; +0x7f, 0x1800651ef\nretn                                                                   ; +0x80, 0x1800651f0\nmov     rax, [rbx]                                                     ; +0x81, 0x1800651f1\nmov     r8, [rax+8]                                                    ; +0x84, 0x1800651f4\nlea     rax, sub_1800649F0                                             ; +0x88, 0x1800651f8\nmov     edx, 1                                                         ; +0x8f, 0x1800651ff\ncmp     r8, rax                                                        ; +0x94, 0x180065204\njnz     short loc_180065218                                            ; +0x97, 0x180065207\ncall    sub_1800649F0                                                  ; +0x99, 0x180065209\nxor     ebx, ebx                                                       ; +0x9e, 0x18006520e\nmov     eax, ebx                                                       ; +0xa0, 0x180065210\nadd     rsp, 20h                                                       ; +0xa2, 0x180065212\npop     rbx                                                            ; +0xa6, 0x180065216\nretn                                                                   ; +0xa7, 0x180065217\ncall    r8                                                             ; +0xa8, 0x180065218\nxor     ebx, ebx                                                       ; +0xab, 0x18006521b\nmov     rax, rbx                                                       ; +0xad, 0x18006521d\nadd     rsp, 20h                                                       ; +0xb0, 0x180065220\npop     rbx                                                            ; +0xb4, 0x180065224\nretn                                                                   ; +0xb5, 0x180065225", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801bdc18"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}