	.file	"7237.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"clock_gettime"
	.text
	.globl	get_ns
	.type	get_ns, @function
get_ns:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -32[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	clock_gettime@PLT
	cmp	eax, -1
	jne	.L2
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	eax, 0
	jmp	.L4
.L2:
	mov	rax, QWORD PTR -32[rbp]
	imul	rdx, rax, 1000000000
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
.L4:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	get_ns, .-get_ns
	.section	.rodata
.LC2:
	.string	"normal: %f\n"
.LC3:
	.string	"errorcheck: %f\n"
.LC4:
	.string	"adaptive: %f\n"
.LC5:
	.string	"recursive: %f\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	add	rsp, -128
	mov	DWORD PTR -116[rbp], edi
	mov	QWORD PTR -128[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -112[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	QWORD PTR -16[rbp], 0
	mov	eax, 0
	call	get_ns
	mov	QWORD PTR -80[rbp], rax
.L7:
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	pthread_mutex_lock@PLT
	add	QWORD PTR -112[rbp], 1
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	pthread_mutex_unlock@PLT
	mov	eax, 0
	call	get_ns
	sub	rax, QWORD PTR -80[rbp]
	mov	edx, 3000000000
	cmp	rax, rdx
	jbe	.L7
	mov	rax, QWORD PTR -112[rbp]
	test	rax, rax
	js	.L8
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L9
.L8:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L9:
	movsd	xmm1, QWORD PTR .LC1[rip]
	divsd	xmm0, xmm1
	movq	rax, xmm0
	movq	xmm0, rax
	lea	rdi, .LC2[rip]
	mov	eax, 1
	call	printf@PLT
	mov	QWORD PTR -104[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	QWORD PTR -16[rbp], 0
	mov	DWORD PTR -32[rbp], 2
	mov	eax, 0
	call	get_ns
	mov	QWORD PTR -72[rbp], rax
.L10:
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	pthread_mutex_lock@PLT
	add	QWORD PTR -104[rbp], 1
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	pthread_mutex_unlock@PLT
	mov	eax, 0
	call	get_ns
	sub	rax, QWORD PTR -72[rbp]
	mov	edx, 3000000000
	cmp	rax, rdx
	jbe	.L10
	mov	rax, QWORD PTR -104[rbp]
	test	rax, rax
	js	.L11
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L12
.L11:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L12:
	movsd	xmm1, QWORD PTR .LC1[rip]
	divsd	xmm0, xmm1
	movq	rax, xmm0
	movq	xmm0, rax
	lea	rdi, .LC3[rip]
	mov	eax, 1
	call	printf@PLT
	mov	QWORD PTR -96[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	QWORD PTR -16[rbp], 0
	mov	DWORD PTR -32[rbp], 3
	mov	eax, 0
	call	get_ns
	mov	QWORD PTR -64[rbp], rax
.L13:
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	pthread_mutex_lock@PLT
	add	QWORD PTR -96[rbp], 1
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	pthread_mutex_unlock@PLT
	mov	eax, 0
	call	get_ns
	sub	rax, QWORD PTR -64[rbp]
	mov	edx, 3000000000
	cmp	rax, rdx
	jbe	.L13
	mov	rax, QWORD PTR -96[rbp]
	test	rax, rax
	js	.L14
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L15
.L14:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L15:
	movsd	xmm1, QWORD PTR .LC1[rip]
	divsd	xmm0, xmm1
	movq	rax, xmm0
	movq	xmm0, rax
	lea	rdi, .LC4[rip]
	mov	eax, 1
	call	printf@PLT
	mov	QWORD PTR -88[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	QWORD PTR -16[rbp], 0
	mov	DWORD PTR -32[rbp], 1
	mov	eax, 0
	call	get_ns
	mov	QWORD PTR -56[rbp], rax
.L16:
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	pthread_mutex_lock@PLT
	add	QWORD PTR -88[rbp], 1
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	pthread_mutex_unlock@PLT
	mov	eax, 0
	call	get_ns
	sub	rax, QWORD PTR -56[rbp]
	mov	edx, 3000000000
	cmp	rax, rdx
	jbe	.L16
	mov	rax, QWORD PTR -88[rbp]
	test	rax, rax
	js	.L17
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L18
.L17:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L18:
	movsd	xmm1, QWORD PTR .LC1[rip]
	divsd	xmm0, xmm1
	movq	rax, xmm0
	movq	xmm0, rax
	lea	rdi, .LC5[rip]
	mov	eax, 1
	call	printf@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC1:
	.long	0
	.long	1074266112
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"7237.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"clock_gettime\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	get_ns
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_ns, %function
get_ns:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #16
	ldr	r3, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #24
	mov	r1, r3
	mov	r0, #0
	bl	clock_gettime
	mov	r3, r0
	cmn	r3, #1
	bne	.L2
	ldr	r0, .L6+4
	bl	perror
	mov	r2, #0
	mov	r3, #0
	b	.L4
.L2:
	ldr	r3, [fp, #-24]
	mov	r0, r3
	asr	r1, r0, #31
	ldr	r3, .L6+8
	mul	r2, r3, r1
	mov	r3, #0
	mul	r3, r0, r3
	add	ip, r2, r3
	ldr	lr, .L6+8
	umull	r2, r3, r0, lr
	add	r1, ip, r3
	mov	r3, r1
	ldr	r1, [fp, #-20]
	mov	r0, r1
	asr	r1, r0, #31
	adds	r4, r2, r0
	adc	r5, r3, r1
	mov	r2, r4
	mov	r3, r5
.L4:
	ldr	r1, .L6
	ldr	r0, [r1]
	ldr	r1, [fp, #-16]
	eors	r0, r1, r0
	mov	r1, #0
	beq	.L5
	bl	__stack_chk_fail
.L5:
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC1
	.word	.LC0
	.word	1000000000
	.size	get_ns, .-get_ns
	.global	__aeabi_ul2d
	.global	__aeabi_ddiv
	.section	.rodata
	.align	2
.LC2:
	.ascii	"normal: %f\012\000"
	.align	2
.LC3:
	.ascii	"errorcheck: %f\012\000"
	.align	2
.LC4:
	.ascii	"adaptive: %f\012\000"
	.align	2
.LC5:
	.ascii	"recursive: %f\012\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 144
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #144
	str	r0, [fp, #-128]
	str	r1, [fp, #-132]
	ldr	r3, .L15+8
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-124]
	str	r3, [fp, #-120]
	sub	r2, fp, #56
	mov	r3, #0
	str	r3, [r2]
	str	r3, [r2, #4]
	str	r3, [r2, #8]
	str	r3, [r2, #12]
	str	r3, [r2, #16]
	str	r3, [r2, #20]
	bl	get_ns
	str	r0, [fp, #-92]
	str	r1, [fp, #-88]
.L9:
	sub	r3, fp, #56
	mov	r0, r3
	bl	pthread_mutex_lock
	sub	r3, fp, #124
	ldmia	r3, {r2-r3}
	adds	r6, r2, #1
	adc	r7, r3, #0
	str	r6, [fp, #-124]
	str	r7, [fp, #-120]
	sub	r3, fp, #56
	mov	r0, r3
	bl	pthread_mutex_unlock
	bl	get_ns
	sub	r3, fp, #92
	ldmia	r3, {r2-r3}
	subs	r4, r0, r2
	sbc	r5, r1, r3
	adr	r3, .L15
	ldmia	r3, {r2-r3}
	cmp	r5, r3
	cmpeq	r4, r2
	bls	.L9
	sub	r1, fp, #124
	ldmia	r1, {r0-r1}
	bl	__aeabi_ul2d
	mov	r2, #0
	ldr	r3, .L15+12
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L15+16
	bl	printf
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-116]
	str	r3, [fp, #-112]
	mov	r3, #0
	str	r3, [fp, #-56]
	mov	r3, #0
	str	r3, [fp, #-52]
	mov	r3, #0
	str	r3, [fp, #-48]
	mov	r3, #2
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-36]
	bl	get_ns
	str	r0, [fp, #-84]
	str	r1, [fp, #-80]
.L10:
	sub	r3, fp, #56
	mov	r0, r3
	bl	pthread_mutex_lock
	sub	r3, fp, #116
	ldmia	r3, {r2-r3}
	adds	r1, r2, #1
	str	r1, [fp, #-156]
	adc	r3, r3, #0
	str	r3, [fp, #-152]
	sub	r4, fp, #156
	ldmia	r4, {r3-r4}
	str	r3, [fp, #-116]
	str	r4, [fp, #-112]
	sub	r3, fp, #56
	mov	r0, r3
	bl	pthread_mutex_unlock
	bl	get_ns
	sub	r3, fp, #84
	ldmia	r3, {r2-r3}
	subs	r8, r0, r2
	sbc	r9, r1, r3
	adr	r3, .L15
	ldmia	r3, {r2-r3}
	cmp	r9, r3
	cmpeq	r8, r2
	bls	.L10
	sub	r1, fp, #116
	ldmia	r1, {r0-r1}
	bl	__aeabi_ul2d
	mov	r2, #0
	ldr	r3, .L15+12
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L15+20
	bl	printf
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-108]
	str	r3, [fp, #-104]
	mov	r3, #0
	str	r3, [fp, #-56]
	mov	r3, #0
	str	r3, [fp, #-52]
	mov	r3, #0
	str	r3, [fp, #-48]
	mov	r3, #3
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-36]
	bl	get_ns
	str	r0, [fp, #-76]
	str	r1, [fp, #-72]
.L11:
	sub	r3, fp, #56
	mov	r0, r3
	bl	pthread_mutex_lock
	sub	r3, fp, #108
	ldmia	r3, {r2-r3}
	adds	r1, r2, #1
	str	r1, [fp, #-164]
	adc	r3, r3, #0
	str	r3, [fp, #-160]
	sub	r4, fp, #164
	ldmia	r4, {r3-r4}
	str	r3, [fp, #-108]
	str	r4, [fp, #-104]
	sub	r3, fp, #56
	mov	r0, r3
	bl	pthread_mutex_unlock
	bl	get_ns
	sub	r3, fp, #76
	ldmia	r3, {r2-r3}
	subs	ip, r0, r2
	str	ip, [fp, #-140]
	sbc	r3, r1, r3
	str	r3, [fp, #-136]
	adr	r3, .L15
	ldmia	r3, {r2-r3}
	sub	r1, fp, #140
	ldmia	r1, {r0-r1}
	cmp	r1, r3
	cmpeq	r0, r2
	bls	.L11
	sub	r1, fp, #108
	ldmia	r1, {r0-r1}
	bl	__aeabi_ul2d
	mov	r2, #0
	ldr	r3, .L15+12
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L15+24
	bl	printf
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-100]
	str	r3, [fp, #-96]
	mov	r3, #0
	str	r3, [fp, #-56]
	mov	r3, #0
	str	r3, [fp, #-52]
	mov	r3, #0
	str	r3, [fp, #-48]
	mov	r3, #1
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-36]
	bl	get_ns
	str	r0, [fp, #-68]
	str	r1, [fp, #-64]
.L12:
	sub	r3, fp, #56
	mov	r0, r3
	bl	pthread_mutex_lock
	sub	r3, fp, #100
	ldmia	r3, {r2-r3}
	adds	r1, r2, #1
	str	r1, [fp, #-172]
	adc	r3, r3, #0
	str	r3, [fp, #-168]
	sub	r4, fp, #172
	ldmia	r4, {r3-r4}
	str	r3, [fp, #-100]
	str	r4, [fp, #-96]
	sub	r3, fp, #56
	mov	r0, r3
	bl	pthread_mutex_unlock
	bl	get_ns
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	subs	ip, r0, r2
	str	ip, [fp, #-148]
	sbc	r3, r1, r3
	str	r3, [fp, #-144]
	adr	r3, .L15
	ldmia	r3, {r2-r3}
	sub	r1, fp, #148
	ldmia	r1, {r0-r1}
	cmp	r1, r3
	cmpeq	r0, r2
	bls	.L12
	sub	r1, fp, #100
	ldmia	r1, {r0-r1}
	bl	__aeabi_ul2d
	mov	r2, #0
	ldr	r3, .L15+12
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L15+28
	bl	printf
	mov	r3, #0
	ldr	r2, .L15+8
	ldr	r1, [r2]
	ldr	r2, [fp, #-32]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	mov	r0, r3
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L16:
	.align	3
.L15:
	.word	-1294967296
	.word	0
	.word	.LC6
	.word	1074266112
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
