{"type": "func", "start": 6442863856, "end": 6442864415, "name": "cocos2d::CCParticleSnow::initWithTotalParticles", "pseudocode": "// \n// cocos2d::CCParticleSnow::initWithTotalParticles from 0x180064cf0 to 0x180064f1f (559 bytes)\n// \n// 7 xrefs:\n// > cocos2d::CCParticleSnow::createWithTotalParticles @ 0x1800638b7\n// > cocos2d::CCParticleSnow::createWithTotalParticles @ 0x1800638a6\n// > <???> @ 0x1800fe728\n// > <???> @ 0x180139c88\n// > <???> @ 0x180139c98\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b3abc\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\nchar __fastcall cocos2d::CCParticleSnow::initWithTotalParticles(cocos2d::CCParticleSnow *this, unsigned int a2)\n{\n  cocos2d::CCParticleSnow_vtbl *v3; // rax\n  cocos2d::CCParticleSnow_vtbl *v4; // rbx\n  float *v5; // rax\n  cocos2d::CCDirector *v6; // rax\n  cocos2d::CCParticleSnow_vtbl *v7; // rbx\n  float *v8; // rax\n  cocos2d::CCParticleSnow_vtbl *v9; // rbx\n  float *v10; // rax\n  struct cocos2d::CCTexture2D *v11; // rax\n  float v13; // [rsp+50h] [rbp+18h]\n  float v14; // [rsp+54h] [rbp+1Ch]\n  float v15; // [rsp+58h] [rbp+20h] BYREF\n\n  if ( !cocos2d::CCParticleSystemQuad::initWithTotalParticles(this, a2, 0) )\n    return 0;\n  v3 = this->cocos2d::CCParticleSystemQuad::cocos2d::CCParticleSystem::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n  this->m_fDuration = -1.0;\n  ((void (__fastcall *)(cocos2d::CCParticleSnow *, _QWORD))v3->setEmitterMode)(this, 0);\n  v4 = this->cocos2d::CCParticleSystemQuad::cocos2d::CCParticleSystem::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n  v5 = kmVec2Fill(&v15, 0.0, -1.0);\n  ((void (__fastcall *)(cocos2d::CCParticleSnow *, float *))v4->setGravity)(this, v5);\n  ((void (__fastcall *)(cocos2d::CCParticleSnow *))this->setSpeed)(this);\n  ((void (__fastcall *)(cocos2d::CCParticleSnow *))this->setSpeedVar)(this);\n  ((void (__fastcall *)(cocos2d::CCParticleSnow *))this->setRadialAccel)(this);\n  ((void (__fastcall *)(cocos2d::CCParticleSnow *))this->setRadialAccelVar)(this);\n  ((void (__fastcall *)(cocos2d::CCParticleSnow *))this->setTangentialAccel)(this);\n  ((void (__fastcall *)(cocos2d::CCParticleSnow *))this->setTangentialAccelVar)(this);\n  v6 = cocos2d::CCDirector::sharedDirector();\n  cocos2d::CCDirector::getWinSize(v6);\n  v7 = this->cocos2d::CCParticleSystemQuad::cocos2d::CCParticleSystem::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n  v8 = kmVec2Fill(&v15, v13 * 0.5, v14 + 10.0);\n  ((void (__fastcall *)(cocos2d::CCParticleSnow *, float *))v7->setPosition_0)(this, v8);\n  v9 = this->cocos2d::CCParticleSystemQuad::cocos2d::CCParticleSystem::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n  v10 = kmVec2Fill(&v15, v13 * 0.5, 0.0);\n  ((void (__fastcall *)(cocos2d::CCParticleSnow *, float *))v9->setPosVar)(this, v10);\n  this->m_fAngle = -90.0;\n  *(_QWORD *)&this->m_tStartColorVar.g = 0;\n  this->m_tStartColorVar.a = 0.0;\n  this->m_fAngleVar = 5.0;\n  this->m_fLife = 45.0;\n  this->m_fLifeVar = 15.0;\n  this->m_fStartSize = 10.0;\n  this->m_fStartSizeVar = 5.0;\n  this->m_fEndSize = -1.0;\n  this->m_fEmissionRate = 10.0;\n  this->m_tStartColor.r = 1.0;\n  this->m_tStartColor.g = 1.0;\n  this->m_tStartColor.b = 1.0;\n  *(_QWORD *)&this->m_tStartColor.a = 1065353216;\n  this->m_tEndColor.r = 1.0;\n  this->m_tEndColor.g = 1.0;\n  *(_QWORD *)&this->m_tEndColor.b = 1065353216;\n  *(_QWORD *)&this->m_tEndColorVar.r = 0;\n  *(_QWORD *)&this->m_tEndColorVar.b = 0;\n  v11 = sub_180063AC0();\n  if ( v11 )\n    ((void (__fastcall *)(cocos2d::CCTextureProtocol *, struct cocos2d::CCTexture2D *))this->setTexture)(\n      &this->cocos2d::CCTextureProtocol,\n      v11);\n  ((void (__fastcall *)(cocos2d::CCParticleSnow *, _QWORD))this->setBlendAdditive)(this, 0);\n  return 1;\n}", "assembly": "; \n; cocos2d::CCParticleSnow::initWithTotalParticles from 0x180064cf0 to 0x180064f1f (559 bytes)\n; \n; 7 xrefs:\n; > cocos2d::CCParticleSnow::createWithTotalParticles @ 0x1800638b7\n; > cocos2d::CCParticleSnow::createWithTotalParticles @ 0x1800638a6\n; > <???> @ 0x1800fe728\n; > <???> @ 0x180139c88\n; > <???> @ 0x180139c98\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b3abc\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    rdi                                                            ; +0x0, 0x180064cf0\nsub     rsp, 30h                                                       ; +0x2, 0x180064cf2\nxor     r8d, r8d; bool                                                 ; +0x6, 0x180064cf6\nmov     rdi, rcx                                                       ; +0x9, 0x180064cf9\ncall    ?initWithTotalParticles@CCParticleSystemQuad@cocos2d@@UEAA_NI_N@Z; cocos2d::CCParticleSystemQuad::initWithTotalParticles(uint,bool) ; +0xc, 0x180064cfc\ntest    al, al                                                         ; +0x11, 0x180064d01\njz      loc_180064F17                                                  ; +0x13, 0x180064d03\nmov     rax, [rdi]                                                     ; +0x19, 0x180064d09\nxor     edx, edx                                                       ; +0x1c, 0x180064d0c\nmov     [rsp+38h+arg_0], rbx                                           ; +0x1e, 0x180064d0e\nmov     rcx, rdi                                                       ; +0x23, 0x180064d13\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0x26, 0x180064d16\nmov     dword ptr [rdi+1D4h], 0BF800000h                               ; +0x2b, 0x180064d1b\ncall    qword ptr [rax+608h]                                           ; +0x35, 0x180064d25\nmovss   xmm2, cs:dword_1800E6B20                                       ; +0x3b, 0x180064d2b\nlea     rcx, [rsp+38h+arg_18]                                          ; +0x43, 0x180064d33\nmov     rbx, [rdi]                                                     ; +0x48, 0x180064d38\nxorps   xmm1, xmm1                                                     ; +0x4b, 0x180064d3b\ncall    kmVec2Fill                                                     ; +0x4e, 0x180064d3e\nmov     rdx, rax                                                       ; +0x53, 0x180064d43\nmov     rcx, rdi                                                       ; +0x56, 0x180064d46\ncall    qword ptr [rbx+400h]                                           ; +0x59, 0x180064d49\nmov     rax, [rdi]                                                     ; +0x5f, 0x180064d4f\nmov     rcx, rdi                                                       ; +0x62, 0x180064d52\nmovss   xmm1, cs:flt_1800F7238                                         ; +0x65, 0x180064d55\ncall    qword ptr [rax+410h]                                           ; +0x6d, 0x180064d5d\nmov     rax, [rdi]                                                     ; +0x73, 0x180064d63\nmov     rcx, rdi                                                       ; +0x76, 0x180064d66\nmovss   xmm6, cs:flt_1800E61A8                                         ; +0x79, 0x180064d69\nmovaps  xmm1, xmm6                                                     ; +0x81, 0x180064d71\ncall    qword ptr [rax+420h]                                           ; +0x84, 0x180064d74\nmov     rax, [rdi]                                                     ; +0x8a, 0x180064d7a\nxorps   xmm1, xmm1                                                     ; +0x8d, 0x180064d7d\nmov     rcx, rdi                                                       ; +0x90, 0x180064d80\ncall    qword ptr [rax+450h]                                           ; +0x93, 0x180064d83\nmov     rax, [rdi]                                                     ; +0x99, 0x180064d89\nmovaps  xmm1, xmm6                                                     ; +0x9c, 0x180064d8c\nmov     rcx, rdi                                                       ; +0x9f, 0x180064d8f\ncall    qword ptr [rax+460h]                                           ; +0xa2, 0x180064d92\nmov     rax, [rdi]                                                     ; +0xa8, 0x180064d98\nxorps   xmm1, xmm1                                                     ; +0xab, 0x180064d9b\nmov     rcx, rdi                                                       ; +0xae, 0x180064d9e\ncall    qword ptr [rax+430h]                                           ; +0xb1, 0x180064da1\nmov     rax, [rdi]                                                     ; +0xb7, 0x180064da7\nmovaps  xmm1, xmm6                                                     ; +0xba, 0x180064daa\nmov     rcx, rdi                                                       ; +0xbd, 0x180064dad\ncall    qword ptr [rax+440h]                                           ; +0xc0, 0x180064db0\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xc6, 0x180064db6\nmov     rcx, rax                                                       ; +0xcb, 0x180064dbb\nlea     rdx, [rsp+38h+arg_10]                                          ; +0xce, 0x180064dbe\ncall    ?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0xd3, 0x180064dc3\nmovss   xmm2, [rsp+38h+arg_14]                                         ; +0xd8, 0x180064dc8\nlea     rcx, [rsp+38h+arg_18]                                          ; +0xde, 0x180064dce\nmovss   xmm1, [rsp+38h+arg_10]                                         ; +0xe3, 0x180064dd3\naddss   xmm2, cs:dword_1800E8440                                       ; +0xe9, 0x180064dd9\nmulss   xmm1, cs:dword_1800E6308                                       ; +0xf1, 0x180064de1\nmov     rbx, [rdi]                                                     ; +0xf9, 0x180064de9\ncall    kmVec2Fill                                                     ; +0xfc, 0x180064dec\nmov     rdx, rax                                                       ; +0x101, 0x180064df1\nmov     rcx, rdi                                                       ; +0x104, 0x180064df4\ncall    qword ptr [rbx+0B8h]                                           ; +0x107, 0x180064df7\nmovss   xmm1, [rsp+38h+arg_10]                                         ; +0x10d, 0x180064dfd\nlea     rcx, [rsp+38h+arg_18]                                          ; +0x113, 0x180064e03\nmulss   xmm1, cs:dword_1800E6308                                       ; +0x118, 0x180064e08\nxorps   xmm2, xmm2                                                     ; +0x120, 0x180064e10\nmov     rbx, [rdi]                                                     ; +0x123, 0x180064e13\ncall    kmVec2Fill                                                     ; +0x126, 0x180064e16\nmov     rdx, rax                                                       ; +0x12b, 0x180064e1b\nmov     rcx, rdi                                                       ; +0x12e, 0x180064e1e\ncall    qword ptr [rbx+3A8h]                                           ; +0x131, 0x180064e21\nxor     eax, eax                                                       ; +0x137, 0x180064e27\nmov     dword ptr [rdi+1F0h], 0C2B40000h                               ; +0x139, 0x180064e29\nmov     [rdi+258h], rax                                                ; +0x143, 0x180064e33\nmov     [rdi+260h], eax                                                ; +0x14a, 0x180064e3a\nmov     dword ptr [rdi+1F4h], 40A00000h                                ; +0x150, 0x180064e40\nmov     dword ptr [rdi+1E8h], 42340000h                                ; +0x15a, 0x180064e4a\nmov     dword ptr [rdi+1ECh], 41700000h                                ; +0x164, 0x180064e54\nmov     dword ptr [rdi+234h], 41200000h                                ; +0x16e, 0x180064e5e\nmov     dword ptr [rdi+238h], 40A00000h                                ; +0x178, 0x180064e68\nmov     dword ptr [rdi+23Ch], 0BF800000h                               ; +0x182, 0x180064e72\nmov     dword ptr [rdi+294h], 41200000h                                ; +0x18c, 0x180064e7c\nmov     dword ptr [rdi+244h], 3F800000h                                ; +0x196, 0x180064e86\nmov     dword ptr [rdi+248h], 3F800000h                                ; +0x1a0, 0x180064e90\nmov     dword ptr [rdi+24Ch], 3F800000h                                ; +0x1aa, 0x180064e9a\nmov     qword ptr [rdi+250h], 3F800000h                                ; +0x1b4, 0x180064ea4\nmov     dword ptr [rdi+264h], 3F800000h                                ; +0x1bf, 0x180064eaf\nmov     dword ptr [rdi+268h], 3F800000h                                ; +0x1c9, 0x180064eb9\nmov     qword ptr [rdi+26Ch], 3F800000h                                ; +0x1d3, 0x180064ec3\nmov     [rdi+274h], rax                                                ; +0x1de, 0x180064ece\nmov     [rdi+27Ch], rax                                                ; +0x1e5, 0x180064ed5\ncall    sub_180063AC0                                                  ; +0x1ec, 0x180064edc\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x1f1, 0x180064ee1\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x1f6, 0x180064ee6\ntest    rax, rax                                                       ; +0x1fb, 0x180064eeb\njz      short loc_180064F01                                            ; +0x1fe, 0x180064eee\nlea     rcx, [rdi+140h]                                                ; +0x200, 0x180064ef0\nmov     rdx, rax                                                       ; +0x207, 0x180064ef7\nmov     r8, [rcx]                                                      ; +0x20a, 0x180064efa\ncall    qword ptr [r8+18h]                                             ; +0x20d, 0x180064efd\nmov     rax, [rdi]                                                     ; +0x211, 0x180064f01\nxor     edx, edx                                                       ; +0x214, 0x180064f04\nmov     rcx, rdi                                                       ; +0x216, 0x180064f06\ncall    qword ptr [rax+4E8h]                                           ; +0x219, 0x180064f09\nmov     al, 1                                                          ; +0x21f, 0x180064f0f\nadd     rsp, 30h                                                       ; +0x221, 0x180064f11\npop     rdi                                                            ; +0x225, 0x180064f15\nretn                                                                   ; +0x226, 0x180064f16\nxor     al, al                                                         ; +0x227, 0x180064f17\nadd     rsp, 30h                                                       ; +0x229, 0x180064f19\npop     rdi                                                            ; +0x22d, 0x180064f1d\nretn                                                                   ; +0x22e, 0x180064f1e", "xrefs": ["cocos2d::CCParticleSnow::createWithTotalParticles @ 0x1800638b7", "cocos2d::CCParticleSnow::createWithTotalParticles @ 0x1800638a6", "<???> @ 0x1800fe728", "<???> @ 0x180139c88", "<???> @ 0x180139c98", "<???> @ 0x1801438a8", "<???> @ 0x1801b3abc"], "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"}