	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xpc_get_remote_rp              ## -- Begin function xpc_get_remote_rp
	.p2align	4, 0x90
_xpc_get_remote_rp:                     ## @xpc_get_remote_rp
	.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	%rcx, %r15
	movq	%rdx, %r14
	movq	%rsi, %rbx
	callq	_xpc_get_rsvd_page_pa
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%r14, %rdi
	callq	_xp_pa
	movq	(%r15), %rsi
	movq	_XPC_RP_HEADER_SIZE@GOTPCREL(%rip), %rcx
	movq	_xpc_nasid_mask_nbytes@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	addq	(%rcx), %rdx
	movl	%eax, %edi
	callq	_xp_remote_memcpy
	movq	_xpSuccess@GOTPCREL(%rip), %r15
	cmpl	(%r15), %eax
	jne	LBB0_32
## %bb.2:
	testq	%rbx, %rbx
	je	LBB0_21
## %bb.3:
	movq	%r14, %rdi
	callq	_XPC_RP_PART_NASIDS
	movq	_xpc_nasid_mask_nlongs@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, %ecx
	jle	LBB0_21
## %bb.4:
	cmpl	$4, %ecx
	jb	LBB0_5
## %bb.7:
	leaq	(%rax,%rcx,8), %rdx
	cmpq	%rbx, %rdx
	jbe	LBB0_10
## %bb.8:
	leaq	(%rbx,%rcx,8), %rdx
	cmpq	%rdx, %rax
	jae	LBB0_10
LBB0_5:
	xorl	%edx, %edx
LBB0_17:
	movq	%rdx, %r8
	notq	%r8
	addq	%rcx, %r8
	movq	%rcx, %rdi
	andq	$3, %rdi
	je	LBB0_19
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rax,%rdx,8), %rsi
	orq	%rsi, (%rbx,%rdx,8)
	incq	%rdx
	decq	%rdi
	jne	LBB0_18
LBB0_19:
	cmpq	$3, %r8
	jb	LBB0_21
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rax,%rdx,8), %rsi
	orq	%rsi, (%rbx,%rdx,8)
	movq	8(%rax,%rdx,8), %rsi
	orq	%rsi, 8(%rbx,%rdx,8)
	movq	16(%rax,%rdx,8), %rsi
	orq	%rsi, 16(%rbx,%rdx,8)
	movq	24(%rax,%rdx,8), %rsi
	orq	%rsi, 24(%rbx,%rdx,8)
	addq	$4, %rdx
	cmpq	%rdx, %rcx
	jne	LBB0_20
	jmp	LBB0_21
LBB0_6:
	movq	_xpNoRsvdPageAddr@GOTPCREL(%rip), %rax
	jmp	LBB0_31
LBB0_10:
	movl	%ecx, %edx
	andl	$-4, %edx
	leaq	-4(%rdx), %rsi
	movq	%rsi, %r8
	shrq	$2, %r8
	incq	%r8
	testq	%rsi, %rsi
	je	LBB0_13
## %bb.11:
	movq	%r8, %rdi
	andq	$-2, %rdi
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movups	(%rax,%rsi,8), %xmm0
	movups	16(%rax,%rsi,8), %xmm1
	movups	(%rbx,%rsi,8), %xmm2
	orps	%xmm0, %xmm2
	movups	16(%rbx,%rsi,8), %xmm0
	orps	%xmm1, %xmm0
	movups	32(%rbx,%rsi,8), %xmm1
	movups	48(%rbx,%rsi,8), %xmm3
	movups	%xmm2, (%rbx,%rsi,8)
	movups	%xmm0, 16(%rbx,%rsi,8)
	movups	32(%rax,%rsi,8), %xmm0
	orps	%xmm1, %xmm0
	movups	48(%rax,%rsi,8), %xmm1
	orps	%xmm3, %xmm1
	movups	%xmm0, 32(%rbx,%rsi,8)
	movups	%xmm1, 48(%rbx,%rsi,8)
	addq	$8, %rsi
	addq	$-2, %rdi
	jne	LBB0_12
	jmp	LBB0_14
LBB0_13:
	xorl	%esi, %esi
LBB0_14:
	testb	$1, %r8b
	je	LBB0_16
## %bb.15:
	movups	(%rax,%rsi,8), %xmm0
	movups	16(%rax,%rsi,8), %xmm1
	movups	(%rbx,%rsi,8), %xmm2
	orps	%xmm0, %xmm2
	movups	16(%rbx,%rsi,8), %xmm0
	orps	%xmm1, %xmm0
	movups	%xmm2, (%rbx,%rsi,8)
	movups	%xmm0, 16(%rbx,%rsi,8)
