// File: /workspace/github_c_makefile_star2_O0/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_write_a_ln
STATIC void
_chart_write_a_ln(lxw_chart *self, lxw_chart_line *line)
{
    struct xml_attribute_list attributes;
    struct xml_attribute *attribute;
    float width_flt;
    uint32_t width_int;

    LXW_INIT_ATTRIBUTES();

    /* Round width to nearest 0.25, like Excel. */
    width_flt = (float) (uint32_t) ((line->width + 0.125) * 4.0F) / 4.0F;

    /* Convert to internal units. */
    width_int = (uint32_t) (0.5 + (12700.0 * width_flt));

    if (line->width > 0.0)
        LXW_PUSH_ATTRIBUTES_INT("w", width_int);

    if (line->none || line->color || line->dash_type) {
        lxw_xml_start_tag(self->file, "a:ln", &attributes);

        /* Write the line fill. */
        if (line->none) {
            /* Write the a:noFill element. */
            _chart_write_a_no_fill(self);
        }
        else if (line->color) {
            /* Write the a:solidFill element. */
            _chart_write_a_solid_fill(self, line->color, line->transparency);
        }

        /* Write the line/dash type. */
        if (line->dash_type) {
            /* Write the a:prstDash element. */
            _chart_write_a_prst_dash(self, line->dash_type);
        }

        lxw_xml_end_tag(self->file, "a:ln");
    }
    else {
        lxw_xml_empty_tag(self->file, "a:ln", &attributes);
    }

    LXW_FREE_ATTRIBUTES();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq $0x0, -0x20(%rbp)
leaq -0x20(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rax
movss 0x8(%rax), %xmm0
cvtss2sd %xmm0, %xmm0
movsd 0x43203(%rip), %xmm1    # 0x66308
addsd %xmm1, %xmm0
movsd 0x431ff(%rip), %xmm1    # 0x66310
mulsd %xmm1, %xmm0
cvttsd2si %xmm0, %rax
movl %eax, %eax
cvtsi2ss %rax, %xmm0
movss 0x431ff(%rip), %xmm1    # 0x66328
mulss %xmm1, %xmm0
movss %xmm0, -0x2c(%rbp)
movss -0x2c(%rbp), %xmm0
cvtss2sd %xmm0, %xmm0
movsd 0x431d5(%rip), %xmm1    # 0x66318
mulsd %xmm1, %xmm0
movsd 0x431d1(%rip), %xmm1    # 0x66320
addsd %xmm1, %xmm0
cvttsd2si %xmm0, %rax
movl %eax, -0x30(%rbp)
movq -0x10(%rbp), %rax
movss 0x8(%rax), %xmm0
cvtss2sd %xmm0, %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jbe 0x231b4
jmp 0x23173
movl -0x30(%rbp), %eax
movl %eax, %esi
leaq 0x48ff3(%rip), %rdi     # 0x6c172
callq 0xc1b0
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq $0x0, 0x1040(%rax)
movq -0x28(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movq -0x28(%rbp), %rax
addq $0x1040, %rax           # imm = 0x1040
movq %rax, -0x18(%rbp)
jmp 0x231b2
jmp 0x231b4
movq -0x10(%rbp), %rax
movzbl 0x4(%rax), %eax
cmpl $0x0, %eax
jne 0x231d7
movq -0x10(%rbp), %rax
cmpl $0x0, (%rax)
jne 0x231d7
movq -0x10(%rbp), %rax
movzbl 0xc(%rax), %eax
cmpl $0x0, %eax
je 0x23255
movq -0x8(%rbp), %rax
movq (%rax), %rdi
leaq 0x4468c(%rip), %rsi     # 0x67871
leaq -0x20(%rbp), %rdx
callq 0xc390
movq -0x10(%rbp), %rax
cmpb $0x0, 0x4(%rax)
je 0x23203
movq -0x8(%rbp), %rdi
callq 0x21ef0
jmp 0x23225
movq -0x10(%rbp), %rax
cmpl $0x0, (%rax)
je 0x23223
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movl (%rax), %esi
movq -0x10(%rbp), %rax
movzbl 0xd(%rax), %edx
callq 0x1b840
jmp 0x23225
movq -0x10(%rbp), %rax
cmpb $0x0, 0xc(%rax)
je 0x23240
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movzbl 0xc(%rax), %esi
callq 0x23360
movq -0x8(%rbp), %rax
movq (%rax), %rdi
leaq 0x44623(%rip), %rsi     # 0x67871
callq 0xc060
jmp 0x2326c
movq -0x8(%rbp), %rax
movq (%rax), %rdi
leaq 0x4460e(%rip), %rsi     # 0x67871
leaq -0x20(%rbp), %rdx
callq 0xcca0
jmp 0x2326e
jmp 0x23270
cmpq $0x0, -0x20(%rbp)
sete %al
xorb $-0x1, %al
testb $0x1, %al
jne 0x23280
jmp 0x232b2
movq -0x20(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rax
movq 0x1040(%rax), %rax
movq %rax, -0x20(%rbp)
cmpq $0x0, %rax
jne 0x232a5
leaq -0x20(%rbp), %rax
movq %rax, -0x18(%rbp)
jmp 0x232a7
movq -0x28(%rbp), %rdi
callq 0xc0d0
jmp 0x23270
jmp 0x232b4
addq $0x30, %rsp
popq %rbp
retq
nopw (%rax,%rax)