	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ps2mult_reset
_ps2mult_reset:                         ## @ps2mult_reset
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_spin_lock_irqsave
	movl	16(%rbx), %edi
	movq	_PS2MULT_SESSION_END@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_serio_write
	movl	16(%rbx), %edi
	movq	_PS2MULT_SESSION_START@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_serio_write
	movq	_PS2MULT_KBD_PORT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	shlq	$2, %rsi
	addq	8(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_ps2mult_select_port
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PS2MULT_SESSION_END,4,2        ## @PS2MULT_SESSION_END
	.comm	_PS2MULT_SESSION_START,4,2      ## @PS2MULT_SESSION_START
	.comm	_PS2MULT_KBD_PORT,8,3           ## @PS2MULT_KBD_PORT
	.no_dead_strip	_ps2mult_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ps2mult_reset
_ps2mult_reset:                         ; @ps2mult_reset
	.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
	bl	_spin_lock_irqsave
	ldr	w0, [x19, #16]
Lloh0:
	adrp	x8, _PS2MULT_SESSION_END@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PS2MULT_SESSION_END@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_serio_write
	ldr	w0, [x19, #16]
Lloh3:
	adrp	x8, _PS2MULT_SESSION_START@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PS2MULT_SESSION_START@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_serio_write
	ldr	x8, [x19, #8]
Lloh6:
	adrp	x9, _PS2MULT_KBD_PORT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PS2MULT_KBD_PORT@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x1, x8, x9, lsl #2
	mov	x0, x19
	bl	_ps2mult_select_port
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PS2MULT_SESSION_END,4,2        ; @PS2MULT_SESSION_END
	.comm	_PS2MULT_SESSION_START,4,2      ; @PS2MULT_SESSION_START
	.comm	_PS2MULT_KBD_PORT,8,3           ; @PS2MULT_KBD_PORT
	.no_dead_strip	_ps2mult_reset
.subsections_via_symbols
