{"type": "func", "start": 6442639904, "end": 6442640441, "name": "cocos2d::CCLiquid::update", "pseudocode": "// \n// cocos2d::CCLiquid::update from 0x18002e220 to 0x18002e439 (537 bytes)\n// \n// 5 xrefs:\n// > <???> @ 0x1800eec28\n// > <???> @ 0x18013df0c\n// > <???> @ 0x18013df1c\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801b9f28\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::CCLiquid::update(cocos2d::CCLiquid *this, float a2)\n{\n  float v2; // xmm2_4\n  int v4; // edi\n  float v5; // xmm1_4\n  float v6; // xmm11_4\n  int v7; // esi\n  float v8; // xmm13_4\n  float *v9; // rax\n  float v10; // xmm6_4\n  float v11; // xmm7_4\n  float v12; // xmm6_4\n  float *v13; // rax\n  float v15[2]; // [rsp+24h] [rbp-D4h] BYREF\n  float v16[3]; // [rsp+2Ch] [rbp-CCh] BYREF\n  float v17; // [rsp+38h] [rbp-C0h] BYREF\n  float v18; // [rsp+3Ch] [rbp-BCh]\n\n  v2 = a2;\n  v4 = 1;\n  if ( *((float *)this + 24) > 1.0 )\n  {\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 = kmVec2Fill(v15, v6, v8);\n          cocos2d::CCGrid3DAction::originalVertex((__int64)this, &v17, v9);\n          v10 = v17;\n          v11 = (float)((float)*((int *)this + 26) * (float)(v2 * 3.1415927))\n              + (float)((float)*((int *)this + 26) * (float)(v2 * 3.1415927));\n          v17 = v10\n              + (float)((float)(sinf((float)(v17 * 0.0099999998) + v11) * *((float *)this + 27)) * *((float *)this + 28));\n          v12 = v18;\n          v18 = v12\n              + (float)((float)(sinf((float)(v18 * 0.0099999998) + v11) * *((float *)this + 27)) * *((float *)this + 28));\n          v13 = kmVec2Fill(v16, v6, v8);\n          cocos2d::CCGrid3DAction::setVertex(\n            this,\n            (const struct cocos2d::CCPoint *)v13,\n            (const struct cocos2d::_ccVertex3F *)&v17);\n          v5 = *((float *)this + 25);\n          v8 = (float)++v7;\n        }\n        while ( v5 > (float)v7 );\n        v2 = a2;\n      }\n      v6 = (float)++v4;\n    }\n    while ( *((float *)this + 24) > (float)v4 );\n  }\n}", "assembly": "; \n; cocos2d::CCLiquid::update from 0x18002e220 to 0x18002e439 (537 bytes)\n; \n; 5 xrefs:\n; > <???> @ 0x1800eec28\n; > <???> @ 0x18013df0c\n; > <???> @ 0x18013df1c\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801b9f28\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, 0x18002e220\nmov     [r11+20h], rbx                                                 ; +0x3, 0x18002e223\npush    rdi                                                            ; +0x7, 0x18002e227\nsub     rsp, 0F0h                                                      ; +0x8, 0x18002e228\nmovaps  xmmword ptr [r11-78h], xmm12                                   ; +0xf, 0x18002e22f\nmov     rax, cs:__security_cookie                                      ; +0x14, 0x18002e234\nxor     rax, rsp                                                       ; +0x1b, 0x18002e23b\nmov     [rsp+0F8h+var_B0], rax                                         ; +0x1e, 0x18002e23e\nmovss   xmm0, dword ptr [rcx+60h]                                      ; +0x23, 0x18002e243\nmovaps  xmm2, xmm1                                                     ; +0x28, 0x18002e248\nmovss   xmm12, cs:flt_1800EC208                                        ; +0x2b, 0x18002e24b\nmov     rbx, rcx                                                       ; +0x34, 0x18002e254\ncomiss  xmm0, xmm12                                                    ; +0x37, 0x18002e257\nmov     edi, 1                                                         ; +0x3b, 0x18002e25b\nmovss   [rsp+0F8h+var_D8], xmm1                                        ; +0x40, 0x18002e260\njbe     loc_18002E416                                                  ; +0x46, 0x18002e266\nmovss   xmm1, dword ptr [rcx+64h]                                      ; +0x4c, 0x18002e26c\nmov     [r11+18h], rsi                                                 ; +0x51, 0x18002e271\nmovaps  xmmword ptr [r11-18h], xmm6                                    ; +0x55, 0x18002e275\nmovaps  xmmword ptr [r11-28h], xmm7                                    ; +0x5a, 0x18002e27a\nmovaps  xmmword ptr [r11-38h], xmm8                                    ; +0x5f, 0x18002e27f\nmovaps  xmmword ptr [r11-48h], xmm9                                    ; +0x64, 0x18002e284\nmovaps  xmmword ptr [r11-58h], xmm10                                   ; +0x69, 0x18002e289\nmovaps  xmmword ptr [r11-68h], xmm11                                   ; +0x6e, 0x18002e28e\nmovaps  xmm11, xmm12                                                   ; +0x73, 0x18002e293\nmovaps  [rsp+0F8h+var_88], xmm13                                       ; +0x77, 0x18002e297\nmovaps  [rsp+0F8h+var_98], xmm14                                       ; +0x7d, 0x18002e29d\nmovss   xmm14, cs:flt_1800EED98                                        ; +0x83, 0x18002e2a3\nmovaps  [rsp+0F8h+var_A8], xmm15                                       ; +0x8c, 0x18002e2ac\nmovss   xmm15, cs:dword_1800ED6D8                                      ; +0x92, 0x18002e2b2\nnop     dword ptr [rax+rax+00h]                                        ; +0x9b, 0x18002e2bb\ncomiss  xmm1, xmm12                                                    ; +0xa0, 0x18002e2c0\nmov     esi, 1                                                         ; +0xa4, 0x18002e2c4\njbe     loc_18002E3AE                                                  ; +0xa9, 0x18002e2c9\nmovaps  xmm10, xmm2                                                    ; +0xaf, 0x18002e2cf\nmovaps  xmm13, xmm12                                                   ; +0xb3, 0x18002e2d3\nmulss   xmm10, xmm15                                                   ; +0xb7, 0x18002e2d7\nnop     dword ptr [rax+00h]                                            ; +0xbc, 0x18002e2dc\nmovaps  xmm2, xmm13                                                    ; +0xc0, 0x18002e2e0\nlea     rcx, [rsp+0F8h+var_D4]                                         ; +0xc4, 0x18002e2e4\nmovaps  xmm1, xmm11                                                    ; +0xc9, 0x18002e2e9\ncall    kmVec2Fill                                                     ; +0xcd, 0x18002e2ed\nmov     r8, rax                                                        ; +0xd2, 0x18002e2f2\nlea     rdx, [rsp+0F8h+var_C0]                                         ; +0xd5, 0x18002e2f5\nmov     rcx, rbx                                                       ; +0xda, 0x18002e2fa\ncall    ?originalVertex@CCGrid3DAction@cocos2d@@QEAA?AU_ccVertex3F@2@AEBVCCPoint@2@@Z; cocos2d::CCGrid3DAction::originalVertex(cocos2d::CCPoint const &) ; +0xdd, 0x18002e2fd\nmov     eax, [rbx+68h]                                                 ; +0xe2, 0x18002e302\nxorps   xmm7, xmm7                                                     ; +0xe5, 0x18002e305\nmovss   xmm6, [rsp+0F8h+var_C0]                                        ; +0xe8, 0x18002e308\nmovaps  xmm0, xmm6                                                     ; +0xee, 0x18002e30e\nmulss   xmm0, xmm14                                                    ; +0xf1, 0x18002e311\ncvtsi2ss xmm7, rax                                                     ; +0xf6, 0x18002e316\nmulss   xmm7, xmm10                                                    ; +0xfb, 0x18002e31b\naddss   xmm7, xmm7                                                     ; +0x100, 0x18002e320\naddss   xmm0, xmm7; X                                                  ; +0x104, 0x18002e324\ncall    sinf                                                           ; +0x108, 0x18002e328\nmulss   xmm0, dword ptr [rbx+6Ch]                                      ; +0x10d, 0x18002e32d\nmulss   xmm0, dword ptr [rbx+70h]                                      ; +0x112, 0x18002e332\naddss   xmm6, xmm0                                                     ; +0x117, 0x18002e337\nmovss   [rsp+0F8h+var_C0], xmm6                                        ; +0x11b, 0x18002e33b\nmovss   xmm6, [rsp+0F8h+var_BC]                                        ; +0x121, 0x18002e341\nmovaps  xmm0, xmm6                                                     ; +0x127, 0x18002e347\nmulss   xmm0, xmm14                                                    ; +0x12a, 0x18002e34a\naddss   xmm0, xmm7; X                                                  ; +0x12f, 0x18002e34f\ncall    sinf                                                           ; +0x133, 0x18002e353\nmulss   xmm0, dword ptr [rbx+6Ch]                                      ; +0x138, 0x18002e358\nlea     rcx, [rsp+0F8h+var_CC]                                         ; +0x13d, 0x18002e35d\nmovaps  xmm2, xmm13                                                    ; +0x142, 0x18002e362\nmovaps  xmm1, xmm11                                                    ; +0x146, 0x18002e366\nmulss   xmm0, dword ptr [rbx+70h]                                      ; +0x14a, 0x18002e36a\naddss   xmm6, xmm0                                                     ; +0x14f, 0x18002e36f\nmovss   [rsp+0F8h+var_BC], xmm6                                        ; +0x153, 0x18002e373\ncall    kmVec2Fill                                                     ; +0x159, 0x18002e379\nmov     rdx, rax; struct cocos2d::CCPoint *                            ; +0x15e, 0x18002e37e\nlea     r8, [rsp+0F8h+var_C0]; struct cocos2d::_ccVertex3F *           ; +0x161, 0x18002e381\nmov     rcx, rbx; this                                                 ; +0x166, 0x18002e386\ncall    ?setVertex@CCGrid3DAction@cocos2d@@QEAAXAEBVCCPoint@2@AEBU_ccVertex3F@2@@Z; cocos2d::CCGrid3DAction::setVertex(cocos2d::CCPoint const &,cocos2d::_ccVertex3F const &) ; +0x169, 0x18002e389\nmovss   xmm1, dword ptr [rbx+64h]                                      ; +0x16e, 0x18002e38e\ninc     esi                                                            ; +0x173, 0x18002e393\nmovd    xmm13, esi                                                     ; +0x175, 0x18002e395\ncvtdq2ps xmm13, xmm13                                                  ; +0x17a, 0x18002e39a\ncomiss  xmm1, xmm13                                                    ; +0x17e, 0x18002e39e\nja      loc_18002E2E0                                                  ; +0x182, 0x18002e3a2\nmovss   xmm2, [rsp+0F8h+var_D8]                                        ; +0x188, 0x18002e3a8\nmovss   xmm0, dword ptr [rbx+60h]                                      ; +0x18e, 0x18002e3ae\ninc     edi                                                            ; +0x193, 0x18002e3b3\nmovd    xmm11, edi                                                     ; +0x195, 0x18002e3b5\ncvtdq2ps xmm11, xmm11                                                  ; +0x19a, 0x18002e3ba\ncomiss  xmm0, xmm11                                                    ; +0x19e, 0x18002e3be\nja      loc_18002E2C0                                                  ; +0x1a2, 0x18002e3c2\nmovaps  xmm15, [rsp+0F8h+var_A8]                                       ; +0x1a8, 0x18002e3c8\nmovaps  xmm14, [rsp+0F8h+var_98]                                       ; +0x1ae, 0x18002e3ce\nmovaps  xmm13, [rsp+0F8h+var_88]                                       ; +0x1b4, 0x18002e3d4\nmovaps  xmm11, [rsp+0F8h+var_68]                                       ; +0x1ba, 0x18002e3da\nmovaps  xmm10, [rsp+0F8h+var_58]                                       ; +0x1c3, 0x18002e3e3\nmovaps  xmm9, [rsp+0F8h+var_48]                                        ; +0x1cc, 0x18002e3ec\nmovaps  xmm8, [rsp+0F8h+var_38]                                        ; +0x1d5, 0x18002e3f5\nmovaps  xmm7, [rsp+0F8h+var_28]                                        ; +0x1de, 0x18002e3fe\nmovaps  xmm6, [rsp+0F8h+var_18]                                        ; +0x1e6, 0x18002e406\nmov     rsi, [rsp+0F8h+arg_10]                                         ; +0x1ee, 0x18002e40e\nmov     rcx, [rsp+0F8h+var_B0]                                         ; +0x1f6, 0x18002e416\nxor     rcx, rsp; StackCookie                                          ; +0x1fb, 0x18002e41b\ncall    __security_check_cookie                                        ; +0x1fe, 0x18002e41e\nlea     r11, [rsp+0F8h+var_8]                                          ; +0x203, 0x18002e423\nmov     rbx, [r11+28h]                                                 ; +0x20b, 0x18002e42b\nmovaps  xmm12, xmmword ptr [r11-70h]                                   ; +0x20f, 0x18002e42f\nmov     rsp, r11                                                       ; +0x214, 0x18002e434\npop     rdi                                                            ; +0x217, 0x18002e437\nretn                                                                   ; +0x218, 0x18002e438", "xrefs": ["<???> @ 0x1800eec28", "<???> @ 0x18013df0c", "<???> @ 0x18013df1c", "<???> @ 0x18014cf68", "<???> @ 0x1801b9f28"], "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"}