{"type": "func", "start": 6442641072, "end": 6442641533, "name": "cocos2d::CCShaky3D::update", "pseudocode": "// \n// cocos2d::CCShaky3D::update from 0x18002e6b0 to 0x18002e87d (461 bytes)\n// \n// 6 xrefs:\n// > <???> @ 0x1800eeba0\n// > <???> @ 0x18013de68\n// > <???> @ 0x18013de78\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801b9f64\n// > <???> @ 0x1801b9f70\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::CCShaky3D::update(cocos2d::CCShaky3D *this, float a2)\n{\n  int v2; // ebp\n  float v4; // xmm7_4\n  int v5; // esi\n  float v6; // xmm6_4\n  float *v7; // rax\n  int v8; // ebx\n  int v9; // edx\n  int v10; // ebx\n  int v11; // eax\n  bool v12; // zf\n  int v13; // ebx\n  float *v14; // rax\n  float v15; // [rsp+20h] [rbp-78h] BYREF\n  float v16; // [rsp+28h] [rbp-70h] BYREF\n  float v17; // [rsp+30h] [rbp-68h] BYREF\n  float v18; // [rsp+34h] [rbp-64h]\n  float v19; // [rsp+38h] [rbp-60h]\n\n  v2 = 0;\n  if ( (float)(*((float *)this + 24) + 1.0) > 0.0 )\n  {\n    v4 = 0.0;\n    do\n    {\n      v5 = 0;\n      if ( (float)(*((float *)this + 25) + 1.0) > 0.0 )\n      {\n        v6 = 0.0;\n        do\n        {\n          v7 = kmVec2Fill(&v15, v4, v6);\n          cocos2d::CCGrid3DAction::originalVertex((__int64)this, &v17, v7);\n          v8 = *((_DWORD *)this + 26);\n          v9 = rand() % (2 * v8) - v8;\n          v10 = *((_DWORD *)this + 26);\n          v17 = v17 + (float)v9;\n          v11 = rand();\n          v12 = *((_BYTE *)this + 108) == 0;\n          v18 = v18 + (float)(v11 % (2 * v10) - v10);\n          if ( !v12 )\n          {\n            v13 = *((_DWORD *)this + 26);\n            v19 = v19 + (float)(rand() % (2 * v13) - v13);\n          }\n          v14 = kmVec2Fill(&v16, v4, v6);\n          cocos2d::CCGrid3DAction::setVertex(\n            this,\n            (const struct cocos2d::CCPoint *)v14,\n            (const struct cocos2d::_ccVertex3F *)&v17);\n          v6 = (float)++v5;\n        }\n        while ( (float)(*((float *)this + 25) + 1.0) > (float)v5 );\n      }\n      v4 = (float)++v2;\n    }\n    while ( (float)(*((float *)this + 24) + 1.0) > (float)v2 );\n  }\n}", "assembly": "; \n; cocos2d::CCShaky3D::update from 0x18002e6b0 to 0x18002e87d (461 bytes)\n; \n; 6 xrefs:\n; > <???> @ 0x1800eeba0\n; > <???> @ 0x18013de68\n; > <???> @ 0x18013de78\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801b9f64\n; > <???> @ 0x1801b9f70\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, 0x18002e6b0\nmov     [r11+20h], rbp                                                 ; +0x3, 0x18002e6b3\npush    rdi                                                            ; +0x7, 0x18002e6b7\nsub     rsp, 90h                                                       ; +0x8, 0x18002e6b8\nmovaps  xmmword ptr [r11-38h], xmm8                                    ; +0xf, 0x18002e6bf\nmovaps  xmmword ptr [r11-48h], xmm9                                    ; +0x14, 0x18002e6c4\nmov     rax, cs:__security_cookie                                      ; +0x19, 0x18002e6c9\nxor     rax, rsp                                                       ; +0x20, 0x18002e6d0\nmov     [rsp+98h+var_58], rax                                          ; +0x23, 0x18002e6d3\nmovss   xmm0, dword ptr [rcx+60h]                                      ; +0x28, 0x18002e6d8\nxor     ebp, ebp                                                       ; +0x2d, 0x18002e6dd\nmovss   xmm8, cs:flt_1800EC208                                         ; +0x2f, 0x18002e6df\nxorps   xmm9, xmm9                                                     ; +0x38, 0x18002e6e8\naddss   xmm0, xmm8                                                     ; +0x3c, 0x18002e6ec\nmov     rdi, rcx                                                       ; +0x41, 0x18002e6f1\ncomiss  xmm0, xmm9                                                     ; +0x44, 0x18002e6f4\njbe     loc_18002E853                                                  ; +0x48, 0x18002e6f8\nmov     [r11+10h], rbx                                                 ; +0x4e, 0x18002e6fe\nmov     [r11+18h], rsi                                                 ; +0x52, 0x18002e702\nmovaps  xmmword ptr [r11-18h], xmm6                                    ; +0x56, 0x18002e706\nmovaps  [rsp+98h+var_28], xmm7                                         ; +0x5b, 0x18002e70b\nxorps   xmm7, xmm7                                                     ; +0x60, 0x18002e710\nnop     dword ptr [rax+00h]                                            ; +0x63, 0x18002e713\nnop     word ptr [rax+rax+00000000h]                                   ; +0x67, 0x18002e717\nmovss   xmm0, dword ptr [rdi+64h]                                      ; +0x70, 0x18002e720\nxor     esi, esi                                                       ; +0x75, 0x18002e725\naddss   xmm0, xmm8                                                     ; +0x77, 0x18002e727\ncomiss  xmm0, xmm9                                                     ; +0x7c, 0x18002e72c\njbe     loc_18002E81A                                                  ; +0x80, 0x18002e730\nmovaps  xmm6, xmm9                                                     ; +0x86, 0x18002e736\nnop     word ptr [rax+rax+00h]                                         ; +0x8a, 0x18002e73a\nmovaps  xmm2, xmm6                                                     ; +0x90, 0x18002e740\nlea     rcx, [rsp+98h+var_78]                                          ; +0x93, 0x18002e743\nmovaps  xmm1, xmm7                                                     ; +0x98, 0x18002e748\ncall    kmVec2Fill                                                     ; +0x9b, 0x18002e74b\nmov     r8, rax                                                        ; +0xa0, 0x18002e750\nlea     rdx, [rsp+98h+var_68]                                          ; +0xa3, 0x18002e753\nmov     rcx, rdi                                                       ; +0xa8, 0x18002e758\ncall    ?originalVertex@CCGrid3DAction@cocos2d@@QEAA?AU_ccVertex3F@2@AEBVCCPoint@2@@Z; cocos2d::CCGrid3DAction::originalVertex(cocos2d::CCPoint const &) ; +0xab, 0x18002e75b\nmov     ebx, [rdi+68h]                                                 ; +0xb0, 0x18002e760\ncall    cs:rand                                                        ; +0xb3, 0x18002e763\nmovss   xmm1, [rsp+98h+var_68]                                         ; +0xb9, 0x18002e769\nlea     ecx, [rbx+rbx]                                                 ; +0xbf, 0x18002e76f\ncdq                                                                    ; +0xc2, 0x18002e772\nidiv    ecx                                                            ; +0xc3, 0x18002e773\nsub     edx, ebx                                                       ; +0xc5, 0x18002e775\nmov     ebx, [rdi+68h]                                                 ; +0xc7, 0x18002e777\nmovd    xmm0, edx                                                      ; +0xca, 0x18002e77a\ncvtdq2ps xmm0, xmm0                                                    ; +0xce, 0x18002e77e\naddss   xmm1, xmm0                                                     ; +0xd1, 0x18002e781\nmovss   [rsp+98h+var_68], xmm1                                         ; +0xd5, 0x18002e785\ncall    cs:rand                                                        ; +0xdb, 0x18002e78b\nmovss   xmm1, [rsp+98h+var_64]                                         ; +0xe1, 0x18002e791\nlea     ecx, [rbx+rbx]                                                 ; +0xe7, 0x18002e797\ncdq                                                                    ; +0xea, 0x18002e79a\nidiv    ecx                                                            ; +0xeb, 0x18002e79b\nsub     edx, ebx                                                       ; +0xed, 0x18002e79d\ncmp     byte ptr [rdi+6Ch], 0                                          ; +0xef, 0x18002e79f\nmovd    xmm0, edx                                                      ; +0xf3, 0x18002e7a3\ncvtdq2ps xmm0, xmm0                                                    ; +0xf7, 0x18002e7a7\naddss   xmm1, xmm0                                                     ; +0xfa, 0x18002e7aa\nmovss   [rsp+98h+var_64], xmm1                                         ; +0xfe, 0x18002e7ae\njz      short loc_18002E7DE                                            ; +0x104, 0x18002e7b4\nmov     ebx, [rdi+68h]                                                 ; +0x106, 0x18002e7b6\ncall    cs:rand                                                        ; +0x109, 0x18002e7b9\nmovss   xmm1, [rsp+98h+var_60]                                         ; +0x10f, 0x18002e7bf\nlea     ecx, [rbx+rbx]                                                 ; +0x115, 0x18002e7c5\ncdq                                                                    ; +0x118, 0x18002e7c8\nidiv    ecx                                                            ; +0x119, 0x18002e7c9\nsub     edx, ebx                                                       ; +0x11b, 0x18002e7cb\nmovd    xmm0, edx                                                      ; +0x11d, 0x18002e7cd\ncvtdq2ps xmm0, xmm0                                                    ; +0x121, 0x18002e7d1\naddss   xmm1, xmm0                                                     ; +0x124, 0x18002e7d4\nmovss   [rsp+98h+var_60], xmm1                                         ; +0x128, 0x18002e7d8\nmovaps  xmm2, xmm6                                                     ; +0x12e, 0x18002e7de\nlea     rcx, [rsp+98h+var_70]                                          ; +0x131, 0x18002e7e1\nmovaps  xmm1, xmm7                                                     ; +0x136, 0x18002e7e6\ncall    kmVec2Fill                                                     ; +0x139, 0x18002e7e9\nmov     rdx, rax; struct cocos2d::CCPoint *                            ; +0x13e, 0x18002e7ee\nlea     r8, [rsp+98h+var_68]; struct cocos2d::_ccVertex3F *            ; +0x141, 0x18002e7f1\nmov     rcx, rdi; this                                                 ; +0x146, 0x18002e7f6\ncall    ?setVertex@CCGrid3DAction@cocos2d@@QEAAXAEBVCCPoint@2@AEBU_ccVertex3F@2@@Z; cocos2d::CCGrid3DAction::setVertex(cocos2d::CCPoint const &,cocos2d::_ccVertex3F const &) ; +0x149, 0x18002e7f9\nmovss   xmm0, dword ptr [rdi+64h]                                      ; +0x14e, 0x18002e7fe\ninc     esi                                                            ; +0x153, 0x18002e803\naddss   xmm0, xmm8                                                     ; +0x155, 0x18002e805\nmovd    xmm6, esi                                                      ; +0x15a, 0x18002e80a\ncvtdq2ps xmm6, xmm6                                                    ; +0x15e, 0x18002e80e\ncomiss  xmm0, xmm6                                                     ; +0x161, 0x18002e811\nja      loc_18002E740                                                  ; +0x164, 0x18002e814\nmovss   xmm0, dword ptr [rdi+60h]                                      ; +0x16a, 0x18002e81a\ninc     ebp                                                            ; +0x16f, 0x18002e81f\naddss   xmm0, xmm8                                                     ; +0x171, 0x18002e821\nmovd    xmm7, ebp                                                      ; +0x176, 0x18002e826\ncvtdq2ps xmm7, xmm7                                                    ; +0x17a, 0x18002e82a\ncomiss  xmm0, xmm7                                                     ; +0x17d, 0x18002e82d\nja      loc_18002E720                                                  ; +0x180, 0x18002e830\nmovaps  xmm7, [rsp+98h+var_28]                                         ; +0x186, 0x18002e836\nmovaps  xmm6, [rsp+98h+var_18]                                         ; +0x18b, 0x18002e83b\nmov     rsi, [rsp+98h+arg_10]                                          ; +0x193, 0x18002e843\nmov     rbx, [rsp+98h+arg_8]                                           ; +0x19b, 0x18002e84b\nmov     rcx, [rsp+98h+var_58]                                          ; +0x1a3, 0x18002e853\nxor     rcx, rsp; StackCookie                                          ; +0x1a8, 0x18002e858\ncall    __security_check_cookie                                        ; +0x1ab, 0x18002e85b\nmov     rbp, [rsp+98h+arg_18]                                          ; +0x1b0, 0x18002e860\nmovaps  xmm8, [rsp+98h+var_38]                                         ; +0x1b8, 0x18002e868\nmovaps  xmm9, [rsp+98h+var_48]                                         ; +0x1be, 0x18002e86e\nadd     rsp, 90h                                                       ; +0x1c4, 0x18002e874\npop     rdi                                                            ; +0x1cb, 0x18002e87b\nretn                                                                   ; +0x1cc, 0x18002e87c", "xrefs": ["<???> @ 0x1800eeba0", "<???> @ 0x18013de68", "<???> @ 0x18013de78", "<???> @ 0x18014cf68", "<???> @ 0x1801b9f64", "<???> @ 0x1801b9f70"], "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"}