	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arm_ccn_pmu_overflow_handler
_arm_ccn_pmu_overflow_handler:          ## @arm_ccn_pmu_overflow_handler
	.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, %r14
	movq	_CCN_DT_PMOVSR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r14), %rdi
	callq	_readl
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, %r15d
	movq	_CCN_DT_PMOVSR_CLR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	movl	%r15d, %edi
	callq	_writel
	movq	_CCN_IDX_PMU_CYCLE_COUNTER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_CCN_NUM_PMU_EVENT_COUNTERS@GOTPCREL(%rip), %rbx
	xorl	%edi, %edi
	cmpl	(%rbx), %eax
	setne	%dil
	callq	_BUILD_BUG_ON
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	cmpl	$0, (%rbx)
	js	LBB0_12
## %bb.3:
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	leaq	1(%rbx), %rax
	movq	_CCN_NUM_PMU_EVENT_COUNTERS@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	cmpq	%rcx, %rbx
	movq	%rax, %rbx
	jge	LBB0_11
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movq	(%rax,%rbx,8), %r12
	movl	%ebx, %edi
	callq	_BIT
	movl	%eax, %r13d
	xorl	%eax, %eax
	testl	%r15d, %r13d
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	testq	%r12, %r12
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_CCN_IDX_PMU_CYCLE_COUNTER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpq	%rax, %rbx
	setne	%al
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movzbl	%al, %edi
	callq	_WARN_ON_ONCE
	testq	%r12, %r12
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	andl	%r15d, %r13d
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	callq	_arm_ccn_pmu_event_update
	jmp	LBB0_10
LBB0_1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_11:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CCN_DT_PMOVSR,8,3              ## @CCN_DT_PMOVSR
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_CCN_DT_PMOVSR_CLR,8,3          ## @CCN_DT_PMOVSR_CLR
	.comm	_CCN_IDX_PMU_CYCLE_COUNTER,4,2  ## @CCN_IDX_PMU_CYCLE_COUNTER
	.comm	_CCN_NUM_PMU_EVENT_COUNTERS,4,2 ## @CCN_NUM_PMU_EVENT_COUNTERS
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_arm_ccn_pmu_overflow_handler
.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_overflow_handler
_arm_ccn_pmu_overflow_handler:          ; @arm_ccn_pmu_overflow_handler
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _CCN_DT_PMOVSR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CCN_DT_PMOVSR@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	cbz	w0, LBB0_9
; %bb.1:
	mov	x20, x0
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _CCN_DT_PMOVSR_CLR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CCN_DT_PMOVSR_CLR@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
Lloh6:
	adrp	x23, _CCN_IDX_PMU_CYCLE_COUNTER@GOTPAGE
Lloh7:
	ldr	x23, [x23, _CCN_IDX_PMU_CYCLE_COUNTER@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh8:
	adrp	x24, _CCN_NUM_PMU_EVENT_COUNTERS@GOTPAGE
Lloh9:
	ldr	x24, [x24, _CCN_NUM_PMU_EVENT_COUNTERS@GOTPAGEOFF]
	ldr	w9, [x24]
	cmp	w8, w9
	cset	w0, ne
	bl	_BUILD_BUG_ON
	ldr	w8, [x24]
	tbnz	w8, #31, LBB0_10
; %bb.2:
	mov	x21, #0
Lloh10:
	adrp	x25, _IRQ_HANDLED@GOTPAGE
Lloh11:
	ldr	x25, [x25, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x21, #1
	ldrsw	x9, [x24]
	cmp	x21, x9
	mov	x21, x8
	b.ge	LBB0_11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	x22, [x8, x21, lsl #3]
	mov	x0, x21
	bl	_BIT
	mov	x8, x0
	mov	w0, #0
	ands	w26, w8, w20
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cbnz	x22, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x23]
	cmp	x21, x8
	cset	w0, ne
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_WARN_ON_ONCE
	cmp	x22, #0
	ccmp	w26, #0, #4, ne
	b.eq	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_arm_ccn_pmu_event_update
	b	LBB0_3
LBB0_9:
Lloh12:
	adrp	x25, _IRQ_NONE@GOTPAGE
Lloh13:
	ldr	x25, [x25, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh14:
	adrp	x25, _IRQ_HANDLED@GOTPAGE
Lloh15:
	ldr	x25, [x25, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x25]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_CCN_DT_PMOVSR,8,3              ; @CCN_DT_PMOVSR
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_CCN_DT_PMOVSR_CLR,8,3          ; @CCN_DT_PMOVSR_CLR
	.comm	_CCN_IDX_PMU_CYCLE_COUNTER,4,2  ; @CCN_IDX_PMU_CYCLE_COUNTER
	.comm	_CCN_NUM_PMU_EVENT_COUNTERS,4,2 ; @CCN_NUM_PMU_EVENT_COUNTERS
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_arm_ccn_pmu_overflow_handler
.subsections_via_symbols
