	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sys_munlockall                 ## -- Begin function sys_munlockall
	.p2align	4, 0x90
_sys_munlockall:                        ## @sys_munlockall
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rax
	movq	(%rax), %rbx
	movq	_PRIV_VM_MUNLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_priv_check
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movq	%rbx, %rdi
	callq	_vm_map_lock
	movq	_MAP_WIREFUTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_vm_map_modflags
	movq	%rbx, %rdi
	callq	_vm_map_unlock
	movq	%rbx, %rdi
	callq	_vm_map_min
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_vm_map_max
	movq	_VM_MAP_WIRE_USER@GOTPCREL(%rip), %rdx
	movq	_VM_MAP_WIRE_HOLESOK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_vm_map_unwire                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PRIV_VM_MUNLOCK,4,2            ## @PRIV_VM_MUNLOCK
	.comm	_MAP_WIREFUTURE,4,2             ## @MAP_WIREFUTURE
	.comm	_VM_MAP_WIRE_USER,4,2           ## @VM_MAP_WIRE_USER
	.comm	_VM_MAP_WIRE_HOLESOK,4,2        ## @VM_MAP_WIRE_HOLESOK
	.comm	_KERN_SUCCESS,4,2               ## @KERN_SUCCESS
	.comm	_RACCT_MEMLOCK,4,2              ## @RACCT_MEMLOCK
	.comm	_racct_enable,8,3               ## @racct_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sys_munlockall                 ; -- Begin function sys_munlockall
	.p2align	2
_sys_munlockall:                        ; @sys_munlockall
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0]
	ldr	x19, [x8]
Lloh0:
	adrp	x8, _PRIV_VM_MUNLOCK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PRIV_VM_MUNLOCK@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_priv_check
	cbz	w0, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x0, x19
	bl	_vm_map_lock
Lloh3:
	adrp	x8, _MAP_WIREFUTURE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAP_WIREFUTURE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_vm_map_modflags
	mov	x0, x19
	bl	_vm_map_unlock
	mov	x0, x19
	bl	_vm_map_min
	mov	x20, x0
	mov	x0, x19
	bl	_vm_map_max
	mov	x2, x0
Lloh6:
	adrp	x8, _VM_MAP_WIRE_USER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VM_MAP_WIRE_USER@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _VM_MAP_WIRE_HOLESOK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _VM_MAP_WIRE_HOLESOK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_vm_map_unwire
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PRIV_VM_MUNLOCK,4,2            ; @PRIV_VM_MUNLOCK
	.comm	_MAP_WIREFUTURE,4,2             ; @MAP_WIREFUTURE
	.comm	_VM_MAP_WIRE_USER,4,2           ; @VM_MAP_WIRE_USER
	.comm	_VM_MAP_WIRE_HOLESOK,4,2        ; @VM_MAP_WIRE_HOLESOK
	.comm	_KERN_SUCCESS,4,2               ; @KERN_SUCCESS
	.comm	_RACCT_MEMLOCK,4,2              ; @RACCT_MEMLOCK
	.comm	_racct_enable,8,3               ; @racct_enable
.subsections_via_symbols
