	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function p4_pmu_enable_event
_p4_pmu_enable_event:                   ## @p4_pmu_enable_event
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movl	8(%rdi), %edi
	callq	_p4_ht_config_thread
	movl	%eax, %ebx
	movl	8(%r12), %edi
	callq	_p4_clear_ht_bit
	movl	%eax, %edi
	callq	_p4_config_unpack_escr
	movl	%eax, %r15d
	movl	8(%r12), %edi
	callq	_p4_config_unpack_event
	movq	_p4_event_bind_map@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r13
	movl	%eax, %r14d
	shlq	$4, %r14
	movq	8(%r13,%r14), %rax
	movslq	%ebx, %rcx
	movl	(%rax,%rcx,8), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	8(%r12), %edi
	callq	_p4_is_event_cascaded
	movl	%eax, %edi
	callq	_WARN_ON_ONCE
	xorl	%edi, %edi
	cmpl	$1, (%r12)
	sete	%dil
	callq	_WARN_ON_ONCE
	movq	_P4_ESCR_EVENT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	notl	%ebx
	andl	%r15d, %ebx
	movl	(%r13,%r14), %edi
	callq	_P4_OPCODE_EVNT
	movl	%eax, %edi
	callq	_P4_ESCR_EVENT
	orl	%eax, %ebx
	movl	8(%r12), %edi
	callq	_p4_config_unpack_cccr
	movl	%eax, %r15d
	movl	8(%r12), %edi
	callq	_p4_pmu_enable_pebs
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%ebx, %esi
	callq	_checking_wrmsrl
	movl	4(%r12), %edi
	movq	_P4_CCCR_RESERVED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	notl	%esi
	andl	%r15d, %esi
	movq	_P4_CCCR_ENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_checking_wrmsrl                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_p4_event_bind_map,8,3          ## @p4_event_bind_map
	.comm	_P4_ESCR_EVENT_MASK,4,2         ## @P4_ESCR_EVENT_MASK
	.comm	_P4_CCCR_RESERVED,4,2           ## @P4_CCCR_RESERVED
	.comm	_P4_CCCR_ENABLE,4,2             ## @P4_CCCR_ENABLE
	.no_dead_strip	_p4_pmu_enable_event
.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_event
_p4_pmu_enable_event:                   ; @p4_pmu_enable_event
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldr	w0, [x0, #8]
	bl	_p4_ht_config_thread
	mov	x20, x0
	ldr	w0, [x19, #8]
	bl	_p4_clear_ht_bit
	bl	_p4_config_unpack_escr
	mov	x21, x0
	ldr	w0, [x19, #8]
	bl	_p4_config_unpack_event
Lloh0:
	adrp	x8, _p4_event_bind_map@GOTPAGE
Lloh1:
	ldr	x8, [x8, _p4_event_bind_map@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x22, x8, w0, uxtw #4
	ldr	x8, [x22, #8]
	ldr	x20, [x8, w20, sxtw #3]
	ldr	w0, [x19, #8]
	bl	_p4_is_event_cascaded
	bl	_WARN_ON_ONCE
	ldr	w8, [x19]
	cmp	w8, #1
	cset	w0, eq
	bl	_WARN_ON_ONCE
Lloh3:
	adrp	x8, _P4_ESCR_EVENT_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _P4_ESCR_EVENT_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	bic	w21, w21, w8
	ldr	w0, [x22]
	bl	_P4_OPCODE_EVNT
	bl	_P4_ESCR_EVENT
	orr	w21, w0, w21
	ldr	w0, [x19, #8]
	bl	_p4_config_unpack_cccr
	mov	x22, x0
	ldr	w0, [x19, #8]
	bl	_p4_pmu_enable_pebs
	mov	x0, x20
	mov	x1, x21
	bl	_checking_wrmsrl
	ldr	w0, [x19, #4]
Lloh6:
	adrp	x8, _P4_CCCR_RESERVED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _P4_CCCR_RESERVED@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	bic	w8, w22, w8
Lloh9:
	adrp	x9, _P4_CCCR_ENABLE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _P4_CCCR_ENABLE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w1, w8, w9
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_checking_wrmsrl
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_p4_event_bind_map,8,3          ; @p4_event_bind_map
	.comm	_P4_ESCR_EVENT_MASK,4,2         ; @P4_ESCR_EVENT_MASK
	.comm	_P4_CCCR_RESERVED,4,2           ; @P4_CCCR_RESERVED
	.comm	_P4_CCCR_ENABLE,4,2             ; @P4_CCCR_ENABLE
	.no_dead_strip	_p4_pmu_enable_event
.subsections_via_symbols
