	.file	"extr_qt2160.c_qt2160_get_key_matrix.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"pressed"
.LC1:
	.string	"released"
.LC2:
	.string	"requesting keys...\n"
.LC3:
	.string	"could not perform chip read.\n"
.LC4:
	.string	"key %d %s\n"
	.text
	.p2align 4
	.type	qt2160_get_key_matrix, @function
qt2160_get_key_matrix:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	lea	rsi, .LC2[rip]
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	r12, QWORD PTR 24[rdi]
	mov	r15, QWORD PTR 16[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	rdi, r12
	call	dev_dbg@PLT
	mov	esi, DWORD PTR QT2160_CMD_GSTAT[rip]
	lea	rdx, 16[rsp]
	mov	rdi, r12
	mov	ecx, 6
	call	qt2160_read_block@PLT
	mov	DWORD PTR 12[rsp], eax
	test	eax, eax
	jne	.L12
	mov	ebx, DWORD PTR 24[rsp]
	mov	eax, DWORD PTR 0[rbp]
	xor	r14d, r14d
	mov	r13d, 1
	sal	ebx, 8
	or	ebx, DWORD PTR 20[rsp]
	mov	DWORD PTR 4[rsp], eax
	mov	DWORD PTR 8[rsp], ebx
	mov	DWORD PTR 0[rbp], ebx
	.p2align 4,,10
	.p2align 3
.L6:
	mov	ebx, DWORD PTR 8[rsp]
	mov	eax, DWORD PTR 4[rsp]
	and	ebx, r13d
	and	eax, r13d
	cmp	eax, ebx
	je	.L4
	mov	rax, QWORD PTR 8[rbp]
	mov	edx, ebx
	mov	rdi, r15
	mov	esi, DWORD PTR [rax+r14*4]
	call	input_report_key@PLT
	test	ebx, ebx
	mov	edx, r14d
	mov	rdi, r12
	lea	rax, .LC0[rip]
	lea	rcx, .LC1[rip]
	cmovne	rcx, rax
	lea	rsi, .LC4[rip]
	xor	eax, eax
	call	dev_dbg@PLT
.L4:
	add	r14, 1
	add	r13d, r13d
	cmp	r14, 16
	jne	.L6
	mov	rdi, r15
	call	input_sync@PLT
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L13
	mov	eax, DWORD PTR 12[rsp]
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	lea	rsi, .LC3[rip]
	mov	rdi, r12
	call	dev_err@PLT
	jmp	.L1
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	qt2160_get_key_matrix, .-qt2160_get_key_matrix
	.comm	QT2160_CMD_GSTAT,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_qt2160.c_qt2160_get_key_matrix.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"pressed\000"
	.align	2
.LC1:
	.ascii	"released\000"
	.align	2
.LC2:
	.ascii	"requesting keys...\012\000"
	.align	2
.LC3:
	.ascii	"could not perform chip read.\012\000"
	.align	2
.LC4:
	.ascii	"key %d %s\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	qt2160_get_key_matrix, %function
qt2160_get_key_matrix:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r8, r0
	ldr	r9, [r0, #12]
	ldr	r3, .L14
	sub	sp, sp, #44
	ldr	r1, .L14+4
	mov	r0, r9
	ldr	r3, [r3]
	str	r3, [sp, #36]
	mov	r3,#0
	ldr	r10, [r8, #8]
	bl	dev_dbg
	ldr	r3, .L14+8
	mov	r0, r9
	ldr	r1, [r3]
	add	r2, sp, #12
	mov	r3, #6
	bl	qt2160_read_block
	subs	r3, r0, #0
	str	r3, [sp, #4]
	bne	.L12
	mov	r4, #1
	ldr	r3, [sp, #20]
	ldr	r6, [sp, #16]
	ldr	r5, [sp, #4]
	orr	r6, r6, r3, lsl #8
	ldr	fp, .L14+12
	ldr	r7, [r8]
	str	r6, [r8]
.L6:
	and	r2, r6, r4
	and	r3, r7, r4
	cmp	r3, r2
	beq	.L4
	ldr	r3, [r8, #4]
	mov	r0, r10
	ldr	r1, [r3, r5, lsl #2]
	str	r2, [sp]
	bl	input_report_key
	ldr	r2, [sp]
	ldr	r1, .L14+16
	cmp	r2, #0
	ldr	r3, .L14+20
	mov	r2, r5
	moveq	r3, r1
	mov	r0, r9
	mov	r1, fp
	bl	dev_dbg
.L4:
	add	r5, r5, #1
	cmp	r5, #16
	lsl	r4, r4, #1
	bne	.L6
	mov	r0, r10
	bl	input_sync
.L1:
	ldr	r3, .L14
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	ldr	r0, [sp, #4]
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L12:
	mov	r0, r9
	ldr	r1, .L14+24
	bl	dev_err
	b	.L1
.L13:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	.LC5
	.word	.LC2
	.word	QT2160_CMD_GSTAT
	.word	.LC4
	.word	.LC1
	.word	.LC0
	.word	.LC3
	.size	qt2160_get_key_matrix, .-qt2160_get_key_matrix
	.comm	QT2160_CMD_GSTAT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
