	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vm_map_growstack
_vm_map_growstack:                      ## @vm_map_growstack
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	%rdx, -56(%rbp)
	movq	_curproc@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	24(%rdx), %rcx
	movq	_initproc@GOTPCREL(%rip), %rax
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	cmpq	(%rax), %rdx
	je	LBB0_4
## %bb.1:
	leaq	16(%rcx), %rax
	cmpq	%r13, %rax
	je	LBB0_3
LBB0_2:
	movq	_KERN_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_70
LBB0_3:
	movq	-104(%rbp), %rax                ## 8-byte Reload
	cmpq	$0, 16(%rax)
	je	LBB0_2
LBB0_4:
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	xorl	%edi, %edi
	cmpl	$0, 20(%r13)
	sete	%dil
	callq	_MPASS
	movq	_curthread@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_RLIMIT_MEMLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_lim_cur
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movl	(%r14), %edi
	movq	_RLIMIT_STACK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_lim_cur
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	(%r14), %edi
	movq	_RLIMIT_VMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_lim_cur
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	leaq	1(%r15), %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	testq	%r12, %r12
	jne	LBB0_7
LBB0_5:
	movq	%r13, %rdi
	movq	%r15, %rsi
	leaq	-56(%rbp), %rdx
	callq	_vm_map_lookup_entry
	testl	%eax, %eax
	je	LBB0_2
## %bb.6:
	movq	-56(%rbp), %r12
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %r14d
	movq	_MAP_ENTRY_GUARD@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_39
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	_MAP_ENTRY_STACK_GAP_DN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testl	%r14d, %ebx
	movl	%ebx, -92(%rbp)                 ## 4-byte Spill
	je	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%r12, %rdi
	callq	_vm_map_entry_succ
	movq	%rax, %r12
	movq	_MAP_ENTRY_GROWS_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_2
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%r12), %rdi
	movq	-56(%rbp), %rax
	cmpq	16(%rax), %rdi
	jne	LBB0_2
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	subq	%r15, %rdi
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_MAP_ENTRY_STACK_GAP_UP@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_2
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%r12, %rdi
	callq	_vm_map_entry_pred
	movq	%rax, %r12
	movq	_MAP_ENTRY_GROWS_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_2
## %bb.14:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	16(%r12), %rax
	movq	-56(%rbp), %rcx
	cmpq	8(%rcx), %rax
	jne	LBB0_2
## %bb.15:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	subq	%rax, %rdi
LBB0_16:                                ##   in Loop: Header=BB0_7 Depth=1
	callq	_round_page
	movq	%rax, %r13
	movq	_curproc@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_P2_STKGAP_DISABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	jne	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_NT_FREEBSD_FCTL_STKGAP_DISABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 4(%rax)
	je	LBB0_20
LBB0_17:                                ##   in Loop: Header=BB0_7 Depth=1
	xorl	%eax, %eax
LBB0_21:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	-56(%rbp), %rcx
	movq	16(%rcx), %rbx
	subq	8(%rcx), %rbx
	subq	%rax, %rbx
	jl	LBB0_38
## %bb.22:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpq	%rbx, %r13
	jg	LBB0_38
## %bb.23:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%r15, 8(%rcx)
	jg	LBB0_27
## %bb.25:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	8(%rax), %rax
	cmpq	%r15, (%rax)
	jle	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	(%rcx), %edi
	callq	_ctob
	addq	%r13, %rax
	movb	$1, %cl
	cmpq	-72(%rbp), %rax                 ## 8-byte Folded Reload
	jle	LBB0_28
	jmp	LBB0_38
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_7 Depth=1
	xorl	%ecx, %ecx
