	.file	"extr_profile.c_cris_profile_sample.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	cris_profile_sample
	.type	cris_profile_sample, @function
cris_profile_sample:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR prof_running[rip]
	test	eax, eax
	jne	.L12
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	user_mode@PLT
	mov	rbx, QWORD PTR sample_buffer_pos[rip]
	test	rax, rax
	je	.L4
	mov	rax, QWORD PTR current[rip]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rbx], eax
.L5:
	mov	rdi, rbp
	call	instruction_pointer@PLT
	mov	rdx, QWORD PTR sample_buffer[rip]
	mov	rcx, QWORD PTR SAMPLE_BUFFER_SIZE[rip]
	mov	DWORD PTR 4[rbx], eax
	mov	rax, QWORD PTR sample_buffer_pos[rip]
	add	rcx, rdx
	add	rax, 8
	cmp	rax, rcx
	cmove	rax, rdx
	mov	QWORD PTR sample_buffer_pos[rip], rax
	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
.L4:
	.cfi_restore_state
	mov	DWORD PTR [rbx], 0
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	cris_profile_sample, .-cris_profile_sample
	.comm	sample_buffer_pos,8,8
	.comm	sample_buffer,8,8
	.comm	prof_running,4,4
	.comm	current,8,8
	.comm	SAMPLE_BUFFER_SIZE,8,8
	.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_profile.c_cris_profile_sample.c"
	.text
	.align	2
	.global	cris_profile_sample
	.syntax unified
	.arm
	.fpu softvfp
	.type	cris_profile_sample, %function
cris_profile_sample:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L12
	ldr	r3, [r3]
	cmp	r3, #0
	bxeq	lr
	push	{r4, r5, r6, lr}
	mov	r4, r0
	bl	user_mode
	cmp	r0, #0
	ldrne	r3, .L12+4
	ldrne	r5, .L12+8
	ldrne	r3, [r3]
	ldreq	r5, .L12+8
	ldrne	r6, [r5]
	ldrne	r3, [r3]
	ldreq	r6, [r5]
	strne	r3, [r6]
	streq	r0, [r6]
	mov	r0, r4
	bl	instruction_pointer
	ldr	r2, .L12+12
	ldr	r3, .L12+16
	ldr	ip, [r2]
	ldr	r3, [r3]
	ldr	r2, [r5]
	add	r1, ip, r3
	add	r3, r2, #8
	cmp	r3, r1
	moveq	r3, ip
	str	r0, [r6, #4]
	str	r3, [r5]
	pop	{r4, r5, r6, pc}
.L13:
	.align	2
.L12:
	.word	prof_running
	.word	current
	.word	sample_buffer_pos
	.word	sample_buffer
	.word	SAMPLE_BUFFER_SIZE
	.size	cris_profile_sample, .-cris_profile_sample
	.comm	sample_buffer_pos,4,4
	.comm	sample_buffer,4,4
	.comm	prof_running,4,4
	.comm	current,4,4
	.comm	SAMPLE_BUFFER_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
