	.file	"extr_op_model_xscale.c_xscale_pmu_interrupt.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	xscale_pmu_interrupt, @function
xscale_pmu_interrupt:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR pmu[rip]
	mov	rcx, QWORD PTR PMU_XSC1[rip]
	cmp	QWORD PTR [rax], rcx
	mov	eax, 0
	je	.L10
	call	__xsc2_check_ctrs@PLT
.L3:
	mov	ebx, DWORD PTR CCNT[rip]
	cmp	ebx, DWORD PTR MAX_COUNTERS[rip]
	jge	.L4
	movsx	rbp, ebx
	mov	rax, QWORD PTR results[rip]
	sal	rbp, 4
	.p2align 4,,10
	.p2align 3
.L6:
	lea	rdx, [rax+rbp]
	mov	ecx, DWORD PTR [rdx]
	test	ecx, ecx
	je	.L5
	mov	rsi, QWORD PTR 8[rdx]
	mov	edi, ebx
	neg	esi
	call	write_counter@PLT
	xor	eax, eax
	call	get_irq_regs@PLT
	mov	esi, ebx
	mov	edi, eax
	call	oprofile_add_sample@PLT
	mov	rax, QWORD PTR results[rip]
	sub	DWORD PTR [rax+rbp], 1
.L5:
	add	ebx, 1
	add	rbp, 16
	cmp	DWORD PTR MAX_COUNTERS[rip], ebx
	jg	.L6
.L4:
	xor	eax, eax
	call	read_pmnc@PLT
	or	eax, DWORD PTR PMU_ENABLE[rip]
	mov	edi, eax
	call	write_pmnc@PLT
	mov	eax, DWORD PTR IRQ_HANDLED[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	call	__xsc1_check_ctrs@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	xscale_pmu_interrupt, .-xscale_pmu_interrupt
	.comm	results,8,8
	.comm	pmu,8,8
	.comm	PMU_XSC1,8,8
	.comm	PMU_ENABLE,4,4
	.comm	MAX_COUNTERS,4,4
	.comm	IRQ_HANDLED,4,4
	.comm	CCNT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_op_model_xscale.c_xscale_pmu_interrupt.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	xscale_pmu_interrupt, %function
xscale_pmu_interrupt:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, .L14
	ldr	r3, .L14+4
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r2, [r2]
	push	{r4, r5, r6, lr}
	cmp	r2, r3
	beq	.L13
	bl	__xsc2_check_ctrs
.L3:
	ldr	r3, .L14+8
	ldr	r6, .L14+12
	ldr	r4, [r3]
	ldr	r3, [r6]
	cmp	r4, r3
	bge	.L4
	ldr	r5, .L14+16
.L6:
	ldr	r3, [r5]
	ldr	r2, [r3, r4, lsl #3]
	add	r3, r3, r4, lsl #3
	cmp	r2, #0
	beq	.L5
	ldr	r1, [r3, #4]
	mov	r0, r4
	rsb	r1, r1, #0
	bl	write_counter
	bl	get_irq_regs
	mov	r1, r4
	bl	oprofile_add_sample
	ldr	r2, [r5]
	ldr	r3, [r2, r4, lsl #3]
	sub	r3, r3, #1
	str	r3, [r2, r4, lsl #3]
.L5:
	ldr	r3, [r6]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L6
.L4:
	bl	read_pmnc
	ldr	r3, .L14+20
	ldr	r3, [r3]
	orr	r0, r0, r3
	bl	write_pmnc
	ldr	r3, .L14+24
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L13:
	bl	__xsc1_check_ctrs
	b	.L3
.L15:
	.align	2
.L14:
	.word	pmu
	.word	PMU_XSC1
	.word	CCNT
	.word	MAX_COUNTERS
	.word	results
	.word	PMU_ENABLE
	.word	IRQ_HANDLED
	.size	xscale_pmu_interrupt, .-xscale_pmu_interrupt
	.comm	results,4,4
	.comm	pmu,4,4
	.comm	PMU_XSC1,4,4
	.comm	PMU_ENABLE,4,4
	.comm	MAX_COUNTERS,4,4
	.comm	IRQ_HANDLED,4,4
	.comm	CCNT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
