	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dma_async_memcpy_buf_to_buf    ## -- Begin function dma_async_memcpy_buf_to_buf
	.p2align	4, 0x90
_dma_async_memcpy_buf_to_buf:           ## @dma_async_memcpy_buf_to_buf
	.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	%rcx, %r13
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	8(%rdi), %rbx
	movl	(%rbx), %edi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rdx, %rsi
	movq	%r13, %rdx
	callq	_dma_map_single
	movl	%eax, %r15d
	movl	(%rbx), %edi
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_dma_map_single
	movq	_DMA_CTRL_ACK@GOTPCREL(%rip), %rcx
	movq	_DMA_COMPL_SRC_UNMAP_SINGLE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r8
	orq	(%rcx), %r8
	movl	%eax, %r12d
	movq	_DMA_COMPL_DEST_UNMAP_SINGLE@GOTPCREL(%rip), %rax
	orq	(%rax), %r8
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%r15d, %edx
	movq	%r13, %rcx
	callq	*8(%rbx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	$0, 8(%rax)
	movq	%rax, %rdi
	callq	*(%rax)
	movl	%eax, %r15d
	xorl	%eax, %eax
	callq	_get_cpu
	movl	%eax, %ebx
	movl	(%r14), %edi
	movl	%eax, %esi
	callq	_per_cpu_ptr
	addq	%r13, (%rax)
	movl	(%r14), %edi
	movl	%ebx, %esi
	callq	_per_cpu_ptr
	incl	8(%rax)
	xorl	%eax, %eax
	callq	_put_cpu
	movl	%r15d, %eax
	jmp	LBB0_2
LBB0_1:
	movl	(%rbx), %edi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r15d, %esi
	movq	%r13, %rdx
	callq	_dma_unmap_single
	movl	(%rbx), %edi
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r12d, %esi
	movq	%r13, %rdx
	callq	_dma_unmap_single
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_DMA_CTRL_ACK,8,3               ## @DMA_CTRL_ACK
	.comm	_DMA_COMPL_SRC_UNMAP_SINGLE,8,3 ## @DMA_COMPL_SRC_UNMAP_SINGLE
	.comm	_DMA_COMPL_DEST_UNMAP_SINGLE,8,3 ## @DMA_COMPL_DEST_UNMAP_SINGLE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dma_async_memcpy_buf_to_buf    ; -- Begin function dma_async_memcpy_buf_to_buf
	.p2align	2
_dma_async_memcpy_buf_to_buf:           ; @dma_async_memcpy_buf_to_buf
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x22, x1
	mov	x20, x0
	ldr	x23, [x0, #8]
	ldr	w0, [x23]
Lloh0:
	adrp	x24, _DMA_TO_DEVICE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _DMA_TO_DEVICE@GOTPAGEOFF]
	ldr	w3, [x24]
	mov	x1, x2
	mov	x2, x19
	bl	_dma_map_single
	mov	x21, x0
	ldr	w0, [x23]
Lloh2:
	adrp	x25, _DMA_FROM_DEVICE@GOTPAGE
Lloh3:
	ldr	x25, [x25, _DMA_FROM_DEVICE@GOTPAGEOFF]
	ldr	w3, [x25]
	mov	x1, x22
	mov	x2, x19
	bl	_dma_map_single
	mov	x22, x0
Lloh4:
	adrp	x8, _DMA_CTRL_ACK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DMA_CTRL_ACK@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
Lloh7:
	adrp	x9, _DMA_COMPL_SRC_UNMAP_SINGLE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _DMA_COMPL_SRC_UNMAP_SINGLE@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	orr	x8, x9, x8
Lloh10:
	adrp	x9, _DMA_COMPL_DEST_UNMAP_SINGLE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _DMA_COMPL_DEST_UNMAP_SINGLE@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	orr	x4, x8, x9
	ldr	x8, [x23, #8]
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	mov	x3, x19
	blr	x8
	cbz	x0, LBB0_2
; %bb.1:
	str	xzr, [x0, #8]
	ldr	x8, [x0]
	blr	x8
	mov	x21, x0
	bl	_get_cpu
	mov	x22, x0
	ldr	w0, [x20]
	mov	x1, x22
	bl	_per_cpu_ptr
	ldr	x8, [x0]
	add	x8, x8, x19
	str	x8, [x0]
	ldr	w0, [x20]
	mov	x1, x22
	bl	_per_cpu_ptr
	ldr	w8, [x0, #8]
	add	w8, w8, #1
	str	w8, [x0, #8]
	bl	_put_cpu
	mov	x0, x21
	b	LBB0_3
LBB0_2:
	ldr	w0, [x23]
	ldr	w3, [x24]
	mov	x1, x21
	mov	x2, x19
	bl	_dma_unmap_single
	ldr	w0, [x23]
	ldr	w3, [x25]
	mov	x1, x22
	mov	x2, x19
	bl	_dma_unmap_single
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_DMA_CTRL_ACK,8,3               ; @DMA_CTRL_ACK
	.comm	_DMA_COMPL_SRC_UNMAP_SINGLE,8,3 ; @DMA_COMPL_SRC_UNMAP_SINGLE
	.comm	_DMA_COMPL_DEST_UNMAP_SINGLE,8,3 ; @DMA_COMPL_DEST_UNMAP_SINGLE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
