	.file	"extr_perf_event.c_riscv_pmu_start.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	riscv_pmu_start, @function
riscv_pmu_start:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	eax, DWORD PTR [rdi]
	xor	edi, edi
	test	DWORD PTR PERF_HES_STOPPED[rip], eax
	sete	dil
	call	WARN_ON_ONCE@PLT
	test	rax, rax
	jne	.L1
	test	DWORD PTR PERF_EF_RELOAD[rip], ebp
	jne	.L9
.L3:
	mov	DWORD PTR [rbx], 0
	mov	rdi, rbx
	call	perf_event_update_userpage@PLT
	mov	edi, DWORD PTR 4[rbx]
	call	read_counter@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	lea	rdi, 8[rbx]
	mov	esi, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	local64_set@PLT
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	eax, DWORD PTR [rbx]
	xor	edi, edi
	test	DWORD PTR PERF_HES_UPTODATE[rip], eax
	sete	dil
	call	WARN_ON_ONCE@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	riscv_pmu_start, .-riscv_pmu_start
	.comm	PERF_HES_UPTODATE,4,4
	.comm	PERF_HES_STOPPED,4,4
	.comm	PERF_EF_RELOAD,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_perf_event.c_riscv_pmu_start.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	riscv_pmu_start, %function
riscv_pmu_start:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L10
	ldr	r2, [r0]
	ldr	r3, [r3]
	push	{r4, r5, r6, lr}
	tst	r2, r3
	mov	r4, r0
	moveq	r0, #1
	movne	r0, #0
	mov	r5, r1
	bl	WARN_ON_ONCE
	cmp	r0, #0
	popne	{r4, r5, r6, pc}
	ldr	r3, .L10+4
	ldr	r3, [r3]
	tst	r5, r3
	bne	.L9
.L3:
	mov	r3, #0
	mov	r0, r4
	str	r3, [r4]
	bl	perf_event_update_userpage
	ldr	r0, [r4, #4]
	bl	read_counter
	mov	r1, r0
	add	r0, r4, #8
	pop	{r4, r5, r6, lr}
	b	local64_set
.L9:
	ldr	r3, .L10+8
	ldr	r2, [r4]
	ldr	r3, [r3]
	tst	r2, r3
	moveq	r0, #1
	movne	r0, #0
	bl	WARN_ON_ONCE
	b	.L3
.L11:
	.align	2
.L10:
	.word	PERF_HES_STOPPED
	.word	PERF_EF_RELOAD
	.word	PERF_HES_UPTODATE
	.size	riscv_pmu_start, .-riscv_pmu_start
	.comm	PERF_HES_UPTODATE,4,4
	.comm	PERF_HES_STOPPED,4,4
	.comm	PERF_EF_RELOAD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
