	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vx_send_irq_dsp
_vx_send_irq_dsp:                       ## @vx_send_irq_dsp
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	_VX_CVR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CVR_HC@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	xorl	%r14d, %r14d
	xorl	%ecx, %ecx
	movl	$200, %r8d
	callq	_snd_vx_check_reg_bit
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_vx_has_new_dsp
	movl	$0, %edx
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_VXP_IRQ_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_4:
	addl	%r15d, %edx
	movq	_CVR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	sarl	%edx
	orl	(%r12), %edx
	movq	%rbx, %rdi
	callq	_vx_outb
	jmp	LBB0_5
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_5:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VX_CVR,4,2                     ## @VX_CVR
	.comm	_CVR_HC,4,2                     ## @CVR_HC
	.comm	_EIO,4,2                        ## @EIO
	.comm	_VXP_IRQ_OFFSET,8,3             ## @VXP_IRQ_OFFSET
	.comm	_CVR,4,2                        ## @CVR
	.no_dead_strip	_vx_send_irq_dsp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vx_send_irq_dsp
_vx_send_irq_dsp:                       ; @vx_send_irq_dsp
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _VX_CVR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VX_CVR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x21, _CVR_HC@GOTPAGE
Lloh4:
	ldr	x21, [x21, _CVR_HC@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	w3, #0
	mov	w4, #200
	bl	_snd_vx_check_reg_bit
	tbnz	x0, #63, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_vx_has_new_dsp
Lloh5:
	adrp	x8, _VXP_IRQ_OFFSET@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VXP_IRQ_OFFSET@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	add	w8, w8, w20
Lloh8:
	adrp	x9, _CVR@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CVR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x9]
	ldr	w9, [x21]
	orr	w2, w9, w8, asr #1
	mov	x0, x19
	bl	_vx_outb
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh11:
	adrp	x8, _EIO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_VX_CVR,4,2                     ; @VX_CVR
	.comm	_CVR_HC,4,2                     ; @CVR_HC
	.comm	_EIO,4,2                        ; @EIO
	.comm	_VXP_IRQ_OFFSET,8,3             ; @VXP_IRQ_OFFSET
	.comm	_CVR,4,2                        ; @CVR
	.no_dead_strip	_vx_send_irq_dsp
.subsections_via_symbols
