	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function svm_adjust_tsc_offset
_svm_adjust_tsc_offset:                 ## @svm_adjust_tsc_offset
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %r13
	movq	%rdi, %r14
	callq	_to_svm
	movq	%rax, %r15
	movq	%r13, %rax
	negq	%rax
	cmovsq	%r13, %rax
	testl	%r12d, %r12d
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_svm_scale_tsc
LBB0_2:
	movq	%rax, %rbx
	negq	%rbx
	testq	%r13, %r13
	cmovnsq	%rax, %rbx
	movq	(%r15), %rdi
	addq	%rbx, (%rdi)
	movq	_VMCB_INTERCEPTS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mark_dirty
	movq	%r15, %rdi
	callq	_is_nested
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	8(%r15), %rax
	addl	%ebx, (%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	(%r14), %edi
	movq	(%r15), %rax
	movq	(%rax), %rdx
	movq	%rdx, %rsi
	subq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_trace_kvm_write_tsc_offset     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VMCB_INTERCEPTS,4,2            ## @VMCB_INTERCEPTS
	.no_dead_strip	_svm_adjust_tsc_offset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function svm_adjust_tsc_offset
_svm_adjust_tsc_offset:                 ; @svm_adjust_tsc_offset
	.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	x22, x2
	mov	x21, x1
	mov	x19, x0
	bl	_to_svm
	mov	x20, x0
	cmp	x21, #0
	cneg	x1, x21, mi
	cbz	w22, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_svm_scale_tsc
	mov	x1, x0
LBB0_2:
	cmp	x21, #0
	cneg	x21, x1, lt
	ldr	x0, [x20]
	ldr	x8, [x0]
	add	x8, x8, x21
	str	x8, [x0]
Lloh0:
	adrp	x8, _VMCB_INTERCEPTS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VMCB_INTERCEPTS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_mark_dirty
	mov	x0, x20
	bl	_is_nested
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x8, [x20, #8]
	ldr	w9, [x8]
	add	w9, w9, w21
	str	w9, [x8]
	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_4:
	ldr	w0, [x19]
	ldr	x8, [x20]
	ldr	x2, [x8]
	sub	x1, x2, x21
	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	_trace_kvm_write_tsc_offset
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VMCB_INTERCEPTS,4,2            ; @VMCB_INTERCEPTS
	.no_dead_strip	_svm_adjust_tsc_offset
.subsections_via_symbols
