// File: /workspace/github_c_makefile_star2_O3/OnionIoT[P]lv_example/lvgl/src/lv_core/lv_indev.c
// Function: lv_indev_read_task
void lv_indev_read_task(lv_task_t * task)
{
    LV_LOG_TRACE("indev read task started");

    lv_indev_data_t data;

    indev_act = task->user_data;

    /*Read and process all indevs*/
    if(indev_act->driver.disp == NULL) return; /*Not assigned to any displays*/

    /*Handle reset query before processing the point*/
    indev_proc_reset_query_handler(indev_act);

    if(indev_act->proc.disabled) return;
    bool more_to_read;
    do {
        /*Read the data*/
        more_to_read = lv_indev_read(indev_act, &data);

        /*The active object might deleted even in the read function*/
        indev_proc_reset_query_handler(indev_act);
        indev_obj_act = NULL;

        indev_act->proc.state = data.state;

        /*Save the last activity time*/
        if(indev_act->proc.state == LV_INDEV_STATE_PR) {
            indev_act->driver.disp->last_activity_time = lv_tick_get();
        } else if(indev_act->driver.type == LV_INDEV_TYPE_ENCODER && data.enc_diff) {
            indev_act->driver.disp->last_activity_time = lv_tick_get();
        }

        if(indev_act->driver.type == LV_INDEV_TYPE_POINTER) {
            indev_pointer_proc(indev_act, &data);
        } else if(indev_act->driver.type == LV_INDEV_TYPE_KEYPAD) {
            indev_keypad_proc(indev_act, &data);
        } else if(indev_act->driver.type == LV_INDEV_TYPE_ENCODER) {
            indev_encoder_proc(indev_act, &data);
        } else if(indev_act->driver.type == LV_INDEV_TYPE_BUTTON) {
            indev_button_proc(indev_act, &data);
        }
        /*Handle reset query if it happened in during processing*/
        indev_proc_reset_query_handler(indev_act);
    } while(more_to_read);

    /*End of indev processing, so no act indev*/
    indev_act     = NULL;
    indev_obj_act = NULL;

    LV_LOG_TRACE("indev read task finished");
}

