	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function assign_out_path_ctls
_assign_out_path_ctls:                  ## @assign_out_path_ctls
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r14
	movq	(%rsi), %rax
	movq	_NID_PATH_VOL_CTL@GOTPCREL(%rip), %r13
	movq	(%r13), %rcx
	xorl	%ebx, %ebx
	cmpl	$0, (%rax,%rcx,4)
	jne	LBB0_16
## %bb.3:
	movq	_NID_PATH_MUTE_CTL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	$0, (%rax,%rcx,4)
	jne	LBB0_16
## %bb.4:
	movq	%rdi, %r15
	movq	%r14, %rsi
	callq	_look_for_out_vol_nid
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	_HDA_OUTPUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%ebx, %ebx
	movq	%rax, %rdi
	movl	$3, %esi
	xorl	%edx, %edx
	callq	_HDA_COMPOSE_AMP_VAL
	movl	%eax, %r12d
	movq	(%r13), %rdx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_is_ctl_used
	testq	%rax, %rax
	je	LBB0_6
LBB0_7:
	movq	_BAD_SHARED_VOL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_8
LBB0_1:
	movq	_BAD_SHARED_VOL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	addl	%ebx, %ebx
LBB0_16:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	(%r14), %rax
	movq	(%r13), %rcx
	movl	%r12d, (%rax,%rcx,4)
LBB0_8:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_look_for_out_mute_nid
	testq	%rax, %rax
	je	LBB0_15
## %bb.9:
	movq	%rax, %r12
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_get_wcaps
	movl	%eax, %edi
	callq	_get_wcaps_type
	movq	_AC_WID_PIN@GOTPCREL(%rip), %rcx
	movq	_HDA_OUTPUT@GOTPCREL(%rip), %r13
	cmpl	(%rcx), %eax
	je	LBB0_13
## %bb.10:
	movq	_AC_WID_AUD_OUT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_13
## %bb.11:
	movq	_HDA_OUTPUT@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_nid_has_mute
	testq	%rax, %rax
	jne	LBB0_13
## %bb.12:
	movq	_HDA_INPUT@GOTPCREL(%rip), %r13
LBB0_13:
	movl	(%r13), %ecx
	movq	%r12, %rdi
	movl	$3, %esi
	xorl	%edx, %edx
	callq	_HDA_COMPOSE_AMP_VAL
	movl	%eax, %r12d
	movq	_NID_PATH_MUTE_CTL@GOTPCREL(%rip), %r13
	movq	(%r13), %rdx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_is_ctl_used
	testq	%rax, %rax
	je	LBB0_14
LBB0_15:
	movq	_BAD_SHARED_VOL@GOTPCREL(%rip), %rax
	addl	(%rax), %ebx
	jmp	LBB0_16
LBB0_14:
	movq	(%r14), %rax
	movq	(%r13), %rcx
	movl	%r12d, (%rax,%rcx,4)
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_BAD_SHARED_VOL,4,2             ## @BAD_SHARED_VOL
	.comm	_NID_PATH_VOL_CTL,8,3           ## @NID_PATH_VOL_CTL
	.comm	_NID_PATH_MUTE_CTL,8,3          ## @NID_PATH_MUTE_CTL
	.comm	_HDA_OUTPUT,4,2                 ## @HDA_OUTPUT
	.comm	_AC_WID_PIN,4,2                 ## @AC_WID_PIN
	.comm	_AC_WID_AUD_OUT,4,2             ## @AC_WID_AUD_OUT
	.comm	_HDA_INPUT,4,2                  ## @HDA_INPUT
	.no_dead_strip	_assign_out_path_ctls
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function assign_out_path_ctls
_assign_out_path_ctls:                  ; @assign_out_path_ctls
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	cbz	x1, LBB0_4
; %bb.1:
	mov	x19, x1
	ldr	x8, [x1]
