	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_hda_multi_out_analog_prepare ## -- Begin function snd_hda_multi_out_analog_prepare
	.p2align	4, 0x90
_snd_hda_multi_out_analog_prepare:      ## @snd_hda_multi_out_analog_prepare
	.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, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	(%rsi), %r14
	movq	(%r8), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	callq	_mutex_lock
	movq	48(%r15), %rsi
	movq	%r12, %rdi
	callq	_snd_hda_spdif_out_of_nid
	movq	48(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.1:
	cmpq	$0, 56(%r15)
	je	LBB0_8
## %bb.2:
	movq	%rax, %rbx
	movq	8(%r15), %rax
	movq	_HDA_DIG_EXCLUSIVE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.3:
	cmpl	$2, -52(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_7
## %bb.4:
	movq	%r12, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_snd_hda_is_supported_format
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	_IEC958_AES0_NONAUDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_6
LBB0_7:
	movq	$0, 8(%r15)
	movq	48(%r15), %rsi
	movq	%r12, %rdi
	callq	_cleanup_dig_out_stream
LBB0_8:
	movq	%r12, %rdi
	callq	_mutex_unlock
	movq	_HDA_FRONT@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	(%r14,%rax,8), %rsi
	movq	%r12, %rdi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	xorl	%ecx, %ecx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	callq	_snd_hda_codec_setup_stream
	cmpl	$0, 44(%r15)
	je	LBB0_9
LBB0_12:
	movq	24(%r15), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_18
## %bb.13:
	xorl	%ebx, %ebx
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_14 Depth=1
	incq	%rbx
	movq	24(%r15), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_18
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$0, 44(%r15)
	jne	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	24(%r15), %rax
	movq	(%rax,%rbx,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%r12, %rdi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	xorl	%ecx, %ecx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	callq	_snd_hda_codec_setup_stream
	jmp	LBB0_17
LBB0_18:
	movq	32(%r15), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_24
## %bb.19:
	xorl	%ebx, %ebx
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_20 Depth=1
	incq	%rbx
	movq	32(%r15), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_24
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$0, 44(%r15)
	jne	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	32(%r15), %rax
	movq	(%rax,%rbx,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	%r12, %rdi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	xorl	%ecx, %ecx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	callq	_snd_hda_codec_setup_stream
	jmp	LBB0_23
LBB0_24:
	cmpl	$2, 40(%r15)
	jl	LBB0_32
## %bb.25:
	movq	%r14, %rbx
	movl	$1, %r13d
	movl	$2, %r14d
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_26 Depth=1
	movq	(%rbx,%rax,8), %rsi
	movq	%r12, %rdi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
LBB0_30:                                ##   in Loop: Header=BB0_26 Depth=1
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	callq	_snd_hda_codec_setup_stream
LBB0_31:                                ##   in Loop: Header=BB0_26 Depth=1
	movslq	40(%r15), %rax
	cmpq	%rax, %r13
	jge	LBB0_32
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rax
	movl	%r14d, %ecx
	incq	%r13
	leal	2(%rcx), %r14d
	cmpl	%r14d, -52(%rbp)                ## 4-byte Folded Reload
	jge	LBB0_27
## %bb.28:                              ##   in Loop: Header=BB0_26 Depth=1
	cmpl	$0, 44(%r15)
	jne	LBB0_31
## %bb.29:                              ##   in Loop: Header=BB0_26 Depth=1
	movq	(%rbx,%rax,8), %rsi
	movq	%r12, %rdi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	xorl	%ecx, %ecx
	jmp	LBB0_30
LBB0_32:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	16(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_12
## %bb.10:
	movq	(%rbx), %rax
	cmpq	(%r14,%rax,8), %rsi
	je	LBB0_12
## %bb.11:
	movq	%r12, %rdi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	xorl	%ecx, %ecx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	callq	_snd_hda_codec_setup_stream
	jmp	LBB0_12
LBB0_6:
	movq	_HDA_DIG_ANALOG_DUP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r15)
	movq	48(%r15), %rsi
	movq	%r12, %rdi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_setup_dig_out_stream
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_HDA_DIG_EXCLUSIVE,8,3          ## @HDA_DIG_EXCLUSIVE
	.comm	_IEC958_AES0_NONAUDIO,4,2       ## @IEC958_AES0_NONAUDIO
	.comm	_HDA_DIG_ANALOG_DUP,8,3         ## @HDA_DIG_ANALOG_DUP
	.comm	_HDA_FRONT,8,3                  ## @HDA_FRONT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_hda_multi_out_analog_prepare ; -- Begin function snd_hda_multi_out_analog_prepare
	.p2align	2
_snd_hda_multi_out_analog_prepare:      ; @snd_hda_multi_out_analog_prepare
	.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	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	ldr	x24, [x1]
	ldr	x8, [x4]
	ldr	w25, [x8]
	bl	_mutex_lock
	ldr	x1, [x21, #48]
	mov	x0, x22
	bl	_snd_hda_spdif_out_of_nid
	ldr	x1, [x21, #48]
	cbz	x1, LBB0_7
; %bb.1:
	ldr	x8, [x21, #56]
	cbz	x8, LBB0_7
; %bb.2:
	ldr	x8, [x21, #8]
Lloh0:
	adrp	x9, _HDA_DIG_EXCLUSIVE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HDA_DIG_EXCLUSIVE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_7
; %bb.3:
	cmp	w25, #2
	b.ne	LBB0_6
; %bb.4:
	mov	x23, x0
	mov	x0, x22
	mov	x2, x19
	bl	_snd_hda_is_supported_format
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w8, [x23]
Lloh3:
	adrp	x9, _IEC958_AES0_NONAUDIO@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IEC958_AES0_NONAUDIO@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_32
LBB0_6:
	str	xzr, [x21, #8]
	ldr	x1, [x21, #48]
	mov	x0, x22
	bl	_cleanup_dig_out_stream
LBB0_7:
	mov	x0, x22
	bl	_mutex_unlock
Lloh6:
	adrp	x23, _HDA_FRONT@GOTPAGE
Lloh7:
	ldr	x23, [x23, _HDA_FRONT@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	x1, [x24, x8, lsl #3]
	mov	x0, x22
	mov	x2, x20
	mov	w3, #0
	mov	x4, x19
	bl	_snd_hda_codec_setup_stream
	ldr	w8, [x21, #44]
	cbz	w8, LBB0_29
LBB0_8:
	ldr	x0, [x21, #24]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_14
; %bb.9:
	mov	x23, #0
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x23, x23, #1
	ldr	x0, [x21, #24]
	bl	_ARRAY_SIZE
	cmp	x23, w0, sxtw
	b.ge	LBB0_14
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21, #44]
	cbnz	w8, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x21, #24]
	ldr	x1, [x8, x23, lsl #3]
	cbz	x1, LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x22
	mov	x2, x20
	mov	w3, #0
	mov	x4, x19
	bl	_snd_hda_codec_setup_stream
	b	LBB0_10
LBB0_14:
	ldr	x0, [x21, #32]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_20
; %bb.15:
	mov	x23, #0
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	add	x23, x23, #1
	ldr	x0, [x21, #32]
	bl	_ARRAY_SIZE
	cmp	x23, w0, sxtw
	b.ge	LBB0_20
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21, #44]
	cbnz	w8, LBB0_16
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	x8, [x21, #32]
	ldr	x1, [x8, x23, lsl #3]
	cbz	x1, LBB0_16
; %bb.19:                               ;   in Loop: Header=BB0_17 Depth=1
	mov	x0, x22
	mov	x2, x20
	mov	w3, #0
	mov	x4, x19
	bl	_snd_hda_codec_setup_stream
	b	LBB0_16
LBB0_20:
	ldr	w8, [x21, #40]
	cmp	w8, #1
	b.le	LBB0_28
; %bb.21:
	mov	w23, #2
	mov	w26, #1
	b	LBB0_25
LBB0_22:                                ;   in Loop: Header=BB0_25 Depth=1
	ldr	x1, [x24, x26, lsl #3]
	mov	x0, x22
	mov	x2, x20
	mov	x3, x23
LBB0_23:                                ;   in Loop: Header=BB0_25 Depth=1
	mov	x4, x19
	bl	_snd_hda_codec_setup_stream
LBB0_24:                                ;   in Loop: Header=BB0_25 Depth=1
	add	x26, x26, #1
	ldrsw	x8, [x21, #40]
	add	w23, w23, #2
	cmp	x26, x8
	b.ge	LBB0_28
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	add	w8, w23, #2
	cmp	w25, w8
	b.ge	LBB0_22
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=1
	ldr	w8, [x21, #44]
	cbnz	w8, LBB0_24
; %bb.27:                               ;   in Loop: Header=BB0_25 Depth=1
	ldr	x1, [x24, x26, lsl #3]
	mov	x0, x22
	mov	x2, x20
	mov	w3, #0
	b	LBB0_23
LBB0_28:
	mov	w0, #0
	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
LBB0_29:
	ldr	x1, [x21, #16]
	cbz	x1, LBB0_8
; %bb.30:
	ldr	x8, [x23]
	ldr	x8, [x24, x8, lsl #3]
	cmp	x1, x8
	b.eq	LBB0_8
; %bb.31:
	mov	x0, x22
	mov	x2, x20
	mov	w3, #0
	mov	x4, x19
	bl	_snd_hda_codec_setup_stream
	b	LBB0_8
LBB0_32:
Lloh8:
	adrp	x8, _HDA_DIG_ANALOG_DUP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HDA_DIG_ANALOG_DUP@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	str	x8, [x21, #8]
	ldr	x1, [x21, #48]
	mov	x0, x22
	mov	x2, x20
	mov	x3, x19
	bl	_setup_dig_out_stream
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_HDA_DIG_EXCLUSIVE,8,3          ; @HDA_DIG_EXCLUSIVE
	.comm	_IEC958_AES0_NONAUDIO,4,2       ; @IEC958_AES0_NONAUDIO
	.comm	_HDA_DIG_ANALOG_DUP,8,3         ; @HDA_DIG_ANALOG_DUP
	.comm	_HDA_FRONT,8,3                  ; @HDA_FRONT
.subsections_via_symbols
