	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kvm_write_tsc                  ## -- Begin function kvm_write_tsc
	.p2align	4, 0x90
_kvm_write_tsc:                         ## @kvm_write_tsc
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	16(%rdi), %r14
	movl	(%rsi), %ebx
	leaq	12(%r14), %rdi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	movq	_kvm_x86_ops@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	*(%rax)
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	callq	_get_kernel_ns
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%eax, %esi
	subl	(%r14), %esi
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	subl	4(%r14), %ebx
	movl	%ebx, %r13d
	negl	%r13d
	cmovsl	%ebx, %r13d
	movq	%r15, %rdi
	callq	_nsec_to_cycles
	subl	%eax, %r13d
	movl	%r13d, %r12d
	negl	%r12d
	cmovsl	%r13d, %r12d
	movq	_NSEC_PER_SEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_nsec_to_cycles
	cmpl	%eax, %r12d
	jge	LBB0_3
## %bb.1:
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_check_tsc_unstable
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
	jmp	LBB0_5
LBB0_3:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r14)
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, 4(%r14)
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, 8(%r14)
	movl	%eax, %r14d
	jmp	LBB0_6
LBB0_4:
	movl	8(%r14), %r13d
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	xorl	%eax, %eax
	callq	_pr_debug
LBB0_5:
	movl	%ebx, %r14d
LBB0_6:
	movq	_kvm_x86_ops@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	*8(%rax)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	movq	$0, 8(%r15)
	movl	%r12d, (%r15)
	movl	%r14d, 4(%r15)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_kvm_x86_ops,8,3                ## @kvm_x86_ops
	.comm	_NSEC_PER_SEC,4,2               ## @NSEC_PER_SEC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"kvm: matched tsc offset for %llu\n"

L_.str.1:                               ## @.str.1
	.asciz	"kvm: matched write on unstable tsc\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kvm_write_tsc                  ; -- Begin function kvm_write_tsc
	.p2align	2
_kvm_write_tsc:                         ; @kvm_write_tsc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	x25, [x0, #16]
	ldr	w20, [x1]
	add	x21, x25, #12
	mov	x0, x21
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x24, _kvm_x86_ops@GOTPAGE
Lloh1:
	ldr	x24, [x24, _kvm_x86_ops@GOTPAGEOFF]
	ldr	x8, [x24]
	ldr	x8, [x8]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	mov	x23, x0
	bl	_get_kernel_ns
	mov	x22, x0
	ldp	w8, w9, [x25]
	sub	w1, w0, w8
	subs	w8, w20, w9
	cneg	w26, w8, mi
	mov	x0, x19
	bl	_nsec_to_cycles
	subs	w8, w26, w0
	cneg	w26, w8, mi
Lloh2:
	adrp	x8, _NSEC_PER_SEC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NSEC_PER_SEC@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_nsec_to_cycles
	cmp	w26, w0
	b.ge	LBB0_3
; %bb.1:
	bl	_check_tsc_unstable
	cbz	w0, LBB0_4
; %bb.2:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_3:
	stp	w22, w20, [x25]
	str	w23, [x25, #8]
	b	LBB0_6
LBB0_4:
	ldr	w23, [x25, #8]
	str	x20, [sp]
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
LBB0_5:
	bl	_pr_debug
LBB0_6:
	ldr	x8, [x24]
	ldr	x8, [x8, #8]
	mov	x0, x19
	mov	x1, x23
	blr	x8
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	str	xzr, [x19, #8]
	stp	w20, w22, [x19]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_kvm_x86_ops,8,3                ; @kvm_x86_ops
	.comm	_NSEC_PER_SEC,4,2               ; @NSEC_PER_SEC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"kvm: matched tsc offset for %llu\n"

l_.str.1:                               ; @.str.1
	.asciz	"kvm: matched write on unstable tsc\n"

.subsections_via_symbols
