	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_KillSB                         ## -- Begin function KillSB
	.p2align	4, 0x90
_KillSB:                                ## @KillSB
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_hsmode@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_ResetDSP
	jmp	LBB0_3
LBB0_2:
	movq	_format@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	$1, (%rax)
	adcl	$217, %edi
	callq	_WriteDSP
LBB0_3:
	movl	$211, %edi
	callq	_WriteDSP
	movq	_SBIRQ@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	xorl	%edi, %edi
	cmpl	$8, %eax
	setge	%dil
	shll	$7, %edi
	orl	$33, %edi
	movq	_PICMask@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	andb	$7, %al
	btsl	%eax, %esi
	callq	_outportb
	xorl	%eax, %eax
	callq	_ResetVectors
	xorl	%edi, %edi
	cmpl	$8, (%r14)
	setge	%dil
	shll	$7, %edi
	orl	$33, %edi
	movl	(%rbx), %esi
	callq	_outportb
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_KillDMABuffer                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_hsmode,8,3                     ## @hsmode
	.comm	_format,8,3                     ## @format
	.comm	_SBIRQ,4,2                      ## @SBIRQ
	.comm	_PICMask,4,2                    ## @PICMask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_KillSB                         ; -- Begin function KillSB
	.p2align	2
_KillSB:                                ; @KillSB
	.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	x8, _hsmode@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hsmode@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	bl	_ResetDSP
	b	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _format@GOTPAGE
Lloh4:
	ldr	x8, [x8, _format@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, #0
	mov	w8, #217
	cinc	w0, w8, eq
	bl	_WriteDSP
LBB0_3:
	mov	w0, #211
	bl	_WriteDSP
Lloh6:
	adrp	x19, _SBIRQ@GOTPAGE
Lloh7:
	ldr	x19, [x19, _SBIRQ@GOTPAGEOFF]
	ldr	w8, [x19]
	mov	w20, #33
	mov	w21, #161
Lloh8:
	adrp	x22, _PICMask@GOTPAGE
Lloh9:
	ldr	x22, [x22, _PICMask@GOTPAGEOFF]
	cmp	w8, #7
	csel	w0, w21, w20, gt
	ldr	w9, [x22]
	and	w8, w8, #0x7
	mov	w10, #1
	lsl	w8, w10, w8
	orr	w1, w8, w9
	bl	_outportb
	bl	_ResetVectors
	ldr	w8, [x19]
	cmp	w8, #7
	csel	w0, w21, w20, gt
	ldr	w1, [x22]
	bl	_outportb
	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
	b	_KillDMABuffer
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_hsmode,8,3                     ; @hsmode
	.comm	_format,8,3                     ; @format
	.comm	_SBIRQ,4,2                      ; @SBIRQ
	.comm	_PICMask,4,2                    ; @PICMask
.subsections_via_symbols
