	.file	"extr_pmu.c_kvm_pmu_reset.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	kvm_pmu_reset
	.type	kvm_pmu_reset, @function
kvm_pmu_reset:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	add	rdi, 48
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	irq_work_sync@PLT
	mov	edx, DWORD PTR X86_PMC_MAX_GENERIC[rip]
	test	edx, edx
	jle	.L2
	xor	ebp, ebp
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rbx, rbp
	add	rbp, 1
	sal	rbx, 4
	add	rbx, QWORD PTR 40[r12]
	mov	rdi, rbx
	call	stop_counter@PLT
	cmp	DWORD PTR X86_PMC_MAX_GENERIC[rip], ebp
	mov	QWORD PTR [rbx], 0
	mov	QWORD PTR 8[rbx], 0
	jg	.L3
.L2:
	mov	eax, DWORD PTR X86_PMC_MAX_FIXED[rip]
	test	eax, eax
	jle	.L4
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, rbx
	add	rbx, 1
	sal	rdi, 4
	add	rdi, QWORD PTR 32[r12]
	call	stop_counter@PLT
	cmp	DWORD PTR X86_PMC_MAX_FIXED[rip], ebx
	jg	.L5
.L4:
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	mov	QWORD PTR [r12], 0
	mov	QWORD PTR 8[r12], 0
	mov	QWORD PTR 16[r12], 0
	mov	QWORD PTR 24[r12], 0
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	kvm_pmu_reset, .-kvm_pmu_reset
	.comm	X86_PMC_MAX_GENERIC,4,4
	.comm	X86_PMC_MAX_FIXED,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_pmu.c_kvm_pmu_reset.c"
	.text
	.align	2
	.global	kvm_pmu_reset
	.syntax unified
	.arm
	.fpu softvfp
	.type	kvm_pmu_reset, %function
kvm_pmu_reset:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r9, .L10
	mov	r7, r0
	add	r0, r0, #24
	bl	irq_work_sync
	ldr	r3, [r9]
	cmp	r3, #0
	ble	.L2
	mov	r4, #0
	mov	r8, r4
.L3:
	ldr	r6, [r7, #20]
	add	r5, r6, r4, lsl #3
	mov	r0, r5
	bl	stop_counter
	ldr	r3, [r9]
	str	r8, [r6, r4, lsl #3]
	add	r4, r4, #1
	cmp	r3, r4
	str	r8, [r5, #4]
	bgt	.L3
.L2:
	ldr	r5, .L10+4
	ldr	r3, [r5]
	cmp	r3, #0
	ble	.L4
	mov	r4, #0
.L5:
	ldr	r0, [r7, #16]
	add	r0, r0, r4, lsl #3
	bl	stop_counter
	ldr	r3, [r5]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L5
.L4:
	mov	r3, #0
	str	r3, [r7]
	str	r3, [r7, #4]
	str	r3, [r7, #8]
	str	r3, [r7, #12]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L11:
	.align	2
.L10:
	.word	X86_PMC_MAX_GENERIC
	.word	X86_PMC_MAX_FIXED
	.size	kvm_pmu_reset, .-kvm_pmu_reset
	.comm	X86_PMC_MAX_GENERIC,4,4
	.comm	X86_PMC_MAX_FIXED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
