	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arm_ccn_pmu_cleanup
_arm_ccn_pmu_cleanup:                   ## @arm_ccn_pmu_cleanup
	.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, %r14
	movq	_CPUHP_AP_PERF_ARM_CCN_ONLINE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	24(%r14), %rsi
	callq	_cpuhp_state_remove_instance_nocalls
	movq	40(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	xorl	%esi, %esi
	callq	_irq_set_affinity_hint
LBB0_2:
	cmpl	$0, (%r14)
	jle	LBB0_5
## %bb.3:
	xorl	%ebx, %ebx
	movq	_CCN_XP_DT_CONTROL@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r14), %rax
	movq	(%r15), %rsi
	addq	(%rax,%rbx,8), %rsi
	xorl	%edi, %edi
	callq	_writel
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_4
LBB0_5:
	movq	_CCN_DT_PMCR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%r14), %rsi
	xorl	%edi, %edi
	callq	_writel
	leaq	12(%r14), %rdi
	callq	_perf_pmu_unregister
	movl	8(%r14), %esi
	movq	_arm_ccn_pmu_ida@GOTPCREL(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ida_simple_remove              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CPUHP_AP_PERF_ARM_CCN_ONLINE,4,2 ## @CPUHP_AP_PERF_ARM_CCN_ONLINE
	.comm	_CCN_XP_DT_CONTROL,8,3          ## @CCN_XP_DT_CONTROL
	.comm	_CCN_DT_PMCR,8,3                ## @CCN_DT_PMCR
	.comm	_arm_ccn_pmu_ida,4,2            ## @arm_ccn_pmu_ida
	.no_dead_strip	_arm_ccn_pmu_cleanup
.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_cleanup
_arm_ccn_pmu_cleanup:                   ; @arm_ccn_pmu_cleanup
	.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
Lloh0:
	adrp	x8, _CPUHP_AP_PERF_ARM_CCN_ONLINE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CPUHP_AP_PERF_ARM_CCN_ONLINE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x19, #24
	bl	_cpuhp_state_remove_instance_nocalls
	ldr	x0, [x19, #40]
	cbz	x0, LBB0_2
; %bb.1:
	mov	x1, #0
	bl	_irq_set_affinity_hint
LBB0_2:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x20, #0
Lloh3:
	adrp	x21, _CCN_XP_DT_CONTROL@GOTPAGE
Lloh4:
	ldr	x21, [x21, _CCN_XP_DT_CONTROL@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
	ldr	x8, [x8, x20, lsl #3]
	ldr	x9, [x21]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	add	x20, x20, #1
	ldrsw	x8, [x19]
	cmp	x20, x8
	b.lt	LBB0_4
LBB0_5:
	ldr	x8, [x19, #16]
Lloh5:
	adrp	x9, _CCN_DT_PMCR@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CCN_DT_PMCR@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	add	x0, x19, #12
	bl	_perf_pmu_unregister
	ldr	w1, [x19, #8]
Lloh8:
	adrp	x0, _arm_ccn_pmu_ida@GOTPAGE
Lloh9:
	ldr	x0, [x0, _arm_ccn_pmu_ida@GOTPAGEOFF]
	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	_ida_simple_remove
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_CPUHP_AP_PERF_ARM_CCN_ONLINE,4,2 ; @CPUHP_AP_PERF_ARM_CCN_ONLINE
	.comm	_CCN_XP_DT_CONTROL,8,3          ; @CCN_XP_DT_CONTROL
	.comm	_CCN_DT_PMCR,8,3                ; @CCN_DT_PMCR
	.comm	_arm_ccn_pmu_ida,4,2            ; @arm_ccn_pmu_ida
	.no_dead_strip	_arm_ccn_pmu_cleanup
.subsections_via_symbols
