	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function imx_keypad_config
_imx_keypad_config:                     ## @imx_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_KPCR@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	8(%r14), %rdi
	callq	_readw
                                        ## kill: def $ax killed $ax def $eax
	movzbl	(%r14), %ecx
	movl	4(%r14), %edx
	shll	$8, %edx
	orl	%ecx, %edx
	orl	%eax, %edx
	movq	(%rbx), %rsi
	addq	8(%r14), %rsi
	movzwl	%dx, %edi
	callq	_writew
	movq	_KPDR@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	8(%r14), %rdi
	callq	_readw
                                        ## kill: def $ax killed $ax def $eax
	movzbl	%al, %edi
	movq	(%rbx), %rsi
	addq	8(%r14), %rsi
	callq	_writew
	movq	_KDDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	movl	$65280, %edi                    ## imm = 0xFF00
	callq	_writew
	movq	_KPSR@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	8(%r14), %rdi
	callq	_readw
	movq	_KBD_STAT_KPKR@GOTPCREL(%rip), %rcx
	movq	_KBD_STAT_KPKD@GOTPCREL(%rip), %rdx
	movq	_KBD_STAT_KDSC@GOTPCREL(%rip), %rsi
	movq	_KBD_STAT_KRSS@GOTPCREL(%rip), %rdi
	orw	(%rcx), %ax
	orw	(%rdx), %ax
	orw	(%rsi), %ax
	orw	(%rdi), %ax
	movq	(%r15), %rsi
	addq	8(%r14), %rsi
	movzwl	%ax, %ebx
	movl	%ebx, %edi
	callq	_writew
	movq	_KBD_STAT_KDIE@GOTPCREL(%rip), %rax
	orw	(%rax), %bx
	movq	_KBD_STAT_KRIE@GOTPCREL(%rip), %rax
	movzwl	(%rax), %eax
	notl	%eax
	andl	%ebx, %eax
	movq	(%r15), %rsi
	addq	8(%r14), %rsi
	movzwl	%ax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writew                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_KPCR,8,3                       ## @KPCR
	.comm	_KPDR,8,3                       ## @KPDR
	.comm	_KDDR,8,3                       ## @KDDR
	.comm	_KPSR,8,3                       ## @KPSR
	.comm	_KBD_STAT_KPKR,2,1              ## @KBD_STAT_KPKR
	.comm	_KBD_STAT_KPKD,2,1              ## @KBD_STAT_KPKD
	.comm	_KBD_STAT_KDSC,2,1              ## @KBD_STAT_KDSC
	.comm	_KBD_STAT_KRSS,2,1              ## @KBD_STAT_KRSS
	.comm	_KBD_STAT_KDIE,2,1              ## @KBD_STAT_KDIE
	.comm	_KBD_STAT_KRIE,2,1              ## @KBD_STAT_KRIE
	.no_dead_strip	_imx_keypad_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function imx_keypad_config
_imx_keypad_config:                     ; @imx_keypad_config
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x20, _KPCR@GOTPAGE
Lloh1:
	ldr	x20, [x20, _KPCR@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readw
	ldrb	w8, [x19]
	orr	w8, w8, w0
	ldrh	w9, [x19, #4]
	orr	w8, w8, w9, lsl #8
	ldr	x9, [x19, #8]
	ldr	x10, [x20]
	add	x1, x10, x9
	and	w0, w8, #0xffff
	bl	_writew
	ldr	x8, [x19, #8]
Lloh2:
	adrp	x20, _KPDR@GOTPAGE
Lloh3:
	ldr	x20, [x20, _KPDR@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readw
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	add	x1, x9, x8
	and	w0, w0, #0xff
	bl	_writew
	ldr	x8, [x19, #8]
Lloh4:
	adrp	x9, _KDDR@GOTPAGE
Lloh5:
	ldr	x9, [x9, _KDDR@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #65280
	bl	_writew
	ldr	x8, [x19, #8]
Lloh7:
	adrp	x20, _KPSR@GOTPAGE
Lloh8:
	ldr	x20, [x20, _KPSR@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readw
Lloh9:
	adrp	x8, _KBD_STAT_KPKR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _KBD_STAT_KPKR@GOTPAGEOFF]
	ldrh	w8, [x8]
Lloh11:
	adrp	x9, _KBD_STAT_KPKD@GOTPAGE
Lloh12:
	ldr	x9, [x9, _KBD_STAT_KPKD@GOTPAGEOFF]
	ldrh	w9, [x9]
Lloh13:
	adrp	x10, _KBD_STAT_KDSC@GOTPAGE
Lloh14:
	ldr	x10, [x10, _KBD_STAT_KDSC@GOTPAGEOFF]
	ldrh	w10, [x10]
Lloh15:
	adrp	x11, _KBD_STAT_KRSS@GOTPAGE
Lloh16:
	ldr	x11, [x11, _KBD_STAT_KRSS@GOTPAGEOFF]
	ldrh	w11, [x11]
	orr	w8, w8, w0
	orr	w8, w8, w9
	orr	w8, w8, w10
	orr	w21, w8, w11
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	add	x1, x9, x8
	and	w0, w21, #0xffff
	bl	_writew
Lloh17:
	adrp	x8, _KBD_STAT_KDIE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _KBD_STAT_KDIE@GOTPAGEOFF]
	ldrh	w8, [x8]
	orr	w8, w8, w21
Lloh19:
	adrp	x9, _KBD_STAT_KRIE@GOTPAGE
Lloh20:
	ldr	x9, [x9, _KBD_STAT_KRIE@GOTPAGEOFF]
	ldrh	w9, [x9]
	bic	w8, w8, w9
	ldr	x9, [x19, #8]
	ldr	x10, [x20]
	add	x1, x10, x9
	and	w0, w8, #0xffff
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_writew
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_KPCR,8,3                       ; @KPCR
	.comm	_KPDR,8,3                       ; @KPDR
	.comm	_KDDR,8,3                       ; @KDDR
	.comm	_KPSR,8,3                       ; @KPSR
	.comm	_KBD_STAT_KPKR,2,1              ; @KBD_STAT_KPKR
	.comm	_KBD_STAT_KPKD,2,1              ; @KBD_STAT_KPKD
	.comm	_KBD_STAT_KDSC,2,1              ; @KBD_STAT_KDSC
	.comm	_KBD_STAT_KRSS,2,1              ; @KBD_STAT_KRSS
	.comm	_KBD_STAT_KDIE,2,1              ; @KBD_STAT_KDIE
	.comm	_KBD_STAT_KRIE,2,1              ; @KBD_STAT_KRIE
	.no_dead_strip	_imx_keypad_config
.subsections_via_symbols
