	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ps2_close
_ps2_close:                             ## @ps2_close
	.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
	movq	_SA1111_PS2CR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%rbx), %rsi
	xorl	%edi, %edi
	callq	_sa1111_writel
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_disable_irq_wake
	movq	$0, 8(%rbx)
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movl	4(%rax), %edi
	movq	%rbx, %rsi
	callq	_free_irq
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_free_irq
	movq	(%rbx), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_sa1111_disable_device          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SA1111_PS2CR,8,3               ## @SA1111_PS2CR
	.no_dead_strip	_ps2_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ps2_close
_ps2_close:                             ; @ps2_close
	.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
	ldr	x19, [x0]
	ldr	x8, [x19, #16]
Lloh0:
	adrp	x9, _SA1111_PS2CR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SA1111_PS2CR@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_sa1111_writel
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	w0, [x8]
	bl	_disable_irq_wake
	str	xzr, [x19, #8]
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	w0, [x8, #4]
	mov	x1, x19
	bl	_free_irq
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	w0, [x8]
	mov	x1, x19
	bl	_free_irq
	ldr	x0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_sa1111_disable_device
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SA1111_PS2CR,8,3               ; @SA1111_PS2CR
	.no_dead_strip	_ps2_close
.subsections_via_symbols
