	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pxa27x_keypad_config
_pxa27x_keypad_config:                  ## @pxa27x_keypad_config
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %r15
	movq	_KPC@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_keypad_readl
	movq	40(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	cmpq	$0, 32(%r15)
	je	LBB0_4
## %bb.2:
	movq	_KPC_ASACT@GOTPCREL(%rip), %rax
	movq	_KPC_MIE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	orq	(%rax), %rbx
	movq	_KPC_ME@GOTPCREL(%rip), %rax
	orq	(%rax), %rbx
	movq	_KPC_MS_ALL@GOTPCREL(%rip), %rax
	orq	(%rax), %rbx
	callq	_KPC_MKRN
	movq	%rax, %r13
	movq	32(%r15), %rdi
	callq	_KPC_MKCN
	orq	%r13, %rax
	orq	%rbx, %rax
	jmp	LBB0_5
LBB0_4:
	xorl	%eax, %eax
LBB0_5:
	movq	24(%r15), %rcx
	xorl	%edi, %edi
	movq	%rcx, %rbx
	testq	%rcx, %rcx
	setne	%dl
	je	LBB0_7
## %bb.6:
	movq	_KPC_REE0@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rbx
LBB0_7:
	movq	16(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.8:
	movq	_KPC_REE1@GOTPCREL(%rip), %rdx
	movl	$4, %edi
	movq	(%rdx), %r8
	jmp	LBB0_10
LBB0_9:
	movb	%dl, %dil
	addl	%edi, %edi
	movq	%rsi, %r8
LBB0_10:
	orq	%rax, %rbx
	movl	(%r15), %edx
	movl	4(%r15), %eax
	cmpl	%edi, %edx
	cmoval	%edx, %edi
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	xorl	%eax, %eax
	testq	%rcx, %rcx
	setne	%al
	leal	(%rax,%rax,2), %eax
	movl	%eax, %edx
	orl	$12, %edx
	testq	%rsi, %rsi
	cmovel	%eax, %edx
	movl	$-1, %eax
	movl	%edi, %ecx
	shll	%cl, %eax
	orl	%edx, %eax
	notl	%eax
LBB0_12:
	orq	%r8, %rbx
	movl	%eax, (%r14)
	testl	%edi, %edi
	je	LBB0_14
## %bb.13:
	movq	_KPC_DE@GOTPCREL(%rip), %rax
	movq	_KPC_DIE@GOTPCREL(%rip), %rcx
	orq	(%rax), %rbx
	orq	(%rcx), %rbx
	callq	_KPC_DKN
	orq	%rax, %rbx
LBB0_14:
	movl	(%r12), %edi
	movq	_KPC_RE_ZERO_DEB@GOTPCREL(%rip), %rax
	orq	(%rax), %rbx
	movq	%rbx, %rsi
	callq	_keypad_writel
	movq	_KPREC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DEFAULT_KPREC@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_keypad_writel
	movq	_KPKDI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%r15), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_keypad_writel                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_KPC,4,2                        ## @KPC
	.comm	_KPC_ASACT,8,3                  ## @KPC_ASACT
	.comm	_KPC_MIE,8,3                    ## @KPC_MIE
	.comm	_KPC_ME,8,3                     ## @KPC_ME
	.comm	_KPC_MS_ALL,8,3                 ## @KPC_MS_ALL
	.comm	_KPC_REE0,8,3                   ## @KPC_REE0
	.comm	_KPC_REE1,8,3                   ## @KPC_REE1
	.comm	_KPC_DE,8,3                     ## @KPC_DE
	.comm	_KPC_DIE,8,3                    ## @KPC_DIE
	.comm	_KPC_RE_ZERO_DEB,8,3            ## @KPC_RE_ZERO_DEB
	.comm	_KPREC,4,2                      ## @KPREC
	.comm	_DEFAULT_KPREC,8,3              ## @DEFAULT_KPREC
	.comm	_KPKDI,4,2                      ## @KPKDI
	.no_dead_strip	_pxa27x_keypad_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pxa27x_keypad_config
_pxa27x_keypad_config:                  ; @pxa27x_keypad_config
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	x21, [x0, #8]
Lloh0:
	adrp	x22, _KPC@GOTPAGE
Lloh1:
	ldr	x22, [x22, _KPC@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_keypad_readl
	ldr	x0, [x21, #40]
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x21, #32]
	cbz	x8, LBB0_4
; %bb.2:
Lloh2:
	adrp	x8, _KPC_ASACT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _KPC_ASACT@GOTPAGEOFF]
Lloh4:
	ldr	x23, [x8]
Lloh5:
	adrp	x8, _KPC_MIE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _KPC_MIE@GOTPAGEOFF]
Lloh7:
	ldr	x24, [x8]
Lloh8:
	adrp	x8, _KPC_ME@GOTPAGE
Lloh9:
	ldr	x8, [x8, _KPC_ME@GOTPAGEOFF]
Lloh10:
	ldr	x25, [x8]
Lloh11:
	adrp	x8, _KPC_MS_ALL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _KPC_MS_ALL@GOTPAGEOFF]
Lloh13:
	ldr	x26, [x8]
	bl	_KPC_MKRN
	mov	x20, x0
	ldr	x0, [x21, #32]
	bl	_KPC_MKCN
	orr	x8, x24, x23
	orr	x8, x8, x25
	orr	x8, x8, x26
	orr	x8, x8, x20
	orr	x8, x8, x0
	b	LBB0_4
LBB0_3:
	mov	x8, #0
LBB0_4:
Lloh14:
	adrp	x9, _KPC_REE0@GOTPAGE
Lloh15:
	ldr	x9, [x9, _KPC_REE0@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	ldp	x11, x10, [x21, #16]
	cmp	x10, #0
	csel	x9, xzr, x9, eq
	cset	w12, ne
	lsl	w12, w12, #1
	orr	x8, x9, x8
Lloh17:
	adrp	x9, _KPC_REE1@GOTPAGE
Lloh18:
	ldr	x9, [x9, _KPC_REE1@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	mov	w13, #4
	cmp	x11, #0
	csel	x9, xzr, x9, eq
	csel	w12, w12, w13, eq
	orr	x20, x8, x9
	ldp	w8, w9, [x21]
	cmp	w8, w12
	csel	w0, w8, w12, hi
	cmp	x10, #0
	mov	w8, #3
	csel	w8, wzr, w8, eq
	orr	w10, w8, #0xc
	cmp	x11, #0
	csel	w8, w8, w10, eq
	mov	w10, #-1
	lsl	w10, w10, w0
	orr	w8, w10, w8
	cmp	w9, #0
	csinv	w8, w9, w8, ne
	str	w8, [x19]
	cbz	w0, LBB0_6
; %bb.5:
Lloh20:
	adrp	x8, _KPC_DE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _KPC_DE@GOTPAGEOFF]
Lloh22:
	ldr	x19, [x8]
Lloh23:
	adrp	x8, _KPC_DIE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _KPC_DIE@GOTPAGEOFF]
Lloh25:
	ldr	x23, [x8]
	bl	_KPC_DKN
	orr	x8, x19, x20
	orr	x8, x8, x23
	orr	x20, x8, x0
LBB0_6:
	ldr	w0, [x22]
Lloh26:
	adrp	x8, _KPC_RE_ZERO_DEB@GOTPAGE
Lloh27:
	ldr	x8, [x8, _KPC_RE_ZERO_DEB@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	orr	x1, x8, x20
	bl	_keypad_writel
Lloh29:
	adrp	x8, _KPREC@GOTPAGE
Lloh30:
	ldr	x8, [x8, _KPREC@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
Lloh32:
	adrp	x8, _DEFAULT_KPREC@GOTPAGE
Lloh33:
	ldr	x8, [x8, _DEFAULT_KPREC@GOTPAGEOFF]
Lloh34:
	ldr	x1, [x8]
	bl	_keypad_writel
Lloh35:
	adrp	x8, _KPKDI@GOTPAGE
Lloh36:
	ldr	x8, [x8, _KPKDI@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
	ldr	x1, [x21, #8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_keypad_writel
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_KPC,4,2                        ; @KPC
	.comm	_KPC_ASACT,8,3                  ; @KPC_ASACT
	.comm	_KPC_MIE,8,3                    ; @KPC_MIE
	.comm	_KPC_ME,8,3                     ; @KPC_ME
	.comm	_KPC_MS_ALL,8,3                 ; @KPC_MS_ALL
	.comm	_KPC_REE0,8,3                   ; @KPC_REE0
	.comm	_KPC_REE1,8,3                   ; @KPC_REE1
	.comm	_KPC_DE,8,3                     ; @KPC_DE
	.comm	_KPC_DIE,8,3                    ; @KPC_DIE
	.comm	_KPC_RE_ZERO_DEB,8,3            ; @KPC_RE_ZERO_DEB
	.comm	_KPREC,4,2                      ; @KPREC
	.comm	_DEFAULT_KPREC,8,3              ; @DEFAULT_KPREC
	.comm	_KPKDI,4,2                      ; @KPKDI
	.no_dead_strip	_pxa27x_keypad_config
.subsections_via_symbols
