	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcm_output
_pcm_output:                            ## @pcm_output
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	%rdi, %r15
	movl	(%rdi), %eax
	movl	%eax, -88(%rbp)                 ## 4-byte Spill
	movl	4(%rdi), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	8(%rdi), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	12(%rdi), %r12d
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	movl	%r14d, %ecx
	callq	_DBGEV
	leaq	60(%r15), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.1:
	movq	_ERFLOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%r15)
LBB0_2:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	___swb_inc_u
	movl	16(%r15), %eax
	movq	_HW_BUSY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_5
## %bb.3:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_4
LBB0_5:
	movq	_DISABLED@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_7
## %bb.6:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	leaq	L_.str.2(%rip), %rdi
LBB0_4:
	xorl	%eax, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DBGPV                          ## TAILCALL
LBB0_7:
	orl	%eax, %ecx
	movl	%ecx, 16(%r15)
	leaq	80(%r15), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	%r12d, -80(%rbp)                ## 4-byte Spill
	movl	%r12d, %r13d
	negl	%r13d
	leaq	64(%r15), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	%r15, -120(%rbp)                ## 8-byte Spill
	movl	%r13d, -76(%rbp)                ## 4-byte Spill
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	___swb_inc_i
	addl	%r13d, 48(%r15)
	movl	-92(%rbp), %eax                 ## 4-byte Reload
	addl	%eax, 56(%r15)
	movl	%r14d, %edi
	callq	_ASSERT
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	callq	_wake_up
	movl	-76(%rbp), %r13d                ## 4-byte Reload
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r15), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	32(%r15), %r14
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_li_read_hwptr
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_li_read_swptr
	movl	%eax, %esi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, %eax
	subl	%r12d, %eax
	movl	%ecx, %r12d
	addl	%esi, %eax
	cltd
	idivl	%ecx
	movl	40(%r15), %ebx
	andl	%r13d, %ebx
	je	LBB0_25
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	_SW_RUN@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_25
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	16(%r15), %eax
	movq	_ERFLOWN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, 16(%r15)
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	_SW_INITIAL@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	je	LBB0_30
## %bb.26:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_SW_OFF@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	je	LBB0_30
## %bb.27:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_SW_DRAIN@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_12
## %bb.28:                              ##   in Loop: Header=BB0_8 Depth=1
	testl	%ebx, %ebx
	jne	LBB0_12
## %bb.29:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_ERFLOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%r15)
	jne	LBB0_30
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	testl	%ebx, %ebx
	je	LBB0_33
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	-88(%rbp), %r14d                ## 4-byte Reload
	subl	%edx, %r14d
	andl	%r13d, %r14d
	je	LBB0_33
## %bb.14:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	%esi, -64(%rbp)                 ## 4-byte Spill
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	movl	%r14d, %r13d
	cmpl	%ebx, %r14d
	jl	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	%ebx, %r13d
LBB0_16:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	44(%r15), %r15d
	subl	-64(%rbp), %r12d                ## 4-byte Folded Reload
	cmpl	%r12d, %r13d
	jl	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	%r12d, %r13d
LBB0_18:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	subl	%r15d, %eax
	cmpl	%eax, %r13d
	jl	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	%eax, %r13d
