// File: /workspace/github_c_makefile_star2_O2/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, 0x50(%rsp)
movq %rdi, 0x48(%rsp)
testl %edx, %edx
je 0x1318e
cmpl $0x2, %edx
jne 0x139d6
movq 0x4b20a(%rip), %rax     # 0x5e378
pushq $0x2
popq %rdx
movq 0x48(%rsp), %rdi
movq 0x50(%rsp), %rsi
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmpq *%rax
movq 0x48(%rsp), %r12
movq %r12, %rdi
callq 0x6649
movl %eax, %ebp
leaq 0x20(%r12), %r14
xorl %ebx, %ebx
movq %r12, %rdi
xorl %esi, %esi
callq 0x13da2
movzbl %bpl, %ecx
movq %r14, 0xf0(%rsp)
movq %r14, %rdi
movq 0x50(%rsp), %rbp
movq %rbp, %rsi
movq %rax, %rdx
callq 0x336d4
movq %r12, %rdi
callq 0x6747
movq %rax, %r13
movq %r12, %rdi
callq 0x47b9
movb %al, 0x2c(%rsp)
movq %r12, %rdi
callq 0x6649
movl %eax, %r14d
movzwl 0x24(%r12), %eax
leaq 0x38(%rsp), %rcx
movw %ax, 0x4(%rcx)
movl 0x20(%r12), %r15d
movl %r15d, (%rcx)
movq %r12, %rdi
callq 0x13e27
shrl $0x10, %r15d
addl %eax, %r15d
leaq 0x38(%rsp), %rdi
movw %r15w, 0x6(%rdi)
movq 0x28(%r13), %rdx
movzbl %r14b, %ecx
movl %ecx, 0x40(%rsp)
movq %rbp, %r15
movq %rbp, %rsi
callq 0x336d4
movzwl 0x4(%r13), %edi
leaq 0xb0(%rsp), %r14
movq %r14, %rsi
callq 0x28f4c
movw $0x20, 0x4(%r14)
leaq 0xb5(%rsp), %rbp
movsbq 0x6(%r13), %rax
xorl %r14d, %r14d
testq %rax, %rax
setg %r14b
negq %r14
orq $0xb, %r14
addq %rax, %r14
movq %r12, %rdi
callq 0x6747
movq 0x20(%rax), %rax
testq %rax, %rax
leaq 0x3da57(%rip), %rcx     # 0x50ce0
cmovneq %rax, %rcx
movq (%rcx,%r14,8), %rsi
movq %rbp, %rdi
callq 0x2040
movq 0x28(%r13), %rdx
movzwl 0x16(%rdx), %eax
leaq 0x38(%rsp), %rdi
addw %ax, 0x2(%rdi)
movzbl 0x2c(%rsp), %ebp
movl %ebp, 0x18(%rsp)
pxor %xmm0, %xmm0
movdqu %xmm0, (%rsp)
andq $0x0, 0x10(%rsp)
pushq $0x4
popq %r9
movq %r15, %r14
movq %r15, %rsi
movl 0x40(%rsp), %r15d
movl %r15d, %ecx
leaq 0xb0(%rsp), %r8
callq 0x3699c
movb 0x10(%r13), %al
shrb $0x7, %al
movzbl %al, %eax
movq 0x28(%r13,%rax,8), %rdx
movq 0x28(%r13), %rax
movzwl 0x1a(%rax), %eax
leaq 0x38(%rsp), %rdi
addw %ax, (%rdi)
movl %ebp, 0x18(%rsp)
pxor %xmm0, %xmm0
movdqu %xmm0, (%rsp)
andq $0x0, 0x10(%rsp)
leaq 0x27fe8(%rip), %r8      # 0x3b302
movq %r14, %rsi
movl %r15d, %ecx
xorl %r9d, %r9d
callq 0x3699c
xorl %eax, %eax
cmpb $0x0, 0x10(%r13)
setg %al
movq 0x28(%r13,%rax,8), %r14
leaq 0x38(%rsp), %rax
movl 0x4(%rax), %r15d
movq 0x28(%r13), %rax
movzwl 0x1c(%rax), %r13d
movq 0x28(%r14), %rdx
movswl 0x32(%r14), %ecx
leaq 0x27fad(%rip), %rdi     # 0x3b306
pushq $0x3
popq %rsi
xorl %r8d, %r8d
callq 0x28bb3
addw %r13w, %ax
subl %eax, %r15d
leaq 0x38(%rsp), %rdi
movw %r15w, (%rdi)
movl %ebp, 0x18(%rsp)
pxor %xmm0, %xmm0
movdqu %xmm0, (%rsp)
andq $0x0, 0x10(%rsp)
movq 0x50(%rsp), %rsi
movq %r14, %rdx
movl 0x40(%rsp), %ecx
leaq 0x27f6c(%rip), %r8      # 0x3b306
xorl %r9d, %r9d
callq 0x3699c
movq %r12, %rdi
callq 0x6747
movq %rax, %r15
movq %r12, %rdi
callq 0x47b9
movb %al, 0x40(%rsp)
movq %r12, %rdi
callq 0x6649
movb %al, 0x2c(%rsp)
movq 0x38(%r15), %rax
movzwl 0x1a(%rax), %eax
movl %eax, 0x30(%rsp)
movq %r12, %rdi
callq 0x5308
movl %eax, %ebp
movq 0x38(%r15), %rax
movzwl 0x1a(%rax), %ecx
addw 0x1c(%rax), %cx
subl %ecx, %ebp
movl %ebp, %eax
cwtd
movw $0x7, %cx
idivw %cx
movl %eax, %r14d
movzwl 0x22(%r12), %r13d
movq %r12, %rdi
callq 0x13e27
addw %r13w, %ax
movq 0x38(%r15), %rcx
addw 0x16(%rcx), %ax
leaq 0xb5(%rsp), %rdx
movw %ax, -0x3(%rdx)
movq 0x28(%rcx), %rcx
movzbl 0x10(%rcx), %ecx
addl %eax, %ecx
movw %cx, 0x1(%rdx)
decl %r14d
movswl %bp, %r13d
xorl %r12d, %r12d
cmpq $0x38, %r12
je 0x134ca
movl %ebx, %eax
xorl %edx, %edx
pushq $0x7
popq %rcx
divl %ecx
addl 0x30(%rsp), %eax
movq 0x48(%rsp), %rdi
addw 0x20(%rdi), %ax
leal (%r14,%rax), %ecx
movw %ax, 0xb0(%rsp)
movw %cx, 0xb4(%rsp)
movq 0x38(%r15), %rbp
callq 0x6747
movq 0x18(%rax), %rax
testq %rax, %rax
leaq 0x3d8c0(%rip), %rcx     # 0x50d40
cmoveq %rcx, %rax
movq (%rax,%r12), %r8
movzbl 0x40(%rsp), %eax
movl %eax, 0x18(%rsp)
pxor %xmm0, %xmm0
movdqu %xmm0, (%rsp)
andq $0x0, 0x10(%rsp)
movzbl 0x2c(%rsp), %ecx
leaq 0xb0(%rsp), %rdi
movq 0x50(%rsp), %rsi
movq %rbp, %rdx
pushq $0x4
popq %r9
callq 0x3699c
addq $0x8, %r12
addl %r13d, %ebx
jmp 0x13435
movq 0x48(%rsp), %r14
movq %r14, %rdi
callq 0x6747
movq %rax, %r12
movq %r14, %rdi
callq 0x47b9
movb %al, 0x37(%rsp)
movq %r14, %rdi
xorl %esi, %esi
callq 0x13da2
movq %rax, %r13
movq %r14, %rdi
callq 0x6649
movb %al, 0x30(%rsp)
movzwl 0x22(%r14), %ebx
movq %r14, %rdi
callq 0x13e27
addw %bx, %ax
movq 0x38(%r12), %rcx
addw 0x16(%rcx), %ax
movq 0x28(%rcx), %rdx
movzbl 0x10(%rdx), %ebx
addl %eax, %ebx
addw 0x18(%rcx), %bx
movw %bx, 0xb2(%rsp)
movq 0x28(%r13), %rax
movzbl 0x10(%rax), %eax
addl %ebx, %eax
movw %ax, 0xb6(%rsp)
movq %r14, %rdi
callq 0x5308
movzwl 0x1a(%r13), %ecx
addw 0x1c(%r13), %cx
subl %ecx, %eax
addw 0x18(%r13), %bx
movzwl 0x26(%r14), %ecx
subl %ebx, %ecx
movw $0x7, %si
movl %eax, 0x5c(%rsp)
cwtd
idivw %si
movq %rax, 0x70(%rsp)
movswl %cx, %ecx
movq 0x28(%r13), %rax
movzbl 0x10(%rax), %eax
imull $-0x6, %eax, %eax
addl %ecx, %eax
pushq $0x5
popq %rcx
cltd
idivl %ecx
movl %eax, 0x7c(%rsp)
movzwl 0x4(%r12), %ebp
movsbl 0x6(%r12), %ebx
movl %ebp, %edi
movl %ebx, %esi
callq 0x13e43
movl %eax, %r15d
testb %al, %al
movq %r13, 0x98(%rsp)
movq %rbx, 0x60(%rsp)
je 0x135d6
leal -0x1(%rbx), %esi
movl %ebp, %edi
callq 0x13e99
movl %eax, %r14d
subb %r15b, %r14b
incb %r14b
movq 0x48(%r12), %rax
movq %rax, 0x40(%rsp)
xorl %ebx, %ebx
jmp 0x135e0
movb $0x1, %r14b
movb $0x1, %bl
movq %r13, 0x40(%rsp)
movzbl %r15b, %eax
movl %eax, 0x6c(%rsp)
xorl %r13d, %r13d
movl $0x0, 0x2c(%rsp)
cmpw (%r12), %bp
jne 0x1360b
movq 0x60(%rsp), %rax
cmpb 0x2(%r12), %al
sete %al
movl %eax, 0x2c(%rsp)
movswl 0x5c(%rsp), %eax
movl %eax, 0x5c(%rsp)
movl 0x6c(%rsp), %eax
xorl $0x7, %eax
movl %eax, 0x78(%rsp)
leaq 0x50(%r12), %rax
movq %rax, 0x88(%rsp)
movq 0x70(%rsp), %rax
decl %eax
movq %rax, 0x70(%rsp)
leaq 0x40(%r12), %rax
movq %rax, 0x60(%rsp)
movq %r12, %rax
addq $0x58, %rax
movq %rax, 0x90(%rsp)
movzbl 0x30(%rsp), %eax
movl %eax, 0x30(%rsp)
movq 0x98(%rsp), %rbp
movq %r12, 0xa0(%rsp)
cmpl $0x6, %r13d
je 0x139d6
xorl %r15d, %r15d
movl $0x0, %ecx
cmpb $0x0, 0x2c(%rsp)
je 0x13758
testb %bl, %bl
je 0x136b5
movzbl %bl, %eax
cmpl $0x1, %eax
jne 0x136ae
movsbl 0x3(%r12), %eax
movzbl %r14b, %ecx
cmpl %ecx, %eax
setge %dl
addl $0x7, %ecx
cmpl %eax, %ecx
setg %al
testb %al, %dl
jne 0x136d0
xorl %ecx, %ecx
jmp 0x13758
xorl %ecx, %ecx
testl %r13d, %r13d
jne 0x13758
movsbl 0x3(%r12), %eax
cmpl %eax, 0x78(%rsp)
jl 0x13758
movq 0xb0(%rsp), %rax
movzwl 0x1a(%rbp), %ecx
movq 0x48(%rsp), %rsi
addw 0x20(%rsi), %cx
movq 0x88(%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, 0x38(%rsp)
leaq 0x38(%rsp), %rdi
movq 0x50(%rsp), %rsi
movl 0x30(%rsp), %ecx
callq 0x336d4
movb $0x1, %cl
movl %r13d, 0x80(%rsp)
xorb $0x1, %cl
movl %ecx, 0x84(%rsp)
xorl %r13d, %r13d
cmpl $0x7, %r13d
je 0x139a2
testb %bl, %bl
sete %cl
cmpl %r13d, 0x6c(%rsp)
sete %al
andb %cl, %al
movzbl %r14b, %r14d
pushq $0x1
popq %rcx
cmovnel %ecx, %r14d
movq 0x40(%rsp), %rcx
cmovneq %rbp, %rcx
movq %rcx, 0x40(%rsp)
cmpb $0x1, %bl
movq 0xa0(%rsp), %r12
je 0x137b0
testb %al, %al
je 0x137d7
movzwl 0x4(%r12), %edi
movsbl 0x6(%r12), %esi
callq 0x13e99
movb $0x1, %bl
cmpb %al, %r14b
jbe 0x137d7
movq 0x48(%r12), %rax
movq %rax, 0x40(%rsp)
movb $0x2, %bl
movb $0x1, %r14b
movl %r15d, %eax
xorl %edx, %edx
pushq $0x7
popq %rcx
divl %ecx
movq 0xf0(%rsp), %rcx
addw (%rcx), %ax
addw 0x1a(%rbp), %ax
movq 0x70(%rsp), %rcx
addl %eax, %ecx
movw %ax, 0xb0(%rsp)
movw %cx, 0xb4(%rsp)
cmpb $0x1, %bl
setne %al
movl 0x2c(%rsp), %edx
xorb $0x1, %dl
orb %al, %dl
jne 0x13873
movsbl 0x3(%r12), %eax
movzbl %r14b, %ebp
cmpl %ebp, %eax
jne 0x13884
movq 0xb0(%rsp), %rax
movw %ax, 0x38(%rsp)
movw %cx, 0x3c(%rsp)
movl %eax, %ecx
shrl $0x10, %ecx
movq 0x90(%rsp), %rdx
movq (%rdx), %rdx
subw 0x16(%rdx), %cx
movw %cx, 0x3a(%rsp)
shrq $0x30, %rax
addw 0x18(%rdx), %ax
movw %ax, 0x3e(%rsp)
leaq 0x38(%rsp), %rdi
movq 0x50(%rsp), %rsi
movl 0x30(%rsp), %ecx
callq 0x336d4
jmp 0x13884
testb %bl, %bl
je 0x13899
movzbl %r14b, %ebp
cmpb $0x1, %bl
jne 0x13974
movzwl 0x4(%r12), %esi
movsbl 0x6(%r12), %edx
movq 0x48(%rsp), %rdi
movl %ebp, %ecx
jmp 0x138c1
movzwl 0x4(%r12), %esi
movsbl 0x6(%r12), %eax
leal -0x1(%rax), %edx
xorl %ecx, %ecx
cmpl $0x1, %eax
sete %cl
pushq $0xc
popq %rax
cmovel %eax, %edx
subl %ecx, %esi
movzbl %r14b, %ecx
movq 0x48(%rsp), %rdi
callq 0x13f0f
movq 0x60(%rsp), %rcx
testb %al, %al
jne 0x1390d
cmpb $0x0, 0x2c(%rsp)
je 0x138f1
cmpb $0x1, %bl
jne 0x138f1
movzbl %r14b, %eax
movsbl 0x3(%r12), %edx
movq 0x90(%rsp), %rcx
cmpl %edx, %eax
je 0x1390d
cmpb $0x1, %bl
setne %al
orb 0x84(%rsp), %al
movq 0x88(%rsp), %rcx
movq 0x40(%rsp), %rbp
jne 0x13910
movq (%rcx), %rbp
movzbl %r14b, %edi
leaq 0xad(%rsp), %r12
movq %r12, %rsi
callq 0x28f4c
movzbl 0x37(%rsp), %eax
movl %eax, 0x18(%rsp)
pxor %xmm0, %xmm0
movdqu %xmm0, (%rsp)
andq $0x0, 0x10(%rsp)
leaq 0xb0(%rsp), %rdi
movq 0x50(%rsp), %rsi
movq %rbp, %rdx
movl 0x30(%rsp), %ecx
movq %r12, %r8
pushq $0x4
popq %r9
callq 0x3699c
incb %r14b
incl %r13d
addl 0x5c(%rsp), %r15d
movq 0x98(%rsp), %rbp
jmp 0x1376d
cmpb $0x2, %bl
jne 0x138cf
movzwl 0x4(%r12), %eax
movsbl 0x6(%r12), %ecx
leal 0x1(%rcx), %edx
xorl %esi, %esi
cmpl $0xc, %ecx
sete %sil
pushq $0x1
popq %rcx
cmovel %ecx, %edx
addl %eax, %esi
jmp 0x13890
movq 0x28(%rbp), %rax
movzbl 0x10(%rax), %eax
addl 0x7c(%rsp), %eax
addw %ax, 0xb2(%rsp)
addw %ax, 0xb6(%rsp)
movl 0x80(%rsp), %r13d
incl %r13d
movq 0xa0(%rsp), %r12
jmp 0x1366a
movb $0x1, %al
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq