// File: /workspace/github_c_makefile_star2_O0/OnionIoT[P]lv_example/lvgl/src/lv_objx/lv_preload.c
// Function: lv_preload_design
static bool lv_preload_design(lv_obj_t * preload, const lv_area_t * mask, lv_design_mode_t mode)
{
    /*Return false if the object is not covers the mask_p area*/
    if(mode == LV_DESIGN_COVER_CHK) {
        return false;
    }
    /*Draw the object*/
    else if(mode == LV_DESIGN_DRAW_MAIN) {

        /*Draw a circle as background*/
        const lv_style_t * style = lv_arc_get_style(preload, LV_ARC_STYLE_MAIN);
        if(style->body.border.width > 0) {
            lv_coord_t r = (LV_MATH_MIN(lv_obj_get_width(preload), lv_obj_get_height(preload))) / 2;
            r -= LV_MATH_MIN(style->body.padding.left, style->body.padding.top);

            lv_coord_t x = preload->coords.x1 + lv_obj_get_width(preload) / 2;
            lv_coord_t y = preload->coords.y1 + lv_obj_get_height(preload) / 2;

            lv_style_t bg_style;
            lv_style_copy(&bg_style, &lv_style_plain);
            bg_style.body.opa          = LV_OPA_TRANSP;
            bg_style.body.radius       = LV_RADIUS_CIRCLE;
            bg_style.body.border.color = style->body.border.color;
            bg_style.body.border.width = style->body.border.width;

            lv_area_t bg_area;
            bg_area.x1 = x - r;
            bg_area.y1 = y - r;
            bg_area.x2 = x + r;
            bg_area.y2 = y + r;

            lv_draw_rect(&bg_area, mask, &bg_style, lv_obj_get_opa_scale(preload));
        }
        /*Draw the arc above the background circle */
        ancestor_design(preload, mask, mode);
    }
    /*Post draw when the children are drawn*/
    else if(mode == LV_DESIGN_DRAW_POST) {
    }

    return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movb %dl, %al
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movb %al, -0x19(%rbp)
movzbl -0x19(%rbp), %eax
cmpl $0x2, %eax
jne 0x17a3a
movb $0x0, -0x1(%rbp)
jmp 0x17c21
movzbl -0x19(%rbp), %eax
cmpl $0x0, %eax
jne 0x17c0e
movq -0x10(%rbp), %rdi
xorl %esi, %esi
callq 0xe7b0
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movswl 0xc(%rax), %eax
cmpl $0x0, %eax
jle 0x17bf7
movq -0x10(%rbp), %rdi
callq 0x8310
cwtl
movl %eax, -0x84(%rbp)
movq -0x10(%rbp), %rdi
callq 0x8350
movw %ax, %cx
movl -0x84(%rbp), %eax
movswl %cx, %ecx
cmpl %ecx, %eax
jge 0x17aa2
movq -0x10(%rbp), %rdi
callq 0x8310
cwtl
movl %eax, -0x88(%rbp)
jmp 0x17ab2
movq -0x10(%rbp), %rdi
callq 0x8350
cwtl
movl %eax, -0x88(%rbp)
movl -0x88(%rbp), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movw %ax, -0x2a(%rbp)
movq -0x28(%rbp), %rax
movswl 0x1a(%rax), %eax
movq -0x28(%rbp), %rcx
movswl 0x16(%rcx), %ecx
cmpl %ecx, %eax
jge 0x17ae8
movq -0x28(%rbp), %rax
movswl 0x1a(%rax), %eax
movl %eax, -0x8c(%rbp)
jmp 0x17af6
movq -0x28(%rbp), %rax
movswl 0x16(%rax), %eax
movl %eax, -0x8c(%rbp)
movl -0x8c(%rbp), %ecx
movswl -0x2a(%rbp), %eax
subl %ecx, %eax
movw %ax, -0x2a(%rbp)
movq -0x10(%rbp), %rax
movswl 0x20(%rax), %eax
movl %eax, -0xa0(%rbp)
movq -0x10(%rbp), %rdi
callq 0x8310
cwtl
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl -0xa0(%rbp), %eax
addl %ecx, %eax
movw %ax, -0x2c(%rbp)
movq -0x10(%rbp), %rax
movswl 0x22(%rax), %eax
movl %eax, -0x9c(%rbp)
movq -0x10(%rbp), %rdi
callq 0x8350
cwtl
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl -0x9c(%rbp), %eax
addl %ecx, %eax
movw %ax, -0x2e(%rbp)
leaq -0x78(%rbp), %rdi
leaq 0x7147b(%rip), %rsi     # 0x88fe8
callq 0xc550
movb $0x0, -0x70(%rbp)
movw $0x7c18, -0x72(%rbp)    # imm = 0x7C18
movq -0x28(%rbp), %rax
movw 0xa(%rax), %ax
movw %ax, -0x6e(%rbp)
movq -0x28(%rbp), %rax
movw 0xc(%rax), %ax
movw %ax, -0x6c(%rbp)
movswl -0x2c(%rbp), %eax
movswl -0x2a(%rbp), %ecx
subl %ecx, %eax
movw %ax, -0x80(%rbp)
movswl -0x2e(%rbp), %eax
movswl -0x2a(%rbp), %ecx
subl %ecx, %eax
movw %ax, -0x7e(%rbp)
movswl -0x2c(%rbp), %eax
movswl -0x2a(%rbp), %ecx
addl %ecx, %eax
movw %ax, -0x7c(%rbp)
movswl -0x2e(%rbp), %eax
movswl -0x2a(%rbp), %ecx
addl %ecx, %eax
movw %ax, -0x7a(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x10(%rbp), %rdi
callq 0xa710
movq -0x98(%rbp), %rsi
leaq -0x80(%rbp), %rdi
leaq -0x78(%rbp), %rdx
movzbl %al, %ecx
callq 0x5a9e0
movq 0x717da(%rip), %rax     # 0x893d8
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movzbl -0x19(%rbp), %edx
callq *%rax
jmp 0x17c1b
movzbl -0x19(%rbp), %eax
cmpl $0x1, %eax
jne 0x17c19
jmp 0x17c19
jmp 0x17c1b
jmp 0x17c1d
movb $0x1, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0xa0, %rsp
popq %rbp
retq
nop