	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_capture_mixers
_create_capture_mixers:                 ## @create_capture_mixers
	.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
	movq	%rdi, %r12
	movq	(%rdi), %rbx
	movl	$1, %r14d
	cmpq	$0, 24(%rbx)
	je	LBB0_2
## %bb.1:
	cmpl	$0, 16(%rbx)
	jne	LBB0_6
	jmp	LBB0_3
LBB0_2:
	movl	(%rbx), %r14d
	cmpl	$0, 16(%rbx)
	jne	LBB0_6
LBB0_3:
	cmpl	$2, 32(%rbx)
	jl	LBB0_6
## %bb.4:
	cmpl	$2, %r14d
	leaq	L_.str(%rip), %rax
	leaq	L_.str.1(%rip), %rsi
	cmovgeq	%rax, %rsi
	movq	_cap_src_temp@GOTPCREL(%rip), %rdx
	movq	%rbx, %rdi
	callq	_snd_hda_gen_add_kctl
	testq	%rax, %rax
	je	LBB0_32
## %bb.5:
	movl	%r14d, (%rax)
LBB0_6:
	testl	%r14d, %r14d
	jle	LBB0_30
## %bb.7:
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	movl	%r14d, -56(%rbp)                ## 4-byte Spill
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	-56(%rbp), %r14d                ## 4-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	-64(%rbp), %r8d                 ## 4-byte Reload
LBB0_25:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%r12, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	%r13d, %edx
	callq	_create_single_cap_vol_ctl
	testl	%eax, %eax
	js	LBB0_31