// Assembly:
movq 0x10(%rdi), %rdi
movq %rdi, 0x5cff5(%rip)     # 0x5fe98
cmpq $0x0, 0x18(%rdi)
je 0x3789
movb 0x78(%rdi), %al
testb $0x2, %al
je 0x2eda
xorps %xmm0, %xmm0
movups %xmm0, 0x50(%rdi)
xorl %ecx, %ecx
movq %rcx, 0x60(%rdi)
andb $-0x4, 0x68(%rdi)
movq %rcx, 0x70(%rdi)
andb $-0x4, %al
movq %rcx, 0x44(%rdi)
movb %al, 0x78(%rdi)
movq %rcx, 0x5cfc6(%rip)     # 0x5fea0
testb $0x4, %al
jne 0x3789
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
leaq 0x8(%rsp), %rbx
xorl %r12d, %r12d
movq %rbx, %rsi
callq 0x876d
movl %eax, %ebp
movq 0x5cf8f(%rip), %r14     # 0x5fe98
movb 0x78(%r14), %al
testb $0x2, %al
je 0x2f30
xorps %xmm0, %xmm0
movups %xmm0, 0x50(%r14)
movq %r12, 0x60(%r14)
andb $-0x4, 0x68(%r14)
movq %r12, 0x70(%r14)
andb $-0x4, %al
movq %r12, 0x44(%r14)
movb %al, 0x78(%r14)
movq $0x0, 0x5cf65(%rip) # 0x5fea0
movb 0x16(%rsp), %al
movb %al, 0x30(%r14)
cmpb $0x1, %al
je 0x2f56
movb (%r14), %al
cmpb $0x4, %al
jne 0x2f6f
cmpw $0x0, 0x14(%rsp)
je 0x2f6f
callq 0x87b6
movq 0x5cf36(%rip), %r14     # 0x5fe98
movq 0x18(%r14), %rcx
movl %eax, 0x19c(%rcx)
movb (%r14), %al
movzbl %al, %eax
decl %eax
cmpl $0x3, %eax
ja 0x3155
leaq 0x3c17c(%rip), %rcx     # 0x3f100
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x80(%r14), %rdi
movzwl 0x8(%rsp), %eax
testq %rdi, %rdi
je 0x312a
cmpw %ax, 0x3c(%r14)
jne 0x3115
movzwl 0xa(%rsp), %ecx
cmpw %cx, 0x3e(%r14)
jne 0x311a
jmp 0x312a
movq 0x90(%r14), %rax
movl 0x10(%rsp), %ecx
movzwl (%rax,%rcx,4), %edx
leaq 0x30(%r14), %rdi
movw %dx, 0x38(%r14)
movzwl 0x2(%rax,%rcx,4), %eax
movw %ax, 0x3a(%r14)
cmpw %dx, 0x3c(%r14)
jne 0x3148
cmpw %ax, 0x3e(%r14)
jne 0x3148
cmpb $0x1, 0x16(%rsp)
jne 0x3148
callq 0x38c7
jmp 0x314d
movb 0x16(%rsp), %al
movb 0x78(%r14), %cl
cmpb $0x1, %al
jne 0x3026
movl %ecx, %edx
andb $0x8, %dl
jne 0x3155
testb $0x8, %cl
jne 0x3194
movb 0x38(%r14), %r13b
jmp 0x31a6
cmpb $0x1, 0x16(%rsp)
movb 0x78(%r14), %al
jne 0x304c
testb $0x8, %al
je 0x3063
jmp 0x3155
testb $0x8, %al
je 0x3063
movl $0x0, 0x70(%r14)
andb $-0xa, %al
movb %al, 0x78(%r14)
movb $0x0, 0x38(%r14)
movq 0x88(%r14), %r15
testq %r15, %r15
je 0x3155
movq %r15, %rdi
callq 0x2a19
movq %rax, 0x5ce1e(%rip)     # 0x5fea0
testq %rax, %rax
je 0x3155
movl 0x3c(%r14), %ecx
movl 0xc(%rsp), %edx
movl %edx, 0x3c(%r14)
movb 0x38(%r14), %dl
movb 0x16(%rsp), %sil
movb %sil, 0x38(%r14)
movl %esi, %edi
xorb $0x1, %dil
movl %edi, %r8d
orb %dl, %r8b
jne 0x327b
callq 0x87b6
movl %eax, 0x70(%r14)
movl 0xc(%rsp), %esi
cmpl $0xa, %esi
jg 0x3334
cmpl $0x9, %esi
je 0x359b
cmpl $0xa, %esi
jne 0x3577
movq %r15, %rdi
movl $0xa, %esi
callq 0x29cc
movq 0x5cdae(%rip), %rdi     # 0x5fea0
movl $0x8, %esi
xorl %edx, %edx
callq *0x30(%rdi)
testb $0x2, 0x78(%r14)
jne 0x375b
movq 0x5cd92(%rip), %rdi     # 0x5fea0
xorl %esi, %esi
jmp 0x335f
movzwl 0xa(%rsp), %ecx
movswl %ax, %esi
movswl %cx, %edx
callq 0x4ad8
movzwl 0x8(%rsp), %eax
leaq 0x30(%r14), %rdi
movw %ax, 0x38(%r14)
movzwl 0xa(%rsp), %eax
movw %ax, 0x3a(%r14)
cmpb $0x1, 0x30(%r14)
je 0x3005
callq 0x3e5b
movl 0x38(%r14), %eax
movl %eax, 0x3c(%r14)
movq 0x5cd3c(%rip), %rdi     # 0x5fe98
movb 0x78(%rdi), %al
testb $0x2, %al
je 0x3186
xorps %xmm0, %xmm0
movups %xmm0, 0x50(%rdi)
movq %r12, 0x60(%rdi)
andb $-0x4, 0x68(%rdi)
movq %r12, 0x70(%rdi)
andb $-0x4, %al
movq %r12, 0x44(%rdi)
movb %al, 0x78(%rdi)
movq %r12, 0x5cd1a(%rip)     # 0x5fea0
testb %bpl, %bpl
jne 0x2ef8
jmp 0x376b
movl $0x0, 0x70(%r14)
andb $-0xa, %cl
movb %cl, 0x78(%r14)
xorl %r13d, %r13d
movb %al, 0x38(%r14)
movl 0xc(%rsp), %eax
movl %eax, 0x3c(%r14)
movq 0x88(%r14), %r15
testq %r15, %r15
je 0x3155
movq %r15, %rdi
callq 0x2a19
movq %rax, 0x5ccd3(%rip)     # 0x5fea0
testq %rax, %rax
je 0x3155
cmpb $0x0, 0x16(%rsp)
je 0x32f1
movq %r15, %rdi
callq 0x2a19
movq %rax, 0x5ccb4(%rip)     # 0x5fea0
testq %rax, %rax
leaq 0x8(%rsp), %rbx
je 0x3155
movb 0x16(%rsp), %cl
cmpb $0x1, %cl
jne 0x33fe
testb %r13b, %r13b
jne 0x33fe
movb $0x0, 0x7(%rsp)
movq %rax, %rdi
movl $0x13, %esi
leaq 0x7(%rsp), %rdx
callq *0x30(%rax)
callq 0x87b6
movl %eax, 0x70(%r14)
movq %r15, %rdi
callq 0x2b0b
testb %al, %al
jne 0x3245
cmpb $0x0, 0x7(%rsp)
jne 0x375b
movq 0x5cc54(%rip), %rdi     # 0x5fea0
movl $0x8, %esi
xorl %edx, %edx
callq *0x30(%rdi)
testb $0x2, 0x78(%r14)
jne 0x375b
movq 0x5cc38(%rip), %rdi     # 0x5fea0
xorl %esi, %esi
xorl %edx, %edx
callq 0x5018
testb $0x2, 0x78(%r14)
jmp 0x375b
xorb $0x1, %dl
orb %dl, %dil
jne 0x336b
testb $0x1, 0x78(%r14)
jne 0x3518
movl 0x70(%r14), %edi
callq 0x87cd
movzwl 0x2a(%r14), %edx
movb 0x78(%r14), %cl
cmpl %edx, %eax
jbe 0x350f
orb $0x1, %cl
movb %cl, 0x78(%r14)
cmpl $0xa, 0xc(%rsp)
jne 0x375b
callq 0x87b6
movl %eax, 0x74(%r14)
movq 0x5cbd2(%rip), %rdi     # 0x5fea0
movl $0xc, %esi
xorl %edx, %edx
callq *0x30(%rdi)
testb $0x2, 0x78(%r14)
jne 0x375b
movq 0x5cbb6(%rip), %rdi     # 0x5fea0
movl $0x4, %esi
jmp 0x335f
movq %r15, %rdi
callq 0x2b0b
movzwl 0x14(%rsp), %ecx
testb %al, %al
je 0x3480
testw %cx, %cx
js 0x35c9
je 0x31dd
xorl %ebx, %ebx
movq %r15, %rdi
movl $0x13, %esi
callq 0x29cc
incl %ebx
movswl 0x14(%rsp), %eax
cmpl %eax, %ebx
jl 0x3317
jmp 0x31dd
cmpl $0xb, %esi
je 0x3584
cmpl $0x1b, %esi
jne 0x3577
movq %r15, %rdi
movl $0x1b, %esi
callq 0x29cc
movq 0x5cb46(%rip), %rdi     # 0x5fea0
movl $0x12, %esi
xorl %edx, %edx
callq 0x5018
jmp 0x375b
orb %dl, %sil
jne 0x375b
movl %ecx, 0xc(%rsp)
cmpl $0xa, %ecx
jne 0x35b2
movq %rax, %rdi
movl $0xb, %esi
xorl %edx, %edx
callq *0x30(%rax)
movb 0x78(%r14), %al
testb $0x2, %al
jne 0x375b
testb $0x1, %al
jne 0x33bc
movq 0x5cafb(%rip), %rdi     # 0x5fea0
movl $0x3, %esi
xorl %edx, %edx
callq 0x5018
testb $0x2, 0x78(%r14)
jne 0x375b
movq 0x5cadd(%rip), %rdi     # 0x5fea0
movl $0x6, %esi
xorl %edx, %edx
callq 0x5018
testb $0x2, 0x78(%r14)
jne 0x375b
movq 0x5cabf(%rip), %rdi     # 0x5fea0
movl $0x7, %esi
xorl %edx, %edx
callq 0x5018
movb 0x78(%r14), %al
testb $0x2, %al
je 0x35b6
jmp 0x375b
cmpb $0x1, %cl
jne 0x34a9
cmpb $0x1, %r13b
jne 0x34a9
testb $0x1, 0x78(%r14)
jne 0x375b
movl 0x70(%r14), %edi
callq 0x87cd
movzwl 0x2a(%r14), %ecx
cmpl %ecx, %eax
jbe 0x375b
movb $0x0, 0x7(%rsp)
movq 0x5ca62(%rip), %rdi     # 0x5fea0
movl $0x13, %esi
leaq 0x7(%rsp), %rdx
callq *0x30(%rdi)
cmpb $0x1, 0x7(%rsp)
jne 0x3724
movq %r15, %rdi
callq 0x2a60b
testb %al, %al
jne 0x3756
movq %r15, %rdi
callq 0x2b0b
xorb $0x1, %al
movzbl %al, %esi
movq %r15, %rdi
callq 0x27a6
jmp 0x3756
testw %cx, %cx
js 0x35ea
je 0x31dd
xorl %ebx, %ebx
movq %r15, %rdi
callq 0x284e
incl %ebx
movswl 0x14(%rsp), %eax
cmpl %eax, %ebx
jl 0x3491
jmp 0x31dd
testb %cl, %cl
jne 0x375b
cmpb $0x1, %r13b
jne 0x375b
movb $0x0, 0x7(%rsp)
movq %rax, %rdi
movl $0x13, %esi
leaq 0x7(%rsp), %rdx
callq *0x30(%rax)
movb 0x7(%rsp), %al
testb %al, %al
je 0x3606
testb $0x2, 0x80(%r15)
jne 0x3687
testb %al, %al
je 0x3715
testb $0x1, 0x78(%r14)
jne 0x3715
movq %r15, %rdi
movl $0x1, %esi
callq 0x27a6
jmp 0x3715
testb $0x1, %cl
je 0x375b
movl 0x74(%r14), %edi
callq 0x87cd
movzwl 0x2c(%r14), %ecx
cmpl %ecx, %eax
jbe 0x375b
callq 0x87b6
movl %eax, 0x74(%r14)
movl 0xc(%rsp), %esi
cmpl $0x9, %esi
je 0x359b
cmpl $0xb, %esi
je 0x3584
cmpl $0xa, %esi
jne 0x3577
movq 0x5c94f(%rip), %rdi     # 0x5fea0
movl $0xd, %esi
xorl %edx, %edx
callq *0x30(%rdi)
testb $0x2, 0x78(%r14)
jne 0x375b
movq 0x5c933(%rip), %rdi     # 0x5fea0
movl $0x5, %esi
jmp 0x335f
movq %r15, %rdi
callq 0x29cc
jmp 0x375b
movq %r15, %rdi
xorl %esi, %esi
callq 0x27a6
movq %r15, %rdi
callq 0x29a7
jmp 0x375b
movq %r15, %rdi
xorl %esi, %esi
callq 0x27a6
movq %r15, %rdi
callq 0x284e
jmp 0x375b
movb 0x78(%r14), %al
movl $0x0, 0x70(%r14)
andb $-0x2, %al
movb %al, 0x78(%r14)
jmp 0x375b
xorl %ebx, %ebx
movq %r15, %rdi
movl $0x14, %esi
callq 0x29cc
incl %ebx
movswl 0x14(%rsp), %eax
negl %eax
cmpl %eax, %ebx
jl 0x35cb
jmp 0x31dd
xorl %ebx, %ebx
movq %r15, %rdi
callq 0x29a7
incl %ebx
movswl 0x14(%rsp), %eax
negl %eax
cmpl %eax, %ebx
jl 0x35ec
jmp 0x31dd
movq 0x5c893(%rip), %rdi     # 0x5fea0
movl $0xb, %esi
xorl %edx, %edx
callq *0x30(%rdi)
movb 0x78(%r14), %al
testb $0x2, %al
jne 0x375b
testb $0x1, %al
jne 0x363e
movq 0x5c872(%rip), %rdi     # 0x5fea0
movl $0x3, %esi
xorl %edx, %edx
callq 0x5018
movb 0x78(%r14), %al
testb $0x2, %al
jne 0x375b
movq 0x5c853(%rip), %rdi     # 0x5fea0
movl $0x6, %esi
xorl %edx, %edx
callq 0x5018
testb $0x2, 0x78(%r14)
jne 0x375b
movq 0x5c835(%rip), %rdi     # 0x5fea0
movl $0x7, %esi
xorl %edx, %edx
callq 0x5018
testb $0x2, 0x78(%r14)
je 0x3715
jmp 0x375b
testb $0x1, 0x78(%r14)
je 0x369a
movq %r15, %rdi
callq 0x2a60b
testb %al, %al
je 0x3715
movq 0x5c7ff(%rip), %rdi     # 0x5fea0
movl $0xb, %esi
xorl %edx, %edx
callq *0x30(%rdi)
testb $0x2, 0x78(%r14)
jne 0x375b
movq 0x5c7e3(%rip), %rdi     # 0x5fea0
movl $0x3, %esi
xorl %edx, %edx
callq 0x5018
testb $0x2, 0x78(%r14)
jne 0x375b
movq 0x5c7c5(%rip), %rdi     # 0x5fea0
movl $0x6, %esi
xorl %edx, %edx
callq 0x5018
testb $0x2, 0x78(%r14)
jne 0x375b
movq 0x5c7ab(%rip), %rdi     # 0x5fea0
movl $0x7, %esi
xorl %edx, %edx
callq 0x5018
testb $0x2, 0x78(%r14)
jne 0x375b
movq %r15, %rdi
movl $0xa, %esi
callq 0x29cc
movl $0x0, 0x70(%r14)
andb $-0x2, 0x78(%r14)
jmp 0x375b
movq 0x5c775(%rip), %rdi     # 0x5fea0
movl $0xc, %esi
xorl %edx, %edx
callq *0x30(%rdi)
testb $0x2, 0x78(%r14)
jne 0x375b
movq 0x5c75d(%rip), %rdi     # 0x5fea0
movl $0x4, %esi
xorl %edx, %edx
callq 0x5018
testb $0x2, 0x78(%r14)
jne 0x375b
orb $0x1, 0x78(%r14)
movq $0x0, 0x5c73a(%rip) # 0x5fea0
jmp 0x3155
xorl %eax, %eax
movq %rax, 0x5c724(%rip)     # 0x5fe98
movq %rax, 0x5c725(%rip)     # 0x5fea0
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq