	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_input_ctls
_create_input_ctls:                     ## @create_input_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	(%rdi), %rbx
	movq	(%rbx), %r14
	callq	_fill_adc_nids
	movl	%eax, %ecx
	xorl	%eax, %eax
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	testl	%ecx, %ecx
	js	LBB0_20
## %bb.1:
	movq	%r15, %rdi
	callq	_fill_input_pin_labels
	testl	%eax, %eax
	js	LBB0_20
## %bb.2:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	cmpl	$0, 48(%rbx)
	jle	LBB0_16
## %bb.3:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	negq	%rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%r14
	movslq	48(%rbx), %rax
	addq	$16, %r12
	cmpq	%rax, %r14
	jge	LBB0_16
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	56(%rbx), %rax
	movq	(%rax,%r12), %r13
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_is_input_pin
	testl	%eax, %eax
	je	LBB0_15
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_PIN_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	56(%rbx), %rax
	movq	8(%rax,%r12), %rax
	movq	_AUTO_PIN_MIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_snd_hda_get_default_vref
	orl	%eax, %r15d
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpq	8(%rbx), %r13
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	callq	_set_pin_target
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	testq	%r15, %r15
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	callq	_is_reachable_path
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	16(%rcx), %rax
	movq	40(%rcx), %rdx
	movq	(%rax,%r14,8), %rcx
	movl	(%rdx,%r14,4), %r8d
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	%r13, %rdx
	movq	%r15, %r9
	callq	_new_analog_input
	testl	%eax, %eax
	js	LBB0_20
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %r15
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	16(%rbx), %rax
	movq	(%rax,%r14,8), %r8
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	%r14d, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	-80(%rbp), %r9                  ## 8-byte Reload
	callq	_parse_capture_source
	testl	%eax, %eax
	js	LBB0_20
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, 32(%rbx)
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_create_in_jack_mode
	testl	%eax, %eax
	jns	LBB0_15
	jmp	LBB0_20
LBB0_16:
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_19
## %bb.17:
	cmpq	$0, 24(%rbx)
	je	LBB0_19
## %bb.18:
	movq	_CFG_IDX_MIX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %r8
	movq	%r15, %rdi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	xorl	%r9d, %r9d
	callq	_parse_capture_source
	testl	%eax, %eax
	js	LBB0_20
LBB0_19:
	xorl	%eax, %eax
LBB0_20:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PIN_IN,4,2                     ## @PIN_IN
	.comm	_AUTO_PIN_MIC,8,3               ## @AUTO_PIN_MIC
	.comm	_CFG_IDX_MIX,4,2                ## @CFG_IDX_MIX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Stereo Mix"

	.no_dead_strip	_create_input_ctls
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_input_ctls
_create_input_ctls:                     ; @create_input_ctls
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x26, [x0]
	ldr	x20, [x26]
	bl	_fill_adc_nids
	tbnz	w0, #31, LBB0_19
; %bb.1:
	mov	x21, x0
	mov	x0, x19
	bl	_fill_input_pin_labels
	tbnz	w0, #31, LBB0_20
; %bb.2:
	ldr	w8, [x26, #48]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.3:
	mov	x27, #0
	mov	x22, #0
	neg	x23, x20
Lloh0:
	adrp	x28, _AUTO_PIN_MIC@GOTPAGE
Lloh1:
	ldr	x28, [x28, _AUTO_PIN_MIC@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x26, #48]
	add	x27, x27, #16
	cmp	x22, x8
	b.ge	LBB0_16
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x26, #56]
	ldr	x24, [x8, x27]
	mov	x0, x19
	mov	x1, x24
	bl	_is_input_pin
	cbz	w0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh2:
	adrp	x8, _PIN_IN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PIN_IN@GOTPAGEOFF]
Lloh4:
	ldr	w25, [x8]
	ldr	x8, [x26, #56]
	add	x8, x8, x27
	ldr	x8, [x8, #8]
	ldr	x9, [x28]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, x24
	bl	_snd_hda_get_default_vref
	orr	w25, w0, w25
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x26, #8]
	cmp	x24, x8
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, x24
	mov	x2, x25
	mov	w3, #0
	bl	_set_pin_target
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	x20, LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, x24
	mov	x2, x20
	bl	_is_reachable_path
	cbz	x0, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x26, #16]
	ldr	x3, [x8, x22, lsl #3]
	ldr	x8, [x26, #40]
	ldr	w4, [x8, x22, lsl #2]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x24
	mov	x5, x20
	bl	_new_analog_input
	tbnz	w0, #31, LBB0_20
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x26, #16]
	ldr	x4, [x8, x22, lsl #3]
	mov	x0, x19
	mov	x1, x24
	mov	x2, x22
	mov	x3, x21
	mov	x5, x23
	bl	_parse_capture_source
	tbnz	w0, #31, LBB0_20
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x26, #32]
	cbz	x8, LBB0_4
; %bb.15:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, x24
	bl	_create_in_jack_mode
	tbz	w0, #31, LBB0_4
	b	LBB0_20
LBB0_16:
	cbz	x20, LBB0_19
; %bb.17:
	ldr	x8, [x26, #24]
	cbz	x8, LBB0_19
; %bb.18:
Lloh5:
	adrp	x8, _CFG_IDX_MIX@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CFG_IDX_MIX@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	adrp	x4, l_.str@PAGE
Lloh9:
	add	x4, x4, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	mov	x3, x21
	mov	x5, #0
	bl	_parse_capture_source
	tbnz	w0, #31, LBB0_20
LBB0_19:
	mov	w0, #0
LBB0_20:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PIN_IN,4,2                     ; @PIN_IN
	.comm	_AUTO_PIN_MIC,8,3               ; @AUTO_PIN_MIC
	.comm	_CFG_IDX_MIX,4,2                ; @CFG_IDX_MIX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Stereo Mix"

	.no_dead_strip	_create_input_ctls
.subsections_via_symbols
