	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dsp_reset
_dsp_reset:                             ## @dsp_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	leaq	L_.str(%rip), %rdi
	callq	_snd_printdd
	movl	$-19, %eax
	movq	_VENDOR_DSPIO_DSP_INIT@GOTPCREL(%rip), %r15
	movq	_EIO@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, %ebx
	movl	(%r15), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_dspio_send
	addl	(%r14), %eax
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	leal	1(%rbx), %eax
	testl	%ebx, %ebx
	jne	LBB0_1
LBB0_3:
	xorl	%eax, %eax
	testl	%ebx, %ebx
	jne	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	callq	_snd_printdd
	xorl	%eax, %eax
	subl	(%r14), %eax
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dsp_reset\n"

	.comm	_VENDOR_DSPIO_DSP_INIT,4,2      ## @VENDOR_DSPIO_DSP_INIT
	.comm	_EIO,4,2                        ## @EIO
L_.str.1:                               ## @.str.1
	.asciz	"dsp_reset timeout\n"

	.no_dead_strip	_dsp_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dsp_reset
_dsp_reset:                             ; @dsp_reset
	.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	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_snd_printdd
	mov	w8, #-19
Lloh2:
	adrp	x21, _VENDOR_DSPIO_DSP_INIT@GOTPAGE
Lloh3:
	ldr	x21, [x21, _VENDOR_DSPIO_DSP_INIT@GOTPAGEOFF]
Lloh4:
	adrp	x20, _EIO@GOTPAGE
Lloh5:
	ldr	x20, [x20, _EIO@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x22, x8
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #0
	bl	_dspio_send
	ldr	w9, [x20]
	add	w8, w22, #1
	cmn	w0, w9
	ccmp	w22, #0, #4, eq
	b.ne	LBB0_1
; %bb.2:
	cbz	w22, LBB0_4
; %bb.3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_snd_printdd
	ldr	w8, [x20]
	neg	w0, w8
LBB0_5:
	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	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dsp_reset\n"

	.comm	_VENDOR_DSPIO_DSP_INIT,4,2      ; @VENDOR_DSPIO_DSP_INIT
	.comm	_EIO,4,2                        ; @EIO
l_.str.1:                               ; @.str.1
	.asciz	"dsp_reset timeout\n"

	.no_dead_strip	_dsp_reset
.subsections_via_symbols
