	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad1843_set_recsrc
_ad1843_set_recsrc:                     ## @ad1843_set_recsrc
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	leal	-128(%rbx), %eax
	cmpl	$4, %eax
	jae	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	cltq
	leaq	L_switch.table.ad1843_set_recsrc(%rip), %rcx
	movl	(%rcx,%rax,4), %r15d
	movq	_ad1843_LSS@GOTPCREL(%rip), %rsi
	callq	_ad1843_read_bits
	cmpl	$128, %ebx
	jne	LBB0_5
## %bb.3:
	cmpl	$6, %eax
	je	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rdi
	callq	_DBGP
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_ad1843_set_resample_mode
	movq	_ad1843_DAADL@GOTPCREL(%rip), %rdx
	movq	_ad1843_DAADR@GOTPCREL(%rip), %r8
	movq	%r14, %rdi
	movl	$2, %esi
	movl	$2, %ecx
	movl	$2, %r9d
	jmp	LBB0_8
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_5:
	cmpl	$128, %ebx
	je	LBB0_9
## %bb.6:
	cmpl	$6, %eax
	jne	LBB0_9
## %bb.7:
	leaq	L_.str.1(%rip), %rdi
	callq	_DBGP
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_ad1843_set_resample_mode
	movq	_ad1843_DAADL@GOTPCREL(%rip), %rdx
	movq	_ad1843_DAADR@GOTPCREL(%rip), %r8
	movq	%r14, %rdi
	movl	$2, %esi
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
LBB0_8:
	callq	_ad1843_write_multi
LBB0_9:
	movq	_ad1843_LSS@GOTPCREL(%rip), %rdx
	movq	_ad1843_RSS@GOTPCREL(%rip), %r8
	movq	%r14, %rdi
	movl	$2, %esi
	movl	%r15d, %ecx
	movl	%r15d, %r9d
	callq	_ad1843_write_multi
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ad1843_LSS,4,2                 ## @ad1843_LSS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"enabling digital resample mode\n"

	.comm	_ad1843_DAADL,4,2               ## @ad1843_DAADL
	.comm	_ad1843_DAADR,4,2               ## @ad1843_DAADR
L_.str.1:                               ## @.str.1
	.asciz	"disabling digital resample mode\n"

	.comm	_ad1843_RSS,4,2                 ## @ad1843_RSS
	.no_dead_strip	_ad1843_set_recsrc
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ## @switch.table.ad1843_set_recsrc
L_switch.table.ad1843_set_recsrc:
	.long	6                               ## 0x6
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	3                               ## 0x3

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad1843_set_recsrc
_ad1843_set_recsrc:                     ; @ad1843_set_recsrc
	.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
	sub	w8, w1, #128
	cmp	w8, #4
	b.hs	LBB0_4
; %bb.1:
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x9, l_switch.table.ad1843_set_recsrc@PAGE
Lloh1:
	add	x9, x9, l_switch.table.ad1843_set_recsrc@PAGEOFF
	ldr	w21, [x9, w8, sxtw #2]
Lloh2:
	adrp	x1, _ad1843_LSS@GOTPAGE
Lloh3:
	ldr	x1, [x1, _ad1843_LSS@GOTPAGEOFF]
	bl	_ad1843_read_bits
	cmp	w19, #128
	b.ne	LBB0_5
; %bb.2:
	cmp	w0, #6
	b.eq	LBB0_5
; %bb.3:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DBGP
	mov	x0, x20
	mov	w1, #1
	bl	_ad1843_set_resample_mode
Lloh6:
	adrp	x2, _ad1843_DAADL@GOTPAGE
Lloh7:
	ldr	x2, [x2, _ad1843_DAADL@GOTPAGEOFF]
Lloh8:
	adrp	x4, _ad1843_DAADR@GOTPAGE
Lloh9:
	ldr	x4, [x4, _ad1843_DAADR@GOTPAGEOFF]
	mov	x0, x20
	mov	w1, #2
	mov	w3, #2
	mov	w5, #2
	b	LBB0_8
LBB0_4:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_10
LBB0_5:
	cmp	w19, #128
	b.eq	LBB0_9
; %bb.6:
	cmp	w0, #6
	b.ne	LBB0_9
; %bb.7:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DBGP
	mov	x0, x20
	mov	w1, #0
	bl	_ad1843_set_resample_mode
Lloh15:
	adrp	x2, _ad1843_DAADL@GOTPAGE
Lloh16:
	ldr	x2, [x2, _ad1843_DAADL@GOTPAGEOFF]
Lloh17:
	adrp	x4, _ad1843_DAADR@GOTPAGE
Lloh18:
	ldr	x4, [x4, _ad1843_DAADR@GOTPAGEOFF]
	mov	x0, x20
	mov	w1, #2
	mov	w3, #0
	mov	w5, #0
LBB0_8:
	bl	_ad1843_write_multi
LBB0_9:
Lloh19:
	adrp	x2, _ad1843_LSS@GOTPAGE
Lloh20:
	ldr	x2, [x2, _ad1843_LSS@GOTPAGEOFF]
Lloh21:
	adrp	x4, _ad1843_RSS@GOTPAGE
Lloh22:
	ldr	x4, [x4, _ad1843_RSS@GOTPAGEOFF]
	mov	x0, x20
	mov	w1, #2
	mov	x3, x21
	mov	x5, x21
	bl	_ad1843_write_multi
LBB0_10:
	mov	x0, 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
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ad1843_LSS,4,2                 ; @ad1843_LSS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"enabling digital resample mode\n"

	.comm	_ad1843_DAADL,4,2               ; @ad1843_DAADL
	.comm	_ad1843_DAADR,4,2               ; @ad1843_DAADR
l_.str.1:                               ; @.str.1
	.asciz	"disabling digital resample mode\n"

	.comm	_ad1843_RSS,4,2                 ; @ad1843_RSS
	.no_dead_strip	_ad1843_set_recsrc
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @switch.table.ad1843_set_recsrc
l_switch.table.ad1843_set_recsrc:
	.long	6                               ; 0x6
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	3                               ; 0x3

.subsections_via_symbols
