// File: /workspace/github_c_makefile_star2_O1/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), %rax
movq %rax, 0x5cf69(%rip)     # 0x5fe98
cmpq $0x0, 0x18(%rax)
je 0x3783
movb 0x78(%rax), %cl
testb $0x2, %cl
je 0x2f68
xorps %xmm0, %xmm0
movups %xmm0, 0x50(%rax)
xorl %edx, %edx
movq %rdx, 0x60(%rax)
andb $-0x4, 0x68(%rax)
movq %rdx, 0x70(%rax)
andb $-0x4, %cl
movq %rdx, 0x44(%rax)
movb %cl, 0x78(%rax)
movq %rdx, 0x5cf38(%rip)     # 0x5fea0
testb $0x4, 0x78(%rax)
jne 0x3783
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
leaq 0x8(%rsp), %r13
xorl %r12d, %r12d
movq 0x5cf09(%rip), %rdi     # 0x5fe98
movq %r13, %rsi
callq 0x87f5
movl %eax, %ebp
movq 0x5cef8(%rip), %rax     # 0x5fe98
movb 0x78(%rax), %cl
testb $0x2, %cl
je 0x2fcc
xorps %xmm0, %xmm0
movups %xmm0, 0x50(%rax)
movq %r12, 0x60(%rax)
andb $-0x4, 0x68(%rax)
movq %r12, 0x70(%rax)
andb $-0x4, %cl
movq %r12, 0x44(%rax)
movb %cl, 0x78(%rax)
movq %r12, 0x5ced4(%rip)     # 0x5fea0
movq $0x0, 0x5cec9(%rip) # 0x5fea0
movb 0x16(%rsp), %cl
movb %cl, 0x30(%rax)
cmpb $0x1, %cl
je 0x2ff0
cmpb $0x4, (%rax)
jne 0x3006
cmpw $0x0, 0x14(%rsp)
je 0x3006
callq 0x883e
movq 0x5ce9c(%rip), %rcx     # 0x5fe98
movq 0x18(%rcx), %rcx
movl %eax, 0x19c(%rcx)
movq 0x5ce8b(%rip), %r14     # 0x5fe98
movzbl (%r14), %eax
decl %eax
cmpl $0x3, %eax
ja 0x30c9
leaq 0x3c03d(%rip), %rcx     # 0x3f060
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x80(%r14), %rdi
testq %rdi, %rdi
je 0x305d
movzwl 0x8(%rsp), %eax
cmpw %ax, 0x3c(%r14)
jne 0x3050
movzwl 0x3e(%r14), %ecx
cmpw 0xa(%rsp), %cx
je 0x305d
movswl 0xa(%rsp), %edx
movswl %ax, %esi
callq 0x4ae2
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 0x30b5
jmp 0x30bc
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 0x30bc
cmpw %ax, 0x3e(%r14)
jne 0x30bc
cmpb $0x1, 0x16(%rsp)
jne 0x30bc
callq 0x38c1
jmp 0x30c1
callq 0x3e67
movl 0x38(%r14), %eax
movl %eax, 0x3c(%r14)
movq 0x5cdc8(%rip), %rax     # 0x5fe98
movb 0x78(%rax), %cl
testb $0x2, %cl
je 0x30fc
xorps %xmm0, %xmm0
movups %xmm0, 0x50(%rax)
movq %r12, 0x60(%rax)
andb $-0x4, 0x68(%rax)
movq %r12, 0x70(%rax)
andb $-0x4, %cl
movq %r12, 0x44(%rax)
movb %cl, 0x78(%rax)
movq %r12, 0x5cda4(%rip)     # 0x5fea0
testb %bpl, %bpl
jne 0x2f88
jmp 0x3765
movb 0x16(%rsp), %al
cmpb $0x1, %al
jne 0x3119
testb $0x8, 0x78(%r14)
jne 0x30c9
movb 0x78(%r14), %cl
testb $0x8, %cl
je 0x3136
movl $0x0, 0x70(%r14)
andb $-0xa, %cl
movb %cl, 0x78(%r14)
movb $0x0, 0x38(%r14)
movb 0x38(%r14), %bl
movb %al, 0x38(%r14)
movl 0xc(%rsp), %eax
movl %eax, 0x3c(%r14)
movq 0x88(%r14), %r15
testq %r15, %r15
je 0x30c9
movq %r15, %rdi
callq 0x2a39
movq %rax, 0x5cd3b(%rip)     # 0x5fea0
testq %rax, %rax
je 0x30c9
cmpb $0x0, 0x16(%rsp)
je 0x3336
movq %r15, %rdi
callq 0x2a39
movq %rax, 0x5cd18(%rip)     # 0x5fea0
testq %rax, %rax
leaq 0x8(%rsp), %r13
je 0x30c9
movb 0x16(%rsp), %cl
movl %ecx, %edx
xorb $0x1, %dl
movl %edx, %esi
orb %bl, %sil
jne 0x337a
movb $0x0, 0x7(%rsp)
movq %rax, %rdi
movl $0x13, %esi
leaq 0x7(%rsp), %rdx
callq *0x30(%rax)
callq 0x883e
movl %eax, 0x70(%r14)
movq %r15, %rdi
callq 0x2b2b
testb %al, %al
jne 0x3299
cmpb $0x0, 0x7(%rsp)
jne 0x358f
jmp 0x3299
cmpb $0x1, 0x16(%rsp)
jne 0x31fa
testb $0x8, 0x78(%r14)
jne 0x30c9
movb 0x78(%r14), %al
testb $0x8, %al
je 0x3215
movl $0x0, 0x70(%r14)
andb $-0xa, %al
movb %al, 0x78(%r14)
movb $0x0, 0x38(%r14)
movq 0x88(%r14), %r15
testq %r15, %r15
je 0x30c9
movq %r15, %rdi
callq 0x2a39
movq %rax, 0x5cc6c(%rip)     # 0x5fea0
testq %rax, %rax
je 0x30c9
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 0x32c3
callq 0x883e
movl %eax, 0x70(%r14)
movl 0xc(%rsp), %esi
cmpl $0xa, %esi
jg 0x33f4
cmpl $0x9, %esi
je 0x3578
cmpl $0xa, %esi
jne 0x359f
movq %r15, %rdi
movl $0xa, %esi
callq 0x29e6
movq 0x5cc00(%rip), %rdi     # 0x5fea0
movl $0x8, %esi
xorl %edx, %edx
callq *0x30(%rdi)
testb $0x2, 0x78(%r14)
jne 0x358f
movq 0x5cbe4(%rip), %rdi     # 0x5fea0
xorl %esi, %esi
jmp 0x341f
xorb $0x1, %dl
orb %dl, %dil
jne 0x342b
testb $0x1, 0x78(%r14)
jne 0x3496
movl 0x70(%r14), %edi
callq 0x8855
movzwl 0x2a(%r14), %ecx
cmpl %ecx, %eax
jbe 0x3496
orb $0x1, 0x78(%r14)
cmpl $0xa, 0xc(%rsp)
jne 0x358f
callq 0x883e
movl %eax, 0x74(%r14)
movq 0x5cb90(%rip), %rdi     # 0x5fea0
movl $0xc, %esi
xorl %edx, %edx
callq *0x30(%rdi)
testb $0x2, 0x78(%r14)
jne 0x358f
movq 0x5cb74(%rip), %rdi     # 0x5fea0
movl $0x4, %esi
jmp 0x341f
movq %r15, %rdi
callq 0x2b2b
testb %al, %al
je 0x3467
cmpw $0x0, 0x14(%rsp)
js 0x35a9
je 0x3179
xorl %r13d, %r13d
movq %r15, %rdi
movl $0x13, %esi
callq 0x29e6
incl %r13d
movswl 0x14(%rsp), %eax
cmpl %eax, %r13d
jl 0x335b
jmp 0x3179
xorb $0x1, %bl
orb %bl, %dl
jne 0x350c
testb $0x1, 0x78(%r14)
jne 0x358f
movl 0x70(%r14), %edi
callq 0x8855
movzwl 0x2a(%r14), %ecx
cmpl %ecx, %eax
jbe 0x358f
movb $0x0, 0x7(%rsp)
movq 0x5caee(%rip), %rdi     # 0x5fea0
movl $0x13, %esi
leaq 0x7(%rsp), %rdx
callq *0x30(%rdi)
cmpb $0x1, 0x7(%rsp)
jne 0x3714
movq %r15, %rdi
callq 0x29fcc
testb %al, %al
jne 0x374e
movq %r15, %rdi
callq 0x2b2b
xorb $0x1, %al
movzbl %al, %esi
movq %r15, %rdi
callq 0x27ad
jmp 0x374e
cmpl $0xb, %esi
je 0x3564
cmpl $0x1b, %esi
jne 0x359f
movq %r15, %rdi
movl $0x1b, %esi
callq 0x29e6
movq 0x5ca86(%rip), %rdi     # 0x5fea0
movl $0x12, %esi
xorl %edx, %edx
callq 0x4fea
jmp 0x358a
orb %dl, %sil
jne 0x358f
movl %ecx, 0xc(%rsp)
cmpl $0xa, %ecx
jne 0x3702
movq %rax, %rdi
movl $0xb, %esi
xorl %edx, %edx
callq *0x30(%rax)
movb 0x78(%r14), %al
testb $0x2, %al
jne 0x358f
testb $0x1, %al
je 0x3609
jmp 0x3627
cmpw $0x0, 0x14(%rsp)
js 0x35cd
je 0x3179
xorl %r13d, %r13d
movq %r15, %rdi
callq 0x2860
incl %r13d
movswl 0x14(%rsp), %eax
cmpl %eax, %r13d
jl 0x347c
jmp 0x3179
testb $0x1, 0x78(%r14)
je 0x358f
movl 0x74(%r14), %edi
callq 0x8855
movzwl 0x2c(%r14), %ecx
cmpl %ecx, %eax
jbe 0x358f
callq 0x883e
movl %eax, 0x74(%r14)
movl 0xc(%rsp), %esi
cmpl $0x9, %esi
je 0x3578
cmpl $0xb, %esi
je 0x3564
cmpl $0xa, %esi
jne 0x3758
movq 0x5c9ba(%rip), %rdi     # 0x5fea0
movl $0xd, %esi
xorl %edx, %edx
callq *0x30(%rdi)
testb $0x2, 0x78(%r14)
jne 0x358f
movq 0x5c99e(%rip), %rdi     # 0x5fea0
movl $0x5, %esi
jmp 0x341f
orb %bl, %cl
jne 0x358f
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 0x35ec
testb $0x2, 0x80(%r15)
jne 0x3668
testb %al, %al
je 0x3702
testb $0x1, 0x78(%r14)
jne 0x3702
movq %r15, %rdi
movl $0x1, %esi
callq 0x27ad
jmp 0x3702
movq %r15, %rdi
xorl %esi, %esi
callq 0x27ad
movq %r15, %rdi
callq 0x29c1
jmp 0x358a
movq %r15, %rdi
xorl %esi, %esi
callq 0x27ad
movq %r15, %rdi
callq 0x2860
testb $0x2, 0x78(%r14)
movq $0x0, 0x5c906(%rip) # 0x5fea0
jmp 0x30c9
movq %r15, %rdi
callq 0x29e6
jmp 0x358f
xorl %r13d, %r13d
movq %r15, %rdi
movl $0x14, %esi
callq 0x29e6
incl %r13d
movswl 0x14(%rsp), %eax
negl %eax
cmpl %eax, %r13d
jl 0x35ac
jmp 0x3179
xorl %r13d, %r13d
movq %r15, %rdi
callq 0x29c1
incl %r13d
movswl 0x14(%rsp), %eax
negl %eax
cmpl %eax, %r13d
jl 0x35d0
jmp 0x3179
movq 0x5c8ad(%rip), %rdi     # 0x5fea0
movl $0xb, %esi
xorl %edx, %edx
callq *0x30(%rdi)
movb 0x78(%r14), %al
testb $0x2, %al
jne 0x358f
testb $0x1, %al
jne 0x361c
movq 0x5c890(%rip), %rdi     # 0x5fea0
movl $0x3, %esi
xorl %edx, %edx
callq 0x4fea
testb $0x2, 0x78(%r14)
jne 0x358f
movq 0x5c872(%rip), %rdi     # 0x5fea0
movl $0x6, %esi
xorl %edx, %edx
callq 0x4fea
testb $0x2, 0x78(%r14)
jne 0x358f
movq 0x5c854(%rip), %rdi     # 0x5fea0
movl $0x7, %esi
xorl %edx, %edx
callq 0x4fea
testb $0x2, 0x78(%r14)
je 0x3702
jmp 0x358f
testb $0x1, 0x78(%r14)
je 0x367f
movq %r15, %rdi
callq 0x29fcc
testb %al, %al
je 0x3702
movq 0x5c81a(%rip), %rdi     # 0x5fea0
movl $0xb, %esi
xorl %edx, %edx
callq *0x30(%rdi)
testb $0x2, 0x78(%r14)
jne 0x358f
movq 0x5c7fe(%rip), %rdi     # 0x5fea0
movl $0x3, %esi
xorl %edx, %edx
callq 0x4fea
testb $0x2, 0x78(%r14)
jne 0x358f
movq 0x5c7e0(%rip), %rdi     # 0x5fea0
movl $0x6, %esi
xorl %edx, %edx
callq 0x4fea
testb $0x2, 0x78(%r14)
jne 0x358f
movq 0x5c7c2(%rip), %rdi     # 0x5fea0
movl $0x7, %esi
xorl %edx, %edx
callq 0x4fea
testb $0x2, 0x78(%r14)
jne 0x358f
movq %r15, %rdi
movl $0xa, %esi
callq 0x29e6
movl $0x0, 0x70(%r14)
andb $-0x2, 0x78(%r14)
jmp 0x358f
movq 0x5c785(%rip), %rdi     # 0x5fea0
movl $0xc, %esi
xorl %edx, %edx
callq *0x30(%rdi)
testb $0x2, 0x78(%r14)
jne 0x358f
movq 0x5c769(%rip), %rdi     # 0x5fea0
movl $0x4, %esi
xorl %edx, %edx
callq 0x4fea
testb $0x2, 0x78(%r14)
jne 0x358f
orb $0x1, 0x78(%r14)
jmp 0x358f
movq %r15, %rdi
callq 0x29e6
jmp 0x358a
xorl %eax, %eax
movq %rax, 0x5c72a(%rip)     # 0x5fe98
movq %rax, 0x5c72b(%rip)     # 0x5fea0
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq