	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function p4_pmu_enable_pebs
_p4_pmu_enable_pebs:                    ## @p4_pmu_enable_pebs
	.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
	movl	%edi, %ebx
	movq	_P4_PEBS_METRIC__max@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_P4_PEBS_CONFIG_METRIC_MASK@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setg	%dil
	callq	_BUILD_BUG_ON
	movl	%ebx, %edi
	callq	_p4_config_unpack_metric
	movq	_P4_PEBS_METRIC__none@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_2
## %bb.1:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movq	_p4_pebs_bind_map@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r14
	movl	%eax, %ebx
	movq	_MSR_IA32_PEBS_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	shlq	$4, %rbx
	movl	8(%r14,%rbx), %esi
	callq	_checking_wrmsrl
	movq	_MSR_P4_PEBS_MATRIX_VERT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14,%rbx), %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_checking_wrmsrl                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_P4_PEBS_METRIC__max,8,3        ## @P4_PEBS_METRIC__max
	.comm	_P4_PEBS_CONFIG_METRIC_MASK,8,3 ## @P4_PEBS_CONFIG_METRIC_MASK
	.comm	_P4_PEBS_METRIC__none,4,2       ## @P4_PEBS_METRIC__none
	.comm	_p4_pebs_bind_map,8,3           ## @p4_pebs_bind_map
	.comm	_MSR_IA32_PEBS_ENABLE,4,2       ## @MSR_IA32_PEBS_ENABLE
	.comm	_MSR_P4_PEBS_MATRIX_VERT,4,2    ## @MSR_P4_PEBS_MATRIX_VERT
	.no_dead_strip	_p4_pmu_enable_pebs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function p4_pmu_enable_pebs
_p4_pmu_enable_pebs:                    ; @p4_pmu_enable_pebs
	.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, _P4_PEBS_METRIC__max@GOTPAGE
Lloh1:
	ldr	x8, [x8, _P4_PEBS_METRIC__max@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _P4_PEBS_CONFIG_METRIC_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _P4_PEBS_CONFIG_METRIC_MASK@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, gt
	bl	_BUILD_BUG_ON
	mov	x0, x19
	bl	_p4_config_unpack_metric
Lloh6:
	adrp	x8, _P4_PEBS_METRIC__none@GOTPAGE
Lloh7:
	ldr	x8, [x8, _P4_PEBS_METRIC__none@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh9:
	adrp	x8, _p4_pebs_bind_map@GOTPAGE
Lloh10:
	ldr	x8, [x8, _p4_pebs_bind_map@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x8]
Lloh12:
	adrp	x8, _MSR_IA32_PEBS_ENABLE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MSR_IA32_PEBS_ENABLE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	add	x19, x9, w0, uxtw #4
	ldr	w1, [x19, #8]
	mov	x0, x8
	bl	_checking_wrmsrl
Lloh15:
	adrp	x8, _MSR_P4_PEBS_MATRIX_VERT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MSR_P4_PEBS_MATRIX_VERT@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	ldr	w1, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_checking_wrmsrl
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_P4_PEBS_METRIC__max,8,3        ; @P4_PEBS_METRIC__max
	.comm	_P4_PEBS_CONFIG_METRIC_MASK,8,3 ; @P4_PEBS_CONFIG_METRIC_MASK
	.comm	_P4_PEBS_METRIC__none,4,2       ; @P4_PEBS_METRIC__none
	.comm	_p4_pebs_bind_map,8,3           ; @p4_pebs_bind_map
	.comm	_MSR_IA32_PEBS_ENABLE,4,2       ; @MSR_IA32_PEBS_ENABLE
	.comm	_MSR_P4_PEBS_MATRIX_VERT,4,2    ; @MSR_P4_PEBS_MATRIX_VERT
	.no_dead_strip	_p4_pmu_enable_pebs
.subsections_via_symbols
