	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xpc_pull_remote_vars_part_sn2
_xpc_pull_remote_vars_part_sn2:         ## @xpc_pull_remote_vars_part_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	%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
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_L1_CACHE_BYTES@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	addl	%eax, %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_L1_CACHE_ALIGN
	movslq	%eax, %r12
	movq	%r14, %rdi
	callq	_XPC_PARTID
	movw	%ax, -50(%rbp)                  ## 2-byte Spill
	movl	8(%r14), %ebx
	movl	%ebx, %edi
	callq	_L1_CACHE_ALIGN
	xorl	%edi, %edi
	cmpl	%eax, %ebx
	setne	%dil
	callq	_DBUG_ON
	movl	(%r13), %eax
	andl	$-2, %eax
	xorl	%edi, %edi
	cmpl	$96, %eax
	setne	%dil
	callq	_DBUG_ON
	movslq	8(%r14), %rax
	movq	_sn_partition_id@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	leaq	(%rcx,%rcx,2), %r15
	shlq	$4, %r15
	addq	%rax, %r15
	movslq	(%r13), %rbx
	movl	%ebx, %eax
	negl	%eax
	movslq	%eax, %rdx
	andq	%r15, %rdx
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%ebx, %ecx
	callq	_xpc_pull_remote_cachelines_sn2
	movq	_xpSuccess@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %eax
	jne	LBB0_1
## %bb.2:
	movzwl	-50(%rbp), %edx                 ## 2-byte Folded Reload
	decq	%rbx
	andq	%rbx, %r15
	movq	(%r12,%r15), %r8
	movq	_XPC_VP_MAGIC1_SN2@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_XPC_VP_MAGIC2_SN2@GOTPCREL(%rip), %rbx
	cmpq	%rax, %r8
	je	LBB0_6
## %bb.3:
	cmpq	(%rbx), %r8
	je	LBB0_6
## %bb.4:
	testq	%r8, %r8
	je	LBB0_15
## %bb.5:
	movl	%edx, %r14d
	movq	_xpc_chan@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_sn_partition_id@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movswl	%dx, %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_xpBadMagic@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_17
LBB0_1:
	movl	%eax, %r13d
	movq	_xpc_chan@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movswl	-50(%rbp), %edx                 ## 2-byte Folded Reload
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_dev_dbg
	jmp	LBB0_17
LBB0_6:
	movq	_xpc_vars_part_sn2@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movswq	%dx, %r13
	cmpq	%rax, (%rcx,%r13,8)
	jne	LBB0_14