LBB0_28:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	incl	%eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	cmpl	%r14d, %eax
	je	LBB0_30
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
	cmpl	$0, 32(%rbx)
	movl	$0, %ecx
	movl	$0, %r13d
	movl	$0, %r8d
	jle	LBB0_25
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	4(%rbx), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	xorl	%r14d, %r14d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	xorl	%r13d, %r13d
	movl	$0, -64(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -60(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_13 Depth=2
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
LBB0_11:                                ##   in Loop: Header=BB0_13 Depth=2
	movq	8(%rbx), %rax
	movl	(%rax,%r14,4), %esi
	movq	%r12, %rdi
	callq	_is_inv_dmic_pin
	testq	%rax, %rax
	movl	$1, %eax
	movl	-64(%rbp), %ecx                 ## 4-byte Reload
	cmovnel	%eax, %ecx
	movl	%ecx, -64(%rbp)                 ## 4-byte Spill
LBB0_12:                                ##   in Loop: Header=BB0_13 Depth=2
	incq	%r14
	movslq	32(%rbx), %rax
	cmpq	%rax, %r14
	jge	LBB0_21
LBB0_13:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r12, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	%r14d, %edx
	callq	_get_input_path
	testq	%rax, %rax
	je	LBB0_12
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=2
	movq	%rax, %r15
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_parse_capvol_in_path
	movq	(%r15), %rax
	movq	_NID_PATH_VOL_CTL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edx
	testl	%r13d, %r13d
	je	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=2
	cmpl	%edx, %r13d
	je	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=2
	movq	_HDA_INPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_same_amp_caps
	testl	%eax, %eax
	movl	$1, %ecx
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	$1, -60(%rbp)                   ## 4-byte Folded Spill
	cmovel	%ecx, %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_13 Depth=2
	movl	%edx, %r13d
LBB0_18:                                ##   in Loop: Header=BB0_13 Depth=2
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	(%r15), %rax
	movq	_NID_PATH_MUTE_CTL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edx
	testl	%esi, %esi
	je	LBB0_10
## %bb.19:                              ##   in Loop: Header=BB0_13 Depth=2
	cmpl	%edx, %esi
	je	LBB0_11
## %bb.20:                              ##   in Loop: Header=BB0_13 Depth=2
	movq	_HDA_INPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	callq	_same_amp_caps
	testl	%eax, %eax
	movl	$1, %ecx
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	$1, -60(%rbp)                   ## 4-byte Folded Spill
	cmovel	%ecx, %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_8 Depth=1
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_24
## %bb.22:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_26
## %bb.23:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%r12, %rdi
	callq	_create_multi_cap_vol_ctl
	jmp	LBB0_27
LBB0_26:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%r12, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	%r13d, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_create_bind_cap_vol_ctl
LBB0_27:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	-56(%rbp), %r14d                ## 4-byte Reload
	testl	%eax, %eax
	jns	LBB0_28
	jmp	LBB0_31
LBB0_30:
	xorl	%eax, %eax
LBB0_31:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_32:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_31
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Input Source"

L_.str.1:                               ## @.str.1
	.asciz	"Capture Source"

	.comm	_cap_src_temp,4,2               ## @cap_src_temp
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_NID_PATH_VOL_CTL,8,3           ## @NID_PATH_VOL_CTL
	.comm	_HDA_INPUT,4,2                  ## @HDA_INPUT
	.comm	_NID_PATH_MUTE_CTL,8,3          ## @NID_PATH_MUTE_CTL
	.no_dead_strip	_create_capture_mixers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_capture_mixers
_create_capture_mixers:                 ; @create_capture_mixers
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x0
	ldr	x20, [x0]
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_2
; %bb.1:
	mov	w25, #1
	ldr	w8, [x20, #16]
	cbnz	w8, LBB0_6
	b	LBB0_3
LBB0_2:
	ldr	w25, [x20]
	ldr	w8, [x20, #16]
	cbnz	w8, LBB0_6
LBB0_3:
	ldr	w8, [x20, #32]
	cmp	w8, #1
	b.le	LBB0_6
; %bb.4:
Lloh0:
	adrp	x8, l_.str.1@PAGE
Lloh1:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh2:
	adrp	x9, l_.str@PAGE
Lloh3:
	add	x9, x9, l_.str@PAGEOFF
	cmp	w25, #1
	csel	x1, x9, x8, gt
Lloh4:
	adrp	x2, _cap_src_temp@GOTPAGE
Lloh5:
	ldr	x2, [x2, _cap_src_temp@GOTPAGEOFF]
	mov	x0, x20
	bl	_snd_hda_gen_add_kctl
	cbz	x0, LBB0_31
; %bb.5:
	str	w25, [x0]
LBB0_6:
	cmp	w25, #1
	b.lt	LBB0_29
; %bb.7:
	mov	w21, #0
	str	w25, [sp, #12]                  ; 4-byte Folded Spill
	b	LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_11 Depth=1
	mov	w22, #0
	mov	w23, #0
	mov	w24, #0
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x19
	mov	x1, x21
	mov	x2, x23
	mov	x3, x22
	mov	x4, x24
	bl	_create_single_cap_vol_ctl
	tbnz	w0, #31, LBB0_30
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	w21, w21, #1
	cmp	w21, w25
	b.eq	LBB0_29
LBB0_11:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_16 Depth 2
	ldr	w8, [x20, #32]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x25, #0
	mov	w22, #0
	mov	w23, #0
	mov	w24, #0
	mov	w27, #0
	ldr	w28, [x20, #4]
	b	LBB0_16
LBB0_13:                                ;   in Loop: Header=BB0_16 Depth=2
	mov	x22, x2
LBB0_14:                                ;   in Loop: Header=BB0_16 Depth=2
	ldr	x8, [x20, #8]
	ldr	w1, [x8, x25, lsl #2]
	mov	x0, x19
	bl	_is_inv_dmic_pin
	cmp	x0, #0
	csinc	w24, w24, wzr, eq
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=2
	add	x25, x25, #1
	ldrsw	x8, [x20, #32]
	cmp	x25, x8
	b.ge	LBB0_24
LBB0_16:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x19
	mov	x1, x21
	mov	x2, x25
	bl	_get_input_path
	cbz	x0, LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=2
	mov	x26, x0
	mov	x0, x19
	mov	x1, x26
	bl	_parse_capvol_in_path
	ldr	x8, [x26]
Lloh6:
	adrp	x9, _NID_PATH_VOL_CTL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NID_PATH_VOL_CTL@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldr	w2, [x8, x9, lsl #2]
	cbz	w23, LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=2
	cmp	w23, w2
	b.eq	LBB0_21
; %bb.19:                               ;   in Loop: Header=BB0_16 Depth=2
Lloh9:
	adrp	x8, _HDA_INPUT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HDA_INPUT@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x23
	bl	_same_amp_caps
	cmp	w0, #0
	csinc	w28, w28, wzr, ne
	mov	w27, #1
	b	LBB0_21
LBB0_20:                                ;   in Loop: Header=BB0_16 Depth=2
	mov	x23, x2
LBB0_21:                                ;   in Loop: Header=BB0_16 Depth=2
	ldr	x8, [x26]
Lloh12:
	adrp	x9, _NID_PATH_MUTE_CTL@GOTPAGE
Lloh13:
	ldr	x9, [x9, _NID_PATH_MUTE_CTL@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	ldr	w2, [x8, x9, lsl #2]
	cbz	w22, LBB0_13
; %bb.22:                               ;   in Loop: Header=BB0_16 Depth=2
	cmp	w22, w2
	b.eq	LBB0_14
; %bb.23:                               ;   in Loop: Header=BB0_16 Depth=2
Lloh15:
	adrp	x8, _HDA_INPUT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HDA_INPUT@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x22
	bl	_same_amp_caps
	cmp	w0, #0
	csinc	w28, w28, wzr, ne
	mov	w27, #1
	b	LBB0_14
LBB0_24:                                ;   in Loop: Header=BB0_11 Depth=1
	cbz	w27, LBB0_27
; %bb.25:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x19
	cbz	w28, LBB0_28
; %bb.26:                               ;   in Loop: Header=BB0_11 Depth=1
	bl	_create_multi_cap_vol_ctl
	ldr	w25, [sp, #12]                  ; 4-byte Folded Reload
	tbz	w0, #31, LBB0_10
	b	LBB0_30
LBB0_27:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	w25, [sp, #12]                  ; 4-byte Folded Reload
	b	LBB0_9
LBB0_28:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x1, x21
	mov	x2, x23
	mov	x3, x22
	bl	_create_bind_cap_vol_ctl
	ldr	w25, [sp, #12]                  ; 4-byte Folded Reload
	tbz	w0, #31, LBB0_10
	b	LBB0_30
LBB0_29:
	mov	w0, #0
LBB0_30:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_31:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_30
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Input Source"

l_.str.1:                               ; @.str.1
	.asciz	"Capture Source"

	.comm	_cap_src_temp,4,2               ; @cap_src_temp
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_NID_PATH_VOL_CTL,8,3           ; @NID_PATH_VOL_CTL
	.comm	_HDA_INPUT,4,2                  ; @HDA_INPUT
	.comm	_NID_PATH_MUTE_CTL,8,3          ; @NID_PATH_MUTE_CTL
	.no_dead_strip	_create_capture_mixers
.subsections_via_symbols
