name
stringlengths
1
473k
code
stringlengths
7
647k
asm
stringlengths
4
3.39M
file
stringlengths
8
196
ImPlot::StairsRenderer<ImPlot::GetterYs<unsigned int>, ImPlot::TransformerLinLog>::operator()(ImDrawList&, ImRect const&, ImVec2 const&, int) const
inline bool operator()(ImDrawList& DrawList, const ImRect& cull_rect, const ImVec2& uv, int prim) const { ImVec2 P2 = Transformer(Getter(prim + 1)); if (!cull_rect.Overlaps(ImRect(ImMin(P1, P2), ImMax(P1, P2)))) { P1 = P2; return false; } AddRectFilled(ImVec2(P1.x, P1.y + HalfWeight), ImVec2(P2.x, P1.y - HalfWeight), Col, DrawList, uv); AddRectFilled(ImVec2(P2.x - HalfWeight, P2.y), ImVec2(P2.x + HalfWeight, P1.y), Col, DrawList, uv); // AddLine(P1, P12, Weight, Col, DrawList, uv); // AddLine(P12, P2, Weight, Col, DrawList, uv); P1 = P2; return true; }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x38, %rsp movq %rcx, %r15 movq %rdx, %r12 movq %rsi, %r14 movq %rdi, %rbx movq (%rdi), %rcx movq 0x8(%rdi), %rbp leal 0x1(%r8), %eax cvtsi2sd %eax, %xmm0 movapd %xmm0, 0x20(%rsp) movq (%rcx), %rsi movl 0x8(%rcx), %edi addl 0x20(%rcx), %eax movslq 0x24(%rcx), %r8 cltd idivl %edi leal (%rdx,%rdi), %eax cltd idivl %edi movslq %edx, %rax imulq %r8, %rax movl (%rsi,%rax), %eax xorps %xmm0, %xmm0 cvtsi2sd %rax, %xmm0 movq 0x1cac06(%rip), %rax # 0x46a3f0 movq (%rax), %r13 movq 0x28(%r13), %rax movslq (%rbp), %rdx shlq $0x7, %rdx divsd 0x98(%rax,%rdx), %xmm0 movsd 0x10(%rcx), %xmm1 movaps %xmm1, (%rsp) movsd 0x18(%rcx), %xmm1 movaps %xmm1, 0x10(%rsp) callq 0xe2ca0 movslq (%rbp), %rcx divsd 0x1c0(%r13,%rcx,8), %xmm0 movq 0x28(%r13), %rax movsd 0x198(%r13), %xmm1 movhpd 0x1a0(%r13,%rcx,8), %xmm1 # xmm1 = xmm1[0],mem[0] movq %rcx, %rdx shlq $0x7, %rcx movsd 0x98(%rax,%rcx), %xmm2 movsd 0xa0(%rax,%rcx), %xmm3 cvtsd2ss %xmm0, %xmm0 subsd %xmm2, %xmm3 movapd (%rsp), %xmm4 unpcklpd %xmm3, %xmm4 # xmm4 = xmm4[0],xmm3[0] cvtss2sd %xmm0, %xmm0 movaps 0x20(%rsp), %xmm3 movlhps %xmm0, %xmm3 # xmm3 = xmm3[0],xmm0[0] mulpd %xmm4, %xmm3 shlq $0x4, %rdx movapd 0x10(%rsp), %xmm4 unpcklpd %xmm2, %xmm4 # xmm4 = xmm4[0],xmm2[0] cvtps2pd 0x164(%r13,%rdx), %xmm0 addpd %xmm3, %xmm4 movsd 0x18(%rax), %xmm3 unpcklpd %xmm2, %xmm3 # xmm3 = xmm3[0],xmm2[0] subpd %xmm3, %xmm4 mulpd %xmm4, %xmm1 addpd %xmm0, %xmm1 cvtpd2ps %xmm1, %xmm0 movapd %xmm0, %xmm2 unpcklpd %xmm0, %xmm2 # xmm2 = xmm2[0],xmm0[0] movsd 0x1c(%rbx), %xmm1 movaps %xmm1, %xmm3 movlhps %xmm1, %xmm3 # xmm3 = xmm3[0],xmm1[0] movapd %xmm2, %xmm4 cmpleps %xmm3, %xmm4 movaps %xmm3, %xmm5 cmpltps %xmm2, %xmm5 movsd %xmm4, %xmm5 # xmm5 = xmm4[0],xmm5[1] andps %xmm5, %xmm3 andnps %xmm2, %xmm5 orps %xmm3, %xmm5 movups (%r12), %xmm2 movaps %xmm2, %xmm3 cmpltps %xmm5, %xmm3 cmpltps %xmm2, %xmm5 movsd %xmm3, %xmm5 # xmm5 = xmm3[0],xmm5[1] movmskps %xmm5, %eax cmpl $0xf, %eax jne 0x29fa8b movss 0x18(%rbx), %xmm2 movaps %xmm1, %xmm3 shufps $0x55, %xmm1, %xmm3 # xmm3 = xmm3[1,1],xmm1[1,1] movaps %xmm3, %xmm4 addss %xmm2, %xmm4 subss %xmm2, %xmm3 movl 0x14(%rbx), %edx movsd (%r15), %xmm2 movq 0x48(%r14), %rcx movss %xmm1, (%rcx) movss %xmm4, 0x4(%rcx) movq 0x48(%r14), %rcx movsd %xmm2, 0x8(%rcx) movq 0x48(%r14), %rcx movl %edx, 0x10(%rcx) movss %xmm0, 0x14(%rcx) movss %xmm3, 0x18(%rcx) movq 0x48(%r14), %rcx movsd %xmm2, 0x1c(%rcx) movq 0x48(%r14), %rcx movl %edx, 0x24(%rcx) movss %xmm1, 0x28(%rcx) movss %xmm3, 0x2c(%rcx) movsd %xmm2, 0x30(%rcx) movq 0x48(%r14), %rcx movl %edx, 0x38(%rcx) movss %xmm0, 0x3c(%rcx) movss %xmm4, 0x40(%rcx) movsd %xmm2, 0x44(%rcx) movq 0x48(%r14), %rcx movl %edx, 0x4c(%rcx) leaq 0x50(%rcx), %rdx movq %rdx, 0x48(%r14) movl 0x34(%r14), %edx movq 0x50(%r14), %rsi movl %edx, (%rsi) incl %edx movl %edx, 0x4(%rsi) movl 0x34(%r14), %edx addl $0x2, %edx movl %edx, 0x8(%rsi) movl 0x34(%r14), %edx movl %edx, 0xc(%rsi) incl %edx movl %edx, 0x10(%rsi) movl 0x34(%r14), %edx addl $0x3, %edx movl %edx, 0x14(%rsi) addq $0x18, %rsi movq %rsi, 0x50(%r14) addl $0x4, 0x34(%r14) movss 0x18(%rbx), %xmm1 movapd %xmm0, %xmm2 subss %xmm1, %xmm2 addss %xmm0, %xmm1 movss 0x20(%rbx), %xmm3 movl 0x14(%rbx), %edx movsd (%r15), %xmm4 movss %xmm2, 0x50(%rcx) movaps %xmm0, %xmm5 shufps $0x55, %xmm0, %xmm5 # xmm5 = xmm5[1,1],xmm0[1,1] movss %xmm5, 0x54(%rcx) movq 0x48(%r14), %rcx movsd %xmm4, 0x8(%rcx) movq 0x48(%r14), %rcx movl %edx, 0x10(%rcx) movss %xmm1, 0x14(%rcx) movss %xmm3, 0x18(%rcx) movq 0x48(%r14), %rcx movsd %xmm4, 0x1c(%rcx) movq 0x48(%r14), %rcx movl %edx, 0x24(%rcx) movss %xmm2, 0x28(%rcx) movss %xmm3, 0x2c(%rcx) movsd %xmm4, 0x30(%rcx) movq 0x48(%r14), %rcx movl %edx, 0x38(%rcx) movss %xmm1, 0x3c(%rcx) movss %xmm5, 0x40(%rcx) movsd %xmm4, 0x44(%rcx) movq 0x48(%r14), %rcx movl %edx, 0x4c(%rcx) addq $0x50, %rcx movq %rcx, 0x48(%r14) movl 0x34(%r14), %ecx movq 0x50(%r14), %rdx movl %ecx, (%rdx) incl %ecx movl %ecx, 0x4(%rdx) movl 0x34(%r14), %ecx addl $0x2, %ecx movl %ecx, 0x8(%rdx) movl 0x34(%r14), %ecx movl %ecx, 0xc(%rdx) incl %ecx movl %ecx, 0x10(%rdx) movl 0x34(%r14), %ecx addl $0x3, %ecx movl %ecx, 0x14(%rdx) addq $0x18, %rdx movq %rdx, 0x50(%r14) addl $0x4, 0x34(%r14) cmpb $0xf, %al sete %al movlpd %xmm0, 0x1c(%rbx) addq $0x38, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
void ImPlot::RenderStairs<ImPlot::GetterYs<unsigned long long>, ImPlot::TransformerLinLog>(ImPlot::GetterYs<unsigned long long> const&, ImPlot::TransformerLinLog const&, ImDrawList&, float, unsigned int)
inline void RenderStairs(const Getter& getter, const Transformer& transformer, ImDrawList& DrawList, float line_weight, ImU32 col) { ImPlotContext& gp = *GImPlot; if (ImHasFlag(gp.CurrentPlot->Flags, ImPlotFlags_AntiAliased) || gp.Style.AntiAliasedLines) { ImVec2 p1 = transformer(getter(0)); for (int i = 1; i < getter.Count; ++i) { ImVec2 p2 = transformer(getter(i)); if (gp.CurrentPlot->PlotRect.Overlaps(ImRect(ImMin(p1, p2), ImMax(p1, p2)))) { ImVec2 p12(p2.x, p1.y); DrawList.AddLine(p1, p12, col, line_weight); DrawList.AddLine(p12, p2, col, line_weight); } p1 = p2; } } else { RenderPrimitives(StairsRenderer<Getter,Transformer>(getter, transformer, col, line_weight), DrawList, gp.CurrentPlot->PlotRect); } }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x88, %rsp movl %ecx, 0x4(%rsp) movss %xmm0, (%rsp) movq %rdx, 0x38(%rsp) movq %rsi, %r14 movq %rdi, %r15 movq 0x1c7a96(%rip), %r12 # 0x46a3f0 movq (%r12), %r13 movq 0x28(%r13), %rcx testb $0x10, 0x5(%rcx) jne 0x2a2976 cmpb $0x1, 0x448(%r13) jne 0x2a2c8c movups 0x18(%r15), %xmm0 movaps %xmm0, 0x20(%rsp) movups 0x10(%r15), %xmm0 movaps %xmm0, 0x10(%rsp) movq (%r15), %rsi movl 0x8(%r15), %edi movl 0x20(%r15), %eax movslq 0x24(%r15), %r8 cltd idivl %edi leal (%rdx,%rdi), %eax cltd idivl %edi movslq %edx, %rax imulq %r8, %rax movsd (%rsi,%rax), %xmm1 unpcklps 0xdaa3b(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1] subpd 0xdaa43(%rip), %xmm1 # 0x37d400 movapd %xmm1, %xmm0 unpckhpd %xmm1, %xmm0 # xmm0 = xmm0[1],xmm1[1] addsd %xmm1, %xmm0 movslq (%r14), %rax shlq $0x7, %rax divsd 0x98(%rcx,%rax), %xmm0 callq 0xe2ca0 movslq (%r14), %rcx divsd 0x1c0(%r13,%rcx,8), %xmm0 movq 0x28(%r13), %rax movq %rcx, %rdx movsd 0x198(%r13), %xmm1 movhpd 0x1a0(%r13,%rcx,8), %xmm1 # xmm1 = xmm1[0],mem[0] shlq $0x7, %rcx movsd 0x98(%rax,%rcx), %xmm2 movsd 0xa0(%rax,%rcx), %xmm3 cvtsd2ss %xmm0, %xmm0 subsd %xmm2, %xmm3 movapd 0x10(%rsp), %xmm4 unpcklpd %xmm3, %xmm4 # xmm4 = xmm4[0],xmm3[0] cvtss2sd %xmm0, %xmm0 xorpd %xmm3, %xmm3 unpcklpd %xmm0, %xmm3 # xmm3 = xmm3[0],xmm0[0] shlq $0x4, %rdx mulpd %xmm4, %xmm3 movapd 0x20(%rsp), %xmm4 unpcklpd %xmm2, %xmm4 # xmm4 = xmm4[0],xmm2[0] cvtps2pd 0x164(%r13,%rdx), %xmm0 addpd %xmm3, %xmm4 movsd 0x18(%rax), %xmm3 unpcklpd %xmm2, %xmm3 # xmm3 = xmm3[0],xmm2[0] subpd %xmm3, %xmm4 mulpd %xmm4, %xmm1 addpd %xmm0, %xmm1 cvtpd2ps %xmm1, %xmm0 movlpd %xmm0, 0x48(%rsp) movl 0x8(%r15), %ecx cmpl $0x2, %ecx jl 0x2a2dd5 movl $0x1, %ebx movups 0x18(%r15), %xmm0 movaps %xmm0, 0x20(%rsp) xorps %xmm0, %xmm0 cvtsi2sd %ebx, %xmm0 movapd %xmm0, 0x10(%rsp) movups 0x10(%r15), %xmm0 movaps %xmm0, 0x70(%rsp) movq (%r15), %rsi movslq 0x24(%r15), %rdi movl 0x20(%r15), %eax addl %ebx, %eax cltd idivl %ecx leal (%rdx,%rcx), %eax cltd idivl %ecx movslq %edx, %rax imulq %rdi, %rax movsd (%rsi,%rax), %xmm1 unpcklps 0xda91d(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1] subpd 0xda925(%rip), %xmm1 # 0x37d400 movapd %xmm1, %xmm0 unpckhpd %xmm1, %xmm0 # xmm0 = xmm0[1],xmm1[1] addsd %xmm1, %xmm0 movq (%r12), %rbp movq 0x28(%rbp), %rax movslq (%r14), %rcx shlq $0x7, %rcx divsd 0x98(%rax,%rcx), %xmm0 callq 0xe2ca0 movslq (%r14), %rcx divsd 0x1c0(%rbp,%rcx,8), %xmm0 movq 0x28(%rbp), %rax movq %rcx, %rdx movsd 0x198(%rbp), %xmm1 movhpd 0x1a0(%rbp,%rcx,8), %xmm1 # xmm1 = xmm1[0],mem[0] shlq $0x7, %rcx movsd 0x98(%rax,%rcx), %xmm2 movsd 0xa0(%rax,%rcx), %xmm3 subsd %xmm2, %xmm3 movapd 0x70(%rsp), %xmm4 unpcklpd %xmm3, %xmm4 # xmm4 = xmm4[0],xmm3[0] cvtsd2ss %xmm0, %xmm0 cvtss2sd %xmm0, %xmm0 movaps 0x10(%rsp), %xmm3 movlhps %xmm0, %xmm3 # xmm3 = xmm3[0],xmm0[0] mulpd %xmm4, %xmm3 shlq $0x4, %rdx movapd 0x20(%rsp), %xmm4 unpcklpd %xmm2, %xmm4 # xmm4 = xmm4[0],xmm2[0] addpd %xmm3, %xmm4 cvtps2pd 0x164(%rbp,%rdx), %xmm0 movsd 0x18(%rax), %xmm3 unpcklpd %xmm2, %xmm3 # xmm3 = xmm3[0],xmm2[0] subpd %xmm3, %xmm4 mulpd %xmm4, %xmm1 addpd %xmm0, %xmm1 cvtpd2ps %xmm1, %xmm1 movlpd %xmm1, 0x40(%rsp) movq 0x28(%r13), %rcx movss 0x4c(%rsp), %xmm0 movq %xmm1, %rax shufps $0x55, %xmm1, %xmm1 # xmm1 = xmm1[1,1,1,1] movaps %xmm0, %xmm2 minss %xmm1, %xmm2 movss 0x2c4(%rcx), %xmm3 ucomiss %xmm2, %xmm3 jbe 0x2a2c74 movaps %xmm1, %xmm2 cmpless %xmm0, %xmm2 movaps %xmm2, %xmm3 andps %xmm0, %xmm3 andnps %xmm1, %xmm2 orps %xmm3, %xmm2 ucomiss 0x2bc(%rcx), %xmm2 jbe 0x2a2c74 movss 0x48(%rsp), %xmm1 movd %eax, %xmm2 movaps %xmm1, %xmm3 minss %xmm2, %xmm3 movss 0x2c0(%rcx), %xmm4 ucomiss %xmm3, %xmm4 jbe 0x2a2c74 movaps %xmm2, %xmm3 cmpless %xmm1, %xmm3 movaps %xmm3, %xmm4 andnps %xmm2, %xmm4 andps %xmm1, %xmm3 orps %xmm4, %xmm3 ucomiss 0x2b8(%rcx), %xmm3 jbe 0x2a2c74 movl %eax, 0x8(%rsp) movss %xmm0, 0xc(%rsp) movq 0x38(%rsp), %rbp movq %rbp, %rdi leaq 0x48(%rsp), %rsi leaq 0x8(%rsp), %rdx movl 0x4(%rsp), %r12d movl %r12d, %ecx movss (%rsp), %xmm0 callq 0xe5ce0 movq %rbp, %rdi leaq 0x8(%rsp), %rsi leaq 0x40(%rsp), %rdx movl %r12d, %ecx movq 0x1c778b(%rip), %r12 # 0x46a3f0 movss (%rsp), %xmm0 callq 0xe5ce0 movq 0x40(%rsp), %rax movq %rax, 0x48(%rsp) incl %ebx movl 0x8(%r15), %ecx cmpl %ecx, %ebx jl 0x2a2a89 jmp 0x2a2dd5 leaq 0x48(%rsp), %r12 movq %r15, (%r12) movq %r14, 0x8(%r12) movl 0x8(%r15), %esi leal -0x1(%rsi), %eax movl %eax, 0x10(%r12) movl 0x4(%rsp), %eax movl %eax, 0x14(%r12) movss (%rsp), %xmm0 mulss 0xe04cc(%rip), %xmm0 # 0x383188 movss %xmm0, 0x18(%r12) movups 0x18(%r15), %xmm0 movaps %xmm0, 0x20(%rsp) movups 0x10(%r15), %xmm0 movaps %xmm0, 0x10(%rsp) movq (%r15), %rdi movl 0x20(%r15), %eax movslq 0x24(%r15), %r8 cltd idivl %esi leal (%rdx,%rsi), %eax cltd idivl %esi movslq %edx, %rax imulq %r8, %rax movsd (%rdi,%rax), %xmm1 unpcklps 0xda6f2(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1] subpd 0xda6fa(%rip), %xmm1 # 0x37d400 movapd %xmm1, %xmm0 unpckhpd %xmm1, %xmm0 # xmm0 = xmm0[1],xmm1[1] addsd %xmm1, %xmm0 movslq (%r14), %rax shlq $0x7, %rax divsd 0x98(%rcx,%rax), %xmm0 callq 0xe2ca0 movslq (%r14), %rax divsd 0x1c0(%r13,%rax,8), %xmm0 movq 0x28(%r13), %rdx movq %rax, %rcx movsd 0x198(%r13), %xmm1 movhpd 0x1a0(%r13,%rax,8), %xmm1 # xmm1 = xmm1[0],mem[0] shlq $0x7, %rax movsd 0x98(%rdx,%rax), %xmm2 movsd 0xa0(%rdx,%rax), %xmm3 cvtsd2ss %xmm0, %xmm0 subsd %xmm2, %xmm3 movapd 0x10(%rsp), %xmm4 unpcklpd %xmm3, %xmm4 # xmm4 = xmm4[0],xmm3[0] cvtss2sd %xmm0, %xmm0 xorpd %xmm3, %xmm3 unpcklpd %xmm0, %xmm3 # xmm3 = xmm3[0],xmm0[0] shlq $0x4, %rcx mulpd %xmm4, %xmm3 movapd 0x20(%rsp), %xmm4 unpcklpd %xmm2, %xmm4 # xmm4 = xmm4[0],xmm2[0] addpd %xmm3, %xmm4 cvtps2pd 0x164(%r13,%rcx), %xmm0 movsd 0x18(%rdx), %xmm3 unpcklpd %xmm2, %xmm3 # xmm3 = xmm3[0],xmm2[0] subpd %xmm3, %xmm4 mulpd %xmm4, %xmm1 addpd %xmm0, %xmm1 cvtpd2ps %xmm1, %xmm0 movlpd %xmm0, 0x1c(%r12) addq $0x2b8, %rdx # imm = 0x2B8 movq %r12, %rdi movq 0x38(%rsp), %rsi callq 0xe8c40 addq $0x88, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
ImPlot::StairsRenderer<ImPlot::GetterYs<unsigned long long>, ImPlot::TransformerLogLog>::operator()(ImDrawList&, ImRect const&, ImVec2 const&, int) const
inline bool operator()(ImDrawList& DrawList, const ImRect& cull_rect, const ImVec2& uv, int prim) const { ImVec2 P2 = Transformer(Getter(prim + 1)); if (!cull_rect.Overlaps(ImRect(ImMin(P1, P2), ImMax(P1, P2)))) { P1 = P2; return false; } AddRectFilled(ImVec2(P1.x, P1.y + HalfWeight), ImVec2(P2.x, P1.y - HalfWeight), Col, DrawList, uv); AddRectFilled(ImVec2(P2.x - HalfWeight, P2.y), ImVec2(P2.x + HalfWeight, P1.y), Col, DrawList, uv); // AddLine(P1, P12, Weight, Col, DrawList, uv); // AddLine(P12, P2, Weight, Col, DrawList, uv); P1 = P2; return true; }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x48, %rsp movq %rcx, %r15 movq %rdx, %r12 movq %rsi, %r14 movq %rdi, %rbx movq (%rdi), %rcx leal 0x1(%r8), %eax cvtsi2sd %eax, %xmm0 mulsd 0x10(%rcx), %xmm0 movq 0x8(%rdi), %rbp addsd 0x18(%rcx), %xmm0 movq (%rcx), %rsi movl 0x8(%rcx), %edi movslq 0x24(%rcx), %r8 addl 0x20(%rcx), %eax cltd idivl %edi leal (%rdx,%rdi), %eax cltd idivl %edi movslq %edx, %rax imulq %r8, %rax movsd (%rsi,%rax), %xmm1 unpcklps 0xd9248(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1] subpd 0xd9250(%rip), %xmm1 # 0x37d400 movapd %xmm1, %xmm2 unpckhpd %xmm1, %xmm2 # xmm2 = xmm2[1],xmm1[1] addsd %xmm1, %xmm2 movapd %xmm2, (%rsp) movq 0x1c6228(%rip), %rax # 0x46a3f0 movq (%rax), %r13 movq 0x28(%r13), %rax divsd 0x18(%rax), %xmm0 callq 0xe2ca0 movq 0x28(%r13), %rax movslq (%rbp), %rcx shlq $0x7, %rcx movapd (%rsp), %xmm1 divsd 0x98(%rax,%rcx), %xmm1 movapd %xmm0, 0x20(%rsp) movsd 0x1b8(%r13), %xmm0 movaps %xmm0, 0x10(%rsp) movsd 0x18(%rax), %xmm0 movaps %xmm0, (%rsp) movsd 0x20(%rax), %xmm0 movaps %xmm0, 0x30(%rsp) movapd %xmm1, %xmm0 callq 0xe2ca0 movslq (%rbp), %rdx movq 0x28(%r13), %rax movq %rdx, %rcx movapd 0x10(%rsp), %xmm3 movhpd 0x1c0(%r13,%rdx,8), %xmm3 # xmm3 = xmm3[0],mem[0] movsd 0x198(%r13), %xmm1 movhpd 0x1a0(%r13,%rdx,8), %xmm1 # xmm1 = xmm1[0],mem[0] shlq $0x7, %rdx shlq $0x4, %rcx movapd 0x20(%rsp), %xmm2 unpcklpd %xmm0, %xmm2 # xmm2 = xmm2[0],xmm0[0] divpd %xmm3, %xmm2 cvtpd2ps %xmm2, %xmm0 movapd 0x30(%rsp), %xmm5 movhpd 0xa0(%rax,%rdx), %xmm5 # xmm5 = xmm5[0],mem[0] movsd 0x98(%rax,%rdx), %xmm2 movapd (%rsp), %xmm3 unpcklpd %xmm2, %xmm3 # xmm3 = xmm3[0],xmm2[0] cvtps2pd %xmm0, %xmm0 subpd %xmm3, %xmm5 movapd %xmm3, %xmm4 mulpd %xmm5, %xmm0 cvtps2pd 0x164(%r13,%rcx), %xmm3 addpd %xmm4, %xmm0 movsd 0x18(%rax), %xmm4 unpcklpd %xmm2, %xmm4 # xmm4 = xmm4[0],xmm2[0] subpd %xmm4, %xmm0 mulpd %xmm0, %xmm1 addpd %xmm3, %xmm1 cvtpd2ps %xmm1, %xmm0 movapd %xmm0, %xmm2 unpcklpd %xmm0, %xmm2 # xmm2 = xmm2[0],xmm0[0] movsd 0x1c(%rbx), %xmm1 movaps %xmm1, %xmm3 movlhps %xmm1, %xmm3 # xmm3 = xmm3[0],xmm1[0] movapd %xmm2, %xmm4 cmpleps %xmm3, %xmm4 movaps %xmm3, %xmm5 cmpltps %xmm2, %xmm5 movsd %xmm4, %xmm5 # xmm5 = xmm4[0],xmm5[1] andps %xmm5, %xmm3 andnps %xmm2, %xmm5 orps %xmm3, %xmm5 movups (%r12), %xmm2 movaps %xmm2, %xmm3 cmpltps %xmm5, %xmm3 cmpltps %xmm2, %xmm5 movsd %xmm3, %xmm5 # xmm5 = xmm3[0],xmm5[1] movmskps %xmm5, %eax cmpl $0xf, %eax jne 0x2a449f movss 0x18(%rbx), %xmm2 movaps %xmm1, %xmm3 shufps $0x55, %xmm1, %xmm3 # xmm3 = xmm3[1,1],xmm1[1,1] movaps %xmm3, %xmm4 addss %xmm2, %xmm4 subss %xmm2, %xmm3 movl 0x14(%rbx), %edx movsd (%r15), %xmm2 movq 0x48(%r14), %rcx movss %xmm1, (%rcx) movss %xmm4, 0x4(%rcx) movq 0x48(%r14), %rcx movsd %xmm2, 0x8(%rcx) movq 0x48(%r14), %rcx movl %edx, 0x10(%rcx) movss %xmm0, 0x14(%rcx) movss %xmm3, 0x18(%rcx) movq 0x48(%r14), %rcx movsd %xmm2, 0x1c(%rcx) movq 0x48(%r14), %rcx movl %edx, 0x24(%rcx) movss %xmm1, 0x28(%rcx) movss %xmm3, 0x2c(%rcx) movsd %xmm2, 0x30(%rcx) movq 0x48(%r14), %rcx movl %edx, 0x38(%rcx) movss %xmm0, 0x3c(%rcx) movss %xmm4, 0x40(%rcx) movsd %xmm2, 0x44(%rcx) movq 0x48(%r14), %rcx movl %edx, 0x4c(%rcx) leaq 0x50(%rcx), %rdx movq %rdx, 0x48(%r14) movl 0x34(%r14), %edx movq 0x50(%r14), %rsi movl %edx, (%rsi) incl %edx movl %edx, 0x4(%rsi) movl 0x34(%r14), %edx addl $0x2, %edx movl %edx, 0x8(%rsi) movl 0x34(%r14), %edx movl %edx, 0xc(%rsi) incl %edx movl %edx, 0x10(%rsi) movl 0x34(%r14), %edx addl $0x3, %edx movl %edx, 0x14(%rsi) addq $0x18, %rsi movq %rsi, 0x50(%r14) addl $0x4, 0x34(%r14) movss 0x18(%rbx), %xmm1 movapd %xmm0, %xmm2 subss %xmm1, %xmm2 addss %xmm0, %xmm1 movss 0x20(%rbx), %xmm3 movl 0x14(%rbx), %edx movsd (%r15), %xmm4 movss %xmm2, 0x50(%rcx) movaps %xmm0, %xmm5 shufps $0x55, %xmm0, %xmm5 # xmm5 = xmm5[1,1],xmm0[1,1] movss %xmm5, 0x54(%rcx) movq 0x48(%r14), %rcx movsd %xmm4, 0x8(%rcx) movq 0x48(%r14), %rcx movl %edx, 0x10(%rcx) movss %xmm1, 0x14(%rcx) movss %xmm3, 0x18(%rcx) movq 0x48(%r14), %rcx movsd %xmm4, 0x1c(%rcx) movq 0x48(%r14), %rcx movl %edx, 0x24(%rcx) movss %xmm2, 0x28(%rcx) movss %xmm3, 0x2c(%rcx) movsd %xmm4, 0x30(%rcx) movq 0x48(%r14), %rcx movl %edx, 0x38(%rcx) movss %xmm1, 0x3c(%rcx) movss %xmm5, 0x40(%rcx) movsd %xmm4, 0x44(%rcx) movq 0x48(%r14), %rcx movl %edx, 0x4c(%rcx) addq $0x50, %rcx movq %rcx, 0x48(%r14) movl 0x34(%r14), %ecx movq 0x50(%r14), %rdx movl %ecx, (%rdx) incl %ecx movl %ecx, 0x4(%rdx) movl 0x34(%r14), %ecx addl $0x2, %ecx movl %ecx, 0x8(%rdx) movl 0x34(%r14), %ecx movl %ecx, 0xc(%rdx) incl %ecx movl %ecx, 0x10(%rdx) movl 0x34(%r14), %ecx addl $0x3, %ecx movl %ecx, 0x14(%rdx) addq $0x18, %rdx movq %rdx, 0x50(%r14) addl $0x4, 0x34(%r14) cmpb $0xf, %al sete %al movlpd %xmm0, 0x1c(%rbx) addq $0x48, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
void ImPlot::RenderPrimitives<ImPlot::StairsRenderer<ImPlot::GetterYs<float>, ImPlot::TransformerLinLin>>(ImPlot::StairsRenderer<ImPlot::GetterYs<float>, ImPlot::TransformerLinLin> const&, ImDrawList&, ImRect const&)
inline void RenderPrimitives(const Renderer& renderer, ImDrawList& DrawList, const ImRect& cull_rect) { unsigned int prims = renderer.Prims; unsigned int prims_culled = 0; unsigned int idx = 0; const ImVec2 uv = DrawList._Data->TexUvWhitePixel; while (prims) { // find how many can be reserved up to end of current draw command's limit unsigned int cnt = ImMin(prims, (MaxIdx<ImDrawIdx>::Value - DrawList._VtxCurrentIdx) / Renderer::VtxConsumed); // make sure at least this many elements can be rendered to avoid situations where at the end of buffer this slow path is not taken all the time if (cnt >= ImMin(64u, prims)) { if (prims_culled >= cnt) prims_culled -= cnt; // reuse previous reservation else { DrawList.PrimReserve((cnt - prims_culled) * Renderer::IdxConsumed, (cnt - prims_culled) * Renderer::VtxConsumed); // add more elements to previous reservation prims_culled = 0; } } else { if (prims_culled > 0) { DrawList.PrimUnreserve(prims_culled * Renderer::IdxConsumed, prims_culled * Renderer::VtxConsumed); prims_culled = 0; } cnt = ImMin(prims, (MaxIdx<ImDrawIdx>::Value - 0/*DrawList._VtxCurrentIdx*/) / Renderer::VtxConsumed); DrawList.PrimReserve(cnt * Renderer::IdxConsumed, cnt * Renderer::VtxConsumed); // reserve new draw command } prims -= cnt; for (unsigned int ie = idx + cnt; idx != ie; ++idx) { if (!renderer(DrawList, cull_rect, uv, idx)) prims_culled++; } } if (prims_culled > 0) DrawList.PrimUnreserve(prims_culled * Renderer::IdxConsumed, prims_culled * Renderer::VtxConsumed); }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rsi, %rbx movl 0x10(%rdi), %esi movq 0x38(%rbx), %rax movq (%rax), %rax movq %rax, 0x8(%rsp) testl %esi, %esi je 0x2a56ee movq %rdx, %r14 movq %rdi, %r15 xorl %r12d, %r12d leaq 0x8(%rsp), %rcx xorl %ebp, %ebp movl 0x34(%rbx), %edi movl %edi, %eax notl %eax shrl $0x3, %eax cmpl %eax, %esi movl %eax, %r13d cmovbl %esi, %r13d cmpl $0x40, %esi movl $0x40, %edx cmovbl %esi, %edx cmpl %edx, %eax jae 0x2a564c testl %ebp, %ebp je 0x2a5638 leal (,%rbp,4), %eax movl %esi, %r13d leal (%rax,%rax,2), %esi shll $0x3, %ebp movq %rbx, %rdi movl %ebp, %edx callq 0xe0140 movl %r13d, %esi movl $0x1fffffff, %eax # imm = 0x1FFFFFFF cmpl %eax, %esi movl $0x1fffffff, %edx # imm = 0x1FFFFFFF cmovbl %esi, %edx movl %edx, %r13d jmp 0x2a5658 movl %ebp, %eax subl %r13d, %eax jae 0x2a56c1 movl %r13d, %edx subl %ebp, %edx movl %esi, %ebp leal (,%rdx,4), %eax leal (%rax,%rax,2), %esi shll $0x3, %edx movq %rbx, %rdi callq 0xe3170 subl %r13d, %ebp movl %ebp, 0x4(%rsp) xorl %eax, %eax leaq 0x8(%rsp), %rcx leal (%r12,%r13), %edx movl %edx, 0x14(%rsp) movl %eax, %ebp movq %r15, %rdi movq %rbx, %rsi movq %r14, %rdx movl %r12d, %r8d callq 0xeba70 leaq 0x8(%rsp), %rcx xorb $0x1, %al movzbl %al, %eax addl %eax, %ebp incl %r12d decl %r13d jne 0x2a5687 movl 0x14(%rsp), %eax movl %eax, %r12d movl 0x4(%rsp), %esi testl %esi, %esi jne 0x2a55f5 jmp 0x2a56d3 subl %r13d, %esi cmpl $-0x9, %edi jbe 0x2a56cd movl %eax, %ebp jmp 0x2a56b7 movl %esi, 0x4(%rsp) jmp 0x2a567d testl %ebp, %ebp je 0x2a56ee leal (,%rbp,4), %eax leal (%rax,%rax,2), %esi shll $0x3, %ebp movq %rbx, %rdi movl %ebp, %edx callq 0xe0140 addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq nop
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
ImPlot::StairsRenderer<ImPlot::GetterYs<float>, ImPlot::TransformerLogLin>::operator()(ImDrawList&, ImRect const&, ImVec2 const&, int) const
inline bool operator()(ImDrawList& DrawList, const ImRect& cull_rect, const ImVec2& uv, int prim) const { ImVec2 P2 = Transformer(Getter(prim + 1)); if (!cull_rect.Overlaps(ImRect(ImMin(P1, P2), ImMax(P1, P2)))) { P1 = P2; return false; } AddRectFilled(ImVec2(P1.x, P1.y + HalfWeight), ImVec2(P2.x, P1.y - HalfWeight), Col, DrawList, uv); AddRectFilled(ImVec2(P2.x - HalfWeight, P2.y), ImVec2(P2.x + HalfWeight, P1.y), Col, DrawList, uv); // AddLine(P1, P12, Weight, Col, DrawList, uv); // AddLine(P12, P2, Weight, Col, DrawList, uv); P1 = P2; return true; }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rcx, %r15 movq %rdx, %r12 movq %rsi, %r14 movq %rdi, %rbx movq (%rdi), %rcx leal 0x1(%r8), %eax cvtsi2sd %eax, %xmm0 mulsd 0x10(%rcx), %xmm0 addsd 0x18(%rcx), %xmm0 movq 0x8(%rdi), %r13 movq (%rcx), %rsi movl 0x8(%rcx), %edi movslq 0x24(%rcx), %r8 addl 0x20(%rcx), %eax cltd idivl %edi leal (%rdx,%rdi), %eax cltd idivl %edi movslq %edx, %rax imulq %r8, %rax cvtss2sd (%rsi,%rax), %xmm1 movaps %xmm1, (%rsp) movq 0x1c48c0(%rip), %rax # 0x46a3f0 movq (%rax), %rbp movq 0x28(%rbp), %rax divsd 0x18(%rax), %xmm0 callq 0xe2ca0 divsd 0x1b8(%rbp), %xmm0 movq 0x28(%rbp), %rax movupd 0x18(%rax), %xmm1 cvtsd2ss %xmm0, %xmm0 movapd %xmm1, %xmm2 unpckhpd %xmm1, %xmm2 # xmm2 = xmm2[1],xmm1[1] subsd %xmm1, %xmm2 cvtss2sd %xmm0, %xmm0 mulsd %xmm2, %xmm0 addsd %xmm1, %xmm0 unpcklpd (%rsp), %xmm0 # xmm0 = xmm0[0],mem[0] movslq (%r13), %rcx movq %rcx, %rdx movsd 0x198(%rbp), %xmm2 movhpd 0x1a0(%rbp,%rcx,8), %xmm2 # xmm2 = xmm2[0],mem[0] shlq $0x4, %rcx cvtps2pd 0x164(%rbp,%rcx), %xmm3 shlq $0x7, %rdx movhpd 0x98(%rax,%rdx), %xmm1 # xmm1 = xmm1[0],mem[0] subpd %xmm1, %xmm0 mulpd %xmm0, %xmm2 addpd %xmm3, %xmm2 cvtpd2ps %xmm2, %xmm0 movapd %xmm0, %xmm2 unpcklpd %xmm0, %xmm2 # xmm2 = xmm2[0],xmm0[0] movsd 0x1c(%rbx), %xmm1 movaps %xmm1, %xmm3 movlhps %xmm1, %xmm3 # xmm3 = xmm3[0],xmm1[0] movapd %xmm2, %xmm4 cmpleps %xmm3, %xmm4 movaps %xmm3, %xmm5 cmpltps %xmm2, %xmm5 movsd %xmm4, %xmm5 # xmm5 = xmm4[0],xmm5[1] andps %xmm5, %xmm3 andnps %xmm2, %xmm5 orps %xmm3, %xmm5 movups (%r12), %xmm2 movaps %xmm2, %xmm3 cmpltps %xmm5, %xmm3 cmpltps %xmm2, %xmm5 movsd %xmm3, %xmm5 # xmm5 = xmm3[0],xmm5[1] movmskps %xmm5, %eax cmpl $0xf, %eax jne 0x2a5d92 movss 0x18(%rbx), %xmm2 movaps %xmm1, %xmm3 shufps $0x55, %xmm1, %xmm3 # xmm3 = xmm3[1,1],xmm1[1,1] movaps %xmm3, %xmm4 addss %xmm2, %xmm4 subss %xmm2, %xmm3 movl 0x14(%rbx), %edx movsd (%r15), %xmm2 movq 0x48(%r14), %rcx movss %xmm1, (%rcx) movss %xmm4, 0x4(%rcx) movq 0x48(%r14), %rcx movsd %xmm2, 0x8(%rcx) movq 0x48(%r14), %rcx movl %edx, 0x10(%rcx) movss %xmm0, 0x14(%rcx) movss %xmm3, 0x18(%rcx) movq 0x48(%r14), %rcx movsd %xmm2, 0x1c(%rcx) movq 0x48(%r14), %rcx movl %edx, 0x24(%rcx) movss %xmm1, 0x28(%rcx) movss %xmm3, 0x2c(%rcx) movsd %xmm2, 0x30(%rcx) movq 0x48(%r14), %rcx movl %edx, 0x38(%rcx) movss %xmm0, 0x3c(%rcx) movss %xmm4, 0x40(%rcx) movsd %xmm2, 0x44(%rcx) movq 0x48(%r14), %rcx movl %edx, 0x4c(%rcx) leaq 0x50(%rcx), %rdx movq %rdx, 0x48(%r14) movl 0x34(%r14), %edx movq 0x50(%r14), %rsi movl %edx, (%rsi) incl %edx movl %edx, 0x4(%rsi) movl 0x34(%r14), %edx addl $0x2, %edx movl %edx, 0x8(%rsi) movl 0x34(%r14), %edx movl %edx, 0xc(%rsi) incl %edx movl %edx, 0x10(%rsi) movl 0x34(%r14), %edx addl $0x3, %edx movl %edx, 0x14(%rsi) addq $0x18, %rsi movq %rsi, 0x50(%r14) addl $0x4, 0x34(%r14) movss 0x18(%rbx), %xmm1 movapd %xmm0, %xmm2 subss %xmm1, %xmm2 addss %xmm0, %xmm1 movss 0x20(%rbx), %xmm3 movl 0x14(%rbx), %edx movsd (%r15), %xmm4 movss %xmm2, 0x50(%rcx) movaps %xmm0, %xmm5 shufps $0x55, %xmm0, %xmm5 # xmm5 = xmm5[1,1],xmm0[1,1] movss %xmm5, 0x54(%rcx) movq 0x48(%r14), %rcx movsd %xmm4, 0x8(%rcx) movq 0x48(%r14), %rcx movl %edx, 0x10(%rcx) movss %xmm1, 0x14(%rcx) movss %xmm3, 0x18(%rcx) movq 0x48(%r14), %rcx movsd %xmm4, 0x1c(%rcx) movq 0x48(%r14), %rcx movl %edx, 0x24(%rcx) movss %xmm2, 0x28(%rcx) movss %xmm3, 0x2c(%rcx) movsd %xmm4, 0x30(%rcx) movq 0x48(%r14), %rcx movl %edx, 0x38(%rcx) movss %xmm1, 0x3c(%rcx) movss %xmm5, 0x40(%rcx) movsd %xmm4, 0x44(%rcx) movq 0x48(%r14), %rcx movl %edx, 0x4c(%rcx) addq $0x50, %rcx movq %rcx, 0x48(%r14) movl 0x34(%r14), %ecx movq 0x50(%r14), %rdx movl %ecx, (%rdx) incl %ecx movl %ecx, 0x4(%rdx) movl 0x34(%r14), %ecx addl $0x2, %ecx movl %ecx, 0x8(%rdx) movl 0x34(%r14), %ecx movl %ecx, 0xc(%rdx) incl %ecx movl %ecx, 0x10(%rdx) movl 0x34(%r14), %ecx addl $0x3, %ecx movl %ecx, 0x14(%rdx) addq $0x18, %rdx movq %rdx, 0x50(%r14) addl $0x4, 0x34(%r14) cmpb $0xf, %al sete %al movlpd %xmm0, 0x1c(%rbx) addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
void ImPlot::RenderStairs<ImPlot::GetterYs<double>, ImPlot::TransformerLinLin>(ImPlot::GetterYs<double> const&, ImPlot::TransformerLinLin const&, ImDrawList&, float, unsigned int)
inline void RenderStairs(const Getter& getter, const Transformer& transformer, ImDrawList& DrawList, float line_weight, ImU32 col) { ImPlotContext& gp = *GImPlot; if (ImHasFlag(gp.CurrentPlot->Flags, ImPlotFlags_AntiAliased) || gp.Style.AntiAliasedLines) { ImVec2 p1 = transformer(getter(0)); for (int i = 1; i < getter.Count; ++i) { ImVec2 p2 = transformer(getter(i)); if (gp.CurrentPlot->PlotRect.Overlaps(ImRect(ImMin(p1, p2), ImMax(p1, p2)))) { ImVec2 p12(p2.x, p1.y); DrawList.AddLine(p1, p12, col, line_weight); DrawList.AddLine(p12, p2, col, line_weight); } p1 = p2; } } else { RenderPrimitives(StairsRenderer<Getter,Transformer>(getter, transformer, col, line_weight), DrawList, gp.CurrentPlot->PlotRect); } }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x48, %rsp movl %ecx, 0x4(%rsp) movss %xmm0, (%rsp) movq %rdx, 0x10(%rsp) movq %rsi, %rbx movq %rdi, %r15 movq 0x1c3d34(%rip), %rax # 0x46a3f0 movq (%rax), %r12 movq 0x28(%r12), %rcx testb $0x10, 0x5(%rcx) jne 0x2a66d9 cmpb $0x1, 0x448(%r12) jne 0x2a691d xorpd %xmm0, %xmm0 mulsd 0x10(%r15), %xmm0 addsd 0x18(%r15), %xmm0 movq (%r15), %rdi movl 0x8(%r15), %esi movl 0x20(%r15), %eax movslq 0x24(%r15), %r8 cltd idivl %esi leal (%rdx,%rsi), %eax cltd idivl %esi movslq %edx, %rax imulq %r8, %rax movslq (%rbx), %rdx movq %rdx, %r8 movsd 0x1a0(%r12,%rdx,8), %xmm1 shlq $0x4, %rdx shlq $0x7, %r8 cvtps2pd 0x164(%r12,%rdx), %xmm2 movsd (%rdi,%rax), %xmm3 unpcklpd %xmm0, %xmm3 # xmm3 = xmm3[0],xmm0[0] movsd 0x98(%rcx,%r8), %xmm0 movhpd 0x18(%rcx), %xmm0 # xmm0 = xmm0[0],mem[0] subpd %xmm0, %xmm3 shufpd $0x1, %xmm2, %xmm2 # xmm2 = xmm2[1,0] movhpd 0x198(%r12), %xmm1 # xmm1 = xmm1[0],mem[0] mulpd %xmm3, %xmm1 addpd %xmm2, %xmm1 cvtpd2ps %xmm1, %xmm0 movapd %xmm0, %xmm1 shufps $0xe1, %xmm0, %xmm1 # xmm1 = xmm1[1,0],xmm0[2,3] movlps %xmm1, 0x20(%rsp) cmpl $0x2, %esi jl 0x2a69e2 movl $0x1, %r13d movq %r12, %rcx movq 0x10(%rsp), %rbp movl 0x4(%rsp), %r14d xorps %xmm1, %xmm1 cvtsi2sd %r13d, %xmm1 mulsd 0x10(%r15), %xmm1 addsd 0x18(%r15), %xmm1 movq (%r15), %rdi movslq 0x24(%r15), %r8 movl 0x20(%r15), %eax addl %r13d, %eax cltd idivl %esi leal (%rdx,%rsi), %eax cltd idivl %esi movslq %edx, %rax imulq %r8, %rax movslq (%rbx), %rdx movq %rdx, %r8 movsd 0x198(%rcx), %xmm2 movhpd 0x1a0(%rcx,%rdx,8), %xmm2 # xmm2 = xmm2[0],mem[0] shlq $0x4, %rdx movq 0x28(%rcx), %r9 shlq $0x7, %r8 cvtps2pd 0x164(%rcx,%rdx), %xmm3 movhpd (%rdi,%rax), %xmm1 # xmm1 = xmm1[0],mem[0] movsd 0x18(%r9), %xmm4 movhpd 0x98(%r9,%r8), %xmm4 # xmm4 = xmm4[0],mem[0] subpd %xmm4, %xmm1 mulpd %xmm1, %xmm2 addpd %xmm3, %xmm2 cvtpd2ps %xmm2, %xmm1 movlpd %xmm1, 0x18(%rsp) movq 0x28(%r12), %rdx movq %xmm1, %rax movapd %xmm1, %xmm3 shufps $0x55, %xmm1, %xmm3 # xmm3 = xmm3[1,1],xmm1[1,1] movaps %xmm0, %xmm2 minss %xmm3, %xmm2 movss 0x2c4(%rdx), %xmm4 ucomiss %xmm2, %xmm4 shufps $0x51, %xmm1, %xmm1 # xmm1 = xmm1[1,0,1,1] jbe 0x2a6904 movaps %xmm3, %xmm4 cmpless %xmm0, %xmm4 movaps %xmm4, %xmm5 andps %xmm0, %xmm5 andnps %xmm3, %xmm4 orps %xmm5, %xmm4 ucomiss 0x2bc(%rdx), %xmm4 jbe 0x2a6904 movaps %xmm0, %xmm2 movd %eax, %xmm3 shufps $0x55, %xmm0, %xmm0 # xmm0 = xmm0[1,1,1,1] movaps %xmm0, %xmm4 minss %xmm3, %xmm4 movss 0x2c0(%rdx), %xmm5 ucomiss %xmm4, %xmm5 jbe 0x2a6904 movaps %xmm3, %xmm4 cmpless %xmm0, %xmm4 movaps %xmm4, %xmm5 andnps %xmm3, %xmm5 andps %xmm0, %xmm4 orps %xmm5, %xmm4 ucomiss 0x2b8(%rdx), %xmm4 jbe 0x2a6904 movl %eax, 0x8(%rsp) movss %xmm2, 0xc(%rsp) movq %rbp, %rdi leaq 0x20(%rsp), %rsi leaq 0x8(%rsp), %rdx movl %r14d, %ecx movss (%rsp), %xmm0 callq 0xe5ce0 movq %rbp, %rdi leaq 0x8(%rsp), %rsi leaq 0x18(%rsp), %rdx movl %r14d, %ecx movss (%rsp), %xmm0 callq 0xe5ce0 movq 0x1c3b0b(%rip), %rax # 0x46a3f0 movq (%rax), %rcx movq 0x18(%rsp), %rax movl 0x8(%r15), %esi movq %rax, %rdx shrq $0x20, %rdx movd %eax, %xmm0 movd %edx, %xmm1 punpckldq %xmm0, %xmm1 # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1] movq %rax, 0x20(%rsp) incl %r13d movaps %xmm1, %xmm0 cmpl %esi, %r13d jl 0x2a6789 jmp 0x2a69e2 leaq 0x20(%rsp), %rdi movq %r15, (%rdi) movq %rbx, 0x8(%rdi) movl 0x8(%r15), %r8d leal -0x1(%r8), %eax movl %eax, 0x10(%rdi) movl 0x4(%rsp), %eax movl %eax, 0x14(%rdi) movss (%rsp), %xmm0 mulss 0xdc840(%rip), %xmm0 # 0x383188 movss %xmm0, 0x18(%rdi) xorps %xmm0, %xmm0 mulsd 0x10(%r15), %xmm0 addsd 0x18(%r15), %xmm0 movq (%r15), %rsi movl 0x20(%r15), %eax movslq 0x24(%r15), %r9 cltd idivl %r8d leal (%rdx,%r8), %eax cltd idivl %r8d movslq %edx, %rax imulq %r9, %rax movslq (%rbx), %rdx movq %rdx, %r8 movsd 0x198(%r12), %xmm1 movhpd 0x1a0(%r12,%rdx,8), %xmm1 # xmm1 = xmm1[0],mem[0] shlq $0x4, %rdx shlq $0x7, %r8 movhpd (%rsi,%rax), %xmm0 # xmm0 = xmm0[0],mem[0] movsd 0x18(%rcx), %xmm2 movhpd 0x98(%rcx,%r8), %xmm2 # xmm2 = xmm2[0],mem[0] subpd %xmm2, %xmm0 cvtps2pd 0x164(%r12,%rdx), %xmm2 mulpd %xmm0, %xmm1 addpd %xmm2, %xmm1 cvtpd2ps %xmm1, %xmm0 movlpd %xmm0, 0x1c(%rdi) addq $0x2b8, %rcx # imm = 0x2B8 movq 0x10(%rsp), %rsi movq %rcx, %rdx callq 0xec360 addq $0x48, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
void ImPlot::RenderStairs<ImPlot::GetterYs<double>, ImPlot::TransformerLogLog>(ImPlot::GetterYs<double> const&, ImPlot::TransformerLogLog const&, ImDrawList&, float, unsigned int)
inline void RenderStairs(const Getter& getter, const Transformer& transformer, ImDrawList& DrawList, float line_weight, ImU32 col) { ImPlotContext& gp = *GImPlot; if (ImHasFlag(gp.CurrentPlot->Flags, ImPlotFlags_AntiAliased) || gp.Style.AntiAliasedLines) { ImVec2 p1 = transformer(getter(0)); for (int i = 1; i < getter.Count; ++i) { ImVec2 p2 = transformer(getter(i)); if (gp.CurrentPlot->PlotRect.Overlaps(ImRect(ImMin(p1, p2), ImMax(p1, p2)))) { ImVec2 p12(p2.x, p1.y); DrawList.AddLine(p1, p12, col, line_weight); DrawList.AddLine(p12, p2, col, line_weight); } p1 = p2; } } else { RenderPrimitives(StairsRenderer<Getter,Transformer>(getter, transformer, col, line_weight), DrawList, gp.CurrentPlot->PlotRect); } }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x98, %rsp movl %ecx, 0x24(%rsp) movss %xmm0, 0xc(%rsp) movq %rdx, 0x60(%rsp) movq %rsi, %r14 movq %rdi, %r15 movq 0x1c317c(%rip), %r12 # 0x46a3f0 movq (%r12), %r13 movq 0x28(%r13), %rcx testb $0x10, 0x5(%rcx) jne 0x2a7290 cmpb $0x1, 0x448(%r13) jne 0x2a75fd xorpd %xmm0, %xmm0 mulsd 0x10(%r15), %xmm0 addsd 0x18(%r15), %xmm0 movq (%r15), %rsi movl 0x8(%r15), %edi movl 0x20(%r15), %eax movslq 0x24(%r15), %r8 cltd idivl %edi leal (%rdx,%rdi), %eax cltd idivl %edi movslq %edx, %rax imulq %r8, %rax movsd (%rsi,%rax), %xmm1 movsd %xmm1, 0x10(%rsp) divsd 0x18(%rcx), %xmm0 callq 0xe2ca0 movq 0x28(%r13), %rax movslq (%r14), %rcx shlq $0x7, %rcx movsd 0x10(%rsp), %xmm1 divsd 0x98(%rax,%rcx), %xmm1 movapd %xmm0, 0x40(%rsp) movsd 0x1b8(%r13), %xmm0 movaps %xmm0, 0x30(%rsp) movsd 0x18(%rax), %xmm0 movaps %xmm0, 0x10(%rsp) movsd 0x20(%rax), %xmm0 movaps %xmm0, 0x50(%rsp) movapd %xmm1, %xmm0 callq 0xe2ca0 movslq (%r14), %rdx movq 0x28(%r13), %rax movq %rdx, %rcx movapd 0x30(%rsp), %xmm2 movhpd 0x1c0(%r13,%rdx,8), %xmm2 # xmm2 = xmm2[0],mem[0] movapd 0x40(%rsp), %xmm1 unpcklpd %xmm0, %xmm1 # xmm1 = xmm1[0],xmm0[0] movsd 0x198(%r13), %xmm0 movhpd 0x1a0(%r13,%rdx,8), %xmm0 # xmm0 = xmm0[0],mem[0] shlq $0x7, %rdx shlq $0x4, %rcx divpd %xmm2, %xmm1 cvtpd2ps %xmm1, %xmm1 movapd 0x50(%rsp), %xmm5 movhpd 0xa0(%rax,%rdx), %xmm5 # xmm5 = xmm5[0],mem[0] movsd 0x98(%rax,%rdx), %xmm2 movapd 0x10(%rsp), %xmm3 unpcklpd %xmm2, %xmm3 # xmm3 = xmm3[0],xmm2[0] cvtps2pd %xmm1, %xmm1 subpd %xmm3, %xmm5 movapd %xmm3, %xmm4 mulpd %xmm5, %xmm1 cvtps2pd 0x164(%r13,%rcx), %xmm3 addpd %xmm4, %xmm1 movsd 0x18(%rax), %xmm4 unpcklpd %xmm2, %xmm4 # xmm4 = xmm4[0],xmm2[0] subpd %xmm4, %xmm1 mulpd %xmm1, %xmm0 addpd %xmm3, %xmm0 cvtpd2ps %xmm0, %xmm0 movlpd %xmm0, 0x70(%rsp) movl 0x8(%r15), %ecx cmpl $0x2, %ecx jl 0x2a7774 movl $0x1, %ebx xorps %xmm0, %xmm0 cvtsi2sd %ebx, %xmm0 mulsd 0x10(%r15), %xmm0 addsd 0x18(%r15), %xmm0 movq (%r15), %rsi movslq 0x24(%r15), %rdi movl 0x20(%r15), %eax addl %ebx, %eax cltd idivl %ecx leal (%rdx,%rcx), %eax cltd idivl %ecx movslq %edx, %rax imulq %rdi, %rax movsd (%rsi,%rax), %xmm1 movsd %xmm1, 0x10(%rsp) movq (%r12), %rbp movq 0x28(%rbp), %rax divsd 0x18(%rax), %xmm0 callq 0xe2ca0 movq 0x28(%rbp), %rax movslq (%r14), %rcx shlq $0x7, %rcx movsd 0x10(%rsp), %xmm1 divsd 0x98(%rax,%rcx), %xmm1 movapd %xmm0, 0x30(%rsp) movsd 0x1b8(%rbp), %xmm0 movaps %xmm0, 0x40(%rsp) movsd 0x18(%rax), %xmm0 movaps %xmm0, 0x10(%rsp) movsd 0x20(%rax), %xmm0 movaps %xmm0, 0x50(%rsp) movapd %xmm1, %xmm0 callq 0xe2ca0 movslq (%r14), %rdx movq 0x28(%rbp), %rax movq %rdx, %rcx movapd 0x30(%rsp), %xmm1 unpcklpd %xmm0, %xmm1 # xmm1 = xmm1[0],xmm0[0] movapd 0x40(%rsp), %xmm2 movhpd 0x1c0(%rbp,%rdx,8), %xmm2 # xmm2 = xmm2[0],mem[0] movsd 0x198(%rbp), %xmm0 movhpd 0x1a0(%rbp,%rdx,8), %xmm0 # xmm0 = xmm0[0],mem[0] shlq $0x7, %rdx shlq $0x4, %rcx divpd %xmm2, %xmm1 cvtpd2ps %xmm1, %xmm1 movapd 0x50(%rsp), %xmm4 movhpd 0xa0(%rax,%rdx), %xmm4 # xmm4 = xmm4[0],mem[0] movsd 0x98(%rax,%rdx), %xmm2 movapd 0x10(%rsp), %xmm3 unpcklpd %xmm2, %xmm3 # xmm3 = xmm3[0],xmm2[0] subpd %xmm3, %xmm4 cvtps2pd %xmm1, %xmm1 mulpd %xmm4, %xmm1 addpd %xmm3, %xmm1 cvtps2pd 0x164(%rbp,%rcx), %xmm3 movsd 0x18(%rax), %xmm4 unpcklpd %xmm2, %xmm4 # xmm4 = xmm4[0],xmm2[0] subpd %xmm4, %xmm1 mulpd %xmm1, %xmm0 addpd %xmm3, %xmm0 cvtpd2ps %xmm0, %xmm1 movlpd %xmm1, 0x68(%rsp) movq 0x28(%r13), %rcx movss 0x74(%rsp), %xmm0 movq %xmm1, %rax shufps $0x55, %xmm1, %xmm1 # xmm1 = xmm1[1,1,1,1] movaps %xmm0, %xmm2 minss %xmm1, %xmm2 movss 0x2c4(%rcx), %xmm3 ucomiss %xmm2, %xmm3 jbe 0x2a75e5 movaps %xmm1, %xmm2 cmpless %xmm0, %xmm2 movaps %xmm2, %xmm3 andps %xmm0, %xmm3 andnps %xmm1, %xmm2 orps %xmm3, %xmm2 ucomiss 0x2bc(%rcx), %xmm2 jbe 0x2a75e5 movss 0x70(%rsp), %xmm1 movd %eax, %xmm2 movaps %xmm1, %xmm3 minss %xmm2, %xmm3 movss 0x2c0(%rcx), %xmm4 ucomiss %xmm3, %xmm4 jbe 0x2a75e5 movaps %xmm2, %xmm3 cmpless %xmm1, %xmm3 movaps %xmm3, %xmm4 andnps %xmm2, %xmm4 andps %xmm1, %xmm3 orps %xmm4, %xmm3 ucomiss 0x2b8(%rcx), %xmm3 jbe 0x2a75e5 movl %eax, 0x28(%rsp) movss %xmm0, 0x2c(%rsp) movq 0x60(%rsp), %rbp movq %rbp, %rdi leaq 0x70(%rsp), %rsi leaq 0x28(%rsp), %rdx movl 0x24(%rsp), %r12d movl %r12d, %ecx movss 0xc(%rsp), %xmm0 callq 0xe5ce0 movq %rbp, %rdi leaq 0x28(%rsp), %rsi leaq 0x68(%rsp), %rdx movl %r12d, %ecx movq 0x1c2e1b(%rip), %r12 # 0x46a3f0 movss 0xc(%rsp), %xmm0 callq 0xe5ce0 movq 0x68(%rsp), %rax movq %rax, 0x70(%rsp) incl %ebx movl 0x8(%r15), %ecx cmpl %ecx, %ebx jl 0x2a73d5 jmp 0x2a7774 leaq 0x70(%rsp), %r12 movq %r15, (%r12) movq %r14, 0x8(%r12) movl 0x8(%r15), %esi leal -0x1(%rsi), %eax movl %eax, 0x10(%r12) movl 0x24(%rsp), %eax movl %eax, 0x14(%r12) movss 0xc(%rsp), %xmm0 mulss 0xdbb5a(%rip), %xmm0 # 0x383188 movss %xmm0, 0x18(%r12) xorps %xmm0, %xmm0 mulsd 0x10(%r15), %xmm0 addsd 0x18(%r15), %xmm0 movq (%r15), %rdi movl 0x20(%r15), %eax movslq 0x24(%r15), %r8 cltd idivl %esi leal (%rdx,%rsi), %eax cltd idivl %esi movslq %edx, %rax imulq %r8, %rax movsd (%rdi,%rax), %xmm1 movsd %xmm1, 0x10(%rsp) divsd 0x18(%rcx), %xmm0 callq 0xe2ca0 movq 0x28(%r13), %rax movslq (%r14), %rcx shlq $0x7, %rcx movsd 0x10(%rsp), %xmm1 divsd 0x98(%rax,%rcx), %xmm1 movapd %xmm0, 0x30(%rsp) movsd 0x1b8(%r13), %xmm0 movaps %xmm0, 0x40(%rsp) movsd 0x18(%rax), %xmm0 movaps %xmm0, 0x10(%rsp) movsd 0x20(%rax), %xmm0 movaps %xmm0, 0x50(%rsp) movapd %xmm1, %xmm0 callq 0xe2ca0 movslq (%r14), %rcx movq 0x28(%r13), %rdx movq %rcx, %rax movapd 0x30(%rsp), %xmm1 unpcklpd %xmm0, %xmm1 # xmm1 = xmm1[0],xmm0[0] movapd 0x40(%rsp), %xmm2 movhpd 0x1c0(%r13,%rcx,8), %xmm2 # xmm2 = xmm2[0],mem[0] movsd 0x198(%r13), %xmm0 movhpd 0x1a0(%r13,%rcx,8), %xmm0 # xmm0 = xmm0[0],mem[0] shlq $0x7, %rcx shlq $0x4, %rax divpd %xmm2, %xmm1 cvtpd2ps %xmm1, %xmm1 movapd 0x50(%rsp), %xmm4 movhpd 0xa0(%rdx,%rcx), %xmm4 # xmm4 = xmm4[0],mem[0] movsd 0x98(%rdx,%rcx), %xmm2 movapd 0x10(%rsp), %xmm3 unpcklpd %xmm2, %xmm3 # xmm3 = xmm3[0],xmm2[0] subpd %xmm3, %xmm4 cvtps2pd %xmm1, %xmm1 mulpd %xmm4, %xmm1 addpd %xmm3, %xmm1 cvtps2pd 0x164(%r13,%rax), %xmm3 movsd 0x18(%rdx), %xmm4 unpcklpd %xmm2, %xmm4 # xmm4 = xmm4[0],xmm2[0] subpd %xmm4, %xmm1 mulpd %xmm1, %xmm0 addpd %xmm3, %xmm0 cvtpd2ps %xmm0, %xmm0 movlpd %xmm0, 0x1c(%r12) addq $0x2b8, %rdx # imm = 0x2B8 movq %r12, %rdi movq 0x60(%rsp), %rsi callq 0xe0ad0 addq $0x98, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
ImPlot::StairsRenderer<ImPlot::GetterYs<double>, ImPlot::TransformerLinLin>::operator()(ImDrawList&, ImRect const&, ImVec2 const&, int) const
inline bool operator()(ImDrawList& DrawList, const ImRect& cull_rect, const ImVec2& uv, int prim) const { ImVec2 P2 = Transformer(Getter(prim + 1)); if (!cull_rect.Overlaps(ImRect(ImMin(P1, P2), ImMax(P1, P2)))) { P1 = P2; return false; } AddRectFilled(ImVec2(P1.x, P1.y + HalfWeight), ImVec2(P2.x, P1.y - HalfWeight), Col, DrawList, uv); AddRectFilled(ImVec2(P2.x - HalfWeight, P2.y), ImVec2(P2.x + HalfWeight, P1.y), Col, DrawList, uv); // AddLine(P1, P12, Weight, Col, DrawList, uv); // AddLine(P12, P2, Weight, Col, DrawList, uv); P1 = P2; return true; }
pushq %rbx movq %rdx, %r9 movq (%rdi), %rdx leal 0x1(%r8), %eax cvtsi2sd %eax, %xmm0 mulsd 0x10(%rdx), %xmm0 addsd 0x18(%rdx), %xmm0 movq 0x8(%rdi), %r10 movq (%rdx), %r8 movl 0x8(%rdx), %r11d movslq 0x24(%rdx), %rbx addl 0x20(%rdx), %eax cltd idivl %r11d leal (%rdx,%r11), %eax cltd idivl %r11d movslq %edx, %rax imulq %rbx, %rax movq 0x1c2ae5(%rip), %rdx # 0x46a3f0 movq (%rdx), %rdx movslq (%r10), %r10 movq %r10, %r11 movsd 0x198(%rdx), %xmm1 movhpd 0x1a0(%rdx,%r10,8), %xmm1 # xmm1 = xmm1[0],mem[0] shlq $0x4, %r10 movq 0x28(%rdx), %rbx shlq $0x7, %r11 cvtps2pd 0x164(%rdx,%r10), %xmm2 movhpd (%r8,%rax), %xmm0 # xmm0 = xmm0[0],mem[0] movsd 0x18(%rbx), %xmm3 movhpd 0x98(%rbx,%r11), %xmm3 # xmm3 = xmm3[0],mem[0] subpd %xmm3, %xmm0 mulpd %xmm0, %xmm1 addpd %xmm2, %xmm1 cvtpd2ps %xmm1, %xmm0 movapd %xmm0, %xmm2 unpcklpd %xmm0, %xmm2 # xmm2 = xmm2[0],xmm0[0] movsd 0x1c(%rdi), %xmm1 movaps %xmm1, %xmm3 movlhps %xmm1, %xmm3 # xmm3 = xmm3[0],xmm1[0] movapd %xmm2, %xmm4 cmpleps %xmm3, %xmm4 movaps %xmm3, %xmm5 cmpltps %xmm2, %xmm5 movsd %xmm4, %xmm5 # xmm5 = xmm4[0],xmm5[1] andps %xmm5, %xmm3 andnps %xmm2, %xmm5 orps %xmm3, %xmm5 movups (%r9), %xmm2 movaps %xmm2, %xmm3 cmpltps %xmm5, %xmm3 cmpltps %xmm2, %xmm5 movsd %xmm3, %xmm5 # xmm5 = xmm3[0],xmm5[1] movmskps %xmm5, %eax cmpl $0xf, %eax jne 0x2a7b49 movss 0x18(%rdi), %xmm2 movaps %xmm1, %xmm3 shufps $0x55, %xmm1, %xmm3 # xmm3 = xmm3[1,1],xmm1[1,1] movaps %xmm3, %xmm4 addss %xmm2, %xmm4 subss %xmm2, %xmm3 movl 0x14(%rdi), %r8d movsd (%rcx), %xmm2 movq 0x48(%rsi), %rdx movss %xmm1, (%rdx) movss %xmm4, 0x4(%rdx) movq 0x48(%rsi), %rdx movsd %xmm2, 0x8(%rdx) movq 0x48(%rsi), %rdx movl %r8d, 0x10(%rdx) movss %xmm0, 0x14(%rdx) movss %xmm3, 0x18(%rdx) movq 0x48(%rsi), %rdx movsd %xmm2, 0x1c(%rdx) movq 0x48(%rsi), %rdx movl %r8d, 0x24(%rdx) movss %xmm1, 0x28(%rdx) movss %xmm3, 0x2c(%rdx) movsd %xmm2, 0x30(%rdx) movq 0x48(%rsi), %rdx movl %r8d, 0x38(%rdx) movss %xmm0, 0x3c(%rdx) movss %xmm4, 0x40(%rdx) movsd %xmm2, 0x44(%rdx) movq 0x48(%rsi), %rdx movl %r8d, 0x4c(%rdx) leaq 0x50(%rdx), %r8 movq %r8, 0x48(%rsi) movl 0x34(%rsi), %r8d movq 0x50(%rsi), %r9 movl %r8d, (%r9) incl %r8d movl %r8d, 0x4(%r9) movl 0x34(%rsi), %r8d addl $0x2, %r8d movl %r8d, 0x8(%r9) movl 0x34(%rsi), %r8d movl %r8d, 0xc(%r9) incl %r8d movl %r8d, 0x10(%r9) movl 0x34(%rsi), %r8d addl $0x3, %r8d movl %r8d, 0x14(%r9) addq $0x18, %r9 movq %r9, 0x50(%rsi) addl $0x4, 0x34(%rsi) movss 0x18(%rdi), %xmm1 movapd %xmm0, %xmm2 subss %xmm1, %xmm2 addss %xmm0, %xmm1 movss 0x20(%rdi), %xmm3 movl 0x14(%rdi), %r8d movsd (%rcx), %xmm4 movss %xmm2, 0x50(%rdx) movaps %xmm0, %xmm5 shufps $0x55, %xmm0, %xmm5 # xmm5 = xmm5[1,1],xmm0[1,1] movss %xmm5, 0x54(%rdx) movq 0x48(%rsi), %rcx movsd %xmm4, 0x8(%rcx) movq 0x48(%rsi), %rcx movl %r8d, 0x10(%rcx) movss %xmm1, 0x14(%rcx) movss %xmm3, 0x18(%rcx) movq 0x48(%rsi), %rcx movsd %xmm4, 0x1c(%rcx) movq 0x48(%rsi), %rcx movl %r8d, 0x24(%rcx) movss %xmm2, 0x28(%rcx) movss %xmm3, 0x2c(%rcx) movsd %xmm4, 0x30(%rcx) movq 0x48(%rsi), %rcx movl %r8d, 0x38(%rcx) movss %xmm1, 0x3c(%rcx) movss %xmm5, 0x40(%rcx) movsd %xmm4, 0x44(%rcx) movq 0x48(%rsi), %rcx movl %r8d, 0x4c(%rcx) addq $0x50, %rcx movq %rcx, 0x48(%rsi) movl 0x34(%rsi), %ecx movq 0x50(%rsi), %rdx movl %ecx, (%rdx) incl %ecx movl %ecx, 0x4(%rdx) movl 0x34(%rsi), %ecx addl $0x2, %ecx movl %ecx, 0x8(%rdx) movl 0x34(%rsi), %ecx movl %ecx, 0xc(%rdx) incl %ecx movl %ecx, 0x10(%rdx) movl 0x34(%rsi), %ecx addl $0x3, %ecx movl %ecx, 0x14(%rdx) addq $0x18, %rdx movq %rdx, 0x50(%rsi) addl $0x4, 0x34(%rsi) cmpb $0xf, %al sete %al movlpd %xmm0, 0x1c(%rdi) popq %rbx retq
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
void ImPlot::RenderPrimitives<ImPlot::StairsRenderer<ImPlot::GetterYs<double>, ImPlot::TransformerLinLog>>(ImPlot::StairsRenderer<ImPlot::GetterYs<double>, ImPlot::TransformerLinLog> const&, ImDrawList&, ImRect const&)
inline void RenderPrimitives(const Renderer& renderer, ImDrawList& DrawList, const ImRect& cull_rect) { unsigned int prims = renderer.Prims; unsigned int prims_culled = 0; unsigned int idx = 0; const ImVec2 uv = DrawList._Data->TexUvWhitePixel; while (prims) { // find how many can be reserved up to end of current draw command's limit unsigned int cnt = ImMin(prims, (MaxIdx<ImDrawIdx>::Value - DrawList._VtxCurrentIdx) / Renderer::VtxConsumed); // make sure at least this many elements can be rendered to avoid situations where at the end of buffer this slow path is not taken all the time if (cnt >= ImMin(64u, prims)) { if (prims_culled >= cnt) prims_culled -= cnt; // reuse previous reservation else { DrawList.PrimReserve((cnt - prims_culled) * Renderer::IdxConsumed, (cnt - prims_culled) * Renderer::VtxConsumed); // add more elements to previous reservation prims_culled = 0; } } else { if (prims_culled > 0) { DrawList.PrimUnreserve(prims_culled * Renderer::IdxConsumed, prims_culled * Renderer::VtxConsumed); prims_culled = 0; } cnt = ImMin(prims, (MaxIdx<ImDrawIdx>::Value - 0/*DrawList._VtxCurrentIdx*/) / Renderer::VtxConsumed); DrawList.PrimReserve(cnt * Renderer::IdxConsumed, cnt * Renderer::VtxConsumed); // reserve new draw command } prims -= cnt; for (unsigned int ie = idx + cnt; idx != ie; ++idx) { if (!renderer(DrawList, cull_rect, uv, idx)) prims_culled++; } } if (prims_culled > 0) DrawList.PrimUnreserve(prims_culled * Renderer::IdxConsumed, prims_culled * Renderer::VtxConsumed); }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rsi, %rbx movl 0x10(%rdi), %esi movq 0x38(%rbx), %rax movq (%rax), %rax movq %rax, 0x8(%rsp) testl %esi, %esi je 0x2a80a2 movq %rdx, %r14 movq %rdi, %r15 xorl %r12d, %r12d leaq 0x8(%rsp), %rcx xorl %ebp, %ebp movl 0x34(%rbx), %edi movl %edi, %eax notl %eax shrl $0x3, %eax cmpl %eax, %esi movl %eax, %r13d cmovbl %esi, %r13d cmpl $0x40, %esi movl $0x40, %edx cmovbl %esi, %edx cmpl %edx, %eax jae 0x2a8000 testl %ebp, %ebp je 0x2a7fec leal (,%rbp,4), %eax movl %esi, %r13d leal (%rax,%rax,2), %esi shll $0x3, %ebp movq %rbx, %rdi movl %ebp, %edx callq 0xe0140 movl %r13d, %esi movl $0x1fffffff, %eax # imm = 0x1FFFFFFF cmpl %eax, %esi movl $0x1fffffff, %edx # imm = 0x1FFFFFFF cmovbl %esi, %edx movl %edx, %r13d jmp 0x2a800c movl %ebp, %eax subl %r13d, %eax jae 0x2a8075 movl %r13d, %edx subl %ebp, %edx movl %esi, %ebp leal (,%rdx,4), %eax leal (%rax,%rax,2), %esi shll $0x3, %edx movq %rbx, %rdi callq 0xe3170 subl %r13d, %ebp movl %ebp, 0x4(%rsp) xorl %eax, %eax leaq 0x8(%rsp), %rcx leal (%r12,%r13), %edx movl %edx, 0x14(%rsp) movl %eax, %ebp movq %r15, %rdi movq %rbx, %rsi movq %r14, %rdx movl %r12d, %r8d callq 0xe1160 leaq 0x8(%rsp), %rcx xorb $0x1, %al movzbl %al, %eax addl %eax, %ebp incl %r12d decl %r13d jne 0x2a803b movl 0x14(%rsp), %eax movl %eax, %r12d movl 0x4(%rsp), %esi testl %esi, %esi jne 0x2a7fa9 jmp 0x2a8087 subl %r13d, %esi cmpl $-0x9, %edi jbe 0x2a8081 movl %eax, %ebp jmp 0x2a806b movl %esi, 0x4(%rsp) jmp 0x2a8031 testl %ebp, %ebp je 0x2a80a2 leal (,%rbp,4), %eax leal (%rax,%rax,2), %esi shll $0x3, %ebp movq %rbx, %rdi movl %ebp, %edx callq 0xe0140 addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq nop
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
void ImPlot::RenderStairs<ImPlot::GetterXsYs<signed char>, ImPlot::TransformerLinLin>(ImPlot::GetterXsYs<signed char> const&, ImPlot::TransformerLinLin const&, ImDrawList&, float, unsigned int)
inline void RenderStairs(const Getter& getter, const Transformer& transformer, ImDrawList& DrawList, float line_weight, ImU32 col) { ImPlotContext& gp = *GImPlot; if (ImHasFlag(gp.CurrentPlot->Flags, ImPlotFlags_AntiAliased) || gp.Style.AntiAliasedLines) { ImVec2 p1 = transformer(getter(0)); for (int i = 1; i < getter.Count; ++i) { ImVec2 p2 = transformer(getter(i)); if (gp.CurrentPlot->PlotRect.Overlaps(ImRect(ImMin(p1, p2), ImMax(p1, p2)))) { ImVec2 p12(p2.x, p1.y); DrawList.AddLine(p1, p12, col, line_weight); DrawList.AddLine(p12, p2, col, line_weight); } p1 = p2; } } else { RenderPrimitives(StairsRenderer<Getter,Transformer>(getter, transformer, col, line_weight), DrawList, gp.CurrentPlot->PlotRect); } }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x58, %rsp movl %ecx, 0xc(%rsp) movss %xmm0, 0x8(%rsp) movq %rdx, 0x18(%rsp) movq %rsi, %rbx movq %rdi, %r15 movq 0x1c1b71(%rip), %r11 # 0x46a3f0 movq (%r11), %r12 movq 0x28(%r12), %rcx testb $0x10, 0x5(%rcx) jne 0x2a889c cmpb $0x1, 0x448(%r12) jne 0x2a8b12 movl 0x10(%r15), %esi movl 0x14(%r15), %eax movslq 0x18(%r15), %rdi cltd idivl %esi leal (%rdx,%rsi), %eax cltd idivl %esi movslq %edx, %rax imulq %rdi, %rax movq (%r15), %rdi movq 0x8(%r15), %r8 movslq (%rbx), %r9 movq %r9, %rdx movsd 0x1a0(%r12,%r9,8), %xmm0 shlq $0x4, %r9 movzbl (%r8,%rax), %r8d shll $0x8, %r8d pxor %xmm1, %xmm1 pinsrw $0x1, %r8d, %xmm1 movzbl (%rdi,%rax), %eax shll $0x8, %eax pinsrw $0x3, %eax, %xmm1 psrad $0x18, %xmm1 cvtdq2pd %xmm1, %xmm1 cvtps2pd 0x164(%r12,%r9), %xmm2 shlq $0x7, %rdx movsd 0x98(%rcx,%rdx), %xmm3 movhpd 0x18(%rcx), %xmm3 # xmm3 = xmm3[0],mem[0] subpd %xmm3, %xmm1 shufpd $0x1, %xmm2, %xmm2 # xmm2 = xmm2[1,0] movhpd 0x198(%r12), %xmm0 # xmm0 = xmm0[0],mem[0] mulpd %xmm1, %xmm0 addpd %xmm2, %xmm0 cvtpd2ps %xmm0, %xmm0 movapd %xmm0, %xmm1 shufps $0xe1, %xmm0, %xmm1 # xmm1 = xmm1[1,0],xmm0[2,3] movlps %xmm1, 0x30(%rsp) cmpl $0x2, %esi jl 0x2a8be9 movl $0x1, %r13d movq %r12, %rcx movq %rbx, 0x28(%rsp) movq 0x18(%rsp), %rbp movl 0xc(%rsp), %r14d movslq 0x18(%r15), %rdi movl 0x14(%r15), %eax addl %r13d, %eax cltd idivl %esi leal (%rdx,%rsi), %eax cltd idivl %esi movslq %edx, %rax imulq %rdi, %rax movq (%r15), %r8 movq 0x8(%r15), %rdi movslq (%rbx), %r9 movq %r9, %rdx movsd 0x198(%rcx), %xmm1 movhpd 0x1a0(%rcx,%r9,8), %xmm1 # xmm1 = xmm1[0],mem[0] shlq $0x4, %r9 movq 0x28(%rcx), %r10 shlq $0x7, %rdx movzbl (%r8,%rax), %r8d shll $0x8, %r8d xorpd %xmm2, %xmm2 pinsrw $0x1, %r8d, %xmm2 movzbl (%rdi,%rax), %eax shll $0x8, %eax pinsrw $0x3, %eax, %xmm2 psrad $0x18, %xmm2 cvtdq2pd %xmm2, %xmm2 cvtps2pd 0x164(%rcx,%r9), %xmm3 movsd 0x18(%r10), %xmm4 movhpd 0x98(%r10,%rdx), %xmm4 # xmm4 = xmm4[0],mem[0] subpd %xmm4, %xmm2 mulpd %xmm2, %xmm1 addpd %xmm3, %xmm1 cvtpd2ps %xmm1, %xmm1 movlpd %xmm1, 0x20(%rsp) movq 0x28(%r12), %rdx movq %xmm1, %rax movapd %xmm1, %xmm3 shufps $0x55, %xmm1, %xmm3 # xmm3 = xmm3[1,1],xmm1[1,1] movaps %xmm0, %xmm2 minss %xmm3, %xmm2 movss 0x2c4(%rdx), %xmm4 ucomiss %xmm2, %xmm4 shufps $0x51, %xmm1, %xmm1 # xmm1 = xmm1[1,0,1,1] jbe 0x2a8af9 movaps %xmm3, %xmm4 cmpless %xmm0, %xmm4 movaps %xmm4, %xmm5 andps %xmm0, %xmm5 andnps %xmm3, %xmm4 orps %xmm5, %xmm4 ucomiss 0x2bc(%rdx), %xmm4 jbe 0x2a8af9 movaps %xmm0, %xmm2 movd %eax, %xmm3 shufps $0x55, %xmm0, %xmm0 # xmm0 = xmm0[1,1,1,1] movaps %xmm0, %xmm4 minss %xmm3, %xmm4 movss 0x2c0(%rdx), %xmm5 ucomiss %xmm4, %xmm5 jbe 0x2a8af9 movaps %xmm3, %xmm4 cmpless %xmm0, %xmm4 movaps %xmm4, %xmm5 andnps %xmm3, %xmm5 andps %xmm0, %xmm4 orps %xmm5, %xmm4 ucomiss 0x2b8(%rdx), %xmm4 jbe 0x2a8af9 movl %eax, 0x10(%rsp) movss %xmm2, 0x14(%rsp) movq %rbp, %rdi leaq 0x30(%rsp), %rsi leaq 0x10(%rsp), %rdx movl %r14d, %ecx movss 0x8(%rsp), %xmm0 movq %r11, %rbx callq 0xe5ce0 movq %rbp, %rdi leaq 0x10(%rsp), %rsi leaq 0x20(%rsp), %rdx movl %r14d, %ecx movss 0x8(%rsp), %xmm0 callq 0xe5ce0 movq %rbx, %r11 movq 0x28(%rsp), %rbx movq (%r11), %rcx movq 0x20(%rsp), %rax movl 0x10(%r15), %esi movq %rax, %rdx shrq $0x20, %rdx movd %eax, %xmm0 movd %edx, %xmm1 punpckldq %xmm0, %xmm1 # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1] movq %rax, 0x30(%rsp) incl %r13d movaps %xmm1, %xmm0 cmpl %esi, %r13d jl 0x2a8963 jmp 0x2a8be9 leaq 0x30(%rsp), %rdi movq %r15, (%rdi) movq %rbx, 0x8(%rdi) movl 0x10(%r15), %esi leal -0x1(%rsi), %eax movl %eax, 0x10(%rdi) movl 0xc(%rsp), %eax movl %eax, 0x14(%rdi) movss 0x8(%rsp), %xmm0 mulss 0xda64b(%rip), %xmm0 # 0x383188 movss %xmm0, 0x18(%rdi) movl 0x14(%r15), %eax movslq 0x18(%r15), %r8 cltd idivl %esi leal (%rdx,%rsi), %eax cltd idivl %esi movslq %edx, %rax imulq %r8, %rax movq (%r15), %rsi movq 0x8(%r15), %rdx movslq (%rbx), %r8 movsd 0x198(%r12), %xmm0 movhpd 0x1a0(%r12,%r8,8), %xmm0 # xmm0 = xmm0[0],mem[0] movq %r8, %r9 shlq $0x4, %r8 movzbl (%rsi,%rax), %esi shll $0x8, %esi pxor %xmm1, %xmm1 pinsrw $0x1, %esi, %xmm1 movzbl (%rdx,%rax), %eax shll $0x8, %eax pinsrw $0x3, %eax, %xmm1 shlq $0x7, %r9 psrad $0x18, %xmm1 cvtdq2pd %xmm1, %xmm1 movsd 0x18(%rcx), %xmm2 movhpd 0x98(%rcx,%r9), %xmm2 # xmm2 = xmm2[0],mem[0] subpd %xmm2, %xmm1 cvtps2pd 0x164(%r12,%r8), %xmm2 mulpd %xmm1, %xmm0 addpd %xmm2, %xmm0 cvtpd2ps %xmm0, %xmm0 movlpd %xmm0, 0x1c(%rdi) addq $0x2b8, %rcx # imm = 0x2B8 movq 0x18(%rsp), %rsi movq %rcx, %rdx callq 0xe3630 addq $0x58, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
void ImPlot::RenderStairs<ImPlot::GetterXsYs<signed char>, ImPlot::TransformerLinLog>(ImPlot::GetterXsYs<signed char> const&, ImPlot::TransformerLinLog const&, ImDrawList&, float, unsigned int)
inline void RenderStairs(const Getter& getter, const Transformer& transformer, ImDrawList& DrawList, float line_weight, ImU32 col) { ImPlotContext& gp = *GImPlot; if (ImHasFlag(gp.CurrentPlot->Flags, ImPlotFlags_AntiAliased) || gp.Style.AntiAliasedLines) { ImVec2 p1 = transformer(getter(0)); for (int i = 1; i < getter.Count; ++i) { ImVec2 p2 = transformer(getter(i)); if (gp.CurrentPlot->PlotRect.Overlaps(ImRect(ImMin(p1, p2), ImMax(p1, p2)))) { ImVec2 p12(p2.x, p1.y); DrawList.AddLine(p1, p12, col, line_weight); DrawList.AddLine(p12, p2, col, line_weight); } p1 = p2; } } else { RenderPrimitives(StairsRenderer<Getter,Transformer>(getter, transformer, col, line_weight), DrawList, gp.CurrentPlot->PlotRect); } }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x58, %rsp movl %ecx, 0x4(%rsp) movss %xmm0, (%rsp) movq %rdx, 0x20(%rsp) movq %rsi, %r14 movq %rdi, %r15 movq 0x1c13d7(%rip), %r12 # 0x46a3f0 movq (%r12), %r13 movq 0x28(%r13), %rcx testb $0x10, 0x5(%rcx) jne 0x2a9035 cmpb $0x1, 0x448(%r13) jne 0x2a92f2 movl 0x10(%r15), %esi movl 0x14(%r15), %eax movslq 0x18(%r15), %rdi cltd idivl %esi leal (%rdx,%rsi), %eax cltd idivl %esi movslq %edx, %rax imulq %rdi, %rax movq (%r15), %rdx movsbl (%rdx,%rax), %edx xorps %xmm0, %xmm0 cvtsi2sd %edx, %xmm0 movapd %xmm0, 0x10(%rsp) movq 0x8(%r15), %rdx movsbl (%rdx,%rax), %eax xorps %xmm0, %xmm0 cvtsi2sd %eax, %xmm0 movslq (%r14), %rax shlq $0x7, %rax divsd 0x98(%rcx,%rax), %xmm0 callq 0xe2ca0 movslq (%r14), %rcx divsd 0x1c0(%r13,%rcx,8), %xmm0 movq 0x28(%r13), %rax movq %rcx, %rdx movsd 0x198(%r13), %xmm1 movhpd 0x1a0(%r13,%rcx,8), %xmm1 # xmm1 = xmm1[0],mem[0] shlq $0x7, %rcx movsd 0x98(%rax,%rcx), %xmm2 cvtsd2ss %xmm0, %xmm0 movsd 0xa0(%rax,%rcx), %xmm3 subsd %xmm2, %xmm3 cvtss2sd %xmm0, %xmm0 mulsd %xmm3, %xmm0 addsd %xmm2, %xmm0 movapd 0x10(%rsp), %xmm3 unpcklpd %xmm0, %xmm3 # xmm3 = xmm3[0],xmm0[0] shlq $0x4, %rdx movsd 0x18(%rax), %xmm0 unpcklpd %xmm2, %xmm0 # xmm0 = xmm0[0],xmm2[0] cvtps2pd 0x164(%r13,%rdx), %xmm2 subpd %xmm0, %xmm3 mulpd %xmm3, %xmm1 addpd %xmm2, %xmm1 cvtpd2ps %xmm1, %xmm0 movlpd %xmm0, 0x30(%rsp) movl 0x10(%r15), %ecx cmpl $0x2, %ecx jl 0x2a9415 movl $0x1, %ebx movslq 0x18(%r15), %rsi movl 0x14(%r15), %eax addl %ebx, %eax cltd idivl %ecx leal (%rdx,%rcx), %eax cltd idivl %ecx movslq %edx, %rax imulq %rsi, %rax movq (%r15), %rcx movq 0x8(%r15), %rdx movsbl (%rcx,%rax), %ecx xorps %xmm0, %xmm0 cvtsi2sd %ecx, %xmm0 movapd %xmm0, 0x10(%rsp) movsbl (%rdx,%rax), %eax xorps %xmm0, %xmm0 cvtsi2sd %eax, %xmm0 movq (%r12), %rbp movq 0x28(%rbp), %rax movslq (%r14), %rcx shlq $0x7, %rcx divsd 0x98(%rax,%rcx), %xmm0 callq 0xe2ca0 movslq (%r14), %rcx divsd 0x1c0(%rbp,%rcx,8), %xmm0 movq 0x28(%rbp), %rax movsd 0x198(%rbp), %xmm1 movhpd 0x1a0(%rbp,%rcx,8), %xmm1 # xmm1 = xmm1[0],mem[0] movq %rcx, %rdx shlq $0x7, %rcx movsd 0x98(%rax,%rcx), %xmm2 movsd 0xa0(%rax,%rcx), %xmm3 cvtsd2ss %xmm0, %xmm0 subsd %xmm2, %xmm3 cvtss2sd %xmm0, %xmm0 mulsd %xmm3, %xmm0 addsd %xmm2, %xmm0 movapd 0x10(%rsp), %xmm4 unpcklpd %xmm0, %xmm4 # xmm4 = xmm4[0],xmm0[0] shlq $0x4, %rdx cvtps2pd 0x164(%rbp,%rdx), %xmm0 movsd 0x18(%rax), %xmm3 unpcklpd %xmm2, %xmm3 # xmm3 = xmm3[0],xmm2[0] subpd %xmm3, %xmm4 mulpd %xmm4, %xmm1 addpd %xmm0, %xmm1 cvtpd2ps %xmm1, %xmm1 movlpd %xmm1, 0x28(%rsp) movq 0x28(%r13), %rcx movss 0x34(%rsp), %xmm0 movq %xmm1, %rax shufps $0x55, %xmm1, %xmm1 # xmm1 = xmm1[1,1,1,1] movaps %xmm0, %xmm2 minss %xmm1, %xmm2 movss 0x2c4(%rcx), %xmm3 ucomiss %xmm2, %xmm3 jbe 0x2a92da movaps %xmm1, %xmm2 cmpless %xmm0, %xmm2 movaps %xmm2, %xmm3 andps %xmm0, %xmm3 andnps %xmm1, %xmm2 orps %xmm3, %xmm2 ucomiss 0x2bc(%rcx), %xmm2 jbe 0x2a92da movss 0x30(%rsp), %xmm1 movd %eax, %xmm2 movaps %xmm1, %xmm3 minss %xmm2, %xmm3 movss 0x2c0(%rcx), %xmm4 ucomiss %xmm3, %xmm4 jbe 0x2a92da movaps %xmm2, %xmm3 cmpless %xmm1, %xmm3 movaps %xmm3, %xmm4 andnps %xmm2, %xmm4 andps %xmm1, %xmm3 orps %xmm4, %xmm3 ucomiss 0x2b8(%rcx), %xmm3 jbe 0x2a92da movl %eax, 0x8(%rsp) movss %xmm0, 0xc(%rsp) movq 0x20(%rsp), %rbp movq %rbp, %rdi leaq 0x30(%rsp), %rsi leaq 0x8(%rsp), %rdx movl 0x4(%rsp), %r12d movl %r12d, %ecx movss (%rsp), %xmm0 callq 0xe5ce0 movq %rbp, %rdi leaq 0x8(%rsp), %rsi leaq 0x28(%rsp), %rdx movl %r12d, %ecx movq 0x1c1125(%rip), %r12 # 0x46a3f0 movss (%rsp), %xmm0 callq 0xe5ce0 movq 0x28(%rsp), %rax movq %rax, 0x30(%rsp) incl %ebx movl 0x10(%r15), %ecx cmpl %ecx, %ebx jl 0x2a9122 jmp 0x2a9415 leaq 0x30(%rsp), %r12 movq %r15, (%r12) movq %r14, 0x8(%r12) movl 0x10(%r15), %esi leal -0x1(%rsi), %eax movl %eax, 0x10(%r12) movl 0x4(%rsp), %eax movl %eax, 0x14(%r12) movss (%rsp), %xmm0 mulss 0xd9e66(%rip), %xmm0 # 0x383188 movss %xmm0, 0x18(%r12) movl 0x14(%r15), %eax movslq 0x18(%r15), %rdi cltd idivl %esi leal (%rdx,%rsi), %eax cltd idivl %esi movslq %edx, %rax imulq %rdi, %rax movq (%r15), %rdx movsbl (%rdx,%rax), %edx xorps %xmm0, %xmm0 cvtsi2sd %edx, %xmm0 movapd %xmm0, 0x10(%rsp) movq 0x8(%r15), %rdx movsbl (%rdx,%rax), %eax xorps %xmm0, %xmm0 cvtsi2sd %eax, %xmm0 movslq (%r14), %rax shlq $0x7, %rax divsd 0x98(%rcx,%rax), %xmm0 callq 0xe2ca0 movslq (%r14), %rax divsd 0x1c0(%r13,%rax,8), %xmm0 movq 0x28(%r13), %rdx movsd 0x198(%r13), %xmm1 movhpd 0x1a0(%r13,%rax,8), %xmm1 # xmm1 = xmm1[0],mem[0] movq %rax, %rcx shlq $0x7, %rax movsd 0x98(%rdx,%rax), %xmm2 movsd 0xa0(%rdx,%rax), %xmm3 cvtsd2ss %xmm0, %xmm0 subsd %xmm2, %xmm3 cvtss2sd %xmm0, %xmm0 mulsd %xmm3, %xmm0 addsd %xmm2, %xmm0 movapd 0x10(%rsp), %xmm4 unpcklpd %xmm0, %xmm4 # xmm4 = xmm4[0],xmm0[0] shlq $0x4, %rcx cvtps2pd 0x164(%r13,%rcx), %xmm0 movsd 0x18(%rdx), %xmm3 unpcklpd %xmm2, %xmm3 # xmm3 = xmm3[0],xmm2[0] subpd %xmm3, %xmm4 mulpd %xmm4, %xmm1 addpd %xmm0, %xmm1 cvtpd2ps %xmm1, %xmm0 movlpd %xmm0, 0x1c(%r12) addq $0x2b8, %rdx # imm = 0x2B8 movq %r12, %rdi movq 0x20(%rsp), %rsi callq 0xe6220 addq $0x58, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
void ImPlot::RenderPrimitives<ImPlot::StairsRenderer<ImPlot::GetterXsYs<signed char>, ImPlot::TransformerLinLin>>(ImPlot::StairsRenderer<ImPlot::GetterXsYs<signed char>, ImPlot::TransformerLinLin> const&, ImDrawList&, ImRect const&)
inline void RenderPrimitives(const Renderer& renderer, ImDrawList& DrawList, const ImRect& cull_rect) { unsigned int prims = renderer.Prims; unsigned int prims_culled = 0; unsigned int idx = 0; const ImVec2 uv = DrawList._Data->TexUvWhitePixel; while (prims) { // find how many can be reserved up to end of current draw command's limit unsigned int cnt = ImMin(prims, (MaxIdx<ImDrawIdx>::Value - DrawList._VtxCurrentIdx) / Renderer::VtxConsumed); // make sure at least this many elements can be rendered to avoid situations where at the end of buffer this slow path is not taken all the time if (cnt >= ImMin(64u, prims)) { if (prims_culled >= cnt) prims_culled -= cnt; // reuse previous reservation else { DrawList.PrimReserve((cnt - prims_culled) * Renderer::IdxConsumed, (cnt - prims_culled) * Renderer::VtxConsumed); // add more elements to previous reservation prims_culled = 0; } } else { if (prims_culled > 0) { DrawList.PrimUnreserve(prims_culled * Renderer::IdxConsumed, prims_culled * Renderer::VtxConsumed); prims_culled = 0; } cnt = ImMin(prims, (MaxIdx<ImDrawIdx>::Value - 0/*DrawList._VtxCurrentIdx*/) / Renderer::VtxConsumed); DrawList.PrimReserve(cnt * Renderer::IdxConsumed, cnt * Renderer::VtxConsumed); // reserve new draw command } prims -= cnt; for (unsigned int ie = idx + cnt; idx != ie; ++idx) { if (!renderer(DrawList, cull_rect, uv, idx)) prims_culled++; } } if (prims_culled > 0) DrawList.PrimUnreserve(prims_culled * Renderer::IdxConsumed, prims_culled * Renderer::VtxConsumed); }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rsi, %rbx movl 0x10(%rdi), %esi movq 0x38(%rbx), %rax movq (%rax), %rax movq %rax, 0x8(%rsp) testl %esi, %esi je 0x2a9a9b movq %rdx, %r14 movq %rdi, %r15 xorl %r12d, %r12d leaq 0x8(%rsp), %rcx xorl %ebp, %ebp movl 0x34(%rbx), %edi movl %edi, %eax notl %eax shrl $0x3, %eax cmpl %eax, %esi movl %eax, %r13d cmovbl %esi, %r13d cmpl $0x40, %esi movl $0x40, %edx cmovbl %esi, %edx cmpl %edx, %eax jae 0x2a99f9 testl %ebp, %ebp je 0x2a99e5 leal (,%rbp,4), %eax movl %esi, %r13d leal (%rax,%rax,2), %esi shll $0x3, %ebp movq %rbx, %rdi movl %ebp, %edx callq 0xe0140 movl %r13d, %esi movl $0x1fffffff, %eax # imm = 0x1FFFFFFF cmpl %eax, %esi movl $0x1fffffff, %edx # imm = 0x1FFFFFFF cmovbl %esi, %edx movl %edx, %r13d jmp 0x2a9a05 movl %ebp, %eax subl %r13d, %eax jae 0x2a9a6e movl %r13d, %edx subl %ebp, %edx movl %esi, %ebp leal (,%rdx,4), %eax leal (%rax,%rax,2), %esi shll $0x3, %edx movq %rbx, %rdi callq 0xe3170 subl %r13d, %ebp movl %ebp, 0x4(%rsp) xorl %eax, %eax leaq 0x8(%rsp), %rcx leal (%r12,%r13), %edx movl %edx, 0x14(%rsp) movl %eax, %ebp movq %r15, %rdi movq %rbx, %rsi movq %r14, %rdx movl %r12d, %r8d callq 0xe86f0 leaq 0x8(%rsp), %rcx xorb $0x1, %al movzbl %al, %eax addl %eax, %ebp incl %r12d decl %r13d jne 0x2a9a34 movl 0x14(%rsp), %eax movl %eax, %r12d movl 0x4(%rsp), %esi testl %esi, %esi jne 0x2a99a2 jmp 0x2a9a80 subl %r13d, %esi cmpl $-0x9, %edi jbe 0x2a9a7a movl %eax, %ebp jmp 0x2a9a64 movl %esi, 0x4(%rsp) jmp 0x2a9a2a testl %ebp, %ebp je 0x2a9a9b leal (,%rbp,4), %eax leal (%rax,%rax,2), %esi shll $0x3, %ebp movq %rbx, %rdi movl %ebp, %edx callq 0xe0140 addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
ImPlot::StairsRenderer<ImPlot::GetterXsYs<signed char>, ImPlot::TransformerLinLog>::operator()(ImDrawList&, ImRect const&, ImVec2 const&, int) const
inline bool operator()(ImDrawList& DrawList, const ImRect& cull_rect, const ImVec2& uv, int prim) const { ImVec2 P2 = Transformer(Getter(prim + 1)); if (!cull_rect.Overlaps(ImRect(ImMin(P1, P2), ImMax(P1, P2)))) { P1 = P2; return false; } AddRectFilled(ImVec2(P1.x, P1.y + HalfWeight), ImVec2(P2.x, P1.y - HalfWeight), Col, DrawList, uv); AddRectFilled(ImVec2(P2.x - HalfWeight, P2.y), ImVec2(P2.x + HalfWeight, P1.y), Col, DrawList, uv); // AddLine(P1, P12, Weight, Col, DrawList, uv); // AddLine(P12, P2, Weight, Col, DrawList, uv); P1 = P2; return true; }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rcx, %r15 movq %rdx, %r12 movq %rdi, %rbx movq (%rdi), %rcx movq 0x8(%rdi), %rbp movl 0x10(%rcx), %edi movl 0x14(%rcx), %eax movslq 0x18(%rcx), %r9 addl %r8d, %eax incl %eax cltd idivl %edi leal (%rdx,%rdi), %eax cltd idivl %edi movslq %edx, %rax imulq %r9, %rax movq (%rcx), %rdx movsbl (%rdx,%rax), %edx cvtsi2sd %edx, %xmm0 movapd %xmm0, (%rsp) movq 0x8(%rcx), %rcx movsbl (%rcx,%rax), %eax xorps %xmm0, %xmm0 cvtsi2sd %eax, %xmm0 movq %rsi, %r14 movq 0x1c00d4(%rip), %rax # 0x46a3f0 movq (%rax), %r13 movq 0x28(%r13), %rax movslq (%rbp), %rcx shlq $0x7, %rcx divsd 0x98(%rax,%rcx), %xmm0 callq 0xe2ca0 movslq (%rbp), %rcx divsd 0x1c0(%r13,%rcx,8), %xmm0 movq 0x28(%r13), %rax movq %rcx, %rdx movsd 0x198(%r13), %xmm1 movhpd 0x1a0(%r13,%rcx,8), %xmm1 # xmm1 = xmm1[0],mem[0] shlq $0x7, %rcx movsd 0x98(%rax,%rcx), %xmm2 cvtsd2ss %xmm0, %xmm0 movsd 0xa0(%rax,%rcx), %xmm3 subsd %xmm2, %xmm3 cvtss2sd %xmm0, %xmm0 mulsd %xmm3, %xmm0 addsd %xmm2, %xmm0 shlq $0x4, %rdx cvtps2pd 0x164(%r13,%rdx), %xmm3 movapd (%rsp), %xmm4 unpcklpd %xmm0, %xmm4 # xmm4 = xmm4[0],xmm0[0] movsd 0x18(%rax), %xmm0 unpcklpd %xmm2, %xmm0 # xmm0 = xmm0[0],xmm2[0] subpd %xmm0, %xmm4 mulpd %xmm4, %xmm1 addpd %xmm3, %xmm1 cvtpd2ps %xmm1, %xmm0 movapd %xmm0, %xmm2 unpcklpd %xmm0, %xmm2 # xmm2 = xmm2[0],xmm0[0] movsd 0x1c(%rbx), %xmm1 movaps %xmm1, %xmm3 movlhps %xmm1, %xmm3 # xmm3 = xmm3[0],xmm1[0] movapd %xmm2, %xmm4 cmpleps %xmm3, %xmm4 movaps %xmm3, %xmm5 cmpltps %xmm2, %xmm5 movsd %xmm4, %xmm5 # xmm5 = xmm4[0],xmm5[1] andps %xmm5, %xmm3 andnps %xmm2, %xmm5 orps %xmm3, %xmm5 movups (%r12), %xmm2 movaps %xmm2, %xmm3 cmpltps %xmm5, %xmm3 cmpltps %xmm2, %xmm5 movsd %xmm3, %xmm5 # xmm5 = xmm3[0],xmm5[1] movmskps %xmm5, %eax cmpl $0xf, %eax jne 0x2aa598 movss 0x18(%rbx), %xmm2 movaps %xmm1, %xmm3 shufps $0x55, %xmm1, %xmm3 # xmm3 = xmm3[1,1],xmm1[1,1] movaps %xmm3, %xmm4 addss %xmm2, %xmm4 subss %xmm2, %xmm3 movl 0x14(%rbx), %edx movsd (%r15), %xmm2 movq 0x48(%r14), %rcx movss %xmm1, (%rcx) movss %xmm4, 0x4(%rcx) movq 0x48(%r14), %rcx movsd %xmm2, 0x8(%rcx) movq 0x48(%r14), %rcx movl %edx, 0x10(%rcx) movss %xmm0, 0x14(%rcx) movss %xmm3, 0x18(%rcx) movq 0x48(%r14), %rcx movsd %xmm2, 0x1c(%rcx) movq 0x48(%r14), %rcx movl %edx, 0x24(%rcx) movss %xmm1, 0x28(%rcx) movss %xmm3, 0x2c(%rcx) movsd %xmm2, 0x30(%rcx) movq 0x48(%r14), %rcx movl %edx, 0x38(%rcx) movss %xmm0, 0x3c(%rcx) movss %xmm4, 0x40(%rcx) movsd %xmm2, 0x44(%rcx) movq 0x48(%r14), %rcx movl %edx, 0x4c(%rcx) leaq 0x50(%rcx), %rdx movq %rdx, 0x48(%r14) movl 0x34(%r14), %edx movq 0x50(%r14), %rsi movl %edx, (%rsi) incl %edx movl %edx, 0x4(%rsi) movl 0x34(%r14), %edx addl $0x2, %edx movl %edx, 0x8(%rsi) movl 0x34(%r14), %edx movl %edx, 0xc(%rsi) incl %edx movl %edx, 0x10(%rsi) movl 0x34(%r14), %edx addl $0x3, %edx movl %edx, 0x14(%rsi) addq $0x18, %rsi movq %rsi, 0x50(%r14) addl $0x4, 0x34(%r14) movss 0x18(%rbx), %xmm1 movapd %xmm0, %xmm2 subss %xmm1, %xmm2 addss %xmm0, %xmm1 movss 0x20(%rbx), %xmm3 movl 0x14(%rbx), %edx movsd (%r15), %xmm4 movss %xmm2, 0x50(%rcx) movaps %xmm0, %xmm5 shufps $0x55, %xmm0, %xmm5 # xmm5 = xmm5[1,1],xmm0[1,1] movss %xmm5, 0x54(%rcx) movq 0x48(%r14), %rcx movsd %xmm4, 0x8(%rcx) movq 0x48(%r14), %rcx movl %edx, 0x10(%rcx) movss %xmm1, 0x14(%rcx) movss %xmm3, 0x18(%rcx) movq 0x48(%r14), %rcx movsd %xmm4, 0x1c(%rcx) movq 0x48(%r14), %rcx movl %edx, 0x24(%rcx) movss %xmm2, 0x28(%rcx) movss %xmm3, 0x2c(%rcx) movsd %xmm4, 0x30(%rcx) movq 0x48(%r14), %rcx movl %edx, 0x38(%rcx) movss %xmm1, 0x3c(%rcx) movss %xmm5, 0x40(%rcx) movsd %xmm4, 0x44(%rcx) movq 0x48(%r14), %rcx movl %edx, 0x4c(%rcx) addq $0x50, %rcx movq %rcx, 0x48(%r14) movl 0x34(%r14), %ecx movq 0x50(%r14), %rdx movl %ecx, (%rdx) incl %ecx movl %ecx, 0x4(%rdx) movl 0x34(%r14), %ecx addl $0x2, %ecx movl %ecx, 0x8(%rdx) movl 0x34(%r14), %ecx movl %ecx, 0xc(%rdx) incl %ecx movl %ecx, 0x10(%rdx) movl 0x34(%r14), %ecx addl $0x3, %ecx movl %ecx, 0x14(%rdx) addq $0x18, %rdx movq %rdx, 0x50(%r14) addl $0x4, 0x34(%r14) cmpb $0xf, %al sete %al movlpd %xmm0, 0x1c(%rbx) addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
void ImPlot::RenderStairs<ImPlot::GetterXsYs<unsigned char>, ImPlot::TransformerLinLog>(ImPlot::GetterXsYs<unsigned char> const&, ImPlot::TransformerLinLog const&, ImDrawList&, float, unsigned int)
inline void RenderStairs(const Getter& getter, const Transformer& transformer, ImDrawList& DrawList, float line_weight, ImU32 col) { ImPlotContext& gp = *GImPlot; if (ImHasFlag(gp.CurrentPlot->Flags, ImPlotFlags_AntiAliased) || gp.Style.AntiAliasedLines) { ImVec2 p1 = transformer(getter(0)); for (int i = 1; i < getter.Count; ++i) { ImVec2 p2 = transformer(getter(i)); if (gp.CurrentPlot->PlotRect.Overlaps(ImRect(ImMin(p1, p2), ImMax(p1, p2)))) { ImVec2 p12(p2.x, p1.y); DrawList.AddLine(p1, p12, col, line_weight); DrawList.AddLine(p12, p2, col, line_weight); } p1 = p2; } } else { RenderPrimitives(StairsRenderer<Getter,Transformer>(getter, transformer, col, line_weight), DrawList, gp.CurrentPlot->PlotRect); } }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x58, %rsp movl %ecx, 0x4(%rsp) movss %xmm0, (%rsp) movq %rdx, 0x20(%rsp) movq %rsi, %r14 movq %rdi, %r15 movq 0x1bf22b(%rip), %r12 # 0x46a3f0 movq (%r12), %r13 movq 0x28(%r13), %rcx testb $0x10, 0x5(%rcx) jne 0x2ab1e1 cmpb $0x1, 0x448(%r13) jne 0x2ab49e movl 0x10(%r15), %esi movl 0x14(%r15), %eax movslq 0x18(%r15), %rdi cltd idivl %esi leal (%rdx,%rsi), %eax cltd idivl %esi movslq %edx, %rax imulq %rdi, %rax movq (%r15), %rdx movzbl (%rdx,%rax), %edx xorps %xmm0, %xmm0 cvtsi2sd %edx, %xmm0 movapd %xmm0, 0x10(%rsp) movq 0x8(%r15), %rdx movzbl (%rdx,%rax), %eax xorps %xmm0, %xmm0 cvtsi2sd %eax, %xmm0 movslq (%r14), %rax shlq $0x7, %rax divsd 0x98(%rcx,%rax), %xmm0 callq 0xe2ca0 movslq (%r14), %rcx divsd 0x1c0(%r13,%rcx,8), %xmm0 movq 0x28(%r13), %rax movq %rcx, %rdx movsd 0x198(%r13), %xmm1 movhpd 0x1a0(%r13,%rcx,8), %xmm1 # xmm1 = xmm1[0],mem[0] shlq $0x7, %rcx movsd 0x98(%rax,%rcx), %xmm2 cvtsd2ss %xmm0, %xmm0 movsd 0xa0(%rax,%rcx), %xmm3 subsd %xmm2, %xmm3 cvtss2sd %xmm0, %xmm0 mulsd %xmm3, %xmm0 addsd %xmm2, %xmm0 movapd 0x10(%rsp), %xmm3 unpcklpd %xmm0, %xmm3 # xmm3 = xmm3[0],xmm0[0] shlq $0x4, %rdx movsd 0x18(%rax), %xmm0 unpcklpd %xmm2, %xmm0 # xmm0 = xmm0[0],xmm2[0] cvtps2pd 0x164(%r13,%rdx), %xmm2 subpd %xmm0, %xmm3 mulpd %xmm3, %xmm1 addpd %xmm2, %xmm1 cvtpd2ps %xmm1, %xmm0 movlpd %xmm0, 0x30(%rsp) movl 0x10(%r15), %ecx cmpl $0x2, %ecx jl 0x2ab5c1 movl $0x1, %ebx movslq 0x18(%r15), %rsi movl 0x14(%r15), %eax addl %ebx, %eax cltd idivl %ecx leal (%rdx,%rcx), %eax cltd idivl %ecx movslq %edx, %rax imulq %rsi, %rax movq (%r15), %rcx movq 0x8(%r15), %rdx movzbl (%rcx,%rax), %ecx xorps %xmm0, %xmm0 cvtsi2sd %ecx, %xmm0 movapd %xmm0, 0x10(%rsp) movzbl (%rdx,%rax), %eax xorps %xmm0, %xmm0 cvtsi2sd %eax, %xmm0 movq (%r12), %rbp movq 0x28(%rbp), %rax movslq (%r14), %rcx shlq $0x7, %rcx divsd 0x98(%rax,%rcx), %xmm0 callq 0xe2ca0 movslq (%r14), %rcx divsd 0x1c0(%rbp,%rcx,8), %xmm0 movq 0x28(%rbp), %rax movsd 0x198(%rbp), %xmm1 movhpd 0x1a0(%rbp,%rcx,8), %xmm1 # xmm1 = xmm1[0],mem[0] movq %rcx, %rdx shlq $0x7, %rcx movsd 0x98(%rax,%rcx), %xmm2 movsd 0xa0(%rax,%rcx), %xmm3 cvtsd2ss %xmm0, %xmm0 subsd %xmm2, %xmm3 cvtss2sd %xmm0, %xmm0 mulsd %xmm3, %xmm0 addsd %xmm2, %xmm0 movapd 0x10(%rsp), %xmm4 unpcklpd %xmm0, %xmm4 # xmm4 = xmm4[0],xmm0[0] shlq $0x4, %rdx cvtps2pd 0x164(%rbp,%rdx), %xmm0 movsd 0x18(%rax), %xmm3 unpcklpd %xmm2, %xmm3 # xmm3 = xmm3[0],xmm2[0] subpd %xmm3, %xmm4 mulpd %xmm4, %xmm1 addpd %xmm0, %xmm1 cvtpd2ps %xmm1, %xmm1 movlpd %xmm1, 0x28(%rsp) movq 0x28(%r13), %rcx movss 0x34(%rsp), %xmm0 movq %xmm1, %rax shufps $0x55, %xmm1, %xmm1 # xmm1 = xmm1[1,1,1,1] movaps %xmm0, %xmm2 minss %xmm1, %xmm2 movss 0x2c4(%rcx), %xmm3 ucomiss %xmm2, %xmm3 jbe 0x2ab486 movaps %xmm1, %xmm2 cmpless %xmm0, %xmm2 movaps %xmm2, %xmm3 andps %xmm0, %xmm3 andnps %xmm1, %xmm2 orps %xmm3, %xmm2 ucomiss 0x2bc(%rcx), %xmm2 jbe 0x2ab486 movss 0x30(%rsp), %xmm1 movd %eax, %xmm2 movaps %xmm1, %xmm3 minss %xmm2, %xmm3 movss 0x2c0(%rcx), %xmm4 ucomiss %xmm3, %xmm4 jbe 0x2ab486 movaps %xmm2, %xmm3 cmpless %xmm1, %xmm3 movaps %xmm3, %xmm4 andnps %xmm2, %xmm4 andps %xmm1, %xmm3 orps %xmm4, %xmm3 ucomiss 0x2b8(%rcx), %xmm3 jbe 0x2ab486 movl %eax, 0x8(%rsp) movss %xmm0, 0xc(%rsp) movq 0x20(%rsp), %rbp movq %rbp, %rdi leaq 0x30(%rsp), %rsi leaq 0x8(%rsp), %rdx movl 0x4(%rsp), %r12d movl %r12d, %ecx movss (%rsp), %xmm0 callq 0xe5ce0 movq %rbp, %rdi leaq 0x8(%rsp), %rsi leaq 0x28(%rsp), %rdx movl %r12d, %ecx movq 0x1bef79(%rip), %r12 # 0x46a3f0 movss (%rsp), %xmm0 callq 0xe5ce0 movq 0x28(%rsp), %rax movq %rax, 0x30(%rsp) incl %ebx movl 0x10(%r15), %ecx cmpl %ecx, %ebx jl 0x2ab2ce jmp 0x2ab5c1 leaq 0x30(%rsp), %r12 movq %r15, (%r12) movq %r14, 0x8(%r12) movl 0x10(%r15), %esi leal -0x1(%rsi), %eax movl %eax, 0x10(%r12) movl 0x4(%rsp), %eax movl %eax, 0x14(%r12) movss (%rsp), %xmm0 mulss 0xd7cba(%rip), %xmm0 # 0x383188 movss %xmm0, 0x18(%r12) movl 0x14(%r15), %eax movslq 0x18(%r15), %rdi cltd idivl %esi leal (%rdx,%rsi), %eax cltd idivl %esi movslq %edx, %rax imulq %rdi, %rax movq (%r15), %rdx movzbl (%rdx,%rax), %edx xorps %xmm0, %xmm0 cvtsi2sd %edx, %xmm0 movapd %xmm0, 0x10(%rsp) movq 0x8(%r15), %rdx movzbl (%rdx,%rax), %eax xorps %xmm0, %xmm0 cvtsi2sd %eax, %xmm0 movslq (%r14), %rax shlq $0x7, %rax divsd 0x98(%rcx,%rax), %xmm0 callq 0xe2ca0 movslq (%r14), %rax divsd 0x1c0(%r13,%rax,8), %xmm0 movq 0x28(%r13), %rdx movsd 0x198(%r13), %xmm1 movhpd 0x1a0(%r13,%rax,8), %xmm1 # xmm1 = xmm1[0],mem[0] movq %rax, %rcx shlq $0x7, %rax movsd 0x98(%rdx,%rax), %xmm2 movsd 0xa0(%rdx,%rax), %xmm3 cvtsd2ss %xmm0, %xmm0 subsd %xmm2, %xmm3 cvtss2sd %xmm0, %xmm0 mulsd %xmm3, %xmm0 addsd %xmm2, %xmm0 movapd 0x10(%rsp), %xmm4 unpcklpd %xmm0, %xmm4 # xmm4 = xmm4[0],xmm0[0] shlq $0x4, %rcx cvtps2pd 0x164(%r13,%rcx), %xmm0 movsd 0x18(%rdx), %xmm3 unpcklpd %xmm2, %xmm3 # xmm3 = xmm3[0],xmm2[0] subpd %xmm3, %xmm4 mulpd %xmm4, %xmm1 addpd %xmm0, %xmm1 cvtpd2ps %xmm1, %xmm0 movlpd %xmm0, 0x1c(%r12) addq $0x2b8, %rdx # imm = 0x2B8 movq %r12, %rdi movq 0x20(%rsp), %rsi callq 0xe7c30 addq $0x58, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
void ImPlot::RenderPrimitives<ImPlot::StairsRenderer<ImPlot::GetterXsYs<unsigned char>, ImPlot::TransformerLinLin>>(ImPlot::StairsRenderer<ImPlot::GetterXsYs<unsigned char>, ImPlot::TransformerLinLin> const&, ImDrawList&, ImRect const&)
inline void RenderPrimitives(const Renderer& renderer, ImDrawList& DrawList, const ImRect& cull_rect) { unsigned int prims = renderer.Prims; unsigned int prims_culled = 0; unsigned int idx = 0; const ImVec2 uv = DrawList._Data->TexUvWhitePixel; while (prims) { // find how many can be reserved up to end of current draw command's limit unsigned int cnt = ImMin(prims, (MaxIdx<ImDrawIdx>::Value - DrawList._VtxCurrentIdx) / Renderer::VtxConsumed); // make sure at least this many elements can be rendered to avoid situations where at the end of buffer this slow path is not taken all the time if (cnt >= ImMin(64u, prims)) { if (prims_culled >= cnt) prims_culled -= cnt; // reuse previous reservation else { DrawList.PrimReserve((cnt - prims_culled) * Renderer::IdxConsumed, (cnt - prims_culled) * Renderer::VtxConsumed); // add more elements to previous reservation prims_culled = 0; } } else { if (prims_culled > 0) { DrawList.PrimUnreserve(prims_culled * Renderer::IdxConsumed, prims_culled * Renderer::VtxConsumed); prims_culled = 0; } cnt = ImMin(prims, (MaxIdx<ImDrawIdx>::Value - 0/*DrawList._VtxCurrentIdx*/) / Renderer::VtxConsumed); DrawList.PrimReserve(cnt * Renderer::IdxConsumed, cnt * Renderer::VtxConsumed); // reserve new draw command } prims -= cnt; for (unsigned int ie = idx + cnt; idx != ie; ++idx) { if (!renderer(DrawList, cull_rect, uv, idx)) prims_culled++; } } if (prims_culled > 0) DrawList.PrimUnreserve(prims_culled * Renderer::IdxConsumed, prims_culled * Renderer::VtxConsumed); }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rsi, %rbx movl 0x10(%rdi), %esi movq 0x38(%rbx), %rax movq (%rax), %rax movq %rax, 0x8(%rsp) testl %esi, %esi je 0x2abc47 movq %rdx, %r14 movq %rdi, %r15 xorl %r12d, %r12d leaq 0x8(%rsp), %rcx xorl %ebp, %ebp movl 0x34(%rbx), %edi movl %edi, %eax notl %eax shrl $0x3, %eax cmpl %eax, %esi movl %eax, %r13d cmovbl %esi, %r13d cmpl $0x40, %esi movl $0x40, %edx cmovbl %esi, %edx cmpl %edx, %eax jae 0x2abba5 testl %ebp, %ebp je 0x2abb91 leal (,%rbp,4), %eax movl %esi, %r13d leal (%rax,%rax,2), %esi shll $0x3, %ebp movq %rbx, %rdi movl %ebp, %edx callq 0xe0140 movl %r13d, %esi movl $0x1fffffff, %eax # imm = 0x1FFFFFFF cmpl %eax, %esi movl $0x1fffffff, %edx # imm = 0x1FFFFFFF cmovbl %esi, %edx movl %edx, %r13d jmp 0x2abbb1 movl %ebp, %eax subl %r13d, %eax jae 0x2abc1a movl %r13d, %edx subl %ebp, %edx movl %esi, %ebp leal (,%rdx,4), %eax leal (%rax,%rax,2), %esi shll $0x3, %edx movq %rbx, %rdi callq 0xe3170 subl %r13d, %ebp movl %ebp, 0x4(%rsp) xorl %eax, %eax leaq 0x8(%rsp), %rcx leal (%r12,%r13), %edx movl %edx, 0x14(%rsp) movl %eax, %ebp movq %r15, %rdi movq %rbx, %rsi movq %r14, %rdx movl %r12d, %r8d callq 0xe3300 leaq 0x8(%rsp), %rcx xorb $0x1, %al movzbl %al, %eax addl %eax, %ebp incl %r12d decl %r13d jne 0x2abbe0 movl 0x14(%rsp), %eax movl %eax, %r12d movl 0x4(%rsp), %esi testl %esi, %esi jne 0x2abb4e jmp 0x2abc2c subl %r13d, %esi cmpl $-0x9, %edi jbe 0x2abc26 movl %eax, %ebp jmp 0x2abc10 movl %esi, 0x4(%rsp) jmp 0x2abbd6 testl %ebp, %ebp je 0x2abc47 leal (,%rbp,4), %eax leal (%rax,%rax,2), %esi shll $0x3, %ebp movq %rbx, %rdi movl %ebp, %edx callq 0xe0140 addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
ImPlot::StairsRenderer<ImPlot::GetterXsYs<unsigned char>, ImPlot::TransformerLinLog>::operator()(ImDrawList&, ImRect const&, ImVec2 const&, int) const
inline bool operator()(ImDrawList& DrawList, const ImRect& cull_rect, const ImVec2& uv, int prim) const { ImVec2 P2 = Transformer(Getter(prim + 1)); if (!cull_rect.Overlaps(ImRect(ImMin(P1, P2), ImMax(P1, P2)))) { P1 = P2; return false; } AddRectFilled(ImVec2(P1.x, P1.y + HalfWeight), ImVec2(P2.x, P1.y - HalfWeight), Col, DrawList, uv); AddRectFilled(ImVec2(P2.x - HalfWeight, P2.y), ImVec2(P2.x + HalfWeight, P1.y), Col, DrawList, uv); // AddLine(P1, P12, Weight, Col, DrawList, uv); // AddLine(P12, P2, Weight, Col, DrawList, uv); P1 = P2; return true; }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rcx, %r15 movq %rdx, %r12 movq %rdi, %rbx movq (%rdi), %rcx movq 0x8(%rdi), %rbp movl 0x10(%rcx), %edi movl 0x14(%rcx), %eax movslq 0x18(%rcx), %r9 addl %r8d, %eax incl %eax cltd idivl %edi leal (%rdx,%rdi), %eax cltd idivl %edi movslq %edx, %rax imulq %r9, %rax movq (%rcx), %rdx movzbl (%rdx,%rax), %edx cvtsi2sd %edx, %xmm0 movapd %xmm0, (%rsp) movq 0x8(%rcx), %rcx movzbl (%rcx,%rax), %eax xorps %xmm0, %xmm0 cvtsi2sd %eax, %xmm0 movq %rsi, %r14 movq 0x1bdf3c(%rip), %rax # 0x46a3f0 movq (%rax), %r13 movq 0x28(%r13), %rax movslq (%rbp), %rcx shlq $0x7, %rcx divsd 0x98(%rax,%rcx), %xmm0 callq 0xe2ca0 movslq (%rbp), %rcx divsd 0x1c0(%r13,%rcx,8), %xmm0 movq 0x28(%r13), %rax movq %rcx, %rdx movsd 0x198(%r13), %xmm1 movhpd 0x1a0(%r13,%rcx,8), %xmm1 # xmm1 = xmm1[0],mem[0] shlq $0x7, %rcx movsd 0x98(%rax,%rcx), %xmm2 cvtsd2ss %xmm0, %xmm0 movsd 0xa0(%rax,%rcx), %xmm3 subsd %xmm2, %xmm3 cvtss2sd %xmm0, %xmm0 mulsd %xmm3, %xmm0 addsd %xmm2, %xmm0 shlq $0x4, %rdx cvtps2pd 0x164(%r13,%rdx), %xmm3 movapd (%rsp), %xmm4 unpcklpd %xmm0, %xmm4 # xmm4 = xmm4[0],xmm0[0] movsd 0x18(%rax), %xmm0 unpcklpd %xmm2, %xmm0 # xmm0 = xmm0[0],xmm2[0] subpd %xmm0, %xmm4 mulpd %xmm4, %xmm1 addpd %xmm3, %xmm1 cvtpd2ps %xmm1, %xmm0 movapd %xmm0, %xmm2 unpcklpd %xmm0, %xmm2 # xmm2 = xmm2[0],xmm0[0] movsd 0x1c(%rbx), %xmm1 movaps %xmm1, %xmm3 movlhps %xmm1, %xmm3 # xmm3 = xmm3[0],xmm1[0] movapd %xmm2, %xmm4 cmpleps %xmm3, %xmm4 movaps %xmm3, %xmm5 cmpltps %xmm2, %xmm5 movsd %xmm4, %xmm5 # xmm5 = xmm4[0],xmm5[1] andps %xmm5, %xmm3 andnps %xmm2, %xmm5 orps %xmm3, %xmm5 movups (%r12), %xmm2 movaps %xmm2, %xmm3 cmpltps %xmm5, %xmm3 cmpltps %xmm2, %xmm5 movsd %xmm3, %xmm5 # xmm5 = xmm3[0],xmm5[1] movmskps %xmm5, %eax cmpl $0xf, %eax jne 0x2ac730 movss 0x18(%rbx), %xmm2 movaps %xmm1, %xmm3 shufps $0x55, %xmm1, %xmm3 # xmm3 = xmm3[1,1],xmm1[1,1] movaps %xmm3, %xmm4 addss %xmm2, %xmm4 subss %xmm2, %xmm3 movl 0x14(%rbx), %edx movsd (%r15), %xmm2 movq 0x48(%r14), %rcx movss %xmm1, (%rcx) movss %xmm4, 0x4(%rcx) movq 0x48(%r14), %rcx movsd %xmm2, 0x8(%rcx) movq 0x48(%r14), %rcx movl %edx, 0x10(%rcx) movss %xmm0, 0x14(%rcx) movss %xmm3, 0x18(%rcx) movq 0x48(%r14), %rcx movsd %xmm2, 0x1c(%rcx) movq 0x48(%r14), %rcx movl %edx, 0x24(%rcx) movss %xmm1, 0x28(%rcx) movss %xmm3, 0x2c(%rcx) movsd %xmm2, 0x30(%rcx) movq 0x48(%r14), %rcx movl %edx, 0x38(%rcx) movss %xmm0, 0x3c(%rcx) movss %xmm4, 0x40(%rcx) movsd %xmm2, 0x44(%rcx) movq 0x48(%r14), %rcx movl %edx, 0x4c(%rcx) leaq 0x50(%rcx), %rdx movq %rdx, 0x48(%r14) movl 0x34(%r14), %edx movq 0x50(%r14), %rsi movl %edx, (%rsi) incl %edx movl %edx, 0x4(%rsi) movl 0x34(%r14), %edx addl $0x2, %edx movl %edx, 0x8(%rsi) movl 0x34(%r14), %edx movl %edx, 0xc(%rsi) incl %edx movl %edx, 0x10(%rsi) movl 0x34(%r14), %edx addl $0x3, %edx movl %edx, 0x14(%rsi) addq $0x18, %rsi movq %rsi, 0x50(%r14) addl $0x4, 0x34(%r14) movss 0x18(%rbx), %xmm1 movapd %xmm0, %xmm2 subss %xmm1, %xmm2 addss %xmm0, %xmm1 movss 0x20(%rbx), %xmm3 movl 0x14(%rbx), %edx movsd (%r15), %xmm4 movss %xmm2, 0x50(%rcx) movaps %xmm0, %xmm5 shufps $0x55, %xmm0, %xmm5 # xmm5 = xmm5[1,1],xmm0[1,1] movss %xmm5, 0x54(%rcx) movq 0x48(%r14), %rcx movsd %xmm4, 0x8(%rcx) movq 0x48(%r14), %rcx movl %edx, 0x10(%rcx) movss %xmm1, 0x14(%rcx) movss %xmm3, 0x18(%rcx) movq 0x48(%r14), %rcx movsd %xmm4, 0x1c(%rcx) movq 0x48(%r14), %rcx movl %edx, 0x24(%rcx) movss %xmm2, 0x28(%rcx) movss %xmm3, 0x2c(%rcx) movsd %xmm4, 0x30(%rcx) movq 0x48(%r14), %rcx movl %edx, 0x38(%rcx) movss %xmm1, 0x3c(%rcx) movss %xmm5, 0x40(%rcx) movsd %xmm4, 0x44(%rcx) movq 0x48(%r14), %rcx movl %edx, 0x4c(%rcx) addq $0x50, %rcx movq %rcx, 0x48(%r14) movl 0x34(%r14), %ecx movq 0x50(%r14), %rdx movl %ecx, (%rdx) incl %ecx movl %ecx, 0x4(%rdx) movl 0x34(%r14), %ecx addl $0x2, %ecx movl %ecx, 0x8(%rdx) movl 0x34(%r14), %ecx movl %ecx, 0xc(%rdx) incl %ecx movl %ecx, 0x10(%rdx) movl 0x34(%r14), %ecx addl $0x3, %ecx movl %ecx, 0x14(%rdx) addq $0x18, %rdx movq %rdx, 0x50(%r14) addl $0x4, 0x34(%r14) cmpb $0xf, %al sete %al movlpd %xmm0, 0x1c(%rbx) addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
void ImPlot::RenderStairs<ImPlot::GetterXsYs<short>, ImPlot::TransformerLinLog>(ImPlot::GetterXsYs<short> const&, ImPlot::TransformerLinLog const&, ImDrawList&, float, unsigned int)
inline void RenderStairs(const Getter& getter, const Transformer& transformer, ImDrawList& DrawList, float line_weight, ImU32 col) { ImPlotContext& gp = *GImPlot; if (ImHasFlag(gp.CurrentPlot->Flags, ImPlotFlags_AntiAliased) || gp.Style.AntiAliasedLines) { ImVec2 p1 = transformer(getter(0)); for (int i = 1; i < getter.Count; ++i) { ImVec2 p2 = transformer(getter(i)); if (gp.CurrentPlot->PlotRect.Overlaps(ImRect(ImMin(p1, p2), ImMax(p1, p2)))) { ImVec2 p12(p2.x, p1.y); DrawList.AddLine(p1, p12, col, line_weight); DrawList.AddLine(p12, p2, col, line_weight); } p1 = p2; } } else { RenderPrimitives(StairsRenderer<Getter,Transformer>(getter, transformer, col, line_weight), DrawList, gp.CurrentPlot->PlotRect); } }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x58, %rsp movl %ecx, 0x4(%rsp) movss %xmm0, (%rsp) movq %rdx, 0x20(%rsp) movq %rsi, %r14 movq %rdi, %r15 movq 0x1bd078(%rip), %r12 # 0x46a3f0 movq (%r12), %r13 movq 0x28(%r13), %rcx testb $0x10, 0x5(%rcx) jne 0x2ad394 cmpb $0x1, 0x448(%r13) jne 0x2ad651 movl 0x10(%r15), %esi movl 0x14(%r15), %eax movslq 0x18(%r15), %rdi cltd idivl %esi leal (%rdx,%rsi), %eax cltd idivl %esi movslq %edx, %rax imulq %rdi, %rax movq (%r15), %rdx movswl (%rdx,%rax), %edx xorps %xmm0, %xmm0 cvtsi2sd %edx, %xmm0 movapd %xmm0, 0x10(%rsp) movq 0x8(%r15), %rdx movswl (%rdx,%rax), %eax xorps %xmm0, %xmm0 cvtsi2sd %eax, %xmm0 movslq (%r14), %rax shlq $0x7, %rax divsd 0x98(%rcx,%rax), %xmm0 callq 0xe2ca0 movslq (%r14), %rcx divsd 0x1c0(%r13,%rcx,8), %xmm0 movq 0x28(%r13), %rax movq %rcx, %rdx movsd 0x198(%r13), %xmm1 movhpd 0x1a0(%r13,%rcx,8), %xmm1 # xmm1 = xmm1[0],mem[0] shlq $0x7, %rcx movsd 0x98(%rax,%rcx), %xmm2 cvtsd2ss %xmm0, %xmm0 movsd 0xa0(%rax,%rcx), %xmm3 subsd %xmm2, %xmm3 cvtss2sd %xmm0, %xmm0 mulsd %xmm3, %xmm0 addsd %xmm2, %xmm0 movapd 0x10(%rsp), %xmm3 unpcklpd %xmm0, %xmm3 # xmm3 = xmm3[0],xmm0[0] shlq $0x4, %rdx movsd 0x18(%rax), %xmm0 unpcklpd %xmm2, %xmm0 # xmm0 = xmm0[0],xmm2[0] cvtps2pd 0x164(%r13,%rdx), %xmm2 subpd %xmm0, %xmm3 mulpd %xmm3, %xmm1 addpd %xmm2, %xmm1 cvtpd2ps %xmm1, %xmm0 movlpd %xmm0, 0x30(%rsp) movl 0x10(%r15), %ecx cmpl $0x2, %ecx jl 0x2ad774 movl $0x1, %ebx movslq 0x18(%r15), %rsi movl 0x14(%r15), %eax addl %ebx, %eax cltd idivl %ecx leal (%rdx,%rcx), %eax cltd idivl %ecx movslq %edx, %rax imulq %rsi, %rax movq (%r15), %rcx movq 0x8(%r15), %rdx movswl (%rcx,%rax), %ecx xorps %xmm0, %xmm0 cvtsi2sd %ecx, %xmm0 movapd %xmm0, 0x10(%rsp) movswl (%rdx,%rax), %eax xorps %xmm0, %xmm0 cvtsi2sd %eax, %xmm0 movq (%r12), %rbp movq 0x28(%rbp), %rax movslq (%r14), %rcx shlq $0x7, %rcx divsd 0x98(%rax,%rcx), %xmm0 callq 0xe2ca0 movslq (%r14), %rcx divsd 0x1c0(%rbp,%rcx,8), %xmm0 movq 0x28(%rbp), %rax movsd 0x198(%rbp), %xmm1 movhpd 0x1a0(%rbp,%rcx,8), %xmm1 # xmm1 = xmm1[0],mem[0] movq %rcx, %rdx shlq $0x7, %rcx movsd 0x98(%rax,%rcx), %xmm2 movsd 0xa0(%rax,%rcx), %xmm3 cvtsd2ss %xmm0, %xmm0 subsd %xmm2, %xmm3 cvtss2sd %xmm0, %xmm0 mulsd %xmm3, %xmm0 addsd %xmm2, %xmm0 movapd 0x10(%rsp), %xmm4 unpcklpd %xmm0, %xmm4 # xmm4 = xmm4[0],xmm0[0] shlq $0x4, %rdx cvtps2pd 0x164(%rbp,%rdx), %xmm0 movsd 0x18(%rax), %xmm3 unpcklpd %xmm2, %xmm3 # xmm3 = xmm3[0],xmm2[0] subpd %xmm3, %xmm4 mulpd %xmm4, %xmm1 addpd %xmm0, %xmm1 cvtpd2ps %xmm1, %xmm1 movlpd %xmm1, 0x28(%rsp) movq 0x28(%r13), %rcx movss 0x34(%rsp), %xmm0 movq %xmm1, %rax shufps $0x55, %xmm1, %xmm1 # xmm1 = xmm1[1,1,1,1] movaps %xmm0, %xmm2 minss %xmm1, %xmm2 movss 0x2c4(%rcx), %xmm3 ucomiss %xmm2, %xmm3 jbe 0x2ad639 movaps %xmm1, %xmm2 cmpless %xmm0, %xmm2 movaps %xmm2, %xmm3 andps %xmm0, %xmm3 andnps %xmm1, %xmm2 orps %xmm3, %xmm2 ucomiss 0x2bc(%rcx), %xmm2 jbe 0x2ad639 movss 0x30(%rsp), %xmm1 movd %eax, %xmm2 movaps %xmm1, %xmm3 minss %xmm2, %xmm3 movss 0x2c0(%rcx), %xmm4 ucomiss %xmm3, %xmm4 jbe 0x2ad639 movaps %xmm2, %xmm3 cmpless %xmm1, %xmm3 movaps %xmm3, %xmm4 andnps %xmm2, %xmm4 andps %xmm1, %xmm3 orps %xmm4, %xmm3 ucomiss 0x2b8(%rcx), %xmm3 jbe 0x2ad639 movl %eax, 0x8(%rsp) movss %xmm0, 0xc(%rsp) movq 0x20(%rsp), %rbp movq %rbp, %rdi leaq 0x30(%rsp), %rsi leaq 0x8(%rsp), %rdx movl 0x4(%rsp), %r12d movl %r12d, %ecx movss (%rsp), %xmm0 callq 0xe5ce0 movq %rbp, %rdi leaq 0x8(%rsp), %rsi leaq 0x28(%rsp), %rdx movl %r12d, %ecx movq 0x1bcdc6(%rip), %r12 # 0x46a3f0 movss (%rsp), %xmm0 callq 0xe5ce0 movq 0x28(%rsp), %rax movq %rax, 0x30(%rsp) incl %ebx movl 0x10(%r15), %ecx cmpl %ecx, %ebx jl 0x2ad481 jmp 0x2ad774 leaq 0x30(%rsp), %r12 movq %r15, (%r12) movq %r14, 0x8(%r12) movl 0x10(%r15), %esi leal -0x1(%rsi), %eax movl %eax, 0x10(%r12) movl 0x4(%rsp), %eax movl %eax, 0x14(%r12) movss (%rsp), %xmm0 mulss 0xd5b07(%rip), %xmm0 # 0x383188 movss %xmm0, 0x18(%r12) movl 0x14(%r15), %eax movslq 0x18(%r15), %rdi cltd idivl %esi leal (%rdx,%rsi), %eax cltd idivl %esi movslq %edx, %rax imulq %rdi, %rax movq (%r15), %rdx movswl (%rdx,%rax), %edx xorps %xmm0, %xmm0 cvtsi2sd %edx, %xmm0 movapd %xmm0, 0x10(%rsp) movq 0x8(%r15), %rdx movswl (%rdx,%rax), %eax xorps %xmm0, %xmm0 cvtsi2sd %eax, %xmm0 movslq (%r14), %rax shlq $0x7, %rax divsd 0x98(%rcx,%rax), %xmm0 callq 0xe2ca0 movslq (%r14), %rax divsd 0x1c0(%r13,%rax,8), %xmm0 movq 0x28(%r13), %rdx movsd 0x198(%r13), %xmm1 movhpd 0x1a0(%r13,%rax,8), %xmm1 # xmm1 = xmm1[0],mem[0] movq %rax, %rcx shlq $0x7, %rax movsd 0x98(%rdx,%rax), %xmm2 movsd 0xa0(%rdx,%rax), %xmm3 cvtsd2ss %xmm0, %xmm0 subsd %xmm2, %xmm3 cvtss2sd %xmm0, %xmm0 mulsd %xmm3, %xmm0 addsd %xmm2, %xmm0 movapd 0x10(%rsp), %xmm4 unpcklpd %xmm0, %xmm4 # xmm4 = xmm4[0],xmm0[0] shlq $0x4, %rcx cvtps2pd 0x164(%r13,%rcx), %xmm0 movsd 0x18(%rdx), %xmm3 unpcklpd %xmm2, %xmm3 # xmm3 = xmm3[0],xmm2[0] subpd %xmm3, %xmm4 mulpd %xmm4, %xmm1 addpd %xmm0, %xmm1 cvtpd2ps %xmm1, %xmm0 movlpd %xmm0, 0x1c(%r12) addq $0x2b8, %rdx # imm = 0x2B8 movq %r12, %rdi movq 0x20(%rsp), %rsi callq 0xe22d0 addq $0x58, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
ImPlot::StairsRenderer<ImPlot::GetterXsYs<short>, ImPlot::TransformerLogLin>::operator()(ImDrawList&, ImRect const&, ImVec2 const&, int) const
inline bool operator()(ImDrawList& DrawList, const ImRect& cull_rect, const ImVec2& uv, int prim) const { ImVec2 P2 = Transformer(Getter(prim + 1)); if (!cull_rect.Overlaps(ImRect(ImMin(P1, P2), ImMax(P1, P2)))) { P1 = P2; return false; } AddRectFilled(ImVec2(P1.x, P1.y + HalfWeight), ImVec2(P2.x, P1.y - HalfWeight), Col, DrawList, uv); AddRectFilled(ImVec2(P2.x - HalfWeight, P2.y), ImVec2(P2.x + HalfWeight, P1.y), Col, DrawList, uv); // AddLine(P1, P12, Weight, Col, DrawList, uv); // AddLine(P12, P2, Weight, Col, DrawList, uv); P1 = P2; return true; }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rcx, %r15 movq %rdx, %r12 movq %rsi, %r14 movq %rdi, %rbx movq (%rdi), %rcx movq 0x8(%rdi), %r13 movl 0x10(%rcx), %esi movl 0x14(%rcx), %eax movslq 0x18(%rcx), %rdi addl %r8d, %eax incl %eax cltd idivl %esi leal (%rdx,%rsi), %eax cltd idivl %esi movslq %edx, %rax imulq %rdi, %rax movq (%rcx), %rdx movq 0x8(%rcx), %rcx movswl (%rdx,%rax), %edx cvtsi2sd %edx, %xmm0 movswl (%rcx,%rax), %eax cvtsi2sd %eax, %xmm1 movapd %xmm1, (%rsp) movq 0x1bc1a1(%rip), %rax # 0x46a3f0 movq (%rax), %rbp movq 0x28(%rbp), %rax divsd 0x18(%rax), %xmm0 callq 0xe2ca0 divsd 0x1b8(%rbp), %xmm0 movq 0x28(%rbp), %rax movupd 0x18(%rax), %xmm1 cvtsd2ss %xmm0, %xmm0 movapd %xmm1, %xmm2 unpckhpd %xmm1, %xmm2 # xmm2 = xmm2[1],xmm1[1] subsd %xmm1, %xmm2 cvtss2sd %xmm0, %xmm0 mulsd %xmm2, %xmm0 addsd %xmm1, %xmm0 unpcklpd (%rsp), %xmm0 # xmm0 = xmm0[0],mem[0] movslq (%r13), %rcx movq %rcx, %rdx movsd 0x198(%rbp), %xmm2 movhpd 0x1a0(%rbp,%rcx,8), %xmm2 # xmm2 = xmm2[0],mem[0] shlq $0x4, %rcx cvtps2pd 0x164(%rbp,%rcx), %xmm3 shlq $0x7, %rdx movhpd 0x98(%rax,%rdx), %xmm1 # xmm1 = xmm1[0],mem[0] subpd %xmm1, %xmm0 mulpd %xmm0, %xmm2 addpd %xmm3, %xmm2 cvtpd2ps %xmm2, %xmm0 movapd %xmm0, %xmm2 unpcklpd %xmm0, %xmm2 # xmm2 = xmm2[0],xmm0[0] movsd 0x1c(%rbx), %xmm1 movaps %xmm1, %xmm3 movlhps %xmm1, %xmm3 # xmm3 = xmm3[0],xmm1[0] movapd %xmm2, %xmm4 cmpleps %xmm3, %xmm4 movaps %xmm3, %xmm5 cmpltps %xmm2, %xmm5 movsd %xmm4, %xmm5 # xmm5 = xmm4[0],xmm5[1] andps %xmm5, %xmm3 andnps %xmm2, %xmm5 orps %xmm3, %xmm5 movups (%r12), %xmm2 movaps %xmm2, %xmm3 cmpltps %xmm5, %xmm3 cmpltps %xmm2, %xmm5 movsd %xmm3, %xmm5 # xmm5 = xmm3[0],xmm5[1] movmskps %xmm5, %eax cmpl $0xf, %eax jne 0x2ae4b1 movss 0x18(%rbx), %xmm2 movaps %xmm1, %xmm3 shufps $0x55, %xmm1, %xmm3 # xmm3 = xmm3[1,1],xmm1[1,1] movaps %xmm3, %xmm4 addss %xmm2, %xmm4 subss %xmm2, %xmm3 movl 0x14(%rbx), %edx movsd (%r15), %xmm2 movq 0x48(%r14), %rcx movss %xmm1, (%rcx) movss %xmm4, 0x4(%rcx) movq 0x48(%r14), %rcx movsd %xmm2, 0x8(%rcx) movq 0x48(%r14), %rcx movl %edx, 0x10(%rcx) movss %xmm0, 0x14(%rcx) movss %xmm3, 0x18(%rcx) movq 0x48(%r14), %rcx movsd %xmm2, 0x1c(%rcx) movq 0x48(%r14), %rcx movl %edx, 0x24(%rcx) movss %xmm1, 0x28(%rcx) movss %xmm3, 0x2c(%rcx) movsd %xmm2, 0x30(%rcx) movq 0x48(%r14), %rcx movl %edx, 0x38(%rcx) movss %xmm0, 0x3c(%rcx) movss %xmm4, 0x40(%rcx) movsd %xmm2, 0x44(%rcx) movq 0x48(%r14), %rcx movl %edx, 0x4c(%rcx) leaq 0x50(%rcx), %rdx movq %rdx, 0x48(%r14) movl 0x34(%r14), %edx movq 0x50(%r14), %rsi movl %edx, (%rsi) incl %edx movl %edx, 0x4(%rsi) movl 0x34(%r14), %edx addl $0x2, %edx movl %edx, 0x8(%rsi) movl 0x34(%r14), %edx movl %edx, 0xc(%rsi) incl %edx movl %edx, 0x10(%rsi) movl 0x34(%r14), %edx addl $0x3, %edx movl %edx, 0x14(%rsi) addq $0x18, %rsi movq %rsi, 0x50(%r14) addl $0x4, 0x34(%r14) movss 0x18(%rbx), %xmm1 movapd %xmm0, %xmm2 subss %xmm1, %xmm2 addss %xmm0, %xmm1 movss 0x20(%rbx), %xmm3 movl 0x14(%rbx), %edx movsd (%r15), %xmm4 movss %xmm2, 0x50(%rcx) movaps %xmm0, %xmm5 shufps $0x55, %xmm0, %xmm5 # xmm5 = xmm5[1,1],xmm0[1,1] movss %xmm5, 0x54(%rcx) movq 0x48(%r14), %rcx movsd %xmm4, 0x8(%rcx) movq 0x48(%r14), %rcx movl %edx, 0x10(%rcx) movss %xmm1, 0x14(%rcx) movss %xmm3, 0x18(%rcx) movq 0x48(%r14), %rcx movsd %xmm4, 0x1c(%rcx) movq 0x48(%r14), %rcx movl %edx, 0x24(%rcx) movss %xmm2, 0x28(%rcx) movss %xmm3, 0x2c(%rcx) movsd %xmm4, 0x30(%rcx) movq 0x48(%r14), %rcx movl %edx, 0x38(%rcx) movss %xmm1, 0x3c(%rcx) movss %xmm5, 0x40(%rcx) movsd %xmm4, 0x44(%rcx) movq 0x48(%r14), %rcx movl %edx, 0x4c(%rcx) addq $0x50, %rcx movq %rcx, 0x48(%r14) movl 0x34(%r14), %ecx movq 0x50(%r14), %rdx movl %ecx, (%rdx) incl %ecx movl %ecx, 0x4(%rdx) movl 0x34(%r14), %ecx addl $0x2, %ecx movl %ecx, 0x8(%rdx) movl 0x34(%r14), %ecx movl %ecx, 0xc(%rdx) incl %ecx movl %ecx, 0x10(%rdx) movl 0x34(%r14), %ecx addl $0x3, %ecx movl %ecx, 0x14(%rdx) addq $0x18, %rdx movq %rdx, 0x50(%r14) addl $0x4, 0x34(%r14) cmpb $0xf, %al sete %al movlpd %xmm0, 0x1c(%rbx) addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
void ImPlot::RenderPrimitives<ImPlot::StairsRenderer<ImPlot::GetterXsYs<unsigned short>, ImPlot::TransformerLinLin>>(ImPlot::StairsRenderer<ImPlot::GetterXsYs<unsigned short>, ImPlot::TransformerLinLin> const&, ImDrawList&, ImRect const&)
inline void RenderPrimitives(const Renderer& renderer, ImDrawList& DrawList, const ImRect& cull_rect) { unsigned int prims = renderer.Prims; unsigned int prims_culled = 0; unsigned int idx = 0; const ImVec2 uv = DrawList._Data->TexUvWhitePixel; while (prims) { // find how many can be reserved up to end of current draw command's limit unsigned int cnt = ImMin(prims, (MaxIdx<ImDrawIdx>::Value - DrawList._VtxCurrentIdx) / Renderer::VtxConsumed); // make sure at least this many elements can be rendered to avoid situations where at the end of buffer this slow path is not taken all the time if (cnt >= ImMin(64u, prims)) { if (prims_culled >= cnt) prims_culled -= cnt; // reuse previous reservation else { DrawList.PrimReserve((cnt - prims_culled) * Renderer::IdxConsumed, (cnt - prims_culled) * Renderer::VtxConsumed); // add more elements to previous reservation prims_culled = 0; } } else { if (prims_culled > 0) { DrawList.PrimUnreserve(prims_culled * Renderer::IdxConsumed, prims_culled * Renderer::VtxConsumed); prims_culled = 0; } cnt = ImMin(prims, (MaxIdx<ImDrawIdx>::Value - 0/*DrawList._VtxCurrentIdx*/) / Renderer::VtxConsumed); DrawList.PrimReserve(cnt * Renderer::IdxConsumed, cnt * Renderer::VtxConsumed); // reserve new draw command } prims -= cnt; for (unsigned int ie = idx + cnt; idx != ie; ++idx) { if (!renderer(DrawList, cull_rect, uv, idx)) prims_culled++; } } if (prims_culled > 0) DrawList.PrimUnreserve(prims_culled * Renderer::IdxConsumed, prims_culled * Renderer::VtxConsumed); }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rsi, %rbx movl 0x10(%rdi), %esi movq 0x38(%rbx), %rax movq (%rax), %rax movq %rax, 0x8(%rsp) testl %esi, %esi je 0x2affa1 movq %rdx, %r14 movq %rdi, %r15 xorl %r12d, %r12d leaq 0x8(%rsp), %rcx xorl %ebp, %ebp movl 0x34(%rbx), %edi movl %edi, %eax notl %eax shrl $0x3, %eax cmpl %eax, %esi movl %eax, %r13d cmovbl %esi, %r13d cmpl $0x40, %esi movl $0x40, %edx cmovbl %esi, %edx cmpl %edx, %eax jae 0x2afeff testl %ebp, %ebp je 0x2afeeb leal (,%rbp,4), %eax movl %esi, %r13d leal (%rax,%rax,2), %esi shll $0x3, %ebp movq %rbx, %rdi movl %ebp, %edx callq 0xe0140 movl %r13d, %esi movl $0x1fffffff, %eax # imm = 0x1FFFFFFF cmpl %eax, %esi movl $0x1fffffff, %edx # imm = 0x1FFFFFFF cmovbl %esi, %edx movl %edx, %r13d jmp 0x2aff0b movl %ebp, %eax subl %r13d, %eax jae 0x2aff74 movl %r13d, %edx subl %ebp, %edx movl %esi, %ebp leal (,%rdx,4), %eax leal (%rax,%rax,2), %esi shll $0x3, %edx movq %rbx, %rdi callq 0xe3170 subl %r13d, %ebp movl %ebp, 0x4(%rsp) xorl %eax, %eax leaq 0x8(%rsp), %rcx leal (%r12,%r13), %edx movl %edx, 0x14(%rsp) movl %eax, %ebp movq %r15, %rdi movq %rbx, %rsi movq %r14, %rdx movl %r12d, %r8d callq 0xe4410 leaq 0x8(%rsp), %rcx xorb $0x1, %al movzbl %al, %eax addl %eax, %ebp incl %r12d decl %r13d jne 0x2aff3a movl 0x14(%rsp), %eax movl %eax, %r12d movl 0x4(%rsp), %esi testl %esi, %esi jne 0x2afea8 jmp 0x2aff86 subl %r13d, %esi cmpl $-0x9, %edi jbe 0x2aff80 movl %eax, %ebp jmp 0x2aff6a movl %esi, 0x4(%rsp) jmp 0x2aff30 testl %ebp, %ebp je 0x2affa1 leal (,%rbp,4), %eax leal (%rax,%rax,2), %esi shll $0x3, %ebp movq %rbx, %rdi movl %ebp, %edx callq 0xe0140 addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
ImPlot::StairsRenderer<ImPlot::GetterXsYs<unsigned short>, ImPlot::TransformerLinLog>::operator()(ImDrawList&, ImRect const&, ImVec2 const&, int) const
inline bool operator()(ImDrawList& DrawList, const ImRect& cull_rect, const ImVec2& uv, int prim) const { ImVec2 P2 = Transformer(Getter(prim + 1)); if (!cull_rect.Overlaps(ImRect(ImMin(P1, P2), ImMax(P1, P2)))) { P1 = P2; return false; } AddRectFilled(ImVec2(P1.x, P1.y + HalfWeight), ImVec2(P2.x, P1.y - HalfWeight), Col, DrawList, uv); AddRectFilled(ImVec2(P2.x - HalfWeight, P2.y), ImVec2(P2.x + HalfWeight, P1.y), Col, DrawList, uv); // AddLine(P1, P12, Weight, Col, DrawList, uv); // AddLine(P12, P2, Weight, Col, DrawList, uv); P1 = P2; return true; }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rcx, %r15 movq %rdx, %r12 movq %rdi, %rbx movq (%rdi), %rcx movq 0x8(%rdi), %rbp movl 0x10(%rcx), %edi movl 0x14(%rcx), %eax movslq 0x18(%rcx), %r9 addl %r8d, %eax incl %eax cltd idivl %edi leal (%rdx,%rdi), %eax cltd idivl %edi movslq %edx, %rax imulq %r9, %rax movq (%rcx), %rdx movzwl (%rdx,%rax), %edx cvtsi2sd %edx, %xmm0 movapd %xmm0, (%rsp) movq 0x8(%rcx), %rcx movzwl (%rcx,%rax), %eax xorps %xmm0, %xmm0 cvtsi2sd %eax, %xmm0 movq %rsi, %r14 movq 0x1b9be4(%rip), %rax # 0x46a3f0 movq (%rax), %r13 movq 0x28(%r13), %rax movslq (%rbp), %rcx shlq $0x7, %rcx divsd 0x98(%rax,%rcx), %xmm0 callq 0xe2ca0 movslq (%rbp), %rcx divsd 0x1c0(%r13,%rcx,8), %xmm0 movq 0x28(%r13), %rax movq %rcx, %rdx movsd 0x198(%r13), %xmm1 movhpd 0x1a0(%r13,%rcx,8), %xmm1 # xmm1 = xmm1[0],mem[0] shlq $0x7, %rcx movsd 0x98(%rax,%rcx), %xmm2 cvtsd2ss %xmm0, %xmm0 movsd 0xa0(%rax,%rcx), %xmm3 subsd %xmm2, %xmm3 cvtss2sd %xmm0, %xmm0 mulsd %xmm3, %xmm0 addsd %xmm2, %xmm0 shlq $0x4, %rdx cvtps2pd 0x164(%r13,%rdx), %xmm3 movapd (%rsp), %xmm4 unpcklpd %xmm0, %xmm4 # xmm4 = xmm4[0],xmm0[0] movsd 0x18(%rax), %xmm0 unpcklpd %xmm2, %xmm0 # xmm0 = xmm0[0],xmm2[0] subpd %xmm0, %xmm4 mulpd %xmm4, %xmm1 addpd %xmm3, %xmm1 cvtpd2ps %xmm1, %xmm0 movapd %xmm0, %xmm2 unpcklpd %xmm0, %xmm2 # xmm2 = xmm2[0],xmm0[0] movsd 0x1c(%rbx), %xmm1 movaps %xmm1, %xmm3 movlhps %xmm1, %xmm3 # xmm3 = xmm3[0],xmm1[0] movapd %xmm2, %xmm4 cmpleps %xmm3, %xmm4 movaps %xmm3, %xmm5 cmpltps %xmm2, %xmm5 movsd %xmm4, %xmm5 # xmm5 = xmm4[0],xmm5[1] andps %xmm5, %xmm3 andnps %xmm2, %xmm5 orps %xmm3, %xmm5 movups (%r12), %xmm2 movaps %xmm2, %xmm3 cmpltps %xmm5, %xmm3 cmpltps %xmm2, %xmm5 movsd %xmm3, %xmm5 # xmm5 = xmm3[0],xmm5[1] movmskps %xmm5, %eax cmpl $0xf, %eax jne 0x2b0a88 movss 0x18(%rbx), %xmm2 movaps %xmm1, %xmm3 shufps $0x55, %xmm1, %xmm3 # xmm3 = xmm3[1,1],xmm1[1,1] movaps %xmm3, %xmm4 addss %xmm2, %xmm4 subss %xmm2, %xmm3 movl 0x14(%rbx), %edx movsd (%r15), %xmm2 movq 0x48(%r14), %rcx movss %xmm1, (%rcx) movss %xmm4, 0x4(%rcx) movq 0x48(%r14), %rcx movsd %xmm2, 0x8(%rcx) movq 0x48(%r14), %rcx movl %edx, 0x10(%rcx) movss %xmm0, 0x14(%rcx) movss %xmm3, 0x18(%rcx) movq 0x48(%r14), %rcx movsd %xmm2, 0x1c(%rcx) movq 0x48(%r14), %rcx movl %edx, 0x24(%rcx) movss %xmm1, 0x28(%rcx) movss %xmm3, 0x2c(%rcx) movsd %xmm2, 0x30(%rcx) movq 0x48(%r14), %rcx movl %edx, 0x38(%rcx) movss %xmm0, 0x3c(%rcx) movss %xmm4, 0x40(%rcx) movsd %xmm2, 0x44(%rcx) movq 0x48(%r14), %rcx movl %edx, 0x4c(%rcx) leaq 0x50(%rcx), %rdx movq %rdx, 0x48(%r14) movl 0x34(%r14), %edx movq 0x50(%r14), %rsi movl %edx, (%rsi) incl %edx movl %edx, 0x4(%rsi) movl 0x34(%r14), %edx addl $0x2, %edx movl %edx, 0x8(%rsi) movl 0x34(%r14), %edx movl %edx, 0xc(%rsi) incl %edx movl %edx, 0x10(%rsi) movl 0x34(%r14), %edx addl $0x3, %edx movl %edx, 0x14(%rsi) addq $0x18, %rsi movq %rsi, 0x50(%r14) addl $0x4, 0x34(%r14) movss 0x18(%rbx), %xmm1 movapd %xmm0, %xmm2 subss %xmm1, %xmm2 addss %xmm0, %xmm1 movss 0x20(%rbx), %xmm3 movl 0x14(%rbx), %edx movsd (%r15), %xmm4 movss %xmm2, 0x50(%rcx) movaps %xmm0, %xmm5 shufps $0x55, %xmm0, %xmm5 # xmm5 = xmm5[1,1],xmm0[1,1] movss %xmm5, 0x54(%rcx) movq 0x48(%r14), %rcx movsd %xmm4, 0x8(%rcx) movq 0x48(%r14), %rcx movl %edx, 0x10(%rcx) movss %xmm1, 0x14(%rcx) movss %xmm3, 0x18(%rcx) movq 0x48(%r14), %rcx movsd %xmm4, 0x1c(%rcx) movq 0x48(%r14), %rcx movl %edx, 0x24(%rcx) movss %xmm2, 0x28(%rcx) movss %xmm3, 0x2c(%rcx) movsd %xmm4, 0x30(%rcx) movq 0x48(%r14), %rcx movl %edx, 0x38(%rcx) movss %xmm1, 0x3c(%rcx) movss %xmm5, 0x40(%rcx) movsd %xmm4, 0x44(%rcx) movq 0x48(%r14), %rcx movl %edx, 0x4c(%rcx) addq $0x50, %rcx movq %rcx, 0x48(%r14) movl 0x34(%r14), %ecx movq 0x50(%r14), %rdx movl %ecx, (%rdx) incl %ecx movl %ecx, 0x4(%rdx) movl 0x34(%r14), %ecx addl $0x2, %ecx movl %ecx, 0x8(%rdx) movl 0x34(%r14), %ecx movl %ecx, 0xc(%rdx) incl %ecx movl %ecx, 0x10(%rdx) movl 0x34(%r14), %ecx addl $0x3, %ecx movl %ecx, 0x14(%rdx) addq $0x18, %rdx movq %rdx, 0x50(%r14) addl $0x4, 0x34(%r14) cmpb $0xf, %al sete %al movlpd %xmm0, 0x1c(%rbx) addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
void ImPlot::RenderStairs<ImPlot::GetterXsYs<int>, ImPlot::TransformerLinLin>(ImPlot::GetterXsYs<int> const&, ImPlot::TransformerLinLin const&, ImDrawList&, float, unsigned int)
inline void RenderStairs(const Getter& getter, const Transformer& transformer, ImDrawList& DrawList, float line_weight, ImU32 col) { ImPlotContext& gp = *GImPlot; if (ImHasFlag(gp.CurrentPlot->Flags, ImPlotFlags_AntiAliased) || gp.Style.AntiAliasedLines) { ImVec2 p1 = transformer(getter(0)); for (int i = 1; i < getter.Count; ++i) { ImVec2 p2 = transformer(getter(i)); if (gp.CurrentPlot->PlotRect.Overlaps(ImRect(ImMin(p1, p2), ImMax(p1, p2)))) { ImVec2 p12(p2.x, p1.y); DrawList.AddLine(p1, p12, col, line_weight); DrawList.AddLine(p12, p2, col, line_weight); } p1 = p2; } } else { RenderPrimitives(StairsRenderer<Getter,Transformer>(getter, transformer, col, line_weight), DrawList, gp.CurrentPlot->PlotRect); } }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x58, %rsp movl %ecx, 0xc(%rsp) movss %xmm0, 0x8(%rsp) movq %rdx, 0x18(%rsp) movq %rsi, %rbx movq %rdi, %r15 movq 0x1b9491(%rip), %r11 # 0x46a3f0 movq (%r11), %r12 movq 0x28(%r12), %rcx testb $0x10, 0x5(%rcx) jne 0x2b0f7c cmpb $0x1, 0x448(%r12) jne 0x2b11c5 movl 0x10(%r15), %esi movl 0x14(%r15), %eax movslq 0x18(%r15), %rdi cltd idivl %esi leal (%rdx,%rsi), %eax cltd idivl %esi movslq %edx, %rax imulq %rdi, %rax movq (%r15), %rdx movq 0x8(%r15), %rdi movslq (%rbx), %r8 movq %r8, %r9 movsd 0x1a0(%r12,%r8,8), %xmm0 shlq $0x4, %r8 movss (%rdx,%rax), %xmm1 movss (%rdi,%rax), %xmm2 unpcklps %xmm1, %xmm2 # xmm2 = xmm2[0],xmm1[0],xmm2[1],xmm1[1] cvtdq2pd %xmm2, %xmm1 cvtps2pd 0x164(%r12,%r8), %xmm2 shlq $0x7, %r9 movsd 0x98(%rcx,%r9), %xmm3 movhpd 0x18(%rcx), %xmm3 # xmm3 = xmm3[0],mem[0] subpd %xmm3, %xmm1 shufpd $0x1, %xmm2, %xmm2 # xmm2 = xmm2[1,0] movhpd 0x198(%r12), %xmm0 # xmm0 = xmm0[0],mem[0] mulpd %xmm1, %xmm0 addpd %xmm2, %xmm0 cvtpd2ps %xmm0, %xmm0 movapd %xmm0, %xmm1 shufps $0xe1, %xmm0, %xmm1 # xmm1 = xmm1[1,0],xmm0[2,3] movlps %xmm1, 0x30(%rsp) cmpl $0x2, %esi jl 0x2b1288 movl $0x1, %r13d movq %r12, %rcx movq %rbx, 0x28(%rsp) movq 0x18(%rsp), %rbp movl 0xc(%rsp), %r14d movslq 0x18(%r15), %rdi movl 0x14(%r15), %eax addl %r13d, %eax cltd idivl %esi leal (%rdx,%rsi), %eax cltd idivl %esi movslq %edx, %rax imulq %rdi, %rax movq (%r15), %rdx movq 0x8(%r15), %rdi movslq (%rbx), %r8 movsd 0x198(%rcx), %xmm1 movhpd 0x1a0(%rcx,%r8,8), %xmm1 # xmm1 = xmm1[0],mem[0] movq %r8, %r9 shlq $0x4, %r8 movq 0x28(%rcx), %r10 shlq $0x7, %r9 movss (%rdi,%rax), %xmm2 movss (%rdx,%rax), %xmm3 unpcklps %xmm2, %xmm3 # xmm3 = xmm3[0],xmm2[0],xmm3[1],xmm2[1] cvtdq2pd %xmm3, %xmm2 cvtps2pd 0x164(%rcx,%r8), %xmm3 movsd 0x18(%r10), %xmm4 movhpd 0x98(%r10,%r9), %xmm4 # xmm4 = xmm4[0],mem[0] subpd %xmm4, %xmm2 mulpd %xmm2, %xmm1 addpd %xmm3, %xmm1 cvtpd2ps %xmm1, %xmm1 movlpd %xmm1, 0x20(%rsp) movq 0x28(%r12), %rdx movq %xmm1, %rax movapd %xmm1, %xmm3 shufps $0x55, %xmm1, %xmm3 # xmm3 = xmm3[1,1],xmm1[1,1] movaps %xmm0, %xmm2 minss %xmm3, %xmm2 movss 0x2c4(%rdx), %xmm4 ucomiss %xmm2, %xmm4 shufps $0x51, %xmm1, %xmm1 # xmm1 = xmm1[1,0,1,1] jbe 0x2b11ac movaps %xmm3, %xmm4 cmpless %xmm0, %xmm4 movaps %xmm4, %xmm5 andps %xmm0, %xmm5 andnps %xmm3, %xmm4 orps %xmm5, %xmm4 ucomiss 0x2bc(%rdx), %xmm4 jbe 0x2b11ac movaps %xmm0, %xmm2 movd %eax, %xmm3 shufps $0x55, %xmm0, %xmm0 # xmm0 = xmm0[1,1,1,1] movaps %xmm0, %xmm4 minss %xmm3, %xmm4 movss 0x2c0(%rdx), %xmm5 ucomiss %xmm4, %xmm5 jbe 0x2b11ac movaps %xmm3, %xmm4 cmpless %xmm0, %xmm4 movaps %xmm4, %xmm5 andnps %xmm3, %xmm5 andps %xmm0, %xmm4 orps %xmm5, %xmm4 ucomiss 0x2b8(%rdx), %xmm4 jbe 0x2b11ac movl %eax, 0x10(%rsp) movss %xmm2, 0x14(%rsp) movq %rbp, %rdi leaq 0x30(%rsp), %rsi leaq 0x10(%rsp), %rdx movl %r14d, %ecx movss 0x8(%rsp), %xmm0 movq %r11, %rbx callq 0xe5ce0 movq %rbp, %rdi leaq 0x10(%rsp), %rsi leaq 0x20(%rsp), %rdx movl %r14d, %ecx movss 0x8(%rsp), %xmm0 callq 0xe5ce0 movq %rbx, %r11 movq 0x28(%rsp), %rbx movq (%r11), %rcx movq 0x20(%rsp), %rax movl 0x10(%r15), %esi movq %rax, %rdx shrq $0x20, %rdx movd %eax, %xmm0 movd %edx, %xmm1 punpckldq %xmm0, %xmm1 # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1] movq %rax, 0x30(%rsp) incl %r13d movaps %xmm1, %xmm0 cmpl %esi, %r13d jl 0x2b102d jmp 0x2b1288 leaq 0x30(%rsp), %rdi movq %r15, (%rdi) movq %rbx, 0x8(%rdi) movl 0x10(%r15), %esi leal -0x1(%rsi), %eax movl %eax, 0x10(%rdi) movl 0xc(%rsp), %eax movl %eax, 0x14(%rdi) movss 0x8(%rsp), %xmm0 mulss 0xd1f98(%rip), %xmm0 # 0x383188 movss %xmm0, 0x18(%rdi) movl 0x14(%r15), %eax movslq 0x18(%r15), %r8 cltd idivl %esi leal (%rdx,%rsi), %eax cltd idivl %esi movslq %edx, %rax imulq %r8, %rax movq (%r15), %rdx movq 0x8(%r15), %rsi movslq (%rbx), %r8 movq %r8, %r9 movsd 0x198(%r12), %xmm0 movhpd 0x1a0(%r12,%r8,8), %xmm0 # xmm0 = xmm0[0],mem[0] shlq $0x4, %r8 shlq $0x7, %r9 movss (%rsi,%rax), %xmm1 movss (%rdx,%rax), %xmm2 unpcklps %xmm1, %xmm2 # xmm2 = xmm2[0],xmm1[0],xmm2[1],xmm1[1] cvtdq2pd %xmm2, %xmm1 movsd 0x18(%rcx), %xmm2 movhpd 0x98(%rcx,%r9), %xmm2 # xmm2 = xmm2[0],mem[0] subpd %xmm2, %xmm1 cvtps2pd 0x164(%r12,%r8), %xmm2 mulpd %xmm1, %xmm0 addpd %xmm2, %xmm0 cvtpd2ps %xmm0, %xmm0 movlpd %xmm0, 0x1c(%rdi) addq $0x2b8, %rcx # imm = 0x2B8 movq 0x18(%rsp), %rsi movq %rcx, %rdx callq 0xeabd0 addq $0x58, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
void ImPlot::RenderPrimitives<ImPlot::StairsRenderer<ImPlot::GetterXsYs<int>, ImPlot::TransformerLinLog>>(ImPlot::StairsRenderer<ImPlot::GetterXsYs<int>, ImPlot::TransformerLinLog> const&, ImDrawList&, ImRect const&)
inline void RenderPrimitives(const Renderer& renderer, ImDrawList& DrawList, const ImRect& cull_rect) { unsigned int prims = renderer.Prims; unsigned int prims_culled = 0; unsigned int idx = 0; const ImVec2 uv = DrawList._Data->TexUvWhitePixel; while (prims) { // find how many can be reserved up to end of current draw command's limit unsigned int cnt = ImMin(prims, (MaxIdx<ImDrawIdx>::Value - DrawList._VtxCurrentIdx) / Renderer::VtxConsumed); // make sure at least this many elements can be rendered to avoid situations where at the end of buffer this slow path is not taken all the time if (cnt >= ImMin(64u, prims)) { if (prims_culled >= cnt) prims_culled -= cnt; // reuse previous reservation else { DrawList.PrimReserve((cnt - prims_culled) * Renderer::IdxConsumed, (cnt - prims_culled) * Renderer::VtxConsumed); // add more elements to previous reservation prims_culled = 0; } } else { if (prims_culled > 0) { DrawList.PrimUnreserve(prims_culled * Renderer::IdxConsumed, prims_culled * Renderer::VtxConsumed); prims_culled = 0; } cnt = ImMin(prims, (MaxIdx<ImDrawIdx>::Value - 0/*DrawList._VtxCurrentIdx*/) / Renderer::VtxConsumed); DrawList.PrimReserve(cnt * Renderer::IdxConsumed, cnt * Renderer::VtxConsumed); // reserve new draw command } prims -= cnt; for (unsigned int ie = idx + cnt; idx != ie; ++idx) { if (!renderer(DrawList, cull_rect, uv, idx)) prims_culled++; } } if (prims_culled > 0) DrawList.PrimUnreserve(prims_culled * Renderer::IdxConsumed, prims_culled * Renderer::VtxConsumed); }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rsi, %rbx movl 0x10(%rdi), %esi movq 0x38(%rbx), %rax movq (%rax), %rax movq %rax, 0x8(%rsp) testl %esi, %esi je 0x2b28f3 movq %rdx, %r14 movq %rdi, %r15 xorl %r12d, %r12d leaq 0x8(%rsp), %rcx xorl %ebp, %ebp movl 0x34(%rbx), %edi movl %edi, %eax notl %eax shrl $0x3, %eax cmpl %eax, %esi movl %eax, %r13d cmovbl %esi, %r13d cmpl $0x40, %esi movl $0x40, %edx cmovbl %esi, %edx cmpl %edx, %eax jae 0x2b2851 testl %ebp, %ebp je 0x2b283d leal (,%rbp,4), %eax movl %esi, %r13d leal (%rax,%rax,2), %esi shll $0x3, %ebp movq %rbx, %rdi movl %ebp, %edx callq 0xe0140 movl %r13d, %esi movl $0x1fffffff, %eax # imm = 0x1FFFFFFF cmpl %eax, %esi movl $0x1fffffff, %edx # imm = 0x1FFFFFFF cmovbl %esi, %edx movl %edx, %r13d jmp 0x2b285d movl %ebp, %eax subl %r13d, %eax jae 0x2b28c6 movl %r13d, %edx subl %ebp, %edx movl %esi, %ebp leal (,%rdx,4), %eax leal (%rax,%rax,2), %esi shll $0x3, %edx movq %rbx, %rdi callq 0xe3170 subl %r13d, %ebp movl %ebp, 0x4(%rsp) xorl %eax, %eax leaq 0x8(%rsp), %rcx leal (%r12,%r13), %edx movl %edx, 0x14(%rsp) movl %eax, %ebp movq %r15, %rdi movq %rbx, %rsi movq %r14, %rdx movl %r12d, %r8d callq 0xe25a0 leaq 0x8(%rsp), %rcx xorb $0x1, %al movzbl %al, %eax addl %eax, %ebp incl %r12d decl %r13d jne 0x2b288c movl 0x14(%rsp), %eax movl %eax, %r12d movl 0x4(%rsp), %esi testl %esi, %esi jne 0x2b27fa jmp 0x2b28d8 subl %r13d, %esi cmpl $-0x9, %edi jbe 0x2b28d2 movl %eax, %ebp jmp 0x2b28bc movl %esi, 0x4(%rsp) jmp 0x2b2882 testl %ebp, %ebp je 0x2b28f3 leal (,%rbp,4), %eax leal (%rax,%rax,2), %esi shll $0x3, %ebp movq %rbx, %rdi movl %ebp, %edx callq 0xe0140 addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
ImPlot::StairsRenderer<ImPlot::GetterXsYs<unsigned int>, ImPlot::TransformerLinLin>::operator()(ImDrawList&, ImRect const&, ImVec2 const&, int) const
inline bool operator()(ImDrawList& DrawList, const ImRect& cull_rect, const ImVec2& uv, int prim) const { ImVec2 P2 = Transformer(Getter(prim + 1)); if (!cull_rect.Overlaps(ImRect(ImMin(P1, P2), ImMax(P1, P2)))) { P1 = P2; return false; } AddRectFilled(ImVec2(P1.x, P1.y + HalfWeight), ImVec2(P2.x, P1.y - HalfWeight), Col, DrawList, uv); AddRectFilled(ImVec2(P2.x - HalfWeight, P2.y), ImVec2(P2.x + HalfWeight, P1.y), Col, DrawList, uv); // AddLine(P1, P12, Weight, Col, DrawList, uv); // AddLine(P12, P2, Weight, Col, DrawList, uv); P1 = P2; return true; }
pushq %r14 pushq %rbx movq %rdx, %r9 movq (%rdi), %r10 movq 0x8(%rdi), %rbx movl 0x10(%r10), %r11d movl 0x14(%r10), %eax movslq 0x18(%r10), %r14 addl %r8d, %eax incl %eax cltd idivl %r11d leal (%rdx,%r11), %eax cltd idivl %r11d movslq %edx, %rax imulq %r14, %rax movq (%r10), %r8 movq 0x8(%r10), %r11 movq 0x1b6105(%rip), %rdx # 0x46a3f0 movq (%rdx), %rdx movslq (%rbx), %rbx movq %rbx, %r10 movsd 0x198(%rdx), %xmm0 movhpd 0x1a0(%rdx,%rbx,8), %xmm0 # xmm0 = xmm0[0],mem[0] shlq $0x4, %rbx movq 0x28(%rdx), %r14 shlq $0x7, %r10 movss (%r11,%rax), %xmm1 movss (%r8,%rax), %xmm2 unpcklpd %xmm1, %xmm2 # xmm2 = xmm2[0],xmm1[0] movapd 0xf5417(%rip), %xmm1 # 0x3a9740 orpd %xmm1, %xmm2 subpd %xmm1, %xmm2 cvtps2pd 0x164(%rdx,%rbx), %xmm1 movsd 0x18(%r14), %xmm3 movhpd 0x98(%r14,%r10), %xmm3 # xmm3 = xmm3[0],mem[0] subpd %xmm3, %xmm2 mulpd %xmm2, %xmm0 addpd %xmm1, %xmm0 cvtpd2ps %xmm0, %xmm0 movapd %xmm0, %xmm2 unpcklpd %xmm0, %xmm2 # xmm2 = xmm2[0],xmm0[0] movsd 0x1c(%rdi), %xmm1 movaps %xmm1, %xmm3 movlhps %xmm1, %xmm3 # xmm3 = xmm3[0],xmm1[0] movapd %xmm2, %xmm4 cmpleps %xmm3, %xmm4 movaps %xmm3, %xmm5 cmpltps %xmm2, %xmm5 movsd %xmm4, %xmm5 # xmm5 = xmm4[0],xmm5[1] andps %xmm5, %xmm3 andnps %xmm2, %xmm5 orps %xmm3, %xmm5 movups (%r9), %xmm2 movaps %xmm2, %xmm3 cmpltps %xmm5, %xmm3 cmpltps %xmm2, %xmm5 movsd %xmm3, %xmm5 # xmm5 = xmm3[0],xmm5[1] movmskps %xmm5, %eax cmpl $0xf, %eax jne 0x2b4542 movss 0x18(%rdi), %xmm2 movaps %xmm1, %xmm3 shufps $0x55, %xmm1, %xmm3 # xmm3 = xmm3[1,1],xmm1[1,1] movaps %xmm3, %xmm4 addss %xmm2, %xmm4 subss %xmm2, %xmm3 movl 0x14(%rdi), %r8d movsd (%rcx), %xmm2 movq 0x48(%rsi), %rdx movss %xmm1, (%rdx) movss %xmm4, 0x4(%rdx) movq 0x48(%rsi), %rdx movsd %xmm2, 0x8(%rdx) movq 0x48(%rsi), %rdx movl %r8d, 0x10(%rdx) movss %xmm0, 0x14(%rdx) movss %xmm3, 0x18(%rdx) movq 0x48(%rsi), %rdx movsd %xmm2, 0x1c(%rdx) movq 0x48(%rsi), %rdx movl %r8d, 0x24(%rdx) movss %xmm1, 0x28(%rdx) movss %xmm3, 0x2c(%rdx) movsd %xmm2, 0x30(%rdx) movq 0x48(%rsi), %rdx movl %r8d, 0x38(%rdx) movss %xmm0, 0x3c(%rdx) movss %xmm4, 0x40(%rdx) movsd %xmm2, 0x44(%rdx) movq 0x48(%rsi), %rdx movl %r8d, 0x4c(%rdx) leaq 0x50(%rdx), %r8 movq %r8, 0x48(%rsi) movl 0x34(%rsi), %r8d movq 0x50(%rsi), %r9 movl %r8d, (%r9) incl %r8d movl %r8d, 0x4(%r9) movl 0x34(%rsi), %r8d addl $0x2, %r8d movl %r8d, 0x8(%r9) movl 0x34(%rsi), %r8d movl %r8d, 0xc(%r9) incl %r8d movl %r8d, 0x10(%r9) movl 0x34(%rsi), %r8d addl $0x3, %r8d movl %r8d, 0x14(%r9) addq $0x18, %r9 movq %r9, 0x50(%rsi) addl $0x4, 0x34(%rsi) movss 0x18(%rdi), %xmm1 movapd %xmm0, %xmm2 subss %xmm1, %xmm2 addss %xmm0, %xmm1 movss 0x20(%rdi), %xmm3 movl 0x14(%rdi), %r8d movsd (%rcx), %xmm4 movss %xmm2, 0x50(%rdx) movaps %xmm0, %xmm5 shufps $0x55, %xmm0, %xmm5 # xmm5 = xmm5[1,1],xmm0[1,1] movss %xmm5, 0x54(%rdx) movq 0x48(%rsi), %rcx movsd %xmm4, 0x8(%rcx) movq 0x48(%rsi), %rcx movl %r8d, 0x10(%rcx) movss %xmm1, 0x14(%rcx) movss %xmm3, 0x18(%rcx) movq 0x48(%rsi), %rcx movsd %xmm4, 0x1c(%rcx) movq 0x48(%rsi), %rcx movl %r8d, 0x24(%rcx) movss %xmm2, 0x28(%rcx) movss %xmm3, 0x2c(%rcx) movsd %xmm4, 0x30(%rcx) movq 0x48(%rsi), %rcx movl %r8d, 0x38(%rcx) movss %xmm1, 0x3c(%rcx) movss %xmm5, 0x40(%rcx) movsd %xmm4, 0x44(%rcx) movq 0x48(%rsi), %rcx movl %r8d, 0x4c(%rcx) addq $0x50, %rcx movq %rcx, 0x48(%rsi) movl 0x34(%rsi), %ecx movq 0x50(%rsi), %rdx movl %ecx, (%rdx) incl %ecx movl %ecx, 0x4(%rdx) movl 0x34(%rsi), %ecx addl $0x2, %ecx movl %ecx, 0x8(%rdx) movl 0x34(%rsi), %ecx movl %ecx, 0xc(%rdx) incl %ecx movl %ecx, 0x10(%rdx) movl 0x34(%rsi), %ecx addl $0x3, %ecx movl %ecx, 0x14(%rdx) addq $0x18, %rdx movq %rdx, 0x50(%rsi) addl $0x4, 0x34(%rsi) cmpb $0xf, %al sete %al movlpd %xmm0, 0x1c(%rdi) popq %rbx popq %r14 retq
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
void ImPlot::RenderPrimitives<ImPlot::StairsRenderer<ImPlot::GetterXsYs<unsigned int>, ImPlot::TransformerLogLin>>(ImPlot::StairsRenderer<ImPlot::GetterXsYs<unsigned int>, ImPlot::TransformerLogLin> const&, ImDrawList&, ImRect const&)
inline void RenderPrimitives(const Renderer& renderer, ImDrawList& DrawList, const ImRect& cull_rect) { unsigned int prims = renderer.Prims; unsigned int prims_culled = 0; unsigned int idx = 0; const ImVec2 uv = DrawList._Data->TexUvWhitePixel; while (prims) { // find how many can be reserved up to end of current draw command's limit unsigned int cnt = ImMin(prims, (MaxIdx<ImDrawIdx>::Value - DrawList._VtxCurrentIdx) / Renderer::VtxConsumed); // make sure at least this many elements can be rendered to avoid situations where at the end of buffer this slow path is not taken all the time if (cnt >= ImMin(64u, prims)) { if (prims_culled >= cnt) prims_culled -= cnt; // reuse previous reservation else { DrawList.PrimReserve((cnt - prims_culled) * Renderer::IdxConsumed, (cnt - prims_culled) * Renderer::VtxConsumed); // add more elements to previous reservation prims_culled = 0; } } else { if (prims_culled > 0) { DrawList.PrimUnreserve(prims_culled * Renderer::IdxConsumed, prims_culled * Renderer::VtxConsumed); prims_culled = 0; } cnt = ImMin(prims, (MaxIdx<ImDrawIdx>::Value - 0/*DrawList._VtxCurrentIdx*/) / Renderer::VtxConsumed); DrawList.PrimReserve(cnt * Renderer::IdxConsumed, cnt * Renderer::VtxConsumed); // reserve new draw command } prims -= cnt; for (unsigned int ie = idx + cnt; idx != ie; ++idx) { if (!renderer(DrawList, cull_rect, uv, idx)) prims_culled++; } } if (prims_culled > 0) DrawList.PrimUnreserve(prims_culled * Renderer::IdxConsumed, prims_culled * Renderer::VtxConsumed); }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rsi, %rbx movl 0x10(%rdi), %esi movq 0x38(%rbx), %rax movq (%rax), %rax movq %rax, 0x8(%rsp) testl %esi, %esi je 0x2b4681 movq %rdx, %r14 movq %rdi, %r15 xorl %r12d, %r12d leaq 0x8(%rsp), %rcx xorl %ebp, %ebp movl 0x34(%rbx), %edi movl %edi, %eax notl %eax shrl $0x3, %eax cmpl %eax, %esi movl %eax, %r13d cmovbl %esi, %r13d cmpl $0x40, %esi movl $0x40, %edx cmovbl %esi, %edx cmpl %edx, %eax jae 0x2b45df testl %ebp, %ebp je 0x2b45cb leal (,%rbp,4), %eax movl %esi, %r13d leal (%rax,%rax,2), %esi shll $0x3, %ebp movq %rbx, %rdi movl %ebp, %edx callq 0xe0140 movl %r13d, %esi movl $0x1fffffff, %eax # imm = 0x1FFFFFFF cmpl %eax, %esi movl $0x1fffffff, %edx # imm = 0x1FFFFFFF cmovbl %esi, %edx movl %edx, %r13d jmp 0x2b45eb movl %ebp, %eax subl %r13d, %eax jae 0x2b4654 movl %r13d, %edx subl %ebp, %edx movl %esi, %ebp leal (,%rdx,4), %eax leal (%rax,%rax,2), %esi shll $0x3, %edx movq %rbx, %rdi callq 0xe3170 subl %r13d, %ebp movl %ebp, 0x4(%rsp) xorl %eax, %eax leaq 0x8(%rsp), %rcx leal (%r12,%r13), %edx movl %edx, 0x14(%rsp) movl %eax, %ebp movq %r15, %rdi movq %rbx, %rsi movq %r14, %rdx movl %r12d, %r8d callq 0xe8c90 leaq 0x8(%rsp), %rcx xorb $0x1, %al movzbl %al, %eax addl %eax, %ebp incl %r12d decl %r13d jne 0x2b461a movl 0x14(%rsp), %eax movl %eax, %r12d movl 0x4(%rsp), %esi testl %esi, %esi jne 0x2b4588 jmp 0x2b4666 subl %r13d, %esi cmpl $-0x9, %edi jbe 0x2b4660 movl %eax, %ebp jmp 0x2b464a movl %esi, 0x4(%rsp) jmp 0x2b4610 testl %ebp, %ebp je 0x2b4681 leal (,%rbp,4), %eax leal (%rax,%rax,2), %esi shll $0x3, %ebp movq %rbx, %rdi movl %ebp, %edx callq 0xe0140 addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
void ImPlot::RenderPrimitives<ImPlot::StairsRenderer<ImPlot::GetterXsYs<unsigned long long>, ImPlot::TransformerLinLin>>(ImPlot::StairsRenderer<ImPlot::GetterXsYs<unsigned long long>, ImPlot::TransformerLinLin> const&, ImDrawList&, ImRect const&)
inline void RenderPrimitives(const Renderer& renderer, ImDrawList& DrawList, const ImRect& cull_rect) { unsigned int prims = renderer.Prims; unsigned int prims_culled = 0; unsigned int idx = 0; const ImVec2 uv = DrawList._Data->TexUvWhitePixel; while (prims) { // find how many can be reserved up to end of current draw command's limit unsigned int cnt = ImMin(prims, (MaxIdx<ImDrawIdx>::Value - DrawList._VtxCurrentIdx) / Renderer::VtxConsumed); // make sure at least this many elements can be rendered to avoid situations where at the end of buffer this slow path is not taken all the time if (cnt >= ImMin(64u, prims)) { if (prims_culled >= cnt) prims_culled -= cnt; // reuse previous reservation else { DrawList.PrimReserve((cnt - prims_culled) * Renderer::IdxConsumed, (cnt - prims_culled) * Renderer::VtxConsumed); // add more elements to previous reservation prims_culled = 0; } } else { if (prims_culled > 0) { DrawList.PrimUnreserve(prims_culled * Renderer::IdxConsumed, prims_culled * Renderer::VtxConsumed); prims_culled = 0; } cnt = ImMin(prims, (MaxIdx<ImDrawIdx>::Value - 0/*DrawList._VtxCurrentIdx*/) / Renderer::VtxConsumed); DrawList.PrimReserve(cnt * Renderer::IdxConsumed, cnt * Renderer::VtxConsumed); // reserve new draw command } prims -= cnt; for (unsigned int ie = idx + cnt; idx != ie; ++idx) { if (!renderer(DrawList, cull_rect, uv, idx)) prims_culled++; } } if (prims_culled > 0) DrawList.PrimUnreserve(prims_culled * Renderer::IdxConsumed, prims_culled * Renderer::VtxConsumed); }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rsi, %rbx movl 0x10(%rdi), %esi movq 0x38(%rbx), %rax movq (%rax), %rax movq %rax, 0x8(%rsp) testl %esi, %esi je 0x2b87f7 movq %rdx, %r14 movq %rdi, %r15 xorl %r12d, %r12d leaq 0x8(%rsp), %rcx xorl %ebp, %ebp movl 0x34(%rbx), %edi movl %edi, %eax notl %eax shrl $0x3, %eax cmpl %eax, %esi movl %eax, %r13d cmovbl %esi, %r13d cmpl $0x40, %esi movl $0x40, %edx cmovbl %esi, %edx cmpl %edx, %eax jae 0x2b8755 testl %ebp, %ebp je 0x2b8741 leal (,%rbp,4), %eax movl %esi, %r13d leal (%rax,%rax,2), %esi shll $0x3, %ebp movq %rbx, %rdi movl %ebp, %edx callq 0xe0140 movl %r13d, %esi movl $0x1fffffff, %eax # imm = 0x1FFFFFFF cmpl %eax, %esi movl $0x1fffffff, %edx # imm = 0x1FFFFFFF cmovbl %esi, %edx movl %edx, %r13d jmp 0x2b8761 movl %ebp, %eax subl %r13d, %eax jae 0x2b87ca movl %r13d, %edx subl %ebp, %edx movl %esi, %ebp leal (,%rdx,4), %eax leal (%rax,%rax,2), %esi shll $0x3, %edx movq %rbx, %rdi callq 0xe3170 subl %r13d, %ebp movl %ebp, 0x4(%rsp) xorl %eax, %eax leaq 0x8(%rsp), %rcx leal (%r12,%r13), %edx movl %edx, 0x14(%rsp) movl %eax, %ebp movq %r15, %rdi movq %rbx, %rsi movq %r14, %rdx movl %r12d, %r8d callq 0xe9950 leaq 0x8(%rsp), %rcx xorb $0x1, %al movzbl %al, %eax addl %eax, %ebp incl %r12d decl %r13d jne 0x2b8790 movl 0x14(%rsp), %eax movl %eax, %r12d movl 0x4(%rsp), %esi testl %esi, %esi jne 0x2b86fe jmp 0x2b87dc subl %r13d, %esi cmpl $-0x9, %edi jbe 0x2b87d6 movl %eax, %ebp jmp 0x2b87c0 movl %esi, 0x4(%rsp) jmp 0x2b8786 testl %ebp, %ebp je 0x2b87f7 leal (,%rbp,4), %eax leal (%rax,%rax,2), %esi shll $0x3, %ebp movq %rbx, %rdi movl %ebp, %edx callq 0xe0140 addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
void ImPlot::RenderPrimitives<ImPlot::ShadedRenderer<ImPlot::GetterYs<short>, ImPlot::GetterYRef, ImPlot::TransformerLogLin>>(ImPlot::ShadedRenderer<ImPlot::GetterYs<short>, ImPlot::GetterYRef, ImPlot::TransformerLogLin> const&, ImDrawList&, ImRect const&)
inline void RenderPrimitives(const Renderer& renderer, ImDrawList& DrawList, const ImRect& cull_rect) { unsigned int prims = renderer.Prims; unsigned int prims_culled = 0; unsigned int idx = 0; const ImVec2 uv = DrawList._Data->TexUvWhitePixel; while (prims) { // find how many can be reserved up to end of current draw command's limit unsigned int cnt = ImMin(prims, (MaxIdx<ImDrawIdx>::Value - DrawList._VtxCurrentIdx) / Renderer::VtxConsumed); // make sure at least this many elements can be rendered to avoid situations where at the end of buffer this slow path is not taken all the time if (cnt >= ImMin(64u, prims)) { if (prims_culled >= cnt) prims_culled -= cnt; // reuse previous reservation else { DrawList.PrimReserve((cnt - prims_culled) * Renderer::IdxConsumed, (cnt - prims_culled) * Renderer::VtxConsumed); // add more elements to previous reservation prims_culled = 0; } } else { if (prims_culled > 0) { DrawList.PrimUnreserve(prims_culled * Renderer::IdxConsumed, prims_culled * Renderer::VtxConsumed); prims_culled = 0; } cnt = ImMin(prims, (MaxIdx<ImDrawIdx>::Value - 0/*DrawList._VtxCurrentIdx*/) / Renderer::VtxConsumed); DrawList.PrimReserve(cnt * Renderer::IdxConsumed, cnt * Renderer::VtxConsumed); // reserve new draw command } prims -= cnt; for (unsigned int ie = idx + cnt; idx != ie; ++idx) { if (!renderer(DrawList, cull_rect, uv, idx)) prims_culled++; } } if (prims_culled > 0) DrawList.PrimUnreserve(prims_culled * Renderer::IdxConsumed, prims_culled * Renderer::VtxConsumed); }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rsi, %rbx movl 0x18(%rdi), %esi movq 0x38(%rbx), %rax movq (%rax), %rax movq %rax, 0x8(%rsp) testl %esi, %esi je 0x2c3149 movq %rdx, %r14 movq %rdi, %r15 xorl %r12d, %r12d leaq 0x8(%rsp), %rcx xorl %ebp, %ebp movl 0x34(%rbx), %edi movl %edi, %eax notl %eax movl $0xcccccccd, %edx # imm = 0xCCCCCCCD imulq %rdx, %rax shrq $0x22, %rax cmpl %eax, %esi movl %eax, %r13d cmovbl %esi, %r13d cmpl $0x40, %esi movl $0x40, %edx cmovbl %esi, %edx cmpl %edx, %eax jae 0x2c30ac testl %ebp, %ebp je 0x2c3098 leal (,%rbp,2), %eax movl %esi, %r13d leal (%rax,%rax,2), %esi leal (%rbp,%rbp,4), %edx movq %rbx, %rdi callq 0xe0140 movl %r13d, %esi movl $0x33333333, %eax # imm = 0x33333333 cmpl %eax, %esi movl $0x33333333, %eax # imm = 0x33333333 cmovbl %esi, %eax movl %eax, %r13d jmp 0x2c30b8 movl %ebp, %eax subl %r13d, %eax jae 0x2c311d movl %r13d, %eax subl %ebp, %eax movl %esi, %ebp leal (%rax,%rax), %ecx leal (%rcx,%rcx,2), %esi leal (%rax,%rax,4), %edx movq %rbx, %rdi callq 0xe3170 subl %r13d, %ebp movl %ebp, 0x4(%rsp) xorl %eax, %eax leaq 0x8(%rsp), %rcx leal (%r12,%r13), %edx movl %edx, 0x14(%rsp) movl %eax, %ebp movq %r15, %rdi movq %rbx, %rsi movq %r14, %rdx movl %r12d, %r8d callq 0xea940 leaq 0x8(%rsp), %rcx xorb $0x1, %al movzbl %al, %eax addl %eax, %ebp incl %r12d decl %r13d jne 0x2c30e3 movl 0x14(%rsp), %eax movl %eax, %r12d movl 0x4(%rsp), %esi testl %esi, %esi jne 0x2c304c jmp 0x2c312f subl %r13d, %esi cmpl $-0x6, %edi jbe 0x2c3129 movl %eax, %ebp jmp 0x2c3113 movl %esi, 0x4(%rsp) jmp 0x2c30d9 testl %ebp, %ebp je 0x2c3149 leal (,%rbp,2), %eax leal (%rax,%rax,2), %esi leal (%rbp,%rbp,4), %edx movq %rbx, %rdi callq 0xe0140 addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
ImPlot::ShadedRenderer<ImPlot::GetterYs<unsigned long long>, ImPlot::GetterYRef, ImPlot::TransformerLogLin>::ShadedRenderer(ImPlot::GetterYs<unsigned long long> const&, ImPlot::GetterYRef const&, ImPlot::TransformerLogLin const&, unsigned int)
ShadedRenderer(const TGetter1& getter1, const TGetter2& getter2, const TTransformer& transformer, ImU32 col) : Getter1(getter1), Getter2(getter2), Transformer(transformer), Prims(ImMin(Getter1.Count, Getter2.Count) - 1), Col(col) { P11 = Transformer(Getter1(0)); P12 = Transformer(Getter2(0)); }
pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rcx, %r14 movq %rdi, %rbx movq %rsi, (%rdi) movq %rdx, 0x8(%rdi) movq %rcx, 0x10(%rdi) movl 0x8(%rsi), %ecx movl 0x8(%rdx), %eax cmpl %eax, %ecx cmovll %ecx, %eax decl %eax movl %eax, 0x18(%rdi) movl %r8d, 0x1c(%rdi) xorps %xmm0, %xmm0 movups %xmm0, 0x20(%rdi) xorpd %xmm1, %xmm1 movsd 0x10(%rsi), %xmm0 mulsd %xmm1, %xmm0 addsd 0x18(%rsi), %xmm0 movq (%rsi), %rdi movl 0x20(%rsi), %eax movslq 0x24(%rsi), %rsi cltd idivl %ecx leal (%rdx,%rcx), %eax cltd idivl %ecx movslq %edx, %rax imulq %rsi, %rax movsd (%rdi,%rax), %xmm1 unpcklps 0xb1fc5(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1] subpd 0xb1fcd(%rip), %xmm1 # 0x37d400 movapd %xmm1, %xmm2 unpckhpd %xmm1, %xmm2 # xmm2 = xmm2[1],xmm1[1] addpd %xmm1, %xmm2 movapd %xmm2, (%rsp) movq 0x19efa5(%rip), %r15 # 0x46a3f0 movq (%r15), %r12 movq 0x28(%r12), %rax divsd 0x18(%rax), %xmm0 callq 0xe2ca0 divsd 0x1b8(%r12), %xmm0 movq 0x28(%r12), %rax movupd 0x18(%rax), %xmm1 cvtsd2ss %xmm0, %xmm0 movapd %xmm1, %xmm2 unpckhpd %xmm1, %xmm2 # xmm2 = xmm2[1],xmm1[1] subsd %xmm1, %xmm2 cvtss2sd %xmm0, %xmm0 mulsd %xmm2, %xmm0 addsd %xmm1, %xmm0 unpcklpd (%rsp), %xmm0 # xmm0 = xmm0[0],mem[0] movslq (%r14), %rcx movq %rcx, %rdx movsd 0x198(%r12), %xmm2 movhpd 0x1a0(%r12,%rcx,8), %xmm2 # xmm2 = xmm2[0],mem[0] shlq $0x4, %rcx cvtps2pd 0x164(%r12,%rcx), %xmm3 shlq $0x7, %rdx movhpd 0x98(%rax,%rdx), %xmm1 # xmm1 = xmm1[0],mem[0] subpd %xmm1, %xmm0 mulpd %xmm0, %xmm2 addpd %xmm3, %xmm2 cvtpd2ps %xmm2, %xmm0 movlpd %xmm0, 0x20(%rbx) movq 0x8(%rbx), %rax xorpd %xmm0, %xmm0 mulsd 0x10(%rax), %xmm0 movq 0x10(%rbx), %r12 addsd 0x18(%rax), %xmm0 movq (%r15), %r14 movq 0x28(%r14), %rcx divsd 0x18(%rcx), %xmm0 movsd (%rax), %xmm1 movaps %xmm1, (%rsp) callq 0xe2ca0 divsd 0x1b8(%r14), %xmm0 movq 0x28(%r14), %rax movupd 0x18(%rax), %xmm1 cvtsd2ss %xmm0, %xmm0 movapd %xmm1, %xmm2 unpckhpd %xmm1, %xmm2 # xmm2 = xmm2[1],xmm1[1] subsd %xmm1, %xmm2 cvtss2sd %xmm0, %xmm0 mulsd %xmm2, %xmm0 addsd %xmm1, %xmm0 unpcklpd (%rsp), %xmm0 # xmm0 = xmm0[0],mem[0] movslq (%r12), %rcx movq %rcx, %rdx movsd 0x198(%r14), %xmm2 movhpd 0x1a0(%r14,%rcx,8), %xmm2 # xmm2 = xmm2[0],mem[0] shlq $0x4, %rcx shlq $0x7, %rdx cvtps2pd 0x164(%r14,%rcx), %xmm3 movhpd 0x98(%rax,%rdx), %xmm1 # xmm1 = xmm1[0],mem[0] subpd %xmm1, %xmm0 mulpd %xmm0, %xmm2 addpd %xmm3, %xmm2 cvtpd2ps %xmm2, %xmm0 movlpd %xmm0, 0x28(%rbx) addq $0x18, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
ImPlot::ShadedRenderer<ImPlot::GetterYs<unsigned long long>, ImPlot::GetterYRef, ImPlot::TransformerLinLog>::ShadedRenderer(ImPlot::GetterYs<unsigned long long> const&, ImPlot::GetterYRef const&, ImPlot::TransformerLinLog const&, unsigned int)
ShadedRenderer(const TGetter1& getter1, const TGetter2& getter2, const TTransformer& transformer, ImU32 col) : Getter1(getter1), Getter2(getter2), Transformer(transformer), Prims(ImMin(Getter1.Count, Getter2.Count) - 1), Col(col) { P11 = Transformer(Getter1(0)); P12 = Transformer(Getter2(0)); }
pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x28, %rsp movq %rcx, %r14 movq %rdi, %rbx movq %rsi, (%rdi) movq %rdx, 0x8(%rdi) movq %rcx, 0x10(%rdi) movl 0x8(%rsi), %ecx movl 0x8(%rdx), %eax cmpl %eax, %ecx cmovll %ecx, %eax decl %eax movl %eax, 0x18(%rdi) movl %r8d, 0x1c(%rdi) xorps %xmm0, %xmm0 movups %xmm0, 0x20(%rdi) movups 0x18(%rsi), %xmm0 movaps %xmm0, 0x10(%rsp) movups 0x10(%rsi), %xmm0 movaps %xmm0, (%rsp) movq (%rsi), %rdi movl 0x20(%rsi), %eax movslq 0x24(%rsi), %rsi cltd idivl %ecx leal (%rdx,%rcx), %eax cltd idivl %ecx movslq %edx, %rax imulq %rsi, %rax movsd (%rdi,%rax), %xmm1 unpcklps 0xb1cac(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1] subpd 0xb1cb4(%rip), %xmm1 # 0x37d400 movapd %xmm1, %xmm0 unpckhpd %xmm1, %xmm0 # xmm0 = xmm0[1],xmm1[1] addsd %xmm1, %xmm0 movq 0x19ec91(%rip), %r15 # 0x46a3f0 movq (%r15), %r12 movq 0x28(%r12), %rax movslq (%r14), %rcx shlq $0x7, %rcx divsd 0x98(%rax,%rcx), %xmm0 callq 0xe2ca0 movslq (%r14), %rcx divsd 0x1c0(%r12,%rcx,8), %xmm0 movq 0x28(%r12), %rax movq %rcx, %rdx movsd 0x198(%r12), %xmm1 movhpd 0x1a0(%r12,%rcx,8), %xmm1 # xmm1 = xmm1[0],mem[0] shlq $0x7, %rcx movsd 0x98(%rax,%rcx), %xmm2 movsd 0xa0(%rax,%rcx), %xmm3 cvtsd2ss %xmm0, %xmm0 subsd %xmm2, %xmm3 movapd (%rsp), %xmm4 unpcklpd %xmm3, %xmm4 # xmm4 = xmm4[0],xmm3[0] cvtss2sd %xmm0, %xmm0 xorpd %xmm3, %xmm3 unpcklpd %xmm0, %xmm3 # xmm3 = xmm3[0],xmm0[0] shlq $0x4, %rdx mulpd %xmm4, %xmm3 movapd 0x10(%rsp), %xmm4 unpcklpd %xmm2, %xmm4 # xmm4 = xmm4[0],xmm2[0] cvtps2pd 0x164(%r12,%rdx), %xmm0 addpd %xmm3, %xmm4 movsd 0x18(%rax), %xmm3 unpcklpd %xmm2, %xmm3 # xmm3 = xmm3[0],xmm2[0] subpd %xmm3, %xmm4 mulpd %xmm4, %xmm1 addpd %xmm0, %xmm1 cvtpd2ps %xmm1, %xmm0 movlpd %xmm0, 0x20(%rbx) movq 0x8(%rbx), %rax movq 0x10(%rbx), %r12 movsd (%rax), %xmm0 movq (%r15), %r14 movq 0x28(%r14), %rcx movslq (%r12), %rdx shlq $0x7, %rdx divsd 0x98(%rcx,%rdx), %xmm0 movsd 0x10(%rax), %xmm1 movaps %xmm1, (%rsp) movsd 0x18(%rax), %xmm1 movaps %xmm1, 0x10(%rsp) callq 0xe2ca0 movslq (%r12), %rcx divsd 0x1c0(%r14,%rcx,8), %xmm0 movq 0x28(%r14), %rax movq %rcx, %rdx movsd 0x198(%r14), %xmm1 movhpd 0x1a0(%r14,%rcx,8), %xmm1 # xmm1 = xmm1[0],mem[0] shlq $0x7, %rcx movsd 0x98(%rax,%rcx), %xmm2 movsd 0xa0(%rax,%rcx), %xmm3 subsd %xmm2, %xmm3 movapd (%rsp), %xmm4 unpcklpd %xmm3, %xmm4 # xmm4 = xmm4[0],xmm3[0] cvtsd2ss %xmm0, %xmm0 cvtss2sd %xmm0, %xmm0 shlq $0x4, %rdx xorpd %xmm3, %xmm3 unpcklpd %xmm0, %xmm3 # xmm3 = xmm3[0],xmm0[0] mulpd %xmm4, %xmm3 movapd 0x10(%rsp), %xmm4 unpcklpd %xmm2, %xmm4 # xmm4 = xmm4[0],xmm2[0] addpd %xmm3, %xmm4 cvtps2pd 0x164(%r14,%rdx), %xmm0 movsd 0x18(%rax), %xmm3 unpcklpd %xmm2, %xmm3 # xmm3 = xmm3[0],xmm2[0] subpd %xmm3, %xmm4 mulpd %xmm4, %xmm1 addpd %xmm0, %xmm1 cvtpd2ps %xmm1, %xmm0 movlpd %xmm0, 0x28(%rbx) addq $0x28, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
void ImPlot::RenderPrimitives<ImPlot::ShadedRenderer<ImPlot::GetterYs<float>, ImPlot::GetterYRef, ImPlot::TransformerLogLin>>(ImPlot::ShadedRenderer<ImPlot::GetterYs<float>, ImPlot::GetterYRef, ImPlot::TransformerLogLin> const&, ImDrawList&, ImRect const&)
inline void RenderPrimitives(const Renderer& renderer, ImDrawList& DrawList, const ImRect& cull_rect) { unsigned int prims = renderer.Prims; unsigned int prims_culled = 0; unsigned int idx = 0; const ImVec2 uv = DrawList._Data->TexUvWhitePixel; while (prims) { // find how many can be reserved up to end of current draw command's limit unsigned int cnt = ImMin(prims, (MaxIdx<ImDrawIdx>::Value - DrawList._VtxCurrentIdx) / Renderer::VtxConsumed); // make sure at least this many elements can be rendered to avoid situations where at the end of buffer this slow path is not taken all the time if (cnt >= ImMin(64u, prims)) { if (prims_culled >= cnt) prims_culled -= cnt; // reuse previous reservation else { DrawList.PrimReserve((cnt - prims_culled) * Renderer::IdxConsumed, (cnt - prims_culled) * Renderer::VtxConsumed); // add more elements to previous reservation prims_culled = 0; } } else { if (prims_culled > 0) { DrawList.PrimUnreserve(prims_culled * Renderer::IdxConsumed, prims_culled * Renderer::VtxConsumed); prims_culled = 0; } cnt = ImMin(prims, (MaxIdx<ImDrawIdx>::Value - 0/*DrawList._VtxCurrentIdx*/) / Renderer::VtxConsumed); DrawList.PrimReserve(cnt * Renderer::IdxConsumed, cnt * Renderer::VtxConsumed); // reserve new draw command } prims -= cnt; for (unsigned int ie = idx + cnt; idx != ie; ++idx) { if (!renderer(DrawList, cull_rect, uv, idx)) prims_culled++; } } if (prims_culled > 0) DrawList.PrimUnreserve(prims_culled * Renderer::IdxConsumed, prims_culled * Renderer::VtxConsumed); }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rsi, %rbx movl 0x18(%rdi), %esi movq 0x38(%rbx), %rax movq (%rax), %rax movq %rax, 0x8(%rsp) testl %esi, %esi je 0x2cce58 movq %rdx, %r14 movq %rdi, %r15 xorl %r12d, %r12d leaq 0x8(%rsp), %rcx xorl %ebp, %ebp movl 0x34(%rbx), %edi movl %edi, %eax notl %eax movl $0xcccccccd, %edx # imm = 0xCCCCCCCD imulq %rdx, %rax shrq $0x22, %rax cmpl %eax, %esi movl %eax, %r13d cmovbl %esi, %r13d cmpl $0x40, %esi movl $0x40, %edx cmovbl %esi, %edx cmpl %edx, %eax jae 0x2ccdbb testl %ebp, %ebp je 0x2ccda7 leal (,%rbp,2), %eax movl %esi, %r13d leal (%rax,%rax,2), %esi leal (%rbp,%rbp,4), %edx movq %rbx, %rdi callq 0xe0140 movl %r13d, %esi movl $0x33333333, %eax # imm = 0x33333333 cmpl %eax, %esi movl $0x33333333, %eax # imm = 0x33333333 cmovbl %esi, %eax movl %eax, %r13d jmp 0x2ccdc7 movl %ebp, %eax subl %r13d, %eax jae 0x2cce2c movl %r13d, %eax subl %ebp, %eax movl %esi, %ebp leal (%rax,%rax), %ecx leal (%rcx,%rcx,2), %esi leal (%rax,%rax,4), %edx movq %rbx, %rdi callq 0xe3170 subl %r13d, %ebp movl %ebp, 0x4(%rsp) xorl %eax, %eax leaq 0x8(%rsp), %rcx leal (%r12,%r13), %edx movl %edx, 0x14(%rsp) movl %eax, %ebp movq %r15, %rdi movq %rbx, %rsi movq %r14, %rdx movl %r12d, %r8d callq 0xeb9b0 leaq 0x8(%rsp), %rcx xorb $0x1, %al movzbl %al, %eax addl %eax, %ebp incl %r12d decl %r13d jne 0x2ccdf2 movl 0x14(%rsp), %eax movl %eax, %r12d movl 0x4(%rsp), %esi testl %esi, %esi jne 0x2ccd5b jmp 0x2cce3e subl %r13d, %esi cmpl $-0x6, %edi jbe 0x2cce38 movl %eax, %ebp jmp 0x2cce22 movl %esi, 0x4(%rsp) jmp 0x2ccde8 testl %ebp, %ebp je 0x2cce58 leal (,%rbp,2), %eax leal (%rax,%rax,2), %esi leal (%rbp,%rbp,4), %edx movq %rbx, %rdi callq 0xe0140 addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq nop
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
ImPlot::ShadedRenderer<ImPlot::GetterYs<float>, ImPlot::GetterYRef, ImPlot::TransformerLinLin>::operator()(ImDrawList&, ImRect const&, ImVec2 const&, int) const
inline bool operator()(ImDrawList& DrawList, const ImRect& /*cull_rect*/, const ImVec2& uv, int prim) const { // TODO: Culling ImVec2 P21 = Transformer(Getter1(prim+1)); ImVec2 P22 = Transformer(Getter2(prim+1)); const int intersect = (P11.y > P12.y && P22.y > P21.y) || (P12.y > P11.y && P21.y > P22.y); ImVec2 intersection = Intersection(P11,P21,P12,P22); DrawList._VtxWritePtr[0].pos = P11; DrawList._VtxWritePtr[0].uv = uv; DrawList._VtxWritePtr[0].col = Col; DrawList._VtxWritePtr[1].pos = P21; DrawList._VtxWritePtr[1].uv = uv; DrawList._VtxWritePtr[1].col = Col; DrawList._VtxWritePtr[2].pos = intersection; DrawList._VtxWritePtr[2].uv = uv; DrawList._VtxWritePtr[2].col = Col; DrawList._VtxWritePtr[3].pos = P12; DrawList._VtxWritePtr[3].uv = uv; DrawList._VtxWritePtr[3].col = Col; DrawList._VtxWritePtr[4].pos = P22; DrawList._VtxWritePtr[4].uv = uv; DrawList._VtxWritePtr[4].col = Col; DrawList._VtxWritePtr += 5; DrawList._IdxWritePtr[0] = (ImDrawIdx)(DrawList._VtxCurrentIdx); DrawList._IdxWritePtr[1] = (ImDrawIdx)(DrawList._VtxCurrentIdx + 1 + intersect); DrawList._IdxWritePtr[2] = (ImDrawIdx)(DrawList._VtxCurrentIdx + 3); DrawList._IdxWritePtr[3] = (ImDrawIdx)(DrawList._VtxCurrentIdx + 1); DrawList._IdxWritePtr[4] = (ImDrawIdx)(DrawList._VtxCurrentIdx + 3 - intersect); DrawList._IdxWritePtr[5] = (ImDrawIdx)(DrawList._VtxCurrentIdx + 4); DrawList._IdxWritePtr += 6; DrawList._VtxCurrentIdx += 5; P11 = P21; P12 = P22; return true; }
pushq %rbx movq 0x10(%rdi), %r9 leal 0x1(%r8), %eax cvtsi2sd %eax, %xmm1 movq (%rdi), %rdx movq 0x8(%rdi), %r8 movsd 0x10(%rdx), %xmm0 mulsd %xmm1, %xmm0 addsd 0x18(%rdx), %xmm0 movq (%rdx), %r10 movl 0x8(%rdx), %r11d addl 0x20(%rdx), %eax movslq 0x24(%rdx), %rbx cltd idivl %r11d leal (%rdx,%r11), %eax cltd idivl %r11d movslq %edx, %rax imulq %rbx, %rax cvtss2sd (%r10,%rax), %xmm2 unpcklpd %xmm2, %xmm0 # xmm0 = xmm0[0],xmm2[0] movq 0x19cc48(%rip), %rax # 0x46a3f0 movq (%rax), %rax movslq (%r9), %rdx movq %rdx, %r9 movsd 0x198(%rax), %xmm2 movhpd 0x1a0(%rax,%rdx,8), %xmm2 # xmm2 = xmm2[0],mem[0] shlq $0x4, %rdx movq 0x28(%rax), %r10 shlq $0x7, %r9 mulsd 0x10(%r8), %xmm1 addsd 0x18(%r8), %xmm1 cvtps2pd 0x164(%rax,%rdx), %xmm3 movsd 0x18(%r10), %xmm4 movhpd 0x98(%r10,%r9), %xmm4 # xmm4 = xmm4[0],mem[0] subpd %xmm4, %xmm0 mulpd %xmm2, %xmm0 addpd %xmm3, %xmm0 cvtpd2ps %xmm0, %xmm0 movhpd (%r8), %xmm1 # xmm1 = xmm1[0],mem[0] subpd %xmm4, %xmm1 mulpd %xmm2, %xmm1 addpd %xmm3, %xmm1 cvtpd2ps %xmm1, %xmm1 movsd 0x20(%rdi), %xmm4 movsd 0x28(%rdi), %xmm3 movaps %xmm3, %xmm6 shufps $0x55, %xmm3, %xmm6 # xmm6 = xmm6[1,1],xmm3[1,1] movaps %xmm4, %xmm7 shufps $0x55, %xmm4, %xmm7 # xmm7 = xmm7[1,1],xmm4[1,1] movapd %xmm1, %xmm8 shufps $0x55, %xmm1, %xmm8 # xmm8 = xmm8[1,1],xmm1[1,1] movapd %xmm0, %xmm2 shufps $0x55, %xmm0, %xmm2 # xmm2 = xmm2[1,1],xmm0[1,1] movaps %xmm2, %xmm5 cmpltps %xmm8, %xmm5 movaps %xmm6, %xmm9 cmpltps %xmm7, %xmm9 andps %xmm5, %xmm9 movd %xmm9, %edx movaps %xmm3, %xmm5 mulss %xmm8, %xmm5 cmpltps %xmm2, %xmm8 movaps %xmm0, %xmm9 mulss %xmm7, %xmm9 cmpltps %xmm6, %xmm7 andps %xmm8, %xmm7 movd %xmm7, %eax orl %edx, %eax mulss %xmm4, %xmm2 subss %xmm9, %xmm2 mulss %xmm1, %xmm6 subss %xmm6, %xmm5 subps %xmm0, %xmm4 subps %xmm1, %xmm3 movaps %xmm3, %xmm6 shufps $0x55, %xmm3, %xmm6 # xmm6 = xmm6[1,1],xmm3[1,1] mulss %xmm4, %xmm6 unpcklps %xmm5, %xmm5 # xmm5 = xmm5[0,0,1,1] mulps %xmm4, %xmm5 shufps $0x55, %xmm4, %xmm4 # xmm4 = xmm4[1,1,1,1] mulss %xmm3, %xmm4 subss %xmm4, %xmm6 unpcklps %xmm2, %xmm2 # xmm2 = xmm2[0,0,1,1] mulps %xmm3, %xmm2 subps %xmm5, %xmm2 unpcklps %xmm6, %xmm6 # xmm6 = xmm6[0,0,1,1] divps %xmm6, %xmm2 movq 0x48(%rsi), %rdx movq 0x20(%rdi), %r8 movq %r8, (%rdx) movq 0x48(%rsi), %rdx movq (%rcx), %r8 movq %r8, 0x8(%rdx) movl 0x1c(%rdi), %edx movq 0x48(%rsi), %r8 movl %edx, 0x10(%r8) movlpd %xmm0, 0x14(%r8) movq 0x48(%rsi), %rdx movq (%rcx), %r8 movq %r8, 0x1c(%rdx) movl 0x1c(%rdi), %edx movq 0x48(%rsi), %r8 movl %edx, 0x24(%r8) movlps %xmm2, 0x28(%r8) movq 0x48(%rsi), %rdx movq (%rcx), %r8 movq %r8, 0x30(%rdx) movl 0x1c(%rdi), %edx movq 0x48(%rsi), %r8 movl %edx, 0x38(%r8) movq 0x28(%rdi), %rdx movq %rdx, 0x3c(%r8) movq 0x48(%rsi), %rdx movq (%rcx), %r8 movq %r8, 0x44(%rdx) movl 0x1c(%rdi), %edx movq 0x48(%rsi), %r8 movl %edx, 0x4c(%r8) movlpd %xmm1, 0x50(%r8) movq 0x48(%rsi), %rdx movq (%rcx), %rcx movq %rcx, 0x58(%rdx) movl 0x1c(%rdi), %ecx movq 0x48(%rsi), %rdx movl %ecx, 0x60(%rdx) addq $0x64, %rdx movq %rdx, 0x48(%rsi) movl 0x34(%rsi), %ecx movq 0x50(%rsi), %rdx movl %ecx, (%rdx) andl $0x1, %eax addl %eax, %ecx incl %ecx movl %ecx, 0x4(%rdx) movl 0x34(%rsi), %ecx addl $0x3, %ecx movl %ecx, 0x8(%rdx) movl 0x34(%rsi), %ecx incl %ecx movl %ecx, 0xc(%rdx) xorl $0x3, %eax addl 0x34(%rsi), %eax movl %eax, 0x10(%rdx) movl 0x34(%rsi), %eax addl $0x4, %eax movl %eax, 0x14(%rdx) addq $0x18, %rdx movq %rdx, 0x50(%rsi) addl $0x5, 0x34(%rsi) movlhps %xmm1, %xmm0 # xmm0 = xmm0[0],xmm1[0] movups %xmm0, 0x20(%rdi) movb $0x1, %al popq %rbx retq
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
void ImPlot::RenderPrimitives<ImPlot::ShadedRenderer<ImPlot::GetterYs<double>, ImPlot::GetterYRef, ImPlot::TransformerLinLin>>(ImPlot::ShadedRenderer<ImPlot::GetterYs<double>, ImPlot::GetterYRef, ImPlot::TransformerLinLin> const&, ImDrawList&, ImRect const&)
inline void RenderPrimitives(const Renderer& renderer, ImDrawList& DrawList, const ImRect& cull_rect) { unsigned int prims = renderer.Prims; unsigned int prims_culled = 0; unsigned int idx = 0; const ImVec2 uv = DrawList._Data->TexUvWhitePixel; while (prims) { // find how many can be reserved up to end of current draw command's limit unsigned int cnt = ImMin(prims, (MaxIdx<ImDrawIdx>::Value - DrawList._VtxCurrentIdx) / Renderer::VtxConsumed); // make sure at least this many elements can be rendered to avoid situations where at the end of buffer this slow path is not taken all the time if (cnt >= ImMin(64u, prims)) { if (prims_culled >= cnt) prims_culled -= cnt; // reuse previous reservation else { DrawList.PrimReserve((cnt - prims_culled) * Renderer::IdxConsumed, (cnt - prims_culled) * Renderer::VtxConsumed); // add more elements to previous reservation prims_culled = 0; } } else { if (prims_culled > 0) { DrawList.PrimUnreserve(prims_culled * Renderer::IdxConsumed, prims_culled * Renderer::VtxConsumed); prims_culled = 0; } cnt = ImMin(prims, (MaxIdx<ImDrawIdx>::Value - 0/*DrawList._VtxCurrentIdx*/) / Renderer::VtxConsumed); DrawList.PrimReserve(cnt * Renderer::IdxConsumed, cnt * Renderer::VtxConsumed); // reserve new draw command } prims -= cnt; for (unsigned int ie = idx + cnt; idx != ie; ++idx) { if (!renderer(DrawList, cull_rect, uv, idx)) prims_culled++; } } if (prims_culled > 0) DrawList.PrimUnreserve(prims_culled * Renderer::IdxConsumed, prims_culled * Renderer::VtxConsumed); }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rsi, %rbx movl 0x18(%rdi), %esi movq 0x38(%rbx), %rax movq (%rax), %rax movq %rax, 0x8(%rsp) testl %esi, %esi je 0x2ce5ed movq %rdx, %r14 movq %rdi, %r15 xorl %r12d, %r12d leaq 0x8(%rsp), %rcx xorl %ebp, %ebp movl 0x34(%rbx), %edi movl %edi, %eax notl %eax movl $0xcccccccd, %edx # imm = 0xCCCCCCCD imulq %rdx, %rax shrq $0x22, %rax cmpl %eax, %esi movl %eax, %r13d cmovbl %esi, %r13d cmpl $0x40, %esi movl $0x40, %edx cmovbl %esi, %edx cmpl %edx, %eax jae 0x2ce550 testl %ebp, %ebp je 0x2ce53c leal (,%rbp,2), %eax movl %esi, %r13d leal (%rax,%rax,2), %esi leal (%rbp,%rbp,4), %edx movq %rbx, %rdi callq 0xe0140 movl %r13d, %esi movl $0x33333333, %eax # imm = 0x33333333 cmpl %eax, %esi movl $0x33333333, %eax # imm = 0x33333333 cmovbl %esi, %eax movl %eax, %r13d jmp 0x2ce55c movl %ebp, %eax subl %r13d, %eax jae 0x2ce5c1 movl %r13d, %eax subl %ebp, %eax movl %esi, %ebp leal (%rax,%rax), %ecx leal (%rcx,%rcx,2), %esi leal (%rax,%rax,4), %edx movq %rbx, %rdi callq 0xe3170 subl %r13d, %ebp movl %ebp, 0x4(%rsp) xorl %eax, %eax leaq 0x8(%rsp), %rcx leal (%r12,%r13), %edx movl %edx, 0x14(%rsp) movl %eax, %ebp movq %r15, %rdi movq %rbx, %rsi movq %r14, %rdx movl %r12d, %r8d callq 0xe3590 leaq 0x8(%rsp), %rcx xorb $0x1, %al movzbl %al, %eax addl %eax, %ebp incl %r12d decl %r13d jne 0x2ce587 movl 0x14(%rsp), %eax movl %eax, %r12d movl 0x4(%rsp), %esi testl %esi, %esi jne 0x2ce4f0 jmp 0x2ce5d3 subl %r13d, %esi cmpl $-0x6, %edi jbe 0x2ce5cd movl %eax, %ebp jmp 0x2ce5b7 movl %esi, 0x4(%rsp) jmp 0x2ce57d testl %ebp, %ebp je 0x2ce5ed leal (,%rbp,2), %eax leal (%rax,%rax,2), %esi leal (%rbp,%rbp,4), %edx movq %rbx, %rdi callq 0xe0140 addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
ImPlot::ShadedRenderer<ImPlot::GetterYs<double>, ImPlot::GetterYRef, ImPlot::TransformerLogLin>::ShadedRenderer(ImPlot::GetterYs<double> const&, ImPlot::GetterYRef const&, ImPlot::TransformerLogLin const&, unsigned int)
ShadedRenderer(const TGetter1& getter1, const TGetter2& getter2, const TTransformer& transformer, ImU32 col) : Getter1(getter1), Getter2(getter2), Transformer(transformer), Prims(ImMin(Getter1.Count, Getter2.Count) - 1), Col(col) { P11 = Transformer(Getter1(0)); P12 = Transformer(Getter2(0)); }
pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rcx, %r14 movq %rdi, %rbx movq %rsi, (%rdi) movq %rdx, 0x8(%rdi) movq %rcx, 0x10(%rdi) movl 0x8(%rsi), %ecx movl 0x8(%rdx), %eax cmpl %eax, %ecx cmovll %ecx, %eax decl %eax movl %eax, 0x18(%rdi) movl %r8d, 0x1c(%rdi) xorps %xmm0, %xmm0 movups %xmm0, 0x20(%rdi) xorpd %xmm1, %xmm1 movsd 0x10(%rsi), %xmm0 mulsd %xmm1, %xmm0 addsd 0x18(%rsi), %xmm0 movq (%rsi), %rdi movl 0x20(%rsi), %eax movslq 0x24(%rsi), %rsi cltd idivl %ecx leal (%rdx,%rcx), %eax cltd idivl %ecx movslq %edx, %rax imulq %rsi, %rax movq 0x19bb28(%rip), %r15 # 0x46a3f0 movq (%r15), %r12 movq 0x28(%r12), %rcx divsd 0x18(%rcx), %xmm0 movsd (%rdi,%rax), %xmm1 movaps %xmm1, (%rsp) callq 0xe2ca0 divsd 0x1b8(%r12), %xmm0 movq 0x28(%r12), %rax movupd 0x18(%rax), %xmm1 cvtsd2ss %xmm0, %xmm0 movapd %xmm1, %xmm2 unpckhpd %xmm1, %xmm2 # xmm2 = xmm2[1],xmm1[1] subsd %xmm1, %xmm2 cvtss2sd %xmm0, %xmm0 mulsd %xmm2, %xmm0 addsd %xmm1, %xmm0 unpcklpd (%rsp), %xmm0 # xmm0 = xmm0[0],mem[0] movslq (%r14), %rcx movq %rcx, %rdx movsd 0x198(%r12), %xmm2 movhpd 0x1a0(%r12,%rcx,8), %xmm2 # xmm2 = xmm2[0],mem[0] shlq $0x4, %rcx cvtps2pd 0x164(%r12,%rcx), %xmm3 shlq $0x7, %rdx movhpd 0x98(%rax,%rdx), %xmm1 # xmm1 = xmm1[0],mem[0] subpd %xmm1, %xmm0 mulpd %xmm0, %xmm2 addpd %xmm3, %xmm2 cvtpd2ps %xmm2, %xmm0 movlpd %xmm0, 0x20(%rbx) movq 0x8(%rbx), %rax xorpd %xmm0, %xmm0 mulsd 0x10(%rax), %xmm0 movq 0x10(%rbx), %r12 addsd 0x18(%rax), %xmm0 movq (%r15), %r14 movq 0x28(%r14), %rcx divsd 0x18(%rcx), %xmm0 movsd (%rax), %xmm1 movaps %xmm1, (%rsp) callq 0xe2ca0 divsd 0x1b8(%r14), %xmm0 movq 0x28(%r14), %rax movupd 0x18(%rax), %xmm1 cvtsd2ss %xmm0, %xmm0 movapd %xmm1, %xmm2 unpckhpd %xmm1, %xmm2 # xmm2 = xmm2[1],xmm1[1] subsd %xmm1, %xmm2 cvtss2sd %xmm0, %xmm0 mulsd %xmm2, %xmm0 addsd %xmm1, %xmm0 unpcklpd (%rsp), %xmm0 # xmm0 = xmm0[0],mem[0] movslq (%r12), %rcx movq %rcx, %rdx movsd 0x198(%r14), %xmm2 movhpd 0x1a0(%r14,%rcx,8), %xmm2 # xmm2 = xmm2[0],mem[0] shlq $0x4, %rcx shlq $0x7, %rdx cvtps2pd 0x164(%r14,%rcx), %xmm3 movhpd 0x98(%rax,%rdx), %xmm1 # xmm1 = xmm1[0],mem[0] subpd %xmm1, %xmm0 mulpd %xmm0, %xmm2 addpd %xmm3, %xmm2 cvtpd2ps %xmm2, %xmm0 movlpd %xmm0, 0x28(%rbx) addq $0x18, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
ImPlot::ShadedRenderer<ImPlot::GetterYs<double>, ImPlot::GetterYRef, ImPlot::TransformerLinLog>::ShadedRenderer(ImPlot::GetterYs<double> const&, ImPlot::GetterYRef const&, ImPlot::TransformerLinLog const&, unsigned int)
ShadedRenderer(const TGetter1& getter1, const TGetter2& getter2, const TTransformer& transformer, ImU32 col) : Getter1(getter1), Getter2(getter2), Transformer(transformer), Prims(ImMin(Getter1.Count, Getter2.Count) - 1), Col(col) { P11 = Transformer(Getter1(0)); P12 = Transformer(Getter2(0)); }
pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x28, %rsp movq %rcx, %r14 movq %rdi, %rbx movq %rsi, (%rdi) movq %rdx, 0x8(%rdi) movq %rcx, 0x10(%rdi) movl 0x8(%rsi), %ecx movl 0x8(%rdx), %eax cmpl %eax, %ecx cmovll %ecx, %eax decl %eax movl %eax, 0x18(%rdi) movl %r8d, 0x1c(%rdi) xorps %xmm0, %xmm0 movups %xmm0, 0x20(%rdi) movups 0x18(%rsi), %xmm0 movaps %xmm0, 0x10(%rsp) movups 0x10(%rsi), %xmm0 movaps %xmm0, (%rsp) movq (%rsi), %rdi movl 0x20(%rsi), %eax movslq 0x24(%rsi), %rsi cltd idivl %ecx leal (%rdx,%rcx), %eax cltd idivl %ecx movslq %edx, %rax imulq %rsi, %rax movsd (%rdi,%rax), %xmm0 movq 0x19b826(%rip), %r15 # 0x46a3f0 movq (%r15), %r12 movq 0x28(%r12), %rax movslq (%r14), %rcx shlq $0x7, %rcx divsd 0x98(%rax,%rcx), %xmm0 callq 0xe2ca0 movslq (%r14), %rcx divsd 0x1c0(%r12,%rcx,8), %xmm0 movq 0x28(%r12), %rax movq %rcx, %rdx movsd 0x198(%r12), %xmm1 movhpd 0x1a0(%r12,%rcx,8), %xmm1 # xmm1 = xmm1[0],mem[0] shlq $0x7, %rcx movsd 0x98(%rax,%rcx), %xmm2 movsd 0xa0(%rax,%rcx), %xmm3 cvtsd2ss %xmm0, %xmm0 subsd %xmm2, %xmm3 movapd (%rsp), %xmm4 unpcklpd %xmm3, %xmm4 # xmm4 = xmm4[0],xmm3[0] cvtss2sd %xmm0, %xmm0 xorpd %xmm3, %xmm3 unpcklpd %xmm0, %xmm3 # xmm3 = xmm3[0],xmm0[0] shlq $0x4, %rdx mulpd %xmm4, %xmm3 movapd 0x10(%rsp), %xmm4 unpcklpd %xmm2, %xmm4 # xmm4 = xmm4[0],xmm2[0] cvtps2pd 0x164(%r12,%rdx), %xmm0 addpd %xmm3, %xmm4 movsd 0x18(%rax), %xmm3 unpcklpd %xmm2, %xmm3 # xmm3 = xmm3[0],xmm2[0] subpd %xmm3, %xmm4 mulpd %xmm4, %xmm1 addpd %xmm0, %xmm1 cvtpd2ps %xmm1, %xmm0 movlpd %xmm0, 0x20(%rbx) movq 0x8(%rbx), %rax movq 0x10(%rbx), %r12 movsd (%rax), %xmm0 movq (%r15), %r14 movq 0x28(%r14), %rcx movslq (%r12), %rdx shlq $0x7, %rdx divsd 0x98(%rcx,%rdx), %xmm0 movsd 0x10(%rax), %xmm1 movaps %xmm1, (%rsp) movsd 0x18(%rax), %xmm1 movaps %xmm1, 0x10(%rsp) callq 0xe2ca0 movslq (%r12), %rcx divsd 0x1c0(%r14,%rcx,8), %xmm0 movq 0x28(%r14), %rax movq %rcx, %rdx movsd 0x198(%r14), %xmm1 movhpd 0x1a0(%r14,%rcx,8), %xmm1 # xmm1 = xmm1[0],mem[0] shlq $0x7, %rcx movsd 0x98(%rax,%rcx), %xmm2 movsd 0xa0(%rax,%rcx), %xmm3 subsd %xmm2, %xmm3 movapd (%rsp), %xmm4 unpcklpd %xmm3, %xmm4 # xmm4 = xmm4[0],xmm3[0] cvtsd2ss %xmm0, %xmm0 cvtss2sd %xmm0, %xmm0 shlq $0x4, %rdx xorpd %xmm3, %xmm3 unpcklpd %xmm0, %xmm3 # xmm3 = xmm3[0],xmm0[0] mulpd %xmm4, %xmm3 movapd 0x10(%rsp), %xmm4 unpcklpd %xmm2, %xmm4 # xmm4 = xmm4[0],xmm2[0] addpd %xmm3, %xmm4 cvtps2pd 0x164(%r14,%rdx), %xmm0 movsd 0x18(%rax), %xmm3 unpcklpd %xmm2, %xmm3 # xmm3 = xmm3[0],xmm2[0] subpd %xmm3, %xmm4 mulpd %xmm4, %xmm1 addpd %xmm0, %xmm1 cvtpd2ps %xmm1, %xmm0 movlpd %xmm0, 0x28(%rbx) addq $0x28, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
void ImPlot::RenderPrimitives<ImPlot::ShadedRenderer<ImPlot::GetterXsYs<unsigned char>, ImPlot::GetterXsYRef<unsigned char>, ImPlot::TransformerLinLin>>(ImPlot::ShadedRenderer<ImPlot::GetterXsYs<unsigned char>, ImPlot::GetterXsYRef<unsigned char>, ImPlot::TransformerLinLin> const&, ImDrawList&, ImRect const&)
inline void RenderPrimitives(const Renderer& renderer, ImDrawList& DrawList, const ImRect& cull_rect) { unsigned int prims = renderer.Prims; unsigned int prims_culled = 0; unsigned int idx = 0; const ImVec2 uv = DrawList._Data->TexUvWhitePixel; while (prims) { // find how many can be reserved up to end of current draw command's limit unsigned int cnt = ImMin(prims, (MaxIdx<ImDrawIdx>::Value - DrawList._VtxCurrentIdx) / Renderer::VtxConsumed); // make sure at least this many elements can be rendered to avoid situations where at the end of buffer this slow path is not taken all the time if (cnt >= ImMin(64u, prims)) { if (prims_culled >= cnt) prims_culled -= cnt; // reuse previous reservation else { DrawList.PrimReserve((cnt - prims_culled) * Renderer::IdxConsumed, (cnt - prims_culled) * Renderer::VtxConsumed); // add more elements to previous reservation prims_culled = 0; } } else { if (prims_culled > 0) { DrawList.PrimUnreserve(prims_culled * Renderer::IdxConsumed, prims_culled * Renderer::VtxConsumed); prims_culled = 0; } cnt = ImMin(prims, (MaxIdx<ImDrawIdx>::Value - 0/*DrawList._VtxCurrentIdx*/) / Renderer::VtxConsumed); DrawList.PrimReserve(cnt * Renderer::IdxConsumed, cnt * Renderer::VtxConsumed); // reserve new draw command } prims -= cnt; for (unsigned int ie = idx + cnt; idx != ie; ++idx) { if (!renderer(DrawList, cull_rect, uv, idx)) prims_culled++; } } if (prims_culled > 0) DrawList.PrimUnreserve(prims_culled * Renderer::IdxConsumed, prims_culled * Renderer::VtxConsumed); }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rsi, %rbx movl 0x18(%rdi), %esi movq 0x38(%rbx), %rax movq (%rax), %rax movq %rax, 0x8(%rsp) testl %esi, %esi je 0x2d1a9b movq %rdx, %r14 movq %rdi, %r15 xorl %r12d, %r12d leaq 0x8(%rsp), %rcx xorl %ebp, %ebp movl 0x34(%rbx), %edi movl %edi, %eax notl %eax movl $0xcccccccd, %edx # imm = 0xCCCCCCCD imulq %rdx, %rax shrq $0x22, %rax cmpl %eax, %esi movl %eax, %r13d cmovbl %esi, %r13d cmpl $0x40, %esi movl $0x40, %edx cmovbl %esi, %edx cmpl %edx, %eax jae 0x2d19fe testl %ebp, %ebp je 0x2d19ea leal (,%rbp,2), %eax movl %esi, %r13d leal (%rax,%rax,2), %esi leal (%rbp,%rbp,4), %edx movq %rbx, %rdi callq 0xe0140 movl %r13d, %esi movl $0x33333333, %eax # imm = 0x33333333 cmpl %eax, %esi movl $0x33333333, %eax # imm = 0x33333333 cmovbl %esi, %eax movl %eax, %r13d jmp 0x2d1a0a movl %ebp, %eax subl %r13d, %eax jae 0x2d1a6f movl %r13d, %eax subl %ebp, %eax movl %esi, %ebp leal (%rax,%rax), %ecx leal (%rcx,%rcx,2), %esi leal (%rax,%rax,4), %edx movq %rbx, %rdi callq 0xe3170 subl %r13d, %ebp movl %ebp, 0x4(%rsp) xorl %eax, %eax leaq 0x8(%rsp), %rcx leal (%r12,%r13), %edx movl %edx, 0x14(%rsp) movl %eax, %ebp movq %r15, %rdi movq %rbx, %rsi movq %r14, %rdx movl %r12d, %r8d callq 0xe2ff0 leaq 0x8(%rsp), %rcx xorb $0x1, %al movzbl %al, %eax addl %eax, %ebp incl %r12d decl %r13d jne 0x2d1a35 movl 0x14(%rsp), %eax movl %eax, %r12d movl 0x4(%rsp), %esi testl %esi, %esi jne 0x2d199e jmp 0x2d1a81 subl %r13d, %esi cmpl $-0x6, %edi jbe 0x2d1a7b movl %eax, %ebp jmp 0x2d1a65 movl %esi, 0x4(%rsp) jmp 0x2d1a2b testl %ebp, %ebp je 0x2d1a9b leal (,%rbp,2), %eax leal (%rax,%rax,2), %esi leal (%rbp,%rbp,4), %edx movq %rbx, %rdi callq 0xe0140 addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
void ImPlot::RenderPrimitives<ImPlot::ShadedRenderer<ImPlot::GetterXsYs<unsigned char>, ImPlot::GetterXsYRef<unsigned char>, ImPlot::TransformerLogLin>>(ImPlot::ShadedRenderer<ImPlot::GetterXsYs<unsigned char>, ImPlot::GetterXsYRef<unsigned char>, ImPlot::TransformerLogLin> const&, ImDrawList&, ImRect const&)
inline void RenderPrimitives(const Renderer& renderer, ImDrawList& DrawList, const ImRect& cull_rect) { unsigned int prims = renderer.Prims; unsigned int prims_culled = 0; unsigned int idx = 0; const ImVec2 uv = DrawList._Data->TexUvWhitePixel; while (prims) { // find how many can be reserved up to end of current draw command's limit unsigned int cnt = ImMin(prims, (MaxIdx<ImDrawIdx>::Value - DrawList._VtxCurrentIdx) / Renderer::VtxConsumed); // make sure at least this many elements can be rendered to avoid situations where at the end of buffer this slow path is not taken all the time if (cnt >= ImMin(64u, prims)) { if (prims_culled >= cnt) prims_culled -= cnt; // reuse previous reservation else { DrawList.PrimReserve((cnt - prims_culled) * Renderer::IdxConsumed, (cnt - prims_culled) * Renderer::VtxConsumed); // add more elements to previous reservation prims_culled = 0; } } else { if (prims_culled > 0) { DrawList.PrimUnreserve(prims_culled * Renderer::IdxConsumed, prims_culled * Renderer::VtxConsumed); prims_culled = 0; } cnt = ImMin(prims, (MaxIdx<ImDrawIdx>::Value - 0/*DrawList._VtxCurrentIdx*/) / Renderer::VtxConsumed); DrawList.PrimReserve(cnt * Renderer::IdxConsumed, cnt * Renderer::VtxConsumed); // reserve new draw command } prims -= cnt; for (unsigned int ie = idx + cnt; idx != ie; ++idx) { if (!renderer(DrawList, cull_rect, uv, idx)) prims_culled++; } } if (prims_culled > 0) DrawList.PrimUnreserve(prims_culled * Renderer::IdxConsumed, prims_culled * Renderer::VtxConsumed); }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rsi, %rbx movl 0x18(%rdi), %esi movq 0x38(%rbx), %rax movq (%rax), %rax movq %rax, 0x8(%rsp) testl %esi, %esi je 0x2d1d20 movq %rdx, %r14 movq %rdi, %r15 xorl %r12d, %r12d leaq 0x8(%rsp), %rcx xorl %ebp, %ebp movl 0x34(%rbx), %edi movl %edi, %eax notl %eax movl $0xcccccccd, %edx # imm = 0xCCCCCCCD imulq %rdx, %rax shrq $0x22, %rax cmpl %eax, %esi movl %eax, %r13d cmovbl %esi, %r13d cmpl $0x40, %esi movl $0x40, %edx cmovbl %esi, %edx cmpl %edx, %eax jae 0x2d1c83 testl %ebp, %ebp je 0x2d1c6f leal (,%rbp,2), %eax movl %esi, %r13d leal (%rax,%rax,2), %esi leal (%rbp,%rbp,4), %edx movq %rbx, %rdi callq 0xe0140 movl %r13d, %esi movl $0x33333333, %eax # imm = 0x33333333 cmpl %eax, %esi movl $0x33333333, %eax # imm = 0x33333333 cmovbl %esi, %eax movl %eax, %r13d jmp 0x2d1c8f movl %ebp, %eax subl %r13d, %eax jae 0x2d1cf4 movl %r13d, %eax subl %ebp, %eax movl %esi, %ebp leal (%rax,%rax), %ecx leal (%rcx,%rcx,2), %esi leal (%rax,%rax,4), %edx movq %rbx, %rdi callq 0xe3170 subl %r13d, %ebp movl %ebp, 0x4(%rsp) xorl %eax, %eax leaq 0x8(%rsp), %rcx leal (%r12,%r13), %edx movl %edx, 0x14(%rsp) movl %eax, %ebp movq %r15, %rdi movq %rbx, %rsi movq %r14, %rdx movl %r12d, %r8d callq 0xe1e70 leaq 0x8(%rsp), %rcx xorb $0x1, %al movzbl %al, %eax addl %eax, %ebp incl %r12d decl %r13d jne 0x2d1cba movl 0x14(%rsp), %eax movl %eax, %r12d movl 0x4(%rsp), %esi testl %esi, %esi jne 0x2d1c23 jmp 0x2d1d06 subl %r13d, %esi cmpl $-0x6, %edi jbe 0x2d1d00 movl %eax, %ebp jmp 0x2d1cea movl %esi, 0x4(%rsp) jmp 0x2d1cb0 testl %ebp, %ebp je 0x2d1d20 leal (,%rbp,2), %eax leal (%rax,%rax,2), %esi leal (%rbp,%rbp,4), %edx movq %rbx, %rdi callq 0xe0140 addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq nop
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
ImPlot::ShadedRenderer<ImPlot::GetterXsYs<short>, ImPlot::GetterXsYRef<short>, ImPlot::TransformerLogLin>::ShadedRenderer(ImPlot::GetterXsYs<short> const&, ImPlot::GetterXsYRef<short> const&, ImPlot::TransformerLogLin const&, unsigned int)
ShadedRenderer(const TGetter1& getter1, const TGetter2& getter2, const TTransformer& transformer, ImU32 col) : Getter1(getter1), Getter2(getter2), Transformer(transformer), Prims(ImMin(Getter1.Count, Getter2.Count) - 1), Col(col) { P11 = Transformer(Getter1(0)); P12 = Transformer(Getter2(0)); }
pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rcx, %r14 movq %rdi, %rbx movq %rsi, (%rdi) movq %rdx, 0x8(%rdi) movq %rcx, 0x10(%rdi) movl 0x10(%rsi), %ecx movl 0x10(%rdx), %eax cmpl %eax, %ecx cmovll %ecx, %eax decl %eax movl %eax, 0x18(%rdi) movl %r8d, 0x1c(%rdi) xorps %xmm0, %xmm0 movups %xmm0, 0x20(%rdi) movl 0x14(%rsi), %eax movslq 0x18(%rsi), %rdi cltd idivl %ecx leal (%rdx,%rcx), %eax cltd idivl %ecx movslq %edx, %rax imulq %rdi, %rax movq (%rsi), %rcx movq 0x8(%rsi), %rdx movswl (%rcx,%rax), %ecx xorps %xmm0, %xmm0 cvtsi2sd %ecx, %xmm0 movswl (%rdx,%rax), %eax cvtsi2sd %eax, %xmm1 movapd %xmm1, (%rsp) movq 0x196bac(%rip), %r15 # 0x46a3f0 movq (%r15), %r12 movq 0x28(%r12), %rax divsd 0x18(%rax), %xmm0 callq 0xe2ca0 divsd 0x1b8(%r12), %xmm0 movq 0x28(%r12), %rax movupd 0x18(%rax), %xmm1 cvtsd2ss %xmm0, %xmm0 movapd %xmm1, %xmm2 unpckhpd %xmm1, %xmm2 # xmm2 = xmm2[1],xmm1[1] subsd %xmm1, %xmm2 cvtss2sd %xmm0, %xmm0 mulsd %xmm2, %xmm0 addsd %xmm1, %xmm0 movslq (%r14), %rcx movsd 0x198(%r12), %xmm2 movhpd 0x1a0(%r12,%rcx,8), %xmm2 # xmm2 = xmm2[0],mem[0] movq %rcx, %rdx shlq $0x4, %rcx shlq $0x7, %rdx cvtps2pd 0x164(%r12,%rcx), %xmm3 movhpd 0x98(%rax,%rdx), %xmm1 # xmm1 = xmm1[0],mem[0] unpcklpd (%rsp), %xmm0 # xmm0 = xmm0[0],mem[0] subpd %xmm1, %xmm0 mulpd %xmm0, %xmm2 addpd %xmm3, %xmm2 cvtpd2ps %xmm2, %xmm0 movlpd %xmm0, 0x20(%rbx) movq 0x8(%rbx), %rcx movq 0x10(%rbx), %r14 movq (%rcx), %rsi movl 0x10(%rcx), %edi movl 0x14(%rcx), %eax movslq 0x18(%rcx), %r8 cltd idivl %edi leal (%rdx,%rdi), %eax cltd idivl %edi movslq %edx, %rax imulq %r8, %rax movswl (%rsi,%rax), %eax xorps %xmm0, %xmm0 cvtsi2sd %eax, %xmm0 movq (%r15), %r15 movq 0x28(%r15), %rax divsd 0x18(%rax), %xmm0 movsd 0x8(%rcx), %xmm1 movaps %xmm1, (%rsp) callq 0xe2ca0 divsd 0x1b8(%r15), %xmm0 movq 0x28(%r15), %rax movupd 0x18(%rax), %xmm1 cvtsd2ss %xmm0, %xmm0 movapd %xmm1, %xmm2 unpckhpd %xmm1, %xmm2 # xmm2 = xmm2[1],xmm1[1] subsd %xmm1, %xmm2 cvtss2sd %xmm0, %xmm0 mulsd %xmm2, %xmm0 addsd %xmm1, %xmm0 unpcklpd (%rsp), %xmm0 # xmm0 = xmm0[0],mem[0] movslq (%r14), %rcx movq %rcx, %rdx movsd 0x198(%r15), %xmm2 movhpd 0x1a0(%r15,%rcx,8), %xmm2 # xmm2 = xmm2[0],mem[0] shlq $0x4, %rcx shlq $0x7, %rdx cvtps2pd 0x164(%r15,%rcx), %xmm3 movhpd 0x98(%rax,%rdx), %xmm1 # xmm1 = xmm1[0],mem[0] subpd %xmm1, %xmm0 mulpd %xmm0, %xmm2 addpd %xmm3, %xmm2 cvtpd2ps %xmm2, %xmm0 movlpd %xmm0, 0x28(%rbx) addq $0x18, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
ImPlot::ShadedRenderer<ImPlot::GetterXsYs<int>, ImPlot::GetterXsYRef<int>, ImPlot::TransformerLinLin>::ShadedRenderer(ImPlot::GetterXsYs<int> const&, ImPlot::GetterXsYRef<int> const&, ImPlot::TransformerLinLin const&, unsigned int)
ShadedRenderer(const TGetter1& getter1, const TGetter2& getter2, const TTransformer& transformer, ImU32 col) : Getter1(getter1), Getter2(getter2), Transformer(transformer), Prims(ImMin(Getter1.Count, Getter2.Count) - 1), Col(col) { P11 = Transformer(Getter1(0)); P12 = Transformer(Getter2(0)); }
pushq %rbx movq %rdx, %r9 movq %rsi, (%rdi) movq %rdx, 0x8(%rdi) movq %rcx, 0x10(%rdi) movl 0x10(%rsi), %r10d movl 0x10(%rdx), %eax cmpl %eax, %r10d cmovll %r10d, %eax decl %eax movl %eax, 0x18(%rdi) movl %r8d, 0x1c(%rdi) xorps %xmm0, %xmm0 movups %xmm0, 0x20(%rdi) movl 0x14(%rsi), %eax movslq 0x18(%rsi), %r8 cltd idivl %r10d leal (%rdx,%r10), %eax cltd idivl %r10d movslq %edx, %rax imulq %r8, %rax movq (%rsi), %rdx movq 0x8(%rsi), %r8 movq 0x193903(%rip), %rsi # 0x46a3f0 movq (%rsi), %rsi movslq (%rcx), %r10 movsd 0x198(%rsi), %xmm0 movhpd 0x1a0(%rsi,%r10,8), %xmm0 # xmm0 = xmm0[0],mem[0] movq %r10, %r11 movq 0x28(%rsi), %rbx movss (%r8,%rax), %xmm1 movss (%rdx,%rax), %xmm2 unpcklps %xmm1, %xmm2 # xmm2 = xmm2[0],xmm1[0],xmm2[1],xmm1[1] cvtdq2pd %xmm2, %xmm1 shlq $0x7, %r11 movsd 0x18(%rbx), %xmm2 movhpd 0x98(%rbx,%r11), %xmm2 # xmm2 = xmm2[0],mem[0] shlq $0x4, %r10 subpd %xmm2, %xmm1 cvtps2pd 0x164(%rsi,%r10), %xmm2 mulpd %xmm1, %xmm0 addpd %xmm2, %xmm0 cvtpd2ps %xmm0, %xmm0 movlpd %xmm0, 0x20(%rdi) movq (%r9), %r8 movl 0x10(%r9), %r10d movl 0x14(%r9), %eax movslq 0x18(%r9), %r11 cltd idivl %r10d leal (%rdx,%r10), %eax cltd idivl %r10d movslq %edx, %rax imulq %r11, %rax xorps %xmm0, %xmm0 cvtsi2sdl (%r8,%rax), %xmm0 movslq (%rcx), %rax movq %rax, %rcx movsd 0x198(%rsi), %xmm1 movhpd 0x1a0(%rsi,%rax,8), %xmm1 # xmm1 = xmm1[0],mem[0] shlq $0x4, %rax movq 0x28(%rsi), %rdx movhpd 0x8(%r9), %xmm0 # xmm0 = xmm0[0],mem[0] shlq $0x7, %rcx movsd 0x18(%rdx), %xmm2 movhpd 0x98(%rdx,%rcx), %xmm2 # xmm2 = xmm2[0],mem[0] subpd %xmm2, %xmm0 cvtps2pd 0x164(%rsi,%rax), %xmm2 mulpd %xmm0, %xmm1 addpd %xmm2, %xmm1 cvtpd2ps %xmm1, %xmm0 movlpd %xmm0, 0x28(%rdi) popq %rbx retq
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
ImPlot::ShadedRenderer<ImPlot::GetterXsYs<int>, ImPlot::GetterXsYRef<int>, ImPlot::TransformerLogLin>::operator()(ImDrawList&, ImRect const&, ImVec2 const&, int) const
inline bool operator()(ImDrawList& DrawList, const ImRect& /*cull_rect*/, const ImVec2& uv, int prim) const { // TODO: Culling ImVec2 P21 = Transformer(Getter1(prim+1)); ImVec2 P22 = Transformer(Getter2(prim+1)); const int intersect = (P11.y > P12.y && P22.y > P21.y) || (P12.y > P11.y && P21.y > P22.y); ImVec2 intersection = Intersection(P11,P21,P12,P22); DrawList._VtxWritePtr[0].pos = P11; DrawList._VtxWritePtr[0].uv = uv; DrawList._VtxWritePtr[0].col = Col; DrawList._VtxWritePtr[1].pos = P21; DrawList._VtxWritePtr[1].uv = uv; DrawList._VtxWritePtr[1].col = Col; DrawList._VtxWritePtr[2].pos = intersection; DrawList._VtxWritePtr[2].uv = uv; DrawList._VtxWritePtr[2].col = Col; DrawList._VtxWritePtr[3].pos = P12; DrawList._VtxWritePtr[3].uv = uv; DrawList._VtxWritePtr[3].col = Col; DrawList._VtxWritePtr[4].pos = P22; DrawList._VtxWritePtr[4].uv = uv; DrawList._VtxWritePtr[4].col = Col; DrawList._VtxWritePtr += 5; DrawList._IdxWritePtr[0] = (ImDrawIdx)(DrawList._VtxCurrentIdx); DrawList._IdxWritePtr[1] = (ImDrawIdx)(DrawList._VtxCurrentIdx + 1 + intersect); DrawList._IdxWritePtr[2] = (ImDrawIdx)(DrawList._VtxCurrentIdx + 3); DrawList._IdxWritePtr[3] = (ImDrawIdx)(DrawList._VtxCurrentIdx + 1); DrawList._IdxWritePtr[4] = (ImDrawIdx)(DrawList._VtxCurrentIdx + 3 - intersect); DrawList._IdxWritePtr[5] = (ImDrawIdx)(DrawList._VtxCurrentIdx + 4); DrawList._IdxWritePtr += 6; DrawList._VtxCurrentIdx += 5; P11 = P21; P12 = P22; return true; }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movq %rcx, %r15 movq %rsi, %r14 movq %rdi, %rbx movq (%rdi), %rcx movq 0x10(%rdi), %r12 leal 0x1(%r8), %ebp movl 0x10(%rcx), %esi movslq 0x18(%rcx), %rdi movl 0x14(%rcx), %eax addl %ebp, %eax cltd idivl %esi leal (%rdx,%rsi), %eax cltd idivl %esi movslq %edx, %rax imulq %rdi, %rax movq (%rcx), %rdx cvtsi2sdl (%rdx,%rax), %xmm0 movq 0x8(%rcx), %rcx cvtsi2sdl (%rcx,%rax), %xmm1 movapd %xmm1, (%rsp) movq 0x192afb(%rip), %rax # 0x46a3f0 movq (%rax), %r13 movq 0x28(%r13), %rax divsd 0x18(%rax), %xmm0 callq 0xe2ca0 divsd 0x1b8(%r13), %xmm0 movq 0x28(%r13), %rcx movupd 0x18(%rcx), %xmm1 cvtsd2ss %xmm0, %xmm0 movapd %xmm1, %xmm3 unpckhpd %xmm1, %xmm3 # xmm3 = xmm3[1],xmm1[1] subsd %xmm1, %xmm3 cvtss2sd %xmm0, %xmm2 mulsd %xmm3, %xmm2 addsd %xmm1, %xmm2 movslq (%r12), %rdi movq 0x8(%rbx), %rsi movq 0x10(%rbx), %r12 movq (%rsi), %r8 movl 0x10(%rsi), %r10d addl 0x14(%rsi), %ebp movslq 0x18(%rsi), %r9 movl %ebp, %eax cltd idivl %r10d leal (%rdx,%r10), %eax cltd idivl %r10d movsd 0x198(%r13), %xmm3 movhpd 0x1a0(%r13,%rdi,8), %xmm3 # xmm3 = xmm3[0],mem[0] movq %rdi, %rax shlq $0x4, %rdi movslq %edx, %rdx imulq %r9, %rdx xorps %xmm0, %xmm0 cvtsi2sdl (%r8,%rdx), %xmm0 movq 0x192a63(%rip), %rdx # 0x46a3f0 movq (%rdx), %rbp movq 0x28(%rbp), %rdx divsd 0x18(%rdx), %xmm0 shlq $0x7, %rax unpcklpd (%rsp), %xmm2 # xmm2 = xmm2[0],mem[0] cvtps2pd 0x164(%r13,%rdi), %xmm4 movhpd 0x98(%rcx,%rax), %xmm1 # xmm1 = xmm1[0],mem[0] subpd %xmm1, %xmm2 mulpd %xmm2, %xmm3 addpd %xmm4, %xmm3 cvtpd2ps %xmm3, %xmm1 movapd %xmm1, (%rsp) movsd 0x8(%rsi), %xmm1 movaps %xmm1, 0x10(%rsp) callq 0xe2ca0 divsd 0x1b8(%rbp), %xmm0 movq 0x28(%rbp), %rax movupd 0x18(%rax), %xmm1 cvtsd2ss %xmm0, %xmm0 movapd %xmm1, %xmm2 unpckhpd %xmm1, %xmm2 # xmm2 = xmm2[1],xmm1[1] subsd %xmm1, %xmm2 cvtss2sd %xmm0, %xmm0 mulsd %xmm2, %xmm0 addsd %xmm1, %xmm0 unpcklpd 0x10(%rsp), %xmm0 # xmm0 = xmm0[0],mem[0] movslq (%r12), %rcx movq %rcx, %rdx movsd 0x198(%rbp), %xmm2 movhpd 0x1a0(%rbp,%rcx,8), %xmm2 # xmm2 = xmm2[0],mem[0] shlq $0x4, %rcx cvtps2pd 0x164(%rbp,%rcx), %xmm3 shlq $0x7, %rdx movhpd 0x98(%rax,%rdx), %xmm1 # xmm1 = xmm1[0],mem[0] subpd %xmm1, %xmm0 mulpd %xmm0, %xmm2 addpd %xmm3, %xmm2 cvtpd2ps %xmm2, %xmm0 movsd 0x20(%rbx), %xmm3 movsd 0x28(%rbx), %xmm2 movaps %xmm2, %xmm5 shufps $0x55, %xmm2, %xmm5 # xmm5 = xmm5[1,1],xmm2[1,1] movaps %xmm3, %xmm6 shufps $0x55, %xmm3, %xmm6 # xmm6 = xmm6[1,1],xmm3[1,1] movapd %xmm0, %xmm7 shufps $0x55, %xmm0, %xmm7 # xmm7 = xmm7[1,1],xmm0[1,1] movaps (%rsp), %xmm9 movaps %xmm9, %xmm1 shufps $0x55, %xmm9, %xmm1 # xmm1 = xmm1[1,1],xmm9[1,1] movaps %xmm1, %xmm4 cmpltps %xmm7, %xmm4 movaps %xmm5, %xmm8 cmpltps %xmm6, %xmm8 andps %xmm4, %xmm8 movd %xmm8, %ecx movaps %xmm2, %xmm4 mulss %xmm7, %xmm4 cmpltps %xmm1, %xmm7 movaps %xmm9, %xmm8 mulss %xmm6, %xmm8 cmpltps %xmm5, %xmm6 andps %xmm7, %xmm6 movd %xmm6, %eax orl %ecx, %eax mulss %xmm3, %xmm1 subss %xmm8, %xmm1 mulss %xmm0, %xmm5 subss %xmm5, %xmm4 subps %xmm9, %xmm3 subps %xmm0, %xmm2 movaps %xmm2, %xmm5 shufps $0x55, %xmm2, %xmm5 # xmm5 = xmm5[1,1],xmm2[1,1] mulss %xmm3, %xmm5 unpcklps %xmm4, %xmm4 # xmm4 = xmm4[0,0,1,1] mulps %xmm3, %xmm4 shufps $0x55, %xmm3, %xmm3 # xmm3 = xmm3[1,1,1,1] mulss %xmm2, %xmm3 subss %xmm3, %xmm5 unpcklps %xmm1, %xmm1 # xmm1 = xmm1[0,0,1,1] mulps %xmm2, %xmm1 subps %xmm4, %xmm1 unpcklps %xmm5, %xmm5 # xmm5 = xmm5[0,0,1,1] divps %xmm5, %xmm1 movq 0x48(%r14), %rcx movq 0x20(%rbx), %rdx movq %rdx, (%rcx) movq 0x48(%r14), %rcx movq (%r15), %rdx movq %rdx, 0x8(%rcx) movl 0x1c(%rbx), %ecx movq 0x48(%r14), %rdx movl %ecx, 0x10(%rdx) movlps %xmm9, 0x14(%rdx) movq 0x48(%r14), %rcx movq (%r15), %rdx movq %rdx, 0x1c(%rcx) movl 0x1c(%rbx), %ecx movq 0x48(%r14), %rdx movl %ecx, 0x24(%rdx) movlps %xmm1, 0x28(%rdx) movq 0x48(%r14), %rcx movq (%r15), %rdx movq %rdx, 0x30(%rcx) movl 0x1c(%rbx), %ecx movq 0x48(%r14), %rdx movl %ecx, 0x38(%rdx) movq 0x28(%rbx), %rcx movq %rcx, 0x3c(%rdx) movq 0x48(%r14), %rcx movq (%r15), %rdx movq %rdx, 0x44(%rcx) movl 0x1c(%rbx), %ecx movq 0x48(%r14), %rdx movl %ecx, 0x4c(%rdx) movlpd %xmm0, 0x50(%rdx) movq 0x48(%r14), %rcx movq (%r15), %rdx movq %rdx, 0x58(%rcx) movl 0x1c(%rbx), %ecx movq 0x48(%r14), %rdx movl %ecx, 0x60(%rdx) addq $0x64, %rdx movq %rdx, 0x48(%r14) movl 0x34(%r14), %ecx movq 0x50(%r14), %rdx movl %ecx, (%rdx) andl $0x1, %eax addl %eax, %ecx incl %ecx movl %ecx, 0x4(%rdx) movl 0x34(%r14), %ecx addl $0x3, %ecx movl %ecx, 0x8(%rdx) movl 0x34(%r14), %ecx incl %ecx movl %ecx, 0xc(%rdx) xorl $0x3, %eax addl 0x34(%r14), %eax movl %eax, 0x10(%rdx) movl 0x34(%r14), %eax addl $0x4, %eax movl %eax, 0x14(%rdx) addq $0x18, %rdx movq %rdx, 0x50(%r14) addl $0x5, 0x34(%r14) movaps %xmm9, %xmm1 movlhps %xmm0, %xmm1 # xmm1 = xmm1[0],xmm0[0] movups %xmm1, 0x20(%rbx) movb $0x1, %al addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
void ImPlot::RenderPrimitives<ImPlot::ShadedRenderer<ImPlot::GetterXsYs<unsigned int>, ImPlot::GetterXsYRef<unsigned int>, ImPlot::TransformerLinLog>>(ImPlot::ShadedRenderer<ImPlot::GetterXsYs<unsigned int>, ImPlot::GetterXsYRef<unsigned int>, ImPlot::TransformerLinLog> const&, ImDrawList&, ImRect const&)
inline void RenderPrimitives(const Renderer& renderer, ImDrawList& DrawList, const ImRect& cull_rect) { unsigned int prims = renderer.Prims; unsigned int prims_culled = 0; unsigned int idx = 0; const ImVec2 uv = DrawList._Data->TexUvWhitePixel; while (prims) { // find how many can be reserved up to end of current draw command's limit unsigned int cnt = ImMin(prims, (MaxIdx<ImDrawIdx>::Value - DrawList._VtxCurrentIdx) / Renderer::VtxConsumed); // make sure at least this many elements can be rendered to avoid situations where at the end of buffer this slow path is not taken all the time if (cnt >= ImMin(64u, prims)) { if (prims_culled >= cnt) prims_culled -= cnt; // reuse previous reservation else { DrawList.PrimReserve((cnt - prims_culled) * Renderer::IdxConsumed, (cnt - prims_culled) * Renderer::VtxConsumed); // add more elements to previous reservation prims_culled = 0; } } else { if (prims_culled > 0) { DrawList.PrimUnreserve(prims_culled * Renderer::IdxConsumed, prims_culled * Renderer::VtxConsumed); prims_culled = 0; } cnt = ImMin(prims, (MaxIdx<ImDrawIdx>::Value - 0/*DrawList._VtxCurrentIdx*/) / Renderer::VtxConsumed); DrawList.PrimReserve(cnt * Renderer::IdxConsumed, cnt * Renderer::VtxConsumed); // reserve new draw command } prims -= cnt; for (unsigned int ie = idx + cnt; idx != ie; ++idx) { if (!renderer(DrawList, cull_rect, uv, idx)) prims_culled++; } } if (prims_culled > 0) DrawList.PrimUnreserve(prims_culled * Renderer::IdxConsumed, prims_culled * Renderer::VtxConsumed); }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rsi, %rbx movl 0x18(%rdi), %esi movq 0x38(%rbx), %rax movq (%rax), %rax movq %rax, 0x8(%rsp) testl %esi, %esi je 0x2d8a92 movq %rdx, %r14 movq %rdi, %r15 xorl %r12d, %r12d leaq 0x8(%rsp), %rcx xorl %ebp, %ebp movl 0x34(%rbx), %edi movl %edi, %eax notl %eax movl $0xcccccccd, %edx # imm = 0xCCCCCCCD imulq %rdx, %rax shrq $0x22, %rax cmpl %eax, %esi movl %eax, %r13d cmovbl %esi, %r13d cmpl $0x40, %esi movl $0x40, %edx cmovbl %esi, %edx cmpl %edx, %eax jae 0x2d89f5 testl %ebp, %ebp je 0x2d89e1 leal (,%rbp,2), %eax movl %esi, %r13d leal (%rax,%rax,2), %esi leal (%rbp,%rbp,4), %edx movq %rbx, %rdi callq 0xe0140 movl %r13d, %esi movl $0x33333333, %eax # imm = 0x33333333 cmpl %eax, %esi movl $0x33333333, %eax # imm = 0x33333333 cmovbl %esi, %eax movl %eax, %r13d jmp 0x2d8a01 movl %ebp, %eax subl %r13d, %eax jae 0x2d8a66 movl %r13d, %eax subl %ebp, %eax movl %esi, %ebp leal (%rax,%rax), %ecx leal (%rcx,%rcx,2), %esi leal (%rax,%rax,4), %edx movq %rbx, %rdi callq 0xe3170 subl %r13d, %ebp movl %ebp, 0x4(%rsp) xorl %eax, %eax leaq 0x8(%rsp), %rcx leal (%r12,%r13), %edx movl %edx, 0x14(%rsp) movl %eax, %ebp movq %r15, %rdi movq %rbx, %rsi movq %r14, %rdx movl %r12d, %r8d callq 0xe4250 leaq 0x8(%rsp), %rcx xorb $0x1, %al movzbl %al, %eax addl %eax, %ebp incl %r12d decl %r13d jne 0x2d8a2c movl 0x14(%rsp), %eax movl %eax, %r12d movl 0x4(%rsp), %esi testl %esi, %esi jne 0x2d8995 jmp 0x2d8a78 subl %r13d, %esi cmpl $-0x6, %edi jbe 0x2d8a72 movl %eax, %ebp jmp 0x2d8a5c movl %esi, 0x4(%rsp) jmp 0x2d8a22 testl %ebp, %ebp je 0x2d8a92 leal (,%rbp,2), %eax leal (%rax,%rax,2), %esi leal (%rbp,%rbp,4), %edx movq %rbx, %rdi callq 0xe0140 addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq nop
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
ImPlot::ShadedRenderer<ImPlot::GetterXsYs<long long>, ImPlot::GetterXsYRef<long long>, ImPlot::TransformerLinLin>::ShadedRenderer(ImPlot::GetterXsYs<long long> const&, ImPlot::GetterXsYRef<long long> const&, ImPlot::TransformerLinLin const&, unsigned int)
ShadedRenderer(const TGetter1& getter1, const TGetter2& getter2, const TTransformer& transformer, ImU32 col) : Getter1(getter1), Getter2(getter2), Transformer(transformer), Prims(ImMin(Getter1.Count, Getter2.Count) - 1), Col(col) { P11 = Transformer(Getter1(0)); P12 = Transformer(Getter2(0)); }
pushq %rbx movq %rdx, %r9 movq %rsi, (%rdi) movq %rdx, 0x8(%rdi) movq %rcx, 0x10(%rdi) movl 0x10(%rsi), %r10d movl 0x10(%rdx), %eax cmpl %eax, %r10d cmovll %r10d, %eax decl %eax movl %eax, 0x18(%rdi) movl %r8d, 0x1c(%rdi) xorps %xmm0, %xmm0 movups %xmm0, 0x20(%rdi) movl 0x14(%rsi), %eax movslq 0x18(%rsi), %r8 cltd idivl %r10d leal (%rdx,%r10), %eax cltd idivl %r10d movslq %edx, %rax imulq %r8, %rax movq (%rsi), %rdx movq 0x8(%rsi), %r8 movq 0x1903f3(%rip), %rsi # 0x46a3f0 movq (%rsi), %rsi movslq (%rcx), %r10 movsd 0x198(%rsi), %xmm0 movhpd 0x1a0(%rsi,%r10,8), %xmm0 # xmm0 = xmm0[0],mem[0] movq %r10, %r11 movq 0x28(%rsi), %rbx shlq $0x7, %r11 cvtsi2sdq (%r8,%rax), %xmm1 cvtsi2sdq (%rdx,%rax), %xmm2 unpcklpd %xmm1, %xmm2 # xmm2 = xmm2[0],xmm1[0] movsd 0x18(%rbx), %xmm1 movhpd 0x98(%rbx,%r11), %xmm1 # xmm1 = xmm1[0],mem[0] shlq $0x4, %r10 subpd %xmm1, %xmm2 cvtps2pd 0x164(%rsi,%r10), %xmm1 mulpd %xmm2, %xmm0 addpd %xmm1, %xmm0 cvtpd2ps %xmm0, %xmm0 movlpd %xmm0, 0x20(%rdi) movq (%r9), %r8 movl 0x10(%r9), %r10d movl 0x14(%r9), %eax movslq 0x18(%r9), %r11 cltd idivl %r10d leal (%rdx,%r10), %eax cltd idivl %r10d movslq %edx, %rax imulq %r11, %rax xorps %xmm0, %xmm0 cvtsi2sdq (%r8,%rax), %xmm0 movslq (%rcx), %rax movq %rax, %rcx movsd 0x198(%rsi), %xmm1 movhpd 0x1a0(%rsi,%rax,8), %xmm1 # xmm1 = xmm1[0],mem[0] shlq $0x4, %rax movq 0x28(%rsi), %rdx movhpd 0x8(%r9), %xmm0 # xmm0 = xmm0[0],mem[0] shlq $0x7, %rcx movsd 0x18(%rdx), %xmm2 movhpd 0x98(%rdx,%rcx), %xmm2 # xmm2 = xmm2[0],mem[0] subpd %xmm2, %xmm0 cvtps2pd 0x164(%rsi,%rax), %xmm2 mulpd %xmm0, %xmm1 addpd %xmm2, %xmm1 cvtpd2ps %xmm1, %xmm0 movlpd %xmm0, 0x28(%rdi) popq %rbx retq
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
ImPlot::ShadedRenderer<ImPlot::GetterXsYs<long long>, ImPlot::GetterXsYRef<long long>, ImPlot::TransformerLinLin>::operator()(ImDrawList&, ImRect const&, ImVec2 const&, int) const
inline bool operator()(ImDrawList& DrawList, const ImRect& /*cull_rect*/, const ImVec2& uv, int prim) const { // TODO: Culling ImVec2 P21 = Transformer(Getter1(prim+1)); ImVec2 P22 = Transformer(Getter2(prim+1)); const int intersect = (P11.y > P12.y && P22.y > P21.y) || (P12.y > P11.y && P21.y > P22.y); ImVec2 intersection = Intersection(P11,P21,P12,P22); DrawList._VtxWritePtr[0].pos = P11; DrawList._VtxWritePtr[0].uv = uv; DrawList._VtxWritePtr[0].col = Col; DrawList._VtxWritePtr[1].pos = P21; DrawList._VtxWritePtr[1].uv = uv; DrawList._VtxWritePtr[1].col = Col; DrawList._VtxWritePtr[2].pos = intersection; DrawList._VtxWritePtr[2].uv = uv; DrawList._VtxWritePtr[2].col = Col; DrawList._VtxWritePtr[3].pos = P12; DrawList._VtxWritePtr[3].uv = uv; DrawList._VtxWritePtr[3].col = Col; DrawList._VtxWritePtr[4].pos = P22; DrawList._VtxWritePtr[4].uv = uv; DrawList._VtxWritePtr[4].col = Col; DrawList._VtxWritePtr += 5; DrawList._IdxWritePtr[0] = (ImDrawIdx)(DrawList._VtxCurrentIdx); DrawList._IdxWritePtr[1] = (ImDrawIdx)(DrawList._VtxCurrentIdx + 1 + intersect); DrawList._IdxWritePtr[2] = (ImDrawIdx)(DrawList._VtxCurrentIdx + 3); DrawList._IdxWritePtr[3] = (ImDrawIdx)(DrawList._VtxCurrentIdx + 1); DrawList._IdxWritePtr[4] = (ImDrawIdx)(DrawList._VtxCurrentIdx + 3 - intersect); DrawList._IdxWritePtr[5] = (ImDrawIdx)(DrawList._VtxCurrentIdx + 4); DrawList._IdxWritePtr += 6; DrawList._VtxCurrentIdx += 5; P11 = P21; P12 = P22; return true; }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx movq 0x10(%rdi), %rbx incl %r8d movq (%rdi), %r14 movq 0x8(%rdi), %r10 movl 0x10(%r14), %r9d movslq 0x18(%r14), %rax movq %rax, -0x8(%rsp) movl 0x14(%r14), %eax addl %r8d, %eax cltd idivl %r9d leal (%rdx,%r9), %eax cltd idivl %r9d movl %edx, -0xc(%rsp) movq (%r14), %r12 movq 0x8(%r14), %r13 movq 0x18f87e(%rip), %rax # 0x46a3f0 movq (%rax), %r15 movslq (%rbx), %r14 movq 0x28(%r15), %rbx movq (%r10), %rbp movl 0x10(%r10), %r11d movslq 0x18(%r10), %r9 addl 0x14(%r10), %r8d movl %r8d, %eax cltd idivl %r11d leal (%rdx,%r11), %eax cltd idivl %r11d movslq %edx, %rax imulq %r9, %rax cvtsi2sdq (%rbp,%rax), %xmm1 movslq -0xc(%rsp), %rax imulq -0x8(%rsp), %rax cvtsi2sdq (%r13,%rax), %xmm0 cvtsi2sdq (%r12,%rax), %xmm2 movq %r14, %rax shlq $0x4, %rax cvtps2pd 0x164(%r15,%rax), %xmm3 movsd 0x198(%r15), %xmm4 movhpd 0x1a0(%r15,%r14,8), %xmm4 # xmm4 = xmm4[0],mem[0] shlq $0x7, %r14 unpcklpd %xmm0, %xmm2 # xmm2 = xmm2[0],xmm0[0] movsd 0x18(%rbx), %xmm5 movhpd 0x98(%rbx,%r14), %xmm5 # xmm5 = xmm5[0],mem[0] subpd %xmm5, %xmm2 mulpd %xmm4, %xmm2 addpd %xmm3, %xmm2 cvtpd2ps %xmm2, %xmm0 movhpd 0x8(%r10), %xmm1 # xmm1 = xmm1[0],mem[0] subpd %xmm5, %xmm1 mulpd %xmm4, %xmm1 addpd %xmm3, %xmm1 cvtpd2ps %xmm1, %xmm1 movsd 0x20(%rdi), %xmm4 movsd 0x28(%rdi), %xmm3 movaps %xmm3, %xmm6 shufps $0x55, %xmm3, %xmm6 # xmm6 = xmm6[1,1],xmm3[1,1] movaps %xmm4, %xmm7 shufps $0x55, %xmm4, %xmm7 # xmm7 = xmm7[1,1],xmm4[1,1] movapd %xmm1, %xmm8 shufps $0x55, %xmm1, %xmm8 # xmm8 = xmm8[1,1],xmm1[1,1] movapd %xmm0, %xmm2 shufps $0x55, %xmm0, %xmm2 # xmm2 = xmm2[1,1],xmm0[1,1] movaps %xmm2, %xmm5 cmpltps %xmm8, %xmm5 movaps %xmm6, %xmm9 cmpltps %xmm7, %xmm9 andps %xmm5, %xmm9 movd %xmm9, %edx movaps %xmm3, %xmm5 mulss %xmm8, %xmm5 cmpltps %xmm2, %xmm8 movaps %xmm0, %xmm9 mulss %xmm7, %xmm9 cmpltps %xmm6, %xmm7 andps %xmm8, %xmm7 movd %xmm7, %eax orl %edx, %eax mulss %xmm4, %xmm2 subss %xmm9, %xmm2 mulss %xmm1, %xmm6 subss %xmm6, %xmm5 subps %xmm0, %xmm4 subps %xmm1, %xmm3 movaps %xmm3, %xmm6 shufps $0x55, %xmm3, %xmm6 # xmm6 = xmm6[1,1],xmm3[1,1] mulss %xmm4, %xmm6 unpcklps %xmm5, %xmm5 # xmm5 = xmm5[0,0,1,1] mulps %xmm4, %xmm5 shufps $0x55, %xmm4, %xmm4 # xmm4 = xmm4[1,1,1,1] mulss %xmm3, %xmm4 subss %xmm4, %xmm6 unpcklps %xmm2, %xmm2 # xmm2 = xmm2[0,0,1,1] mulps %xmm3, %xmm2 subps %xmm5, %xmm2 unpcklps %xmm6, %xmm6 # xmm6 = xmm6[0,0,1,1] divps %xmm6, %xmm2 movq 0x48(%rsi), %rdx movq 0x20(%rdi), %r8 movq %r8, (%rdx) movq 0x48(%rsi), %rdx movq (%rcx), %r8 movq %r8, 0x8(%rdx) movl 0x1c(%rdi), %edx movq 0x48(%rsi), %r8 movl %edx, 0x10(%r8) movlpd %xmm0, 0x14(%r8) movq 0x48(%rsi), %rdx movq (%rcx), %r8 movq %r8, 0x1c(%rdx) movl 0x1c(%rdi), %edx movq 0x48(%rsi), %r8 movl %edx, 0x24(%r8) movlps %xmm2, 0x28(%r8) movq 0x48(%rsi), %rdx movq (%rcx), %r8 movq %r8, 0x30(%rdx) movl 0x1c(%rdi), %edx movq 0x48(%rsi), %r8 movl %edx, 0x38(%r8) movq 0x28(%rdi), %rdx movq %rdx, 0x3c(%r8) movq 0x48(%rsi), %rdx movq (%rcx), %r8 movq %r8, 0x44(%rdx) movl 0x1c(%rdi), %edx movq 0x48(%rsi), %r8 movl %edx, 0x4c(%r8) movlpd %xmm1, 0x50(%r8) movq 0x48(%rsi), %rdx movq (%rcx), %rcx movq %rcx, 0x58(%rdx) movl 0x1c(%rdi), %ecx movq 0x48(%rsi), %rdx movl %ecx, 0x60(%rdx) addq $0x64, %rdx movq %rdx, 0x48(%rsi) movl 0x34(%rsi), %ecx movq 0x50(%rsi), %rdx movl %ecx, (%rdx) andl $0x1, %eax addl %eax, %ecx incl %ecx movl %ecx, 0x4(%rdx) movl 0x34(%rsi), %ecx addl $0x3, %ecx movl %ecx, 0x8(%rdx) movl 0x34(%rsi), %ecx incl %ecx movl %ecx, 0xc(%rdx) xorl $0x3, %eax addl 0x34(%rsi), %eax movl %eax, 0x10(%rdx) movl 0x34(%rsi), %eax addl $0x4, %eax movl %eax, 0x14(%rdx) addq $0x18, %rdx movq %rdx, 0x50(%rsi) addl $0x5, 0x34(%rsi) movlhps %xmm1, %xmm0 # xmm0 = xmm0[0],xmm1[0] movups %xmm0, 0x20(%rdi) movb $0x1, %al popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
ImPlot::ShadedRenderer<ImPlot::GetterXsYs<unsigned long long>, ImPlot::GetterXsYRef<unsigned long long>, ImPlot::TransformerLogLog>::operator()(ImDrawList&, ImRect const&, ImVec2 const&, int) const
inline bool operator()(ImDrawList& DrawList, const ImRect& /*cull_rect*/, const ImVec2& uv, int prim) const { // TODO: Culling ImVec2 P21 = Transformer(Getter1(prim+1)); ImVec2 P22 = Transformer(Getter2(prim+1)); const int intersect = (P11.y > P12.y && P22.y > P21.y) || (P12.y > P11.y && P21.y > P22.y); ImVec2 intersection = Intersection(P11,P21,P12,P22); DrawList._VtxWritePtr[0].pos = P11; DrawList._VtxWritePtr[0].uv = uv; DrawList._VtxWritePtr[0].col = Col; DrawList._VtxWritePtr[1].pos = P21; DrawList._VtxWritePtr[1].uv = uv; DrawList._VtxWritePtr[1].col = Col; DrawList._VtxWritePtr[2].pos = intersection; DrawList._VtxWritePtr[2].uv = uv; DrawList._VtxWritePtr[2].col = Col; DrawList._VtxWritePtr[3].pos = P12; DrawList._VtxWritePtr[3].uv = uv; DrawList._VtxWritePtr[3].col = Col; DrawList._VtxWritePtr[4].pos = P22; DrawList._VtxWritePtr[4].uv = uv; DrawList._VtxWritePtr[4].col = Col; DrawList._VtxWritePtr += 5; DrawList._IdxWritePtr[0] = (ImDrawIdx)(DrawList._VtxCurrentIdx); DrawList._IdxWritePtr[1] = (ImDrawIdx)(DrawList._VtxCurrentIdx + 1 + intersect); DrawList._IdxWritePtr[2] = (ImDrawIdx)(DrawList._VtxCurrentIdx + 3); DrawList._IdxWritePtr[3] = (ImDrawIdx)(DrawList._VtxCurrentIdx + 1); DrawList._IdxWritePtr[4] = (ImDrawIdx)(DrawList._VtxCurrentIdx + 3 - intersect); DrawList._IdxWritePtr[5] = (ImDrawIdx)(DrawList._VtxCurrentIdx + 4); DrawList._IdxWritePtr += 6; DrawList._VtxCurrentIdx += 5; P11 = P21; P12 = P22; return true; }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x58, %rsp movq %rcx, %r15 movq %rsi, %r14 movq %rdi, %rbx movq (%rdi), %rcx movq 0x10(%rdi), %r13 leal 0x1(%r8), %ebp movl 0x10(%rcx), %esi movslq 0x18(%rcx), %rdi movl 0x14(%rcx), %eax addl %ebp, %eax cltd idivl %esi leal (%rdx,%rsi), %eax cltd idivl %esi movslq %edx, %rax imulq %rdi, %rax movq (%rcx), %rdx movq 0x8(%rcx), %rcx movsd (%rdx,%rax), %xmm1 movsd 0xa029a(%rip), %xmm3 # 0x37d3f0 unpcklps %xmm3, %xmm1 # xmm1 = xmm1[0],xmm3[0],xmm1[1],xmm3[1] movapd 0xa029f(%rip), %xmm2 # 0x37d400 subpd %xmm2, %xmm1 movapd %xmm1, %xmm0 unpckhpd %xmm1, %xmm0 # xmm0 = xmm0[1],xmm1[1] addsd %xmm1, %xmm0 movsd (%rcx,%rax), %xmm1 unpcklps %xmm3, %xmm1 # xmm1 = xmm1[0],xmm3[0],xmm1[1],xmm3[1] subpd %xmm2, %xmm1 movapd %xmm1, %xmm2 unpckhpd %xmm1, %xmm2 # xmm2 = xmm2[1],xmm1[1] addsd %xmm1, %xmm2 movapd %xmm2, 0x10(%rsp) movq 0x18d25a(%rip), %rax # 0x46a3f0 movq (%rax), %r12 movq 0x28(%r12), %rax divsd 0x18(%rax), %xmm0 callq 0xe2ca0 movq 0x28(%r12), %rax movslq (%r13), %rcx shlq $0x7, %rcx movapd 0x10(%rsp), %xmm1 divsd 0x98(%rax,%rcx), %xmm1 movapd %xmm0, 0x20(%rsp) movsd 0x1b8(%r12), %xmm0 movaps %xmm0, (%rsp) movsd 0x18(%rax), %xmm0 movaps %xmm0, 0x10(%rsp) movsd 0x20(%rax), %xmm0 movaps %xmm0, 0x30(%rsp) movapd %xmm1, %xmm0 callq 0xe2ca0 movslq (%r13), %r8 movq 0x28(%r12), %rcx movq %r8, %rsi movq 0x8(%rbx), %rdi movq 0x10(%rbx), %r13 movq (%rdi), %r9 movl 0x10(%rdi), %r10d movslq 0x18(%rdi), %r11 addl 0x14(%rdi), %ebp movl %ebp, %eax cltd idivl %r10d leal (%rdx,%r10), %eax cltd idivl %r10d movslq %edx, %rax imulq %r11, %rax movsd (%r9,%rax), %xmm2 unpcklps 0xa01b7(%rip), %xmm2 # xmm2 = xmm2[0],mem[0],xmm2[1],mem[1] movapd (%rsp), %xmm4 movhpd 0x1c0(%r12,%r8,8), %xmm4 # xmm4 = xmm4[0],mem[0] movsd 0x198(%r12), %xmm3 movhpd 0x1a0(%r12,%r8,8), %xmm3 # xmm3 = xmm3[0],mem[0] shlq $0x7, %r8 shlq $0x4, %rsi subpd 0xa0194(%rip), %xmm2 # 0x37d400 movapd %xmm2, %xmm1 unpckhpd %xmm2, %xmm1 # xmm1 = xmm1[1],xmm2[1] addsd %xmm2, %xmm1 movsd 0x8(%rdi), %xmm2 movsd %xmm2, (%rsp) movq 0x18d167(%rip), %rax # 0x46a3f0 movq (%rax), %rbp movq 0x28(%rbp), %rax divsd 0x18(%rax), %xmm1 movapd 0x20(%rsp), %xmm2 unpcklpd %xmm0, %xmm2 # xmm2 = xmm2[0],xmm0[0] divpd %xmm4, %xmm2 cvtpd2ps %xmm2, %xmm0 movapd 0x30(%rsp), %xmm6 movhpd 0xa0(%rcx,%r8), %xmm6 # xmm6 = xmm6[0],mem[0] movsd 0x98(%rcx,%r8), %xmm2 movapd 0x10(%rsp), %xmm4 unpcklpd %xmm2, %xmm4 # xmm4 = xmm4[0],xmm2[0] cvtps2pd %xmm0, %xmm0 subpd %xmm4, %xmm6 movapd %xmm4, %xmm5 mulpd %xmm6, %xmm0 cvtps2pd 0x164(%r12,%rsi), %xmm4 addpd %xmm5, %xmm0 movsd 0x18(%rcx), %xmm5 unpcklpd %xmm2, %xmm5 # xmm5 = xmm5[0],xmm2[0] subpd %xmm5, %xmm0 mulpd %xmm0, %xmm3 addpd %xmm4, %xmm3 cvtpd2ps %xmm3, %xmm0 movapd %xmm0, 0x10(%rsp) movapd %xmm1, %xmm0 callq 0xe2ca0 movq 0x28(%rbp), %rax movslq (%r13), %rcx shlq $0x7, %rcx movsd (%rsp), %xmm1 divsd 0x98(%rax,%rcx), %xmm1 movapd %xmm0, 0x40(%rsp) movsd 0x1b8(%rbp), %xmm0 movaps %xmm0, (%rsp) movsd 0x18(%rax), %xmm0 movaps %xmm0, 0x30(%rsp) movsd 0x20(%rax), %xmm0 movaps %xmm0, 0x20(%rsp) movapd %xmm1, %xmm0 callq 0xe2ca0 movslq (%r13), %rcx movapd 0x40(%rsp), %xmm1 unpcklpd %xmm0, %xmm1 # xmm1 = xmm1[0],xmm0[0] movapd (%rsp), %xmm0 movhpd 0x1c0(%rbp,%rcx,8), %xmm0 # xmm0 = xmm0[0],mem[0] divpd %xmm0, %xmm1 movq 0x28(%rbp), %rax movq %rcx, %rdx movsd 0x198(%rbp), %xmm0 movhpd 0x1a0(%rbp,%rcx,8), %xmm0 # xmm0 = xmm0[0],mem[0] shlq $0x7, %rcx cvtpd2ps %xmm1, %xmm1 movapd 0x20(%rsp), %xmm4 movhpd 0xa0(%rax,%rcx), %xmm4 # xmm4 = xmm4[0],mem[0] movsd 0x98(%rax,%rcx), %xmm2 movapd 0x30(%rsp), %xmm3 unpcklpd %xmm2, %xmm3 # xmm3 = xmm3[0],xmm2[0] subpd %xmm3, %xmm4 cvtps2pd %xmm1, %xmm1 mulpd %xmm4, %xmm1 addpd %xmm3, %xmm1 shlq $0x4, %rdx cvtps2pd 0x164(%rbp,%rdx), %xmm3 movsd 0x18(%rax), %xmm4 unpcklpd %xmm2, %xmm4 # xmm4 = xmm4[0],xmm2[0] subpd %xmm4, %xmm1 mulpd %xmm1, %xmm0 addpd %xmm3, %xmm0 cvtpd2ps %xmm0, %xmm0 movsd 0x20(%rbx), %xmm3 movsd 0x28(%rbx), %xmm2 movaps %xmm2, %xmm5 shufps $0x55, %xmm2, %xmm5 # xmm5 = xmm5[1,1],xmm2[1,1] movaps %xmm3, %xmm6 shufps $0x55, %xmm3, %xmm6 # xmm6 = xmm6[1,1],xmm3[1,1] movapd %xmm0, %xmm7 shufps $0x55, %xmm0, %xmm7 # xmm7 = xmm7[1,1],xmm0[1,1] movaps 0x10(%rsp), %xmm9 movaps %xmm9, %xmm1 shufps $0x55, %xmm9, %xmm1 # xmm1 = xmm1[1,1],xmm9[1,1] movaps %xmm1, %xmm4 cmpltps %xmm7, %xmm4 movaps %xmm5, %xmm8 cmpltps %xmm6, %xmm8 andps %xmm4, %xmm8 movd %xmm8, %ecx movaps %xmm2, %xmm4 mulss %xmm7, %xmm4 cmpltps %xmm1, %xmm7 movaps %xmm9, %xmm8 mulss %xmm6, %xmm8 cmpltps %xmm5, %xmm6 andps %xmm7, %xmm6 movd %xmm6, %eax orl %ecx, %eax mulss %xmm3, %xmm1 subss %xmm8, %xmm1 mulss %xmm0, %xmm5 subss %xmm5, %xmm4 subps %xmm9, %xmm3 subps %xmm0, %xmm2 movaps %xmm2, %xmm5 shufps $0x55, %xmm2, %xmm5 # xmm5 = xmm5[1,1],xmm2[1,1] mulss %xmm3, %xmm5 unpcklps %xmm4, %xmm4 # xmm4 = xmm4[0,0,1,1] mulps %xmm3, %xmm4 shufps $0x55, %xmm3, %xmm3 # xmm3 = xmm3[1,1,1,1] mulss %xmm2, %xmm3 subss %xmm3, %xmm5 unpcklps %xmm1, %xmm1 # xmm1 = xmm1[0,0,1,1] mulps %xmm2, %xmm1 subps %xmm4, %xmm1 unpcklps %xmm5, %xmm5 # xmm5 = xmm5[0,0,1,1] divps %xmm5, %xmm1 movq 0x48(%r14), %rcx movq 0x20(%rbx), %rdx movq %rdx, (%rcx) movq 0x48(%r14), %rcx movq (%r15), %rdx movq %rdx, 0x8(%rcx) movl 0x1c(%rbx), %ecx movq 0x48(%r14), %rdx movl %ecx, 0x10(%rdx) movlps %xmm9, 0x14(%rdx) movq 0x48(%r14), %rcx movq (%r15), %rdx movq %rdx, 0x1c(%rcx) movl 0x1c(%rbx), %ecx movq 0x48(%r14), %rdx movl %ecx, 0x24(%rdx) movlps %xmm1, 0x28(%rdx) movq 0x48(%r14), %rcx movq (%r15), %rdx movq %rdx, 0x30(%rcx) movl 0x1c(%rbx), %ecx movq 0x48(%r14), %rdx movl %ecx, 0x38(%rdx) movq 0x28(%rbx), %rcx movq %rcx, 0x3c(%rdx) movq 0x48(%r14), %rcx movq (%r15), %rdx movq %rdx, 0x44(%rcx) movl 0x1c(%rbx), %ecx movq 0x48(%r14), %rdx movl %ecx, 0x4c(%rdx) movlpd %xmm0, 0x50(%rdx) movq 0x48(%r14), %rcx movq (%r15), %rdx movq %rdx, 0x58(%rcx) movl 0x1c(%rbx), %ecx movq 0x48(%r14), %rdx movl %ecx, 0x60(%rdx) addq $0x64, %rdx movq %rdx, 0x48(%r14) movl 0x34(%r14), %ecx movq 0x50(%r14), %rdx movl %ecx, (%rdx) andl $0x1, %eax addl %eax, %ecx incl %ecx movl %ecx, 0x4(%rdx) movl 0x34(%r14), %ecx addl $0x3, %ecx movl %ecx, 0x8(%rdx) movl 0x34(%r14), %ecx incl %ecx movl %ecx, 0xc(%rdx) xorl $0x3, %eax addl 0x34(%r14), %eax movl %eax, 0x10(%rdx) movl 0x34(%r14), %eax addl $0x4, %eax movl %eax, 0x14(%rdx) addq $0x18, %rdx movq %rdx, 0x50(%r14) addl $0x5, 0x34(%r14) movaps %xmm9, %xmm1 movlhps %xmm0, %xmm1 # xmm1 = xmm1[0],xmm0[0] movups %xmm1, 0x20(%rbx) movb $0x1, %al addq $0x58, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
ImPlot::ShadedRenderer<ImPlot::GetterXsYs<float>, ImPlot::GetterXsYRef<float>, ImPlot::TransformerLinLin>::ShadedRenderer(ImPlot::GetterXsYs<float> const&, ImPlot::GetterXsYRef<float> const&, ImPlot::TransformerLinLin const&, unsigned int)
ShadedRenderer(const TGetter1& getter1, const TGetter2& getter2, const TTransformer& transformer, ImU32 col) : Getter1(getter1), Getter2(getter2), Transformer(transformer), Prims(ImMin(Getter1.Count, Getter2.Count) - 1), Col(col) { P11 = Transformer(Getter1(0)); P12 = Transformer(Getter2(0)); }
pushq %rbx movq %rdx, %r9 movq %rsi, (%rdi) movq %rdx, 0x8(%rdi) movq %rcx, 0x10(%rdi) movl 0x10(%rsi), %r10d movl 0x10(%rdx), %eax cmpl %eax, %r10d cmovll %r10d, %eax decl %eax movl %eax, 0x18(%rdi) movl %r8d, 0x1c(%rdi) xorps %xmm0, %xmm0 movups %xmm0, 0x20(%rdi) movl 0x14(%rsi), %eax movslq 0x18(%rsi), %r8 cltd idivl %r10d leal (%rdx,%r10), %eax cltd idivl %r10d movslq %edx, %rax imulq %r8, %rax movq (%rsi), %rdx movq 0x8(%rsi), %r8 movq 0x18ccc5(%rip), %rsi # 0x46a3f0 movq (%rsi), %rsi movslq (%rcx), %r10 movsd 0x198(%rsi), %xmm0 movhpd 0x1a0(%rsi,%r10,8), %xmm0 # xmm0 = xmm0[0],mem[0] movq %r10, %r11 movq 0x28(%rsi), %rbx movss (%r8,%rax), %xmm1 movss (%rdx,%rax), %xmm2 unpcklps %xmm1, %xmm2 # xmm2 = xmm2[0],xmm1[0],xmm2[1],xmm1[1] cvtps2pd %xmm2, %xmm1 shlq $0x7, %r11 movsd 0x18(%rbx), %xmm2 movhpd 0x98(%rbx,%r11), %xmm2 # xmm2 = xmm2[0],mem[0] shlq $0x4, %r10 subpd %xmm2, %xmm1 cvtps2pd 0x164(%rsi,%r10), %xmm2 mulpd %xmm1, %xmm0 addpd %xmm2, %xmm0 cvtpd2ps %xmm0, %xmm0 movlpd %xmm0, 0x20(%rdi) movq (%r9), %r8 movl 0x10(%r9), %r10d movl 0x14(%r9), %eax movslq 0x18(%r9), %r11 cltd idivl %r10d leal (%rdx,%r10), %eax cltd idivl %r10d movslq %edx, %rax imulq %r11, %rax xorps %xmm0, %xmm0 cvtss2sd (%r8,%rax), %xmm0 movslq (%rcx), %rax movq %rax, %rcx movsd 0x198(%rsi), %xmm1 movhpd 0x1a0(%rsi,%rax,8), %xmm1 # xmm1 = xmm1[0],mem[0] shlq $0x4, %rax movq 0x28(%rsi), %rdx movhps 0x8(%r9), %xmm0 # xmm0 = xmm0[0,1],mem[0,1] shlq $0x7, %rcx movsd 0x18(%rdx), %xmm2 movhpd 0x98(%rdx,%rcx), %xmm2 # xmm2 = xmm2[0],mem[0] subpd %xmm2, %xmm0 cvtps2pd 0x164(%rsi,%rax), %xmm2 mulpd %xmm0, %xmm1 addpd %xmm2, %xmm1 cvtpd2ps %xmm1, %xmm0 movlpd %xmm0, 0x28(%rdi) popq %rbx retq
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
ImPlot::ShadedRenderer<ImPlot::GetterXsYs<float>, ImPlot::GetterXsYRef<float>, ImPlot::TransformerLogLog>::operator()(ImDrawList&, ImRect const&, ImVec2 const&, int) const
inline bool operator()(ImDrawList& DrawList, const ImRect& /*cull_rect*/, const ImVec2& uv, int prim) const { // TODO: Culling ImVec2 P21 = Transformer(Getter1(prim+1)); ImVec2 P22 = Transformer(Getter2(prim+1)); const int intersect = (P11.y > P12.y && P22.y > P21.y) || (P12.y > P11.y && P21.y > P22.y); ImVec2 intersection = Intersection(P11,P21,P12,P22); DrawList._VtxWritePtr[0].pos = P11; DrawList._VtxWritePtr[0].uv = uv; DrawList._VtxWritePtr[0].col = Col; DrawList._VtxWritePtr[1].pos = P21; DrawList._VtxWritePtr[1].uv = uv; DrawList._VtxWritePtr[1].col = Col; DrawList._VtxWritePtr[2].pos = intersection; DrawList._VtxWritePtr[2].uv = uv; DrawList._VtxWritePtr[2].col = Col; DrawList._VtxWritePtr[3].pos = P12; DrawList._VtxWritePtr[3].uv = uv; DrawList._VtxWritePtr[3].col = Col; DrawList._VtxWritePtr[4].pos = P22; DrawList._VtxWritePtr[4].uv = uv; DrawList._VtxWritePtr[4].col = Col; DrawList._VtxWritePtr += 5; DrawList._IdxWritePtr[0] = (ImDrawIdx)(DrawList._VtxCurrentIdx); DrawList._IdxWritePtr[1] = (ImDrawIdx)(DrawList._VtxCurrentIdx + 1 + intersect); DrawList._IdxWritePtr[2] = (ImDrawIdx)(DrawList._VtxCurrentIdx + 3); DrawList._IdxWritePtr[3] = (ImDrawIdx)(DrawList._VtxCurrentIdx + 1); DrawList._IdxWritePtr[4] = (ImDrawIdx)(DrawList._VtxCurrentIdx + 3 - intersect); DrawList._IdxWritePtr[5] = (ImDrawIdx)(DrawList._VtxCurrentIdx + 4); DrawList._IdxWritePtr += 6; DrawList._VtxCurrentIdx += 5; P11 = P21; P12 = P22; return true; }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x58, %rsp movq %rcx, %r15 movq %rsi, %r14 movq %rdi, %rbx movq (%rdi), %rcx movq 0x10(%rdi), %r13 leal 0x1(%r8), %ebp movl 0x10(%rcx), %esi movslq 0x18(%rcx), %rdi movl 0x14(%rcx), %eax addl %ebp, %eax cltd idivl %esi leal (%rdx,%rsi), %eax cltd idivl %esi movslq %edx, %rax imulq %rdi, %rax movq (%rcx), %rdx cvtss2sd (%rdx,%rax), %xmm0 movq 0x8(%rcx), %rcx cvtss2sd (%rcx,%rax), %xmm1 movsd %xmm1, 0x10(%rsp) movq 0x18b7e8(%rip), %rax # 0x46a3f0 movq (%rax), %r12 movq 0x28(%r12), %rax divsd 0x18(%rax), %xmm0 callq 0xe2ca0 movq 0x28(%r12), %rax movslq (%r13), %rcx shlq $0x7, %rcx movsd 0x10(%rsp), %xmm1 divsd 0x98(%rax,%rcx), %xmm1 movapd %xmm0, (%rsp) movsd 0x1b8(%r12), %xmm0 movaps %xmm0, 0x20(%rsp) movsd 0x18(%rax), %xmm0 movaps %xmm0, 0x10(%rsp) movsd 0x20(%rax), %xmm0 movaps %xmm0, 0x30(%rsp) movapd %xmm1, %xmm0 callq 0xe2ca0 movslq (%r13), %rdi movq 0x28(%r12), %rcx movq 0x8(%rbx), %rsi movq 0x10(%rbx), %r13 movq (%rsi), %r8 movl 0x10(%rsi), %r10d movslq 0x18(%rsi), %r9 addl 0x14(%rsi), %ebp movl %ebp, %eax cltd idivl %r10d leal (%rdx,%r10), %eax cltd idivl %r10d movapd 0x20(%rsp), %xmm4 movhpd 0x1c0(%r12,%rdi,8), %xmm4 # xmm4 = xmm4[0],mem[0] movsd 0x198(%r12), %xmm2 movhpd 0x1a0(%r12,%rdi,8), %xmm2 # xmm2 = xmm2[0],mem[0] movq %rdi, %rax shlq $0x7, %rdi movslq %edx, %rdx imulq %r9, %rdx xorps %xmm1, %xmm1 cvtss2sd (%r8,%rdx), %xmm1 shlq $0x4, %rax movapd (%rsp), %xmm3 unpcklpd %xmm0, %xmm3 # xmm3 = xmm3[0],xmm0[0] movsd 0x8(%rsi), %xmm0 movsd %xmm0, (%rsp) movq 0x18b703(%rip), %rdx # 0x46a3f0 movq (%rdx), %rbp movq 0x28(%rbp), %rdx divsd 0x18(%rdx), %xmm1 divpd %xmm4, %xmm3 cvtpd2ps %xmm3, %xmm0 movapd 0x30(%rsp), %xmm6 movhpd 0xa0(%rcx,%rdi), %xmm6 # xmm6 = xmm6[0],mem[0] movsd 0x98(%rcx,%rdi), %xmm3 movapd 0x10(%rsp), %xmm4 unpcklpd %xmm3, %xmm4 # xmm4 = xmm4[0],xmm3[0] cvtps2pd %xmm0, %xmm0 subpd %xmm4, %xmm6 movapd %xmm4, %xmm5 mulpd %xmm6, %xmm0 cvtps2pd 0x164(%r12,%rax), %xmm4 addpd %xmm5, %xmm0 movsd 0x18(%rcx), %xmm5 unpcklpd %xmm3, %xmm5 # xmm5 = xmm5[0],xmm3[0] subpd %xmm5, %xmm0 mulpd %xmm0, %xmm2 addpd %xmm4, %xmm2 cvtpd2ps %xmm2, %xmm0 movapd %xmm0, 0x10(%rsp) movapd %xmm1, %xmm0 callq 0xe2ca0 movq 0x28(%rbp), %rax movslq (%r13), %rcx shlq $0x7, %rcx movsd (%rsp), %xmm1 divsd 0x98(%rax,%rcx), %xmm1 movapd %xmm0, 0x40(%rsp) movsd 0x1b8(%rbp), %xmm0 movaps %xmm0, 0x20(%rsp) movsd 0x18(%rax), %xmm0 movaps %xmm0, 0x30(%rsp) movsd 0x20(%rax), %xmm0 movaps %xmm0, (%rsp) movapd %xmm1, %xmm0 callq 0xe2ca0 movslq (%r13), %rcx movapd 0x40(%rsp), %xmm1 unpcklpd %xmm0, %xmm1 # xmm1 = xmm1[0],xmm0[0] movapd 0x20(%rsp), %xmm0 movhpd 0x1c0(%rbp,%rcx,8), %xmm0 # xmm0 = xmm0[0],mem[0] divpd %xmm0, %xmm1 movq 0x28(%rbp), %rax movq %rcx, %rdx movsd 0x198(%rbp), %xmm0 movhpd 0x1a0(%rbp,%rcx,8), %xmm0 # xmm0 = xmm0[0],mem[0] shlq $0x7, %rcx cvtpd2ps %xmm1, %xmm1 movapd (%rsp), %xmm4 movhpd 0xa0(%rax,%rcx), %xmm4 # xmm4 = xmm4[0],mem[0] movsd 0x98(%rax,%rcx), %xmm2 movapd 0x30(%rsp), %xmm3 unpcklpd %xmm2, %xmm3 # xmm3 = xmm3[0],xmm2[0] subpd %xmm3, %xmm4 cvtps2pd %xmm1, %xmm1 mulpd %xmm4, %xmm1 addpd %xmm3, %xmm1 shlq $0x4, %rdx cvtps2pd 0x164(%rbp,%rdx), %xmm3 movsd 0x18(%rax), %xmm4 unpcklpd %xmm2, %xmm4 # xmm4 = xmm4[0],xmm2[0] subpd %xmm4, %xmm1 mulpd %xmm1, %xmm0 addpd %xmm3, %xmm0 cvtpd2ps %xmm0, %xmm0 movsd 0x20(%rbx), %xmm3 movsd 0x28(%rbx), %xmm2 movaps %xmm2, %xmm5 shufps $0x55, %xmm2, %xmm5 # xmm5 = xmm5[1,1],xmm2[1,1] movaps %xmm3, %xmm6 shufps $0x55, %xmm3, %xmm6 # xmm6 = xmm6[1,1],xmm3[1,1] movapd %xmm0, %xmm7 shufps $0x55, %xmm0, %xmm7 # xmm7 = xmm7[1,1],xmm0[1,1] movaps 0x10(%rsp), %xmm9 movaps %xmm9, %xmm1 shufps $0x55, %xmm9, %xmm1 # xmm1 = xmm1[1,1],xmm9[1,1] movaps %xmm1, %xmm4 cmpltps %xmm7, %xmm4 movaps %xmm5, %xmm8 cmpltps %xmm6, %xmm8 andps %xmm4, %xmm8 movd %xmm8, %ecx movaps %xmm2, %xmm4 mulss %xmm7, %xmm4 cmpltps %xmm1, %xmm7 movaps %xmm9, %xmm8 mulss %xmm6, %xmm8 cmpltps %xmm5, %xmm6 andps %xmm7, %xmm6 movd %xmm6, %eax orl %ecx, %eax mulss %xmm3, %xmm1 subss %xmm8, %xmm1 mulss %xmm0, %xmm5 subss %xmm5, %xmm4 subps %xmm9, %xmm3 subps %xmm0, %xmm2 movaps %xmm2, %xmm5 shufps $0x55, %xmm2, %xmm5 # xmm5 = xmm5[1,1],xmm2[1,1] mulss %xmm3, %xmm5 unpcklps %xmm4, %xmm4 # xmm4 = xmm4[0,0,1,1] mulps %xmm3, %xmm4 shufps $0x55, %xmm3, %xmm3 # xmm3 = xmm3[1,1,1,1] mulss %xmm2, %xmm3 subss %xmm3, %xmm5 unpcklps %xmm1, %xmm1 # xmm1 = xmm1[0,0,1,1] mulps %xmm2, %xmm1 subps %xmm4, %xmm1 unpcklps %xmm5, %xmm5 # xmm5 = xmm5[0,0,1,1] divps %xmm5, %xmm1 movq 0x48(%r14), %rcx movq 0x20(%rbx), %rdx movq %rdx, (%rcx) movq 0x48(%r14), %rcx movq (%r15), %rdx movq %rdx, 0x8(%rcx) movl 0x1c(%rbx), %ecx movq 0x48(%r14), %rdx movl %ecx, 0x10(%rdx) movlps %xmm9, 0x14(%rdx) movq 0x48(%r14), %rcx movq (%r15), %rdx movq %rdx, 0x1c(%rcx) movl 0x1c(%rbx), %ecx movq 0x48(%r14), %rdx movl %ecx, 0x24(%rdx) movlps %xmm1, 0x28(%rdx) movq 0x48(%r14), %rcx movq (%r15), %rdx movq %rdx, 0x30(%rcx) movl 0x1c(%rbx), %ecx movq 0x48(%r14), %rdx movl %ecx, 0x38(%rdx) movq 0x28(%rbx), %rcx movq %rcx, 0x3c(%rdx) movq 0x48(%r14), %rcx movq (%r15), %rdx movq %rdx, 0x44(%rcx) movl 0x1c(%rbx), %ecx movq 0x48(%r14), %rdx movl %ecx, 0x4c(%rdx) movlpd %xmm0, 0x50(%rdx) movq 0x48(%r14), %rcx movq (%r15), %rdx movq %rdx, 0x58(%rcx) movl 0x1c(%rbx), %ecx movq 0x48(%r14), %rdx movl %ecx, 0x60(%rdx) addq $0x64, %rdx movq %rdx, 0x48(%r14) movl 0x34(%r14), %ecx movq 0x50(%r14), %rdx movl %ecx, (%rdx) andl $0x1, %eax addl %eax, %ecx incl %ecx movl %ecx, 0x4(%rdx) movl 0x34(%r14), %ecx addl $0x3, %ecx movl %ecx, 0x8(%rdx) movl 0x34(%r14), %ecx incl %ecx movl %ecx, 0xc(%rdx) xorl $0x3, %eax addl 0x34(%r14), %eax movl %eax, 0x10(%rdx) movl 0x34(%r14), %eax addl $0x4, %eax movl %eax, 0x14(%rdx) addq $0x18, %rdx movq %rdx, 0x50(%r14) addl $0x5, 0x34(%r14) movaps %xmm9, %xmm1 movlhps %xmm0, %xmm1 # xmm1 = xmm1[0],xmm0[0] movups %xmm1, 0x20(%rbx) movb $0x1, %al addq $0x58, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
ImPlot::ShadedRenderer<ImPlot::GetterXsYs<double>, ImPlot::GetterXsYRef<double>, ImPlot::TransformerLinLin>::ShadedRenderer(ImPlot::GetterXsYs<double> const&, ImPlot::GetterXsYRef<double> const&, ImPlot::TransformerLinLin const&, unsigned int)
ShadedRenderer(const TGetter1& getter1, const TGetter2& getter2, const TTransformer& transformer, ImU32 col) : Getter1(getter1), Getter2(getter2), Transformer(transformer), Prims(ImMin(Getter1.Count, Getter2.Count) - 1), Col(col) { P11 = Transformer(Getter1(0)); P12 = Transformer(Getter2(0)); }
pushq %rbx movq %rdx, %r9 movq %rsi, (%rdi) movq %rdx, 0x8(%rdi) movq %rcx, 0x10(%rdi) movl 0x10(%rsi), %r10d movl 0x10(%rdx), %eax cmpl %eax, %r10d cmovll %r10d, %eax decl %eax movl %eax, 0x18(%rdi) movl %r8d, 0x1c(%rdi) xorps %xmm0, %xmm0 movups %xmm0, 0x20(%rdi) movl 0x14(%rsi), %eax movslq 0x18(%rsi), %r8 cltd idivl %r10d leal (%rdx,%r10), %eax cltd idivl %r10d movslq %edx, %rax imulq %r8, %rax movq (%rsi), %rdx movq 0x8(%rsi), %r8 movq 0x18b26d(%rip), %rsi # 0x46a3f0 movq (%rsi), %rsi movslq (%rcx), %r10 movq %r10, %r11 movsd 0x198(%rsi), %xmm0 movhpd 0x1a0(%rsi,%r10,8), %xmm0 # xmm0 = xmm0[0],mem[0] movq 0x28(%rsi), %rbx movsd (%rdx,%rax), %xmm1 movhpd (%r8,%rax), %xmm1 # xmm1 = xmm1[0],mem[0] shlq $0x7, %r11 movsd 0x18(%rbx), %xmm2 movhpd 0x98(%rbx,%r11), %xmm2 # xmm2 = xmm2[0],mem[0] shlq $0x4, %r10 subpd %xmm2, %xmm1 cvtps2pd 0x164(%rsi,%r10), %xmm2 mulpd %xmm1, %xmm0 addpd %xmm2, %xmm0 cvtpd2ps %xmm0, %xmm0 movlpd %xmm0, 0x20(%rdi) movq (%r9), %r8 movl 0x10(%r9), %r10d movl 0x14(%r9), %eax movslq 0x18(%r9), %r11 cltd idivl %r10d leal (%rdx,%r10), %eax cltd idivl %r10d movslq %edx, %rax imulq %r11, %rax movslq (%rcx), %rcx movq %rcx, %rdx movsd 0x198(%rsi), %xmm0 movhpd 0x1a0(%rsi,%rcx,8), %xmm0 # xmm0 = xmm0[0],mem[0] shlq $0x4, %rcx movq 0x28(%rsi), %r10 movsd (%r8,%rax), %xmm1 movhpd 0x8(%r9), %xmm1 # xmm1 = xmm1[0],mem[0] shlq $0x7, %rdx movsd 0x18(%r10), %xmm2 movhpd 0x98(%r10,%rdx), %xmm2 # xmm2 = xmm2[0],mem[0] subpd %xmm2, %xmm1 cvtps2pd 0x164(%rsi,%rcx), %xmm2 mulpd %xmm1, %xmm0 addpd %xmm2, %xmm0 cvtpd2ps %xmm0, %xmm0 movlpd %xmm0, 0x28(%rdi) popq %rbx retq
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
ImPlot::ShadedRenderer<ImPlot::GetterXsYs<signed char>, ImPlot::GetterXsYs<signed char>, ImPlot::TransformerLinLin>::ShadedRenderer(ImPlot::GetterXsYs<signed char> const&, ImPlot::GetterXsYs<signed char> const&, ImPlot::TransformerLinLin const&, unsigned int)
ShadedRenderer(const TGetter1& getter1, const TGetter2& getter2, const TTransformer& transformer, ImU32 col) : Getter1(getter1), Getter2(getter2), Transformer(transformer), Prims(ImMin(Getter1.Count, Getter2.Count) - 1), Col(col) { P11 = Transformer(Getter1(0)); P12 = Transformer(Getter2(0)); }
movq %rdx, %r9 movq %rsi, (%rdi) movq %rdx, 0x8(%rdi) movq %rcx, 0x10(%rdi) movl 0x10(%rsi), %r10d movl 0x10(%rdx), %eax cmpl %eax, %r10d cmovll %r10d, %eax decl %eax movl %eax, 0x18(%rdi) movl %r8d, 0x1c(%rdi) pxor %xmm0, %xmm0 movdqu %xmm0, 0x20(%rdi) movl 0x14(%rsi), %eax movslq 0x18(%rsi), %r8 cltd idivl %r10d leal (%rdx,%r10), %eax cltd idivl %r10d movslq %edx, %rax imulq %r8, %rax movq (%rsi), %r10 movq 0x8(%rsi), %r8 movq 0x18983e(%rip), %rdx # 0x46a3f0 movq (%rdx), %rsi movslq (%rcx), %r11 movq %r11, %rdx movsd 0x198(%rsi), %xmm1 movhpd 0x1a0(%rsi,%r11,8), %xmm1 # xmm1 = xmm1[0],mem[0] movzbl (%r10,%rax), %r10d shll $0x8, %r10d pxor %xmm2, %xmm2 pinsrw $0x1, %r10d, %xmm2 movzbl (%r8,%rax), %eax shll $0x8, %eax pinsrw $0x3, %eax, %xmm2 movq 0x28(%rsi), %rax psrad $0x18, %xmm2 cvtdq2pd %xmm2, %xmm2 shlq $0x7, %rdx movsd 0x18(%rax), %xmm3 movhpd 0x98(%rax,%rdx), %xmm3 # xmm3 = xmm3[0],mem[0] shlq $0x4, %r11 subpd %xmm3, %xmm2 cvtps2pd 0x164(%rsi,%r11), %xmm3 mulpd %xmm2, %xmm1 addpd %xmm3, %xmm1 cvtpd2ps %xmm1, %xmm1 movlpd %xmm1, 0x20(%rdi) movl 0x10(%r9), %r8d movl 0x14(%r9), %eax movslq 0x18(%r9), %r10 cltd idivl %r8d leal (%rdx,%r8), %eax cltd idivl %r8d movslq %edx, %rax imulq %r10, %rax movq (%r9), %r8 movq 0x8(%r9), %rdx movslq (%rcx), %r9 movq %r9, %rcx movsd 0x198(%rsi), %xmm1 movhpd 0x1a0(%rsi,%r9,8), %xmm1 # xmm1 = xmm1[0],mem[0] shlq $0x4, %r9 movzbl (%r8,%rax), %r8d shll $0x8, %r8d pinsrw $0x1, %r8d, %xmm0 movzbl (%rdx,%rax), %eax shll $0x8, %eax pinsrw $0x3, %eax, %xmm0 movq 0x28(%rsi), %rax psrad $0x18, %xmm0 cvtdq2pd %xmm0, %xmm0 shlq $0x7, %rcx cvtps2pd 0x164(%rsi,%r9), %xmm2 movsd 0x18(%rax), %xmm3 movhpd 0x98(%rax,%rcx), %xmm3 # xmm3 = xmm3[0],mem[0] subpd %xmm3, %xmm0 mulpd %xmm0, %xmm1 addpd %xmm2, %xmm1 cvtpd2ps %xmm1, %xmm0 movlpd %xmm0, 0x28(%rdi) retq
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
void ImPlot::RenderPrimitives<ImPlot::ShadedRenderer<ImPlot::GetterXsYs<unsigned char>, ImPlot::GetterXsYs<unsigned char>, ImPlot::TransformerLinLog>>(ImPlot::ShadedRenderer<ImPlot::GetterXsYs<unsigned char>, ImPlot::GetterXsYs<unsigned char>, ImPlot::TransformerLinLog> const&, ImDrawList&, ImRect const&)
inline void RenderPrimitives(const Renderer& renderer, ImDrawList& DrawList, const ImRect& cull_rect) { unsigned int prims = renderer.Prims; unsigned int prims_culled = 0; unsigned int idx = 0; const ImVec2 uv = DrawList._Data->TexUvWhitePixel; while (prims) { // find how many can be reserved up to end of current draw command's limit unsigned int cnt = ImMin(prims, (MaxIdx<ImDrawIdx>::Value - DrawList._VtxCurrentIdx) / Renderer::VtxConsumed); // make sure at least this many elements can be rendered to avoid situations where at the end of buffer this slow path is not taken all the time if (cnt >= ImMin(64u, prims)) { if (prims_culled >= cnt) prims_culled -= cnt; // reuse previous reservation else { DrawList.PrimReserve((cnt - prims_culled) * Renderer::IdxConsumed, (cnt - prims_culled) * Renderer::VtxConsumed); // add more elements to previous reservation prims_culled = 0; } } else { if (prims_culled > 0) { DrawList.PrimUnreserve(prims_culled * Renderer::IdxConsumed, prims_culled * Renderer::VtxConsumed); prims_culled = 0; } cnt = ImMin(prims, (MaxIdx<ImDrawIdx>::Value - 0/*DrawList._VtxCurrentIdx*/) / Renderer::VtxConsumed); DrawList.PrimReserve(cnt * Renderer::IdxConsumed, cnt * Renderer::VtxConsumed); // reserve new draw command } prims -= cnt; for (unsigned int ie = idx + cnt; idx != ie; ++idx) { if (!renderer(DrawList, cull_rect, uv, idx)) prims_culled++; } } if (prims_culled > 0) DrawList.PrimUnreserve(prims_culled * Renderer::IdxConsumed, prims_culled * Renderer::VtxConsumed); }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rsi, %rbx movl 0x18(%rdi), %esi movq 0x38(%rbx), %rax movq (%rax), %rax movq %rax, 0x8(%rsp) testl %esi, %esi je 0x2e2c4d movq %rdx, %r14 movq %rdi, %r15 xorl %r12d, %r12d leaq 0x8(%rsp), %rcx xorl %ebp, %ebp movl 0x34(%rbx), %edi movl %edi, %eax notl %eax movl $0xcccccccd, %edx # imm = 0xCCCCCCCD imulq %rdx, %rax shrq $0x22, %rax cmpl %eax, %esi movl %eax, %r13d cmovbl %esi, %r13d cmpl $0x40, %esi movl $0x40, %edx cmovbl %esi, %edx cmpl %edx, %eax jae 0x2e2bb0 testl %ebp, %ebp je 0x2e2b9c leal (,%rbp,2), %eax movl %esi, %r13d leal (%rax,%rax,2), %esi leal (%rbp,%rbp,4), %edx movq %rbx, %rdi callq 0xe0140 movl %r13d, %esi movl $0x33333333, %eax # imm = 0x33333333 cmpl %eax, %esi movl $0x33333333, %eax # imm = 0x33333333 cmovbl %esi, %eax movl %eax, %r13d jmp 0x2e2bbc movl %ebp, %eax subl %r13d, %eax jae 0x2e2c21 movl %r13d, %eax subl %ebp, %eax movl %esi, %ebp leal (%rax,%rax), %ecx leal (%rcx,%rcx,2), %esi leal (%rax,%rax,4), %edx movq %rbx, %rdi callq 0xe3170 subl %r13d, %ebp movl %ebp, 0x4(%rsp) xorl %eax, %eax leaq 0x8(%rsp), %rcx leal (%r12,%r13), %edx movl %edx, 0x14(%rsp) movl %eax, %ebp movq %r15, %rdi movq %rbx, %rsi movq %r14, %rdx movl %r12d, %r8d callq 0xeb820 leaq 0x8(%rsp), %rcx xorb $0x1, %al movzbl %al, %eax addl %eax, %ebp incl %r12d decl %r13d jne 0x2e2be7 movl 0x14(%rsp), %eax movl %eax, %r12d movl 0x4(%rsp), %esi testl %esi, %esi jne 0x2e2b50 jmp 0x2e2c33 subl %r13d, %esi cmpl $-0x6, %edi jbe 0x2e2c2d movl %eax, %ebp jmp 0x2e2c17 movl %esi, 0x4(%rsp) jmp 0x2e2bdd testl %ebp, %ebp je 0x2e2c4d leal (,%rbp,2), %eax leal (%rax,%rax,2), %esi leal (%rbp,%rbp,4), %edx movq %rbx, %rdi callq 0xe0140 addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
ImPlot::ShadedRenderer<ImPlot::GetterXsYs<unsigned char>, ImPlot::GetterXsYs<unsigned char>, ImPlot::TransformerLogLog>::ShadedRenderer(ImPlot::GetterXsYs<unsigned char> const&, ImPlot::GetterXsYs<unsigned char> const&, ImPlot::TransformerLogLog const&, unsigned int)
ShadedRenderer(const TGetter1& getter1, const TGetter2& getter2, const TTransformer& transformer, ImU32 col) : Getter1(getter1), Getter2(getter2), Transformer(transformer), Prims(ImMin(Getter1.Count, Getter2.Count) - 1), Col(col) { P11 = Transformer(Getter1(0)); P12 = Transformer(Getter2(0)); }
pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x48, %rsp movq %rcx, %r14 movq %rdi, %rbx movq %rsi, (%rdi) movq %rdx, 0x8(%rdi) movq %rcx, 0x10(%rdi) movl 0x10(%rsi), %ecx movl 0x10(%rdx), %eax cmpl %eax, %ecx cmovll %ecx, %eax decl %eax movl %eax, 0x18(%rdi) movl %r8d, 0x1c(%rdi) xorps %xmm0, %xmm0 movups %xmm0, 0x20(%rdi) movl 0x14(%rsi), %eax movslq 0x18(%rsi), %rdi cltd idivl %ecx leal (%rdx,%rcx), %eax cltd idivl %ecx movslq %edx, %rax imulq %rdi, %rax movq (%rsi), %rcx movq 0x8(%rsi), %rdx movzbl (%rcx,%rax), %ecx xorps %xmm0, %xmm0 cvtsi2sd %ecx, %xmm0 movzbl (%rdx,%rax), %eax cvtsi2sd %eax, %xmm1 movsd %xmm1, (%rsp) movq 0x1873ce(%rip), %r15 # 0x46a3f0 movq (%r15), %r12 movq 0x28(%r12), %rax divsd 0x18(%rax), %xmm0 callq 0xe2ca0 movq 0x28(%r12), %rax movslq (%r14), %rcx shlq $0x7, %rcx movsd (%rsp), %xmm1 divsd 0x98(%rax,%rcx), %xmm1 movapd %xmm0, 0x10(%rsp) movsd 0x1b8(%r12), %xmm0 movaps %xmm0, 0x20(%rsp) movsd 0x18(%rax), %xmm0 movaps %xmm0, (%rsp) movsd 0x20(%rax), %xmm0 movaps %xmm0, 0x30(%rsp) movapd %xmm1, %xmm0 callq 0xe2ca0 movslq (%r14), %rdx movq 0x28(%r12), %rax movq %rdx, %rcx movapd 0x10(%rsp), %xmm1 unpcklpd %xmm0, %xmm1 # xmm1 = xmm1[0],xmm0[0] movapd 0x20(%rsp), %xmm2 movhpd 0x1c0(%r12,%rdx,8), %xmm2 # xmm2 = xmm2[0],mem[0] movsd 0x198(%r12), %xmm0 movhpd 0x1a0(%r12,%rdx,8), %xmm0 # xmm0 = xmm0[0],mem[0] shlq $0x7, %rdx divpd %xmm2, %xmm1 cvtpd2ps %xmm1, %xmm1 shlq $0x4, %rcx movapd 0x30(%rsp), %xmm4 movhpd 0xa0(%rax,%rdx), %xmm4 # xmm4 = xmm4[0],mem[0] movsd 0x98(%rax,%rdx), %xmm2 movapd (%rsp), %xmm3 unpcklpd %xmm2, %xmm3 # xmm3 = xmm3[0],xmm2[0] subpd %xmm3, %xmm4 cvtps2pd %xmm1, %xmm1 mulpd %xmm4, %xmm1 addpd %xmm3, %xmm1 cvtps2pd 0x164(%r12,%rcx), %xmm3 movsd 0x18(%rax), %xmm4 unpcklpd %xmm2, %xmm4 # xmm4 = xmm4[0],xmm2[0] subpd %xmm4, %xmm1 mulpd %xmm1, %xmm0 addpd %xmm3, %xmm0 cvtpd2ps %xmm0, %xmm0 movlpd %xmm0, 0x20(%rbx) movq 0x8(%rbx), %rcx movq 0x10(%rbx), %r12 movl 0x10(%rcx), %esi movl 0x14(%rcx), %eax movslq 0x18(%rcx), %rdi cltd idivl %esi leal (%rdx,%rsi), %eax cltd idivl %esi movslq %edx, %rax imulq %rdi, %rax movq (%rcx), %rdx movzbl (%rdx,%rax), %edx xorps %xmm0, %xmm0 cvtsi2sd %edx, %xmm0 movq 0x8(%rcx), %rcx movzbl (%rcx,%rax), %eax xorps %xmm1, %xmm1 cvtsi2sd %eax, %xmm1 movsd %xmm1, (%rsp) movq (%r15), %r14 movq 0x28(%r14), %rax divsd 0x18(%rax), %xmm0 callq 0xe2ca0 movq 0x28(%r14), %rax movslq (%r12), %rcx shlq $0x7, %rcx movsd (%rsp), %xmm1 divsd 0x98(%rax,%rcx), %xmm1 movapd %xmm0, 0x10(%rsp) movsd 0x1b8(%r14), %xmm0 movaps %xmm0, 0x20(%rsp) movsd 0x18(%rax), %xmm0 movaps %xmm0, (%rsp) movsd 0x20(%rax), %xmm0 movaps %xmm0, 0x30(%rsp) movapd %xmm1, %xmm0 callq 0xe2ca0 movslq (%r12), %rdx movq 0x28(%r14), %rax movq %rdx, %rcx movapd 0x10(%rsp), %xmm1 unpcklpd %xmm0, %xmm1 # xmm1 = xmm1[0],xmm0[0] movapd 0x20(%rsp), %xmm2 movhpd 0x1c0(%r14,%rdx,8), %xmm2 # xmm2 = xmm2[0],mem[0] movsd 0x198(%r14), %xmm0 movhpd 0x1a0(%r14,%rdx,8), %xmm0 # xmm0 = xmm0[0],mem[0] shlq $0x7, %rdx divpd %xmm2, %xmm1 cvtpd2ps %xmm1, %xmm1 shlq $0x4, %rcx movapd 0x30(%rsp), %xmm4 movhpd 0xa0(%rax,%rdx), %xmm4 # xmm4 = xmm4[0],mem[0] movsd 0x98(%rax,%rdx), %xmm2 movapd (%rsp), %xmm3 unpcklpd %xmm2, %xmm3 # xmm3 = xmm3[0],xmm2[0] subpd %xmm3, %xmm4 cvtps2pd %xmm1, %xmm1 mulpd %xmm4, %xmm1 addpd %xmm3, %xmm1 cvtps2pd 0x164(%r14,%rcx), %xmm3 movsd 0x18(%rax), %xmm4 unpcklpd %xmm2, %xmm4 # xmm4 = xmm4[0],xmm2[0] subpd %xmm4, %xmm1 mulpd %xmm1, %xmm0 addpd %xmm3, %xmm0 cvtpd2ps %xmm0, %xmm0 movlpd %xmm0, 0x28(%rbx) addq $0x48, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq nop
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
ImPlot::ShadedRenderer<ImPlot::GetterXsYs<short>, ImPlot::GetterXsYs<short>, ImPlot::TransformerLogLin>::ShadedRenderer(ImPlot::GetterXsYs<short> const&, ImPlot::GetterXsYs<short> const&, ImPlot::TransformerLogLin const&, unsigned int)
ShadedRenderer(const TGetter1& getter1, const TGetter2& getter2, const TTransformer& transformer, ImU32 col) : Getter1(getter1), Getter2(getter2), Transformer(transformer), Prims(ImMin(Getter1.Count, Getter2.Count) - 1), Col(col) { P11 = Transformer(Getter1(0)); P12 = Transformer(Getter2(0)); }
pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rcx, %r14 movq %rdi, %rbx movq %rsi, (%rdi) movq %rdx, 0x8(%rdi) movq %rcx, 0x10(%rdi) movl 0x10(%rsi), %ecx movl 0x10(%rdx), %eax cmpl %eax, %ecx cmovll %ecx, %eax decl %eax movl %eax, 0x18(%rdi) movl %r8d, 0x1c(%rdi) xorps %xmm0, %xmm0 movups %xmm0, 0x20(%rdi) movl 0x14(%rsi), %eax movslq 0x18(%rsi), %rdi cltd idivl %ecx leal (%rdx,%rcx), %eax cltd idivl %ecx movslq %edx, %rax imulq %rdi, %rax movq (%rsi), %rcx movq 0x8(%rsi), %rdx movswl (%rcx,%rax), %ecx xorps %xmm0, %xmm0 cvtsi2sd %ecx, %xmm0 movswl (%rdx,%rax), %eax cvtsi2sd %eax, %xmm1 movapd %xmm1, (%rsp) movq 0x185f3c(%rip), %r15 # 0x46a3f0 movq (%r15), %r12 movq 0x28(%r12), %rax divsd 0x18(%rax), %xmm0 callq 0xe2ca0 divsd 0x1b8(%r12), %xmm0 movq 0x28(%r12), %rax movupd 0x18(%rax), %xmm1 cvtsd2ss %xmm0, %xmm0 movapd %xmm1, %xmm2 unpckhpd %xmm1, %xmm2 # xmm2 = xmm2[1],xmm1[1] subsd %xmm1, %xmm2 cvtss2sd %xmm0, %xmm0 mulsd %xmm2, %xmm0 addsd %xmm1, %xmm0 unpcklpd (%rsp), %xmm0 # xmm0 = xmm0[0],mem[0] movslq (%r14), %rcx movq %rcx, %rdx movsd 0x198(%r12), %xmm2 movhpd 0x1a0(%r12,%rcx,8), %xmm2 # xmm2 = xmm2[0],mem[0] shlq $0x4, %rcx shlq $0x7, %rdx cvtps2pd 0x164(%r12,%rcx), %xmm3 movhpd 0x98(%rax,%rdx), %xmm1 # xmm1 = xmm1[0],mem[0] subpd %xmm1, %xmm0 mulpd %xmm0, %xmm2 addpd %xmm3, %xmm2 cvtpd2ps %xmm2, %xmm0 movlpd %xmm0, 0x20(%rbx) movq 0x8(%rbx), %rcx movq 0x10(%rbx), %r14 movl 0x10(%rcx), %esi movl 0x14(%rcx), %eax movslq 0x18(%rcx), %rdi cltd idivl %esi leal (%rdx,%rsi), %eax cltd idivl %esi movslq %edx, %rax imulq %rdi, %rax movq (%rcx), %rdx movswl (%rdx,%rax), %edx xorps %xmm0, %xmm0 cvtsi2sd %edx, %xmm0 movq 0x8(%rcx), %rcx movswl (%rcx,%rax), %eax xorps %xmm1, %xmm1 cvtsi2sd %eax, %xmm1 movapd %xmm1, (%rsp) movq (%r15), %r15 movq 0x28(%r15), %rax divsd 0x18(%rax), %xmm0 callq 0xe2ca0 divsd 0x1b8(%r15), %xmm0 movq 0x28(%r15), %rax movupd 0x18(%rax), %xmm1 cvtsd2ss %xmm0, %xmm0 movapd %xmm1, %xmm2 unpckhpd %xmm1, %xmm2 # xmm2 = xmm2[1],xmm1[1] subsd %xmm1, %xmm2 cvtss2sd %xmm0, %xmm0 mulsd %xmm2, %xmm0 addsd %xmm1, %xmm0 unpcklpd (%rsp), %xmm0 # xmm0 = xmm0[0],mem[0] movslq (%r14), %rcx movq %rcx, %rdx movsd 0x198(%r15), %xmm2 movhpd 0x1a0(%r15,%rcx,8), %xmm2 # xmm2 = xmm2[0],mem[0] shlq $0x4, %rcx shlq $0x7, %rdx cvtps2pd 0x164(%r15,%rcx), %xmm3 movhpd 0x98(%rax,%rdx), %xmm1 # xmm1 = xmm1[0],mem[0] subpd %xmm1, %xmm0 mulpd %xmm0, %xmm2 addpd %xmm3, %xmm2 cvtpd2ps %xmm2, %xmm0 movlpd %xmm0, 0x28(%rbx) addq $0x18, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
ImPlot::ShadedRenderer<ImPlot::GetterXsYs<short>, ImPlot::GetterXsYs<short>, ImPlot::TransformerLogLin>::operator()(ImDrawList&, ImRect const&, ImVec2 const&, int) const
inline bool operator()(ImDrawList& DrawList, const ImRect& /*cull_rect*/, const ImVec2& uv, int prim) const { // TODO: Culling ImVec2 P21 = Transformer(Getter1(prim+1)); ImVec2 P22 = Transformer(Getter2(prim+1)); const int intersect = (P11.y > P12.y && P22.y > P21.y) || (P12.y > P11.y && P21.y > P22.y); ImVec2 intersection = Intersection(P11,P21,P12,P22); DrawList._VtxWritePtr[0].pos = P11; DrawList._VtxWritePtr[0].uv = uv; DrawList._VtxWritePtr[0].col = Col; DrawList._VtxWritePtr[1].pos = P21; DrawList._VtxWritePtr[1].uv = uv; DrawList._VtxWritePtr[1].col = Col; DrawList._VtxWritePtr[2].pos = intersection; DrawList._VtxWritePtr[2].uv = uv; DrawList._VtxWritePtr[2].col = Col; DrawList._VtxWritePtr[3].pos = P12; DrawList._VtxWritePtr[3].uv = uv; DrawList._VtxWritePtr[3].col = Col; DrawList._VtxWritePtr[4].pos = P22; DrawList._VtxWritePtr[4].uv = uv; DrawList._VtxWritePtr[4].col = Col; DrawList._VtxWritePtr += 5; DrawList._IdxWritePtr[0] = (ImDrawIdx)(DrawList._VtxCurrentIdx); DrawList._IdxWritePtr[1] = (ImDrawIdx)(DrawList._VtxCurrentIdx + 1 + intersect); DrawList._IdxWritePtr[2] = (ImDrawIdx)(DrawList._VtxCurrentIdx + 3); DrawList._IdxWritePtr[3] = (ImDrawIdx)(DrawList._VtxCurrentIdx + 1); DrawList._IdxWritePtr[4] = (ImDrawIdx)(DrawList._VtxCurrentIdx + 3 - intersect); DrawList._IdxWritePtr[5] = (ImDrawIdx)(DrawList._VtxCurrentIdx + 4); DrawList._IdxWritePtr += 6; DrawList._VtxCurrentIdx += 5; P11 = P21; P12 = P22; return true; }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movq %rcx, %r15 movq %rsi, %r14 movq %rdi, %rbx movq (%rdi), %rcx movq 0x10(%rdi), %r12 leal 0x1(%r8), %ebp movl 0x10(%rcx), %esi movslq 0x18(%rcx), %rdi movl 0x14(%rcx), %eax addl %ebp, %eax cltd idivl %esi leal (%rdx,%rsi), %eax cltd idivl %esi movslq %edx, %rax imulq %rdi, %rax movq (%rcx), %rdx movq 0x8(%rcx), %rcx movswl (%rdx,%rax), %edx cvtsi2sd %edx, %xmm0 movswl (%rcx,%rax), %eax cvtsi2sd %eax, %xmm1 movapd %xmm1, (%rsp) movq 0x185383(%rip), %rax # 0x46a3f0 movq (%rax), %r13 movq 0x28(%r13), %rax divsd 0x18(%rax), %xmm0 callq 0xe2ca0 divsd 0x1b8(%r13), %xmm0 movq 0x28(%r13), %rcx movupd 0x18(%rcx), %xmm1 cvtsd2ss %xmm0, %xmm0 movapd %xmm1, %xmm3 unpckhpd %xmm1, %xmm3 # xmm3 = xmm3[1],xmm1[1] subsd %xmm1, %xmm3 cvtss2sd %xmm0, %xmm2 mulsd %xmm3, %xmm2 addsd %xmm1, %xmm2 movslq (%r12), %r8 movq %r8, %rsi movq 0x8(%rbx), %rdi movq 0x10(%rbx), %r12 movl 0x10(%rdi), %r10d addl 0x14(%rdi), %ebp movslq 0x18(%rdi), %r9 movl %ebp, %eax cltd idivl %r10d leal (%rdx,%r10), %eax cltd idivl %r10d movsd 0x198(%r13), %xmm3 movhpd 0x1a0(%r13,%r8,8), %xmm3 # xmm3 = xmm3[0],mem[0] movslq %edx, %rax imulq %r9, %rax movq (%rdi), %rdx movswl (%rdx,%rax), %edx xorps %xmm0, %xmm0 cvtsi2sd %edx, %xmm0 movq 0x8(%rdi), %rdx movswl (%rdx,%rax), %eax cvtsi2sd %eax, %xmm4 movapd %xmm4, 0x10(%rsp) movq 0x1852db(%rip), %rax # 0x46a3f0 movq (%rax), %rbp movq 0x28(%rbp), %rax divsd 0x18(%rax), %xmm0 shlq $0x4, %r8 unpcklpd (%rsp), %xmm2 # xmm2 = xmm2[0],mem[0] cvtps2pd 0x164(%r13,%r8), %xmm4 shlq $0x7, %rsi movhpd 0x98(%rcx,%rsi), %xmm1 # xmm1 = xmm1[0],mem[0] subpd %xmm1, %xmm2 mulpd %xmm2, %xmm3 addpd %xmm4, %xmm3 cvtpd2ps %xmm3, %xmm1 movapd %xmm1, (%rsp) callq 0xe2ca0 divsd 0x1b8(%rbp), %xmm0 movq 0x28(%rbp), %rax movupd 0x18(%rax), %xmm1 cvtsd2ss %xmm0, %xmm0 movapd %xmm1, %xmm2 unpckhpd %xmm1, %xmm2 # xmm2 = xmm2[1],xmm1[1] subsd %xmm1, %xmm2 cvtss2sd %xmm0, %xmm0 mulsd %xmm2, %xmm0 addsd %xmm1, %xmm0 unpcklpd 0x10(%rsp), %xmm0 # xmm0 = xmm0[0],mem[0] movslq (%r12), %rcx movq %rcx, %rdx movsd 0x198(%rbp), %xmm2 movhpd 0x1a0(%rbp,%rcx,8), %xmm2 # xmm2 = xmm2[0],mem[0] shlq $0x4, %rcx cvtps2pd 0x164(%rbp,%rcx), %xmm3 shlq $0x7, %rdx movhpd 0x98(%rax,%rdx), %xmm1 # xmm1 = xmm1[0],mem[0] subpd %xmm1, %xmm0 mulpd %xmm0, %xmm2 addpd %xmm3, %xmm2 cvtpd2ps %xmm2, %xmm0 movsd 0x20(%rbx), %xmm3 movsd 0x28(%rbx), %xmm2 movaps %xmm2, %xmm5 shufps $0x55, %xmm2, %xmm5 # xmm5 = xmm5[1,1],xmm2[1,1] movaps %xmm3, %xmm6 shufps $0x55, %xmm3, %xmm6 # xmm6 = xmm6[1,1],xmm3[1,1] movapd %xmm0, %xmm7 shufps $0x55, %xmm0, %xmm7 # xmm7 = xmm7[1,1],xmm0[1,1] movaps (%rsp), %xmm9 movaps %xmm9, %xmm1 shufps $0x55, %xmm9, %xmm1 # xmm1 = xmm1[1,1],xmm9[1,1] movaps %xmm1, %xmm4 cmpltps %xmm7, %xmm4 movaps %xmm5, %xmm8 cmpltps %xmm6, %xmm8 andps %xmm4, %xmm8 movd %xmm8, %ecx movaps %xmm2, %xmm4 mulss %xmm7, %xmm4 cmpltps %xmm1, %xmm7 movaps %xmm9, %xmm8 mulss %xmm6, %xmm8 cmpltps %xmm5, %xmm6 andps %xmm7, %xmm6 movd %xmm6, %eax orl %ecx, %eax mulss %xmm3, %xmm1 subss %xmm8, %xmm1 mulss %xmm0, %xmm5 subss %xmm5, %xmm4 subps %xmm9, %xmm3 subps %xmm0, %xmm2 movaps %xmm2, %xmm5 shufps $0x55, %xmm2, %xmm5 # xmm5 = xmm5[1,1],xmm2[1,1] mulss %xmm3, %xmm5 unpcklps %xmm4, %xmm4 # xmm4 = xmm4[0,0,1,1] mulps %xmm3, %xmm4 shufps $0x55, %xmm3, %xmm3 # xmm3 = xmm3[1,1,1,1] mulss %xmm2, %xmm3 subss %xmm3, %xmm5 unpcklps %xmm1, %xmm1 # xmm1 = xmm1[0,0,1,1] mulps %xmm2, %xmm1 subps %xmm4, %xmm1 unpcklps %xmm5, %xmm5 # xmm5 = xmm5[0,0,1,1] divps %xmm5, %xmm1 movq 0x48(%r14), %rcx movq 0x20(%rbx), %rdx movq %rdx, (%rcx) movq 0x48(%r14), %rcx movq (%r15), %rdx movq %rdx, 0x8(%rcx) movl 0x1c(%rbx), %ecx movq 0x48(%r14), %rdx movl %ecx, 0x10(%rdx) movlps %xmm9, 0x14(%rdx) movq 0x48(%r14), %rcx movq (%r15), %rdx movq %rdx, 0x1c(%rcx) movl 0x1c(%rbx), %ecx movq 0x48(%r14), %rdx movl %ecx, 0x24(%rdx) movlps %xmm1, 0x28(%rdx) movq 0x48(%r14), %rcx movq (%r15), %rdx movq %rdx, 0x30(%rcx) movl 0x1c(%rbx), %ecx movq 0x48(%r14), %rdx movl %ecx, 0x38(%rdx) movq 0x28(%rbx), %rcx movq %rcx, 0x3c(%rdx) movq 0x48(%r14), %rcx movq (%r15), %rdx movq %rdx, 0x44(%rcx) movl 0x1c(%rbx), %ecx movq 0x48(%r14), %rdx movl %ecx, 0x4c(%rdx) movlpd %xmm0, 0x50(%rdx) movq 0x48(%r14), %rcx movq (%r15), %rdx movq %rdx, 0x58(%rcx) movl 0x1c(%rbx), %ecx movq 0x48(%r14), %rdx movl %ecx, 0x60(%rdx) addq $0x64, %rdx movq %rdx, 0x48(%r14) movl 0x34(%r14), %ecx movq 0x50(%r14), %rdx movl %ecx, (%rdx) andl $0x1, %eax addl %eax, %ecx incl %ecx movl %ecx, 0x4(%rdx) movl 0x34(%r14), %ecx addl $0x3, %ecx movl %ecx, 0x8(%rdx) movl 0x34(%r14), %ecx incl %ecx movl %ecx, 0xc(%rdx) xorl $0x3, %eax addl 0x34(%r14), %eax movl %eax, 0x10(%rdx) movl 0x34(%r14), %eax addl $0x4, %eax movl %eax, 0x14(%rdx) addq $0x18, %rdx movq %rdx, 0x50(%r14) addl $0x5, 0x34(%r14) movaps %xmm9, %xmm1 movlhps %xmm0, %xmm1 # xmm1 = xmm1[0],xmm0[0] movups %xmm1, 0x20(%rbx) movb $0x1, %al addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
void ImPlot::RenderPrimitives<ImPlot::ShadedRenderer<ImPlot::GetterXsYs<unsigned short>, ImPlot::GetterXsYs<unsigned short>, ImPlot::TransformerLogLin>>(ImPlot::ShadedRenderer<ImPlot::GetterXsYs<unsigned short>, ImPlot::GetterXsYs<unsigned short>, ImPlot::TransformerLogLin> const&, ImDrawList&, ImRect const&)
inline void RenderPrimitives(const Renderer& renderer, ImDrawList& DrawList, const ImRect& cull_rect) { unsigned int prims = renderer.Prims; unsigned int prims_culled = 0; unsigned int idx = 0; const ImVec2 uv = DrawList._Data->TexUvWhitePixel; while (prims) { // find how many can be reserved up to end of current draw command's limit unsigned int cnt = ImMin(prims, (MaxIdx<ImDrawIdx>::Value - DrawList._VtxCurrentIdx) / Renderer::VtxConsumed); // make sure at least this many elements can be rendered to avoid situations where at the end of buffer this slow path is not taken all the time if (cnt >= ImMin(64u, prims)) { if (prims_culled >= cnt) prims_culled -= cnt; // reuse previous reservation else { DrawList.PrimReserve((cnt - prims_culled) * Renderer::IdxConsumed, (cnt - prims_culled) * Renderer::VtxConsumed); // add more elements to previous reservation prims_culled = 0; } } else { if (prims_culled > 0) { DrawList.PrimUnreserve(prims_culled * Renderer::IdxConsumed, prims_culled * Renderer::VtxConsumed); prims_culled = 0; } cnt = ImMin(prims, (MaxIdx<ImDrawIdx>::Value - 0/*DrawList._VtxCurrentIdx*/) / Renderer::VtxConsumed); DrawList.PrimReserve(cnt * Renderer::IdxConsumed, cnt * Renderer::VtxConsumed); // reserve new draw command } prims -= cnt; for (unsigned int ie = idx + cnt; idx != ie; ++idx) { if (!renderer(DrawList, cull_rect, uv, idx)) prims_culled++; } } if (prims_culled > 0) DrawList.PrimUnreserve(prims_culled * Renderer::IdxConsumed, prims_culled * Renderer::VtxConsumed); }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rsi, %rbx movl 0x18(%rdi), %esi movq 0x38(%rbx), %rax movq (%rax), %rax movq %rax, 0x8(%rsp) testl %esi, %esi je 0x2e5f23 movq %rdx, %r14 movq %rdi, %r15 xorl %r12d, %r12d leaq 0x8(%rsp), %rcx xorl %ebp, %ebp movl 0x34(%rbx), %edi movl %edi, %eax notl %eax movl $0xcccccccd, %edx # imm = 0xCCCCCCCD imulq %rdx, %rax shrq $0x22, %rax cmpl %eax, %esi movl %eax, %r13d cmovbl %esi, %r13d cmpl $0x40, %esi movl $0x40, %edx cmovbl %esi, %edx cmpl %edx, %eax jae 0x2e5e86 testl %ebp, %ebp je 0x2e5e72 leal (,%rbp,2), %eax movl %esi, %r13d leal (%rax,%rax,2), %esi leal (%rbp,%rbp,4), %edx movq %rbx, %rdi callq 0xe0140 movl %r13d, %esi movl $0x33333333, %eax # imm = 0x33333333 cmpl %eax, %esi movl $0x33333333, %eax # imm = 0x33333333 cmovbl %esi, %eax movl %eax, %r13d jmp 0x2e5e92 movl %ebp, %eax subl %r13d, %eax jae 0x2e5ef7 movl %r13d, %eax subl %ebp, %eax movl %esi, %ebp leal (%rax,%rax), %ecx leal (%rcx,%rcx,2), %esi leal (%rax,%rax,4), %edx movq %rbx, %rdi callq 0xe3170 subl %r13d, %ebp movl %ebp, 0x4(%rsp) xorl %eax, %eax leaq 0x8(%rsp), %rcx leal (%r12,%r13), %edx movl %edx, 0x14(%rsp) movl %eax, %ebp movq %r15, %rdi movq %rbx, %rsi movq %r14, %rdx movl %r12d, %r8d callq 0xe0920 leaq 0x8(%rsp), %rcx xorb $0x1, %al movzbl %al, %eax addl %eax, %ebp incl %r12d decl %r13d jne 0x2e5ebd movl 0x14(%rsp), %eax movl %eax, %r12d movl 0x4(%rsp), %esi testl %esi, %esi jne 0x2e5e26 jmp 0x2e5f09 subl %r13d, %esi cmpl $-0x6, %edi jbe 0x2e5f03 movl %eax, %ebp jmp 0x2e5eed movl %esi, 0x4(%rsp) jmp 0x2e5eb3 testl %ebp, %ebp je 0x2e5f23 leal (,%rbp,2), %eax leal (%rax,%rax,2), %esi leal (%rbp,%rbp,4), %edx movq %rbx, %rdi callq 0xe0140 addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
void ImPlot::RenderPrimitives<ImPlot::ShadedRenderer<ImPlot::GetterXsYs<int>, ImPlot::GetterXsYs<int>, ImPlot::TransformerLogLin>>(ImPlot::ShadedRenderer<ImPlot::GetterXsYs<int>, ImPlot::GetterXsYs<int>, ImPlot::TransformerLogLin> const&, ImDrawList&, ImRect const&)
inline void RenderPrimitives(const Renderer& renderer, ImDrawList& DrawList, const ImRect& cull_rect) { unsigned int prims = renderer.Prims; unsigned int prims_culled = 0; unsigned int idx = 0; const ImVec2 uv = DrawList._Data->TexUvWhitePixel; while (prims) { // find how many can be reserved up to end of current draw command's limit unsigned int cnt = ImMin(prims, (MaxIdx<ImDrawIdx>::Value - DrawList._VtxCurrentIdx) / Renderer::VtxConsumed); // make sure at least this many elements can be rendered to avoid situations where at the end of buffer this slow path is not taken all the time if (cnt >= ImMin(64u, prims)) { if (prims_culled >= cnt) prims_culled -= cnt; // reuse previous reservation else { DrawList.PrimReserve((cnt - prims_culled) * Renderer::IdxConsumed, (cnt - prims_culled) * Renderer::VtxConsumed); // add more elements to previous reservation prims_culled = 0; } } else { if (prims_culled > 0) { DrawList.PrimUnreserve(prims_culled * Renderer::IdxConsumed, prims_culled * Renderer::VtxConsumed); prims_culled = 0; } cnt = ImMin(prims, (MaxIdx<ImDrawIdx>::Value - 0/*DrawList._VtxCurrentIdx*/) / Renderer::VtxConsumed); DrawList.PrimReserve(cnt * Renderer::IdxConsumed, cnt * Renderer::VtxConsumed); // reserve new draw command } prims -= cnt; for (unsigned int ie = idx + cnt; idx != ie; ++idx) { if (!renderer(DrawList, cull_rect, uv, idx)) prims_culled++; } } if (prims_culled > 0) DrawList.PrimUnreserve(prims_culled * Renderer::IdxConsumed, prims_culled * Renderer::VtxConsumed); }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rsi, %rbx movl 0x18(%rdi), %esi movq 0x38(%rbx), %rax movq (%rax), %rax movq %rax, 0x8(%rsp) testl %esi, %esi je 0x2e7a0c movq %rdx, %r14 movq %rdi, %r15 xorl %r12d, %r12d leaq 0x8(%rsp), %rcx xorl %ebp, %ebp movl 0x34(%rbx), %edi movl %edi, %eax notl %eax movl $0xcccccccd, %edx # imm = 0xCCCCCCCD imulq %rdx, %rax shrq $0x22, %rax cmpl %eax, %esi movl %eax, %r13d cmovbl %esi, %r13d cmpl $0x40, %esi movl $0x40, %edx cmovbl %esi, %edx cmpl %edx, %eax jae 0x2e796f testl %ebp, %ebp je 0x2e795b leal (,%rbp,2), %eax movl %esi, %r13d leal (%rax,%rax,2), %esi leal (%rbp,%rbp,4), %edx movq %rbx, %rdi callq 0xe0140 movl %r13d, %esi movl $0x33333333, %eax # imm = 0x33333333 cmpl %eax, %esi movl $0x33333333, %eax # imm = 0x33333333 cmovbl %esi, %eax movl %eax, %r13d jmp 0x2e797b movl %ebp, %eax subl %r13d, %eax jae 0x2e79e0 movl %r13d, %eax subl %ebp, %eax movl %esi, %ebp leal (%rax,%rax), %ecx leal (%rcx,%rcx,2), %esi leal (%rax,%rax,4), %edx movq %rbx, %rdi callq 0xe3170 subl %r13d, %ebp movl %ebp, 0x4(%rsp) xorl %eax, %eax leaq 0x8(%rsp), %rcx leal (%r12,%r13), %edx movl %edx, 0x14(%rsp) movl %eax, %ebp movq %r15, %rdi movq %rbx, %rsi movq %r14, %rdx movl %r12d, %r8d callq 0xe9d70 leaq 0x8(%rsp), %rcx xorb $0x1, %al movzbl %al, %eax addl %eax, %ebp incl %r12d decl %r13d jne 0x2e79a6 movl 0x14(%rsp), %eax movl %eax, %r12d movl 0x4(%rsp), %esi testl %esi, %esi jne 0x2e790f jmp 0x2e79f2 subl %r13d, %esi cmpl $-0x6, %edi jbe 0x2e79ec movl %eax, %ebp jmp 0x2e79d6 movl %esi, 0x4(%rsp) jmp 0x2e799c testl %ebp, %ebp je 0x2e7a0c leal (,%rbp,2), %eax leal (%rax,%rax,2), %esi leal (%rbp,%rbp,4), %edx movq %rbx, %rdi callq 0xe0140 addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq nop
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
void ImPlot::RenderPrimitives<ImPlot::ShadedRenderer<ImPlot::GetterXsYs<int>, ImPlot::GetterXsYs<int>, ImPlot::TransformerLinLog>>(ImPlot::ShadedRenderer<ImPlot::GetterXsYs<int>, ImPlot::GetterXsYs<int>, ImPlot::TransformerLinLog> const&, ImDrawList&, ImRect const&)
inline void RenderPrimitives(const Renderer& renderer, ImDrawList& DrawList, const ImRect& cull_rect) { unsigned int prims = renderer.Prims; unsigned int prims_culled = 0; unsigned int idx = 0; const ImVec2 uv = DrawList._Data->TexUvWhitePixel; while (prims) { // find how many can be reserved up to end of current draw command's limit unsigned int cnt = ImMin(prims, (MaxIdx<ImDrawIdx>::Value - DrawList._VtxCurrentIdx) / Renderer::VtxConsumed); // make sure at least this many elements can be rendered to avoid situations where at the end of buffer this slow path is not taken all the time if (cnt >= ImMin(64u, prims)) { if (prims_culled >= cnt) prims_culled -= cnt; // reuse previous reservation else { DrawList.PrimReserve((cnt - prims_culled) * Renderer::IdxConsumed, (cnt - prims_culled) * Renderer::VtxConsumed); // add more elements to previous reservation prims_culled = 0; } } else { if (prims_culled > 0) { DrawList.PrimUnreserve(prims_culled * Renderer::IdxConsumed, prims_culled * Renderer::VtxConsumed); prims_culled = 0; } cnt = ImMin(prims, (MaxIdx<ImDrawIdx>::Value - 0/*DrawList._VtxCurrentIdx*/) / Renderer::VtxConsumed); DrawList.PrimReserve(cnt * Renderer::IdxConsumed, cnt * Renderer::VtxConsumed); // reserve new draw command } prims -= cnt; for (unsigned int ie = idx + cnt; idx != ie; ++idx) { if (!renderer(DrawList, cull_rect, uv, idx)) prims_culled++; } } if (prims_culled > 0) DrawList.PrimUnreserve(prims_culled * Renderer::IdxConsumed, prims_culled * Renderer::VtxConsumed); }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rsi, %rbx movl 0x18(%rdi), %esi movq 0x38(%rbx), %rax movq (%rax), %rax movq %rax, 0x8(%rsp) testl %esi, %esi je 0x2e7d25 movq %rdx, %r14 movq %rdi, %r15 xorl %r12d, %r12d leaq 0x8(%rsp), %rcx xorl %ebp, %ebp movl 0x34(%rbx), %edi movl %edi, %eax notl %eax movl $0xcccccccd, %edx # imm = 0xCCCCCCCD imulq %rdx, %rax shrq $0x22, %rax cmpl %eax, %esi movl %eax, %r13d cmovbl %esi, %r13d cmpl $0x40, %esi movl $0x40, %edx cmovbl %esi, %edx cmpl %edx, %eax jae 0x2e7c88 testl %ebp, %ebp je 0x2e7c74 leal (,%rbp,2), %eax movl %esi, %r13d leal (%rax,%rax,2), %esi leal (%rbp,%rbp,4), %edx movq %rbx, %rdi callq 0xe0140 movl %r13d, %esi movl $0x33333333, %eax # imm = 0x33333333 cmpl %eax, %esi movl $0x33333333, %eax # imm = 0x33333333 cmovbl %esi, %eax movl %eax, %r13d jmp 0x2e7c94 movl %ebp, %eax subl %r13d, %eax jae 0x2e7cf9 movl %r13d, %eax subl %ebp, %eax movl %esi, %ebp leal (%rax,%rax), %ecx leal (%rcx,%rcx,2), %esi leal (%rax,%rax,4), %edx movq %rbx, %rdi callq 0xe3170 subl %r13d, %ebp movl %ebp, 0x4(%rsp) xorl %eax, %eax leaq 0x8(%rsp), %rcx leal (%r12,%r13), %edx movl %edx, 0x14(%rsp) movl %eax, %ebp movq %r15, %rdi movq %rbx, %rsi movq %r14, %rdx movl %r12d, %r8d callq 0xe2950 leaq 0x8(%rsp), %rcx xorb $0x1, %al movzbl %al, %eax addl %eax, %ebp incl %r12d decl %r13d jne 0x2e7cbf movl 0x14(%rsp), %eax movl %eax, %r12d movl 0x4(%rsp), %esi testl %esi, %esi jne 0x2e7c28 jmp 0x2e7d0b subl %r13d, %esi cmpl $-0x6, %edi jbe 0x2e7d05 movl %eax, %ebp jmp 0x2e7cef movl %esi, 0x4(%rsp) jmp 0x2e7cb5 testl %ebp, %ebp je 0x2e7d25 leal (,%rbp,2), %eax leal (%rax,%rax,2), %esi leal (%rbp,%rbp,4), %edx movq %rbx, %rdi callq 0xe0140 addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
void ImPlot::RenderPrimitives<ImPlot::ShadedRenderer<ImPlot::GetterXsYs<unsigned int>, ImPlot::GetterXsYs<unsigned int>, ImPlot::TransformerLogLog>>(ImPlot::ShadedRenderer<ImPlot::GetterXsYs<unsigned int>, ImPlot::GetterXsYs<unsigned int>, ImPlot::TransformerLogLog> const&, ImDrawList&, ImRect const&)
inline void RenderPrimitives(const Renderer& renderer, ImDrawList& DrawList, const ImRect& cull_rect) { unsigned int prims = renderer.Prims; unsigned int prims_culled = 0; unsigned int idx = 0; const ImVec2 uv = DrawList._Data->TexUvWhitePixel; while (prims) { // find how many can be reserved up to end of current draw command's limit unsigned int cnt = ImMin(prims, (MaxIdx<ImDrawIdx>::Value - DrawList._VtxCurrentIdx) / Renderer::VtxConsumed); // make sure at least this many elements can be rendered to avoid situations where at the end of buffer this slow path is not taken all the time if (cnt >= ImMin(64u, prims)) { if (prims_culled >= cnt) prims_culled -= cnt; // reuse previous reservation else { DrawList.PrimReserve((cnt - prims_culled) * Renderer::IdxConsumed, (cnt - prims_culled) * Renderer::VtxConsumed); // add more elements to previous reservation prims_culled = 0; } } else { if (prims_culled > 0) { DrawList.PrimUnreserve(prims_culled * Renderer::IdxConsumed, prims_culled * Renderer::VtxConsumed); prims_culled = 0; } cnt = ImMin(prims, (MaxIdx<ImDrawIdx>::Value - 0/*DrawList._VtxCurrentIdx*/) / Renderer::VtxConsumed); DrawList.PrimReserve(cnt * Renderer::IdxConsumed, cnt * Renderer::VtxConsumed); // reserve new draw command } prims -= cnt; for (unsigned int ie = idx + cnt; idx != ie; ++idx) { if (!renderer(DrawList, cull_rect, uv, idx)) prims_culled++; } } if (prims_culled > 0) DrawList.PrimUnreserve(prims_culled * Renderer::IdxConsumed, prims_culled * Renderer::VtxConsumed); }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rsi, %rbx movl 0x18(%rdi), %esi movq 0x38(%rbx), %rax movq (%rax), %rax movq %rax, 0x8(%rsp) testl %esi, %esi je 0x2e9b37 movq %rdx, %r14 movq %rdi, %r15 xorl %r12d, %r12d leaq 0x8(%rsp), %rcx xorl %ebp, %ebp movl 0x34(%rbx), %edi movl %edi, %eax notl %eax movl $0xcccccccd, %edx # imm = 0xCCCCCCCD imulq %rdx, %rax shrq $0x22, %rax cmpl %eax, %esi movl %eax, %r13d cmovbl %esi, %r13d cmpl $0x40, %esi movl $0x40, %edx cmovbl %esi, %edx cmpl %edx, %eax jae 0x2e9a9a testl %ebp, %ebp je 0x2e9a86 leal (,%rbp,2), %eax movl %esi, %r13d leal (%rax,%rax,2), %esi leal (%rbp,%rbp,4), %edx movq %rbx, %rdi callq 0xe0140 movl %r13d, %esi movl $0x33333333, %eax # imm = 0x33333333 cmpl %eax, %esi movl $0x33333333, %eax # imm = 0x33333333 cmovbl %esi, %eax movl %eax, %r13d jmp 0x2e9aa6 movl %ebp, %eax subl %r13d, %eax jae 0x2e9b0b movl %r13d, %eax subl %ebp, %eax movl %esi, %ebp leal (%rax,%rax), %ecx leal (%rcx,%rcx,2), %esi leal (%rax,%rax,4), %edx movq %rbx, %rdi callq 0xe3170 subl %r13d, %ebp movl %ebp, 0x4(%rsp) xorl %eax, %eax leaq 0x8(%rsp), %rcx leal (%r12,%r13), %edx movl %edx, 0x14(%rsp) movl %eax, %ebp movq %r15, %rdi movq %rbx, %rsi movq %r14, %rdx movl %r12d, %r8d callq 0xe10b0 leaq 0x8(%rsp), %rcx xorb $0x1, %al movzbl %al, %eax addl %eax, %ebp incl %r12d decl %r13d jne 0x2e9ad1 movl 0x14(%rsp), %eax movl %eax, %r12d movl 0x4(%rsp), %esi testl %esi, %esi jne 0x2e9a3a jmp 0x2e9b1d subl %r13d, %esi cmpl $-0x6, %edi jbe 0x2e9b17 movl %eax, %ebp jmp 0x2e9b01 movl %esi, 0x4(%rsp) jmp 0x2e9ac7 testl %ebp, %ebp je 0x2e9b37 leal (,%rbp,2), %eax leal (%rax,%rax,2), %esi leal (%rbp,%rbp,4), %edx movq %rbx, %rdi callq 0xe0140 addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
ImPlot::ShadedRenderer<ImPlot::GetterXsYs<unsigned int>, ImPlot::GetterXsYs<unsigned int>, ImPlot::TransformerLinLin>::operator()(ImDrawList&, ImRect const&, ImVec2 const&, int) const
inline bool operator()(ImDrawList& DrawList, const ImRect& /*cull_rect*/, const ImVec2& uv, int prim) const { // TODO: Culling ImVec2 P21 = Transformer(Getter1(prim+1)); ImVec2 P22 = Transformer(Getter2(prim+1)); const int intersect = (P11.y > P12.y && P22.y > P21.y) || (P12.y > P11.y && P21.y > P22.y); ImVec2 intersection = Intersection(P11,P21,P12,P22); DrawList._VtxWritePtr[0].pos = P11; DrawList._VtxWritePtr[0].uv = uv; DrawList._VtxWritePtr[0].col = Col; DrawList._VtxWritePtr[1].pos = P21; DrawList._VtxWritePtr[1].uv = uv; DrawList._VtxWritePtr[1].col = Col; DrawList._VtxWritePtr[2].pos = intersection; DrawList._VtxWritePtr[2].uv = uv; DrawList._VtxWritePtr[2].col = Col; DrawList._VtxWritePtr[3].pos = P12; DrawList._VtxWritePtr[3].uv = uv; DrawList._VtxWritePtr[3].col = Col; DrawList._VtxWritePtr[4].pos = P22; DrawList._VtxWritePtr[4].uv = uv; DrawList._VtxWritePtr[4].col = Col; DrawList._VtxWritePtr += 5; DrawList._IdxWritePtr[0] = (ImDrawIdx)(DrawList._VtxCurrentIdx); DrawList._IdxWritePtr[1] = (ImDrawIdx)(DrawList._VtxCurrentIdx + 1 + intersect); DrawList._IdxWritePtr[2] = (ImDrawIdx)(DrawList._VtxCurrentIdx + 3); DrawList._IdxWritePtr[3] = (ImDrawIdx)(DrawList._VtxCurrentIdx + 1); DrawList._IdxWritePtr[4] = (ImDrawIdx)(DrawList._VtxCurrentIdx + 3 - intersect); DrawList._IdxWritePtr[5] = (ImDrawIdx)(DrawList._VtxCurrentIdx + 4); DrawList._IdxWritePtr += 6; DrawList._VtxCurrentIdx += 5; P11 = P21; P12 = P22; return true; }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx movq 0x10(%rdi), %r11 incl %r8d movq (%rdi), %r10 movq 0x8(%rdi), %r9 movl 0x10(%r10), %ebx movslq 0x18(%r10), %r14 movl 0x14(%r10), %eax addl %r8d, %eax cltd idivl %ebx leal (%rdx,%rbx), %eax cltd idivl %ebx movslq %edx, %r15 imulq %r14, %r15 movq (%r10), %r12 movq 0x8(%r10), %r13 movq 0x1805a9(%rip), %rax # 0x46a3f0 movq (%rax), %r10 movslq (%r11), %r11 movq 0x28(%r10), %rbx movl 0x10(%r9), %ebp movslq 0x18(%r9), %r14 addl 0x14(%r9), %r8d movl %r8d, %eax cltd idivl %ebp leal (%rdx,%rbp), %eax cltd idivl %ebp movss (%r13,%r15), %xmm3 movss (%r12,%r15), %xmm0 movq %r11, %rax shlq $0x4, %rax cvtps2pd 0x164(%r10,%rax), %xmm1 movsd 0x198(%r10), %xmm2 movhpd 0x1a0(%r10,%r11,8), %xmm2 # xmm2 = xmm2[0],mem[0] shlq $0x7, %r11 movsd 0x18(%rbx), %xmm4 movhpd 0x98(%rbx,%r11), %xmm4 # xmm4 = xmm4[0],mem[0] movslq %edx, %rax imulq %r14, %rax movq (%r9), %rdx movq 0x8(%r9), %r8 unpcklps %xmm3, %xmm0 # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1] xorpd %xmm3, %xmm3 unpcklps %xmm3, %xmm0 # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1] movapd 0xbf874(%rip), %xmm5 # 0x3a9740 orpd %xmm5, %xmm0 subpd %xmm5, %xmm0 subpd %xmm4, %xmm0 mulpd %xmm2, %xmm0 addpd %xmm1, %xmm0 cvtpd2ps %xmm0, %xmm0 movss (%r8,%rax), %xmm6 movss (%rdx,%rax), %xmm7 unpcklps %xmm6, %xmm7 # xmm7 = xmm7[0],xmm6[0],xmm7[1],xmm6[1] unpcklps %xmm3, %xmm7 # xmm7 = xmm7[0],xmm3[0],xmm7[1],xmm3[1] orpd %xmm5, %xmm7 subpd %xmm5, %xmm7 subpd %xmm4, %xmm7 mulpd %xmm2, %xmm7 addpd %xmm1, %xmm7 cvtpd2ps %xmm7, %xmm1 movsd 0x20(%rdi), %xmm4 movsd 0x28(%rdi), %xmm3 movaps %xmm3, %xmm6 shufps $0x55, %xmm3, %xmm6 # xmm6 = xmm6[1,1],xmm3[1,1] movaps %xmm4, %xmm7 shufps $0x55, %xmm4, %xmm7 # xmm7 = xmm7[1,1],xmm4[1,1] movapd %xmm1, %xmm8 shufps $0x55, %xmm1, %xmm8 # xmm8 = xmm8[1,1],xmm1[1,1] movapd %xmm0, %xmm2 shufps $0x55, %xmm0, %xmm2 # xmm2 = xmm2[1,1],xmm0[1,1] movaps %xmm2, %xmm5 cmpltps %xmm8, %xmm5 movaps %xmm6, %xmm9 cmpltps %xmm7, %xmm9 andps %xmm5, %xmm9 movd %xmm9, %edx movaps %xmm3, %xmm5 mulss %xmm8, %xmm5 cmpltps %xmm2, %xmm8 movaps %xmm0, %xmm9 mulss %xmm7, %xmm9 cmpltps %xmm6, %xmm7 andps %xmm8, %xmm7 movd %xmm7, %eax orl %edx, %eax mulss %xmm4, %xmm2 subss %xmm9, %xmm2 mulss %xmm1, %xmm6 subss %xmm6, %xmm5 subps %xmm0, %xmm4 subps %xmm1, %xmm3 movaps %xmm3, %xmm6 shufps $0x55, %xmm3, %xmm6 # xmm6 = xmm6[1,1],xmm3[1,1] mulss %xmm4, %xmm6 unpcklps %xmm5, %xmm5 # xmm5 = xmm5[0,0,1,1] mulps %xmm4, %xmm5 shufps $0x55, %xmm4, %xmm4 # xmm4 = xmm4[1,1,1,1] mulss %xmm3, %xmm4 subss %xmm4, %xmm6 unpcklps %xmm2, %xmm2 # xmm2 = xmm2[0,0,1,1] mulps %xmm3, %xmm2 subps %xmm5, %xmm2 unpcklps %xmm6, %xmm6 # xmm6 = xmm6[0,0,1,1] divps %xmm6, %xmm2 movq 0x48(%rsi), %rdx movq 0x20(%rdi), %r8 movq %r8, (%rdx) movq 0x48(%rsi), %rdx movq (%rcx), %r8 movq %r8, 0x8(%rdx) movl 0x1c(%rdi), %edx movq 0x48(%rsi), %r8 movl %edx, 0x10(%r8) movlpd %xmm0, 0x14(%r8) movq 0x48(%rsi), %rdx movq (%rcx), %r8 movq %r8, 0x1c(%rdx) movl 0x1c(%rdi), %edx movq 0x48(%rsi), %r8 movl %edx, 0x24(%r8) movlps %xmm2, 0x28(%r8) movq 0x48(%rsi), %rdx movq (%rcx), %r8 movq %r8, 0x30(%rdx) movl 0x1c(%rdi), %edx movq 0x48(%rsi), %r8 movl %edx, 0x38(%r8) movq 0x28(%rdi), %rdx movq %rdx, 0x3c(%r8) movq 0x48(%rsi), %rdx movq (%rcx), %r8 movq %r8, 0x44(%rdx) movl 0x1c(%rdi), %edx movq 0x48(%rsi), %r8 movl %edx, 0x4c(%r8) movlpd %xmm1, 0x50(%r8) movq 0x48(%rsi), %rdx movq (%rcx), %rcx movq %rcx, 0x58(%rdx) movl 0x1c(%rdi), %ecx movq 0x48(%rsi), %rdx movl %ecx, 0x60(%rdx) addq $0x64, %rdx movq %rdx, 0x48(%rsi) movl 0x34(%rsi), %ecx movq 0x50(%rsi), %rdx movl %ecx, (%rdx) andl $0x1, %eax addl %eax, %ecx incl %ecx movl %ecx, 0x4(%rdx) movl 0x34(%rsi), %ecx addl $0x3, %ecx movl %ecx, 0x8(%rdx) movl 0x34(%rsi), %ecx incl %ecx movl %ecx, 0xc(%rdx) xorl $0x3, %eax addl 0x34(%rsi), %eax movl %eax, 0x10(%rdx) movl 0x34(%rsi), %eax addl $0x4, %eax movl %eax, 0x14(%rdx) addq $0x18, %rdx movq %rdx, 0x50(%rsi) addl $0x5, 0x34(%rsi) movlhps %xmm1, %xmm0 # xmm0 = xmm0[0],xmm1[0] movups %xmm0, 0x20(%rdi) movb $0x1, %al popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq nop
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
ImPlot::ShadedRenderer<ImPlot::GetterXsYs<long long>, ImPlot::GetterXsYs<long long>, ImPlot::TransformerLinLog>::ShadedRenderer(ImPlot::GetterXsYs<long long> const&, ImPlot::GetterXsYs<long long> const&, ImPlot::TransformerLinLog const&, unsigned int)
ShadedRenderer(const TGetter1& getter1, const TGetter2& getter2, const TTransformer& transformer, ImU32 col) : Getter1(getter1), Getter2(getter2), Transformer(transformer), Prims(ImMin(Getter1.Count, Getter2.Count) - 1), Col(col) { P11 = Transformer(Getter1(0)); P12 = Transformer(Getter2(0)); }
pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rcx, %r14 movq %rdi, %rbx movq %rsi, (%rdi) movq %rdx, 0x8(%rdi) movq %rcx, 0x10(%rdi) movl 0x10(%rsi), %ecx movl 0x10(%rdx), %eax cmpl %eax, %ecx cmovll %ecx, %eax decl %eax movl %eax, 0x18(%rdi) movl %r8d, 0x1c(%rdi) xorps %xmm0, %xmm0 movups %xmm0, 0x20(%rdi) movl 0x14(%rsi), %eax movslq 0x18(%rsi), %rdi cltd idivl %ecx leal (%rdx,%rcx), %eax cltd idivl %ecx movslq %edx, %rax imulq %rdi, %rax movq (%rsi), %rcx movq 0x8(%rsi), %rdx xorps %xmm0, %xmm0 cvtsi2sdq (%rcx,%rax), %xmm0 movapd %xmm0, (%rsp) xorps %xmm0, %xmm0 cvtsi2sdq (%rdx,%rax), %xmm0 movq 0x17f09b(%rip), %r15 # 0x46a3f0 movq (%r15), %r12 movq 0x28(%r12), %rax movslq (%r14), %rcx shlq $0x7, %rcx divsd 0x98(%rax,%rcx), %xmm0 callq 0xe2ca0 movslq (%r14), %rcx divsd 0x1c0(%r12,%rcx,8), %xmm0 movq 0x28(%r12), %rax movq %rcx, %rdx movsd 0x198(%r12), %xmm1 movhpd 0x1a0(%r12,%rcx,8), %xmm1 # xmm1 = xmm1[0],mem[0] shlq $0x7, %rcx movsd 0x98(%rax,%rcx), %xmm2 movsd 0xa0(%rax,%rcx), %xmm3 cvtsd2ss %xmm0, %xmm0 subsd %xmm2, %xmm3 cvtss2sd %xmm0, %xmm0 mulsd %xmm3, %xmm0 addsd %xmm2, %xmm0 movapd (%rsp), %xmm3 unpcklpd %xmm0, %xmm3 # xmm3 = xmm3[0],xmm0[0] shlq $0x4, %rdx movsd 0x18(%rax), %xmm0 unpcklpd %xmm2, %xmm0 # xmm0 = xmm0[0],xmm2[0] cvtps2pd 0x164(%r12,%rdx), %xmm2 subpd %xmm0, %xmm3 mulpd %xmm3, %xmm1 addpd %xmm2, %xmm1 cvtpd2ps %xmm1, %xmm0 movlpd %xmm0, 0x20(%rbx) movq 0x8(%rbx), %rcx movq 0x10(%rbx), %r12 movl 0x10(%rcx), %esi movl 0x14(%rcx), %eax movslq 0x18(%rcx), %rdi cltd idivl %esi leal (%rdx,%rsi), %eax cltd idivl %esi movslq %edx, %rax imulq %rdi, %rax movq (%rcx), %rdx movq 0x8(%rcx), %rcx xorps %xmm0, %xmm0 cvtsi2sdq (%rdx,%rax), %xmm0 movapd %xmm0, (%rsp) xorps %xmm0, %xmm0 cvtsi2sdq (%rcx,%rax), %xmm0 movq (%r15), %r14 movq 0x28(%r14), %rax movslq (%r12), %rcx shlq $0x7, %rcx divsd 0x98(%rax,%rcx), %xmm0 callq 0xe2ca0 movslq (%r12), %rcx divsd 0x1c0(%r14,%rcx,8), %xmm0 movq 0x28(%r14), %rax movq %rcx, %rdx movsd 0x198(%r14), %xmm1 movhpd 0x1a0(%r14,%rcx,8), %xmm1 # xmm1 = xmm1[0],mem[0] shlq $0x7, %rcx movsd 0x98(%rax,%rcx), %xmm2 movsd 0xa0(%rax,%rcx), %xmm3 cvtsd2ss %xmm0, %xmm0 subsd %xmm2, %xmm3 cvtss2sd %xmm0, %xmm0 mulsd %xmm3, %xmm0 addsd %xmm2, %xmm0 movapd (%rsp), %xmm3 unpcklpd %xmm0, %xmm3 # xmm3 = xmm3[0],xmm0[0] shlq $0x4, %rdx movsd 0x18(%rax), %xmm0 unpcklpd %xmm2, %xmm0 # xmm0 = xmm0[0],xmm2[0] cvtps2pd 0x164(%r14,%rdx), %xmm2 subpd %xmm0, %xmm3 mulpd %xmm3, %xmm1 addpd %xmm2, %xmm1 cvtpd2ps %xmm1, %xmm0 movlpd %xmm0, 0x28(%rbx) addq $0x18, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
ImPlot::ShadedRenderer<ImPlot::GetterXsYs<long long>, ImPlot::GetterXsYs<long long>, ImPlot::TransformerLogLog>::operator()(ImDrawList&, ImRect const&, ImVec2 const&, int) const
inline bool operator()(ImDrawList& DrawList, const ImRect& /*cull_rect*/, const ImVec2& uv, int prim) const { // TODO: Culling ImVec2 P21 = Transformer(Getter1(prim+1)); ImVec2 P22 = Transformer(Getter2(prim+1)); const int intersect = (P11.y > P12.y && P22.y > P21.y) || (P12.y > P11.y && P21.y > P22.y); ImVec2 intersection = Intersection(P11,P21,P12,P22); DrawList._VtxWritePtr[0].pos = P11; DrawList._VtxWritePtr[0].uv = uv; DrawList._VtxWritePtr[0].col = Col; DrawList._VtxWritePtr[1].pos = P21; DrawList._VtxWritePtr[1].uv = uv; DrawList._VtxWritePtr[1].col = Col; DrawList._VtxWritePtr[2].pos = intersection; DrawList._VtxWritePtr[2].uv = uv; DrawList._VtxWritePtr[2].col = Col; DrawList._VtxWritePtr[3].pos = P12; DrawList._VtxWritePtr[3].uv = uv; DrawList._VtxWritePtr[3].col = Col; DrawList._VtxWritePtr[4].pos = P22; DrawList._VtxWritePtr[4].uv = uv; DrawList._VtxWritePtr[4].col = Col; DrawList._VtxWritePtr += 5; DrawList._IdxWritePtr[0] = (ImDrawIdx)(DrawList._VtxCurrentIdx); DrawList._IdxWritePtr[1] = (ImDrawIdx)(DrawList._VtxCurrentIdx + 1 + intersect); DrawList._IdxWritePtr[2] = (ImDrawIdx)(DrawList._VtxCurrentIdx + 3); DrawList._IdxWritePtr[3] = (ImDrawIdx)(DrawList._VtxCurrentIdx + 1); DrawList._IdxWritePtr[4] = (ImDrawIdx)(DrawList._VtxCurrentIdx + 3 - intersect); DrawList._IdxWritePtr[5] = (ImDrawIdx)(DrawList._VtxCurrentIdx + 4); DrawList._IdxWritePtr += 6; DrawList._VtxCurrentIdx += 5; P11 = P21; P12 = P22; return true; }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x58, %rsp movq %rcx, %r15 movq %rsi, %r14 movq %rdi, %rbx movq (%rdi), %rcx movq 0x10(%rdi), %r13 leal 0x1(%r8), %ebp movl 0x10(%rcx), %esi movslq 0x18(%rcx), %rdi movl 0x14(%rcx), %eax addl %ebp, %eax cltd idivl %esi leal (%rdx,%rsi), %eax cltd idivl %esi movslq %edx, %rax imulq %rdi, %rax movq (%rcx), %rdx cvtsi2sdq (%rdx,%rax), %xmm0 movq 0x8(%rcx), %rcx cvtsi2sdq (%rcx,%rax), %xmm1 movsd %xmm1, 0x10(%rsp) movq 0x17e126(%rip), %rax # 0x46a3f0 movq (%rax), %r12 movq 0x28(%r12), %rax divsd 0x18(%rax), %xmm0 callq 0xe2ca0 movq 0x28(%r12), %rax movslq (%r13), %rcx shlq $0x7, %rcx movsd 0x10(%rsp), %xmm1 divsd 0x98(%rax,%rcx), %xmm1 movapd %xmm0, (%rsp) movsd 0x1b8(%r12), %xmm0 movaps %xmm0, 0x20(%rsp) movsd 0x18(%rax), %xmm0 movaps %xmm0, 0x10(%rsp) movsd 0x20(%rax), %xmm0 movaps %xmm0, 0x30(%rsp) movapd %xmm1, %xmm0 callq 0xe2ca0 movslq (%r13), %r8 movq 0x28(%r12), %rcx movq %r8, %rsi movq 0x8(%rbx), %rdi movq 0x10(%rbx), %r13 movl 0x10(%rdi), %r10d addl 0x14(%rdi), %ebp movslq 0x18(%rdi), %r9 movl %ebp, %eax cltd idivl %r10d leal (%rdx,%r10), %eax cltd idivl %r10d movapd 0x20(%rsp), %xmm4 movhpd 0x1c0(%r12,%r8,8), %xmm4 # xmm4 = xmm4[0],mem[0] movsd 0x198(%r12), %xmm2 movhpd 0x1a0(%r12,%r8,8), %xmm2 # xmm2 = xmm2[0],mem[0] shlq $0x7, %r8 shlq $0x4, %rsi movslq %edx, %rax imulq %r9, %rax movq (%rdi), %rdx movq 0x8(%rdi), %rdi xorps %xmm1, %xmm1 cvtsi2sdq (%rdx,%rax), %xmm1 movapd (%rsp), %xmm3 unpcklpd %xmm0, %xmm3 # xmm3 = xmm3[0],xmm0[0] xorps %xmm0, %xmm0 cvtsi2sdq (%rdi,%rax), %xmm0 movsd %xmm0, (%rsp) movq 0x17e039(%rip), %rax # 0x46a3f0 movq (%rax), %rbp movq 0x28(%rbp), %rax divsd 0x18(%rax), %xmm1 divpd %xmm4, %xmm3 cvtpd2ps %xmm3, %xmm0 movapd 0x30(%rsp), %xmm6 movhpd 0xa0(%rcx,%r8), %xmm6 # xmm6 = xmm6[0],mem[0] movsd 0x98(%rcx,%r8), %xmm3 movapd 0x10(%rsp), %xmm4 unpcklpd %xmm3, %xmm4 # xmm4 = xmm4[0],xmm3[0] cvtps2pd %xmm0, %xmm0 subpd %xmm4, %xmm6 movapd %xmm4, %xmm5 mulpd %xmm6, %xmm0 cvtps2pd 0x164(%r12,%rsi), %xmm4 addpd %xmm5, %xmm0 movsd 0x18(%rcx), %xmm5 unpcklpd %xmm3, %xmm5 # xmm5 = xmm5[0],xmm3[0] subpd %xmm5, %xmm0 mulpd %xmm0, %xmm2 addpd %xmm4, %xmm2 cvtpd2ps %xmm2, %xmm0 movapd %xmm0, 0x10(%rsp) movapd %xmm1, %xmm0 callq 0xe2ca0 movq 0x28(%rbp), %rax movslq (%r13), %rcx shlq $0x7, %rcx movsd (%rsp), %xmm1 divsd 0x98(%rax,%rcx), %xmm1 movapd %xmm0, 0x40(%rsp) movsd 0x1b8(%rbp), %xmm0 movaps %xmm0, 0x20(%rsp) movsd 0x18(%rax), %xmm0 movaps %xmm0, 0x30(%rsp) movsd 0x20(%rax), %xmm0 movaps %xmm0, (%rsp) movapd %xmm1, %xmm0 callq 0xe2ca0 movslq (%r13), %rcx movapd 0x40(%rsp), %xmm1 unpcklpd %xmm0, %xmm1 # xmm1 = xmm1[0],xmm0[0] movapd 0x20(%rsp), %xmm0 movhpd 0x1c0(%rbp,%rcx,8), %xmm0 # xmm0 = xmm0[0],mem[0] divpd %xmm0, %xmm1 movq 0x28(%rbp), %rax movq %rcx, %rdx movsd 0x198(%rbp), %xmm0 movhpd 0x1a0(%rbp,%rcx,8), %xmm0 # xmm0 = xmm0[0],mem[0] shlq $0x7, %rcx cvtpd2ps %xmm1, %xmm1 movapd (%rsp), %xmm4 movhpd 0xa0(%rax,%rcx), %xmm4 # xmm4 = xmm4[0],mem[0] movsd 0x98(%rax,%rcx), %xmm2 movapd 0x30(%rsp), %xmm3 unpcklpd %xmm2, %xmm3 # xmm3 = xmm3[0],xmm2[0] subpd %xmm3, %xmm4 cvtps2pd %xmm1, %xmm1 mulpd %xmm4, %xmm1 addpd %xmm3, %xmm1 shlq $0x4, %rdx cvtps2pd 0x164(%rbp,%rdx), %xmm3 movsd 0x18(%rax), %xmm4 unpcklpd %xmm2, %xmm4 # xmm4 = xmm4[0],xmm2[0] subpd %xmm4, %xmm1 mulpd %xmm1, %xmm0 addpd %xmm3, %xmm0 cvtpd2ps %xmm0, %xmm0 movsd 0x20(%rbx), %xmm3 movsd 0x28(%rbx), %xmm2 movaps %xmm2, %xmm5 shufps $0x55, %xmm2, %xmm5 # xmm5 = xmm5[1,1],xmm2[1,1] movaps %xmm3, %xmm6 shufps $0x55, %xmm3, %xmm6 # xmm6 = xmm6[1,1],xmm3[1,1] movapd %xmm0, %xmm7 shufps $0x55, %xmm0, %xmm7 # xmm7 = xmm7[1,1],xmm0[1,1] movaps 0x10(%rsp), %xmm9 movaps %xmm9, %xmm1 shufps $0x55, %xmm9, %xmm1 # xmm1 = xmm1[1,1],xmm9[1,1] movaps %xmm1, %xmm4 cmpltps %xmm7, %xmm4 movaps %xmm5, %xmm8 cmpltps %xmm6, %xmm8 andps %xmm4, %xmm8 movd %xmm8, %ecx movaps %xmm2, %xmm4 mulss %xmm7, %xmm4 cmpltps %xmm1, %xmm7 movaps %xmm9, %xmm8 mulss %xmm6, %xmm8 cmpltps %xmm5, %xmm6 andps %xmm7, %xmm6 movd %xmm6, %eax orl %ecx, %eax mulss %xmm3, %xmm1 subss %xmm8, %xmm1 mulss %xmm0, %xmm5 subss %xmm5, %xmm4 subps %xmm9, %xmm3 subps %xmm0, %xmm2 movaps %xmm2, %xmm5 shufps $0x55, %xmm2, %xmm5 # xmm5 = xmm5[1,1],xmm2[1,1] mulss %xmm3, %xmm5 unpcklps %xmm4, %xmm4 # xmm4 = xmm4[0,0,1,1] mulps %xmm3, %xmm4 shufps $0x55, %xmm3, %xmm3 # xmm3 = xmm3[1,1,1,1] mulss %xmm2, %xmm3 subss %xmm3, %xmm5 unpcklps %xmm1, %xmm1 # xmm1 = xmm1[0,0,1,1] mulps %xmm2, %xmm1 subps %xmm4, %xmm1 unpcklps %xmm5, %xmm5 # xmm5 = xmm5[0,0,1,1] divps %xmm5, %xmm1 movq 0x48(%r14), %rcx movq 0x20(%rbx), %rdx movq %rdx, (%rcx) movq 0x48(%r14), %rcx movq (%r15), %rdx movq %rdx, 0x8(%rcx) movl 0x1c(%rbx), %ecx movq 0x48(%r14), %rdx movl %ecx, 0x10(%rdx) movlps %xmm9, 0x14(%rdx) movq 0x48(%r14), %rcx movq (%r15), %rdx movq %rdx, 0x1c(%rcx) movl 0x1c(%rbx), %ecx movq 0x48(%r14), %rdx movl %ecx, 0x24(%rdx) movlps %xmm1, 0x28(%rdx) movq 0x48(%r14), %rcx movq (%r15), %rdx movq %rdx, 0x30(%rcx) movl 0x1c(%rbx), %ecx movq 0x48(%r14), %rdx movl %ecx, 0x38(%rdx) movq 0x28(%rbx), %rcx movq %rcx, 0x3c(%rdx) movq 0x48(%r14), %rcx movq (%r15), %rdx movq %rdx, 0x44(%rcx) movl 0x1c(%rbx), %ecx movq 0x48(%r14), %rdx movl %ecx, 0x4c(%rdx) movlpd %xmm0, 0x50(%rdx) movq 0x48(%r14), %rcx movq (%r15), %rdx movq %rdx, 0x58(%rcx) movl 0x1c(%rbx), %ecx movq 0x48(%r14), %rdx movl %ecx, 0x60(%rdx) addq $0x64, %rdx movq %rdx, 0x48(%r14) movl 0x34(%r14), %ecx movq 0x50(%r14), %rdx movl %ecx, (%rdx) andl $0x1, %eax addl %eax, %ecx incl %ecx movl %ecx, 0x4(%rdx) movl 0x34(%r14), %ecx addl $0x3, %ecx movl %ecx, 0x8(%rdx) movl 0x34(%r14), %ecx incl %ecx movl %ecx, 0xc(%rdx) xorl $0x3, %eax addl 0x34(%r14), %eax movl %eax, 0x10(%rdx) movl 0x34(%r14), %eax addl $0x4, %eax movl %eax, 0x14(%rdx) addq $0x18, %rdx movq %rdx, 0x50(%r14) addl $0x5, 0x34(%r14) movaps %xmm9, %xmm1 movlhps %xmm0, %xmm1 # xmm1 = xmm1[0],xmm0[0] movups %xmm1, 0x20(%rbx) movb $0x1, %al addq $0x58, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
ImPlot::ShadedRenderer<ImPlot::GetterXsYs<unsigned long long>, ImPlot::GetterXsYs<unsigned long long>, ImPlot::TransformerLogLog>::ShadedRenderer(ImPlot::GetterXsYs<unsigned long long> const&, ImPlot::GetterXsYs<unsigned long long> const&, ImPlot::TransformerLogLog const&, unsigned int)
ShadedRenderer(const TGetter1& getter1, const TGetter2& getter2, const TTransformer& transformer, ImU32 col) : Getter1(getter1), Getter2(getter2), Transformer(transformer), Prims(ImMin(Getter1.Count, Getter2.Count) - 1), Col(col) { P11 = Transformer(Getter1(0)); P12 = Transformer(Getter2(0)); }
pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x48, %rsp movq %rcx, %r14 movq %rdi, %rbx movq %rsi, (%rdi) movq %rdx, 0x8(%rdi) movq %rcx, 0x10(%rdi) movl 0x10(%rsi), %ecx movl 0x10(%rdx), %eax cmpl %eax, %ecx cmovll %ecx, %eax decl %eax movl %eax, 0x18(%rdi) movl %r8d, 0x1c(%rdi) xorps %xmm0, %xmm0 movups %xmm0, 0x20(%rdi) movl 0x14(%rsi), %eax movslq 0x18(%rsi), %rdi cltd idivl %ecx leal (%rdx,%rcx), %eax cltd idivl %ecx movslq %edx, %rax imulq %rdi, %rax movq (%rsi), %rcx movq 0x8(%rsi), %rdx movsd (%rcx,%rax), %xmm1 movsd 0x90198(%rip), %xmm2 # 0x37d3f0 unpcklps %xmm2, %xmm1 # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1] movapd 0x9019d(%rip), %xmm3 # 0x37d400 subpd %xmm3, %xmm1 movapd %xmm1, %xmm0 unpckhpd %xmm1, %xmm0 # xmm0 = xmm0[1],xmm1[1] addsd %xmm1, %xmm0 movsd (%rdx,%rax), %xmm1 unpcklps %xmm2, %xmm1 # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1] subpd %xmm3, %xmm1 movapd %xmm1, %xmm2 unpckhpd %xmm1, %xmm2 # xmm2 = xmm2[1],xmm1[1] addsd %xmm1, %xmm2 movapd %xmm2, (%rsp) movq 0x17d159(%rip), %r15 # 0x46a3f0 movq (%r15), %r12 movq 0x28(%r12), %rax divsd 0x18(%rax), %xmm0 callq 0xe2ca0 movq 0x28(%r12), %rax movslq (%r14), %rcx shlq $0x7, %rcx movapd (%rsp), %xmm1 divsd 0x98(%rax,%rcx), %xmm1 movapd %xmm0, 0x20(%rsp) movsd 0x1b8(%r12), %xmm0 movaps %xmm0, 0x10(%rsp) movsd 0x18(%rax), %xmm0 movaps %xmm0, (%rsp) movsd 0x20(%rax), %xmm0 movaps %xmm0, 0x30(%rsp) movapd %xmm1, %xmm0 callq 0xe2ca0 movslq (%r14), %rdx movq 0x28(%r12), %rax movq %rdx, %rcx movapd 0x10(%rsp), %xmm2 movhpd 0x1c0(%r12,%rdx,8), %xmm2 # xmm2 = xmm2[0],mem[0] movapd 0x20(%rsp), %xmm1 unpcklpd %xmm0, %xmm1 # xmm1 = xmm1[0],xmm0[0] movsd 0x198(%r12), %xmm0 movhpd 0x1a0(%r12,%rdx,8), %xmm0 # xmm0 = xmm0[0],mem[0] shlq $0x7, %rdx shlq $0x4, %rcx divpd %xmm2, %xmm1 cvtpd2ps %xmm1, %xmm1 movapd 0x30(%rsp), %xmm5 movhpd 0xa0(%rax,%rdx), %xmm5 # xmm5 = xmm5[0],mem[0] movsd 0x98(%rax,%rdx), %xmm2 movapd (%rsp), %xmm3 unpcklpd %xmm2, %xmm3 # xmm3 = xmm3[0],xmm2[0] cvtps2pd %xmm1, %xmm1 subpd %xmm3, %xmm5 movapd %xmm3, %xmm4 mulpd %xmm5, %xmm1 cvtps2pd 0x164(%r12,%rcx), %xmm3 addpd %xmm4, %xmm1 movsd 0x18(%rax), %xmm4 unpcklpd %xmm2, %xmm4 # xmm4 = xmm4[0],xmm2[0] subpd %xmm4, %xmm1 mulpd %xmm1, %xmm0 addpd %xmm3, %xmm0 cvtpd2ps %xmm0, %xmm0 movlpd %xmm0, 0x20(%rbx) movq 0x8(%rbx), %rcx movq 0x10(%rbx), %r12 movl 0x10(%rcx), %esi movl 0x14(%rcx), %eax movslq 0x18(%rcx), %rdi cltd idivl %esi leal (%rdx,%rsi), %eax cltd idivl %esi movslq %edx, %rax imulq %rdi, %rax movq (%rcx), %rdx movq 0x8(%rcx), %rcx movsd (%rdx,%rax), %xmm1 movsd 0x90022(%rip), %xmm2 # 0x37d3f0 unpcklps %xmm2, %xmm1 # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1] movapd 0x90027(%rip), %xmm3 # 0x37d400 subpd %xmm3, %xmm1 movapd %xmm1, %xmm0 unpckhpd %xmm1, %xmm0 # xmm0 = xmm0[1],xmm1[1] addsd %xmm1, %xmm0 movsd (%rcx,%rax), %xmm1 unpcklps %xmm2, %xmm1 # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1] subpd %xmm3, %xmm1 movapd %xmm1, %xmm2 unpckhpd %xmm1, %xmm2 # xmm2 = xmm2[1],xmm1[1] addsd %xmm1, %xmm2 movapd %xmm2, (%rsp) movq (%r15), %r14 movq 0x28(%r14), %rax divsd 0x18(%rax), %xmm0 callq 0xe2ca0 movq 0x28(%r14), %rax movslq (%r12), %rcx shlq $0x7, %rcx movapd (%rsp), %xmm1 divsd 0x98(%rax,%rcx), %xmm1 movapd %xmm0, 0x10(%rsp) movsd 0x1b8(%r14), %xmm0 movaps %xmm0, 0x20(%rsp) movsd 0x18(%rax), %xmm0 movaps %xmm0, (%rsp) movsd 0x20(%rax), %xmm0 movaps %xmm0, 0x30(%rsp) movapd %xmm1, %xmm0 callq 0xe2ca0 movslq (%r12), %rdx movq 0x28(%r14), %rax movq %rdx, %rcx movapd 0x10(%rsp), %xmm1 unpcklpd %xmm0, %xmm1 # xmm1 = xmm1[0],xmm0[0] movapd 0x20(%rsp), %xmm2 movhpd 0x1c0(%r14,%rdx,8), %xmm2 # xmm2 = xmm2[0],mem[0] movsd 0x198(%r14), %xmm0 movhpd 0x1a0(%r14,%rdx,8), %xmm0 # xmm0 = xmm0[0],mem[0] shlq $0x7, %rdx divpd %xmm2, %xmm1 cvtpd2ps %xmm1, %xmm1 shlq $0x4, %rcx movapd 0x30(%rsp), %xmm4 movhpd 0xa0(%rax,%rdx), %xmm4 # xmm4 = xmm4[0],mem[0] movsd 0x98(%rax,%rdx), %xmm2 movapd (%rsp), %xmm3 unpcklpd %xmm2, %xmm3 # xmm3 = xmm3[0],xmm2[0] subpd %xmm3, %xmm4 cvtps2pd %xmm1, %xmm1 mulpd %xmm4, %xmm1 addpd %xmm3, %xmm1 cvtps2pd 0x164(%r14,%rcx), %xmm3 movsd 0x18(%rax), %xmm4 unpcklpd %xmm2, %xmm4 # xmm4 = xmm4[0],xmm2[0] subpd %xmm4, %xmm1 mulpd %xmm1, %xmm0 addpd %xmm3, %xmm0 cvtpd2ps %xmm0, %xmm0 movlpd %xmm0, 0x28(%rbx) addq $0x48, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
ImPlot::ShadedRenderer<ImPlot::GetterXsYs<float>, ImPlot::GetterXsYs<float>, ImPlot::TransformerLinLog>::operator()(ImDrawList&, ImRect const&, ImVec2 const&, int) const
inline bool operator()(ImDrawList& DrawList, const ImRect& /*cull_rect*/, const ImVec2& uv, int prim) const { // TODO: Culling ImVec2 P21 = Transformer(Getter1(prim+1)); ImVec2 P22 = Transformer(Getter2(prim+1)); const int intersect = (P11.y > P12.y && P22.y > P21.y) || (P12.y > P11.y && P21.y > P22.y); ImVec2 intersection = Intersection(P11,P21,P12,P22); DrawList._VtxWritePtr[0].pos = P11; DrawList._VtxWritePtr[0].uv = uv; DrawList._VtxWritePtr[0].col = Col; DrawList._VtxWritePtr[1].pos = P21; DrawList._VtxWritePtr[1].uv = uv; DrawList._VtxWritePtr[1].col = Col; DrawList._VtxWritePtr[2].pos = intersection; DrawList._VtxWritePtr[2].uv = uv; DrawList._VtxWritePtr[2].col = Col; DrawList._VtxWritePtr[3].pos = P12; DrawList._VtxWritePtr[3].uv = uv; DrawList._VtxWritePtr[3].col = Col; DrawList._VtxWritePtr[4].pos = P22; DrawList._VtxWritePtr[4].uv = uv; DrawList._VtxWritePtr[4].col = Col; DrawList._VtxWritePtr += 5; DrawList._IdxWritePtr[0] = (ImDrawIdx)(DrawList._VtxCurrentIdx); DrawList._IdxWritePtr[1] = (ImDrawIdx)(DrawList._VtxCurrentIdx + 1 + intersect); DrawList._IdxWritePtr[2] = (ImDrawIdx)(DrawList._VtxCurrentIdx + 3); DrawList._IdxWritePtr[3] = (ImDrawIdx)(DrawList._VtxCurrentIdx + 1); DrawList._IdxWritePtr[4] = (ImDrawIdx)(DrawList._VtxCurrentIdx + 3 - intersect); DrawList._IdxWritePtr[5] = (ImDrawIdx)(DrawList._VtxCurrentIdx + 4); DrawList._IdxWritePtr += 6; DrawList._VtxCurrentIdx += 5; P11 = P21; P12 = P22; return true; }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movq %rcx, %r15 movq %rdi, %rbx movq (%rdi), %rcx movq 0x10(%rdi), %r13 leal 0x1(%r8), %ebp movl 0x10(%rcx), %edi movslq 0x18(%rcx), %r8 movl 0x14(%rcx), %eax addl %ebp, %eax cltd idivl %edi leal (%rdx,%rdi), %eax cltd idivl %edi movslq %edx, %rax imulq %r8, %rax movq (%rcx), %rdx movq 0x8(%rcx), %rcx cvtss2sd (%rdx,%rax), %xmm0 movaps %xmm0, (%rsp) xorps %xmm0, %xmm0 cvtss2sd (%rcx,%rax), %xmm0 movq %rsi, %r14 movq 0x17ac7d(%rip), %rax # 0x46a3f0 movq (%rax), %r12 movq 0x28(%r12), %rax movslq (%r13), %rcx shlq $0x7, %rcx divsd 0x98(%rax,%rcx), %xmm0 callq 0xe2ca0 movslq (%r13), %rsi divsd 0x1c0(%r12,%rsi,8), %xmm0 movq 0x28(%r12), %rcx movq %rsi, %rax shlq $0x7, %rax movsd 0x98(%rcx,%rax), %xmm1 movsd 0xa0(%rcx,%rax), %xmm3 cvtsd2ss %xmm0, %xmm0 subsd %xmm1, %xmm3 cvtss2sd %xmm0, %xmm2 mulsd %xmm3, %xmm2 movq 0x8(%rbx), %rdi movq 0x10(%rbx), %r13 movl 0x10(%rdi), %r9d addl 0x14(%rdi), %ebp movslq 0x18(%rdi), %r8 movl %ebp, %eax cltd idivl %r9d leal (%rdx,%r9), %eax cltd idivl %r9d movsd 0x198(%r12), %xmm3 movhpd 0x1a0(%r12,%rsi,8), %xmm3 # xmm3 = xmm3[0],mem[0] addsd %xmm1, %xmm2 shlq $0x4, %rsi movslq %edx, %rax imulq %r8, %rax movq (%rdi), %rdx movq 0x8(%rdi), %rdi xorps %xmm0, %xmm0 cvtss2sd (%rdx,%rax), %xmm0 movaps %xmm0, 0x10(%rsp) xorps %xmm0, %xmm0 cvtss2sd (%rdi,%rax), %xmm0 movq 0x17abbc(%rip), %rax # 0x46a3f0 movq (%rax), %rbp movq 0x28(%rbp), %rax movslq (%r13), %rdx shlq $0x7, %rdx divsd 0x98(%rax,%rdx), %xmm0 movapd (%rsp), %xmm4 unpcklpd %xmm2, %xmm4 # xmm4 = xmm4[0],xmm2[0] movsd 0x18(%rcx), %xmm2 unpcklpd %xmm1, %xmm2 # xmm2 = xmm2[0],xmm1[0] cvtps2pd 0x164(%r12,%rsi), %xmm1 subpd %xmm2, %xmm4 mulpd %xmm4, %xmm3 addpd %xmm1, %xmm3 cvtpd2ps %xmm3, %xmm1 movapd %xmm1, (%rsp) callq 0xe2ca0 movslq (%r13), %rcx divsd 0x1c0(%rbp,%rcx,8), %xmm0 movq 0x28(%rbp), %rax movq %rcx, %rdx movsd 0x198(%rbp), %xmm1 movhpd 0x1a0(%rbp,%rcx,8), %xmm1 # xmm1 = xmm1[0],mem[0] shlq $0x7, %rcx movsd 0x98(%rax,%rcx), %xmm2 movsd 0xa0(%rax,%rcx), %xmm3 cvtsd2ss %xmm0, %xmm0 subsd %xmm2, %xmm3 cvtss2sd %xmm0, %xmm0 mulsd %xmm3, %xmm0 addsd %xmm2, %xmm0 movapd 0x10(%rsp), %xmm4 unpcklpd %xmm0, %xmm4 # xmm4 = xmm4[0],xmm0[0] shlq $0x4, %rdx cvtps2pd 0x164(%rbp,%rdx), %xmm0 movsd 0x18(%rax), %xmm3 unpcklpd %xmm2, %xmm3 # xmm3 = xmm3[0],xmm2[0] subpd %xmm3, %xmm4 mulpd %xmm4, %xmm1 addpd %xmm0, %xmm1 cvtpd2ps %xmm1, %xmm0 movsd 0x20(%rbx), %xmm3 movsd 0x28(%rbx), %xmm2 movaps %xmm2, %xmm5 shufps $0x55, %xmm2, %xmm5 # xmm5 = xmm5[1,1],xmm2[1,1] movaps %xmm3, %xmm6 shufps $0x55, %xmm3, %xmm6 # xmm6 = xmm6[1,1],xmm3[1,1] movapd %xmm0, %xmm7 shufps $0x55, %xmm0, %xmm7 # xmm7 = xmm7[1,1],xmm0[1,1] movaps (%rsp), %xmm9 movaps %xmm9, %xmm1 shufps $0x55, %xmm9, %xmm1 # xmm1 = xmm1[1,1],xmm9[1,1] movaps %xmm1, %xmm4 cmpltps %xmm7, %xmm4 movaps %xmm5, %xmm8 cmpltps %xmm6, %xmm8 andps %xmm4, %xmm8 movd %xmm8, %ecx movaps %xmm2, %xmm4 mulss %xmm7, %xmm4 cmpltps %xmm1, %xmm7 movaps %xmm9, %xmm8 mulss %xmm6, %xmm8 cmpltps %xmm5, %xmm6 andps %xmm7, %xmm6 movd %xmm6, %eax orl %ecx, %eax mulss %xmm3, %xmm1 subss %xmm8, %xmm1 mulss %xmm0, %xmm5 subss %xmm5, %xmm4 subps %xmm9, %xmm3 subps %xmm0, %xmm2 movaps %xmm2, %xmm5 shufps $0x55, %xmm2, %xmm5 # xmm5 = xmm5[1,1],xmm2[1,1] mulss %xmm3, %xmm5 unpcklps %xmm4, %xmm4 # xmm4 = xmm4[0,0,1,1] mulps %xmm3, %xmm4 shufps $0x55, %xmm3, %xmm3 # xmm3 = xmm3[1,1,1,1] mulss %xmm2, %xmm3 subss %xmm3, %xmm5 unpcklps %xmm1, %xmm1 # xmm1 = xmm1[0,0,1,1] mulps %xmm2, %xmm1 subps %xmm4, %xmm1 unpcklps %xmm5, %xmm5 # xmm5 = xmm5[0,0,1,1] divps %xmm5, %xmm1 movq 0x48(%r14), %rcx movq 0x20(%rbx), %rdx movq %rdx, (%rcx) movq 0x48(%r14), %rcx movq (%r15), %rdx movq %rdx, 0x8(%rcx) movl 0x1c(%rbx), %ecx movq 0x48(%r14), %rdx movl %ecx, 0x10(%rdx) movlps %xmm9, 0x14(%rdx) movq 0x48(%r14), %rcx movq (%r15), %rdx movq %rdx, 0x1c(%rcx) movl 0x1c(%rbx), %ecx movq 0x48(%r14), %rdx movl %ecx, 0x24(%rdx) movlps %xmm1, 0x28(%rdx) movq 0x48(%r14), %rcx movq (%r15), %rdx movq %rdx, 0x30(%rcx) movl 0x1c(%rbx), %ecx movq 0x48(%r14), %rdx movl %ecx, 0x38(%rdx) movq 0x28(%rbx), %rcx movq %rcx, 0x3c(%rdx) movq 0x48(%r14), %rcx movq (%r15), %rdx movq %rdx, 0x44(%rcx) movl 0x1c(%rbx), %ecx movq 0x48(%r14), %rdx movl %ecx, 0x4c(%rdx) movlpd %xmm0, 0x50(%rdx) movq 0x48(%r14), %rcx movq (%r15), %rdx movq %rdx, 0x58(%rcx) movl 0x1c(%rbx), %ecx movq 0x48(%r14), %rdx movl %ecx, 0x60(%rdx) addq $0x64, %rdx movq %rdx, 0x48(%r14) movl 0x34(%r14), %ecx movq 0x50(%r14), %rdx movl %ecx, (%rdx) andl $0x1, %eax addl %eax, %ecx incl %ecx movl %ecx, 0x4(%rdx) movl 0x34(%r14), %ecx addl $0x3, %ecx movl %ecx, 0x8(%rdx) movl 0x34(%r14), %ecx incl %ecx movl %ecx, 0xc(%rdx) xorl $0x3, %eax addl 0x34(%r14), %eax movl %eax, 0x10(%rdx) movl 0x34(%r14), %eax addl $0x4, %eax movl %eax, 0x14(%rdx) addq $0x18, %rdx movq %rdx, 0x50(%r14) addl $0x5, 0x34(%r14) movaps %xmm9, %xmm1 movlhps %xmm0, %xmm1 # xmm1 = xmm1[0],xmm0[0] movups %xmm1, 0x20(%rbx) movb $0x1, %al addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq nop
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
ImPlot::ShadedRenderer<ImPlot::GetterXsYs<double>, ImPlot::GetterXsYs<double>, ImPlot::TransformerLogLin>::ShadedRenderer(ImPlot::GetterXsYs<double> const&, ImPlot::GetterXsYs<double> const&, ImPlot::TransformerLogLin const&, unsigned int)
ShadedRenderer(const TGetter1& getter1, const TGetter2& getter2, const TTransformer& transformer, ImU32 col) : Getter1(getter1), Getter2(getter2), Transformer(transformer), Prims(ImMin(Getter1.Count, Getter2.Count) - 1), Col(col) { P11 = Transformer(Getter1(0)); P12 = Transformer(Getter2(0)); }
pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rcx, %r14 movq %rdi, %rbx movq %rsi, (%rdi) movq %rdx, 0x8(%rdi) movq %rcx, 0x10(%rdi) movl 0x10(%rsi), %ecx movl 0x10(%rdx), %eax cmpl %eax, %ecx cmovll %ecx, %eax decl %eax movl %eax, 0x18(%rdi) movl %r8d, 0x1c(%rdi) xorps %xmm0, %xmm0 movups %xmm0, 0x20(%rdi) movl 0x14(%rsi), %eax movslq 0x18(%rsi), %rdi cltd idivl %ecx leal (%rdx,%rcx), %eax cltd idivl %ecx movslq %edx, %rax imulq %rdi, %rax movq (%rsi), %rcx movq 0x8(%rsi), %rdx movsd (%rcx,%rax), %xmm0 movq 0x17a0e7(%rip), %r15 # 0x46a3f0 movq (%r15), %r12 movq 0x28(%r12), %rcx divsd 0x18(%rcx), %xmm0 movsd (%rdx,%rax), %xmm1 movaps %xmm1, (%rsp) callq 0xe2ca0 divsd 0x1b8(%r12), %xmm0 movq 0x28(%r12), %rax movupd 0x18(%rax), %xmm1 cvtsd2ss %xmm0, %xmm0 movapd %xmm1, %xmm2 unpckhpd %xmm1, %xmm2 # xmm2 = xmm2[1],xmm1[1] subsd %xmm1, %xmm2 cvtss2sd %xmm0, %xmm0 mulsd %xmm2, %xmm0 addsd %xmm1, %xmm0 unpcklpd (%rsp), %xmm0 # xmm0 = xmm0[0],mem[0] movslq (%r14), %rcx movq %rcx, %rdx movsd 0x198(%r12), %xmm2 movhpd 0x1a0(%r12,%rcx,8), %xmm2 # xmm2 = xmm2[0],mem[0] shlq $0x4, %rcx shlq $0x7, %rdx cvtps2pd 0x164(%r12,%rcx), %xmm3 movhpd 0x98(%rax,%rdx), %xmm1 # xmm1 = xmm1[0],mem[0] subpd %xmm1, %xmm0 mulpd %xmm0, %xmm2 addpd %xmm3, %xmm2 cvtpd2ps %xmm2, %xmm0 movlpd %xmm0, 0x20(%rbx) movq 0x8(%rbx), %rcx movq 0x10(%rbx), %r14 movl 0x10(%rcx), %esi movl 0x14(%rcx), %eax movslq 0x18(%rcx), %rdi cltd idivl %esi leal (%rdx,%rsi), %eax cltd idivl %esi movslq %edx, %rax imulq %rdi, %rax movq (%rcx), %rdx movq 0x8(%rcx), %rcx movsd (%rdx,%rax), %xmm0 movq (%r15), %r15 movq 0x28(%r15), %rdx divsd 0x18(%rdx), %xmm0 movsd (%rcx,%rax), %xmm1 movaps %xmm1, (%rsp) callq 0xe2ca0 divsd 0x1b8(%r15), %xmm0 movq 0x28(%r15), %rax movupd 0x18(%rax), %xmm1 cvtsd2ss %xmm0, %xmm0 movapd %xmm1, %xmm2 unpckhpd %xmm1, %xmm2 # xmm2 = xmm2[1],xmm1[1] subsd %xmm1, %xmm2 cvtss2sd %xmm0, %xmm0 mulsd %xmm2, %xmm0 addsd %xmm1, %xmm0 unpcklpd (%rsp), %xmm0 # xmm0 = xmm0[0],mem[0] movslq (%r14), %rcx movq %rcx, %rdx movsd 0x198(%r15), %xmm2 movhpd 0x1a0(%r15,%rcx,8), %xmm2 # xmm2 = xmm2[0],mem[0] shlq $0x4, %rcx shlq $0x7, %rdx cvtps2pd 0x164(%r15,%rcx), %xmm3 movhpd 0x98(%rax,%rdx), %xmm1 # xmm1 = xmm1[0],mem[0] subpd %xmm1, %xmm0 mulpd %xmm0, %xmm2 addpd %xmm3, %xmm2 cvtpd2ps %xmm2, %xmm0 movlpd %xmm0, 0x28(%rbx) addq $0x18, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
ImPlot::ShadedRenderer<ImPlot::GetterXsYs<double>, ImPlot::GetterXsYs<double>, ImPlot::TransformerLinLog>::operator()(ImDrawList&, ImRect const&, ImVec2 const&, int) const
inline bool operator()(ImDrawList& DrawList, const ImRect& /*cull_rect*/, const ImVec2& uv, int prim) const { // TODO: Culling ImVec2 P21 = Transformer(Getter1(prim+1)); ImVec2 P22 = Transformer(Getter2(prim+1)); const int intersect = (P11.y > P12.y && P22.y > P21.y) || (P12.y > P11.y && P21.y > P22.y); ImVec2 intersection = Intersection(P11,P21,P12,P22); DrawList._VtxWritePtr[0].pos = P11; DrawList._VtxWritePtr[0].uv = uv; DrawList._VtxWritePtr[0].col = Col; DrawList._VtxWritePtr[1].pos = P21; DrawList._VtxWritePtr[1].uv = uv; DrawList._VtxWritePtr[1].col = Col; DrawList._VtxWritePtr[2].pos = intersection; DrawList._VtxWritePtr[2].uv = uv; DrawList._VtxWritePtr[2].col = Col; DrawList._VtxWritePtr[3].pos = P12; DrawList._VtxWritePtr[3].uv = uv; DrawList._VtxWritePtr[3].col = Col; DrawList._VtxWritePtr[4].pos = P22; DrawList._VtxWritePtr[4].uv = uv; DrawList._VtxWritePtr[4].col = Col; DrawList._VtxWritePtr += 5; DrawList._IdxWritePtr[0] = (ImDrawIdx)(DrawList._VtxCurrentIdx); DrawList._IdxWritePtr[1] = (ImDrawIdx)(DrawList._VtxCurrentIdx + 1 + intersect); DrawList._IdxWritePtr[2] = (ImDrawIdx)(DrawList._VtxCurrentIdx + 3); DrawList._IdxWritePtr[3] = (ImDrawIdx)(DrawList._VtxCurrentIdx + 1); DrawList._IdxWritePtr[4] = (ImDrawIdx)(DrawList._VtxCurrentIdx + 3 - intersect); DrawList._IdxWritePtr[5] = (ImDrawIdx)(DrawList._VtxCurrentIdx + 4); DrawList._IdxWritePtr += 6; DrawList._VtxCurrentIdx += 5; P11 = P21; P12 = P22; return true; }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movq %rcx, %r15 movq %rsi, %r14 movq %rdi, %rbx movq (%rdi), %rcx movq 0x10(%rdi), %r13 leal 0x1(%r8), %ebp movl 0x10(%rcx), %esi movslq 0x18(%rcx), %rdi movl 0x14(%rcx), %eax addl %ebp, %eax cltd idivl %esi leal (%rdx,%rsi), %eax cltd idivl %esi movslq %edx, %rax imulq %rdi, %rax movq (%rcx), %rdx movq 0x8(%rcx), %rcx movsd (%rcx,%rax), %xmm0 movq 0x179239(%rip), %rcx # 0x46a3f0 movq (%rcx), %r12 movq 0x28(%r12), %rcx movslq (%r13), %rsi shlq $0x7, %rsi divsd 0x98(%rcx,%rsi), %xmm0 movsd (%rdx,%rax), %xmm1 movaps %xmm1, (%rsp) callq 0xe2ca0 movslq (%r13), %rsi divsd 0x1c0(%r12,%rsi,8), %xmm0 movq 0x28(%r12), %rcx movq %rsi, %rax shlq $0x7, %rax movsd 0x98(%rcx,%rax), %xmm1 movsd 0xa0(%rcx,%rax), %xmm3 cvtsd2ss %xmm0, %xmm0 subsd %xmm1, %xmm3 cvtss2sd %xmm0, %xmm2 mulsd %xmm3, %xmm2 addsd %xmm1, %xmm2 movq 0x8(%rbx), %rdi movq 0x10(%rbx), %r13 movl 0x10(%rdi), %r9d movslq 0x18(%rdi), %r8 addl 0x14(%rdi), %ebp movl %ebp, %eax cltd idivl %r9d leal (%rdx,%r9), %eax cltd idivl %r9d movsd 0x198(%r12), %xmm3 movhpd 0x1a0(%r12,%rsi,8), %xmm3 # xmm3 = xmm3[0],mem[0] shlq $0x4, %rsi movslq %edx, %rax imulq %r8, %rax movq 0x8(%rdi), %rdx movsd (%rdx,%rax), %xmm0 movq 0x179182(%rip), %rdx # 0x46a3f0 movq (%rdx), %rbp movq 0x28(%rbp), %rdx movslq (%r13), %r8 shlq $0x7, %r8 divsd 0x98(%rdx,%r8), %xmm0 movq (%rdi), %rdx movapd (%rsp), %xmm4 unpcklpd %xmm2, %xmm4 # xmm4 = xmm4[0],xmm2[0] movsd 0x18(%rcx), %xmm2 unpcklpd %xmm1, %xmm2 # xmm2 = xmm2[0],xmm1[0] cvtps2pd 0x164(%r12,%rsi), %xmm1 subpd %xmm2, %xmm4 mulpd %xmm4, %xmm3 addpd %xmm1, %xmm3 cvtpd2ps %xmm3, %xmm1 movapd %xmm1, (%rsp) movsd (%rdx,%rax), %xmm1 movaps %xmm1, 0x10(%rsp) callq 0xe2ca0 movslq (%r13), %rcx divsd 0x1c0(%rbp,%rcx,8), %xmm0 movq 0x28(%rbp), %rax movq %rcx, %rdx movsd 0x198(%rbp), %xmm1 movhpd 0x1a0(%rbp,%rcx,8), %xmm1 # xmm1 = xmm1[0],mem[0] shlq $0x7, %rcx movsd 0x98(%rax,%rcx), %xmm2 movsd 0xa0(%rax,%rcx), %xmm3 cvtsd2ss %xmm0, %xmm0 subsd %xmm2, %xmm3 cvtss2sd %xmm0, %xmm0 mulsd %xmm3, %xmm0 addsd %xmm2, %xmm0 movapd 0x10(%rsp), %xmm4 unpcklpd %xmm0, %xmm4 # xmm4 = xmm4[0],xmm0[0] shlq $0x4, %rdx cvtps2pd 0x164(%rbp,%rdx), %xmm0 movsd 0x18(%rax), %xmm3 unpcklpd %xmm2, %xmm3 # xmm3 = xmm3[0],xmm2[0] subpd %xmm3, %xmm4 mulpd %xmm4, %xmm1 addpd %xmm0, %xmm1 cvtpd2ps %xmm1, %xmm0 movsd 0x20(%rbx), %xmm3 movsd 0x28(%rbx), %xmm2 movaps %xmm2, %xmm5 shufps $0x55, %xmm2, %xmm5 # xmm5 = xmm5[1,1],xmm2[1,1] movaps %xmm3, %xmm6 shufps $0x55, %xmm3, %xmm6 # xmm6 = xmm6[1,1],xmm3[1,1] movapd %xmm0, %xmm7 shufps $0x55, %xmm0, %xmm7 # xmm7 = xmm7[1,1],xmm0[1,1] movaps (%rsp), %xmm9 movaps %xmm9, %xmm1 shufps $0x55, %xmm9, %xmm1 # xmm1 = xmm1[1,1],xmm9[1,1] movaps %xmm1, %xmm4 cmpltps %xmm7, %xmm4 movaps %xmm5, %xmm8 cmpltps %xmm6, %xmm8 andps %xmm4, %xmm8 movd %xmm8, %ecx movaps %xmm2, %xmm4 mulss %xmm7, %xmm4 cmpltps %xmm1, %xmm7 movaps %xmm9, %xmm8 mulss %xmm6, %xmm8 cmpltps %xmm5, %xmm6 andps %xmm7, %xmm6 movd %xmm6, %eax orl %ecx, %eax mulss %xmm3, %xmm1 subss %xmm8, %xmm1 mulss %xmm0, %xmm5 subss %xmm5, %xmm4 subps %xmm9, %xmm3 subps %xmm0, %xmm2 movaps %xmm2, %xmm5 shufps $0x55, %xmm2, %xmm5 # xmm5 = xmm5[1,1],xmm2[1,1] mulss %xmm3, %xmm5 unpcklps %xmm4, %xmm4 # xmm4 = xmm4[0,0,1,1] mulps %xmm3, %xmm4 shufps $0x55, %xmm3, %xmm3 # xmm3 = xmm3[1,1,1,1] mulss %xmm2, %xmm3 subss %xmm3, %xmm5 unpcklps %xmm1, %xmm1 # xmm1 = xmm1[0,0,1,1] mulps %xmm2, %xmm1 subps %xmm4, %xmm1 unpcklps %xmm5, %xmm5 # xmm5 = xmm5[0,0,1,1] divps %xmm5, %xmm1 movq 0x48(%r14), %rcx movq 0x20(%rbx), %rdx movq %rdx, (%rcx) movq 0x48(%r14), %rcx movq (%r15), %rdx movq %rdx, 0x8(%rcx) movl 0x1c(%rbx), %ecx movq 0x48(%r14), %rdx movl %ecx, 0x10(%rdx) movlps %xmm9, 0x14(%rdx) movq 0x48(%r14), %rcx movq (%r15), %rdx movq %rdx, 0x1c(%rcx) movl 0x1c(%rbx), %ecx movq 0x48(%r14), %rdx movl %ecx, 0x24(%rdx) movlps %xmm1, 0x28(%rdx) movq 0x48(%r14), %rcx movq (%r15), %rdx movq %rdx, 0x30(%rcx) movl 0x1c(%rbx), %ecx movq 0x48(%r14), %rdx movl %ecx, 0x38(%rdx) movq 0x28(%rbx), %rcx movq %rcx, 0x3c(%rdx) movq 0x48(%r14), %rcx movq (%r15), %rdx movq %rdx, 0x44(%rcx) movl 0x1c(%rbx), %ecx movq 0x48(%r14), %rdx movl %ecx, 0x4c(%rdx) movlpd %xmm0, 0x50(%rdx) movq 0x48(%r14), %rcx movq (%r15), %rdx movq %rdx, 0x58(%rcx) movl 0x1c(%rbx), %ecx movq 0x48(%r14), %rdx movl %ecx, 0x60(%rdx) addq $0x64, %rdx movq %rdx, 0x48(%r14) movl 0x34(%r14), %ecx movq 0x50(%r14), %rdx movl %ecx, (%rdx) andl $0x1, %eax addl %eax, %ecx incl %ecx movl %ecx, 0x4(%rdx) movl 0x34(%r14), %ecx addl $0x3, %ecx movl %ecx, 0x8(%rdx) movl 0x34(%r14), %ecx incl %ecx movl %ecx, 0xc(%rdx) xorl $0x3, %eax addl 0x34(%r14), %eax movl %eax, 0x10(%rdx) movl 0x34(%r14), %eax addl $0x4, %eax movl %eax, 0x14(%rdx) addq $0x18, %rdx movq %rdx, 0x50(%r14) addl $0x5, 0x34(%r14) movaps %xmm9, %xmm1 movlhps %xmm0, %xmm1 # xmm1 = xmm1[0],xmm0[0] movups %xmm1, 0x20(%rbx) movb $0x1, %al addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq nop
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
void ImPlot::RenderPrimitives<ImPlot::ShadedRenderer<ImPlot::GetterFuncPtr, ImPlot::GetterFuncPtr, ImPlot::TransformerLinLog>>(ImPlot::ShadedRenderer<ImPlot::GetterFuncPtr, ImPlot::GetterFuncPtr, ImPlot::TransformerLinLog> const&, ImDrawList&, ImRect const&)
inline void RenderPrimitives(const Renderer& renderer, ImDrawList& DrawList, const ImRect& cull_rect) { unsigned int prims = renderer.Prims; unsigned int prims_culled = 0; unsigned int idx = 0; const ImVec2 uv = DrawList._Data->TexUvWhitePixel; while (prims) { // find how many can be reserved up to end of current draw command's limit unsigned int cnt = ImMin(prims, (MaxIdx<ImDrawIdx>::Value - DrawList._VtxCurrentIdx) / Renderer::VtxConsumed); // make sure at least this many elements can be rendered to avoid situations where at the end of buffer this slow path is not taken all the time if (cnt >= ImMin(64u, prims)) { if (prims_culled >= cnt) prims_culled -= cnt; // reuse previous reservation else { DrawList.PrimReserve((cnt - prims_culled) * Renderer::IdxConsumed, (cnt - prims_culled) * Renderer::VtxConsumed); // add more elements to previous reservation prims_culled = 0; } } else { if (prims_culled > 0) { DrawList.PrimUnreserve(prims_culled * Renderer::IdxConsumed, prims_culled * Renderer::VtxConsumed); prims_culled = 0; } cnt = ImMin(prims, (MaxIdx<ImDrawIdx>::Value - 0/*DrawList._VtxCurrentIdx*/) / Renderer::VtxConsumed); DrawList.PrimReserve(cnt * Renderer::IdxConsumed, cnt * Renderer::VtxConsumed); // reserve new draw command } prims -= cnt; for (unsigned int ie = idx + cnt; idx != ie; ++idx) { if (!renderer(DrawList, cull_rect, uv, idx)) prims_culled++; } } if (prims_culled > 0) DrawList.PrimUnreserve(prims_culled * Renderer::IdxConsumed, prims_culled * Renderer::VtxConsumed); }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rsi, %rbx movl 0x18(%rdi), %esi movq 0x38(%rbx), %rax movq (%rax), %rax movq %rax, 0x8(%rsp) testl %esi, %esi je 0x2f1f78 movq %rdx, %r14 movq %rdi, %r15 xorl %r12d, %r12d leaq 0x8(%rsp), %rcx xorl %ebp, %ebp movl 0x34(%rbx), %edi movl %edi, %eax notl %eax movl $0xcccccccd, %edx # imm = 0xCCCCCCCD imulq %rdx, %rax shrq $0x22, %rax cmpl %eax, %esi movl %eax, %r13d cmovbl %esi, %r13d cmpl $0x40, %esi movl $0x40, %edx cmovbl %esi, %edx cmpl %edx, %eax jae 0x2f1edb testl %ebp, %ebp je 0x2f1ec7 leal (,%rbp,2), %eax movl %esi, %r13d leal (%rax,%rax,2), %esi leal (%rbp,%rbp,4), %edx movq %rbx, %rdi callq 0xe0140 movl %r13d, %esi movl $0x33333333, %eax # imm = 0x33333333 cmpl %eax, %esi movl $0x33333333, %eax # imm = 0x33333333 cmovbl %esi, %eax movl %eax, %r13d jmp 0x2f1ee7 movl %ebp, %eax subl %r13d, %eax jae 0x2f1f4c movl %r13d, %eax subl %ebp, %eax movl %esi, %ebp leal (%rax,%rax), %ecx leal (%rcx,%rcx,2), %esi leal (%rax,%rax,4), %edx movq %rbx, %rdi callq 0xe3170 subl %r13d, %ebp movl %ebp, 0x4(%rsp) xorl %eax, %eax leaq 0x8(%rsp), %rcx leal (%r12,%r13), %edx movl %edx, 0x14(%rsp) movl %eax, %ebp movq %r15, %rdi movq %rbx, %rsi movq %r14, %rdx movl %r12d, %r8d callq 0xebab0 leaq 0x8(%rsp), %rcx xorb $0x1, %al movzbl %al, %eax addl %eax, %ebp incl %r12d decl %r13d jne 0x2f1f12 movl 0x14(%rsp), %eax movl %eax, %r12d movl 0x4(%rsp), %esi testl %esi, %esi jne 0x2f1e7b jmp 0x2f1f5e subl %r13d, %esi cmpl $-0x6, %edi jbe 0x2f1f58 movl %eax, %ebp jmp 0x2f1f42 movl %esi, 0x4(%rsp) jmp 0x2f1f08 testl %ebp, %ebp je 0x2f1f78 leal (,%rbp,2), %eax leal (%rax,%rax,2), %esi leal (%rbp,%rbp,4), %edx movq %rbx, %rdi callq 0xe0140 addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq nop
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
void ImPlot::RenderLineSegments<ImPlot::GetterYs<signed char>, ImPlot::GetterYRef, ImPlot::TransformerLinLog>(ImPlot::GetterYs<signed char> const&, ImPlot::GetterYRef const&, ImPlot::TransformerLinLog const&, ImDrawList&, float, unsigned int)
inline void RenderLineSegments(const Getter1& getter1, const Getter2& getter2, const Transformer& transformer, ImDrawList& DrawList, float line_weight, ImU32 col) { ImPlotContext& gp = *GImPlot; if (ImHasFlag(gp.CurrentPlot->Flags, ImPlotFlags_AntiAliased) || gp.Style.AntiAliasedLines) { int I = ImMin(getter1.Count, getter2.Count); for (int i = 0; i < I; ++i) { ImVec2 p1 = transformer(getter1(i)); ImVec2 p2 = transformer(getter2(i)); if (gp.CurrentPlot->PlotRect.Overlaps(ImRect(ImMin(p1, p2), ImMax(p1, p2)))) DrawList.AddLine(p1, p2, col, line_weight); } } else { RenderPrimitives(LineSegmentsRenderer<Getter1,Getter2,Transformer>(getter1, getter2, transformer, col, line_weight), DrawList, gp.CurrentPlot->PlotRect); } }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x88, %rsp movl %r8d, 0xc(%rsp) movss %xmm0, 0x10(%rsp) movq %rcx, 0x18(%rsp) movq %rdx, %r15 movq %rsi, %r14 movq %rdi, %r12 movq 0x176c92(%rip), %rax # 0x46a3f0 movq (%rax), %rax movq 0x28(%rax), %rdx testb $0x10, 0x5(%rdx) jne 0x2f3778 cmpb $0x1, 0x448(%rax) jne 0x2f3a23 movq %rax, 0x50(%rsp) movl 0x8(%r12), %eax movl 0x8(%r14), %ecx cmpl %ecx, %eax cmovll %eax, %ecx movl %ecx, 0x14(%rsp) testl %ecx, %ecx jle 0x2f3a67 xorl %r13d, %r13d xorpd %xmm5, %xmm5 movapd %xmm5, 0x40(%rsp) movups 0x18(%r12), %xmm0 movaps %xmm0, 0x30(%rsp) movups 0x10(%r12), %xmm0 movaps %xmm0, 0x20(%rsp) movq (%r12), %rcx movl 0x8(%r12), %esi movslq 0x24(%r12), %rdi movl 0x20(%r12), %eax addl %r13d, %eax cltd idivl %esi leal (%rdx,%rsi), %eax cltd idivl %esi movslq %edx, %rax imulq %rdi, %rax movsbl (%rcx,%rax), %eax xorps %xmm0, %xmm0 cvtsi2sd %eax, %xmm0 movq 0x176bfe(%rip), %rbp # 0x46a3f0 movq (%rbp), %rbx movq 0x28(%rbx), %rax movslq (%r15), %rcx shlq $0x7, %rcx divsd 0x98(%rax,%rcx), %xmm0 callq 0xe2ca0 movslq (%r15), %rcx divsd 0x1c0(%rbx,%rcx,8), %xmm0 movq 0x28(%rbx), %rax movq %rcx, %rdx movsd 0x198(%rbx), %xmm1 movhpd 0x1a0(%rbx,%rcx,8), %xmm1 # xmm1 = xmm1[0],mem[0] shlq $0x7, %rcx movsd 0x98(%rax,%rcx), %xmm2 movsd 0xa0(%rax,%rcx), %xmm3 cvtsd2ss %xmm0, %xmm0 subsd %xmm2, %xmm3 movapd 0x20(%rsp), %xmm4 unpcklpd %xmm3, %xmm4 # xmm4 = xmm4[0],xmm3[0] cvtss2sd %xmm0, %xmm0 movaps 0x40(%rsp), %xmm3 movlhps %xmm0, %xmm3 # xmm3 = xmm3[0],xmm0[0] shlq $0x4, %rdx mulpd %xmm4, %xmm3 movapd 0x30(%rsp), %xmm4 unpcklpd %xmm2, %xmm4 # xmm4 = xmm4[0],xmm2[0] cvtps2pd 0x164(%rbx,%rdx), %xmm0 addpd %xmm3, %xmm4 movsd 0x18(%rax), %xmm3 unpcklpd %xmm2, %xmm3 # xmm3 = xmm3[0],xmm2[0] subpd %xmm3, %xmm4 mulpd %xmm4, %xmm1 addpd %xmm0, %xmm1 cvtpd2ps %xmm1, %xmm0 movlpd %xmm0, 0x60(%rsp) movups 0x10(%r14), %xmm0 movaps %xmm0, 0x20(%rsp) movsd (%r14), %xmm0 movq (%rbp), %rbx movq 0x28(%rbx), %rax divsd 0x98(%rax,%rcx), %xmm0 movsd 0x18(%r14), %xmm1 movaps %xmm1, 0x30(%rsp) callq 0xe2ca0 movaps 0x40(%rsp), %xmm5 movslq (%r15), %rcx divsd 0x1c0(%rbx,%rcx,8), %xmm0 movq 0x28(%rbx), %rax movq %rcx, %rdx movsd 0x198(%rbx), %xmm1 movhpd 0x1a0(%rbx,%rcx,8), %xmm1 # xmm1 = xmm1[0],mem[0] shlq $0x7, %rcx movsd 0x98(%rax,%rcx), %xmm2 movsd 0xa0(%rax,%rcx), %xmm3 cvtsd2ss %xmm0, %xmm0 subsd %xmm2, %xmm3 movapd 0x20(%rsp), %xmm4 unpcklpd %xmm3, %xmm4 # xmm4 = xmm4[0],xmm3[0] cvtss2sd %xmm0, %xmm0 movaps %xmm5, %xmm3 movlhps %xmm0, %xmm3 # xmm3 = xmm3[0],xmm0[0] shlq $0x4, %rdx mulpd %xmm4, %xmm3 movapd 0x30(%rsp), %xmm4 unpcklpd %xmm2, %xmm4 # xmm4 = xmm4[0],xmm2[0] addpd %xmm3, %xmm4 cvtps2pd 0x164(%rbx,%rdx), %xmm0 movsd 0x18(%rax), %xmm3 unpcklpd %xmm2, %xmm3 # xmm3 = xmm3[0],xmm2[0] subpd %xmm3, %xmm4 mulpd %xmm4, %xmm1 addpd %xmm0, %xmm1 cvtpd2ps %xmm1, %xmm0 movlpd %xmm0, 0x58(%rsp) movq 0x50(%rsp), %rax movq 0x28(%rax), %rax movss 0x64(%rsp), %xmm1 movapd %xmm0, %xmm2 shufps $0x55, %xmm0, %xmm2 # xmm2 = xmm2[1,1],xmm0[1,1] movaps %xmm1, %xmm3 minss %xmm2, %xmm3 movss 0x2c4(%rax), %xmm4 ucomiss %xmm3, %xmm4 jbe 0x2f3a0b movaps %xmm2, %xmm3 cmpless %xmm1, %xmm3 andps %xmm3, %xmm1 andnps %xmm2, %xmm3 orps %xmm1, %xmm3 ucomiss 0x2bc(%rax), %xmm3 jbe 0x2f3a0b movss 0x60(%rsp), %xmm1 movaps %xmm1, %xmm2 minss %xmm0, %xmm2 movss 0x2c0(%rax), %xmm3 ucomiss %xmm2, %xmm3 jbe 0x2f3a0b movaps %xmm0, %xmm2 cmpless %xmm1, %xmm2 movaps %xmm2, %xmm3 andnps %xmm0, %xmm3 andps %xmm1, %xmm2 orps %xmm3, %xmm2 ucomiss 0x2b8(%rax), %xmm2 jbe 0x2f3a0b movq 0x18(%rsp), %rdi leaq 0x60(%rsp), %rsi leaq 0x58(%rsp), %rdx movl 0xc(%rsp), %ecx movss 0x10(%rsp), %xmm0 callq 0xe5ce0 movaps 0x40(%rsp), %xmm5 addsd 0x916e5(%rip), %xmm5 # 0x3850f8 incl %r13d cmpl %r13d, 0x14(%rsp) jne 0x2f379e jmp 0x2f3a67 leaq 0x60(%rsp), %rdi movq %r12, (%rdi) movq %r14, 0x8(%rdi) movq %r15, 0x10(%rdi) movl 0x8(%r12), %eax movl 0x8(%r14), %ecx cmpl %ecx, %eax cmovll %eax, %ecx movl %ecx, 0x18(%rdi) movl 0xc(%rsp), %eax movl %eax, 0x1c(%rdi) movss 0x10(%rsp), %xmm0 movss %xmm0, 0x20(%rdi) addq $0x2b8, %rdx # imm = 0x2B8 movq 0x18(%rsp), %rsi callq 0xe8980 addq $0x88, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
void ImPlot::RenderPrimitives<ImPlot::LineSegmentsRenderer<ImPlot::GetterYs<signed char>, ImPlot::GetterYRef, ImPlot::TransformerLinLin>>(ImPlot::LineSegmentsRenderer<ImPlot::GetterYs<signed char>, ImPlot::GetterYRef, ImPlot::TransformerLinLin> const&, ImDrawList&, ImRect const&)
inline void RenderPrimitives(const Renderer& renderer, ImDrawList& DrawList, const ImRect& cull_rect) { unsigned int prims = renderer.Prims; unsigned int prims_culled = 0; unsigned int idx = 0; const ImVec2 uv = DrawList._Data->TexUvWhitePixel; while (prims) { // find how many can be reserved up to end of current draw command's limit unsigned int cnt = ImMin(prims, (MaxIdx<ImDrawIdx>::Value - DrawList._VtxCurrentIdx) / Renderer::VtxConsumed); // make sure at least this many elements can be rendered to avoid situations where at the end of buffer this slow path is not taken all the time if (cnt >= ImMin(64u, prims)) { if (prims_culled >= cnt) prims_culled -= cnt; // reuse previous reservation else { DrawList.PrimReserve((cnt - prims_culled) * Renderer::IdxConsumed, (cnt - prims_culled) * Renderer::VtxConsumed); // add more elements to previous reservation prims_culled = 0; } } else { if (prims_culled > 0) { DrawList.PrimUnreserve(prims_culled * Renderer::IdxConsumed, prims_culled * Renderer::VtxConsumed); prims_culled = 0; } cnt = ImMin(prims, (MaxIdx<ImDrawIdx>::Value - 0/*DrawList._VtxCurrentIdx*/) / Renderer::VtxConsumed); DrawList.PrimReserve(cnt * Renderer::IdxConsumed, cnt * Renderer::VtxConsumed); // reserve new draw command } prims -= cnt; for (unsigned int ie = idx + cnt; idx != ie; ++idx) { if (!renderer(DrawList, cull_rect, uv, idx)) prims_culled++; } } if (prims_culled > 0) DrawList.PrimUnreserve(prims_culled * Renderer::IdxConsumed, prims_culled * Renderer::VtxConsumed); }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rsi, %rbx movl 0x18(%rdi), %esi movq 0x38(%rbx), %rax movq (%rax), %rax movq %rax, 0x8(%rsp) testl %esi, %esi je 0x2f3f97 movq %rdx, %r14 movq %rdi, %r15 xorl %r12d, %r12d leaq 0x8(%rsp), %rcx xorl %ebp, %ebp movl 0x34(%rbx), %edi movl %edi, %eax notl %eax shrl $0x2, %eax cmpl %eax, %esi movl %eax, %r13d cmovbl %esi, %r13d cmpl $0x40, %esi movl $0x40, %edx cmovbl %esi, %edx cmpl %edx, %eax jae 0x2f3ef9 testl %ebp, %ebp je 0x2f3ee5 leal (,%rbp,2), %eax movl %esi, %r13d leal (%rax,%rax,2), %esi shll $0x2, %ebp movq %rbx, %rdi movl %ebp, %edx callq 0xe0140 movl %r13d, %esi movl $0x3fffffff, %eax # imm = 0x3FFFFFFF cmpl %eax, %esi movl $0x3fffffff, %edx # imm = 0x3FFFFFFF cmovbl %esi, %edx movl %edx, %r13d jmp 0x2f3f05 movl %ebp, %eax subl %r13d, %eax jae 0x2f3f6a movl %r13d, %edx subl %ebp, %edx movl %esi, %ebp leal (%rdx,%rdx), %eax leal (%rax,%rax,2), %esi shll $0x2, %edx movq %rbx, %rdi callq 0xe3170 subl %r13d, %ebp movl %ebp, 0x4(%rsp) xorl %eax, %eax leaq 0x8(%rsp), %rcx leal (%r12,%r13), %edx movl %edx, 0x14(%rsp) movl %eax, %ebp movq %r15, %rdi movq %rbx, %rsi movq %r14, %rdx movl %r12d, %r8d callq 0xe9640 leaq 0x8(%rsp), %rcx xorb $0x1, %al movzbl %al, %eax addl %eax, %ebp incl %r12d decl %r13d jne 0x2f3f30 movl 0x14(%rsp), %eax movl %eax, %r12d movl 0x4(%rsp), %esi testl %esi, %esi jne 0x2f3ea2 jmp 0x2f3f7c subl %r13d, %esi cmpl $-0x5, %edi jbe 0x2f3f76 movl %eax, %ebp jmp 0x2f3f60 movl %esi, 0x4(%rsp) jmp 0x2f3f26 testl %ebp, %ebp je 0x2f3f97 leal (,%rbp,2), %eax leal (%rax,%rax,2), %esi shll $0x2, %ebp movq %rbx, %rdi movl %ebp, %edx callq 0xe0140 addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
void ImPlot::RenderLineSegments<ImPlot::GetterYs<short>, ImPlot::GetterYRef, ImPlot::TransformerLinLin>(ImPlot::GetterYs<short> const&, ImPlot::GetterYRef const&, ImPlot::TransformerLinLin const&, ImDrawList&, float, unsigned int)
inline void RenderLineSegments(const Getter1& getter1, const Getter2& getter2, const Transformer& transformer, ImDrawList& DrawList, float line_weight, ImU32 col) { ImPlotContext& gp = *GImPlot; if (ImHasFlag(gp.CurrentPlot->Flags, ImPlotFlags_AntiAliased) || gp.Style.AntiAliasedLines) { int I = ImMin(getter1.Count, getter2.Count); for (int i = 0; i < I; ++i) { ImVec2 p1 = transformer(getter1(i)); ImVec2 p2 = transformer(getter2(i)); if (gp.CurrentPlot->PlotRect.Overlaps(ImRect(ImMin(p1, p2), ImMax(p1, p2)))) DrawList.AddLine(p1, p2, col, line_weight); } } else { RenderPrimitives(LineSegmentsRenderer<Getter1,Getter2,Transformer>(getter1, getter2, transformer, col, line_weight), DrawList, gp.CurrentPlot->PlotRect); } }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x48, %rsp movq %rcx, %r9 movq %rdx, %r15 movq %rsi, %r14 movq %rdi, %r12 movq 0x17349f(%rip), %rax # 0x46a3f0 movq (%rax), %r13 movq 0x28(%r13), %rdx testb $0x10, 0x5(%rdx) jne 0x2f6f6c cmpb $0x1, 0x448(%r13) jne 0x2f7153 movl 0x8(%r12), %eax movl 0x8(%r14), %ebx cmpl %ebx, %eax cmovll %eax, %ebx testl %ebx, %ebx jle 0x2f718c xorl %ebp, %ebp xorpd %xmm7, %xmm7 movsd 0x8e167(%rip), %xmm8 # 0x3850f8 movq %r13, %rcx movq %r9, 0x8(%rsp) movss %xmm0, 0x4(%rsp) movl %r8d, (%rsp) movsd 0x10(%r12), %xmm5 mulsd %xmm7, %xmm5 addsd 0x18(%r12), %xmm5 movq (%r12), %rsi movl 0x8(%r12), %edi movslq 0x24(%r12), %r10 movl 0x20(%r12), %eax addl %ebp, %eax cltd idivl %edi leal (%rdx,%rdi), %eax cltd idivl %edi movslq %edx, %rax imulq %r10, %rax movswl (%rsi,%rax), %eax xorps %xmm1, %xmm1 cvtsi2sd %eax, %xmm1 unpcklpd %xmm1, %xmm5 # xmm5 = xmm5[0],xmm1[0] movslq (%r15), %rax movq %rax, %rdx shlq $0x4, %rdx movq 0x28(%rcx), %rsi movq %rax, %rdi shlq $0x7, %rdi cvtps2pd 0x164(%rcx,%rdx), %xmm1 movsd 0x18(%rsi), %xmm2 movapd %xmm2, %xmm3 movhpd 0x98(%rsi,%rdi), %xmm3 # xmm3 = xmm3[0],mem[0] subpd %xmm3, %xmm5 movsd 0x198(%rcx), %xmm3 movapd %xmm3, %xmm4 movhpd 0x1a0(%rcx,%rax,8), %xmm4 # xmm4 = xmm4[0],mem[0] mulpd %xmm5, %xmm4 addpd %xmm1, %xmm4 cvtpd2ps %xmm4, %xmm6 movlpd %xmm6, 0x20(%rsp) movsd 0x10(%r14), %xmm1 mulsd %xmm7, %xmm1 addsd 0x18(%r14), %xmm1 cvtps2pd 0x164(%rcx,%rdx), %xmm4 movhpd (%r14), %xmm1 # xmm1 = xmm1[0],mem[0] movhpd 0x98(%rsi,%rdi), %xmm2 # xmm2 = xmm2[0],mem[0] subpd %xmm2, %xmm1 movhpd 0x1a0(%rcx,%rax,8), %xmm3 # xmm3 = xmm3[0],mem[0] mulpd %xmm1, %xmm3 addpd %xmm4, %xmm3 cvtpd2ps %xmm3, %xmm1 movlpd %xmm1, 0x18(%rsp) movq 0x28(%r13), %rax movapd %xmm6, %xmm2 shufps $0x55, %xmm6, %xmm2 # xmm2 = xmm2[1,1],xmm6[1,1] movapd %xmm1, %xmm3 shufps $0x55, %xmm1, %xmm3 # xmm3 = xmm3[1,1],xmm1[1,1] movaps %xmm2, %xmm4 minss %xmm3, %xmm4 movss 0x2c4(%rax), %xmm5 ucomiss %xmm4, %xmm5 jbe 0x2f7142 movaps %xmm3, %xmm4 cmpless %xmm2, %xmm4 movaps %xmm4, %xmm5 andps %xmm2, %xmm5 andnps %xmm3, %xmm4 orps %xmm5, %xmm4 ucomiss 0x2bc(%rax), %xmm4 jbe 0x2f7142 movaps %xmm6, %xmm2 minss %xmm1, %xmm2 movss 0x2c0(%rax), %xmm3 ucomiss %xmm2, %xmm3 jbe 0x2f7142 movaps %xmm1, %xmm2 cmpless %xmm6, %xmm2 andps %xmm2, %xmm6 andnps %xmm1, %xmm2 orps %xmm6, %xmm2 ucomiss 0x2b8(%rax), %xmm2 jbe 0x2f7142 movq %r9, %rdi leaq 0x20(%rsp), %rsi leaq 0x18(%rsp), %rdx movl %r8d, %ecx movsd %xmm7, 0x10(%rsp) callq 0xe5ce0 movsd 0x8dfd5(%rip), %xmm8 # 0x3850f8 movsd 0x10(%rsp), %xmm7 movq 0x1732c0(%rip), %rax # 0x46a3f0 movl (%rsp), %r8d movss 0x4(%rsp), %xmm0 movq 0x8(%rsp), %r9 movq (%rax), %rcx addsd %xmm8, %xmm7 incl %ebp cmpl %ebp, %ebx jne 0x2f6fa3 jmp 0x2f718c leaq 0x20(%rsp), %rdi movq %r12, (%rdi) movq %r14, 0x8(%rdi) movq %r15, 0x10(%rdi) movl 0x8(%r12), %eax movl 0x8(%r14), %ecx cmpl %ecx, %eax cmovll %eax, %ecx movl %ecx, 0x18(%rdi) movl %r8d, 0x1c(%rdi) movss %xmm0, 0x20(%rdi) addq $0x2b8, %rdx # imm = 0x2B8 movq %r9, %rsi callq 0xe2c90 addq $0x48, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
void ImPlot::RenderLineSegments<ImPlot::GetterYs<unsigned short>, ImPlot::GetterYRef, ImPlot::TransformerLogLin>(ImPlot::GetterYs<unsigned short> const&, ImPlot::GetterYRef const&, ImPlot::TransformerLogLin const&, ImDrawList&, float, unsigned int)
inline void RenderLineSegments(const Getter1& getter1, const Getter2& getter2, const Transformer& transformer, ImDrawList& DrawList, float line_weight, ImU32 col) { ImPlotContext& gp = *GImPlot; if (ImHasFlag(gp.CurrentPlot->Flags, ImPlotFlags_AntiAliased) || gp.Style.AntiAliasedLines) { int I = ImMin(getter1.Count, getter2.Count); for (int i = 0; i < I; ++i) { ImVec2 p1 = transformer(getter1(i)); ImVec2 p2 = transformer(getter2(i)); if (gp.CurrentPlot->PlotRect.Overlaps(ImRect(ImMin(p1, p2), ImMax(p1, p2)))) DrawList.AddLine(p1, p2, col, line_weight); } } else { RenderPrimitives(LineSegmentsRenderer<Getter1,Getter2,Transformer>(getter1, getter2, transformer, col, line_weight), DrawList, gp.CurrentPlot->PlotRect); } }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x68, %rsp movl %r8d, 0x4(%rsp) movss %xmm0, 0x8(%rsp) movq %rcx, 0x10(%rsp) movq %rdx, %r15 movq %rsi, %r14 movq %rdi, %r12 movq 0x17136f(%rip), %rax # 0x46a3f0 movq (%rax), %rax movq 0x28(%rax), %rdx testb $0x10, 0x5(%rdx) jne 0x2f909b cmpb $0x1, 0x448(%rax) jne 0x2f9301 movq %rax, 0x30(%rsp) movl 0x8(%r12), %eax movl 0x8(%r14), %ecx cmpl %ecx, %eax cmovll %eax, %ecx movl %ecx, 0xc(%rsp) testl %ecx, %ecx jle 0x2f9345 xorl %r13d, %r13d xorpd %xmm1, %xmm1 movsd %xmm1, 0x18(%rsp) movsd 0x10(%r12), %xmm0 mulsd %xmm1, %xmm0 addsd 0x18(%r12), %xmm0 movq (%r12), %rcx movl 0x8(%r12), %esi movslq 0x24(%r12), %rdi movl 0x20(%r12), %eax addl %r13d, %eax cltd idivl %esi leal (%rdx,%rsi), %eax cltd idivl %esi movslq %edx, %rax imulq %rdi, %rax movzwl (%rcx,%rax), %eax xorps %xmm1, %xmm1 cvtsi2sd %eax, %xmm1 movapd %xmm1, 0x20(%rsp) movq 0x1712d9(%rip), %rbp # 0x46a3f0 movq (%rbp), %rbx movq 0x28(%rbx), %rax divsd 0x18(%rax), %xmm0 callq 0xe2ca0 divsd 0x1b8(%rbx), %xmm0 movq 0x28(%rbx), %rax movupd 0x18(%rax), %xmm1 cvtsd2ss %xmm0, %xmm0 movapd %xmm1, %xmm2 unpckhpd %xmm1, %xmm2 # xmm2 = xmm2[1],xmm1[1] subsd %xmm1, %xmm2 cvtss2sd %xmm0, %xmm0 mulsd %xmm2, %xmm0 addsd %xmm1, %xmm0 movslq (%r15), %rcx movsd 0x198(%rbx), %xmm2 movhpd 0x1a0(%rbx,%rcx,8), %xmm2 # xmm2 = xmm2[0],mem[0] movq %rcx, %rdx shlq $0x4, %rcx shlq $0x7, %rdx cvtps2pd 0x164(%rbx,%rcx), %xmm3 movhpd 0x98(%rax,%rdx), %xmm1 # xmm1 = xmm1[0],mem[0] unpcklpd 0x20(%rsp), %xmm0 # xmm0 = xmm0[0],mem[0] subpd %xmm1, %xmm0 mulpd %xmm0, %xmm2 addpd %xmm3, %xmm2 cvtpd2ps %xmm2, %xmm0 movlpd %xmm0, 0x40(%rsp) movsd 0x10(%r14), %xmm0 mulsd 0x18(%rsp), %xmm0 addsd 0x18(%r14), %xmm0 movq (%rbp), %rbx movq 0x28(%rbx), %rax divsd 0x18(%rax), %xmm0 movsd (%r14), %xmm1 movaps %xmm1, 0x20(%rsp) callq 0xe2ca0 divsd 0x1b8(%rbx), %xmm0 movq 0x28(%rbx), %rax movupd 0x18(%rax), %xmm1 cvtsd2ss %xmm0, %xmm0 movapd %xmm1, %xmm2 unpckhpd %xmm1, %xmm2 # xmm2 = xmm2[1],xmm1[1] subsd %xmm1, %xmm2 cvtss2sd %xmm0, %xmm0 mulsd %xmm2, %xmm0 addsd %xmm1, %xmm0 movslq (%r15), %rcx movsd 0x198(%rbx), %xmm2 movhpd 0x1a0(%rbx,%rcx,8), %xmm2 # xmm2 = xmm2[0],mem[0] movq %rcx, %rdx shlq $0x4, %rcx shlq $0x7, %rdx cvtps2pd 0x164(%rbx,%rcx), %xmm3 movhpd 0x98(%rax,%rdx), %xmm1 # xmm1 = xmm1[0],mem[0] unpcklpd 0x20(%rsp), %xmm0 # xmm0 = xmm0[0],mem[0] subpd %xmm1, %xmm0 mulpd %xmm0, %xmm2 addpd %xmm3, %xmm2 cvtpd2ps %xmm2, %xmm0 movlpd %xmm0, 0x38(%rsp) movq 0x30(%rsp), %rax movq 0x28(%rax), %rax movss 0x44(%rsp), %xmm1 movapd %xmm0, %xmm2 shufps $0x55, %xmm0, %xmm2 # xmm2 = xmm2[1,1],xmm0[1,1] movaps %xmm1, %xmm3 minss %xmm2, %xmm3 movss 0x2c4(%rax), %xmm4 ucomiss %xmm3, %xmm4 jbe 0x2f92e3 movaps %xmm2, %xmm3 cmpless %xmm1, %xmm3 andps %xmm3, %xmm1 andnps %xmm2, %xmm3 orps %xmm1, %xmm3 ucomiss 0x2bc(%rax), %xmm3 jbe 0x2f92e3 movss 0x40(%rsp), %xmm1 movaps %xmm1, %xmm2 minss %xmm0, %xmm2 movss 0x2c0(%rax), %xmm3 ucomiss %xmm2, %xmm3 jbe 0x2f92e3 movaps %xmm0, %xmm2 cmpless %xmm1, %xmm2 movaps %xmm2, %xmm3 andnps %xmm0, %xmm3 andps %xmm1, %xmm2 orps %xmm3, %xmm2 ucomiss 0x2b8(%rax), %xmm2 jbe 0x2f92e3 movq 0x10(%rsp), %rdi leaq 0x40(%rsp), %rsi leaq 0x38(%rsp), %rdx movl 0x4(%rsp), %ecx movss 0x8(%rsp), %xmm0 callq 0xe5ce0 movsd 0x18(%rsp), %xmm1 addsd 0x8be07(%rip), %xmm1 # 0x3850f8 incl %r13d cmpl %r13d, 0xc(%rsp) jne 0x2f90c1 jmp 0x2f9345 leaq 0x40(%rsp), %rdi movq %r12, (%rdi) movq %r14, 0x8(%rdi) movq %r15, 0x10(%rdi) movl 0x8(%r12), %eax movl 0x8(%r14), %ecx cmpl %ecx, %eax cmovll %eax, %ecx movl %ecx, 0x18(%rdi) movl 0x4(%rsp), %eax movl %eax, 0x1c(%rdi) movss 0x8(%rsp), %xmm0 movss %xmm0, 0x20(%rdi) addq $0x2b8, %rdx # imm = 0x2B8 movq 0x10(%rsp), %rsi callq 0xea8d0 addq $0x68, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
ImPlot::LineSegmentsRenderer<ImPlot::GetterYs<unsigned short>, ImPlot::GetterYRef, ImPlot::TransformerLinLog>::operator()(ImDrawList&, ImRect const&, ImVec2 const&, int) const
inline bool operator()(ImDrawList& DrawList, const ImRect& cull_rect, const ImVec2& uv, int prim) const { ImVec2 P1 = Transformer(Getter1(prim)); ImVec2 P2 = Transformer(Getter2(prim)); if (!cull_rect.Overlaps(ImRect(ImMin(P1, P2), ImMax(P1, P2)))) return false; AddLine(P1,P2,Weight,Col,DrawList,uv); return true; }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x58, %rsp movl %r8d, %eax movq %rcx, 0x28(%rsp) movq %rdx, %r12 movq %rsi, %rbx movq %rdi, %r15 movq (%rdi), %rcx movq 0x10(%rdi), %r14 cvtsi2sd %r8d, %xmm0 movapd %xmm0, 0x30(%rsp) movq (%rcx), %rsi movl 0x8(%rcx), %edi addl 0x20(%rcx), %eax movslq 0x24(%rcx), %r8 cltd idivl %edi leal (%rdx,%rdi), %eax cltd idivl %edi movslq %edx, %rax imulq %r8, %rax movzwl (%rsi,%rax), %eax xorps %xmm0, %xmm0 cvtsi2sd %eax, %xmm0 movq 0x16ffb6(%rip), %rbp # 0x46a3f0 movq (%rbp), %r13 movq 0x28(%r13), %rax movslq (%r14), %rdx shlq $0x7, %rdx divsd 0x98(%rax,%rdx), %xmm0 movsd 0x10(%rcx), %xmm1 movaps %xmm1, (%rsp) movsd 0x18(%rcx), %xmm1 movaps %xmm1, 0x10(%rsp) callq 0xe2ca0 movslq (%r14), %rdx divsd 0x1c0(%r13,%rdx,8), %xmm0 movq 0x28(%r13), %rax movq %rdx, %rcx movsd 0x1a0(%r13,%rdx,8), %xmm1 shlq $0x7, %rdx movupd 0x98(%rax,%rdx), %xmm2 movapd %xmm2, %xmm3 unpckhpd %xmm2, %xmm3 # xmm3 = xmm3[1],xmm2[1] subpd %xmm2, %xmm3 unpcklpd (%rsp), %xmm3 # xmm3 = xmm3[0],mem[0] cvtsd2ss %xmm0, %xmm0 cvtss2sd %xmm0, %xmm4 movq 0x8(%r15), %rdx movq 0x10(%r15), %r14 unpcklpd 0x30(%rsp), %xmm4 # xmm4 = xmm4[0],mem[0] mulpd %xmm3, %xmm4 movapd %xmm2, %xmm3 unpcklpd 0x10(%rsp), %xmm3 # xmm3 = xmm3[0],mem[0] movsd (%rdx), %xmm0 movq (%rbp), %rbp movq 0x28(%rbp), %rsi movslq (%r14), %rdi shlq $0x7, %rdi divsd 0x98(%rsi,%rdi), %xmm0 shlq $0x4, %rcx addpd %xmm4, %xmm3 cvtps2pd 0x164(%r13,%rcx), %xmm4 shufpd $0x1, %xmm4, %xmm4 # xmm4 = xmm4[1,0] movhpd 0x18(%rax), %xmm2 # xmm2 = xmm2[0],mem[0] subpd %xmm2, %xmm3 movhpd 0x198(%r13), %xmm1 # xmm1 = xmm1[0],mem[0] mulpd %xmm3, %xmm1 addpd %xmm4, %xmm1 cvtpd2ps %xmm1, %xmm1 movapd %xmm1, 0x40(%rsp) movsd 0x10(%rdx), %xmm1 movaps %xmm1, (%rsp) movsd 0x18(%rdx), %xmm1 movaps %xmm1, 0x10(%rsp) callq 0xe2ca0 movaps 0x40(%rsp), %xmm7 movslq (%r14), %rcx divsd 0x1c0(%rbp,%rcx,8), %xmm0 movq 0x28(%rbp), %rax movsd 0x198(%rbp), %xmm1 movhpd 0x1a0(%rbp,%rcx,8), %xmm1 # xmm1 = xmm1[0],mem[0] movq %rcx, %rdx shlq $0x7, %rcx movsd 0x98(%rax,%rcx), %xmm2 movsd 0xa0(%rax,%rcx), %xmm3 cvtsd2ss %xmm0, %xmm0 subsd %xmm2, %xmm3 movapd (%rsp), %xmm4 unpcklpd %xmm3, %xmm4 # xmm4 = xmm4[0],xmm3[0] cvtss2sd %xmm0, %xmm0 movaps 0x30(%rsp), %xmm3 movlhps %xmm0, %xmm3 # xmm3 = xmm3[0],xmm0[0] mulpd %xmm4, %xmm3 movapd 0x10(%rsp), %xmm4 unpcklpd %xmm2, %xmm4 # xmm4 = xmm4[0],xmm2[0] shlq $0x4, %rdx cvtps2pd 0x164(%rbp,%rdx), %xmm0 addpd %xmm3, %xmm4 movsd 0x18(%rax), %xmm3 unpcklpd %xmm2, %xmm3 # xmm3 = xmm3[0],xmm2[0] subpd %xmm3, %xmm4 mulpd %xmm4, %xmm1 addpd %xmm0, %xmm1 cvtpd2ps %xmm1, %xmm0 movaps %xmm7, %xmm1 shufps $0x11, %xmm7, %xmm1 # xmm1 = xmm1[1,0],xmm7[1,0] movapd %xmm0, %xmm2 unpcklpd %xmm0, %xmm2 # xmm2 = xmm2[0],xmm0[0] movapd %xmm2, %xmm3 cmpleps %xmm1, %xmm3 movaps %xmm1, %xmm4 cmpltps %xmm2, %xmm4 movsd %xmm3, %xmm4 # xmm4 = xmm3[0],xmm4[1] andps %xmm4, %xmm1 andnps %xmm2, %xmm4 orps %xmm1, %xmm4 movups (%r12), %xmm1 movaps %xmm1, %xmm2 cmpltps %xmm4, %xmm2 cmpltps %xmm1, %xmm4 movsd %xmm2, %xmm4 # xmm4 = xmm2[0],xmm4[1] movmskps %xmm4, %eax cmpl $0xf, %eax jne 0x2fa743 movss 0x20(%r15), %xmm2 movl 0x1c(%r15), %ecx movq 0x28(%rsp), %rdx movsd (%rdx), %xmm1 movaps %xmm7, %xmm4 shufps $0xe1, %xmm7, %xmm4 # xmm4 = xmm4[1,0],xmm7[2,3] movapd %xmm0, %xmm3 subps %xmm4, %xmm3 movaps %xmm3, %xmm5 mulps %xmm3, %xmm5 shufps $0x55, %xmm5, %xmm5 # xmm5 = xmm5[1,1,1,1] movaps %xmm3, %xmm4 mulss %xmm3, %xmm4 addss %xmm5, %xmm4 xorps %xmm5, %xmm5 ucomiss %xmm5, %xmm4 jbe 0x2fa66b sqrtss %xmm4, %xmm4 movss 0x88b20(%rip), %xmm5 # 0x383180 divss %xmm4, %xmm5 shufps $0x0, %xmm5, %xmm5 # xmm5 = xmm5[0,0,0,0] mulps %xmm5, %xmm3 mulss 0x88b15(%rip), %xmm2 # 0x383188 movq 0x48(%rbx), %rdx shufps $0x0, %xmm2, %xmm2 # xmm2 = xmm2[0,0,0,0] mulps %xmm3, %xmm2 movaps %xmm2, %xmm3 addps %xmm7, %xmm3 subps %xmm2, %xmm7 movaps %xmm7, %xmm4 shufps $0x10, %xmm3, %xmm4 # xmm4 = xmm4[0,0],xmm3[1,0] shufps $0x42, %xmm1, %xmm4 # xmm4 = xmm4[2,0],xmm1[0,1] movups %xmm4, (%rdx) movq 0x48(%rbx), %rdx movl %ecx, 0x10(%rdx) movaps %xmm2, %xmm4 shufps $0x55, %xmm2, %xmm4 # xmm4 = xmm4[1,1],xmm2[1,1] movaps %xmm4, %xmm5 addss %xmm0, %xmm5 movss %xmm5, 0x14(%rdx) movaps %xmm0, %xmm5 shufps $0x55, %xmm0, %xmm5 # xmm5 = xmm5[1,1],xmm0[1,1] movaps %xmm5, %xmm6 subss %xmm2, %xmm6 movss %xmm6, 0x18(%rdx) movlps %xmm1, 0x1c(%rdx) movq 0x48(%rbx), %rdx movl %ecx, 0x24(%rdx) subss %xmm4, %xmm0 movss %xmm0, 0x28(%rdx) addss %xmm2, %xmm5 movss %xmm5, 0x2c(%rdx) movlps %xmm1, 0x30(%rdx) movq 0x48(%rbx), %rdx movl %ecx, 0x38(%rdx) shufps $0x55, %xmm7, %xmm7 # xmm7 = xmm7[1,1,1,1] movss %xmm7, 0x3c(%rdx) movss %xmm3, 0x40(%rdx) movlps %xmm1, 0x44(%rdx) movq 0x48(%rbx), %rdx movl %ecx, 0x4c(%rdx) addq $0x50, %rdx movq %rdx, 0x48(%rbx) movl 0x34(%rbx), %ecx movq 0x50(%rbx), %rdx movl %ecx, (%rdx) incl %ecx movl %ecx, 0x4(%rdx) movl 0x34(%rbx), %ecx addl $0x2, %ecx movl %ecx, 0x8(%rdx) movl 0x34(%rbx), %ecx movl %ecx, 0xc(%rdx) addl $0x2, %ecx movl %ecx, 0x10(%rdx) movl 0x34(%rbx), %ecx addl $0x3, %ecx movl %ecx, 0x14(%rdx) addq $0x18, %rdx movq %rdx, 0x50(%rbx) addl $0x4, 0x34(%rbx) cmpb $0xf, %al sete %al addq $0x58, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
ImPlot::LineSegmentsRenderer<ImPlot::GetterYs<unsigned short>, ImPlot::GetterYRef, ImPlot::TransformerLogLog>::operator()(ImDrawList&, ImRect const&, ImVec2 const&, int) const
inline bool operator()(ImDrawList& DrawList, const ImRect& cull_rect, const ImVec2& uv, int prim) const { ImVec2 P1 = Transformer(Getter1(prim)); ImVec2 P2 = Transformer(Getter2(prim)); if (!cull_rect.Overlaps(ImRect(ImMin(P1, P2), ImMax(P1, P2)))) return false; AddLine(P1,P2,Weight,Col,DrawList,uv); return true; }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x58, %rsp movl %r8d, %eax movq %rcx, 0x50(%rsp) movq %rdx, %r12 movq %rsi, %rbx movq %rdi, %r15 movq (%rdi), %rcx movq 0x10(%rdi), %r14 cvtsi2sd %r8d, %xmm1 movsd %xmm1, 0x10(%rsp) movsd 0x10(%rcx), %xmm0 mulsd %xmm1, %xmm0 addsd 0x18(%rcx), %xmm0 movq (%rcx), %rsi movl 0x8(%rcx), %edi addl 0x20(%rcx), %eax movslq 0x24(%rcx), %rcx cltd idivl %edi leal (%rdx,%rdi), %eax cltd idivl %edi movslq %edx, %rax imulq %rcx, %rax movzwl (%rsi,%rax), %eax xorps %xmm1, %xmm1 cvtsi2sd %eax, %xmm1 movsd %xmm1, (%rsp) movq 0x16fae9(%rip), %rbp # 0x46a3f0 movq (%rbp), %r13 movq 0x28(%r13), %rax divsd 0x18(%rax), %xmm0 callq 0xe2ca0 movq 0x28(%r13), %rax movslq (%r14), %rcx shlq $0x7, %rcx movsd (%rsp), %xmm1 divsd 0x98(%rax,%rcx), %xmm1 movapd %xmm0, 0x30(%rsp) movsd 0x1b8(%r13), %xmm0 movaps %xmm0, 0x20(%rsp) movsd 0x18(%rax), %xmm0 movaps %xmm0, (%rsp) movsd 0x20(%rax), %xmm0 movaps %xmm0, 0x40(%rsp) movapd %xmm1, %xmm0 callq 0xe2ca0 movslq (%r14), %rcx movq 0x28(%r13), %rax movapd 0x20(%rsp), %xmm4 movhpd 0x1c0(%r13,%rcx,8), %xmm4 # xmm4 = xmm4[0],mem[0] movq %rcx, %rdx movsd 0x198(%r13), %xmm1 movhpd 0x1a0(%r13,%rcx,8), %xmm1 # xmm1 = xmm1[0],mem[0] shlq $0x7, %rcx shlq $0x4, %rdx movq 0x8(%r15), %rsi movsd 0x10(%rsp), %xmm2 mulsd 0x10(%rsi), %xmm2 addsd 0x18(%rsi), %xmm2 movq 0x10(%r15), %r14 movapd 0x30(%rsp), %xmm3 unpcklpd %xmm0, %xmm3 # xmm3 = xmm3[0],xmm0[0] movsd (%rsi), %xmm0 movsd %xmm0, 0x10(%rsp) movq (%rbp), %rbp movq 0x28(%rbp), %rsi divsd 0x18(%rsi), %xmm2 movapd %xmm2, %xmm0 divpd %xmm4, %xmm3 cvtpd2ps %xmm3, %xmm3 movapd 0x40(%rsp), %xmm6 movhpd 0xa0(%rax,%rcx), %xmm6 # xmm6 = xmm6[0],mem[0] movsd 0x98(%rax,%rcx), %xmm2 movapd (%rsp), %xmm4 unpcklpd %xmm2, %xmm4 # xmm4 = xmm4[0],xmm2[0] cvtps2pd %xmm3, %xmm5 subpd %xmm4, %xmm6 mulpd %xmm6, %xmm5 cvtps2pd 0x164(%r13,%rdx), %xmm3 addpd %xmm4, %xmm5 movsd 0x18(%rax), %xmm4 unpcklpd %xmm2, %xmm4 # xmm4 = xmm4[0],xmm2[0] subpd %xmm4, %xmm5 mulpd %xmm5, %xmm1 addpd %xmm3, %xmm1 cvtpd2ps %xmm1, %xmm1 movapd %xmm1, 0x40(%rsp) callq 0xe2ca0 movq 0x28(%rbp), %rax movslq (%r14), %rcx shlq $0x7, %rcx movsd 0x10(%rsp), %xmm1 divsd 0x98(%rax,%rcx), %xmm1 movapd %xmm0, 0x20(%rsp) movsd 0x1b8(%rbp), %xmm0 movaps %xmm0, 0x30(%rsp) movsd 0x18(%rax), %xmm0 movaps %xmm0, 0x10(%rsp) movsd 0x20(%rax), %xmm0 movaps %xmm0, (%rsp) movapd %xmm1, %xmm0 callq 0xe2ca0 movaps 0x40(%rsp), %xmm6 movslq (%r14), %rax unpcklpd 0x20(%rsp), %xmm0 # xmm0 = xmm0[0],mem[0] movsd 0x1a0(%rbp,%rax,8), %xmm1 movsd 0x1c0(%rbp,%rax,8), %xmm2 unpcklpd 0x30(%rsp), %xmm2 # xmm2 = xmm2[0],mem[0] divpd %xmm2, %xmm0 movq 0x28(%rbp), %rcx movq %rax, %rdx cvtpd2ps %xmm0, %xmm0 shlq $0x7, %rdx movsd 0x98(%rcx,%rdx), %xmm2 movsd 0xa0(%rcx,%rdx), %xmm3 unpcklpd (%rsp), %xmm3 # xmm3 = xmm3[0],mem[0] movapd %xmm2, %xmm4 unpcklpd 0x10(%rsp), %xmm4 # xmm4 = xmm4[0],mem[0] cvtps2pd %xmm0, %xmm0 subpd %xmm4, %xmm3 mulpd %xmm3, %xmm0 addpd %xmm4, %xmm0 shlq $0x4, %rax cvtps2pd 0x164(%rbp,%rax), %xmm3 movhpd 0x18(%rcx), %xmm2 # xmm2 = xmm2[0],mem[0] shufpd $0x1, %xmm3, %xmm3 # xmm3 = xmm3[1,0] subpd %xmm2, %xmm0 movhpd 0x198(%rbp), %xmm1 # xmm1 = xmm1[0],mem[0] mulpd %xmm0, %xmm1 addpd %xmm3, %xmm1 cvtpd2ps %xmm1, %xmm0 movaps %xmm6, %xmm1 movlhps %xmm6, %xmm1 # xmm1 = xmm1[0],xmm6[0] movapd %xmm0, %xmm2 shufps $0x11, %xmm0, %xmm2 # xmm2 = xmm2[1,0],xmm0[1,0] movaps %xmm2, %xmm3 cmpleps %xmm1, %xmm3 movaps %xmm1, %xmm4 cmpltps %xmm2, %xmm4 movsd %xmm3, %xmm4 # xmm4 = xmm3[0],xmm4[1] andps %xmm4, %xmm1 andnps %xmm2, %xmm4 orps %xmm1, %xmm4 movups (%r12), %xmm1 movaps %xmm1, %xmm2 cmpltps %xmm4, %xmm2 cmpltps %xmm1, %xmm4 movsd %xmm2, %xmm4 # xmm4 = xmm2[0],xmm4[1] movmskps %xmm4, %eax cmpl $0xf, %eax jne 0x2fac8c movss 0x20(%r15), %xmm2 movl 0x1c(%r15), %ecx movq 0x50(%rsp), %rdx movsd (%rdx), %xmm1 movaps %xmm6, %xmm4 shufps $0xe1, %xmm6, %xmm4 # xmm4 = xmm4[1,0],xmm6[2,3] movaps %xmm0, %xmm3 subps %xmm4, %xmm3 movaps %xmm3, %xmm4 shufps $0x55, %xmm3, %xmm4 # xmm4 = xmm4[1,1],xmm3[1,1] movaps %xmm3, %xmm5 mulss %xmm3, %xmm5 mulss %xmm4, %xmm4 addss %xmm5, %xmm4 xorps %xmm5, %xmm5 ucomiss %xmm5, %xmm4 jbe 0x2fabb7 sqrtss %xmm4, %xmm4 movss 0x885d4(%rip), %xmm5 # 0x383180 divss %xmm4, %xmm5 shufps $0x0, %xmm5, %xmm5 # xmm5 = xmm5[0,0,0,0] mulps %xmm5, %xmm3 mulss 0x885c9(%rip), %xmm2 # 0x383188 movq 0x48(%rbx), %rdx shufps $0x0, %xmm2, %xmm2 # xmm2 = xmm2[0,0,0,0] mulps %xmm3, %xmm2 movaps %xmm2, %xmm3 addps %xmm6, %xmm3 subps %xmm2, %xmm6 movaps %xmm6, %xmm4 shufps $0x1, %xmm3, %xmm4 # xmm4 = xmm4[1,0],xmm3[0,0] shufps $0x42, %xmm1, %xmm4 # xmm4 = xmm4[2,0],xmm1[0,1] movups %xmm4, (%rdx) movq 0x48(%rbx), %rdx movl %ecx, 0x10(%rdx) movaps %xmm0, %xmm4 shufps $0x55, %xmm0, %xmm4 # xmm4 = xmm4[1,1],xmm0[1,1] movaps %xmm2, %xmm5 addss %xmm4, %xmm5 movss %xmm5, 0x14(%rdx) subss %xmm2, %xmm4 shufps $0x55, %xmm2, %xmm2 # xmm2 = xmm2[1,1,1,1] movaps %xmm0, %xmm5 subss %xmm2, %xmm5 movss %xmm5, 0x18(%rdx) movlps %xmm1, 0x1c(%rdx) movq 0x48(%rbx), %rdx movl %ecx, 0x24(%rdx) movss %xmm4, 0x28(%rdx) addss %xmm0, %xmm2 movss %xmm2, 0x2c(%rdx) movlps %xmm1, 0x30(%rdx) movq 0x48(%rbx), %rdx movl %ecx, 0x38(%rdx) movss %xmm6, 0x3c(%rdx) shufps $0x55, %xmm3, %xmm3 # xmm3 = xmm3[1,1,1,1] movss %xmm3, 0x40(%rdx) movlps %xmm1, 0x44(%rdx) movq 0x48(%rbx), %rdx movl %ecx, 0x4c(%rdx) addq $0x50, %rdx movq %rdx, 0x48(%rbx) movl 0x34(%rbx), %ecx movq 0x50(%rbx), %rdx movl %ecx, (%rdx) incl %ecx movl %ecx, 0x4(%rdx) movl 0x34(%rbx), %ecx addl $0x2, %ecx movl %ecx, 0x8(%rdx) movl 0x34(%rbx), %ecx movl %ecx, 0xc(%rdx) addl $0x2, %ecx movl %ecx, 0x10(%rdx) movl 0x34(%rbx), %ecx addl $0x3, %ecx movl %ecx, 0x14(%rdx) addq $0x18, %rdx movq %rdx, 0x50(%rbx) addl $0x4, 0x34(%rbx) cmpb $0xf, %al sete %al addq $0x58, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
void ImPlot::RenderPrimitives<ImPlot::LineSegmentsRenderer<ImPlot::GetterYs<int>, ImPlot::GetterYRef, ImPlot::TransformerLogLin>>(ImPlot::LineSegmentsRenderer<ImPlot::GetterYs<int>, ImPlot::GetterYRef, ImPlot::TransformerLogLin> const&, ImDrawList&, ImRect const&)
inline void RenderPrimitives(const Renderer& renderer, ImDrawList& DrawList, const ImRect& cull_rect) { unsigned int prims = renderer.Prims; unsigned int prims_culled = 0; unsigned int idx = 0; const ImVec2 uv = DrawList._Data->TexUvWhitePixel; while (prims) { // find how many can be reserved up to end of current draw command's limit unsigned int cnt = ImMin(prims, (MaxIdx<ImDrawIdx>::Value - DrawList._VtxCurrentIdx) / Renderer::VtxConsumed); // make sure at least this many elements can be rendered to avoid situations where at the end of buffer this slow path is not taken all the time if (cnt >= ImMin(64u, prims)) { if (prims_culled >= cnt) prims_culled -= cnt; // reuse previous reservation else { DrawList.PrimReserve((cnt - prims_culled) * Renderer::IdxConsumed, (cnt - prims_culled) * Renderer::VtxConsumed); // add more elements to previous reservation prims_culled = 0; } } else { if (prims_culled > 0) { DrawList.PrimUnreserve(prims_culled * Renderer::IdxConsumed, prims_culled * Renderer::VtxConsumed); prims_culled = 0; } cnt = ImMin(prims, (MaxIdx<ImDrawIdx>::Value - 0/*DrawList._VtxCurrentIdx*/) / Renderer::VtxConsumed); DrawList.PrimReserve(cnt * Renderer::IdxConsumed, cnt * Renderer::VtxConsumed); // reserve new draw command } prims -= cnt; for (unsigned int ie = idx + cnt; idx != ie; ++idx) { if (!renderer(DrawList, cull_rect, uv, idx)) prims_culled++; } } if (prims_culled > 0) DrawList.PrimUnreserve(prims_culled * Renderer::IdxConsumed, prims_culled * Renderer::VtxConsumed); }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rsi, %rbx movl 0x18(%rdi), %esi movq 0x38(%rbx), %rax movq (%rax), %rax movq %rax, 0x8(%rsp) testl %esi, %esi je 0x2fbdf3 movq %rdx, %r14 movq %rdi, %r15 xorl %r12d, %r12d leaq 0x8(%rsp), %rcx xorl %ebp, %ebp movl 0x34(%rbx), %edi movl %edi, %eax notl %eax shrl $0x2, %eax cmpl %eax, %esi movl %eax, %r13d cmovbl %esi, %r13d cmpl $0x40, %esi movl $0x40, %edx cmovbl %esi, %edx cmpl %edx, %eax jae 0x2fbd55 testl %ebp, %ebp je 0x2fbd41 leal (,%rbp,2), %eax movl %esi, %r13d leal (%rax,%rax,2), %esi shll $0x2, %ebp movq %rbx, %rdi movl %ebp, %edx callq 0xe0140 movl %r13d, %esi movl $0x3fffffff, %eax # imm = 0x3FFFFFFF cmpl %eax, %esi movl $0x3fffffff, %edx # imm = 0x3FFFFFFF cmovbl %esi, %edx movl %edx, %r13d jmp 0x2fbd61 movl %ebp, %eax subl %r13d, %eax jae 0x2fbdc6 movl %r13d, %edx subl %ebp, %edx movl %esi, %ebp leal (%rdx,%rdx), %eax leal (%rax,%rax,2), %esi shll $0x2, %edx movq %rbx, %rdi callq 0xe3170 subl %r13d, %ebp movl %ebp, 0x4(%rsp) xorl %eax, %eax leaq 0x8(%rsp), %rcx leal (%r12,%r13), %edx movl %edx, 0x14(%rsp) movl %eax, %ebp movq %r15, %rdi movq %rbx, %rsi movq %r14, %rdx movl %r12d, %r8d callq 0xeb010 leaq 0x8(%rsp), %rcx xorb $0x1, %al movzbl %al, %eax addl %eax, %ebp incl %r12d decl %r13d jne 0x2fbd8c movl 0x14(%rsp), %eax movl %eax, %r12d movl 0x4(%rsp), %esi testl %esi, %esi jne 0x2fbcfe jmp 0x2fbdd8 subl %r13d, %esi cmpl $-0x5, %edi jbe 0x2fbdd2 movl %eax, %ebp jmp 0x2fbdbc movl %esi, 0x4(%rsp) jmp 0x2fbd82 testl %ebp, %ebp je 0x2fbdf3 leal (,%rbp,2), %eax leal (%rax,%rax,2), %esi shll $0x2, %ebp movq %rbx, %rdi movl %ebp, %edx callq 0xe0140 addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
ImPlot::LineSegmentsRenderer<ImPlot::GetterYs<int>, ImPlot::GetterYRef, ImPlot::TransformerLinLog>::operator()(ImDrawList&, ImRect const&, ImVec2 const&, int) const
inline bool operator()(ImDrawList& DrawList, const ImRect& cull_rect, const ImVec2& uv, int prim) const { ImVec2 P1 = Transformer(Getter1(prim)); ImVec2 P2 = Transformer(Getter2(prim)); if (!cull_rect.Overlaps(ImRect(ImMin(P1, P2), ImMax(P1, P2)))) return false; AddLine(P1,P2,Weight,Col,DrawList,uv); return true; }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x58, %rsp movl %r8d, %eax movq %rcx, 0x28(%rsp) movq %rdx, %r12 movq %rsi, %rbx movq %rdi, %r15 movq (%rdi), %rcx cvtsi2sd %r8d, %xmm0 movapd %xmm0, 0x30(%rsp) movq 0x10(%rdi), %r14 movq (%rcx), %rsi movl 0x8(%rcx), %edi movslq 0x24(%rcx), %r8 addl 0x20(%rcx), %eax cltd idivl %edi leal (%rdx,%rdi), %eax cltd idivl %edi movslq %edx, %rax imulq %r8, %rax xorps %xmm0, %xmm0 cvtsi2sdl (%rsi,%rax), %xmm0 movq 0x16e117(%rip), %rbp # 0x46a3f0 movq (%rbp), %r13 movq 0x28(%r13), %rax movslq (%r14), %rdx shlq $0x7, %rdx divsd 0x98(%rax,%rdx), %xmm0 movsd 0x10(%rcx), %xmm1 movaps %xmm1, (%rsp) movsd 0x18(%rcx), %xmm1 movaps %xmm1, 0x10(%rsp) callq 0xe2ca0 movslq (%r14), %rdx divsd 0x1c0(%r13,%rdx,8), %xmm0 movq 0x28(%r13), %rax movq %rdx, %rcx movsd 0x1a0(%r13,%rdx,8), %xmm1 shlq $0x7, %rdx movupd 0x98(%rax,%rdx), %xmm2 movapd %xmm2, %xmm3 unpckhpd %xmm2, %xmm3 # xmm3 = xmm3[1],xmm2[1] subpd %xmm2, %xmm3 unpcklpd (%rsp), %xmm3 # xmm3 = xmm3[0],mem[0] cvtsd2ss %xmm0, %xmm0 cvtss2sd %xmm0, %xmm4 movq 0x8(%r15), %rdx movq 0x10(%r15), %r14 unpcklpd 0x30(%rsp), %xmm4 # xmm4 = xmm4[0],mem[0] mulpd %xmm3, %xmm4 movapd %xmm2, %xmm3 unpcklpd 0x10(%rsp), %xmm3 # xmm3 = xmm3[0],mem[0] movsd (%rdx), %xmm0 movq (%rbp), %rbp movq 0x28(%rbp), %rsi movslq (%r14), %rdi shlq $0x7, %rdi divsd 0x98(%rsi,%rdi), %xmm0 shlq $0x4, %rcx addpd %xmm4, %xmm3 cvtps2pd 0x164(%r13,%rcx), %xmm4 shufpd $0x1, %xmm4, %xmm4 # xmm4 = xmm4[1,0] movhpd 0x18(%rax), %xmm2 # xmm2 = xmm2[0],mem[0] subpd %xmm2, %xmm3 movhpd 0x198(%r13), %xmm1 # xmm1 = xmm1[0],mem[0] mulpd %xmm3, %xmm1 addpd %xmm4, %xmm1 cvtpd2ps %xmm1, %xmm1 movapd %xmm1, 0x40(%rsp) movsd 0x10(%rdx), %xmm1 movaps %xmm1, (%rsp) movsd 0x18(%rdx), %xmm1 movaps %xmm1, 0x10(%rsp) callq 0xe2ca0 movaps 0x40(%rsp), %xmm7 movslq (%r14), %rcx divsd 0x1c0(%rbp,%rcx,8), %xmm0 movq 0x28(%rbp), %rax movsd 0x198(%rbp), %xmm1 movhpd 0x1a0(%rbp,%rcx,8), %xmm1 # xmm1 = xmm1[0],mem[0] movq %rcx, %rdx shlq $0x7, %rcx movsd 0x98(%rax,%rcx), %xmm2 movsd 0xa0(%rax,%rcx), %xmm3 cvtsd2ss %xmm0, %xmm0 subsd %xmm2, %xmm3 movapd (%rsp), %xmm4 unpcklpd %xmm3, %xmm4 # xmm4 = xmm4[0],xmm3[0] cvtss2sd %xmm0, %xmm0 movaps 0x30(%rsp), %xmm3 movlhps %xmm0, %xmm3 # xmm3 = xmm3[0],xmm0[0] mulpd %xmm4, %xmm3 movapd 0x10(%rsp), %xmm4 unpcklpd %xmm2, %xmm4 # xmm4 = xmm4[0],xmm2[0] shlq $0x4, %rdx cvtps2pd 0x164(%rbp,%rdx), %xmm0 addpd %xmm3, %xmm4 movsd 0x18(%rax), %xmm3 unpcklpd %xmm2, %xmm3 # xmm3 = xmm3[0],xmm2[0] subpd %xmm3, %xmm4 mulpd %xmm4, %xmm1 addpd %xmm0, %xmm1 cvtpd2ps %xmm1, %xmm0 movaps %xmm7, %xmm1 shufps $0x11, %xmm7, %xmm1 # xmm1 = xmm1[1,0],xmm7[1,0] movapd %xmm0, %xmm2 unpcklpd %xmm0, %xmm2 # xmm2 = xmm2[0],xmm0[0] movapd %xmm2, %xmm3 cmpleps %xmm1, %xmm3 movaps %xmm1, %xmm4 cmpltps %xmm2, %xmm4 movsd %xmm3, %xmm4 # xmm4 = xmm3[0],xmm4[1] andps %xmm4, %xmm1 andnps %xmm2, %xmm4 orps %xmm1, %xmm4 movups (%r12), %xmm1 movaps %xmm1, %xmm2 cmpltps %xmm4, %xmm2 cmpltps %xmm1, %xmm4 movsd %xmm2, %xmm4 # xmm4 = xmm2[0],xmm4[1] movmskps %xmm4, %eax cmpl $0xf, %eax jne 0x2fc5e2 movss 0x20(%r15), %xmm2 movl 0x1c(%r15), %ecx movq 0x28(%rsp), %rdx movsd (%rdx), %xmm1 movaps %xmm7, %xmm4 shufps $0xe1, %xmm7, %xmm4 # xmm4 = xmm4[1,0],xmm7[2,3] movapd %xmm0, %xmm3 subps %xmm4, %xmm3 movaps %xmm3, %xmm5 mulps %xmm3, %xmm5 shufps $0x55, %xmm5, %xmm5 # xmm5 = xmm5[1,1,1,1] movaps %xmm3, %xmm4 mulss %xmm3, %xmm4 addss %xmm5, %xmm4 xorps %xmm5, %xmm5 ucomiss %xmm5, %xmm4 jbe 0x2fc50a sqrtss %xmm4, %xmm4 movss 0x86c81(%rip), %xmm5 # 0x383180 divss %xmm4, %xmm5 shufps $0x0, %xmm5, %xmm5 # xmm5 = xmm5[0,0,0,0] mulps %xmm5, %xmm3 mulss 0x86c76(%rip), %xmm2 # 0x383188 movq 0x48(%rbx), %rdx shufps $0x0, %xmm2, %xmm2 # xmm2 = xmm2[0,0,0,0] mulps %xmm3, %xmm2 movaps %xmm2, %xmm3 addps %xmm7, %xmm3 subps %xmm2, %xmm7 movaps %xmm7, %xmm4 shufps $0x10, %xmm3, %xmm4 # xmm4 = xmm4[0,0],xmm3[1,0] shufps $0x42, %xmm1, %xmm4 # xmm4 = xmm4[2,0],xmm1[0,1] movups %xmm4, (%rdx) movq 0x48(%rbx), %rdx movl %ecx, 0x10(%rdx) movaps %xmm2, %xmm4 shufps $0x55, %xmm2, %xmm4 # xmm4 = xmm4[1,1],xmm2[1,1] movaps %xmm4, %xmm5 addss %xmm0, %xmm5 movss %xmm5, 0x14(%rdx) movaps %xmm0, %xmm5 shufps $0x55, %xmm0, %xmm5 # xmm5 = xmm5[1,1],xmm0[1,1] movaps %xmm5, %xmm6 subss %xmm2, %xmm6 movss %xmm6, 0x18(%rdx) movlps %xmm1, 0x1c(%rdx) movq 0x48(%rbx), %rdx movl %ecx, 0x24(%rdx) subss %xmm4, %xmm0 movss %xmm0, 0x28(%rdx) addss %xmm2, %xmm5 movss %xmm5, 0x2c(%rdx) movlps %xmm1, 0x30(%rdx) movq 0x48(%rbx), %rdx movl %ecx, 0x38(%rdx) shufps $0x55, %xmm7, %xmm7 # xmm7 = xmm7[1,1,1,1] movss %xmm7, 0x3c(%rdx) movss %xmm3, 0x40(%rdx) movlps %xmm1, 0x44(%rdx) movq 0x48(%rbx), %rdx movl %ecx, 0x4c(%rdx) addq $0x50, %rdx movq %rdx, 0x48(%rbx) movl 0x34(%rbx), %ecx movq 0x50(%rbx), %rdx movl %ecx, (%rdx) incl %ecx movl %ecx, 0x4(%rdx) movl 0x34(%rbx), %ecx addl $0x2, %ecx movl %ecx, 0x8(%rdx) movl 0x34(%rbx), %ecx movl %ecx, 0xc(%rdx) addl $0x2, %ecx movl %ecx, 0x10(%rdx) movl 0x34(%rbx), %ecx addl $0x3, %ecx movl %ecx, 0x14(%rdx) addq $0x18, %rdx movq %rdx, 0x50(%rbx) addl $0x4, 0x34(%rbx) cmpb $0xf, %al sete %al addq $0x58, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
void ImPlot::RenderLineSegments<ImPlot::GetterYs<unsigned int>, ImPlot::GetterYRef, ImPlot::TransformerLinLog>(ImPlot::GetterYs<unsigned int> const&, ImPlot::GetterYRef const&, ImPlot::TransformerLinLog const&, ImDrawList&, float, unsigned int)
inline void RenderLineSegments(const Getter1& getter1, const Getter2& getter2, const Transformer& transformer, ImDrawList& DrawList, float line_weight, ImU32 col) { ImPlotContext& gp = *GImPlot; if (ImHasFlag(gp.CurrentPlot->Flags, ImPlotFlags_AntiAliased) || gp.Style.AntiAliasedLines) { int I = ImMin(getter1.Count, getter2.Count); for (int i = 0; i < I; ++i) { ImVec2 p1 = transformer(getter1(i)); ImVec2 p2 = transformer(getter2(i)); if (gp.CurrentPlot->PlotRect.Overlaps(ImRect(ImMin(p1, p2), ImMax(p1, p2)))) DrawList.AddLine(p1, p2, col, line_weight); } } else { RenderPrimitives(LineSegmentsRenderer<Getter1,Getter2,Transformer>(getter1, getter2, transformer, col, line_weight), DrawList, gp.CurrentPlot->PlotRect); } }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x88, %rsp movl %r8d, 0xc(%rsp) movss %xmm0, 0x10(%rsp) movq %rcx, 0x18(%rsp) movq %rdx, %r15 movq %rsi, %r14 movq %rdi, %r12 movq 0x16d318(%rip), %rax # 0x46a3f0 movq (%rax), %rax movq 0x28(%rax), %rdx testb $0x10, 0x5(%rdx) jne 0x2fd0f2 cmpb $0x1, 0x448(%rax) jne 0x2fd39d movq %rax, 0x50(%rsp) movl 0x8(%r12), %eax movl 0x8(%r14), %ecx cmpl %ecx, %eax cmovll %eax, %ecx movl %ecx, 0x14(%rsp) testl %ecx, %ecx jle 0x2fd3e1 xorl %r13d, %r13d xorpd %xmm5, %xmm5 movapd %xmm5, 0x40(%rsp) movups 0x18(%r12), %xmm0 movaps %xmm0, 0x30(%rsp) movups 0x10(%r12), %xmm0 movaps %xmm0, 0x20(%rsp) movq (%r12), %rcx movl 0x8(%r12), %esi movslq 0x24(%r12), %rdi movl 0x20(%r12), %eax addl %r13d, %eax cltd idivl %esi leal (%rdx,%rsi), %eax cltd idivl %esi movslq %edx, %rax imulq %rdi, %rax movl (%rcx,%rax), %eax xorps %xmm0, %xmm0 cvtsi2sd %rax, %xmm0 movq 0x16d284(%rip), %rbp # 0x46a3f0 movq (%rbp), %rbx movq 0x28(%rbx), %rax movslq (%r15), %rcx shlq $0x7, %rcx divsd 0x98(%rax,%rcx), %xmm0 callq 0xe2ca0 movslq (%r15), %rcx divsd 0x1c0(%rbx,%rcx,8), %xmm0 movq 0x28(%rbx), %rax movq %rcx, %rdx movsd 0x198(%rbx), %xmm1 movhpd 0x1a0(%rbx,%rcx,8), %xmm1 # xmm1 = xmm1[0],mem[0] shlq $0x7, %rcx movsd 0x98(%rax,%rcx), %xmm2 movsd 0xa0(%rax,%rcx), %xmm3 cvtsd2ss %xmm0, %xmm0 subsd %xmm2, %xmm3 movapd 0x20(%rsp), %xmm4 unpcklpd %xmm3, %xmm4 # xmm4 = xmm4[0],xmm3[0] cvtss2sd %xmm0, %xmm0 movaps 0x40(%rsp), %xmm3 movlhps %xmm0, %xmm3 # xmm3 = xmm3[0],xmm0[0] shlq $0x4, %rdx mulpd %xmm4, %xmm3 movapd 0x30(%rsp), %xmm4 unpcklpd %xmm2, %xmm4 # xmm4 = xmm4[0],xmm2[0] cvtps2pd 0x164(%rbx,%rdx), %xmm0 addpd %xmm3, %xmm4 movsd 0x18(%rax), %xmm3 unpcklpd %xmm2, %xmm3 # xmm3 = xmm3[0],xmm2[0] subpd %xmm3, %xmm4 mulpd %xmm4, %xmm1 addpd %xmm0, %xmm1 cvtpd2ps %xmm1, %xmm0 movlpd %xmm0, 0x60(%rsp) movups 0x10(%r14), %xmm0 movaps %xmm0, 0x20(%rsp) movsd (%r14), %xmm0 movq (%rbp), %rbx movq 0x28(%rbx), %rax divsd 0x98(%rax,%rcx), %xmm0 movsd 0x18(%r14), %xmm1 movaps %xmm1, 0x30(%rsp) callq 0xe2ca0 movaps 0x40(%rsp), %xmm5 movslq (%r15), %rcx divsd 0x1c0(%rbx,%rcx,8), %xmm0 movq 0x28(%rbx), %rax movq %rcx, %rdx movsd 0x198(%rbx), %xmm1 movhpd 0x1a0(%rbx,%rcx,8), %xmm1 # xmm1 = xmm1[0],mem[0] shlq $0x7, %rcx movsd 0x98(%rax,%rcx), %xmm2 movsd 0xa0(%rax,%rcx), %xmm3 cvtsd2ss %xmm0, %xmm0 subsd %xmm2, %xmm3 movapd 0x20(%rsp), %xmm4 unpcklpd %xmm3, %xmm4 # xmm4 = xmm4[0],xmm3[0] cvtss2sd %xmm0, %xmm0 movaps %xmm5, %xmm3 movlhps %xmm0, %xmm3 # xmm3 = xmm3[0],xmm0[0] shlq $0x4, %rdx mulpd %xmm4, %xmm3 movapd 0x30(%rsp), %xmm4 unpcklpd %xmm2, %xmm4 # xmm4 = xmm4[0],xmm2[0] addpd %xmm3, %xmm4 cvtps2pd 0x164(%rbx,%rdx), %xmm0 movsd 0x18(%rax), %xmm3 unpcklpd %xmm2, %xmm3 # xmm3 = xmm3[0],xmm2[0] subpd %xmm3, %xmm4 mulpd %xmm4, %xmm1 addpd %xmm0, %xmm1 cvtpd2ps %xmm1, %xmm0 movlpd %xmm0, 0x58(%rsp) movq 0x50(%rsp), %rax movq 0x28(%rax), %rax movss 0x64(%rsp), %xmm1 movapd %xmm0, %xmm2 shufps $0x55, %xmm0, %xmm2 # xmm2 = xmm2[1,1],xmm0[1,1] movaps %xmm1, %xmm3 minss %xmm2, %xmm3 movss 0x2c4(%rax), %xmm4 ucomiss %xmm3, %xmm4 jbe 0x2fd385 movaps %xmm2, %xmm3 cmpless %xmm1, %xmm3 andps %xmm3, %xmm1 andnps %xmm2, %xmm3 orps %xmm1, %xmm3 ucomiss 0x2bc(%rax), %xmm3 jbe 0x2fd385 movss 0x60(%rsp), %xmm1 movaps %xmm1, %xmm2 minss %xmm0, %xmm2 movss 0x2c0(%rax), %xmm3 ucomiss %xmm2, %xmm3 jbe 0x2fd385 movaps %xmm0, %xmm2 cmpless %xmm1, %xmm2 movaps %xmm2, %xmm3 andnps %xmm0, %xmm3 andps %xmm1, %xmm2 orps %xmm3, %xmm2 ucomiss 0x2b8(%rax), %xmm2 jbe 0x2fd385 movq 0x18(%rsp), %rdi leaq 0x60(%rsp), %rsi leaq 0x58(%rsp), %rdx movl 0xc(%rsp), %ecx movss 0x10(%rsp), %xmm0 callq 0xe5ce0 movaps 0x40(%rsp), %xmm5 addsd 0x87d6b(%rip), %xmm5 # 0x3850f8 incl %r13d cmpl %r13d, 0x14(%rsp) jne 0x2fd118 jmp 0x2fd3e1 leaq 0x60(%rsp), %rdi movq %r12, (%rdi) movq %r14, 0x8(%rdi) movq %r15, 0x10(%rdi) movl 0x8(%r12), %eax movl 0x8(%r14), %ecx cmpl %ecx, %eax cmovll %eax, %ecx movl %ecx, 0x18(%rdi) movl 0xc(%rsp), %eax movl %eax, 0x1c(%rdi) movss 0x10(%rsp), %xmm0 movss %xmm0, 0x20(%rdi) addq $0x2b8, %rdx # imm = 0x2B8 movq 0x18(%rsp), %rsi callq 0xea930 addq $0x88, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
ImPlot::LineSegmentsRenderer<ImPlot::GetterYs<unsigned int>, ImPlot::GetterYRef, ImPlot::TransformerLogLog>::operator()(ImDrawList&, ImRect const&, ImVec2 const&, int) const
inline bool operator()(ImDrawList& DrawList, const ImRect& cull_rect, const ImVec2& uv, int prim) const { ImVec2 P1 = Transformer(Getter1(prim)); ImVec2 P2 = Transformer(Getter2(prim)); if (!cull_rect.Overlaps(ImRect(ImMin(P1, P2), ImMax(P1, P2)))) return false; AddLine(P1,P2,Weight,Col,DrawList,uv); return true; }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x58, %rsp movl %r8d, %eax movq %rcx, 0x50(%rsp) movq %rdx, %r12 movq %rsi, %rbx movq %rdi, %r15 movq (%rdi), %rcx movq 0x10(%rdi), %r14 cvtsi2sd %r8d, %xmm1 movsd %xmm1, 0x10(%rsp) movsd 0x10(%rcx), %xmm0 mulsd %xmm1, %xmm0 addsd 0x18(%rcx), %xmm0 movq (%rcx), %rsi movl 0x8(%rcx), %edi addl 0x20(%rcx), %eax movslq 0x24(%rcx), %rcx cltd idivl %edi leal (%rdx,%rdi), %eax cltd idivl %edi movslq %edx, %rax imulq %rcx, %rax movl (%rsi,%rax), %eax xorps %xmm1, %xmm1 cvtsi2sd %rax, %xmm1 movsd %xmm1, (%rsp) movq 0x16bd97(%rip), %rbp # 0x46a3f0 movq (%rbp), %r13 movq 0x28(%r13), %rax divsd 0x18(%rax), %xmm0 callq 0xe2ca0 movq 0x28(%r13), %rax movslq (%r14), %rcx shlq $0x7, %rcx movsd (%rsp), %xmm1 divsd 0x98(%rax,%rcx), %xmm1 movapd %xmm0, 0x30(%rsp) movsd 0x1b8(%r13), %xmm0 movaps %xmm0, 0x20(%rsp) movsd 0x18(%rax), %xmm0 movaps %xmm0, (%rsp) movsd 0x20(%rax), %xmm0 movaps %xmm0, 0x40(%rsp) movapd %xmm1, %xmm0 callq 0xe2ca0 movslq (%r14), %rcx movq 0x28(%r13), %rax movapd 0x20(%rsp), %xmm4 movhpd 0x1c0(%r13,%rcx,8), %xmm4 # xmm4 = xmm4[0],mem[0] movq %rcx, %rdx movsd 0x198(%r13), %xmm1 movhpd 0x1a0(%r13,%rcx,8), %xmm1 # xmm1 = xmm1[0],mem[0] shlq $0x7, %rcx shlq $0x4, %rdx movq 0x8(%r15), %rsi movsd 0x10(%rsp), %xmm2 mulsd 0x10(%rsi), %xmm2 addsd 0x18(%rsi), %xmm2 movq 0x10(%r15), %r14 movapd 0x30(%rsp), %xmm3 unpcklpd %xmm0, %xmm3 # xmm3 = xmm3[0],xmm0[0] movsd (%rsi), %xmm0 movsd %xmm0, 0x10(%rsp) movq (%rbp), %rbp movq 0x28(%rbp), %rsi divsd 0x18(%rsi), %xmm2 movapd %xmm2, %xmm0 divpd %xmm4, %xmm3 cvtpd2ps %xmm3, %xmm3 movapd 0x40(%rsp), %xmm6 movhpd 0xa0(%rax,%rcx), %xmm6 # xmm6 = xmm6[0],mem[0] movsd 0x98(%rax,%rcx), %xmm2 movapd (%rsp), %xmm4 unpcklpd %xmm2, %xmm4 # xmm4 = xmm4[0],xmm2[0] cvtps2pd %xmm3, %xmm5 subpd %xmm4, %xmm6 mulpd %xmm6, %xmm5 cvtps2pd 0x164(%r13,%rdx), %xmm3 addpd %xmm4, %xmm5 movsd 0x18(%rax), %xmm4 unpcklpd %xmm2, %xmm4 # xmm4 = xmm4[0],xmm2[0] subpd %xmm4, %xmm5 mulpd %xmm5, %xmm1 addpd %xmm3, %xmm1 cvtpd2ps %xmm1, %xmm1 movapd %xmm1, 0x40(%rsp) callq 0xe2ca0 movq 0x28(%rbp), %rax movslq (%r14), %rcx shlq $0x7, %rcx movsd 0x10(%rsp), %xmm1 divsd 0x98(%rax,%rcx), %xmm1 movapd %xmm0, 0x20(%rsp) movsd 0x1b8(%rbp), %xmm0 movaps %xmm0, 0x30(%rsp) movsd 0x18(%rax), %xmm0 movaps %xmm0, 0x10(%rsp) movsd 0x20(%rax), %xmm0 movaps %xmm0, (%rsp) movapd %xmm1, %xmm0 callq 0xe2ca0 movaps 0x40(%rsp), %xmm6 movslq (%r14), %rax unpcklpd 0x20(%rsp), %xmm0 # xmm0 = xmm0[0],mem[0] movsd 0x1a0(%rbp,%rax,8), %xmm1 movsd 0x1c0(%rbp,%rax,8), %xmm2 unpcklpd 0x30(%rsp), %xmm2 # xmm2 = xmm2[0],mem[0] divpd %xmm2, %xmm0 movq 0x28(%rbp), %rcx movq %rax, %rdx cvtpd2ps %xmm0, %xmm0 shlq $0x7, %rdx movsd 0x98(%rcx,%rdx), %xmm2 movsd 0xa0(%rcx,%rdx), %xmm3 unpcklpd (%rsp), %xmm3 # xmm3 = xmm3[0],mem[0] movapd %xmm2, %xmm4 unpcklpd 0x10(%rsp), %xmm4 # xmm4 = xmm4[0],mem[0] cvtps2pd %xmm0, %xmm0 subpd %xmm4, %xmm3 mulpd %xmm3, %xmm0 addpd %xmm4, %xmm0 shlq $0x4, %rax cvtps2pd 0x164(%rbp,%rax), %xmm3 movhpd 0x18(%rcx), %xmm2 # xmm2 = xmm2[0],mem[0] shufpd $0x1, %xmm3, %xmm3 # xmm3 = xmm3[1,0] subpd %xmm2, %xmm0 movhpd 0x198(%rbp), %xmm1 # xmm1 = xmm1[0],mem[0] mulpd %xmm0, %xmm1 addpd %xmm3, %xmm1 cvtpd2ps %xmm1, %xmm0 movaps %xmm6, %xmm1 movlhps %xmm6, %xmm1 # xmm1 = xmm1[0],xmm6[0] movapd %xmm0, %xmm2 shufps $0x11, %xmm0, %xmm2 # xmm2 = xmm2[1,0],xmm0[1,0] movaps %xmm2, %xmm3 cmpleps %xmm1, %xmm3 movaps %xmm1, %xmm4 cmpltps %xmm2, %xmm4 movsd %xmm3, %xmm4 # xmm4 = xmm3[0],xmm4[1] andps %xmm4, %xmm1 andnps %xmm2, %xmm4 orps %xmm1, %xmm4 movups (%r12), %xmm1 movaps %xmm1, %xmm2 cmpltps %xmm4, %xmm2 cmpltps %xmm1, %xmm4 movsd %xmm2, %xmm4 # xmm4 = xmm2[0],xmm4[1] movmskps %xmm4, %eax cmpl $0xf, %eax jne 0x2fe9de movss 0x20(%r15), %xmm2 movl 0x1c(%r15), %ecx movq 0x50(%rsp), %rdx movsd (%rdx), %xmm1 movaps %xmm6, %xmm4 shufps $0xe1, %xmm6, %xmm4 # xmm4 = xmm4[1,0],xmm6[2,3] movaps %xmm0, %xmm3 subps %xmm4, %xmm3 movaps %xmm3, %xmm4 shufps $0x55, %xmm3, %xmm4 # xmm4 = xmm4[1,1],xmm3[1,1] movaps %xmm3, %xmm5 mulss %xmm3, %xmm5 mulss %xmm4, %xmm4 addss %xmm5, %xmm4 xorps %xmm5, %xmm5 ucomiss %xmm5, %xmm4 jbe 0x2fe909 sqrtss %xmm4, %xmm4 movss 0x84882(%rip), %xmm5 # 0x383180 divss %xmm4, %xmm5 shufps $0x0, %xmm5, %xmm5 # xmm5 = xmm5[0,0,0,0] mulps %xmm5, %xmm3 mulss 0x84877(%rip), %xmm2 # 0x383188 movq 0x48(%rbx), %rdx shufps $0x0, %xmm2, %xmm2 # xmm2 = xmm2[0,0,0,0] mulps %xmm3, %xmm2 movaps %xmm2, %xmm3 addps %xmm6, %xmm3 subps %xmm2, %xmm6 movaps %xmm6, %xmm4 shufps $0x1, %xmm3, %xmm4 # xmm4 = xmm4[1,0],xmm3[0,0] shufps $0x42, %xmm1, %xmm4 # xmm4 = xmm4[2,0],xmm1[0,1] movups %xmm4, (%rdx) movq 0x48(%rbx), %rdx movl %ecx, 0x10(%rdx) movaps %xmm0, %xmm4 shufps $0x55, %xmm0, %xmm4 # xmm4 = xmm4[1,1],xmm0[1,1] movaps %xmm2, %xmm5 addss %xmm4, %xmm5 movss %xmm5, 0x14(%rdx) subss %xmm2, %xmm4 shufps $0x55, %xmm2, %xmm2 # xmm2 = xmm2[1,1,1,1] movaps %xmm0, %xmm5 subss %xmm2, %xmm5 movss %xmm5, 0x18(%rdx) movlps %xmm1, 0x1c(%rdx) movq 0x48(%rbx), %rdx movl %ecx, 0x24(%rdx) movss %xmm4, 0x28(%rdx) addss %xmm0, %xmm2 movss %xmm2, 0x2c(%rdx) movlps %xmm1, 0x30(%rdx) movq 0x48(%rbx), %rdx movl %ecx, 0x38(%rdx) movss %xmm6, 0x3c(%rdx) shufps $0x55, %xmm3, %xmm3 # xmm3 = xmm3[1,1,1,1] movss %xmm3, 0x40(%rdx) movlps %xmm1, 0x44(%rdx) movq 0x48(%rbx), %rdx movl %ecx, 0x4c(%rdx) addq $0x50, %rdx movq %rdx, 0x48(%rbx) movl 0x34(%rbx), %ecx movq 0x50(%rbx), %rdx movl %ecx, (%rdx) incl %ecx movl %ecx, 0x4(%rdx) movl 0x34(%rbx), %ecx addl $0x2, %ecx movl %ecx, 0x8(%rdx) movl 0x34(%rbx), %ecx movl %ecx, 0xc(%rdx) addl $0x2, %ecx movl %ecx, 0x10(%rdx) movl 0x34(%rbx), %ecx addl $0x3, %ecx movl %ecx, 0x14(%rdx) addq $0x18, %rdx movq %rdx, 0x50(%rbx) addl $0x4, 0x34(%rbx) cmpb $0xf, %al sete %al addq $0x58, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
void ImPlot::RenderLineSegments<ImPlot::GetterYs<long long>, ImPlot::GetterYRef, ImPlot::TransformerLinLog>(ImPlot::GetterYs<long long> const&, ImPlot::GetterYRef const&, ImPlot::TransformerLinLog const&, ImDrawList&, float, unsigned int)
inline void RenderLineSegments(const Getter1& getter1, const Getter2& getter2, const Transformer& transformer, ImDrawList& DrawList, float line_weight, ImU32 col) { ImPlotContext& gp = *GImPlot; if (ImHasFlag(gp.CurrentPlot->Flags, ImPlotFlags_AntiAliased) || gp.Style.AntiAliasedLines) { int I = ImMin(getter1.Count, getter2.Count); for (int i = 0; i < I; ++i) { ImVec2 p1 = transformer(getter1(i)); ImVec2 p2 = transformer(getter2(i)); if (gp.CurrentPlot->PlotRect.Overlaps(ImRect(ImMin(p1, p2), ImMax(p1, p2)))) DrawList.AddLine(p1, p2, col, line_weight); } } else { RenderPrimitives(LineSegmentsRenderer<Getter1,Getter2,Transformer>(getter1, getter2, transformer, col, line_weight), DrawList, gp.CurrentPlot->PlotRect); } }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x88, %rsp movl %r8d, 0xc(%rsp) movss %xmm0, 0x10(%rsp) movq %rcx, 0x18(%rsp) movq %rdx, %r15 movq %rsi, %r14 movq %rdi, %r12 movq 0x16b465(%rip), %rax # 0x46a3f0 movq (%rax), %rax movq 0x28(%rax), %rdx testb $0x10, 0x5(%rdx) jne 0x2fefa5 cmpb $0x1, 0x448(%rax) jne 0x2ff24e movq %rax, 0x50(%rsp) movl 0x8(%r12), %eax movl 0x8(%r14), %ecx cmpl %ecx, %eax cmovll %eax, %ecx movl %ecx, 0x14(%rsp) testl %ecx, %ecx jle 0x2ff292 xorl %r13d, %r13d xorpd %xmm5, %xmm5 movapd %xmm5, 0x40(%rsp) movups 0x18(%r12), %xmm0 movaps %xmm0, 0x30(%rsp) movups 0x10(%r12), %xmm0 movaps %xmm0, 0x20(%rsp) movq (%r12), %rcx movl 0x8(%r12), %esi movslq 0x24(%r12), %rdi movl 0x20(%r12), %eax addl %r13d, %eax cltd idivl %esi leal (%rdx,%rsi), %eax cltd idivl %esi movslq %edx, %rax imulq %rdi, %rax xorps %xmm0, %xmm0 cvtsi2sdq (%rcx,%rax), %xmm0 movq 0x16b3d3(%rip), %rbp # 0x46a3f0 movq (%rbp), %rbx movq 0x28(%rbx), %rax movslq (%r15), %rcx shlq $0x7, %rcx divsd 0x98(%rax,%rcx), %xmm0 callq 0xe2ca0 movslq (%r15), %rcx divsd 0x1c0(%rbx,%rcx,8), %xmm0 movq 0x28(%rbx), %rax movq %rcx, %rdx movsd 0x198(%rbx), %xmm1 movhpd 0x1a0(%rbx,%rcx,8), %xmm1 # xmm1 = xmm1[0],mem[0] shlq $0x7, %rcx movsd 0x98(%rax,%rcx), %xmm2 movsd 0xa0(%rax,%rcx), %xmm3 cvtsd2ss %xmm0, %xmm0 subsd %xmm2, %xmm3 movapd 0x20(%rsp), %xmm4 unpcklpd %xmm3, %xmm4 # xmm4 = xmm4[0],xmm3[0] cvtss2sd %xmm0, %xmm0 movaps 0x40(%rsp), %xmm3 movlhps %xmm0, %xmm3 # xmm3 = xmm3[0],xmm0[0] shlq $0x4, %rdx mulpd %xmm4, %xmm3 movapd 0x30(%rsp), %xmm4 unpcklpd %xmm2, %xmm4 # xmm4 = xmm4[0],xmm2[0] cvtps2pd 0x164(%rbx,%rdx), %xmm0 addpd %xmm3, %xmm4 movsd 0x18(%rax), %xmm3 unpcklpd %xmm2, %xmm3 # xmm3 = xmm3[0],xmm2[0] subpd %xmm3, %xmm4 mulpd %xmm4, %xmm1 addpd %xmm0, %xmm1 cvtpd2ps %xmm1, %xmm0 movlpd %xmm0, 0x60(%rsp) movups 0x10(%r14), %xmm0 movaps %xmm0, 0x20(%rsp) movsd (%r14), %xmm0 movq (%rbp), %rbx movq 0x28(%rbx), %rax divsd 0x98(%rax,%rcx), %xmm0 movsd 0x18(%r14), %xmm1 movaps %xmm1, 0x30(%rsp) callq 0xe2ca0 movaps 0x40(%rsp), %xmm5 movslq (%r15), %rcx divsd 0x1c0(%rbx,%rcx,8), %xmm0 movq 0x28(%rbx), %rax movq %rcx, %rdx movsd 0x198(%rbx), %xmm1 movhpd 0x1a0(%rbx,%rcx,8), %xmm1 # xmm1 = xmm1[0],mem[0] shlq $0x7, %rcx movsd 0x98(%rax,%rcx), %xmm2 movsd 0xa0(%rax,%rcx), %xmm3 cvtsd2ss %xmm0, %xmm0 subsd %xmm2, %xmm3 movapd 0x20(%rsp), %xmm4 unpcklpd %xmm3, %xmm4 # xmm4 = xmm4[0],xmm3[0] cvtss2sd %xmm0, %xmm0 movaps %xmm5, %xmm3 movlhps %xmm0, %xmm3 # xmm3 = xmm3[0],xmm0[0] shlq $0x4, %rdx mulpd %xmm4, %xmm3 movapd 0x30(%rsp), %xmm4 unpcklpd %xmm2, %xmm4 # xmm4 = xmm4[0],xmm2[0] addpd %xmm3, %xmm4 cvtps2pd 0x164(%rbx,%rdx), %xmm0 movsd 0x18(%rax), %xmm3 unpcklpd %xmm2, %xmm3 # xmm3 = xmm3[0],xmm2[0] subpd %xmm3, %xmm4 mulpd %xmm4, %xmm1 addpd %xmm0, %xmm1 cvtpd2ps %xmm1, %xmm0 movlpd %xmm0, 0x58(%rsp) movq 0x50(%rsp), %rax movq 0x28(%rax), %rax movss 0x64(%rsp), %xmm1 movapd %xmm0, %xmm2 shufps $0x55, %xmm0, %xmm2 # xmm2 = xmm2[1,1],xmm0[1,1] movaps %xmm1, %xmm3 minss %xmm2, %xmm3 movss 0x2c4(%rax), %xmm4 ucomiss %xmm3, %xmm4 jbe 0x2ff236 movaps %xmm2, %xmm3 cmpless %xmm1, %xmm3 andps %xmm3, %xmm1 andnps %xmm2, %xmm3 orps %xmm1, %xmm3 ucomiss 0x2bc(%rax), %xmm3 jbe 0x2ff236 movss 0x60(%rsp), %xmm1 movaps %xmm1, %xmm2 minss %xmm0, %xmm2 movss 0x2c0(%rax), %xmm3 ucomiss %xmm2, %xmm3 jbe 0x2ff236 movaps %xmm0, %xmm2 cmpless %xmm1, %xmm2 movaps %xmm2, %xmm3 andnps %xmm0, %xmm3 andps %xmm1, %xmm2 orps %xmm3, %xmm2 ucomiss 0x2b8(%rax), %xmm2 jbe 0x2ff236 movq 0x18(%rsp), %rdi leaq 0x60(%rsp), %rsi leaq 0x58(%rsp), %rdx movl 0xc(%rsp), %ecx movss 0x10(%rsp), %xmm0 callq 0xe5ce0 movaps 0x40(%rsp), %xmm5 addsd 0x85eba(%rip), %xmm5 # 0x3850f8 incl %r13d cmpl %r13d, 0x14(%rsp) jne 0x2fefcb jmp 0x2ff292 leaq 0x60(%rsp), %rdi movq %r12, (%rdi) movq %r14, 0x8(%rdi) movq %r15, 0x10(%rdi) movl 0x8(%r12), %eax movl 0x8(%r14), %ecx cmpl %ecx, %eax cmovll %eax, %ecx movl %ecx, 0x18(%rdi) movl 0xc(%rsp), %eax movl %eax, 0x1c(%rdi) movss 0x10(%rsp), %xmm0 movss %xmm0, 0x20(%rdi) addq $0x2b8, %rdx # imm = 0x2B8 movq 0x18(%rsp), %rsi callq 0xe6620 addq $0x88, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
void ImPlot::RenderPrimitives<ImPlot::LineSegmentsRenderer<ImPlot::GetterYs<long long>, ImPlot::GetterYRef, ImPlot::TransformerLinLin>>(ImPlot::LineSegmentsRenderer<ImPlot::GetterYs<long long>, ImPlot::GetterYRef, ImPlot::TransformerLinLin> const&, ImDrawList&, ImRect const&)
inline void RenderPrimitives(const Renderer& renderer, ImDrawList& DrawList, const ImRect& cull_rect) { unsigned int prims = renderer.Prims; unsigned int prims_culled = 0; unsigned int idx = 0; const ImVec2 uv = DrawList._Data->TexUvWhitePixel; while (prims) { // find how many can be reserved up to end of current draw command's limit unsigned int cnt = ImMin(prims, (MaxIdx<ImDrawIdx>::Value - DrawList._VtxCurrentIdx) / Renderer::VtxConsumed); // make sure at least this many elements can be rendered to avoid situations where at the end of buffer this slow path is not taken all the time if (cnt >= ImMin(64u, prims)) { if (prims_culled >= cnt) prims_culled -= cnt; // reuse previous reservation else { DrawList.PrimReserve((cnt - prims_culled) * Renderer::IdxConsumed, (cnt - prims_culled) * Renderer::VtxConsumed); // add more elements to previous reservation prims_culled = 0; } } else { if (prims_culled > 0) { DrawList.PrimUnreserve(prims_culled * Renderer::IdxConsumed, prims_culled * Renderer::VtxConsumed); prims_culled = 0; } cnt = ImMin(prims, (MaxIdx<ImDrawIdx>::Value - 0/*DrawList._VtxCurrentIdx*/) / Renderer::VtxConsumed); DrawList.PrimReserve(cnt * Renderer::IdxConsumed, cnt * Renderer::VtxConsumed); // reserve new draw command } prims -= cnt; for (unsigned int ie = idx + cnt; idx != ie; ++idx) { if (!renderer(DrawList, cull_rect, uv, idx)) prims_culled++; } } if (prims_culled > 0) DrawList.PrimUnreserve(prims_culled * Renderer::IdxConsumed, prims_culled * Renderer::VtxConsumed); }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rsi, %rbx movl 0x18(%rdi), %esi movq 0x38(%rbx), %rax movq (%rax), %rax movq %rax, 0x8(%rsp) testl %esi, %esi je 0x2ff7c0 movq %rdx, %r14 movq %rdi, %r15 xorl %r12d, %r12d leaq 0x8(%rsp), %rcx xorl %ebp, %ebp movl 0x34(%rbx), %edi movl %edi, %eax notl %eax shrl $0x2, %eax cmpl %eax, %esi movl %eax, %r13d cmovbl %esi, %r13d cmpl $0x40, %esi movl $0x40, %edx cmovbl %esi, %edx cmpl %edx, %eax jae 0x2ff722 testl %ebp, %ebp je 0x2ff70e leal (,%rbp,2), %eax movl %esi, %r13d leal (%rax,%rax,2), %esi shll $0x2, %ebp movq %rbx, %rdi movl %ebp, %edx callq 0xe0140 movl %r13d, %esi movl $0x3fffffff, %eax # imm = 0x3FFFFFFF cmpl %eax, %esi movl $0x3fffffff, %edx # imm = 0x3FFFFFFF cmovbl %esi, %edx movl %edx, %r13d jmp 0x2ff72e movl %ebp, %eax subl %r13d, %eax jae 0x2ff793 movl %r13d, %edx subl %ebp, %edx movl %esi, %ebp leal (%rdx,%rdx), %eax leal (%rax,%rax,2), %esi shll $0x2, %edx movq %rbx, %rdi callq 0xe3170 subl %r13d, %ebp movl %ebp, 0x4(%rsp) xorl %eax, %eax leaq 0x8(%rsp), %rcx leal (%r12,%r13), %edx movl %edx, 0x14(%rsp) movl %eax, %ebp movq %r15, %rdi movq %rbx, %rsi movq %r14, %rdx movl %r12d, %r8d callq 0xe3f90 leaq 0x8(%rsp), %rcx xorb $0x1, %al movzbl %al, %eax addl %eax, %ebp incl %r12d decl %r13d jne 0x2ff759 movl 0x14(%rsp), %eax movl %eax, %r12d movl 0x4(%rsp), %esi testl %esi, %esi jne 0x2ff6cb jmp 0x2ff7a5 subl %r13d, %esi cmpl $-0x5, %edi jbe 0x2ff79f movl %eax, %ebp jmp 0x2ff789 movl %esi, 0x4(%rsp) jmp 0x2ff74f testl %ebp, %ebp je 0x2ff7c0 leal (,%rbp,2), %eax leal (%rax,%rax,2), %esi shll $0x2, %ebp movq %rbx, %rdi movl %ebp, %edx callq 0xe0140 addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq nop
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
void ImPlot::RenderPrimitives<ImPlot::LineSegmentsRenderer<ImPlot::GetterYs<long long>, ImPlot::GetterYRef, ImPlot::TransformerLogLin>>(ImPlot::LineSegmentsRenderer<ImPlot::GetterYs<long long>, ImPlot::GetterYRef, ImPlot::TransformerLogLin> const&, ImDrawList&, ImRect const&)
inline void RenderPrimitives(const Renderer& renderer, ImDrawList& DrawList, const ImRect& cull_rect) { unsigned int prims = renderer.Prims; unsigned int prims_culled = 0; unsigned int idx = 0; const ImVec2 uv = DrawList._Data->TexUvWhitePixel; while (prims) { // find how many can be reserved up to end of current draw command's limit unsigned int cnt = ImMin(prims, (MaxIdx<ImDrawIdx>::Value - DrawList._VtxCurrentIdx) / Renderer::VtxConsumed); // make sure at least this many elements can be rendered to avoid situations where at the end of buffer this slow path is not taken all the time if (cnt >= ImMin(64u, prims)) { if (prims_culled >= cnt) prims_culled -= cnt; // reuse previous reservation else { DrawList.PrimReserve((cnt - prims_culled) * Renderer::IdxConsumed, (cnt - prims_culled) * Renderer::VtxConsumed); // add more elements to previous reservation prims_culled = 0; } } else { if (prims_culled > 0) { DrawList.PrimUnreserve(prims_culled * Renderer::IdxConsumed, prims_culled * Renderer::VtxConsumed); prims_culled = 0; } cnt = ImMin(prims, (MaxIdx<ImDrawIdx>::Value - 0/*DrawList._VtxCurrentIdx*/) / Renderer::VtxConsumed); DrawList.PrimReserve(cnt * Renderer::IdxConsumed, cnt * Renderer::VtxConsumed); // reserve new draw command } prims -= cnt; for (unsigned int ie = idx + cnt; idx != ie; ++idx) { if (!renderer(DrawList, cull_rect, uv, idx)) prims_culled++; } } if (prims_culled > 0) DrawList.PrimUnreserve(prims_culled * Renderer::IdxConsumed, prims_culled * Renderer::VtxConsumed); }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rsi, %rbx movl 0x18(%rdi), %esi movq 0x38(%rbx), %rax movq (%rax), %rax movq %rax, 0x8(%rsp) testl %esi, %esi je 0x2ffb49 movq %rdx, %r14 movq %rdi, %r15 xorl %r12d, %r12d leaq 0x8(%rsp), %rcx xorl %ebp, %ebp movl 0x34(%rbx), %edi movl %edi, %eax notl %eax shrl $0x2, %eax cmpl %eax, %esi movl %eax, %r13d cmovbl %esi, %r13d cmpl $0x40, %esi movl $0x40, %edx cmovbl %esi, %edx cmpl %edx, %eax jae 0x2ffaab testl %ebp, %ebp je 0x2ffa97 leal (,%rbp,2), %eax movl %esi, %r13d leal (%rax,%rax,2), %esi shll $0x2, %ebp movq %rbx, %rdi movl %ebp, %edx callq 0xe0140 movl %r13d, %esi movl $0x3fffffff, %eax # imm = 0x3FFFFFFF cmpl %eax, %esi movl $0x3fffffff, %edx # imm = 0x3FFFFFFF cmovbl %esi, %edx movl %edx, %r13d jmp 0x2ffab7 movl %ebp, %eax subl %r13d, %eax jae 0x2ffb1c movl %r13d, %edx subl %ebp, %edx movl %esi, %ebp leal (%rdx,%rdx), %eax leal (%rax,%rax,2), %esi shll $0x2, %edx movq %rbx, %rdi callq 0xe3170 subl %r13d, %ebp movl %ebp, 0x4(%rsp) xorl %eax, %eax leaq 0x8(%rsp), %rcx leal (%r12,%r13), %edx movl %edx, 0x14(%rsp) movl %eax, %ebp movq %r15, %rdi movq %rbx, %rsi movq %r14, %rdx movl %r12d, %r8d callq 0xe7b30 leaq 0x8(%rsp), %rcx xorb $0x1, %al movzbl %al, %eax addl %eax, %ebp incl %r12d decl %r13d jne 0x2ffae2 movl 0x14(%rsp), %eax movl %eax, %r12d movl 0x4(%rsp), %esi testl %esi, %esi jne 0x2ffa54 jmp 0x2ffb2e subl %r13d, %esi cmpl $-0x5, %edi jbe 0x2ffb28 movl %eax, %ebp jmp 0x2ffb12 movl %esi, 0x4(%rsp) jmp 0x2ffad8 testl %ebp, %ebp je 0x2ffb49 leal (,%rbp,2), %eax leal (%rax,%rax,2), %esi shll $0x2, %ebp movq %rbx, %rdi movl %ebp, %edx callq 0xe0140 addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
void ImPlot::RenderPrimitives<ImPlot::LineSegmentsRenderer<ImPlot::GetterYs<unsigned long long>, ImPlot::GetterYRef, ImPlot::TransformerLogLin>>(ImPlot::LineSegmentsRenderer<ImPlot::GetterYs<unsigned long long>, ImPlot::GetterYRef, ImPlot::TransformerLogLin> const&, ImDrawList&, ImRect const&)
inline void RenderPrimitives(const Renderer& renderer, ImDrawList& DrawList, const ImRect& cull_rect) { unsigned int prims = renderer.Prims; unsigned int prims_culled = 0; unsigned int idx = 0; const ImVec2 uv = DrawList._Data->TexUvWhitePixel; while (prims) { // find how many can be reserved up to end of current draw command's limit unsigned int cnt = ImMin(prims, (MaxIdx<ImDrawIdx>::Value - DrawList._VtxCurrentIdx) / Renderer::VtxConsumed); // make sure at least this many elements can be rendered to avoid situations where at the end of buffer this slow path is not taken all the time if (cnt >= ImMin(64u, prims)) { if (prims_culled >= cnt) prims_culled -= cnt; // reuse previous reservation else { DrawList.PrimReserve((cnt - prims_culled) * Renderer::IdxConsumed, (cnt - prims_culled) * Renderer::VtxConsumed); // add more elements to previous reservation prims_culled = 0; } } else { if (prims_culled > 0) { DrawList.PrimUnreserve(prims_culled * Renderer::IdxConsumed, prims_culled * Renderer::VtxConsumed); prims_culled = 0; } cnt = ImMin(prims, (MaxIdx<ImDrawIdx>::Value - 0/*DrawList._VtxCurrentIdx*/) / Renderer::VtxConsumed); DrawList.PrimReserve(cnt * Renderer::IdxConsumed, cnt * Renderer::VtxConsumed); // reserve new draw command } prims -= cnt; for (unsigned int ie = idx + cnt; idx != ie; ++idx) { if (!renderer(DrawList, cull_rect, uv, idx)) prims_culled++; } } if (prims_culled > 0) DrawList.PrimUnreserve(prims_culled * Renderer::IdxConsumed, prims_culled * Renderer::VtxConsumed); }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rsi, %rbx movl 0x18(%rdi), %esi movq 0x38(%rbx), %rax movq (%rax), %rax movq %rax, 0x8(%rsp) testl %esi, %esi je 0x301a8e movq %rdx, %r14 movq %rdi, %r15 xorl %r12d, %r12d leaq 0x8(%rsp), %rcx xorl %ebp, %ebp movl 0x34(%rbx), %edi movl %edi, %eax notl %eax shrl $0x2, %eax cmpl %eax, %esi movl %eax, %r13d cmovbl %esi, %r13d cmpl $0x40, %esi movl $0x40, %edx cmovbl %esi, %edx cmpl %edx, %eax jae 0x3019f0 testl %ebp, %ebp je 0x3019dc leal (,%rbp,2), %eax movl %esi, %r13d leal (%rax,%rax,2), %esi shll $0x2, %ebp movq %rbx, %rdi movl %ebp, %edx callq 0xe0140 movl %r13d, %esi movl $0x3fffffff, %eax # imm = 0x3FFFFFFF cmpl %eax, %esi movl $0x3fffffff, %edx # imm = 0x3FFFFFFF cmovbl %esi, %edx movl %edx, %r13d jmp 0x3019fc movl %ebp, %eax subl %r13d, %eax jae 0x301a61 movl %r13d, %edx subl %ebp, %edx movl %esi, %ebp leal (%rdx,%rdx), %eax leal (%rax,%rax,2), %esi shll $0x2, %edx movq %rbx, %rdi callq 0xe3170 subl %r13d, %ebp movl %ebp, 0x4(%rsp) xorl %eax, %eax leaq 0x8(%rsp), %rcx leal (%r12,%r13), %edx movl %edx, 0x14(%rsp) movl %eax, %ebp movq %r15, %rdi movq %rbx, %rsi movq %r14, %rdx movl %r12d, %r8d callq 0xe4e20 leaq 0x8(%rsp), %rcx xorb $0x1, %al movzbl %al, %eax addl %eax, %ebp incl %r12d decl %r13d jne 0x301a27 movl 0x14(%rsp), %eax movl %eax, %r12d movl 0x4(%rsp), %esi testl %esi, %esi jne 0x301999 jmp 0x301a73 subl %r13d, %esi cmpl $-0x5, %edi jbe 0x301a6d movl %eax, %ebp jmp 0x301a57 movl %esi, 0x4(%rsp) jmp 0x301a1d testl %ebp, %ebp je 0x301a8e leal (,%rbp,2), %eax leal (%rax,%rax,2), %esi shll $0x2, %ebp movq %rbx, %rdi movl %ebp, %edx callq 0xe0140 addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq nop
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
ImPlot::LineSegmentsRenderer<ImPlot::GetterYs<unsigned long long>, ImPlot::GetterYRef, ImPlot::TransformerLinLog>::operator()(ImDrawList&, ImRect const&, ImVec2 const&, int) const
inline bool operator()(ImDrawList& DrawList, const ImRect& cull_rect, const ImVec2& uv, int prim) const { ImVec2 P1 = Transformer(Getter1(prim)); ImVec2 P2 = Transformer(Getter2(prim)); if (!cull_rect.Overlaps(ImRect(ImMin(P1, P2), ImMax(P1, P2)))) return false; AddLine(P1,P2,Weight,Col,DrawList,uv); return true; }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x58, %rsp movl %r8d, %eax movq %rcx, 0x28(%rsp) movq %rdx, %r12 movq %rsi, %rbx movq %rdi, %r15 movq (%rdi), %rcx movq 0x10(%rdi), %r14 cvtsi2sd %r8d, %xmm0 movapd %xmm0, 0x30(%rsp) movq (%rcx), %rsi movl 0x8(%rcx), %edi movslq 0x24(%rcx), %r8 addl 0x20(%rcx), %eax cltd idivl %edi leal (%rdx,%rdi), %eax cltd idivl %edi movslq %edx, %rax imulq %r8, %rax movsd (%rsi,%rax), %xmm1 unpcklps 0x7b462(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1] subpd 0x7b46a(%rip), %xmm1 # 0x37d400 movapd %xmm1, %xmm0 unpckhpd %xmm1, %xmm0 # xmm0 = xmm0[1],xmm1[1] addsd %xmm1, %xmm0 movq 0x168447(%rip), %rbp # 0x46a3f0 movq (%rbp), %r13 movq 0x28(%r13), %rax movslq (%r14), %rdx shlq $0x7, %rdx divsd 0x98(%rax,%rdx), %xmm0 movsd 0x10(%rcx), %xmm1 movaps %xmm1, (%rsp) movsd 0x18(%rcx), %xmm1 movaps %xmm1, 0x10(%rsp) callq 0xe2ca0 movslq (%r14), %rdx divsd 0x1c0(%r13,%rdx,8), %xmm0 movq 0x28(%r13), %rax movq %rdx, %rcx movsd 0x1a0(%r13,%rdx,8), %xmm1 shlq $0x7, %rdx movupd 0x98(%rax,%rdx), %xmm2 movapd %xmm2, %xmm3 unpckhpd %xmm2, %xmm3 # xmm3 = xmm3[1],xmm2[1] subpd %xmm2, %xmm3 unpcklpd (%rsp), %xmm3 # xmm3 = xmm3[0],mem[0] cvtsd2ss %xmm0, %xmm0 cvtss2sd %xmm0, %xmm4 movq 0x8(%r15), %rdx movq 0x10(%r15), %r14 unpcklpd 0x30(%rsp), %xmm4 # xmm4 = xmm4[0],mem[0] mulpd %xmm3, %xmm4 movapd %xmm2, %xmm3 unpcklpd 0x10(%rsp), %xmm3 # xmm3 = xmm3[0],mem[0] movsd (%rdx), %xmm0 movq (%rbp), %rbp movq 0x28(%rbp), %rsi movslq (%r14), %rdi shlq $0x7, %rdi divsd 0x98(%rsi,%rdi), %xmm0 shlq $0x4, %rcx addpd %xmm4, %xmm3 cvtps2pd 0x164(%r13,%rcx), %xmm4 shufpd $0x1, %xmm4, %xmm4 # xmm4 = xmm4[1,0] movhpd 0x18(%rax), %xmm2 # xmm2 = xmm2[0],mem[0] subpd %xmm2, %xmm3 movhpd 0x198(%r13), %xmm1 # xmm1 = xmm1[0],mem[0] mulpd %xmm3, %xmm1 addpd %xmm4, %xmm1 cvtpd2ps %xmm1, %xmm1 movapd %xmm1, 0x40(%rsp) movsd 0x10(%rdx), %xmm1 movaps %xmm1, (%rsp) movsd 0x18(%rdx), %xmm1 movaps %xmm1, 0x10(%rsp) callq 0xe2ca0 movaps 0x40(%rsp), %xmm7 movslq (%r14), %rcx divsd 0x1c0(%rbp,%rcx,8), %xmm0 movq 0x28(%rbp), %rax movsd 0x198(%rbp), %xmm1 movhpd 0x1a0(%rbp,%rcx,8), %xmm1 # xmm1 = xmm1[0],mem[0] movq %rcx, %rdx shlq $0x7, %rcx movsd 0x98(%rax,%rcx), %xmm2 movsd 0xa0(%rax,%rcx), %xmm3 cvtsd2ss %xmm0, %xmm0 subsd %xmm2, %xmm3 movapd (%rsp), %xmm4 unpcklpd %xmm3, %xmm4 # xmm4 = xmm4[0],xmm3[0] cvtss2sd %xmm0, %xmm0 movaps 0x30(%rsp), %xmm3 movlhps %xmm0, %xmm3 # xmm3 = xmm3[0],xmm0[0] mulpd %xmm4, %xmm3 movapd 0x10(%rsp), %xmm4 unpcklpd %xmm2, %xmm4 # xmm4 = xmm4[0],xmm2[0] shlq $0x4, %rdx cvtps2pd 0x164(%rbp,%rdx), %xmm0 addpd %xmm3, %xmm4 movsd 0x18(%rax), %xmm3 unpcklpd %xmm2, %xmm3 # xmm3 = xmm3[0],xmm2[0] subpd %xmm3, %xmm4 mulpd %xmm4, %xmm1 addpd %xmm0, %xmm1 cvtpd2ps %xmm1, %xmm0 movaps %xmm7, %xmm1 shufps $0x11, %xmm7, %xmm1 # xmm1 = xmm1[1,0],xmm7[1,0] movapd %xmm0, %xmm2 unpcklpd %xmm0, %xmm2 # xmm2 = xmm2[0],xmm0[0] movapd %xmm2, %xmm3 cmpleps %xmm1, %xmm3 movaps %xmm1, %xmm4 cmpltps %xmm2, %xmm4 movsd %xmm3, %xmm4 # xmm4 = xmm3[0],xmm4[1] andps %xmm4, %xmm1 andnps %xmm2, %xmm4 orps %xmm1, %xmm4 movups (%r12), %xmm1 movaps %xmm1, %xmm2 cmpltps %xmm4, %xmm2 cmpltps %xmm1, %xmm4 movsd %xmm2, %xmm4 # xmm4 = xmm2[0],xmm4[1] movmskps %xmm4, %eax cmpl $0xf, %eax jne 0x3022b2 movss 0x20(%r15), %xmm2 movl 0x1c(%r15), %ecx movq 0x28(%rsp), %rdx movsd (%rdx), %xmm1 movaps %xmm7, %xmm4 shufps $0xe1, %xmm7, %xmm4 # xmm4 = xmm4[1,0],xmm7[2,3] movapd %xmm0, %xmm3 subps %xmm4, %xmm3 movaps %xmm3, %xmm5 mulps %xmm3, %xmm5 shufps $0x55, %xmm5, %xmm5 # xmm5 = xmm5[1,1,1,1] movaps %xmm3, %xmm4 mulss %xmm3, %xmm4 addss %xmm5, %xmm4 xorps %xmm5, %xmm5 ucomiss %xmm5, %xmm4 jbe 0x3021da sqrtss %xmm4, %xmm4 movss 0x80fb1(%rip), %xmm5 # 0x383180 divss %xmm4, %xmm5 shufps $0x0, %xmm5, %xmm5 # xmm5 = xmm5[0,0,0,0] mulps %xmm5, %xmm3 mulss 0x80fa6(%rip), %xmm2 # 0x383188 movq 0x48(%rbx), %rdx shufps $0x0, %xmm2, %xmm2 # xmm2 = xmm2[0,0,0,0] mulps %xmm3, %xmm2 movaps %xmm2, %xmm3 addps %xmm7, %xmm3 subps %xmm2, %xmm7 movaps %xmm7, %xmm4 shufps $0x10, %xmm3, %xmm4 # xmm4 = xmm4[0,0],xmm3[1,0] shufps $0x42, %xmm1, %xmm4 # xmm4 = xmm4[2,0],xmm1[0,1] movups %xmm4, (%rdx) movq 0x48(%rbx), %rdx movl %ecx, 0x10(%rdx) movaps %xmm2, %xmm4 shufps $0x55, %xmm2, %xmm4 # xmm4 = xmm4[1,1],xmm2[1,1] movaps %xmm4, %xmm5 addss %xmm0, %xmm5 movss %xmm5, 0x14(%rdx) movaps %xmm0, %xmm5 shufps $0x55, %xmm0, %xmm5 # xmm5 = xmm5[1,1],xmm0[1,1] movaps %xmm5, %xmm6 subss %xmm2, %xmm6 movss %xmm6, 0x18(%rdx) movlps %xmm1, 0x1c(%rdx) movq 0x48(%rbx), %rdx movl %ecx, 0x24(%rdx) subss %xmm4, %xmm0 movss %xmm0, 0x28(%rdx) addss %xmm2, %xmm5 movss %xmm5, 0x2c(%rdx) movlps %xmm1, 0x30(%rdx) movq 0x48(%rbx), %rdx movl %ecx, 0x38(%rdx) shufps $0x55, %xmm7, %xmm7 # xmm7 = xmm7[1,1,1,1] movss %xmm7, 0x3c(%rdx) movss %xmm3, 0x40(%rdx) movlps %xmm1, 0x44(%rdx) movq 0x48(%rbx), %rdx movl %ecx, 0x4c(%rdx) addq $0x50, %rdx movq %rdx, 0x48(%rbx) movl 0x34(%rbx), %ecx movq 0x50(%rbx), %rdx movl %ecx, (%rdx) incl %ecx movl %ecx, 0x4(%rdx) movl 0x34(%rbx), %ecx addl $0x2, %ecx movl %ecx, 0x8(%rdx) movl 0x34(%rbx), %ecx movl %ecx, 0xc(%rdx) addl $0x2, %ecx movl %ecx, 0x10(%rdx) movl 0x34(%rbx), %ecx addl $0x3, %ecx movl %ecx, 0x14(%rdx) addq $0x18, %rdx movq %rdx, 0x50(%rbx) addl $0x4, 0x34(%rbx) cmpb $0xf, %al sete %al addq $0x58, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
void ImPlot::RenderLineSegments<ImPlot::GetterYs<float>, ImPlot::GetterYRef, ImPlot::TransformerLinLog>(ImPlot::GetterYs<float> const&, ImPlot::GetterYRef const&, ImPlot::TransformerLinLog const&, ImDrawList&, float, unsigned int)
inline void RenderLineSegments(const Getter1& getter1, const Getter2& getter2, const Transformer& transformer, ImDrawList& DrawList, float line_weight, ImU32 col) { ImPlotContext& gp = *GImPlot; if (ImHasFlag(gp.CurrentPlot->Flags, ImPlotFlags_AntiAliased) || gp.Style.AntiAliasedLines) { int I = ImMin(getter1.Count, getter2.Count); for (int i = 0; i < I; ++i) { ImVec2 p1 = transformer(getter1(i)); ImVec2 p2 = transformer(getter2(i)); if (gp.CurrentPlot->PlotRect.Overlaps(ImRect(ImMin(p1, p2), ImMax(p1, p2)))) DrawList.AddLine(p1, p2, col, line_weight); } } else { RenderPrimitives(LineSegmentsRenderer<Getter1,Getter2,Transformer>(getter1, getter2, transformer, col, line_weight), DrawList, gp.CurrentPlot->PlotRect); } }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x88, %rsp movl %r8d, 0xc(%rsp) movss %xmm0, 0x10(%rsp) movq %rcx, 0x18(%rsp) movq %rdx, %r15 movq %rsi, %r14 movq %rdi, %r12 movq 0x167637(%rip), %rax # 0x46a3f0 movq (%rax), %rax movq 0x28(%rax), %rdx testb $0x10, 0x5(%rdx) jne 0x302dd3 cmpb $0x1, 0x448(%rax) jne 0x30307b movq %rax, 0x50(%rsp) movl 0x8(%r12), %eax movl 0x8(%r14), %ecx cmpl %ecx, %eax cmovll %eax, %ecx movl %ecx, 0x14(%rsp) testl %ecx, %ecx jle 0x3030bf xorl %r13d, %r13d xorpd %xmm5, %xmm5 movapd %xmm5, 0x40(%rsp) movups 0x18(%r12), %xmm0 movaps %xmm0, 0x30(%rsp) movups 0x10(%r12), %xmm0 movaps %xmm0, 0x20(%rsp) movq (%r12), %rcx movl 0x8(%r12), %esi movslq 0x24(%r12), %rdi movl 0x20(%r12), %eax addl %r13d, %eax cltd idivl %esi leal (%rdx,%rsi), %eax cltd idivl %esi movslq %edx, %rax imulq %rdi, %rax xorps %xmm0, %xmm0 cvtss2sd (%rcx,%rax), %xmm0 movq 0x1675a6(%rip), %rbp # 0x46a3f0 movq (%rbp), %rbx movq 0x28(%rbx), %rax movslq (%r15), %rcx shlq $0x7, %rcx divsd 0x98(%rax,%rcx), %xmm0 callq 0xe2ca0 movslq (%r15), %rcx divsd 0x1c0(%rbx,%rcx,8), %xmm0 movq 0x28(%rbx), %rax movq %rcx, %rdx movsd 0x198(%rbx), %xmm1 movhpd 0x1a0(%rbx,%rcx,8), %xmm1 # xmm1 = xmm1[0],mem[0] shlq $0x7, %rcx movsd 0x98(%rax,%rcx), %xmm2 movsd 0xa0(%rax,%rcx), %xmm3 cvtsd2ss %xmm0, %xmm0 subsd %xmm2, %xmm3 movapd 0x20(%rsp), %xmm4 unpcklpd %xmm3, %xmm4 # xmm4 = xmm4[0],xmm3[0] cvtss2sd %xmm0, %xmm0 movaps 0x40(%rsp), %xmm3 movlhps %xmm0, %xmm3 # xmm3 = xmm3[0],xmm0[0] shlq $0x4, %rdx mulpd %xmm4, %xmm3 movapd 0x30(%rsp), %xmm4 unpcklpd %xmm2, %xmm4 # xmm4 = xmm4[0],xmm2[0] cvtps2pd 0x164(%rbx,%rdx), %xmm0 addpd %xmm3, %xmm4 movsd 0x18(%rax), %xmm3 unpcklpd %xmm2, %xmm3 # xmm3 = xmm3[0],xmm2[0] subpd %xmm3, %xmm4 mulpd %xmm4, %xmm1 addpd %xmm0, %xmm1 cvtpd2ps %xmm1, %xmm0 movlpd %xmm0, 0x60(%rsp) movups 0x10(%r14), %xmm0 movaps %xmm0, 0x20(%rsp) movsd (%r14), %xmm0 movq (%rbp), %rbx movq 0x28(%rbx), %rax divsd 0x98(%rax,%rcx), %xmm0 movsd 0x18(%r14), %xmm1 movaps %xmm1, 0x30(%rsp) callq 0xe2ca0 movaps 0x40(%rsp), %xmm5 movslq (%r15), %rcx divsd 0x1c0(%rbx,%rcx,8), %xmm0 movq 0x28(%rbx), %rax movq %rcx, %rdx movsd 0x198(%rbx), %xmm1 movhpd 0x1a0(%rbx,%rcx,8), %xmm1 # xmm1 = xmm1[0],mem[0] shlq $0x7, %rcx movsd 0x98(%rax,%rcx), %xmm2 movsd 0xa0(%rax,%rcx), %xmm3 cvtsd2ss %xmm0, %xmm0 subsd %xmm2, %xmm3 movapd 0x20(%rsp), %xmm4 unpcklpd %xmm3, %xmm4 # xmm4 = xmm4[0],xmm3[0] cvtss2sd %xmm0, %xmm0 movaps %xmm5, %xmm3 movlhps %xmm0, %xmm3 # xmm3 = xmm3[0],xmm0[0] shlq $0x4, %rdx mulpd %xmm4, %xmm3 movapd 0x30(%rsp), %xmm4 unpcklpd %xmm2, %xmm4 # xmm4 = xmm4[0],xmm2[0] addpd %xmm3, %xmm4 cvtps2pd 0x164(%rbx,%rdx), %xmm0 movsd 0x18(%rax), %xmm3 unpcklpd %xmm2, %xmm3 # xmm3 = xmm3[0],xmm2[0] subpd %xmm3, %xmm4 mulpd %xmm4, %xmm1 addpd %xmm0, %xmm1 cvtpd2ps %xmm1, %xmm0 movlpd %xmm0, 0x58(%rsp) movq 0x50(%rsp), %rax movq 0x28(%rax), %rax movss 0x64(%rsp), %xmm1 movapd %xmm0, %xmm2 shufps $0x55, %xmm0, %xmm2 # xmm2 = xmm2[1,1],xmm0[1,1] movaps %xmm1, %xmm3 minss %xmm2, %xmm3 movss 0x2c4(%rax), %xmm4 ucomiss %xmm3, %xmm4 jbe 0x303063 movaps %xmm2, %xmm3 cmpless %xmm1, %xmm3 andps %xmm3, %xmm1 andnps %xmm2, %xmm3 orps %xmm1, %xmm3 ucomiss 0x2bc(%rax), %xmm3 jbe 0x303063 movss 0x60(%rsp), %xmm1 movaps %xmm1, %xmm2 minss %xmm0, %xmm2 movss 0x2c0(%rax), %xmm3 ucomiss %xmm2, %xmm3 jbe 0x303063 movaps %xmm0, %xmm2 cmpless %xmm1, %xmm2 movaps %xmm2, %xmm3 andnps %xmm0, %xmm3 andps %xmm1, %xmm2 orps %xmm3, %xmm2 ucomiss 0x2b8(%rax), %xmm2 jbe 0x303063 movq 0x18(%rsp), %rdi leaq 0x60(%rsp), %rsi leaq 0x58(%rsp), %rdx movl 0xc(%rsp), %ecx movss 0x10(%rsp), %xmm0 callq 0xe5ce0 movaps 0x40(%rsp), %xmm5 addsd 0x8208d(%rip), %xmm5 # 0x3850f8 incl %r13d cmpl %r13d, 0x14(%rsp) jne 0x302df9 jmp 0x3030bf leaq 0x60(%rsp), %rdi movq %r12, (%rdi) movq %r14, 0x8(%rdi) movq %r15, 0x10(%rdi) movl 0x8(%r12), %eax movl 0x8(%r14), %ecx cmpl %ecx, %eax cmovll %eax, %ecx movl %ecx, 0x18(%rdi) movl 0xc(%rsp), %eax movl %eax, 0x1c(%rdi) movss 0x10(%rsp), %xmm0 movss %xmm0, 0x20(%rdi) addq $0x2b8, %rdx # imm = 0x2B8 movq 0x18(%rsp), %rsi callq 0xeb3e0 addq $0x88, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
void ImPlot::RenderPrimitives<ImPlot::LineSegmentsRenderer<ImPlot::GetterYs<float>, ImPlot::GetterYRef, ImPlot::TransformerLinLin>>(ImPlot::LineSegmentsRenderer<ImPlot::GetterYs<float>, ImPlot::GetterYRef, ImPlot::TransformerLinLin> const&, ImDrawList&, ImRect const&)
inline void RenderPrimitives(const Renderer& renderer, ImDrawList& DrawList, const ImRect& cull_rect) { unsigned int prims = renderer.Prims; unsigned int prims_culled = 0; unsigned int idx = 0; const ImVec2 uv = DrawList._Data->TexUvWhitePixel; while (prims) { // find how many can be reserved up to end of current draw command's limit unsigned int cnt = ImMin(prims, (MaxIdx<ImDrawIdx>::Value - DrawList._VtxCurrentIdx) / Renderer::VtxConsumed); // make sure at least this many elements can be rendered to avoid situations where at the end of buffer this slow path is not taken all the time if (cnt >= ImMin(64u, prims)) { if (prims_culled >= cnt) prims_culled -= cnt; // reuse previous reservation else { DrawList.PrimReserve((cnt - prims_culled) * Renderer::IdxConsumed, (cnt - prims_culled) * Renderer::VtxConsumed); // add more elements to previous reservation prims_culled = 0; } } else { if (prims_culled > 0) { DrawList.PrimUnreserve(prims_culled * Renderer::IdxConsumed, prims_culled * Renderer::VtxConsumed); prims_culled = 0; } cnt = ImMin(prims, (MaxIdx<ImDrawIdx>::Value - 0/*DrawList._VtxCurrentIdx*/) / Renderer::VtxConsumed); DrawList.PrimReserve(cnt * Renderer::IdxConsumed, cnt * Renderer::VtxConsumed); // reserve new draw command } prims -= cnt; for (unsigned int ie = idx + cnt; idx != ie; ++idx) { if (!renderer(DrawList, cull_rect, uv, idx)) prims_culled++; } } if (prims_culled > 0) DrawList.PrimUnreserve(prims_culled * Renderer::IdxConsumed, prims_culled * Renderer::VtxConsumed); }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rsi, %rbx movl 0x18(%rdi), %esi movq 0x38(%rbx), %rax movq (%rax), %rax movq %rax, 0x8(%rsp) testl %esi, %esi je 0x3035ec movq %rdx, %r14 movq %rdi, %r15 xorl %r12d, %r12d leaq 0x8(%rsp), %rcx xorl %ebp, %ebp movl 0x34(%rbx), %edi movl %edi, %eax notl %eax shrl $0x2, %eax cmpl %eax, %esi movl %eax, %r13d cmovbl %esi, %r13d cmpl $0x40, %esi movl $0x40, %edx cmovbl %esi, %edx cmpl %edx, %eax jae 0x30354e testl %ebp, %ebp je 0x30353a leal (,%rbp,2), %eax movl %esi, %r13d leal (%rax,%rax,2), %esi shll $0x2, %ebp movq %rbx, %rdi movl %ebp, %edx callq 0xe0140 movl %r13d, %esi movl $0x3fffffff, %eax # imm = 0x3FFFFFFF cmpl %eax, %esi movl $0x3fffffff, %edx # imm = 0x3FFFFFFF cmovbl %esi, %edx movl %edx, %r13d jmp 0x30355a movl %ebp, %eax subl %r13d, %eax jae 0x3035bf movl %r13d, %edx subl %ebp, %edx movl %esi, %ebp leal (%rdx,%rdx), %eax leal (%rax,%rax,2), %esi shll $0x2, %edx movq %rbx, %rdi callq 0xe3170 subl %r13d, %ebp movl %ebp, 0x4(%rsp) xorl %eax, %eax leaq 0x8(%rsp), %rcx leal (%r12,%r13), %edx movl %edx, 0x14(%rsp) movl %eax, %ebp movq %r15, %rdi movq %rbx, %rsi movq %r14, %rdx movl %r12d, %r8d callq 0xe7240 leaq 0x8(%rsp), %rcx xorb $0x1, %al movzbl %al, %eax addl %eax, %ebp incl %r12d decl %r13d jne 0x303585 movl 0x14(%rsp), %eax movl %eax, %r12d movl 0x4(%rsp), %esi testl %esi, %esi jne 0x3034f7 jmp 0x3035d1 subl %r13d, %esi cmpl $-0x5, %edi jbe 0x3035cb movl %eax, %ebp jmp 0x3035b5 movl %esi, 0x4(%rsp) jmp 0x30357b testl %ebp, %ebp je 0x3035ec leal (,%rbp,2), %eax leal (%rax,%rax,2), %esi shll $0x2, %ebp movq %rbx, %rdi movl %ebp, %edx callq 0xe0140 addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq nop
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
void ImPlot::RenderLineSegments<ImPlot::GetterYs<double>, ImPlot::GetterYRef, ImPlot::TransformerLogLog>(ImPlot::GetterYs<double> const&, ImPlot::GetterYRef const&, ImPlot::TransformerLogLog const&, ImDrawList&, float, unsigned int)
inline void RenderLineSegments(const Getter1& getter1, const Getter2& getter2, const Transformer& transformer, ImDrawList& DrawList, float line_weight, ImU32 col) { ImPlotContext& gp = *GImPlot; if (ImHasFlag(gp.CurrentPlot->Flags, ImPlotFlags_AntiAliased) || gp.Style.AntiAliasedLines) { int I = ImMin(getter1.Count, getter2.Count); for (int i = 0; i < I; ++i) { ImVec2 p1 = transformer(getter1(i)); ImVec2 p2 = transformer(getter2(i)); if (gp.CurrentPlot->PlotRect.Overlaps(ImRect(ImMin(p1, p2), ImMax(p1, p2)))) DrawList.AddLine(p1, p2, col, line_weight); } } else { RenderPrimitives(LineSegmentsRenderer<Getter1,Getter2,Transformer>(getter1, getter2, transformer, col, line_weight), DrawList, gp.CurrentPlot->PlotRect); } }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0xa8, %rsp movl %r8d, 0x8(%rsp) movss %xmm0, 0xc(%rsp) movq %rcx, 0x30(%rsp) movq %rdx, %r15 movq %rsi, %r14 movq %rdi, %r12 movq 0x165460(%rip), %rax # 0x46a3f0 movq (%rax), %rax movq 0x28(%rax), %rdx testb $0x10, 0x5(%rdx) jne 0x304faa cmpb $0x1, 0x448(%rax) jne 0x3052f1 movq %rax, 0x70(%rsp) movl 0x8(%r12), %eax movl 0x8(%r14), %ecx cmpl %ecx, %eax cmovll %eax, %ecx movl %ecx, 0x2c(%rsp) testl %ecx, %ecx jle 0x305338 xorl %r13d, %r13d xorpd %xmm1, %xmm1 movsd %xmm1, 0x38(%rsp) movsd 0x10(%r12), %xmm0 mulsd %xmm1, %xmm0 addsd 0x18(%r12), %xmm0 movq (%r12), %rcx movl 0x8(%r12), %esi movslq 0x24(%r12), %rdi movl 0x20(%r12), %eax addl %r13d, %eax cltd idivl %esi leal (%rdx,%rsi), %eax cltd idivl %esi movslq %edx, %rax imulq %rdi, %rax movsd (%rcx,%rax), %xmm1 movsd %xmm1, 0x10(%rsp) movq 0x1653d0(%rip), %rbp # 0x46a3f0 movq (%rbp), %rbx movq 0x28(%rbx), %rax divsd 0x18(%rax), %xmm0 callq 0xe2ca0 movq 0x28(%rbx), %rax movslq (%r15), %rcx shlq $0x7, %rcx movsd 0x10(%rsp), %xmm1 divsd 0x98(%rax,%rcx), %xmm1 movapd %xmm0, 0x40(%rsp) movsd 0x1b8(%rbx), %xmm0 movaps %xmm0, 0x50(%rsp) movsd 0x18(%rax), %xmm0 movaps %xmm0, 0x10(%rsp) movsd 0x20(%rax), %xmm0 movaps %xmm0, 0x60(%rsp) movapd %xmm1, %xmm0 callq 0xe2ca0 movslq (%r15), %rdx movq 0x28(%rbx), %rax movq %rdx, %rcx movapd 0x40(%rsp), %xmm1 unpcklpd %xmm0, %xmm1 # xmm1 = xmm1[0],xmm0[0] movapd 0x50(%rsp), %xmm2 movhpd 0x1c0(%rbx,%rdx,8), %xmm2 # xmm2 = xmm2[0],mem[0] movsd 0x198(%rbx), %xmm0 movhpd 0x1a0(%rbx,%rdx,8), %xmm0 # xmm0 = xmm0[0],mem[0] shlq $0x7, %rdx shlq $0x4, %rcx divpd %xmm2, %xmm1 cvtpd2ps %xmm1, %xmm1 movapd 0x60(%rsp), %xmm4 movhpd 0xa0(%rax,%rdx), %xmm4 # xmm4 = xmm4[0],mem[0] movsd 0x98(%rax,%rdx), %xmm2 movapd 0x10(%rsp), %xmm3 unpcklpd %xmm2, %xmm3 # xmm3 = xmm3[0],xmm2[0] subpd %xmm3, %xmm4 cvtps2pd %xmm1, %xmm1 mulpd %xmm4, %xmm1 addpd %xmm3, %xmm1 cvtps2pd 0x164(%rbx,%rcx), %xmm3 movsd 0x18(%rax), %xmm4 unpcklpd %xmm2, %xmm4 # xmm4 = xmm4[0],xmm2[0] subpd %xmm4, %xmm1 mulpd %xmm1, %xmm0 addpd %xmm3, %xmm0 cvtpd2ps %xmm0, %xmm0 movlpd %xmm0, 0x80(%rsp) movsd 0x10(%r14), %xmm0 mulsd 0x38(%rsp), %xmm0 addsd 0x18(%r14), %xmm0 movsd (%r14), %xmm1 movsd %xmm1, 0x10(%rsp) movq (%rbp), %rbx movq 0x28(%rbx), %rax divsd 0x18(%rax), %xmm0 callq 0xe2ca0 movq 0x28(%rbx), %rax movslq (%r15), %rcx shlq $0x7, %rcx movsd 0x10(%rsp), %xmm1 divsd 0x98(%rax,%rcx), %xmm1 movapd %xmm0, 0x40(%rsp) movsd 0x1b8(%rbx), %xmm0 movaps %xmm0, 0x50(%rsp) movsd 0x18(%rax), %xmm0 movaps %xmm0, 0x10(%rsp) movsd 0x20(%rax), %xmm0 movaps %xmm0, 0x60(%rsp) movapd %xmm1, %xmm0 callq 0xe2ca0 movslq (%r15), %rdx movq 0x28(%rbx), %rax movq %rdx, %rcx movapd 0x40(%rsp), %xmm1 unpcklpd %xmm0, %xmm1 # xmm1 = xmm1[0],xmm0[0] movapd 0x50(%rsp), %xmm2 movhpd 0x1c0(%rbx,%rdx,8), %xmm2 # xmm2 = xmm2[0],mem[0] movsd 0x198(%rbx), %xmm0 movhpd 0x1a0(%rbx,%rdx,8), %xmm0 # xmm0 = xmm0[0],mem[0] shlq $0x7, %rdx shlq $0x4, %rcx divpd %xmm2, %xmm1 cvtpd2ps %xmm1, %xmm1 movapd 0x60(%rsp), %xmm4 movhpd 0xa0(%rax,%rdx), %xmm4 # xmm4 = xmm4[0],mem[0] movsd 0x98(%rax,%rdx), %xmm2 movapd 0x10(%rsp), %xmm3 unpcklpd %xmm2, %xmm3 # xmm3 = xmm3[0],xmm2[0] subpd %xmm3, %xmm4 cvtps2pd %xmm1, %xmm1 mulpd %xmm4, %xmm1 addpd %xmm3, %xmm1 cvtps2pd 0x164(%rbx,%rcx), %xmm3 movsd 0x18(%rax), %xmm4 unpcklpd %xmm2, %xmm4 # xmm4 = xmm4[0],xmm2[0] subpd %xmm4, %xmm1 mulpd %xmm1, %xmm0 addpd %xmm3, %xmm0 cvtpd2ps %xmm0, %xmm0 movlpd %xmm0, 0x78(%rsp) movq 0x70(%rsp), %rax movq 0x28(%rax), %rax movss 0x84(%rsp), %xmm1 movapd %xmm0, %xmm2 shufps $0x55, %xmm0, %xmm2 # xmm2 = xmm2[1,1],xmm0[1,1] movaps %xmm1, %xmm3 minss %xmm2, %xmm3 movss 0x2c4(%rax), %xmm4 ucomiss %xmm3, %xmm4 jbe 0x3052d3 movaps %xmm2, %xmm3 cmpless %xmm1, %xmm3 andps %xmm3, %xmm1 andnps %xmm2, %xmm3 orps %xmm1, %xmm3 ucomiss 0x2bc(%rax), %xmm3 jbe 0x3052d3 movss 0x80(%rsp), %xmm1 movaps %xmm1, %xmm2 minss %xmm0, %xmm2 movss 0x2c0(%rax), %xmm3 ucomiss %xmm2, %xmm3 jbe 0x3052d3 movaps %xmm0, %xmm2 cmpless %xmm1, %xmm2 movaps %xmm2, %xmm3 andnps %xmm0, %xmm3 andps %xmm1, %xmm2 orps %xmm3, %xmm2 ucomiss 0x2b8(%rax), %xmm2 jbe 0x3052d3 movq 0x30(%rsp), %rdi leaq 0x80(%rsp), %rsi leaq 0x78(%rsp), %rdx movl 0x8(%rsp), %ecx movss 0xc(%rsp), %xmm0 callq 0xe5ce0 movsd 0x38(%rsp), %xmm1 addsd 0x7fe17(%rip), %xmm1 # 0x3850f8 incl %r13d cmpl %r13d, 0x2c(%rsp) jne 0x304fd0 jmp 0x305338 leaq 0x80(%rsp), %rdi movq %r12, (%rdi) movq %r14, 0x8(%rdi) movq %r15, 0x10(%rdi) movl 0x8(%r12), %eax movl 0x8(%r14), %ecx cmpl %ecx, %eax cmovll %eax, %ecx movl %ecx, 0x18(%rdi) movl 0x8(%rsp), %eax movl %eax, 0x1c(%rdi) movss 0xc(%rsp), %xmm0 movss %xmm0, 0x20(%rdi) addq $0x2b8, %rdx # imm = 0x2B8 movq 0x30(%rsp), %rsi callq 0xe20e0 addq $0xa8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
void ImPlot::RenderPrimitives<ImPlot::LineSegmentsRenderer<ImPlot::GetterYs<double>, ImPlot::GetterYRef, ImPlot::TransformerLinLog>>(ImPlot::LineSegmentsRenderer<ImPlot::GetterYs<double>, ImPlot::GetterYRef, ImPlot::TransformerLinLog> const&, ImDrawList&, ImRect const&)
inline void RenderPrimitives(const Renderer& renderer, ImDrawList& DrawList, const ImRect& cull_rect) { unsigned int prims = renderer.Prims; unsigned int prims_culled = 0; unsigned int idx = 0; const ImVec2 uv = DrawList._Data->TexUvWhitePixel; while (prims) { // find how many can be reserved up to end of current draw command's limit unsigned int cnt = ImMin(prims, (MaxIdx<ImDrawIdx>::Value - DrawList._VtxCurrentIdx) / Renderer::VtxConsumed); // make sure at least this many elements can be rendered to avoid situations where at the end of buffer this slow path is not taken all the time if (cnt >= ImMin(64u, prims)) { if (prims_culled >= cnt) prims_culled -= cnt; // reuse previous reservation else { DrawList.PrimReserve((cnt - prims_culled) * Renderer::IdxConsumed, (cnt - prims_culled) * Renderer::VtxConsumed); // add more elements to previous reservation prims_culled = 0; } } else { if (prims_culled > 0) { DrawList.PrimUnreserve(prims_culled * Renderer::IdxConsumed, prims_culled * Renderer::VtxConsumed); prims_culled = 0; } cnt = ImMin(prims, (MaxIdx<ImDrawIdx>::Value - 0/*DrawList._VtxCurrentIdx*/) / Renderer::VtxConsumed); DrawList.PrimReserve(cnt * Renderer::IdxConsumed, cnt * Renderer::VtxConsumed); // reserve new draw command } prims -= cnt; for (unsigned int ie = idx + cnt; idx != ie; ++idx) { if (!renderer(DrawList, cull_rect, uv, idx)) prims_culled++; } } if (prims_culled > 0) DrawList.PrimUnreserve(prims_culled * Renderer::IdxConsumed, prims_culled * Renderer::VtxConsumed); }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rsi, %rbx movl 0x18(%rdi), %esi movq 0x38(%rbx), %rax movq (%rax), %rax movq %rax, 0x8(%rsp) testl %esi, %esi je 0x305c80 movq %rdx, %r14 movq %rdi, %r15 xorl %r12d, %r12d leaq 0x8(%rsp), %rcx xorl %ebp, %ebp movl 0x34(%rbx), %edi movl %edi, %eax notl %eax shrl $0x2, %eax cmpl %eax, %esi movl %eax, %r13d cmovbl %esi, %r13d cmpl $0x40, %esi movl $0x40, %edx cmovbl %esi, %edx cmpl %edx, %eax jae 0x305be2 testl %ebp, %ebp je 0x305bce leal (,%rbp,2), %eax movl %esi, %r13d leal (%rax,%rax,2), %esi shll $0x2, %ebp movq %rbx, %rdi movl %ebp, %edx callq 0xe0140 movl %r13d, %esi movl $0x3fffffff, %eax # imm = 0x3FFFFFFF cmpl %eax, %esi movl $0x3fffffff, %edx # imm = 0x3FFFFFFF cmovbl %esi, %edx movl %edx, %r13d jmp 0x305bee movl %ebp, %eax subl %r13d, %eax jae 0x305c53 movl %r13d, %edx subl %ebp, %edx movl %esi, %ebp leal (%rdx,%rdx), %eax leal (%rax,%rax,2), %esi shll $0x2, %edx movq %rbx, %rdi callq 0xe3170 subl %r13d, %ebp movl %ebp, 0x4(%rsp) xorl %eax, %eax leaq 0x8(%rsp), %rcx leal (%r12,%r13), %edx movl %edx, 0x14(%rsp) movl %eax, %ebp movq %r15, %rdi movq %rbx, %rsi movq %r14, %rdx movl %r12d, %r8d callq 0xebe60 leaq 0x8(%rsp), %rcx xorb $0x1, %al movzbl %al, %eax addl %eax, %ebp incl %r12d decl %r13d jne 0x305c19 movl 0x14(%rsp), %eax movl %eax, %r12d movl 0x4(%rsp), %esi testl %esi, %esi jne 0x305b8b jmp 0x305c65 subl %r13d, %esi cmpl $-0x5, %edi jbe 0x305c5f movl %eax, %ebp jmp 0x305c49 movl %esi, 0x4(%rsp) jmp 0x305c0f testl %ebp, %ebp je 0x305c80 leal (,%rbp,2), %eax leal (%rax,%rax,2), %esi shll $0x2, %ebp movq %rbx, %rdi movl %ebp, %edx callq 0xe0140 addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq nop
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
void ImPlot::RenderPrimitives<ImPlot::LineSegmentsRenderer<ImPlot::GetterXsYs<signed char>, ImPlot::GetterXsYRef<signed char>, ImPlot::TransformerLogLin>>(ImPlot::LineSegmentsRenderer<ImPlot::GetterXsYs<signed char>, ImPlot::GetterXsYRef<signed char>, ImPlot::TransformerLogLin> const&, ImDrawList&, ImRect const&)
inline void RenderPrimitives(const Renderer& renderer, ImDrawList& DrawList, const ImRect& cull_rect) { unsigned int prims = renderer.Prims; unsigned int prims_culled = 0; unsigned int idx = 0; const ImVec2 uv = DrawList._Data->TexUvWhitePixel; while (prims) { // find how many can be reserved up to end of current draw command's limit unsigned int cnt = ImMin(prims, (MaxIdx<ImDrawIdx>::Value - DrawList._VtxCurrentIdx) / Renderer::VtxConsumed); // make sure at least this many elements can be rendered to avoid situations where at the end of buffer this slow path is not taken all the time if (cnt >= ImMin(64u, prims)) { if (prims_culled >= cnt) prims_culled -= cnt; // reuse previous reservation else { DrawList.PrimReserve((cnt - prims_culled) * Renderer::IdxConsumed, (cnt - prims_culled) * Renderer::VtxConsumed); // add more elements to previous reservation prims_culled = 0; } } else { if (prims_culled > 0) { DrawList.PrimUnreserve(prims_culled * Renderer::IdxConsumed, prims_culled * Renderer::VtxConsumed); prims_culled = 0; } cnt = ImMin(prims, (MaxIdx<ImDrawIdx>::Value - 0/*DrawList._VtxCurrentIdx*/) / Renderer::VtxConsumed); DrawList.PrimReserve(cnt * Renderer::IdxConsumed, cnt * Renderer::VtxConsumed); // reserve new draw command } prims -= cnt; for (unsigned int ie = idx + cnt; idx != ie; ++idx) { if (!renderer(DrawList, cull_rect, uv, idx)) prims_culled++; } } if (prims_culled > 0) DrawList.PrimUnreserve(prims_culled * Renderer::IdxConsumed, prims_culled * Renderer::VtxConsumed); }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rsi, %rbx movl 0x18(%rdi), %esi movq 0x38(%rbx), %rax movq (%rax), %rax movq %rax, 0x8(%rsp) testl %esi, %esi je 0x3076d6 movq %rdx, %r14 movq %rdi, %r15 xorl %r12d, %r12d leaq 0x8(%rsp), %rcx xorl %ebp, %ebp movl 0x34(%rbx), %edi movl %edi, %eax notl %eax shrl $0x2, %eax cmpl %eax, %esi movl %eax, %r13d cmovbl %esi, %r13d cmpl $0x40, %esi movl $0x40, %edx cmovbl %esi, %edx cmpl %edx, %eax jae 0x307638 testl %ebp, %ebp je 0x307624 leal (,%rbp,2), %eax movl %esi, %r13d leal (%rax,%rax,2), %esi shll $0x2, %ebp movq %rbx, %rdi movl %ebp, %edx callq 0xe0140 movl %r13d, %esi movl $0x3fffffff, %eax # imm = 0x3FFFFFFF cmpl %eax, %esi movl $0x3fffffff, %edx # imm = 0x3FFFFFFF cmovbl %esi, %edx movl %edx, %r13d jmp 0x307644 movl %ebp, %eax subl %r13d, %eax jae 0x3076a9 movl %r13d, %edx subl %ebp, %edx movl %esi, %ebp leal (%rdx,%rdx), %eax leal (%rax,%rax,2), %esi shll $0x2, %edx movq %rbx, %rdi callq 0xe3170 subl %r13d, %ebp movl %ebp, 0x4(%rsp) xorl %eax, %eax leaq 0x8(%rsp), %rcx leal (%r12,%r13), %edx movl %edx, 0x14(%rsp) movl %eax, %ebp movq %r15, %rdi movq %rbx, %rsi movq %r14, %rdx movl %r12d, %r8d callq 0xe18f0 leaq 0x8(%rsp), %rcx xorb $0x1, %al movzbl %al, %eax addl %eax, %ebp incl %r12d decl %r13d jne 0x30766f movl 0x14(%rsp), %eax movl %eax, %r12d movl 0x4(%rsp), %esi testl %esi, %esi jne 0x3075e1 jmp 0x3076bb subl %r13d, %esi cmpl $-0x5, %edi jbe 0x3076b5 movl %eax, %ebp jmp 0x30769f movl %esi, 0x4(%rsp) jmp 0x307665 testl %ebp, %ebp je 0x3076d6 leal (,%rbp,2), %eax leal (%rax,%rax,2), %esi shll $0x2, %ebp movq %rbx, %rdi movl %ebp, %edx callq 0xe0140 addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq nop
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
ImPlot::LineSegmentsRenderer<ImPlot::GetterXsYs<unsigned char>, ImPlot::GetterXsYRef<unsigned char>, ImPlot::TransformerLogLin>::operator()(ImDrawList&, ImRect const&, ImVec2 const&, int) const
inline bool operator()(ImDrawList& DrawList, const ImRect& cull_rect, const ImVec2& uv, int prim) const { ImVec2 P1 = Transformer(Getter1(prim)); ImVec2 P2 = Transformer(Getter2(prim)); if (!cull_rect.Overlaps(ImRect(ImMin(P1, P2), ImMax(P1, P2)))) return false; AddLine(P1,P2,Weight,Col,DrawList,uv); return true; }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x38, %rsp movl %r8d, %ebp movq %rcx, 0x10(%rsp) movq %rdx, 0x18(%rsp) movq %rsi, %rbx movq %rdi, %r15 movq (%rdi), %rcx movq 0x10(%rdi), %r14 movl 0x10(%rcx), %esi movslq 0x18(%rcx), %rdi movl 0x14(%rcx), %eax addl %r8d, %eax cltd idivl %esi leal (%rdx,%rsi), %eax cltd idivl %esi movslq %edx, %rax imulq %rdi, %rax movq (%rcx), %rdx movq 0x8(%rcx), %rcx movzbl (%rdx,%rax), %edx cvtsi2sd %edx, %xmm0 movzbl (%rcx,%rax), %eax cvtsi2sd %eax, %xmm1 movapd %xmm1, (%rsp) movq 0x160d9e(%rip), %r12 # 0x46a3f0 movq (%r12), %r13 movq 0x28(%r13), %rax divsd 0x18(%rax), %xmm0 callq 0xe2ca0 divsd 0x1b8(%r13), %xmm0 movq 0x28(%r13), %rcx movsd 0x18(%rcx), %xmm1 movsd 0x20(%rcx), %xmm3 cvtsd2ss %xmm0, %xmm0 subsd %xmm1, %xmm3 cvtss2sd %xmm0, %xmm2 mulsd %xmm3, %xmm2 addsd %xmm1, %xmm2 movslq (%r14), %r8 movq %r8, %rdi movq 0x8(%r15), %rsi movq 0x10(%r15), %r14 movq (%rsi), %r9 movl 0x10(%rsi), %r11d movslq 0x18(%rsi), %r10 addl 0x14(%rsi), %ebp movl %ebp, %eax cltd idivl %r11d leal (%rdx,%r11), %eax cltd idivl %r11d movsd 0x1a0(%r13,%r8,8), %xmm3 shlq $0x4, %r8 shlq $0x7, %rdi movslq %edx, %rax imulq %r10, %rax movzbl (%r9,%rax), %eax xorps %xmm0, %xmm0 cvtsi2sd %eax, %xmm0 movq (%r12), %r12 movq 0x28(%r12), %rax divsd 0x18(%rax), %xmm0 movapd (%rsp), %xmm4 unpcklpd %xmm2, %xmm4 # xmm4 = xmm4[0],xmm2[0] movsd 0x98(%rcx,%rdi), %xmm2 unpcklpd %xmm1, %xmm2 # xmm2 = xmm2[0],xmm1[0] cvtps2pd 0x164(%r13,%r8), %xmm1 shufpd $0x1, %xmm1, %xmm1 # xmm1 = xmm1[1,0] subpd %xmm2, %xmm4 movhpd 0x198(%r13), %xmm3 # xmm3 = xmm3[0],mem[0] mulpd %xmm4, %xmm3 addpd %xmm1, %xmm3 cvtpd2ps %xmm3, %xmm1 movapd %xmm1, 0x20(%rsp) movsd 0x8(%rsi), %xmm1 movaps %xmm1, (%rsp) callq 0xe2ca0 movaps 0x20(%rsp), %xmm7 divsd 0x1b8(%r12), %xmm0 movq 0x28(%r12), %rax movupd 0x18(%rax), %xmm1 cvtsd2ss %xmm0, %xmm0 movapd %xmm1, %xmm2 unpckhpd %xmm1, %xmm2 # xmm2 = xmm2[1],xmm1[1] subsd %xmm1, %xmm2 cvtss2sd %xmm0, %xmm0 mulsd %xmm2, %xmm0 addsd %xmm1, %xmm0 unpcklpd (%rsp), %xmm0 # xmm0 = xmm0[0],mem[0] movslq (%r14), %rcx movq %rcx, %rdx movsd 0x198(%r12), %xmm2 movhpd 0x1a0(%r12,%rcx,8), %xmm2 # xmm2 = xmm2[0],mem[0] shlq $0x4, %rcx cvtps2pd 0x164(%r12,%rcx), %xmm3 shlq $0x7, %rdx movhpd 0x98(%rax,%rdx), %xmm1 # xmm1 = xmm1[0],mem[0] subpd %xmm1, %xmm0 mulpd %xmm0, %xmm2 addpd %xmm3, %xmm2 cvtpd2ps %xmm2, %xmm0 movaps %xmm7, %xmm1 shufps $0x11, %xmm7, %xmm1 # xmm1 = xmm1[1,0],xmm7[1,0] movapd %xmm0, %xmm2 unpcklpd %xmm0, %xmm2 # xmm2 = xmm2[0],xmm0[0] movapd %xmm2, %xmm3 cmpleps %xmm1, %xmm3 movaps %xmm1, %xmm4 cmpltps %xmm2, %xmm4 movsd %xmm3, %xmm4 # xmm4 = xmm3[0],xmm4[1] andps %xmm4, %xmm1 andnps %xmm2, %xmm4 orps %xmm1, %xmm4 movq 0x18(%rsp), %rax movups (%rax), %xmm1 movaps %xmm1, %xmm2 cmpltps %xmm4, %xmm2 cmpltps %xmm1, %xmm4 movsd %xmm2, %xmm4 # xmm4 = xmm2[0],xmm4[1] movmskps %xmm4, %eax cmpl $0xf, %eax jne 0x309936 movss 0x20(%r15), %xmm2 movl 0x1c(%r15), %ecx movq 0x10(%rsp), %rdx movsd (%rdx), %xmm1 movaps %xmm7, %xmm4 shufps $0xe1, %xmm7, %xmm4 # xmm4 = xmm4[1,0],xmm7[2,3] movapd %xmm0, %xmm3 subps %xmm4, %xmm3 movaps %xmm3, %xmm5 mulps %xmm3, %xmm5 shufps $0x55, %xmm5, %xmm5 # xmm5 = xmm5[1,1,1,1] movaps %xmm3, %xmm4 mulss %xmm3, %xmm4 addss %xmm5, %xmm4 xorps %xmm5, %xmm5 ucomiss %xmm5, %xmm4 jbe 0x30985e sqrtss %xmm4, %xmm4 movss 0x7992d(%rip), %xmm5 # 0x383180 divss %xmm4, %xmm5 shufps $0x0, %xmm5, %xmm5 # xmm5 = xmm5[0,0,0,0] mulps %xmm5, %xmm3 mulss 0x79922(%rip), %xmm2 # 0x383188 movq 0x48(%rbx), %rdx shufps $0x0, %xmm2, %xmm2 # xmm2 = xmm2[0,0,0,0] mulps %xmm3, %xmm2 movaps %xmm2, %xmm3 addps %xmm7, %xmm3 subps %xmm2, %xmm7 movaps %xmm7, %xmm4 shufps $0x10, %xmm3, %xmm4 # xmm4 = xmm4[0,0],xmm3[1,0] shufps $0x42, %xmm1, %xmm4 # xmm4 = xmm4[2,0],xmm1[0,1] movups %xmm4, (%rdx) movq 0x48(%rbx), %rdx movl %ecx, 0x10(%rdx) movaps %xmm2, %xmm4 shufps $0x55, %xmm2, %xmm4 # xmm4 = xmm4[1,1],xmm2[1,1] movaps %xmm4, %xmm5 addss %xmm0, %xmm5 movss %xmm5, 0x14(%rdx) movaps %xmm0, %xmm5 shufps $0x55, %xmm0, %xmm5 # xmm5 = xmm5[1,1],xmm0[1,1] movaps %xmm5, %xmm6 subss %xmm2, %xmm6 movss %xmm6, 0x18(%rdx) movlps %xmm1, 0x1c(%rdx) movq 0x48(%rbx), %rdx movl %ecx, 0x24(%rdx) subss %xmm4, %xmm0 movss %xmm0, 0x28(%rdx) addss %xmm2, %xmm5 movss %xmm5, 0x2c(%rdx) movlps %xmm1, 0x30(%rdx) movq 0x48(%rbx), %rdx movl %ecx, 0x38(%rdx) shufps $0x55, %xmm7, %xmm7 # xmm7 = xmm7[1,1,1,1] movss %xmm7, 0x3c(%rdx) movss %xmm3, 0x40(%rdx) movlps %xmm1, 0x44(%rdx) movq 0x48(%rbx), %rdx movl %ecx, 0x4c(%rdx) addq $0x50, %rdx movq %rdx, 0x48(%rbx) movl 0x34(%rbx), %ecx movq 0x50(%rbx), %rdx movl %ecx, (%rdx) incl %ecx movl %ecx, 0x4(%rdx) movl 0x34(%rbx), %ecx addl $0x2, %ecx movl %ecx, 0x8(%rdx) movl 0x34(%rbx), %ecx movl %ecx, 0xc(%rdx) addl $0x2, %ecx movl %ecx, 0x10(%rdx) movl 0x34(%rbx), %ecx addl $0x3, %ecx movl %ecx, 0x14(%rdx) addq $0x18, %rdx movq %rdx, 0x50(%rbx) addl $0x4, 0x34(%rbx) cmpb $0xf, %al sete %al addq $0x38, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
/JoelLinn[P]py-mahi-gui/thirdparty/mahi-gui/3rdparty/implot/implot_items.cpp
cs_insn_group
CAPSTONE_EXPORT bool cs_insn_group(csh ud, const cs_insn *insn, unsigned int group_id) { struct cs_struct *handle; if (!ud) return false; handle = (struct cs_struct *)(uintptr_t)ud; if (!handle->detail) { handle->errnum = CS_ERR_DETAIL; return false; } if(!insn->id) { handle->errnum = CS_ERR_SKIPDATA; return false; } if(!insn->detail) { handle->errnum = CS_ERR_DETAIL; return false; } return arr_exist(insn->detail->groups, insn->detail->groups_count, group_id); }
testq %rdi, %rdi je 0x4404c cmpl $0x0, 0x68(%rdi) je 0x4403c cmpl $0x0, (%rsi) je 0x44045 movq 0xe8(%rsi), %rcx testq %rcx, %rcx je 0x4403c movzbl 0x2a(%rcx), %esi testq %rsi, %rsi je 0x4404c movzbl 0x22(%rcx), %edi movb $0x1, %al cmpl %edx, %edi je 0x4403b leaq -0x1(%rsi), %rax xorl %r8d, %r8d movq %r8, %rdi cmpq %r8, %rax je 0x44032 movzbl 0x23(%rcx,%rdi), %r9d leaq 0x1(%rdi), %r8 cmpl %edx, %r9d jne 0x4401b incq %rdi cmpq %rsi, %rdi setb %al retq movl $0x7, 0x58(%rdi) jmp 0x4404c movl $0xb, 0x58(%rdi) xorl %eax, %eax retq
/sidneyp[P]capstone-tricore/cs.c
insn_find
unsigned short insn_find(insn_map *insns, unsigned int max, unsigned int id, unsigned short **cache) { if (id > insns[max - 1].id) return 0; if (*cache == NULL) *cache = make_id2insn(insns, max); return (*cache)[id]; }
pushq %r15 pushq %r14 pushq %r12 pushq %rbx pushq %rax movq %rcx, %r14 movl %esi, %r15d leal -0x1(%r15), %eax imulq $0x2e, %rax, %rax movzwl (%rdi,%rax), %ecx cmpl %edx, %ecx jae 0x47636 xorl %eax, %eax jmp 0x47684 movl %edx, %ebx movq (%r14), %rax testq %rax, %rax jne 0x4767e movq %rdi, %r12 leaq 0x14ca66(%rip), %rax # 0x1940b0 leaq 0x2(,%rcx,2), %rdi callq *(%rax) cmpl $0x2, %r15d jb 0x4767b movw $0x2, %cx leal -0x1(%rcx), %edx movzwl %dx, %edx imulq $0x2e, %rdx, %rsi movzwl (%r12,%rsi), %esi movw %dx, (%rax,%rsi,2) movzwl %cx, %edx incl %ecx cmpl %r15d, %edx jb 0x4765e movq %rax, (%r14) movl %ebx, %ecx movzwl (%rax,%rcx,2), %eax addq $0x8, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq
/sidneyp[P]capstone-tricore/utils.c
ARM_init
void ARM_init(MCRegisterInfo *MRI) { /* InitMCRegisterInfo(ARMRegDesc, 289, RA, PC, ARMMCRegisterClasses, 100, ARMRegUnitRoots, 77, ARMRegDiffLists, ARMRegStrings, ARMSubRegIdxLists, 57, ARMSubRegIdxRanges, ARMRegEncodingTable); */ MCRegisterInfo_InitMCRegisterInfo(MRI, ARMRegDesc, 289, 0, 0, ARMMCRegisterClasses, 100, 0, 0, ARMRegDiffLists, 0, ARMSubRegIdxLists, 57, 0); }
pushq %rax xorl %eax, %eax leaq 0x1550b2(%rip), %r10 # 0x19c8b0 leaq 0x152feb(%rip), %r11 # 0x19a7f0 leaq 0x1509a4(%rip), %rsi # 0x1981b0 leaq 0x15203d(%rip), %r9 # 0x199850 movl $0x121, %edx # imm = 0x121 xorl %ecx, %ecx xorl %r8d, %r8d pushq %rax pushq $0x39 pushq %r10 pushq %rax pushq %r11 pushq $0x0 pushq %rax pushq $0x64 callq 0x47470 addq $0x40, %rsp popq %rax retq
/sidneyp[P]capstone-tricore/arch/ARM/ARMDisassembler.c
DecodeCPSInstruction
static DecodeStatus DecodeCPSInstruction(MCInst *Inst, unsigned Insn, uint64_t Address, const void *Decoder) { unsigned imod = fieldFromInstruction_4(Insn, 18, 2); unsigned M = fieldFromInstruction_4(Insn, 17, 1); unsigned iflags = fieldFromInstruction_4(Insn, 6, 3); unsigned mode = fieldFromInstruction_4(Insn, 0, 5); DecodeStatus S = MCDisassembler_Success; // This decoder is called from multiple location that do not check // the full encoding is valid before they do. if (fieldFromInstruction_4(Insn, 5, 1) != 0 || fieldFromInstruction_4(Insn, 16, 1) != 0 || fieldFromInstruction_4(Insn, 20, 8) != 0x10) return MCDisassembler_Fail; // imod == '01' --> UNPREDICTABLE // NOTE: Even though this is technically UNPREDICTABLE, we choose to // return failure here. The '01' imod value is unprintable, so there's // nothing useful we could do even if we returned UNPREDICTABLE. if (imod == 1) return MCDisassembler_Fail; if (imod && M) { MCInst_setOpcode(Inst, ARM_CPS3p); MCOperand_CreateImm0(Inst, imod); MCOperand_CreateImm0(Inst, iflags); MCOperand_CreateImm0(Inst, mode); } else if (imod && !M) { MCInst_setOpcode(Inst, ARM_CPS2p); MCOperand_CreateImm0(Inst, imod); MCOperand_CreateImm0(Inst, iflags); if (mode) S = MCDisassembler_SoftFail; } else if (!imod && M) { MCInst_setOpcode(Inst, ARM_CPS1p); MCOperand_CreateImm0(Inst, mode); if (iflags) S = MCDisassembler_SoftFail; } else { // imod == '00' && M == '0' --> UNPREDICTABLE MCInst_setOpcode(Inst, ARM_CPS1p); MCOperand_CreateImm0(Inst, mode); S = MCDisassembler_SoftFail; } return S; }
xorl %eax, %eax testl $0x10020, %esi # imm = 0x10020 je 0x4ddf5 retq pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx movl %esi, %r15d shrl $0x12, %r15d andl $0x3, %r15d movl %esi, %ecx andl $0xff00000, %ecx # imm = 0xFF00000 cmpl $0x1000000, %ecx # imm = 0x1000000 setne %cl cmpl $0x1, %r15d sete %dl orb %cl, %dl jne 0x4def9 movq %rdi, %rbx movl %esi, %ebp shrl $0x6, %ebp andl $0x7, %ebp movl %esi, %r14d andl $0x1f, %r14d testl %r15d, %r15d sete %al btl $0x11, %esi setae %cl orb %al, %cl jne 0x4de7f movq %rbx, %rdi movl $0x58, %esi callq 0x4459a movl %r15d, %esi movq %rbx, %rdi callq 0x4465e movl %ebp, %esi movq %rbx, %rdi callq 0x4465e movl %r14d, %esi movq %rbx, %rdi callq 0x4465e movl $0x3, %eax jmp 0x4def9 movl %esi, %eax shrl $0x11, %eax andl $0x1, %eax testl %r15d, %r15d sete %cl orb %al, %cl je 0x4dec8 testl %r15d, %r15d setne %r15b btl $0x11, %esi setae %r12b movq %rbx, %rdi movl $0x56, %esi callq 0x4459a movl %r14d, %esi movq %rbx, %rdi callq 0x4465e movl $0x1, %eax orb %r15b, %r12b jne 0x4def9 xorl %eax, %eax testl %ebp, %ebp jmp 0x4deef movq %rbx, %rdi movl $0x57, %esi callq 0x4459a movl %r15d, %esi movq %rbx, %rdi callq 0x4465e movl %ebp, %esi movq %rbx, %rdi callq 0x4465e xorl %eax, %eax testl %r14d, %r14d sete %al leal 0x1(,%rax,2), %eax popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq
/sidneyp[P]capstone-tricore/arch/ARM/ARMDisassembler.c
DecodeQADDInstruction
static DecodeStatus DecodeQADDInstruction(MCInst *Inst, unsigned Insn, uint64_t Address, const void *Decoder) { DecodeStatus S = MCDisassembler_Success; unsigned Rd = fieldFromInstruction_4(Insn, 12, 4); unsigned Rm = fieldFromInstruction_4(Insn, 0, 4); unsigned Rn = fieldFromInstruction_4(Insn, 16, 4); unsigned pred = fieldFromInstruction_4(Insn, 28, 4); if (pred == 0xF) return DecodeCPSInstruction(Inst, Insn, Address, Decoder); if (!Check(&S, DecodeGPRnopcRegisterClass(Inst, Rd, Address, Decoder))) return MCDisassembler_Fail; if (!Check(&S, DecodeGPRnopcRegisterClass(Inst, Rm, Address, Decoder))) return MCDisassembler_Fail; if (!Check(&S, DecodeGPRnopcRegisterClass(Inst, Rn, Address, Decoder))) return MCDisassembler_Fail; if (!Check(&S, DecodePredicateOperand(Inst, pred, Address, Decoder))) return MCDisassembler_Fail; return S; }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rdi, %r14 movl %esi, %ebp shrl $0x1c, %ebp cmpl $0xf, %ebp jne 0x4df30 movq %r14, %rdi addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0x4ddea movl %esi, %r15d shrl $0x10, %r15d andl $0xf, %r15d movl %esi, %r12d andl $0xf, %r12d shrl $0xc, %esi andl $0xf, %esi xorl %ebx, %ebx cmpl $0xf, %esi setne %bl leaq 0x80729(%rip), %r13 # 0xce680 movzwl (%r13,%rsi,2), %esi movq %r14, %rdi callq 0x44631 movzwl (%r13,%r12,2), %esi movq %r14, %rdi callq 0x44631 movzwl (%r13,%r15,2), %esi movq %r14, %rdi callq 0x44631 addl %ebx, %ebx movl $0x1, %eax orl %eax, %ebx cmpl $0xf, %r12d cmovel %eax, %ebx cmpl $0xf, %r15d cmovel %eax, %ebx movq %r14, %rdi movl %ebp, %esi callq 0x4d7b0 movl %eax, %ecx leaq 0x7ee01(%rip), %rdx # 0xccdac movslq (%rdx,%rcx,4), %rcx addq %rdx, %rcx jmpq *%rcx movl %eax, %ebx jmp 0x4dfba xorl %ebx, %ebx movl %ebx, %eax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
/sidneyp[P]capstone-tricore/arch/ARM/ARMDisassembler.c
DecodeAddrMode2IdxInstruction
static DecodeStatus DecodeAddrMode2IdxInstruction(MCInst *Inst, unsigned Insn, uint64_t Address, const void *Decoder) { DecodeStatus S = MCDisassembler_Success; ARM_AM_AddrOpc Op; ARM_AM_ShiftOpc Opc; bool writeback; unsigned Rn = fieldFromInstruction_4(Insn, 16, 4); unsigned Rt = fieldFromInstruction_4(Insn, 12, 4); unsigned Rm = fieldFromInstruction_4(Insn, 0, 4); unsigned imm = fieldFromInstruction_4(Insn, 0, 12); unsigned pred = fieldFromInstruction_4(Insn, 28, 4); unsigned reg = fieldFromInstruction_4(Insn, 25, 1); unsigned P = fieldFromInstruction_4(Insn, 24, 1); unsigned W = fieldFromInstruction_4(Insn, 21, 1); unsigned idx_mode = 0, amt, tmp; // On stores, the writeback operand precedes Rt. switch (MCInst_getOpcode(Inst)) { case ARM_STR_POST_IMM: case ARM_STR_POST_REG: case ARM_STRB_POST_IMM: case ARM_STRB_POST_REG: case ARM_STRT_POST_REG: case ARM_STRT_POST_IMM: case ARM_STRBT_POST_REG: case ARM_STRBT_POST_IMM: if (!Check(&S, DecodeGPRRegisterClass(Inst, Rn, Address, Decoder))) return MCDisassembler_Fail; break; default: break; } if (!Check(&S, DecodeGPRRegisterClass(Inst, Rt, Address, Decoder))) return MCDisassembler_Fail; // On loads, the writeback operand comes after Rt. switch (MCInst_getOpcode(Inst)) { case ARM_LDR_POST_IMM: case ARM_LDR_POST_REG: case ARM_LDRB_POST_IMM: case ARM_LDRB_POST_REG: case ARM_LDRBT_POST_REG: case ARM_LDRBT_POST_IMM: case ARM_LDRT_POST_REG: case ARM_LDRT_POST_IMM: if (!Check(&S, DecodeGPRRegisterClass(Inst, Rn, Address, Decoder))) return MCDisassembler_Fail; break; default: break; } if (!Check(&S, DecodeGPRRegisterClass(Inst, Rn, Address, Decoder))) return MCDisassembler_Fail; Op = ARM_AM_add; if (!fieldFromInstruction_4(Insn, 23, 1)) Op = ARM_AM_sub; writeback = (P == 0) || (W == 1); if (P && writeback) idx_mode = ARMII_IndexModePre; else if (!P && writeback) idx_mode = ARMII_IndexModePost; if (writeback && (Rn == 15 || Rn == Rt)) S = MCDisassembler_SoftFail; // UNPREDICTABLE if (reg) { if (!Check(&S, DecodeGPRnopcRegisterClass(Inst, Rm, Address, Decoder))) return MCDisassembler_Fail; Opc = ARM_AM_lsl; switch( fieldFromInstruction_4(Insn, 5, 2)) { case 0: Opc = ARM_AM_lsl; break; case 1: Opc = ARM_AM_lsr; break; case 2: Opc = ARM_AM_asr; break; case 3: Opc = ARM_AM_ror; break; default: return MCDisassembler_Fail; } amt = fieldFromInstruction_4(Insn, 7, 5); if (Opc == ARM_AM_ror && amt == 0) Opc = ARM_AM_rrx; imm = ARM_AM_getAM2Opc(Op, amt, Opc, idx_mode); MCOperand_CreateImm0(Inst, imm); } else { MCOperand_CreateReg0(Inst, 0); tmp = ARM_AM_getAM2Opc(Op, imm, ARM_AM_lsl, idx_mode); MCOperand_CreateImm0(Inst, tmp); } if (!Check(&S, DecodePredicateOperand(Inst, pred, Address, Decoder))) return MCDisassembler_Fail; return S; }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movl %esi, %r12d movq %rdi, %rbx movl %esi, %r13d shrl $0x10, %r13d andl $0xf, %r13d movl %esi, %ebp shrl $0xc, %ebp andl $0xf, %ebp callq 0x445a1 addl $0xfffffe62, %eax # imm = 0xFFFFFE62 movl %r13d, %r15d cmpl $0x1b, %eax ja 0x4e68f movl $0xf00000f, %ecx # imm = 0xF00000F btl %eax, %ecx jae 0x4e68f leaq 0x7fffe(%rip), %rax # 0xce680 movzwl (%rax,%r15,2), %esi movq %rbx, %rdi callq 0x44631 movl %ebp, %eax leaq 0x7ffe8(%rip), %r14 # 0xce680 movzwl (%r14,%rax,2), %esi movq %rbx, %rdi callq 0x44631 movq %rbx, %rdi callq 0x445a1 addl $0xffffff68, %eax # imm = 0xFFFFFF68 cmpl $0x25, %eax ja 0x4e852 movabsq $0x3c0000000f, %rcx # imm = 0x3C0000000F btq %rax, %rcx jae 0x4e852 movzwl (%r14,%r15,2), %r15d movq %rbx, %rdi movl %r15d, %esi callq 0x44631 movl %r12d, %r14d shrl $0x1c, %r14d movq %rbx, %rdi movl %r15d, %esi callq 0x44631 movl %r12d, %r15d andl $0x800000, %r15d # imm = 0x800000 movl %r12d, %eax shrl $0x18, %eax andl $0x1, %eax movl %r12d, %ecx andl $0x1200000, %ecx # imm = 0x1200000 xorl %edx, %edx cmpl %ebp, %r13d setne %dl cmpl $0xf, %r13d leal 0x1(%rdx,%rdx), %edx movl $0x1, %esi cmovel %esi, %edx cmpl $0x1000000, %ecx # imm = 0x1000000 movl $0x3, %ebp cmovnel %edx, %ebp setne %cl andb %al, %cl movzbl %cl, %ecx testl %eax, %eax movl $0x2, %r13d cmovnel %ecx, %r13d btl $0x19, %r12d jb 0x4e779 andl $0xfff, %r12d # imm = 0xFFF movq %rbx, %rdi xorl %esi, %esi callq 0x44631 shrl $0xb, %r15d orl %r12d, %r15d shll $0x10, %r13d orl %r15d, %r13d xorl $0x5000, %r13d # imm = 0x5000 jmp 0x4e813 movl %r14d, 0x4(%rsp) movl %r12d, %r14d andl $0xf, %r14d movl %r14d, %eax leaq 0x7fef1(%rip), %rcx # 0xce680 movzwl (%rcx,%rax,2), %esi movq %rbx, %rdi callq 0x44631 cmpl $0xf, %r14d movl $0x1, %eax cmovel %eax, %ebp movl %r12d, %eax shrl $0x5, %eax andl $0x3, %eax leaq 0x7e665(%rip), %rcx # 0xcce1c movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax movl $0x4000, %eax # imm = 0x4000 jmp 0x4e7dc movl $0x2000, %eax # imm = 0x2000 jmp 0x4e7dc movl $0x8000, %eax # imm = 0x8000 movb $0x1, %cl jmp 0x4e7de movl $0x6000, %eax # imm = 0x6000 xorl %ecx, %ecx shrl $0x7, %r12d andl $0x1f, %r12d testb %cl, %cl movl $0xa000, %ecx # imm = 0xA000 cmovel %eax, %ecx testl %r12d, %r12d cmovnel %eax, %ecx shrl $0xb, %r15d orl %ecx, %r15d shll $0x10, %r13d orl %r15d, %r13d orl %r12d, %r13d xorl $0x1000, %r13d # imm = 0x1000 movl 0x4(%rsp), %r14d movl %r13d, %esi movq %rbx, %rdi callq 0x4465e movq %rbx, %rdi movl %r14d, %esi callq 0x4d7b0 movl %eax, %ecx leaq 0x7e5fa(%rip), %rdx # 0xcce2c movslq (%rdx,%rcx,4), %rcx addq %rdx, %rcx jmpq *%rcx movl %eax, %ebp jmp 0x4e841 xorl %ebp, %ebp movl %ebp, %eax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movzwl (%r14,%r15,2), %r15d jmp 0x4e6df
/sidneyp[P]capstone-tricore/arch/ARM/ARMDisassembler.c
DecodeVLD4LN
static DecodeStatus DecodeVLD4LN(MCInst *Inst, unsigned Insn, uint64_t Address, const void *Decoder) { DecodeStatus S = MCDisassembler_Success; unsigned size, align = 0, index = 0, inc = 1; unsigned Rn = fieldFromInstruction_4(Insn, 16, 4); unsigned Rm = fieldFromInstruction_4(Insn, 0, 4); unsigned Rd = fieldFromInstruction_4(Insn, 12, 4); Rd |= fieldFromInstruction_4(Insn, 22, 1) << 4; size = fieldFromInstruction_4(Insn, 10, 2); switch (size) { default: return MCDisassembler_Fail; case 0: if (fieldFromInstruction_4(Insn, 4, 1)) align = 4; index = fieldFromInstruction_4(Insn, 5, 3); break; case 1: if (fieldFromInstruction_4(Insn, 4, 1)) align = 8; index = fieldFromInstruction_4(Insn, 6, 2); if (fieldFromInstruction_4(Insn, 5, 1)) inc = 2; break; case 2: switch (fieldFromInstruction_4(Insn, 4, 2)) { case 0: align = 0; break; case 3: return MCDisassembler_Fail; default: align = 4 << fieldFromInstruction_4(Insn, 4, 2); break; } index = fieldFromInstruction_4(Insn, 7, 1); if (fieldFromInstruction_4(Insn, 6, 1)) inc = 2; break; } if (!Check(&S, DecodeDPRRegisterClass(Inst, Rd, Address, Decoder))) return MCDisassembler_Fail; if (!Check(&S, DecodeDPRRegisterClass(Inst, Rd+inc, Address, Decoder))) return MCDisassembler_Fail; if (!Check(&S, DecodeDPRRegisterClass(Inst, Rd+2*inc, Address, Decoder))) return MCDisassembler_Fail; if (!Check(&S, DecodeDPRRegisterClass(Inst, Rd+3*inc, Address, Decoder))) return MCDisassembler_Fail; if (Rm != 0xF) { // Writeback if (!Check(&S, DecodeGPRRegisterClass(Inst, Rn, Address, Decoder))) return MCDisassembler_Fail; } if (!Check(&S, DecodeGPRRegisterClass(Inst, Rn, Address, Decoder))) return MCDisassembler_Fail; MCOperand_CreateImm0(Inst, align); if (Rm != 0xF) { if (Rm != 0xD) { if (!Check(&S, DecodeGPRRegisterClass(Inst, Rm, Address, Decoder))) return MCDisassembler_Fail; } else MCOperand_CreateReg0(Inst, 0); } if (!Check(&S, DecodeDPRRegisterClass(Inst, Rd, Address, Decoder))) return MCDisassembler_Fail; if (!Check(&S, DecodeDPRRegisterClass(Inst, Rd+inc, Address, Decoder))) return MCDisassembler_Fail; if (!Check(&S, DecodeDPRRegisterClass(Inst, Rd+2*inc, Address, Decoder))) return MCDisassembler_Fail; if (!Check(&S, DecodeDPRRegisterClass(Inst, Rd+3*inc, Address, Decoder))) return MCDisassembler_Fail; MCOperand_CreateImm0(Inst, index); return S; }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movl %esi, %ebp movl %esi, %edx shrl $0xa, %edx andl $0x3, %edx xorl %eax, %eax leaq 0x7cd00(%rip), %rcx # 0xccf40 movslq (%rcx,%rdx,4), %rdx addq %rcx, %rdx jmpq *%rdx movl %ebp, %r14d shrl $0x2, %r14d andl $0x4, %r14d movl %ebp, %r13d shrl $0x5, %r13d andl $0x7, %r13d movl $0x1, %r12d jmp 0x502c4 movl %ebp, %r14d shrl %r14d andl $0x8, %r14d movl %ebp, %r13d shrl $0x6, %r13d andl $0x3, %r13d movl %ebp, %eax andl $0x20, %eax jmp 0x502b7 movl %ebp, %r14d shrl $0x4, %r14d andl $0x3, %r14d je 0x502a7 cmpl $0x3, %r14d je 0x50321 movl $0x4, %eax movl %r14d, %ecx shll %cl, %eax movl %eax, %r14d movl %ebp, %r13d shrl $0x7, %r13d andl $0x1, %r13d movl %ebp, %eax andl $0x40, %eax cmpl $0x1, %eax movl $0x2, %r12d sbbl $0x0, %r12d movl %ebp, %eax shrl $0xc, %eax andl $0xf, %eax movl %ebp, %r15d shrl $0x12, %r15d andl $0x10, %r15d orl %eax, %r15d movl %r15d, %eax leaq 0x7d8fc(%rip), %rcx # 0xcdbe0 movzwl (%rcx,%rax,2), %esi movq %rdi, %rbx movl %esi, 0x14(%rsp) callq 0x44631 leal (%r12,%r15), %eax cmpl $0x1f, %eax ja 0x5031f movl %eax, %eax leaq 0x7d8da(%rip), %rcx # 0xcdbe0 movzwl (%rcx,%rax,2), %esi movq %rbx, %rdi movl %esi, 0x10(%rsp) callq 0x44631 leal (%r15,%r12,2), %eax cmpl $0x1f, %eax jbe 0x50330 xorl %eax, %eax addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movl %eax, %eax leaq 0x7d8a7(%rip), %rcx # 0xcdbe0 movzwl (%rcx,%rax,2), %esi movq %rbx, %rdi movl %esi, 0xc(%rsp) callq 0x44631 leal (%r12,%r12,2), %ecx addl %r15d, %ecx cmpl $0x1f, %ecx movl $0x0, %eax ja 0x50321 movl %ebp, %r15d shrl $0x10, %r15d andl $0xf, %r15d andl $0xf, %ebp movl %ecx, %eax leaq 0x7d86f(%rip), %rcx # 0xcdbe0 movzwl (%rcx,%rax,2), %esi movq %rbx, %rdi movl %esi, 0x8(%rsp) callq 0x44631 movl %r15d, %eax leaq 0x7e2f5(%rip), %r12 # 0xce680 movzwl (%r12,%rax,2), %r15d movq %rbx, %rdi movl %r15d, %esi callq 0x44631 cmpl $0xf, %ebp jne 0x503ad movl %r14d, %esi movq %rbx, %rdi callq 0x4465e jmp 0x503de movq %rbx, %rdi movl %r15d, %esi callq 0x44631 movl %r14d, %esi movq %rbx, %rdi callq 0x4465e cmpl $0xd, %ebp jne 0x503cf movq %rbx, %rdi xorl %esi, %esi jmp 0x503d9 movl %ebp, %eax movzwl (%r12,%rax,2), %esi movq %rbx, %rdi callq 0x44631 movq %rbx, %rdi movl 0x14(%rsp), %esi callq 0x44631 movq %rbx, %rdi movl 0x10(%rsp), %esi callq 0x44631 movq %rbx, %rdi movl 0xc(%rsp), %esi callq 0x44631 movq %rbx, %rdi movl 0x8(%rsp), %esi callq 0x44631 movl %r13d, %esi movq %rbx, %rdi callq 0x4465e movl $0x3, %eax jmp 0x50321
/sidneyp[P]capstone-tricore/arch/ARM/ARMDisassembler.c
DecodeVLD4DupInstruction
static DecodeStatus DecodeVLD4DupInstruction(MCInst *Inst, unsigned Insn, uint64_t Address, const void *Decoder) { DecodeStatus S = MCDisassembler_Success; unsigned Rn, Rm, size, inc, align; unsigned Rd = fieldFromInstruction_4(Insn, 12, 4); Rd |= fieldFromInstruction_4(Insn, 22, 1) << 4; Rn = fieldFromInstruction_4(Insn, 16, 4); Rm = fieldFromInstruction_4(Insn, 0, 4); size = fieldFromInstruction_4(Insn, 6, 2); inc = fieldFromInstruction_4(Insn, 5, 1) + 1; align = fieldFromInstruction_4(Insn, 4, 1); if (size == 0x3) { if (align == 0) return MCDisassembler_Fail; align = 16; } else { if (size == 2) { align *= 8; } else { size = 1 << size; align *= 4 * size; } } if (!Check(&S, DecodeDPRRegisterClass(Inst, Rd, Address, Decoder))) return MCDisassembler_Fail; if (!Check(&S, DecodeDPRRegisterClass(Inst, (Rd+inc)%32, Address, Decoder))) return MCDisassembler_Fail; if (!Check(&S, DecodeDPRRegisterClass(Inst, (Rd+2*inc)%32, Address, Decoder))) return MCDisassembler_Fail; if (!Check(&S, DecodeDPRRegisterClass(Inst, (Rd+3*inc)%32, Address, Decoder))) return MCDisassembler_Fail; if (Rm != 0xF) { if (!Check(&S, DecodeGPRRegisterClass(Inst, Rn, Address, Decoder))) return MCDisassembler_Fail; } if (!Check(&S, DecodeGPRRegisterClass(Inst, Rn, Address, Decoder))) return MCDisassembler_Fail; MCOperand_CreateImm0(Inst, align); if (Rm == 0xD) MCOperand_CreateReg0(Inst, 0); else if (Rm != 0xF) { if (!Check(&S, DecodeGPRRegisterClass(Inst, Rm, Address, Decoder))) return MCDisassembler_Fail; } return S; }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movl %esi, %ebp movq %rdi, %rbx movl %esi, %ecx shrl $0x6, %ecx andl $0x3, %ecx xorl %r14d, %r14d btl $0x5, %esi adcl $0x1, %r14d movl %esi, %edx shrl $0x4, %edx andl $0x1, %edx cmpl $0x2, %ecx je 0x507ad cmpl $0x3, %ecx jne 0x507b2 movl $0x10, %ecx xorl %eax, %eax testl %edx, %edx jne 0x507b9 jmp 0x50893 shll $0x3, %edx jmp 0x507b7 addb $0x2, %cl shll %cl, %edx movl %edx, %ecx movl %ecx, 0x4(%rsp) movl %ebp, %eax shrl $0xc, %eax andl $0xf, %eax movl %ebp, %r13d shrl $0x12, %r13d andl $0x10, %r13d orl %eax, %r13d movl %ebp, %r12d shrl $0x10, %r12d andl $0xf, %r12d andl $0xf, %ebp movl %r13d, %eax leaq 0x7d3f5(%rip), %r15 # 0xcdbe0 movzwl (%r15,%rax,2), %esi movq %rbx, %rdi callq 0x44631 leal (%r14,%r13), %eax andl $0x1f, %eax movzwl (%r15,%rax,2), %esi movq %rbx, %rdi callq 0x44631 leal (%r13,%r14,2), %eax andl $0x1f, %eax movzwl (%r15,%rax,2), %esi movq %rbx, %rdi callq 0x44631 leal (%r14,%r14,2), %eax addl %r13d, %eax andl $0x1f, %eax movzwl (%r15,%rax,2), %esi movq %rbx, %rdi callq 0x44631 movl %r12d, %eax leaq 0x7de3e(%rip), %r12 # 0xce680 movzwl (%r12,%rax,2), %r14d cmpl $0xf, %ebp je 0x50857 movq %rbx, %rdi movl %r14d, %esi callq 0x44631 movq %rbx, %rdi movl %r14d, %esi callq 0x44631 movl 0x4(%rsp), %esi movq %rbx, %rdi callq 0x4465e xorl %esi, %esi cmpl $0xd, %ebp je 0x50886 movl $0x3, %eax cmpl $0xf, %ebp je 0x50893 movl %ebp, %eax movzwl (%r12,%rax,2), %esi movq %rbx, %rdi callq 0x44631 movl $0x3, %eax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
/sidneyp[P]capstone-tricore/arch/ARM/ARMDisassembler.c
DecodeThumbAddrModeIS
static DecodeStatus DecodeThumbAddrModeIS(MCInst *Inst, unsigned Val, uint64_t Address, const void *Decoder) { DecodeStatus S = MCDisassembler_Success; unsigned Rn = fieldFromInstruction_4(Val, 0, 3); unsigned imm = fieldFromInstruction_4(Val, 3, 5); if (!Check(&S, DecodetGPRRegisterClass(Inst, Rn, Address, Decoder))) return MCDisassembler_Fail; MCOperand_CreateImm0(Inst, imm); return S; }
pushq %r14 pushq %rbx pushq %rax movl %esi, %ebx movq %rdi, %r14 movl %esi, %eax andl $0x7, %eax shrl $0x3, %ebx andl $0x1f, %ebx leaq 0x7dce8(%rip), %rcx # 0xce680 movzwl (%rcx,%rax,2), %esi callq 0x44631 movq %r14, %rdi movq %rbx, %rsi callq 0x4465e movl $0x3, %eax addq $0x8, %rsp popq %rbx popq %r14 retq
/sidneyp[P]capstone-tricore/arch/ARM/ARMDisassembler.c
DecodeT2MOVTWInstruction
static DecodeStatus DecodeT2MOVTWInstruction(MCInst *Inst, unsigned Insn, uint64_t Address, const void *Decoder) { DecodeStatus S = MCDisassembler_Success; unsigned Rd = fieldFromInstruction_4(Insn, 8, 4); unsigned imm = 0; imm |= (fieldFromInstruction_4(Insn, 0, 8) << 0); imm |= (fieldFromInstruction_4(Insn, 12, 3) << 8); imm |= (fieldFromInstruction_4(Insn, 16, 4) << 12); imm |= (fieldFromInstruction_4(Insn, 26, 1) << 11); if (MCInst_getOpcode(Inst) == ARM_t2MOVTi16) if (!Check(&S, DecoderGPRRegisterClass(Inst, Rd, Address, Decoder))) return MCDisassembler_Fail; if (!Check(&S, DecoderGPRRegisterClass(Inst, Rd, Address, Decoder))) return MCDisassembler_Fail; MCOperand_CreateImm0(Inst, imm); return S; }
pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx movl %esi, %ebx movq %rdi, %r14 movl %esi, %ebp shrl $0x8, %ebp andl $0xf, %ebp callq 0x445a1 cmpl $0x988, %eax # imm = 0x988 jne 0x50f68 movl $0xd00, %eax # imm = 0xD00 movl %ebx, %r15d andl %eax, %r15d xorl %r12d, %r12d cmpl %eax, %r15d setne %r12b movl %ebp, %eax leaq 0x7d730(%rip), %rcx # 0xce680 movzwl (%rcx,%rax,2), %ebp movq %r14, %rdi movl %ebp, %esi callq 0x44631 leal 0x1(,%r12,2), %r12d jmp 0x50f85 movl %ebp, %eax leaq 0x7d70f(%rip), %rcx # 0xce680 movzwl (%rcx,%rax,2), %ebp movl %ebx, %r15d andl $0xd00, %r15d # imm = 0xD00 movl $0x3, %r12d movzbl %bl, %eax movl %ebx, %ecx shrl $0x4, %ecx andl $0xf700, %ecx # imm = 0xF700 orl %eax, %ecx shrl $0xf, %ebx andl $0x800, %ebx # imm = 0x800 orl %ecx, %ebx movq %r14, %rdi movl %ebp, %esi callq 0x44631 cmpl $0xd00, %r15d # imm = 0xD00 movl $0x1, %ebp cmovnel %r12d, %ebp movq %r14, %rdi movq %rbx, %rsi callq 0x4465e movl %ebp, %eax popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq
/sidneyp[P]capstone-tricore/arch/ARM/ARMDisassembler.c
DecodeThumb2BCCInstruction
static DecodeStatus DecodeThumb2BCCInstruction(MCInst *Inst, unsigned Insn, uint64_t Address, const void *Decoder) { DecodeStatus S = MCDisassembler_Success; unsigned brtarget; unsigned pred = fieldFromInstruction_4(Insn, 22, 4); if (pred == 0xE || pred == 0xF) { unsigned imm; unsigned opc = fieldFromInstruction_4(Insn, 4, 28); switch (opc) { default: return MCDisassembler_Fail; case 0xf3bf8f4: MCInst_setOpcode(Inst, ARM_t2DSB); break; case 0xf3bf8f5: MCInst_setOpcode(Inst, ARM_t2DMB); break; case 0xf3bf8f6: MCInst_setOpcode(Inst, ARM_t2ISB); break; } imm = fieldFromInstruction_4(Insn, 0, 4); return DecodeMemBarrierOption(Inst, imm, Address, Decoder); } brtarget = fieldFromInstruction_4(Insn, 0, 11) << 1; brtarget |= fieldFromInstruction_4(Insn, 11, 1) << 19; brtarget |= fieldFromInstruction_4(Insn, 13, 1) << 18; brtarget |= fieldFromInstruction_4(Insn, 16, 6) << 12; brtarget |= fieldFromInstruction_4(Insn, 26, 1) << 20; if (!Check(&S, DecodeT2BROperand(Inst, brtarget, Address, Decoder))) return MCDisassembler_Fail; if (!Check(&S, DecodePredicateOperand(Inst, pred, Address, Decoder))) return MCDisassembler_Fail; return S; }
pushq %rbp pushq %r14 pushq %rbx movl %esi, %r14d movq %rdi, %rbx movl %esi, %eax notl %eax testl $0x3800000, %eax # imm = 0x3800000 jne 0x51134 movl %r14d, %ecx shrl $0x4, %ecx addl $0xf0c4070c, %ecx # imm = 0xF0C4070C xorl %eax, %eax cmpl $0x2, %ecx ja 0x511a4 movl %ecx, %eax leaq 0x7cc01(%rip), %rcx # 0xcdd14 movl (%rcx,%rax,4), %esi movq %rbx, %rdi callq 0x4459a andl $0xf, %r14d movq %rbx, %rdi movq %r14, %rsi callq 0x4465e movl $0x3, %eax jmp 0x511a4 movl %r14d, %ebp shrl $0x16, %ebp andl $0xf, %ebp movl %r14d, %eax andl $0x7ff, %eax # imm = 0x7FF movl %r14d, %ecx shll $0x8, %ecx andl $0x80000, %ecx # imm = 0x80000 movl %r14d, %edx shll $0x5, %edx andl $0x40000, %edx # imm = 0x40000 movl %r14d, %edi shrl $0x4, %edi andl $0x3f000, %edi # imm = 0x3F000 shrl $0x6, %r14d andl $0x100000, %r14d # imm = 0x100000 leal (%rcx,%rax,2), %esi orl %edx, %esi orl %edi, %esi orl %r14d, %esi shlq $0x2b, %rsi sarq $0x2b, %rsi movq %rbx, %rdi callq 0x4465e movq %rbx, %rdi movl %ebp, %esi callq 0x4d7b0 movl %eax, %eax leaq 0x7cbaf(%rip), %rcx # 0xcdd50 movl (%rcx,%rax,4), %eax popq %rbx popq %r14 popq %rbp retq
/sidneyp[P]capstone-tricore/arch/ARM/ARMDisassembler.c
DecodeVMOVRRS
static DecodeStatus DecodeVMOVRRS(MCInst *Inst, unsigned Insn, uint64_t Address, const void *Decoder) { DecodeStatus S = MCDisassembler_Success; unsigned Rt = fieldFromInstruction_4(Insn, 12, 4); unsigned Rt2 = fieldFromInstruction_4(Insn, 16, 4); unsigned Rm = fieldFromInstruction_4(Insn, 5, 1); unsigned pred = fieldFromInstruction_4(Insn, 28, 4); Rm |= fieldFromInstruction_4(Insn, 0, 4) << 1; if (Rt == 0xF || Rt2 == 0xF || Rm == 0x1F) S = MCDisassembler_SoftFail; if (!Check(&S, DecodeGPRRegisterClass(Inst, Rt , Address, Decoder))) return MCDisassembler_Fail; if (!Check(&S, DecodeGPRRegisterClass(Inst, Rt2 , Address, Decoder))) return MCDisassembler_Fail; if (!Check(&S, DecodeSPRRegisterClass(Inst, Rm , Address, Decoder))) return MCDisassembler_Fail; if (!Check(&S, DecodeSPRRegisterClass(Inst, Rm+1, Address, Decoder))) return MCDisassembler_Fail; if (!Check(&S, DecodePredicateOperand(Inst, pred, Address, Decoder))) return MCDisassembler_Fail; return S; }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movl %esi, %ebx movq %rdi, %r14 movl %esi, %r15d shrl $0xc, %r15d andl $0xf, %r15d movl %esi, %r12d shrl $0x10, %r12d andl $0xf, %r12d movl %esi, %eax shrl $0x5, %eax andl $0x1, %eax movl %esi, %ecx andl $0xf, %ecx leal (%rax,%rcx,2), %r13d leaq 0x7c888(%rip), %rbp # 0xce680 movzwl (%rbp,%r15,2), %esi callq 0x44631 movzwl (%rbp,%r12,2), %esi movq %r14, %rdi callq 0x44631 leaq 0x7be88(%rip), %rax # 0xcdca0 movzwl (%rax,%r13,2), %esi movq %r14, %rdi callq 0x44631 xorl %ebp, %ebp cmpl $0x1f, %r13d je 0x51e82 xorl %eax, %eax cmpl $0xf, %r12d setne %al cmpl $0xf, %r15d leal 0x1(%rax,%rax), %eax movl $0x1, %ebp cmovnel %eax, %ebp shrl $0x1c, %ebx movl %r13d, %eax leaq 0x7be4d(%rip), %rcx # 0xcdca0 movzwl 0x2(%rcx,%rax,2), %esi movq %r14, %rdi callq 0x44631 movq %r14, %rdi movl %ebx, %esi callq 0x4d7b0 movl %eax, %ecx leaq 0x7b0fd(%rip), %rdx # 0xccf70 movslq (%rdx,%rcx,4), %rcx addq %rdx, %rcx jmpq *%rcx movl %eax, %ebp jmp 0x51e82 xorl %ebp, %ebp movl %ebp, %eax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
/sidneyp[P]capstone-tricore/arch/ARM/ARMDisassembler.c
ARM_printInst
void ARM_printInst(MCInst *MI, SStream *O, void *Info) { MCRegisterInfo *MRI = (MCRegisterInfo *)Info; unsigned Opcode = MCInst_getOpcode(MI), tmp, i, pubOpcode; switch(Opcode) { // Check for HINT instructions w/ canonical names. case ARM_HINT: case ARM_tHINT: case ARM_t2HINT: switch (MCOperand_getImm(MCInst_getOperand(MI, 0))) { case 0: SStream_concat0(O, "nop"); pubOpcode = ARM_INS_NOP; break; case 1: SStream_concat0(O, "yield"); pubOpcode = ARM_INS_YIELD; break; case 2: SStream_concat0(O, "wfe"); pubOpcode = ARM_INS_WFE; break; case 3: SStream_concat0(O, "wfi"); pubOpcode = ARM_INS_WFI; break; case 4: SStream_concat0(O, "sev"); pubOpcode = ARM_INS_SEV; break; case 5: if ((ARM_getFeatureBits(MI->csh->mode) & ARM_HasV8Ops)) { SStream_concat0(O, "sevl"); pubOpcode = ARM_INS_SEVL; break; } // Fallthrough for non-v8 default: // Anything else should just print normally. printInstruction(MI, O, MRI); return; } printPredicateOperand(MI, 1, O); if (Opcode == ARM_t2HINT) SStream_concat0(O, ".w"); MCInst_setOpcodePub(MI, pubOpcode); return; // Check for MOVs and print canonical forms, instead. case ARM_MOVsr: { // FIXME: Thumb variants? MCOperand *Dst = MCInst_getOperand(MI, 0); MCOperand *MO1 = MCInst_getOperand(MI, 1); MCOperand *MO2 = MCInst_getOperand(MI, 2); MCOperand *MO3 = MCInst_getOperand(MI, 3); SStream_concat0(O, ARM_AM_getShiftOpcStr(ARM_AM_getSORegShOp((unsigned int)MCOperand_getImm(MO3)))); printSBitModifierOperand(MI, 6, O); printPredicateOperand(MI, 4, O); SStream_concat0(O, "\t"); printRegName(MI->csh, O, MCOperand_getReg(Dst)); if (MI->csh->detail) { MI->flat_insn->detail->arm.operands[MI->flat_insn->detail->arm.op_count].type = ARM_OP_REG; MI->flat_insn->detail->arm.operands[MI->flat_insn->detail->arm.op_count].reg = MCOperand_getReg(Dst); MI->flat_insn->detail->arm.op_count++; } SStream_concat0(O, ", "); printRegName(MI->csh, O, MCOperand_getReg(MO1)); if (MI->csh->detail) { MI->flat_insn->detail->arm.operands[MI->flat_insn->detail->arm.op_count].type = ARM_OP_REG; MI->flat_insn->detail->arm.operands[MI->flat_insn->detail->arm.op_count].reg = MCOperand_getReg(MO1); MI->flat_insn->detail->arm.op_count++; } SStream_concat0(O, ", "); printRegName(MI->csh, O, MCOperand_getReg(MO2)); if (MI->csh->detail) { MI->flat_insn->detail->arm.operands[MI->flat_insn->detail->arm.op_count].type = ARM_OP_REG; MI->flat_insn->detail->arm.operands[MI->flat_insn->detail->arm.op_count].reg = MCOperand_getReg(MO2); MI->flat_insn->detail->arm.op_count++; } //assert(ARM_AM_getSORegOffset(MO3.getImm()) == 0); return; } case ARM_MOVsi: { // FIXME: Thumb variants? MCOperand *Dst = MCInst_getOperand(MI, 0); MCOperand *MO1 = MCInst_getOperand(MI, 1); MCOperand *MO2 = MCInst_getOperand(MI, 2); SStream_concat0(O, ARM_AM_getShiftOpcStr(ARM_AM_getSORegShOp((unsigned int)MCOperand_getImm(MO2)))); printSBitModifierOperand(MI, 5, O); printPredicateOperand(MI, 3, O); SStream_concat0(O, "\t"); printRegName(MI->csh, O, MCOperand_getReg(Dst)); if (MI->csh->detail) { MI->flat_insn->detail->arm.operands[MI->flat_insn->detail->arm.op_count].type = ARM_OP_REG; MI->flat_insn->detail->arm.operands[MI->flat_insn->detail->arm.op_count].reg = MCOperand_getReg(Dst); MI->flat_insn->detail->arm.op_count++; } SStream_concat0(O, ", "); printRegName(MI->csh, O, MCOperand_getReg(MO1)); if (MI->csh->detail) { MI->flat_insn->detail->arm.operands[MI->flat_insn->detail->arm.op_count].type = ARM_OP_REG; MI->flat_insn->detail->arm.operands[MI->flat_insn->detail->arm.op_count].reg = MCOperand_getReg(MO1); MI->flat_insn->detail->arm.op_count++; } if (ARM_AM_getSORegShOp((unsigned int)MCOperand_getImm(MO2)) == ARM_AM_rrx) { //printAnnotation(O, Annot); return; } SStream_concat0(O, ", "); tmp = translateShiftImm(getSORegOffset((unsigned int)MCOperand_getImm(MO2))); if (tmp > HEX_THRESHOLD) SStream_concat(O, "#0x%x", tmp); else SStream_concat(O, "#%u", tmp); if (MI->csh->detail) { MI->flat_insn->detail->arm.operands[MI->flat_insn->detail->arm.op_count - 1].shift.type = (arm_shifter)ARM_AM_getSORegShOp((unsigned int)MCOperand_getImm(MO2)); MI->flat_insn->detail->arm.operands[MI->flat_insn->detail->arm.op_count - 1].shift.value = tmp; } return; } // A8.6.123 PUSH case ARM_STMDB_UPD: case ARM_t2STMDB_UPD: if (MCOperand_getReg(MCInst_getOperand(MI, 0)) == ARM_SP && MCInst_getNumOperands(MI) > 5) { // Should only print PUSH if there are at least two registers in the list. SStream_concat0(O, "push"); MCInst_setOpcodePub(MI, ARM_INS_PUSH); printPredicateOperand(MI, 2, O); if (Opcode == ARM_t2STMDB_UPD) SStream_concat0(O, ".w"); SStream_concat0(O, "\t"); printRegisterList(MI, 4, O); return; } break; case ARM_STR_PRE_IMM: if (MCOperand_getReg(MCInst_getOperand(MI, 2)) == ARM_SP && MCOperand_getImm(MCInst_getOperand(MI, 3)) == -4) { SStream_concat0(O, "push"); MCInst_setOpcodePub(MI, ARM_INS_PUSH); printPredicateOperand(MI, 4, O); SStream_concat0(O, "\t{"); printRegName(MI->csh, O, MCOperand_getReg(MCInst_getOperand(MI, 1))); if (MI->csh->detail) { MI->flat_insn->detail->arm.operands[MI->flat_insn->detail->arm.op_count].type = ARM_OP_REG; MI->flat_insn->detail->arm.operands[MI->flat_insn->detail->arm.op_count].reg = MCOperand_getReg(MCInst_getOperand(MI, 1)); MI->flat_insn->detail->arm.op_count++; } SStream_concat0(O, "}"); return; } break; // A8.6.122 POP case ARM_LDMIA_UPD: case ARM_t2LDMIA_UPD: if (MCOperand_getReg(MCInst_getOperand(MI, 0)) == ARM_SP && MCInst_getNumOperands(MI) > 5) { // Should only print POP if there are at least two registers in the list. SStream_concat0(O, "pop"); MCInst_setOpcodePub(MI, ARM_INS_POP); printPredicateOperand(MI, 2, O); if (Opcode == ARM_t2LDMIA_UPD) SStream_concat0(O, ".w"); SStream_concat0(O, "\t"); printRegisterList(MI, 4, O); return; } break; case ARM_LDR_POST_IMM: if (MCOperand_getReg(MCInst_getOperand(MI, 2)) == ARM_SP) { MCOperand *MO2 = MCInst_getOperand(MI, 4); if ((getAM2Op((unsigned int)MCOperand_getImm(MO2)) == ARM_AM_add && getAM2Offset((unsigned int)MCOperand_getImm(MO2)) == 4) || MCOperand_getImm(MO2) == 4) { SStream_concat0(O, "pop"); MCInst_setOpcodePub(MI, ARM_INS_POP); printPredicateOperand(MI, 5, O); SStream_concat0(O, "\t{"); printRegName(MI->csh, O, MCOperand_getReg(MCInst_getOperand(MI, 0))); if (MI->csh->detail) { MI->flat_insn->detail->arm.operands[MI->flat_insn->detail->arm.op_count].type = ARM_OP_REG; MI->flat_insn->detail->arm.operands[MI->flat_insn->detail->arm.op_count].reg = MCOperand_getReg(MCInst_getOperand(MI, 0)); MI->flat_insn->detail->arm.op_count++; } SStream_concat0(O, "}"); return; } } break; // A8.6.355 VPUSH case ARM_VSTMSDB_UPD: case ARM_VSTMDDB_UPD: if (MCOperand_getReg(MCInst_getOperand(MI, 0)) == ARM_SP) { SStream_concat0(O, "vpush"); MCInst_setOpcodePub(MI, ARM_INS_VPUSH); printPredicateOperand(MI, 2, O); SStream_concat0(O, "\t"); printRegisterList(MI, 4, O); return; } break; // A8.6.354 VPOP case ARM_VLDMSIA_UPD: case ARM_VLDMDIA_UPD: if (MCOperand_getReg(MCInst_getOperand(MI, 0)) == ARM_SP) { SStream_concat0(O, "vpop"); MCInst_setOpcodePub(MI, ARM_INS_VPOP); printPredicateOperand(MI, 2, O); SStream_concat0(O, "\t"); printRegisterList(MI, 4, O); return; } break; case ARM_tLDMIA: { bool Writeback = true; unsigned BaseReg = MCOperand_getReg(MCInst_getOperand(MI, 0)); unsigned i; for (i = 3; i < MCInst_getNumOperands(MI); ++i) { if (MCOperand_getReg(MCInst_getOperand(MI, i)) == BaseReg) Writeback = false; } SStream_concat0(O, "ldm"); MCInst_setOpcodePub(MI, ARM_INS_LDM); printPredicateOperand(MI, 1, O); SStream_concat0(O, "\t"); printRegName(MI->csh, O, BaseReg); if (MI->csh->detail) { MI->flat_insn->detail->arm.operands[MI->flat_insn->detail->arm.op_count].type = ARM_OP_REG; MI->flat_insn->detail->arm.operands[MI->flat_insn->detail->arm.op_count].reg = BaseReg; MI->flat_insn->detail->arm.op_count++; } if (Writeback) { MI->writeback = true; SStream_concat0(O, "!"); } SStream_concat0(O, ", "); printRegisterList(MI, 3, O); return; } // Combine 2 GPRs from disassember into a GPRPair to match with instr def. // ldrexd/strexd require even/odd GPR pair. To enforce this constraint, // a single GPRPair reg operand is used in the .td file to replace the two // GPRs. However, when decoding them, the two GRPs cannot be automatically // expressed as a GPRPair, so we have to manually merge them. // FIXME: We would really like to be able to tablegen'erate this. case ARM_LDREXD: case ARM_STREXD: case ARM_LDAEXD: case ARM_STLEXD: { MCRegisterClass* MRC = MCRegisterInfo_getRegClass(MRI, ARM_GPRRegClassID); bool isStore = Opcode == ARM_STREXD || Opcode == ARM_STLEXD; unsigned Reg = MCOperand_getReg(MCInst_getOperand(MI, isStore ? 1 : 0)); if (MCRegisterClass_contains(MRC, Reg)) { MCInst NewMI; MCInst_Init(&NewMI); MCInst_setOpcode(&NewMI, Opcode); if (isStore) MCInst_addOperand2(&NewMI, MCInst_getOperand(MI, 0)); MCOperand_CreateReg0(&NewMI, MCRegisterInfo_getMatchingSuperReg(MRI, Reg, ARM_gsub_0, MCRegisterInfo_getRegClass(MRI, ARM_GPRPairRegClassID))); // Copy the rest operands into NewMI. for(i = isStore ? 3 : 2; i < MCInst_getNumOperands(MI); ++i) MCInst_addOperand2(&NewMI, MCInst_getOperand(MI, i)); printInstruction(&NewMI, O, MRI); return; } } } //if (printAliasInstr(MI, O, MRI)) // printInstruction(MI, O, MRI); printInstruction(MI, O, MRI); }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x338, %rsp # imm = 0x338 movq %rdx, %r15 movq %rsi, %r14 movq %rdi, %rbx callq 0x445a1 movl %eax, %ebp cmpl $0x1b9, %eax # imm = 0x1B9 jg 0x58c68 cmpl $0xe1, %ebp jg 0x58cd7 cmpl $0x93, %ebp jle 0x58d39 cmpl $0x94, %ebp je 0x58f63 cmpl $0xa5, %ebp je 0x58d4b cmpl $0xbc, %ebp jne 0x59790 movq %rbx, %rdi movl $0x2, %esi callq 0x445a8 movq %rax, %rdi callq 0x445fe cmpl $0xc, %eax jne 0x59790 movq %rbx, %rdi movl $0x4, %esi callq 0x445a8 movq %rax, %r12 movq %rax, %rdi callq 0x44606 btl $0xc, %eax jb 0x58bb5 movq %r12, %rdi callq 0x44606 andl $0xfff, %eax # imm = 0xFFF cmpl $0x4, %eax je 0x58bc7 movq %r12, %rdi callq 0x44606 cmpq $0x4, %rax jne 0x59790 leaq 0x8b66d(%rip), %rsi # 0xe423b movq %r14, %rdi callq 0x44686 movq %rbx, %rdi movl $0x1a9, %esi # imm = 0x1A9 callq 0x4459e movq %rbx, %rdi movl $0x5, %esi movq %r14, %rdx callq 0x5c6c7 leaq 0x7c379(%rip), %rsi # 0xd4f73 movq %r14, %rdi callq 0x44686 movq 0x320(%rbx), %r15 movq %rbx, %rdi xorl %esi, %esi callq 0x445a8 movq %rax, %rdi callq 0x445fe movl %eax, %edi callq *0x80(%r15) movq %r14, %rdi movq %rax, %rsi callq 0x44686 movq 0x320(%rbx), %rax cmpl $0x0, 0x68(%rax) je 0x592e0 movq 0x310(%rbx), %rax movq 0xe8(%rax), %rax movzbl 0x50(%rax), %ecx leaq (%rcx,%rcx,4), %rcx movl $0x1, 0x64(%rax,%rcx,8) movq %rbx, %rdi xorl %esi, %esi jmp 0x592a8 cmpl $0x920, %ebp # imm = 0x920 jg 0x58d04 cmpl $0x4e3, %ebp # imm = 0x4E3 jle 0x58e5a cmpl $0x4e4, %ebp # imm = 0x4E4 je 0x58e72 cmpl $0x87c, %ebp # imm = 0x87C je 0x58ca0 cmpl $0x880, %ebp # imm = 0x880 jne 0x59790 movq %rbx, %rdi xorl %esi, %esi callq 0x445a8 movq %rax, %rdi callq 0x445fe cmpl $0xc, %eax jne 0x59790 leaq 0x7c178(%rip), %rsi # 0xd4e3a movq %r14, %rdi callq 0x44686 movq %rbx, %rdi movl $0x1b1, %esi # imm = 0x1B1 jmp 0x58ea4 cmpl $0x191, %ebp # imm = 0x191 jle 0x58ed5 cmpl $0x192, %ebp # imm = 0x192 je 0x58d4b cmpl $0x198, %ebp # imm = 0x198 je 0x5900a cmpl $0x1ad, %ebp # imm = 0x1AD je 0x58d4b jmp 0x59790 cmpl $0xa23, %ebp # imm = 0xA23 jle 0x58f4f cmpl $0xa24, %ebp # imm = 0xA24 je 0x5900a cmpl $0xaa6, %ebp # imm = 0xAA6 je 0x59082 cmpl $0xaa2, %ebp # imm = 0xAA2 je 0x58fcc jmp 0x59790 cmpl $0x6f, %ebp je 0x58fcc cmpl $0x7b, %ebp jne 0x59790 movq %r15, %rdi movl $0x1, %esi callq 0x475fa movq %rax, %r12 cmpl $0x1ad, %ebp # imm = 0x1AD sete %al cmpl $0x192, %ebp # imm = 0x192 sete %cl orb %al, %cl movzbl %cl, %esi movq %rbx, %rdi callq 0x445a8 movq %rax, %rdi callq 0x445fe movl %eax, %r13d movq %r12, %rdi movl %eax, %esi callq 0x47578 testb %al, %al je 0x59790 leaq 0x8(%rsp), %r12 movq %r12, %rdi callq 0x44548 movq %r12, %rdi movl %ebp, %esi callq 0x4459a cmpl $0x1ad, %ebp # imm = 0x1AD je 0x58dc4 movl $0x2, %r12d cmpl $0x192, %ebp # imm = 0x192 jne 0x58de1 movq %rbx, %rdi xorl %esi, %esi callq 0x445a8 leaq 0x8(%rsp), %rdi movq %rax, %rsi callq 0x445bb movl $0x3, %r12d movq %r15, %rdi movl $0x12, %esi callq 0x475fa movq %r15, %rdi movl %r13d, %esi movl $0x9, %edx movq %rax, %rcx callq 0x474c7 leaq 0x8(%rsp), %rdi movl %eax, %esi callq 0x44631 movq %rbx, %rdi callq 0x445b6 cmpl %eax, %r12d jae 0x58e45 leaq 0x8(%rsp), %r13 movq %rbx, %rdi movl %r12d, %esi callq 0x445a8 movq %r13, %rdi movq %rax, %rsi callq 0x445bb incl %r12d movq %rbx, %rdi callq 0x445b6 cmpl %eax, %r12d jb 0x58e1f leaq 0x8(%rsp), %rdi movq %r14, %rsi movq %r15, %rdx callq 0x59804 jmp 0x5972c cmpl $0x1ba, %ebp # imm = 0x1BA je 0x591cd cmpl $0x4e0, %ebp # imm = 0x4E0 jne 0x59790 movq %rbx, %rdi xorl %esi, %esi callq 0x445a8 movq %rax, %rdi callq 0x445fe cmpl $0xc, %eax jne 0x59790 leaq 0x7bfac(%rip), %rsi # 0xd4e40 movq %r14, %rdi callq 0x44686 movq %rbx, %rdi movl $0x1b2, %esi # imm = 0x1B2 callq 0x4459e movq %rbx, %rdi movl $0x2, %esi movq %r14, %rdx callq 0x5c6c7 leaq 0x86540(%rip), %rsi # 0xdf400 movq %r14, %rdi callq 0x44686 movq %rbx, %rdi movl $0x4, %esi jmp 0x591b4 cmpl $0xe2, %ebp je 0x59300 cmpl $0xe3, %ebp jne 0x59790 movq %rbx, %rdi xorl %esi, %esi callq 0x445a8 movq %rax, %r13 movq %rbx, %rdi movl $0x1, %esi callq 0x445a8 movq %rax, %r12 movq %rbx, %rdi movl $0x2, %esi callq 0x445a8 movq %rax, %r15 movq %rbx, %rdi movl $0x3, %esi callq 0x445a8 movq %rax, %rdi callq 0x44606 andl $0x7, %eax decl %eax cmpl $0x4, %eax ja 0x5954d movl %eax, %eax leaq 0x12999a(%rip), %rcx # 0x1828e0 movq (%rcx,%rax,8), %rsi jmp 0x59554 cmpl $0x921, %ebp # imm = 0x921 je 0x58fcc cmpl $0x941, %ebp # imm = 0x941 jne 0x59790 movq %rbx, %rdi xorl %esi, %esi callq 0x445a8 movq %rax, %rdi callq 0x445fe cmpl $0xc, %eax jne 0x59790 movq %rbx, %rdi callq 0x445b6 cmpl $0x6, %eax jb 0x59790 leaq 0x8b2a5(%rip), %rsi # 0xe423b movq %r14, %rdi callq 0x44686 movq %rbx, %rdi movl $0x1a9, %esi # imm = 0x1A9 callq 0x4459e movq %rbx, %rdi movl $0x2, %esi movq %r14, %rdx callq 0x5c6c7 cmpl $0x941, %ebp # imm = 0x941 jne 0x58eb9 jmp 0x5906e movq %rbx, %rdi xorl %esi, %esi callq 0x445a8 movq %rax, %rdi callq 0x44606 cmpq $0x5, %rax ja 0x59790 leaq 0x75711(%rip), %rcx # 0xce700 movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax movl $0x1ab, %r15d # imm = 0x1AB leaq 0x8a4d3(%rip), %rsi # 0xe34d8 jmp 0x597b9 movq %rbx, %rdi xorl %esi, %esi callq 0x445a8 movq %rax, %rdi callq 0x445fe cmpl $0xc, %eax jne 0x59790 movq %rbx, %rdi callq 0x445b6 cmpl $0x6, %eax jb 0x59790 leaq 0x7bdfe(%rip), %rsi # 0xd4e3b movq %r14, %rdi callq 0x44686 movq %rbx, %rdi movl $0x1aa, %esi # imm = 0x1AA callq 0x4459e movq %rbx, %rdi movl $0x2, %esi movq %r14, %rdx callq 0x5c6c7 cmpl $0xa24, %ebp # imm = 0xA24 jne 0x58eb9 leaq 0x7bdc2(%rip), %rsi # 0xd4e37 movq %r14, %rdi callq 0x44686 jmp 0x58eb9 movq %rbx, %rdi xorl %esi, %esi callq 0x445a8 movq %rax, %rdi callq 0x445fe movl %eax, %ebp movq %rbx, %rdi callq 0x445b6 movb $0x1, %r12b cmpl $0x4, %eax jb 0x590d7 movl $0x3, %r15d movq %rbx, %rdi movl %r15d, %esi callq 0x445a8 movq %rax, %rdi callq 0x445fe cmpl %ebp, %eax setne %al andb %al, %r12b incl %r15d movq %rbx, %rdi callq 0x445b6 cmpl %eax, %r15d jb 0x590ac leaq 0x7bd67(%rip), %rsi # 0xd4e45 movq %r14, %rdi callq 0x44686 movq %rbx, %rdi movl $0x39, %esi callq 0x4459e movq %rbx, %rdi movl $0x1, %esi movq %r14, %rdx callq 0x5c6c7 leaq 0x862f6(%rip), %rsi # 0xdf400 movq %r14, %rdi callq 0x44686 movq 0x320(%rbx), %rax movl %ebp, %edi callq *0x80(%rax) movq %r14, %rdi movq %rax, %rsi callq 0x44686 movq 0x320(%rbx), %rax cmpl $0x0, 0x68(%rax) je 0x59182 movq 0x310(%rbx), %rax movq 0xe8(%rax), %rax movzbl 0x50(%rax), %ecx leaq (%rcx,%rcx,4), %rcx movl $0x1, 0x64(%rax,%rcx,8) movq 0x310(%rbx), %rax movq 0xe8(%rax), %rax movzbl 0x50(%rax), %ecx leaq (%rcx,%rcx,4), %rcx movl %ebp, 0x68(%rax,%rcx,8) movq 0x310(%rbx), %rax movq 0xe8(%rax), %rax incb 0x50(%rax) testb %r12b, %r12b je 0x5919d movb $0x1, 0x32e(%rbx) leaq 0x84cd8(%rip), %rsi # 0xdde6d movq %r14, %rdi callq 0x44686 leaq 0x7be9e(%rip), %rsi # 0xd5042 movq %r14, %rdi callq 0x44686 movq %rbx, %rdi movl $0x3, %esi movq %r14, %rdx addq $0x338, %rsp # imm = 0x338 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0x5c832 movq %rbx, %rdi movl $0x2, %esi callq 0x445a8 movq %rax, %rdi callq 0x445fe cmpl $0xc, %eax jne 0x59790 movq %rbx, %rdi movl $0x3, %esi callq 0x445a8 movq %rax, %rdi callq 0x44606 cmpq $-0x4, %rax jne 0x59790 leaq 0x7bc2a(%rip), %rsi # 0xd4e3b movq %r14, %rdi callq 0x44686 movq %rbx, %rdi movl $0x1aa, %esi # imm = 0x1AA callq 0x4459e movq %rbx, %rdi movl $0x4, %esi movq %r14, %rdx callq 0x5c6c7 leaq 0x7bd36(%rip), %rsi # 0xd4f73 movq %r14, %rdi callq 0x44686 movq 0x320(%rbx), %r15 movq %rbx, %rdi movl $0x1, %esi callq 0x445a8 movq %rax, %rdi callq 0x445fe movl %eax, %edi callq *0x80(%r15) movq %r14, %rdi movq %rax, %rsi callq 0x44686 movq 0x320(%rbx), %rax cmpl $0x0, 0x68(%rax) je 0x592e0 movq 0x310(%rbx), %rax movq 0xe8(%rax), %rax movzbl 0x50(%rax), %ecx leaq (%rcx,%rcx,4), %rcx movl $0x1, 0x64(%rax,%rcx,8) movq %rbx, %rdi movl $0x1, %esi callq 0x445a8 movq %rax, %rdi callq 0x445fe movq 0x310(%rbx), %rcx movq 0xe8(%rcx), %rcx movzbl 0x50(%rcx), %edx leaq (%rdx,%rdx,4), %rdx movl %eax, 0x68(%rcx,%rdx,8) movq 0x310(%rbx), %rax movq 0xe8(%rax), %rax incb 0x50(%rax) leaq 0xedc41(%rip), %rsi # 0x146f28 movq %r14, %rdi addq $0x338, %rsp # imm = 0x338 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0x44686 movq %rbx, %rdi xorl %esi, %esi callq 0x445a8 movq %rax, %r13 movq %rbx, %rdi movl $0x1, %esi callq 0x445a8 movq %rax, %r12 movq %rbx, %rdi movl $0x2, %esi callq 0x445a8 movq %rax, %r15 movq %rax, %rdi callq 0x44606 andl $0x7, %eax decl %eax cmpl $0x4, %eax ja 0x5934e movl %eax, %eax leaq 0x129598(%rip), %rcx # 0x1828e0 movq (%rcx,%rax,8), %rsi jmp 0x59355 leaq 0xedc40(%rip), %rsi # 0x146f95 movq %r14, %rdi callq 0x44686 movq %rbx, %rdi movl $0x5, %esi movq %r14, %rdx callq 0x5c7e1 movq %rbx, %rdi movl $0x3, %esi movq %r14, %rdx callq 0x5c6c7 leaq 0x8607c(%rip), %rsi # 0xdf400 movq %r14, %rdi callq 0x44686 movq 0x320(%rbx), %rbp movq %r13, %rdi callq 0x445fe movl %eax, %edi callq *0x80(%rbp) movq %r14, %rdi movq %rax, %rsi callq 0x44686 movq 0x320(%rbx), %rax cmpl $0x0, 0x68(%rax) je 0x5940c movq 0x310(%rbx), %rax movq 0xe8(%rax), %rax movzbl 0x50(%rax), %ecx leaq (%rcx,%rcx,4), %rcx movl $0x1, 0x64(%rax,%rcx,8) movq %r13, %rdi callq 0x445fe movq 0x310(%rbx), %rcx movq 0xe8(%rcx), %rcx movzbl 0x50(%rcx), %edx leaq (%rdx,%rdx,4), %rdx movl %eax, 0x68(%rcx,%rdx,8) movq 0x310(%rbx), %rax movq 0xe8(%rax), %rax incb 0x50(%rax) leaq 0x7bc2f(%rip), %rsi # 0xd5042 movq %r14, %rdi callq 0x44686 movq 0x320(%rbx), %r13 movq %r12, %rdi callq 0x445fe movl %eax, %edi callq *0x80(%r13) movq %r14, %rdi movq %rax, %rsi callq 0x44686 movq 0x320(%rbx), %rax cmpl $0x0, 0x68(%rax) je 0x5949c movq 0x310(%rbx), %rax movq 0xe8(%rax), %rax movzbl 0x50(%rax), %ecx leaq (%rcx,%rcx,4), %rcx movl $0x1, 0x64(%rax,%rcx,8) movq %r12, %rdi callq 0x445fe movq 0x310(%rbx), %rcx movq 0xe8(%rcx), %rcx movzbl 0x50(%rcx), %edx leaq (%rdx,%rdx,4), %rdx movl %eax, 0x68(%rcx,%rdx,8) movq 0x310(%rbx), %rax movq 0xe8(%rax), %rax incb 0x50(%rax) movq %r15, %rdi callq 0x44606 andl $0x7, %eax cmpl $0x5, %eax je 0x5972c leaq 0x7bb8b(%rip), %rsi # 0xd5042 movq %r14, %rdi callq 0x44686 movq %r15, %rdi callq 0x44606 movl %eax, %ecx shrl $0x3, %ecx cmpl $0x8, %eax movl $0x20, %ebp cmovael %ecx, %ebp cmpl $0xa, %ebp leaq 0x7bc55(%rip), %rax # 0xd5136 leaq 0x7bc56(%rip), %rsi # 0xd513e cmovaeq %rax, %rsi movq %r14, %rdi movl %ebp, %edx xorl %eax, %eax callq 0x446cd movq 0x320(%rbx), %rax cmpl $0x0, 0x68(%rax) je 0x5972c movq %r15, %rdi callq 0x44606 andl $0x7, %eax movq 0x310(%rbx), %rcx movq 0xe8(%rcx), %rcx movzbl 0x50(%rcx), %edx leaq (%rdx,%rdx,4), %rdx movl %eax, 0x34(%rcx,%rdx,8) movq 0x310(%rbx), %rax movq 0xe8(%rax), %rax movzbl 0x50(%rax), %ecx leaq (%rcx,%rcx,4), %rcx movl %ebp, 0x38(%rax,%rcx,8) jmp 0x5972c leaq 0xeda41(%rip), %rsi # 0x146f95 movq %r14, %rdi callq 0x44686 movq %rbx, %rdi movl $0x6, %esi movq %r14, %rdx callq 0x5c7e1 movq %rbx, %rdi movl $0x4, %esi movq %r14, %rdx callq 0x5c6c7 leaq 0x85e7d(%rip), %rsi # 0xdf400 movq %r14, %rdi callq 0x44686 movq 0x320(%rbx), %rbp movq %r13, %rdi callq 0x445fe movl %eax, %edi callq *0x80(%rbp) movq %r14, %rdi movq %rax, %rsi callq 0x44686 movq 0x320(%rbx), %rax cmpl $0x0, 0x68(%rax) je 0x5960b movq 0x310(%rbx), %rax movq 0xe8(%rax), %rax movzbl 0x50(%rax), %ecx leaq (%rcx,%rcx,4), %rcx movl $0x1, 0x64(%rax,%rcx,8) movq %r13, %rdi callq 0x445fe movq 0x310(%rbx), %rcx movq 0xe8(%rcx), %rcx movzbl 0x50(%rcx), %edx leaq (%rdx,%rdx,4), %rdx movl %eax, 0x68(%rcx,%rdx,8) movq 0x310(%rbx), %rax movq 0xe8(%rax), %rax incb 0x50(%rax) leaq 0x7ba30(%rip), %rsi # 0xd5042 movq %r14, %rdi callq 0x44686 movq 0x320(%rbx), %r13 movq %r12, %rdi callq 0x445fe movl %eax, %edi callq *0x80(%r13) movq %r14, %rdi movq %rax, %rsi callq 0x44686 movq 0x320(%rbx), %rax cmpl $0x0, 0x68(%rax) je 0x5969b movq 0x310(%rbx), %rax movq 0xe8(%rax), %rax movzbl 0x50(%rax), %ecx leaq (%rcx,%rcx,4), %rcx movl $0x1, 0x64(%rax,%rcx,8) movq %r12, %rdi callq 0x445fe movq 0x310(%rbx), %rcx movq 0xe8(%rcx), %rcx movzbl 0x50(%rcx), %edx leaq (%rdx,%rdx,4), %rdx movl %eax, 0x68(%rcx,%rdx,8) movq 0x310(%rbx), %rax movq 0xe8(%rax), %rax incb 0x50(%rax) leaq 0x7b9a0(%rip), %rsi # 0xd5042 movq %r14, %rdi callq 0x44686 movq 0x320(%rbx), %r12 movq %r15, %rdi callq 0x445fe movl %eax, %edi callq *0x80(%r12) movq %r14, %rdi movq %rax, %rsi callq 0x44686 movq 0x320(%rbx), %rax cmpl $0x0, 0x68(%rax) je 0x5972c movq 0x310(%rbx), %rax movq 0xe8(%rax), %rax movzbl 0x50(%rax), %ecx leaq (%rcx,%rcx,4), %rcx movl $0x1, 0x64(%rax,%rcx,8) movq %r15, %rdi callq 0x445fe movq 0x310(%rbx), %rcx movq 0xe8(%rcx), %rcx movzbl 0x50(%rcx), %edx leaq (%rdx,%rdx,4), %rdx movl %eax, 0x68(%rcx,%rdx,8) movq 0x310(%rbx), %rax movq 0xe8(%rax), %rax incb 0x50(%rax) addq $0x338, %rsp # imm = 0x338 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movl $0x1af, %r15d # imm = 0x1AF leaq 0x7b6e3(%rip), %rsi # 0xd4e2e jmp 0x597b9 movl $0x1ad, %r15d # imm = 0x1AD leaq 0x7b6cc(%rip), %rsi # 0xd4e26 jmp 0x597b9 movl $0x1ae, %r15d # imm = 0x1AE leaq 0x7b6c1(%rip), %rsi # 0xd4e2a jmp 0x597b9 movl $0x1ac, %r15d # imm = 0x1AC leaq 0x7b6a8(%rip), %rsi # 0xd4e20 jmp 0x597b9 movq 0x320(%rbx), %rax movl 0x4(%rax), %edi callq 0x477b0 btq $0x2b, %rax jb 0x597ac movq %rbx, %rdi movq %r14, %rsi movq %r15, %rdx addq $0x338, %rsp # imm = 0x338 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0x59804 movl $0x1b0, %r15d # imm = 0x1B0 leaq 0x7b679(%rip), %rsi # 0xd4e32 movq %r14, %rdi callq 0x44686 movq %rbx, %rdi movl $0x1, %esi movq %r14, %rdx callq 0x5c6c7 cmpl $0x921, %ebp # imm = 0x921 jne 0x597e8 leaq 0x7b657(%rip), %rsi # 0xd4e37 movq %r14, %rdi callq 0x44686 movq %rbx, %rdi movl %r15d, %esi addq $0x338, %rsp # imm = 0x338 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0x4459e
/sidneyp[P]capstone-tricore/arch/ARM/ARMInstPrinter.c
printSBitModifierOperand
static void printSBitModifierOperand(MCInst *MI, unsigned OpNum, SStream *O) { if (MCOperand_getReg(MCInst_getOperand(MI, OpNum))) { //assert(MCOperand_getReg(MCInst_getOperand(MI, OpNum)) == ARM_CPSR && // "Expect ARM CPSR register!"); SStream_concat0(O, "s"); if (MI->csh->detail) MI->flat_insn->detail->arm.update_flags = true; } }
pushq %r14 pushq %rbx pushq %rax movq %rdx, %r14 movq %rdi, %rbx callq 0x445a8 movq %rax, %rdi callq 0x445fe testl %eax, %eax je 0x5c82a leaq 0x812e2(%rip), %rsi # 0xddae5 movq %r14, %rdi callq 0x44686 movq 0x320(%rbx), %rax cmpl $0x0, 0x68(%rax) je 0x5c82a movq 0x310(%rbx), %rax movq 0xe8(%rax), %rax movb $0x1, 0x48(%rax) addq $0x8, %rsp popq %rbx popq %r14 retq
/sidneyp[P]capstone-tricore/arch/ARM/ARMInstPrinter.c
printAddrMode2Operand
static void printAddrMode2Operand(MCInst *MI, unsigned Op, SStream *O) { MCOperand *MO1 = MCInst_getOperand(MI, Op); if (!MCOperand_isReg(MO1)) { // FIXME: This is for CP entries, but isn't right. printOperand(MI, Op, O); return; } printAM2PreOrOffsetIndexOp(MI, Op, O); }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rdx, %r14 movl %esi, %r15d movq %rdi, %rbx callq 0x445a8 movq %rax, %rdi callq 0x445e6 testb %al, %al je 0x5d498 movq %rbx, %rdi movl %r15d, %esi callq 0x445a8 movq %rax, %rbp leal 0x1(%r15), %esi movq %rbx, %rdi callq 0x445a8 movq %rax, %r13 addl $0x2, %r15d movq %rbx, %rdi movl %r15d, %esi callq 0x445a8 movq %rax, (%rsp) movq %rax, %rdi callq 0x44606 movq %rax, %r12 leaq 0x80a77(%rip), %rsi # 0xddd83 movq %r14, %rdi callq 0x44686 movq %rbx, %rdi movl $0x1, %esi callq 0x606ad movq 0x320(%rbx), %r15 movq %rbp, %rdi callq 0x445fe movl %eax, %edi callq *0x80(%r15) movq %r14, %rdi movq %rax, %rsi callq 0x44686 movq 0x320(%rbx), %rax cmpl $0x0, 0x68(%rax) je 0x5d373 movq %rbp, %rdi callq 0x445fe movq 0x310(%rbx), %rcx movq 0xe8(%rcx), %rcx movzbl 0x50(%rcx), %edx leaq (%rdx,%rdx,4), %rdx movl %eax, 0x68(%rcx,%rdx,8) movq %r13, %rdi callq 0x445fe testl %eax, %eax je 0x5d4b4 shrl $0xc, %r12d andl $0x1, %r12d leaq 0x77cb0(%rip), %rsi # 0xd5042 movq %r14, %rdi callq 0x44686 testl %r12d, %r12d leaq 0xe9bf1(%rip), %rax # 0x146f95 leaq 0xf27f3(%rip), %rsi # 0x14fb9e cmoveq %rax, %rsi movq %r14, %rdi callq 0x44686 movq 0x320(%rbx), %r15 movq %r13, %rdi callq 0x445fe movl %eax, %edi callq *0x80(%r15) movq %r14, %rdi movq %rax, %rsi callq 0x44686 movq 0x320(%rbx), %rax cmpl $0x0, 0x68(%rax) je 0x5d424 movq %r13, %rdi callq 0x445fe movq 0x310(%rbx), %rcx movq 0xe8(%rcx), %rcx movzbl 0x50(%rcx), %edx leaq (%rdx,%rdx,4), %rdx movl %eax, 0x6c(%rcx,%rdx,8) movq 0x310(%rbx), %rax movq 0xe8(%rax), %rax movzbl 0x50(%rax), %ecx leaq (%rcx,%rcx,4), %rcx movb %r12b, 0x78(%rax,%rcx,8) movq (%rsp), %r15 movq %r15, %rdi callq 0x44606 movq %rax, %r12 shrl $0xd, %r12d andl $0x7, %r12d movq %r15, %rdi callq 0x44606 andl $0xfff, %eax # imm = 0xFFF movq %rbx, %rdi movq %r14, %rsi movl %r12d, %edx movl %eax, %ecx callq 0x62097 leaq 0x8151b(%rip), %rsi # 0xde97a movq %r14, %rdi callq 0x44686 movq 0x320(%rbx), %rax cmpl $0x3, 0x68(%rax) jne 0x5d489 movb $0x0, 0x70(%rax) movq 0x310(%rbx), %rax movq 0xe8(%rax), %rax incb 0x50(%rax) addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rbx, %rdi movl %r15d, %esi movq %r14, %rdx addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0x5ca57 movq (%rsp), %r15 movq %r15, %rdi callq 0x44606 movq %rax, %r12 andl $0xfff, %r12d # imm = 0xFFF je 0x5d458 movq %r15, %rdi callq 0x44606 movq %rax, %r13 shrl $0xc, %r13d leaq 0x77b60(%rip), %rsi # 0xd5042 movq %r14, %rdi callq 0x44686 andl $0x1, %r13d leaq 0xe9aa0(%rip), %rax # 0x146f95 leaq 0xf26a2(%rip), %rdx # 0x14fb9e cmoveq %rax, %rdx cmpl $0xa, %r12d leaq 0x77c3e(%rip), %rax # 0xd5149 leaq 0x77c41(%rip), %rsi # 0xd5153 cmovaeq %rax, %rsi movq %r14, %rdi movl %r12d, %ecx xorl %eax, %eax callq 0x446cd movq 0x320(%rbx), %rax cmpl $0x0, 0x68(%rax) je 0x5d458 movq %r15, %rdi callq 0x44606 xorl %ecx, %ecx btl $0xc, %eax setae %cl movq 0x310(%rbx), %rax movq 0xe8(%rax), %rax movzbl 0x50(%rax), %edx leaq (%rdx,%rdx,4), %rdx movl %ecx, 0x5c(%rax,%rdx,8) movq 0x310(%rbx), %rax movq 0xe8(%rax), %rax movzbl 0x50(%rax), %ecx leaq (%rcx,%rcx,4), %rcx movl %r12d, 0x60(%rax,%rcx,8) movq 0x310(%rbx), %rax movq 0xe8(%rax), %rax movzbl 0x50(%rax), %ecx leaq (%rcx,%rcx,4), %rcx movb %r13b, 0x78(%rax,%rcx,8) jmp 0x5d458
/sidneyp[P]capstone-tricore/arch/ARM/ARMInstPrinter.c
printNEONModImmOperand
static void printNEONModImmOperand(MCInst *MI, unsigned OpNum, SStream *O) { unsigned EncodedImm = (unsigned int)MCOperand_getImm(MCInst_getOperand(MI, OpNum)); unsigned EltBits; uint64_t Val = ARM_AM_decodeNEONModImm(EncodedImm, &EltBits); if (Val > HEX_THRESHOLD) SStream_concat(O, "#0x%"PRIx64, Val); else SStream_concat(O, "#%"PRIu64, Val); if (MI->csh->detail) { MI->flat_insn->detail->arm.operands[MI->flat_insn->detail->arm.op_count].type = ARM_OP_IMM; MI->flat_insn->detail->arm.operands[MI->flat_insn->detail->arm.op_count].imm = (unsigned int)Val; MI->flat_insn->detail->arm.op_count++; } }
pushq %r15 pushq %r14 pushq %rbx movq %rsi, %r14 movq %rdi, %rbx movl $0x1, %esi callq 0x445a8 movq %rax, %rdi callq 0x44606 movl %eax, %edx shrl $0x8, %edx movl %edx, %ecx andl $0x1f, %ecx cmpl $0xe, %ecx jne 0x5e06d movzbl %al, %r15d jmp 0x5e09e movl %eax, %esi andl $0xc00, %esi # imm = 0xC00 cmpl $0x800, %esi # imm = 0x800 jne 0x5e089 movzbl %al, %r15d shll $0x2, %edx andb $0x8, %dl jmp 0x5e099 btl $0xb, %eax jb 0x5e0ad movzbl %al, %r15d shll $0x2, %edx andb $0x18, %dl movl %edx, %ecx shlq %cl, %r15 cmpq $0xa, %r15 jb 0x5e113 leaq 0x6455b(%rip), %rsi # 0xc2606 jmp 0x5e11a movl %eax, %esi andl $0xe00, %esi # imm = 0xE00 cmpl $0xc00, %esi # imm = 0xC00 jne 0x5e0de movzbl %al, %eax shll $0x3, %edx andl $0x8, %edx leal 0x8(%rdx), %ecx shll %cl, %eax xorb $0x8, %dl movl $0xffff, %r15d # imm = 0xFFFF movl %edx, %ecx shrl %cl, %r15d orl %eax, %r15d jmp 0x5e09e cmpl $0x1e, %ecx jne 0x5e110 xorl %ecx, %ecx xorl %edx, %edx xorl %r15d, %r15d movl $0xff, %esi shlq %cl, %rsi btl %edx, %eax movl $0x0, %edi cmovbq %rsi, %rdi orq %rdi, %r15 incq %rdx addq $0x8, %rcx cmpq $0x8, %rdx jne 0x5e0ea jmp 0x5e09e xorl %r15d, %r15d leaq 0x644f3(%rip), %rsi # 0xc260d movq %r14, %rdi movq %r15, %rdx xorl %eax, %eax callq 0x446cd movq 0x320(%rbx), %rax cmpl $0x0, 0x68(%rax) je 0x5e17e movq 0x310(%rbx), %rax movq 0xe8(%rax), %rax movzbl 0x50(%rax), %ecx leaq (%rcx,%rcx,4), %rcx movl $0x2, 0x64(%rax,%rcx,8) movq 0x310(%rbx), %rax movq 0xe8(%rax), %rax movzbl 0x50(%rax), %ecx leaq (%rcx,%rcx,4), %rcx movl %r15d, 0x68(%rax,%rcx,8) movq 0x310(%rbx), %rax movq 0xe8(%rax), %rax incb 0x50(%rax) popq %rbx popq %r14 popq %r15 retq
/sidneyp[P]capstone-tricore/arch/ARM/ARMInstPrinter.c
printVectorListTwoAllLanes
static void printVectorListTwoAllLanes(MCInst *MI, unsigned OpNum, SStream *O, MCRegisterInfo *MRI) { unsigned Reg = MCOperand_getReg(MCInst_getOperand(MI, OpNum)); unsigned Reg0 = MCRegisterInfo_getSubReg(MRI, Reg, ARM_dsub_0); unsigned Reg1 = MCRegisterInfo_getSubReg(MRI, Reg, ARM_dsub_1); SStream_concat0(O, "{"); printRegName(MI->csh, O, Reg0); if (MI->csh->detail) { MI->flat_insn->detail->arm.operands[MI->flat_insn->detail->arm.op_count].type = ARM_OP_REG; MI->flat_insn->detail->arm.operands[MI->flat_insn->detail->arm.op_count].reg = Reg0; MI->flat_insn->detail->arm.op_count++; } SStream_concat0(O, "[], "); printRegName(MI->csh, O, Reg1); if (MI->csh->detail) { MI->flat_insn->detail->arm.operands[MI->flat_insn->detail->arm.op_count].type = ARM_OP_REG; MI->flat_insn->detail->arm.operands[MI->flat_insn->detail->arm.op_count].reg = Reg1; MI->flat_insn->detail->arm.op_count++; } SStream_concat0(O, "[]}"); }
pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx movq %rdx, %r12 movq %rsi, %rbx movq %rdi, %r14 xorl %esi, %esi callq 0x445a8 movq %rax, %rdi callq 0x445fe movl %eax, %ebp movq %r12, %rdi movl %eax, %esi movl $0x1, %edx callq 0x4759a movl %eax, %r15d movq %r12, %rdi movl %ebp, %esi movl $0x2, %edx callq 0x4759a movl %eax, %ebp leaq 0x76c8a(%rip), %rsi # 0xd4f74 movq %rbx, %rdi callq 0x44686 movq 0x320(%r14), %rax movl %r15d, %edi callq *0x80(%rax) movq %rbx, %rdi movq %rax, %rsi callq 0x44686 movq 0x320(%r14), %rax cmpl $0x0, 0x68(%rax) je 0x5e364 movq 0x310(%r14), %rax movq 0xe8(%rax), %rax movzbl 0x50(%rax), %ecx leaq (%rcx,%rcx,4), %rcx movl $0x1, 0x64(%rax,%rcx,8) movq 0x310(%r14), %rax movq 0xe8(%rax), %rax movzbl 0x50(%rax), %ecx leaq (%rcx,%rcx,4), %rcx movl %r15d, 0x68(%rax,%rcx,8) movq 0x310(%r14), %rax movq 0xe8(%rax), %rax incb 0x50(%rax) leaq 0x76cf2(%rip), %rsi # 0xd505d movq %rbx, %rdi callq 0x44686 movq 0x320(%r14), %rax movl %ebp, %edi callq *0x80(%rax) movq %rbx, %rdi movq %rax, %rsi callq 0x44686 movq 0x320(%r14), %rax cmpl $0x0, 0x68(%rax) je 0x5e3e3 movq 0x310(%r14), %rax movq 0xe8(%rax), %rax movzbl 0x50(%rax), %ecx leaq (%rcx,%rcx,4), %rcx movl $0x1, 0x64(%rax,%rcx,8) movq 0x310(%r14), %rax movq 0xe8(%rax), %rax movzbl 0x50(%rax), %ecx leaq (%rcx,%rcx,4), %rcx movl %ebp, 0x68(%rax,%rcx,8) movq 0x310(%r14), %rax movq 0xe8(%rax), %rax incb 0x50(%rax) leaq 0x76e07(%rip), %rsi # 0xd51f1 movq %rbx, %rdi popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp jmp 0x44686
/sidneyp[P]capstone-tricore/arch/ARM/ARMInstPrinter.c