## %bb.7:
	movq	8(%r12,%r15), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	16(%r12,%r15), %rcx
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.9:
	movq	24(%r12,%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.11:
	movq	%rax, 16(%r14)
	movq	%rcx, 24(%r14)
	callq	___va
	movq	%rax, 40(%r14)
	movl	44(%r12,%r15), %eax
	movl	%eax, 36(%r14)
	movl	40(%r12,%r15), %eax
	movl	%eax, 32(%r14)
	movq	32(%r12,%r15), %rax
	cmpq	%rax, (%r14)
	jle	LBB0_13
## %bb.12:
	movq	%rax, (%r14)
LBB0_13:
	movq	(%rbx), %rax
	movq	_xpc_vars_part_sn2@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rax, (%rcx,%r13,8)
	movq	(%r12,%r15), %r8
	movq	_XPC_VP_MAGIC1_SN2@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_xpSuccess@GOTPCREL(%rip), %rsi
LBB0_14:
	cmpq	%rax, %r8
	jne	LBB0_16
LBB0_15:
	movq	_xpRetry@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_17
LBB0_10:
	movq	_xpc_chan@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_sn_partition_id@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movswl	%dx, %edx
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_err
	movq	_xpInvalidAddress@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_17
LBB0_16:
	movl	(%rsi), %r13d
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_19
## %bb.18:
	movl	%r13d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_L1_CACHE_BYTES,4,2             ## @L1_CACHE_BYTES
	.comm	_sn_partition_id,4,2            ## @sn_partition_id
	.comm	_xpSuccess,4,2                  ## @xpSuccess
	.comm	_xpc_chan,4,2                   ## @xpc_chan
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to pull XPC vars_part from partition %d, ret=%d\n"

	.comm	_XPC_VP_MAGIC1_SN2,8,3          ## @XPC_VP_MAGIC1_SN2
	.comm	_XPC_VP_MAGIC2_SN2,8,3          ## @XPC_VP_MAGIC2_SN2
L_.str.1:                               ## @.str.1
	.asciz	"partition %d's XPC vars_part for partition %d has bad magic value (=0x%llx)\n"

	.comm	_xpBadMagic,4,2                 ## @xpBadMagic
	.comm	_xpRetry,4,2                    ## @xpRetry
	.comm	_xpc_vars_part_sn2,8,3          ## @xpc_vars_part_sn2
L_.str.2:                               ## @.str.2
	.asciz	"partition %d's XPC vars_part for partition %d are not valid\n"

	.comm	_xpInvalidAddress,4,2           ## @xpInvalidAddress
	.no_dead_strip	_xpc_pull_remote_vars_part_sn2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xpc_pull_remote_vars_part_sn2
_xpc_pull_remote_vars_part_sn2:         ; @xpc_pull_remote_vars_part_sn2
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x23, _L1_CACHE_BYTES@GOTPAGE
Lloh4:
	ldr	x23, [x23, _L1_CACHE_BYTES@GOTPAGEOFF]
	ldr	w8, [x23]
	lsl	w8, w8, #1
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x0, x9, x8
	mov	sp, x0
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_L1_CACHE_ALIGN
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x21, w0
	mov	x0, x19
	bl	_XPC_PARTID
	mov	x20, x0
	ldr	w22, [x19, #8]
	mov	x0, x22
	bl	_L1_CACHE_ALIGN
	cmp	w22, w0
	cset	w0, ne
	bl	_DBUG_ON
	ldr	w8, [x23]
	and	w8, w8, #0xfffffffe
	cmp	w8, #96
	cset	w0, ne
	bl	_DBUG_ON
	ldrsw	x8, [x19, #8]
Lloh7:
	adrp	x25, _sn_partition_id@GOTPAGE
Lloh8:
	ldr	x25, [x25, _sn_partition_id@GOTPAGEOFF]
	ldrsw	x9, [x25]
	mov	w10, #48
	madd	x26, x9, x10, x8
	ldrsw	x23, [x23]
	neg	w8, w23
	sxtw	x8, w8
	and	x2, x26, x8
	mov	x0, x19
	mov	x1, x21
	mov	x3, x23
	bl	_xpc_pull_remote_cachelines_sn2
Lloh9:
	adrp	x24, _xpSuccess@GOTPAGE
Lloh10:
	ldr	x24, [x24, _xpSuccess@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w0, w8
	b.ne	LBB0_11
; %bb.1:
	sub	x8, x23, #1
	and	x8, x26, x8
	add	x21, x8, x21
	ldr	x8, [x21]
Lloh11:
	adrp	x22, _XPC_VP_MAGIC1_SN2@GOTPAGE
Lloh12:
	ldr	x22, [x22, _XPC_VP_MAGIC1_SN2@GOTPAGEOFF]
	ldr	x9, [x22]
Lloh13:
	adrp	x23, _XPC_VP_MAGIC2_SN2@GOTPAGE
Lloh14:
	ldr	x23, [x23, _XPC_VP_MAGIC2_SN2@GOTPAGEOFF]
	ldr	x10, [x23]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_12
; %bb.2:
Lloh15:
	adrp	x26, _xpc_vars_part_sn2@GOTPAGE
Lloh16:
	ldr	x26, [x26, _xpc_vars_part_sn2@GOTPAGEOFF]
	ldr	x10, [x26]
	ldr	x10, [x10, w20, sxtw #3]
	cmp	x10, x9
	b.ne	LBB0_9
; %bb.3:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_15
; %bb.4:
	ldr	x9, [x21, #16]
	cbz	x9, LBB0_15
; %bb.5:
	ldr	x0, [x21, #24]
	cbz	x0, LBB0_15
; %bb.6:
	sxtw	x20, w20
	stp	x8, x9, [x19, #16]
	bl	___va
	str	x0, [x19, #40]
	ldr	d0, [x21, #40]
	str	d0, [x19, #32]
	ldr	x9, [x19]
	ldr	x8, [x21, #32]
	cmp	x9, x8
	b.le	LBB0_8
; %bb.7:
	str	x8, [x19]
LBB0_8:
	ldr	x8, [x23]
	ldr	x9, [x26]
	str	x8, [x9, x20, lsl #3]
	ldr	x8, [x21]
	ldr	x9, [x22]
LBB0_9:
	cmp	x8, x9
	b.eq	LBB0_14
; %bb.10:
	ldr	w22, [x24]
	b	LBB0_17
LBB0_11:
	mov	x22, x0
Lloh17:
	adrp	x8, _xpc_chan@GOTPAGE
Lloh18:
	ldr	x8, [x8, _xpc_chan@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	mov	x3, x22
	bl	_dev_dbg
	b	LBB0_17
LBB0_12:
	cbz	x8, LBB0_14
; %bb.13:
Lloh22:
	adrp	x9, _xpc_chan@GOTPAGE
Lloh23:
	ldr	x9, [x9, _xpc_chan@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x9]
	ldr	w3, [x25]
	str	x8, [sp, #-16]!
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_dev_dbg
	add	sp, sp, #16
Lloh27:
	adrp	x8, _xpBadMagic@GOTPAGE
Lloh28:
	ldr	x8, [x8, _xpBadMagic@GOTPAGEOFF]
	b	LBB0_16
LBB0_14:
Lloh29:
	adrp	x8, _xpRetry@GOTPAGE
Lloh30:
	ldr	x8, [x8, _xpRetry@GOTPAGEOFF]
	b	LBB0_16
LBB0_15:
Lloh31:
	adrp	x8, _xpc_chan@GOTPAGE
Lloh32:
	ldr	x8, [x8, _xpc_chan@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	ldr	w3, [x25]
Lloh34:
	adrp	x1, l_.str.2@PAGE
Lloh35:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x20
	bl	_dev_err
Lloh36:
	adrp	x8, _xpInvalidAddress@GOTPAGE
Lloh37:
	ldr	x8, [x8, _xpInvalidAddress@GOTPAGEOFF]
LBB0_16:
	ldr	w22, [x8]
LBB0_17:
	ldur	x8, [x29, #-72]
Lloh38:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh39:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh40:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	mov	x0, x22
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_L1_CACHE_BYTES,4,2             ; @L1_CACHE_BYTES
	.comm	_sn_partition_id,4,2            ; @sn_partition_id
	.comm	_xpSuccess,4,2                  ; @xpSuccess
	.comm	_xpc_chan,4,2                   ; @xpc_chan
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to pull XPC vars_part from partition %d, ret=%d\n"

	.comm	_XPC_VP_MAGIC1_SN2,8,3          ; @XPC_VP_MAGIC1_SN2
	.comm	_XPC_VP_MAGIC2_SN2,8,3          ; @XPC_VP_MAGIC2_SN2
l_.str.1:                               ; @.str.1
	.asciz	"partition %d's XPC vars_part for partition %d has bad magic value (=0x%llx)\n"

	.comm	_xpBadMagic,4,2                 ; @xpBadMagic
	.comm	_xpRetry,4,2                    ; @xpRetry
	.comm	_xpc_vars_part_sn2,8,3          ; @xpc_vars_part_sn2
l_.str.2:                               ; @.str.2
	.asciz	"partition %d's XPC vars_part for partition %d are not valid\n"

	.comm	_xpInvalidAddress,4,2           ; @xpInvalidAddress
	.no_dead_strip	_xpc_pull_remote_vars_part_sn2
.subsections_via_symbols
