	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_fx_switch
_add_fx_switch:                         ## @add_fx_switch
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movq	%rdx, %r15
	movl	%esi, %r14d
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testl	%ecx, %ecx
	jne	LBB0_1
## %bb.2:
	movq	_HDA_OUTPUT@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_HDA_INPUT@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %ecx
	leaq	-96(%rbp), %r13
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	$1, %edx
	callq	_CA0132_CODEC_MUTE_MONO
	movl	%eax, -104(%rbp)
	movq	_dirstr@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%ebx, %rcx
	movq	(%rax,%rcx,8), %rcx
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	movq	%r15, %rdx
	callq	_sprintf
	leaq	-104(%rbp), %rdi
	movq	%r12, %rsi
	callq	_snd_ctl_new1
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_snd_hda_ctl_add
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_5
## %bb.4:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_HDA_INPUT,4,2                  ## @HDA_INPUT
	.comm	_HDA_OUTPUT,4,2                 ## @HDA_OUTPUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s %s Switch"

	.comm	_dirstr,8,3                     ## @dirstr
	.no_dead_strip	_add_fx_switch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_fx_switch
_add_fx_switch:                         ; @add_fx_switch
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _HDA_INPUT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HDA_INPUT@GOTPAGEOFF]
	stur	x8, [x29, #-40]
Lloh5:
	adrp	x8, _HDA_OUTPUT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HDA_OUTPUT@GOTPAGEOFF]
	cmp	w3, #0
	csel	x8, x8, x9, eq
	ldr	w3, [x8]
	add	x0, sp, #12
	mov	w2, #1
	bl	_CA0132_CODEC_MUTE_MONO
	str	w0, [sp, #8]
Lloh7:
	adrp	x8, _dirstr@GOTPAGE
Lloh8:
	ldr	x8, [x8, _dirstr@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	ldr	x3, [x8, w19, sxtw #3]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #12
	mov	x2, x20
	bl	_sprintf
	add	x0, sp, #8
	mov	x1, x22
	bl	_snd_ctl_new1
	mov	x2, x0
	mov	x0, x22
	mov	x1, x21
	bl	_snd_hda_ctl_add
	ldur	x8, [x29, #-40]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	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
	add	sp, sp, #112
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HDA_INPUT,4,2                  ; @HDA_INPUT
	.comm	_HDA_OUTPUT,4,2                 ; @HDA_OUTPUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s %s Switch"

	.comm	_dirstr,8,3                     ; @dirstr
	.no_dead_strip	_add_fx_switch
.subsections_via_symbols
