; ; cocos2d::CCDrawNode::drawCubicBezierDashed from 0x180012960 to 0x180012e55 (1269 bytes) ; ; 3 xrefs: ; > cocos2d::CCDrawNode::drawArchLikeHalfCircle @ 0x18001246e ; > @ 0x18014cf68 ; > @ 0x1801b8470 ; ; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! ; ; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA ; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings ; Generated at Fri, 27 Nov 2026 11:21:22 +0000 ; mov rax, rsp ; +0x0, 0x180012960 mov [rax+18h], rbx ; +0x3, 0x180012963 mov [rax+10h], rdx ; +0x7, 0x180012967 mov [rax+8], rcx ; +0xb, 0x18001296b push rbp ; +0xf, 0x18001296f push rsi ; +0x10, 0x180012970 push rdi ; +0x11, 0x180012971 push r12 ; +0x12, 0x180012972 push r13 ; +0x14, 0x180012974 push r14 ; +0x16, 0x180012976 push r15 ; +0x18, 0x180012978 sub rsp, 0A0h ; +0x1a, 0x18001297a movaps xmmword ptr [rax-48h], xmm6 ; +0x21, 0x180012981 movaps xmmword ptr [rax-58h], xmm7 ; +0x25, 0x180012985 movaps xmmword ptr [rax-68h], xmm8 ; +0x29, 0x180012989 movaps xmmword ptr [rax-78h], xmm9 ; +0x2e, 0x18001298e movaps [rsp+0D8h+var_88], xmm10 ; +0x33, 0x180012993 mov r12, r9 ; +0x39, 0x180012999 mov r13, r8 ; +0x3c, 0x18001299c mov r14, rdx ; +0x3f, 0x18001299f mov ebp, [rsp+0D8h+arg_28] ; +0x42, 0x1800129a2 mov r15, [rsp+0D8h+arg_20] ; +0x49, 0x1800129a9 test ebp, ebp ; +0x51, 0x1800129b1 jz loc_180012E21 ; +0x53, 0x1800129b3 lea edi, [rbp+1] ; +0x59, 0x1800129b9 mov eax, 8 ; +0x5c, 0x1800129bc mul rdi ; +0x61, 0x1800129c1 mov rcx, 0FFFFFFFFFFFFFFFFh ; +0x64, 0x1800129c4 cmovb rax, rcx ; +0x6b, 0x1800129cb lea rdx, unk_18012B640 ; +0x6f, 0x1800129cf mov rcx, rax ; +0x76, 0x1800129d6 call sub_1800E4C74 ; +0x79, 0x1800129d9 mov rsi, rax ; +0x7e, 0x1800129de mov [rsp+0D8h+var_98], rax ; +0x81, 0x1800129e1 xor ebx, ebx ; +0x86, 0x1800129e6 test rax, rax ; +0x88, 0x1800129e8 jz short loc_180012A11 ; +0x8b, 0x1800129eb mov r14, rax ; +0x8d, 0x1800129ed test rdi, rdi ; +0x90, 0x1800129f0 jz short loc_180012A07 ; +0x93, 0x1800129f3 mov rcx, r14; this ; +0x95, 0x1800129f5 call ??0CCSize@cocos2d@@QEAA@XZ; cocos2d::CCSize::CCSize(void) ; +0x98, 0x1800129f8 add r14, 8 ; +0x9d, 0x1800129fd sub rdi, 1 ; +0xa1, 0x180012a01 jnz short loc_1800129F5 ; +0xa5, 0x180012a05 mov r14, [rsp+0D8h+arg_8] ; +0xa7, 0x180012a07 jmp short loc_180012A14 ; +0xaf, 0x180012a0f mov rsi, rbx ; +0xb1, 0x180012a11 test rsi, rsi ; +0xb4, 0x180012a14 jz loc_180012E21 ; +0xb7, 0x180012a17 xorps xmm7, xmm7 ; +0xbd, 0x180012a1d xorps xmm0, xmm0 ; +0xc0, 0x180012a20 cvtsi2ss xmm0, rbp ; +0xc3, 0x180012a23 movss xmm10, cs:flt_1800EC208 ; +0xc8, 0x180012a28 movaps xmm9, xmm10 ; +0xd1, 0x180012a31 divss xmm9, xmm0 ; +0xd5, 0x180012a35 mov edx, ebx ; +0xda, 0x180012a3a movss xmm8, cs:Y ; +0xdc, 0x180012a3c cmp ebp, 4 ; +0xe5, 0x180012a45 jb loc_180012CE3 ; +0xe8, 0x180012a48 lea rcx, [rsi+8] ; +0xee, 0x180012a4e lea eax, [rbp-4] ; +0xf2, 0x180012a52 shr eax, 2 ; +0xf5, 0x180012a55 inc eax ; +0xf8, 0x180012a58 mov r8d, eax ; +0xfa, 0x180012a5a lea edx, ds:0[rax*4] ; +0xfd, 0x180012a5d lea rax, ds:0[rax*4] ; +0x104, 0x180012a64 nop dword ptr [rax+00h] ; +0x10c, 0x180012a6c movaps xmm5, xmm10 ; +0x110, 0x180012a70 subss xmm5, xmm7 ; +0x114, 0x180012a74 movaps xmm6, xmm5 ; +0x118, 0x180012a78 mulss xmm6, xmm5 ; +0x11b, 0x180012a7b movaps xmm4, xmm7 ; +0x11f, 0x180012a7f mulss xmm4, xmm7 ; +0x122, 0x180012a82 movaps xmm3, xmm6 ; +0x126, 0x180012a86 mulss xmm3, xmm8 ; +0x129, 0x180012a89 mulss xmm3, xmm7 ; +0x12e, 0x180012a8e mulss xmm6, xmm5 ; +0x132, 0x180012a92 mulss xmm5, xmm8 ; +0x136, 0x180012a96 mulss xmm5, xmm4 ; +0x13b, 0x180012a9b mulss xmm4, xmm7 ; +0x13f, 0x180012a9f movaps xmm2, xmm3 ; +0x143, 0x180012aa3 mulss xmm2, dword ptr [r13+0] ; +0x146, 0x180012aa6 movaps xmm0, xmm6 ; +0x14c, 0x180012aac mulss xmm0, dword ptr [r14] ; +0x14f, 0x180012aaf addss xmm2, xmm0 ; +0x154, 0x180012ab4 movaps xmm1, xmm5 ; +0x158, 0x180012ab8 mulss xmm1, dword ptr [r12] ; +0x15b, 0x180012abb addss xmm2, xmm1 ; +0x161, 0x180012ac1 movaps xmm0, xmm4 ; +0x165, 0x180012ac5 mulss xmm0, dword ptr [r15] ; +0x168, 0x180012ac8 addss xmm2, xmm0 ; +0x16d, 0x180012acd movss dword ptr [rcx-8], xmm2 ; +0x171, 0x180012ad1 mulss xmm6, dword ptr [r14+4] ; +0x176, 0x180012ad6 mulss xmm3, dword ptr [r13+4] ; +0x17c, 0x180012adc addss xmm6, xmm3 ; +0x182, 0x180012ae2 mulss xmm5, dword ptr [r12+4] ; +0x186, 0x180012ae6 addss xmm6, xmm5 ; +0x18d, 0x180012aed mulss xmm4, dword ptr [r15+4] ; +0x191, 0x180012af1 addss xmm6, xmm4 ; +0x197, 0x180012af7 movss dword ptr [rcx-4], xmm6 ; +0x19b, 0x180012afb addss xmm7, xmm9 ; +0x1a0, 0x180012b00 movaps xmm5, xmm10 ; +0x1a5, 0x180012b05 subss xmm5, xmm7 ; +0x1a9, 0x180012b09 movaps xmm6, xmm5 ; +0x1ad, 0x180012b0d mulss xmm6, xmm5 ; +0x1b0, 0x180012b10 movaps xmm0, xmm7 ; +0x1b4, 0x180012b14 mulss xmm0, xmm7 ; +0x1b7, 0x180012b17 movaps xmm4, xmm6 ; +0x1bb, 0x180012b1b mulss xmm4, xmm8 ; +0x1be, 0x180012b1e mulss xmm4, xmm7 ; +0x1c3, 0x180012b23 mulss xmm6, xmm5 ; +0x1c7, 0x180012b27 mulss xmm5, xmm8 ; +0x1cb, 0x180012b2b mulss xmm5, xmm0 ; +0x1d0, 0x180012b30 movaps xmm3, xmm7 ; +0x1d4, 0x180012b34 mulss xmm3, xmm0 ; +0x1d7, 0x180012b37 movaps xmm2, xmm4 ; +0x1db, 0x180012b3b mulss xmm2, dword ptr [r13+0] ; +0x1de, 0x180012b3e movaps xmm0, xmm6 ; +0x1e4, 0x180012b44 mulss xmm0, dword ptr [r14] ; +0x1e7, 0x180012b47 addss xmm2, xmm0 ; +0x1ec, 0x180012b4c movaps xmm1, xmm5 ; +0x1f0, 0x180012b50 mulss xmm1, dword ptr [r12] ; +0x1f3, 0x180012b53 addss xmm2, xmm1 ; +0x1f9, 0x180012b59 movaps xmm0, xmm3 ; +0x1fd, 0x180012b5d mulss xmm0, dword ptr [r15] ; +0x200, 0x180012b60 addss xmm2, xmm0 ; +0x205, 0x180012b65 movss dword ptr [rcx], xmm2 ; +0x209, 0x180012b69 mulss xmm6, dword ptr [r14+4] ; +0x20d, 0x180012b6d mulss xmm4, dword ptr [r13+4] ; +0x213, 0x180012b73 addss xmm6, xmm4 ; +0x219, 0x180012b79 mulss xmm5, dword ptr [r12+4] ; +0x21d, 0x180012b7d addss xmm6, xmm5 ; +0x224, 0x180012b84 mulss xmm3, dword ptr [r15+4] ; +0x228, 0x180012b88 addss xmm6, xmm3 ; +0x22e, 0x180012b8e movss dword ptr [rcx+4], xmm6 ; +0x232, 0x180012b92 addss xmm7, xmm9 ; +0x237, 0x180012b97 movaps xmm5, xmm10 ; +0x23c, 0x180012b9c subss xmm5, xmm7 ; +0x240, 0x180012ba0 movaps xmm6, xmm5 ; +0x244, 0x180012ba4 mulss xmm6, xmm5 ; +0x247, 0x180012ba7 movaps xmm0, xmm7 ; +0x24b, 0x180012bab mulss xmm0, xmm7 ; +0x24e, 0x180012bae movaps xmm4, xmm6 ; +0x252, 0x180012bb2 mulss xmm4, xmm8 ; +0x255, 0x180012bb5 mulss xmm4, xmm7 ; +0x25a, 0x180012bba mulss xmm6, xmm5 ; +0x25e, 0x180012bbe mulss xmm5, xmm8 ; +0x262, 0x180012bc2 mulss xmm5, xmm0 ; +0x267, 0x180012bc7 movaps xmm3, xmm7 ; +0x26b, 0x180012bcb mulss xmm3, xmm0 ; +0x26e, 0x180012bce movaps xmm2, xmm4 ; +0x272, 0x180012bd2 mulss xmm2, dword ptr [r13+0] ; +0x275, 0x180012bd5 movaps xmm0, xmm6 ; +0x27b, 0x180012bdb mulss xmm0, dword ptr [r14] ; +0x27e, 0x180012bde addss xmm2, xmm0 ; +0x283, 0x180012be3 movaps xmm1, xmm5 ; +0x287, 0x180012be7 mulss xmm1, dword ptr [r12] ; +0x28a, 0x180012bea addss xmm2, xmm1 ; +0x290, 0x180012bf0 movaps xmm0, xmm3 ; +0x294, 0x180012bf4 mulss xmm0, dword ptr [r15] ; +0x297, 0x180012bf7 addss xmm2, xmm0 ; +0x29c, 0x180012bfc movss dword ptr [rcx+8], xmm2 ; +0x2a0, 0x180012c00 mulss xmm6, dword ptr [r14+4] ; +0x2a5, 0x180012c05 mulss xmm4, dword ptr [r13+4] ; +0x2ab, 0x180012c0b addss xmm6, xmm4 ; +0x2b1, 0x180012c11 mulss xmm5, dword ptr [r12+4] ; +0x2b5, 0x180012c15 addss xmm6, xmm5 ; +0x2bc, 0x180012c1c mulss xmm3, dword ptr [r15+4] ; +0x2c0, 0x180012c20 addss xmm6, xmm3 ; +0x2c6, 0x180012c26 movss dword ptr [rcx+0Ch], xmm6 ; +0x2ca, 0x180012c2a addss xmm7, xmm9 ; +0x2cf, 0x180012c2f movaps xmm5, xmm10 ; +0x2d4, 0x180012c34 subss xmm5, xmm7 ; +0x2d8, 0x180012c38 movaps xmm6, xmm5 ; +0x2dc, 0x180012c3c mulss xmm6, xmm5 ; +0x2df, 0x180012c3f movaps xmm0, xmm7 ; +0x2e3, 0x180012c43 mulss xmm0, xmm7 ; +0x2e6, 0x180012c46 movaps xmm4, xmm6 ; +0x2ea, 0x180012c4a mulss xmm4, xmm8 ; +0x2ed, 0x180012c4d mulss xmm4, xmm7 ; +0x2f2, 0x180012c52 mulss xmm6, xmm5 ; +0x2f6, 0x180012c56 mulss xmm5, xmm8 ; +0x2fa, 0x180012c5a mulss xmm5, xmm0 ; +0x2ff, 0x180012c5f movaps xmm3, xmm7 ; +0x303, 0x180012c63 mulss xmm3, xmm0 ; +0x306, 0x180012c66 movaps xmm2, xmm4 ; +0x30a, 0x180012c6a mulss xmm2, dword ptr [r13+0] ; +0x30d, 0x180012c6d movaps xmm0, xmm6 ; +0x313, 0x180012c73 mulss xmm0, dword ptr [r14] ; +0x316, 0x180012c76 addss xmm2, xmm0 ; +0x31b, 0x180012c7b movaps xmm1, xmm5 ; +0x31f, 0x180012c7f mulss xmm1, dword ptr [r12] ; +0x322, 0x180012c82 addss xmm2, xmm1 ; +0x328, 0x180012c88 movaps xmm0, xmm3 ; +0x32c, 0x180012c8c mulss xmm0, dword ptr [r15] ; +0x32f, 0x180012c8f addss xmm2, xmm0 ; +0x334, 0x180012c94 movss dword ptr [rcx+10h], xmm2 ; +0x338, 0x180012c98 mulss xmm6, dword ptr [r14+4] ; +0x33d, 0x180012c9d mulss xmm4, dword ptr [r13+4] ; +0x343, 0x180012ca3 addss xmm6, xmm4 ; +0x349, 0x180012ca9 mulss xmm5, dword ptr [r12+4] ; +0x34d, 0x180012cad addss xmm6, xmm5 ; +0x354, 0x180012cb4 mulss xmm3, dword ptr [r15+4] ; +0x358, 0x180012cb8 addss xmm6, xmm3 ; +0x35e, 0x180012cbe movss dword ptr [rcx+14h], xmm6 ; +0x362, 0x180012cc2 addss xmm7, xmm9 ; +0x367, 0x180012cc7 add rcx, 20h ; ' ' ; +0x36c, 0x180012ccc sub r8, 1 ; +0x370, 0x180012cd0 jnz loc_180012A70 ; +0x374, 0x180012cd4 cmp edx, ebp ; +0x37a, 0x180012cda jb short loc_180012CEE ; +0x37c, 0x180012cdc jmp loc_180012D9A ; +0x37e, 0x180012cde test ebp, ebp ; +0x383, 0x180012ce3 jz loc_180012D9A ; +0x385, 0x180012ce5 mov rax, rbx ; +0x38b, 0x180012ceb lea rcx, [rsi+rax*8] ; +0x38e, 0x180012cee mov eax, ebp ; +0x392, 0x180012cf2 sub eax, edx ; +0x394, 0x180012cf4 mov edx, eax ; +0x396, 0x180012cf6 movaps xmm6, xmm10 ; +0x398, 0x180012cf8 subss xmm6, xmm7 ; +0x39c, 0x180012cfc movaps xmm3, xmm6 ; +0x3a0, 0x180012d00 mulss xmm3, xmm6 ; +0x3a3, 0x180012d03 movaps xmm5, xmm7 ; +0x3a7, 0x180012d07 mulss xmm5, xmm7 ; +0x3aa, 0x180012d0a movaps xmm4, xmm3 ; +0x3ae, 0x180012d0e mulss xmm4, xmm8 ; +0x3b1, 0x180012d11 mulss xmm4, xmm7 ; +0x3b6, 0x180012d16 mulss xmm3, xmm6 ; +0x3ba, 0x180012d1a mulss xmm6, xmm8 ; +0x3be, 0x180012d1e mulss xmm6, xmm5 ; +0x3c3, 0x180012d23 mulss xmm5, xmm7 ; +0x3c7, 0x180012d27 movaps xmm2, xmm4 ; +0x3cb, 0x180012d2b mulss xmm2, dword ptr [r13+0] ; +0x3ce, 0x180012d2e movaps xmm0, xmm3 ; +0x3d4, 0x180012d34 mulss xmm0, dword ptr [r14] ; +0x3d7, 0x180012d37 addss xmm2, xmm0 ; +0x3dc, 0x180012d3c movaps xmm1, xmm6 ; +0x3e0, 0x180012d40 mulss xmm1, dword ptr [r12] ; +0x3e3, 0x180012d43 addss xmm2, xmm1 ; +0x3e9, 0x180012d49 movaps xmm0, xmm5 ; +0x3ed, 0x180012d4d mulss xmm0, dword ptr [r15] ; +0x3f0, 0x180012d50 addss xmm2, xmm0 ; +0x3f5, 0x180012d55 movss dword ptr [rcx], xmm2 ; +0x3f9, 0x180012d59 mulss xmm4, dword ptr [r13+4] ; +0x3fd, 0x180012d5d mulss xmm3, dword ptr [r14+4] ; +0x403, 0x180012d63 addss xmm4, xmm3 ; +0x409, 0x180012d69 mulss xmm6, dword ptr [r12+4] ; +0x40d, 0x180012d6d addss xmm4, xmm6 ; +0x414, 0x180012d74 mulss xmm5, dword ptr [r15+4] ; +0x418, 0x180012d78 addss xmm4, xmm5 ; +0x41e, 0x180012d7e movss dword ptr [rcx+4], xmm4 ; +0x422, 0x180012d82 addss xmm7, xmm9 ; +0x427, 0x180012d87 add rcx, 8 ; +0x42c, 0x180012d8c sub rdx, 1 ; +0x430, 0x180012d90 jnz loc_180012CF8 ; +0x434, 0x180012d94 lea rcx, [rsi+rbp*8] ; +0x43a, 0x180012d9a mov rdx, r15 ; +0x43e, 0x180012d9e call ??4CCSize@cocos2d@@QEAAAEAV01@AEBVCCPoint@1@@Z; cocos2d::CCSize::operator=(cocos2d::CCPoint const &) ; +0x441, 0x180012da1 mov r15d, [rsp+0D8h+arg_40] ; +0x446, 0x180012da6 mov r14d, [rsp+0D8h+arg_48] ; +0x44e, 0x180012dae mov eax, 1 ; +0x456, 0x180012db6 add r14d, r15d ; +0x45b, 0x180012dbb cmovz r14d, eax ; +0x45e, 0x180012dbe test ebp, ebp ; +0x462, 0x180012dc2 jz short loc_180012E19 ; +0x464, 0x180012dc4 movss xmm6, [rsp+0D8h+arg_38] ; +0x466, 0x180012dc6 mov r12, [rsp+0D8h+arg_30] ; +0x46f, 0x180012dcf mov r13, [rsp+0D8h+arg_0] ; +0x477, 0x180012dd7 nop ; +0x47f, 0x180012ddf lea edi, [rbx+1] ; +0x480, 0x180012de0 xor edx, edx ; +0x483, 0x180012de3 mov eax, ebx ; +0x485, 0x180012de5 div r14d ; +0x487, 0x180012de7 cmp edx, r15d ; +0x48a, 0x180012dea jnb short loc_180012E13 ; +0x48d, 0x180012ded lea r8, [rsi+rdi*8]; struct cocos2d::CCPoint * ; +0x48f, 0x180012def mov eax, ebx ; +0x493, 0x180012df3 lea rdx, [rsi+rax*8]; struct cocos2d::CCPoint * ; +0x495, 0x180012df5 mov [rsp+0D8h+var_A8], 1; bool ; +0x499, 0x180012df9 mov [rsp+0D8h+var_B0], 1; bool ; +0x49e, 0x180012dfe mov [rsp+0D8h+var_B8], r12; struct cocos2d::_ccColor4F * ; +0x4a3, 0x180012e03 movaps xmm3, xmm6; float ; +0x4a8, 0x180012e08 mov rcx, r13; this ; +0x4ab, 0x180012e0b call ?drawSegmentEx@CCDrawNode@cocos2d@@QEAA_NAEBVCCPoint@2@0MAEBU_ccColor4F@2@_N2@Z; cocos2d::CCDrawNode::drawSegmentEx(cocos2d::CCPoint const &,cocos2d::CCPoint const &,float,cocos2d::_ccColor4F const &,bool,bool) ; +0x4ae, 0x180012e0e mov ebx, edi ; +0x4b3, 0x180012e13 cmp edi, ebp ; +0x4b5, 0x180012e15 jb short loc_180012DE0 ; +0x4b7, 0x180012e17 mov rcx, rsi; Block ; +0x4b9, 0x180012e19 call j_j_free_0 ; +0x4bc, 0x180012e1c lea r11, [rsp+0D8h+var_38] ; +0x4c1, 0x180012e21 mov rbx, [r11+50h] ; +0x4c9, 0x180012e29 movaps xmm6, xmmword ptr [r11-10h] ; +0x4cd, 0x180012e2d movaps xmm7, xmmword ptr [r11-20h] ; +0x4d2, 0x180012e32 movaps xmm8, xmmword ptr [r11-30h] ; +0x4d7, 0x180012e37 movaps xmm9, xmmword ptr [r11-40h] ; +0x4dc, 0x180012e3c movaps xmm10, xmmword ptr [r11-50h] ; +0x4e1, 0x180012e41 mov rsp, r11 ; +0x4e6, 0x180012e46 pop r15 ; +0x4e9, 0x180012e49 pop r14 ; +0x4eb, 0x180012e4b pop r13 ; +0x4ed, 0x180012e4d pop r12 ; +0x4ef, 0x180012e4f pop rdi ; +0x4f1, 0x180012e51 pop rsi ; +0x4f2, 0x180012e52 pop rbp ; +0x4f3, 0x180012e53 retn ; +0x4f4, 0x180012e54