{"type": "func", "start": 6442685728, "end": 6442686487, "name": "cocos2d::CCPageTurn3D::update", "pseudocode": "// \n// cocos2d::CCPageTurn3D::update from 0x180039520 to 0x180039817 (759 bytes)\n// \n// 5 xrefs:\n// > <???> @ 0x1800f0118\n// > <???> @ 0x18013f3dc\n// > <???> @ 0x18013f3ec\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bad8c\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:36 +0000\n// \n\nvoid __fastcall cocos2d::CCPageTurn3D::update(cocos2d::CCPageTurn3D *this, float a2)\n{\n  float v4; // xmm1_4\n  float v5; // xmm13_4\n  float v6; // xmm6_4\n  float v7; // xmm6_4\n  float v8; // xmm12_4\n  int v9; // esi\n  float v10; // xmm11_4\n  int v11; // edi\n  float v12; // xmm9_4\n  float *v13; // rax\n  float v14; // xmm7_4\n  float v15; // xmm1_4\n  float v16; // xmm6_4\n  float v17; // xmm8_4\n  float v18; // xmm7_4\n  float v19; // xmm10_4\n  float v20; // xmm1_4\n  float *v21; // rax\n  float v22; // [rsp+20h] [rbp-D8h]\n  float v23[2]; // [rsp+24h] [rbp-D4h] BYREF\n  float v24[3]; // [rsp+2Ch] [rbp-CCh] BYREF\n  float v25; // [rsp+38h] [rbp-C0h] BYREF\n  float v26; // [rsp+3Ch] [rbp-BCh]\n  float v27; // [rsp+40h] [rbp-B8h]\n\n  v4 = fmaxf(0.0, a2 - 0.25);\n  v5 = -100.0 - (float)((float)(v4 * v4) * 500.0);\n  if ( a2 < 0.0 )\n    v6 = sqrtf(a2);\n  else\n    v6 = fsqrt(a2);\n  v7 = (float)(v6 * -1.5707964) + 1.5707964;\n  v8 = sinf(v7);\n  v9 = 0;\n  v22 = cosf(v7);\n  if ( *((float *)this + 24) >= 0.0 )\n  {\n    v10 = 0.0;\n    do\n    {\n      v11 = 0;\n      if ( *((float *)this + 25) >= 0.0 )\n      {\n        v12 = 0.0;\n        do\n        {\n          v13 = kmVec2Fill(v23, v10, v12);\n          cocos2d::CCGrid3DAction::originalVertex((__int64)this, &v25, v13);\n          v14 = v25;\n          v15 = (float)((float)(v26 - v5) * (float)(v26 - v5)) + (float)(v14 * v14);\n          if ( v15 < 0.0 )\n            v16 = sqrtf(v15);\n          else\n            v16 = fsqrt(v15);\n          v17 = v16 * v8;\n          v18 = asinf(v14 / v16) / v8;\n          v19 = cosf(v18);\n          if ( v18 > 3.141592653589793 )\n            v25 = 0.0;\n          else\n            v25 = sinf(v18) * v17;\n          v20 = (float)(1.0 - v19) * v17;\n          v26 = (float)(v16 + v5) - (float)(v20 * v8);\n          v27 = (float)(v20 * v22) / 7.0;\n          if ( v27 < 0.5 )\n            v27 = 0.5;\n          v21 = kmVec2Fill(v24, v10, v12);\n          cocos2d::CCGrid3DAction::setVertex(\n            this,\n            (const struct cocos2d::CCPoint *)v21,\n            (const struct cocos2d::_ccVertex3F *)&v25);\n          v12 = (float)++v11;\n        }\n        while ( *((float *)this + 25) >= (float)v11 );\n      }\n      v10 = (float)++v9;\n    }\n    while ( *((float *)this + 24) >= (float)v9 );\n  }\n}", "assembly": "; \n; cocos2d::CCPageTurn3D::update from 0x180039520 to 0x180039817 (759 bytes)\n; \n; 5 xrefs:\n; > <???> @ 0x1800f0118\n; > <???> @ 0x18013f3dc\n; > <???> @ 0x18013f3ec\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bad8c\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:36 +0000\n; \nmov     rax, rsp                                                       ; +0x0, 0x180039520\nmov     [rax+20h], rbx                                                 ; +0x3, 0x180039523\npush    rsi                                                            ; +0x7, 0x180039527\nsub     rsp, 0F0h                                                      ; +0x8, 0x180039528\nmovaps  xmmword ptr [rax-18h], xmm6                                    ; +0xf, 0x18003952f\nmovaps  xmmword ptr [rax-78h], xmm12                                   ; +0x13, 0x180039533\nmovaps  [rsp+0F8h+var_88], xmm13                                       ; +0x18, 0x180039538\nmovaps  [rsp+0F8h+var_98], xmm14                                       ; +0x1e, 0x18003953e\nmov     rax, cs:__security_cookie                                      ; +0x24, 0x180039544\nxor     rax, rsp                                                       ; +0x2b, 0x18003954b\nmov     [rsp+0F8h+var_B0], rax                                         ; +0x2e, 0x18003954e\nmovss   xmm13, cs:dword_1800F018C                                      ; +0x33, 0x180039553\nmovaps  xmm0, xmm1                                                     ; +0x3c, 0x18003955c\nsubss   xmm0, cs:dword_1800EE454                                       ; +0x3f, 0x18003955f\nmovaps  xmm2, xmm1                                                     ; +0x47, 0x180039567\nmov     rbx, rcx                                                       ; +0x4a, 0x18003956a\nxorps   xmm1, xmm1                                                     ; +0x4d, 0x18003956d\nxorps   xmm14, xmm14                                                   ; +0x50, 0x180039570\nmaxss   xmm1, xmm0                                                     ; +0x54, 0x180039574\nxorps   xmm0, xmm0                                                     ; +0x58, 0x180039578\nucomiss xmm0, xmm2                                                     ; +0x5b, 0x18003957b\nmulss   xmm1, xmm1                                                     ; +0x5e, 0x18003957e\nmulss   xmm1, cs:dword_1800F0184                                       ; +0x62, 0x180039582\nsubss   xmm13, xmm1                                                    ; +0x6a, 0x18003958a\nja      short loc_18003959A                                            ; +0x6f, 0x18003958f\nxorps   xmm6, xmm6                                                     ; +0x71, 0x180039591\nsqrtss  xmm6, xmm2                                                     ; +0x74, 0x180039594\njmp     short loc_1800395A5                                            ; +0x78, 0x180039598\nmovaps  xmm0, xmm2; X                                                  ; +0x7a, 0x18003959a\ncall    sqrtf                                                          ; +0x7d, 0x18003959d\nmovaps  xmm6, xmm0                                                     ; +0x82, 0x1800395a2\nmulss   xmm6, cs:dword_1800F0188                                       ; +0x85, 0x1800395a5\naddss   xmm6, cs:dword_1800EE478                                       ; +0x8d, 0x1800395ad\nmovaps  xmm0, xmm6; X                                                  ; +0x95, 0x1800395b5\ncall    sinf                                                           ; +0x98, 0x1800395b8\nmovaps  xmm12, xmm0                                                    ; +0x9d, 0x1800395bd\nmovaps  xmm0, xmm6; X                                                  ; +0xa1, 0x1800395c1\ncall    cosf                                                           ; +0xa4, 0x1800395c4\nmovss   xmm1, dword ptr [rbx+60h]                                      ; +0xa9, 0x1800395c9\nxor     esi, esi                                                       ; +0xae, 0x1800395ce\ncomiss  xmm1, xmm14                                                    ; +0xb0, 0x1800395d0\nmovss   [rsp+0F8h+var_D8], xmm0                                        ; +0xb4, 0x1800395d4\njb      loc_1800397E4                                                  ; +0xba, 0x1800395da\nmov     [rsp+0F8h+arg_10], rdi                                         ; +0xc0, 0x1800395e0\nmovaps  [rsp+0F8h+var_28], xmm7                                        ; +0xc8, 0x1800395e8\nmovaps  [rsp+0F8h+var_38], xmm8                                        ; +0xd0, 0x1800395f0\nmovaps  [rsp+0F8h+var_48], xmm9                                        ; +0xd9, 0x1800395f9\nmovaps  [rsp+0F8h+var_58], xmm10                                       ; +0xe2, 0x180039602\nmovaps  [rsp+0F8h+var_68], xmm11                                       ; +0xeb, 0x18003960b\nxorps   xmm11, xmm11                                                   ; +0xf4, 0x180039614\nmovaps  [rsp+0F8h+var_A8], xmm15                                       ; +0xf8, 0x180039618\nmovss   xmm15, cs:flt_1800EC208                                        ; +0xfe, 0x18003961e\nnop     word ptr [rax+rax+00000000h]                                   ; +0x107, 0x180039627\nmovss   xmm0, dword ptr [rbx+64h]                                      ; +0x110, 0x180039630\nxor     edi, edi                                                       ; +0x115, 0x180039635\ncomiss  xmm0, xmm14                                                    ; +0x117, 0x180039637\njb      loc_180039790                                                  ; +0x11b, 0x18003963b\nmovaps  xmm9, xmm14                                                    ; +0x121, 0x180039641\nmovss   xmm14, cs:dword_1800EC358                                      ; +0x125, 0x180039645\nxchg    ax, ax                                                         ; +0x12e, 0x18003964e\nmovaps  xmm2, xmm9                                                     ; +0x130, 0x180039650\nlea     rcx, [rsp+0F8h+var_D4]                                         ; +0x134, 0x180039654\nmovaps  xmm1, xmm11                                                    ; +0x139, 0x180039659\ncall    kmVec2Fill                                                     ; +0x13d, 0x18003965d\nmov     r8, rax                                                        ; +0x142, 0x180039662\nlea     rdx, [rsp+0F8h+var_C0]                                         ; +0x145, 0x180039665\nmov     rcx, rbx                                                       ; +0x14a, 0x18003966a\ncall    ?originalVertex@CCGrid3DAction@cocos2d@@QEAA?AU_ccVertex3F@2@AEBVCCPoint@2@@Z; cocos2d::CCGrid3DAction::originalVertex(cocos2d::CCPoint const &) ; +0x14d, 0x18003966d\nmovss   xmm7, [rsp+0F8h+var_C0]                                        ; +0x152, 0x180039672\nmovss   xmm1, [rsp+0F8h+var_BC]                                        ; +0x158, 0x180039678\nmovaps  xmm0, xmm7                                                     ; +0x15e, 0x18003967e\nsubss   xmm1, xmm13                                                    ; +0x161, 0x180039681\nmulss   xmm0, xmm7                                                     ; +0x166, 0x180039686\nmulss   xmm1, xmm1                                                     ; +0x16a, 0x18003968a\naddss   xmm1, xmm0                                                     ; +0x16e, 0x18003968e\nxorps   xmm0, xmm0                                                     ; +0x172, 0x180039692\nucomiss xmm0, xmm1                                                     ; +0x175, 0x180039695\nja      short loc_1800396A3                                            ; +0x178, 0x180039698\nxorps   xmm6, xmm6                                                     ; +0x17a, 0x18003969a\nsqrtss  xmm6, xmm1                                                     ; +0x17d, 0x18003969d\njmp     short loc_1800396AE                                            ; +0x181, 0x1800396a1\nmovaps  xmm0, xmm1; X                                                  ; +0x183, 0x1800396a3\ncall    sqrtf                                                          ; +0x186, 0x1800396a6\nmovaps  xmm6, xmm0                                                     ; +0x18b, 0x1800396ab\ndivss   xmm7, xmm6                                                     ; +0x18e, 0x1800396ae\nmovaps  xmm8, xmm6                                                     ; +0x192, 0x1800396b2\nmovaps  xmm0, xmm7; X                                                  ; +0x196, 0x1800396b6\nmulss   xmm8, xmm12                                                    ; +0x199, 0x1800396b9\ncall    asinf                                                          ; +0x19e, 0x1800396be\nmovaps  xmm7, xmm0                                                     ; +0x1a3, 0x1800396c3\ndivss   xmm7, xmm12                                                    ; +0x1a6, 0x1800396c6\nmovaps  xmm0, xmm7; X                                                  ; +0x1ab, 0x1800396cb\ncall    cosf                                                           ; +0x1ae, 0x1800396ce\nxorps   xmm1, xmm1                                                     ; +0x1b3, 0x1800396d3\nmovaps  xmm10, xmm0                                                    ; +0x1b6, 0x1800396d6\nmovsd   xmm0, cs:qword_1800F0178                                       ; +0x1ba, 0x1800396da\ncvtss2sd xmm1, xmm7                                                    ; +0x1c2, 0x1800396e2\ncomisd  xmm0, xmm1                                                     ; +0x1c6, 0x1800396e6\njb      short loc_180039701                                            ; +0x1ca, 0x1800396ea\nmovaps  xmm0, xmm7; X                                                  ; +0x1cc, 0x1800396ec\ncall    sinf                                                           ; +0x1cf, 0x1800396ef\nmulss   xmm0, xmm8                                                     ; +0x1d4, 0x1800396f4\nmovss   [rsp+0F8h+var_C0], xmm0                                        ; +0x1d9, 0x1800396f9\njmp     short loc_180039709                                            ; +0x1df, 0x1800396ff\nmov     [rsp+0F8h+var_C0], 0                                           ; +0x1e1, 0x180039701\nmovaps  xmm1, xmm15                                                    ; +0x1e9, 0x180039709\naddss   xmm6, xmm13                                                    ; +0x1ed, 0x18003970d\nsubss   xmm1, xmm10                                                    ; +0x1f2, 0x180039712\nmulss   xmm1, xmm8                                                     ; +0x1f7, 0x180039717\nmovaps  xmm0, xmm1                                                     ; +0x1fc, 0x18003971c\nmulss   xmm1, [rsp+0F8h+var_D8]                                        ; +0x1ff, 0x18003971f\nmulss   xmm0, xmm12                                                    ; +0x205, 0x180039725\ndivss   xmm1, cs:dword_1800F0180                                       ; +0x20a, 0x18003972a\nsubss   xmm6, xmm0                                                     ; +0x212, 0x180039732\ncomiss  xmm14, xmm1                                                    ; +0x216, 0x180039736\nmovss   [rsp+0F8h+var_BC], xmm6                                        ; +0x21a, 0x18003973a\nmovss   [rsp+0F8h+var_B8], xmm1                                        ; +0x220, 0x180039740\njbe     short loc_180039750                                            ; +0x226, 0x180039746\nmov     [rsp+0F8h+var_B8], 3F000000h                                   ; +0x228, 0x180039748\nmovaps  xmm2, xmm9                                                     ; +0x230, 0x180039750\nlea     rcx, [rsp+0F8h+var_CC]                                         ; +0x234, 0x180039754\nmovaps  xmm1, xmm11                                                    ; +0x239, 0x180039759\ncall    kmVec2Fill                                                     ; +0x23d, 0x18003975d\nmov     rdx, rax; struct cocos2d::CCPoint *                            ; +0x242, 0x180039762\nlea     r8, [rsp+0F8h+var_C0]; struct cocos2d::_ccVertex3F *           ; +0x245, 0x180039765\nmov     rcx, rbx; this                                                 ; +0x24a, 0x18003976a\ncall    ?setVertex@CCGrid3DAction@cocos2d@@QEAAXAEBVCCPoint@2@AEBU_ccVertex3F@2@@Z; cocos2d::CCGrid3DAction::setVertex(cocos2d::CCPoint const &,cocos2d::_ccVertex3F const &) ; +0x24d, 0x18003976d\nmovss   xmm0, dword ptr [rbx+64h]                                      ; +0x252, 0x180039772\ninc     edi                                                            ; +0x257, 0x180039777\nmovd    xmm9, edi                                                      ; +0x259, 0x180039779\ncvtdq2ps xmm9, xmm9                                                    ; +0x25e, 0x18003977e\ncomiss  xmm0, xmm9                                                     ; +0x262, 0x180039782\njnb     loc_180039650                                                  ; +0x266, 0x180039786\nxorps   xmm14, xmm14                                                   ; +0x26c, 0x18003978c\nmovss   xmm0, dword ptr [rbx+60h]                                      ; +0x270, 0x180039790\ninc     esi                                                            ; +0x275, 0x180039795\nmovd    xmm11, esi                                                     ; +0x277, 0x180039797\ncvtdq2ps xmm11, xmm11                                                  ; +0x27c, 0x18003979c\ncomiss  xmm0, xmm11                                                    ; +0x280, 0x1800397a0\njnb     loc_180039630                                                  ; +0x284, 0x1800397a4\nmovaps  xmm15, [rsp+0F8h+var_A8]                                       ; +0x28a, 0x1800397aa\nmovaps  xmm11, [rsp+0F8h+var_68]                                       ; +0x290, 0x1800397b0\nmovaps  xmm10, [rsp+0F8h+var_58]                                       ; +0x299, 0x1800397b9\nmovaps  xmm9, [rsp+0F8h+var_48]                                        ; +0x2a2, 0x1800397c2\nmovaps  xmm8, [rsp+0F8h+var_38]                                        ; +0x2ab, 0x1800397cb\nmovaps  xmm7, [rsp+0F8h+var_28]                                        ; +0x2b4, 0x1800397d4\nmov     rdi, [rsp+0F8h+arg_10]                                         ; +0x2bc, 0x1800397dc\nmov     rcx, [rsp+0F8h+var_B0]                                         ; +0x2c4, 0x1800397e4\nxor     rcx, rsp; StackCookie                                          ; +0x2c9, 0x1800397e9\ncall    __security_check_cookie                                        ; +0x2cc, 0x1800397ec\nlea     r11, [rsp+0F8h+var_8]                                          ; +0x2d1, 0x1800397f1\nmov     rbx, [r11+28h]                                                 ; +0x2d9, 0x1800397f9\nmovaps  xmm6, xmmword ptr [r11-10h]                                    ; +0x2dd, 0x1800397fd\nmovaps  xmm12, xmmword ptr [r11-70h]                                   ; +0x2e2, 0x180039802\nmovaps  xmm13, xmmword ptr [r11-80h]                                   ; +0x2e7, 0x180039807\nmovaps  xmm14, [rsp+0F8h+var_98]                                       ; +0x2ec, 0x18003980c\nmov     rsp, r11                                                       ; +0x2f2, 0x180039812\npop     rsi                                                            ; +0x2f5, 0x180039815\nretn                                                                   ; +0x2f6, 0x180039816", "xrefs": ["<???> @ 0x1800f0118", "<???> @ 0x18013f3dc", "<???> @ 0x18013f3ec", "<???> @ 0x18014cf68", "<???> @ 0x1801bad8c"], "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"}