	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_reference_ts_freq
_read_reference_ts_freq:                ## @read_reference_ts_freq
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_GEN9_TIMESTAMP_OVERRIDE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_READ
	movl	%eax, %esi
	movq	_GEN9_TIMESTAMP_OVERRIDE_US_COUNTER_DIVIDER_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%esi, %eax
	movq	_GEN9_TIMESTAMP_OVERRIDE_US_COUNTER_DIVIDER_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	imull	$1000, %eax, %edi               ## imm = 0x3E8
	movq	_GEN9_TIMESTAMP_OVERRIDE_US_COUNTER_DENOMINATOR_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %esi
	movq	_GEN9_TIMESTAMP_OVERRIDE_US_COUNTER_DENOMINATOR_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %esi
	incl	%esi
	movl	$1000, %eax                     ## imm = 0x3E8
	xorl	%edx, %edx
	idivl	%esi
                                        ## kill: def $eax killed $eax def $rax
	addl	%edi, %eax
	addl	$1000, %eax                     ## imm = 0x3E8
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GEN9_TIMESTAMP_OVERRIDE,4,2    ## @GEN9_TIMESTAMP_OVERRIDE
	.comm	_GEN9_TIMESTAMP_OVERRIDE_US_COUNTER_DIVIDER_MASK,4,2 ## @GEN9_TIMESTAMP_OVERRIDE_US_COUNTER_DIVIDER_MASK
	.comm	_GEN9_TIMESTAMP_OVERRIDE_US_COUNTER_DIVIDER_SHIFT,4,2 ## @GEN9_TIMESTAMP_OVERRIDE_US_COUNTER_DIVIDER_SHIFT
	.comm	_GEN9_TIMESTAMP_OVERRIDE_US_COUNTER_DENOMINATOR_MASK,4,2 ## @GEN9_TIMESTAMP_OVERRIDE_US_COUNTER_DENOMINATOR_MASK
	.comm	_GEN9_TIMESTAMP_OVERRIDE_US_COUNTER_DENOMINATOR_SHIFT,4,2 ## @GEN9_TIMESTAMP_OVERRIDE_US_COUNTER_DENOMINATOR_SHIFT
	.no_dead_strip	_read_reference_ts_freq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_reference_ts_freq
_read_reference_ts_freq:                ; @read_reference_ts_freq
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _GEN9_TIMESTAMP_OVERRIDE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GEN9_TIMESTAMP_OVERRIDE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_I915_READ
Lloh3:
	adrp	x8, _GEN9_TIMESTAMP_OVERRIDE_US_COUNTER_DIVIDER_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GEN9_TIMESTAMP_OVERRIDE_US_COUNTER_DIVIDER_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh6:
	adrp	x9, _GEN9_TIMESTAMP_OVERRIDE_US_COUNTER_DIVIDER_SHIFT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _GEN9_TIMESTAMP_OVERRIDE_US_COUNTER_DIVIDER_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	asr	w8, w8, w9
Lloh9:
	adrp	x9, _GEN9_TIMESTAMP_OVERRIDE_US_COUNTER_DENOMINATOR_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _GEN9_TIMESTAMP_OVERRIDE_US_COUNTER_DENOMINATOR_MASK@GOTPAGEOFF]
	mov	w10, #1000
Lloh11:
	ldr	w9, [x9]
	and	w9, w9, w0
Lloh12:
	adrp	x11, _GEN9_TIMESTAMP_OVERRIDE_US_COUNTER_DENOMINATOR_SHIFT@GOTPAGE
Lloh13:
	ldr	x11, [x11, _GEN9_TIMESTAMP_OVERRIDE_US_COUNTER_DENOMINATOR_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w11, [x11]
	asr	w9, w9, w11
	add	w9, w9, #1
	sdiv	w9, w10, w9
	madd	w8, w8, w10, w9
	add	w0, w8, #1000
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.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	_GEN9_TIMESTAMP_OVERRIDE,4,2    ; @GEN9_TIMESTAMP_OVERRIDE
	.comm	_GEN9_TIMESTAMP_OVERRIDE_US_COUNTER_DIVIDER_MASK,4,2 ; @GEN9_TIMESTAMP_OVERRIDE_US_COUNTER_DIVIDER_MASK
	.comm	_GEN9_TIMESTAMP_OVERRIDE_US_COUNTER_DIVIDER_SHIFT,4,2 ; @GEN9_TIMESTAMP_OVERRIDE_US_COUNTER_DIVIDER_SHIFT
	.comm	_GEN9_TIMESTAMP_OVERRIDE_US_COUNTER_DENOMINATOR_MASK,4,2 ; @GEN9_TIMESTAMP_OVERRIDE_US_COUNTER_DENOMINATOR_MASK
	.comm	_GEN9_TIMESTAMP_OVERRIDE_US_COUNTER_DENOMINATOR_SHIFT,4,2 ; @GEN9_TIMESTAMP_OVERRIDE_US_COUNTER_DENOMINATOR_SHIFT
	.no_dead_strip	_read_reference_ts_freq
.subsections_via_symbols
