	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function li_setup_dma
_li_setup_dma:                          ## @li_setup_dma
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r10d
	movl	%r8d, %r9d
	movq	%rcx, %r14
	movq	%rdx, %rbx
	movq	%rsi, %r13
	movq	%rdi, %r12
	movl	16(%rbp), %r15d
	movl	24(%rbp), %eax
	subq	$8, %rsp
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	movq	%rbx, %rcx
	movq	%r14, %r8
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
                                        ## kill: def $r9d killed $r9d killed $r9
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	pushq	%rax
	pushq	%r15
	movq	%r10, -64(%rbp)                 ## 8-byte Spill
	pushq	%r10
	callq	_DBGEV
	addq	$32, %rsp
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movl	16(%r13), %esi
	movq	_LI_CCTL_RESET@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_li_writel
	leal	-1(%r15), %eax
	xorl	%edi, %edi
	cmpl	$2, %eax
	setb	%dil
	callq	_ASSERT
	cmpl	$2, %r15d
	jne	LBB0_1
## %bb.2:
	movq	_LI_CCFG_MODE_STEREO@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_LI_CCFG_MODE_MONO@GOTPCREL(%rip), %rax
LBB0_3:
	movq	(%rax), %r13
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	leal	-1(%rbx), %eax
	xorl	%edi, %edi
	cmpl	$2, %eax
	setb	%dil
	callq	_ASSERT
	cmpl	$2, %ebx
	jne	LBB0_4
## %bb.5:
	movq	_LI_CCFG_FMT_16BIT@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_LI_CCFG_FMT_8BIT@GOTPCREL(%rip), %rax
LBB0_6:
	orq	(%rax), %r13
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, 32(%r12)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 24(%r12)
	xorl	%edi, %edi
	testb	%r14b, %r14b
	sete	%dil
	callq	_ASSERT
	shrq	$8, %r14
	orq	$536870912, %r14                ## imm = 0x20000000
	movq	%r14, (%r12)
	movq	_LI_CCFG_LOCK@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	notq	%rbx
	andq	8(%r12), %rbx
	movq	(%r15), %rdi
	movq	_LI_CCFG_SLOT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SHIFT_FIELD
	orq	%rbx, %rax
	orq	%r13, %rax
	orq	8(%r15), %rax
	movq	%rax, 8(%r12)
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	leal	-6(%rcx), %eax
	movslq	%eax, %r13
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	subl	$13, %eax
	setne	%bl
	negl	%eax
	movslq	%eax, %r14
	addl	$-8, %ecx
	xorl	%edi, %edi
	cmpl	$6, %ecx
	setb	%dil
	callq	_ASSERT
	cmpl	$8, %r14d
	setb	%al
	andb	%bl, %al
	movzbl	%al, %edi
	callq	_ASSERT
	movq	_LI_CCTL_RESET@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	notq	%rbx
	andq	16(%r12), %rbx
	movq	_LI_CCTL_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_SHIFT_FIELD
	movq	%rax, %r13
	orq	%rbx, %r13
	movq	_LI_CCTL_DMA_ENABLE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	notq	%rbx
	andq	16(%r12), %rbx
	movq	_LI_CCTL_TMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_SHIFT_FIELD
	movq	%rax, %r14
	orq	%rbx, %r14
	orq	%r13, %r14
	movq	_LI_CCTL_TPTR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	callq	_SHIFT_FIELD
	orq	%r14, %rax
	movq	%rax, 16(%r12)
	movl	24(%r15), %esi
	movq	(%r12), %rdx
	leaq	L_.str.1(%rip), %rdi
	callq	_DBGPV
	movl	20(%r15), %esi
	movq	8(%r12), %rdx
	leaq	L_.str.2(%rip), %rdi
	callq	_DBGPV
	movl	16(%r15), %esi
	movq	16(%r12), %rdx
	leaq	L_.str.3(%rip), %rdi
	callq	_DBGPV
	movl	24(%r15), %esi
	movq	(%r12), %rdx
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_li_writel
	movl	20(%r15), %esi
	movq	8(%r12), %rdx
	movq	%rbx, %rdi
	callq	_li_writel
	movl	16(%r15), %esi
	movq	16(%r12), %rdx
	movq	%rbx, %rdi
	callq	_li_writel
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DBGRV                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(chan=0x%p, desc=0x%p, lith=0x%p, buffer_paddr=0x%lx, bufshift=%d, fragshift=%d, channels=%d, sampsize=%d)\n"

	.comm	_LI_CCTL_RESET,8,3              ## @LI_CCTL_RESET
	.comm	_LI_CCFG_MODE_STEREO,8,3        ## @LI_CCFG_MODE_STEREO
	.comm	_LI_CCFG_MODE_MONO,8,3          ## @LI_CCFG_MODE_MONO
	.comm	_LI_CCFG_FMT_16BIT,8,3          ## @LI_CCFG_FMT_16BIT
	.comm	_LI_CCFG_FMT_8BIT,8,3           ## @LI_CCFG_FMT_8BIT
	.comm	_LI_CCFG_LOCK,8,3               ## @LI_CCFG_LOCK
	.comm	_LI_CCFG_SLOT,4,2               ## @LI_CCFG_SLOT
	.comm	_LI_CCTL_SIZE,4,2               ## @LI_CCTL_SIZE
	.comm	_LI_CCTL_DMA_ENABLE,8,3         ## @LI_CCTL_DMA_ENABLE
	.comm	_LI_CCTL_TMASK,4,2              ## @LI_CCTL_TMASK
	.comm	_LI_CCTL_TPTR,4,2               ## @LI_CCTL_TPTR
