	.file	"extr_disable-tsc-on-off-stress-test.c_sigsegv_cb.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"FATAL ERROR, rdtsc() failed while enabled\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"prctl"
	.text
	.p2align 4
	.type	sigsegv_cb, @function
sigsegv_cb:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	cmp	QWORD PTR should_segv[rip], 0
	je	.L6
.L2:
	mov	esi, DWORD PTR PR_TSC_ENABLE[rip]
	mov	edi, DWORD PTR PR_SET_TSC[rip]
	call	prctl@PLT
	test	rax, rax
	js	.L7
.L3:
	mov	QWORD PTR should_segv[rip], 0
	xor	eax, eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	rdtsc@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	call	fprintf@PLT
	xor	edi, edi
	call	exit@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L7:
	lea	rdi, .LC1[rip]
	call	perror@PLT
	xor	edi, edi
	call	exit@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	sigsegv_cb, .-sigsegv_cb
	.comm	stderr,4,4
	.comm	should_segv,8,8
	.comm	PR_TSC_ENABLE,4,4
	.comm	PR_SET_TSC,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_disable-tsc-on-off-stress-test.c_sigsegv_cb.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"FATAL ERROR, rdtsc() failed while enabled\012\000"
	.align	2
.LC1:
	.ascii	"prctl\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sigsegv_cb, %function
sigsegv_cb:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r4, .L8
	ldr	r5, [r4]
	cmp	r5, #0
	beq	.L6
.L2:
	ldr	r2, .L8+4
	ldr	r3, .L8+8
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	prctl
	cmp	r0, #0
	blt	.L7
	mov	r3, #0
	str	r3, [r4]
	pop	{r4, r5, r6, lr}
	b	rdtsc
.L6:
	ldr	r3, .L8+12
	ldr	r1, .L8+16
	ldr	r0, [r3]
	bl	fprintf
	mov	r0, r5
	bl	exit
	b	.L2
.L7:
	ldr	r0, .L8+20
	bl	perror
	mov	r0, #0
	bl	exit
	mov	r3, #0
	str	r3, [r4]
	pop	{r4, r5, r6, lr}
	b	rdtsc
.L9:
	.align	2
.L8:
	.word	should_segv
	.word	PR_TSC_ENABLE
	.word	PR_SET_TSC
	.word	stderr
	.word	.LC0
	.word	.LC1
	.size	sigsegv_cb, .-sigsegv_cb
	.comm	stderr,4,4
	.comm	should_segv,4,4
	.comm	PR_TSC_ENABLE,4,4
	.comm	PR_SET_TSC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
