	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vx2_add_mic_controls
_vx2_add_mic_controls:                  ## @vx2_add_mic_controls
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rcx
	movq	_VX_TYPE_MIC@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_3
## %bb.1:
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax)
	movq	$0, (%rdi)
	callq	_vx2_set_input_level
	movl	8(%rbx), %r14d
	movq	_vx_control_input_level@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	callq	_snd_ctl_new1
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_snd_ctl_add
	testl	%eax, %eax
	js	LBB0_3
## %bb.2:
	movl	8(%rbx), %r14d
	movq	_vx_control_mic_level@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	callq	_snd_ctl_new1
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_snd_ctl_add
	movl	%eax, %ecx
	sarl	$31, %ecx
	andl	%ecx, %eax
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VX_TYPE_MIC,8,3                ## @VX_TYPE_MIC
	.comm	_vx_control_input_level,4,2     ## @vx_control_input_level
	.comm	_vx_control_mic_level,4,2       ## @vx_control_mic_level
	.no_dead_strip	_vx2_add_mic_controls
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vx2_add_mic_controls
_vx2_add_mic_controls:                  ; @vx2_add_mic_controls
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _VX_TYPE_MIC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VX_TYPE_MIC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #8]
	stp	xzr, xzr, [x8]
	str	xzr, [x0]
	bl	_vx2_set_input_level
	ldr	w20, [x19, #8]
Lloh3:
	adrp	x0, _vx_control_input_level@GOTPAGE
Lloh4:
	ldr	x0, [x0, _vx_control_input_level@GOTPAGEOFF]
	mov	x1, x19
	bl	_snd_ctl_new1
	mov	x1, x0
	mov	x0, x20
	bl	_snd_ctl_add
	tbnz	w0, #31, LBB0_4
; %bb.2:
	ldr	w20, [x19, #8]
Lloh5:
	adrp	x0, _vx_control_mic_level@GOTPAGE
Lloh6:
	ldr	x0, [x0, _vx_control_mic_level@GOTPAGEOFF]
	mov	x1, x19
	bl	_snd_ctl_new1
	mov	x1, x0
	mov	x0, x20
	bl	_snd_ctl_add
	cmp	w0, #0
	csel	w0, w0, wzr, lt
	b	LBB0_4
LBB0_3:
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_VX_TYPE_MIC,8,3                ; @VX_TYPE_MIC
	.comm	_vx_control_input_level,4,2     ; @vx_control_input_level
	.comm	_vx_control_mic_level,4,2       ; @vx_control_mic_level
	.no_dead_strip	_vx2_add_mic_controls
.subsections_via_symbols
