	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function try_assign_dacs
_try_assign_dacs:                       ## @try_assign_dacs
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	movq	%r8, -88(%rbp)                  ## 8-byte Spill
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	testl	%esi, %esi
	jle	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	%esi, -68(%rbp)                 ## 4-byte Spill
	movl	%esi, %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movl	(%rax,%r12,4), %r15d
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r12,4), %esi
	movq	%r14, %rdi
	callq	_snd_hda_get_path_from_idx
	movq	%r14, %rdi
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %rsi
	callq	_assign_out_path_ctls
	jmp	LBB0_32
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%r15d, %esi
	xorl	%edx, %edx
	callq	_look_for_dac
	movl	%eax, %r13d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%r13d, (%rax,%r12,4)
	testl	%r13d, %r13d
	jne	LBB0_13
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	testq	%r12, %r12
	jne	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	cmpl	$1, -68(%rbp)                   ## 4-byte Folded Reload
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r13,%rbx,4), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_is_reachable_path
	testq	%rax, %rax
	jne	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=2
	incq	%rbx
	cmpq	%rbx, -96(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_9
	jmp	LBB0_12
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %ebx
	shlq	$2, %rbx
	movl	(%r13,%rbx), %eax
	movl	%eax, (%r13)
	movl	$0, (%r13,%rbx)
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movl	(%r13,%rbx), %esi
	movq	%r14, %rdi
	callq	_invalidate_nid_path
	movl	$0, (%r13,%rbx)
	movq	-64(%rbp), %r13                 ## 8-byte Reload
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r13,%r12,4), %r13d
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	testl	%r13d, %r13d
	jne	LBB0_24
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$3, -68(%rbp)                   ## 4-byte Folded Reload
	jb	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_get_primary_out
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%r15d, %edx
	callq	_try_dac
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_18
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_try_dac
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_get_primary_out
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%r15d, %edx
	callq	_try_dac
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_19
LBB0_18:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	cmpq	$1, %r12
	sete	%al
	testq	%r12, %r12
	leaq	24(,%rax,8), %rax
	movl	$40, %ecx
	cmoveq	%rcx, %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	addl	(%rcx,%rax), %ebx
LBB0_24:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	xorl	%ecx, %ecx
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	subl	(%rax), %ecx
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	%r15d, %edx
	callq	_snd_hda_add_new_path
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_28
## %bb.25:                              ##   in Loop: Header=BB0_3 Depth=1
	testq	%r12, %r12
	jne	LBB0_28
## %bb.26:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, (%rax)
	je	LBB0_29
## %bb.27:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	callq	_snd_hda_add_new_path
	movq	%rax, %rbx
LBB0_28:                                ##   in Loop: Header=BB0_3 Depth=1
	testq	%rbx, %rbx
	je	LBB0_29
## %bb.30:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, (%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_snd_hda_get_path_idx
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx,%r12,4)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_assign_out_path_ctls
	jmp	LBB0_31
LBB0_29:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax,%r12,4)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
LBB0_31:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
LBB0_32:                                ##   in Loop: Header=BB0_3 Depth=1
	addl	%eax, %ebx
LBB0_33:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r12
	cmpq	-96(%rbp), %r12                 ## 8-byte Folded Reload
	jne	LBB0_3
	jmp	LBB0_34
LBB0_19:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_is_reachable_path
	testq	%rax, %rax
	je	LBB0_20
## %bb.23:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rbx), %rax
	movl	(%rax), %r13d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	addl	16(%rax), %ebx
	testl	%r13d, %r13d
	jne	LBB0_24
	jmp	LBB0_33
LBB0_20:                                ##   in Loop: Header=BB0_3 Depth=1
	testq	%r12, %r12
	je	LBB0_21
## %bb.22:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	addl	(%rax), %ebx
	jmp	LBB0_33
LBB0_21:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	addl	8(%rax), %ebx
	jmp	LBB0_33
LBB0_1:
	xorl	%ebx, %ebx
