	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function l2_cache_event_start
_l2_cache_event_start:                  ## @l2_cache_event_start
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	8(%rdi), %r12
	movl	4(%rdi), %edi
	movl	8(%rbx), %r15d
	movq	$0, 24(%rbx)
	callq	_to_l2cache_pmu
	movl	(%rbx), %esi
	movl	%eax, %edi
	callq	_get_cluster_pmu
	movq	%rax, %r14
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	_l2_cache_cluster_set_period
	movq	16(%rbx), %rbx
	movq	_L2CYCLE_CTR_RAW_CODE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	callq	_cluster_pmu_set_evccntcr
	jmp	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	callq	_L2_EVT_CODE
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_L2_EVT_GROUP
	movq	%rax, %rbx
	movl	%r15d, %edi
	xorl	%esi, %esi
	callq	_cluster_pmu_set_evcntcr
	movl	%r15d, %edi
	movq	%rbx, %rsi
	callq	_cluster_pmu_set_evtyper
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_cluster_pmu_set_resr
	movl	%r15d, %edi
	callq	_cluster_pmu_set_evfilter_sys_mode
LBB0_3:
	movl	%r15d, %edi
	callq	_cluster_pmu_counter_enable_interrupt
	movl	%r15d, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cluster_pmu_counter_enable     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_L2CYCLE_CTR_RAW_CODE,8,3       ## @L2CYCLE_CTR_RAW_CODE
	.no_dead_strip	_l2_cache_event_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function l2_cache_event_start
_l2_cache_event_start:                  ; @l2_cache_event_start
	.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	x21, x0
	mov	x22, x0
	ldr	w19, [x22, #8]!
	str	xzr, [x0, #24]
	ldr	w0, [x0, #4]
	bl	_to_l2cache_pmu
	ldr	w1, [x21]
	bl	_get_cluster_pmu
	mov	x20, x0
	mov	x1, x22
	bl	_l2_cache_cluster_set_period
	ldr	x21, [x21, #16]
Lloh0:
	adrp	x8, _L2CYCLE_CTR_RAW_CODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _L2CYCLE_CTR_RAW_CODE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x21, x8
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	bl	_cluster_pmu_set_evccntcr
	b	LBB0_3
LBB0_2:
	mov	x0, x21
	bl	_L2_EVT_CODE
	mov	x22, x0
	mov	x0, x21
	bl	_L2_EVT_GROUP
	mov	x21, x0
	mov	x0, x19
	mov	w1, #0
	bl	_cluster_pmu_set_evcntcr
	mov	x0, x19
	mov	x1, x21
	bl	_cluster_pmu_set_evtyper
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_cluster_pmu_set_resr
	mov	x0, x19
	bl	_cluster_pmu_set_evfilter_sys_mode
LBB0_3:
	mov	x0, x19
	bl	_cluster_pmu_counter_enable_interrupt
	mov	x0, x19
	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	_cluster_pmu_counter_enable
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_L2CYCLE_CTR_RAW_CODE,8,3       ; @L2CYCLE_CTR_RAW_CODE
	.no_dead_strip	_l2_cache_event_start
.subsections_via_symbols
