	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ca0132_vnode_switch_set
_ca0132_vnode_switch_set:               ## @ca0132_vnode_switch_set
	.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	%rsi, %r15
	movq	%rdi, %rbx
	callq	_snd_kcontrol_chip
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_get_amp_nid
	movq	$0, -48(%rbp)
	movq	8(%r14), %rcx
	movq	_VNID_HP_SEL@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_3
## %bb.1:
	movq	_VNID_HP_ASEL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_VNODE_START_NID@GOTPCREL(%rip), %rdx
	subq	(%rdx), %rax
	movq	(%rcx), %rcx
	movl	$1, %r15d
	cmpl	$0, (%rcx,%rax,4)
	jne	LBB0_13
## %bb.2:
	movq	%r14, %rdi
	callq	_ca0132_select_out
	jmp	LBB0_13
LBB0_3:
	movq	_VNID_AMIC1_SEL@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_6
## %bb.4:
	movq	_VNID_AMIC1_ASEL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_VNODE_START_NID@GOTPCREL(%rip), %rdx
	subq	(%rdx), %rax
	movq	(%rcx), %rcx
	movl	$1, %r15d
	cmpl	$0, (%rcx,%rax,4)
	jne	LBB0_13
## %bb.5:
	movq	%r14, %rdi
	callq	_ca0132_select_mic
	jmp	LBB0_13
LBB0_6:
	movq	_VNID_HP_ASEL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	callq	_ca0132_select_out
	movl	$1, %r15d
	jmp	LBB0_13
LBB0_8:
	movq	_VNID_AMIC1_ASEL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.9:
	movq	%r14, %rdi
	callq	_ca0132_select_mic
	movl	$1, %r15d
	jmp	LBB0_13
LBB0_10:
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_ca0132_is_vnode_effective
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:
	movq	%rbx, %rdi
	callq	_get_amp_direction
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_get_amp_channels
	movl	%eax, %r13d
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	(%rbx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rdi
	movl	%r13d, %esi
	xorl	%edx, %edx
	movl	%r12d, %ecx
	callq	_HDA_COMPOSE_AMP_VAL
	movq	%rax, (%rbx)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_snd_hda_mixer_amp_switch_put
	movl	%eax, %r15d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%rbx)
	movq	%r14, %rdi
	callq	_mutex_unlock
	jmp	LBB0_13
LBB0_11:
	xorl	%r15d, %r15d
LBB0_13:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VNID_HP_SEL,8,3                ## @VNID_HP_SEL
	.comm	_VNID_HP_ASEL,8,3               ## @VNID_HP_ASEL
	.comm	_VNODE_START_NID,8,3            ## @VNODE_START_NID
	.comm	_VNID_AMIC1_SEL,8,3             ## @VNID_AMIC1_SEL
	.comm	_VNID_AMIC1_ASEL,8,3            ## @VNID_AMIC1_ASEL
	.no_dead_strip	_ca0132_vnode_switch_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ca0132_vnode_switch_set
_ca0132_vnode_switch_set:               ; @ca0132_vnode_switch_set
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x1
	mov	x20, x0
	bl	_snd_kcontrol_chip
	mov	x19, x0
	mov	x0, x20
	bl	_get_amp_nid
	str	xzr, [sp, #8]
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _VNID_HP_SEL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VNID_HP_SEL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x0, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _VNID_HP_ASEL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VNID_HP_ASEL@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _VNODE_START_NID@GOTPAGE
Lloh7:
	ldr	x10, [x10, _VNODE_START_NID@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	sub	x9, x9, x10
	ldr	w8, [x8, x9, lsl #2]
	cbnz	w8, LBB0_4
	b	LBB0_6
LBB0_2:
	mov	x1, x0
Lloh9:
	adrp	x9, _VNID_AMIC1_SEL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _VNID_AMIC1_SEL@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x0, x9
	b.ne	LBB0_5
; %bb.3:
	ldr	x8, [x8]
Lloh12:
	adrp	x9, _VNID_AMIC1_ASEL@GOTPAGE
Lloh13:
	ldr	x9, [x9, _VNID_AMIC1_ASEL@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
Lloh15:
	adrp	x10, _VNODE_START_NID@GOTPAGE
Lloh16:
	ldr	x10, [x10, _VNODE_START_NID@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
	sub	x9, x9, x10
	ldr	w8, [x8, x9, lsl #2]
	cbz	w8, LBB0_8
LBB0_4:
	mov	w21, #1
	b	LBB0_12
LBB0_5:
Lloh18:
	adrp	x8, _VNID_HP_ASEL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _VNID_HP_ASEL@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	cmp	x1, x8
	b.ne	LBB0_7
LBB0_6:
	mov	x0, x19
	bl	_ca0132_select_out
	mov	w21, #1
	b	LBB0_12
LBB0_7:
Lloh21:
	adrp	x8, _VNID_AMIC1_ASEL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _VNID_AMIC1_ASEL@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	cmp	x1, x8
	b.ne	LBB0_9
LBB0_8:
	mov	x0, x19
	bl	_ca0132_select_mic
	mov	w21, #1
	b	LBB0_12
LBB0_9:
	add	x2, sp, #8
	mov	x0, x19
	bl	_ca0132_is_vnode_effective
	cbz	w0, LBB0_11
; %bb.10:
	mov	x0, x20
	bl	_get_amp_direction
	mov	x22, x0
	mov	x0, x20
	bl	_get_amp_channels
	mov	x23, x0
	mov	x0, x19
	bl	_mutex_lock
	ldr	x24, [x20]
	ldr	x0, [sp, #8]
	mov	x1, x23
	mov	w2, #0
	mov	x3, x22
	bl	_HDA_COMPOSE_AMP_VAL
	str	x0, [x20]
	mov	x0, x20
	mov	x1, x21
	bl	_snd_hda_mixer_amp_switch_put
	mov	x21, x0
	str	x24, [x20]
	mov	x0, x19
	bl	_mutex_unlock
	b	LBB0_12
LBB0_11:
	mov	w21, #0
LBB0_12:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_VNID_HP_SEL,8,3                ; @VNID_HP_SEL
	.comm	_VNID_HP_ASEL,8,3               ; @VNID_HP_ASEL
	.comm	_VNODE_START_NID,8,3            ; @VNODE_START_NID
	.comm	_VNID_AMIC1_SEL,8,3             ; @VNID_AMIC1_SEL
	.comm	_VNID_AMIC1_ASEL,8,3            ; @VNID_AMIC1_ASEL
	.no_dead_strip	_ca0132_vnode_switch_set
.subsections_via_symbols
