	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scif_rma_local_cpu_copy
_scif_rma_local_cpu_copy:               ## @scif_rma_local_cpu_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movq	%rcx, %r12
	movq	%rdx, %r15
	movq	%rdi, %r14
	movq	_PAGE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	movl	%r14d, %ecx
	andl	%eax, %ecx
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rbx
	movslq	%ecx, %rax
	subq	%rax, %rbx
	cmpq	%r12, %rbx
	cmovaeq	%r12, %rbx
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdx
	callq	__get_local_va
	testq	%rax, %rax
	je	LBB0_14
## %bb.1:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	movq	%rax, %rsi
	jmp	LBB0_4
LBB0_3:
	movq	%rax, %rdi
	movq	%r15, %rsi
LBB0_4:
	movq	%rbx, %rdx
	callq	_memcpy
	subq	%rbx, %r12
	je	LBB0_14
## %bb.5:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rdx
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shlq	%cl, %rdx
	addq	(%rax), %rdx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	addq	%rbx, %r15
	addq	%rbx, %r14
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, %rdi
	movq	%rax, %rsi
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rdx
	callq	_memcpy
	addq	%rbx, %r14
	addq	%rbx, %r15
	subq	%rbx, %r12
	je	LBB0_14
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	-64(%rbp), %r14                 ## 8-byte Folded Reload
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	_list@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_list_next_entry
	movq	%rax, %r13
	movq	8(%rax), %rdx
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movzbl	(%rax), %ecx
	shlq	%cl, %rdx
	addq	(%r13), %rdx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	-56(%rbp), %r13                 ## 8-byte Reload
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_min
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rsi
	movq	%rax, %rdx
	callq	__get_local_va
	testq	%rax, %rax
	je	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, %rdi
	movq	%r15, %rsi
	jmp	LBB0_13
LBB0_14:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_MASK,8,3                  ## @PAGE_MASK
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_PAGE_SHIFT,8,3                 ## @PAGE_SHIFT
	.comm	_list,4,2                       ## @list
	.no_dead_strip	_scif_rma_local_cpu_copy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scif_rma_local_cpu_copy
_scif_rma_local_cpu_copy:               ; @scif_rma_local_cpu_copy
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x4
	mov	x21, x3
	mov	x22, x2
	mov	x20, x1
	mov	x23, x0
Lloh0:
	adrp	x8, _PAGE_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	bic	w8, w23, w8
Lloh3:
	adrp	x25, _PAGE_SIZE@GOTPAGE
Lloh4:
	ldr	x25, [x25, _PAGE_SIZE@GOTPAGEOFF]
	ldrsw	x9, [x25]
	sub	x8, x9, w8, sxtw
	cmp	x8, x3
	csel	x24, x8, x3, lo
	mov	x2, x24
	bl	__get_local_va
	cbz	x0, LBB0_13
; %bb.1:
	mov	x1, x0
	cbz	w19, LBB0_3
; %bb.2:
	mov	x0, x22
	b	LBB0_4
LBB0_3:
	mov	x0, x1
	mov	x1, x22
LBB0_4:
	mov	x2, x24
	bl	_memcpy
	subs	x21, x21, x24
	b.eq	LBB0_13
; %bb.5:
Lloh5:
	adrp	x26, _PAGE_SHIFT@GOTPAGE
Lloh6:
	ldr	x26, [x26, _PAGE_SHIFT@GOTPAGEOFF]
	ldr	x8, [x26]
	ldp	x10, x9, [x20]
	lsl	x8, x9, x8
	add	x28, x8, x10
	add	x22, x22, x24
	add	x23, x24, x23
Lloh7:
	adrp	x27, _list@GOTPAGE
Lloh8:
	ldr	x27, [x27, _list@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x22
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x2, x24
	bl	_memcpy
	add	x23, x24, x23
	add	x22, x22, x24
	subs	x21, x21, x24
	b.eq	LBB0_13
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x23, x28
	b.ne	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w1, [x27]
	mov	x0, x20
	bl	_list_next_entry
	mov	x20, x0
	ldp	x8, x9, [x0]
	ldr	x10, [x26]
	lsl	x9, x9, x10
	add	x28, x9, x8
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [x25]
	mov	x1, x21
	bl	_min
	mov	x24, x0
	mov	x0, x23
	mov	x1, x20
	mov	x2, x24
	bl	__get_local_va
	cbz	x0, LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x1, x0
	cbnz	w19, LBB0_6
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x1
	mov	x1, x22
	b	LBB0_7
LBB0_13:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_MASK,8,3                  ; @PAGE_MASK
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_PAGE_SHIFT,8,3                 ; @PAGE_SHIFT
	.comm	_list,4,2                       ; @list
	.no_dead_strip	_scif_rma_local_cpu_copy
.subsections_via_symbols
