	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vxp_change_audio_source
_vxp_change_audio_source:               ## @vxp_change_audio_source
	.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, %rbx
	cmpl	$128, %esi
	je	LBB0_8
## %bb.1:
	cmpl	$129, %esi
	je	LBB0_4
## %bb.2:
	cmpl	$130, %esi
	jne	LBB0_16
## %bb.3:
	movq	_VXP_CDSP_DATAIN_SEL_MASK@GOTPCREL(%rip), %rax
	movl	4(%rbx), %edx
	jmp	LBB0_12
LBB0_4:
	movq	_VXP_CDSP_DATAIN_SEL_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%rbx), %eax
	movq	_VX_TYPE_VXP440@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_5
## %bb.6:
	movq	_P24_CDSP_MICS_SEL_MASK@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_8:
	movq	_VXP_CDSP_DATAIN_SEL_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	andl	4(%rbx), %edx
	movl	(%rbx), %eax
	movq	_VX_TYPE_VXP440@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_15
## %bb.9:
	movq	_P24_CDSP_MICS_SEL_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %edx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.11:
	movq	_P24_CDSP_MIC20_SEL_MASK@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_16:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movq	_VXP_CDSP_MIC_SEL_MASK@GOTPCREL(%rip), %rax
LBB0_7:
	orl	(%rax), %edx
	notl	%edx
	andl	4(%rbx), %edx
	jmp	LBB0_13
LBB0_15:
	movq	_VXP_CDSP_MIC_SEL_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	%edx, 4(%rbx)
	movq	_CDSP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_vx_outb
	movq	_MICRO@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	(%rbx), %edi
	callq	_vx_compute_mic_level
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	jmp	LBB0_14
LBB0_10:
	movq	_P24_CDSP_MIC38_SEL_MASK@GOTPCREL(%rip), %rax
LBB0_12:
	orl	(%rax), %edx
LBB0_13:
	movl	%edx, 4(%rbx)
	movq	_CDSP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
LBB0_14:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_vx_outb                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VXP_CDSP_DATAIN_SEL_MASK,4,2   ## @VXP_CDSP_DATAIN_SEL_MASK
	.comm	_CDSP,4,2                       ## @CDSP
	.comm	_VX_TYPE_VXP440,4,2             ## @VX_TYPE_VXP440
	.comm	_P24_CDSP_MICS_SEL_MASK,4,2     ## @P24_CDSP_MICS_SEL_MASK
	.comm	_VXP_CDSP_MIC_SEL_MASK,4,2      ## @VXP_CDSP_MIC_SEL_MASK
	.comm	_P24_CDSP_MIC38_SEL_MASK,4,2    ## @P24_CDSP_MIC38_SEL_MASK
	.comm	_P24_CDSP_MIC20_SEL_MASK,4,2    ## @P24_CDSP_MIC20_SEL_MASK
	.comm	_MICRO,4,2                      ## @MICRO
	.no_dead_strip	_vxp_change_audio_source
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vxp_change_audio_source
_vxp_change_audio_source:               ; @vxp_change_audio_source
	.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
	mov	x19, x0
	cmp	w1, #128
	b.eq	LBB0_5
; %bb.1:
	cmp	w1, #129
	b.eq	LBB0_4
; %bb.2:
	cmp	w1, #130
	b.ne	LBB0_10
; %bb.3:
Lloh0:
	adrp	x8, _VXP_CDSP_DATAIN_SEL_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VXP_CDSP_DATAIN_SEL_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	b	LBB0_7
LBB0_4:
Lloh3:
	adrp	x8, _VXP_CDSP_DATAIN_SEL_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VXP_CDSP_DATAIN_SEL_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _VX_TYPE_VXP440@GOTPAGE
Lloh7:
	ldr	x9, [x9, _VX_TYPE_VXP440@GOTPAGEOFF]
	ldp	w11, w10, [x19]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x12, _P24_CDSP_MICS_SEL_MASK@GOTPAGE
