	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_priv_vm_madv_protect           ## -- Begin function priv_vm_madv_protect
	.p2align	4, 0x90
_priv_vm_madv_protect:                  ## @priv_vm_madv_protect
	.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
	movl	%esi, %ebx
	movl	%edi, %r14d
	movq	_MADV_PROTECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_madvise
	movl	%eax, %r15d
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.1:
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.2:
	movq	_EPERM@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	movl	$-1, %edx
	callq	_expect
LBB0_3:
	testl	%r14d, %r14d
	je	LBB0_6
## %bb.4:
	testl	%ebx, %ebx
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_expect
LBB0_6:
	testl	%r14d, %r14d
	jne	LBB0_9
## %bb.7:
	testl	%ebx, %ebx
	je	LBB0_9
## %bb.8:
	movq	_EPERM@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.2(%rip), %rdi
	movl	%r15d, %esi
	movl	$-1, %edx
	callq	_expect
LBB0_9:
	orl	%r14d, %ebx
	je	LBB0_11
## %bb.10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_EPERM@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.3(%rip), %rdi
	movl	%r15d, %esi
	movl	$-1, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_expect                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MADV_PROTECT,4,2               ## @MADV_PROTECT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"priv_vm_madv_protect(asroot, injail)"

	.comm	_EPERM,4,2                      ## @EPERM
L_.str.1:                               ## @.str.1
	.asciz	"priv_vm_madv_protect(asroot, !injail"

L_.str.2:                               ## @.str.2
	.asciz	"priv_vm_madv_protect(!asroot, injail"

L_.str.3:                               ## @.str.3
	.asciz	"priv_vm_madv_protect(!asroot, !injail"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_priv_vm_madv_protect           ; -- Begin function priv_vm_madv_protect
	.p2align	2
_priv_vm_madv_protect:                  ; @priv_vm_madv_protect
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _MADV_PROTECT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MADV_PROTECT@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, #0
	mov	w1, #0
	bl	_madvise
	mov	x21, x0
	cbz	w20, LBB0_3
; %bb.1:
	cbz	w19, LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _EPERM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	mov	w2, #-1
	bl	_expect
LBB0_3:
	cbz	w20, LBB0_6
; %bb.4:
	cbnz	w19, LBB0_6
; %bb.5:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	mov	w2, #0
	mov	w3, #0
	bl	_expect
LBB0_6:
	cbnz	w20, LBB0_9
; %bb.7:
	cbz	w19, LBB0_9
; %bb.8:
Lloh10:
	adrp	x8, _EPERM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh12:
	ldr	w3, [x8]
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x21
	mov	w2, #-1
	bl	_expect
LBB0_9:
	orr	w8, w19, w20
	cbz	w8, LBB0_11
; %bb.10:
	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_11:
Lloh15:
	adrp	x8, _EPERM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
Lloh18:
	adrp	x0, l_.str.3@PAGE
Lloh19:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x21
	mov	w2, #-1
	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
	b	_expect
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MADV_PROTECT,4,2               ; @MADV_PROTECT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"priv_vm_madv_protect(asroot, injail)"

	.comm	_EPERM,4,2                      ; @EPERM
l_.str.1:                               ; @.str.1
	.asciz	"priv_vm_madv_protect(asroot, !injail"

l_.str.2:                               ; @.str.2
	.asciz	"priv_vm_madv_protect(!asroot, injail"

l_.str.3:                               ; @.str.3
	.asciz	"priv_vm_madv_protect(!asroot, !injail"

.subsections_via_symbols
