	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function x86_pmu_event_idx
_x86_pmu_event_idx:                     ## @x86_pmu_event_idx
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %eax
	movq	_x86_pmu@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_3
## %bb.1:
	movq	_X86_PMC_IDX_FIXED@GOTPCREL(%rip), %rdx
	movl	%eax, %ecx
	subl	(%rdx), %ecx
	jl	LBB0_3
## %bb.2:
	orl	$1073741824, %ecx               ## imm = 0x40000000
	movl	%ecx, %eax
LBB0_3:
	incl	%eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_x86_pmu,8,3                    ## @x86_pmu
	.comm	_X86_PMC_IDX_FIXED,4,2          ## @X86_PMC_IDX_FIXED
	.no_dead_strip	_x86_pmu_event_idx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function x86_pmu_event_idx
_x86_pmu_event_idx:                     ; @x86_pmu_event_idx
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _x86_pmu@GOTPAGE
Lloh1:
	ldr	x9, [x9, _x86_pmu@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cbz	x9, LBB0_2
; %bb.1:
Lloh3:
	adrp	x9, _X86_PMC_IDX_FIXED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _X86_PMC_IDX_FIXED@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	subs	w9, w8, w9
	orr	w9, w9, #0x40000000
	csel	w8, w8, w9, lt
LBB0_2:
	add	w0, w8, #1
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_x86_pmu,8,3                    ; @x86_pmu
	.comm	_X86_PMC_IDX_FIXED,4,2          ; @X86_PMC_IDX_FIXED
	.no_dead_strip	_x86_pmu_event_idx
.subsections_via_symbols