L_.str.1:                               ## @.str.1
	.asciz	"basereg 0x%x = 0x%lx\n"

L_.str.2:                               ## @.str.2
	.asciz	"cfgreg 0x%x = 0x%lx\n"

L_.str.3:                               ## @.str.3
	.asciz	"ctlreg 0x%x = 0x%lx\n"

	.no_dead_strip	_li_setup_dma
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function li_setup_dma
_li_setup_dma:                          ; @li_setup_dma
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x25, x7
	mov	x26, x6
	mov	x22, x5
	mov	x23, x4
	mov	x24, x3
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	str	w7, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x21
	mov	x3, x19
	mov	x4, x24
	mov	x5, x23
	mov	x6, x22
	mov	x7, x26
	bl	_DBGEV
	ldr	w1, [x21, #16]
Lloh2:
	adrp	x27, _LI_CCTL_RESET@GOTPAGE
Lloh3:
	ldr	x27, [x27, _LI_CCTL_RESET@GOTPAGEOFF]
	ldr	x2, [x27]
	mov	x0, x19
	bl	_li_writel
	sub	w8, w26, #1
	cmp	w8, #2
	cset	w0, lo
	bl	_ASSERT
Lloh4:
	adrp	x8, _LI_CCFG_MODE_STEREO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _LI_CCFG_MODE_STEREO@GOTPAGEOFF]
Lloh6:
	adrp	x9, _LI_CCFG_MODE_MONO@GOTPAGE
Lloh7:
	ldr	x9, [x9, _LI_CCFG_MODE_MONO@GOTPAGEOFF]
	cmp	w26, #2
	csel	x8, x8, x9, eq
	ldr	x26, [x8]
	sub	w8, w25, #1
	cmp	w8, #2
	cset	w0, lo
	bl	_ASSERT
Lloh8:
	adrp	x8, _LI_CCFG_FMT_16BIT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LI_CCFG_FMT_16BIT@GOTPAGEOFF]