LBB0_34:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_try_assign_dacs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function try_assign_dacs
_try_assign_dacs:                       ; @try_assign_dacs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	x5, [sp, #16]                   ; 8-byte Folded Spill
	cmp	w1, #1
	b.lt	LBB0_31
; %bb.1:
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x25, x0
	mov	x26, #0
	mov	w24, #0
	ldr	x8, [x0]
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	str	w1, [sp, #12]                   ; 4-byte Folded Spill
	mov	w23, w1
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	lsl	x8, x26, #2
	ldr	w27, [x22, x8]
	ldr	w1, [x20, x8]
	mov	x0, x25
	bl	_snd_hda_get_path_from_idx
	cbz	x0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x1, x0
	mov	x0, x25
	b	LBB0_22
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x25
	mov	x1, x27
	mov	w2, #0
	bl	_look_for_dac
	mov	x28, x0
	str	w0, [x21, x26, lsl #2]
	cmp	w0, #0
	ccmp	x26, #0, #0, eq
	b.ne	LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cmp	w8, #1
	b.eq	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w19, #1
LBB0_7:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w1, [x21, x19, lsl #2]
	mov	x0, x25
	mov	x2, x27
	bl	_is_reachable_path
	cbnz	x0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	add	x19, x19, #1
	cmp	x23, x19
	b.ne	LBB0_7
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	ubfiz	x19, x19, #2, #32
	ldr	w8, [x21, x19]
	str	w8, [x21]
	str	wzr, [x21, x19]
	ldr	w1, [x20, x19]
	mov	x0, x25
	bl	_invalidate_nid_path
	str	wzr, [x20, x19]
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w28, [x21, x26, lsl #2]
LBB0_11:                                ;   in Loop: Header=BB0_2 Depth=1
	cbnz	w28, LBB0_17
; %bb.12:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cmp	w8, #3
	b.lo	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x25
	mov	x1, x26
	bl	_get_primary_out
	mov	x1, x0
	mov	x0, x25
	mov	x2, x27
	bl	_try_dac
	mov	x28, x0
	cbnz	w0, LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x21]
	mov	x0, x25
	mov	x2, x27
	bl	_try_dac
	mov	x28, x0
	cbnz	w0, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x25
	mov	x1, x26
	bl	_get_primary_out
	mov	x1, x0
	mov	x0, x25
	mov	x2, x27
	bl	_try_dac
	mov	x28, x0
	cbz	w0, LBB0_26
LBB0_16:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	x26, #1
	mov	w8, #24
	mov	w9, #32
	csel	x8, x9, x8, eq
	cmp	x26, #0
	mov	w9, #40
	csel	x8, x8, x9, ne
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	ldr	w8, [x9, x8]
	add	w24, w24, w8
LBB0_17:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldr	w8, [x8]
	neg	w3, w8
	mov	x0, x25
	mov	x1, x28
	mov	x2, x27
	bl	_snd_hda_add_new_path
	mov	x19, x0
	cmp	x0, #0
	ccmp	x26, #0, #0, eq
	b.ne	LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldr	w8, [x8]
	cbz	w8, LBB0_25
; %bb.19:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x25
	mov	x1, x28
	mov	x2, x27
	mov	w3, #0
	bl	_snd_hda_add_new_path
	mov	x19, x0
LBB0_20:                                ;   in Loop: Header=BB0_2 Depth=1
	cbz	x19, LBB0_25
; %bb.21:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	w8, #1
	str	w8, [x19]
	mov	x0, x25
	mov	x1, x19
	bl	_snd_hda_get_path_idx
	str	w0, [x20, x26, lsl #2]
	mov	x0, x25
	mov	x1, x19
LBB0_22:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_assign_out_path_ctls
LBB0_23:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w24, w24, w0
LBB0_24:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x26, x26, #1
	cmp	x26, x23
	b.ne	LBB0_2
	b	LBB0_32
LBB0_25:                                ;   in Loop: Header=BB0_2 Depth=1
	str	wzr, [x21, x26, lsl #2]
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	ldr	x0, [x8]
	b	LBB0_23
LBB0_26:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x19, [sp, #24]                  ; 8-byte Folded Reload
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
	mov	x0, x25
	mov	x2, x27
	bl	_is_reachable_path
	cbz	x0, LBB0_28
; %bb.27:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19, #8]
	ldr	w28, [x8]
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	ldr	w8, [x8, #16]
	add	w24, w24, w8
	cbnz	w28, LBB0_17
	b	LBB0_24
LBB0_28:                                ;   in Loop: Header=BB0_2 Depth=1
	cbz	x26, LBB0_30
; %bb.29:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	ldr	w8, [x8]
	add	w24, w24, w8
	b	LBB0_24
LBB0_30:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	ldr	w8, [x8, #8]
	add	w24, w24, w8
	b	LBB0_24
LBB0_31:
	mov	w24, #0
LBB0_32:
	mov	x0, x24
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_try_assign_dacs
.subsections_via_symbols
