	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ResetDSP
_ResetDSP:                              ## @ResetDSP
	.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	_SBPort@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	$6, %rdi
	movl	$1, %esi
	callq	_outportb
	movl	$10, %edi
	callq	_delay
	movq	(%rbx), %rdi
	addq	$6, %rdi
	xorl	%esi, %esi
	callq	_outportb
	movl	$10, %edi
	callq	_delay
	leaq	-12(%rbp), %rdi
	callq	_ReadDSP
	testq	%rax, %rax
	setne	%al
	cmpl	$170, -12(%rbp)
	sete	%cl
	andb	%al, %cl
	movzbl	%cl, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SBPort,8,3                     ## @SBPort
	.no_dead_strip	_ResetDSP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ResetDSP
_ResetDSP:                              ; @ResetDSP
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
Lloh0:
	adrp	x19, _SBPort@GOTPAGE
Lloh1:
	ldr	x19, [x19, _SBPort@GOTPAGEOFF]
	ldr	x8, [x19]
	add	x0, x8, #6
	mov	w1, #1
	bl	_outportb
	mov	w0, #10
	bl	_delay
	ldr	x8, [x19]
	add	x0, x8, #6
	mov	w1, #0
	bl	_outportb
	mov	w0, #10
	bl	_delay
	add	x0, sp, #12
	bl	_ReadDSP
	cmp	x0, #0
	ldr	w8, [sp, #12]
	mov	w9, #170
	ccmp	w8, w9, #0, ne
	cset	w0, eq
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SBPort,8,3                     ; @SBPort
	.no_dead_strip	_ResetDSP
.subsections_via_symbols
