	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_switch
_do_switch:                             ## @do_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	_SWH_CAPTURE_START@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	ja	LBB0_4
## %bb.1:
	movq	_SWH_CAPTURE_END@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jb	LBB0_4
## %bb.2:
	movq	56(%r15), %r12
	movl	%ebx, %edi
	callq	_get_amixer_index
	movq	%r12, %rdi
	movl	%eax, %esi
	testl	%r14d, %r14d
	je	LBB0_8
## %bb.3:
	callq	_ct_mixer_recording_select
	jmp	LBB0_5
LBB0_4:
	testl	%r14d, %r14d
	je	LBB0_9
LBB0_5:
	movq	_MIXER_LINEIN_C_S@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	je	LBB0_7
## %bb.6:
	movq	_MIXER_MIC_C_S@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_9
LBB0_7:
	movq	%r15, %rdi
	movl	%ebx, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_do_line_mic_switch             ## TAILCALL
LBB0_8:
	callq	_ct_mixer_recording_unselect
LBB0_9:
	movq	_MIXER_WAVEF_P_S@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_12
## %bb.10:
	movq	48(%r15), %rax
	jmp	LBB0_11
LBB0_12:
	movq	_MIXER_WAVES_P_S@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_14
## %bb.13:
	movq	40(%r15), %rax
	jmp	LBB0_11
LBB0_14:
	movq	_MIXER_WAVEC_P_S@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_16
## %bb.15:
	movq	32(%r15), %rax
	jmp	LBB0_11
LBB0_16:
	movq	_MIXER_WAVER_P_S@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_18
## %bb.17:
	movq	24(%r15), %rax
	jmp	LBB0_11
LBB0_18:
	movq	_MIXER_LINEIN_P_S@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_20
## %bb.19:
	movq	16(%r15), %rax
	jmp	LBB0_11
LBB0_20:
	movq	_MIXER_SPDIFO_P_S@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_22
## %bb.21:
	movq	8(%r15), %rax
	jmp	LBB0_11
LBB0_22:
	movq	_MIXER_SPDIFI_P_S@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_24
## %bb.23:
	movq	(%r15), %rax
LBB0_11:
	movq	%r15, %rdi
	movl	%r14d, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_24:
	movq	_MIXER_DIGITAL_IO_S@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_25
## %bb.26:
	movq	%r15, %rdi
	movl	%r14d, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_do_digit_io_switch             ## TAILCALL
LBB0_25:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SWH_CAPTURE_START,4,2          ## @SWH_CAPTURE_START
	.comm	_SWH_CAPTURE_END,4,2            ## @SWH_CAPTURE_END
	.comm	_MIXER_LINEIN_C_S,4,2           ## @MIXER_LINEIN_C_S
	.comm	_MIXER_MIC_C_S,4,2              ## @MIXER_MIC_C_S
	.comm	_MIXER_WAVEF_P_S,4,2            ## @MIXER_WAVEF_P_S
	.comm	_MIXER_WAVES_P_S,4,2            ## @MIXER_WAVES_P_S
	.comm	_MIXER_WAVEC_P_S,4,2            ## @MIXER_WAVEC_P_S
	.comm	_MIXER_WAVER_P_S,4,2            ## @MIXER_WAVER_P_S
	.comm	_MIXER_LINEIN_P_S,4,2           ## @MIXER_LINEIN_P_S
	.comm	_MIXER_SPDIFO_P_S,4,2           ## @MIXER_SPDIFO_P_S
	.comm	_MIXER_SPDIFI_P_S,4,2           ## @MIXER_SPDIFI_P_S
	.comm	_MIXER_DIGITAL_IO_S,4,2         ## @MIXER_DIGITAL_IO_S
	.no_dead_strip	_do_switch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_switch
_do_switch:                             ; @do_switch
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _SWH_CAPTURE_START@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SWH_CAPTURE_START@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _SWH_CAPTURE_END@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SWH_CAPTURE_END@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w1
	ccmp	w9, w1, #0, ls
	b.hs	LBB0_2
; %bb.1:
	cbnz	w19, LBB0_4
	b	LBB0_7
