{"type": "func", "start": 6442642288, "end": 6442642750, "name": "cocos2d::CCWaves3D::update", "pseudocode": "// \n// cocos2d::CCWaves3D::update from 0x18002eb70 to 0x18002ed3e (462 bytes)\n// \n// 5 xrefs:\n// > <???> @ 0x1800ee8d8\n// > <???> @ 0x18013da60\n// > <???> @ 0x18013da70\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801b9fb8\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::CCWaves3D::update(cocos2d::CCWaves3D *this, float a2)\n{\n  int v2; // edi\n  float v5; // xmm1_4\n  float v6; // xmm7_4\n  int v7; // esi\n  float v8; // xmm9_4\n  float *v9; // rax\n  float v10; // xmm0_4\n  float *v11; // rax\n  float v12; // [rsp+20h] [rbp-B8h] BYREF\n  float v13; // [rsp+28h] [rbp-B0h] BYREF\n  float v14[2]; // [rsp+30h] [rbp-A8h] BYREF\n  float v15; // [rsp+38h] [rbp-A0h]\n\n  v2 = 0;\n  if ( (float)(*((float *)this + 24) + 1.0) > 0.0 )\n  {\n    v5 = *((float *)this + 25) + 1.0;\n    v6 = 0.0;\n    do\n    {\n      v7 = 0;\n      if ( v5 > 0.0 )\n      {\n        v8 = 0.0;\n        do\n        {\n          v9 = kmVec2Fill(&v12, v6, v8);\n          cocos2d::CCGrid3DAction::originalVertex((__int64)this, v14, v9);\n          v10 = sinf(\n                  (float)((float)(v14[0] + v14[1]) * 0.0099999998)\n                + (float)((float)((float)*((int *)this + 26) * (float)(a2 * 3.1415927))\n                        + (float)((float)*((int *)this + 26) * (float)(a2 * 3.1415927))));\n          v15 = v15 + (float)((float)(v10 * *((float *)this + 27)) * *((float *)this + 28));\n          v11 = kmVec2Fill(&v13, v6, v8);\n          cocos2d::CCGrid3DAction::setVertex(\n            this,\n            (const struct cocos2d::CCPoint *)v11,\n            (const struct cocos2d::_ccVertex3F *)v14);\n          ++v7;\n          v5 = *((float *)this + 25) + 1.0;\n          v8 = (float)v7;\n        }\n        while ( v5 > (float)v7 );\n      }\n      v6 = (float)++v2;\n    }\n    while ( (float)(*((float *)this + 24) + 1.0) > (float)v2 );\n  }\n}", "assembly": "; \n; cocos2d::CCWaves3D::update from 0x18002eb70 to 0x18002ed3e (462 bytes)\n; \n; 5 xrefs:\n; > <???> @ 0x1800ee8d8\n; > <???> @ 0x18013da60\n; > <???> @ 0x18013da70\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801b9fb8\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, 0x18002eb70\nmov     [r11+20h], rbx                                                 ; +0x3, 0x18002eb73\npush    rdi                                                            ; +0x7, 0x18002eb77\nsub     rsp, 0D0h                                                      ; +0x8, 0x18002eb78\nmovaps  xmmword ptr [r11-38h], xmm8                                    ; +0xf, 0x18002eb7f\nmovaps  xmmword ptr [r11-58h], xmm10                                   ; +0x14, 0x18002eb84\nmovaps  [rsp+0D8h+var_88], xmm13                                       ; +0x19, 0x18002eb89\nmov     rax, cs:__security_cookie                                      ; +0x1f, 0x18002eb8f\nxor     rax, rsp                                                       ; +0x26, 0x18002eb96\nmov     [rsp+0D8h+var_98], rax                                         ; +0x29, 0x18002eb99\nmovss   xmm0, dword ptr [rcx+60h]                                      ; +0x2e, 0x18002eb9e\nxor     edi, edi                                                       ; +0x33, 0x18002eba3\nmovss   xmm8, cs:flt_1800EC208                                         ; +0x35, 0x18002eba5\nxorps   xmm10, xmm10                                                   ; +0x3e, 0x18002ebae\naddss   xmm0, xmm8                                                     ; +0x42, 0x18002ebb2\nmovaps  xmm13, xmm1                                                    ; +0x47, 0x18002ebb7\nmov     rbx, rcx                                                       ; +0x4b, 0x18002ebbb\ncomiss  xmm0, xmm10                                                    ; +0x4e, 0x18002ebbe\njbe     loc_18002ED11                                                  ; +0x52, 0x18002ebc2\nmovss   xmm1, dword ptr [rcx+64h]                                      ; +0x58, 0x18002ebc8\nmov     [r11+18h], rsi                                                 ; +0x5d, 0x18002ebcd\naddss   xmm1, xmm8                                                     ; +0x61, 0x18002ebd1\nmovaps  xmmword ptr [r11-18h], xmm6                                    ; +0x66, 0x18002ebd6\nmovaps  xmmword ptr [r11-28h], xmm7                                    ; +0x6b, 0x18002ebdb\nxorps   xmm7, xmm7                                                     ; +0x70, 0x18002ebe0\nmovaps  xmmword ptr [r11-48h], xmm9                                    ; +0x73, 0x18002ebe3\nmovaps  xmmword ptr [r11-68h], xmm11                                   ; +0x78, 0x18002ebe8\nmovss   xmm11, cs:flt_1800EED98                                        ; +0x7d, 0x18002ebed\nmovaps  xmmword ptr [r11-78h], xmm12                                   ; +0x86, 0x18002ebf6\nmovss   xmm12, cs:dword_1800ED6D8                                      ; +0x8b, 0x18002ebfb\nxor     esi, esi                                                       ; +0x94, 0x18002ec04\ncomiss  xmm1, xmm10                                                    ; +0x96, 0x18002ec06\njbe     loc_18002ECC8                                                  ; +0x9a, 0x18002ec0a\nmovaps  xmm6, xmm13                                                    ; +0xa0, 0x18002ec10\nmovaps  xmm9, xmm10                                                    ; +0xa4, 0x18002ec14\nmulss   xmm6, xmm12                                                    ; +0xa8, 0x18002ec18\nnop     dword ptr [rax]                                                ; +0xad, 0x18002ec1d\nmovaps  xmm2, xmm9                                                     ; +0xb0, 0x18002ec20\nlea     rcx, [rsp+0D8h+var_B8]                                         ; +0xb4, 0x18002ec24\nmovaps  xmm1, xmm7                                                     ; +0xb9, 0x18002ec29\ncall    kmVec2Fill                                                     ; +0xbc, 0x18002ec2c\nmov     r8, rax                                                        ; +0xc1, 0x18002ec31\nlea     rdx, [rsp+0D8h+var_A8]                                         ; +0xc4, 0x18002ec34\nmov     rcx, rbx                                                       ; +0xc9, 0x18002ec39\ncall    ?originalVertex@CCGrid3DAction@cocos2d@@QEAA?AU_ccVertex3F@2@AEBVCCPoint@2@@Z; cocos2d::CCGrid3DAction::originalVertex(cocos2d::CCPoint const &) ; +0xcc, 0x18002ec3c\nmov     eax, [rbx+68h]                                                 ; +0xd1, 0x18002ec41\nxorps   xmm1, xmm1                                                     ; +0xd4, 0x18002ec44\nmovss   xmm0, [rsp+0D8h+var_A8]                                        ; +0xd7, 0x18002ec47\naddss   xmm0, [rsp+0D8h+var_A4]                                        ; +0xdd, 0x18002ec4d\ncvtsi2ss xmm1, rax                                                     ; +0xe3, 0x18002ec53\nmulss   xmm0, xmm11                                                    ; +0xe8, 0x18002ec58\nmulss   xmm1, xmm6                                                     ; +0xed, 0x18002ec5d\naddss   xmm1, xmm1                                                     ; +0xf1, 0x18002ec61\naddss   xmm0, xmm1; X                                                  ; +0xf5, 0x18002ec65\ncall    sinf                                                           ; +0xf9, 0x18002ec69\nmovss   xmm1, [rsp+0D8h+var_A0]                                        ; +0xfe, 0x18002ec6e\nlea     rcx, [rsp+0D8h+var_B0]                                         ; +0x104, 0x18002ec74\nmulss   xmm0, dword ptr [rbx+6Ch]                                      ; +0x109, 0x18002ec79\nmovaps  xmm2, xmm9                                                     ; +0x10e, 0x18002ec7e\nmulss   xmm0, dword ptr [rbx+70h]                                      ; +0x112, 0x18002ec82\naddss   xmm1, xmm0                                                     ; +0x117, 0x18002ec87\nmovss   [rsp+0D8h+var_A0], xmm1                                        ; +0x11b, 0x18002ec8b\nmovaps  xmm1, xmm7                                                     ; +0x121, 0x18002ec91\ncall    kmVec2Fill                                                     ; +0x124, 0x18002ec94\nmov     rdx, rax; struct cocos2d::CCPoint *                            ; +0x129, 0x18002ec99\nlea     r8, [rsp+0D8h+var_A8]; struct cocos2d::_ccVertex3F *           ; +0x12c, 0x18002ec9c\nmov     rcx, rbx; this                                                 ; +0x131, 0x18002eca1\ncall    ?setVertex@CCGrid3DAction@cocos2d@@QEAAXAEBVCCPoint@2@AEBU_ccVertex3F@2@@Z; cocos2d::CCGrid3DAction::setVertex(cocos2d::CCPoint const &,cocos2d::_ccVertex3F const &) ; +0x134, 0x18002eca4\nmovss   xmm1, dword ptr [rbx+64h]                                      ; +0x139, 0x18002eca9\ninc     esi                                                            ; +0x13e, 0x18002ecae\naddss   xmm1, xmm8                                                     ; +0x140, 0x18002ecb0\nmovd    xmm9, esi                                                      ; +0x145, 0x18002ecb5\ncvtdq2ps xmm9, xmm9                                                    ; +0x14a, 0x18002ecba\ncomiss  xmm1, xmm9                                                     ; +0x14e, 0x18002ecbe\nja      loc_18002EC20                                                  ; +0x152, 0x18002ecc2\nmovss   xmm0, dword ptr [rbx+60h]                                      ; +0x158, 0x18002ecc8\ninc     edi                                                            ; +0x15d, 0x18002eccd\naddss   xmm0, xmm8                                                     ; +0x15f, 0x18002eccf\nmovd    xmm7, edi                                                      ; +0x164, 0x18002ecd4\ncvtdq2ps xmm7, xmm7                                                    ; +0x168, 0x18002ecd8\ncomiss  xmm0, xmm7                                                     ; +0x16b, 0x18002ecdb\nja      loc_18002EC04                                                  ; +0x16e, 0x18002ecde\nmovaps  xmm12, [rsp+0D8h+var_78]                                       ; +0x174, 0x18002ece4\nmovaps  xmm11, [rsp+0D8h+var_68]                                       ; +0x17a, 0x18002ecea\nmovaps  xmm9, [rsp+0D8h+var_48]                                        ; +0x180, 0x18002ecf0\nmovaps  xmm7, [rsp+0D8h+var_28]                                        ; +0x189, 0x18002ecf9\nmovaps  xmm6, [rsp+0D8h+var_18]                                        ; +0x191, 0x18002ed01\nmov     rsi, [rsp+0D8h+arg_10]                                         ; +0x199, 0x18002ed09\nmov     rcx, [rsp+0D8h+var_98]                                         ; +0x1a1, 0x18002ed11\nxor     rcx, rsp; StackCookie                                          ; +0x1a6, 0x18002ed16\ncall    __security_check_cookie                                        ; +0x1a9, 0x18002ed19\nlea     r11, [rsp+0D8h+var_8]                                          ; +0x1ae, 0x18002ed1e\nmov     rbx, [r11+28h]                                                 ; +0x1b6, 0x18002ed26\nmovaps  xmm8, xmmword ptr [r11-30h]                                    ; +0x1ba, 0x18002ed2a\nmovaps  xmm10, xmmword ptr [r11-50h]                                   ; +0x1bf, 0x18002ed2f\nmovaps  xmm13, xmmword ptr [r11-80h]                                   ; +0x1c4, 0x18002ed34\nmov     rsp, r11                                                       ; +0x1c9, 0x18002ed39\npop     rdi                                                            ; +0x1cc, 0x18002ed3c\nretn                                                                   ; +0x1cd, 0x18002ed3d", "xrefs": ["<???> @ 0x1800ee8d8", "<???> @ 0x18013da60", "<???> @ 0x18013da70", "<???> @ 0x18014cf68", "<???> @ 0x1801b9fb8"], "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"}