	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setup_dig_out_stream
_setup_dig_out_stream:                  ## @setup_dig_out_stream
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movl	%edx, %r12d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_snd_hda_spdif_out_of_nid
	movq	%rax, %r13
	movq	_AC_VERB_GET_STREAM_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_snd_hda_codec_read
	cmpq	$0, 8(%rbx)
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	movl	(%r13), %ecx
	movq	_AC_DIG1_ENABLE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	testl	%ecx, %edx
	je	LBB0_5
## %bb.3:
	cmpl	%r15d, %eax
	je	LBB0_5
## %bb.4:
	notl	%edx
	andl	%edx, %ecx
	movzbl	%cl, %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$-1, %ecx
	callq	_set_dig_out_convert
	movb	$1, %al
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_5
LBB0_1:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_5:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%r12d, %edx
	xorl	%ecx, %ecx
	movl	%r15d, %r8d
	callq	_snd_hda_codec_setup_stream
	movq	(%rbx), %r13
	testq	%r13, %r13
	je	LBB0_9
## %bb.6:
	movq	(%r13), %rsi
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.7:
	addq	$8, %r13
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	%r12d, %edx
	xorl	%ecx, %ecx
	movl	%r15d, %r8d
	callq	_snd_hda_codec_setup_stream
	movq	(%r13), %rsi
	addq	$8, %r13
	testq	%rsi, %rsi
	jne	LBB0_8
LBB0_9:
	cmpb	$0, -44(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_10
## %bb.11:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movzbl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$-1, %ecx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_set_dig_out_convert            ## TAILCALL
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AC_VERB_GET_STREAM_FORMAT,4,2  ## @AC_VERB_GET_STREAM_FORMAT
	.comm	_AC_DIG1_ENABLE,4,2             ## @AC_DIG1_ENABLE
	.no_dead_strip	_setup_dig_out_stream
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setup_dig_out_stream
_setup_dig_out_stream:                  ; @setup_dig_out_stream
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x3
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	bl	_snd_hda_spdif_out_of_nid
	mov	x23, x0
Lloh0:
	adrp	x8, _AC_VERB_GET_STREAM_FORMAT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AC_VERB_GET_STREAM_FORMAT@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	mov	w4, #0
	bl	_snd_hda_codec_read
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w8, [x23]
Lloh3:
	adrp	x9, _AC_DIG1_ENABLE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AC_DIG1_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w10, w9, w8
	cmp	w10, #0
	ccmp	w0, w21, #4, ne
	b.ne	LBB0_3
LBB0_2:
	mov	w24, #0
	b	LBB0_4
LBB0_3:
	bic	w8, w8, w9
	and	w2, w8, #0xff
	mov	x0, x20
	mov	x1, x19
	mov	w3, #-1
	bl	_set_dig_out_convert
	mov	w24, #1
LBB0_4:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	mov	w3, #0
	mov	x4, x21
	bl	_snd_hda_codec_setup_stream
	ldr	x8, [x20]
	cbz	x8, LBB0_8
; %bb.5:
	ldr	x1, [x8]
	cbz	x1, LBB0_8
; %bb.6:
	add	x25, x8, #8
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x2, x22
	mov	w3, #0
	mov	x4, x21
	bl	_snd_hda_codec_setup_stream
	ldr	x1, [x25], #8
	cbnz	x1, LBB0_7
LBB0_8:
	cbz	w24, LBB0_10
; %bb.9:
	ldrb	w2, [x23]
	mov	x0, x20
	mov	x1, x19
	mov	w3, #-1
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_set_dig_out_convert
LBB0_10:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AC_VERB_GET_STREAM_FORMAT,4,2  ; @AC_VERB_GET_STREAM_FORMAT
	.comm	_AC_DIG1_ENABLE,4,2             ; @AC_DIG1_ENABLE
	.no_dead_strip	_setup_dig_out_stream
.subsections_via_symbols