LBB0_2:
	ldr	x22, [x20, #56]
	mov	x0, x21
	bl	_get_amixer_index
	mov	x1, x0
	mov	x0, x22
	cbz	w19, LBB0_6
; %bb.3:
	bl	_ct_mixer_recording_select
LBB0_4:
Lloh6:
	adrp	x8, _MIXER_LINEIN_C_S@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MIXER_LINEIN_C_S@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _MIXER_MIC_C_S@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MIXER_MIC_C_S@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w8, w21
	ccmp	w9, w21, #4, ne
	b.ne	LBB0_7
; %bb.5:
	mov	x0, x20
	mov	x1, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_do_line_mic_switch
LBB0_6:
	bl	_ct_mixer_recording_unselect
LBB0_7:
Lloh12:
	adrp	x8, _MIXER_WAVEF_P_S@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MIXER_WAVEF_P_S@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_9
; %bb.8:
	ldr	x2, [x20, #48]
	b	LBB0_21
LBB0_9:
Lloh15:
	adrp	x8, _MIXER_WAVES_P_S@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MIXER_WAVES_P_S@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_11
; %bb.10:
	ldr	x2, [x20, #40]
	b	LBB0_21
LBB0_11:
Lloh18:
	adrp	x8, _MIXER_WAVEC_P_S@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MIXER_WAVEC_P_S@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_13
; %bb.12:
	ldr	x2, [x20, #32]
	b	LBB0_21
LBB0_13:
Lloh21:
	adrp	x8, _MIXER_WAVER_P_S@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MIXER_WAVER_P_S@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_15
; %bb.14:
	ldr	x2, [x20, #24]
	b	LBB0_21
LBB0_15:
Lloh24:
	adrp	x8, _MIXER_LINEIN_P_S@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MIXER_LINEIN_P_S@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_17
; %bb.16:
	ldr	x2, [x20, #16]
	b	LBB0_21
LBB0_17:
Lloh27:
	adrp	x8, _MIXER_SPDIFO_P_S@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MIXER_SPDIFO_P_S@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_19
; %bb.18:
	ldr	x2, [x20, #8]
	b	LBB0_21
LBB0_19:
Lloh30:
	adrp	x8, _MIXER_SPDIFI_P_S@GOTPAGE
Lloh31:
	ldr	x8, [x8, _MIXER_SPDIFI_P_S@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_22
; %bb.20:
	ldr	x2, [x20]
LBB0_21:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	br	x2
LBB0_22:
Lloh33:
	adrp	x8, _MIXER_DIGITAL_IO_S@GOTPAGE
Lloh34:
	ldr	x8, [x8, _MIXER_DIGITAL_IO_S@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_24
; %bb.23:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_do_digit_io_switch
LBB0_24:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_SWH_CAPTURE_START,4,2          ; @SWH_CAPTURE_START
	.comm	_SWH_CAPTURE_END,4,2            ; @SWH_CAPTURE_END
	.comm	_MIXER_LINEIN_C_S,4,2           ; @MIXER_LINEIN_C_S
	.comm	_MIXER_MIC_C_S,4,2              ; @MIXER_MIC_C_S
	.comm	_MIXER_WAVEF_P_S,4,2            ; @MIXER_WAVEF_P_S
	.comm	_MIXER_WAVES_P_S,4,2            ; @MIXER_WAVES_P_S
	.comm	_MIXER_WAVEC_P_S,4,2            ; @MIXER_WAVEC_P_S
	.comm	_MIXER_WAVER_P_S,4,2            ; @MIXER_WAVER_P_S
	.comm	_MIXER_LINEIN_P_S,4,2           ; @MIXER_LINEIN_P_S
	.comm	_MIXER_SPDIFO_P_S,4,2           ; @MIXER_SPDIFO_P_S
	.comm	_MIXER_SPDIFI_P_S,4,2           ; @MIXER_SPDIFI_P_S
	.comm	_MIXER_DIGITAL_IO_S,4,2         ; @MIXER_DIGITAL_IO_S
	.no_dead_strip	_do_switch
.subsections_via_symbols