LBB0_16:
	cmpq	%rcx, %rdx
	jne	LBB0_17
LBB0_21:
	cmpq	$0, (%r14)
	je	LBB0_28
## %bb.22:
	movl	24(%r14), %edi
	callq	_XPC_VERSION_MAJOR
	movq	%rax, %rbx
	movq	_XPC_RP_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_XPC_VERSION_MAJOR
	cmpq	%rax, %rbx
	jne	LBB0_29
## %bb.23:
	movq	8(%r14), %rax
	testq	%rax, %rax
	js	LBB0_30
## %bb.24:
	movq	_xp_max_npartitions@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_30
## %bb.25:
	movq	_xp_partition_id@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, 16(%r14)
	jle	LBB0_30
## %bb.26:
	cmpq	%rcx, %rax
	jne	LBB0_33
## %bb.27:
	movq	_xpLocalPartid@GOTPCREL(%rip), %rax
	jmp	LBB0_31
LBB0_28:
	movq	_xpRsvdPageNotSet@GOTPCREL(%rip), %rax
	jmp	LBB0_31
LBB0_29:
	movq	_xpBadVersion@GOTPCREL(%rip), %rax
	jmp	LBB0_31
LBB0_30:
	movq	_xpInvalidPartid@GOTPCREL(%rip), %rax
LBB0_31:
	movl	(%rax), %eax
LBB0_32:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_33:
	movl	(%r15), %eax
	jmp	LBB0_32
	.cfi_endproc
                                        ## -- End function
	.comm	_xpNoRsvdPageAddr,4,2           ## @xpNoRsvdPageAddr
	.comm	_XPC_RP_HEADER_SIZE,8,3         ## @XPC_RP_HEADER_SIZE
	.comm	_xpc_nasid_mask_nbytes,8,3      ## @xpc_nasid_mask_nbytes
	.comm	_xpSuccess,4,2                  ## @xpSuccess
	.comm	_xpc_nasid_mask_nlongs,4,2      ## @xpc_nasid_mask_nlongs
	.comm	_xpRsvdPageNotSet,4,2           ## @xpRsvdPageNotSet
	.comm	_XPC_RP_VERSION,4,2             ## @XPC_RP_VERSION
	.comm	_xpBadVersion,4,2               ## @xpBadVersion
	.comm	_xp_max_npartitions,8,3         ## @xp_max_npartitions
	.comm	_xp_partition_id,8,3            ## @xp_partition_id
	.comm	_xpInvalidPartid,4,2            ## @xpInvalidPartid
	.comm	_xpLocalPartid,4,2              ## @xpLocalPartid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xpc_get_remote_rp              ; -- Begin function xpc_get_remote_rp
	.p2align	2
_xpc_get_remote_rp:                     ; @xpc_get_remote_rp
	.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	x21, x3
	mov	x19, x2
	mov	x20, x1
	bl	_xpc_get_rsvd_page_pa
	str	x0, [x21]
	cbz	x0, LBB0_9
; %bb.1:
	mov	x0, x19
	bl	_xp_pa
Lloh0:
	adrp	x8, _XPC_RP_HEADER_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XPC_RP_HEADER_SIZE@GOTPAGEOFF]
	ldr	x1, [x21]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _xpc_nasid_mask_nbytes@GOTPAGE
