{"type": "func", "start": 6442862768, "end": 6442863321, "name": "cocos2d::CCParticleRain::initWithTotalParticles", "pseudocode": "// \n// cocos2d::CCParticleRain::initWithTotalParticles from 0x1800648b0 to 0x180064ad9 (553 bytes)\n// \n// 7 xrefs:\n// > cocos2d::CCParticleRain::createWithTotalParticles @ 0x180063717\n// > cocos2d::CCParticleRain::createWithTotalParticles @ 0x180063706\n// > <???> @ 0x1800fed98\n// > <???> @ 0x180139cac\n// > <???> @ 0x180139cbc\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b3a74\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::CCParticleRain::initWithTotalParticles(cocos2d::CCParticleRain *this, unsigned int a2)\n{\n  cocos2d::CCParticleRain_vtbl *v3; // rax\n  cocos2d::CCParticleRain_vtbl *v4; // rbx\n  float *v5; // rax\n  cocos2d::CCDirector *v6; // rax\n  cocos2d::CCParticleRain_vtbl *v7; // rbx\n  float *v8; // rax\n  cocos2d::CCParticleRain_vtbl *v9; // rbx\n  float *v10; // rax\n  struct cocos2d::CCTexture2D *v11; // rax\n  float v13; // [rsp+40h] [rbp+18h]\n  float v14; // [rsp+44h] [rbp+1Ch]\n  float v15; // [rsp+48h] [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::CCParticleRain *, _QWORD))v3->setEmitterMode)(this, 0);\n  v4 = this->cocos2d::CCParticleSystemQuad::cocos2d::CCParticleSystem::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n  v5 = kmVec2Fill(&v15, 10.0, -10.0);\n  ((void (__fastcall *)(cocos2d::CCParticleRain *, float *))v4->setGravity)(this, v5);\n  ((void (__fastcall *)(cocos2d::CCParticleRain *))this->setRadialAccel)(this);\n  ((void (__fastcall *)(cocos2d::CCParticleRain *))this->setRadialAccelVar)(this);\n  ((void (__fastcall *)(cocos2d::CCParticleRain *))this->setTangentialAccel)(this);\n  ((void (__fastcall *)(cocos2d::CCParticleRain *))this->setTangentialAccelVar)(this);\n  ((void (__fastcall *)(cocos2d::CCParticleRain *))this->setSpeed)(this);\n  ((void (__fastcall *)(cocos2d::CCParticleRain *))this->setSpeedVar)(this);\n  this->m_fAngle = -90.0;\n  this->m_fAngleVar = 5.0;\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);\n  ((void (__fastcall *)(cocos2d::CCParticleRain *, 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::CCParticleRain *, float *))v9->setPosVar)(this, v10);\n  *(_QWORD *)&this->m_fLife = 1083179008;\n  *(_QWORD *)&this->m_tStartColorVar.g = 0;\n  this->m_tStartColorVar.a = 0.0;\n  *(_QWORD *)&this->m_tEndColorVar.g = 0;\n  this->m_tEndColorVar.a = 0.0;\n  this->m_fStartSize = 4.0;\n  this->m_fStartSizeVar = 2.0;\n  this->m_fEndSize = -1.0;\n  this->m_fEmissionRate = 20.0;\n  this->m_tStartColor.r = 0.69999999;\n  this->m_tStartColor.g = 0.80000001;\n  this->m_tStartColor.b = 1.0;\n  *(_QWORD *)&this->m_tStartColor.a = 1065353216;\n  this->m_tEndColor.r = 0.69999999;\n  this->m_tEndColor.g = 0.80000001;\n  this->m_tEndColor.b = 1.0;\n  *(_QWORD *)&this->m_tEndColor.a = 1056964608;\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::CCParticleRain *, _QWORD))this->setBlendAdditive)(this, 0);\n  return 1;\n}", "assembly": "; \n; cocos2d::CCParticleRain::initWithTotalParticles from 0x1800648b0 to 0x180064ad9 (553 bytes)\n; \n; 7 xrefs:\n; > cocos2d::CCParticleRain::createWithTotalParticles @ 0x180063717\n; > cocos2d::CCParticleRain::createWithTotalParticles @ 0x180063706\n; > <???> @ 0x1800fed98\n; > <???> @ 0x180139cac\n; > <???> @ 0x180139cbc\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b3a74\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, 0x1800648b0\nsub     rsp, 20h                                                       ; +0x2, 0x1800648b2\nxor     r8d, r8d; bool                                                 ; +0x6, 0x1800648b6\nmov     rdi, rcx                                                       ; +0x9, 0x1800648b9\ncall    ?initWithTotalParticles@CCParticleSystemQuad@cocos2d@@UEAA_NI_N@Z; cocos2d::CCParticleSystemQuad::initWithTotalParticles(uint,bool) ; +0xc, 0x1800648bc\ntest    al, al                                                         ; +0x11, 0x1800648c1\njz      loc_180064AD1                                                  ; +0x13, 0x1800648c3\nmov     rax, [rdi]                                                     ; +0x19, 0x1800648c9\nxor     edx, edx                                                       ; +0x1c, 0x1800648cc\nmov     rcx, rdi                                                       ; +0x1e, 0x1800648ce\nmov     [rsp+28h+arg_0], rbx                                           ; +0x21, 0x1800648d1\nmov     dword ptr [rdi+1D4h], 0BF800000h                               ; +0x26, 0x1800648d6\ncall    qword ptr [rax+608h]                                           ; +0x30, 0x1800648e0\nmovss   xmm2, cs:dword_1800E8454                                       ; +0x36, 0x1800648e6\nlea     rcx, [rsp+28h+arg_18]                                          ; +0x3e, 0x1800648ee\nmovss   xmm1, cs:dword_1800E8440                                       ; +0x43, 0x1800648f3\nmov     rbx, [rdi]                                                     ; +0x4b, 0x1800648fb\ncall    kmVec2Fill                                                     ; +0x4e, 0x1800648fe\nmov     rdx, rax                                                       ; +0x53, 0x180064903\nmov     rcx, rdi                                                       ; +0x56, 0x180064906\ncall    qword ptr [rbx+400h]                                           ; +0x59, 0x180064909\nmov     rax, [rdi]                                                     ; +0x5f, 0x18006490f\nxorps   xmm1, xmm1                                                     ; +0x62, 0x180064912\nmov     rcx, rdi                                                       ; +0x65, 0x180064915\ncall    qword ptr [rax+450h]                                           ; +0x68, 0x180064918\nmov     rax, [rdi]                                                     ; +0x6e, 0x18006491e\nmov     rcx, rdi                                                       ; +0x71, 0x180064921\nmovss   xmm1, cs:flt_1800E61A8                                         ; +0x74, 0x180064924\ncall    qword ptr [rax+460h]                                           ; +0x7c, 0x18006492c\nmov     rax, [rdi]                                                     ; +0x82, 0x180064932\nxorps   xmm1, xmm1                                                     ; +0x85, 0x180064935\nmov     rcx, rdi                                                       ; +0x88, 0x180064938\ncall    qword ptr [rax+430h]                                           ; +0x8b, 0x18006493b\nmov     rax, [rdi]                                                     ; +0x91, 0x180064941\nmov     rcx, rdi                                                       ; +0x94, 0x180064944\nmovss   xmm1, cs:flt_1800E61A8                                         ; +0x97, 0x180064947\ncall    qword ptr [rax+440h]                                           ; +0x9f, 0x18006494f\nmov     rax, [rdi]                                                     ; +0xa5, 0x180064955\nmov     rcx, rdi                                                       ; +0xa8, 0x180064958\nmovss   xmm1, cs:dword_1800FEDFC                                       ; +0xab, 0x18006495b\ncall    qword ptr [rax+410h]                                           ; +0xb3, 0x180064963\nmov     rax, [rdi]                                                     ; +0xb9, 0x180064969\nmov     rcx, rdi                                                       ; +0xbc, 0x18006496c\nmovss   xmm1, cs:dword_1800FEDE8                                       ; +0xbf, 0x18006496f\ncall    qword ptr [rax+420h]                                           ; +0xc7, 0x180064977\nmov     dword ptr [rdi+1F0h], 0C2B40000h                               ; +0xcd, 0x18006497d\nmov     dword ptr [rdi+1F4h], 40A00000h                                ; +0xd7, 0x180064987\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xe1, 0x180064991\nmov     rcx, rax                                                       ; +0xe6, 0x180064996\nlea     rdx, [rsp+28h+arg_10]                                          ; +0xe9, 0x180064999\ncall    ?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0xee, 0x18006499e\nmovss   xmm1, [rsp+28h+arg_10]                                         ; +0xf3, 0x1800649a3\nlea     rcx, [rsp+28h+arg_18]                                          ; +0xf9, 0x1800649a9\nmulss   xmm1, cs:dword_1800E6308                                       ; +0xfe, 0x1800649ae\nmov     rbx, [rdi]                                                     ; +0x106, 0x1800649b6\nmovss   xmm2, [rsp+28h+arg_14]                                         ; +0x109, 0x1800649b9\ncall    kmVec2Fill                                                     ; +0x10f, 0x1800649bf\nmov     rdx, rax                                                       ; +0x114, 0x1800649c4\nmov     rcx, rdi                                                       ; +0x117, 0x1800649c7\ncall    qword ptr [rbx+0B8h]                                           ; +0x11a, 0x1800649ca\nmovss   xmm1, [rsp+28h+arg_10]                                         ; +0x120, 0x1800649d0\nlea     rcx, [rsp+28h+arg_18]                                          ; +0x126, 0x1800649d6\nmulss   xmm1, cs:dword_1800E6308                                       ; +0x12b, 0x1800649db\nxorps   xmm2, xmm2                                                     ; +0x133, 0x1800649e3\nmov     rbx, [rdi]                                                     ; +0x136, 0x1800649e6\ncall    kmVec2Fill                                                     ; +0x139, 0x1800649e9\nmov     rdx, rax                                                       ; +0x13e, 0x1800649ee\nmov     rcx, rdi                                                       ; +0x141, 0x1800649f1\ncall    qword ptr [rbx+3A8h]                                           ; +0x144, 0x1800649f4\nxor     eax, eax                                                       ; +0x14a, 0x1800649fa\nmov     qword ptr [rdi+1E8h], 40900000h                                ; +0x14c, 0x1800649fc\nmov     [rdi+258h], rax                                                ; +0x157, 0x180064a07\nmov     [rdi+260h], eax                                                ; +0x15e, 0x180064a0e\nmov     [rdi+278h], rax                                                ; +0x164, 0x180064a14\nmov     [rdi+280h], eax                                                ; +0x16b, 0x180064a1b\nmov     dword ptr [rdi+234h], 40800000h                                ; +0x171, 0x180064a21\nmov     dword ptr [rdi+238h], 40000000h                                ; +0x17b, 0x180064a2b\nmov     dword ptr [rdi+23Ch], 0BF800000h                               ; +0x185, 0x180064a35\nmov     dword ptr [rdi+294h], 41A00000h                                ; +0x18f, 0x180064a3f\nmov     dword ptr [rdi+244h], 3F333333h                                ; +0x199, 0x180064a49\nmov     dword ptr [rdi+248h], 3F4CCCCDh                                ; +0x1a3, 0x180064a53\nmov     dword ptr [rdi+24Ch], 3F800000h                                ; +0x1ad, 0x180064a5d\nmov     qword ptr [rdi+250h], 3F800000h                                ; +0x1b7, 0x180064a67\nmov     dword ptr [rdi+264h], 3F333333h                                ; +0x1c2, 0x180064a72\nmov     dword ptr [rdi+268h], 3F4CCCCDh                                ; +0x1cc, 0x180064a7c\nmov     dword ptr [rdi+26Ch], 3F800000h                                ; +0x1d6, 0x180064a86\nmov     qword ptr [rdi+270h], 3F000000h                                ; +0x1e0, 0x180064a90\ncall    sub_180063AC0                                                  ; +0x1eb, 0x180064a9b\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x1f0, 0x180064aa0\ntest    rax, rax                                                       ; +0x1f5, 0x180064aa5\njz      short loc_180064ABB                                            ; +0x1f8, 0x180064aa8\nlea     rcx, [rdi+140h]                                                ; +0x1fa, 0x180064aaa\nmov     rdx, rax                                                       ; +0x201, 0x180064ab1\nmov     r8, [rcx]                                                      ; +0x204, 0x180064ab4\ncall    qword ptr [r8+18h]                                             ; +0x207, 0x180064ab7\nmov     rax, [rdi]                                                     ; +0x20b, 0x180064abb\nxor     edx, edx                                                       ; +0x20e, 0x180064abe\nmov     rcx, rdi                                                       ; +0x210, 0x180064ac0\ncall    qword ptr [rax+4E8h]                                           ; +0x213, 0x180064ac3\nmov     al, 1                                                          ; +0x219, 0x180064ac9\nadd     rsp, 20h                                                       ; +0x21b, 0x180064acb\npop     rdi                                                            ; +0x21f, 0x180064acf\nretn                                                                   ; +0x220, 0x180064ad0\nxor     al, al                                                         ; +0x221, 0x180064ad1\nadd     rsp, 20h                                                       ; +0x223, 0x180064ad3\npop     rdi                                                            ; +0x227, 0x180064ad7\nretn                                                                   ; +0x228, 0x180064ad8", "xrefs": ["cocos2d::CCParticleRain::createWithTotalParticles @ 0x180063717", "cocos2d::CCParticleRain::createWithTotalParticles @ 0x180063706", "<???> @ 0x1800fed98", "<???> @ 0x180139cac", "<???> @ 0x180139cbc", "<???> @ 0x1801438a8", "<???> @ 0x1801b3a74"], "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"}