Lloh10:
	ldr	x12, [x12, _P24_CDSP_MICS_SEL_MASK@GOTPAGEOFF]
Lloh11:
	adrp	x13, _VXP_CDSP_MIC_SEL_MASK@GOTPAGE
Lloh12:
	ldr	x13, [x13, _VXP_CDSP_MIC_SEL_MASK@GOTPAGEOFF]
	cmp	w11, w9
	csel	x9, x12, x13, eq
	ldr	w9, [x9]
	orr	w8, w8, w9
	bic	w2, w10, w8
	b	LBB0_8
LBB0_5:
Lloh13:
	adrp	x8, _VXP_CDSP_DATAIN_SEL_MASK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _VXP_CDSP_DATAIN_SEL_MASK@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ldp	w9, w10, [x19]
	bic	w8, w10, w8
Lloh16:
	adrp	x10, _VX_TYPE_VXP440@GOTPAGE
Lloh17:
	ldr	x10, [x10, _VX_TYPE_VXP440@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_11
; %bb.6:
Lloh19:
	adrp	x10, _P24_CDSP_MICS_SEL_MASK@GOTPAGE
Lloh20:
	ldr	x10, [x10, _P24_CDSP_MICS_SEL_MASK@GOTPAGEOFF]
Lloh21:
	ldr	w10, [x10]
Lloh22:
	adrp	x11, _P24_CDSP_MIC20_SEL_MASK@GOTPAGE
Lloh23:
	ldr	x11, [x11, _P24_CDSP_MIC20_SEL_MASK@GOTPAGEOFF]
Lloh24:
	adrp	x12, _P24_CDSP_MIC38_SEL_MASK@GOTPAGE
Lloh25:
	ldr	x12, [x12, _P24_CDSP_MIC38_SEL_MASK@GOTPAGEOFF]
	bic	w8, w8, w10
	cmp	w9, #0
	csel	x9, x11, x12, eq
	ldr	w9, [x9]
LBB0_7:
	orr	w2, w9, w8
LBB0_8:
	str	w2, [x19, #4]
Lloh26:
	adrp	x8, _CDSP@GOTPAGE
Lloh27:
	ldr	x8, [x8, _CDSP@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x19
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_vx_outb
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_11:
Lloh29:
	adrp	x9, _VXP_CDSP_MIC_SEL_MASK@GOTPAGE
Lloh30:
	ldr	x9, [x9, _VXP_CDSP_MIC_SEL_MASK@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	orr	w2, w9, w8
	str	w2, [x19, #4]
Lloh32:
	adrp	x8, _CDSP@GOTPAGE
Lloh33:
	ldr	x8, [x8, _CDSP@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_vx_outb
Lloh35:
	adrp	x8, _MICRO@GOTPAGE
Lloh36:
	ldr	x8, [x8, _MICRO@GOTPAGEOFF]
Lloh37:
	ldr	w20, [x8]
	ldr	w0, [x19]
	bl	_vx_compute_mic_level
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_VXP_CDSP_DATAIN_SEL_MASK,4,2   ; @VXP_CDSP_DATAIN_SEL_MASK
	.comm	_CDSP,4,2                       ; @CDSP
	.comm	_VX_TYPE_VXP440,4,2             ; @VX_TYPE_VXP440
	.comm	_P24_CDSP_MICS_SEL_MASK,4,2     ; @P24_CDSP_MICS_SEL_MASK
	.comm	_VXP_CDSP_MIC_SEL_MASK,4,2      ; @VXP_CDSP_MIC_SEL_MASK
	.comm	_P24_CDSP_MIC38_SEL_MASK,4,2    ; @P24_CDSP_MIC38_SEL_MASK
	.comm	_P24_CDSP_MIC20_SEL_MASK,4,2    ; @P24_CDSP_MIC20_SEL_MASK
	.comm	_MICRO,4,2                      ; @MICRO
	.no_dead_strip	_vxp_change_audio_source
.subsections_via_symbols
