{"type": "func", "start": 6442640512, "end": 6442640939, "name": "cocos2d::CCWaves3D::update", "pseudocode": "// \n// cocos2d::CCWaves3D::update from 0x18002e480 to 0x18002e62b (427 bytes)\n// \n// 5 xrefs:\n// > <???> @ 0x1800e8870\n// > <???> @ 0x180134ab0\n// > <???> @ 0x180134ac0\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801afea4\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::CCWaves3D::update(cocos2d::CCWaves3D *this, float a2)\n{\n  int v2; // edi\n  float v4; // xmm10_4\n  float v5; // xmm1_4\n  float v6; // xmm6_4\n  int v7; // esi\n  float v8; // xmm7_4\n  const struct cocos2d::CCPoint *v9; // rax\n  float v10; // xmm0_4\n  const struct cocos2d::CCPoint *v11; // rax\n  float v12; // [rsp+20h] [rbp-98h] BYREF\n  float v13; // [rsp+28h] [rbp-90h] BYREF\n  struct cocos2d::_ccVertex3F v14; // [rsp+30h] [rbp-88h] BYREF\n\n  v2 = 0;\n  if ( (float)(*((float *)this + 24) + 1.0) > 0.0 )\n  {\n    v4 = a2 * 3.1415927;\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 = (const struct cocos2d::CCPoint *)kmVec2Fill(&v12, v6, v8);\n          cocos2d::CCGrid3DAction::originalVertex(this, &v14, v9);\n          v10 = sinf(\n                  (float)((float)(v14.x + v14.y) * 0.0099999998)\n                + (float)((float)((float)*((int *)this + 26) * v4) + (float)((float)*((int *)this + 26) * v4)));\n          v14.z = v14.z + (float)((float)(v10 * *((float *)this + 27)) * *((float *)this + 28));\n          v11 = (const struct cocos2d::CCPoint *)kmVec2Fill(&v13, v6, v8);\n          cocos2d::CCGrid3DAction::setVertex(this, v11, &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 0x18002e480 to 0x18002e62b (427 bytes)\n; \n; 5 xrefs:\n; > <???> @ 0x1800e8870\n; > <???> @ 0x180134ab0\n; > <???> @ 0x180134ac0\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801afea4\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, 0x18002e480\nmov     [r11+20h], rbx                                                 ; +0x3, 0x18002e483\npush    rdi                                                            ; +0x7, 0x18002e487\nsub     rsp, 0B0h                                                      ; +0x8, 0x18002e488\nmovaps  xmmword ptr [r11-38h], xmm8                                    ; +0xf, 0x18002e48f\nmovaps  xmmword ptr [r11-48h], xmm9                                    ; +0x14, 0x18002e494\nmovaps  xmmword ptr [r11-58h], xmm10                                   ; +0x19, 0x18002e499\nmov     rax, cs:__security_cookie                                      ; +0x1e, 0x18002e49e\nxor     rax, rsp                                                       ; +0x25, 0x18002e4a5\nmov     [rsp+0B8h+var_78], rax                                         ; +0x28, 0x18002e4a8\nmovss   xmm0, dword ptr [rcx+60h]                                      ; +0x2d, 0x18002e4ad\nxor     edi, edi                                                       ; +0x32, 0x18002e4b2\nmovss   xmm8, cs:flt_1800E61A8                                         ; +0x34, 0x18002e4b4\nxorps   xmm9, xmm9                                                     ; +0x3d, 0x18002e4bd\naddss   xmm0, xmm8                                                     ; +0x41, 0x18002e4c1\nmovaps  xmm10, xmm1                                                    ; +0x46, 0x18002e4c6\nmov     rbx, rcx                                                       ; +0x4a, 0x18002e4ca\ncomiss  xmm0, xmm9                                                     ; +0x4d, 0x18002e4cd\njbe     loc_18002E5FE                                                  ; +0x51, 0x18002e4d1\nmovss   xmm1, dword ptr [rcx+64h]                                      ; +0x57, 0x18002e4d7\nmulss   xmm10, cs:dword_1800E7670                                      ; +0x5c, 0x18002e4dc\naddss   xmm1, xmm8                                                     ; +0x65, 0x18002e4e5\nmov     [r11+18h], rsi                                                 ; +0x6a, 0x18002e4ea\nmovaps  xmmword ptr [r11-18h], xmm6                                    ; +0x6e, 0x18002e4ee\nxorps   xmm6, xmm6                                                     ; +0x73, 0x18002e4f3\nmovaps  xmmword ptr [r11-28h], xmm7                                    ; +0x76, 0x18002e4f6\nmovaps  xmmword ptr [r11-68h], xmm11                                   ; +0x7b, 0x18002e4fb\nmovss   xmm11, cs:flt_1800E8D30                                        ; +0x80, 0x18002e500\nnop     dword ptr [rax+00000000h]                                      ; +0x89, 0x18002e509\nxor     esi, esi                                                       ; +0x90, 0x18002e510\ncomiss  xmm1, xmm9                                                     ; +0x92, 0x18002e512\njbe     loc_18002E5C4                                                  ; +0x96, 0x18002e516\nmovaps  xmm7, xmm9                                                     ; +0x9c, 0x18002e51c\nmovaps  xmm2, xmm7                                                     ; +0xa0, 0x18002e520\nlea     rcx, [rsp+0B8h+var_98]                                         ; +0xa3, 0x18002e523\nmovaps  xmm1, xmm6                                                     ; +0xa8, 0x18002e528\ncall    kmVec2Fill                                                     ; +0xab, 0x18002e52b\nmov     r8, rax                                                        ; +0xb0, 0x18002e530\nlea     rdx, [rsp+0B8h+var_88]                                         ; +0xb3, 0x18002e533\nmov     rcx, rbx                                                       ; +0xb8, 0x18002e538\ncall    ?originalVertex@CCGrid3DAction@cocos2d@@QEAA?AU_ccVertex3F@2@AEBVCCPoint@2@@Z; cocos2d::CCGrid3DAction::originalVertex(cocos2d::CCPoint const &) ; +0xbb, 0x18002e53b\nmov     eax, [rbx+68h]                                                 ; +0xc0, 0x18002e540\nxorps   xmm1, xmm1                                                     ; +0xc3, 0x18002e543\nmovss   xmm0, [rsp+0B8h+var_88]                                        ; +0xc6, 0x18002e546\naddss   xmm0, [rsp+0B8h+var_84]                                        ; +0xcc, 0x18002e54c\ncvtsi2ss xmm1, rax                                                     ; +0xd2, 0x18002e552\nmulss   xmm0, xmm11                                                    ; +0xd7, 0x18002e557\nmulss   xmm1, xmm10                                                    ; +0xdc, 0x18002e55c\naddss   xmm1, xmm1                                                     ; +0xe1, 0x18002e561\naddss   xmm0, xmm1; X                                                  ; +0xe5, 0x18002e565\ncall    sinf                                                           ; +0xe9, 0x18002e569\nmovss   xmm1, [rsp+0B8h+var_80]                                        ; +0xee, 0x18002e56e\nlea     rcx, [rsp+0B8h+var_90]                                         ; +0xf4, 0x18002e574\nmulss   xmm0, dword ptr [rbx+6Ch]                                      ; +0xf9, 0x18002e579\nmovaps  xmm2, xmm7                                                     ; +0xfe, 0x18002e57e\nmulss   xmm0, dword ptr [rbx+70h]                                      ; +0x101, 0x18002e581\naddss   xmm1, xmm0                                                     ; +0x106, 0x18002e586\nmovss   [rsp+0B8h+var_80], xmm1                                        ; +0x10a, 0x18002e58a\nmovaps  xmm1, xmm6                                                     ; +0x110, 0x18002e590\ncall    kmVec2Fill                                                     ; +0x113, 0x18002e593\nmov     rdx, rax; struct cocos2d::CCPoint *                            ; +0x118, 0x18002e598\nlea     r8, [rsp+0B8h+var_88]; struct cocos2d::_ccVertex3F *           ; +0x11b, 0x18002e59b\nmov     rcx, rbx; this                                                 ; +0x120, 0x18002e5a0\ncall    ?setVertex@CCGrid3DAction@cocos2d@@QEAAXAEBVCCPoint@2@AEBU_ccVertex3F@2@@Z; cocos2d::CCGrid3DAction::setVertex(cocos2d::CCPoint const &,cocos2d::_ccVertex3F const &) ; +0x123, 0x18002e5a3\nmovss   xmm1, dword ptr [rbx+64h]                                      ; +0x128, 0x18002e5a8\ninc     esi                                                            ; +0x12d, 0x18002e5ad\naddss   xmm1, xmm8                                                     ; +0x12f, 0x18002e5af\nmovd    xmm7, esi                                                      ; +0x134, 0x18002e5b4\ncvtdq2ps xmm7, xmm7                                                    ; +0x138, 0x18002e5b8\ncomiss  xmm1, xmm7                                                     ; +0x13b, 0x18002e5bb\nja      loc_18002E520                                                  ; +0x13e, 0x18002e5be\nmovss   xmm0, dword ptr [rbx+60h]                                      ; +0x144, 0x18002e5c4\ninc     edi                                                            ; +0x149, 0x18002e5c9\naddss   xmm0, xmm8                                                     ; +0x14b, 0x18002e5cb\nmovd    xmm6, edi                                                      ; +0x150, 0x18002e5d0\ncvtdq2ps xmm6, xmm6                                                    ; +0x154, 0x18002e5d4\ncomiss  xmm0, xmm6                                                     ; +0x157, 0x18002e5d7\nja      loc_18002E510                                                  ; +0x15a, 0x18002e5da\nmovaps  xmm11, [rsp+0B8h+var_68]                                       ; +0x160, 0x18002e5e0\nmovaps  xmm7, [rsp+0B8h+var_28]                                        ; +0x166, 0x18002e5e6\nmovaps  xmm6, [rsp+0B8h+var_18]                                        ; +0x16e, 0x18002e5ee\nmov     rsi, [rsp+0B8h+arg_10]                                         ; +0x176, 0x18002e5f6\nmov     rcx, [rsp+0B8h+var_78]                                         ; +0x17e, 0x18002e5fe\nxor     rcx, rsp; StackCookie                                          ; +0x183, 0x18002e603\ncall    __security_check_cookie                                        ; +0x186, 0x18002e606\nlea     r11, [rsp+0B8h+var_8]                                          ; +0x18b, 0x18002e60b\nmov     rbx, [r11+28h]                                                 ; +0x193, 0x18002e613\nmovaps  xmm8, xmmword ptr [r11-30h]                                    ; +0x197, 0x18002e617\nmovaps  xmm9, xmmword ptr [r11-40h]                                    ; +0x19c, 0x18002e61c\nmovaps  xmm10, xmmword ptr [r11-50h]                                   ; +0x1a1, 0x18002e621\nmov     rsp, r11                                                       ; +0x1a6, 0x18002e626\npop     rdi                                                            ; +0x1a9, 0x18002e629\nretn                                                                   ; +0x1aa, 0x18002e62a", "xrefs": ["<???> @ 0x1800e8870", "<???> @ 0x180134ab0", "<???> @ 0x180134ac0", "<???> @ 0x1801438a8", "<???> @ 0x1801afea4"], "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"}