LBB0_28:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	_sgrowsiz@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_roundup
	cmpq	%rbx, %rax
	cmovlq	%rax, %rbx
	cmpb	$0, -44(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_31
## %bb.29:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_ctob
	addq	%rbx, %rax
	cmpq	-72(%rbp), %rax                 ## 8-byte Folded Reload
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	jle	LBB0_32
## %bb.30:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_trunc_page
	movq	%rax, %rbx
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_ctob
	subq	%rax, %rbx
	jmp	LBB0_32
	.p2align	4, 0x90
LBB0_31:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	-64(%rbp), %r13                 ## 8-byte Reload
LBB0_32:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_old_mlock@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_35
## %bb.33:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_MAP_WIREFUTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	je	LBB0_35
## %bb.34:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	16(%r13), %edi
	callq	_pmap_wired_count
	movl	%eax, %edi
	callq	_ptoa
	addq	%rbx, %rax
	cmpq	-112(%rbp), %rax                ## 8-byte Folded Reload
	jg	LBB0_38
LBB0_35:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%r13), %rax
	addq	%rbx, %rax
	cmpq	-88(%rbp), %rax                 ## 8-byte Folded Reload
	jg	LBB0_38
## %bb.36:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%r13, %rdi
	callq	_vm_map_lock_upgrade
	testq	%rax, %rax
	je	LBB0_40
## %bb.37:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	$0, -56(%rbp)
	movq	%r13, %rdi
	callq	_vm_map_lock_read
	movq	-56(%rbp), %r12
	testq	%r12, %r12
	jne	LBB0_7
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	-56(%rbp), %rax
	movq	24(%rax), %rax
	jmp	LBB0_21
LBB0_38:
	movq	_KERN_NO_SPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_70
LBB0_39:
	movq	_KERN_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_70
LBB0_40:
	testl	%r14d, -92(%rbp)                ## 4-byte Folded Reload
	je	LBB0_43
## %bb.41:
	movq	-56(%rbp), %rsi
	movq	8(%rsi), %rax
	movq	16(%rsi), %r13
	movq	%r13, %r14
	subq	%rbx, %r14
	leaq	(%rax,%rbx), %rcx
	cmpq	%r13, %rcx
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	jne	LBB0_46
## %bb.42:
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_vm_map_entry_delete
	jmp	LBB0_47
LBB0_43:
	movq	16(%r12), %r15
	movq	48(%r12), %rsi
	testq	%rsi, %rsi
	je	LBB0_52
LBB0_44:
	movq	%rbx, %rdi
	callq	_swap_reserve_by_cred
	testl	%eax, %eax
	je	LBB0_58
## %bb.45:
	movq	40(%r12), %rdi
	movl	$1, %r8d
	testq	%rdi, %rdi
	jne	LBB0_55
	jmp	LBB0_56
LBB0_46:
	xorl	%edi, %edi
	cmpq	%r14, %rax
	setl	%dil
	callq	_MPASS
	movq	-56(%rbp), %rsi
	movq	%rbx, %rdx
	negq	%rdx
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_vm_map_entry_resize
LBB0_47:
	movl	56(%r12), %r10d
	movl	60(%r12), %r9d
	movq	_MAP_STACK_GROWS_DOWN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	%r14, %rcx
	movq	%r13, %r8
	pushq	%rax
	pushq	%r10
	callq	_vm_map_insert
	addq	$16, %rsp
	movl	%eax, %r12d
	movq	_KERN_SUCCESS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	movq	%r14, %r15
	jne	LBB0_49
