	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arm_ccn_pmu_event_release
_arm_ccn_pmu_event_release:             ## @arm_ccn_pmu_event_release
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	24(%rdi), %edi
	callq	_pmu_to_arm_ccn
	movq	%rax, %r14
	movq	8(%rbx), %rdi
	movq	_CCN_IDX_PMU_CYCLE_COUNTER@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_5
## %bb.1:
	movq	(%r14), %rax
	shlq	$4, %rdi
	movq	8(%rax,%rdi), %r15
	movl	(%rbx), %edi
	callq	_CCN_CONFIG_TYPE
	movq	_CCN_TYPE_XP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.2:
	movl	(%rbx), %edi
	callq	_CCN_CONFIG_EVENT
	movq	_CCN_EVENT_WATCHPOINT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	addq	$4, %r15
LBB0_4:
	movq	16(%rbx), %rdi
	movl	(%r15), %esi
	callq	_clear_bit
	movq	8(%rbx), %rdi
LBB0_5:
	movl	8(%r14), %esi
	callq	_clear_bit
	movq	(%r14), %rax
	movq	8(%rbx), %rcx
	shlq	$4, %rcx
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax,%rcx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CCN_IDX_PMU_CYCLE_COUNTER,8,3  ## @CCN_IDX_PMU_CYCLE_COUNTER
	.comm	_CCN_TYPE_XP,8,3                ## @CCN_TYPE_XP
	.comm	_CCN_EVENT_WATCHPOINT,8,3       ## @CCN_EVENT_WATCHPOINT
	.no_dead_strip	_arm_ccn_pmu_event_release
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arm_ccn_pmu_event_release
_arm_ccn_pmu_event_release:             ; @arm_ccn_pmu_event_release
	.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, #24]
	bl	_pmu_to_arm_ccn
	mov	x20, x0
	ldr	x0, [x19, #8]
Lloh0:
	adrp	x8, _CCN_IDX_PMU_CYCLE_COUNTER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CCN_IDX_PMU_CYCLE_COUNTER@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_5
; %bb.1:
	ldr	x8, [x20]
	add	x8, x8, x0, lsl #4
	ldr	x21, [x8, #8]
	ldr	w0, [x19]
	bl	_CCN_CONFIG_TYPE
Lloh3:
	adrp	x8, _CCN_TYPE_XP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CCN_TYPE_XP@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.2:
	ldr	w0, [x19]
	bl	_CCN_CONFIG_EVENT
Lloh6:
	adrp	x8, _CCN_EVENT_WATCHPOINT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CCN_EVENT_WATCHPOINT@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.3:
	add	x21, x21, #4
LBB0_4:
	ldr	x0, [x19, #16]
	ldr	w1, [x21]
	bl	_clear_bit
	ldr	x0, [x19, #8]
LBB0_5:
	ldr	w1, [x20, #8]
	bl	_clear_bit
	ldr	x8, [x20]
	ldr	x9, [x19, #8]
	add	x8, x8, x9, lsl #4
	stp	xzr, xzr, [x8]
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_CCN_IDX_PMU_CYCLE_COUNTER,8,3  ; @CCN_IDX_PMU_CYCLE_COUNTER
	.comm	_CCN_TYPE_XP,8,3                ; @CCN_TYPE_XP
	.comm	_CCN_EVENT_WATCHPOINT,8,3       ; @CCN_EVENT_WATCHPOINT
	.no_dead_strip	_arm_ccn_pmu_event_release
.subsections_via_symbols