Lloh0:
	adrp	x24, _NID_PATH_VOL_CTL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _NID_PATH_VOL_CTL@GOTPAGEOFF]
	ldr	x9, [x24]
	ldr	w9, [x8, x9, lsl #2]
	cbnz	w9, LBB0_3
; %bb.2:
Lloh2:
	adrp	x23, _NID_PATH_MUTE_CTL@GOTPAGE
Lloh3:
	ldr	x23, [x23, _NID_PATH_MUTE_CTL@GOTPAGEOFF]
	ldr	x9, [x23]
	ldr	w8, [x8, x9, lsl #2]
	cbz	w8, LBB0_6
LBB0_3:
	mov	w21, #0
	b	LBB0_5
LBB0_4:
Lloh4:
	adrp	x8, _BAD_SHARED_VOL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _BAD_SHARED_VOL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	lsl	w21, w8, #1
LBB0_5:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	x20, x0
	mov	x1, x19
	bl	_look_for_out_vol_nid
	cbz	x0, LBB0_8
; %bb.7:
Lloh7:
	adrp	x8, _HDA_OUTPUT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HDA_OUTPUT@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x8]
	mov	w1, #3
	mov	w2, #0
	bl	_HDA_COMPOSE_AMP_VAL
	mov	x22, x0
	ldr	x2, [x24]
	mov	x0, x20
	mov	x1, x22
	bl	_is_ctl_used
	cbz	x0, LBB0_9
LBB0_8:
Lloh10:
	adrp	x8, _BAD_SHARED_VOL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _BAD_SHARED_VOL@GOTPAGEOFF]
Lloh12:
	ldr	w21, [x8]
	b	LBB0_10
LBB0_9:
	mov	w21, #0
	ldr	x8, [x19]
	ldr	x9, [x24]
	str	w22, [x8, x9, lsl #2]
LBB0_10:
	mov	x0, x20
	mov	x1, x19
	bl	_look_for_out_mute_nid
	cbz	x0, LBB0_14
; %bb.11:
	mov	x22, x0
	mov	x0, x20
	mov	x1, x22
	bl	_get_wcaps
	bl	_get_wcaps_type
Lloh13:
	adrp	x8, _AC_WID_PIN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AC_WID_PIN@GOTPAGEOFF]
Lloh15:
	adrp	x9, _AC_WID_AUD_OUT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _AC_WID_AUD_OUT@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	ldr	w9, [x9]
Lloh19:
	adrp	x24, _HDA_OUTPUT@GOTPAGE
Lloh20:
	ldr	x24, [x24, _HDA_OUTPUT@GOTPAGEOFF]
	cmp	w0, w8
	ccmp	w0, w9, #4, ne
	b.eq	LBB0_13
; %bb.12:
	ldr	w2, [x24]
	mov	x0, x20
	mov	x1, x22
	bl	_nid_has_mute
Lloh21:
	adrp	x8, _HDA_INPUT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _HDA_INPUT@GOTPAGEOFF]
	cmp	x0, #0
	csel	x24, x8, x24, eq
LBB0_13:
	ldr	w3, [x24]
	mov	x0, x22
	mov	w1, #3
	mov	w2, #0
	bl	_HDA_COMPOSE_AMP_VAL
	mov	x22, x0
	ldr	x2, [x23]
	mov	x0, x20
	mov	x1, x22
	bl	_is_ctl_used
	cbz	x0, LBB0_15
LBB0_14:
Lloh23:
	adrp	x8, _BAD_SHARED_VOL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _BAD_SHARED_VOL@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	add	w21, w8, w21
	b	LBB0_5
LBB0_15:
	ldr	x8, [x19]
	ldr	x9, [x23]
	str	w22, [x8, x9, lsl #2]
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh17
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_BAD_SHARED_VOL,4,2             ; @BAD_SHARED_VOL
	.comm	_NID_PATH_VOL_CTL,8,3           ; @NID_PATH_VOL_CTL
	.comm	_NID_PATH_MUTE_CTL,8,3          ; @NID_PATH_MUTE_CTL
	.comm	_HDA_OUTPUT,4,2                 ; @HDA_OUTPUT
	.comm	_AC_WID_PIN,4,2                 ; @AC_WID_PIN
	.comm	_AC_WID_AUD_OUT,4,2             ; @AC_WID_AUD_OUT
	.comm	_HDA_INPUT,4,2                  ; @HDA_INPUT
	.no_dead_strip	_assign_out_path_ctls
.subsections_via_symbols
