	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rxe_mem_copy                   ## -- Begin function rxe_mem_copy
	.p2align	4, 0x90
_rxe_mem_copy:                          ## @rxe_mem_copy
	.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
	movq	%r9, %r15
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r12d
	movq	%rdx, %rbx
	movq	%rsi, %r13
	movq	%rdi, %rdx
	xorl	%r14d, %r14d
	movl	$0, %eax
	testq	%r9, %r9
	je	LBB0_2
## %bb.1:
	movl	(%r15), %eax
LBB0_2:
	testl	%r12d, %r12d
	je	LBB0_25
## %bb.3:
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	(%rdx), %rax
	movq	_RXE_MEM_TYPE_DMA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.4:
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	_to_mem_obj@GOTPCREL(%rip), %rax
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, (%rax)
	movq	%r13, %rsi
	cmoveq	%rbx, %rsi
	cmoveq	%r13, %rbx
	movq	%rbx, %rdi
	movl	%r12d, %edx
	callq	_memcpy
	testq	%r15, %r15
	je	LBB0_25
## %bb.5:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movl	(%rax), %edi
	callq	_to_rdev
	movl	(%r15), %esi
	movl	%eax, %edi
	movq	%rbx, %rdx
	movl	%r12d, %ecx
	callq	_rxe_crc32
	movl	%eax, (%r15)
	jmp	LBB0_25
LBB0_6:
	xorl	%edi, %edi
	cmpq	$0, 16(%rdx)
	sete	%dil
	movq	%rdx, %r14
	callq	_WARN_ON_ONCE
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	%r12d, %edx
	callq	_mem_check_range
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_25
LBB0_8:
	leaq	-92(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	leaq	-88(%rbp), %r8
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_lookup_iova
	testl	%r12d, %r12d
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	jle	LBB0_22
## %bb.9:
	movq	16(%r14), %rax
	movslq	-92(%rbp), %rcx
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	movq	(%rax,%rcx,8), %rax
	movq	(%rax), %r15
	movslq	-44(%rbp), %rdx
	shlq	$4, %rdx
	movq	-88(%rbp), %rax
	movq	8(%r15,%rdx), %rdi
	addq	%rax, %rdi
	movq	_to_mem_obj@GOTPCREL(%rip), %rsi
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, (%rsi)
	movq	%rdi, %rsi
	cmoveq	%rbx, %rsi
	cmovneq	%rbx, %rdi
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
	movl	(%r15,%rdx), %r13d
	subl	%eax, %r13d
	cmpl	%r13d, %r12d
	cmovll	%r12d, %r13d
	movq	%rdi, -120(%rbp)                ## 8-byte Spill
	movl	%r13d, %edx
	callq	_memcpy
	cmpq	$0, -80(%rbp)                   ## 8-byte Folded Reload
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_11
## %bb.10:
	movq	8(%r14), %rax
	movl	(%rax), %edi
	callq	_to_rdev
	movl	%eax, %edi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movq	-120(%rbp), %rdx                ## 8-byte Reload
	movl	%r13d, %ecx
	callq	_rxe_crc32
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
LBB0_11:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rax,%rcx,8), %rcx
	subl	%r13d, %r12d
	movq	$0, -88(%rbp)
	movl	-44(%rbp), %eax
	incl	%eax
	movl	%eax, -44(%rbp)
	movq	_RXE_BUF_PER_MAP@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	jne	LBB0_12
## %bb.13:
	movl	$0, -44(%rbp)
	movq	8(%rcx), %rax
	addq	$8, %rcx
	movq	(%rax), %r15
	jmp	LBB0_14
LBB0_12:
	addq	-112(%rbp), %r15                ## 8-byte Folded Reload
	addq	$16, %r15
LBB0_14:
	testl	%r12d, %r12d
	jle	LBB0_22
## %bb.15:
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movslq	%r13d, %rax
	addq	%rax, %rbx
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_16 Depth=1
	movl	$0, -44(%rbp)
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rax
	addq	$8, %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	(%rax), %r15
