	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i8042_enable_aux_port
_i8042_enable_aux_port:                 ## @i8042_enable_aux_port
	.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	_I8042_CTR_AUXDIS@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	notl	%eax
	movq	_i8042_ctr@GOTPCREL(%rip), %rbx
	andl	(%rbx), %eax
	movq	_I8042_CTR_AUXINT@GOTPCREL(%rip), %r15
	orl	(%r15), %eax
	movl	%eax, (%rbx)
	movq	_I8042_CMD_CTL_WCTR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i8042_command
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	(%r15), %eax
	notl	%eax
	andl	(%rbx), %eax
	orl	(%r14), %eax
	movl	%eax, (%rbx)
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I8042_CTR_AUXDIS,4,2           ## @I8042_CTR_AUXDIS
	.comm	_i8042_ctr,4,2                  ## @i8042_ctr
	.comm	_I8042_CTR_AUXINT,4,2           ## @I8042_CTR_AUXINT
	.comm	_I8042_CMD_CTL_WCTR,4,2         ## @I8042_CMD_CTL_WCTR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to enable AUX port\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_i8042_enable_aux_port
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i8042_enable_aux_port
_i8042_enable_aux_port:                 ; @i8042_enable_aux_port
	.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
Lloh0:
	adrp	x20, _I8042_CTR_AUXDIS@GOTPAGE
Lloh1:
	ldr	x20, [x20, _I8042_CTR_AUXDIS@GOTPAGEOFF]
	ldr	w8, [x20]
Lloh2:
	adrp	x19, _i8042_ctr@GOTPAGE
Lloh3:
	ldr	x19, [x19, _i8042_ctr@GOTPAGEOFF]
	ldr	w9, [x19]
	bic	w8, w9, w8
Lloh4:
	adrp	x21, _I8042_CTR_AUXINT@GOTPAGE
Lloh5:
	ldr	x21, [x21, _I8042_CTR_AUXINT@GOTPAGEOFF]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x19]
Lloh6:
	adrp	x8, _I8042_CMD_CTL_WCTR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _I8042_CMD_CTL_WCTR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_i8042_command
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x21]
	ldr	w9, [x19]
	bic	w8, w9, w8
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x19]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh11:
	adrp	x8, _EIO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_2:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_I8042_CTR_AUXDIS,4,2           ; @I8042_CTR_AUXDIS
	.comm	_i8042_ctr,4,2                  ; @i8042_ctr
	.comm	_I8042_CTR_AUXINT,4,2           ; @I8042_CTR_AUXINT
	.comm	_I8042_CMD_CTL_WCTR,4,2         ; @I8042_CMD_CTL_WCTR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to enable AUX port\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_i8042_enable_aux_port
.subsections_via_symbols
