	.file	"9316.c"
	.intel_syntax noprefix
	.text
	.globl	arr
	.data
	.align 32
	.type	arr, @object
	.size	arr, 125000000
arr:
	.long	7
	.zero	124999996
	.globl	init
	.bss
	.align 32
	.type	init, @object
	.size	init, 125000000
init:
	.zero	125000000
	.section	.rodata
.LC1:
	.string	"runtime=%.9lf sec\n"
	.text
	.globl	get_runtime
	.type	get_runtime, @function
get_runtime:
.LFB6:
	.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, rsi
	mov	r8, rdi
	mov	rsi, r8
	mov	rdi, r9
	mov	rdi, rax
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -32[rbp], rdx
	mov	QWORD PTR -24[rbp], rcx
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	sub	rax, rdx
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	sub	rax, rdx
	mov	QWORD PTR -32[rbp], rax
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	imul	rax, rax, 1000000
	add	rax, rdx
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	movsd	xmm1, QWORD PTR .LC0[rip]
	divsd	xmm0, xmm1
	movq	rax, xmm0
	movq	xmm0, rax
	lea	rdi, .LC1[rip]
	mov	eax, 1
	call	printf@PLT
	mov	rax, QWORD PTR -24[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	movsd	xmm1, QWORD PTR .LC0[rip]
	divsd	xmm0, xmm1
	movq	rax, xmm0
	movq	xmm0, rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	get_runtime, .-get_runtime
	.globl	t1
	.type	t1, @function
t1:
.LFB7:
	.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	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR -12[rbp], eax
	jmp	.L4
.L5:
	mov	eax, DWORD PTR -12[rbp]
	sub	eax, 1
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, arr[rip]
	mov	ecx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, init[rip]
	mov	eax, DWORD PTR [rdx+rax]
	add	ecx, eax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, arr[rip]
	mov	DWORD PTR [rdx+rax], ecx
	add	DWORD PTR -12[rbp], 1
.L4:
	mov	eax, DWORD PTR -4[rbp]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L5
	mov	eax, DWORD PTR -12[rbp]
	sub	eax, 1
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, arr[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	mov	rdi, rax
	call	pthread_exit@PLT
	.cfi_endproc
.LFE7:
	.size	t1, .-t1
	.globl	t2
	.type	t2, @function
t2:
.LFB8:
	.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	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -12[rbp], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR -16[rbp], eax
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, init[rip]
	mov	eax, DWORD PTR [rdx+rax]
	add	DWORD PTR -12[rbp], eax
	add	DWORD PTR -16[rbp], 1
.L7:
	mov	eax, DWORD PTR -4[rbp]
	cmp	DWORD PTR -16[rbp], eax
	jl	.L8
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	mov	rdi, rax
	call	pthread_exit@PLT
	.cfi_endproc
.LFE8:
	.size	t2, .-t2
	.section	.rodata
.LC2:
	.string	"arr[%d]=%d\n"
.LC3:
	.string	"ret[0]=%d\n"
.LC4:
	.string	"rest[1]=%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	QWORD PTR -16[rbp], 0
	mov	DWORD PTR -104[rbp], 0
	mov	QWORD PTR -44[rbp], 0
	mov	DWORD PTR -36[rbp], 0
	mov	DWORD PTR -100[rbp], 0
	mov	DWORD PTR -96[rbp], 1
	mov	DWORD PTR -92[rbp], 15625000
	mov	DWORD PTR -88[rbp], 15625000
	mov	DWORD PTR -84[rbp], 31250000
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	mov	DWORD PTR -108[rbp], 0
	jmp	.L10
.L11:
	call	rand@PLT
	mov	edx, eax
	movsx	rax, edx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 2
	mov	esi, edx
	sar	esi, 31
	sub	eax, esi
	mov	ecx, eax
	mov	eax, ecx
	sal	eax, 2
	add	eax, ecx
	add	eax, eax
	mov	ecx, edx
	sub	ecx, eax
	add	ecx, 1
	mov	eax, DWORD PTR -108[rbp]
	lea	rdx, 0[0+rax*4]
	lea	rax, init[rip]
	mov	DWORD PTR [rdx+rax], ecx
	add	DWORD PTR -108[rbp], 1
.L10:
	cmp	DWORD PTR -108[rbp], 31249999
	jbe	.L11
	lea	rax, -80[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	DWORD PTR -108[rbp], 1
	jmp	.L12
.L13:
	mov	eax, DWORD PTR -108[rbp]
	sub	eax, 1
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, arr[rip]
	mov	ecx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -108[rbp]
	lea	rdx, 0[0+rax*4]
	lea	rax, init[rip]
	mov	eax, DWORD PTR [rdx+rax]
	add	ecx, eax
	mov	eax, DWORD PTR -108[rbp]
	lea	rdx, 0[0+rax*4]
	lea	rax, arr[rip]
	mov	DWORD PTR [rdx+rax], ecx
	add	DWORD PTR -108[rbp], 1
.L12:
	cmp	DWORD PTR -108[rbp], 31249999
	jbe	.L13
	lea	rax, -64[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	lea	rax, arr[rip]
	mov	eax, DWORD PTR 124999996[rax]
	mov	edx, eax
	mov	esi, 31249999
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR -56[rbp]
	mov	rdi, QWORD PTR -80[rbp]
	mov	rsi, QWORD PTR -72[rbp]
	mov	rcx, rdx
	mov	rdx, rax
	call	get_runtime
	lea	rax, -80[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	lea	rdx, -96[rbp]
	lea	rax, -32[rbp]
	mov	rcx, rdx
	lea	rdx, t1[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	lea	rax, -88[rbp]
	lea	rdx, -32[rbp]
	lea	rdi, 8[rdx]
	mov	rcx, rax
	lea	rdx, t2[rip]
	mov	esi, 0
	call	pthread_create@PLT
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, -44[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_join@PLT
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, -44[rbp]
	add	rdx, 4
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_join@PLT
	lea	rax, -64[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	eax, DWORD PTR -44[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -40[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, DWORD PTR -44[rbp]
	mov	eax, DWORD PTR -40[rbp]
	add	eax, edx
	mov	edx, eax
	mov	esi, 31249999
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR -56[rbp]
	mov	rdi, QWORD PTR -80[rbp]
	mov	rsi, QWORD PTR -72[rbp]
	mov	rcx, rdx
	mov	rdx, rax
	call	get_runtime
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.long	0
	.long	1093567616
	.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	"9316.c"
	.text
	.global	arr
	.data
	.align	2
	.type	arr, %object
	.size	arr, 125000000
arr:
	.word	7
	.space	124999996
	.comm	init,125000000,4
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.section	.rodata
	.align	2
.LC2:
	.ascii	"runtime=%.9lf sec\012\000"
	.text
	.align	2
	.global	get_runtime
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_runtime, %function
get_runtime:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	sub	ip, fp, #12
	stm	ip, {r0, r1}
	sub	r1, fp, #20
	stm	r1, {r2, r3}
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	sub	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-12]
	sub	r3, r2, r3
	str	r3, [fp, #-20]
	ldr	r0, [fp, #-16]
	ldr	r1, [fp, #-20]
	mov	r2, r1
	lsl	r2, r2, #5
	sub	r2, r2, r1
	lsl	r3, r2, #6
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r1
	lsl	r3, r3, #6
	add	r3, r0, r3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L3
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L3+4
	bl	printf
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L3
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	1093567616
	.word	.LC2
	.size	get_runtime, .-get_runtime
	.align	2
	.global	t1
	.syntax unified
	.arm
	.fpu softvfp
	.type	t1, %function
t1:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	ldr	r2, [fp, #-24]
	sub	r3, fp, #12
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-16]
	b	.L6
.L7:
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	ldr	r2, .L8
	ldr	r2, [r2, r3, lsl #2]
	ldr	r1, .L8+4
	ldr	r3, [fp, #-16]
	ldr	r3, [r1, r3, lsl #2]
	add	r2, r2, r3
	ldr	r1, .L8
	ldr	r3, [fp, #-16]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L6:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L7
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	ldr	r2, .L8
	ldr	r3, [r2, r3, lsl #2]
	mov	r0, r3
	bl	pthread_exit
.L9:
	.align	2
.L8:
	.word	arr
	.word	init
	.size	t1, .-t1
	.align	2
	.global	t2
	.syntax unified
	.arm
	.fpu softvfp
	.type	t2, %function
t2:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r2, [fp, #-24]
	sub	r3, fp, #12
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-20]
	b	.L11
.L12:
	ldr	r2, .L13
	ldr	r3, [fp, #-20]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L11:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	blt	.L12
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	pthread_exit
.L14:
	.align	2
.L13:
	.word	init
	.size	t2, .-t2
	.section	.rodata
	.align	2
.LC3:
	.ascii	"arr[%d]=%d\012\000"
	.align	2
.LC4:
	.ascii	"ret[0]=%d\012\000"
	.align	2
.LC5:
	.ascii	"rest[1]=%d\012\000"
	.align	2
.LC0:
	.word	1
	.word	15625000
	.align	2
.LC1:
	.word	15625000
	.word	31250000
	.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 = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #72
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #32
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	mov	r3, #0
	str	r3, [fp, #-72]
	sub	r3, fp, #20
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	mov	r3, #0
	str	r3, [fp, #-68]
	ldr	r2, .L22+4
	sub	r3, fp, #64
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	ldr	r2, .L22+8
	sub	r3, fp, #56
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	mov	r3, #0
	str	r3, [fp, #-76]
	b	.L16
.L17:
	bl	rand
	mov	r1, r0
	ldr	r3, .L22+12
	smull	r2, r3, r1, r3
	asr	r2, r3, #2
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, r1, r3
	add	r2, r2, #1
	ldr	r1, .L22+16
	ldr	r3, [fp, #-76]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
.L16:
	ldr	r3, [fp, #-76]
	ldr	r2, .L22+20
	cmp	r3, r2
	bls	.L17
	sub	r3, fp, #48
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	mov	r3, #1
	str	r3, [fp, #-76]
	b	.L18
.L19:
	ldr	r3, [fp, #-76]
	sub	r3, r3, #1
	ldr	r2, .L22+24
	ldr	r2, [r2, r3, lsl #2]
	ldr	r1, .L22+16
	ldr	r3, [fp, #-76]
	ldr	r3, [r1, r3, lsl #2]
	add	r2, r2, r3
	ldr	r1, .L22+24
	ldr	r3, [fp, #-76]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
.L18:
	ldr	r3, [fp, #-76]
	ldr	r2, .L22+20
	cmp	r3, r2
	bls	.L19
	sub	r3, fp, #40
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	ldr	r3, .L22+24
	add	r3, r3, #124780544
	add	r3, r3, #217088
	ldr	r3, [r3, #2364]
	mov	r2, r3
	ldr	r1, .L22+20
	ldr	r0, .L22+28
	bl	printf
	sub	r3, fp, #40
	ldm	r3, {r2, r3}
	sub	r1, fp, #48
	ldm	r1, {r0, r1}
	bl	get_runtime
	sub	r3, fp, #48
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	sub	r3, fp, #64
	sub	r0, fp, #32
	ldr	r2, .L22+32
	mov	r1, #0
	bl	pthread_create
	sub	r2, fp, #56
	sub	r3, fp, #32
	add	r0, r3, #4
	mov	r3, r2
	ldr	r2, .L22+36
	mov	r1, #0
	bl	pthread_create
	ldr	r3, [fp, #-32]
	sub	r2, fp, #20
	mov	r1, r2
	mov	r0, r3
	bl	pthread_join
	ldr	r2, [fp, #-28]
	sub	r3, fp, #20
	add	r3, r3, #4
	mov	r1, r3
	mov	r0, r2
	bl	pthread_join
	sub	r3, fp, #40
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	ldr	r3, [fp, #-20]
	mov	r1, r3
	ldr	r0, .L22+40
	bl	printf
	ldr	r3, [fp, #-16]
	mov	r1, r3
	ldr	r0, .L22+44
	bl	printf
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r1, .L22+20
	ldr	r0, .L22+28
	bl	printf
	sub	r3, fp, #40
	ldm	r3, {r2, r3}
	sub	r1, fp, #48
	ldm	r1, {r0, r1}
	bl	get_runtime
	mov	r3, #0
	ldr	r2, .L22
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L21
	bl	__stack_chk_fail
.L21:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC6
	.word	.LC0
	.word	.LC1
	.word	1717986919
	.word	init
	.word	31249999
	.word	arr
	.word	.LC3
	.word	t1
	.word	t2
	.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
