	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xpc_make_first_contact_sn2
_xpc_make_first_contact_sn2:            ## @xpc_make_first_contact_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	20(%rdi), %edi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	callq	_sn_register_xp_addr_region
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movl	20(%r15), %ebx
	xorl	%edi, %edi
	callq	_cnodeid_to_nasid
	movl	12(%r15), %ecx
	movl	16(%r15), %edx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_xpc_send_activate_IRQ_sn2
	movq	_xpSuccess@GOTPCREL(%rip), %r12
	leaq	L_.str.1(%rip), %r14
	movq	_XPC_P_AS_DEACTIVATING@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_xpc_pull_remote_vars_part_sn2
	movl	%eax, %ebx
	cmpl	(%r12), %eax
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_xpRetry@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_xpc_part@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_XPC_PARTID
	movl	%ebx, %edi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_dev_dbg
	movl	$250, %edi
	callq	_msleep_interruptible
	movq	(%r15), %rax
	cmpq	(%r13), %rax
	jne	LBB0_3
## %bb.7:
	movl	8(%r15), %ebx
	jmp	LBB0_8
LBB0_1:
	movq	_xpc_part@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_XPC_PARTID
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_dev_warn
	movq	_xpPhysAddrRegFailed@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_5:
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_XPC_DEACTIVATE_PARTITION
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_xpc_part,4,2                   ## @xpc_part
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"xpc_activating(%d) failed to register xp_addr region\n"

	.comm	_xpPhysAddrRegFailed,4,2        ## @xpPhysAddrRegFailed
	.comm	_xpSuccess,4,2                  ## @xpSuccess
	.comm	_xpRetry,4,2                    ## @xpRetry
L_.str.1:                               ## @.str.1
	.asciz	"waiting to make first contact with partition %d\n"

	.comm	_XPC_P_AS_DEACTIVATING,8,3      ## @XPC_P_AS_DEACTIVATING
	.no_dead_strip	_xpc_make_first_contact_sn2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xpc_make_first_contact_sn2
_xpc_make_first_contact_sn2:            ; @xpc_make_first_contact_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
	mov	x19, x0
	ldr	w0, [x0, #20]
Lloh0:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #1
	bl	_sn_register_xp_addr_region
	tbnz	x0, #63, LBB0_6
; %bb.1:
	ldr	w20, [x19, #20]
	mov	w0, #0
	bl	_cnodeid_to_nasid
	mov	x1, x0
	ldp	w3, w2, [x19, #12]
	mov	x0, x20
	bl	_xpc_send_activate_IRQ_sn2
Lloh3:
	adrp	x22, _xpSuccess@GOTPAGE
Lloh4:
	ldr	x22, [x22, _xpSuccess@GOTPAGEOFF]
Lloh5:
	adrp	x23, _xpRetry@GOTPAGE
Lloh6:
	ldr	x23, [x23, _xpRetry@GOTPAGEOFF]
Lloh7:
	adrp	x24, _xpc_part@GOTPAGE
Lloh8:
	ldr	x24, [x24, _xpc_part@GOTPAGEOFF]
Lloh9:
	adrp	x20, l_.str.1@PAGE
Lloh10:
	add	x20, x20, l_.str.1@PAGEOFF
Lloh11:
	adrp	x25, _XPC_P_AS_DEACTIVATING@GOTPAGE
Lloh12:
	ldr	x25, [x25, _XPC_P_AS_DEACTIVATING@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_xpc_pull_remote_vars_part_sn2
	mov	x21, x0
	ldr	w8, [x22]
	cmp	w0, w8
	b.eq	LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x23]
	cmp	w21, w8
	b.ne	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w21, [x24]
	mov	x0, x19
	bl	_XPC_PARTID
	mov	x2, x0
	mov	x0, x21
	mov	x1, x20
	bl	_dev_dbg
	mov	w0, #250
	bl	_msleep_interruptible
	ldr	x8, [x19]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.5:
	ldr	w21, [x19, #8]
	b	LBB0_8
LBB0_6:
Lloh13:
	adrp	x8, _xpc_part@GOTPAGE
Lloh14:
	ldr	x8, [x8, _xpc_part@GOTPAGEOFF]
Lloh15:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_XPC_PARTID
	mov	x2, x0
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_warn
Lloh18:
	adrp	x8, _xpPhysAddrRegFailed@GOTPAGE
Lloh19:
	ldr	x8, [x8, _xpPhysAddrRegFailed@GOTPAGEOFF]
Lloh20:
	ldr	w21, [x8]
LBB0_7:
	mov	x0, x19
	mov	x1, x21
	bl	_XPC_DEACTIVATE_PARTITION
LBB0_8:
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_xpc_part,4,2                   ; @xpc_part
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"xpc_activating(%d) failed to register xp_addr region\n"

	.comm	_xpPhysAddrRegFailed,4,2        ; @xpPhysAddrRegFailed
	.comm	_xpSuccess,4,2                  ; @xpSuccess
	.comm	_xpRetry,4,2                    ; @xpRetry
l_.str.1:                               ; @.str.1
	.asciz	"waiting to make first contact with partition %d\n"

	.comm	_XPC_P_AS_DEACTIVATING,8,3      ; @XPC_P_AS_DEACTIVATING
	.no_dead_strip	_xpc_make_first_contact_sn2
.subsections_via_symbols
