	.file	"extr_matrix-keymap.c_matrix_keypad_build_keymap.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Unable to allocate memory for keymap"
	.text
	.p2align 4
	.globl	matrix_keypad_build_keymap
	.type	matrix_keypad_build_keymap, @function
matrix_keypad_build_keymap:
.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	r14d, edx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, ecx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, r9
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	mov	edi, ecx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, r8
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	QWORD PTR [rsp], rsi
	call	get_count_order@PLT
	mov	edx, DWORD PTR 32[r12]
	xor	edi, edi
	mov	r15d, eax
	test	edx, edx
	sete	dil
	call	WARN_ON@PLT
	test	rax, rax
	jne	.L16
	mov	esi, r14d
	mov	ecx, r15d
	sal	esi, cl
	test	rbx, rbx
	je	.L18
.L4:
	mov	QWORD PTR 16[r12], rsi
	mov	edi, DWORD PTR EV_KEY[rip]
	mov	QWORD PTR [r12], rbx
	mov	esi, DWORD PTR 28[r12]
	mov	DWORD PTR 8[r12], 2
	call	__set_bit@PLT
	test	rbp, rbp
	je	.L5
	mov	eax, DWORD PTR 0[rbp]
	xor	ebx, ebx
	test	eax, eax
	jg	.L6
.L8:
	mov	esi, DWORD PTR 24[r12]
	mov	edi, DWORD PTR KEY_RESERVED[rip]
	call	__clear_bit@PLT
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	add	rbx, 1
	cmp	DWORD PTR 0[rbp], ebx
	jle	.L8
.L6:
	mov	rax, QWORD PTR 8[rbp]
	mov	ecx, r15d
	mov	edx, r13d
	mov	esi, r14d
	mov	rdi, r12
	mov	r8d, DWORD PTR [rax+rbx*4]
	call	matrix_keypad_map_key@PLT
	test	eax, eax
	jne	.L7
.L16:
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
.L1:
	add	rsp, 24
	.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
.L18:
	.cfi_restore_state
	mov	edi, DWORD PTR 32[r12]
	mov	ecx, DWORD PTR GFP_KERNEL[rip]
	mov	edx, 2
	mov	QWORD PTR 8[rsp], rsi
	call	devm_kcalloc@PLT
	mov	rsi, QWORD PTR 8[rsp]
	test	rax, rax
	mov	rbx, rax
	jne	.L4
	mov	edi, DWORD PTR 32[r12]
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	mov	eax, DWORD PTR ENOMEM[rip]
	neg	eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, QWORD PTR [rsp]
	mov	rcx, r12
	mov	edx, r13d
	mov	esi, r14d
	call	matrix_keypad_parse_keymap@PLT
	test	eax, eax
	je	.L8
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	matrix_keypad_build_keymap, .-matrix_keypad_build_keymap
	.comm	KEY_RESERVED,4,4
	.comm	GFP_KERNEL,4,4
	.comm	EV_KEY,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,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_matrix-keymap.c_matrix_keypad_build_keymap.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Unable to allocate memory for keymap\000"
	.text
	.align	2
	.global	matrix_keypad_build_keymap
	.syntax unified
	.arm
	.fpu softvfp
	.type	matrix_keypad_build_keymap, %function
matrix_keypad_build_keymap:
	@ args = 8, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r0
	sub	sp, sp, #20
	mov	r0, r3
	mov	r7, r3
	mov	r4, r1
	mov	r8, r2
	ldr	r6, [sp, #60]
	ldr	fp, [sp, #56]
	bl	get_count_order
	ldr	r3, [r6, #20]
	mov	r9, r0
	clz	r0, r3
	lsr	r0, r0, #5
	bl	WARN_ON
	subs	r10, r0, #0
	bne	.L15
	cmp	fp, #0
	lsl	r1, r8, r9
	beq	.L17
.L4:
	mov	r2, #2
	ldr	r3, .L18
	str	r1, [r6, #8]
	ldr	r0, [r3]
	ldr	r1, [r6, #16]
	str	fp, [r6]
	str	r2, [r6, #4]
	bl	__set_bit
	cmp	r5, #0
	beq	.L5
	ldr	r3, [r5]
	cmp	r3, #0
	movgt	r4, #0
	bgt	.L6
.L8:
	ldr	r3, .L18+4
	ldr	r1, [r6, #12]
	ldr	r0, [r3]
	bl	__clear_bit
	mov	r0, r10
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L7:
	ldr	r3, [r5]
	cmp	r3, r4
	ble	.L8
.L6:
	ldr	r2, [r5, #4]
	mov	r3, r9
	ldr	r1, [r2, r4, lsl #2]
	mov	r0, r6
	str	r1, [sp]
	mov	r2, r7
	mov	r1, r8
	bl	matrix_keypad_map_key
	cmp	r0, #0
	add	r4, r4, #1
	bne	.L7
.L15:
	ldr	r3, .L18+8
	ldr	r10, [r3]
	rsb	r10, r10, #0
.L1:
	mov	r0, r10
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L17:
	ldr	r3, .L18+12
	mov	r2, #2
	ldr	r3, [r3]
	ldr	r0, [r6, #20]
	str	r1, [sp, #12]
	bl	devm_kcalloc
	subs	fp, r0, #0
	ldr	r1, [sp, #12]
	bne	.L4
	ldr	r0, [r6, #20]
	ldr	r1, .L18+16
	bl	dev_err
	ldr	r3, .L18+20
	ldr	r10, [r3]
	rsb	r10, r10, #0
	b	.L1
.L5:
	mov	r2, r7
	mov	r1, r8
	mov	r0, r4
	mov	r3, r6
	bl	matrix_keypad_parse_keymap
	cmp	r0, #0
	beq	.L8
	mov	r10, r0
	b	.L1
.L19:
	.align	2
.L18:
	.word	EV_KEY
	.word	KEY_RESERVED
	.word	EINVAL
	.word	GFP_KERNEL
	.word	.LC0
	.word	ENOMEM
	.size	matrix_keypad_build_keymap, .-matrix_keypad_build_keymap
	.comm	KEY_RESERVED,4,4
	.comm	GFP_KERNEL,4,4
	.comm	EV_KEY,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
