	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function k3_dma_issue_pending
_k3_dma_issue_pending:                  ## @k3_dma_issue_pending
	.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	%rdi, %rbx
	callq	_to_k3_chan
	movq	%rax, %r13
	movq	%rax, %r14
	movl	(%rbx), %edi
	callq	_to_k3_dma
	movq	%rax, %r15
	movq	%r13, %rdi
	callq	_spin_lock_irqsave
	movq	%r13, %rdi
	callq	_vchan_issue_pending
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	leaq	4(%r15), %r12
	movq	%r12, %rdi
	callq	_spin_lock
	cmpl	$0, 8(%r14)
	jne	LBB0_4
## %bb.2:
	addq	$4, %r13
	movq	%r13, %rdi
	callq	_list_empty
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	12(%r15), %rsi
	movq	%r13, %rdi
	callq	_list_add_tail
	movq	%r15, %rdi
	addq	$8, %rdi
	callq	_tasklet_schedule
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	callq	_dev_dbg
LBB0_4:
	movq	%r12, %rdi
	callq	_spin_unlock
	jmp	LBB0_6
LBB0_5:
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdx
	callq	_dev_dbg
LBB0_6:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vchan %p: issued\n"

L_.str.1:                               ## @.str.1
	.asciz	"vchan %p: nothing to issue\n"

	.no_dead_strip	_k3_dma_issue_pending
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function k3_dma_issue_pending
_k3_dma_issue_pending:                  ; @k3_dma_issue_pending
	.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
	mov	x0, x19
	bl	_spin_lock_irqsave
	mov	x0, x19
	bl	_vchan_issue_pending
	cbz	x0, LBB0_5
; %bb.1:
	add	x21, x20, #4
	mov	x0, x21
	bl	_spin_lock
	ldr	w8, [x19, #8]
	cbnz	w8, LBB0_4
; %bb.2:
	add	x22, x19, #4
	mov	x0, x22
	bl	_list_empty
	cbz	x0, LBB0_4
; %bb.3:
	add	x1, x20, #12
	mov	x0, x22
	bl	_list_add_tail
	add	x0, x20, #8
	bl	_tasklet_schedule
	ldr	w0, [x20]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_dev_dbg
LBB0_4:
	mov	x0, x21
	bl	_spin_unlock
	b	LBB0_6
LBB0_5:
	ldr	w0, [x20]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_dev_dbg
LBB0_6:
	mov	x0, x19
	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	_spin_unlock_irqrestore
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vchan %p: issued\n"

l_.str.1:                               ; @.str.1
	.asciz	"vchan %p: nothing to issue\n"

	.no_dead_strip	_k3_dma_issue_pending
.subsections_via_symbols
