	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_page_table_guest_data_init     ## -- Begin function page_table_guest_data_init
	.p2align	4, 0x90
_page_table_guest_data_init:            ## @page_table_guest_data_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	(%rax), %rdi
	movq	8(%rax), %rsi
	addq	$8, %rsi
	callq	_get_user
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	movq	_RESERVE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	shll	$20, %edi
	movq	(%rbx), %rax
	movq	8(%rax), %rsi
	addq	$4, %rsi
	callq	_put_user
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	(%rbx), %rax
	movq	8(%rax), %rsi
	movq	16(%rax), %rax
	movl	(%rax), %edi
	callq	_put_user
	testq	%rax, %rax
	je	LBB0_4
LBB0_3:
	movq	(%rbx), %rax
	movq	8(%rax), %rdx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_kill_guest
LBB0_4:
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	callq	_pgd_index
	movq	_SWITCHER_PGD_INDEX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_6
## %bb.5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_6:
	movq	(%rbx), %rax
	movq	(%rax), %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_kill_guest                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RESERVE_MEM,4,2                ## @RESERVE_MEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bad guest page %p"

	.comm	_SWITCHER_PGD_INDEX,8,3         ## @SWITCHER_PGD_INDEX
L_.str.1:                               ## @.str.1
	.asciz	"bad kernel address %#lx"

	.comm	_SWITCHER_PMD_INDEX,8,3         ## @SWITCHER_PMD_INDEX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_page_table_guest_data_init     ; -- Begin function page_table_guest_data_init
	.p2align	2
_page_table_guest_data_init:            ; @page_table_guest_data_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0]
	ldp	x0, x8, [x8]
	add	x1, x8, #8
	bl	_get_user
	cbnz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _RESERVE_MEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RESERVE_MEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsl	w0, w8, #20
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	add	x1, x8, #4
	bl	_put_user
	cbnz	x0, LBB0_3
; %bb.2:
	ldr	x8, [x19]
	ldp	x1, x9, [x8, #8]
	ldr	w0, [x9]
	bl	_put_user
	cbz	x0, LBB0_4
LBB0_3:
	ldr	x8, [x19]
	ldr	x2, [x8, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_kill_guest
LBB0_4:
	ldr	x8, [x19]
	ldr	x0, [x8]
	bl	_pgd_index
Lloh5:
	adrp	x8, _SWITCHER_PGD_INDEX@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SWITCHER_PGD_INDEX@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_6
; %bb.5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldr	x8, [x19]
	ldr	x2, [x8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_kill_guest
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_RESERVE_MEM,4,2                ; @RESERVE_MEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bad guest page %p"

	.comm	_SWITCHER_PGD_INDEX,8,3         ; @SWITCHER_PGD_INDEX
l_.str.1:                               ; @.str.1
	.asciz	"bad kernel address %#lx"

	.comm	_SWITCHER_PMD_INDEX,8,3         ; @SWITCHER_PMD_INDEX
.subsections_via_symbols
