{"type": "func", "start": 6442638176, "end": 6442638672, "name": "cocos2d::CCLiquid::update", "pseudocode": "// \n// cocos2d::CCLiquid::update from 0x18002db60 to 0x18002dd50 (496 bytes)\n// \n// 5 xrefs:\n// > <???> @ 0x1800e8bc0\n// > <???> @ 0x180134f58\n// > <???> @ 0x180134f68\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801afe14\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::CCLiquid::update(cocos2d::CCLiquid *this, float a2)\n{\n  int v3; // edi\n  float v4; // xmm13_4\n  float v5; // xmm1_4\n  float v6; // xmm10_4\n  int v7; // esi\n  float v8; // xmm12_4\n  const struct cocos2d::CCPoint *v9; // rax\n  float x; // xmm6_4\n  float v11; // xmm9_4\n  float y; // xmm6_4\n  const struct cocos2d::CCPoint *v13; // rax\n  float v14; // [rsp+20h] [rbp-C8h] BYREF\n  float v15; // [rsp+28h] [rbp-C0h] BYREF\n  struct cocos2d::_ccVertex3F v16; // [rsp+30h] [rbp-B8h] BYREF\n\n  v3 = 1;\n  if ( *((float *)this + 24) > 1.0 )\n  {\n    v4 = a2 * 3.1415927;\n    v5 = *((float *)this + 25);\n    v6 = 1.0;\n    do\n    {\n      v7 = 1;\n      if ( v5 > 1.0 )\n      {\n        v8 = 1.0;\n        do\n        {\n          v9 = (const struct cocos2d::CCPoint *)kmVec2Fill(&v14, v6, v8);\n          cocos2d::CCGrid3DAction::originalVertex(this, &v16, v9);\n          x = v16.x;\n          v11 = (float)((float)*((int *)this + 26) * v4) + (float)((float)*((int *)this + 26) * v4);\n          v16.x = x\n                + (float)((float)(sinf((float)(v16.x * 0.0099999998) + v11) * *((float *)this + 27))\n                        * *((float *)this + 28));\n          y = v16.y;\n          v16.y = y\n                + (float)((float)(sinf((float)(v16.y * 0.0099999998) + v11) * *((float *)this + 27))\n                        * *((float *)this + 28));\n          v13 = (const struct cocos2d::CCPoint *)kmVec2Fill(&v15, v6, v8);\n          cocos2d::CCGrid3DAction::setVertex(this, v13, &v16);\n          v5 = *((float *)this + 25);\n          v8 = (float)++v7;\n        }\n        while ( v5 > (float)v7 );\n      }\n      v6 = (float)++v3;\n    }\n    while ( *((float *)this + 24) > (float)v3 );\n  }\n}", "assembly": "; \n; cocos2d::CCLiquid::update from 0x18002db60 to 0x18002dd50 (496 bytes)\n; \n; 5 xrefs:\n; > <???> @ 0x1800e8bc0\n; > <???> @ 0x180134f58\n; > <???> @ 0x180134f68\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801afe14\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, 0x18002db60\nmov     [r11+20h], rbx                                                 ; +0x3, 0x18002db63\npush    rdi                                                            ; +0x7, 0x18002db67\nsub     rsp, 0E0h                                                      ; +0x8, 0x18002db68\nmovaps  xmmword ptr [r11-68h], xmm11                                   ; +0xf, 0x18002db6f\nmovaps  [rsp+0E8h+var_88], xmm13                                       ; +0x14, 0x18002db74\nmov     rax, cs:__security_cookie                                      ; +0x1a, 0x18002db7a\nxor     rax, rsp                                                       ; +0x21, 0x18002db81\nmov     [rsp+0E8h+var_A8], rax                                         ; +0x24, 0x18002db84\nmovss   xmm0, dword ptr [rcx+60h]                                      ; +0x29, 0x18002db89\nmovaps  xmm13, xmm1                                                    ; +0x2e, 0x18002db8e\nmovss   xmm11, cs:flt_1800E61A8                                        ; +0x32, 0x18002db92\nmov     rbx, rcx                                                       ; +0x3b, 0x18002db9b\ncomiss  xmm0, xmm11                                                    ; +0x3e, 0x18002db9e\nmov     edi, 1                                                         ; +0x42, 0x18002dba2\njbe     loc_18002DD28                                                  ; +0x47, 0x18002dba7\nmulss   xmm13, cs:dword_1800E7670                                      ; +0x4d, 0x18002dbad\nmov     [r11+18h], rsi                                                 ; +0x56, 0x18002dbb6\nmovss   xmm1, dword ptr [rcx+64h]                                      ; +0x5a, 0x18002dbba\nmovaps  xmmword ptr [r11-18h], xmm6                                    ; +0x5f, 0x18002dbbf\nmovaps  xmmword ptr [r11-28h], xmm7                                    ; +0x64, 0x18002dbc4\nmovaps  xmmword ptr [r11-38h], xmm8                                    ; +0x69, 0x18002dbc9\nmovaps  xmmword ptr [r11-48h], xmm9                                    ; +0x6e, 0x18002dbce\nmovaps  xmmword ptr [r11-58h], xmm10                                   ; +0x73, 0x18002dbd3\nmovaps  xmm10, xmm11                                                   ; +0x78, 0x18002dbd8\nmovaps  xmmword ptr [r11-78h], xmm12                                   ; +0x7c, 0x18002dbdc\nmovaps  [rsp+0E8h+var_98], xmm14                                       ; +0x81, 0x18002dbe1\nmovss   xmm14, cs:flt_1800E8D30                                        ; +0x87, 0x18002dbe7\ncomiss  xmm1, xmm11                                                    ; +0x90, 0x18002dbf0\nmov     esi, 1                                                         ; +0x94, 0x18002dbf4\njbe     loc_18002DCCF                                                  ; +0x99, 0x18002dbf9\nmovaps  xmm12, xmm11                                                   ; +0x9f, 0x18002dbff\nmovaps  xmm2, xmm12                                                    ; +0xa3, 0x18002dc03\nlea     rcx, [rsp+0E8h+var_C8]                                         ; +0xa7, 0x18002dc07\nmovaps  xmm1, xmm10                                                    ; +0xac, 0x18002dc0c\ncall    kmVec2Fill                                                     ; +0xb0, 0x18002dc10\nmov     r8, rax                                                        ; +0xb5, 0x18002dc15\nlea     rdx, [rsp+0E8h+var_B8]                                         ; +0xb8, 0x18002dc18\nmov     rcx, rbx                                                       ; +0xbd, 0x18002dc1d\ncall    ?originalVertex@CCGrid3DAction@cocos2d@@QEAA?AU_ccVertex3F@2@AEBVCCPoint@2@@Z; cocos2d::CCGrid3DAction::originalVertex(cocos2d::CCPoint const &) ; +0xc0, 0x18002dc20\nmov     eax, [rbx+68h]                                                 ; +0xc5, 0x18002dc25\nxorps   xmm9, xmm9                                                     ; +0xc8, 0x18002dc28\nmovss   xmm6, [rsp+0E8h+var_B8]                                        ; +0xcc, 0x18002dc2c\nmovaps  xmm0, xmm6                                                     ; +0xd2, 0x18002dc32\nmulss   xmm0, xmm14                                                    ; +0xd5, 0x18002dc35\ncvtsi2ss xmm9, rax                                                     ; +0xda, 0x18002dc3a\nmulss   xmm9, xmm13                                                    ; +0xdf, 0x18002dc3f\naddss   xmm9, xmm9                                                     ; +0xe4, 0x18002dc44\naddss   xmm0, xmm9; X                                                  ; +0xe9, 0x18002dc49\ncall    sinf                                                           ; +0xee, 0x18002dc4e\nmulss   xmm0, dword ptr [rbx+6Ch]                                      ; +0xf3, 0x18002dc53\nmulss   xmm0, dword ptr [rbx+70h]                                      ; +0xf8, 0x18002dc58\naddss   xmm6, xmm0                                                     ; +0xfd, 0x18002dc5d\nmovss   [rsp+0E8h+var_B8], xmm6                                        ; +0x101, 0x18002dc61\nmovss   xmm6, [rsp+0E8h+var_B4]                                        ; +0x107, 0x18002dc67\nmovaps  xmm0, xmm6                                                     ; +0x10d, 0x18002dc6d\nmulss   xmm0, xmm14                                                    ; +0x110, 0x18002dc70\naddss   xmm0, xmm9; X                                                  ; +0x115, 0x18002dc75\ncall    sinf                                                           ; +0x11a, 0x18002dc7a\nmulss   xmm0, dword ptr [rbx+6Ch]                                      ; +0x11f, 0x18002dc7f\nlea     rcx, [rsp+0E8h+var_C0]                                         ; +0x124, 0x18002dc84\nmovaps  xmm2, xmm12                                                    ; +0x129, 0x18002dc89\nmovaps  xmm1, xmm10                                                    ; +0x12d, 0x18002dc8d\nmulss   xmm0, dword ptr [rbx+70h]                                      ; +0x131, 0x18002dc91\naddss   xmm6, xmm0                                                     ; +0x136, 0x18002dc96\nmovss   [rsp+0E8h+var_B4], xmm6                                        ; +0x13a, 0x18002dc9a\ncall    kmVec2Fill                                                     ; +0x140, 0x18002dca0\nmov     rdx, rax; struct cocos2d::CCPoint *                            ; +0x145, 0x18002dca5\nlea     r8, [rsp+0E8h+var_B8]; struct cocos2d::_ccVertex3F *           ; +0x148, 0x18002dca8\nmov     rcx, rbx; this                                                 ; +0x14d, 0x18002dcad\ncall    ?setVertex@CCGrid3DAction@cocos2d@@QEAAXAEBVCCPoint@2@AEBU_ccVertex3F@2@@Z; cocos2d::CCGrid3DAction::setVertex(cocos2d::CCPoint const &,cocos2d::_ccVertex3F const &) ; +0x150, 0x18002dcb0\nmovss   xmm1, dword ptr [rbx+64h]                                      ; +0x155, 0x18002dcb5\ninc     esi                                                            ; +0x15a, 0x18002dcba\nmovd    xmm12, esi                                                     ; +0x15c, 0x18002dcbc\ncvtdq2ps xmm12, xmm12                                                  ; +0x161, 0x18002dcc1\ncomiss  xmm1, xmm12                                                    ; +0x165, 0x18002dcc5\nja      loc_18002DC03                                                  ; +0x169, 0x18002dcc9\nmovss   xmm0, dword ptr [rbx+60h]                                      ; +0x16f, 0x18002dccf\ninc     edi                                                            ; +0x174, 0x18002dcd4\nmovd    xmm10, edi                                                     ; +0x176, 0x18002dcd6\ncvtdq2ps xmm10, xmm10                                                  ; +0x17b, 0x18002dcdb\ncomiss  xmm0, xmm10                                                    ; +0x17f, 0x18002dcdf\nja      loc_18002DBF0                                                  ; +0x183, 0x18002dce3\nmovaps  xmm14, [rsp+0E8h+var_98]                                       ; +0x189, 0x18002dce9\nmovaps  xmm12, [rsp+0E8h+var_78]                                       ; +0x18f, 0x18002dcef\nmovaps  xmm10, [rsp+0E8h+var_58]                                       ; +0x195, 0x18002dcf5\nmovaps  xmm9, [rsp+0E8h+var_48]                                        ; +0x19e, 0x18002dcfe\nmovaps  xmm8, [rsp+0E8h+var_38]                                        ; +0x1a7, 0x18002dd07\nmovaps  xmm7, [rsp+0E8h+var_28]                                        ; +0x1b0, 0x18002dd10\nmovaps  xmm6, [rsp+0E8h+var_18]                                        ; +0x1b8, 0x18002dd18\nmov     rsi, [rsp+0E8h+arg_10]                                         ; +0x1c0, 0x18002dd20\nmov     rcx, [rsp+0E8h+var_A8]                                         ; +0x1c8, 0x18002dd28\nxor     rcx, rsp; StackCookie                                          ; +0x1cd, 0x18002dd2d\ncall    __security_check_cookie                                        ; +0x1d0, 0x18002dd30\nlea     r11, [rsp+0E8h+var_8]                                          ; +0x1d5, 0x18002dd35\nmov     rbx, [r11+28h]                                                 ; +0x1dd, 0x18002dd3d\nmovaps  xmm11, xmmword ptr [r11-60h]                                   ; +0x1e1, 0x18002dd41\nmovaps  xmm13, xmmword ptr [r11-80h]                                   ; +0x1e6, 0x18002dd46\nmov     rsp, r11                                                       ; +0x1eb, 0x18002dd4b\npop     rdi                                                            ; +0x1ee, 0x18002dd4e\nretn                                                                   ; +0x1ef, 0x18002dd4f", "xrefs": ["<???> @ 0x1800e8bc0", "<???> @ 0x180134f58", "<???> @ 0x180134f68", "<???> @ 0x1801438a8", "<???> @ 0x1801afe14"], "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"}