	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xp_remote_memcpy_sn2
_xp_remote_memcpy_sn2:                  ## @xp_remote_memcpy_sn2
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	_BTE_NOTIFY@GOTPCREL(%rip), %rax
	movq	_BTE_WACQUIRE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	%rsi, %rdi
	movq	%r12, %rsi
	xorl	%r8d, %r8d
	callq	_bte_copy
	movq	%rax, %rbx
	movq	_BTE_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_2
## %bb.1:
	movq	_xpSuccess@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	xorl	%eax, %eax
	callq	_is_shub2
	testq	%rax, %rax
	movq	_xp@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str(%rip), %rsi
	cmoveq	%rax, %rsi
	movq	%rbx, %rdx
	movq	%r12, %rcx
	movq	%r15, %r8
	movq	%r14, %r9
	callq	_dev_err
	movq	_xpBteCopyError@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BTE_NOTIFY,4,2                 ## @BTE_NOTIFY
	.comm	_BTE_WACQUIRE,4,2               ## @BTE_WACQUIRE
	.comm	_BTE_SUCCESS,8,3                ## @BTE_SUCCESS
	.comm	_xpSuccess,4,2                  ## @xpSuccess
	.comm	_xp,4,2                         ## @xp
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bte_copy() on shub2 failed, error=0x%x dst_pa=0x%016lx src_pa=0x%016lx len=%ld\\n"

L_.str.1:                               ## @.str.1
	.asciz	"bte_copy() failed, error=%d dst_pa=0x%016lx src_pa=0x%016lx len=%ld\\n"

	.comm	_xpBteCopyError,4,2             ## @xpBteCopyError
	.no_dead_strip	_xp_remote_memcpy_sn2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xp_remote_memcpy_sn2
_xp_remote_memcpy_sn2:                  ; @xp_remote_memcpy_sn2
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _BTE_NOTIFY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BTE_NOTIFY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _BTE_WACQUIRE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BTE_WACQUIRE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	x0, x1
	mov	x1, x21
	mov	x4, #0
	bl	_bte_copy
Lloh6:
	adrp	x8, _BTE_SUCCESS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BTE_SUCCESS@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _xpSuccess@GOTPAGE
Lloh10:
	ldr	x8, [x8, _xpSuccess@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
	mov	x22, x0
	bl	_is_shub2
Lloh11:
	adrp	x8, _xp@GOTPAGE
Lloh12:
	ldr	x8, [x8, _xp@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, l_.str@PAGE
Lloh15:
	add	x9, x9, l_.str@PAGEOFF
Lloh16:
	adrp	x10, l_.str.1@PAGE
Lloh17:
	add	x10, x10, l_.str.1@PAGEOFF
	cmp	x0, #0
	csel	x1, x10, x9, eq
	mov	x0, x8
	mov	x2, x22
	mov	x3, x21
	mov	x4, x20
	mov	x5, x19
	bl	_dev_err
Lloh18:
	adrp	x8, _xpBteCopyError@GOTPAGE
Lloh19:
	ldr	x8, [x8, _xpBteCopyError@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_BTE_NOTIFY,4,2                 ; @BTE_NOTIFY
	.comm	_BTE_WACQUIRE,4,2               ; @BTE_WACQUIRE
	.comm	_BTE_SUCCESS,8,3                ; @BTE_SUCCESS
	.comm	_xpSuccess,4,2                  ; @xpSuccess
	.comm	_xp,4,2                         ; @xp
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bte_copy() on shub2 failed, error=0x%x dst_pa=0x%016lx src_pa=0x%016lx len=%ld\\n"

l_.str.1:                               ; @.str.1
	.asciz	"bte_copy() failed, error=%d dst_pa=0x%016lx src_pa=0x%016lx len=%ld\\n"

	.comm	_xpBteCopyError,4,2             ; @xpBteCopyError
	.no_dead_strip	_xp_remote_memcpy_sn2
.subsections_via_symbols
