	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function new_analog_input
_new_analog_input:                      ## @new_analog_input
	.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	%r9, %r14
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r12
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r15
	movq	(%rdi), %rbx
	movq	_HDA_INPUT@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%r9, %rsi
	callq	_nid_has_volume
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movl	(%r13), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_nid_has_mute
	testq	%rax, %rax
	je	LBB0_15
LBB0_2:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	callq	_snd_hda_add_new_path
	testq	%rax, %rax
	je	LBB0_14
## %bb.3:
	movq	%rax, %r12
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rsi
	callq	_print_nid_path
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_snd_hda_get_path_idx
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	24(%r13), %rcx
	movslq	-44(%rbp), %rdx                 ## 4-byte Folded Reload
	movq	%rax, (%rcx,%rdx,8)
	movq	(%r12), %rax
	movslq	8(%r12), %rcx
	movl	-4(%rax,%rcx,4), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_HDA_INPUT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_nid_has_volume
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movl	(%rbx), %ecx
	movq	%r14, %rdi
	movl	$3, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_HDA_COMPOSE_AMP_VAL
	movl	%eax, %ebx
	movq	_HDA_CTL_WIDGET_VOL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%ebx, %r8d
	callq	___add_pb_vol_ctrl
	testl	%eax, %eax
	js	LBB0_18
## %bb.5:
	movq	16(%r12), %rax
	movq	_NID_PATH_VOL_CTL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%ebx, (%rax,%rcx,4)
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	_HDA_INPUT@GOTPCREL(%rip), %rbx
LBB0_6:
	movl	(%rbx), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_nid_has_mute
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movl	(%rbx), %ecx
	movq	%r14, %rdi
	movl	$3, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_HDA_COMPOSE_AMP_VAL
	movl	%eax, %ebx
	movq	_HDA_CTL_WIDGET_MUTE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%ebx, %r8d
	callq	___add_pb_sw_ctrl
	testl	%eax, %eax
	js	LBB0_18
## %bb.8:
	movq	16(%r12), %rax
	movq	_NID_PATH_MUTE_CTL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%ebx, (%rax,%rcx,4)
	movq	-56(%rbp), %r13                 ## 8-byte Reload
LBB0_9:
	movl	$1, 24(%r12)
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_add_loopback_list
	testl	%eax, %eax
	js	LBB0_18
## %bb.10:
	movq	%r13, %rbx
	movq	(%r13), %rsi
	movq	8(%r13), %rdx
	xorl	%r13d, %r13d
	cmpq	%rdx, %rsi
	je	LBB0_19
## %bb.11:
	cmpq	$0, 16(%rbx)
	jne	LBB0_19
## %bb.12:
	xorl	%r13d, %r13d
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_snd_hda_add_new_path
	testq	%rax, %rax
	je	LBB0_19
## %bb.13:
	movq	%rax, %rbx
	leaq	L_.str.1(%rip), %rdi
	movq	%rax, %rsi
	callq	_print_nid_path
	movl	$1, 24(%rbx)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_snd_hda_get_path_idx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 16(%rcx)
	jmp	LBB0_19
LBB0_18:
	movl	%eax, %r13d
	jmp	LBB0_19
LBB0_14:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_19
LBB0_15:
	xorl	%r13d, %r13d
LBB0_19:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HDA_INPUT,4,2                  ## @HDA_INPUT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"loopback"

	.comm	_HDA_CTL_WIDGET_VOL,4,2         ## @HDA_CTL_WIDGET_VOL
	.comm	_NID_PATH_VOL_CTL,8,3           ## @NID_PATH_VOL_CTL
	.comm	_HDA_CTL_WIDGET_MUTE,4,2        ## @HDA_CTL_WIDGET_MUTE
	.comm	_NID_PATH_MUTE_CTL,8,3          ## @NID_PATH_MUTE_CTL
L_.str.1:                               ## @.str.1
	.asciz	"loopback-merge"

	.no_dead_strip	_new_analog_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function new_analog_input
_new_analog_input:                      ; @new_analog_input
	.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	x21, x5
	mov	x22, x4
	mov	x23, x3
	mov	x24, x2
	mov	x25, x1
	mov	x20, x0
	ldr	x19, [x0]
Lloh0:
	adrp	x27, _HDA_INPUT@GOTPAGE
