	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmspace_exec                   ## -- Begin function vmspace_exec
	.p2align	4, 0x90
_vmspace_exec:                          ## @vmspace_exec
	.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
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	(%rdi), %r12
	movq	_curthread@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	_TDP_EXECVMSPC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%edi, %edi
	andl	(%rax), %ecx
	sete	%dil
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	movq	_pmap_pinit@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	movl	%r15d, %esi
	callq	_vmspace_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movl	(%r12), %eax
	movl	%eax, (%rbx)
	movq	%r14, %rdi
	callq	_PROC_VMSPACE_LOCK
	movq	%rbx, (%r14)
	movq	%r14, %rdi
	callq	_PROC_VMSPACE_UNLOCK
	movq	(%r13), %rdi
	cmpq	%r14, 8(%rdi)
	jne	LBB0_4
## %bb.3:
	callq	_pmap_activate
	movq	(%r13), %rdi
LBB0_4:
	movq	_TDP_EXECVMSPC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rdi)
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_curthread,8,3                  ## @curthread
	.comm	_TDP_EXECVMSPC,4,2              ## @TDP_EXECVMSPC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vmspace_exec recursed"

	.comm	_pmap_pinit,4,2                 ## @pmap_pinit
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmspace_exec                   ; -- Begin function vmspace_exec
	.p2align	2
_vmspace_exec:                          ; @vmspace_exec
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x24, [x0]
Lloh0:
	adrp	x23, _curthread@GOTPAGE
Lloh1:
	ldr	x23, [x23, _curthread@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	w8, [x8]
Lloh2:
	adrp	x22, _TDP_EXECVMSPC@GOTPAGE
Lloh3:
	ldr	x22, [x22, _TDP_EXECVMSPC@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w8
	cset	w0, eq
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
Lloh6:
	adrp	x8, _pmap_pinit@GOTPAGE
Lloh7:
	ldr	x8, [x8, _pmap_pinit@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x20
	bl	_vmspace_alloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	ldr	w8, [x24]
	str	w8, [x0]
	mov	x0, x19
	bl	_PROC_VMSPACE_LOCK
	str	x20, [x19]
	mov	x0, x19
	bl	_PROC_VMSPACE_UNLOCK
	ldr	x0, [x23]
	ldr	x8, [x0, #8]
	cmp	x8, x19
	b.ne	LBB0_3
; %bb.2:
	bl	_pmap_activate
	ldr	x0, [x23]
LBB0_3:
	mov	w8, #0
	ldr	w9, [x22]
	ldr	w10, [x0]
	orr	w9, w10, w9
	str	w9, [x0]
	b	LBB0_5
LBB0_4:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
LBB0_5:
	mov	x0, x8
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_curthread,8,3                  ; @curthread
	.comm	_TDP_EXECVMSPC,4,2              ; @TDP_EXECVMSPC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vmspace_exec recursed"

	.comm	_pmap_pinit,4,2                 ; @pmap_pinit
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
