	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function load_guest_segment_descriptor
_load_guest_segment_descriptor:         ## @load_guest_segment_descriptor
	.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	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %ebx
	movq	%rdi, %r14
	leaq	-56(%rbp), %rdx
	callq	_get_segment_descriptor_dtable
	movl	%ebx, %eax
	orl	$7, %eax
	cmpl	%eax, -56(%rbp)
	jge	LBB0_2
## %bb.1:
	movq	_GP_VECTOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	$65532, %ebx                    ## imm = 0xFFFC
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_kvm_queue_exception_e
	movl	$1, %ebx
	jmp	LBB0_4
LBB0_2:
	andl	$-8, %ebx
	movslq	%ebx, %r12
	addq	-48(%rbp), %r12
	leaq	-36(%rbp), %r8
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	$4, %edx
	movq	%r14, %rcx
	callq	_kvm_read_guest_virt_system
	movl	%eax, %ebx
	movq	_X86EMUL_PROPAGATE_FAULT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_4
## %bb.3:
	movl	-36(%rbp), %edx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_kvm_inject_page_fault
LBB0_4:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GP_VECTOR,4,2                  ## @GP_VECTOR
	.comm	_X86EMUL_PROPAGATE_FAULT,4,2    ## @X86EMUL_PROPAGATE_FAULT
	.no_dead_strip	_load_guest_segment_descriptor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function load_guest_segment_descriptor
_load_guest_segment_descriptor:         ; @load_guest_segment_descriptor
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	add	x2, sp, #16
	bl	_get_segment_descriptor_dtable
	ldr	w8, [sp, #16]
	orr	w9, w21, #0x7
	cmp	w8, w9
	b.ge	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _GP_VECTOR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GP_VECTOR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	and	w2, w21, #0xfffc
	mov	x0, x19
	bl	_kvm_queue_exception_e
	mov	w20, #1
	b	LBB0_4
LBB0_2:
	and	w8, w21, #0xfffffff8
	ldr	x9, [sp, #24]
	add	x21, x9, w8, sxtw
	add	x4, sp, #12
	mov	x0, x21
	mov	x1, x20
	mov	w2, #4
	mov	x3, x19
	bl	_kvm_read_guest_virt_system
	mov	x20, x0
Lloh3:
	adrp	x8, _X86EMUL_PROPAGATE_FAULT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _X86EMUL_PROPAGATE_FAULT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.3:
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	x1, x21
	bl	_kvm_inject_page_fault
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GP_VECTOR,4,2                  ; @GP_VECTOR
	.comm	_X86EMUL_PROPAGATE_FAULT,4,2    ; @X86EMUL_PROPAGATE_FAULT
	.no_dead_strip	_load_guest_segment_descriptor
.subsections_via_symbols
