	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_map_stack                   ## -- Begin function vm_map_stack
	.p2align	4, 0x90
_vm_map_stack:                          ## @vm_map_stack
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r13
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_MAP_WIREFUTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edi, %edi
	andl	(%rbx), %eax
	sete	%dil
	callq	_MPASS
	movq	_sgrowsiz@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	cmpq	%r13, %r15
	movq	%r13, %r12
	cmovlq	%r15, %r12
	movq	%rbx, %rdi
	callq	_vm_map_lock
	movq	_curthread@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RLIMIT_VMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_lim_cur
	addq	8(%rbx), %r12
	cmpq	%rax, %r12
	jle	LBB0_2
## %bb.1:
	movq	_KERN_NO_SPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_3
LBB0_2:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%rsp)
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	%r13, %rdx
	movq	%r15, %rcx
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	movl	-52(%rbp), %r9d                 ## 4-byte Reload
	callq	_vm_map_stack_locked
	movl	%eax, %r14d
LBB0_3:
	movq	%rbx, %rdi
	callq	_vm_map_unlock
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAP_WIREFUTURE,4,2             ## @MAP_WIREFUTURE
	.comm	_sgrowsiz,8,3                   ## @sgrowsiz
	.comm	_curthread,4,2                  ## @curthread
	.comm	_RLIMIT_VMEM,4,2                ## @RLIMIT_VMEM
	.comm	_KERN_NO_SPACE,4,2              ## @KERN_NO_SPACE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_map_stack                   ; -- Begin function vm_map_stack
	.p2align	2
_vm_map_stack:                          ; @vm_map_stack
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x5
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _MAP_WIREFUTURE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MAP_WIREFUTURE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, eq
	bl	_MPASS
Lloh3:
	adrp	x8, _sgrowsiz@GOTPAGE
Lloh4:
	ldr	x8, [x8, _sgrowsiz@GOTPAGEOFF]
Lloh5:
	ldr	x25, [x8]
	cmp	x25, x23
	csel	x26, x25, x23, lt
	mov	x0, x19
	bl	_vm_map_lock
Lloh6:
	adrp	x8, _curthread@GOTPAGE
Lloh7:
	ldr	x8, [x8, _curthread@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _RLIMIT_VMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RLIMIT_VMEM@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_lim_cur
	ldr	x8, [x19, #8]
	add	x8, x8, x26
	cmp	x8, x0
	b.le	LBB0_2
; %bb.1:
Lloh12:
	adrp	x8, _KERN_NO_SPACE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _KERN_NO_SPACE@GOTPAGEOFF]
Lloh14:
	ldr	w20, [x8]
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	mov	x1, x24
	mov	x2, x23
	mov	x3, x25
	mov	x4, x22
	mov	x5, x21
	mov	x6, x20
	bl	_vm_map_stack_locked
	mov	x20, x0
LBB0_3:
	mov	x0, x19
	bl	_vm_map_unlock
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MAP_WIREFUTURE,4,2             ; @MAP_WIREFUTURE
	.comm	_sgrowsiz,8,3                   ; @sgrowsiz
	.comm	_curthread,4,2                  ; @curthread
	.comm	_RLIMIT_VMEM,4,2                ; @RLIMIT_VMEM
	.comm	_KERN_NO_SPACE,4,2              ; @KERN_NO_SPACE
.subsections_via_symbols
