; ; cocos2d::CCDrawNode::drawCubicBezierDashed from 0x1800127a0 to 0x180012c95 (1269 bytes) ; ; 3 xrefs: ; > cocos2d::CCDrawNode::drawArchLikeHalfCircle @ 0x18001228e ; > @ 0x1801438a8 ; > @ 0x1801ae3bc ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; mov rax, rsp ; +0x0, 0x1800127a0 mov [rax+18h], rbx ; +0x3, 0x1800127a3 mov [rax+10h], rdx ; +0x7, 0x1800127a7 mov [rax+8], rcx ; +0xb, 0x1800127ab push rbp ; +0xf, 0x1800127af push rsi ; +0x10, 0x1800127b0 push rdi ; +0x11, 0x1800127b1 push r12 ; +0x12, 0x1800127b2 push r13 ; +0x14, 0x1800127b4 push r14 ; +0x16, 0x1800127b6 push r15 ; +0x18, 0x1800127b8 sub rsp, 0A0h ; +0x1a, 0x1800127ba movaps xmmword ptr [rax-48h], xmm6 ; +0x21, 0x1800127c1 movaps xmmword ptr [rax-58h], xmm7 ; +0x25, 0x1800127c5 movaps xmmword ptr [rax-68h], xmm8 ; +0x29, 0x1800127c9 movaps xmmword ptr [rax-78h], xmm9 ; +0x2e, 0x1800127ce movaps [rsp+0D8h+var_88], xmm10 ; +0x33, 0x1800127d3 mov r12, r9 ; +0x39, 0x1800127d9 mov r13, r8 ; +0x3c, 0x1800127dc mov r14, rdx ; +0x3f, 0x1800127df mov ebp, [rsp+0D8h+arg_28] ; +0x42, 0x1800127e2 mov r15, [rsp+0D8h+arg_20] ; +0x49, 0x1800127e9 test ebp, ebp ; +0x51, 0x1800127f1 jz loc_180012C61 ; +0x53, 0x1800127f3 lea edi, [rbp+1] ; +0x59, 0x1800127f9 mov eax, 8 ; +0x5c, 0x1800127fc mul rdi ; +0x61, 0x180012801 mov rcx, 0FFFFFFFFFFFFFFFFh ; +0x64, 0x180012804 cmovo rax, rcx ; +0x6b, 0x18001280b lea rdx, unk_180122909; struct std::nothrow_t * ; +0x6f, 0x18001280f mov rcx, rax; unsigned __int64 ; +0x76, 0x180012816 call j_??2@YAPEAX_KAEBUnothrow_t@std@@@Z; operator new(unsigned __int64,std::nothrow_t const &) ; +0x79, 0x180012819 mov rsi, rax ; +0x7e, 0x18001281e mov [rsp+0D8h+var_98], rax ; +0x81, 0x180012821 xor ebx, ebx ; +0x86, 0x180012826 test rax, rax ; +0x88, 0x180012828 jz short loc_180012851 ; +0x8b, 0x18001282b mov r14, rax ; +0x8d, 0x18001282d test rdi, rdi ; +0x90, 0x180012830 jz short loc_180012847 ; +0x93, 0x180012833 mov rcx, r14; this ; +0x95, 0x180012835 call ??0CCSize@cocos2d@@QEAA@XZ; cocos2d::CCSize::CCSize(void) ; +0x98, 0x180012838 add r14, 8 ; +0x9d, 0x18001283d sub rdi, 1 ; +0xa1, 0x180012841 jnz short loc_180012835 ; +0xa5, 0x180012845 mov r14, [rsp+0D8h+arg_8] ; +0xa7, 0x180012847 jmp short loc_180012854 ; +0xaf, 0x18001284f mov rsi, rbx ; +0xb1, 0x180012851 test rsi, rsi ; +0xb4, 0x180012854 jz loc_180012C61 ; +0xb7, 0x180012857 xorps xmm7, xmm7 ; +0xbd, 0x18001285d xorps xmm0, xmm0 ; +0xc0, 0x180012860 cvtsi2ss xmm0, rbp ; +0xc3, 0x180012863 movss xmm10, cs:flt_1800E61A8 ; +0xc8, 0x180012868 movaps xmm9, xmm10 ; +0xd1, 0x180012871 divss xmm9, xmm0 ; +0xd5, 0x180012875 mov edx, ebx ; +0xda, 0x18001287a movss xmm8, cs:flt_1800E6700 ; +0xdc, 0x18001287c cmp ebp, 4 ; +0xe5, 0x180012885 jb loc_180012B1A ; +0xe8, 0x180012888 lea rcx, [rsi+8] ; +0xee, 0x18001288e lea eax, [rbp-4] ; +0xf2, 0x180012892 shr eax, 2 ; +0xf5, 0x180012895 inc eax ; +0xf8, 0x180012898 mov r8d, eax ; +0xfa, 0x18001289a lea edx, ds:0[rax*4] ; +0xfd, 0x18001289d lea rax, ds:0[rax*4] ; +0x104, 0x1800128a4 nop dword ptr [rax+00h] ; +0x10c, 0x1800128ac movaps xmm5, xmm10 ; +0x110, 0x1800128b0 subss xmm5, xmm7 ; +0x114, 0x1800128b4 movaps xmm6, xmm5 ; +0x118, 0x1800128b8 mulss xmm6, xmm5 ; +0x11b, 0x1800128bb movaps xmm4, xmm7 ; +0x11f, 0x1800128bf mulss xmm4, xmm7 ; +0x122, 0x1800128c2 movaps xmm3, xmm6 ; +0x126, 0x1800128c6 mulss xmm3, xmm8 ; +0x129, 0x1800128c9 mulss xmm3, xmm7 ; +0x12e, 0x1800128ce mulss xmm6, xmm5 ; +0x132, 0x1800128d2 mulss xmm5, xmm8 ; +0x136, 0x1800128d6 mulss xmm5, xmm4 ; +0x13b, 0x1800128db mulss xmm4, xmm7 ; +0x13f, 0x1800128df movaps xmm2, xmm3 ; +0x143, 0x1800128e3 mulss xmm2, dword ptr [r13+0] ; +0x146, 0x1800128e6 movaps xmm0, xmm6 ; +0x14c, 0x1800128ec mulss xmm0, dword ptr [r14] ; +0x14f, 0x1800128ef addss xmm2, xmm0 ; +0x154, 0x1800128f4 movaps xmm1, xmm5 ; +0x158, 0x1800128f8 mulss xmm1, dword ptr [r12] ; +0x15b, 0x1800128fb addss xmm2, xmm1 ; +0x161, 0x180012901 movaps xmm0, xmm4 ; +0x165, 0x180012905 mulss xmm0, dword ptr [r15] ; +0x168, 0x180012908 addss xmm2, xmm0 ; +0x16d, 0x18001290d movss dword ptr [rcx-8], xmm2 ; +0x171, 0x180012911 mulss xmm6, dword ptr [r14+4] ; +0x176, 0x180012916 mulss xmm3, dword ptr [r13+4] ; +0x17c, 0x18001291c addss xmm6, xmm3 ; +0x182, 0x180012922 mulss xmm5, dword ptr [r12+4] ; +0x186, 0x180012926 addss xmm6, xmm5 ; +0x18d, 0x18001292d mulss xmm4, dword ptr [r15+4] ; +0x191, 0x180012931 addss xmm6, xmm4 ; +0x197, 0x180012937 movss dword ptr [rcx-4], xmm6 ; +0x19b, 0x18001293b addss xmm7, xmm9 ; +0x1a0, 0x180012940 movaps xmm5, xmm10 ; +0x1a5, 0x180012945 subss xmm5, xmm7 ; +0x1a9, 0x180012949 movaps xmm6, xmm5 ; +0x1ad, 0x18001294d mulss xmm6, xmm5 ; +0x1b0, 0x180012950 movaps xmm4, xmm7 ; +0x1b4, 0x180012954 mulss xmm4, xmm7 ; +0x1b7, 0x180012957 movaps xmm3, xmm6 ; +0x1bb, 0x18001295b mulss xmm3, xmm8 ; +0x1be, 0x18001295e mulss xmm3, xmm7 ; +0x1c3, 0x180012963 mulss xmm6, xmm5 ; +0x1c7, 0x180012967 mulss xmm5, xmm8 ; +0x1cb, 0x18001296b mulss xmm5, xmm4 ; +0x1d0, 0x180012970 mulss xmm4, xmm7 ; +0x1d4, 0x180012974 movaps xmm2, xmm3 ; +0x1d8, 0x180012978 mulss xmm2, dword ptr [r13+0] ; +0x1db, 0x18001297b movaps xmm0, xmm6 ; +0x1e1, 0x180012981 mulss xmm0, dword ptr [r14] ; +0x1e4, 0x180012984 addss xmm2, xmm0 ; +0x1e9, 0x180012989 movaps xmm1, xmm5 ; +0x1ed, 0x18001298d mulss xmm1, dword ptr [r12] ; +0x1f0, 0x180012990 addss xmm2, xmm1 ; +0x1f6, 0x180012996 movaps xmm0, xmm4 ; +0x1fa, 0x18001299a mulss xmm0, dword ptr [r15] ; +0x1fd, 0x18001299d addss xmm2, xmm0 ; +0x202, 0x1800129a2 movss dword ptr [rcx], xmm2 ; +0x206, 0x1800129a6 mulss xmm6, dword ptr [r14+4] ; +0x20a, 0x1800129aa mulss xmm3, dword ptr [r13+4] ; +0x210, 0x1800129b0 addss xmm6, xmm3 ; +0x216, 0x1800129b6 mulss xmm5, dword ptr [r12+4] ; +0x21a, 0x1800129ba addss xmm6, xmm5 ; +0x221, 0x1800129c1 mulss xmm4, dword ptr [r15+4] ; +0x225, 0x1800129c5 addss xmm6, xmm4 ; +0x22b, 0x1800129cb movss dword ptr [rcx+4], xmm6 ; +0x22f, 0x1800129cf addss xmm7, xmm9 ; +0x234, 0x1800129d4 movaps xmm5, xmm10 ; +0x239, 0x1800129d9 subss xmm5, xmm7 ; +0x23d, 0x1800129dd movaps xmm6, xmm5 ; +0x241, 0x1800129e1 mulss xmm6, xmm5 ; +0x244, 0x1800129e4 movaps xmm4, xmm7 ; +0x248, 0x1800129e8 mulss xmm4, xmm7 ; +0x24b, 0x1800129eb movaps xmm3, xmm6 ; +0x24f, 0x1800129ef mulss xmm3, xmm8 ; +0x252, 0x1800129f2 mulss xmm3, xmm7 ; +0x257, 0x1800129f7 mulss xmm6, xmm5 ; +0x25b, 0x1800129fb mulss xmm5, xmm8 ; +0x25f, 0x1800129ff mulss xmm5, xmm4 ; +0x264, 0x180012a04 mulss xmm4, xmm7 ; +0x268, 0x180012a08 movaps xmm2, xmm3 ; +0x26c, 0x180012a0c mulss xmm2, dword ptr [r13+0] ; +0x26f, 0x180012a0f movaps xmm0, xmm6 ; +0x275, 0x180012a15 mulss xmm0, dword ptr [r14] ; +0x278, 0x180012a18 addss xmm2, xmm0 ; +0x27d, 0x180012a1d movaps xmm1, xmm5 ; +0x281, 0x180012a21 mulss xmm1, dword ptr [r12] ; +0x284, 0x180012a24 addss xmm2, xmm1 ; +0x28a, 0x180012a2a movaps xmm0, xmm4 ; +0x28e, 0x180012a2e mulss xmm0, dword ptr [r15] ; +0x291, 0x180012a31 addss xmm2, xmm0 ; +0x296, 0x180012a36 movss dword ptr [rcx+8], xmm2 ; +0x29a, 0x180012a3a mulss xmm6, dword ptr [r14+4] ; +0x29f, 0x180012a3f mulss xmm3, dword ptr [r13+4] ; +0x2a5, 0x180012a45 addss xmm6, xmm3 ; +0x2ab, 0x180012a4b mulss xmm5, dword ptr [r12+4] ; +0x2af, 0x180012a4f addss xmm6, xmm5 ; +0x2b6, 0x180012a56 mulss xmm4, dword ptr [r15+4] ; +0x2ba, 0x180012a5a addss xmm6, xmm4 ; +0x2c0, 0x180012a60 movss dword ptr [rcx+0Ch], xmm6 ; +0x2c4, 0x180012a64 addss xmm7, xmm9 ; +0x2c9, 0x180012a69 movaps xmm5, xmm10 ; +0x2ce, 0x180012a6e subss xmm5, xmm7 ; +0x2d2, 0x180012a72 movaps xmm6, xmm5 ; +0x2d6, 0x180012a76 mulss xmm6, xmm5 ; +0x2d9, 0x180012a79 movaps xmm4, xmm7 ; +0x2dd, 0x180012a7d mulss xmm4, xmm7 ; +0x2e0, 0x180012a80 movaps xmm3, xmm6 ; +0x2e4, 0x180012a84 mulss xmm3, xmm8 ; +0x2e7, 0x180012a87 mulss xmm3, xmm7 ; +0x2ec, 0x180012a8c mulss xmm6, xmm5 ; +0x2f0, 0x180012a90 mulss xmm5, xmm8 ; +0x2f4, 0x180012a94 mulss xmm5, xmm4 ; +0x2f9, 0x180012a99 mulss xmm4, xmm7 ; +0x2fd, 0x180012a9d movaps xmm2, xmm3 ; +0x301, 0x180012aa1 mulss xmm2, dword ptr [r13+0] ; +0x304, 0x180012aa4 movaps xmm0, xmm6 ; +0x30a, 0x180012aaa mulss xmm0, dword ptr [r14] ; +0x30d, 0x180012aad addss xmm2, xmm0 ; +0x312, 0x180012ab2 movaps xmm1, xmm5 ; +0x316, 0x180012ab6 mulss xmm1, dword ptr [r12] ; +0x319, 0x180012ab9 addss xmm2, xmm1 ; +0x31f, 0x180012abf movaps xmm0, xmm4 ; +0x323, 0x180012ac3 mulss xmm0, dword ptr [r15] ; +0x326, 0x180012ac6 addss xmm2, xmm0 ; +0x32b, 0x180012acb movss dword ptr [rcx+10h], xmm2 ; +0x32f, 0x180012acf mulss xmm6, dword ptr [r14+4] ; +0x334, 0x180012ad4 mulss xmm3, dword ptr [r13+4] ; +0x33a, 0x180012ada addss xmm6, xmm3 ; +0x340, 0x180012ae0 mulss xmm5, dword ptr [r12+4] ; +0x344, 0x180012ae4 addss xmm6, xmm5 ; +0x34b, 0x180012aeb mulss xmm4, dword ptr [r15+4] ; +0x34f, 0x180012aef addss xmm6, xmm4 ; +0x355, 0x180012af5 movss dword ptr [rcx+14h], xmm6 ; +0x359, 0x180012af9 addss xmm7, xmm9 ; +0x35e, 0x180012afe add rcx, 20h ; ' ' ; +0x363, 0x180012b03 sub r8, 1 ; +0x367, 0x180012b07 jnz loc_1800128B0 ; +0x36b, 0x180012b0b cmp edx, ebp ; +0x371, 0x180012b11 jb short loc_180012B25 ; +0x373, 0x180012b13 jmp loc_180012BD1 ; +0x375, 0x180012b15 test ebp, ebp ; +0x37a, 0x180012b1a jz loc_180012BD1 ; +0x37c, 0x180012b1c mov rax, rbx ; +0x382, 0x180012b22 lea rcx, [rsi+rax*8] ; +0x385, 0x180012b25 mov eax, ebp ; +0x389, 0x180012b29 sub eax, edx ; +0x38b, 0x180012b2b mov edx, eax ; +0x38d, 0x180012b2d movaps xmm6, xmm10 ; +0x38f, 0x180012b2f subss xmm6, xmm7 ; +0x393, 0x180012b33 movaps xmm3, xmm6 ; +0x397, 0x180012b37 mulss xmm3, xmm6 ; +0x39a, 0x180012b3a movaps xmm5, xmm7 ; +0x39e, 0x180012b3e mulss xmm5, xmm7 ; +0x3a1, 0x180012b41 movaps xmm4, xmm3 ; +0x3a5, 0x180012b45 mulss xmm4, xmm8 ; +0x3a8, 0x180012b48 mulss xmm4, xmm7 ; +0x3ad, 0x180012b4d mulss xmm3, xmm6 ; +0x3b1, 0x180012b51 mulss xmm6, xmm8 ; +0x3b5, 0x180012b55 mulss xmm6, xmm5 ; +0x3ba, 0x180012b5a mulss xmm5, xmm7 ; +0x3be, 0x180012b5e movaps xmm2, xmm4 ; +0x3c2, 0x180012b62 mulss xmm2, dword ptr [r13+0] ; +0x3c5, 0x180012b65 movaps xmm0, xmm3 ; +0x3cb, 0x180012b6b mulss xmm0, dword ptr [r14] ; +0x3ce, 0x180012b6e addss xmm2, xmm0 ; +0x3d3, 0x180012b73 movaps xmm1, xmm6 ; +0x3d7, 0x180012b77 mulss xmm1, dword ptr [r12] ; +0x3da, 0x180012b7a addss xmm2, xmm1 ; +0x3e0, 0x180012b80 movaps xmm0, xmm5 ; +0x3e4, 0x180012b84 mulss xmm0, dword ptr [r15] ; +0x3e7, 0x180012b87 addss xmm2, xmm0 ; +0x3ec, 0x180012b8c movss dword ptr [rcx], xmm2 ; +0x3f0, 0x180012b90 mulss xmm4, dword ptr [r13+4] ; +0x3f4, 0x180012b94 mulss xmm3, dword ptr [r14+4] ; +0x3fa, 0x180012b9a addss xmm4, xmm3 ; +0x400, 0x180012ba0 mulss xmm6, dword ptr [r12+4] ; +0x404, 0x180012ba4 addss xmm4, xmm6 ; +0x40b, 0x180012bab mulss xmm5, dword ptr [r15+4] ; +0x40f, 0x180012baf addss xmm4, xmm5 ; +0x415, 0x180012bb5 movss dword ptr [rcx+4], xmm4 ; +0x419, 0x180012bb9 addss xmm7, xmm9 ; +0x41e, 0x180012bbe add rcx, 8 ; +0x423, 0x180012bc3 sub rdx, 1 ; +0x427, 0x180012bc7 jnz loc_180012B2F ; +0x42b, 0x180012bcb lea rcx, [rsi+rbp*8] ; +0x431, 0x180012bd1 mov rdx, r15 ; +0x435, 0x180012bd5 call ??4CCSize@cocos2d@@QEAAAEAV01@AEBVCCPoint@1@@Z; cocos2d::CCSize::operator=(cocos2d::CCPoint const &) ; +0x438, 0x180012bd8 mov r15d, [rsp+0D8h+arg_40] ; +0x43d, 0x180012bdd mov r14d, [rsp+0D8h+arg_48] ; +0x445, 0x180012be5 mov eax, 1 ; +0x44d, 0x180012bed add r14d, r15d ; +0x452, 0x180012bf2 cmovz r14d, eax ; +0x455, 0x180012bf5 test ebp, ebp ; +0x459, 0x180012bf9 jz short loc_180012C59 ; +0x45b, 0x180012bfb movss xmm6, [rsp+0D8h+arg_38] ; +0x45d, 0x180012bfd mov r12, [rsp+0D8h+arg_30] ; +0x466, 0x180012c06 mov r13, [rsp+0D8h+arg_0] ; +0x46e, 0x180012c0e nop word ptr [rax+rax+00000000h] ; +0x476, 0x180012c16 lea edi, [rbx+1] ; +0x480, 0x180012c20 xor edx, edx ; +0x483, 0x180012c23 mov eax, ebx ; +0x485, 0x180012c25 div r14d ; +0x487, 0x180012c27 cmp edx, r15d ; +0x48a, 0x180012c2a jnb short loc_180012C53 ; +0x48d, 0x180012c2d lea r8, [rsi+rdi*8]; struct cocos2d::CCPoint * ; +0x48f, 0x180012c2f mov eax, ebx ; +0x493, 0x180012c33 lea rdx, [rsi+rax*8]; struct cocos2d::CCPoint * ; +0x495, 0x180012c35 mov [rsp+0D8h+var_A8], 1; bool ; +0x499, 0x180012c39 mov [rsp+0D8h+var_B0], 1; bool ; +0x49e, 0x180012c3e mov [rsp+0D8h+var_B8], r12; struct cocos2d::_ccColor4F * ; +0x4a3, 0x180012c43 movaps xmm3, xmm6; float ; +0x4a8, 0x180012c48 mov rcx, r13; this ; +0x4ab, 0x180012c4b 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, 0x180012c4e mov ebx, edi ; +0x4b3, 0x180012c53 cmp edi, ebp ; +0x4b5, 0x180012c55 jb short loc_180012C20 ; +0x4b7, 0x180012c57 mov rcx, rsi; Block ; +0x4b9, 0x180012c59 call j_j_free_0 ; +0x4bc, 0x180012c5c lea r11, [rsp+0D8h+var_38] ; +0x4c1, 0x180012c61 mov rbx, [r11+50h] ; +0x4c9, 0x180012c69 movaps xmm6, xmmword ptr [r11-10h] ; +0x4cd, 0x180012c6d movaps xmm7, xmmword ptr [r11-20h] ; +0x4d2, 0x180012c72 movaps xmm8, xmmword ptr [r11-30h] ; +0x4d7, 0x180012c77 movaps xmm9, xmmword ptr [r11-40h] ; +0x4dc, 0x180012c7c movaps xmm10, xmmword ptr [r11-50h] ; +0x4e1, 0x180012c81 mov rsp, r11 ; +0x4e6, 0x180012c86 pop r15 ; +0x4e9, 0x180012c89 pop r14 ; +0x4eb, 0x180012c8b pop r13 ; +0x4ed, 0x180012c8d pop r12 ; +0x4ef, 0x180012c8f pop rdi ; +0x4f1, 0x180012c91 pop rsi ; +0x4f2, 0x180012c92 pop rbp ; +0x4f3, 0x180012c93 retn ; +0x4f4, 0x180012c94