	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _amd64_initvtop
__amd64_initvtop:                       ## @_amd64_initvtop
	.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	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movl	$16, %esi
	callq	__kvm_malloc
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	$0, (%rax)
	cmpq	$0, (%rbx)
	jne	LBB0_3
## %bb.2:
	leaq	12(%rax), %rsi
	addq	$8, %rax
	movq	%rbx, %rdi
	movq	%rax, %rdx
	callq	__kvm_read_core_phdrs
	cmpl	$-1, %eax
	je	LBB0_16
LBB0_3:
	leaq	L_.str.1(%rip), %rax
	movq	%rax, -64(%rbp)
	movq	$0, -48(%rbp)
	leaq	-64(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_kvm_nlist2
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movl	16(%rbx), %esi
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_15
LBB0_5:
	movl	16(%rbx), %esi
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_15
LBB0_6:
	movq	-56(%rbp), %r14
	leaq	L_.str.3(%rip), %rax
	movq	%rax, -64(%rbp)
	movq	$0, -48(%rbp)
	leaq	-64(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_kvm_nlist2
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movl	16(%rbx), %esi
	leaq	L_.str.4(%rip), %rdx
	jmp	LBB0_15
LBB0_9:
	movq	-56(%rbp), %rsi
	subq	%r14, %rsi
	leaq	-72(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$8, %ecx
	callq	_kvm_read2
	cmpl	$8, %eax
	jne	LBB0_13
## %bb.10:
	movq	-72(%rbp), %rdi
	callq	_le64toh
	movq	%rax, -72(%rbp)
	movq	_AMD64_PAGE_SIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	__kvm_malloc
	testq	%rax, %rax
	je	LBB0_14
## %bb.11:
	movq	%rax, %r14
	movq	-72(%rbp), %rsi
	movl	(%r15), %ecx
	movq	%rbx, %rdi
	movq	%rax, %rdx
	callq	_kvm_read2
	cmpl	(%r15), %eax
	jne	LBB0_19
## %bb.12:
	movq	8(%rbx), %rax
	movq	%r14, (%rax)
	xorl	%eax, %eax
	jmp	LBB0_17
LBB0_13:
	movl	16(%rbx), %esi
	leaq	L_.str.5(%rip), %rdx
	jmp	LBB0_15
LBB0_14:
	movl	16(%rbx), %esi
	leaq	L_.str.6(%rip), %rdx
LBB0_15:
	movq	%rbx, %rdi
	callq	__kvm_err
LBB0_16:
	movl	$-1, %eax
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_20
## %bb.18:
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movl	16(%rbx), %esi
	leaq	L_.str.5(%rip), %rdx
	movq	%rbx, %rdi
	callq	__kvm_err
	movq	%r14, %rdi
	callq	_free
	jmp	LBB0_16
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot allocate vm"

L_.str.1:                               ## @.str.1
	.asciz	"kernbase"

L_.str.2:                               ## @.str.2
	.asciz	"bad namelist - no kernbase"

L_.str.3:                               ## @.str.3
	.asciz	"KPML4phys"

L_.str.4:                               ## @.str.4
	.asciz	"bad namelist - no KPML4phys"

L_.str.5:                               ## @.str.5
	.asciz	"cannot read KPML4phys"

	.comm	_AMD64_PAGE_SIZE,4,2            ## @AMD64_PAGE_SIZE
L_.str.6:                               ## @.str.6
	.asciz	"cannot allocate PML4"

	.no_dead_strip	__amd64_initvtop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _amd64_initvtop
__amd64_initvtop:                       ; @_amd64_initvtop
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	mov	w1, #16
	bl	__kvm_malloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_5
; %bb.1:
	str	xzr, [x0]
	ldr	x8, [x19]
	cbnz	x8, LBB0_3
; %bb.2:
	add	x1, x0, #12
	add	x2, x0, #8
	mov	x0, x19
	bl	__kvm_read_core_phdrs
	cmn	w0, #1
	b.eq	LBB0_16
LBB0_3:
Lloh3:
	adrp	x8, l_.str.1@PAGE
Lloh4:
	add	x8, x8, l_.str.1@PAGEOFF
	str	x8, [sp, #8]
	str	xzr, [sp, #24]
	add	x1, sp, #8
	mov	x0, x19
	bl	_kvm_nlist2
	cbz	x0, LBB0_6
; %bb.4:
	ldr	w1, [x19, #16]
Lloh5:
	adrp	x2, l_.str.2@PAGE
Lloh6:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_14
LBB0_5:
	ldr	w1, [x19, #16]
Lloh7:
	adrp	x2, l_.str@PAGE
Lloh8:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_14
LBB0_6:
	ldr	x20, [sp, #16]
Lloh9:
	adrp	x8, l_.str.3@PAGE
Lloh10:
	add	x8, x8, l_.str.3@PAGEOFF
	str	x8, [sp, #8]
	str	xzr, [sp, #24]
	add	x1, sp, #8
	mov	x0, x19
	bl	_kvm_nlist2
	cbz	x0, LBB0_8
; %bb.7:
	ldr	w1, [x19, #16]
Lloh11:
	adrp	x2, l_.str.4@PAGE
Lloh12:
	add	x2, x2, l_.str.4@PAGEOFF
	b	LBB0_14
LBB0_8:
	ldr	x8, [sp, #16]
	sub	x1, x8, x20
	mov	x2, sp
	mov	x0, x19
	mov	w3, #8
	bl	_kvm_read2
	cmp	w0, #8
	b.ne	LBB0_12
; %bb.9:
	ldr	x0, [sp]
	bl	_le64toh
	str	x0, [sp]
Lloh13:
	adrp	x21, _AMD64_PAGE_SIZE@GOTPAGE
Lloh14:
	ldr	x21, [x21, _AMD64_PAGE_SIZE@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	__kvm_malloc
	cbz	x0, LBB0_13
; %bb.10:
	mov	x20, x0
	ldr	x1, [sp]
	ldr	w3, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_kvm_read2
	ldr	w8, [x21]
	cmp	w0, w8
	b.ne	LBB0_18
; %bb.11:
	mov	w0, #0
	ldr	x8, [x19, #8]
	str	x20, [x8]
	b	LBB0_16
LBB0_12:
	ldr	w1, [x19, #16]
Lloh15:
	adrp	x2, l_.str.5@PAGE
Lloh16:
	add	x2, x2, l_.str.5@PAGEOFF
	b	LBB0_14
LBB0_13:
	ldr	w1, [x19, #16]
Lloh17:
	adrp	x2, l_.str.6@PAGE
Lloh18:
	add	x2, x2, l_.str.6@PAGEOFF
LBB0_14:
	mov	x0, x19
	bl	__kvm_err
LBB0_15:
	mov	w0, #-1
LBB0_16:
	ldr	x8, [sp, #40]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.17:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_18:
	ldr	w1, [x19, #16]
Lloh22:
	adrp	x2, l_.str.5@PAGE
Lloh23:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	__kvm_err
	mov	x0, x20
	bl	_free
	b	LBB0_15
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot allocate vm"

l_.str.1:                               ; @.str.1
	.asciz	"kernbase"

l_.str.2:                               ; @.str.2
	.asciz	"bad namelist - no kernbase"

l_.str.3:                               ; @.str.3
	.asciz	"KPML4phys"

l_.str.4:                               ; @.str.4
	.asciz	"bad namelist - no KPML4phys"

l_.str.5:                               ; @.str.5
	.asciz	"cannot read KPML4phys"

	.comm	_AMD64_PAGE_SIZE,4,2            ; @AMD64_PAGE_SIZE
l_.str.6:                               ; @.str.6
	.asciz	"cannot allocate PML4"

	.no_dead_strip	__amd64_initvtop
.subsections_via_symbols
