	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %r15
	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, %r12
	movq	32(%r15), %rdi
	callq	_KPC_MKCN
	orq	%r12, %rax
	orq	%rbx, %rax
	jmp	LBB0_5
LBB0_4:
	xorl	%eax, %eax
LBB0_5:
	movq	24(%r15), %rdx
	xorl	%esi, %esi
	testq	%rdx, %rdx
	setne	%sil
	leal	(%rsi,%rsi,2), %ecx
	je	LBB0_7
## %bb.6:
	movq	_KPC_REE0@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
LBB0_7:
	orq	%rax, %rdx
	addl	%esi, %esi
	movq	16(%r15), %rbx
	movl	%ecx, %eax
	orl	$12, %eax
	testq	%rbx, %rbx
	cmovel	%ecx, %eax
	movl	$4, %ecx
	cmovel	%esi, %ecx
	movq	_KPC_REE1@GOTPCREL(%rip), %rsi
	cmovneq	(%rsi), %rbx
	orq	%rdx, %rbx
	movl	(%r15), %edx
	cmpl	%ecx, %edx
	cmoval	%edx, %ecx
	movl	$2, %edx
	shll	%cl, %edx
	decl	%edx
	notl	%eax
	andl	%edx, %eax
	movl	%eax, (%r14)
	testl	%ecx, %ecx
	je	LBB0_9
## %bb.8:
	movq	_KPC_DE@GOTPCREL(%rip), %rax
	movq	_KPC_DIE@GOTPCREL(%rip), %rdx
	orq	(%rax), %rbx
	orq	(%rdx), %rbx
	movl	%ecx, %edi
	callq	_KPC_DKN
	orq	%rax, %rbx
LBB0_9:
	movq	_KPC@GOTPCREL(%rip), %rax
	movl	(%rax), %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
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_keypad_writel                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.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,4,2                        ## @KPC
	.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]
	ldr	x0, [x21, #40]
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x21, #32]
	cbz	x8, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _KPC_ASACT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KPC_ASACT@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
Lloh3:
	adrp	x8, _KPC_MIE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KPC_MIE@GOTPAGEOFF]
Lloh5:
	ldr	x23, [x8]
Lloh6:
	adrp	x8, _KPC_ME@GOTPAGE
Lloh7:
	ldr	x8, [x8, _KPC_ME@GOTPAGEOFF]
Lloh8:
	ldr	x24, [x8]
Lloh9:
	adrp	x8, _KPC_MS_ALL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _KPC_MS_ALL@GOTPAGEOFF]
Lloh11:
	ldr	x25, [x8]
	bl	_KPC_MKRN
	mov	x20, x0
	ldr	x0, [x21, #32]
	bl	_KPC_MKCN
	orr	x8, x23, x22
	orr	x8, x8, x24
	orr	x8, x8, x25
	orr	x8, x8, x20
	orr	x8, x8, x0
	b	LBB0_4
LBB0_3:
	mov	x8, #0
LBB0_4:
Lloh12:
	adrp	x9, _KPC_REE0@GOTPAGE
Lloh13:
	ldr	x9, [x9, _KPC_REE0@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	ldp	x11, x10, [x21, #16]
	cmp	x10, #0
	csel	x9, xzr, x9, eq
	cset	w10, ne
	mov	w12, #3
	csel	w12, wzr, w12, eq
	lsl	w10, w10, #1
	orr	x8, x9, x8
	orr	w9, w12, #0xc
Lloh15:
	adrp	x13, _KPC_REE1@GOTPAGE
Lloh16:
	ldr	x13, [x13, _KPC_REE1@GOTPAGEOFF]
Lloh17:
	ldr	x13, [x13]
	cmp	x11, #0
	csel	x11, xzr, x13, eq
	csel	w9, w12, w9, eq
	mov	w12, #4
	csel	w10, w10, w12, eq
	orr	x20, x8, x11
	ldr	w8, [x21]
	cmp	w8, w10
	csel	w0, w8, w10, hi
	mov	w8, #2
	lsl	w8, w8, w0
	sub	w8, w8, #1
	bic	w8, w8, w9
	str	w8, [x19]
	cbz	w0, LBB0_6
; %bb.5:
Lloh18:
	adrp	x8, _KPC_DE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _KPC_DE@GOTPAGEOFF]
Lloh20:
	ldr	x19, [x8]
Lloh21:
	adrp	x8, _KPC_DIE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _KPC_DIE@GOTPAGEOFF]
Lloh23:
	ldr	x22, [x8]
	bl	_KPC_DKN
	orr	x8, x19, x20
	orr	x8, x8, x22
	orr	x20, x8, x0
LBB0_6:
Lloh24:
	adrp	x8, _KPC@GOTPAGE
Lloh25:
	ldr	x8, [x8, _KPC@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
Lloh27:
	adrp	x8, _KPC_RE_ZERO_DEB@GOTPAGE
Lloh28:
	ldr	x8, [x8, _KPC_RE_ZERO_DEB@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	orr	x1, x8, x20
	bl	_keypad_writel
Lloh30:
	adrp	x8, _KPREC@GOTPAGE
Lloh31:
	ldr	x8, [x8, _KPREC@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
Lloh33:
	adrp	x8, _DEFAULT_KPREC@GOTPAGE
Lloh34:
	ldr	x8, [x8, _DEFAULT_KPREC@GOTPAGEOFF]
Lloh35:
	ldr	x1, [x8]
	bl	_keypad_writel
Lloh36:
	adrp	x8, _KPKDI@GOTPAGE
Lloh37:
	ldr	x8, [x8, _KPKDI@GOTPAGEOFF]
Lloh38:
	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 AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.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,4,2                        ; @KPC
	.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
