	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xp_expand_memprotect_sn2
_xp_expand_memprotect_sn2:              ## @xp_expand_memprotect_sn2
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movl	$0, -4(%rbp)
	movq	_SN_MEMPROT_ACCESS_CLASS_1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-4(%rbp), %rcx
	callq	_sn_change_memprotect
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_xp@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	movq	_xpSalError@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_xpSuccess@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SN_MEMPROT_ACCESS_CLASS_1,4,2  ## @SN_MEMPROT_ACCESS_CLASS_1
	.comm	_xp,4,2                         ## @xp
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sn_change_memprotect(,, SN_MEMPROT_ACCESS_CLASS_1,) failed ret=%d\n"

	.comm	_xpSalError,4,2                 ## @xpSalError
	.comm	_xpSuccess,4,2                  ## @xpSuccess
	.no_dead_strip	_xp_expand_memprotect_sn2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xp_expand_memprotect_sn2
_xp_expand_memprotect_sn2:              ; @xp_expand_memprotect_sn2
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	stur	wzr, [x29, #-4]
Lloh0:
	adrp	x8, _SN_MEMPROT_ACCESS_CLASS_1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SN_MEMPROT_ACCESS_CLASS_1@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	sub	x3, x29, #4
	bl	_sn_change_memprotect
	cbz	w0, LBB0_2
; %bb.1:
	mov	x2, x0
Lloh3:
	adrp	x8, _xp@GOTPAGE
Lloh4:
	ldr	x8, [x8, _xp@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh8:
	adrp	x8, _xpSalError@GOTPAGE
Lloh9:
	ldr	x8, [x8, _xpSalError@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh10:
	adrp	x8, _xpSuccess@GOTPAGE
Lloh11:
	ldr	x8, [x8, _xpSuccess@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_SN_MEMPROT_ACCESS_CLASS_1,4,2  ; @SN_MEMPROT_ACCESS_CLASS_1
	.comm	_xp,4,2                         ; @xp
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sn_change_memprotect(,, SN_MEMPROT_ACCESS_CLASS_1,) failed ret=%d\n"

	.comm	_xpSalError,4,2                 ; @xpSalError
	.comm	_xpSuccess,4,2                  ; @xpSuccess
	.no_dead_strip	_xp_expand_memprotect_sn2
.subsections_via_symbols
