	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_pmu_enable_fixed
_intel_pmu_enable_fixed:                ## @intel_pmu_enable_fixed
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	(%rdi), %ecx
	movl	4(%rdi), %edx
	movq	_X86_PMC_IDX_FIXED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_ARCH_PERFMON_EVENTSEL_USR@GOTPCREL(%rip), %rsi
	xorl	%edi, %edi
	testl	%edx, (%rsi)
	setne	%dil
	movq	_ARCH_PERFMON_EVENTSEL_OS@GOTPCREL(%rip), %rsi
	xorl	%ebx, %ebx
	testl	%edx, (%rsi)
	setne	%bl
	leal	(%rbx,%rdi,2), %ebx
	addl	$8, %ebx
	movq	_x86_pmu@GOTPCREL(%rip), %rsi
	cmpl	$3, (%rsi)
	jl	LBB0_2
## %bb.1:
	movq	_ARCH_PERFMON_EVENTSEL_ANY@GOTPCREL(%rip), %rsi
	movl	%ebx, %edi
	orl	$4, %edi
	testl	%edx, (%rsi)
	cmovnel	%edi, %ebx
LBB0_2:
	subl	%eax, %ecx
	shll	$2, %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %ebx
	movl	8(%r14), %edi
	callq	_rdmsrl
	movl	8(%r14), %edi
	movl	%ebx, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_wrmsrl                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_X86_PMC_IDX_FIXED,4,2          ## @X86_PMC_IDX_FIXED
	.comm	_ARCH_PERFMON_EVENTSEL_USR,4,2  ## @ARCH_PERFMON_EVENTSEL_USR
	.comm	_ARCH_PERFMON_EVENTSEL_OS,4,2   ## @ARCH_PERFMON_EVENTSEL_OS
	.comm	_x86_pmu,4,2                    ## @x86_pmu
	.comm	_ARCH_PERFMON_EVENTSEL_ANY,4,2  ## @ARCH_PERFMON_EVENTSEL_ANY
	.no_dead_strip	_intel_pmu_enable_fixed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_pmu_enable_fixed
_intel_pmu_enable_fixed:                ; @intel_pmu_enable_fixed
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _X86_PMC_IDX_FIXED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _X86_PMC_IDX_FIXED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldp	w9, w10, [x0]
Lloh3:
	adrp	x11, _ARCH_PERFMON_EVENTSEL_USR@GOTPAGE
Lloh4:
	ldr	x11, [x11, _ARCH_PERFMON_EVENTSEL_USR@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	tst	w11, w10
	mov	w11, #10
	mov	w12, #8
	csel	w11, w12, w11, eq
Lloh6:
	adrp	x12, _ARCH_PERFMON_EVENTSEL_OS@GOTPAGE
Lloh7:
	ldr	x12, [x12, _ARCH_PERFMON_EVENTSEL_OS@GOTPAGEOFF]
Lloh8:
	ldr	w12, [x12]
	tst	w12, w10
	cset	w12, ne
	orr	w11, w11, w12
Lloh9:
	adrp	x12, _x86_pmu@GOTPAGE
Lloh10:
	ldr	x12, [x12, _x86_pmu@GOTPAGEOFF]
Lloh11:
	ldr	w12, [x12]
	cmp	w12, #3
	b.lt	LBB0_2
; %bb.1:
Lloh12:
	adrp	x12, _ARCH_PERFMON_EVENTSEL_ANY@GOTPAGE
Lloh13:
	ldr	x12, [x12, _ARCH_PERFMON_EVENTSEL_ANY@GOTPAGEOFF]
Lloh14:
	ldr	w12, [x12]
	orr	w13, w11, #0x4
	tst	w12, w10
	csel	w11, w11, w13, eq
LBB0_2:
	sub	w8, w9, w8
	lsl	w8, w8, #2
	lsl	w20, w11, w8
	ldr	w0, [x19, #8]
	bl	_rdmsrl
	ldr	w0, [x19, #8]
	mov	x1, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_wrmsrl
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_X86_PMC_IDX_FIXED,4,2          ; @X86_PMC_IDX_FIXED
	.comm	_ARCH_PERFMON_EVENTSEL_USR,4,2  ; @ARCH_PERFMON_EVENTSEL_USR
	.comm	_ARCH_PERFMON_EVENTSEL_OS,4,2   ; @ARCH_PERFMON_EVENTSEL_OS
	.comm	_x86_pmu,4,2                    ; @x86_pmu
	.comm	_ARCH_PERFMON_EVENTSEL_ANY,4,2  ; @ARCH_PERFMON_EVENTSEL_ANY
	.no_dead_strip	_intel_pmu_enable_fixed
.subsections_via_symbols
