	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dma_async_memcpy_pg_to_pg      ## -- Begin function dma_async_memcpy_pg_to_pg
	.p2align	4, 0x90
_dma_async_memcpy_pg_to_pg:             ## @dma_async_memcpy_pg_to_pg
	.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	%r9, %r15
	movl	%r8d, %eax
	movl	%edx, %r12d
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	8(%rdi), %rbx
	movl	(%rbx), %edi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	movq	%rcx, %rsi
	movl	%eax, %edx
	movq	%r9, %rcx
	callq	_dma_map_page
	movl	(%rbx), %edi
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	%r13, %rsi
	movl	%eax, %r13d
	movl	%r12d, %edx
	movq	%r15, %rcx
	callq	_dma_map_page
	movl	%eax, %r12d
	movq	_DMA_CTRL_ACK@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%r13d, %edx
	movq	%r15, %rcx
	callq	*8(%rbx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	$0, 8(%rax)
	movq	%rax, %rdi
	callq	*(%rax)
	movl	%eax, %r12d
	xorl	%eax, %eax
	callq	_get_cpu
	movl	%eax, %ebx
	movl	(%r14), %edi
	movl	%eax, %esi
	callq	_per_cpu_ptr
	addq	%r15, (%rax)
	movl	(%r14), %edi
	movl	%ebx, %esi
	callq	_per_cpu_ptr
	incl	8(%rax)
	xorl	%eax, %eax
	callq	_put_cpu
	movl	%r12d, %eax
	jmp	LBB0_2
LBB0_1:
	movl	(%rbx), %edi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r13d, %esi
	movq	%r15, %rdx
	callq	_dma_unmap_page
	movl	(%rbx), %edi
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r12d, %esi
	movq	%r15, %rdx
	callq	_dma_unmap_page
	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	_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_pg_to_pg      ; -- Begin function dma_async_memcpy_pg_to_pg
	.p2align	2
_dma_async_memcpy_pg_to_pg:             ; @dma_async_memcpy_pg_to_pg
	.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, x5
	mov	x8, x4
	mov	x22, x2
	mov	x23, x1
	mov	x20, x0
	ldr	x24, [x0, #8]
	ldr	w0, [x24]
Lloh0:
	adrp	x25, _DMA_TO_DEVICE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _DMA_TO_DEVICE@GOTPAGEOFF]
	ldr	w4, [x25]
	mov	x1, x3
	mov	x2, x8
	mov	x3, x5
	bl	_dma_map_page
	mov	x21, x0
	ldr	w0, [x24]
Lloh2:
	adrp	x26, _DMA_FROM_DEVICE@GOTPAGE
Lloh3:
	ldr	x26, [x26, _DMA_FROM_DEVICE@GOTPAGEOFF]
	ldr	w4, [x26]
	mov	x1, x23
	mov	x2, x22
	mov	x3, x19
	bl	_dma_map_page
	mov	x22, x0
Lloh4:
	adrp	x8, _DMA_CTRL_ACK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DMA_CTRL_ACK@GOTPAGEOFF]
Lloh6:
	ldr	x4, [x8]
	ldr	x8, [x24, #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, [x24]
	ldr	w3, [x25]
	mov	x1, x21
	mov	x2, x19
	bl	_dma_unmap_page
	ldr	w0, [x24]
	ldr	w3, [x26]
	mov	x1, x22
	mov	x2, x19
	bl	_dma_unmap_page
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	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	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.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	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
