	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xp_register_nofault_code_sn2
_xp_register_nofault_code_sn2:          ## @xp_register_nofault_code_sn2
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_xp_nofault_PIOR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	movq	_xp_error_PIOR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edx
	movl	%edx, %esi
	movl	$1, %ecx
	movl	$1, %r8d
	callq	_sn_register_nofault_code
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	_xp@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	movq	_xpSalError@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_2:
	xorl	%eax, %eax
	callq	_is_shub1
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_SH1_IPI_ACCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_xp_nofault_PIOR_target@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_xpSuccess@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_4:
	xorl	%eax, %eax
	callq	_is_shub2
	movq	_xpSuccess@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_SH2_IPI_ACCESS0@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_xp_nofault_PIOR_target@GOTPCREL(%rip), %rdx
	movl	%eax, (%rdx)
LBB0_6:
	movl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_xp_nofault_PIOR,8,3            ## @xp_nofault_PIOR
	.comm	_xp_error_PIOR,8,3              ## @xp_error_PIOR
	.comm	_xp,4,2                         ## @xp
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't register nofault code, error=%d\n"

	.comm	_xpSalError,4,2                 ## @xpSalError
	.comm	_SH1_IPI_ACCESS,4,2             ## @SH1_IPI_ACCESS
	.comm	_xp_nofault_PIOR_target,4,2     ## @xp_nofault_PIOR_target
	.comm	_SH2_IPI_ACCESS0,4,2            ## @SH2_IPI_ACCESS0
	.comm	_xpSuccess,4,2                  ## @xpSuccess
	.no_dead_strip	_xp_register_nofault_code_sn2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xp_register_nofault_code_sn2
_xp_register_nofault_code_sn2:          ; @xp_register_nofault_code_sn2
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _xp_nofault_PIOR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _xp_nofault_PIOR@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _xp_error_PIOR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _xp_error_PIOR@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	w1, [x8]
	mov	x2, x1
	mov	w3, #1
	mov	w4, #1
	bl	_sn_register_nofault_code
	cbz	w0, LBB0_2
; %bb.1:
	mov	x2, x0
Lloh6:
	adrp	x8, _xp@GOTPAGE
Lloh7:
	ldr	x8, [x8, _xp@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh11:
	adrp	x8, _xpSalError@GOTPAGE
Lloh12:
	ldr	x8, [x8, _xpSalError@GOTPAGEOFF]
	b	LBB0_8
LBB0_2:
	bl	_is_shub1
	cbz	x0, LBB0_4
; %bb.3:
Lloh13:
	adrp	x8, _SH1_IPI_ACCESS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SH1_IPI_ACCESS@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
	bl	_is_shub2
	cbz	x0, LBB0_7
; %bb.5:
Lloh15:
	adrp	x8, _SH2_IPI_ACCESS0@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SH2_IPI_ACCESS0@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _xp_nofault_PIOR_target@GOTPAGE
Lloh18:
	ldr	x9, [x9, _xp_nofault_PIOR_target@GOTPAGEOFF]
Lloh19:
	str	w8, [x9]
LBB0_7:
Lloh20:
	adrp	x8, _xpSuccess@GOTPAGE
Lloh21:
	ldr	x8, [x8, _xpSuccess@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotStr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_xp_nofault_PIOR,8,3            ; @xp_nofault_PIOR
	.comm	_xp_error_PIOR,8,3              ; @xp_error_PIOR
	.comm	_xp,4,2                         ; @xp
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't register nofault code, error=%d\n"

	.comm	_xpSalError,4,2                 ; @xpSalError
	.comm	_SH1_IPI_ACCESS,4,2             ; @SH1_IPI_ACCESS
	.comm	_xp_nofault_PIOR_target,4,2     ; @xp_nofault_PIOR_target
	.comm	_SH2_IPI_ACCESS0,4,2            ; @SH2_IPI_ACCESS0
	.comm	_xpSuccess,4,2                  ; @xpSuccess
	.no_dead_strip	_xp_register_nofault_code_sn2
.subsections_via_symbols
