	.file	"extr_gpio_matrix.c_gpio_keypad_irq_handler.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	gpio_keypad_irq_handler, @function
gpio_keypad_irq_handler:
.LFB0:
	.cfi_startproc
	endbr64
	mov	ecx, DWORD PTR 8[rsi]
	mov	eax, DWORD PTR IRQ_HANDLED[rip]
	test	ecx, ecx
	je	.L17
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	xor	ebp, ebp
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rbx, QWORD PTR 16[rsi]
	mov	edx, DWORD PTR 4[rbx]
	mov	r12d, DWORD PTR [rbx]
	test	edx, edx
	jle	.L7
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rax, QWORD PTR 24[rbx]
	mov	edi, DWORD PTR [rax+rbp*4]
	add	rbp, 1
	call	gpio_to_irq@PLT
	mov	edi, eax
	call	disable_irq@PLT
	cmp	DWORD PTR 4[rbx], ebp
	jg	.L3
.L7:
	mov	eax, DWORD PTR 8[rbx]
	xor	ebp, ebp
	test	eax, eax
	jg	.L4
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L21:
	xor	esi, esi
	test	DWORD PTR GPIOKPF_ACTIVE_HIGH[rip], r12d
	sete	sil
	add	rbp, 1
	call	gpio_set_value@PLT
	cmp	DWORD PTR 8[rbx], ebp
	jle	.L5
.L4:
	mov	rax, QWORD PTR 16[rbx]
	mov	edi, DWORD PTR [rax+rbp*4]
	test	DWORD PTR GPIOKPF_DRIVE_INACTIVE[rip], r12d
	jne	.L21
	call	gpio_direction_input@PLT
	add	rbp, 1
	cmp	DWORD PTR 8[rbx], ebp
	jg	.L4
.L5:
	lea	rdi, 4[r13]
	call	wake_lock@PLT
	mov	r12d, DWORD PTR HRTIMER_MODE_REL[rip]
	xor	esi, esi
	xor	edi, edi
	call	ktime_set@PLT
	mov	rdi, r13
	mov	edx, r12d
	mov	esi, eax
	call	hrtimer_start@PLT
	mov	eax, DWORD PTR IRQ_HANDLED[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	ret
	.cfi_endproc
.LFE0:
	.size	gpio_keypad_irq_handler, .-gpio_keypad_irq_handler
	.comm	IRQ_HANDLED,4,4
	.comm	HRTIMER_MODE_REL,4,4
	.comm	GPIOKPF_DRIVE_INACTIVE,4,4
	.comm	GPIOKPF_ACTIVE_HIGH,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_gpio_matrix.c_gpio_keypad_irq_handler.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	gpio_keypad_irq_handler, %function
gpio_keypad_irq_handler:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r1, #8]
	cmp	r3, #0
	beq	.L2
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r4, [r1, #12]
	mov	r7, r1
	ldr	r3, [r4, #4]
	ldr	r6, [r4]
	cmp	r3, #0
	movgt	r5, #0
	ble	.L7
.L3:
	ldr	r3, [r4, #16]
	ldr	r0, [r3, r5, lsl #2]
	bl	gpio_to_irq
	bl	disable_irq
	ldr	r3, [r4, #4]
	add	r5, r5, #1
	cmp	r3, r5
	bgt	.L3
.L7:
	ldr	r3, [r4, #8]
	cmp	r3, #0
	ble	.L5
	mov	r5, #0
	ldr	r9, .L20
	ldr	r8, .L20+4
	b	.L4
.L19:
	ldr	r3, [r8]
	add	r5, r5, #1
	tst	r6, r3
	moveq	r1, #1
	movne	r1, #0
	bl	gpio_set_value
	ldr	r3, [r4, #8]
	cmp	r3, r5
	ble	.L5
.L4:
	ldr	r2, [r9]
	ldr	r3, [r4, #12]
	tst	r6, r2
	ldr	r0, [r3, r5, lsl #2]
	bne	.L19
	bl	gpio_direction_input
	ldr	r3, [r4, #8]
	add	r5, r5, #1
	cmp	r3, r5
	bgt	.L4
.L5:
	add	r0, r7, #4
	bl	wake_lock
	mov	r1, #0
	mov	r0, r1
	bl	ktime_set
	ldr	r3, .L20+8
	mov	r1, r0
	ldr	r2, [r3]
	mov	r0, r7
	bl	hrtimer_start
	ldr	r3, .L20+12
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	ldr	r3, .L20+12
	ldr	r0, [r3]
	bx	lr
.L21:
	.align	2
.L20:
	.word	GPIOKPF_DRIVE_INACTIVE
	.word	GPIOKPF_ACTIVE_HIGH
	.word	HRTIMER_MODE_REL
	.word	IRQ_HANDLED
	.size	gpio_keypad_irq_handler, .-gpio_keypad_irq_handler
	.comm	IRQ_HANDLED,4,4
	.comm	HRTIMER_MODE_REL,4,4
	.comm	GPIOKPF_DRIVE_INACTIVE,4,4
	.comm	GPIOKPF_ACTIVE_HIGH,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
