	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mpi_copy                       ## -- Begin function mpi_copy
	.p2align	4, 0x90
_mpi_copy:                              ## @mpi_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_MPI_NULL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rdi)
	xorl	%r15d, %r15d
	testq	%rsi, %rsi
	je	LBB0_19
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rsi), %rdi
	callq	_mpi_alloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	(%rbx), %r8
	movq	%r8, (%rax)
	movl	24(%rbx), %ecx
	movl	%ecx, 24(%rax)
	movl	20(%rbx), %ecx
	movl	%ecx, 20(%rax)
	movl	16(%rbx), %ecx
	movl	%ecx, 16(%rax)
	testq	%r8, %r8
	je	LBB0_18
## %bb.4:
	movq	8(%rbx), %rdx
	movq	8(%rax), %rsi
	xorl	%edi, %edi
	cmpq	$8, %r8
	jb	LBB0_14
## %bb.5:
	movq	%rsi, %rcx
	subq	%rdx, %rcx
	cmpq	$32, %rcx
	jb	LBB0_14
## %bb.6:
	movq	%r8, %rdi
	andq	$-8, %rdi
	leaq	-8(%rdi), %rcx
	movq	%rcx, %rbx
	shrq	$3, %rbx
	incq	%rbx
	movl	%ebx, %r9d
	andl	$3, %r9d
	cmpq	$24, %rcx
	jae	LBB0_8
## %bb.7:
	xorl	%ecx, %ecx
	jmp	LBB0_10
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_19
LBB0_8:
	andq	$-4, %rbx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movups	(%rdx,%rcx,4), %xmm0
	movups	16(%rdx,%rcx,4), %xmm1
	movups	%xmm0, (%rsi,%rcx,4)
	movups	%xmm1, 16(%rsi,%rcx,4)
	movups	32(%rdx,%rcx,4), %xmm0
	movups	48(%rdx,%rcx,4), %xmm1
	movups	%xmm0, 32(%rsi,%rcx,4)
	movups	%xmm1, 48(%rsi,%rcx,4)
	movups	64(%rdx,%rcx,4), %xmm0
	movups	80(%rdx,%rcx,4), %xmm1
	movups	%xmm0, 64(%rsi,%rcx,4)
	movups	%xmm1, 80(%rsi,%rcx,4)
	movups	96(%rdx,%rcx,4), %xmm0
	movups	112(%rdx,%rcx,4), %xmm1
	movups	%xmm0, 96(%rsi,%rcx,4)
	movups	%xmm1, 112(%rsi,%rcx,4)
	addq	$32, %rcx
	addq	$-4, %rbx
	jne	LBB0_9
LBB0_10:
	testq	%r9, %r9
	je	LBB0_13
## %bb.11:
	leaq	(%rsi,%rcx,4), %r10
	addq	$16, %r10
	leaq	(%rdx,%rcx,4), %rcx
	addq	$16, %rcx
	shlq	$5, %r9
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movups	-16(%rcx,%rbx), %xmm0
	movups	(%rcx,%rbx), %xmm1
	movups	%xmm0, -16(%r10,%rbx)
	movups	%xmm1, (%r10,%rbx)
	addq	$32, %rbx
	cmpq	%rbx, %r9
	jne	LBB0_12
LBB0_13:
	cmpq	%rdi, %r8
	je	LBB0_18
LBB0_14:
	movq	%rdi, %r9
	notq	%r9
	addq	%r8, %r9
	movq	%r8, %rbx
	andq	$3, %rbx
	je	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rdx,%rdi,4), %ecx
	movl	%ecx, (%rsi,%rdi,4)
	incq	%rdi
	decq	%rbx
	jne	LBB0_15
LBB0_16:
	cmpq	$3, %r9
	jb	LBB0_18
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rdx,%rdi,4), %ecx
	movl	%ecx, (%rsi,%rdi,4)
	movl	4(%rdx,%rdi,4), %ecx
	movl	%ecx, 4(%rsi,%rdi,4)
	movl	8(%rdx,%rdi,4), %ecx
	movl	%ecx, 8(%rsi,%rdi,4)
	movl	12(%rdx,%rdi,4), %ecx
	movl	%ecx, 12(%rsi,%rdi,4)
	addq	$4, %rdi
	cmpq	%rdi, %r8
	jne	LBB0_17
LBB0_18:
	movq	%rax, (%r14)
LBB0_19:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MPI_NULL,8,3                   ## @MPI_NULL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mpi_copy                       ; -- Begin function mpi_copy
	.p2align	2
_mpi_copy:                              ; @mpi_copy
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _MPI_NULL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MPI_NULL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [x0]
	cbz	x1, LBB0_11
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	x0, [x1]
	bl	_mpi_alloc
	cbz	x0, LBB0_12
; %bb.2:
	ldr	x8, [x20]
	str	x8, [x0]
	ldr	w9, [x20, #24]
	str	w9, [x0, #24]
	ldr	d0, [x20, #16]
	str	d0, [x0, #16]
	cbz	x8, LBB0_10
; %bb.3:
	mov	x11, #0
	ldr	x9, [x20, #8]
	ldr	x10, [x0, #8]
	cmp	x8, #16
	b.lo	LBB0_8
; %bb.4:
	sub	x12, x10, x9
	cmp	x12, #64
	b.lo	LBB0_8
; %bb.5:
	and	x11, x8, #0xfffffffffffffff0
	add	x12, x9, #32
	add	x13, x10, #32
	mov	x14, x11
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x12, #-32]
	ldp	q2, q3, [x12], #64
	stp	q0, q1, [x13, #-32]
	stp	q2, q3, [x13], #64
	subs	x14, x14, #16
	b.ne	LBB0_6
; %bb.7:
	cmp	x8, x11
	b.eq	LBB0_10
LBB0_8:
	sub	x8, x8, x11
	lsl	x11, x11, #2
	add	x10, x10, x11
	add	x9, x9, x11
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x9], #4
	str	w11, [x10], #4
	subs	x8, x8, #1
	b.ne	LBB0_9
LBB0_10:
	mov	w8, #0
	str	x0, [x19]
	b	LBB0_13
LBB0_11:
	mov	w8, #0
	b	LBB0_13
LBB0_12:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w8, w8
LBB0_13:
	mov	x0, x8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MPI_NULL,8,3                   ; @MPI_NULL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
