{"type": "func", "start": 6442701744, "end": 6442702189, "name": "cocos2d::CCWavesTiles3D::update", "pseudocode": "// \n// cocos2d::CCWavesTiles3D::update from 0x18003d3b0 to 0x18003d56d (445 bytes)\n// \n// 5 xrefs:\n// > <???> @ 0x1800f0750\n// > <???> @ 0x18013f8e4\n// > <???> @ 0x18013f8f4\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bb1dc\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:37 +0000\n// \n\nvoid __fastcall cocos2d::CCWavesTiles3D::update(cocos2d::CCWavesTiles3D *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; // xmm8_4\n  float *v9; // rax\n  float *v10; // rax\n  float v11; // [rsp+20h] [rbp-C8h] BYREF\n  float v12; // [rsp+28h] [rbp-C0h] BYREF\n  __int128 v13; // [rsp+30h] [rbp-B8h] BYREF\n  int v14; // [rsp+44h] [rbp-A4h]\n  int v15; // [rsp+50h] [rbp-98h]\n  int v16; // [rsp+5Ch] [rbp-8Ch]\n\n  v2 = 0;\n  if ( *((float *)this + 24) > 0.0 )\n  {\n    v5 = *((float *)this + 25);\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(&v11, v6, v8);\n          cocos2d::CCTiledGrid3DAction::originalTile((__int64)this, &v13, v9);\n          *((float *)&v13 + 2) = (float)(sinf(\n                                           (float)((float)(*(float *)&v13 + *((float *)&v13 + 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                                       * *((float *)this + 27))\n                               * *((float *)this + 28);\n          v14 = DWORD2(v13);\n          v15 = DWORD2(v13);\n          v16 = DWORD2(v13);\n          v10 = kmVec2Fill(&v12, v6, v8);\n          cocos2d::CCTiledGrid3DAction::setTile(\n            this,\n            (const struct cocos2d::CCPoint *)v10,\n            (const struct cocos2d::_ccQuad3 *)&v13);\n          v5 = *((float *)this + 25);\n          v8 = (float)++v7;\n        }\n        while ( v5 > (float)v7 );\n      }\n      v6 = (float)++v2;\n    }\n    while ( *((float *)this + 24) > (float)v2 );\n  }\n}", "assembly": "; \n; cocos2d::CCWavesTiles3D::update from 0x18003d3b0 to 0x18003d56d (445 bytes)\n; \n; 5 xrefs:\n; > <???> @ 0x1800f0750\n; > <???> @ 0x18013f8e4\n; > <???> @ 0x18013f8f4\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bb1dc\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:37 +0000\n; \nmov     r11, rsp                                                       ; +0x0, 0x18003d3b0\nmov     [r11+20h], rbx                                                 ; +0x3, 0x18003d3b3\npush    rdi                                                            ; +0x7, 0x18003d3b7\nsub     rsp, 0E0h                                                      ; +0x8, 0x18003d3b8\nmovaps  xmmword ptr [r11-48h], xmm9                                    ; +0xf, 0x18003d3bf\nmovaps  xmmword ptr [r11-78h], xmm12                                   ; +0x14, 0x18003d3c4\nmov     rax, cs:__security_cookie                                      ; +0x19, 0x18003d3c9\nxor     rax, rsp                                                       ; +0x20, 0x18003d3d0\nmov     [rsp+0E8h+var_88], rax                                         ; +0x23, 0x18003d3d3\nmovss   xmm0, dword ptr [rcx+60h]                                      ; +0x28, 0x18003d3d8\nxor     edi, edi                                                       ; +0x2d, 0x18003d3dd\nxorps   xmm9, xmm9                                                     ; +0x2f, 0x18003d3df\nmovaps  xmm12, xmm1                                                    ; +0x33, 0x18003d3e3\ncomiss  xmm0, xmm9                                                     ; +0x37, 0x18003d3e7\nmov     rbx, rcx                                                       ; +0x3b, 0x18003d3eb\njbe     loc_18003D545                                                  ; +0x3e, 0x18003d3ee\nmovss   xmm1, dword ptr [rcx+64h]                                      ; +0x44, 0x18003d3f4\nmov     [r11+18h], rsi                                                 ; +0x49, 0x18003d3f9\nmovaps  xmmword ptr [r11-18h], xmm6                                    ; +0x4d, 0x18003d3fd\nmovaps  xmmword ptr [r11-28h], xmm7                                    ; +0x52, 0x18003d402\nxorps   xmm7, xmm7                                                     ; +0x57, 0x18003d407\nmovaps  xmmword ptr [r11-38h], xmm8                                    ; +0x5a, 0x18003d40a\nmovaps  xmmword ptr [r11-58h], xmm10                                   ; +0x5f, 0x18003d40f\nmovss   xmm10, cs:flt_1800EED98                                        ; +0x64, 0x18003d414\nmovaps  xmmword ptr [r11-68h], xmm11                                   ; +0x6d, 0x18003d41d\nmovss   xmm11, cs:dword_1800ED6D8                                      ; +0x72, 0x18003d422\nnop     dword ptr [rax+rax+00h]                                        ; +0x7b, 0x18003d42b\nxor     esi, esi                                                       ; +0x80, 0x18003d430\ncomiss  xmm1, xmm9                                                     ; +0x82, 0x18003d432\njbe     loc_18003D4FB                                                  ; +0x86, 0x18003d436\nmovaps  xmm6, xmm12                                                    ; +0x8c, 0x18003d43c\nmovaps  xmm8, xmm9                                                     ; +0x90, 0x18003d440\nmulss   xmm6, xmm11                                                    ; +0x94, 0x18003d444\nnop     dword ptr [rax+00000000h]                                      ; +0x99, 0x18003d449\nmovaps  xmm2, xmm8                                                     ; +0xa0, 0x18003d450\nlea     rcx, [rsp+0E8h+var_C8]                                         ; +0xa4, 0x18003d454\nmovaps  xmm1, xmm7                                                     ; +0xa9, 0x18003d459\ncall    kmVec2Fill                                                     ; +0xac, 0x18003d45c\nmov     r8, rax                                                        ; +0xb1, 0x18003d461\nlea     rdx, [rsp+0E8h+var_B8]                                         ; +0xb4, 0x18003d464\nmov     rcx, rbx                                                       ; +0xb9, 0x18003d469\ncall    ?originalTile@CCTiledGrid3DAction@cocos2d@@QEAA?AU_ccQuad3@2@AEBVCCPoint@2@@Z; cocos2d::CCTiledGrid3DAction::originalTile(cocos2d::CCPoint const &) ; +0xbc, 0x18003d46c\nmov     eax, [rbx+68h]                                                 ; +0xc1, 0x18003d471\nxorps   xmm1, xmm1                                                     ; +0xc4, 0x18003d474\nmovss   xmm0, [rsp+0E8h+var_B8]                                        ; +0xc7, 0x18003d477\naddss   xmm0, [rsp+0E8h+var_B4]                                        ; +0xcd, 0x18003d47d\ncvtsi2ss xmm1, rax                                                     ; +0xd3, 0x18003d483\nmulss   xmm0, xmm10                                                    ; +0xd8, 0x18003d488\nmulss   xmm1, xmm6                                                     ; +0xdd, 0x18003d48d\naddss   xmm1, xmm1                                                     ; +0xe1, 0x18003d491\naddss   xmm0, xmm1; X                                                  ; +0xe5, 0x18003d495\ncall    sinf                                                           ; +0xe9, 0x18003d499\nmulss   xmm0, dword ptr [rbx+6Ch]                                      ; +0xee, 0x18003d49e\nlea     rcx, [rsp+0E8h+var_C0]                                         ; +0xf3, 0x18003d4a3\nmovaps  xmm2, xmm8                                                     ; +0xf8, 0x18003d4a8\nmovaps  xmm1, xmm7                                                     ; +0xfc, 0x18003d4ac\nmulss   xmm0, dword ptr [rbx+70h]                                      ; +0xff, 0x18003d4af\nmovss   [rsp+0E8h+var_B0], xmm0                                        ; +0x104, 0x18003d4b4\nmovss   [rsp+0E8h+var_A4], xmm0                                        ; +0x10a, 0x18003d4ba\nmovss   [rsp+0E8h+var_98], xmm0                                        ; +0x110, 0x18003d4c0\nmovss   [rsp+0E8h+var_8C], xmm0                                        ; +0x116, 0x18003d4c6\ncall    kmVec2Fill                                                     ; +0x11c, 0x18003d4cc\nmov     rdx, rax; struct cocos2d::CCPoint *                            ; +0x121, 0x18003d4d1\nlea     r8, [rsp+0E8h+var_B8]; struct cocos2d::_ccQuad3 *              ; +0x124, 0x18003d4d4\nmov     rcx, rbx; this                                                 ; +0x129, 0x18003d4d9\ncall    ?setTile@CCTiledGrid3DAction@cocos2d@@QEAAXAEBVCCPoint@2@AEBU_ccQuad3@2@@Z; cocos2d::CCTiledGrid3DAction::setTile(cocos2d::CCPoint const &,cocos2d::_ccQuad3 const &) ; +0x12c, 0x18003d4dc\nmovss   xmm1, dword ptr [rbx+64h]                                      ; +0x131, 0x18003d4e1\ninc     esi                                                            ; +0x136, 0x18003d4e6\nmovd    xmm8, esi                                                      ; +0x138, 0x18003d4e8\ncvtdq2ps xmm8, xmm8                                                    ; +0x13d, 0x18003d4ed\ncomiss  xmm1, xmm8                                                     ; +0x141, 0x18003d4f1\nja      loc_18003D450                                                  ; +0x145, 0x18003d4f5\nmovss   xmm0, dword ptr [rbx+60h]                                      ; +0x14b, 0x18003d4fb\ninc     edi                                                            ; +0x150, 0x18003d500\nmovd    xmm7, edi                                                      ; +0x152, 0x18003d502\ncvtdq2ps xmm7, xmm7                                                    ; +0x156, 0x18003d506\ncomiss  xmm0, xmm7                                                     ; +0x159, 0x18003d509\nja      loc_18003D430                                                  ; +0x15c, 0x18003d50c\nmovaps  xmm11, [rsp+0E8h+var_68]                                       ; +0x162, 0x18003d512\nmovaps  xmm10, [rsp+0E8h+var_58]                                       ; +0x16b, 0x18003d51b\nmovaps  xmm8, [rsp+0E8h+var_38]                                        ; +0x174, 0x18003d524\nmovaps  xmm7, [rsp+0E8h+var_28]                                        ; +0x17d, 0x18003d52d\nmovaps  xmm6, [rsp+0E8h+var_18]                                        ; +0x185, 0x18003d535\nmov     rsi, [rsp+0E8h+arg_10]                                         ; +0x18d, 0x18003d53d\nmov     rcx, [rsp+0E8h+var_88]                                         ; +0x195, 0x18003d545\nxor     rcx, rsp; StackCookie                                          ; +0x19a, 0x18003d54a\ncall    __security_check_cookie                                        ; +0x19d, 0x18003d54d\nlea     r11, [rsp+0E8h+var_8]                                          ; +0x1a2, 0x18003d552\nmov     rbx, [r11+28h]                                                 ; +0x1aa, 0x18003d55a\nmovaps  xmm9, xmmword ptr [r11-40h]                                    ; +0x1ae, 0x18003d55e\nmovaps  xmm12, xmmword ptr [r11-70h]                                   ; +0x1b3, 0x18003d563\nmov     rsp, r11                                                       ; +0x1b8, 0x18003d568\npop     rdi                                                            ; +0x1bb, 0x18003d56b\nretn                                                                   ; +0x1bc, 0x18003d56c", "xrefs": ["<???> @ 0x1800f0750", "<???> @ 0x18013f8e4", "<???> @ 0x18013f8f4", "<???> @ 0x18014cf68", "<???> @ 0x1801bb1dc"], "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"}