// File: /workspace/github_c_makefile_star2_O0/OnionIoT[P]lv_example/lvgl/src/lv_draw/lv_draw_line.c
// Function: line_init
static void line_init(line_draw_t * line, const lv_point_t * p1, const lv_point_t * p2)
{
    line->p1.x = p1->x;
    line->p1.y = p1->y;
    line->p2.x = p2->x;
    line->p2.y = p2->y;

    line->dx  = LV_MATH_ABS(line->p2.x - line->p1.x);
    line->sx  = line->p1.x < line->p2.x ? 1 : -1;
    line->dy  = LV_MATH_ABS(line->p2.y - line->p1.y);
    line->sy  = line->p1.y < line->p2.y ? 1 : -1;
    line->err = (line->dx > line->dy ? line->dx : -line->dy) / 2;
    line->e2  = 0;
    line->hor = line->dx > line->dy ? true : false; /*Rather horizontal or vertical*/

    line->p_act.x = line->p1.x;
    line->p_act.y = line->p1.y;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x10(%rbp), %rax
movw (%rax), %cx
movq -0x8(%rbp), %rax
movw %cx, (%rax)
movq -0x10(%rbp), %rax
movw 0x2(%rax), %cx
movq -0x8(%rbp), %rax
movw %cx, 0x2(%rax)
movq -0x18(%rbp), %rax
movw (%rax), %cx
movq -0x8(%rbp), %rax
movw %cx, 0x4(%rax)
movq -0x18(%rbp), %rax
movw 0x2(%rax), %cx
movq -0x8(%rbp), %rax
movw %cx, 0x6(%rax)
movq -0x8(%rbp), %rax
movswl 0x4(%rax), %eax
movq -0x8(%rbp), %rcx
movswl (%rcx), %ecx
subl %ecx, %eax
cmpl $0x0, %eax
jle 0x60249
movq -0x8(%rbp), %rax
movswl 0x4(%rax), %eax
movq -0x8(%rbp), %rcx
movswl (%rcx), %ecx
subl %ecx, %eax
movl %eax, -0x1c(%rbp)
jmp 0x60261
movq -0x8(%rbp), %rax
movswl 0x4(%rax), %ecx
movq -0x8(%rbp), %rax
movswl (%rax), %eax
subl %eax, %ecx
xorl %eax, %eax
subl %ecx, %eax
movl %eax, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
movw %ax, %cx
movq -0x8(%rbp), %rax
movw %cx, 0xc(%rax)
movq -0x8(%rbp), %rax
movswl (%rax), %edx
movq -0x8(%rbp), %rax
movswl 0x4(%rax), %esi
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl $0x1, %ecx
cmpl %esi, %edx
cmovll %ecx, %eax
movw %ax, %cx
movq -0x8(%rbp), %rax
movw %cx, 0xe(%rax)
movq -0x8(%rbp), %rax
movswl 0x6(%rax), %eax
movq -0x8(%rbp), %rcx
movswl 0x2(%rcx), %ecx
subl %ecx, %eax
cmpl $0x0, %eax
jle 0x602c6
movq -0x8(%rbp), %rax
movswl 0x6(%rax), %eax
movq -0x8(%rbp), %rcx
movswl 0x2(%rcx), %ecx
subl %ecx, %eax
movl %eax, -0x20(%rbp)
jmp 0x602df
movq -0x8(%rbp), %rax
movswl 0x6(%rax), %ecx
movq -0x8(%rbp), %rax
movswl 0x2(%rax), %eax
subl %eax, %ecx
xorl %eax, %eax
subl %ecx, %eax
movl %eax, -0x20(%rbp)
movl -0x20(%rbp), %eax
movw %ax, %cx
movq -0x8(%rbp), %rax
movw %cx, 0x10(%rax)
movq -0x8(%rbp), %rax
movswl 0x2(%rax), %edx
movq -0x8(%rbp), %rax
movswl 0x6(%rax), %esi
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl $0x1, %ecx
cmpl %esi, %edx
cmovll %ecx, %eax
movw %ax, %cx
movq -0x8(%rbp), %rax
movw %cx, 0x12(%rax)
movq -0x8(%rbp), %rax
movswl 0xc(%rax), %eax
movq -0x8(%rbp), %rcx
movswl 0x10(%rcx), %ecx
cmpl %ecx, %eax
jle 0x60338
movq -0x8(%rbp), %rax
movswl 0xc(%rax), %eax
movl %eax, -0x24(%rbp)
jmp 0x60347
movq -0x8(%rbp), %rax
movswl 0x10(%rax), %ecx
xorl %eax, %eax
subl %ecx, %eax
movl %eax, -0x24(%rbp)
movl -0x24(%rbp), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movw %ax, %cx
movq -0x8(%rbp), %rax
movw %cx, 0x14(%rax)
movq -0x8(%rbp), %rax
movw $0x0, 0x16(%rax)
movq -0x8(%rbp), %rax
movswl 0xc(%rax), %edx
movq -0x8(%rbp), %rax
movswl 0x10(%rax), %esi
xorl %eax, %eax
movl $0x1, %ecx
cmpl %esi, %edx
cmovgl %ecx, %eax
cmpl $0x0, %eax
setne %cl
movq -0x8(%rbp), %rax
andb $0x1, %cl
movb %cl, 0x18(%rax)
movq -0x8(%rbp), %rax
movw (%rax), %cx
movq -0x8(%rbp), %rax
movw %cx, 0x8(%rax)
movq -0x8(%rbp), %rax
movw 0x2(%rax), %cx
movq -0x8(%rbp), %rax
movw %cx, 0xa(%rax)
popq %rbp
retq
nopw %cs:(%rax,%rax)