	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___vdso_gettc                   ## -- Begin function __vdso_gettc
	.p2align	4, 0x90
___vdso_gettc:                          ## @__vdso_gettc
	.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	%rsi, %r14
	movl	(%rdi), %eax
	cmpl	$130, %eax
	je	LBB0_6
## %bb.1:
	cmpl	$128, %eax
	jne	LBB0_11
## %bb.2:
	cmpl	$0, 16(%rdi)
	jle	LBB0_4
## %bb.3:
	callq	___vdso_gettc_rdtsc_low
	jmp	LBB0_5
LBB0_6:
	movq	8(%rdi), %rbx
	movq	_HPET_DEV_MAP_MAX@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jae	LBB0_11
## %bb.7:
	movq	_hpet_dev_map@GOTPCREL(%rip), %r12
	leaq	(,%rbx,4), %r15
	movq	(%r12), %rdi
	addq	%r15, %rdi
	callq	_atomic_load_acq_ptr
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	callq	___vdso_init_hpet
	addq	(%r12), %r15
	movq	%r15, %rdi
	callq	_atomic_load_acq_ptr
LBB0_9:
	movq	_MAP_FAILED@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	je	LBB0_11
## %bb.10:
	movq	_HPET_MAIN_COUNTER@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movq	(%rax,%rcx), %rax
	jmp	LBB0_5
LBB0_11:
	movq	_ENOSYS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_12
LBB0_4:
	xorl	%eax, %eax
	callq	___vdso_rdtsc32
LBB0_5:
	movq	%rax, (%r14)
	xorl	%eax, %eax
LBB0_12:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HPET_DEV_MAP_MAX,8,3           ## @HPET_DEV_MAP_MAX
	.comm	_ENOSYS,4,2                     ## @ENOSYS
	.comm	_hpet_dev_map,8,3               ## @hpet_dev_map
	.comm	_MAP_FAILED,8,3                 ## @MAP_FAILED
	.comm	_HPET_MAIN_COUNTER,4,2          ## @HPET_MAIN_COUNTER
	.comm	_hyperv_ref_tsc,8,3             ## @hyperv_ref_tsc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___vdso_gettc                   ; -- Begin function __vdso_gettc
	.p2align	2
___vdso_gettc:                          ; @__vdso_gettc
	.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, x1
	ldr	w8, [x0]
	cmp	w8, #130
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #128
	b.ne	LBB0_9
; %bb.2:
	ldr	w8, [x0, #16]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.3:
	bl	___vdso_gettc_rdtsc_low
	b	LBB0_11
LBB0_4:
	ldr	x20, [x0, #8]
Lloh0:
	adrp	x8, _HPET_DEV_MAP_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HPET_DEV_MAP_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x20, x8
	b.hs	LBB0_9
; %bb.5:
Lloh3:
	adrp	x21, _hpet_dev_map@GOTPAGE
Lloh4:
	ldr	x21, [x21, _hpet_dev_map@GOTPAGEOFF]
	ldr	x8, [x21]
	add	x0, x8, x20, lsl #2
	bl	_atomic_load_acq_ptr
	mov	x8, x0
	cbnz	x0, LBB0_7
; %bb.6:
	mov	x0, x20
	bl	___vdso_init_hpet
	ldr	x8, [x21]
	add	x0, x8, x20, lsl #2
	bl	_atomic_load_acq_ptr
	mov	x8, x0
LBB0_7:
Lloh5:
	adrp	x9, _MAP_FAILED@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MAP_FAILED@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.eq	LBB0_9
; %bb.8:
	mov	w0, #0
Lloh8:
	adrp	x9, _HPET_MAIN_COUNTER@GOTPAGE
Lloh9:
	ldr	x9, [x9, _HPET_MAIN_COUNTER@GOTPAGEOFF]
Lloh10:
	ldrsw	x9, [x9]
	ldr	x8, [x8, x9]
	b	LBB0_12
LBB0_9:
Lloh11:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	b	LBB0_13
LBB0_10:
	bl	___vdso_rdtsc32
LBB0_11:
	mov	x8, x0
	mov	w0, #0
LBB0_12:
	str	x8, [x19]
LBB0_13:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_HPET_DEV_MAP_MAX,8,3           ; @HPET_DEV_MAP_MAX
	.comm	_ENOSYS,4,2                     ; @ENOSYS
	.comm	_hpet_dev_map,8,3               ; @hpet_dev_map
	.comm	_MAP_FAILED,8,3                 ; @MAP_FAILED
	.comm	_HPET_MAIN_COUNTER,4,2          ; @HPET_MAIN_COUNTER
	.comm	_hyperv_ref_tsc,8,3             ; @hyperv_ref_tsc
.subsections_via_symbols