LBB0_20:                                ##   in Loop: Header=BB0_8 Depth=1
	xorl	%edi, %edi
	testl	%r13d, %r13d
	setg	%dil
	callq	_ASSERT
	movl	%r13d, %eax
	cltd
	movl	-80(%rbp), %ecx                 ## 4-byte Reload
	idivl	%ecx
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	testl	%edx, %edx
	movl	-64(%rbp), %r12d                ## 4-byte Reload
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_8 Depth=1
	leaq	L_.str.4(%rip), %rdi
	movl	%r13d, %esi
	movl	%edx, -84(%rbp)                 ## 4-byte Spill
	movl	%ecx, %edx
	xorl	%eax, %eax
	callq	_DBGP
	leaq	L_.str.5(%rip), %rdi
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_DBGP
	leaq	L_.str.6(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_DBGP
	leaq	L_.str.7(%rip), %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_DBGP
	leaq	L_.str.8(%rip), %rdi
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_DBGP
	movl	-84(%rbp), %edx                 ## 4-byte Reload
LBB0_22:                                ##   in Loop: Header=BB0_8 Depth=1
	xorl	%r14d, %r14d
	testl	%edx, %edx
	sete	%r14b
	movl	%r14d, %edi
	callq	_ASSERT
	leal	(%r15,%r13), %edx
	movl	%r12d, %ebx
	addl	%r13d, %ebx
	leaq	L_.str.9(%rip), %rdi
	movl	%r15d, %esi
	movl	%r12d, %ecx
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_DBGPV
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	movl	%r15d, %esi
	movq	%rdi, %r15
	movl	%r12d, %edx
	movl	%r13d, %ecx
	callq	_pcm_copy_out
	movl	%ebx, %eax
	cltd
	idivl	-44(%rbp)                       ## 4-byte Folded Reload
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%edx, %esi
	callq	_li_write_swptr
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_lock_irqsave
	movq	_HW_STOPPED@GOTPCREL(%rip), %rax
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	cmpq	(%rax), %rcx
	jne	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_8 Depth=1
	leaq	L_.str.10(%rip), %rdi
	xorl	%eax, %eax
	callq	_DBGPV
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_li_activate_dma
	movq	_HW_RUNNING@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%r15)
	movq	%rbx, %rdi
	leaq	-128(%rbp), %rsi
	callq	_li_read_USTMSC
	movl	48(%r15), %eax
	cltd
	idivl	52(%r15)
	xorl	%edi, %edi
	testl	%edx, %edx
	sete	%dil
	callq	_ASSERT
	movq	-128(%rbp), %rcx
	movl	48(%r15), %eax
	cltd
	idivl	52(%r15)
	cltq
	subq	%rax, %rcx
	movq	%rcx, 72(%r15)
	jmp	LBB0_24
LBB0_30:
	leaq	L_.str.3(%rip), %rdi
	movq	-112(%rbp), %r14                ## 8-byte Reload
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_DBGP
	movq	_HW_STOPPED@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %r14
	je	LBB0_32
## %bb.31:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_li_deactivate_dma
	movq	(%rbx), %rax
	movq	%rax, 24(%r15)
LBB0_32:
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	callq	_wake_up
LBB0_33:
	movq	_HW_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 16(%r15)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
	callq	_DBGRV
	addq	$88, %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, erflown=%d, nb=%d)\n"

	.comm	_ERFLOWN,4,2                    ## @ERFLOWN
	.comm	_HW_BUSY,4,2                    ## @HW_BUSY
L_.str.1:                               ## @.str.1
	.asciz	"returning: HW BUSY\n"

	.comm	_DISABLED,4,2                   ## @DISABLED
L_.str.2:                               ## @.str.2
	.asciz	"returning: DISABLED\n"

	.comm	_SW_RUN,8,3                     ## @SW_RUN
	.comm	_SW_INITIAL,8,3                 ## @SW_INITIAL
	.comm	_SW_OFF,8,3                     ## @SW_OFF
	.comm	_SW_DRAIN,8,3                   ## @SW_DRAIN
L_.str.3:                               ## @.str.3
	.asciz	"stopping.  hwstate = %d\n"

	.comm	_HW_STOPPED,8,3                 ## @HW_STOPPED
L_.str.4:                               ## @.str.4
	.asciz	"nb = %d, fragsize = %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"hw_avail = %d\n"

L_.str.6:                               ## @.str.6
	.asciz	"sw_avail = %d\n"

L_.str.7:                               ## @.str.7
	.asciz	"hwsize = %d, swptr = %d\n"

