	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function save_state_to_tss16
_save_state_to_tss16:                   ## @save_state_to_tss16
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_kvm_rip_read
	movl	%eax, 108(%r14)
	movq	_kvm_x86_ops@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	movl	%eax, 104(%r14)
	movq	_VCPU_REGS_RAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_kvm_register_read
	movq	%rax, 96(%r14)
	movq	_VCPU_REGS_RCX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_kvm_register_read
	movq	%rax, 88(%r14)
	movq	_VCPU_REGS_RDX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_kvm_register_read
	movq	%rax, 80(%r14)
	movq	_VCPU_REGS_RBX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_kvm_register_read
	movq	%rax, 72(%r14)
	movq	_VCPU_REGS_RSP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_kvm_register_read
	movq	%rax, 64(%r14)
	movq	_VCPU_REGS_RBP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_kvm_register_read
	movq	%rax, 56(%r14)
	movq	_VCPU_REGS_RSI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_kvm_register_read
	movq	%rax, 48(%r14)
	movq	_VCPU_REGS_RDI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_kvm_register_read
	movq	%rax, 40(%r14)
	movq	_VCPU_SREG_ES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_get_segment_selector
	movq	%rax, 32(%r14)
	movq	_VCPU_SREG_CS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_get_segment_selector
	movq	%rax, 24(%r14)
	movq	_VCPU_SREG_SS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_get_segment_selector
	movq	%rax, 16(%r14)
	movq	_VCPU_SREG_DS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_get_segment_selector
	movq	%rax, 8(%r14)
	movq	_VCPU_SREG_LDTR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_get_segment_selector
	movq	%rax, (%r14)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_kvm_x86_ops,8,3                ## @kvm_x86_ops
	.comm	_VCPU_REGS_RAX,4,2              ## @VCPU_REGS_RAX
	.comm	_VCPU_REGS_RCX,4,2              ## @VCPU_REGS_RCX
	.comm	_VCPU_REGS_RDX,4,2              ## @VCPU_REGS_RDX
	.comm	_VCPU_REGS_RBX,4,2              ## @VCPU_REGS_RBX
	.comm	_VCPU_REGS_RSP,4,2              ## @VCPU_REGS_RSP
	.comm	_VCPU_REGS_RBP,4,2              ## @VCPU_REGS_RBP
	.comm	_VCPU_REGS_RSI,4,2              ## @VCPU_REGS_RSI
	.comm	_VCPU_REGS_RDI,4,2              ## @VCPU_REGS_RDI
	.comm	_VCPU_SREG_ES,4,2               ## @VCPU_SREG_ES
	.comm	_VCPU_SREG_CS,4,2               ## @VCPU_SREG_CS
	.comm	_VCPU_SREG_SS,4,2               ## @VCPU_SREG_SS
	.comm	_VCPU_SREG_DS,4,2               ## @VCPU_SREG_DS
	.comm	_VCPU_SREG_LDTR,4,2             ## @VCPU_SREG_LDTR
	.no_dead_strip	_save_state_to_tss16
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function save_state_to_tss16
_save_state_to_tss16:                   ; @save_state_to_tss16
	.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, x1
	mov	x20, x0
	bl	_kvm_rip_read
	str	w0, [x19, #108]
Lloh0:
	adrp	x8, _kvm_x86_ops@GOTPAGE
Lloh1:
	ldr	x8, [x8, _kvm_x86_ops@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x8, [x8]
	mov	x0, x20
	blr	x8
	str	w0, [x19, #104]
Lloh3:
	adrp	x8, _VCPU_REGS_RAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VCPU_REGS_RAX@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_kvm_register_read
	str	x0, [x19, #96]
Lloh6:
	adrp	x8, _VCPU_REGS_RCX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VCPU_REGS_RCX@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_kvm_register_read
	str	x0, [x19, #88]
Lloh9:
	adrp	x8, _VCPU_REGS_RDX@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VCPU_REGS_RDX@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_kvm_register_read
	str	x0, [x19, #80]
Lloh12:
	adrp	x8, _VCPU_REGS_RBX@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VCPU_REGS_RBX@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_kvm_register_read
	str	x0, [x19, #72]
Lloh15:
	adrp	x8, _VCPU_REGS_RSP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _VCPU_REGS_RSP@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_kvm_register_read
	str	x0, [x19, #64]
Lloh18:
	adrp	x8, _VCPU_REGS_RBP@GOTPAGE
Lloh19:
	ldr	x8, [x8, _VCPU_REGS_RBP@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_kvm_register_read
	str	x0, [x19, #56]
Lloh21:
	adrp	x8, _VCPU_REGS_RSI@GOTPAGE
Lloh22:
	ldr	x8, [x8, _VCPU_REGS_RSI@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_kvm_register_read
	str	x0, [x19, #48]
Lloh24:
	adrp	x8, _VCPU_REGS_RDI@GOTPAGE
Lloh25:
	ldr	x8, [x8, _VCPU_REGS_RDI@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_kvm_register_read
	str	x0, [x19, #40]
Lloh27:
	adrp	x8, _VCPU_SREG_ES@GOTPAGE
Lloh28:
	ldr	x8, [x8, _VCPU_SREG_ES@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_get_segment_selector
	str	x0, [x19, #32]
Lloh30:
	adrp	x8, _VCPU_SREG_CS@GOTPAGE
Lloh31:
	ldr	x8, [x8, _VCPU_SREG_CS@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_get_segment_selector
	str	x0, [x19, #24]
Lloh33:
	adrp	x8, _VCPU_SREG_SS@GOTPAGE
Lloh34:
	ldr	x8, [x8, _VCPU_SREG_SS@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_get_segment_selector
	str	x0, [x19, #16]
Lloh36:
	adrp	x8, _VCPU_SREG_DS@GOTPAGE
Lloh37:
	ldr	x8, [x8, _VCPU_SREG_DS@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_get_segment_selector
	str	x0, [x19, #8]
Lloh39:
	adrp	x8, _VCPU_SREG_LDTR@GOTPAGE
Lloh40:
	ldr	x8, [x8, _VCPU_SREG_LDTR@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_get_segment_selector
	str	x0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.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
	.cfi_endproc
                                        ; -- End function
	.comm	_kvm_x86_ops,8,3                ; @kvm_x86_ops
	.comm	_VCPU_REGS_RAX,4,2              ; @VCPU_REGS_RAX
	.comm	_VCPU_REGS_RCX,4,2              ; @VCPU_REGS_RCX
	.comm	_VCPU_REGS_RDX,4,2              ; @VCPU_REGS_RDX
	.comm	_VCPU_REGS_RBX,4,2              ; @VCPU_REGS_RBX
	.comm	_VCPU_REGS_RSP,4,2              ; @VCPU_REGS_RSP
	.comm	_VCPU_REGS_RBP,4,2              ; @VCPU_REGS_RBP
	.comm	_VCPU_REGS_RSI,4,2              ; @VCPU_REGS_RSI
	.comm	_VCPU_REGS_RDI,4,2              ; @VCPU_REGS_RDI
	.comm	_VCPU_SREG_ES,4,2               ; @VCPU_SREG_ES
	.comm	_VCPU_SREG_CS,4,2               ; @VCPU_SREG_CS
	.comm	_VCPU_SREG_SS,4,2               ; @VCPU_SREG_SS
	.comm	_VCPU_SREG_DS,4,2               ; @VCPU_SREG_DS
	.comm	_VCPU_SREG_LDTR,4,2             ; @VCPU_SREG_LDTR
	.no_dead_strip	_save_state_to_tss16
.subsections_via_symbols
