	.file	"extr_op_model_amd.c_op_amd_check_ctrs.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	op_amd_check_ctrs, @function
op_amd_check_ctrs:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR num_counters[rip]
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	test	eax, eax
	jle	.L2
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L6:
	mov	edi, ebx
	call	op_x86_phys_to_virt@PLT
	movsx	r12, eax
	mov	rax, QWORD PTR reset_value[rip]
	cmp	QWORD PTR [rax+r12*8], 0
	je	.L4
	mov	rax, QWORD PTR 0[r13]
	xor	esi, esi
	mov	edi, DWORD PTR [rax+rbx*4]
	call	rdmsrl@PLT
	mov	esi, r12d
	mov	rdi, r14
	call	oprofile_add_sample@PLT
	mov	rax, QWORD PTR reset_value[rip]
	mov	rsi, QWORD PTR [rax+r12*8]
	mov	rax, QWORD PTR 0[r13]
	mov	edi, DWORD PTR [rax+rbx*4]
	neg	esi
	call	wrmsrl@PLT
.L4:
	add	rbx, 1
	cmp	DWORD PTR num_counters[rip], ebx
	jg	.L6
.L2:
	mov	rsi, r13
	mov	rdi, r14
	call	op_amd_handle_ibs@PLT
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	eax, 1
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	op_amd_check_ctrs, .-op_amd_check_ctrs
	.comm	reset_value,8,8
	.comm	num_counters,4,4
	.comm	OP_CTR_OVERFLOW,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_amd.c_op_amd_check_ctrs.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	op_amd_check_ctrs, %function
op_amd_check_ctrs:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r8, .L10
	mov	r9, r0
	ldr	r3, [r8]
	mov	r7, r1
	cmp	r3, #0
	ble	.L2
	mov	r4, #0
	ldr	r6, .L10+4
.L6:
	mov	r0, r4
	bl	op_x86_phys_to_virt
	ldr	r3, [r6]
	mov	r5, r0
	ldr	r3, [r3, r0, lsl #2]
	cmp	r3, #0
	beq	.L4
	ldr	r3, [r7]
	mov	r1, #0
	ldr	r0, [r3, r4, lsl #2]
	bl	rdmsrl
	mov	r1, r5
	mov	r0, r9
	bl	oprofile_add_sample
	ldr	r2, [r6]
	ldr	r3, [r7]
	ldr	r1, [r2, r5, lsl #2]
	ldr	r0, [r3, r4, lsl #2]
	rsb	r1, r1, #0
	bl	wrmsrl
.L4:
	ldr	r3, [r8]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L6
.L2:
	mov	r1, r7
	mov	r0, r9
	bl	op_amd_handle_ibs
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L11:
	.align	2
.L10:
	.word	num_counters
	.word	reset_value
	.size	op_amd_check_ctrs, .-op_amd_check_ctrs
	.comm	reset_value,4,4
	.comm	num_counters,4,4
	.comm	OP_CTR_OVERFLOW,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
