	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmx_set_tsc_offset             ## -- Begin function vmx_set_tsc_offset
	.p2align	4, 0x90
_vmx_set_tsc_offset:                    ## @vmx_set_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	8(%rdi), %rax
	movslq	%esi, %rbx
	movl	(%rax,%rbx,4), %ecx
	movq	_PROCBASED_TSC_OFFSET@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	testl	%ecx, %esi
	jne	LBB0_2
## %bb.1:
	movq	%rdi, %r15
	orl	%ecx, %esi
	movl	%esi, (%rax,%rbx,4)
	movq	_VMCS_PRI_PROC_BASED_CTLS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_vmcs_write
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rdx
	movl	%ebx, %esi
	callq	_VCPU_CTR0
LBB0_2:
	movq	_VMCS_TSC_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vmwrite                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PROCBASED_TSC_OFFSET,4,2       ## @PROCBASED_TSC_OFFSET
	.comm	_VMCS_PRI_PROC_BASED_CTLS,4,2   ## @VMCS_PRI_PROC_BASED_CTLS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Enabling TSC offsetting"

	.comm	_VMCS_TSC_OFFSET,4,2            ## @VMCS_TSC_OFFSET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmx_set_tsc_offset             ; -- Begin function vmx_set_tsc_offset
	.p2align	2
_vmx_set_tsc_offset:                    ; @vmx_set_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	x19, x2
	ldr	x8, [x0, #8]
	ldr	w9, [x8, w1, sxtw #2]
Lloh0:
	adrp	x10, _PROCBASED_TSC_OFFSET@GOTPAGE
Lloh1:
	ldr	x10, [x10, _PROCBASED_TSC_OFFSET@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w9
	b.ne	LBB0_2
; %bb.1:
	mov	x20, x1
	mov	x21, x0
	sxtw	x11, w20
	orr	w1, w10, w9
	str	w1, [x8, x11, lsl #2]
Lloh3:
	adrp	x8, _VMCS_PRI_PROC_BASED_CTLS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VMCS_PRI_PROC_BASED_CTLS@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_vmcs_write
	ldr	w0, [x21]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x1, x20
	bl	_VCPU_CTR0
LBB0_2:
Lloh8:
	adrp	x8, _VMCS_TSC_OFFSET@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VMCS_TSC_OFFSET@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	x1, 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
	b	_vmwrite
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_PROCBASED_TSC_OFFSET,4,2       ; @PROCBASED_TSC_OFFSET
	.comm	_VMCS_PRI_PROC_BASED_CTLS,4,2   ; @VMCS_PRI_PROC_BASED_CTLS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Enabling TSC offsetting"

	.comm	_VMCS_TSC_OFFSET,4,2            ; @VMCS_TSC_OFFSET
.subsections_via_symbols
