// File: /workspace/github_c_makefile_star2_O2/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:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq 0x10(%rdi), %r14
movq %r14, 0x5b18b(%rip)     # 0x5de98
cmpq $0x0, 0x18(%r14)
je 0x3575
movq %r14, %rdi
callq 0x3584
testb $0x4, 0x78(%r14)
jne 0x3575
leaq 0x8(%rsp), %rbx
leaq 0x38319(%rip), %r13     # 0x3b050
movq %r14, %rdi
movq %rbx, %rsi
callq 0x7fd2
movl %eax, %r15d
movq 0x5b14c(%rip), %r12     # 0x5de98
movq %r12, %rdi
callq 0x3584
andq $0x0, 0x5b144(%rip)     # 0x5dea0
movb 0x16(%rsp), %al
movb %al, 0x30(%r12)
cmpb $0x1, %al
je 0x2d79
movb (%r12), %al
cmpb $0x4, %al
jne 0x2d94
cmpw $0x0, 0x14(%rsp)
je 0x2d94
callq 0x801a
movq 0x5b113(%rip), %r12     # 0x5de98
movq 0x18(%r12), %rcx
movl %eax, 0x19c(%rcx)
movb (%r12), %al
movzbl %al, %eax
decl %eax
cmpl $0x3, %eax
ja 0x2f92
movslq (%r13,%rax,4), %rax
addq %r13, %rax
jmpq *%rax
movq 0x80(%r12), %rdi
movzwl 0x8(%rsp), %eax
testq %rdi, %rdi
je 0x2f61
cmpw %ax, 0x3c(%r12)
jne 0x2f4c
movzwl 0xa(%rsp), %ecx
cmpw %cx, 0x3e(%r12)
jne 0x2f51
jmp 0x2f61
movq 0x90(%r12), %rax
movl 0x10(%rsp), %ecx
movzwl (%rax,%rcx,4), %edx
leaq 0x30(%r12), %rdi
movw %dx, 0x38(%r12)
movzwl 0x2(%rax,%rcx,4), %eax
movw %ax, 0x3a(%r12)
cmpw %dx, 0x3c(%r12)
jne 0x2f83
cmpw %ax, 0x3e(%r12)
jne 0x2f83
cmpb $0x1, 0x16(%rsp)
jne 0x2f83
callq 0x36ee
jmp 0x2f88
movb 0x16(%rsp), %al
movb 0x78(%r12), %cl
cmpb $0x1, %al
jne 0x2e4f
movl %ecx, %edx
andb $0x8, %dl
jne 0x2f92
testb $0x8, %cl
jne 0x2faf
movb 0x38(%r12), %bpl
jmp 0x2fbf
cmpb $0x1, 0x16(%rsp)
movb 0x78(%r12), %al
jne 0x2e77
testb $0x8, %al
je 0x2e8e
jmp 0x2f92
testb $0x8, %al
je 0x2e8e
andl $0x0, 0x70(%r12)
andb $-0xa, %al
movb %al, 0x78(%r12)
movb $0x0, 0x38(%r12)
movq 0x88(%r12), %r14
testq %r14, %r14
je 0x2f92
movq %r14, %rdi
callq 0x29b8
movq %rax, 0x5aff2(%rip)     # 0x5dea0
testq %rax, %rax
je 0x2f92
movl 0x3c(%r12), %ecx
movl 0xc(%rsp), %edx
movl %edx, 0x3c(%r12)
movb 0x38(%r12), %dl
movb 0x16(%rsp), %sil
movb %sil, 0x38(%r12)
movl %esi, %edi
xorb $0x1, %dil
movl %edi, %r8d
orb %dl, %r8b
jne 0x3092
callq 0x801a
movl %eax, 0x70(%r12)
movl 0xc(%rsp), %esi
cmpl $0x9, %esi
je 0x3390
cmpl $0x1b, %esi
je 0x32f4
cmpl $0xb, %esi
je 0x3379
cmpl $0xa, %esi
jne 0x33a7
movq %r14, %rdi
pushq $0xa
popq %rsi
callq 0x296f
movq 0x5af76(%rip), %rdi     # 0x5dea0
pushq $0x8
popq %rsi
xorl %edx, %edx
callq *0x30(%rdi)
testb $0x2, 0x78(%r12)
jne 0x3558
movq 0x5af5b(%rip), %rdi     # 0x5dea0
xorl %esi, %esi
jmp 0x3309
movzwl 0xa(%rsp), %ecx
movswl %ax, %esi
movswl %cx, %edx
callq 0x47df
movzwl 0x8(%rsp), %eax
leaq 0x30(%r12), %rdi
movw %ax, 0x38(%r12)
movzwl 0xa(%rsp), %eax
movw %ax, 0x3a(%r12)
cmpb $0x1, 0x30(%r12)
je 0x2e2d
callq 0x3c41
movl 0x38(%r12), %eax
movl %eax, 0x3c(%r12)
movq 0x5aeff(%rip), %r14     # 0x5de98
movq %r14, %rdi
callq 0x3584
testb %r15b, %r15b
jne 0x2d37
jmp 0x3565
andl $0x0, 0x70(%r12)
andb $-0xa, %cl
movb %cl, 0x78(%r12)
xorl %ebp, %ebp
movb %al, 0x38(%r12)
movl 0xc(%rsp), %eax
movl %eax, 0x3c(%r12)
movq 0x88(%r12), %r14
testq %r14, %r14
je 0x2f92
movq %r14, %rdi
callq 0x29b8
movq %rax, 0x5aeb7(%rip)     # 0x5dea0
testq %rax, %rax
je 0x2f92
cmpb $0x0, 0x16(%rsp)
je 0x310d
movq %r14, %rdi
callq 0x29b8
movq %rax, 0x5ae98(%rip)     # 0x5dea0
testq %rax, %rax
leaq 0x8(%rsp), %rbx
je 0x2f92
movb 0x16(%rsp), %cl
cmpb $0x1, %cl
jne 0x31e1
testb %bpl, %bpl
jne 0x31e1
movb $0x0, 0x7(%rsp)
movq %rax, %rdi
pushq $0x13
popq %rsi
leaq 0x7(%rsp), %rdx
callq *0x30(%rax)
callq 0x801a
movl %eax, 0x70(%r12)
movq %r14, %rdi
callq 0x2aaa
testb %al, %al
jne 0x305c
cmpb $0x0, 0x7(%rsp)
jne 0x3558
movq 0x5ae3d(%rip), %rdi     # 0x5dea0
pushq $0x8
popq %rsi
xorl %edx, %edx
callq *0x30(%rdi)
testb $0x2, 0x78(%r12)
jne 0x3558
movq 0x5ae22(%rip), %rdi     # 0x5dea0
xorl %esi, %esi
xorl %edx, %edx
callq 0x4caf
testb $0x2, 0x78(%r12)
jmp 0x3558
xorb $0x1, %dl
orb %dl, %dil
jne 0x3152
testb $0x1, 0x78(%r12)
jne 0x331e
movl 0x70(%r12), %edi
callq 0x8031
movzwl 0x2a(%r12), %edx
movb 0x78(%r12), %cl
cmpl %edx, %eax
jbe 0x3315
orb $0x1, %cl
movb %cl, 0x78(%r12)
cmpl $0xa, 0xc(%rsp)
jne 0x3558
callq 0x801a
movl %eax, 0x74(%r12)
movq 0x5adb5(%rip), %rdi     # 0x5dea0
pushq $0xc
popq %rsi
xorl %edx, %edx
callq *0x30(%rdi)
testb $0x2, 0x78(%r12)
jne 0x3558
movq 0x5ad9a(%rip), %rdi     # 0x5dea0
pushq $0x4
jmp 0x3308
movq %r14, %rdi
callq 0x2aaa
movzwl 0x14(%rsp), %ecx
testb %al, %al
je 0x3264
testw %cx, %cx
js 0x33cb
je 0x2ff9
xorl %ebx, %ebx
movswl %cx, %eax
cmpl %eax, %ebx
jge 0x2ff9
movq %r14, %rdi
pushq $0x13
popq %rsi
callq 0x296f
incl %ebx
movzwl 0x14(%rsp), %ecx
jmp 0x3133
orb %dl, %sil
jne 0x3558
movl %ecx, 0xc(%rsp)
cmpl $0xa, %ecx
jne 0x33b4
movq %rax, %rdi
pushq $0xb
popq %rsi
xorl %edx, %edx
callq *0x30(%rax)
movb 0x78(%r12), %al
testb $0x2, %al
jne 0x3558
testb $0x1, %al
jne 0x31a1
movq 0x5ad15(%rip), %rdi     # 0x5dea0
pushq $0x3
popq %rsi
xorl %edx, %edx
callq 0x4caf
testb $0x2, 0x78(%r12)
jne 0x3558
movq 0x5acf8(%rip), %rdi     # 0x5dea0
pushq $0x6
popq %rsi
xorl %edx, %edx
callq 0x4caf
testb $0x2, 0x78(%r12)
jne 0x3558
movq 0x5acdb(%rip), %rdi     # 0x5dea0
pushq $0x7
popq %rsi
xorl %edx, %edx
callq 0x4caf
movb 0x78(%r12), %al
testb $0x2, %al
je 0x33b9
jmp 0x3558
cmpb $0x1, %cl
jne 0x3291
cmpb $0x1, %bpl
jne 0x3291
testb $0x1, 0x78(%r12)
jne 0x3558
movl 0x70(%r12), %edi
callq 0x8031
movzwl 0x2a(%r12), %ecx
cmpl %ecx, %eax
jbe 0x3558
movb $0x0, 0x7(%rsp)
movq 0x5ac7c(%rip), %rdi     # 0x5dea0
pushq $0x13
popq %rsi
leaq 0x7(%rsp), %rdx
callq *0x30(%rdi)
cmpb $0x1, 0x7(%rsp)
jne 0x3522
movq %r14, %rdi
callq 0x2805a
testb %al, %al
jne 0x3552
movq %r14, %rdi
callq 0x2aaa
xorb $0x1, %al
movzbl %al, %esi
movq %r14, %rdi
callq 0x275c
jmp 0x3552
testw %cx, %cx
js 0x33ee
je 0x2ff9
xorl %ebx, %ebx
movswl %cx, %eax
cmpl %eax, %ebx
jge 0x2ff9
movq %r14, %rdi
callq 0x27f9
incl %ebx
movzwl 0x14(%rsp), %ecx
jmp 0x3275
testb %cl, %cl
jne 0x3558
cmpb $0x1, %bpl
jne 0x3558
movb $0x0, 0x7(%rsp)
movq %rax, %rdi
pushq $0x13
popq %rsi
leaq 0x7(%rsp), %rdx
callq *0x30(%rax)
movb 0x7(%rsp), %al
testb %al, %al
je 0x340e
testb $0x2, 0x80(%r14)
jne 0x348b
testb %al, %al
je 0x3514
testb $0x1, 0x78(%r12)
jne 0x3514
movq %r14, %rdi
pushq $0x1
popq %rsi
callq 0x275c
jmp 0x3514
movq %r14, %rdi
pushq $0x1b
popq %rsi
callq 0x296f
movq 0x5ab9a(%rip), %rdi     # 0x5dea0
pushq $0x12
popq %rsi
xorl %edx, %edx
callq 0x4caf
jmp 0x3558
testb $0x1, %cl
je 0x3558
movl 0x74(%r12), %edi
callq 0x8031
movzwl 0x2c(%r12), %ecx
cmpl %ecx, %eax
jbe 0x3558
callq 0x801a
movl %eax, 0x74(%r12)
movl 0xc(%rsp), %esi
cmpl $0x9, %esi
je 0x3390
cmpl $0xb, %esi
je 0x3379
cmpl $0xa, %esi
jne 0x33a7
movq 0x5ab46(%rip), %rdi     # 0x5dea0
pushq $0xd
popq %rsi
xorl %edx, %edx
callq *0x30(%rdi)
testb $0x2, 0x78(%r12)
jne 0x3558
movq 0x5ab2b(%rip), %rdi     # 0x5dea0
pushq $0x5
jmp 0x3308
movq %r14, %rdi
xorl %esi, %esi
callq 0x275c
movq %r14, %rdi
callq 0x294a
jmp 0x3558
movq %r14, %rdi
xorl %esi, %esi
callq 0x275c
movq %r14, %rdi
callq 0x27f9
jmp 0x3558
movq %r14, %rdi
callq 0x296f
jmp 0x3558
movb 0x78(%r12), %al
andl $0x0, 0x70(%r12)
andb $-0x2, %al
movb %al, 0x78(%r12)
jmp 0x3558
xorl %ebx, %ebx
movswl %cx, %eax
negl %eax
cmpl %eax, %ebx
jge 0x2ff9
movq %r14, %rdi
pushq $0x14
popq %rsi
callq 0x296f
incl %ebx
movzwl 0x14(%rsp), %ecx
jmp 0x33cd
xorl %ebx, %ebx
movswl %cx, %eax
negl %eax
cmpl %eax, %ebx
jge 0x2ff9
movq %r14, %rdi
callq 0x294a
incl %ebx
movzwl 0x14(%rsp), %ecx
jmp 0x33f0
movq 0x5aa8b(%rip), %rdi     # 0x5dea0
pushq $0xb
popq %rsi
xorl %edx, %edx
callq *0x30(%rdi)
movb 0x78(%r12), %al
testb $0x2, %al
jne 0x3558
testb $0x1, %al
jne 0x3444
movq 0x5aa6b(%rip), %rdi     # 0x5dea0
pushq $0x3
popq %rsi
xorl %edx, %edx
callq 0x4caf
movb 0x78(%r12), %al
testb $0x2, %al
jne 0x3558
movq 0x5aa4d(%rip), %rdi     # 0x5dea0
pushq $0x6
popq %rsi
xorl %edx, %edx
callq 0x4caf
testb $0x2, 0x78(%r12)
jne 0x3558
movq 0x5aa30(%rip), %rdi     # 0x5dea0
pushq $0x7
popq %rsi
xorl %edx, %edx
callq 0x4caf
testb $0x2, 0x78(%r12)
je 0x3514
jmp 0x3558
testb $0x1, 0x78(%r12)
je 0x349f
movq %r14, %rdi
callq 0x2805a
testb %al, %al
je 0x3514
movq 0x5a9fa(%rip), %rdi     # 0x5dea0
pushq $0xb
popq %rsi
xorl %edx, %edx
callq *0x30(%rdi)
testb $0x2, 0x78(%r12)
jne 0x3558
movq 0x5a9df(%rip), %rdi     # 0x5dea0
pushq $0x3
popq %rsi
xorl %edx, %edx
callq 0x4caf
testb $0x2, 0x78(%r12)
jne 0x3558
movq 0x5a9c2(%rip), %rdi     # 0x5dea0
pushq $0x6
popq %rsi
xorl %edx, %edx
callq 0x4caf
testb $0x2, 0x78(%r12)
jne 0x3558
movq 0x5a9a9(%rip), %rdi     # 0x5dea0
pushq $0x7
popq %rsi
xorl %edx, %edx
callq 0x4caf
testb $0x2, 0x78(%r12)
jne 0x3558
movq %r14, %rdi
pushq $0xa
popq %rsi
callq 0x296f
andl $0x0, 0x70(%r12)
andb $-0x2, 0x78(%r12)
jmp 0x3558
movq 0x5a977(%rip), %rdi     # 0x5dea0
pushq $0xc
popq %rsi
xorl %edx, %edx
callq *0x30(%rdi)
testb $0x2, 0x78(%r12)
jne 0x3558
movq 0x5a960(%rip), %rdi     # 0x5dea0
pushq $0x4
popq %rsi
xorl %edx, %edx
callq 0x4caf
testb $0x2, 0x78(%r12)
jne 0x3558
orb $0x1, 0x78(%r12)
andq $0x0, 0x5a940(%rip)     # 0x5dea0
jmp 0x2f92
andq $0x0, 0x5a92b(%rip)     # 0x5de98
andq $0x0, 0x5a92b(%rip)     # 0x5dea0
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq