	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_priv_vm_mlock                  ## -- Begin function priv_vm_mlock
	.p2align	4, 0x90
_priv_vm_mlock:                         ## @priv_vm_mlock
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movl	%edi, %r14d
	xorl	%eax, %eax
	callq	_getpagesize
	leaq	-20(%rbp), %rdi
	movl	%eax, %esi
	callq	_mlock
	movl	%eax, -20(%rbp)
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.1:
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.2:
	movq	_EPERM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	movl	$-1, %edx
	callq	_expect
LBB0_3:
	testl	%r14d, %r14d
	je	LBB0_6
## %bb.4:
	testl	%ebx, %ebx
	jne	LBB0_6
## %bb.5:
	movl	-20(%rbp), %esi
	leaq	L_.str.1(%rip), %rdi
	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:
	movl	-20(%rbp), %esi
	movq	_EPERM@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.2(%rip), %rdi
	movl	$-1, %edx
	callq	_expect
LBB0_9:
	orl	%r14d, %ebx
	jne	LBB0_11
## %bb.10:
	movl	-20(%rbp), %esi
	movq	_EPERM@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.3(%rip), %rdi
	movl	$-1, %edx
	callq	_expect
LBB0_11:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"priv_vm_mlock(asroot, injail)"

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

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

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_priv_vm_mlock                  ; -- Begin function priv_vm_mlock
	.p2align	2
_priv_vm_mlock:                         ; @priv_vm_mlock
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_getpagesize
	mov	x1, x0
	add	x0, sp, #12
	bl	_mlock
	str	w0, [sp, #12]
	cbz	w20, LBB0_3
; %bb.1:
	cbz	w19, LBB0_3
; %bb.2:
	mov	x1, x0
Lloh0:
	adrp	x8, _EPERM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	w2, #-1
	bl	_expect
LBB0_3:
	cbz	w20, LBB0_6
; %bb.4:
	cbnz	w19, LBB0_6
; %bb.5:
	ldr	w1, [sp, #12]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	w2, #0
	mov	w3, #0
	bl	_expect
LBB0_6:
	cbnz	w20, LBB0_9
; %bb.7:
	cbz	w19, LBB0_9
; %bb.8:
	ldr	w1, [sp, #12]
Lloh7:
	adrp	x8, _EPERM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x8]
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	w2, #-1
	bl	_expect
LBB0_9:
	orr	w8, w19, w20
	cbnz	w8, LBB0_11
; %bb.10:
	ldr	w1, [sp, #12]
Lloh12:
	adrp	x8, _EPERM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
Lloh15:
	adrp	x0, l_.str.3@PAGE
Lloh16:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	w2, #-1
	bl	_expect
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"priv_vm_mlock(asroot, injail)"

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

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

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

.subsections_via_symbols
