	.file	"extr_cros_ec_keyb.c_cros_ec_keyb_process.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"ghosting found\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"changed: [r%d c%d]: byte %02x\n"
	.text
	.p2align 4
	.type	cros_ec_keyb_process, @function
cros_ec_keyb_process:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	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, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	cmp	QWORD PTR 32[rdi], 0
	mov	r15, QWORD PTR 16[rdi]
	jne	.L2
.L5:
	mov	edx, DWORD PTR [r14]
	test	edx, edx
	jle	.L3
	mov	QWORD PTR 24[rsp], 0
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rax, QWORD PTR 24[rsp]
	xor	r12d, r12d
	mov	ebx, eax
	lea	r13, 0[0+rax*4]
	mov	eax, DWORD PTR 4[r14]
	test	eax, eax
	jle	.L8
	mov	QWORD PTR [rsp], rbp
	mov	rbp, r14
	.p2align 4,,10
	.p2align 3
.L7:
	mov	edx, DWORD PTR 28[rbp]
	mov	esi, ebx
	mov	edi, r12d
	call	MATRIX_SCAN_CODE@PLT
	mov	ecx, r12d
	mov	rdx, QWORD PTR 8[rbp]
	movsx	r14, eax
	mov	eax, 1
	sal	eax, cl
	mov	rcx, QWORD PTR [rsp]
	mov	r8d, DWORD PTR [rcx]
	and	r8d, eax
	and	eax, DWORD PTR [rdx+r13]
	cmp	r8d, eax
	je	.L6
	mov	r10, QWORD PTR [r15]
	mov	edi, DWORD PTR 24[rbp]
	mov	edx, r12d
	lea	rsi, .LC1[rip]
	mov	ecx, ebx
	xor	eax, eax
	mov	DWORD PTR 12[rsp], r8d
	mov	QWORD PTR 16[rsp], r10
	call	dev_dbg@PLT
	mov	r10, QWORD PTR 16[rsp]
	mov	r8d, DWORD PTR 12[rsp]
	mov	rdi, r15
	movzx	esi, WORD PTR [r10+r14*2]
	mov	edx, r8d
	call	input_report_key@PLT
.L6:
	add	r12d, 1
	cmp	DWORD PTR 4[rbp], r12d
	jg	.L7
	mov	r14, rbp
	mov	rbp, QWORD PTR [rsp]
.L8:
	mov	edx, DWORD PTR 0[rbp]
	mov	rax, QWORD PTR 8[r14]
	add	rbp, 4
	add	QWORD PTR 24[rsp], 1
	mov	DWORD PTR [rax+r13], edx
	mov	rax, QWORD PTR 24[rsp]
	cmp	DWORD PTR [r14], eax
	jg	.L4
.L3:
	mov	rdi, QWORD PTR 16[r14]
	add	rsp, 40
	.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
	jmp	input_sync@PLT
.L2:
	.cfi_restore_state
	call	cros_ec_keyb_has_ghosting@PLT
	test	rax, rax
	je	.L5
	mov	edi, DWORD PTR 24[r14]
	add	rsp, 40
	.cfi_def_cfa_offset 56
	lea	rsi, .LC0[rip]
	xor	eax, eax
	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
	jmp	dev_dbg@PLT
	.cfi_endproc
.LFE0:
	.size	cros_ec_keyb_process, .-cros_ec_keyb_process
	.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_cros_ec_keyb.c_cros_ec_keyb_process.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ghosting found\012\000"
	.align	2
.LC1:
	.ascii	"changed: [r%d c%d]: byte %02x\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cros_ec_keyb_process, %function
cros_ec_keyb_process:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, [r0, #24]
	mov	r7, r0
	cmp	r3, #0
	mov	r8, r1
	ldr	r10, [r0, #12]
	sub	sp, sp, #20
	bne	.L2
.L5:
	ldr	r3, [r7]
	cmp	r3, #0
	ble	.L3
	mov	fp, #0
	sub	r8, r8, #4
.L4:
	ldr	r2, [r7, #4]
	lsl	r9, fp, #2
	cmp	r2, #0
	movgt	r5, #0
	ble	.L8
.L7:
	mov	r1, fp
	ldr	r2, [r7, #20]
	mov	r0, r5
	bl	MATRIX_SCAN_CODE
	mov	r3, #1
	ldr	r2, [r7, #8]
	ldr	r1, [r8, #4]
	ldr	r2, [r2, r9]
	lsl	r4, r3, r5
	and	r2, r2, r4
	and	r4, r4, r1
	cmp	r4, r2
	mov	r6, r0
	beq	.L6
	ldr	r3, [r10]
	str	r4, [sp]
	mov	r2, r5
	ldr	r1, .L17
	str	r3, [sp, #12]
	ldr	r0, [r7, #16]
	mov	r3, fp
	bl	dev_dbg
	ldr	r3, [sp, #12]
	lsl	r6, r6, #1
	mov	r2, r4
	mov	r0, r10
	ldrh	r1, [r3, r6]
	bl	input_report_key
.L6:
	ldr	r2, [r7, #4]
	add	r5, r5, #1
	cmp	r2, r5
	bgt	.L7
.L8:
	ldr	r2, [r7, #8]
	ldr	r1, [r8, #4]!
	add	fp, fp, #1
	str	r1, [r2, r9]
	ldr	r2, [r7]
	cmp	r2, fp
	bgt	.L4
.L3:
	ldr	r0, [r7, #12]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	input_sync
.L2:
	bl	cros_ec_keyb_has_ghosting
	cmp	r0, #0
	beq	.L5
	ldr	r0, [r7, #16]
	ldr	r1, .L17+4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	dev_dbg
.L18:
	.align	2
.L17:
	.word	.LC1
	.word	.LC0
	.size	cros_ec_keyb_process, .-cros_ec_keyb_process
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
