// File: /workspace/github_c_makefile_star2_O0/OnionIoT[P]lv_example/lvgl/src/lv_objx/lv_calendar.c
// Function: draw_day_names
static void draw_day_names(lv_obj_t * calendar, const lv_area_t * mask)
{
    lv_calendar_ext_t * ext = lv_obj_get_ext_attr(calendar);
    lv_bidi_dir_t bidi_dir = lv_obj_get_base_dir(calendar);
    lv_opa_t opa_scale      = lv_obj_get_opa_scale(calendar);

    lv_coord_t l_pad = ext->style_day_names->body.padding.left;
    lv_coord_t w =
        lv_obj_get_width(calendar) - ext->style_day_names->body.padding.left - ext->style_day_names->body.padding.right;
    lv_coord_t box_w = w / 7;
    lv_area_t label_area;
    label_area.y1 = calendar->coords.y1 + get_header_height(calendar) + ext->style_day_names->body.padding.top;
    label_area.y2 = label_area.y1 + lv_font_get_line_height(ext->style_day_names->text.font);
    uint32_t i;
    for(i = 0; i < 7; i++) {
        label_area.x1 = calendar->coords.x1 + (w * i) / 7 + l_pad;
        label_area.x2 = label_area.x1 + box_w - 1;
        lv_draw_label(&label_area, mask, ext->style_day_names, opa_scale, get_day_name(calendar, i), LV_TXT_FLAG_CENTER,
                      NULL, NULL, NULL, bidi_dir);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rdi
callq 0xa8f0
movq %rax, -0x18(%rbp)
movq -0x8(%rbp), %rdi
callq 0x7180
movb %al, -0x19(%rbp)
movq -0x8(%rbp), %rdi
callq 0xa710
movb %al, -0x1a(%rbp)
movq -0x18(%rbp), %rax
movq 0x38(%rax), %rax
movw 0x1a(%rax), %ax
movw %ax, -0x1c(%rbp)
movq -0x8(%rbp), %rdi
callq 0x8310
cwtl
movq -0x18(%rbp), %rcx
movq 0x38(%rcx), %rcx
movswl 0x1a(%rcx), %ecx
subl %ecx, %eax
movq -0x18(%rbp), %rcx
movq 0x38(%rcx), %rcx
movswl 0x1c(%rcx), %ecx
subl %ecx, %eax
movw %ax, -0x1e(%rbp)
movswl -0x1e(%rbp), %eax
movl $0x7, %ecx
cltd
idivl %ecx
movw %ax, -0x20(%rbp)
movq -0x8(%rbp), %rax
movswl 0x22(%rax), %eax
movl %eax, -0x34(%rbp)
movq -0x8(%rbp), %rdi
callq 0x227d0
movw %ax, %cx
movl -0x34(%rbp), %eax
movswl %cx, %ecx
addl %ecx, %eax
movq -0x18(%rbp), %rcx
movq 0x38(%rcx), %rcx
movswl 0x16(%rcx), %ecx
addl %ecx, %eax
movw %ax, -0x26(%rbp)
movswl -0x26(%rbp), %eax
movl %eax, -0x30(%rbp)
movq -0x18(%rbp), %rax
movq 0x38(%rax), %rax
movq 0x28(%rax), %rdi
callq 0x228a0
movb %al, %cl
movl -0x30(%rbp), %eax
movzbl %cl, %ecx
addl %ecx, %eax
movw %ax, -0x22(%rbp)
movl $0x0, -0x2c(%rbp)
cmpl $0x7, -0x2c(%rbp)
jae 0x220c0
movq -0x8(%rbp), %rax
movswl 0x20(%rax), %eax
movl %eax, -0x4c(%rbp)
movswl -0x1e(%rbp), %eax
imull -0x2c(%rbp), %eax
movl $0x7, %ecx
xorl %edx, %edx
divl %ecx
movl %eax, %ecx
movl -0x4c(%rbp), %eax
addl %ecx, %eax
movswl -0x1c(%rbp), %ecx
addl %ecx, %eax
movw %ax, -0x28(%rbp)
movswl -0x28(%rbp), %eax
movswl -0x20(%rbp), %ecx
addl %ecx, %eax
subl $0x1, %eax
movw %ax, -0x24(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x18(%rbp), %rax
movq 0x38(%rax), %rax
movq %rax, -0x40(%rbp)
movb -0x1a(%rbp), %al
movb %al, -0x35(%rbp)
movq -0x8(%rbp), %rdi
movl -0x2c(%rbp), %eax
movzbl %al, %esi
callq 0x228c0
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq %rax, %r8
movb -0x35(%rbp), %al
leaq -0x28(%rbp), %rdi
movl $0x4, %r9d
xorl %ecx, %ecx
movzbl %al, %ecx
movq $0x0, (%rsp)
movq $0x0, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
movzbl -0x19(%rbp), %eax
movl %eax, 0x18(%rsp)
callq 0x5f210
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0x21ffd
addq $0x70, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)