	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function imx_keypad_inhibit
_imx_keypad_inhibit:                    ## @imx_keypad_inhibit
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_KPSR@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	8(%rbx), %rdi
	callq	_readw
                                        ## kill: def $ax killed $ax def $eax
	movq	_KBD_STAT_KRIE@GOTPCREL(%rip), %rcx
	movq	_KBD_STAT_KDIE@GOTPCREL(%rip), %rdx
	movzwl	(%rdx), %edx
	orw	(%rcx), %dx
	notl	%edx
	andl	%eax, %edx
	movq	_KBD_STAT_KPKR@GOTPCREL(%rip), %rax
	movq	_KBD_STAT_KPKD@GOTPCREL(%rip), %rcx
	movzwl	(%rcx), %ecx
	orw	(%rax), %cx
	orl	%edx, %ecx
	movq	(%r14), %rsi
	addq	8(%rbx), %rsi
	movzwl	%cx, %edi
	callq	_writew
	movl	(%rbx), %eax
	shll	$8, %eax
	movq	_KPCR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	8(%rbx), %rsi
	movzwl	%ax, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_writew                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_KPSR,8,3                       ## @KPSR
	.comm	_KBD_STAT_KRIE,2,1              ## @KBD_STAT_KRIE
	.comm	_KBD_STAT_KDIE,2,1              ## @KBD_STAT_KDIE
	.comm	_KBD_STAT_KPKR,2,1              ## @KBD_STAT_KPKR
	.comm	_KBD_STAT_KPKD,2,1              ## @KBD_STAT_KPKD
	.comm	_KPCR,8,3                       ## @KPCR
	.no_dead_strip	_imx_keypad_inhibit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function imx_keypad_inhibit
_imx_keypad_inhibit:                    ; @imx_keypad_inhibit
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x20, _KPSR@GOTPAGE
Lloh1:
	ldr	x20, [x20, _KPSR@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readw
Lloh2:
	adrp	x8, _KBD_STAT_KRIE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _KBD_STAT_KRIE@GOTPAGEOFF]
	ldrh	w8, [x8]
Lloh4:
	adrp	x9, _KBD_STAT_KDIE@GOTPAGE
Lloh5:
	ldr	x9, [x9, _KBD_STAT_KDIE@GOTPAGEOFF]
	ldrh	w9, [x9]
	orr	w8, w9, w8
	eor	w8, w8, #0xffff
	and	w8, w0, w8
Lloh6:
	adrp	x9, _KBD_STAT_KPKR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _KBD_STAT_KPKR@GOTPAGEOFF]
	ldrh	w9, [x9]
Lloh8:
	adrp	x10, _KBD_STAT_KPKD@GOTPAGE
Lloh9:
	ldr	x10, [x10, _KBD_STAT_KPKD@GOTPAGEOFF]
	ldrh	w10, [x10]
	orr	w9, w10, w9
	orr	w0, w9, w8
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writew
	ldrh	w8, [x19]
Lloh10:
	adrp	x9, _KPCR@GOTPAGE
Lloh11:
	ldr	x9, [x9, _KPCR@GOTPAGEOFF]
	ldr	x10, [x19, #8]
Lloh12:
	ldr	x9, [x9]
	add	x1, x9, x10
	ubfiz	w0, w8, #8, #8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_writew
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_KPSR,8,3                       ; @KPSR
	.comm	_KBD_STAT_KRIE,2,1              ; @KBD_STAT_KRIE
	.comm	_KBD_STAT_KDIE,2,1              ; @KBD_STAT_KDIE
	.comm	_KBD_STAT_KPKR,2,1              ; @KBD_STAT_KPKR
	.comm	_KBD_STAT_KPKD,2,1              ; @KBD_STAT_KPKD
	.comm	_KPCR,8,3                       ; @KPCR
	.no_dead_strip	_imx_keypad_inhibit
.subsections_via_symbols
