	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad1843_setup_dac
_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	%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	%ecx, %r13d
	movl	%edx, %ebx
	movl	%esi, %r12d
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	movl	%r12d, %edx
	movl	%ebx, %ecx
	movl	%r13d, %r8d
	callq	_DBGEV
	addl	$-128, %ebx
	cmpl	$5, %ebx
	jae	LBB0_1
## %bb.2:
	movslq	%ebx, %rax
	leaq	l_switch.table.ad1843_setup_dac(%rip), %rcx
	movl	(%rcx,%rax,4), %r15d
	cmpl	$2, %r13d
	je	LBB0_4
LBB0_5:
	cmpl	$1, %r13d
	jne	LBB0_7
## %bb.6:
	movl	$1, %ebx
	jmp	LBB0_8
LBB0_1:
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	callq	_ASSERT
	cmpl	$2, %r13d
	jne	LBB0_5
LBB0_4:
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_7:
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_ASSERT
LBB0_8:
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	movl	%r15d, %edx
	callq	_DBGPV
	leal	-4000(%r12), %eax
	xorl	%edi, %edi
	cmpl	$45001, %eax                    ## imm = 0xAFC9
	setb	%dil
	callq	_ASSERT
	movq	_ad1843_C1C@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_ad1843_write_bits
	movq	_ad1843_DA1SM@GOTPCREL(%rip), %rdx
	movq	_ad1843_DA1F@GOTPCREL(%rip), %r8
	movq	%r14, %rdi
	movl	$2, %esi
	movl	%ebx, %ecx
	movl	%r15d, %r9d
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ad1843_write_multi             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(lith=0x%p, framerate=%d, fmt=%d, channels=%d)\n"

L_.str.1:                               ## @.str.1
	.asciz	"ad_mode = %d, ad_fmt = %d\n"

	.comm	_ad1843_C1C,4,2                 ## @ad1843_C1C
	.comm	_ad1843_DA1SM,4,2               ## @ad1843_DA1SM
	.comm	_ad1843_DA1F,4,2                ## @ad1843_DA1F
	.no_dead_strip	_ad1843_setup_dac
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.ad1843_setup_dac
l_switch.table.ad1843_setup_dac:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.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_setup_dac
_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	x22, x3
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x2, x20
	mov	x3, x21
	mov	x4, x22
	bl	_DBGEV
	sub	w8, w21, #128
	cmp	w8, #5
	b.hs	LBB0_2
; %bb.1:
Lloh2:
	adrp	x9, l_switch.table.ad1843_setup_dac@PAGE
Lloh3:
	add	x9, x9, l_switch.table.ad1843_setup_dac@PAGEOFF
	ldr	w21, [x9, w8, sxtw #2]
	cmp	w22, #2
	b.ne	LBB0_3
	b	LBB0_5
LBB0_2:
	mov	w0, #0
	bl	_ASSERT
	mov	w21, #0
	cmp	w22, #2
	b.eq	LBB0_5
LBB0_3:
	cmp	w22, #1
	b.eq	LBB0_6
; %bb.4:
	mov	w0, #0
	bl	_ASSERT
LBB0_5:
	mov	w22, #0
LBB0_6:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x22
	mov	x2, x21
	bl	_DBGPV
	sub	w8, w20, #4000
	mov	w9, #45001
	cmp	w8, w9
	cset	w0, lo
	bl	_ASSERT
Lloh6:
	adrp	x1, _ad1843_C1C@GOTPAGE
Lloh7:
	ldr	x1, [x1, _ad1843_C1C@GOTPAGEOFF]
	mov	x0, x19
	mov	x2, 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]
	mov	x0, x19
	mov	w1, #2
	mov	x3, x22
	mov	x5, 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	_ad1843_write_multi
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(lith=0x%p, framerate=%d, fmt=%d, channels=%d)\n"

l_.str.1:                               ; @.str.1
	.asciz	"ad_mode = %d, ad_fmt = %d\n"

	.comm	_ad1843_C1C,4,2                 ; @ad1843_C1C
	.comm	_ad1843_DA1SM,4,2               ; @ad1843_DA1SM
	.comm	_ad1843_DA1F,4,2                ; @ad1843_DA1F
	.no_dead_strip	_ad1843_setup_dac
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.ad1843_setup_dac
l_switch.table.ad1843_setup_dac:
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	3                               ; 0x3

.subsections_via_symbols
