	.file	"extr_ep93xx_keypad.c_ep93xx_keypad_config.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ep93xx_keypad_config, @function
ep93xx_keypad_config:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, QWORD PTR 8[rdi]
	mov	edi, DWORD PTR [rdi]
	mov	esi, DWORD PTR [rbx]
	and	esi, DWORD PTR EP93XX_KEYPAD_KDIV[rip]
	call	clk_set_rate@PLT
	mov	edi, 0
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR EP93XX_KEYPAD_DISABLE_3_KEY[rip], eax
	mov	edx, edi
	cmovne	edx, DWORD PTR KEY_INIT_DIS3KY[rip]
	test	DWORD PTR EP93XX_KEYPAD_DIAG_MODE[rip], eax
	je	.L3
	or	edx, DWORD PTR KEY_INIT_DIAG[rip]
.L3:
	test	DWORD PTR EP93XX_KEYPAD_BACK_DRIVE[rip], eax
	je	.L4
	or	edx, DWORD PTR KEY_INIT_BACK[rip]
.L4:
	test	DWORD PTR EP93XX_KEYPAD_TEST_MODE[rip], eax
	je	.L5
	or	edx, DWORD PTR KEY_INIT_T2[rip]
.L5:
	mov	ecx, DWORD PTR KEY_INIT_DBNC_SHIFT[rip]
	mov	eax, DWORD PTR 4[rbx]
	mov	edi, DWORD PTR 8[rbx]
	mov	esi, DWORD PTR KEY_INIT[rip]
	sal	eax, cl
	mov	ecx, DWORD PTR KEY_INIT_PRSCL_SHIFT[rip]
	and	eax, DWORD PTR KEY_INIT_DBNC_MASK[rip]
	pop	rbx
	.cfi_def_cfa_offset 8
	sal	edi, cl
	and	edi, DWORD PTR KEY_INIT_PRSCL_MASK[rip]
	or	edi, eax
	or	edi, edx
	jmp	keypad_writel@PLT
	.cfi_endproc
.LFE0:
	.size	ep93xx_keypad_config, .-ep93xx_keypad_config
	.comm	KEY_INIT_T2,4,4
	.comm	KEY_INIT_PRSCL_SHIFT,4,4
	.comm	KEY_INIT_PRSCL_MASK,4,4
	.comm	KEY_INIT_DIS3KY,4,4
	.comm	KEY_INIT_DIAG,4,4
	.comm	KEY_INIT_DBNC_SHIFT,4,4
	.comm	KEY_INIT_DBNC_MASK,4,4
	.comm	KEY_INIT_BACK,4,4
	.comm	KEY_INIT,4,4
	.comm	EP93XX_KEYPAD_TEST_MODE,4,4
	.comm	EP93XX_KEYPAD_KDIV,4,4
	.comm	EP93XX_KEYPAD_DISABLE_3_KEY,4,4
	.comm	EP93XX_KEYPAD_DIAG_MODE,4,4
	.comm	EP93XX_KEYPAD_BACK_DRIVE,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_ep93xx_keypad.c_ep93xx_keypad_config.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ep93xx_keypad_config, %function
ep93xx_keypad_config:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L18
	ldr	r4, [r0, #4]
	ldr	r3, [r3]
	ldr	r1, [r4]
	ldr	r0, [r0]
	and	r1, r1, r3
	bl	clk_set_rate
	ldr	r3, .L18+4
	ldr	r2, [r4]
	ldr	r3, [r3]
	ldr	r1, .L18+8
	ands	r3, r2, r3
	ldrne	r3, .L18+12
	ldr	r1, [r1]
	ldrne	r3, [r3]
	tst	r2, r1
	ldrne	r1, .L18+16
	ldr	ip, .L18+20
	ldrne	r1, [r1]
	ldr	r0, .L18+24
	orrne	r3, r3, r1
	ldr	r1, .L18+28
	ldr	lr, [ip]
	ldr	r1, [r1]
	ldr	r0, [r0]
	tst	r2, r1
	ldrne	r1, .L18+32
	ldmib	r4, {r5, ip}
	ldrne	r1, [r1]
	and	r0, r0, r5, lsl lr
	orrne	r3, r3, r1
	ldr	r1, .L18+36
	pop	{r4, r5, r6, lr}
	ldr	r1, [r1]
	tst	r2, r1
	ldrne	r2, .L18+40
	ldr	r1, .L18+44
	ldrne	r2, [r2]
	ldr	r1, [r1]
	orrne	r3, r3, r2
	ldr	r2, .L18+48
	ldr	r2, [r2]
	and	r2, r2, ip, lsl r1
	ldr	r1, .L18+52
	orr	r0, r0, r2
	ldr	r1, [r1]
	orr	r0, r0, r3
	b	keypad_writel
.L19:
	.align	2
.L18:
	.word	EP93XX_KEYPAD_KDIV
	.word	EP93XX_KEYPAD_DISABLE_3_KEY
	.word	EP93XX_KEYPAD_DIAG_MODE
	.word	KEY_INIT_DIS3KY
	.word	KEY_INIT_DIAG
	.word	KEY_INIT_DBNC_SHIFT
	.word	KEY_INIT_DBNC_MASK
	.word	EP93XX_KEYPAD_BACK_DRIVE
	.word	KEY_INIT_BACK
	.word	EP93XX_KEYPAD_TEST_MODE
	.word	KEY_INIT_T2
	.word	KEY_INIT_PRSCL_SHIFT
	.word	KEY_INIT_PRSCL_MASK
	.word	KEY_INIT
	.size	ep93xx_keypad_config, .-ep93xx_keypad_config
	.comm	KEY_INIT_T2,4,4
	.comm	KEY_INIT_PRSCL_SHIFT,4,4
	.comm	KEY_INIT_PRSCL_MASK,4,4
	.comm	KEY_INIT_DIS3KY,4,4
	.comm	KEY_INIT_DIAG,4,4
	.comm	KEY_INIT_DBNC_SHIFT,4,4
	.comm	KEY_INIT_DBNC_MASK,4,4
	.comm	KEY_INIT_BACK,4,4
	.comm	KEY_INIT,4,4
	.comm	EP93XX_KEYPAD_TEST_MODE,4,4
	.comm	EP93XX_KEYPAD_KDIV,4,4
	.comm	EP93XX_KEYPAD_DISABLE_3_KEY,4,4
	.comm	EP93XX_KEYPAD_DIAG_MODE,4,4
	.comm	EP93XX_KEYPAD_BACK_DRIVE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
