	.file	"extr_twl4030_keypad.c_twl4030_kp_program.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	twl4030_kp_program, @function
twl4030_kp_program:
.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	edx, DWORD PTR KEYP_CTRL[rip]
	mov	esi, DWORD PTR KEYP_CTRL_SOFT_NRST[rip]
	or	esi, DWORD PTR KEYP_CTRL_SOFTMODEN[rip]
	or	esi, DWORD PTR KEYP_CTRL_TOE_EN[rip]
	or	esi, DWORD PTR KEYP_CTRL_KBD_ON[rip]
	call	twl4030_kpwrite_u8@PLT
	test	rax, rax
	js	.L12
	mov	edx, DWORD PTR KEYP_EDR[rip]
	mov	esi, DWORD PTR KEYP_EDR_KP_BOTH[rip]
	mov	rdi, rbp
	or	esi, DWORD PTR KEYP_EDR_TO_RISING[rip]
	call	twl4030_kpwrite_u8@PLT
	test	rax, rax
	js	.L12
	mov	ecx, DWORD PTR KEYP_LK_PTV_PTV_SHIFT[rip]
	mov	esi, DWORD PTR PTV_PRESCALER[rip]
	mov	rdi, rbp
	mov	edx, DWORD PTR KEYP_LK_PTV[rip]
	sal	esi, cl
	call	twl4030_kpwrite_u8@PLT
	test	rax, rax
	js	.L12
	mov	esi, DWORD PTR PTV_PRESCALER[rip]
	mov	edi, 20000
	call	KEYP_PERIOD_US@PLT
	mov	edx, DWORD PTR KEYP_DEB[rip]
	mov	rdi, rbp
	mov	esi, eax
	call	twl4030_kpwrite_u8@PLT
	test	rax, rax
	js	.L12
	mov	esi, DWORD PTR PTV_PRESCALER[rip]
	mov	edi, 200000
	call	KEYP_PERIOD_US@PLT
	mov	edx, DWORD PTR KEYP_TIMEOUT_L[rip]
	mov	rdi, rbp
	movzx	esi, al
	mov	ebx, eax
	call	twl4030_kpwrite_u8@PLT
	test	rax, rax
	js	.L12
	sar	ebx, 8
	mov	edx, DWORD PTR KEYP_TIMEOUT_H[rip]
	mov	rdi, rbp
	mov	esi, ebx
	call	twl4030_kpwrite_u8@PLT
	test	rax, rax
	js	.L12
	mov	edx, DWORD PTR KEYP_SIH_CTRL[rip]
	mov	esi, DWORD PTR TWL4030_SIH_CTRL_COR_MASK[rip]
	mov	rdi, rbp
	or	esi, DWORD PTR TWL4030_SIH_CTRL_PENDDIS_MASK[rip]
	call	twl4030_kpwrite_u8@PLT
	test	rax, rax
	js	.L12
	mov	esi, DWORD PTR 0[rbp]
	mov	rdi, rbp
	call	twl4030_read_kp_matrix_state@PLT
	mov	r8, rax
	xor	eax, eax
	test	r8, r8
	jns	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	mov	eax, DWORD PTR EIO[rip]
	neg	eax
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	twl4030_kp_program, .-twl4030_kp_program
	.comm	TWL4030_SIH_CTRL_PENDDIS_MASK,4,4
	.comm	TWL4030_SIH_CTRL_COR_MASK,4,4
	.comm	PTV_PRESCALER,4,4
	.comm	KEYP_TIMEOUT_L,4,4
	.comm	KEYP_TIMEOUT_H,4,4
	.comm	KEYP_SIH_CTRL,4,4
	.comm	KEYP_LK_PTV_PTV_SHIFT,4,4
	.comm	KEYP_LK_PTV,4,4
	.comm	KEYP_EDR_TO_RISING,4,4
	.comm	KEYP_EDR_KP_BOTH,4,4
	.comm	KEYP_EDR,4,4
	.comm	KEYP_DEB,4,4
	.comm	KEYP_CTRL_TOE_EN,4,4
	.comm	KEYP_CTRL_SOFT_NRST,4,4
	.comm	KEYP_CTRL_SOFTMODEN,4,4
	.comm	KEYP_CTRL_KBD_ON,4,4
	.comm	KEYP_CTRL,4,4
	.comm	EIO,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_twl4030_keypad.c_twl4030_kp_program.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	twl4030_kp_program, %function
