	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function k3_dma_transfer_pause
_k3_dma_transfer_pause:                 ## @k3_dma_transfer_pause
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_to_k3_chan
	movq	%rax, %r12
	movl	(%rbx), %edi
	callq	_to_k3_dma
	movq	%rax, %r14
	movq	16(%r12), %r15
	movl	4(%rax), %edi
	leaq	12(%r12), %rdx
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movq	(%r12), %rax
	movq	_DMA_IN_PROGRESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	movq	_DMA_PAUSED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r12)
	testq	%r15, %r15
	je	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_k3_dma_pause_dma
	jmp	LBB0_4
LBB0_3:
	movq	%r14, %rdi
	callq	_spin_lock
	addq	$8, %r12
	movq	%r12, %rdi
	callq	_list_del_init
	movq	%r14, %rdi
	callq	_spin_unlock
LBB0_4:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vchan %p: pause\n"

	.comm	_DMA_IN_PROGRESS,8,3            ## @DMA_IN_PROGRESS
	.comm	_DMA_PAUSED,8,3                 ## @DMA_PAUSED
	.no_dead_strip	_k3_dma_transfer_pause
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function k3_dma_transfer_pause
_k3_dma_transfer_pause:                 ; @k3_dma_transfer_pause
	.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
	bl	_to_k3_chan
	mov	x19, x0
	ldr	w0, [x20]
	bl	_to_k3_dma
	mov	x20, x0
	ldr	x21, [x19, #16]
	ldr	w0, [x0, #4]
	add	x2, x19, #12
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _DMA_IN_PROGRESS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DMA_IN_PROGRESS@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
Lloh5:
	adrp	x8, _DMA_PAUSED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DMA_PAUSED@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	str	x8, [x19]
	cbz	x21, LBB0_3
; %bb.2:
	mov	x0, x21
	mov	w1, #0
	bl	_k3_dma_pause_dma
	b	LBB0_4
LBB0_3:
	mov	x0, x20
	bl	_spin_lock
	add	x0, x19, #8
	bl	_list_del_init
	mov	x0, x20
	bl	_spin_unlock
LBB0_4:
	mov	w0, #0
	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
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vchan %p: pause\n"

	.comm	_DMA_IN_PROGRESS,8,3            ; @DMA_IN_PROGRESS
	.comm	_DMA_PAUSED,8,3                 ; @DMA_PAUSED
	.no_dead_strip	_k3_dma_transfer_pause
.subsections_via_symbols