## %bb.48:
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_63
LBB0_49:
	cmpq	%r13, -72(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_51
## %bb.50:
	movq	%rax, %r14
	movq	_VM_PROT_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_MAP_CREATE_GUARD@GOTPCREL(%rip), %rdx
	movq	_MAP_CREATE_STACK_GAP_DN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	orl	(%rdx), %eax
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	%r13, %r8
	movq	%rdi, %r13
	pushq	%rax
	pushq	%r9
	callq	_vm_map_insert
	addq	$16, %rsp
	xorl	%edi, %edi
	cmpl	(%r14), %eax
	sete	%dil
	callq	_MPASS
	jmp	LBB0_63
LBB0_51:
	movq	-56(%rbp), %rsi
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movq	%rbx, %rdx
	callq	_vm_map_entry_resize
	jmp	LBB0_63
LBB0_52:
	movq	40(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_56
## %bb.53:
	movq	(%rdi), %rsi
	testq	%rsi, %rsi
	jne	LBB0_44
## %bb.54:
	xorl	%r8d, %r8d
LBB0_55:
	movl	32(%r12), %esi
	movq	16(%r12), %rdx
	subq	8(%r12), %rdx
	movq	%rbx, %rcx
	callq	_vm_object_coalesce
	testq	%rax, %rax
	je	LBB0_61
LBB0_56:
	movq	-56(%rbp), %rsi
	movq	8(%rsi), %rax
	addq	%rbx, %rax
	cmpq	16(%rsi), %rax
	jne	LBB0_59
## %bb.57:
	movq	%r13, %rdi
	callq	_vm_map_entry_delete
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_vm_map_entry_resize
	jmp	LBB0_60
LBB0_58:
	movq	_KERN_NO_SPACE@GOTPCREL(%rip), %rax
	jmp	LBB0_62
LBB0_59:
	movq	%rax, 8(%rsi)
	addq	%rbx, 16(%r12)
LBB0_60:
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	addq	%rbx, 8(%r13)
	movq	_KERN_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_64
LBB0_61:
	movq	_KERN_FAILURE@GOTPCREL(%rip), %rax
LBB0_62:
	movl	(%rax), %r12d
LBB0_63:
	movl	-44(%rbp), %edx                 ## 4-byte Reload
LBB0_64:
	movq	_KERN_SUCCESS@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	cmpl	%eax, %r12d
	setne	%cl
	xorb	$1, %dl
	orb	%cl, %dl
	jne	LBB0_66
## %bb.65:
	movq	%rbx, %rdi
	callq	_btoc
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	addl	%eax, (%rcx)
	movl	(%r14), %eax
LBB0_66:
	cmpl	%eax, %r12d
	jne	LBB0_69
## %bb.67:
	movq	_MAP_WIREFUTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	je	LBB0_69
## %bb.68:
	addq	%r15, %rbx
	movq	_VM_MAP_WIRE_USER@GOTPCREL(%rip), %rax
	movq	_VM_MAP_WIRE_NOHOLES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_vm_map_wire_locked
	movl	%eax, %r12d
LBB0_69:
	movq	%r13, %rdi
	callq	_vm_map_lock_downgrade
LBB0_70:
	movl	%r12d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_curproc,8,3                    ## @curproc
	.comm	_initproc,8,3                   ## @initproc
	.comm	_KERN_FAILURE,4,2               ## @KERN_FAILURE
	.comm	_curthread,4,2                  ## @curthread
	.comm	_RLIMIT_MEMLOCK,4,2             ## @RLIMIT_MEMLOCK
	.comm	_RLIMIT_STACK,4,2               ## @RLIMIT_STACK
	.comm	_RLIMIT_VMEM,4,2                ## @RLIMIT_VMEM
	.comm	_MAP_ENTRY_GUARD,4,2            ## @MAP_ENTRY_GUARD
	.comm	_KERN_SUCCESS,4,2               ## @KERN_SUCCESS
	.comm	_MAP_ENTRY_STACK_GAP_DN,4,2     ## @MAP_ENTRY_STACK_GAP_DN
	.comm	_MAP_ENTRY_GROWS_DOWN,4,2       ## @MAP_ENTRY_GROWS_DOWN
	.comm	_MAP_ENTRY_STACK_GAP_UP,4,2     ## @MAP_ENTRY_STACK_GAP_UP
	.comm	_MAP_ENTRY_GROWS_UP,4,2         ## @MAP_ENTRY_GROWS_UP
	.comm	_P2_STKGAP_DISABLE,4,2          ## @P2_STKGAP_DISABLE
	.comm	_NT_FREEBSD_FCTL_STKGAP_DISABLE,4,2 ## @NT_FREEBSD_FCTL_STKGAP_DISABLE
	.comm	_KERN_NO_SPACE,4,2              ## @KERN_NO_SPACE
	.comm	_sgrowsiz,4,2                   ## @sgrowsiz
	.comm	_old_mlock,4,2                  ## @old_mlock
	.comm	_MAP_WIREFUTURE,4,2             ## @MAP_WIREFUTURE
	.comm	_MAP_STACK_GROWS_DOWN,4,2       ## @MAP_STACK_GROWS_DOWN
	.comm	_VM_PROT_NONE,4,2               ## @VM_PROT_NONE
	.comm	_MAP_CREATE_GUARD,4,2           ## @MAP_CREATE_GUARD
	.comm	_MAP_CREATE_STACK_GAP_DN,4,2    ## @MAP_CREATE_STACK_GAP_DN
	.comm	_VM_MAP_WIRE_USER,4,2           ## @VM_MAP_WIRE_USER
	.comm	_VM_MAP_WIRE_NOHOLES,4,2        ## @VM_MAP_WIRE_NOHOLES
	.comm	_RACCT_MEMLOCK,4,2              ## @RACCT_MEMLOCK
	.comm	_RACCT_STACK,4,2                ## @RACCT_STACK
	.comm	_RACCT_VMEM,4,2                 ## @RACCT_VMEM
	.comm	_racct_enable,8,3               ## @racct_enable
	.no_dead_strip	_vm_map_growstack
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vm_map_growstack
_vm_map_growstack:                      ; @vm_map_growstack
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	str	x2, [sp, #24]
Lloh0:
	adrp	x8, _curproc@GOTPAGE
Lloh1:
	ldr	x8, [x8, _curproc@GOTPAGEOFF]
Lloh2:
	ldr	x27, [x8]
	ldr	x26, [x27, #24]
Lloh3:
	adrp	x8, _initproc@GOTPAGE
Lloh4:
	ldr	x8, [x8, _initproc@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x27, x8
	b.eq	LBB0_4
; %bb.1:
	add	x8, x26, #16
	cmp	x8, x19
	b.eq	LBB0_3
LBB0_2:
Lloh6:
	adrp	x8, _KERN_FAILURE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _KERN_FAILURE@GOTPAGEOFF]
Lloh8:
	ldr	w21, [x8]
	b	LBB0_67
LBB0_3:
	ldr	x8, [x27, #16]
	cbz	x8, LBB0_2
LBB0_4:
	ldr	w8, [x19, #20]
	cmp	w8, #0
	cset	w0, eq
	bl	_MPASS
Lloh9:
	adrp	x22, _curthread@GOTPAGE
Lloh10:
	ldr	x22, [x22, _curthread@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh11:
	adrp	x8, _RLIMIT_MEMLOCK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RLIMIT_MEMLOCK@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_lim_cur
	str	x0, [sp]                        ; 8-byte Folded Spill
	ldr	w0, [x22]
Lloh14:
	adrp	x8, _RLIMIT_STACK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RLIMIT_STACK@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_lim_cur
	str	x0, [sp, #16]                   ; 8-byte Folded Spill
	ldr	w0, [x22]
Lloh17:
	adrp	x8, _RLIMIT_VMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _RLIMIT_VMEM@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	bl	_lim_cur
	mov	x25, x0
	add	x8, x20, #1
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	cbnz	x21, LBB0_7
LBB0_5:
	add	x2, sp, #24
	mov	x0, x19
	mov	x1, x20
	bl	_vm_map_lookup_entry
	cbz	w0, LBB0_2
; %bb.6:
	ldr	x21, [sp, #24]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21]
Lloh20:
	adrp	x9, _MAP_ENTRY_GUARD@GOTPAGE
Lloh21:
	ldr	x9, [x9, _MAP_ENTRY_GUARD@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_37
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
Lloh23:
	adrp	x9, _MAP_ENTRY_STACK_GAP_DN@GOTPAGE
Lloh24:
	ldr	x9, [x9, _MAP_ENTRY_STACK_GAP_DN@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	ands	w28, w9, w8
	b.eq	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x21
	bl	_vm_map_entry_succ
	ldr	w8, [x0]
Lloh26:
	adrp	x9, _MAP_ENTRY_GROWS_DOWN@GOTPAGE
Lloh27:
	ldr	x9, [x9, _MAP_ENTRY_GROWS_DOWN@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x21, x0
	ldr	x8, [x0, #8]
	ldr	x9, [sp, #24]
	ldr	x9, [x9, #16]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	sub	x0, x8, x20
	b	LBB0_16
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=1
Lloh29:
	adrp	x9, _MAP_ENTRY_STACK_GAP_UP@GOTPAGE
Lloh30:
	ldr	x9, [x9, _MAP_ENTRY_STACK_GAP_UP@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x21
	bl	_vm_map_entry_pred
	ldr	w8, [x0]
Lloh32:
	adrp	x9, _MAP_ENTRY_GROWS_UP@GOTPAGE
Lloh33:
	ldr	x9, [x9, _MAP_ENTRY_GROWS_UP@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x21, x0
	ldr	x8, [x0, #16]
	ldr	x9, [sp, #24]
	ldr	x9, [x9, #8]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.15:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	sub	x0, x9, x8
LBB0_16:                                ;   in Loop: Header=BB0_7 Depth=1
	bl	_round_page
	mov	x22, x0
Lloh35:
	adrp	x8, _curproc@GOTPAGE
Lloh36:
	ldr	x8, [x8, _curproc@GOTPAGEOFF]
Lloh37:
	ldr	x8, [x8]
	ldr	w9, [x8]
Lloh38:
	adrp	x10, _P2_STKGAP_DISABLE@GOTPAGE
Lloh39:
	ldr	x10, [x10, _P2_STKGAP_DISABLE@GOTPAGEOFF]
Lloh40:
	ldr	w10, [x10]
	tst	w10, w9
	b.ne	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x8, #4]
Lloh41:
	adrp	x9, _NT_FREEBSD_FCTL_STKGAP_DISABLE@GOTPAGE
Lloh42:
	ldr	x9, [x9, _NT_FREEBSD_FCTL_STKGAP_DISABLE@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_35
LBB0_18:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x8, #0
LBB0_19:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x9, [sp, #24]
	ldp	x9, x10, [x9, #8]
	sub	x9, x10, x9
	subs	x24, x9, x8
	b.lt	LBB0_36
; %bb.20:                               ;   in Loop: Header=BB0_7 Depth=1
	cmp	x22, x24
	b.gt	LBB0_36
; %bb.21:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x26, #8]
	cmp	x8, x20
	b.gt	LBB0_25
; %bb.22:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x27, #8]
	ldr	x8, [x8]
	cmp	x8, x20
	b.le	LBB0_25
; %bb.23:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x26]
	bl	_ctob
	add	x8, x0, x22
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	cmp	x8, x9
	b.gt	LBB0_36
; %bb.24:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	w23, #1
	b	LBB0_26
LBB0_25:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w23, #0
LBB0_26:                                ;   in Loop: Header=BB0_7 Depth=1
Lloh44:
	adrp	x8, _sgrowsiz@GOTPAGE
Lloh45:
	ldr	x8, [x8, _sgrowsiz@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_roundup
	cmp	x0, x24
	csel	x22, x0, x24, lt
	cbz	w23, LBB0_29
; %bb.27:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x26]
	bl	_ctob
	add	x8, x0, x22
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	cmp	x8, x9
	b.le	LBB0_29
; %bb.28:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	bl	_trunc_page
	mov	x22, x0
	ldr	w0, [x26]
	bl	_ctob
	sub	x22, x22, x0
LBB0_29:                                ;   in Loop: Header=BB0_7 Depth=1
Lloh47:
	adrp	x8, _old_mlock@GOTPAGE
Lloh48:
	ldr	x8, [x8, _old_mlock@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
	cbnz	w8, LBB0_32
; %bb.30:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x19]
Lloh50:
	adrp	x9, _MAP_WIREFUTURE@GOTPAGE
Lloh51:
	ldr	x9, [x9, _MAP_WIREFUTURE@GOTPAGEOFF]
Lloh52:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_32
; %bb.31:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x19, #16]
	bl	_pmap_wired_count
	bl	_ptoa
	add	x8, x0, x22
	ldr	x9, [sp]                        ; 8-byte Folded Reload
	cmp	x8, x9
	b.gt	LBB0_36
LBB0_32:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x19, #8]
	add	x8, x8, x22
	cmp	x8, x25
	b.gt	LBB0_36
; %bb.33:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
	bl	_vm_map_lock_upgrade
	cbz	x0, LBB0_38
; %bb.34:                               ;   in Loop: Header=BB0_7 Depth=1
	str	xzr, [sp, #24]
	mov	x0, x19
	bl	_vm_map_lock_read
	ldr	x21, [sp, #24]
	cbnz	x21, LBB0_7
	b	LBB0_5
LBB0_35:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [sp, #24]
	ldr	x8, [x8, #24]
	b	LBB0_19
LBB0_36:
Lloh53:
	adrp	x8, _KERN_NO_SPACE@GOTPAGE
Lloh54:
	ldr	x8, [x8, _KERN_NO_SPACE@GOTPAGEOFF]
Lloh55:
	ldr	w21, [x8]
	b	LBB0_67
LBB0_37:
Lloh56:
	adrp	x8, _KERN_SUCCESS@GOTPAGE
Lloh57:
	ldr	x8, [x8, _KERN_SUCCESS@GOTPAGEOFF]
Lloh58:
	ldr	w21, [x8]
	b	LBB0_67
LBB0_38:
Lloh59:
	adrp	x27, _KERN_SUCCESS@GOTPAGE
Lloh60:
	ldr	x27, [x27, _KERN_SUCCESS@GOTPAGEOFF]
	cbz	w28, LBB0_41
; %bb.39:
	ldr	x1, [sp, #24]
	ldp	x24, x25, [x1, #8]
	sub	x20, x25, x22
	add	x28, x24, x22
	cmp	x28, x25
	b.ne	LBB0_45
; %bb.40:
	mov	x0, x19
	bl	_vm_map_entry_delete
	b	LBB0_46
LBB0_41:
	ldr	x20, [x21, #16]
	ldr	x1, [x21, #48]
	cbz	x1, LBB0_50
LBB0_42:
	mov	x0, x22
	bl	_swap_reserve_by_cred
	cbz	w0, LBB0_56
; %bb.43:
	ldr	x0, [x21, #40]
	cbz	x0, LBB0_54
; %bb.44:
	mov	w4, #1
	b	LBB0_53
LBB0_45:
	cmp	x24, x20
	cset	w0, lt
	bl	_MPASS
	ldr	x1, [sp, #24]
	neg	x2, x22
	mov	x0, x19
	bl	_vm_map_entry_resize
LBB0_46:
	ldp	w6, w5, [x21, #56]
Lloh61:
	adrp	x8, _MAP_STACK_GROWS_DOWN@GOTPAGE
Lloh62:
	ldr	x8, [x8, _MAP_STACK_GROWS_DOWN@GOTPAGEOFF]
Lloh63:
	ldr	w7, [x8]
	mov	x0, x19
	mov	x1, #0
	mov	w2, #0
	mov	x3, x20
	mov	x4, x25
	bl	_vm_map_insert
	mov	x21, x0
	ldr	w8, [x27]
	cmp	w0, w8
	b.eq	LBB0_61
; %bb.47:
	cmp	x28, x25
	b.ne	LBB0_49
; %bb.48:
Lloh64:
	adrp	x8, _VM_PROT_NONE@GOTPAGE
Lloh65:
	ldr	x8, [x8, _VM_PROT_NONE@GOTPAGEOFF]
Lloh66:
	adrp	x9, _MAP_CREATE_GUARD@GOTPAGE
Lloh67:
	ldr	x9, [x9, _MAP_CREATE_GUARD@GOTPAGEOFF]
Lloh68:
	ldr	w5, [x8]
Lloh69:
	ldr	w8, [x9]
Lloh70:
	adrp	x9, _MAP_CREATE_STACK_GAP_DN@GOTPAGE
Lloh71:
	ldr	x9, [x9, _MAP_CREATE_STACK_GAP_DN@GOTPAGEOFF]
Lloh72:
	ldr	w9, [x9]
	orr	w7, w9, w8
	mov	x0, x19
	mov	x1, #0
	mov	w2, #0
	mov	x3, x24
	mov	x4, x25
	mov	x6, x5
	bl	_vm_map_insert
	ldr	w8, [x27]
	cmp	w0, w8
	cset	w0, eq
	bl	_MPASS
	b	LBB0_61
LBB0_49:
	ldr	x1, [sp, #24]
	mov	x0, x19
	mov	x2, x22
	bl	_vm_map_entry_resize
	b	LBB0_61
LBB0_50:
	ldr	x0, [x21, #40]
	cbz	x0, LBB0_54
; %bb.51:
	ldr	x1, [x0]
	cbnz	x1, LBB0_42
; %bb.52:
	mov	w4, #0
LBB0_53:
	ldr	w1, [x21, #32]
	ldp	x9, x8, [x21, #8]
	sub	x2, x8, x9
	mov	x3, x22
	bl	_vm_object_coalesce
	cbz	x0, LBB0_59
LBB0_54:
	ldr	x1, [sp, #24]
	ldp	x8, x9, [x1, #8]
	add	x8, x8, x22
	cmp	x8, x9
	b.ne	LBB0_57
; %bb.55:
	mov	x0, x19
	bl	_vm_map_entry_delete
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_vm_map_entry_resize
	b	LBB0_58
LBB0_56:
Lloh73:
	adrp	x8, _KERN_NO_SPACE@GOTPAGE
Lloh74:
	ldr	x8, [x8, _KERN_NO_SPACE@GOTPAGEOFF]
	b	LBB0_60
LBB0_57:
	str	x8, [x1, #8]
	ldr	x8, [x21, #16]
	add	x8, x8, x22
	str	x8, [x21, #16]
LBB0_58:
	ldr	x8, [x19, #8]
	add	x8, x8, x22
	str	x8, [x19, #8]
	ldr	w21, [x27]
	b	LBB0_61
LBB0_59:
Lloh75:
	adrp	x8, _KERN_FAILURE@GOTPAGE
Lloh76:
	ldr	x8, [x8, _KERN_FAILURE@GOTPAGEOFF]
LBB0_60:
	ldr	w21, [x8]
LBB0_61:
	ldr	w8, [x27]
	cmp	w21, w8
	cset	w9, ne
	eor	w10, w23, #0x1
	orr	w9, w10, w9
	tbnz	w9, #0, LBB0_63
; %bb.62:
	mov	x0, x22
	bl	_btoc
	ldr	w8, [x26]
	add	w8, w8, w0
	str	w8, [x26]
	ldr	w8, [x27]
LBB0_63:
	cmp	w21, w8
	b.ne	LBB0_66
; %bb.64:
	ldr	w8, [x19]
Lloh77:
	adrp	x9, _MAP_WIREFUTURE@GOTPAGE
Lloh78:
	ldr	x9, [x9, _MAP_WIREFUTURE@GOTPAGEOFF]
Lloh79:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_66
; %bb.65:
Lloh80:
	adrp	x8, _VM_MAP_WIRE_USER@GOTPAGE
Lloh81:
	ldr	x8, [x8, _VM_MAP_WIRE_USER@GOTPAGEOFF]
	add	x2, x20, x22
Lloh82:
	ldr	w8, [x8]
Lloh83:
	adrp	x9, _VM_MAP_WIRE_NOHOLES@GOTPAGE
Lloh84:
	ldr	x9, [x9, _VM_MAP_WIRE_NOHOLES@GOTPAGEOFF]
Lloh85:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	x0, x19
	mov	x1, x20
	bl	_vm_map_wire_locked
	mov	x21, x0
LBB0_66:
	mov	x0, x19
	bl	_vm_map_lock_downgrade
LBB0_67:
	mov	x0, x21
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGot	Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh69
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh68
	.loh AdrpLdrGot	Lloh73, Lloh74
	.loh AdrpLdrGot	Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.cfi_endproc
                                        ; -- End function
	.comm	_curproc,8,3                    ; @curproc
	.comm	_initproc,8,3                   ; @initproc
	.comm	_KERN_FAILURE,4,2               ; @KERN_FAILURE
	.comm	_curthread,4,2                  ; @curthread
	.comm	_RLIMIT_MEMLOCK,4,2             ; @RLIMIT_MEMLOCK
	.comm	_RLIMIT_STACK,4,2               ; @RLIMIT_STACK
	.comm	_RLIMIT_VMEM,4,2                ; @RLIMIT_VMEM
	.comm	_MAP_ENTRY_GUARD,4,2            ; @MAP_ENTRY_GUARD
	.comm	_KERN_SUCCESS,4,2               ; @KERN_SUCCESS
	.comm	_MAP_ENTRY_STACK_GAP_DN,4,2     ; @MAP_ENTRY_STACK_GAP_DN
	.comm	_MAP_ENTRY_GROWS_DOWN,4,2       ; @MAP_ENTRY_GROWS_DOWN
	.comm	_MAP_ENTRY_STACK_GAP_UP,4,2     ; @MAP_ENTRY_STACK_GAP_UP
	.comm	_MAP_ENTRY_GROWS_UP,4,2         ; @MAP_ENTRY_GROWS_UP
	.comm	_P2_STKGAP_DISABLE,4,2          ; @P2_STKGAP_DISABLE
	.comm	_NT_FREEBSD_FCTL_STKGAP_DISABLE,4,2 ; @NT_FREEBSD_FCTL_STKGAP_DISABLE
	.comm	_KERN_NO_SPACE,4,2              ; @KERN_NO_SPACE
	.comm	_sgrowsiz,4,2                   ; @sgrowsiz
	.comm	_old_mlock,4,2                  ; @old_mlock
	.comm	_MAP_WIREFUTURE,4,2             ; @MAP_WIREFUTURE
	.comm	_MAP_STACK_GROWS_DOWN,4,2       ; @MAP_STACK_GROWS_DOWN
	.comm	_VM_PROT_NONE,4,2               ; @VM_PROT_NONE
	.comm	_MAP_CREATE_GUARD,4,2           ; @MAP_CREATE_GUARD
	.comm	_MAP_CREATE_STACK_GAP_DN,4,2    ; @MAP_CREATE_STACK_GAP_DN
	.comm	_VM_MAP_WIRE_USER,4,2           ; @VM_MAP_WIRE_USER
	.comm	_VM_MAP_WIRE_NOHOLES,4,2        ; @VM_MAP_WIRE_NOHOLES
	.comm	_RACCT_MEMLOCK,4,2              ; @RACCT_MEMLOCK
	.comm	_RACCT_STACK,4,2                ; @RACCT_STACK
	.comm	_RACCT_VMEM,4,2                 ; @RACCT_VMEM
	.comm	_racct_enable,8,3               ; @racct_enable
	.no_dead_strip	_vm_map_growstack
.subsections_via_symbols