twl4030_kp_program:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, .L15
	ldr	r3, .L15+4
	ldr	ip, .L15+8
	ldr	r1, [r2]
	ldr	r3, [r3]
	ldr	r2, .L15+12
	ldr	ip, [ip]
	orr	r3, r3, r1
	ldr	r1, [r2]
	ldr	r2, .L15+16
	orr	r3, r3, ip
	push	{r4, r5, r6, lr}
	ldr	r2, [r2]
	orr	r1, r3, r1
	mov	r4, r0
	bl	twl4030_kpwrite_u8
	cmp	r0, #0
	blt	.L13
	ldr	r2, .L15+20
	ldr	r3, .L15+24
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, .L15+28
	orr	r1, r1, r2
	mov	r0, r4
	ldr	r2, [r3]
	bl	twl4030_kpwrite_u8
	cmp	r0, #0
	blt	.L13
	ldr	r3, .L15+32
	ldr	r5, .L15+36
	ldr	r2, [r3]
	ldr	r1, [r5]
	ldr	r3, .L15+40
	lsl	r1, r1, r2
	mov	r0, r4
	ldr	r2, [r3]
	bl	twl4030_kpwrite_u8
	cmp	r0, #0
	blt	.L13
	ldr	r1, [r5]
	ldr	r0, .L15+44
	bl	KEYP_PERIOD_US
	ldr	r3, .L15+48
	mov	r1, r0
	ldr	r2, [r3]
	mov	r0, r4
	bl	twl4030_kpwrite_u8
	cmp	r0, #0
	blt	.L13
	ldr	r1, [r5]
	ldr	r0, .L15+52
	bl	KEYP_PERIOD_US
	ldr	r3, .L15+56
	and	r1, r0, #255
	mov	r5, r0
	ldr	r2, [r3]
	mov	r0, r4
	bl	twl4030_kpwrite_u8
	cmp	r0, #0
	blt	.L13
	ldr	r3, .L15+60
	mov	r0, r4
	ldr	r2, [r3]
	asr	r1, r5, #8
	bl	twl4030_kpwrite_u8
	cmp	r0, #0
	blt	.L13
	ldr	r2, .L15+64
	ldr	r3, .L15+68
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, .L15+72
	orr	r1, r1, r2
	mov	r0, r4
	ldr	r2, [r3]
	bl	twl4030_kpwrite_u8
	cmp	r0, #0
	blt	.L13
	mov	r0, r4
	ldr	r1, [r4]
	bl	twl4030_read_kp_matrix_state
	cmp	r0, #0
	blt	.L13
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L13:
	ldr	r3, .L15+76
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L16:
	.align	2
.L15:
	.word	KEYP_CTRL_SOFTMODEN
	.word	KEYP_CTRL_SOFT_NRST
	.word	KEYP_CTRL_TOE_EN
	.word	KEYP_CTRL_KBD_ON
	.word	KEYP_CTRL
	.word	KEYP_EDR_KP_BOTH
	.word	KEYP_EDR_TO_RISING
	.word	KEYP_EDR
	.word	KEYP_LK_PTV_PTV_SHIFT
	.word	PTV_PRESCALER
	.word	KEYP_LK_PTV
	.word	20000
	.word	KEYP_DEB
	.word	200000
	.word	KEYP_TIMEOUT_L
	.word	KEYP_TIMEOUT_H
	.word	TWL4030_SIH_CTRL_COR_MASK
	.word	TWL4030_SIH_CTRL_PENDDIS_MASK
	.word	KEYP_SIH_CTRL
	.word	EIO
	.size	twl4030_kp_program, .-twl4030_kp_program
	.comm	TWL4030_SIH_CTRL_PENDDIS_MASK,4,4
	.comm	TWL4030_SIH_CTRL_COR_MASK,4,4
	.comm	PTV_PRESCALER,4,4
	.comm	KEYP_TIMEOUT_L,4,4
	.comm	KEYP_TIMEOUT_H,4,4
	.comm	KEYP_SIH_CTRL,4,4
	.comm	KEYP_LK_PTV_PTV_SHIFT,4,4
	.comm	KEYP_LK_PTV,4,4
	.comm	KEYP_EDR_TO_RISING,4,4
	.comm	KEYP_EDR_KP_BOTH,4,4
	.comm	KEYP_EDR,4,4
	.comm	KEYP_DEB,4,4
	.comm	KEYP_CTRL_TOE_EN,4,4
	.comm	KEYP_CTRL_SOFT_NRST,4,4
	.comm	KEYP_CTRL_SOFTMODEN,4,4
	.comm	KEYP_CTRL_KBD_ON,4,4
	.comm	KEYP_CTRL,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
