	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function global_idx_to_pmc
_global_idx_to_pmc:                     ## @global_idx_to_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	_X86_PMC_IDX_FIXED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%esi, %eax
	jle	LBB0_2
## %bb.1:
	movq	_MSR_P6_EVNTSEL0@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movslq	%esi, %rsi
	addq	%rdx, %rsi
	popq	%rbp
	jmp	_get_gp_pmc                     ## TAILCALL
LBB0_2:
	subl	%eax, %esi
	popq	%rbp
	jmp	_get_fixed_pmc_idx              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_X86_PMC_IDX_FIXED,4,2          ## @X86_PMC_IDX_FIXED
	.comm	_MSR_P6_EVNTSEL0,8,3            ## @MSR_P6_EVNTSEL0
	.no_dead_strip	_global_idx_to_pmc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function global_idx_to_pmc
_global_idx_to_pmc:                     ; @global_idx_to_pmc
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _X86_PMC_IDX_FIXED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _X86_PMC_IDX_FIXED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.le	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _MSR_P6_EVNTSEL0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSR_P6_EVNTSEL0@GOTPAGEOFF]
Lloh5:
	ldr	x2, [x8]
	add	x1, x2, w1, sxtw
	b	_get_gp_pmc
LBB0_2:
	sub	w1, w1, w8
	b	_get_fixed_pmc_idx
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_X86_PMC_IDX_FIXED,4,2          ; @X86_PMC_IDX_FIXED
	.comm	_MSR_P6_EVNTSEL0,8,3            ; @MSR_P6_EVNTSEL0
	.no_dead_strip	_global_idx_to_pmc
.subsections_via_symbols
