	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mux_select
_mux_select:                            ## @mux_select
	.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
	movq	(%rdi), %r15
	movl	32(%r15), %eax
	xorl	%ecx, %ecx
	testl	%eax, %eax
	je	LBB0_16
## %bb.1:
	movl	%esi, %r13d
	leal	-1(%rax), %ebx
	cmpl	%edx, %eax
	cmoval	%edx, %ebx
	movq	(%r15), %rax
	movl	%esi, %r14d
	movl	(%rax,%r14,4), %edx
	cmpl	%ebx, %edx
	je	LBB0_16
## %bb.2:
	movq	%rdi, %r12
	movl	%r13d, %esi
	callq	_get_input_path
	testq	%rax, %rax
	je	LBB0_15
## %bb.3:
	cmpq	$0, (%rax)
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_5
## %bb.4:
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_snd_hda_activate_path
LBB0_5:
	movq	(%r15), %rax
	movl	%ebx, (%rax,%r14,4)
	cmpq	$0, 24(%r15)
	je	LBB0_7
## %bb.6:
	movq	%r12, %rdi
	movl	%r13d, %esi
	xorl	%edx, %edx
	callq	_update_hp_mic
LBB0_7:
	cmpq	$0, 16(%r15)
	je	LBB0_9
## %bb.8:
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_dyn_adc_pcm_resetup
LBB0_9:
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	%ebx, %edx
	callq	_get_input_path
	testq	%rax, %rax
	je	LBB0_15
## %bb.10:
	cmpq	$0, (%rax)
	movl	$0, %ecx
	jne	LBB0_16
## %bb.11:
	movq	%r12, %rdi
	movq	%rax, %rsi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_snd_hda_activate_path
	movq	8(%r15), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	*%rax
LBB0_13:
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_path_power_down_sync
	movl	$1, %ecx
	jmp	LBB0_16
LBB0_15:
	xorl	%ecx, %ecx
LBB0_16:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mux_select
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mux_select
_mux_select:                            ; @mux_select
	.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
	ldr	x23, [x0]
	ldr	w8, [x23, #32]
	cbz	w8, LBB0_2
; %bb.1:
	mov	x21, x1
	sub	w9, w8, #1
	cmp	w8, w2
	csel	w22, w2, w9, hi
	ldr	x8, [x23]
	ldr	w2, [x8, w1, uxtw #2]
	cmp	w2, w22
	b.ne	LBB0_4
LBB0_2:
	mov	w0, #0
LBB0_3:
	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_4:
	mov	x19, x0
	mov	x1, x21
	bl	_get_input_path
	cbz	x0, LBB0_3
; %bb.5:
	mov	x20, x0
	mov	w24, w21
	ldr	x8, [x0]
	cbz	x8, LBB0_7
; %bb.6:
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	mov	w3, #0
	bl	_snd_hda_activate_path
LBB0_7:
	ldr	x8, [x23]
	str	w22, [x8, x24, lsl #2]
	ldr	x8, [x23, #24]
	cbz	x8, LBB0_9
; %bb.8:
	mov	x0, x19
	mov	x1, x21
	mov	w2, #0
	bl	_update_hp_mic
LBB0_9:
	ldr	x8, [x23, #16]
	cbz	x8, LBB0_11
; %bb.10:
	mov	x0, x19
	mov	x1, x22
	bl	_dyn_adc_pcm_resetup
LBB0_11:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_get_input_path
	cbz	x0, LBB0_3
; %bb.12:
	mov	x1, x0
	ldr	x8, [x0]
	cbnz	x8, LBB0_2
; %bb.13:
	mov	x0, x19
	mov	w2, #1
	mov	w3, #0
	bl	_snd_hda_activate_path
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_15
; %bb.14:
	mov	x0, x19
	mov	x1, #0
	blr	x8
LBB0_15:
	mov	x0, x19
	mov	x1, x20
	bl	_path_power_down_sync
	mov	w0, #1
	b	LBB0_3
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mux_select
.subsections_via_symbols