L_.str.8:                               ## @.str.8
	.asciz	"swsize = %d, swidx = %d\n"

L_.str.9:                               ## @.str.9
	.asciz	"copying swb[%d..%d] to hwb[%d..%d]\n"

L_.str.10:                              ## @.str.10
	.asciz	"starting\n"

	.comm	_HW_RUNNING,8,3                 ## @HW_RUNNING
	.no_dead_strip	_pcm_output
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcm_output
_pcm_output:                            ; @pcm_output
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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	x22, x2
	mov	x23, x1
	mov	x19, x0
	ldp	w8, w21, [x0]
	str	w8, [sp, #72]                   ; 4-byte Folded Spill
	ldp	w24, w20, [x0, #8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x2, x23
	mov	x3, x22
	bl	_DBGEV
	add	x26, x19, #60
	mov	x0, x26
	bl	_spin_lock_irqsave
	cbz	w23, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _ERFLOWN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ERFLOWN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [x19, #16]
	orr	w8, w9, w8
	str	w8, [x19, #16]
LBB0_2:
	mov	x0, x19
	mov	x1, x22
	bl	___swb_inc_u
	ldr	w8, [x19, #16]
Lloh5:
	adrp	x9, _HW_BUSY@GOTPAGE
Lloh6:
	ldr	x9, [x9, _HW_BUSY@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x26
	bl	_spin_unlock_irqrestore
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_4:
Lloh10:
	adrp	x10, _DISABLED@GOTPAGE
Lloh11:
	ldr	x10, [x10, _DISABLED@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_7
; %bb.5:
	mov	x0, x26
	bl	_spin_unlock_irqrestore
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_6:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	b	_DBGPV
LBB0_7:
	orr	w8, w9, w8
	str	w8, [x19, #16]
	add	x22, x19, #80
	stp	x20, x26, [sp, #48]             ; 16-byte Folded Spill
	neg	w28, w20
	add	x8, x19, #64
	str	x8, [sp, #64]                   ; 8-byte Folded Spill
	str	w28, [sp, #44]                  ; 4-byte Folded Spill
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x19
	mov	x1, x28
	bl	___swb_inc_i
	ldr	w8, [x19, #48]
	add	w8, w8, w28
	str	w8, [x19, #48]
	ldr	w8, [x19, #56]
	ldr	w9, [sp, #76]                   ; 4-byte Folded Reload
	add	w8, w8, w9
	str	w8, [x19, #56]
	mov	x0, x25
	bl	_ASSERT
	ldr	x0, [sp, #64]                   ; 8-byte Folded Reload
	bl	_wake_up
	ldr	w28, [sp, #44]                  ; 4-byte Folded Reload
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x8, x20, [x19, #24]
	str	x8, [sp, #80]                   ; 8-byte Folded Spill
	mov	x0, x22
	bl	_li_read_hwptr
	mov	x23, x0
	mov	x0, x22
	bl	_li_read_swptr
	mov	x27, x0
	ldr	w8, [x19, #40]
	ands	w25, w8, w28
	b.eq	LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
Lloh15:
	adrp	x8, _SW_RUN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SW_RUN@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x20, x8
	b.ne	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x19, #16]
Lloh18:
	adrp	x9, _ERFLOWN@GOTPAGE
Lloh19:
	ldr	x9, [x9, _ERFLOWN@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	bic	w8, w8, w9
	str	w8, [x19, #16]
	b	LBB0_16
LBB0_13:                                ;   in Loop: Header=BB0_9 Depth=1
Lloh21:
	adrp	x8, _SW_INITIAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SW_INITIAL@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
Lloh24:
	adrp	x9, _SW_OFF@GOTPAGE
Lloh25:
	ldr	x9, [x9, _SW_OFF@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x20, x8
	ccmp	x20, x9, #4, ne
	b.eq	LBB0_22
; %bb.14:                               ;   in Loop: Header=BB0_9 Depth=1
Lloh27:
	adrp	x8, _SW_DRAIN@GOTPAGE
Lloh28:
	ldr	x8, [x8, _SW_DRAIN@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	cmp	x20, x8
	ccmp	w25, #0, #0, eq
	b.ne	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x19, #16]
Lloh30:
	adrp	x9, _ERFLOWN@GOTPAGE
Lloh31:
	ldr	x9, [x9, _ERFLOWN@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_22
LBB0_16:                                ;   in Loop: Header=BB0_9 Depth=1
	cbz	w25, LBB0_25
; %bb.17:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x20, x22
	sub	w8, w21, w23
	add	w8, w8, w27
	sdiv	w9, w8, w21
	neg	w8, w8
	madd	w8, w9, w21, w8
	ldr	w9, [sp, #72]                   ; 4-byte Folded Reload
	add	w8, w9, w8
	and	w22, w8, w28
	cbz	w22, LBB0_25
; %bb.18:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x26
	bl	_spin_unlock_irqrestore
	ldr	w23, [x19, #44]
	cmp	w22, w25
	csel	w8, w22, w25, lt
	sub	w9, w21, w27
	cmp	w8, w9
	csel	w8, w8, w9, lt
	sub	w9, w24, w23
	cmp	w8, w9
	csel	w28, w8, w9, lt
	cmp	w28, #0
	cset	w0, gt
	bl	_ASSERT
	ldr	x8, [sp, #48]                   ; 8-byte Folded Reload
	sdiv	w9, w28, w8
	str	w9, [sp, #76]                   ; 4-byte Folded Spill
	msub	w26, w9, w8, w28
	cbz	w26, LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_9 Depth=1
	str	x8, [sp]
Lloh33:
	adrp	x0, l_.str.4@PAGE
Lloh34:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x28
	bl	_DBGP
Lloh35:
	adrp	x0, l_.str.5@PAGE
Lloh36:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	x1, x22
	bl	_DBGP
Lloh37:
	adrp	x0, l_.str.6@PAGE
Lloh38:
	add	x0, x0, l_.str.6@PAGEOFF
	mov	x1, x25
	bl	_DBGP
	mov	x8, x27
	str	x8, [sp]
Lloh39:
	adrp	x0, l_.str.7@PAGE
Lloh40:
	add	x0, x0, l_.str.7@PAGEOFF
	mov	x1, x21
	bl	_DBGP
	mov	x8, x23
	str	x8, [sp]
Lloh41:
	adrp	x0, l_.str.8@PAGE
Lloh42:
	add	x0, x0, l_.str.8@PAGEOFF
	mov	x1, x24
	bl	_DBGP
LBB0_20:                                ;   in Loop: Header=BB0_9 Depth=1
	cmp	w26, #0
	cset	w25, eq
	mov	x0, x25
	bl	_ASSERT
	add	w8, w28, w23
	add	w22, w28, w27
	stp	x27, x22, [sp, #16]
	stp	x23, x8, [sp]
Lloh43:
	adrp	x0, l_.str.9@PAGE
Lloh44:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_DBGPV
	mov	x0, x19
	mov	x1, x23
	mov	x2, x27
	mov	x3, x28
	bl	_pcm_copy_out
	sdiv	w8, w22, w21
	msub	w1, w8, w21, w22
	mov	x22, x20
	mov	x0, x20
	bl	_li_write_swptr
	ldr	x26, [sp, #56]                  ; 8-byte Folded Reload
	mov	x0, x26
	bl	_spin_lock_irqsave
Lloh45:
	adrp	x8, _HW_STOPPED@GOTPAGE
Lloh46:
	ldr	x8, [x8, _HW_STOPPED@GOTPAGEOFF]
Lloh47:
	ldr	x8, [x8]
	ldr	x9, [sp, #80]                   ; 8-byte Folded Reload
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.21:                               ;   in Loop: Header=BB0_9 Depth=1
Lloh48:
	adrp	x0, l_.str.10@PAGE
Lloh49:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_DBGPV
	mov	x0, x22
	bl	_li_activate_dma
Lloh50:
	adrp	x8, _HW_RUNNING@GOTPAGE
Lloh51:
	ldr	x8, [x8, _HW_RUNNING@GOTPAGEOFF]
Lloh52:
	ldr	x8, [x8]
	str	x8, [x19, #24]
	add	x1, sp, #88
	mov	x0, x22
	bl	_li_read_USTMSC
	ldp	w8, w9, [x19, #48]
	sdiv	w10, w8, w9
	msub	w8, w10, w9, w8
	cmp	w8, #0
	cset	w0, eq
	bl	_ASSERT
	ldr	x8, [sp, #88]
	ldp	w9, w10, [x19, #48]
	sdiv	w9, w9, w10
	sub	x8, x8, w9, sxtw
	str	x8, [x19, #72]
	b	LBB0_8
LBB0_22:
Lloh53:
	adrp	x0, l_.str.3@PAGE
Lloh54:
	add	x0, x0, l_.str.3@PAGEOFF
	ldr	x21, [sp, #80]                  ; 8-byte Folded Reload
	mov	x1, x21
	bl	_DBGP
Lloh55:
	adrp	x20, _HW_STOPPED@GOTPAGE
Lloh56:
	ldr	x20, [x20, _HW_STOPPED@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x21, x8
	b.eq	LBB0_24
; %bb.23:
	mov	x0, x22
	bl	_li_deactivate_dma
	ldr	x8, [x20]
	str	x8, [x19, #24]
LBB0_24:
	ldr	x0, [sp, #64]                   ; 8-byte Folded Reload
	bl	_wake_up
LBB0_25:
Lloh57:
	adrp	x8, _HW_BUSY@GOTPAGE
Lloh58:
	ldr	x8, [x8, _HW_BUSY@GOTPAGEOFF]
Lloh59:
	ldr	w8, [x8]
	ldr	w9, [x19, #16]
	bic	w8, w9, w8
	str	w8, [x19, #16]
	mov	x0, x26
	bl	_spin_unlock_irqrestore
	bl	_DBGRV
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh55, Lloh56
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(devc=0x%p, erflown=%d, nb=%d)\n"

	.comm	_ERFLOWN,4,2                    ; @ERFLOWN
	.comm	_HW_BUSY,4,2                    ; @HW_BUSY
l_.str.1:                               ; @.str.1
	.asciz	"returning: HW BUSY\n"

	.comm	_DISABLED,4,2                   ; @DISABLED
l_.str.2:                               ; @.str.2
	.asciz	"returning: DISABLED\n"

	.comm	_SW_RUN,8,3                     ; @SW_RUN
	.comm	_SW_INITIAL,8,3                 ; @SW_INITIAL
	.comm	_SW_OFF,8,3                     ; @SW_OFF
	.comm	_SW_DRAIN,8,3                   ; @SW_DRAIN
l_.str.3:                               ; @.str.3
	.asciz	"stopping.  hwstate = %d\n"

	.comm	_HW_STOPPED,8,3                 ; @HW_STOPPED
l_.str.4:                               ; @.str.4
	.asciz	"nb = %d, fragsize = %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"hw_avail = %d\n"

l_.str.6:                               ; @.str.6
	.asciz	"sw_avail = %d\n"

l_.str.7:                               ; @.str.7
	.asciz	"hwsize = %d, swptr = %d\n"

l_.str.8:                               ; @.str.8
	.asciz	"swsize = %d, swidx = %d\n"

l_.str.9:                               ; @.str.9
	.asciz	"copying swb[%d..%d] to hwb[%d..%d]\n"

l_.str.10:                              ; @.str.10
	.asciz	"starting\n"

	.comm	_HW_RUNNING,8,3                 ; @HW_RUNNING
	.no_dead_strip	_pcm_output
.subsections_via_symbols
