	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcm_setup
_pcm_setup:                             ## @pcm_setup
	.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
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %r14
	testq	%rsi, %rsi
	movq	%rdx, %r12
	cmovneq	%rsi, %r12
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	movq	%r15, %rcx
	callq	_DBGEV
	xorl	%edi, %edi
	testq	%r12, %r12
	setne	%dil
	callq	_ASSERT
	xorl	%ebx, %ebx
	cmpq	$0, 128(%r12)
	jne	LBB0_23
## %bb.1:
	movl	(%r12), %eax
	addl	$-128, %eax
	cmpl	$5, %eax
	jae	LBB0_2
## %bb.3:
	cltq
	leaq	l_switch.table.pcm_setup(%rip), %rcx
	movl	(%rcx,%rax,4), %ebx
	leaq	l_switch.table.pcm_setup.5(%rip), %rcx
	movl	(%rcx,%rax,4), %eax
	jmp	LBB0_4
LBB0_2:
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_ASSERT
	xorl	%eax, %eax
LBB0_4:
	movl	%eax, 4(%r12)
	movl	%ebx, 8(%r12)
	imull	16(%r12), %eax
	movl	%eax, 12(%r12)
	movl	24(%r12), %ecx
	movl	28(%r12), %eax
	subl	%eax, %ecx
	movl	%ecx, 20(%r12)
	movl	$1, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	movl	%edx, 32(%r12)
	movl	40(%r12), %esi
	movl	%eax, %ecx
	shll	%cl, %esi
	movl	%esi, 36(%r12)
	movq	_MIN_FRAGSIZE@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	(%rax), %edx
	setge	%dil
	callq	_ASSERT
	movl	32(%r12), %eax
	movq	_MAX_FRAGSIZE@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpl	(%rcx), %eax
	setle	%dil
	callq	_ASSERT
	movl	32(%r12), %edi
	movl	36(%r12), %ebx
	callq	_MIN_FRAGCOUNT
	xorl	%edi, %edi
	cmpl	%eax, %ebx
	setge	%dil
	callq	_ASSERT
	movl	32(%r12), %edi
	movl	36(%r12), %ebx
	callq	_MAX_FRAGCOUNT
	xorl	%edi, %edi
	cmpl	%eax, %ebx
	setle	%dil
	callq	_ASSERT
	testq	%r13, %r13
	je	LBB0_6
## %bb.5:
	movl	48(%r12), %esi
	movq	_DMACHUNK_SIZE@GOTPCREL(%rip), %rax
	subl	(%rax), %esi
	movl	%esi, 44(%r13)
	movb	20(%r12), %cl
	sarl	%cl, %esi
	movl	36(%r12), %eax
	subl	%esi, %eax
	cmpl	$3, %eax
	movl	$2, %edx
	cmovgel	%eax, %edx
	movl	32(%r12), %eax
	imull	%edx, %eax
	movl	%eax, 56(%r13)
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_DBGPV
	movl	44(%r13), %esi
	movl	56(%r13), %edx
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_DBGPV
LBB0_6:
	testq	%r15, %r15
	je	LBB0_8
