// File: /workspace/github_c_makefile_star2_O2/OnionIoT[P]lv_example/lvgl/src/lv_objx/lv_cont.c
// Function: lv_cont_refr_layout
static void lv_cont_refr_layout(lv_obj_t * cont)
{
    lv_layout_t type = lv_cont_get_layout(cont);

    /*'cont' has to be at least 1 child*/
    if(lv_obj_get_child(cont, NULL) == NULL) return;

    if(type == LV_LAYOUT_OFF) return;

    if(type == LV_LAYOUT_CENTER) {
        lv_cont_layout_center(cont);
    } else if(type == LV_LAYOUT_COL_L || type == LV_LAYOUT_COL_M || type == LV_LAYOUT_COL_R) {
        lv_cont_layout_col(cont);
    } else if(type == LV_LAYOUT_ROW_T || type == LV_LAYOUT_ROW_M || type == LV_LAYOUT_ROW_B) {
        lv_cont_layout_row(cont);
    } else if(type == LV_LAYOUT_PRETTY) {
        lv_cont_layout_pretty(cont);
    } else if(type == LV_LAYOUT_GRID) {
        lv_cont_layout_grid(cont);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, %r14
callq 0x20d0e
movl %eax, %ebx
movq %r14, 0x8(%rsp)
movq %r14, %rdi
xorl %esi, %esi
callq 0x4e4d
testq %rax, %rax
je 0x21344
testb %bl, %bl
je 0x21344
movzbl %bl, %eax
cmpl $0x1, %eax
jne 0x20f45
movq 0x8(%rsp), %rbx
movq %rbx, %rdi
callq 0x6316
movq %rax, %r14
leaq 0x8(%rbx), %r15
movq %r15, %rdi
callq 0x27db9
movq %rax, %rbx
xorl %r13d, %r13d
pushq $0x4
popq %r12
xorl %ebp, %ebp
testq %rbx, %rbx
je 0x20ea1
movq %rbx, %rdi
callq 0x4e98
testb %al, %al
jne 0x20e91
movq %rbx, %rdi
movl %r12d, %esi
callq 0x66ab
testb %al, %al
jne 0x20e91
movq %rbx, %rdi
callq 0x5332
addl %eax, %ebp
addw 0x1e(%r14), %bp
incl %r13d
movq %r15, %rdi
movq %rbx, %rsi
callq 0x27e93
movq %rax, %rbx
jmp 0x20e5f
testl %r13d, %r13d
je 0x21344
subw 0x1e(%r14), %bp
pushq $0x1
popq %rsi
movq 0x8(%rsp), %rdi
callq 0x5f71
movw $0xfffe, %cx            # imm = 0xFFFE
movl %ebp, %eax
cwtd
idivw %cx
movl %eax, %ebp
movq %r15, %rdi
callq 0x27ea3
movq %rax, %r13
pushq $0x4
popq %r12
movw $0x2, %bx
testq %r13, %r13
je 0x2164a
movq %r13, %rdi
callq 0x4e98
testb %al, %al
jne 0x20f35
movq %r13, %rdi
movl %r12d, %esi
callq 0x66ab
testb %al, %al
jne 0x20f35
movq %r13, %rdi
callq 0x5332
cwtd
idivw %bx
addl %ebp, %eax
movswl %ax, %r8d
movq %r13, %rdi
movq 0x8(%rsp), %rsi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x5424
movq %r13, %rdi
callq 0x5332
addl %ebp, %eax
addw 0x1e(%r14), %ax
movl %eax, %ebp
movq %r15, %rdi
movq %r13, %rsi
callq 0x27dc6
movq %rax, %r13
jmp 0x20edc
movl %ebx, %ecx
andb $0xe, %cl
cmpb $0x2, %cl
setne %cl
cmpb $0x4, %bl
setne %dl
testb %cl, %dl
jne 0x20f9f
movq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x20d0e
movl %eax, %ebx
movq %r14, %rdi
callq 0x6316
movq %rax, %r14
cmpb $0x4, %bl
je 0x21358
movzbl %bl, %eax
cmpl $0x3, %eax
je 0x21353
cmpl $0x2, %eax
jne 0x21364
movzwl 0x1a(%r14), %ebx
movb $0x1, %bpl
jmp 0x21369
leal -0x5(%rbx), %ecx
cmpb $0x2, %cl
ja 0x21002
movq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x20d0e
movl %eax, %ebx
movq %r14, %rdi
callq 0x6316
movq %rax, %r15
movq %r14, %rdi
callq 0x47b9
movl %eax, %r12d
cmpb $0x7, %bl
je 0x214a5
movzbl %bl, %eax
cmpl $0x6, %eax
je 0x21497
cmpl $0x5, %eax
jne 0x214bd
movzwl 0x16(%r15), %ebp
cmpb $0x1, %r12b
sete %r13b
addb %r13b, %r13b
incb %r13b
jmp 0x214cd
cmpb $0x9, %bl
je 0x213fe
cmpl $0x8, %eax
jne 0x21344
movq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x6316
movq %rax, %r15
movq %r14, %rdi
callq 0x5308
movl %eax, %ebx
movq %r15, 0x28(%rsp)
movzwl 0x16(%r15), %eax
movl %eax, 0x10(%rsp)
leaq 0x8(%r14), %r15
movq %r15, %rdi
callq 0x27ea3
testq %rax, %rax
je 0x21344
movq %rax, %rbp
pushq $0x1
popq %rsi
movq 0x8(%rsp), %rdi
callq 0x5f71
movswl %bx, %eax
movl %eax, 0x1c(%rsp)
movq %r15, 0x40(%rsp)
testq %rbp, %rbp
je 0x2164a
movq 0x28(%rsp), %rax
movzwl 0x1c(%rax), %ebx
addw 0x1a(%rax), %bx
movl $0x0, 0x20(%rsp)
xorl %r13d, %r13d
movq %rbp, %r12
movq %rbp, %rdi
callq 0x4e98
movswl 0x10(%rsp), %r14d
testb %al, %al
jne 0x21111
movq %rbp, %rdi
pushq $0x4
popq %rsi
callq 0x66ab
testb %al, %al
jne 0x21111
movswl %bx, %r15d
movq %rbp, %rdi
callq 0x5308
cwtl
addl %r15d, %eax
cmpl 0x1c(%rsp), %eax
jg 0x212dc
movq %rbp, %rdi
callq 0x5308
addl %eax, %ebx
movq 0x28(%rsp), %rax
addw 0x1e(%rax), %bx
movq %rbp, %rdi
callq 0x5332
cmpw %ax, 0x20(%rsp)
movq 0x40(%rsp), %r15
jg 0x210ff
movq %rbp, %rdi
callq 0x5332
movl %eax, 0x20(%rsp)
incl %r13d
movq %rbp, %rdi
pushq $0x8
popq %rsi
callq 0x66ab
testb %al, %al
jne 0x21131
movq %r15, %rdi
movq %rbp, %rsi
callq 0x27dc6
movq %rax, %rbp
testl %r13d, %r13d
cmoveq %rax, %r12
testq %rax, %rax
jne 0x21091
xorl %ebp, %ebp
movswl 0x20(%rsp), %eax
movl %eax, 0x34(%rsp)
cmpl $0x2, %r13d
je 0x21172
cmpl $0x1, %r13d
je 0x2115d
testl %r13d, %r13d
jne 0x2122e
testq %rbp, %rbp
jne 0x212f9
jmp 0x2164a
movq %r12, %rdi
movq 0x8(%rsp), %rsi
pushq $0x2
popq %rdx
xorl %ecx, %ecx
movl %r14d, %r8d
jmp 0x2121b
movq %r15, %rdi
movq %r12, %rsi
callq 0x27dc6
movq %rax, %r14
movq %rax, 0x38(%rsp)
movq %r12, %rdi
callq 0x5308
movl %eax, %ebx
movq %r14, %rdi
callq 0x5308
addl %ebx, %eax
movswl %ax, %ecx
movl 0x1c(%rsp), %eax
subl %ecx, %eax
cltd
pushq $0x3
popq %rcx
idivl %ecx
movl %eax, %ebx
movq %r12, %rdi
callq 0x5332
movswl %ax, %ecx
movl 0x34(%rsp), %r14d
movl %r14d, %eax
subl %ecx, %eax
cltd
pushq $0x2
popq %rcx
idivl %ecx
movl 0x10(%rsp), %r13d
addl %r13d, %eax
movswl %bx, %ecx
movswl %ax, %r8d
movq %r12, %rdi
movq 0x8(%rsp), %r15
movq %r15, %rsi
pushq $0x1
popq %rdx
callq 0x5424
negl %ebx
movq 0x38(%rsp), %r12
movq %r12, %rdi
callq 0x5332
cwtl
subl %eax, %r14d
movl %r14d, %eax
cltd
pushq $0x2
popq %rcx
idivl %ecx
addl %r13d, %eax
movswl %bx, %ecx
movswl %ax, %r8d
movq %r12, %rdi
movq %r15, %rsi
movq 0x40(%rsp), %r15
pushq $0x3
popq %rdx
callq 0x5424
testq %rbp, %rbp
jne 0x2131a
jmp 0x2164a
movq 0x28(%rsp), %rsi
movzwl 0x1e(%rsi), %eax
imulw %r13w, %ax
subl %eax, %ebx
movswl %bx, %ecx
movl 0x1c(%rsp), %eax
subl %ecx, %eax
decl %r13d
xorl %edx, %edx
divl %r13d
movl %eax, 0x38(%rsp)
movzwl 0x1a(%rsi), %r14d
movl 0x34(%rsp), %r13d
testq %r12, %r12
je 0x21220
movq %r12, %rdi
callq 0x4e98
testb %al, %al
jne 0x212c3
movq %r12, %rdi
pushq $0x4
popq %rsi
callq 0x66ab
testb %al, %al
jne 0x212c3
movq %r12, %rdi
callq 0x5332
movswl %ax, %ecx
movl %r13d, %eax
subl %ecx, %eax
cltd
pushq $0x2
popq %rcx
idivl %ecx
addl 0x10(%rsp), %eax
movswl %ax, %r8d
movswl %r14w, %ebx
movq %r12, %rdi
movq 0x8(%rsp), %rsi
pushq $0x1
popq %rdx
movl %ebx, %ecx
callq 0x5424
addl 0x38(%rsp), %ebx
movq %r12, %rdi
callq 0x5308
movl %eax, %r14d
addl %ebx, %r14d
cmpq %rbp, %r12
je 0x21220
movq %r15, %rdi
movq %r12, %rsi
callq 0x27dc6
movq %rax, %r12
jmp 0x2125d
testl %r13d, %r13d
movq 0x40(%rsp), %r15
je 0x212f9
movq %r15, %rdi
movq %rbp, %rsi
callq 0x27e93
movq %rax, %rbp
jmp 0x21131
movq %rbp, %rdi
movq 0x8(%rsp), %rsi
pushq $0x2
popq %rdx
xorl %ecx, %ecx
movl %r14d, %r8d
callq 0x5424
movq %rbp, %rdi
callq 0x5332
movl %eax, 0x20(%rsp)
movl 0x20(%rsp), %ebx
addl 0x10(%rsp), %ebx
movq 0x28(%rsp), %rax
addw 0x1e(%rax), %bx
movq %r15, %rdi
movq %rbp, %rsi
callq 0x27dc6
movq %rax, %rbp
movl %ebx, %eax
movl %eax, 0x10(%rsp)
jmp 0x2106d
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movb $0x2, %bpl
jmp 0x21367
xorl %ebx, %ebx
subw 0x1c(%r14), %bx
movb $0x3, %bpl
jmp 0x21369
movb $0x1, %bpl
xorl %ebx, %ebx
pushq $0x1
popq %rsi
movq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x5f71
movq %r14, 0x10(%rsp)
movzwl 0x16(%r14), %r14d
addq $0x8, %r15
movq %r15, %rdi
callq 0x27ea3
movq %rax, %r13
movzbl %bpl, %r12d
movswl %bx, %ebx
testq %r13, %r13
je 0x2164a
movq %r13, %rdi
callq 0x4e98
testb %al, %al
jne 0x213ee
movq %r13, %rdi
pushq $0x4
popq %rsi
callq 0x66ab
testb %al, %al
jne 0x213ee
movswl %r14w, %ebp
movq %r13, %rdi
movq 0x8(%rsp), %rsi
movl %r12d, %edx
movl %ebx, %ecx
movl %ebp, %r8d
callq 0x5424
movq %r13, %rdi
callq 0x5332
movl %eax, %r14d
addl %ebp, %r14d
movq 0x10(%rsp), %rax
addw 0x1e(%rax), %r14w
movq %r15, %rdi
movq %r13, %rsi
callq 0x27dc6
movq %rax, %r13
jmp 0x21399
movq 0x8(%rsp), %rbx
movq %rbx, %rdi
callq 0x6316
movq %rax, %r12
movq %rbx, %rdi
callq 0x5308
movl %eax, %r15d
movq %rbx, %rdi
xorl %esi, %esi
callq 0x4e4d
movq %rax, %rdi
callq 0x5308
movl %eax, %ebp
movq %rbx, %rdi
callq 0x63d0
movl %eax, %r14d
movq %rbx, %rdi
xorl %esi, %esi
callq 0x4e4d
movq %rax, %rdi
callq 0x5332
movl %eax, 0x28(%rsp)
movswl %r14w, %ecx
movswl %bp, %edi
movq %r12, 0x20(%rsp)
movswl 0x1e(%r12), %esi
movl %esi, %r8d
addl %edi, %r8d
movl %ecx, %eax
cltd
idivl %r8d
movzwl %ax, %edx
cmpl $0x2, %edx
movq %rdx, 0x10(%rsp)
jb 0x2157b
movl %edx, %eax
imull %edi, %eax
subl %eax, %ecx
leal -0x1(%rdx), %r8d
movl %ecx, %eax
cltd
idivl %r8d
movl %eax, %ebx
addl %edi, %ebx
jmp 0x21598
cmpb $0x1, %r12b
sete %r13b
addb $0x7, %r13b
jmp 0x214cb
xorl %ebp, %ebp
subw 0x18(%r15), %bp
cmpb $0x1, %r12b
sete %r13b
addb %r13b, %r13b
orb $0x4, %r13b
jmp 0x214cd
cmpb $0x1, %r12b
sete %r13b
addb %r13b, %r13b
incb %r13b
xorl %ebp, %ebp
pushq $0x1
popq %rsi
movq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x5f71
xorl %eax, %eax
movb %r12b, 0x20(%rsp)
cmpb $0x1, %r12b
sete %al
movq %r15, 0x10(%rsp)
movzwl 0x1a(%r15,%rax,2), %ebx
leaq 0x8(%r14), %r15
movq %r15, %rdi
callq 0x27ea3
movq %rax, %r14
pushq $0x4
popq %r12
movzbl %r13b, %r13d
movswl %bp, %ebp
testq %r14, %r14
je 0x2164a
movq %r14, %rdi
callq 0x4e98
testb %al, %al
jne 0x2156b
movq %r14, %rdi
movl %r12d, %esi
callq 0x66ab
testb %al, %al
jne 0x2156b
movl %ebx, %eax
negl %eax
cmpb $0x1, 0x20(%rsp)
cmovnel %ebx, %eax
movswl %ax, %ecx
movq %r14, %rdi
movq 0x8(%rsp), %rsi
movl %r13d, %edx
movl %ebp, %r8d
callq 0x5424
movq %r14, %rdi
callq 0x5308
addl %ebx, %eax
movq 0x10(%rsp), %rcx
addw 0x1e(%rcx), %ax
movl %eax, %ebx
movq %r15, %rdi
movq %r14, %rsi
callq 0x27dc6
movq %rax, %r14
jmp 0x21510
movw $0x2, %cx
movl %r15d, %eax
cwtd
idivw %cx
movl %eax, %ecx
movl %ebp, %eax
cwtd
movw $0xfffe, %di            # imm = 0xFFFE
idivw %di
movl %eax, %ebx
addl %ecx, %ebx
addl %esi, 0x28(%rsp)
pushq $0x1
popq %rsi
movq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x5f71
movq 0x20(%rsp), %rax
movzwl 0x16(%rax), %r15d
movzwl 0x1a(%rax), %r13d
leaq 0x8(%r14), %r12
movq %r12, %rdi
callq 0x27ea3
movq %rax, %r14
xorl %ebp, %ebp
movswl %bx, %eax
movl %eax, 0x1c(%rsp)
testq %r14, %r14
je 0x2164a
movq %r14, %rdi
callq 0x4e98
testb %al, %al
jne 0x2163a
movq %r14, %rdi
pushq $0x4
popq %rsi
callq 0x66ab
testb %al, %al
jne 0x2163a
movswl %r15w, %edx
cmpl $0x2, 0x10(%rsp)
jb 0x21612
movswl %r13w, %r13d
movq %r14, %rdi
movl %r13d, %esi
callq 0x47df
addl %ebx, %r13d
jmp 0x2161e
movq %r14, %rdi
movl 0x1c(%rsp), %esi
callq 0x47df
incl %ebp
movzwl %bp, %eax
cmpl %eax, 0x10(%rsp)
ja 0x2163a
movq 0x20(%rsp), %rax
movzwl 0x1a(%rax), %r13d
addl 0x28(%rsp), %r15d
xorl %ebp, %ebp
movq %r12, %rdi
movq %r14, %rsi
callq 0x27dc6
movq %rax, %r14
jmp 0x215d3
pushq $0x1
popq %rsi
movq 0x8(%rsp), %rdi
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x5f9e