	.file	"extr_mperf_monitor.c_mperf_stop.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"TSC diff: %llu\n"
	.text
	.p2align 4
	.type	mperf_stop, @function
mperf_stop:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	sub	rsp, 16
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR cpu_count[rip]
	test	eax, eax
	jle	.L2
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edi, ebx
	add	ebx, 1
	call	mperf_measure_stats@PLT
	cmp	DWORD PTR cpu_count[rip], ebx
	jg	.L3
.L2:
	lea	rdi, tsc_at_measure_end[rip]
	call	mperf_get_tsc@PLT
	mov	edi, DWORD PTR CLOCK_REALTIME[rip]
	lea	rsi, time_end[rip]
	call	clock_gettime@PLT
	mov	rdi, rsp
	call	mperf_get_tsc@PLT
	mov	rsi, QWORD PTR [rsp]
	lea	rdi, .LC0[rip]
	sub	rsi, QWORD PTR tsc_at_measure_end[rip]
	call	dprint@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L8
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
.L8:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mperf_stop, .-mperf_stop
	.comm	tsc_at_measure_end,8,8
	.comm	time_end,4,4
	.comm	cpu_count,4,4
	.comm	CLOCK_REALTIME,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_mperf_monitor.c_mperf_stop.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"TSC diff: %llu\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mperf_stop, %function
mperf_stop:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r3, .L9
	ldr	r5, .L9+4
	sub	sp, sp, #20
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	ldr	r3, [r5]
	cmp	r3, #0
	ble	.L2
	mov	r4, #0
.L3:
	mov	r0, r4
	bl	mperf_measure_stats
	ldr	r3, [r5]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L3
.L2:
	ldr	r4, .L9+8
	mov	r0, r4
	bl	mperf_get_tsc
	ldr	r3, .L9+12
	ldr	r1, .L9+16
	ldr	r0, [r3]
	bl	clock_gettime
	mov	r0, sp
	bl	mperf_get_tsc
	ldr	r2, [r4]
	ldr	r1, [sp]
	ldr	r0, [sp, #4]
	ldr	r3, [r4, #4]
	subs	r2, r1, r2
	sbc	r3, r0, r3
	ldr	r0, .L9+20
	bl	dprint
	ldr	r3, .L9
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	mov	r0, #0
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, pc}
.L8:
	bl	__stack_chk_fail
.L10:
	.align	2
.L9:
	.word	.LC1
	.word	cpu_count
	.word	tsc_at_measure_end
	.word	CLOCK_REALTIME
	.word	time_end
	.word	.LC0
	.size	mperf_stop, .-mperf_stop
	.comm	tsc_at_measure_end,8,8
	.comm	time_end,4,4
	.comm	cpu_count,4,4
	.comm	CLOCK_REALTIME,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
