	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_fixed_pmc
_get_fixed_pmc:                         ## @get_fixed_pmc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_MSR_CORE_PERF_FIXED_CTR0@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%esi, %eax
	jg	LBB0_1
## %bb.2:
	movl	(%rdi), %ecx
	addl	%eax, %ecx
	cmpl	%esi, %ecx
	jle	LBB0_1
## %bb.3:
	subl	%eax, %esi
	movslq	%esi, %rax
	shlq	$2, %rax
	addq	8(%rdi), %rax
	popq	%rbp
	retq
LBB0_1:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSR_CORE_PERF_FIXED_CTR0,4,2   ## @MSR_CORE_PERF_FIXED_CTR0
	.no_dead_strip	_get_fixed_pmc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_fixed_pmc
_get_fixed_pmc:                         ; @get_fixed_pmc
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _MSR_CORE_PERF_FIXED_CTR0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSR_CORE_PERF_FIXED_CTR0@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.gt	LBB0_3
; %bb.1:
	ldr	w9, [x0]
	add	w9, w9, w8
	cmp	w9, w1
	b.le	LBB0_3
; %bb.2:
	ldr	x9, [x0, #8]
	sub	w8, w1, w8
	add	x0, x9, w8, sxtw #2
	ret
LBB0_3:
	mov	x0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MSR_CORE_PERF_FIXED_CTR0,4,2   ; @MSR_CORE_PERF_FIXED_CTR0
	.no_dead_strip	_get_fixed_pmc
.subsections_via_symbols
