{"type": "func", "start": 6442532880, "end": 6442533598, "name": "cocos2d::CCDrawNode::drawPreciseCubicBezier", "pseudocode": "// \n// cocos2d::CCDrawNode::drawPreciseCubicBezier from 0x180014010 to 0x1800142de (718 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801b84e8\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:23 +0000\n// \n\nvoid __fastcall cocos2d::CCDrawNode::drawPreciseCubicBezier(\n        cocos2d::CCDrawNode *this,\n        const struct cocos2d::CCPoint *a2,\n        const struct cocos2d::CCPoint *a3,\n        const struct cocos2d::CCPoint *a4,\n        const struct cocos2d::CCPoint *a5,\n        unsigned int a6,\n        const struct cocos2d::_ccColor4F *a7,\n        float a8)\n{\n  float Distance; // xmm6_4\n  float v13; // xmm0_4\n  float *v14; // rsi\n  float v15; // xmm9_4\n  float v16; // xmm0_4\n  float v17; // xmm6_4\n  float v18; // xmm9_4\n  float v19; // xmm7_4\n  float v20; // xmm8_4\n  float v21; // xmm1_4\n  float v22; // xmm10_4\n  float v23; // xmm6_4\n  float v24; // xmm0_4\n  float v25; // xmm7_4\n  float v26; // xmm9_4\n  float v27; // xmm6_4\n  float v28; // xmm0_4\n  float v29; // xmm7_4\n  float v30; // xmm6_4\n  float *v31; // rbx\n  float *v32; // rax\n  float v33; // [rsp+40h] [rbp-98h]\n  float v34; // [rsp+44h] [rbp-94h]\n  float v35; // [rsp+E8h] [rbp+10h]\n  float X; // [rsp+F0h] [rbp+18h] BYREF\n  float v37; // [rsp+F8h] [rbp+20h] BYREF\n\n  Distance = cocos2d::CCPoint::getDistance(a2, a3);\n  v13 = cocos2d::CCPoint::getDistance(a3, a4);\n  v14 = (float *)a5;\n  v15 = v13 + Distance;\n  v16 = cocos2d::CCPoint::getDistance(a5, a4) + (float)(v13 + Distance);\n  v17 = Distance / v16;\n  v18 = v15 / v16;\n  X = v18;\n  v19 = 1.0 - v17;\n  v20 = v18 * (float)(1.0 - v18);\n  v21 = v17 * (float)(1.0 - v17);\n  v37 = 1.0 - v18;\n  *(float *)&a5 = (float)(v21 * v17) * 3.0;\n  v22 = (float)(v20 * (float)(1.0 - v18)) * 3.0;\n  v35 = (float)(v21 * (float)(1.0 - v17)) * 3.0;\n  v23 = powf(v17, 3.0);\n  v24 = powf(v19, 3.0);\n  v25 = (float)(*(float *)a3 - (float)(v24 * *(float *)a2)) - (float)(v23 * *v14);\n  v34 = v25;\n  v33 = (float)(*((float *)a3 + 1) - (float)(v24 * *((float *)a2 + 1))) - (float)(v14[1] * v23);\n  v26 = *(float *)&a5 - (float)((float)((float)((float)(v20 * v18) * 3.0) * v35) / v22);\n  v27 = powf(X, 3.0);\n  v28 = powf(v37, 3.0);\n  v29 = (float)(v25\n              - (float)((float)((float)(*(float *)a4 - (float)(v28 * *(float *)a2)) - (float)(v27 * *v14))\n                      * (float)(v35 / v22)))\n      / v26;\n  v30 = (float)(v33\n              - (float)((float)((float)(*((float *)a4 + 1) - (float)(v28 * *((float *)a2 + 1))) - (float)(v27 * v14[1]))\n                      * (float)(v35 / v22)))\n      / v26;\n  v31 = kmVec2Fill(&X, v29, v30);\n  v32 = kmVec2Fill(\n          &v37,\n          (float)(v34 - (float)(v29 * *(float *)&a5)) / v35,\n          (float)(v33 - (float)(v30 * *(float *)&a5)) / v35);\n  cocos2d::CCDrawNode::drawCubicBezier(\n    this,\n    a2,\n    (const struct cocos2d::CCPoint *)v32,\n    (const struct cocos2d::CCPoint *)v31,\n    (const struct cocos2d::CCPoint *)v14,\n    a6,\n    a7,\n    a8);\n}", "assembly": "; \n; cocos2d::CCDrawNode::drawPreciseCubicBezier from 0x180014010 to 0x1800142de (718 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801b84e8\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:23 +0000\n; \nmov     rax, rsp                                                       ; +0x0, 0x180014010\npush    rbx                                                            ; +0x3, 0x180014013\npush    rbp                                                            ; +0x4, 0x180014014\npush    rsi                                                            ; +0x5, 0x180014015\npush    rdi                                                            ; +0x6, 0x180014016\npush    r14                                                            ; +0x7, 0x180014017\nsub     rsp, 0B0h                                                      ; +0x9, 0x180014019\nmovaps  xmmword ptr [rax-38h], xmm6                                    ; +0x10, 0x180014020\nmov     rbp, rdx                                                       ; +0x14, 0x180014024\nmovaps  xmmword ptr [rax-48h], xmm7                                    ; +0x17, 0x180014027\nmov     r14, rcx                                                       ; +0x1b, 0x18001402b\nmovaps  xmmword ptr [rax-58h], xmm8                                    ; +0x1e, 0x18001402e\nmov     rdx, r8; struct cocos2d::CCPoint *                             ; +0x23, 0x180014033\nmovaps  xmmword ptr [rax-68h], xmm9                                    ; +0x26, 0x180014036\nmov     rcx, rbp; this                                                 ; +0x2b, 0x18001403b\nmovaps  xmmword ptr [rax-78h], xmm10                                   ; +0x2e, 0x18001403e\nmov     rdi, r9                                                        ; +0x33, 0x180014043\nmovaps  [rsp+0D8h+var_88], xmm15                                       ; +0x36, 0x180014046\nmov     rbx, r8                                                        ; +0x3c, 0x18001404c\ncall    ?getDistance@CCPoint@cocos2d@@QEBAMAEBV12@@Z; cocos2d::CCPoint::getDistance(cocos2d::CCPoint const &) ; +0x3f, 0x18001404f\nmov     rdx, rdi; struct cocos2d::CCPoint *                            ; +0x44, 0x180014054\nmov     rcx, rbx; this                                                 ; +0x47, 0x180014057\nmovaps  xmm6, xmm0                                                     ; +0x4a, 0x18001405a\ncall    ?getDistance@CCPoint@cocos2d@@QEBAMAEBV12@@Z; cocos2d::CCPoint::getDistance(cocos2d::CCPoint const &) ; +0x4d, 0x18001405d\nmov     rsi, [rsp+0D8h+arg_20]                                         ; +0x52, 0x180014062\nmovaps  xmm9, xmm0                                                     ; +0x5a, 0x18001406a\nmov     rcx, rsi; this                                                 ; +0x5e, 0x18001406e\naddss   xmm9, xmm6                                                     ; +0x61, 0x180014071\nmov     rdx, rdi; struct cocos2d::CCPoint *                            ; +0x66, 0x180014076\ncall    ?getDistance@CCPoint@cocos2d@@QEBAMAEBV12@@Z; cocos2d::CCPoint::getDistance(cocos2d::CCPoint const &) ; +0x69, 0x180014079\nmovss   xmm15, cs:Y                                                    ; +0x6e, 0x18001407e\naddss   xmm0, xmm9                                                     ; +0x77, 0x180014087\ndivss   xmm6, xmm0                                                     ; +0x7c, 0x18001408c\ndivss   xmm9, xmm0                                                     ; +0x80, 0x180014090\nmovss   xmm0, cs:flt_1800EC208                                         ; +0x85, 0x180014095\nmovaps  xmm1, xmm6                                                     ; +0x8d, 0x18001409d\nmovaps  xmm7, xmm0                                                     ; +0x90, 0x1800140a0\nmovss   [rsp+0D8h+X], xmm9                                             ; +0x93, 0x1800140a3\nsubss   xmm0, xmm9                                                     ; +0x9d, 0x1800140ad\nmovaps  xmm8, xmm9                                                     ; +0xa2, 0x1800140b2\nsubss   xmm7, xmm6                                                     ; +0xa6, 0x1800140b6\nmulss   xmm8, xmm0                                                     ; +0xaa, 0x1800140ba\nmulss   xmm1, xmm7                                                     ; +0xaf, 0x1800140bf\nmovaps  xmm10, xmm8                                                    ; +0xb3, 0x1800140c3\nmovss   [rsp+0D8h+arg_18], xmm0                                        ; +0xb7, 0x1800140c7\nmulss   xmm10, xmm0                                                    ; +0xc0, 0x1800140d0\nmovaps  xmm0, xmm6; X                                                  ; +0xc5, 0x1800140d5\nmovaps  xmm2, xmm1                                                     ; +0xc8, 0x1800140d8\nmulss   xmm1, xmm6                                                     ; +0xcb, 0x1800140db\nmulss   xmm2, xmm7                                                     ; +0xcf, 0x1800140df\nmulss   xmm1, xmm15                                                    ; +0xd3, 0x1800140e3\nmulss   xmm2, xmm15                                                    ; +0xd8, 0x1800140e8\nmovss   dword ptr [rsp+0D8h+arg_20], xmm1                              ; +0xdd, 0x1800140ed\nmovaps  xmm1, xmm15; Y                                                 ; +0xe6, 0x1800140f6\nmulss   xmm10, xmm15                                                   ; +0xea, 0x1800140fa\nmovss   [rsp+0D8h+arg_8], xmm2                                         ; +0xef, 0x1800140ff\ncall    powf                                                           ; +0xf8, 0x180014108\nmovaps  xmm6, xmm0                                                     ; +0xfd, 0x18001410d\nmovaps  xmm1, xmm15; Y                                                 ; +0x100, 0x180014110\nmovaps  xmm0, xmm7; X                                                  ; +0x104, 0x180014114\ncall    powf                                                           ; +0x107, 0x180014117\nmovss   xmm7, dword ptr [rbx]                                          ; +0x10c, 0x18001411c\nmovaps  xmm1, xmm0                                                     ; +0x110, 0x180014120\nmulss   xmm1, dword ptr [rbp+0]                                        ; +0x113, 0x180014123\nmovaps  xmm2, xmm6                                                     ; +0x118, 0x180014128\nmulss   xmm0, dword ptr [rbp+4]                                        ; +0x11b, 0x18001412b\nmulss   xmm2, dword ptr [rsi]                                          ; +0x120, 0x180014130\nsubss   xmm7, xmm1                                                     ; +0x124, 0x180014134\nmovss   xmm1, dword ptr [rbx+4]                                        ; +0x128, 0x180014138\nmulss   xmm8, xmm9                                                     ; +0x12d, 0x18001413d\nsubss   xmm1, xmm0                                                     ; +0x132, 0x180014142\nmovss   xmm0, dword ptr [rsi+4]                                        ; +0x136, 0x180014146\nsubss   xmm7, xmm2                                                     ; +0x13b, 0x18001414b\nmovss   xmm9, dword ptr [rsp+0D8h+arg_20]                              ; +0x13f, 0x18001414f\nmulss   xmm8, xmm15                                                    ; +0x149, 0x180014159\nmulss   xmm0, xmm6                                                     ; +0x14e, 0x18001415e\nmovss   [rsp+0D8h+var_94], xmm7                                        ; +0x152, 0x180014162\nsubss   xmm1, xmm0                                                     ; +0x158, 0x180014168\nmovss   xmm0, [rsp+0D8h+arg_8]                                         ; +0x15c, 0x18001416c\nmulss   xmm8, xmm0                                                     ; +0x165, 0x180014175\ndivss   xmm8, xmm10                                                    ; +0x16a, 0x18001417a\nmovss   [rsp+0D8h+var_98], xmm1                                        ; +0x16f, 0x18001417f\nmovaps  xmm1, xmm15; Y                                                 ; +0x175, 0x180014185\nsubss   xmm9, xmm8                                                     ; +0x179, 0x180014189\nmovaps  xmm8, xmm0                                                     ; +0x17e, 0x18001418e\nmovss   xmm0, [rsp+0D8h+X]; X                                          ; +0x182, 0x180014192\ndivss   xmm8, xmm10                                                    ; +0x18b, 0x18001419b\ncall    powf                                                           ; +0x190, 0x1800141a0\nmovaps  xmm6, xmm0                                                     ; +0x195, 0x1800141a5\nmovaps  xmm1, xmm15; Y                                                 ; +0x198, 0x1800141a8\nmovss   xmm0, [rsp+0D8h+arg_18]; X                                     ; +0x19c, 0x1800141ac\ncall    powf                                                           ; +0x1a5, 0x1800141b5\nmovss   xmm3, dword ptr [rdi]                                          ; +0x1aa, 0x1800141ba\nlea     rcx, [rsp+0D8h+X]                                              ; +0x1ae, 0x1800141be\nmovaps  xmm1, xmm0                                                     ; +0x1b6, 0x1800141c6\nmovaps  xmm2, xmm6                                                     ; +0x1b9, 0x1800141c9\nmulss   xmm6, dword ptr [rsi+4]                                        ; +0x1bc, 0x1800141cc\nmovaps  xmm4, xmm0                                                     ; +0x1c1, 0x1800141d1\nmulss   xmm1, dword ptr [rbp+0]                                        ; +0x1c4, 0x1800141d4\nmulss   xmm2, dword ptr [rsi]                                          ; +0x1c9, 0x1800141d9\nmulss   xmm4, dword ptr [rbp+4]                                        ; +0x1cd, 0x1800141dd\nsubss   xmm3, xmm1                                                     ; +0x1d2, 0x1800141e2\nmovss   xmm0, dword ptr [rdi+4]                                        ; +0x1d6, 0x1800141e6\nsubss   xmm0, xmm4                                                     ; +0x1db, 0x1800141eb\nsubss   xmm3, xmm2                                                     ; +0x1df, 0x1800141ef\nsubss   xmm0, xmm6                                                     ; +0x1e3, 0x1800141f3\nmulss   xmm3, xmm8                                                     ; +0x1e7, 0x1800141f7\nmulss   xmm0, xmm8                                                     ; +0x1ec, 0x1800141fc\nsubss   xmm7, xmm3                                                     ; +0x1f1, 0x180014201\nmovss   xmm8, [rsp+0D8h+var_98]                                        ; +0x1f5, 0x180014205\nmovaps  xmm6, xmm8                                                     ; +0x1fc, 0x18001420c\nsubss   xmm6, xmm0                                                     ; +0x200, 0x180014210\ndivss   xmm7, xmm9                                                     ; +0x204, 0x180014214\ndivss   xmm6, xmm9                                                     ; +0x209, 0x180014219\nmovaps  xmm1, xmm7                                                     ; +0x20e, 0x18001421e\nmovaps  xmm2, xmm6                                                     ; +0x211, 0x180014221\ncall    kmVec2Fill                                                     ; +0x214, 0x180014224\nmulss   xmm6, dword ptr [rsp+0D8h+arg_20]                              ; +0x219, 0x180014229\nlea     rcx, [rsp+0D8h+arg_18]                                         ; +0x222, 0x180014232\nmov     rbx, rax                                                       ; +0x22a, 0x18001423a\nmulss   xmm7, dword ptr [rsp+0D8h+arg_20]                              ; +0x22d, 0x18001423d\nmovss   xmm1, [rsp+0D8h+var_94]                                        ; +0x236, 0x180014246\nsubss   xmm8, xmm6                                                     ; +0x23c, 0x18001424c\nsubss   xmm1, xmm7                                                     ; +0x241, 0x180014251\ndivss   xmm8, [rsp+0D8h+arg_8]                                         ; +0x245, 0x180014255\ndivss   xmm1, [rsp+0D8h+arg_8]                                         ; +0x24f, 0x18001425f\nmovaps  xmm2, xmm8                                                     ; +0x258, 0x180014268\ncall    kmVec2Fill                                                     ; +0x25c, 0x18001426c\nmovss   xmm0, [rsp+0D8h+arg_38]                                        ; +0x261, 0x180014271\nmov     r8, rax; struct cocos2d::CCPoint *                             ; +0x26a, 0x18001427a\nmov     rax, [rsp+0D8h+arg_30]                                         ; +0x26d, 0x18001427d\nmov     r9, rbx; struct cocos2d::CCPoint *                             ; +0x275, 0x180014285\nmovss   [rsp+0D8h+var_A0], xmm0; float                                 ; +0x278, 0x180014288\nmov     rdx, rbp; struct cocos2d::CCPoint *                            ; +0x27e, 0x18001428e\nmov     [rsp+0D8h+var_A8], rax; struct cocos2d::_ccColor4F *           ; +0x281, 0x180014291\nmov     rcx, r14; this                                                 ; +0x286, 0x180014296\nmov     eax, [rsp+0D8h+arg_28]                                         ; +0x289, 0x180014299\nmov     [rsp+0D8h+var_B0], eax; unsigned int                           ; +0x290, 0x1800142a0\nmov     [rsp+0D8h+var_B8], rsi; struct cocos2d::CCPoint *              ; +0x294, 0x1800142a4\ncall    ?drawCubicBezier@CCDrawNode@cocos2d@@QEAAXAEBVCCPoint@2@000IAEBU_ccColor4F@2@M@Z; cocos2d::CCDrawNode::drawCubicBezier(cocos2d::CCPoint const &,cocos2d::CCPoint const &,cocos2d::CCPoint const &,cocos2d::CCPoint const &,uint,cocos2d::_ccColor4F const &,float) ; +0x299, 0x1800142a9\nlea     r11, [rsp+0D8h+var_28]                                         ; +0x29e, 0x1800142ae\nmovaps  xmm6, xmmword ptr [r11-10h]                                    ; +0x2a6, 0x1800142b6\nmovaps  xmm7, xmmword ptr [r11-20h]                                    ; +0x2ab, 0x1800142bb\nmovaps  xmm8, xmmword ptr [r11-30h]                                    ; +0x2b0, 0x1800142c0\nmovaps  xmm9, xmmword ptr [r11-40h]                                    ; +0x2b5, 0x1800142c5\nmovaps  xmm10, xmmword ptr [r11-50h]                                   ; +0x2ba, 0x1800142ca\nmovaps  xmm15, xmmword ptr [r11-60h]                                   ; +0x2bf, 0x1800142cf\nmov     rsp, r11                                                       ; +0x2c4, 0x1800142d4\npop     r14                                                            ; +0x2c7, 0x1800142d7\npop     rdi                                                            ; +0x2c9, 0x1800142d9\npop     rsi                                                            ; +0x2ca, 0x1800142da\npop     rbp                                                            ; +0x2cb, 0x1800142db\npop     rbx                                                            ; +0x2cc, 0x1800142dc\nretn                                                                   ; +0x2cd, 0x1800142dd", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801b84e8"], "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"}