	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ad1843_setup_dac               ## -- Begin function ad1843_setup_dac
	.p2align	4, 0x90
_ad1843_setup_dac:                      ## @ad1843_setup_dac
	.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
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rdi, %r14
	leal	-130(%rcx), %eax
	addl	$-129, %ecx
	xorl	%r15d, %r15d
	cmpl	$3, %eax
	cmovbl	%ecx, %r15d
	xorl	%ebx, %ebx
	cmpl	$1, %r8d
	sete	%bl
	testl	%esi, %esi
	je	LBB0_3
## %bb.1:
	movq	_ad1843_C2C@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_ad1843_write_bits
	movq	_ad1843_DA2SM@GOTPCREL(%rip), %rdx
	movq	_ad1843_DA2F@GOTPCREL(%rip), %r8
	jmp	LBB0_2
LBB0_3:
	movq	_ad1843_C1C@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_ad1843_write_bits
	movq	_ad1843_DA1SM@GOTPCREL(%rip), %rdx
	movq	_ad1843_DA1F@GOTPCREL(%rip), %r8
LBB0_2:
	movq	%r14, %rdi
	movl	$2, %esi
	movl	%ebx, %ecx
	movl	%r15d, %r9d
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ad1843_write_multi             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ad1843_C2C,4,2                 ## @ad1843_C2C
	.comm	_ad1843_DA2SM,4,2               ## @ad1843_DA2SM
	.comm	_ad1843_DA2F,4,2                ## @ad1843_DA2F
	.comm	_ad1843_C1C,4,2                 ## @ad1843_C1C
	.comm	_ad1843_DA1SM,4,2               ## @ad1843_DA1SM
	.comm	_ad1843_DA1F,4,2                ## @ad1843_DA1F
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ad1843_setup_dac               ; -- Begin function ad1843_setup_dac
	.p2align	2
_ad1843_setup_dac:                      ; @ad1843_setup_dac
	.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	x20, x0
	sub	w8, w3, #130
	sub	w9, w3, #129
	cmp	w8, #3
	csel	w19, w9, wzr, lo
	cmp	w4, #1
	cset	w21, eq
	cbz	w1, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, _ad1843_C2C@GOTPAGE
Lloh1:
	ldr	x1, [x1, _ad1843_C2C@GOTPAGEOFF]
	mov	x0, x20
	bl	_ad1843_write_bits
Lloh2:
	adrp	x2, _ad1843_DA2SM@GOTPAGE
Lloh3:
	ldr	x2, [x2, _ad1843_DA2SM@GOTPAGEOFF]
Lloh4:
	adrp	x4, _ad1843_DA2F@GOTPAGE
Lloh5:
	ldr	x4, [x4, _ad1843_DA2F@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh6:
	adrp	x1, _ad1843_C1C@GOTPAGE
Lloh7:
	ldr	x1, [x1, _ad1843_C1C@GOTPAGEOFF]
	mov	x0, x20
	bl	_ad1843_write_bits
Lloh8:
	adrp	x2, _ad1843_DA1SM@GOTPAGE
Lloh9:
	ldr	x2, [x2, _ad1843_DA1SM@GOTPAGEOFF]
Lloh10:
	adrp	x4, _ad1843_DA1F@GOTPAGE
Lloh11:
	ldr	x4, [x4, _ad1843_DA1F@GOTPAGEOFF]
LBB0_3:
	mov	x0, x20
	mov	w1, #2
	mov	x3, x21
	mov	x5, 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	_ad1843_write_multi
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ad1843_C2C,4,2                 ; @ad1843_C2C
	.comm	_ad1843_DA2SM,4,2               ; @ad1843_DA2SM
	.comm	_ad1843_DA2F,4,2                ; @ad1843_DA2F
	.comm	_ad1843_C1C,4,2                 ; @ad1843_C1C
	.comm	_ad1843_DA1SM,4,2               ; @ad1843_DA1SM
	.comm	_ad1843_DA1F,4,2                ; @ad1843_DA1F
.subsections_via_symbols
