	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nested_svm_check_permissions
_nested_svm_check_permissions:          ## @nested_svm_check_permissions
	.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	_EFER_SVME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_is_paging
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movq	8(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.5:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_kvm_inject_gp
	jmp	LBB0_6
LBB0_2:
	movq	_UD_VECTOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_kvm_queue_exception
LBB0_6:
	movl	$1, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	xorl	%eax, %eax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_EFER_SVME,4,2                  ## @EFER_SVME
	.comm	_UD_VECTOR,4,2                  ## @UD_VECTOR
	.no_dead_strip	_nested_svm_check_permissions
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nested_svm_check_permissions
_nested_svm_check_permissions:          ; @nested_svm_check_permissions
	.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	w8, [x0]
Lloh0:
	adrp	x9, _EFER_SVME@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EFER_SVME@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_is_paging
	cbz	w0, LBB0_4
; %bb.2:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.3:
	mov	x0, x19
	mov	w1, #0
	bl	_kvm_inject_gp
	b	LBB0_5
LBB0_4:
Lloh3:
	adrp	x8, _UD_VECTOR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _UD_VECTOR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_kvm_queue_exception
LBB0_5:
	mov	w0, #1
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	w0, #0
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EFER_SVME,4,2                  ; @EFER_SVME
	.comm	_UD_VECTOR,4,2                  ; @UD_VECTOR
	.no_dead_strip	_nested_svm_check_permissions
.subsections_via_symbols
