// File: /workspace/github_c_makefile_star2_O3/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 0x140ba
cmpl $0x2, %edx
jne 0x14a16
movq 0x4c2dc(%rip), %rax     # 0x60378
movq %r15, %rdi
movq %r13, %rsi
movl $0x2, %edx
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmpq *%rax
movq %r15, %rdi
callq 0x69eb
movl %eax, %ebp
leaq 0x20(%r15), %r12
xorl %ebx, %ebx
movq %r15, %rdi
xorl %esi, %esi
callq 0x14de2
movzbl %bpl, %ecx
movq %r12, 0xf0(%rsp)
movq %r12, %rdi
movq %r13, %rsi
movq %rax, %rdx
callq 0x36968
movq %r15, %rdi
callq 0x6af7
movq %rax, %r12
movq %r15, %rdi
callq 0x4ab2
movb %al, 0x28(%rsp)
movq %r15, %rdi
callq 0x69eb
movl %eax, %ebp
movzwl 0x24(%r15), %eax
leaq 0x30(%rsp), %rcx
movw %ax, 0x4(%rcx)
movq %r13, 0x48(%rsp)
movl 0x20(%r15), %r14d
movl %r14d, (%rcx)
movq %r15, %rdi
callq 0x6af7
movq 0x28(%rax), %rax
movq 0x28(%rax), %rcx
movzbl 0x10(%rcx), %ecx
shrl $0x10, %r14d
addl %ecx, %r14d
addw 0x16(%rax), %r14w
addw 0x18(%rax), %r14w
leaq 0x30(%rsp), %rdi
movw %r14w, 0x6(%rdi)
movq 0x28(%r12), %rdx
movzbl %bpl, %ecx
movl %ecx, 0x40(%rsp)
movq %rdi, %rbp
movq %r13, %rsi
callq 0x36968
movzwl 0x4(%r12), %edi
leaq 0xb0(%rsp), %r14
movq %r14, %rsi
callq 0x2b6c4
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 0x6af7
movq 0x20(%rax), %rax
testq %rax, %rax
leaq 0x3eb1b(%rip), %rcx     # 0x52ce0
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 0x28(%rsp), %r14d
movl %r14d, 0x18(%rsp)
movq %rbx, 0x10(%rsp)
pxor %xmm0, %xmm0
movdqu %xmm0, (%rsp)
movq 0x48(%rsp), %rbp
movq %rbp, %rsi
movl 0x40(%rsp), %r13d
movl %r13d, %ecx
leaq 0xb0(%rsp), %r8
movl $0x4, %r9d
callq 0x3a5ac
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 0x30(%rsp), %rdi
addw %ax, (%rdi)
movl %r14d, 0x18(%rsp)
movq %rbx, 0x10(%rsp)
pxor %xmm0, %xmm0
movdqu %xmm0, (%rsp)
leaq 0x2b146(%rip), %r8      # 0x3f3a2
movq %rbp, %rsi
movl %r13d, %ecx
xorl %r9d, %r9d
callq 0x3a5ac
xorl %eax, %eax
cmpb $0x0, 0x10(%r12)
setg %al
movq 0x28(%r12,%rax,8), %r13
leaq 0x30(%rsp), %rax
movl 0x4(%rax), %ebp
movq 0x28(%r12), %rax
movzwl 0x1c(%rax), %r12d
movq 0x28(%r13), %rdx
movswl 0x32(%r13), %ecx
leaq 0x2b10a(%rip), %rdi     # 0x3f3a6
movl $0x3, %esi
xorl %r8d, %r8d
callq 0x2b2a4
addw %r12w, %ax
subl %eax, %ebp
leaq 0x30(%rsp), %rdi
movw %bp, (%rdi)
movl %r14d, 0x18(%rsp)
movq %rbx, 0x10(%rsp)
pxor %xmm0, %xmm0
movdqu %xmm0, (%rsp)
movq 0x48(%rsp), %rsi
movq %r13, %rdx
movl 0x40(%rsp), %ecx
leaq 0x2b0c9(%rip), %r8      # 0x3f3a6
xorl %r9d, %r9d
callq 0x3a5ac
movq %r15, %rdi
callq 0x6af7
movq %rax, %r13
movq %r15, %rdi
callq 0x4ab2
movb %al, 0x40(%rsp)
movq %r15, %rdi
callq 0x69eb
movb %al, 0x28(%rsp)
movq 0x38(%r13), %rax
movzwl 0x1a(%rax), %eax
movw %ax, 0x3c(%rsp)
movq %r15, %rdi
callq 0x566d
movq 0x38(%r13), %rcx
movzwl 0x1a(%rcx), %edx
addw 0x1c(%rcx), %dx
subl %edx, %eax
cwtl
movl %eax, 0x58(%rsp)
imull $0x4925, %eax, %r14d    # imm = 0x4925
movl %r14d, %r12d
sarl $0x11, %r12d
shrl $0x1f, %r14d
movq %r15, %rdi
movzwl 0x22(%r15), %eax
movw %ax, 0x70(%rsp)
callq 0x6af7
movq 0x28(%rax), %rax
movq 0x28(%rax), %rcx
movzbl 0x10(%rcx), %ecx
movq %r13, %rbp
movq 0x38(%r13), %rdx
addw 0x70(%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 0x6af7
movq 0x18(%rax), %rax
testq %rax, %rax
leaq 0x3e954(%rip), %rcx     # 0x52d40
cmoveq %rcx, %rax
movq (%rax,%r13), %r8
movzbl 0x40(%rsp), %eax
movl %eax, 0x18(%rsp)
pxor %xmm0, %xmm0
movdqu %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
movzbl 0x28(%rsp), %ecx
leaq 0xb0(%rsp), %rdi
movq 0x48(%rsp), %rsi
movq %r14, %rdx
movl $0x4, %r9d
callq 0x3a5ac
addq $0x8, %r13
addl 0x58(%rsp), %ebx
cmpq $0x38, %r13
jne 0x1439b
movq %r15, %rdi
callq 0x6af7
movq %rax, %r12
movq %r15, %rdi
callq 0x4ab2
movb %al, 0x2f(%rsp)
movq %r15, %rdi
xorl %esi, %esi
callq 0x14de2
movq %rax, %rbp
movq %r15, %rdi
callq 0x69eb
movb %al, 0x28(%rsp)
movzwl 0x22(%r15), %ebx
movq %r15, %rdi
callq 0x6af7
movq 0x28(%rax), %rax
movq 0x28(%rax), %rcx
movzbl 0x10(%rcx), %r14d
movq 0x38(%r12), %rcx
movq 0x28(%rcx), %rdx
movzbl 0x10(%rdx), %edx
addw %bx, %r14w
addw 0x16(%rax), %r14w
addw 0x18(%rax), %r14w
addw 0x16(%rcx), %r14w
addl %edx, %r14d
addw 0x18(%rcx), %r14w
movw %r14w, 0xb2(%rsp)
movq 0x28(%rbp), %rax
movzbl 0x10(%rax), %eax
addl %r14d, %eax
movw %ax, 0xb6(%rsp)
movq %r15, %rdi
callq 0x566d
movzwl 0x4(%r12), %edi
movsbl 0x6(%r12), %ebx
cmpl $0x3, %ebx
movl %edi, %ecx
sbbl $0x0, %ecx
leal 0xc(%rbx), %edx
cmpl $0x3, %ebx
cmovael %ebx, %edx
movzwl 0x1a(%rbp), %esi
addw 0x1c(%rbp), %si
subl %esi, %eax
movq %r15, 0x68(%rsp)
movzwl 0x26(%r15), %esi
addw 0x18(%rbp), %r14w
subl %r14d, %esi
cwtl
movl %eax, 0x8c(%rsp)
imull $0x4925, %eax, %r8d     # imm = 0x4925
movl %r8d, %eax
shrl $0x1f, %eax
sarl $0x11, %r8d
addl %eax, %r8d
movq %r8, 0x58(%rsp)
movswl %si, %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, 0x50(%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, %r14d
subl %ecx, %r14d
shrl %r14d
addl %ecx, %r14d
shrl $0x2, %r14d
leal (,%r14,8), %ecx
subl %ecx, %r14d
addl %eax, %r14d
movq %rbp, 0x70(%rsp)
movq %r14, 0xa0(%rsp)
je 0x145f1
leal -0x1(%rbx), %esi
movl %edi, %ebp
callq 0x14e67
movl %ebp, %edi
movl %eax, %r15d
subb %r14b, %r15b
incb %r15b
movq 0x48(%r12), %rax
movq %rax, 0x40(%rsp)
xorl %r14d, %r14d
jmp 0x145fc
movb $0x1, %r15b
movb $0x1, %r14b
movq %rbp, 0x40(%rsp)
movq 0x50(%rsp), %rax
sarl %eax
movq %rax, 0x50(%rsp)
movl $0x0, %ecx
cmpw (%r12), %di
jne 0x1461c
cmpb 0x2(%r12), %bl
sete %cl
movq 0x50(%rsp), %rax
addl %r13d, %eax
movq %rax, 0x50(%rsp)
movq 0xa0(%rsp), %rax
xorl $0x7, %eax
movl %eax, 0x80(%rsp)
leaq 0x50(%r12), %rax
movq %rax, 0x90(%rsp)
movq 0x58(%rsp), %rax
decl %eax
movq %rax, 0x58(%rsp)
leaq 0x40(%r12), %rax
movq %rax, 0x78(%rsp)
movq %r12, %rax
addq $0x58, %rax
movq %rax, 0x98(%rsp)
movzbl 0x28(%rsp), %eax
movl %eax, 0x3c(%rsp)
movl %ecx, 0x64(%rsp)
movl %ecx, %eax
xorb $0x1, %al
movb %al, 0x2e(%rsp)
movq 0x70(%rsp), %rbp
xorl %r13d, %r13d
xorl %ebx, %ebx
movl $0x0, %ecx
cmpb $0x0, 0x64(%rsp)
je 0x14772
testb %r14b, %r14b
je 0x146cc
movzbl %r14b, %eax
cmpl $0x1, %eax
jne 0x146c5
movsbl 0x3(%r12), %eax
movzbl %r15b, %ecx
cmpl %ecx, %eax
setge %dl
addl $0x7, %ecx
cmpl %eax, %ecx
setg %al
testb %al, %dl
jne 0x146ea
xorl %ecx, %ecx
jmp 0x14772
xorl %ecx, %ecx
testl %r13d, %r13d
jne 0x14772
movsbl 0x3(%r12), %eax
cmpl %eax, 0x80(%rsp)
jl 0x14772
movq 0xb0(%rsp), %rax
movzwl 0x1a(%rbp), %ecx
movq 0x68(%rsp), %rsi
addw 0x20(%rsi), %cx
movq 0x90(%rsp), %rdx
movq (%rdx), %rdx
movzwl 0x24(%rsi), %esi
subw 0x1c(%rbp), %si
movl %eax, %edi
shrl $0x10, %edi
shrq $0x30, %rax
movd %edi, %xmm0
pinsrw $0x1, %eax, %xmm0
pinsrw $0x2, %ecx, %xmm0
movq 0x16(%rdx), %xmm1
movdqa %xmm0, %xmm2
pinsrw $0x3, %esi, %xmm2
psubw %xmm1, %xmm0
paddw %xmm1, %xmm2
punpcklwd %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1],xmm0[2],xmm2[2],xmm0[3],xmm2[3]
pshuflw $0xec, %xmm0, %xmm0     # xmm0 = xmm0[0,3,2,3,4,5,6,7]
pshufhw $0xec, %xmm0, %xmm0     # xmm0 = xmm0[0,1,2,3,4,7,6,7]
pshufd $0xe8, %xmm0, %xmm0     # xmm0 = xmm0[0,2,2,3]
pshuflw $0x72, %xmm0, %xmm0     # xmm0 = xmm0[2,0,3,1,4,5,6,7]
movq %xmm0, 0x30(%rsp)
leaq 0x30(%rsp), %rdi
movq 0x48(%rsp), %rsi
movl 0x3c(%rsp), %ecx
callq 0x36968
movb $0x1, %cl
movl %r13d, 0x84(%rsp)
xorb $0x1, %cl
movl %ecx, 0x88(%rsp)
xorl %r13d, %r13d
testb %r14b, %r14b
sete %cl
cmpl %r13d, 0xa0(%rsp)
sete %al
andb %cl, %al
movzbl %r15b, %r15d
movl $0x1, %ecx
cmovnel %ecx, %r15d
movq 0x40(%rsp), %rcx
cmovneq %rbp, %rcx
movq %rcx, 0x40(%rsp)
cmpb $0x1, %r14b
je 0x147bf
testb %al, %al
je 0x147e8
movzwl 0x4(%r12), %edi
movsbl 0x6(%r12), %esi
callq 0x14e67
movb $0x1, %r14b
cmpb %al, %r15b
jbe 0x147e8
movq 0x48(%r12), %rax
movq %rax, 0x40(%rsp)
movb $0x2, %r14b
movb $0x1, %r15b
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 0xf0(%rsp), %rax
addw (%rax), %cx
addw 0x1a(%rbp), %cx
movq 0x58(%rsp), %rax
addl %ecx, %eax
movw %cx, 0xb0(%rsp)
movw %ax, 0xb4(%rsp)
cmpb $0x1, %r14b
setne %cl
orb 0x2e(%rsp), %cl
movl %ebx, 0x28(%rsp)
jne 0x14892
movsbl 0x3(%r12), %ecx
movzbl %r15b, %ebp
cmpl %ebp, %ecx
jne 0x148a5
movq 0xb0(%rsp), %rcx
movw %cx, 0x30(%rsp)
movw %ax, 0x34(%rsp)
movl %ecx, %eax
shrl $0x10, %eax
movq 0x98(%rsp), %rdx
movq (%rdx), %rdx
subw 0x16(%rdx), %ax
movw %ax, 0x32(%rsp)
shrq $0x30, %rcx
addw 0x18(%rdx), %cx
movw %cx, 0x36(%rsp)
leaq 0x30(%rsp), %rdi
movq 0x48(%rsp), %rsi
movl 0x3c(%rsp), %ecx
callq 0x36968
jmp 0x148a5
testb %r14b, %r14b
je 0x148ba
movzbl %r15b, %ebp
cmpb $0x1, %r14b
jne 0x149b4
movzwl 0x4(%r12), %esi
movsbl 0x6(%r12), %edx
movq 0x68(%rsp), %rdi
movl %ebp, %ecx
jmp 0x148e4
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
movzbl %r15b, %ecx
movq 0x68(%rsp), %rdi
callq 0x14efd
movq 0x78(%rsp), %rcx
testb %al, %al
jne 0x14932
cmpb $0x0, 0x64(%rsp)
je 0x14915
cmpb $0x1, %r14b
jne 0x14915
movzbl %r15b, %eax
movsbl 0x3(%r12), %edx
movq 0x98(%rsp), %rcx
cmpl %edx, %eax
je 0x14932
cmpb $0x1, %r14b
setne %al
orb 0x88(%rsp), %al
movq 0x90(%rsp), %rcx
movq 0x40(%rsp), %rbp
jne 0x14935
movq (%rcx), %rbp
movzbl %r15b, %edi
movl %r14d, %ebx
movq %r12, %r14
leaq 0xad(%rsp), %r12
movq %r12, %rsi
callq 0x2b6c4
movzbl 0x2f(%rsp), %eax
movl %eax, 0x18(%rsp)
pxor %xmm0, %xmm0
movdqu %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
leaq 0xb0(%rsp), %rdi
movq 0x48(%rsp), %rsi
movq %rbp, %rdx
movl 0x3c(%rsp), %ecx
movq %r12, %r8
movq %r14, %r12
movl %ebx, %r14d
movl $0x4, %r9d
callq 0x3a5ac
incb %r15b
incl %r13d
movl 0x28(%rsp), %ebx
addl 0x8c(%rsp), %ebx
cmpl $0x7, %r13d
movq 0x70(%rsp), %rbp
jne 0x14787
jmp 0x149e5
cmpb $0x2, %r14b
jne 0x148f2
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
jmp 0x148b1
movq 0x28(%rbp), %rax
movzbl 0x10(%rax), %eax
addl 0x50(%rsp), %eax
addw %ax, 0xb2(%rsp)
addw %ax, 0xb6(%rsp)
movl 0x84(%rsp), %r13d
incl %r13d
cmpl $0x6, %r13d
jne 0x1468a
movb $0x1, %al
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq