	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function a10_mixer_setrecsrc
_a10_mixer_setrecsrc:                   ## @a10_mixer_setrecsrc
	.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	%esi, %r15d
	callq	_mix_getdevinfo
	movq	%rax, %r14
	movq	_A10_ADC_ACTL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rax, %rdi
	callq	_CODEC_READ
	movl	%eax, %ebx
	cmpl	$128, %r15d
	je	LBB0_4
## %bb.1:
	cmpl	$129, %r15d
	je	LBB0_5
## %bb.2:
	cmpl	$130, %r15d
	jne	LBB0_7
## %bb.3:
	movq	_A10_ADCIS_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %ebx
	movq	_A10_ADCIS_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$133, %eax
	jmp	LBB0_6
LBB0_4:
	movq	_A10_ADCIS_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %ebx
	movq	_A10_ADCIS_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$132, %eax
	jmp	LBB0_6
LBB0_5:
	movq	_A10_ADCIS_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %ebx
	movq	_A10_ADCIS_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$131, %eax
LBB0_6:
	shll	%cl, %eax
	orl	%eax, %ebx
LBB0_7:
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_CODEC_WRITE
	movq	_A10_ADCIS_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movq	_A10_ADCIS_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %ebx
	addl	$-131, %ebx
	xorl	%eax, %eax
	cmpl	$2, %ebx
	ja	LBB0_9
## %bb.8:
	movslq	%ebx, %rax
	leaq	l_switch.table.a10_mixer_setrecsrc(%rip), %rcx
	movl	(%rcx,%rax,4), %eax
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_A10_ADC_ACTL,4,2               ## @A10_ADC_ACTL
	.comm	_A10_ADCIS_MASK,4,2             ## @A10_ADCIS_MASK
	.comm	_A10_ADCIS_SHIFT,4,2            ## @A10_ADCIS_SHIFT
	.no_dead_strip	_a10_mixer_setrecsrc
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.a10_mixer_setrecsrc
l_switch.table.a10_mixer_setrecsrc:
	.long	129                             ## 0x81
	.long	128                             ## 0x80
	.long	130                             ## 0x82

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function a10_mixer_setrecsrc
_a10_mixer_setrecsrc:                   ; @a10_mixer_setrecsrc
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	bl	_mix_getdevinfo
	mov	x19, x0
Lloh0:
	adrp	x22, _A10_ADC_ACTL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _A10_ADC_ACTL@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_CODEC_READ
	mov	x20, x0
Lloh2:
	adrp	x24, _A10_ADCIS_MASK@GOTPAGE
Lloh3:
	ldr	x24, [x24, _A10_ADCIS_MASK@GOTPAGEOFF]
Lloh4:
	adrp	x23, _A10_ADCIS_SHIFT@GOTPAGE
Lloh5:
	ldr	x23, [x23, _A10_ADCIS_SHIFT@GOTPAGEOFF]
	cmp	w21, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w21, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w21, #130
	b.ne	LBB0_7
; %bb.3:
	ldr	w8, [x24]
	bic	w8, w20, w8
	ldr	w9, [x23]
	mov	w10, #133
	b	LBB0_6
LBB0_4:
	ldr	w8, [x24]
	bic	w8, w20, w8
	ldr	w9, [x23]
	mov	w10, #132
	b	LBB0_6
LBB0_5:
	ldr	w8, [x24]
	bic	w8, w20, w8
	ldr	w9, [x23]
	mov	w10, #131
LBB0_6:
	lsl	w9, w10, w9
	orr	w20, w9, w8
LBB0_7:
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x20
	bl	_CODEC_WRITE
	ldr	w8, [x24]
	and	w8, w8, w20
	ldr	w9, [x23]
	asr	w8, w8, w9
	sub	w8, w8, #131
	cmp	w8, #2
	b.hi	LBB0_9
; %bb.8:
Lloh6:
	adrp	x9, l_switch.table.a10_mixer_setrecsrc@PAGE
Lloh7:
	add	x9, x9, l_switch.table.a10_mixer_setrecsrc@PAGEOFF
	ldr	w0, [x9, w8, sxtw #2]
	b	LBB0_10
LBB0_9:
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_A10_ADC_ACTL,4,2               ; @A10_ADC_ACTL
	.comm	_A10_ADCIS_MASK,4,2             ; @A10_ADCIS_MASK
	.comm	_A10_ADCIS_SHIFT,4,2            ; @A10_ADCIS_SHIFT
	.no_dead_strip	_a10_mixer_setrecsrc
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.a10_mixer_setrecsrc
l_switch.table.a10_mixer_setrecsrc:
	.long	129                             ; 0x81
	.long	128                             ; 0x80
	.long	130                             ; 0x82

.subsections_via_symbols