Lloh1:
	ldr	x27, [x27, _HDA_INPUT@GOTPAGEOFF]
	ldr	w2, [x27]
	mov	x1, x5
	bl	_nid_has_volume
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w2, [x27]
	mov	x0, x20
	mov	x1, x21
	bl	_nid_has_mute
	cbz	x0, LBB0_14
LBB0_2:
	mov	x0, x20
	mov	x1, x24
	mov	x2, x21
	mov	w3, #0
	bl	_snd_hda_add_new_path
	cbz	x0, LBB0_13
; %bb.3:
	mov	x24, x0
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x24
	bl	_print_nid_path
	mov	x0, x20
	mov	x1, x24
	bl	_snd_hda_get_path_idx
	ldr	x8, [x19, #24]
	str	x0, [x8, w25, sxtw #3]
	ldr	x8, [x24]
	ldrsw	x9, [x24, #8]
	add	x8, x8, x9, lsl #2
	ldur	w25, [x8, #-4]
	ldr	w2, [x27]
	mov	x0, x20
	mov	x1, x21
	bl	_nid_has_volume
	cbz	x0, LBB0_6
; %bb.4:
	ldr	w3, [x27]
	mov	x0, x21
	mov	w1, #3
	mov	x2, x25
	bl	_HDA_COMPOSE_AMP_VAL
	mov	x26, x0
Lloh4:
	adrp	x8, _HDA_CTL_WIDGET_VOL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _HDA_CTL_WIDGET_VOL@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x23
	mov	x3, x22
	mov	x4, x26
	bl	___add_pb_vol_ctrl
	tbnz	w0, #31, LBB0_14
; %bb.5:
	ldr	x8, [x24, #16]
Lloh7:
	adrp	x9, _NID_PATH_VOL_CTL@GOTPAGE
Lloh8:
	ldr	x9, [x9, _NID_PATH_VOL_CTL@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	str	w26, [x8, x9, lsl #2]
LBB0_6:
	ldr	w2, [x27]
	mov	x0, x20
	mov	x1, x21
	bl	_nid_has_mute
	cbz	x0, LBB0_9
; %bb.7:
	ldr	w3, [x27]
	mov	x0, x21
	mov	w1, #3
	mov	x2, x25
	bl	_HDA_COMPOSE_AMP_VAL
	mov	x26, x0
Lloh10:
	adrp	x8, _HDA_CTL_WIDGET_MUTE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HDA_CTL_WIDGET_MUTE@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x23
	mov	x3, x22
	mov	x4, x26
	bl	___add_pb_sw_ctrl
	tbnz	w0, #31, LBB0_14
; %bb.8:
	ldr	x8, [x24, #16]
Lloh13:
	adrp	x9, _NID_PATH_MUTE_CTL@GOTPAGE
Lloh14:
	ldr	x9, [x9, _NID_PATH_MUTE_CTL@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	str	w26, [x8, x9, lsl #2]
LBB0_9:
	mov	w8, #1
	str	w8, [x24, #24]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x25
	bl	_add_loopback_list
	tbnz	w0, #31, LBB0_14
; %bb.10:
	ldp	x1, x2, [x19]
	cmp	x1, x2
	b.eq	LBB0_12
; %bb.11:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_15
LBB0_12:
	mov	w0, #0
	b	LBB0_14
LBB0_13:
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	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
LBB0_15:
	mov	x0, x20
	mov	w3, #0
	bl	_snd_hda_add_new_path
	cbz	x0, LBB0_14
; %bb.16:
	mov	x21, x0
Lloh19:
	adrp	x0, l_.str.1@PAGE
Lloh20:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	bl	_print_nid_path
	mov	w8, #1
	str	w8, [x21, #24]
	mov	x0, x20
	mov	x1, x21
	bl	_snd_hda_get_path_idx
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19, #16]
	b	LBB0_14
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_HDA_INPUT,4,2                  ; @HDA_INPUT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"loopback"

	.comm	_HDA_CTL_WIDGET_VOL,4,2         ; @HDA_CTL_WIDGET_VOL
	.comm	_NID_PATH_VOL_CTL,8,3           ; @NID_PATH_VOL_CTL
	.comm	_HDA_CTL_WIDGET_MUTE,4,2        ; @HDA_CTL_WIDGET_MUTE
	.comm	_NID_PATH_MUTE_CTL,8,3          ; @NID_PATH_MUTE_CTL
l_.str.1:                               ; @.str.1
	.asciz	"loopback-merge"

	.no_dead_strip	_new_analog_input
.subsections_via_symbols
