{"type": "func", "start": 6442641536, "end": 6442642283, "name": "cocos2d::CCTwirl::update", "pseudocode": "// \n// cocos2d::CCTwirl::update from 0x18002e880 to 0x18002eb6b (747 bytes)\n// \n// 5 xrefs:\n// > <???> @ 0x1800eed38\n// > <???> @ 0x18013e050\n// > <???> @ 0x18013e060\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801b9f94\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::CCTwirl::update(cocos2d::CCTwirl *this, float a2)\n{\n  float v3; // xmm6_4\n  int v4; // edi\n  float v5; // xmm1_4\n  float v6; // xmm11_4\n  int v7; // esi\n  float v8; // xmm14_4\n  float v9; // xmm10_4\n  float *v10; // rax\n  float Length; // xmm6_4\n  float v12; // xmm0_4\n  float v13; // xmm9_4\n  float v14; // xmm7_4\n  float v15; // xmm6_4\n  float v16; // xmm8_4\n  float v17; // xmm0_4\n  float *v18; // rax\n  float v19; // [rsp+20h] [rbp-F8h] BYREF\n  float v20; // [rsp+24h] [rbp-F4h]\n  float v21; // [rsp+28h] [rbp-F0h]\n  float v22[2]; // [rsp+30h] [rbp-E8h] BYREF\n  float v23; // [rsp+38h] [rbp-E0h] BYREF\n  float v24; // [rsp+40h] [rbp-D8h] BYREF\n  float v25; // [rsp+48h] [rbp-D0h] BYREF\n  float v26; // [rsp+50h] [rbp-C8h] BYREF\n  float v27; // [rsp+54h] [rbp-C4h]\n\n  v21 = a2;\n  v3 = a2;\n  cocos2d::cc_timeval::operator=(&v19, (_DWORD *)this + 26);\n  v4 = 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        v9 = v3 * 3.1415927;\n        do\n        {\n          v10 = kmVec2Fill(&v24, v6, v8);\n          cocos2d::CCGrid3DAction::originalVertex((__int64)this, &v26, v10);\n          kmVec2Fill(&v23, v6 - (float)(*((float *)this + 24) * 0.5), v8 - (float)(*((float *)this + 25) * 0.5));\n          Length = cocos2d::CCPoint::getLength((cocos2d::CCPoint *)&v23);\n          v12 = cosf(\n                  (float)((float)((float)*((int *)this + 28) * v9) + (float)((float)*((int *)this + 28) * v9))\n                + 1.5707964);\n          v13 = v26 - v19;\n          v14 = (float)(v12 * Length) * (float)((float)(*((float *)this + 29) * 0.1) * *((float *)this + 30));\n          v15 = sinf(v14);\n          v16 = v27 - v20;\n          v17 = cosf(v14);\n          kmVec2Fill(v22, (float)(v16 * v15) + (float)(v17 * v13), (float)(v17 * v16) - (float)(v15 * v13));\n          v27 = v22[1] + v20;\n          v26 = v22[0] + v19;\n          v18 = kmVec2Fill(&v25, v6, v8);\n          cocos2d::CCGrid3DAction::setVertex(\n            this,\n            (const struct cocos2d::CCPoint *)v18,\n            (const struct cocos2d::_ccVertex3F *)&v26);\n          ++v7;\n          v5 = *((float *)this + 25) + 1.0;\n          v8 = (float)v7;\n        }\n        while ( v5 > (float)v7 );\n        v3 = v21;\n      }\n      v6 = (float)++v4;\n    }\n    while ( (float)(*((float *)this + 24) + 1.0) > (float)v4 );\n  }\n}", "assembly": "; \n; cocos2d::CCTwirl::update from 0x18002e880 to 0x18002eb6b (747 bytes)\n; \n; 5 xrefs:\n; > <???> @ 0x1800eed38\n; > <???> @ 0x18013e050\n; > <???> @ 0x18013e060\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801b9f94\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     rax, rsp                                                       ; +0x0, 0x18002e880\nmov     [rax+20h], rbx                                                 ; +0x3, 0x18002e883\npush    rdi                                                            ; +0x7, 0x18002e887\nsub     rsp, 110h                                                      ; +0x8, 0x18002e888\nmovaps  xmmword ptr [rax-18h], xmm6                                    ; +0xf, 0x18002e88f\nmovaps  xmmword ptr [rax-78h], xmm12                                   ; +0x13, 0x18002e893\nmovaps  xmmword ptr [rax-88h], xmm13                                   ; +0x18, 0x18002e898\nmov     rax, cs:__security_cookie                                      ; +0x20, 0x18002e8a0\nxor     rax, rsp                                                       ; +0x27, 0x18002e8a7\nmov     [rsp+118h+var_B8], rax                                         ; +0x2a, 0x18002e8aa\nmov     rbx, rcx                                                       ; +0x2f, 0x18002e8af\nmovss   [rsp+118h+var_F0], xmm1                                        ; +0x32, 0x18002e8b2\nlea     rdx, [rcx+68h]                                                 ; +0x38, 0x18002e8b8\nmovaps  xmm6, xmm1                                                     ; +0x3c, 0x18002e8bc\nlea     rcx, [rsp+118h+var_F8]                                         ; +0x3f, 0x18002e8bf\ncall    ??4cc_timeval@cocos2d@@QEAAAEAU01@$$QEAU01@@Z; cocos2d::cc_timeval::operator=(cocos2d::cc_timeval &&) ; +0x44, 0x18002e8c4\nmovss   xmm0, dword ptr [rbx+60h]                                      ; +0x49, 0x18002e8c9\nxor     edi, edi                                                       ; +0x4e, 0x18002e8ce\nmovss   xmm13, cs:flt_1800EC208                                        ; +0x50, 0x18002e8d0\nxorps   xmm12, xmm12                                                   ; +0x59, 0x18002e8d9\naddss   xmm0, xmm13                                                    ; +0x5d, 0x18002e8dd\ncomiss  xmm0, xmm12                                                    ; +0x62, 0x18002e8e2\njbe     loc_18002EB3E                                                  ; +0x66, 0x18002e8e6\nmovss   xmm1, dword ptr [rbx+64h]                                      ; +0x6c, 0x18002e8ec\nmov     [rsp+118h+arg_10], rsi                                         ; +0x71, 0x18002e8f1\naddss   xmm1, xmm13                                                    ; +0x79, 0x18002e8f9\nmovaps  [rsp+118h+var_28], xmm7                                        ; +0x7e, 0x18002e8fe\nmovaps  [rsp+118h+var_38], xmm8                                        ; +0x86, 0x18002e906\nmovaps  [rsp+118h+var_48], xmm9                                        ; +0x8f, 0x18002e90f\nmovaps  [rsp+118h+var_58], xmm10                                       ; +0x98, 0x18002e918\nmovaps  [rsp+118h+var_68], xmm11                                       ; +0xa1, 0x18002e921\nxorps   xmm11, xmm11                                                   ; +0xaa, 0x18002e92a\nmovaps  [rsp+118h+var_98], xmm14                                       ; +0xae, 0x18002e92e\nmovaps  [rsp+118h+var_A8], xmm15                                       ; +0xb7, 0x18002e937\nmovss   xmm15, cs:dword_1800EC358                                      ; +0xbd, 0x18002e93d\nnop     word ptr [rax+rax+00000000h]                                   ; +0xc6, 0x18002e946\nxor     esi, esi                                                       ; +0xd0, 0x18002e950\ncomiss  xmm1, xmm12                                                    ; +0xd2, 0x18002e952\njbe     loc_18002EADC                                                  ; +0xd6, 0x18002e956\nmovaps  xmm10, xmm6                                                    ; +0xdc, 0x18002e95c\nmovaps  xmm14, xmm12                                                   ; +0xe0, 0x18002e960\nmulss   xmm10, cs:dword_1800ED6D8                                      ; +0xe4, 0x18002e964\nnop     dword ptr [rax]                                                ; +0xed, 0x18002e96d\nmovaps  xmm2, xmm14                                                    ; +0xf0, 0x18002e970\nlea     rcx, [rsp+118h+var_D8]                                         ; +0xf4, 0x18002e974\nmovaps  xmm1, xmm11                                                    ; +0xf9, 0x18002e979\ncall    kmVec2Fill                                                     ; +0xfd, 0x18002e97d\nmov     r8, rax                                                        ; +0x102, 0x18002e982\nlea     rdx, [rsp+118h+var_C8]                                         ; +0x105, 0x18002e985\nmov     rcx, rbx                                                       ; +0x10a, 0x18002e98a\ncall    ?originalVertex@CCGrid3DAction@cocos2d@@QEAA?AU_ccVertex3F@2@AEBVCCPoint@2@@Z; cocos2d::CCGrid3DAction::originalVertex(cocos2d::CCPoint const &) ; +0x10d, 0x18002e98d\nmovss   xmm2, dword ptr [rbx+60h]                                      ; +0x112, 0x18002e992\nlea     rcx, [rsp+118h+var_E0]                                         ; +0x117, 0x18002e997\nmovss   xmm0, dword ptr [rbx+64h]                                      ; +0x11c, 0x18002e99c\nmovaps  xmm3, xmm14                                                    ; +0x121, 0x18002e9a1\nmulss   xmm2, xmm15                                                    ; +0x125, 0x18002e9a5\nmovaps  xmm1, xmm11                                                    ; +0x12a, 0x18002e9aa\nmulss   xmm0, xmm15                                                    ; +0x12e, 0x18002e9ae\nsubss   xmm1, xmm2                                                     ; +0x133, 0x18002e9b3\nsubss   xmm3, xmm0                                                     ; +0x137, 0x18002e9b7\nmovaps  xmm2, xmm3                                                     ; +0x13b, 0x18002e9bb\ncall    kmVec2Fill                                                     ; +0x13e, 0x18002e9be\nlea     rcx, [rsp+118h+var_E0]; this                                   ; +0x143, 0x18002e9c3\ncall    ?getLength@CCPoint@cocos2d@@QEBAMXZ; cocos2d::CCPoint::getLength(void) ; +0x148, 0x18002e9c8\nmov     eax, [rbx+70h]                                                 ; +0x14d, 0x18002e9cd\nmovaps  xmm6, xmm0                                                     ; +0x150, 0x18002e9d0\nxorps   xmm0, xmm0                                                     ; +0x153, 0x18002e9d3\ncvtsi2ss xmm0, rax                                                     ; +0x156, 0x18002e9d6\nmulss   xmm0, xmm10                                                    ; +0x15b, 0x18002e9db\naddss   xmm0, xmm0                                                     ; +0x160, 0x18002e9e0\naddss   xmm0, cs:dword_1800EE478; X                                    ; +0x164, 0x18002e9e4\ncall    cosf                                                           ; +0x16c, 0x18002e9ec\nmovss   xmm1, dword ptr [rbx+74h]                                      ; +0x171, 0x18002e9f1\nmovaps  xmm7, xmm0                                                     ; +0x176, 0x18002e9f6\nmulss   xmm1, cs:flt_1800EED9C                                         ; +0x179, 0x18002e9f9\nmovss   xmm9, [rsp+118h+var_C8]                                        ; +0x181, 0x18002ea01\nsubss   xmm9, [rsp+118h+var_F8]                                        ; +0x188, 0x18002ea08\nmulss   xmm1, dword ptr [rbx+78h]                                      ; +0x18f, 0x18002ea0f\nmulss   xmm7, xmm6                                                     ; +0x194, 0x18002ea14\nmulss   xmm7, xmm1                                                     ; +0x198, 0x18002ea18\nmovaps  xmm0, xmm7; X                                                  ; +0x19c, 0x18002ea1c\ncall    sinf                                                           ; +0x19f, 0x18002ea1f\nmovss   xmm8, [rsp+118h+var_C4]                                        ; +0x1a4, 0x18002ea24\nmovaps  xmm6, xmm0                                                     ; +0x1ab, 0x18002ea2b\nsubss   xmm8, [rsp+118h+var_F4]                                        ; +0x1ae, 0x18002ea2e\nmovaps  xmm0, xmm7; X                                                  ; +0x1b5, 0x18002ea35\ncall    cosf                                                           ; +0x1b8, 0x18002ea38\nmovaps  xmm3, xmm0                                                     ; +0x1bd, 0x18002ea3d\nlea     rcx, [rsp+118h+var_E8]                                         ; +0x1c0, 0x18002ea40\nmulss   xmm3, xmm8                                                     ; +0x1c5, 0x18002ea45\nmovaps  xmm2, xmm6                                                     ; +0x1ca, 0x18002ea4a\nmulss   xmm8, xmm6                                                     ; +0x1cd, 0x18002ea4d\nmulss   xmm2, xmm9                                                     ; +0x1d2, 0x18002ea52\nmulss   xmm0, xmm9                                                     ; +0x1d7, 0x18002ea57\nsubss   xmm3, xmm2                                                     ; +0x1dc, 0x18002ea5c\naddss   xmm8, xmm0                                                     ; +0x1e0, 0x18002ea60\nmovaps  xmm2, xmm3                                                     ; +0x1e5, 0x18002ea65\nmovaps  xmm1, xmm8                                                     ; +0x1e8, 0x18002ea68\ncall    kmVec2Fill                                                     ; +0x1ec, 0x18002ea6c\nmovss   xmm1, [rsp+118h+var_E4]                                        ; +0x1f1, 0x18002ea71\nlea     rcx, [rsp+118h+var_D0]                                         ; +0x1f7, 0x18002ea77\naddss   xmm1, [rsp+118h+var_F4]                                        ; +0x1fc, 0x18002ea7c\nmovss   xmm0, [rsp+118h+var_E8]                                        ; +0x202, 0x18002ea82\nmovaps  xmm2, xmm14                                                    ; +0x208, 0x18002ea88\naddss   xmm0, [rsp+118h+var_F8]                                        ; +0x20c, 0x18002ea8c\nmovss   [rsp+118h+var_C4], xmm1                                        ; +0x212, 0x18002ea92\nmovaps  xmm1, xmm11                                                    ; +0x218, 0x18002ea98\nmovss   [rsp+118h+var_C8], xmm0                                        ; +0x21c, 0x18002ea9c\ncall    kmVec2Fill                                                     ; +0x222, 0x18002eaa2\nmov     rdx, rax; struct cocos2d::CCPoint *                            ; +0x227, 0x18002eaa7\nlea     r8, [rsp+118h+var_C8]; struct cocos2d::_ccVertex3F *           ; +0x22a, 0x18002eaaa\nmov     rcx, rbx; this                                                 ; +0x22f, 0x18002eaaf\ncall    ?setVertex@CCGrid3DAction@cocos2d@@QEAAXAEBVCCPoint@2@AEBU_ccVertex3F@2@@Z; cocos2d::CCGrid3DAction::setVertex(cocos2d::CCPoint const &,cocos2d::_ccVertex3F const &) ; +0x232, 0x18002eab2\nmovss   xmm1, dword ptr [rbx+64h]                                      ; +0x237, 0x18002eab7\ninc     esi                                                            ; +0x23c, 0x18002eabc\naddss   xmm1, xmm13                                                    ; +0x23e, 0x18002eabe\nmovd    xmm14, esi                                                     ; +0x243, 0x18002eac3\ncvtdq2ps xmm14, xmm14                                                  ; +0x248, 0x18002eac8\ncomiss  xmm1, xmm14                                                    ; +0x24c, 0x18002eacc\nja      loc_18002E970                                                  ; +0x250, 0x18002ead0\nmovss   xmm6, [rsp+118h+var_F0]                                        ; +0x256, 0x18002ead6\nmovss   xmm0, dword ptr [rbx+60h]                                      ; +0x25c, 0x18002eadc\ninc     edi                                                            ; +0x261, 0x18002eae1\naddss   xmm0, xmm13                                                    ; +0x263, 0x18002eae3\nmovd    xmm11, edi                                                     ; +0x268, 0x18002eae8\ncvtdq2ps xmm11, xmm11                                                  ; +0x26d, 0x18002eaed\ncomiss  xmm0, xmm11                                                    ; +0x271, 0x18002eaf1\nja      loc_18002E950                                                  ; +0x275, 0x18002eaf5\nmovaps  xmm15, [rsp+118h+var_A8]                                       ; +0x27b, 0x18002eafb\nmovaps  xmm14, [rsp+118h+var_98]                                       ; +0x281, 0x18002eb01\nmovaps  xmm11, [rsp+118h+var_68]                                       ; +0x28a, 0x18002eb0a\nmovaps  xmm10, [rsp+118h+var_58]                                       ; +0x293, 0x18002eb13\nmovaps  xmm9, [rsp+118h+var_48]                                        ; +0x29c, 0x18002eb1c\nmovaps  xmm8, [rsp+118h+var_38]                                        ; +0x2a5, 0x18002eb25\nmovaps  xmm7, [rsp+118h+var_28]                                        ; +0x2ae, 0x18002eb2e\nmov     rsi, [rsp+118h+arg_10]                                         ; +0x2b6, 0x18002eb36\nmov     rcx, [rsp+118h+var_B8]                                         ; +0x2be, 0x18002eb3e\nxor     rcx, rsp; StackCookie                                          ; +0x2c3, 0x18002eb43\ncall    __security_check_cookie                                        ; +0x2c6, 0x18002eb46\nlea     r11, [rsp+118h+var_8]                                          ; +0x2cb, 0x18002eb4b\nmov     rbx, [r11+28h]                                                 ; +0x2d3, 0x18002eb53\nmovaps  xmm6, xmmword ptr [r11-10h]                                    ; +0x2d7, 0x18002eb57\nmovaps  xmm12, xmmword ptr [r11-70h]                                   ; +0x2dc, 0x18002eb5c\nmovaps  xmm13, xmmword ptr [r11-80h]                                   ; +0x2e1, 0x18002eb61\nmov     rsp, r11                                                       ; +0x2e6, 0x18002eb66\npop     rdi                                                            ; +0x2e9, 0x18002eb69\nretn                                                                   ; +0x2ea, 0x18002eb6a", "xrefs": ["<???> @ 0x1800eed38", "<???> @ 0x18013e050", "<???> @ 0x18013e060", "<???> @ 0x18014cf68", "<???> @ 0x1801b9f94"], "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"}