	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function restore_dsp_rettings
_restore_dsp_rettings:                  ## @restore_dsp_rettings
	.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
	leaq	L_.str(%rip), %rdi
	callq	_DE_INIT
	movq	%rbx, %rdi
	callq	_check_asic_status
	testl	%eax, %eax
	js	LBB0_5
## %bb.1:
	movq	_GD_CLOCK_UNDEF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	24(%rbx), %rcx
	movl	%eax, 8(%rcx)
	movq	_GD_SPDIF_STATUS_UNDEF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rcx)
	movl	$-1, (%rcx)
	movl	16(%rbx), %esi
	movq	%rbx, %rdi
	callq	_set_sample_rate
	testl	%eax, %eax
	js	LBB0_5
## %bb.2:
	cmpq	$0, 8(%rbx)
	je	LBB0_6
## %bb.3:
	movq	_DSP_VC_METERS_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_send_vector
	testl	%eax, %eax
	js	LBB0_4
LBB0_6:
	movq	%rbx, %rdi
	callq	_update_output_line_level
	testq	%rax, %rax
	js	LBB0_4
## %bb.7:
	movq	%rbx, %rdi
	callq	_update_input_line_level
	testq	%rax, %rax
	js	LBB0_4
## %bb.8:
	movq	%rbx, %rdi
	callq	_wait_handshake
	testq	%rax, %rax
	js	LBB0_4
## %bb.9:
	movq	%rbx, %rdi
	callq	_clear_handshake
	leaq	L_.str.1(%rip), %rdi
	callq	_DE_INIT
	movq	_DSP_VC_UPDATE_FLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_send_vector                    ## TAILCALL
LBB0_4:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"restore_dsp_settings\n"

	.comm	_GD_CLOCK_UNDEF,4,2             ## @GD_CLOCK_UNDEF
	.comm	_GD_SPDIF_STATUS_UNDEF,4,2      ## @GD_SPDIF_STATUS_UNDEF
	.comm	_DSP_VC_METERS_ON,4,2           ## @DSP_VC_METERS_ON
	.comm	_EIO,4,2                        ## @EIO
L_.str.1:                               ## @.str.1
	.asciz	"restore_dsp_rettings done\n"

	.comm	_DSP_VC_UPDATE_FLAGS,4,2        ## @DSP_VC_UPDATE_FLAGS
	.no_dead_strip	_restore_dsp_rettings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function restore_dsp_rettings
_restore_dsp_rettings:                  ; @restore_dsp_rettings
	.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
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DE_INIT
	mov	x0, x19
	bl	_check_asic_status
	tbnz	w0, #31, LBB0_9
; %bb.1:
Lloh2:
	adrp	x8, _GD_CLOCK_UNDEF@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GD_CLOCK_UNDEF@GOTPAGEOFF]
Lloh4:
	ldr	w11, [x8]
	ldr	x9, [x19, #24]
Lloh5:
	adrp	x10, _GD_SPDIF_STATUS_UNDEF@GOTPAGE
Lloh6:
	ldr	x10, [x10, _GD_SPDIF_STATUS_UNDEF@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x10]
	mov	w10, #-1
	stp	w8, w11, [x9, #4]
	str	w10, [x9]
	ldr	w1, [x19, #16]
	mov	x0, x19
	bl	_set_sample_rate
	tbnz	w0, #31, LBB0_9
; %bb.2:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_4
; %bb.3:
Lloh8:
	adrp	x8, _DSP_VC_METERS_ON@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DSP_VC_METERS_ON@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_send_vector
	tbnz	w0, #31, LBB0_8
LBB0_4:
	mov	x0, x19
	bl	_update_output_line_level
	tbnz	x0, #63, LBB0_8
; %bb.5:
	mov	x0, x19
	bl	_update_input_line_level
	tbnz	x0, #63, LBB0_8
; %bb.6:
	mov	x0, x19
	bl	_wait_handshake
	tbnz	x0, #63, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_clear_handshake
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DE_INIT
Lloh13:
	adrp	x8, _DSP_VC_UPDATE_FLAGS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DSP_VC_UPDATE_FLAGS@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_send_vector
LBB0_8:
Lloh16:
	adrp	x8, _EIO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"restore_dsp_settings\n"

	.comm	_GD_CLOCK_UNDEF,4,2             ; @GD_CLOCK_UNDEF
	.comm	_GD_SPDIF_STATUS_UNDEF,4,2      ; @GD_SPDIF_STATUS_UNDEF
	.comm	_DSP_VC_METERS_ON,4,2           ; @DSP_VC_METERS_ON
	.comm	_EIO,4,2                        ; @EIO
l_.str.1:                               ; @.str.1
	.asciz	"restore_dsp_rettings done\n"

	.comm	_DSP_VC_UPDATE_FLAGS,4,2        ; @DSP_VC_UPDATE_FLAGS
	.no_dead_strip	_restore_dsp_rettings
.subsections_via_symbols
