{"type": "func", "start": 6442638672, "end": 6442639282, "name": "cocos2d::CCRipple3D::update", "pseudocode": "// \n// cocos2d::CCRipple3D::update from 0x18002dd50 to 0x18002dfb2 (610 bytes)\n// \n// 6 xrefs:\n// > <???> @ 0x1800e8ab0\n// > <???> @ 0x180134ddc\n// > <???> @ 0x180134dec\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801afe2c\n// > <???> @ 0x1801afe38\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\nvoid __fastcall cocos2d::CCRipple3D::update(cocos2d::CCRipple3D *this, float a2)\n{\n  int v2; // esi\n  float v4; // xmm9_4\n  int v5; // edi\n  float v6; // xmm8_4\n  const struct cocos2d::CCPoint *v7; // rax\n  float *v8; // rax\n  float Length; // xmm0_4\n  float v10; // xmm11_4\n  float v11; // xmm7_4\n  float v12; // xmm6_4\n  float v13; // xmm0_4\n  const struct cocos2d::CCPoint *v14; // rax\n  cocos2d::CCPoint v15; // [rsp+20h] [rbp-F8h] BYREF\n  float v16; // [rsp+28h] [rbp-F0h] BYREF\n  float v17; // [rsp+30h] [rbp-E8h] BYREF\n  float v18; // [rsp+38h] [rbp-E0h] BYREF\n  struct cocos2d::_ccVertex3F v19; // [rsp+40h] [rbp-D8h] BYREF\n\n  v2 = 0;\n  if ( (float)(*((float *)this + 24) + 1.0) > 0.0 )\n  {\n    v4 = 0.0;\n    do\n    {\n      v5 = 0;\n      if ( (float)(*((float *)this + 25) + 1.0) > 0.0 )\n      {\n        v6 = 0.0;\n        do\n        {\n          v7 = (const struct cocos2d::CCPoint *)kmVec2Fill(&v16, v4, v6);\n          cocos2d::CCGrid3DAction::originalVertex(this, &v19, v7);\n          v8 = kmVec2Fill(&v17, v19.x, v19.y);\n          cocos2d::CCSize::operator-((float *)this + 26, (float *)&v15, v8);\n          Length = cocos2d::CCPoint::getLength(&v15);\n          v10 = *((float *)this + 28);\n          if ( v10 > Length )\n          {\n            v11 = v10 - Length;\n            v12 = (float)(sinf(\n                            (float)((float)((float)*((int *)this + 29) * (float)(a2 * 3.1415927))\n                                  + (float)((float)*((int *)this + 29) * (float)(a2 * 3.1415927)))\n                          + (float)((float)(v10 - Length) * 0.1))\n                        * *((float *)this + 30))\n                * *((float *)this + 31);\n            v13 = powf(v11 / v10, 2.0);\n            v19.z = v19.z + (float)(v12 * v13);\n          }\n          v14 = (const struct cocos2d::CCPoint *)kmVec2Fill(&v18, v4, v6);\n          cocos2d::CCGrid3DAction::setVertex(this, v14, &v19);\n          v6 = (float)++v5;\n        }\n        while ( (float)(*((float *)this + 25) + 1.0) > (float)v5 );\n      }\n      v4 = (float)++v2;\n    }\n    while ( (float)(*((float *)this + 24) + 1.0) > (float)v2 );\n  }\n}", "assembly": "; \n; cocos2d::CCRipple3D::update from 0x18002dd50 to 0x18002dfb2 (610 bytes)\n; \n; 6 xrefs:\n; > <???> @ 0x1800e8ab0\n; > <???> @ 0x180134ddc\n; > <???> @ 0x180134dec\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801afe2c\n; > <???> @ 0x1801afe38\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\nmov     r11, rsp                                                       ; +0x0, 0x18002dd50\npush    rbx                                                            ; +0x3, 0x18002dd53\npush    rsi                                                            ; +0x4, 0x18002dd54\nsub     rsp, 108h                                                      ; +0x5, 0x18002dd55\nmovaps  xmmword ptr [r11-68h], xmm10                                   ; +0xc, 0x18002dd5c\nmovaps  xmmword ptr [r11-88h], xmm12                                   ; +0x11, 0x18002dd61\nmovaps  xmmword ptr [r11-98h], xmm13                                   ; +0x19, 0x18002dd69\nmov     rax, cs:__security_cookie                                      ; +0x21, 0x18002dd71\nxor     rax, rsp                                                       ; +0x28, 0x18002dd78\nmov     [rsp+118h+var_C8], rax                                         ; +0x2b, 0x18002dd7b\nmovss   xmm0, dword ptr [rcx+60h]                                      ; +0x30, 0x18002dd80\nxor     esi, esi                                                       ; +0x35, 0x18002dd85\nmovss   xmm10, cs:flt_1800E61A8                                        ; +0x37, 0x18002dd87\nxorps   xmm12, xmm12                                                   ; +0x40, 0x18002dd90\naddss   xmm0, xmm10                                                    ; +0x44, 0x18002dd94\nmovaps  xmm13, xmm1                                                    ; +0x49, 0x18002dd99\nmov     rbx, rcx                                                       ; +0x4d, 0x18002dd9d\ncomiss  xmm0, xmm12                                                    ; +0x50, 0x18002dda0\njbe     loc_18002DF85                                                  ; +0x54, 0x18002dda4\nmulss   xmm13, cs:dword_1800E7670                                      ; +0x5a, 0x18002ddaa\nmov     [r11+18h], rbp                                                 ; +0x63, 0x18002ddb3\nmov     [r11-18h], rdi                                                 ; +0x67, 0x18002ddb7\nmovaps  xmmword ptr [r11-28h], xmm6                                    ; +0x6b, 0x18002ddbb\nmovaps  xmmword ptr [r11-38h], xmm7                                    ; +0x70, 0x18002ddc0\nmovaps  xmmword ptr [r11-48h], xmm8                                    ; +0x75, 0x18002ddc5\nmovaps  xmmword ptr [r11-58h], xmm9                                    ; +0x7a, 0x18002ddca\nxorps   xmm9, xmm9                                                     ; +0x7f, 0x18002ddcf\nmovaps  xmmword ptr [r11-78h], xmm11                                   ; +0x83, 0x18002ddd3\nmovaps  [rsp+118h+var_A8], xmm14                                       ; +0x88, 0x18002ddd8\nmovss   xmm14, cs:flt_1800E8D34                                        ; +0x8e, 0x18002ddde\nmovaps  [rsp+118h+var_B8], xmm15                                       ; +0x97, 0x18002dde7\nmovss   xmm15, cs:Y                                                    ; +0x9d, 0x18002dded\nnop     word ptr [rax+rax+00000000h]                                   ; +0xa6, 0x18002ddf6\nmovss   xmm0, dword ptr [rbx+64h]                                      ; +0xb0, 0x18002de00\nxor     edi, edi                                                       ; +0xb5, 0x18002de05\naddss   xmm0, xmm10                                                    ; +0xb7, 0x18002de07\ncomiss  xmm0, xmm12                                                    ; +0xbc, 0x18002de0c\njbe     loc_18002DF1F                                                  ; +0xc0, 0x18002de10\nmovaps  xmm8, xmm12                                                    ; +0xc6, 0x18002de16\nnop     word ptr [rax+rax+00h]                                         ; +0xca, 0x18002de1a\nmovaps  xmm2, xmm8                                                     ; +0xd0, 0x18002de20\nlea     rcx, [rsp+118h+var_F0]                                         ; +0xd4, 0x18002de24\nmovaps  xmm1, xmm9                                                     ; +0xd9, 0x18002de29\ncall    kmVec2Fill                                                     ; +0xdd, 0x18002de2d\nmov     r8, rax                                                        ; +0xe2, 0x18002de32\nlea     rdx, [rsp+118h+var_D8]                                         ; +0xe5, 0x18002de35\nmov     rcx, rbx                                                       ; +0xea, 0x18002de3a\ncall    ?originalVertex@CCGrid3DAction@cocos2d@@QEAA?AU_ccVertex3F@2@AEBVCCPoint@2@@Z; cocos2d::CCGrid3DAction::originalVertex(cocos2d::CCPoint const &) ; +0xed, 0x18002de3d\nmovss   xmm2, [rsp+118h+var_D4]                                        ; +0xf2, 0x18002de42\nlea     rcx, [rsp+118h+var_E8]                                         ; +0xf8, 0x18002de48\nmovss   xmm1, [rsp+118h+var_D8]                                        ; +0xfd, 0x18002de4d\ncall    kmVec2Fill                                                     ; +0x103, 0x18002de53\nmov     r8, rax                                                        ; +0x108, 0x18002de58\nlea     rdx, [rsp+118h+var_F8]                                         ; +0x10b, 0x18002de5b\nlea     rcx, [rbx+68h]                                                 ; +0x110, 0x18002de60\ncall    ??GCCSize@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCSize::operator-(cocos2d::CCSize const &) ; +0x114, 0x18002de64\nlea     rcx, [rsp+118h+var_F8]; this                                   ; +0x119, 0x18002de69\ncall    ?getLength@CCPoint@cocos2d@@QEBAMXZ; cocos2d::CCPoint::getLength(void) ; +0x11e, 0x18002de6e\nmovss   xmm11, dword ptr [rbx+70h]                                     ; +0x123, 0x18002de73\ncomiss  xmm11, xmm0                                                    ; +0x129, 0x18002de79\njbe     short loc_18002DEDE                                            ; +0x12d, 0x18002de7d\nmov     eax, [rbx+74h]                                                 ; +0x12f, 0x18002de7f\nmovaps  xmm7, xmm11                                                    ; +0x132, 0x18002de82\nsubss   xmm7, xmm0                                                     ; +0x136, 0x18002de86\nxorps   xmm0, xmm0                                                     ; +0x13a, 0x18002de8a\ncvtsi2ss xmm0, rax                                                     ; +0x13d, 0x18002de8d\nmovaps  xmm1, xmm7                                                     ; +0x142, 0x18002de92\nmulss   xmm1, xmm14                                                    ; +0x145, 0x18002de95\nmulss   xmm0, xmm13                                                    ; +0x14a, 0x18002de9a\naddss   xmm0, xmm0                                                     ; +0x14f, 0x18002de9f\naddss   xmm0, xmm1; X                                                  ; +0x153, 0x18002dea3\ncall    sinf                                                           ; +0x157, 0x18002dea7\nmovaps  xmm6, xmm0                                                     ; +0x15c, 0x18002deac\nmovaps  xmm1, xmm15; Y                                                 ; +0x15f, 0x18002deaf\nmulss   xmm6, dword ptr [rbx+78h]                                      ; +0x163, 0x18002deb3\ndivss   xmm7, xmm11                                                    ; +0x168, 0x18002deb8\nmulss   xmm6, dword ptr [rbx+7Ch]                                      ; +0x16d, 0x18002debd\nmovaps  xmm0, xmm7; X                                                  ; +0x172, 0x18002dec2\ncall    powf                                                           ; +0x175, 0x18002dec5\nmovss   xmm1, [rsp+118h+var_D0]                                        ; +0x17a, 0x18002deca\nmulss   xmm6, xmm0                                                     ; +0x180, 0x18002ded0\naddss   xmm1, xmm6                                                     ; +0x184, 0x18002ded4\nmovss   [rsp+118h+var_D0], xmm1                                        ; +0x188, 0x18002ded8\nmovaps  xmm2, xmm8                                                     ; +0x18e, 0x18002dede\nlea     rcx, [rsp+118h+var_E0]                                         ; +0x192, 0x18002dee2\nmovaps  xmm1, xmm9                                                     ; +0x197, 0x18002dee7\ncall    kmVec2Fill                                                     ; +0x19b, 0x18002deeb\nmov     rdx, rax; struct cocos2d::CCPoint *                            ; +0x1a0, 0x18002def0\nlea     r8, [rsp+118h+var_D8]; struct cocos2d::_ccVertex3F *           ; +0x1a3, 0x18002def3\nmov     rcx, rbx; this                                                 ; +0x1a8, 0x18002def8\ncall    ?setVertex@CCGrid3DAction@cocos2d@@QEAAXAEBVCCPoint@2@AEBU_ccVertex3F@2@@Z; cocos2d::CCGrid3DAction::setVertex(cocos2d::CCPoint const &,cocos2d::_ccVertex3F const &) ; +0x1ab, 0x18002defb\nmovss   xmm0, dword ptr [rbx+64h]                                      ; +0x1b0, 0x18002df00\ninc     edi                                                            ; +0x1b5, 0x18002df05\naddss   xmm0, xmm10                                                    ; +0x1b7, 0x18002df07\nmovd    xmm8, edi                                                      ; +0x1bc, 0x18002df0c\ncvtdq2ps xmm8, xmm8                                                    ; +0x1c1, 0x18002df11\ncomiss  xmm0, xmm8                                                     ; +0x1c5, 0x18002df15\nja      loc_18002DE20                                                  ; +0x1c9, 0x18002df19\nmovss   xmm0, dword ptr [rbx+60h]                                      ; +0x1cf, 0x18002df1f\ninc     esi                                                            ; +0x1d4, 0x18002df24\naddss   xmm0, xmm10                                                    ; +0x1d6, 0x18002df26\nmovd    xmm9, esi                                                      ; +0x1db, 0x18002df2b\ncvtdq2ps xmm9, xmm9                                                    ; +0x1e0, 0x18002df30\ncomiss  xmm0, xmm9                                                     ; +0x1e4, 0x18002df34\nja      loc_18002DE00                                                  ; +0x1e8, 0x18002df38\nmovaps  xmm15, [rsp+118h+var_B8]                                       ; +0x1ee, 0x18002df3e\nmovaps  xmm14, [rsp+118h+var_A8]                                       ; +0x1f4, 0x18002df44\nmovaps  xmm11, [rsp+118h+var_78]                                       ; +0x1fa, 0x18002df4a\nmovaps  xmm9, [rsp+118h+var_58]                                        ; +0x203, 0x18002df53\nmovaps  xmm8, [rsp+118h+var_48]                                        ; +0x20c, 0x18002df5c\nmovaps  xmm7, [rsp+118h+var_38]                                        ; +0x215, 0x18002df65\nmovaps  xmm6, [rsp+118h+var_28]                                        ; +0x21d, 0x18002df6d\nmov     rdi, [rsp+118h+var_18]                                         ; +0x225, 0x18002df75\nmov     rbp, [rsp+118h+arg_10]                                         ; +0x22d, 0x18002df7d\nmov     rcx, [rsp+118h+var_C8]                                         ; +0x235, 0x18002df85\nxor     rcx, rsp; StackCookie                                          ; +0x23a, 0x18002df8a\ncall    __security_check_cookie                                        ; +0x23d, 0x18002df8d\nlea     r11, [rsp+118h+var_10]                                         ; +0x242, 0x18002df92\nmovaps  xmm10, xmmword ptr [r11-58h]                                   ; +0x24a, 0x18002df9a\nmovaps  xmm12, xmmword ptr [r11-78h]                                   ; +0x24f, 0x18002df9f\nmovaps  xmm13, xmmword ptr [r11-88h]                                   ; +0x254, 0x18002dfa4\nmov     rsp, r11                                                       ; +0x25c, 0x18002dfac\npop     rsi                                                            ; +0x25f, 0x18002dfaf\npop     rbx                                                            ; +0x260, 0x18002dfb0\nretn                                                                   ; +0x261, 0x18002dfb1", "xrefs": ["<???> @ 0x1800e8ab0", "<???> @ 0x180134ddc", "<???> @ 0x180134dec", "<???> @ 0x1801438a8", "<???> @ 0x1801afe2c", "<???> @ 0x1801afe38"], "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"}