	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i8042_set_mux_mode
_i8042_set_mux_mode:                    ## @i8042_set_mux_mode
	.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	%rsi, %r14
	movl	%edi, %r13d
	xorl	%eax, %eax
	callq	_i8042_flush
	movb	$-16, -41(%rbp)
	movq	_I8042_CMD_AUX_LOOP@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	-41(%rbp), %rdi
	callq	_i8042_command
	movl	$-1, %r15d
	testq	%rax, %rax
	jne	LBB0_9
## %bb.1:
	cmpb	$-16, -41(%rbp)
	jne	LBB0_9
## %bb.2:
	testl	%r13d, %r13d
	movl	$246, %eax
	movl	$86, %ebx
	cmovel	%eax, %ebx
	movb	%bl, -41(%rbp)
	movl	(%r12), %esi
	leaq	-41(%rbp), %rdi
	callq	_i8042_command
	testq	%rax, %rax
	jne	LBB0_9
## %bb.3:
	cmpb	%bl, -41(%rbp)
	jne	LBB0_9
## %bb.4:
	testl	%r13d, %r13d
	sete	%bl
	orb	$-92, %bl
	movb	%bl, -41(%rbp)
	movl	(%r12), %esi
	leaq	-41(%rbp), %rdi
	callq	_i8042_command
	testq	%rax, %rax
	je	LBB0_5
LBB0_9:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movb	-41(%rbp), %al
	cmpb	%bl, %al
	je	LBB0_9
## %bb.6:
	cmpb	$-84, %al
	je	LBB0_9
## %bb.7:
	xorl	%r15d, %r15d
	testq	%r14, %r14
	je	LBB0_9
## %bb.8:
	movb	%al, (%r14)
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_I8042_CMD_AUX_LOOP,4,2         ## @I8042_CMD_AUX_LOOP
	.no_dead_strip	_i8042_set_mux_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i8042_set_mux_mode
_i8042_set_mux_mode:                    ; @i8042_set_mux_mode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	mov	x20, x0
	bl	_i8042_flush
	mov	w8, #240
	strb	w8, [sp, #15]
Lloh0:
	adrp	x21, _I8042_CMD_AUX_LOOP@GOTPAGE
Lloh1:
	ldr	x21, [x21, _I8042_CMD_AUX_LOOP@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x0, sp, #15
	bl	_i8042_command
	mov	x8, x0
	mov	w0, #-1
	cbnz	x8, LBB0_6
; %bb.1:
	ldrb	w8, [sp, #15]
	cmp	w8, #240
	b.ne	LBB0_6
; %bb.2:
	mov	w8, #86
	mov	w9, #-10
	cmp	w20, #0
	csel	w22, w9, w8, eq
	strb	w22, [sp, #15]
	ldr	w1, [x21]
	add	x0, sp, #15
	bl	_i8042_command
	mov	x8, x0
	mov	w0, #-1
	cbnz	x8, LBB0_6
; %bb.3:
	ldrb	w8, [sp, #15]
	cmp	w8, w22, uxtb
	b.ne	LBB0_6
; %bb.4:
	cmp	w20, #0
	mov	w8, #-92
	cinc	w20, w8, eq
	strb	w20, [sp, #15]
	ldr	w1, [x21]
	add	x0, sp, #15
	bl	_i8042_command
	cbz	x0, LBB0_7
; %bb.5:
	mov	w0, #-1
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_7:
	ldrb	w8, [sp, #15]
	mov	w0, #-1
	cmp	w8, w20, uxtb
	b.eq	LBB0_6
; %bb.8:
	cmp	w8, #172
	b.eq	LBB0_6
; %bb.9:
	mov	w0, #0
	cbz	x19, LBB0_6
; %bb.10:
	strb	w8, [x19]
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_I8042_CMD_AUX_LOOP,4,2         ; @I8042_CMD_AUX_LOOP
	.no_dead_strip	_i8042_set_mux_mode
.subsections_via_symbols
