// File: /workspace/github_c_makefile_star2_O0/OnionIoT[P]lv_example/lvgl/src/lv_objx/lv_roller.c
// Function: draw_bg
static void draw_bg(lv_obj_t * roller, const lv_area_t * mask)
{
    const lv_style_t * style = lv_roller_get_style(roller, LV_ROLLER_STYLE_BG);
    lv_area_t half_mask;
    lv_area_t half_roller;
    lv_coord_t h = lv_obj_get_height(roller);
    bool union_ok;
    lv_area_copy(&half_roller, &roller->coords);

    half_roller.x1 -= roller->ext_draw_pad; /*Add ext size too (e.g. because of shadow draw) */
    half_roller.x2 += roller->ext_draw_pad;
    half_roller.y1 -= roller->ext_draw_pad;
    half_roller.y2 = roller->coords.y1 + h / 2;

    union_ok = lv_area_intersect(&half_mask, &half_roller, mask);

    half_roller.x1 += roller->ext_draw_pad; /*Revert ext. size adding*/
    half_roller.x2 -= roller->ext_draw_pad;
    half_roller.y1 += roller->ext_draw_pad;
    half_roller.y2 += style->body.radius;

    if(union_ok) {
        lv_draw_rect(&half_roller, &half_mask, style, lv_obj_get_opa_scale(roller));
    }

    half_roller.x1 -= roller->ext_draw_pad; /*Add ext size too (e.g. because of shadow draw) */
    half_roller.x2 += roller->ext_draw_pad;
    half_roller.y2 = roller->coords.y2 + roller->ext_draw_pad;
    half_roller.y1 = roller->coords.y1 + h / 2;
    if((h & 0x1) == 0) half_roller.y1++; /*With even height the pixels in the middle would be drawn twice*/

    union_ok = lv_area_intersect(&half_mask, &half_roller, mask);

    half_roller.x1 += roller->ext_draw_pad; /*Revert ext. size adding*/
    half_roller.x2 -= roller->ext_draw_pad;
    half_roller.y2 -= roller->ext_draw_pad;
    half_roller.y1 -= style->body.radius;

    if(union_ok) {
        lv_style_t style_tmp;
        memcpy(&style_tmp, style, sizeof(lv_style_t));
        style_tmp.body.main_color = style->body.grad_color;
        style_tmp.body.grad_color = style->body.main_color;
        lv_draw_rect(&half_roller, &half_mask, &style_tmp, lv_obj_get_opa_scale(roller));
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rdi
xorl %esi, %esi
callq 0x197c0
movq %rax, -0x18(%rbp)
movq -0x8(%rbp), %rdi
callq 0x8350
movw %ax, -0x2a(%rbp)
movq -0x8(%rbp), %rsi
addq $0x20, %rsi
leaq -0x28(%rbp), %rdi
callq 0x19ae0
movq -0x8(%rbp), %rax
movswl 0x5c(%rax), %ecx
movswl -0x28(%rbp), %eax
subl %ecx, %eax
movw %ax, -0x28(%rbp)
movq -0x8(%rbp), %rax
movswl 0x5c(%rax), %ecx
movswl -0x24(%rbp), %eax
addl %ecx, %eax
movw %ax, -0x24(%rbp)
movq -0x8(%rbp), %rax
movswl 0x5c(%rax), %ecx
movswl -0x26(%rbp), %eax
subl %ecx, %eax
movw %ax, -0x26(%rbp)
movq -0x8(%rbp), %rax
movswl 0x22(%rax), %eax
movl %eax, -0x7c(%rbp)
movswl -0x2a(%rbp), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl -0x7c(%rbp), %eax
addl %ecx, %eax
movw %ax, -0x22(%rbp)
movq -0x10(%rbp), %rdx
leaq -0x20(%rbp), %rdi
leaq -0x28(%rbp), %rsi
callq 0x427d0
andb $0x1, %al
movb %al, -0x2b(%rbp)
movq -0x8(%rbp), %rax
movswl 0x5c(%rax), %ecx
movswl -0x28(%rbp), %eax
addl %ecx, %eax
movw %ax, -0x28(%rbp)
movq -0x8(%rbp), %rax
movswl 0x5c(%rax), %ecx
movswl -0x24(%rbp), %eax
subl %ecx, %eax
movw %ax, -0x24(%rbp)
movq -0x8(%rbp), %rax
movswl 0x5c(%rax), %ecx
movswl -0x26(%rbp), %eax
addl %ecx, %eax
movw %ax, -0x26(%rbp)
movq -0x18(%rbp), %rax
movswl 0x6(%rax), %ecx
movswl -0x22(%rbp), %eax
addl %ecx, %eax
movw %ax, -0x22(%rbp)
testb $0x1, -0x2b(%rbp)
je 0x199a7
movq -0x18(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0x8(%rbp), %rdi
callq 0xa710
movq -0x88(%rbp), %rdx
leaq -0x28(%rbp), %rdi
leaq -0x20(%rbp), %rsi
movzbl %al, %ecx
callq 0x5a9e0
movq -0x8(%rbp), %rax
movswl 0x5c(%rax), %ecx
movswl -0x28(%rbp), %eax
subl %ecx, %eax
movw %ax, -0x28(%rbp)
movq -0x8(%rbp), %rax
movswl 0x5c(%rax), %ecx
movswl -0x24(%rbp), %eax
addl %ecx, %eax
movw %ax, -0x24(%rbp)
movq -0x8(%rbp), %rax
movswl 0x26(%rax), %eax
movq -0x8(%rbp), %rcx
movswl 0x5c(%rcx), %ecx
addl %ecx, %eax
movw %ax, -0x22(%rbp)
movq -0x8(%rbp), %rax
movswl 0x22(%rax), %eax
movl %eax, -0x8c(%rbp)
movswl -0x2a(%rbp), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl -0x8c(%rbp), %eax
addl %ecx, %eax
movw %ax, -0x26(%rbp)
movswl -0x2a(%rbp), %eax
andl $0x1, %eax
cmpl $0x0, %eax
jne 0x19a21
movw -0x26(%rbp), %ax
addw $0x1, %ax
movw %ax, -0x26(%rbp)
movq -0x10(%rbp), %rdx
leaq -0x20(%rbp), %rdi
leaq -0x28(%rbp), %rsi
callq 0x427d0
andb $0x1, %al
movb %al, -0x2b(%rbp)
movq -0x8(%rbp), %rax
movswl 0x5c(%rax), %ecx
movswl -0x28(%rbp), %eax
addl %ecx, %eax
movw %ax, -0x28(%rbp)
movq -0x8(%rbp), %rax
movswl 0x5c(%rax), %ecx
movswl -0x24(%rbp), %eax
subl %ecx, %eax
movw %ax, -0x24(%rbp)
movq -0x8(%rbp), %rax
movswl 0x5c(%rax), %ecx
movswl -0x22(%rbp), %eax
subl %ecx, %eax
movw %ax, -0x22(%rbp)
movq -0x18(%rbp), %rax
movswl 0x6(%rax), %ecx
movswl -0x26(%rbp), %eax
subl %ecx, %eax
movw %ax, -0x26(%rbp)
testb $0x1, -0x2b(%rbp)
je 0x19acc
movq -0x18(%rbp), %rsi
leaq -0x78(%rbp), %rdi
movl $0x48, %edx
callq 0x20e0
movq -0x18(%rbp), %rax
movw 0x4(%rax), %ax
movw %ax, -0x76(%rbp)
movq -0x18(%rbp), %rax
movw 0x2(%rax), %ax
movw %ax, -0x74(%rbp)
movq -0x8(%rbp), %rdi
callq 0xa710
leaq -0x28(%rbp), %rdi
leaq -0x20(%rbp), %rsi
leaq -0x78(%rbp), %rdx
movzbl %al, %ecx
callq 0x5a9e0
addq $0x90, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)