	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function guest_paging_info
_guest_paging_info:                     ## @guest_paging_info
	.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	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %r15d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_VM_REG_GUEST_CR0@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	movq	_VM_REG_GUEST_CR3@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -76(%rbp)
	movq	_VM_REG_GUEST_CR4@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movq	_VM_REG_GUEST_EFER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)
	movq	_ctx@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	-80(%rbp), %r12
	movq	%r12, %rdi
	callq	_nitems
	leaq	-64(%rbp), %r8
	movl	%ebx, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	movq	%r12, %rcx
	callq	_vm_get_register_set
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.2:
	movl	-60(%rbp), %eax
	movl	%eax, (%r14)
	movq	$0, 16(%r14)
	movl	-52(%rbp), %eax
	movq	_EFER_LMA@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	_CPU_MODE_64BIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%r14)
	movl	-64(%rbp), %ecx
	jmp	LBB0_8
LBB0_1:
	movl	$-1, %eax
	jmp	LBB0_16
LBB0_4:
	movl	-64(%rbp), %ecx
	movq	_CR0_PE@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_6
## %bb.5:
	movq	_CPU_MODE_PROTECTED@GOTPCREL(%rip), %rdx
	jmp	LBB0_7
LBB0_6:
	movq	_CPU_MODE_REAL@GOTPCREL(%rip), %rdx
LBB0_7:
	movl	(%rdx), %edx
	movl	%edx, 8(%r14)
LBB0_8:
	movq	_CR0_PG@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_9
## %bb.10:
	movq	_CR4_PAE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, -56(%rbp)
	je	LBB0_11
## %bb.12:
	movq	_EFER_LME@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_13
## %bb.14:
	movq	_PAGING_MODE_PAE@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_9:
	movq	_PAGING_MODE_FLAT@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_11:
	movq	_PAGING_MODE_32@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_13:
	movq	_PAGING_MODE_64@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	xorl	%eax, %eax
LBB0_16:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_18
## %bb.17:
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_VM_REG_GUEST_CR0,4,2           ## @VM_REG_GUEST_CR0
	.comm	_VM_REG_GUEST_CR3,4,2           ## @VM_REG_GUEST_CR3
	.comm	_VM_REG_GUEST_CR4,4,2           ## @VM_REG_GUEST_CR4
	.comm	_VM_REG_GUEST_EFER,4,2          ## @VM_REG_GUEST_EFER
	.comm	_ctx,4,2                        ## @ctx
	.comm	_EFER_LMA,4,2                   ## @EFER_LMA
	.comm	_CPU_MODE_64BIT,4,2             ## @CPU_MODE_64BIT
	.comm	_CR0_PE,4,2                     ## @CR0_PE
	.comm	_CPU_MODE_PROTECTED,4,2         ## @CPU_MODE_PROTECTED
	.comm	_CPU_MODE_REAL,4,2              ## @CPU_MODE_REAL
	.comm	_CR0_PG,4,2                     ## @CR0_PG
	.comm	_PAGING_MODE_FLAT,4,2           ## @PAGING_MODE_FLAT
	.comm	_CR4_PAE,4,2                    ## @CR4_PAE
	.comm	_PAGING_MODE_32,4,2             ## @PAGING_MODE_32
	.comm	_EFER_LME,4,2                   ## @EFER_LME
	.comm	_PAGING_MODE_64,4,2             ## @PAGING_MODE_64
	.comm	_PAGING_MODE_PAE,4,2            ## @PAGING_MODE_PAE
	.no_dead_strip	_guest_paging_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function guest_paging_info