Lloh4:
	ldr	x9, [x9, _xpc_nasid_mask_nbytes@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x2, x9, x8
	bl	_xp_remote_memcpy
Lloh6:
	adrp	x21, _xpSuccess@GOTPAGE
Lloh7:
	ldr	x21, [x21, _xpSuccess@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w0, w8
	b.ne	LBB0_24
; %bb.2:
	cbz	x20, LBB0_13
; %bb.3:
	mov	x0, x19
	bl	_XPC_RP_PART_NASIDS
Lloh8:
	adrp	x8, _xpc_nasid_mask_nlongs@GOTPAGE
Lloh9:
	ldr	x8, [x8, _xpc_nasid_mask_nlongs@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.4:
	cmp	w8, #8
	b.lo	LBB0_10
; %bb.5:
	lsl	x9, x8, #3
	add	x10, x20, x9
	add	x9, x0, x9
	cmp	x9, x20
	ccmp	x0, x10, #2, hi
	b.lo	LBB0_10
; %bb.6:
	and	x9, x8, #0xfffffff8
	add	x10, x20, #32
	add	x11, x0, #32
	mov	x12, x9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x11, #-32]
	ldp	q2, q3, [x11], #64
	ldp	q4, q5, [x10, #-32]
	ldp	q6, q7, [x10]
	orr.16b	v0, v4, v0
	orr.16b	v1, v5, v1
	orr.16b	v2, v6, v2
	orr.16b	v3, v7, v3
	stp	q0, q1, [x10, #-32]
	stp	q2, q3, [x10], #64
	subs	x12, x12, #8
	b.ne	LBB0_7
; %bb.8:
	cmp	x9, x8
	b.ne	LBB0_11
	b	LBB0_13
LBB0_9:
Lloh11:
	adrp	x8, _xpNoRsvdPageAddr@GOTPAGE
Lloh12:
	ldr	x8, [x8, _xpNoRsvdPageAddr@GOTPAGEOFF]
	b	LBB0_23
LBB0_10:
	mov	x9, #0
LBB0_11:
	lsl	x11, x9, #3
	add	x10, x20, x11
	add	x11, x0, x11
	sub	x8, x8, x9
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x11], #8
	ldr	x12, [x10]
	orr	x9, x12, x9
	str	x9, [x10], #8
	subs	x8, x8, #1
	b.ne	LBB0_12
LBB0_13:
	ldr	x8, [x19]
	cbz	x8, LBB0_20
; %bb.14:
	ldr	w0, [x19, #24]
	bl	_XPC_VERSION_MAJOR
	mov	x20, x0
Lloh13:
	adrp	x8, _XPC_RP_VERSION@GOTPAGE
Lloh14:
	ldr	x8, [x8, _XPC_RP_VERSION@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_XPC_VERSION_MAJOR
	cmp	x20, x0
	b.ne	LBB0_21
; %bb.15:
	ldr	x8, [x19, #8]
	tbnz	x8, #63, LBB0_22
; %bb.16:
Lloh16:
	adrp	x9, _xp_max_npartitions@GOTPAGE
Lloh17:
	ldr	x9, [x9, _xp_max_npartitions@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_22
; %bb.17:
	ldr	x10, [x19, #16]
Lloh19:
	adrp	x9, _xp_partition_id@GOTPAGE
Lloh20:
	ldr	x9, [x9, _xp_partition_id@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x10, x9
	b.le	LBB0_22
; %bb.18:
	cmp	x8, x9
	b.ne	LBB0_25
; %bb.19:
Lloh22:
	adrp	x8, _xpLocalPartid@GOTPAGE
Lloh23:
	ldr	x8, [x8, _xpLocalPartid@GOTPAGEOFF]
	b	LBB0_23
LBB0_20:
Lloh24:
	adrp	x8, _xpRsvdPageNotSet@GOTPAGE
Lloh25:
	ldr	x8, [x8, _xpRsvdPageNotSet@GOTPAGEOFF]
	b	LBB0_23
LBB0_21:
Lloh26:
	adrp	x8, _xpBadVersion@GOTPAGE
Lloh27:
	ldr	x8, [x8, _xpBadVersion@GOTPAGEOFF]
	b	LBB0_23
LBB0_22:
Lloh28:
	adrp	x8, _xpInvalidPartid@GOTPAGE
Lloh29:
	ldr	x8, [x8, _xpInvalidPartid@GOTPAGEOFF]
LBB0_23:
	ldr	w0, [x8]
LBB0_24:
	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
LBB0_25:
	ldr	w0, [x21]
	b	LBB0_24
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_xpNoRsvdPageAddr,4,2           ; @xpNoRsvdPageAddr
	.comm	_XPC_RP_HEADER_SIZE,8,3         ; @XPC_RP_HEADER_SIZE
	.comm	_xpc_nasid_mask_nbytes,8,3      ; @xpc_nasid_mask_nbytes
	.comm	_xpSuccess,4,2                  ; @xpSuccess
	.comm	_xpc_nasid_mask_nlongs,4,2      ; @xpc_nasid_mask_nlongs
	.comm	_xpRsvdPageNotSet,4,2           ; @xpRsvdPageNotSet
	.comm	_XPC_RP_VERSION,4,2             ; @XPC_RP_VERSION
	.comm	_xpBadVersion,4,2               ; @xpBadVersion
	.comm	_xp_max_npartitions,8,3         ; @xp_max_npartitions
	.comm	_xp_partition_id,8,3            ; @xp_partition_id
	.comm	_xpInvalidPartid,4,2            ; @xpInvalidPartid
	.comm	_xpLocalPartid,4,2              ; @xpLocalPartid
.subsections_via_symbols