Lloh10:
	adrp	x9, _LI_CCFG_FMT_8BIT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _LI_CCFG_FMT_8BIT@GOTPAGEOFF]
	cmp	w25, #2
	csel	x8, x8, x9, eq
	ldr	x25, [x8]
	stp	x19, x21, [x20, #24]
	tst	x24, #0xff
	cset	w0, eq
	bl	_ASSERT
	lsr	x8, x24, #8
	orr	x8, x8, #0x20000000
	str	x8, [x20]
	ldr	x8, [x20, #8]
Lloh12:
	adrp	x9, _LI_CCFG_LOCK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _LI_CCFG_LOCK@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	bic	x24, x8, x9
	ldr	x0, [x21]
Lloh15:
	adrp	x8, _LI_CCFG_SLOT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _LI_CCFG_SLOT@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_SHIFT_FIELD
	ldr	x8, [x21, #8]
	orr	x9, x25, x26
	orr	x9, x9, x24
	orr	x9, x9, x0
	orr	x8, x9, x8
	str	x8, [x20, #8]
	sub	w8, w23, #6
	sxtw	x24, w8
	mov	w8, #13
	sub	w26, w8, w22
	sxtw	x25, w26
	sub	w8, w23, #8
	cmp	w8, #6
	cset	w0, lo
	bl	_ASSERT
	cmp	w22, #13
	ccmp	w26, #8, #2, ne
	cset	w0, lo
	bl	_ASSERT
	ldr	x8, [x20, #16]
	ldr	x9, [x27]
	bic	x22, x8, x9
Lloh18:
	adrp	x8, _LI_CCTL_SIZE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _LI_CCTL_SIZE@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_SHIFT_FIELD
	orr	x8, x0, x22
	ldr	x9, [x20, #16]
Lloh21:
	adrp	x10, _LI_CCTL_DMA_ENABLE@GOTPAGE
Lloh22:
	ldr	x10, [x10, _LI_CCTL_DMA_ENABLE@GOTPAGEOFF]
Lloh23:
	ldr	x10, [x10]
	bic	x9, x9, x10
	orr	x22, x8, x9
Lloh24:
	adrp	x8, _LI_CCTL_TMASK@GOTPAGE
Lloh25:
	ldr	x8, [x8, _LI_CCTL_TMASK@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x25
	bl	_SHIFT_FIELD
	orr	x22, x22, x0
Lloh27:
	adrp	x8, _LI_CCTL_TPTR@GOTPAGE
Lloh28:
	ldr	x8, [x8, _LI_CCTL_TPTR@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, #0
	bl	_SHIFT_FIELD
	orr	x8, x22, x0
	str	x8, [x20, #16]
	ldr	w1, [x21, #24]
	ldr	x2, [x20]
Lloh30:
	adrp	x0, l_.str.1@PAGE
Lloh31:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DBGPV
	ldr	w1, [x21, #20]
	ldr	x2, [x20, #8]
Lloh32:
	adrp	x0, l_.str.2@PAGE
Lloh33:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DBGPV
	ldr	w1, [x21, #16]
	ldr	x2, [x20, #16]
Lloh34:
	adrp	x0, l_.str.3@PAGE
Lloh35:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_DBGPV
	ldr	w1, [x21, #24]
	ldr	x2, [x20]
	mov	x0, x19
	bl	_li_writel
	ldr	w1, [x21, #20]
	ldr	x2, [x20, #8]
	mov	x0, x19
	bl	_li_writel
	ldr	w1, [x21, #16]
	ldr	x2, [x20, #16]
	mov	x0, x19
	bl	_li_writel
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_DBGRV
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(chan=0x%p, desc=0x%p, lith=0x%p, buffer_paddr=0x%lx, bufshift=%d, fragshift=%d, channels=%d, sampsize=%d)\n"

	.comm	_LI_CCTL_RESET,8,3              ; @LI_CCTL_RESET
	.comm	_LI_CCFG_MODE_STEREO,8,3        ; @LI_CCFG_MODE_STEREO
	.comm	_LI_CCFG_MODE_MONO,8,3          ; @LI_CCFG_MODE_MONO
	.comm	_LI_CCFG_FMT_16BIT,8,3          ; @LI_CCFG_FMT_16BIT
	.comm	_LI_CCFG_FMT_8BIT,8,3           ; @LI_CCFG_FMT_8BIT
	.comm	_LI_CCFG_LOCK,8,3               ; @LI_CCFG_LOCK
	.comm	_LI_CCFG_SLOT,4,2               ; @LI_CCFG_SLOT
	.comm	_LI_CCTL_SIZE,4,2               ; @LI_CCTL_SIZE
	.comm	_LI_CCTL_DMA_ENABLE,8,3         ; @LI_CCTL_DMA_ENABLE
	.comm	_LI_CCTL_TMASK,4,2              ; @LI_CCTL_TMASK
	.comm	_LI_CCTL_TPTR,4,2               ; @LI_CCTL_TPTR
l_.str.1:                               ; @.str.1
	.asciz	"basereg 0x%x = 0x%lx\n"

l_.str.2:                               ; @.str.2
	.asciz	"cfgreg 0x%x = 0x%lx\n"

l_.str.3:                               ; @.str.3
	.asciz	"ctlreg 0x%x = 0x%lx\n"

	.no_dead_strip	_li_setup_dma
.subsections_via_symbols
