// File: /workspace/github_c_makefile_star2_O0/OnionIoT[P]lv_example/lvgl/src/lv_objx/lv_list.c
// Function: lv_list_up
void lv_list_up(const lv_obj_t * list)
{
    LV_ASSERT_OBJ(list, LV_OBJX_NAME);

    /*Search the first list element which 'y' coordinate is below the parent
     * and position the list to show this element on the bottom*/
    lv_obj_t * scrl = lv_page_get_scrl(list);
    lv_obj_t * e;
    lv_obj_t * e_prev = NULL;

    e                 = lv_list_get_prev_btn(list, NULL);
    while(e != NULL) {
        if(e->coords.y2 <= list->coords.y2) {
            if(e_prev != NULL) {
                lv_coord_t new_y = lv_obj_get_height(list) - (lv_obj_get_y(e_prev) + lv_obj_get_height(e_prev));
                if(lv_list_get_anim_time(list) == 0) {
                    lv_obj_set_y(scrl, new_y);
                } else {
#if LV_USE_ANIMATION
                    lv_anim_t a;
                    a.var            = scrl;
                    a.start          = lv_obj_get_y(scrl);
                    a.end            = new_y;
                    a.exec_cb        = (lv_anim_exec_xcb_t)lv_obj_set_y;
                    a.path_cb        = lv_anim_path_linear;
                    a.ready_cb       = NULL;
                    a.act_time       = 0;
                    a.time           = LV_LIST_DEF_ANIM_TIME;
                    a.playback       = 0;
                    a.playback_pause = 0;
                    a.repeat         = 0;
                    a.repeat_pause   = 0;
                    lv_anim_create(&a);
#endif
                }
            }
            break;
        }
        e_prev = e;
        e      = lv_list_get_prev_btn(list, e);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
callq 0xd120
testb $0x1, %al
jne 0x2e8eb
movq -0x8(%rbp), %rsi
leaq 0x39818(%rip), %rdi     # 0x680fc
callq 0xd410
jmp 0x2e8e9
movq -0x8(%rbp), %rdi
callq 0x3e970
movq %rax, -0x10(%rbp)
movq $0x0, -0x20(%rbp)
movq -0x8(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x2e1b0
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x2ea27
movq -0x18(%rbp), %rax
movswl 0x26(%rax), %eax
movq -0x8(%rbp), %rcx
movswl 0x26(%rcx), %ecx
cmpl %ecx, %eax
jg 0x2ea09
cmpq $0x0, -0x20(%rbp)
je 0x2ea07
movq -0x8(%rbp), %rdi
callq 0x8350
cwtl
movl %eax, -0x64(%rbp)
movq -0x20(%rbp), %rdi
callq 0x73c0
cwtl
movl %eax, -0x68(%rbp)
movq -0x20(%rbp), %rdi
callq 0x8350
movl -0x68(%rbp), %ecx
movw %ax, %dx
movl -0x64(%rbp), %eax
movswl %dx, %edx
addl %edx, %ecx
subl %ecx, %eax
movw %ax, -0x22(%rbp)
movq -0x8(%rbp), %rdi
callq 0x2ea30
movzwl %ax, %eax
cmpl $0x0, %eax
jne 0x2e996
movq -0x10(%rbp), %rdi
movswl -0x22(%rbp), %esi
callq 0x8120
jmp 0x2ea05
movq -0x10(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x10(%rbp), %rdi
callq 0x73c0
cwtl
movl %eax, -0x40(%rbp)
movswl -0x22(%rbp), %eax
movl %eax, -0x3c(%rbp)
leaq -0x26899(%rip), %rax    # 0x8120
movq %rax, -0x58(%rbp)
leaq 0x15a6c(%rip), %rax     # 0x44430
movq %rax, -0x50(%rbp)
movq $0x0, -0x48(%rbp)
movw $0x0, -0x36(%rbp)
movw $0x64, -0x38(%rbp)
movb -0x30(%rbp), %al
andb $-0x2, %al
orb $0x0, %al
movb %al, -0x30(%rbp)
movw $0x0, -0x34(%rbp)
movb -0x30(%rbp), %al
andb $-0x3, %al
orb $0x0, %al
movb %al, -0x30(%rbp)
movw $0x0, -0x32(%rbp)
leaq -0x60(%rbp), %rdi
callq 0x444a0
jmp 0x2ea07
jmp 0x2ea27
movq -0x18(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x2e1b0
movq %rax, -0x18(%rbp)
jmp 0x2e911
addq $0x70, %rsp
popq %rbp
retq
nopl (%rax)