## %bb.7:
	movl	32(%r12), %eax
	imull	36(%r12), %eax
	movl	48(%r12), %ebx
	movq	_DMACHUNK_SIZE@GOTPCREL(%rip), %rcx
	subl	(%rcx), %ebx
	cmpl	%ebx, %eax
	cmovll	%eax, %ebx
	movl	%ebx, 44(%r15)
	movb	20(%r12), %cl
	sarl	%cl, %ebx
	leaq	L_.str.3(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_DBGPV
	movl	36(%r12), %eax
	subl	%ebx, %eax
	cmpl	$3, %eax
	movl	$2, %edx
	cmovgel	%eax, %edx
	movl	32(%r12), %eax
	imull	%edx, %eax
	movl	%eax, 56(%r15)
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_DBGPV
	movl	44(%r15), %esi
	movl	56(%r15), %edx
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_DBGPV
LBB0_8:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 104(%r12)
	movq	$0, 120(%r12)
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	addl	56(%r12), %edi
	callq	_vmalloc
	movq	%rax, 128(%r12)
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	testq	%r13, %r13
	je	LBB0_15
## %bb.11:
	testq	%r15, %r15
	je	LBB0_15
## %bb.12:
	xorl	%edi, %edi
	cmpq	%r13, %r12
	sete	%dil
	callq	_ASSERT
	xorl	%edi, %edi
	cmpq	$0, 128(%r15)
	sete	%dil
	callq	_ASSERT
	movl	(%rbx), %edi
	addl	56(%r12), %edi
	callq	_vmalloc
	movq	%rax, 128(%r15)
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	movl	4(%r13), %eax
	movl	%eax, 4(%r15)
	movl	8(%r13), %eax
	movl	%eax, 8(%r15)
	movl	12(%r13), %eax
	movl	%eax, 12(%r15)
	movl	20(%r13), %eax
	movl	%eax, 20(%r15)
	movl	32(%r13), %eax
	movl	%eax, 32(%r15)
	movl	36(%r13), %eax
	movl	%eax, 36(%r15)
	movl	56(%r13), %eax
	movl	%eax, 56(%r15)
	movl	44(%r13), %eax
	movl	%eax, 44(%r15)
	movq	120(%r13), %rax
	movq	%rax, 120(%r15)
	movups	104(%r13), %xmm0
	movups	%xmm0, 104(%r15)
LBB0_15:
	testq	%r13, %r13
	je	LBB0_18
## %bb.16:
	movl	$0, 60(%r13)
	movl	56(%r13), %eax
	movl	%eax, 64(%r13)
	movq	_SW_RUN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 88(%r13)
	leaq	80(%r13), %r12
	movl	76(%r13), %ecx
	movq	_HWBUF_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	20(%r13), %r9d
	movl	4(%r13), %eax
	movl	16(%r13), %ebx
	movq	_li_comm1@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	movq	%r14, %rdx
	pushq	%rax
	pushq	%rbx
	callq	_li_setup_dma
	addq	$16, %rsp
	movl	72(%r13), %esi
	movl	(%r13), %edx
	movl	16(%r13), %ecx
	movq	%r14, %rdi
	callq	_ad1843_setup_adc
	movq	_READ_INTR_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_li_enable_interrupts
	movq	_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 68(%r13)
	jne	LBB0_18
## %bb.17:
	movq	_HW_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 100(%r13)
	movq	%r12, %rdi
	callq	_li_activate_dma
	leaq	-48(%rbp), %rsi
	movq	%r12, %rdi
	callq	_li_read_USTMSC
	movl	-48(%rbp), %eax
	movl	%eax, 96(%r13)
LBB0_18:
	testq	%r15, %r15
	je	LBB0_22
## %bb.19:
	movl	56(%r15), %eax
	cmpl	%eax, 44(%r15)
	jle	LBB0_21
## %bb.20:
	movl	%eax, 44(%r15)
LBB0_21:
	movq	_ERFLOWN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, 68(%r15)
	movl	%eax, 60(%r15)
	movl	$0, 64(%r15)
	movq	_SW_RUN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 88(%r15)
	leaq	80(%r15), %rdi
	movl	76(%r15), %ecx
	movq	_HWBUF_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	20(%r15), %r9d
	movl	4(%r15), %eax
	movl	16(%r15), %ebx
	movq	_li_comm2@GOTPCREL(%rip), %rsi
	movq	%r14, %rdx
	pushq	%rax
	pushq	%rbx
	callq	_li_setup_dma
	addq	$16, %rsp
	movl	72(%r15), %esi
	movl	(%r15), %edx
	movl	16(%r15), %ecx
	movq	%r14, %rdi
	callq	_ad1843_setup_dac
	movq	_WRITE_INTR_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_li_enable_interrupts
LBB0_22:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DBGRV
	jmp	LBB0_23
LBB0_13:
	movq	128(%r12), %rdi
	callq	_vfree
	movq	$0, 128(%r12)
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_23:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(devc=0x%p, rport=0x%p, wport=0x%p)\n"

	.comm	_MIN_FRAGSIZE,4,2               ## @MIN_FRAGSIZE
	.comm	_MAX_FRAGSIZE,4,2               ## @MAX_FRAGSIZE
	.comm	_DMACHUNK_SIZE,8,3              ## @DMACHUNK_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"hwfrags = %d, swfrags = %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"read hwbuf_max = %d, swbuf_size = %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"hwfrags = %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"write hwbuf_max = %d, swbuf_size = %d\n"

	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_SW_RUN,8,3                     ## @SW_RUN
	.comm	_li_comm1,4,2                   ## @li_comm1
	.comm	_HWBUF_SHIFT,4,2                ## @HWBUF_SHIFT
	.comm	_READ_INTR_MASK,4,2             ## @READ_INTR_MASK
	.comm	_DISABLED,4,2                   ## @DISABLED
	.comm	_HW_RUNNING,4,2                 ## @HW_RUNNING
	.comm	_ERFLOWN,4,2                    ## @ERFLOWN
	.comm	_li_comm2,4,2                   ## @li_comm2
	.comm	_WRITE_INTR_MASK,4,2            ## @WRITE_INTR_MASK
	.no_dead_strip	_pcm_setup
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.pcm_setup
l_switch.table.pcm_setup:
	.long	2155905152                      ## 0x80808080
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	2139062143                      ## 0x7f7f7f7f
	.long	1431655765                      ## 0x55555555

	.p2align	2                               ## @switch.table.pcm_setup.5
l_switch.table.pcm_setup.5:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	1                               ## 0x1
	.long	1                               ## 0x1

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcm_setup
_pcm_setup:                             ; @pcm_setup
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	cmp	x1, #0
	csel	x23, x1, x2, ne
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x2, x21
	mov	x3, x20
	bl	_DBGEV
	cmp	x23, #0
	cset	w0, ne
	bl	_ASSERT
	ldr	x8, [x23, #128]
	cbnz	x8, LBB0_21
; %bb.1:
	ldr	w8, [x23]
	sub	w8, w8, #128
	cmp	w8, #5
	b.hs	LBB0_3
; %bb.2:
	sbfiz	x9, x8, #2, #32
Lloh2:
	adrp	x8, l_switch.table.pcm_setup@PAGE
Lloh3:
	add	x8, x8, l_switch.table.pcm_setup@PAGEOFF
	ldr	w8, [x8, x9]
Lloh4:
	adrp	x10, l_switch.table.pcm_setup.5@PAGE
Lloh5:
	add	x10, x10, l_switch.table.pcm_setup.5@PAGEOFF
	ldr	w9, [x10, x9]
	b	LBB0_4
LBB0_3:
	mov	w0, #0
	bl	_ASSERT
	mov	w8, #0
	mov	w9, #0
LBB0_4:
	stp	w9, w8, [x23, #4]
	ldr	w8, [x23, #16]
	mul	w8, w8, w9
	str	w8, [x23, #12]
	ldp	w8, w9, [x23, #24]
	sub	w8, w8, w9
	str	w8, [x23, #20]
	mov	w10, #1
	lsl	w8, w10, w8
	ldr	w10, [x23, #40]
	lsl	w9, w10, w9
	stp	w8, w9, [x23, #32]
Lloh6:
	adrp	x9, _MIN_FRAGSIZE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MIN_FRAGSIZE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w0, ge
	bl	_ASSERT
	ldr	w8, [x23, #32]
Lloh9:
	adrp	x9, _MAX_FRAGSIZE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MAX_FRAGSIZE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w0, le
	bl	_ASSERT
	ldp	w0, w22, [x23, #32]
	bl	_MIN_FRAGCOUNT
	cmp	w22, w0
	cset	w0, ge
	bl	_ASSERT
	ldp	w0, w22, [x23, #32]
	bl	_MAX_FRAGCOUNT
	cmp	w22, w0
	cset	w0, le
	bl	_ASSERT
Lloh12:
	adrp	x22, _DMACHUNK_SIZE@GOTPAGE
Lloh13:
	ldr	x22, [x22, _DMACHUNK_SIZE@GOTPAGEOFF]
	cbz	x21, LBB0_6
; %bb.5:
	ldr	w8, [x23, #48]
	ldr	w9, [x22]
	sub	w8, w8, w9
	str	w8, [x21, #44]
	ldr	w9, [x23, #20]
	asr	w1, w8, w9
	ldp	w9, w8, [x23, #32]
	sub	w8, w8, w1
	mov	w10, #2
	cmp	w8, #2
	csel	w8, w8, w10, gt
	mul	w9, w8, w9
	str	w9, [x21, #56]
	str	x8, [sp]
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DBGPV
	ldr	w1, [x21, #44]
	ldr	w8, [x21, #56]
	str	x8, [sp]
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DBGPV
LBB0_6:
	cbz	x20, LBB0_8
; %bb.7:
	ldp	w9, w8, [x23, #32]
	mul	w8, w9, w8
	ldr	w9, [x23, #48]
	ldr	w10, [x22]
	sub	w9, w9, w10
	cmp	w8, w9
	csel	w8, w8, w9, lt
	str	w8, [x20, #44]
	ldr	w9, [x23, #20]
	asr	w22, w8, w9
Lloh18:
	adrp	x0, l_.str.3@PAGE
Lloh19:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x22
	bl	_DBGPV
	ldp	w9, w8, [x23, #32]
	sub	w8, w8, w22
	mov	w10, #2
	cmp	w8, #2
	csel	w8, w8, w10, gt
	mul	w9, w8, w9
	str	w9, [x20, #56]
	str	x8, [sp]
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x22
	bl	_DBGPV
	ldr	w1, [x20, #44]
	ldr	w8, [x20, #56]
	str	x8, [sp]
Lloh22:
	adrp	x0, l_.str.4@PAGE
Lloh23:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_DBGPV
LBB0_8:
	stp	xzr, xzr, [x23, #104]
	str	xzr, [x23, #120]
	ldr	w8, [x23, #56]
Lloh24:
	adrp	x22, _PAGE_SIZE@GOTPAGE
Lloh25:
	ldr	x22, [x22, _PAGE_SIZE@GOTPAGEOFF]
	ldr	w9, [x22]
	add	w0, w9, w8
	bl	_vmalloc
	str	x0, [x23, #128]
	cbz	x0, LBB0_24
; %bb.9:
	cbz	x21, LBB0_13
; %bb.10:
	cbz	x20, LBB0_13
; %bb.11:
	cmp	x23, x21
	cset	w0, eq
	bl	_ASSERT
	ldr	x8, [x20, #128]
	cmp	x8, #0
	cset	w0, eq
	bl	_ASSERT
	ldr	w8, [x23, #56]
	ldr	w9, [x22]
	add	w0, w9, w8
	bl	_vmalloc
	str	x0, [x20, #128]
	cbz	x0, LBB0_23
; %bb.12:
	ldur	d0, [x21, #4]
	stur	d0, [x20, #4]
	ldr	w8, [x21, #12]
	str	w8, [x20, #12]
	ldr	w8, [x21, #20]
	str	w8, [x20, #20]
	ldr	d0, [x21, #32]
	str	d0, [x20, #32]
	ldr	w8, [x21, #56]
	str	w8, [x20, #56]
	ldr	w8, [x21, #44]
	str	w8, [x20, #44]
	ldr	x8, [x21, #120]
	str	x8, [x20, #120]
	ldur	q0, [x21, #104]
	stur	q0, [x20, #104]
LBB0_13:
Lloh26:
	adrp	x24, _SW_RUN@GOTPAGE
Lloh27:
	ldr	x24, [x24, _SW_RUN@GOTPAGEOFF]
Lloh28:
	adrp	x23, _HWBUF_SHIFT@GOTPAGE
Lloh29:
	ldr	x23, [x23, _HWBUF_SHIFT@GOTPAGEOFF]
	cbz	x21, LBB0_16
; %bb.14:
	ldr	w8, [x21, #56]
	stp	wzr, w8, [x21, #60]
	ldr	x8, [x24]
	str	x8, [x21, #88]
	add	x22, x21, #80
	ldr	w3, [x21, #76]
	ldr	w4, [x23]
	ldp	w6, w5, [x21, #16]
	ldr	w7, [x21, #4]
Lloh30:
	adrp	x1, _li_comm1@GOTPAGE
Lloh31:
	ldr	x1, [x1, _li_comm1@GOTPAGEOFF]
	mov	x0, x22
	mov	x2, x19
	bl	_li_setup_dma
	ldr	w1, [x21, #72]
	ldr	w2, [x21]
	ldr	w3, [x21, #16]
	mov	x0, x19
	bl	_ad1843_setup_adc
Lloh32:
	adrp	x8, _READ_INTR_MASK@GOTPAGE
Lloh33:
	ldr	x8, [x8, _READ_INTR_MASK@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_li_enable_interrupts
	ldr	w8, [x21, #68]
Lloh35:
	adrp	x9, _DISABLED@GOTPAGE
Lloh36:
	ldr	x9, [x9, _DISABLED@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_16
; %bb.15:
Lloh38:
	adrp	x8, _HW_RUNNING@GOTPAGE
Lloh39:
	ldr	x8, [x8, _HW_RUNNING@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	str	w8, [x21, #100]
	mov	x0, x22
	bl	_li_activate_dma
	add	x1, sp, #8
	mov	x0, x22
	bl	_li_read_USTMSC
	ldr	w8, [sp, #8]
	str	w8, [x21, #96]
LBB0_16:
	cbz	x20, LBB0_20
; %bb.17:
	ldr	w9, [x20, #44]
	ldr	w8, [x20, #56]
	cmp	w9, w8
	b.le	LBB0_19
; %bb.18:
	str	w8, [x20, #44]
LBB0_19:
Lloh41:
	adrp	x9, _ERFLOWN@GOTPAGE
Lloh42:
	ldr	x9, [x9, _ERFLOWN@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
	ldr	w10, [x20, #68]
	bic	w9, w10, w9
	stp	wzr, w9, [x20, #64]
	str	w8, [x20, #60]
	ldr	x8, [x24]
	str	x8, [x20, #88]
	add	x0, x20, #80
	ldr	w3, [x20, #76]
	ldr	w4, [x23]
	ldp	w6, w5, [x20, #16]
	ldr	w7, [x20, #4]
Lloh44:
	adrp	x1, _li_comm2@GOTPAGE
Lloh45:
	ldr	x1, [x1, _li_comm2@GOTPAGEOFF]
	mov	x2, x19
	bl	_li_setup_dma
	ldr	w1, [x20, #72]
	ldr	w2, [x20]
	ldr	w3, [x20, #16]
	mov	x0, x19
	bl	_ad1843_setup_dac
Lloh46:
	adrp	x8, _WRITE_INTR_MASK@GOTPAGE
Lloh47:
	ldr	x8, [x8, _WRITE_INTR_MASK@GOTPAGEOFF]
Lloh48:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_li_enable_interrupts
LBB0_20:
	bl	_DBGRV
LBB0_21:
	mov	w0, #0
LBB0_22:
	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
	ret
LBB0_23:
	ldr	x0, [x23, #128]
	bl	_vfree
	str	xzr, [x23, #128]
LBB0_24:
Lloh49:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh50:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh51:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_22
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(devc=0x%p, rport=0x%p, wport=0x%p)\n"

	.comm	_MIN_FRAGSIZE,4,2               ; @MIN_FRAGSIZE
	.comm	_MAX_FRAGSIZE,4,2               ; @MAX_FRAGSIZE
	.comm	_DMACHUNK_SIZE,8,3              ; @DMACHUNK_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"hwfrags = %d, swfrags = %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"read hwbuf_max = %d, swbuf_size = %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"hwfrags = %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"write hwbuf_max = %d, swbuf_size = %d\n"

	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_SW_RUN,8,3                     ; @SW_RUN
	.comm	_li_comm1,4,2                   ; @li_comm1
	.comm	_HWBUF_SHIFT,4,2                ; @HWBUF_SHIFT
	.comm	_READ_INTR_MASK,4,2             ; @READ_INTR_MASK
	.comm	_DISABLED,4,2                   ; @DISABLED
	.comm	_HW_RUNNING,4,2                 ; @HW_RUNNING
	.comm	_ERFLOWN,4,2                    ; @ERFLOWN
	.comm	_li_comm2,4,2                   ; @li_comm2
	.comm	_WRITE_INTR_MASK,4,2            ; @WRITE_INTR_MASK
	.no_dead_strip	_pcm_setup
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.pcm_setup
l_switch.table.pcm_setup:
	.long	2155905152                      ; 0x80808080
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	2139062143                      ; 0x7f7f7f7f
	.long	1431655765                      ; 0x55555555

	.p2align	2                               ; @switch.table.pcm_setup.5
l_switch.table.pcm_setup.5:
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	1                               ; 0x1
	.long	1                               ; 0x1

.subsections_via_symbols
