	.file	"extr_da9052_onkey.c_da9052_onkey_query.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Failed to read onkey event err=%d\n"
	.text
	.p2align 4
	.type	da9052_onkey_query, @function
da9052_onkey_query:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rdi, QWORD PTR 8[rdi]
	mov	esi, DWORD PTR DA9052_STATUS_A_REG[rip]
	call	da9052_reg_read@PLT
	mov	edx, eax
	test	eax, eax
	js	.L6
	mov	edi, DWORD PTR 4[rbp]
	mov	ebx, eax
	xor	edx, edx
	mov	esi, DWORD PTR KEY_POWER[rip]
	and	ebx, DWORD PTR DA9052_STATUSA_NONKEY[rip]
	sete	dl
	call	input_report_key@PLT
	mov	edi, DWORD PTR 4[rbp]
	call	input_sync@PLT
	test	ebx, ebx
	je	.L7
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[rbp]
	lea	rsi, .LC0[rip]
	mov	edi, DWORD PTR [rax]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	dev_err@PLT
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	edi, 50
	call	msecs_to_jiffies@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 16
	mov	esi, eax
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	schedule_delayed_work@PLT
	.cfi_endproc
.LFE0:
	.size	da9052_onkey_query, .-da9052_onkey_query
	.comm	KEY_POWER,4,4
	.comm	DA9052_STATUS_A_REG,4,4
	.comm	DA9052_STATUSA_NONKEY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_da9052_onkey.c_da9052_onkey_query.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Failed to read onkey event err=%d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	da9052_onkey_query, %function
da9052_onkey_query:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L7
	push	{r4, r5, r6, lr}
	ldr	r1, [r3]
	mov	r5, r0
	ldr	r0, [r0, #8]
	bl	da9052_reg_read
	subs	r2, r0, #0
	blt	.L6
	ldr	r1, .L7+4
	ldr	r3, .L7+8
	ldr	r4, [r1]
	ldr	r0, [r5, #4]
	ands	r4, r2, r4
	moveq	r2, #1
	movne	r2, #0
	ldr	r1, [r3]
	bl	input_report_key
	ldr	r0, [r5, #4]
	bl	input_sync
	cmp	r4, #0
	popne	{r4, r5, r6, pc}
	mov	r0, #50
	bl	msecs_to_jiffies
	mov	r1, r0
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	b	schedule_delayed_work
.L6:
	ldr	r3, [r5, #8]
	ldr	r1, .L7+12
	ldr	r0, [r3]
	pop	{r4, r5, r6, lr}
	b	dev_err
.L8:
	.align	2
.L7:
	.word	DA9052_STATUS_A_REG
	.word	DA9052_STATUSA_NONKEY
	.word	KEY_POWER
	.word	.LC0
	.size	da9052_onkey_query, .-da9052_onkey_query
	.comm	KEY_POWER,4,4
	.comm	DA9052_STATUS_A_REG,4,4
	.comm	DA9052_STATUSA_NONKEY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
