	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_load_guest_gdt_entry           ## -- Begin function load_guest_gdt_entry
	.p2align	4, 0x90
_load_guest_gdt_entry:                  ## @load_guest_gdt_entry
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	8(%rdi), %rdi
	callq	_ARRAY_SIZE
	cmpq	%rbx, %rax
	jbe	LBB0_2
## %bb.1:
	movq	8(%r14), %rax
	movq	%rbx, %rcx
	shlq	$4, %rcx
	movq	%r12, (%rax,%rcx)
	movq	%r15, 8(%rax,%rcx)
	leaq	1(%rbx), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_fixup_gdt_table
	movq	_CHANGED_GDT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kill_guest                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"too many gdt entries %i"

	.comm	_CHANGED_GDT,4,2                ## @CHANGED_GDT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_load_guest_gdt_entry           ; -- Begin function load_guest_gdt_entry
	.p2align	2
_load_guest_gdt_entry:                  ; @load_guest_gdt_entry
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, x3
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x0, [x0, #8]
	bl	_ARRAY_SIZE
	cmp	x0, x20
	b.ls	LBB0_2
; %bb.1:
	ldr	x8, [x19, #8]
	add	x8, x8, x20, lsl #4
	stp	x22, x21, [x8]
	add	x2, x20, #1
	mov	x0, x19
	mov	x1, x20
	bl	_fixup_gdt_table
Lloh0:
	adrp	x8, _CHANGED_GDT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CHANGED_GDT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_kill_guest
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"too many gdt entries %i"

	.comm	_CHANGED_GDT,4,2                ; @CHANGED_GDT
.subsections_via_symbols
