{"type": "func", "start": 6442640944, "end": 6442641472, "name": "cocos2d::CCWaves::update", "pseudocode": "// \n// cocos2d::CCWaves::update from 0x18002e630 to 0x18002e840 (528 bytes)\n// \n// 5 xrefs:\n// > <???> @ 0x1800e8c48\n// > <???> @ 0x180134ffc\n// > <???> @ 0x18013500c\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801afec8\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::CCWaves::update(cocos2d::CCWaves *this, float a2)\n{\n  int v2; // esi\n  float v4; // xmm10_4\n  float v5; // xmm8_4\n  int v6; // edi\n  float v7; // xmm7_4\n  const struct cocos2d::CCPoint *v8; // rax\n  float y; // xmm6_4\n  float v10; // xmm0_4\n  float x; // xmm1_4\n  const struct cocos2d::CCPoint *v12; // rax\n  float v13; // [rsp+20h] [rbp-A8h] BYREF\n  float v14; // [rsp+28h] [rbp-A0h] BYREF\n  struct cocos2d::_ccVertex3F v15; // [rsp+30h] [rbp-98h] BYREF\n\n  v2 = 0;\n  if ( (float)(*((float *)this + 24) + 1.0) > 0.0 )\n  {\n    v4 = a2 * 3.1415927;\n    v5 = 0.0;\n    do\n    {\n      v6 = 0;\n      if ( (float)(*((float *)this + 25) + 1.0) > 0.0 )\n      {\n        v7 = 0.0;\n        do\n        {\n          v8 = (const struct cocos2d::CCPoint *)kmVec2Fill(&v13, v5, v7);\n          cocos2d::CCGrid3DAction::originalVertex(this, &v15, v8);\n          y = v15.y;\n          if ( *((_BYTE *)this + 116) )\n          {\n            v10 = sinf(\n                    (float)((float)((float)*((int *)this + 26) * v4) + (float)((float)*((int *)this + 26) * v4))\n                  + (float)(v15.y * 0.0099999998));\n            x = v15.x + (float)((float)(v10 * *((float *)this + 27)) * *((float *)this + 28));\n            v15.x = x;\n          }\n          else\n          {\n            x = v15.x;\n          }\n          if ( *((_BYTE *)this + 117) )\n            v15.y = y\n                  + (float)((float)(sinf(\n                                      (float)((float)((float)*((int *)this + 26) * v4)\n                                            + (float)((float)*((int *)this + 26) * v4))\n                                    + (float)(x * 0.0099999998))\n                                  * *((float *)this + 27))\n                          * *((float *)this + 28));\n          v12 = (const struct cocos2d::CCPoint *)kmVec2Fill(&v14, v5, v7);\n          cocos2d::CCGrid3DAction::setVertex(this, v12, &v15);\n          v7 = (float)++v6;\n        }\n        while ( (float)(*((float *)this + 25) + 1.0) > (float)v6 );\n      }\n      v5 = (float)++v2;\n    }\n    while ( (float)(*((float *)this + 24) + 1.0) > (float)v2 );\n  }\n}", "assembly": "; \n; cocos2d::CCWaves::update from 0x18002e630 to 0x18002e840 (528 bytes)\n; \n; 5 xrefs:\n; > <???> @ 0x1800e8c48\n; > <???> @ 0x180134ffc\n; > <???> @ 0x18013500c\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801afec8\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, 0x18002e630\nmov     [r11+20h], rbx                                                 ; +0x3, 0x18002e633\npush    rsi                                                            ; +0x7, 0x18002e637\nsub     rsp, 0C0h                                                      ; +0x8, 0x18002e638\nmovaps  xmmword ptr [r11-48h], xmm9                                    ; +0xf, 0x18002e63f\nmovaps  xmmword ptr [r11-58h], xmm10                                   ; +0x14, 0x18002e644\nmovaps  xmmword ptr [r11-78h], xmm12                                   ; +0x19, 0x18002e649\nmov     rax, cs:__security_cookie                                      ; +0x1e, 0x18002e64e\nxor     rax, rsp                                                       ; +0x25, 0x18002e655\nmov     [rsp+0C8h+var_88], rax                                         ; +0x28, 0x18002e658\nmovss   xmm0, dword ptr [rcx+60h]                                      ; +0x2d, 0x18002e65d\nxor     esi, esi                                                       ; +0x32, 0x18002e662\nmovss   xmm9, cs:flt_1800E61A8                                         ; +0x34, 0x18002e664\nxorps   xmm12, xmm12                                                   ; +0x3d, 0x18002e66d\naddss   xmm0, xmm9                                                     ; +0x41, 0x18002e671\nmovaps  xmm10, xmm1                                                    ; +0x46, 0x18002e676\nmov     rbx, rcx                                                       ; +0x4a, 0x18002e67a\ncomiss  xmm0, xmm12                                                    ; +0x4d, 0x18002e67d\njbe     loc_18002E813                                                  ; +0x51, 0x18002e681\nmulss   xmm10, cs:dword_1800E7670                                      ; +0x57, 0x18002e687\nmov     [r11+18h], rdi                                                 ; +0x60, 0x18002e690\nmovaps  xmmword ptr [r11-18h], xmm6                                    ; +0x64, 0x18002e694\nmovaps  xmmword ptr [r11-28h], xmm7                                    ; +0x69, 0x18002e699\nmovaps  xmmword ptr [r11-38h], xmm8                                    ; +0x6e, 0x18002e69e\nxorps   xmm8, xmm8                                                     ; +0x73, 0x18002e6a3\nmovaps  xmmword ptr [r11-68h], xmm11                                   ; +0x77, 0x18002e6a7\nmovss   xmm11, cs:flt_1800E8D30                                        ; +0x7c, 0x18002e6ac\nnop     word ptr [rax+rax+00000000h]                                   ; +0x85, 0x18002e6b5\nmovss   xmm0, dword ptr [rbx+64h]                                      ; +0x90, 0x18002e6c0\nxor     edi, edi                                                       ; +0x95, 0x18002e6c5\naddss   xmm0, xmm9                                                     ; +0x97, 0x18002e6c7\ncomiss  xmm0, xmm12                                                    ; +0x9c, 0x18002e6cc\njbe     loc_18002E7CD                                                  ; +0xa0, 0x18002e6d0\nmovaps  xmm7, xmm12                                                    ; +0xa6, 0x18002e6d6\nnop     word ptr [rax+rax+00h]                                         ; +0xaa, 0x18002e6da\nmovaps  xmm2, xmm7                                                     ; +0xb0, 0x18002e6e0\nlea     rcx, [rsp+0C8h+var_A8]                                         ; +0xb3, 0x18002e6e3\nmovaps  xmm1, xmm8                                                     ; +0xb8, 0x18002e6e8\ncall    kmVec2Fill                                                     ; +0xbc, 0x18002e6ec\nmov     r8, rax                                                        ; +0xc1, 0x18002e6f1\nlea     rdx, [rsp+0C8h+var_98]                                         ; +0xc4, 0x18002e6f4\nmov     rcx, rbx                                                       ; +0xc9, 0x18002e6f9\ncall    ?originalVertex@CCGrid3DAction@cocos2d@@QEAA?AU_ccVertex3F@2@AEBVCCPoint@2@@Z; cocos2d::CCGrid3DAction::originalVertex(cocos2d::CCPoint const &) ; +0xcc, 0x18002e6fc\ncmp     byte ptr [rbx+74h], 0                                          ; +0xd1, 0x18002e701\nmovss   xmm6, [rsp+0C8h+var_94]                                        ; +0xd5, 0x18002e705\njz      short loc_18002E74E                                            ; +0xdb, 0x18002e70b\nmov     eax, [rbx+68h]                                                 ; +0xdd, 0x18002e70d\nxorps   xmm0, xmm0                                                     ; +0xe0, 0x18002e710\nmovaps  xmm1, xmm6                                                     ; +0xe3, 0x18002e713\nmulss   xmm1, xmm11                                                    ; +0xe6, 0x18002e716\ncvtsi2ss xmm0, rax                                                     ; +0xeb, 0x18002e71b\nmulss   xmm0, xmm10                                                    ; +0xf0, 0x18002e720\naddss   xmm0, xmm0                                                     ; +0xf5, 0x18002e725\naddss   xmm0, xmm1; X                                                  ; +0xf9, 0x18002e729\ncall    sinf                                                           ; +0xfd, 0x18002e72d\nmovss   xmm1, [rsp+0C8h+var_98]                                        ; +0x102, 0x18002e732\nmulss   xmm0, dword ptr [rbx+6Ch]                                      ; +0x108, 0x18002e738\nmulss   xmm0, dword ptr [rbx+70h]                                      ; +0x10d, 0x18002e73d\naddss   xmm1, xmm0                                                     ; +0x112, 0x18002e742\nmovss   [rsp+0C8h+var_98], xmm1                                        ; +0x116, 0x18002e746\njmp     short loc_18002E754                                            ; +0x11c, 0x18002e74c\nmovss   xmm1, [rsp+0C8h+var_98]                                        ; +0x11e, 0x18002e74e\ncmp     byte ptr [rbx+75h], 0                                          ; +0x124, 0x18002e754\njz      short loc_18002E790                                            ; +0x128, 0x18002e758\nmov     eax, [rbx+68h]                                                 ; +0x12a, 0x18002e75a\nxorps   xmm0, xmm0                                                     ; +0x12d, 0x18002e75d\nmulss   xmm1, xmm11                                                    ; +0x130, 0x18002e760\ncvtsi2ss xmm0, rax                                                     ; +0x135, 0x18002e765\nmulss   xmm0, xmm10                                                    ; +0x13a, 0x18002e76a\naddss   xmm0, xmm0                                                     ; +0x13f, 0x18002e76f\naddss   xmm0, xmm1; X                                                  ; +0x143, 0x18002e773\ncall    sinf                                                           ; +0x147, 0x18002e777\nmulss   xmm0, dword ptr [rbx+6Ch]                                      ; +0x14c, 0x18002e77c\nmulss   xmm0, dword ptr [rbx+70h]                                      ; +0x151, 0x18002e781\naddss   xmm6, xmm0                                                     ; +0x156, 0x18002e786\nmovss   [rsp+0C8h+var_94], xmm6                                        ; +0x15a, 0x18002e78a\nmovaps  xmm2, xmm7                                                     ; +0x160, 0x18002e790\nlea     rcx, [rsp+0C8h+var_A0]                                         ; +0x163, 0x18002e793\nmovaps  xmm1, xmm8                                                     ; +0x168, 0x18002e798\ncall    kmVec2Fill                                                     ; +0x16c, 0x18002e79c\nmov     rdx, rax; struct cocos2d::CCPoint *                            ; +0x171, 0x18002e7a1\nlea     r8, [rsp+0C8h+var_98]; struct cocos2d::_ccVertex3F *           ; +0x174, 0x18002e7a4\nmov     rcx, rbx; this                                                 ; +0x179, 0x18002e7a9\ncall    ?setVertex@CCGrid3DAction@cocos2d@@QEAAXAEBVCCPoint@2@AEBU_ccVertex3F@2@@Z; cocos2d::CCGrid3DAction::setVertex(cocos2d::CCPoint const &,cocos2d::_ccVertex3F const &) ; +0x17c, 0x18002e7ac\nmovss   xmm0, dword ptr [rbx+64h]                                      ; +0x181, 0x18002e7b1\ninc     edi                                                            ; +0x186, 0x18002e7b6\naddss   xmm0, xmm9                                                     ; +0x188, 0x18002e7b8\nmovd    xmm7, edi                                                      ; +0x18d, 0x18002e7bd\ncvtdq2ps xmm7, xmm7                                                    ; +0x191, 0x18002e7c1\ncomiss  xmm0, xmm7                                                     ; +0x194, 0x18002e7c4\nja      loc_18002E6E0                                                  ; +0x197, 0x18002e7c7\nmovss   xmm0, dword ptr [rbx+60h]                                      ; +0x19d, 0x18002e7cd\ninc     esi                                                            ; +0x1a2, 0x18002e7d2\naddss   xmm0, xmm9                                                     ; +0x1a4, 0x18002e7d4\nmovd    xmm8, esi                                                      ; +0x1a9, 0x18002e7d9\ncvtdq2ps xmm8, xmm8                                                    ; +0x1ae, 0x18002e7de\ncomiss  xmm0, xmm8                                                     ; +0x1b2, 0x18002e7e2\nja      loc_18002E6C0                                                  ; +0x1b6, 0x18002e7e6\nmovaps  xmm11, [rsp+0C8h+var_68]                                       ; +0x1bc, 0x18002e7ec\nmovaps  xmm8, [rsp+0C8h+var_38]                                        ; +0x1c2, 0x18002e7f2\nmovaps  xmm7, [rsp+0C8h+var_28]                                        ; +0x1cb, 0x18002e7fb\nmovaps  xmm6, [rsp+0C8h+var_18]                                        ; +0x1d3, 0x18002e803\nmov     rdi, [rsp+0C8h+arg_10]                                         ; +0x1db, 0x18002e80b\nmov     rcx, [rsp+0C8h+var_88]                                         ; +0x1e3, 0x18002e813\nxor     rcx, rsp; StackCookie                                          ; +0x1e8, 0x18002e818\ncall    __security_check_cookie                                        ; +0x1eb, 0x18002e81b\nlea     r11, [rsp+0C8h+var_8]                                          ; +0x1f0, 0x18002e820\nmov     rbx, [r11+28h]                                                 ; +0x1f8, 0x18002e828\nmovaps  xmm9, xmmword ptr [r11-40h]                                    ; +0x1fc, 0x18002e82c\nmovaps  xmm10, xmmword ptr [r11-50h]                                   ; +0x201, 0x18002e831\nmovaps  xmm12, xmmword ptr [r11-70h]                                   ; +0x206, 0x18002e836\nmov     rsp, r11                                                       ; +0x20b, 0x18002e83b\npop     rsi                                                            ; +0x20e, 0x18002e83e\nretn                                                                   ; +0x20f, 0x18002e83f", "xrefs": ["<???> @ 0x1800e8c48", "<???> @ 0x180134ffc", "<???> @ 0x18013500c", "<???> @ 0x1801438a8", "<???> @ 0x1801afec8"], "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"}