{"type": "func", "start": 6442640448, "end": 6442641072, "name": "cocos2d::CCRipple3D::update", "pseudocode": "// \n// cocos2d::CCRipple3D::update from 0x18002e440 to 0x18002e6b0 (624 bytes)\n// \n// 5 xrefs:\n// > <???> @ 0x1800eeb18\n// > <???> @ 0x18013dd8c\n// > <???> @ 0x18013dd9c\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801b9f4c\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:32 +0000\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  float *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  float *v14; // rax\n  float v15; // [rsp+28h] [rbp-F0h] BYREF\n  float v16; // [rsp+30h] [rbp-E8h] BYREF\n  float v17; // [rsp+38h] [rbp-E0h] BYREF\n  float v18; // [rsp+40h] [rbp-D8h] BYREF\n  float v19[2]; // [rsp+48h] [rbp-D0h] BYREF\n  float v20; // [rsp+50h] [rbp-C8h]\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 = kmVec2Fill(&v16, v4, v6);\n          cocos2d::CCGrid3DAction::originalVertex((__int64)this, v19, v7);\n          v8 = kmVec2Fill(&v17, v19[0], v19[1]);\n          cocos2d::CCSize::operator-((float *)this + 26, &v15, v8);\n          Length = cocos2d::CCPoint::getLength((cocos2d::CCPoint *)&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            v20 = v20 + (float)(v12 * v13);\n          }\n          v14 = kmVec2Fill(&v18, v4, v6);\n          cocos2d::CCGrid3DAction::setVertex(\n            this,\n            (const struct cocos2d::CCPoint *)v14,\n            (const struct cocos2d::_ccVertex3F *)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 0x18002e440 to 0x18002e6b0 (624 bytes)\n; \n; 5 xrefs:\n; > <???> @ 0x1800eeb18\n; > <???> @ 0x18013dd8c\n; > <???> @ 0x18013dd9c\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801b9f4c\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:32 +0000\n; \nmov     r11, rsp                                                       ; +0x0, 0x18002e440\npush    rbx                                                            ; +0x3, 0x18002e443\npush    rsi                                                            ; +0x4, 0x18002e444\nsub     rsp, 108h                                                      ; +0x5, 0x18002e445\nmovaps  xmmword ptr [r11-68h], xmm10                                   ; +0xc, 0x18002e44c\nmovaps  xmmword ptr [r11-88h], xmm12                                   ; +0x11, 0x18002e451\nmov     rax, cs:__security_cookie                                      ; +0x19, 0x18002e459\nxor     rax, rsp                                                       ; +0x20, 0x18002e460\nmov     [rsp+118h+var_C0], rax                                         ; +0x23, 0x18002e463\nmovss   xmm0, dword ptr [rcx+60h]                                      ; +0x28, 0x18002e468\nxor     esi, esi                                                       ; +0x2d, 0x18002e46d\nmovss   xmm10, cs:flt_1800EC208                                        ; +0x2f, 0x18002e46f\nxorps   xmm12, xmm12                                                   ; +0x38, 0x18002e478\naddss   xmm0, xmm10                                                    ; +0x3c, 0x18002e47c\nmovss   [rsp+118h+var_F8], xmm1                                        ; +0x41, 0x18002e481\nmov     rbx, rcx                                                       ; +0x47, 0x18002e487\ncomiss  xmm0, xmm12                                                    ; +0x4a, 0x18002e48a\njbe     loc_18002E68B                                                  ; +0x4e, 0x18002e48e\nmov     [r11+18h], rbp                                                 ; +0x54, 0x18002e494\nmov     [r11-18h], rdi                                                 ; +0x58, 0x18002e498\nmovaps  xmmword ptr [r11-28h], xmm6                                    ; +0x5c, 0x18002e49c\nmovaps  xmmword ptr [r11-38h], xmm7                                    ; +0x61, 0x18002e4a1\nmovaps  xmmword ptr [r11-48h], xmm8                                    ; +0x66, 0x18002e4a6\nmovaps  xmmword ptr [r11-58h], xmm9                                    ; +0x6b, 0x18002e4ab\nxorps   xmm9, xmm9                                                     ; +0x70, 0x18002e4b0\nmovaps  xmmword ptr [r11-78h], xmm11                                   ; +0x74, 0x18002e4b4\nmovaps  xmmword ptr [r11-98h], xmm13                                   ; +0x79, 0x18002e4b9\nmovss   xmm13, cs:dword_1800ED6D8                                      ; +0x81, 0x18002e4c1\nmovaps  [rsp+118h+var_A8], xmm14                                       ; +0x8a, 0x18002e4ca\nmovss   xmm14, cs:flt_1800EED9C                                        ; +0x90, 0x18002e4d0\nmovaps  [rsp+118h+var_B8], xmm15                                       ; +0x99, 0x18002e4d9\nmovss   xmm15, cs:X                                                    ; +0x9f, 0x18002e4df\nnop     dword ptr [rax+rax+00000000h]                                  ; +0xa8, 0x18002e4e8\nmovss   xmm0, dword ptr [rbx+64h]                                      ; +0xb0, 0x18002e4f0\nxor     edi, edi                                                       ; +0xb5, 0x18002e4f5\naddss   xmm0, xmm10                                                    ; +0xb7, 0x18002e4f7\ncomiss  xmm0, xmm12                                                    ; +0xbc, 0x18002e4fc\njbe     loc_18002E61C                                                  ; +0xc0, 0x18002e500\nmovaps  xmm8, xmm12                                                    ; +0xc6, 0x18002e506\nmovss   xmm12, [rsp+118h+var_F8]                                       ; +0xca, 0x18002e50a\nmovaps  xmm2, xmm8                                                     ; +0xd1, 0x18002e511\nlea     rcx, [rsp+118h+var_E8]                                         ; +0xd5, 0x18002e515\nmovaps  xmm1, xmm9                                                     ; +0xda, 0x18002e51a\ncall    kmVec2Fill                                                     ; +0xde, 0x18002e51e\nmov     r8, rax                                                        ; +0xe3, 0x18002e523\nlea     rdx, [rsp+118h+var_D0]                                         ; +0xe6, 0x18002e526\nmov     rcx, rbx                                                       ; +0xeb, 0x18002e52b\ncall    ?originalVertex@CCGrid3DAction@cocos2d@@QEAA?AU_ccVertex3F@2@AEBVCCPoint@2@@Z; cocos2d::CCGrid3DAction::originalVertex(cocos2d::CCPoint const &) ; +0xee, 0x18002e52e\nmovss   xmm2, [rsp+118h+var_CC]                                        ; +0xf3, 0x18002e533\nlea     rcx, [rsp+118h+var_E0]                                         ; +0xf9, 0x18002e539\nmovss   xmm1, [rsp+118h+var_D0]                                        ; +0xfe, 0x18002e53e\ncall    kmVec2Fill                                                     ; +0x104, 0x18002e544\nmov     r8, rax                                                        ; +0x109, 0x18002e549\nlea     rdx, [rsp+118h+var_F0]                                         ; +0x10c, 0x18002e54c\nlea     rcx, [rbx+68h]                                                 ; +0x111, 0x18002e551\ncall    ??GCCSize@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCSize::operator-(cocos2d::CCSize const &) ; +0x115, 0x18002e555\nlea     rcx, [rsp+118h+var_F0]; this                                   ; +0x11a, 0x18002e55a\ncall    ?getLength@CCPoint@cocos2d@@QEBAMXZ; cocos2d::CCPoint::getLength(void) ; +0x11f, 0x18002e55f\nmovss   xmm11, dword ptr [rbx+70h]                                     ; +0x124, 0x18002e564\ncomiss  xmm11, xmm0                                                    ; +0x12a, 0x18002e56a\njbe     short loc_18002E5D7                                            ; +0x12e, 0x18002e56e\nmov     eax, [rbx+74h]                                                 ; +0x130, 0x18002e570\nmovaps  xmm7, xmm11                                                    ; +0x133, 0x18002e573\nsubss   xmm7, xmm0                                                     ; +0x137, 0x18002e577\nmovaps  xmm1, xmm12                                                    ; +0x13b, 0x18002e57b\nxorps   xmm0, xmm0                                                     ; +0x13f, 0x18002e57f\nmulss   xmm1, xmm13                                                    ; +0x142, 0x18002e582\ncvtsi2ss xmm0, rax                                                     ; +0x147, 0x18002e587\nmulss   xmm0, xmm1                                                     ; +0x14c, 0x18002e58c\nmovaps  xmm1, xmm7                                                     ; +0x150, 0x18002e590\nmulss   xmm1, xmm14                                                    ; +0x153, 0x18002e593\naddss   xmm0, xmm0                                                     ; +0x158, 0x18002e598\naddss   xmm0, xmm1; X                                                  ; +0x15c, 0x18002e59c\ncall    sinf                                                           ; +0x160, 0x18002e5a0\nmovaps  xmm6, xmm0                                                     ; +0x165, 0x18002e5a5\nmovaps  xmm1, xmm15; Y                                                 ; +0x168, 0x18002e5a8\nmulss   xmm6, dword ptr [rbx+78h]                                      ; +0x16c, 0x18002e5ac\ndivss   xmm7, xmm11                                                    ; +0x171, 0x18002e5b1\nmulss   xmm6, dword ptr [rbx+7Ch]                                      ; +0x176, 0x18002e5b6\nmovaps  xmm0, xmm7; X                                                  ; +0x17b, 0x18002e5bb\ncall    powf                                                           ; +0x17e, 0x18002e5be\nmovss   xmm1, [rsp+118h+var_C8]                                        ; +0x183, 0x18002e5c3\nmulss   xmm6, xmm0                                                     ; +0x189, 0x18002e5c9\naddss   xmm1, xmm6                                                     ; +0x18d, 0x18002e5cd\nmovss   [rsp+118h+var_C8], xmm1                                        ; +0x191, 0x18002e5d1\nmovaps  xmm2, xmm8                                                     ; +0x197, 0x18002e5d7\nlea     rcx, [rsp+118h+var_D8]                                         ; +0x19b, 0x18002e5db\nmovaps  xmm1, xmm9                                                     ; +0x1a0, 0x18002e5e0\ncall    kmVec2Fill                                                     ; +0x1a4, 0x18002e5e4\nmov     rdx, rax; struct cocos2d::CCPoint *                            ; +0x1a9, 0x18002e5e9\nlea     r8, [rsp+118h+var_D0]; struct cocos2d::_ccVertex3F *           ; +0x1ac, 0x18002e5ec\nmov     rcx, rbx; this                                                 ; +0x1b1, 0x18002e5f1\ncall    ?setVertex@CCGrid3DAction@cocos2d@@QEAAXAEBVCCPoint@2@AEBU_ccVertex3F@2@@Z; cocos2d::CCGrid3DAction::setVertex(cocos2d::CCPoint const &,cocos2d::_ccVertex3F const &) ; +0x1b4, 0x18002e5f4\nmovss   xmm0, dword ptr [rbx+64h]                                      ; +0x1b9, 0x18002e5f9\ninc     edi                                                            ; +0x1be, 0x18002e5fe\naddss   xmm0, xmm10                                                    ; +0x1c0, 0x18002e600\nmovd    xmm8, edi                                                      ; +0x1c5, 0x18002e605\ncvtdq2ps xmm8, xmm8                                                    ; +0x1ca, 0x18002e60a\ncomiss  xmm0, xmm8                                                     ; +0x1ce, 0x18002e60e\nja      loc_18002E511                                                  ; +0x1d2, 0x18002e612\nxorps   xmm12, xmm12                                                   ; +0x1d8, 0x18002e618\nmovss   xmm0, dword ptr [rbx+60h]                                      ; +0x1dc, 0x18002e61c\ninc     esi                                                            ; +0x1e1, 0x18002e621\naddss   xmm0, xmm10                                                    ; +0x1e3, 0x18002e623\nmovd    xmm9, esi                                                      ; +0x1e8, 0x18002e628\ncvtdq2ps xmm9, xmm9                                                    ; +0x1ed, 0x18002e62d\ncomiss  xmm0, xmm9                                                     ; +0x1f1, 0x18002e631\nja      loc_18002E4F0                                                  ; +0x1f5, 0x18002e635\nmovaps  xmm15, [rsp+118h+var_B8]                                       ; +0x1fb, 0x18002e63b\nmovaps  xmm14, [rsp+118h+var_A8]                                       ; +0x201, 0x18002e641\nmovaps  xmm13, [rsp+118h+var_98]                                       ; +0x207, 0x18002e647\nmovaps  xmm11, [rsp+118h+var_78]                                       ; +0x210, 0x18002e650\nmovaps  xmm9, [rsp+118h+var_58]                                        ; +0x219, 0x18002e659\nmovaps  xmm8, [rsp+118h+var_48]                                        ; +0x222, 0x18002e662\nmovaps  xmm7, [rsp+118h+var_38]                                        ; +0x22b, 0x18002e66b\nmovaps  xmm6, [rsp+118h+var_28]                                        ; +0x233, 0x18002e673\nmov     rdi, [rsp+118h+var_18]                                         ; +0x23b, 0x18002e67b\nmov     rbp, [rsp+118h+arg_10]                                         ; +0x243, 0x18002e683\nmov     rcx, [rsp+118h+var_C0]                                         ; +0x24b, 0x18002e68b\nxor     rcx, rsp; StackCookie                                          ; +0x250, 0x18002e690\ncall    __security_check_cookie                                        ; +0x253, 0x18002e693\nlea     r11, [rsp+118h+var_10]                                         ; +0x258, 0x18002e698\nmovaps  xmm10, xmmword ptr [r11-58h]                                   ; +0x260, 0x18002e6a0\nmovaps  xmm12, xmmword ptr [r11-78h]                                   ; +0x265, 0x18002e6a5\nmov     rsp, r11                                                       ; +0x26a, 0x18002e6aa\npop     rsi                                                            ; +0x26d, 0x18002e6ad\npop     rbx                                                            ; +0x26e, 0x18002e6ae\nretn                                                                   ; +0x26f, 0x18002e6af", "xrefs": ["<???> @ 0x1800eeb18", "<???> @ 0x18013dd8c", "<???> @ 0x18013dd9c", "<???> @ 0x18014cf68", "<???> @ 0x1801b9f4c"], "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"}