_guest_paging_info:                     ; @guest_paging_info
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _VM_REG_GUEST_CR0@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VM_REG_GUEST_CR0@GOTPAGEOFF]
	str	x8, [sp, #40]
Lloh5:
	ldr	w8, [x9]
Lloh6:
	adrp	x9, _VM_REG_GUEST_CR3@GOTPAGE
Lloh7:
	ldr	x9, [x9, _VM_REG_GUEST_CR3@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #8]
Lloh9:
	adrp	x8, _VM_REG_GUEST_CR4@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VM_REG_GUEST_CR4@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _VM_REG_GUEST_EFER@GOTPAGE
Lloh13:
	ldr	x9, [x9, _VM_REG_GUEST_EFER@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #16]
Lloh15:
	adrp	x8, _ctx@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ctx@GOTPAGEOFF]
Lloh17:
	ldr	w21, [x8]
	add	x0, sp, #8
	bl	_nitems
	mov	x2, x0
	add	x3, sp, #8
	add	x4, sp, #24
	mov	x0, x21
	mov	x1, x20
	bl	_vm_get_register_set
	cmn	w0, #1
	b.eq	LBB0_13
; %bb.1:
	ldr	w9, [sp, #28]
	ldr	w8, [sp, #36]
	str	w9, [x19]
	str	xzr, [x19, #16]
Lloh18:
	adrp	x9, _EFER_LMA@GOTPAGE
Lloh19:
	ldr	x9, [x9, _EFER_LMA@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
Lloh21:
	adrp	x9, _CPU_MODE_64BIT@GOTPAGE
Lloh22:
	ldr	x9, [x9, _CPU_MODE_64BIT@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	str	w9, [x19, #8]
	ldr	w9, [sp, #24]
	b	LBB0_7
LBB0_3:
	ldr	w9, [sp, #24]
Lloh24:
	adrp	x10, _CR0_PE@GOTPAGE
Lloh25:
	ldr	x10, [x10, _CR0_PE@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_5
; %bb.4:
Lloh27:
	adrp	x10, _CPU_MODE_PROTECTED@GOTPAGE
Lloh28:
	ldr	x10, [x10, _CPU_MODE_PROTECTED@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh29:
	adrp	x10, _CPU_MODE_REAL@GOTPAGE
Lloh30:
	ldr	x10, [x10, _CPU_MODE_REAL@GOTPAGEOFF]
LBB0_6:
	ldr	w10, [x10]
	str	w10, [x19, #8]
LBB0_7:
Lloh31:
	adrp	x10, _CR0_PG@GOTPAGE
Lloh32:
	ldr	x10, [x10, _CR0_PG@GOTPAGEOFF]
Lloh33:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_10
; %bb.8:
	ldr	w9, [sp, #32]
Lloh34:
	adrp	x10, _CR4_PAE@GOTPAGE
Lloh35:
	ldr	x10, [x10, _CR4_PAE@GOTPAGEOFF]
Lloh36:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_11
; %bb.9:
Lloh37:
	adrp	x9, _EFER_LME@GOTPAGE
Lloh38:
	ldr	x9, [x9, _EFER_LME@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
Lloh40:
	adrp	x10, _PAGING_MODE_64@GOTPAGE
Lloh41:
	ldr	x10, [x10, _PAGING_MODE_64@GOTPAGEOFF]
Lloh42:
	adrp	x11, _PAGING_MODE_PAE@GOTPAGE
Lloh43:
	ldr	x11, [x11, _PAGING_MODE_PAE@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x11, x10, eq
	b	LBB0_12
LBB0_10:
Lloh44:
	adrp	x8, _PAGING_MODE_FLAT@GOTPAGE
Lloh45:
	ldr	x8, [x8, _PAGING_MODE_FLAT@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh46:
	adrp	x8, _PAGING_MODE_32@GOTPAGE
Lloh47:
	ldr	x8, [x8, _PAGING_MODE_32@GOTPAGEOFF]
LBB0_12:
	mov	w0, #0
	ldr	w8, [x8]
	str	w8, [x19, #4]
LBB0_13:
	ldr	x8, [sp, #40]
Lloh48:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh49:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh50:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	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_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.cfi_endproc
                                        ; -- End function
	.comm	_VM_REG_GUEST_CR0,4,2           ; @VM_REG_GUEST_CR0
	.comm	_VM_REG_GUEST_CR3,4,2           ; @VM_REG_GUEST_CR3
	.comm	_VM_REG_GUEST_CR4,4,2           ; @VM_REG_GUEST_CR4
	.comm	_VM_REG_GUEST_EFER,4,2          ; @VM_REG_GUEST_EFER
	.comm	_ctx,4,2                        ; @ctx
	.comm	_EFER_LMA,4,2                   ; @EFER_LMA
	.comm	_CPU_MODE_64BIT,4,2             ; @CPU_MODE_64BIT
	.comm	_CR0_PE,4,2                     ; @CR0_PE
	.comm	_CPU_MODE_PROTECTED,4,2         ; @CPU_MODE_PROTECTED
	.comm	_CPU_MODE_REAL,4,2              ; @CPU_MODE_REAL
	.comm	_CR0_PG,4,2                     ; @CR0_PG
	.comm	_PAGING_MODE_FLAT,4,2           ; @PAGING_MODE_FLAT
	.comm	_CR4_PAE,4,2                    ; @CR4_PAE
	.comm	_PAGING_MODE_32,4,2             ; @PAGING_MODE_32
	.comm	_EFER_LME,4,2                   ; @EFER_LME
	.comm	_PAGING_MODE_64,4,2             ; @PAGING_MODE_64
	.comm	_PAGING_MODE_PAE,4,2            ; @PAGING_MODE_PAE
	.no_dead_strip	_guest_paging_info
.subsections_via_symbols
