// File: /workspace/github_c_makefile_star2_O0/OnionIoT[P]lv_example/lvgl/src/lv_draw/lv_draw_line.c
// Function: line_draw_hor
static void line_draw_hor(line_draw_t * main_line, const lv_area_t * mask, const lv_style_t * style, lv_opa_t opa_scale)
{
    lv_coord_t width      = style->line.width - 1;
    lv_coord_t width_half = width >> 1;
    lv_coord_t width_1    = width & 0x1;
    lv_opa_t opa = opa_scale == LV_OPA_COVER ? style->line.opa : (uint16_t)((uint16_t)style->line.opa * opa_scale) >> 8;

    lv_area_t act_area;
    act_area.x1 = main_line->p1.x;
    act_area.x2 = main_line->p2.x;
    act_area.y1 = main_line->p1.y - width_half - width_1;
    act_area.y2 = main_line->p2.y + width_half;

    lv_area_t draw_area;
    draw_area.x1 = LV_MATH_MIN(act_area.x1, act_area.x2);
    draw_area.x2 = LV_MATH_MAX(act_area.x1, act_area.x2);
    draw_area.y1 = LV_MATH_MIN(act_area.y1, act_area.y2);
    draw_area.y2 = LV_MATH_MAX(act_area.y1, act_area.y2);
    lv_draw_fill(&draw_area, mask, style->line.color, opa);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movb %cl, %al
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movb %al, -0x19(%rbp)
movq -0x18(%rbp), %rax
movswl 0x3e(%rax), %eax
subl $0x1, %eax
movw %ax, -0x1c(%rbp)
movswl -0x1c(%rbp), %eax
sarl %eax
movw %ax, -0x1e(%rbp)
movswl -0x1c(%rbp), %eax
andl $0x1, %eax
movw %ax, -0x20(%rbp)
movzbl -0x19(%rbp), %eax
cmpl $0xff, %eax
jne 0x60415
movq -0x18(%rbp), %rax
movzbl 0x40(%rax), %eax
movl %eax, -0x38(%rbp)
jmp 0x60430
movq -0x18(%rbp), %rax
movzbl 0x40(%rax), %eax
movzwl %ax, %eax
movzbl -0x19(%rbp), %ecx
imull %ecx, %eax
movzwl %ax, %eax
sarl $0x8, %eax
movl %eax, -0x38(%rbp)
movl -0x38(%rbp), %eax
movb %al, -0x21(%rbp)
movq -0x8(%rbp), %rax
movw (%rax), %ax
movw %ax, -0x2a(%rbp)
movq -0x8(%rbp), %rax
movw 0x4(%rax), %ax
movw %ax, -0x26(%rbp)
movq -0x8(%rbp), %rax
movswl 0x2(%rax), %eax
movswl -0x1e(%rbp), %ecx
subl %ecx, %eax
movswl -0x20(%rbp), %ecx
subl %ecx, %eax
movw %ax, -0x28(%rbp)
movq -0x8(%rbp), %rax
movswl 0x6(%rax), %eax
movswl -0x1e(%rbp), %ecx
addl %ecx, %eax
movw %ax, -0x24(%rbp)
movswl -0x2a(%rbp), %eax
movswl -0x26(%rbp), %ecx
cmpl %ecx, %eax
jge 0x6048c
movswl -0x2a(%rbp), %eax
movl %eax, -0x3c(%rbp)
jmp 0x60493
movswl -0x26(%rbp), %eax
movl %eax, -0x3c(%rbp)
movl -0x3c(%rbp), %eax
movw %ax, -0x32(%rbp)
movswl -0x2a(%rbp), %eax
movswl -0x26(%rbp), %ecx
cmpl %ecx, %eax
jle 0x604af
movswl -0x2a(%rbp), %eax
movl %eax, -0x40(%rbp)
jmp 0x604b6
movswl -0x26(%rbp), %eax
movl %eax, -0x40(%rbp)
movl -0x40(%rbp), %eax
movw %ax, -0x2e(%rbp)
movswl -0x28(%rbp), %eax
movswl -0x24(%rbp), %ecx
cmpl %ecx, %eax
jge 0x604d2
movswl -0x28(%rbp), %eax
movl %eax, -0x44(%rbp)
jmp 0x604d9
movswl -0x24(%rbp), %eax
movl %eax, -0x44(%rbp)
movl -0x44(%rbp), %eax
movw %ax, -0x30(%rbp)
movswl -0x28(%rbp), %eax
movswl -0x24(%rbp), %ecx
cmpl %ecx, %eax
jle 0x604f5
movswl -0x28(%rbp), %eax
movl %eax, -0x48(%rbp)
jmp 0x604fc
movswl -0x24(%rbp), %eax
movl %eax, -0x48(%rbp)
movl -0x48(%rbp), %eax
movw %ax, -0x2c(%rbp)
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rcx
movb -0x21(%rbp), %al
leaq -0x32(%rbp), %rdi
movzwl 0x3c(%rcx), %edx
movzbl %al, %ecx
callq 0x58ea0
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)