{"type": "func", "start": 6442639760, "end": 6442640508, "name": "cocos2d::CCTwirl::update", "pseudocode": "// \n// cocos2d::CCTwirl::update from 0x18002e190 to 0x18002e47c (748 bytes)\n// \n// 5 xrefs:\n// > <???> @ 0x1800e8cd0\n// > <???> @ 0x180135098\n// > <???> @ 0x1801350a8\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801afe80\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::CCTwirl::update(cocos2d::CCTwirl *this, float a2)\n{\n  int v3; // edi\n  float v4; // xmm15_4\n  float v5; // xmm1_4\n  float v6; // xmm11_4\n  int v7; // esi\n  float v8; // xmm14_4\n  const struct cocos2d::CCPoint *v9; // rax\n  float Length; // xmm6_4\n  float v11; // xmm0_4\n  float v12; // xmm9_4\n  float v13; // xmm7_4\n  float v14; // xmm10_4\n  float v15; // xmm8_4\n  float v16; // xmm8_4\n  float v17; // xmm6_4\n  float v18; // xmm0_4\n  const struct cocos2d::CCPoint *v19; // rax\n  float v20; // [rsp+20h] [rbp-E8h] BYREF\n  float v21; // [rsp+24h] [rbp-E4h]\n  float v22[2]; // [rsp+28h] [rbp-E0h] BYREF\n  cocos2d::CCPoint v23; // [rsp+30h] [rbp-D8h] BYREF\n  float v24; // [rsp+38h] [rbp-D0h] BYREF\n  float v25; // [rsp+40h] [rbp-C8h] BYREF\n  struct cocos2d::_ccVertex3F v26; // [rsp+48h] [rbp-C0h] BYREF\n\n  cocos2d::cc_timeval::operator=(&v20, (_DWORD *)this + 26);\n  v3 = 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(&v24, v6, v8);\n          cocos2d::CCGrid3DAction::originalVertex(this, &v26, v9);\n          kmVec2Fill(\n            (float *)&v23,\n            v6 - (float)(*((float *)this + 24) * 0.5),\n            v8 - (float)(*((float *)this + 25) * 0.5));\n          Length = cocos2d::CCPoint::getLength(&v23);\n          v11 = cosf(\n                  (float)((float)((float)*((int *)this + 28) * v4) + (float)((float)*((int *)this + 28) * v4))\n                + 1.5707964);\n          v12 = v26.y - v21;\n          v13 = v26.x - v20;\n          v14 = (float)(v11 * Length) * (float)((float)(*((float *)this + 29) * 0.1) * *((float *)this + 30));\n          v15 = cosf(v14) * v12;\n          v16 = v15 - (float)(sinf(v14) * v13);\n          v17 = cosf(v14) * v13;\n          v18 = sinf(v14);\n          kmVec2Fill(v22, v17 + (float)(v18 * v12), v16);\n          v26.y = v22[1] + v21;\n          v26.x = v22[0] + v20;\n          v19 = (const struct cocos2d::CCPoint *)kmVec2Fill(&v25, v6, v8);\n          cocos2d::CCGrid3DAction::setVertex(this, v19, &v26);\n          ++v7;\n          v5 = *((float *)this + 25) + 1.0;\n          v8 = (float)v7;\n        }\n        while ( v5 > (float)v7 );\n      }\n      v6 = (float)++v3;\n    }\n    while ( (float)(*((float *)this + 24) + 1.0) > (float)v3 );\n  }\n}", "assembly": "; \n; cocos2d::CCTwirl::update from 0x18002e190 to 0x18002e47c (748 bytes)\n; \n; 5 xrefs:\n; > <???> @ 0x1800e8cd0\n; > <???> @ 0x180135098\n; > <???> @ 0x1801350a8\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801afe80\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     [rsp+arg_18], rbx                                              ; +0x0, 0x18002e190\npush    rdi                                                            ; +0x5, 0x18002e195\nsub     rsp, 100h                                                      ; +0x6, 0x18002e196\nmovaps  [rsp+108h+var_78], xmm12                                       ; +0xd, 0x18002e19d\nmovaps  [rsp+108h+var_88], xmm13                                       ; +0x16, 0x18002e1a6\nmovaps  [rsp+108h+var_A8], xmm15                                       ; +0x1f, 0x18002e1af\nmov     rax, cs:__security_cookie                                      ; +0x25, 0x18002e1b5\nxor     rax, rsp                                                       ; +0x2c, 0x18002e1bc\nmov     [rsp+108h+var_B0], rax                                         ; +0x2f, 0x18002e1bf\nmov     rbx, rcx                                                       ; +0x34, 0x18002e1c4\nlea     rdx, [rcx+68h]                                                 ; +0x37, 0x18002e1c7\nlea     rcx, [rsp+108h+var_E8]                                         ; +0x3b, 0x18002e1cb\nmovaps  xmm15, xmm1                                                    ; +0x40, 0x18002e1d0\ncall    ??4cc_timeval@cocos2d@@QEAAAEAU01@$$QEAU01@@Z; cocos2d::cc_timeval::operator=(cocos2d::cc_timeval &&) ; +0x44, 0x18002e1d4\nmovss   xmm0, dword ptr [rbx+60h]                                      ; +0x49, 0x18002e1d9\nxor     edi, edi                                                       ; +0x4e, 0x18002e1de\nmovss   xmm13, cs:flt_1800E61A8                                        ; +0x50, 0x18002e1e0\nxorps   xmm12, xmm12                                                   ; +0x59, 0x18002e1e9\naddss   xmm0, xmm13                                                    ; +0x5d, 0x18002e1ed\ncomiss  xmm0, xmm12                                                    ; +0x62, 0x18002e1f2\njbe     loc_18002E44E                                                  ; +0x66, 0x18002e1f6\nmovss   xmm1, dword ptr [rbx+64h]                                      ; +0x6c, 0x18002e1fc\nmulss   xmm15, cs:dword_1800E7670                                      ; +0x71, 0x18002e201\naddss   xmm1, xmm13                                                    ; +0x7a, 0x18002e20a\nmov     [rsp+108h+arg_10], rsi                                         ; +0x7f, 0x18002e20f\nmovaps  [rsp+108h+var_18], xmm6                                        ; +0x87, 0x18002e217\nmovss   xmm6, cs:dword_1800E6308                                       ; +0x8f, 0x18002e21f\nmovaps  [rsp+108h+var_28], xmm7                                        ; +0x97, 0x18002e227\nmovaps  [rsp+108h+var_38], xmm8                                        ; +0x9f, 0x18002e22f\nmovaps  [rsp+108h+var_48], xmm9                                        ; +0xa8, 0x18002e238\nmovaps  [rsp+108h+var_58], xmm10                                       ; +0xb1, 0x18002e241\nmovaps  [rsp+108h+var_68], xmm11                                       ; +0xba, 0x18002e24a\nxorps   xmm11, xmm11                                                   ; +0xc3, 0x18002e253\nmovaps  [rsp+108h+var_98], xmm14                                       ; +0xc7, 0x18002e257\nnop     dword ptr [rax]                                                ; +0xcd, 0x18002e25d\nxor     esi, esi                                                       ; +0xd0, 0x18002e260\ncomiss  xmm1, xmm12                                                    ; +0xd2, 0x18002e262\njbe     loc_18002E3ED                                                  ; +0xd6, 0x18002e266\nmovaps  xmm14, xmm12                                                   ; +0xdc, 0x18002e26c\nmovaps  xmm2, xmm14                                                    ; +0xe0, 0x18002e270\nlea     rcx, [rsp+108h+var_D0]                                         ; +0xe4, 0x18002e274\nmovaps  xmm1, xmm11                                                    ; +0xe9, 0x18002e279\ncall    kmVec2Fill                                                     ; +0xed, 0x18002e27d\nmov     r8, rax                                                        ; +0xf2, 0x18002e282\nlea     rdx, [rsp+108h+var_C0]                                         ; +0xf5, 0x18002e285\nmov     rcx, rbx                                                       ; +0xfa, 0x18002e28a\ncall    ?originalVertex@CCGrid3DAction@cocos2d@@QEAA?AU_ccVertex3F@2@AEBVCCPoint@2@@Z; cocos2d::CCGrid3DAction::originalVertex(cocos2d::CCPoint const &) ; +0xfd, 0x18002e28d\nmovss   xmm2, dword ptr [rbx+60h]                                      ; +0x102, 0x18002e292\nlea     rcx, [rsp+108h+var_D8]                                         ; +0x107, 0x18002e297\nmovss   xmm0, dword ptr [rbx+64h]                                      ; +0x10c, 0x18002e29c\nmovaps  xmm3, xmm14                                                    ; +0x111, 0x18002e2a1\nmulss   xmm2, xmm6                                                     ; +0x115, 0x18002e2a5\nmovaps  xmm1, xmm11                                                    ; +0x119, 0x18002e2a9\nmulss   xmm0, xmm6                                                     ; +0x11d, 0x18002e2ad\nsubss   xmm1, xmm2                                                     ; +0x121, 0x18002e2b1\nsubss   xmm3, xmm0                                                     ; +0x125, 0x18002e2b5\nmovaps  xmm2, xmm3                                                     ; +0x129, 0x18002e2b9\ncall    kmVec2Fill                                                     ; +0x12c, 0x18002e2bc\nlea     rcx, [rsp+108h+var_D8]; this                                   ; +0x131, 0x18002e2c1\ncall    ?getLength@CCPoint@cocos2d@@QEBAMXZ; cocos2d::CCPoint::getLength(void) ; +0x136, 0x18002e2c6\nmov     eax, [rbx+70h]                                                 ; +0x13b, 0x18002e2cb\nmovaps  xmm6, xmm0                                                     ; +0x13e, 0x18002e2ce\nxorps   xmm0, xmm0                                                     ; +0x141, 0x18002e2d1\ncvtsi2ss xmm0, rax                                                     ; +0x144, 0x18002e2d4\nmulss   xmm0, xmm15                                                    ; +0x149, 0x18002e2d9\naddss   xmm0, xmm0                                                     ; +0x14e, 0x18002e2de\naddss   xmm0, cs:dword_1800E840C; X                                    ; +0x152, 0x18002e2e2\ncall    cosf                                                           ; +0x15a, 0x18002e2ea\nmovss   xmm9, [rsp+108h+var_BC]                                        ; +0x15f, 0x18002e2ef\nmovaps  xmm10, xmm0                                                    ; +0x166, 0x18002e2f6\nmovss   xmm0, dword ptr [rbx+74h]                                      ; +0x16a, 0x18002e2fa\nmulss   xmm0, cs:flt_1800E8D34                                         ; +0x16f, 0x18002e2ff\nmovss   xmm7, [rsp+108h+var_C0]                                        ; +0x177, 0x18002e307\nsubss   xmm9, [rsp+108h+var_E4]                                        ; +0x17d, 0x18002e30d\nmulss   xmm0, dword ptr [rbx+78h]                                      ; +0x184, 0x18002e314\nsubss   xmm7, [rsp+108h+var_E8]                                        ; +0x189, 0x18002e319\nmulss   xmm10, xmm6                                                    ; +0x18f, 0x18002e31f\nmulss   xmm10, xmm0                                                    ; +0x194, 0x18002e324\nmovaps  xmm0, xmm10; X                                                 ; +0x199, 0x18002e329\ncall    cosf                                                           ; +0x19d, 0x18002e32d\nmovaps  xmm8, xmm0                                                     ; +0x1a2, 0x18002e332\nmovaps  xmm0, xmm10; X                                                 ; +0x1a6, 0x18002e336\nmulss   xmm8, xmm9                                                     ; +0x1aa, 0x18002e33a\ncall    sinf                                                           ; +0x1af, 0x18002e33f\nmulss   xmm0, xmm7                                                     ; +0x1b4, 0x18002e344\nsubss   xmm8, xmm0                                                     ; +0x1b8, 0x18002e348\nmovaps  xmm0, xmm10; X                                                 ; +0x1bd, 0x18002e34d\ncall    cosf                                                           ; +0x1c1, 0x18002e351\nmovaps  xmm6, xmm0                                                     ; +0x1c6, 0x18002e356\nmovaps  xmm0, xmm10; X                                                 ; +0x1c9, 0x18002e359\nmulss   xmm6, xmm7                                                     ; +0x1cd, 0x18002e35d\ncall    sinf                                                           ; +0x1d1, 0x18002e361\nmulss   xmm0, xmm9                                                     ; +0x1d6, 0x18002e366\nlea     rcx, [rsp+108h+var_E0]                                         ; +0x1db, 0x18002e36b\nmovaps  xmm2, xmm8                                                     ; +0x1e0, 0x18002e370\naddss   xmm6, xmm0                                                     ; +0x1e4, 0x18002e374\nmovaps  xmm1, xmm6                                                     ; +0x1e8, 0x18002e378\ncall    kmVec2Fill                                                     ; +0x1eb, 0x18002e37b\nmovss   xmm1, [rsp+108h+var_DC]                                        ; +0x1f0, 0x18002e380\nlea     rcx, [rsp+108h+var_C8]                                         ; +0x1f6, 0x18002e386\naddss   xmm1, [rsp+108h+var_E4]                                        ; +0x1fb, 0x18002e38b\nmovss   xmm0, [rsp+108h+var_E0]                                        ; +0x201, 0x18002e391\nmovaps  xmm2, xmm14                                                    ; +0x207, 0x18002e397\naddss   xmm0, [rsp+108h+var_E8]                                        ; +0x20b, 0x18002e39b\nmovss   [rsp+108h+var_BC], xmm1                                        ; +0x211, 0x18002e3a1\nmovaps  xmm1, xmm11                                                    ; +0x217, 0x18002e3a7\nmovss   [rsp+108h+var_C0], xmm0                                        ; +0x21b, 0x18002e3ab\ncall    kmVec2Fill                                                     ; +0x221, 0x18002e3b1\nmov     rdx, rax; struct cocos2d::CCPoint *                            ; +0x226, 0x18002e3b6\nlea     r8, [rsp+108h+var_C0]; struct cocos2d::_ccVertex3F *           ; +0x229, 0x18002e3b9\nmov     rcx, rbx; this                                                 ; +0x22e, 0x18002e3be\ncall    ?setVertex@CCGrid3DAction@cocos2d@@QEAAXAEBVCCPoint@2@AEBU_ccVertex3F@2@@Z; cocos2d::CCGrid3DAction::setVertex(cocos2d::CCPoint const &,cocos2d::_ccVertex3F const &) ; +0x231, 0x18002e3c1\nmovss   xmm1, dword ptr [rbx+64h]                                      ; +0x236, 0x18002e3c6\ninc     esi                                                            ; +0x23b, 0x18002e3cb\nmovss   xmm6, cs:dword_1800E6308                                       ; +0x23d, 0x18002e3cd\naddss   xmm1, xmm13                                                    ; +0x245, 0x18002e3d5\nmovd    xmm14, esi                                                     ; +0x24a, 0x18002e3da\ncvtdq2ps xmm14, xmm14                                                  ; +0x24f, 0x18002e3df\ncomiss  xmm1, xmm14                                                    ; +0x253, 0x18002e3e3\nja      loc_18002E270                                                  ; +0x257, 0x18002e3e7\nmovss   xmm0, dword ptr [rbx+60h]                                      ; +0x25d, 0x18002e3ed\ninc     edi                                                            ; +0x262, 0x18002e3f2\naddss   xmm0, xmm13                                                    ; +0x264, 0x18002e3f4\nmovd    xmm11, edi                                                     ; +0x269, 0x18002e3f9\ncvtdq2ps xmm11, xmm11                                                  ; +0x26e, 0x18002e3fe\ncomiss  xmm0, xmm11                                                    ; +0x272, 0x18002e402\nja      loc_18002E260                                                  ; +0x276, 0x18002e406\nmovaps  xmm14, [rsp+108h+var_98]                                       ; +0x27c, 0x18002e40c\nmovaps  xmm11, [rsp+108h+var_68]                                       ; +0x282, 0x18002e412\nmovaps  xmm10, [rsp+108h+var_58]                                       ; +0x28b, 0x18002e41b\nmovaps  xmm9, [rsp+108h+var_48]                                        ; +0x294, 0x18002e424\nmovaps  xmm8, [rsp+108h+var_38]                                        ; +0x29d, 0x18002e42d\nmovaps  xmm7, [rsp+108h+var_28]                                        ; +0x2a6, 0x18002e436\nmovaps  xmm6, [rsp+108h+var_18]                                        ; +0x2ae, 0x18002e43e\nmov     rsi, [rsp+108h+arg_10]                                         ; +0x2b6, 0x18002e446\nmov     rcx, [rsp+108h+var_B0]                                         ; +0x2be, 0x18002e44e\nxor     rcx, rsp; StackCookie                                          ; +0x2c3, 0x18002e453\ncall    __security_check_cookie                                        ; +0x2c6, 0x18002e456\nlea     r11, [rsp+108h+var_8]                                          ; +0x2cb, 0x18002e45b\nmov     rbx, [r11+28h]                                                 ; +0x2d3, 0x18002e463\nmovaps  xmm12, xmmword ptr [r11-70h]                                   ; +0x2d7, 0x18002e467\nmovaps  xmm13, xmmword ptr [r11-80h]                                   ; +0x2dc, 0x18002e46c\nmovaps  xmm15, [rsp+108h+var_A8]                                       ; +0x2e1, 0x18002e471\nmov     rsp, r11                                                       ; +0x2e7, 0x18002e477\npop     rdi                                                            ; +0x2ea, 0x18002e47a\nretn                                                                   ; +0x2eb, 0x18002e47b", "xrefs": ["<???> @ 0x1800e8cd0", "<???> @ 0x180135098", "<???> @ 0x1801350a8", "<???> @ 0x1801438a8", "<???> @ 0x1801afe80"], "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"}