// File: /workspace/github_c_makefile_star2_O1/OnionIoT[P]lv_example/lvgl/src/lv_objx/lv_calendar.c
// Function: lv_calendar_design
static bool lv_calendar_design(lv_obj_t * calendar, 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 ancestor_design(calendar, mask, mode);
    }
    /*Draw the object*/
    else if(mode == LV_DESIGN_DRAW_MAIN) {
        lv_opa_t opa_scale = lv_obj_get_opa_scale(calendar);
        lv_draw_rect(&calendar->coords, mask, lv_calendar_get_style(calendar, LV_CALENDAR_STYLE_BG), opa_scale);

        draw_header(calendar, mask);
        draw_day_names(calendar, mask);
        draw_days(calendar, mask);

    }
    /*Post draw when the children are drawn*/
    else if(mode == LV_DESIGN_DRAW_POST) {
    }

    return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xf8, %rsp
movq %rsi, %r13
movq %rdi, %r15
testl %edx, %edx
je 0x140f9
cmpl $0x2, %edx
jne 0x14a65
movq 0x4c29b(%rip), %rax     # 0x60378
movzbl %dl, %edx
movq %r15, %rdi
movq %r13, %rsi
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmpq *%rax
movq %r15, %rdi
callq 0x69cc
movl %eax, %ebp
leaq 0x20(%r15), %r12
xorl %ebx, %ebx
movq %r15, %rdi
xorl %esi, %esi
callq 0x14e31
movzbl %bpl, %ecx
movq %r12, 0xf0(%rsp)
movq %r12, %rdi
movq %r13, %rsi
movq %rax, %rdx
callq 0x365ac
movq %r15, %rdi
callq 0x6ad8
movq %rax, %r12
movq %r15, %rdi
callq 0x4abc
movb %al, 0x34(%rsp)
movq %r15, %rdi
callq 0x69cc
movl %eax, %ebp
movzwl 0x20(%r15), %eax
leaq 0x28(%rsp), %rcx
movw %ax, (%rcx)
movzwl 0x24(%r15), %eax
movw %ax, 0x4(%rcx)
movq %r13, 0x50(%rsp)
movzwl 0x22(%r15), %r14d
movw %r14w, 0x2(%rcx)
movq %r15, %rdi
callq 0x6ad8
movq 0x28(%rax), %rax
movq 0x28(%rax), %rcx
movzbl 0x10(%rcx), %ecx
addl %r14d, %ecx
addw 0x16(%rax), %cx
addw 0x18(%rax), %cx
leaq 0x28(%rsp), %rdi
movw %cx, 0x6(%rdi)
movq 0x28(%r12), %rdx
movzbl %bpl, %ecx
movl %ecx, 0x40(%rsp)
movq %rdi, %rbp
movq %r13, %rsi
callq 0x365ac
movzwl 0x4(%r12), %edi
leaq 0xb0(%rsp), %r14
movq %r14, %rsi
callq 0x2af80
movw $0x20, 0x4(%r14)
leaq 0xb5(%rsp), %r13
movsbq 0x6(%r12), %rax
xorl %r14d, %r14d
testq %rax, %rax
setg %r14b
negq %r14
orq $0xb, %r14
addq %rax, %r14
movq %r15, %rdi
callq 0x6ad8
movq 0x20(%rax), %rax
testq %rax, %rax
leaq 0x3ea98(%rip), %rcx     # 0x52ca0
cmovneq %rax, %rcx
movq (%rcx,%r14,8), %rsi
movq %r13, %rdi
callq 0x2040
movq 0x28(%r12), %rdx
movzwl 0x16(%rdx), %eax
movq %rbp, %rdi
addw %ax, 0x2(%rbp)
movzbl 0x34(%rsp), %r14d
movl %r14d, 0x18(%rsp)
movq %rbx, 0x10(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, (%rsp)
movq 0x50(%rsp), %rbp
movq %rbp, %rsi
movl 0x40(%rsp), %r13d
movl %r13d, %ecx
leaq 0xb0(%rsp), %r8
movl $0x4, %r9d
callq 0x3a034
movb 0x10(%r12), %al
shrb $0x7, %al
movzbl %al, %eax
movq 0x28(%r12,%rax,8), %rdx
movq 0x28(%r12), %rax
movzwl 0x1a(%rax), %eax
leaq 0x28(%rsp), %rdi
addw %ax, (%rdi)
movl %r14d, 0x18(%rsp)
movq %rbx, 0x10(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, (%rsp)
leaq 0x2b057(%rip), %r8      # 0x3f2f2
movq %rbp, %rsi
movl %r13d, %ecx
xorl %r9d, %r9d
callq 0x3a034
xorl %eax, %eax
cmpb $0x0, 0x10(%r12)
setg %al
movq 0x28(%r12,%rax,8), %r13
leaq 0x28(%rsp), %rax
movzwl 0x4(%rax), %ebp
movq 0x28(%r12), %rax
movzwl 0x1c(%rax), %r12d
movq 0x28(%r13), %rdx
movswl 0x32(%r13), %ecx
leaq 0x2b01a(%rip), %rdi     # 0x3f2f6
movl $0x3, %esi
xorl %r8d, %r8d
callq 0x2ab49
addw %r12w, %ax
subl %eax, %ebp
leaq 0x28(%rsp), %rdi
movw %bp, (%rdi)
movl %r14d, 0x18(%rsp)
movq %rbx, 0x10(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, (%rsp)
movq 0x50(%rsp), %rsi
movq %r13, %rdx
movl 0x40(%rsp), %ecx
leaq 0x2afdb(%rip), %r8      # 0x3f2f6
xorl %r9d, %r9d
callq 0x3a034
movq %r15, %rdi
callq 0x6ad8
movq %rax, %r13
movq %r15, %rdi
callq 0x4abc
movb %al, 0x40(%rsp)
movq %r15, %rdi
callq 0x69cc
movb %al, 0x34(%rsp)
movq 0x38(%r13), %rax
movzwl 0x1a(%rax), %eax
movw %ax, 0x3c(%rsp)
movq %r15, %rdi
callq 0x5651
movq 0x38(%r13), %rcx
movzwl 0x1a(%rcx), %edx
addw 0x1c(%rcx), %dx
subl %edx, %eax
movswl %ax, %ecx
movswq %ax, %rax
imulq $-0x6db6db6d, %rax, %r14 # imm = 0x92492493
shrq $0x20, %r14
movl %ecx, 0x48(%rsp)
addl %ecx, %r14d
movl %r14d, %r12d
shrl $0x2, %r12d
shrl $0x1f, %r14d
movq %r15, %rdi
movzwl 0x22(%r15), %eax
movw %ax, 0x68(%rsp)
callq 0x6ad8
movq 0x28(%rax), %rax
movq 0x28(%rax), %rcx
movzbl 0x10(%rcx), %ecx
movq %r13, %rbp
movq 0x38(%r13), %rdx
addw 0x68(%rsp), %cx
addw 0x16(%rax), %cx
addw 0x18(%rax), %cx
addw 0x16(%rdx), %cx
leaq 0xb5(%rsp), %rsi
movw %cx, -0x3(%rsi)
movq 0x28(%rdx), %rax
movzbl 0x10(%rax), %eax
addl %ecx, %eax
movw %ax, 0x1(%rsi)
addl %r14d, %r12d
decl %r12d
xorl %r13d, %r13d
movl %ebx, %eax
imulq $0x24924925, %rax, %rax # imm = 0x24924925
shrq $0x20, %rax
movl %ebx, %ecx
subl %eax, %ecx
shrl %ecx
addl %eax, %ecx
shrl $0x2, %ecx
movq %r15, %rdi
movzwl 0x20(%r15), %eax
addw 0x3c(%rsp), %ax
addl %ecx, %eax
movw %ax, 0xb0(%rsp)
addl %r12d, %eax
movw %ax, 0xb4(%rsp)
movq 0x38(%rbp), %r14
callq 0x6ad8
movq 0x18(%rax), %rax
testq %rax, %rax
leaq 0x3e8c9(%rip), %rcx     # 0x52d00
cmoveq %rcx, %rax
movq (%rax,%r13), %r8
movzbl 0x40(%rsp), %eax
movl %eax, 0x18(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
movzbl 0x34(%rsp), %ecx
leaq 0xb0(%rsp), %rdi
movq 0x50(%rsp), %rsi
movq %r14, %rdx
movl $0x4, %r9d
callq 0x3a034
addq $0x8, %r13
addl 0x48(%rsp), %ebx
cmpq $0x38, %r13
jne 0x143e6
movq %r15, %rdi
callq 0x6ad8
movq %rax, %r12
movq %r15, %rdi
callq 0x4abc
movb %al, 0x3b(%rsp)
movq %r15, %rdi
xorl %esi, %esi
callq 0x14e31
movq %rax, %rbp
movq %r15, %rdi
callq 0x69cc
movb %al, 0x34(%rsp)
movzwl 0x22(%r15), %ebx
movq %r15, %rdi
callq 0x6ad8
movq 0x28(%rax), %rax
movq 0x28(%rax), %rcx
movzbl 0x10(%rcx), %ecx
movq 0x38(%r12), %rdx
movq 0x28(%rdx), %rsi
movzbl 0x10(%rsi), %esi
addw %bx, %cx
addw 0x16(%rax), %cx
addw 0x18(%rax), %cx
addw 0x16(%rdx), %cx
addl %esi, %ecx
addw 0x18(%rdx), %cx
movw %cx, 0xb2(%rsp)
movq 0x28(%rbp), %rax
movzbl 0x10(%rax), %eax
addl %ecx, %eax
movw %ax, 0xb6(%rsp)
movq %r15, %rdi
callq 0x5651
movzwl 0x4(%r12), %edi
movsbl 0x6(%r12), %r14d
cmpl $0x3, %r14d
movl %edi, %ecx
sbbl $0x0, %ecx
leal 0xc(%r14), %edx
cmpl $0x3, %r14d
movzwl 0x1a(%rbp), %esi
cmovael %r14d, %edx
addw 0x1c(%rbp), %si
subl %esi, %eax
movzwl 0xb2(%rsp), %esi
addw 0x18(%rbp), %si
movq %r15, 0x48(%rsp)
movzwl 0x26(%r15), %r8d
subl %esi, %r8d
movswl %ax, %esi
movswq %ax, %rax
imulq $-0x6db6db6d, %rax, %rax # imm = 0x92492493
shrq $0x20, %rax
movl %esi, 0x84(%rsp)
addl %esi, %eax
movl %eax, %r9d
shrl $0x1f, %r9d
sarl $0x2, %eax
movq %rax, 0x60(%rsp)
movswl %r8w, %eax
movq 0x28(%rbp), %rsi
movzbl 0x10(%rsi), %esi
addl %esi, %esi
leal (%rsi,%rsi,2), %esi
subl %esi, %eax
cltq
imulq $0x66666667, %rax, %rax # imm = 0x66666667
movq %rax, %r13
shrq $0x3f, %r13
shrq $0x20, %rax
movq %rax, 0x58(%rsp)
movl %edx, %eax
shll $0x5, %eax
subl %edx, %eax
addl $-0x3e, %eax
movl $0xaaaaaaab, %edx       # imm = 0xAAAAAAAB
imulq %rax, %rdx
shrq $0x23, %rdx
movl %ecx, %eax
shrl $0x2, %eax
imulq $0x51eb851f, %rcx, %rsi # imm = 0x51EB851F
movq %rsi, %r8
shrq $0x25, %r8
shrq $0x27, %rsi
addl %ecx, %eax
subl %r8d, %eax
addl %esi, %eax
addl %edx, %eax
incl %eax
imulq $0x24924925, %rax, %rcx # imm = 0x24924925
shrq $0x20, %rcx
movl %eax, %r15d
subl %ecx, %r15d
shrl %r15d
addl %ecx, %r15d
shrl $0x2, %r15d
leal (,%r15,8), %ecx
subl %ecx, %r15d
addl %eax, %r15d
movq %rbp, 0xa0(%rsp)
movq %r15, 0x98(%rsp)
je 0x1464e
leal -0x1(%r14), %esi
movl %edi, %ebx
movl %r9d, %ebp
callq 0x14eb6
movl %ebp, %r9d
movl %ebx, %edi
movl %eax, %ebx
subb %r15b, %bl
incb %bl
movq 0x48(%r12), %rax
movq %rax, 0x40(%rsp)
xorl %r15d, %r15d
jmp 0x14658
movb $0x1, %bl
movb $0x1, %r15b
movq %rbp, 0x40(%rsp)
movq 0x58(%rsp), %rax
sarl %eax
movq %rax, 0x58(%rsp)
movq 0x60(%rsp), %rax
addl %r9d, %eax
movq %rax, 0x60(%rsp)
movl $0x0, %ecx
cmpw (%r12), %di
jne 0x14685
cmpb 0x2(%r12), %r14b
sete %cl
movq 0x58(%rsp), %rax
addl %r13d, %eax
movq %rax, 0x58(%rsp)
movq 0x98(%rsp), %rax
xorl $0x7, %eax
movl %eax, 0x78(%rsp)
leaq 0x50(%r12), %rax
movq %rax, 0x88(%rsp)
movq 0x60(%rsp), %rax
decl %eax
movq %rax, 0x60(%rsp)
leaq 0x58(%r12), %rax
movq %rax, 0x90(%rsp)
movq %r12, %rax
addq $0x40, %rax
movq %rax, 0x68(%rsp)
movzbl 0x34(%rsp), %eax
movl %eax, 0x3c(%rsp)
movl %ecx, 0x74(%rsp)
movl %ecx, %eax
xorb $0x1, %al
movb %al, 0x3a(%rsp)
movq 0xa0(%rsp), %rbp
xorl %r13d, %r13d
xorl %r14d, %r14d
movl $0x0, %ecx
cmpb $0x0, 0x74(%rsp)
je 0x147b0
testb %r15b, %r15b
je 0x14737
movzbl %r15b, %eax
cmpl $0x1, %eax
jne 0x14733
movsbl 0x3(%r12), %eax
movzbl %bl, %ecx
cmpl %ecx, %eax
setge %dl
addl $0x7, %ecx
cmpl %eax, %ecx
setg %al
testb %al, %dl
jne 0x1474a
testb %r15b, %r15b
je 0x14737
xorl %ecx, %ecx
jmp 0x147b0
xorl %ecx, %ecx
testl %r13d, %r13d
jne 0x147b0
movsbl 0x3(%r12), %eax
cmpl %eax, 0x78(%rsp)
jl 0x147b0
movq 0xb0(%rsp), %rax
movq %rax, 0x28(%rsp)
movzwl 0x1a(%rbp), %eax
movq 0x48(%rsp), %rcx
addw 0x20(%rcx), %ax
movq 0x88(%rsp), %rdx
movq (%rdx), %rdx
subw 0x1a(%rdx), %ax
movw %ax, 0x28(%rsp)
movzwl 0x24(%rcx), %eax
subw 0x1c(%rbp), %ax
addw 0x1c(%rdx), %ax
movw %ax, 0x2c(%rsp)
movzwl 0x16(%rdx), %eax
subw %ax, 0x2a(%rsp)
movzwl 0x18(%rdx), %eax
addw %ax, 0x2e(%rsp)
leaq 0x28(%rsp), %rdi
movq 0x50(%rsp), %rsi
movl 0x3c(%rsp), %ecx
callq 0x365ac
movb $0x1, %cl
movl %r13d, 0x7c(%rsp)
xorb $0x1, %cl
movl %ecx, 0x80(%rsp)
xorl %r13d, %r13d
testb %r15b, %r15b
sete %al
cmpl %r13d, 0x98(%rsp)
sete %cl
movzbl %bl, %ebx
testb %al, %cl
movl $0x1, %eax
cmovnel %eax, %ebx
movzbl %r15b, %r15d
cmovnel %eax, %r15d
movq 0x40(%rsp), %rax
cmovneq %rbp, %rax
movq %rax, 0x40(%rsp)
cmpb $0x1, %r15b
jne 0x14820
movzwl 0x4(%r12), %edi
movsbl 0x6(%r12), %esi
callq 0x14eb6
cmpb %al, %bl
jbe 0x14820
movq 0x48(%r12), %rax
movq %rax, 0x40(%rsp)
movb $0x2, %r15b
movb $0x1, %bl
movl %r14d, %eax
imulq $0x24924925, %rax, %rax # imm = 0x24924925
shrq $0x20, %rax
movl %r14d, %ecx
subl %eax, %ecx
shrl %ecx
addl %eax, %ecx
shrl $0x2, %ecx
movq 0xf0(%rsp), %rax
addw (%rax), %cx
addw 0x1a(%rbp), %cx
movq 0x60(%rsp), %rax
addl %ecx, %eax
movw %cx, 0xb0(%rsp)
movw %ax, 0xb4(%rsp)
cmpb $0x1, %r15b
setne %cl
orb 0x3a(%rsp), %cl
movzbl %bl, %ebx
jne 0x148d9
movsbl 0x3(%r12), %ecx
cmpl %ebx, %ecx
jne 0x148d9
movq 0xb0(%rsp), %rcx
movq %rcx, 0x28(%rsp)
movzwl 0xb0(%rsp), %ecx
movzwl 0xb2(%rsp), %esi
movw %cx, 0x28(%rsp)
movw %ax, 0x2c(%rsp)
movq 0x90(%rsp), %rax
movq (%rax), %rdx
subw 0x16(%rdx), %si
movw %si, 0x2a(%rsp)
movzwl 0x18(%rdx), %eax
addw 0xb6(%rsp), %ax
movw %ax, 0x2e(%rsp)
leaq 0x28(%rsp), %rdi
movq 0x50(%rsp), %rsi
movl 0x3c(%rsp), %ecx
callq 0x365ac
movl %r14d, 0x34(%rsp)
testb %r15b, %r15b
jne 0x1491d
movzwl 0x4(%r12), %esi
movsbl 0x6(%r12), %eax
leal -0x1(%rax), %edx
xorl %ecx, %ecx
cmpl $0x1, %eax
sete %cl
movl $0xc, %eax
cmovel %eax, %edx
subl %ecx, %esi
movq 0x48(%rsp), %rdi
movl %ebx, %ecx
callq 0x14f51
movq 0x68(%rsp), %rcx
testb %al, %al
jne 0x149bd
cmpb $0x1, %r15b
jne 0x14944
movzwl 0x4(%r12), %esi
movsbl 0x6(%r12), %edx
movq 0x48(%rsp), %rdi
movl %ebx, %ecx
callq 0x14f51
movq 0x68(%rsp), %rcx
testb %al, %al
jne 0x149bd
cmpb $0x2, %r15b
jne 0x14981
movzwl 0x4(%r12), %eax
movsbl 0x6(%r12), %ecx
leal 0x1(%rcx), %edx
xorl %esi, %esi
cmpl $0xc, %ecx
sete %sil
movl $0x1, %ecx
cmovel %ecx, %edx
addl %eax, %esi
movq 0x48(%rsp), %rdi
movl %ebx, %ecx
callq 0x14f51
movq 0x68(%rsp), %rcx
testb %al, %al
jne 0x149bd
cmpb $0x0, 0x74(%rsp)
je 0x149a0
cmpb $0x1, %r15b
jne 0x149a0
movsbl 0x3(%r12), %eax
movq 0x90(%rsp), %rcx
cmpl %eax, %ebx
je 0x149bd
cmpb $0x1, %r15b
setne %al
orb 0x80(%rsp), %al
movq 0x88(%rsp), %rcx
movq 0x40(%rsp), %rbp
jne 0x149c0
movq (%rcx), %rbp
movl %ebx, %edi
movq %r12, %r14
leaq 0xad(%rsp), %r12
movq %r12, %rsi
callq 0x2af80
movzbl 0x3b(%rsp), %eax
movl %eax, 0x18(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
leaq 0xb0(%rsp), %rdi
movq 0x50(%rsp), %rsi
movq %rbp, %rdx
movl 0x3c(%rsp), %ecx
movq %r12, %r8
movq %r14, %r12
movl $0x4, %r9d
callq 0x3a034
incb %bl
incl %r13d
movl 0x34(%rsp), %r14d
addl 0x84(%rsp), %r14d
cmpl $0x7, %r13d
movq 0xa0(%rsp), %rbp
jne 0x147c2
movq 0x28(%rbp), %rax
movzbl 0x10(%rax), %eax
addl 0x58(%rsp), %eax
addw %ax, 0xb2(%rsp)
addw %ax, 0xb6(%rsp)
movl 0x7c(%rsp), %r13d
incl %r13d
cmpl $0x6, %r13d
jne 0x146f3
movb $0x1, %al
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq