	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad1843_set_resample_mode
_ad1843_set_resample_mode:              ## @ad1843_set_resample_mode
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movl	$9, %esi
	callq	_li_read_ad1843_reg
	movl	%eax, %r14d
	movq	_ad1843_ADLEN@GOTPCREL(%rip), %r12
	movq	_ad1843_DA1EN@GOTPCREL(%rip), %r13
	movq	_ad1843_DA2EN@GOTPCREL(%rip), %r8
	movq	%rbx, %rdi
	movl	$4, %esi
	movq	%r13, %rdx
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	xorl	%eax, %eax
	pushq	$0
	pushq	_ad1843_ADREN@GOTPCREL(%rip)
	pushq	$0
	pushq	%r12
	callq	_ad1843_write_multi
	addq	$32, %rsp
	xorl	%edi, %edi
	cmpl	$2, %r15d
	setb	%dil
	callq	_ASSERT
	movq	_ad1843_DRSFLT@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_ad1843_write_bits
	movq	%rbx, %rdi
	movl	$3, %esi
	movq	%r13, %rdx
	movl	$1, %ecx
	movq	%r12, %r8
	movl	$1, %r9d
	xorl	%eax, %eax
	pushq	$1
	pushq	_ad1843_ADREN@GOTPCREL(%rip)
	callq	_ad1843_write_multi
	addq	$16, %rsp
	movq	%rbx, %rdi
	movl	$9, %esi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_li_write_ad1843_reg            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ad1843_DA1EN,4,2               ## @ad1843_DA1EN
	.comm	_ad1843_DA2EN,4,2               ## @ad1843_DA2EN
	.comm	_ad1843_ADLEN,4,2               ## @ad1843_ADLEN
	.comm	_ad1843_ADREN,4,2               ## @ad1843_ADREN
	.comm	_ad1843_DRSFLT,4,2              ## @ad1843_DRSFLT
	.no_dead_strip	_ad1843_set_resample_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad1843_set_resample_mode
_ad1843_set_resample_mode:              ; @ad1843_set_resample_mode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x1
	mov	x20, x0
	mov	w1, #9
	bl	_li_read_ad1843_reg
	mov	x21, x0
Lloh0:
	adrp	x22, _ad1843_ADREN@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ad1843_ADREN@GOTPAGEOFF]
	stp	x22, xzr, [sp]
Lloh2:
	adrp	x23, _ad1843_DA1EN@GOTPAGE
Lloh3:
	ldr	x23, [x23, _ad1843_DA1EN@GOTPAGEOFF]
Lloh4:
	adrp	x4, _ad1843_DA2EN@GOTPAGE
Lloh5:
	ldr	x4, [x4, _ad1843_DA2EN@GOTPAGEOFF]
Lloh6:
	adrp	x24, _ad1843_ADLEN@GOTPAGE
Lloh7:
	ldr	x24, [x24, _ad1843_ADLEN@GOTPAGEOFF]
	mov	x0, x20
	mov	w1, #4
	mov	x2, x23
	mov	w3, #0
	mov	w5, #0
	mov	x6, x24
	mov	w7, #0
	bl	_ad1843_write_multi
	cmp	w19, #2
	cset	w0, lo
	bl	_ASSERT
Lloh8:
	adrp	x1, _ad1843_DRSFLT@GOTPAGE
Lloh9:
	ldr	x1, [x1, _ad1843_DRSFLT@GOTPAGEOFF]
	mov	x0, x20
	mov	x2, x19
	bl	_ad1843_write_bits
	mov	x0, x20
	mov	w1, #3
	mov	x2, x23
	mov	w3, #1
	mov	x4, x24
	mov	w5, #1
	mov	x6, x22
	mov	w7, #1
	bl	_ad1843_write_multi
	mov	x0, x20
	mov	w1, #9
	mov	x2, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_li_write_ad1843_reg
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ad1843_DA1EN,4,2               ; @ad1843_DA1EN
	.comm	_ad1843_DA2EN,4,2               ; @ad1843_DA2EN
	.comm	_ad1843_ADLEN,4,2               ; @ad1843_ADLEN
	.comm	_ad1843_ADREN,4,2               ; @ad1843_ADREN
	.comm	_ad1843_DRSFLT,4,2              ; @ad1843_DRSFLT
	.no_dead_strip	_ad1843_set_resample_mode
.subsections_via_symbols
