	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmspace_alloc                  ## -- Begin function vmspace_alloc
	.p2align	4, 0x90
_vmspace_alloc:                         ## @vmspace_alloc
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movl	%esi, %r14d
	movl	%edi, %r15d
	movq	_vmspace_zone@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	_M_WAITOK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_uma_zalloc
	movq	%rax, %rbx
	xorl	%edi, %edi
	cmpq	$0, 72(%rax)
	sete	%dil
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	movq	%rbx, %rdi
	callq	_vmspace_pmap
	movl	%eax, %edi
	callq	*%r12
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%rbx, %r12
	addq	$72, %r12
	movq	_KTR_VM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdx
	callq	_CTR1
	movq	%rbx, %rdi
	callq	_vmspace_pmap
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	callq	__vm_map_init
	movl	$1, (%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
	movups	%xmm0, 24(%rbx)
	movups	%xmm0, 40(%rbx)
	movups	%xmm0, 56(%rbx)
	jmp	LBB0_3
LBB0_1:
	movl	(%r13), %edi
	movq	%rbx, %rsi
	callq	_uma_zfree
	xorl	%ebx, %ebx
LBB0_3:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_vmspace_zone,4,2               ## @vmspace_zone
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vm_map.pmap must be NULL"

	.comm	_KTR_VM,4,2                     ## @KTR_VM
L_.str.1:                               ## @.str.1
	.asciz	"vmspace_alloc: %p"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmspace_alloc                  ; -- Begin function vmspace_alloc
	.p2align	2
_vmspace_alloc:                         ; @vmspace_alloc
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x23, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x24, _vmspace_zone@GOTPAGE
Lloh1:
	ldr	x24, [x24, _vmspace_zone@GOTPAGEOFF]
	ldr	w0, [x24]
Lloh2:
	adrp	x8, _M_WAITOK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _M_WAITOK@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_uma_zalloc
	mov	x19, x0
	mov	x22, x0
	ldr	x8, [x22, #72]!
	cmp	x8, #0
	cset	w0, eq
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
	mov	x0, x19
	bl	_vmspace_pmap
	blr	x23
	cbz	w0, LBB0_2
; %bb.1:
Lloh7:
	adrp	x8, _KTR_VM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _KTR_VM@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_CTR1
	mov	x0, x19
	bl	_vmspace_pmap
	mov	x1, x0
	mov	x0, x22
	mov	x2, x21
	mov	x3, x20
	bl	__vm_map_init
	mov	w8, #1
	str	w8, [x19]
	movi.2d	v0, #0000000000000000
	stur	q0, [x19, #8]
	stur	q0, [x19, #24]
	stur	q0, [x19, #40]
	stur	q0, [x19, #56]
	b	LBB0_3
LBB0_2:
	ldr	w0, [x24]
	mov	x1, x19
	bl	_uma_zfree
	mov	x19, #0
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_vmspace_zone,4,2               ; @vmspace_zone
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vm_map.pmap must be NULL"

	.comm	_KTR_VM,4,2                     ; @KTR_VM
l_.str.1:                               ; @.str.1
	.asciz	"vmspace_alloc: %p"

.subsections_via_symbols