LBB0_21:                                ##   in Loop: Header=BB0_16 Depth=1
	movslq	%r13d, %rax
	addq	%rax, %rbx
	testl	%r12d, %r12d
	jle	LBB0_22
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %r14
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movq	_to_mem_obj@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	movq	%r14, %rsi
	cmoveq	%rbx, %rsi
	cmovneq	%rbx, %r14
	movl	(%r15), %r13d
	cmpl	%r13d, %r12d
	cmovll	%r12d, %r13d
	movq	%r14, %rdi
	movl	%r13d, %edx
	callq	_memcpy
	cmpq	$0, -80(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movl	(%rax), %edi
	callq	_to_rdev
	movl	%eax, %edi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movq	%r14, %rdx
	movl	%r13d, %ecx
	callq	_rxe_crc32
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
LBB0_18:                                ##   in Loop: Header=BB0_16 Depth=1
	subl	%r13d, %r12d
	movq	$0, -88(%rbp)
	movl	-44(%rbp), %eax
	incl	%eax
	movl	%eax, -44(%rbp)
	movq	_RXE_BUF_PER_MAP@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_16 Depth=1
	addq	$16, %r15
	jmp	LBB0_21
LBB0_22:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
LBB0_24:
	xorl	%r14d, %r14d
LBB0_25:
	movl	%r14d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RXE_MEM_TYPE_DMA,8,3           ## @RXE_MEM_TYPE_DMA
	.comm	_to_mem_obj,4,2                 ## @to_mem_obj
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_RXE_BUF_PER_MAP,4,2            ## @RXE_BUF_PER_MAP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rxe_mem_copy                   ; -- Begin function rxe_mem_copy
	.p2align	2
_rxe_mem_copy:                          ; @rxe_mem_copy
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x5
	mov	x21, x4
	mov	x24, x3
	mov	x23, x2
	mov	x25, x1
	mov	x20, x0
	cbz	x5, LBB0_2
; %bb.1:
	ldr	w22, [x19]
	cbnz	w24, LBB0_3
	b	LBB0_6
LBB0_2:
	mov	w22, #0
	cbz	w24, LBB0_6
LBB0_3:
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _RXE_MEM_TYPE_DMA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RXE_MEM_TYPE_DMA@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.4:
Lloh3:
	adrp	x8, _to_mem_obj@GOTPAGE
Lloh4:
	ldr	x8, [x8, _to_mem_obj@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w21
	csel	x1, x23, x25, eq
	csel	x21, x25, x23, eq
	mov	x0, x21
	mov	x2, x24
	bl	_memcpy
	cbz	x19, LBB0_6
; %bb.5:
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	bl	_to_rdev
	ldr	w1, [x19]
	mov	x2, x21
	mov	x3, x24
	bl	_rxe_crc32
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19]
	b	LBB0_25
LBB0_6:
	mov	w0, #0
	b	LBB0_25
LBB0_7:
	ldr	x8, [x20, #16]
	cmp	x8, #0
	cset	w0, eq
	bl	_WARN_ON_ONCE
	mov	x0, x20
	mov	x1, x25
	mov	x2, x24
	bl	_mem_check_range
	cbz	w0, LBB0_9
; %bb.8:
Lloh6:
	adrp	x8, _EFAULT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_25
LBB0_9:
	add	x2, sp, #12
	add	x3, sp, #8
	mov	x4, sp
	mov	x0, x20
	mov	x1, x25
	bl	_lookup_iova
	cmp	w24, #1
	b.lt	LBB0_23
; %bb.10:
	ldr	x8, [x20, #16]
	ldrsw	x9, [sp, #12]
	add	x27, x8, x9, lsl #3
	ldr	x8, [x27]
	ldr	x8, [x8]
	ldrsw	x9, [sp, #8]
	add	x25, x8, x9, lsl #4
	ldr	x8, [sp]
	ldr	x9, [x25, #8]
	add	x9, x9, x8
Lloh9:
	adrp	x10, _to_mem_obj@GOTPAGE
Lloh10:
	ldr	x10, [x10, _to_mem_obj@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	cmp	w10, w21
	csel	x1, x23, x9, eq
	csel	x26, x9, x23, eq
	ldr	w9, [x25]
	sub	w8, w9, w8
	cmp	w24, w8
	csel	w28, w24, w8, lt
	mov	x0, x26
	mov	x2, x28
	bl	_memcpy
	cbz	x19, LBB0_12
; %bb.11:
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	bl	_to_rdev
	mov	x1, x22
	mov	x2, x26
	mov	x3, x28
	bl	_rxe_crc32
	mov	x22, x0
LBB0_12:
	sub	w26, w24, w28
	str	xzr, [sp]
	ldr	w8, [sp, #8]
	add	w8, w8, #1
	str	w8, [sp, #8]
Lloh12:
	adrp	x9, _RXE_BUF_PER_MAP@GOTPAGE
Lloh13:
	ldr	x9, [x9, _RXE_BUF_PER_MAP@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_14
; %bb.13:
	mov	x9, x28
	str	wzr, [sp, #8]
	ldr	x8, [x27, #8]!
	ldr	x28, [x8]
	b	LBB0_15
LBB0_14:
	mov	x9, x28
	add	x28, x25, #16
LBB0_15:
	cmp	w26, #1
	b.lt	LBB0_23
; %bb.16:
	add	x25, x23, w9, sxtw
	b	LBB0_19
LBB0_17:                                ;   in Loop: Header=BB0_19 Depth=1
	str	wzr, [sp, #8]
	ldr	x8, [x27, #8]!
	ldr	x28, [x8]
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	add	x25, x25, w23, sxtw
	cmp	w26, #0
	b.le	LBB0_23
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x28, #8]
Lloh15:
	adrp	x9, _to_mem_obj@GOTPAGE
Lloh16:
	ldr	x9, [x9, _to_mem_obj@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	cmp	w9, w21
	csel	x1, x25, x8, eq
	csel	x24, x8, x25, eq
	ldr	w8, [x28]
	cmp	w26, w8
	csel	w23, w26, w8, lt
	mov	x0, x24
	mov	x2, x23
	bl	_memcpy
	cbz	x19, LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	bl	_to_rdev
	mov	x1, x22
	mov	x2, x24
	mov	x3, x23
	bl	_rxe_crc32
	mov	x22, x0
LBB0_21:                                ;   in Loop: Header=BB0_19 Depth=1
	sub	w26, w26, w23
	str	xzr, [sp]
	ldr	w8, [sp, #8]
	add	w8, w8, #1
	str	w8, [sp, #8]
Lloh18:
	adrp	x9, _RXE_BUF_PER_MAP@GOTPAGE
Lloh19:
	ldr	x9, [x9, _RXE_BUF_PER_MAP@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_17
; %bb.22:                               ;   in Loop: Header=BB0_19 Depth=1
	add	x28, x28, #16
	b	LBB0_18
LBB0_23:
	mov	w0, #0
	cbz	x19, LBB0_25
; %bb.24:
	str	w22, [x19]
LBB0_25:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_RXE_MEM_TYPE_DMA,8,3           ; @RXE_MEM_TYPE_DMA
	.comm	_to_mem_obj,4,2                 ; @to_mem_obj
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_RXE_BUF_PER_MAP,4,2            ; @RXE_BUF_PER_MAP
.subsections_via_symbols
