	.file	"59064.c"
	.intel_syntax noprefix
	.text
	.type	thread_printf, @function
thread_printf:
.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, 368
	mov	QWORD PTR -360[rbp], rdi
	mov	QWORD PTR -168[rbp], rsi
	mov	QWORD PTR -160[rbp], rdx
	mov	QWORD PTR -152[rbp], rcx
	mov	QWORD PTR -144[rbp], r8
	mov	QWORD PTR -136[rbp], r9
	test	al, al
	je	.L2
	movaps	XMMWORD PTR -128[rbp], xmm0
	movaps	XMMWORD PTR -112[rbp], xmm1
	movaps	XMMWORD PTR -96[rbp], xmm2
	movaps	XMMWORD PTR -80[rbp], xmm3
	movaps	XMMWORD PTR -64[rbp], xmm4
	movaps	XMMWORD PTR -48[rbp], xmm5
	movaps	XMMWORD PTR -32[rbp], xmm6
	movaps	XMMWORD PTR -16[rbp], xmm7
.L2:
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -184[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -344[rbp], 8
	mov	DWORD PTR -340[rbp], 48
	lea	rax, 16[rbp]
	mov	QWORD PTR -336[rbp], rax
	lea	rax, -176[rbp]
	mov	QWORD PTR -328[rbp], rax
	mov	DWORD PTR -352[rbp], 128
	mov	eax, DWORD PTR -352[rbp]
	movsx	rsi, eax
	lea	rcx, -344[rbp]
	mov	rdx, QWORD PTR -360[rbp]
	lea	rax, -320[rbp]
	mov	rdi, rax
	call	vsnprintf@PLT
	mov	DWORD PTR -348[rbp], eax
	cmp	DWORD PTR -348[rbp], 0
	jle	.L5
	mov	eax, DWORD PTR -348[rbp]
	movsx	rdx, eax
	lea	rax, -320[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	write@PLT
.L5:
	nop
	mov	rax, QWORD PTR -184[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L4
	call	__stack_chk_fail@PLT
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	thread_printf, .-thread_printf
	.type	random_get, @function
random_get:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	DWORD PTR -4[rbp], 2147483647
	mov	eax, DWORD PTR x.0[rip]
	imul	eax, eax, 16807
	mov	edx, 0
	div	DWORD PTR -4[rbp]
	mov	eax, edx
	mov	DWORD PTR x.0[rip], eax
	mov	eax, DWORD PTR x.0[rip]
	mov	edx, eax
	mov	eax, DWORD PTR -24[rbp]
	sub	eax, DWORD PTR -20[rbp]
	cdqe
	imul	rax, rdx
	mov	edx, DWORD PTR -4[rbp]
	sub	edx, 1
	mov	ecx, edx
	mov	edx, 0
	div	rcx
	mov	edx, eax
	mov	eax, DWORD PTR -20[rbp]
	add	eax, edx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	random_get, .-random_get
	.type	time_get, @function
time_get:
.LFB2:
	.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	esi, 1
	mov	rdi, rax
	call	timespec_get@PLT
	mov	rax, QWORD PTR -32[rbp]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, rax
	mov	rax, QWORD PTR -24[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	movsd	xmm2, QWORD PTR .LC0[rip]
	divsd	xmm0, xmm2
	addsd	xmm0, xmm1
	movq	rax, xmm0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	movq	xmm0, rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	time_get, .-time_get
	.type	thread_run_malloc, @function
thread_run_malloc:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -24
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	DWORD PTR -28[rbp], 0
	jmp	.L12
.L13:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cdqe
	mov	rdx, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR 16[rdx]
	mov	edx, DWORD PTR -28[rbp]
	movsx	rdx, edx
	sal	rdx, 3
	lea	rbx, [rcx+rdx]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	add	DWORD PTR -28[rbp], 1
.L12:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	DWORD PTR -28[rbp], eax
	jl	.L13
	mov	eax, 0
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	thread_run_malloc, .-thread_run_malloc
	.type	thread_run_free, @function
thread_run_free:
.LFB4:
	.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	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -12[rbp], 0
	jmp	.L16
.L17:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	add	DWORD PTR -12[rbp], 1
.L16:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L17
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	thread_run_free, .-thread_run_free
	.section	.rodata
	.align 8
.LC1:
	.string	"libc threads malloc()/free() benchmark\n--------------------------------------\n\nn = %d (number of objects)\nm = %d (number of threads)\n\n"
.LC2:
	.string	"failed to create thread %d\n"
.LC3:
	.string	"failed to wait for thread %d\n"
.LC4:
	.string	"malloc() burst speed:"
.LC5:
	.string	"  t = %f s (test duration)\n"
	.align 8
.LC7:
	.string	"  n/t = %f MHz (average number of allocations per second, all threads combined)\n"
	.align 8
.LC8:
	.string	"  n/t = %f MHz (average number of allocations per second)\n"
	.align 8
.LC9:
	.string	"  t/n = %f ns (average latency of an allocation)\n"
.LC10:
	.string	"free() burst speed:"
	.align 8
.LC11:
	.string	"  n/t = %f MHz (average number of deallocations per second, all threads combined)\n"
	.align 8
.LC12:
	.string	"  n/t = %f MHz (average number of deallocations per second)\n"
	.align 8
.LC13:
	.string	"  t/n = %f ns (average latency of an deallocation)\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB5:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 248
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	DWORD PTR -196[rbp], edi
	mov	QWORD PTR -208[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	QWORD PTR -280[rbp], rax
	mov	DWORD PTR -152[rbp], 8
	mov	DWORD PTR -148[rbp], 10000000
	mov	DWORD PTR -144[rbp], 12
	mov	DWORD PTR -140[rbp], 130
	mov	eax, DWORD PTR -152[rbp]
	mov	ecx, DWORD PTR -148[rbp]
	mov	edx, eax
	mov	esi, ecx
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -152[rbp]
	cdqe
	sub	rax, 1
	mov	QWORD PTR -136[rbp], rax
	mov	eax, DWORD PTR -152[rbp]
	cdqe
	mov	r14, rax
	mov	r15d, 0
	imul	rdx, r15, 192
	imul	rax, r14, 0
	lea	rcx, [rdx+rax]
	mov	eax, 192
	mul	r14
	add	rcx, rdx
	mov	rdx, rcx
	mov	eax, DWORD PTR -152[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	eax, DWORD PTR -152[rbp]
	cdqe
	mov	r12, rax
	mov	r13d, 0
	imul	rdx, r13, 192
	imul	rax, r12, 0
	lea	rcx, [rdx+rax]
	mov	eax, 192
	mul	r12
	add	rcx, rdx
	mov	rdx, rcx
	mov	eax, DWORD PTR -152[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	ebx, 16
	mov	edx, 0
	div	rbx
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L20:
	cmp	rsp, rdx
	je	.L21
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L20
.L21:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L22
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L22:
	mov	rax, rsp
	add	rax, 7
	shr	rax, 3
	sal	rax, 3
	mov	QWORD PTR -128[rbp], rax
	mov	DWORD PTR -156[rbp], 0
	jmp	.L23
.L26:
	mov	eax, DWORD PTR -156[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, QWORD PTR -128[rbp]
	add	rax, rdx
	mov	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -156[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -148[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	eax, DWORD PTR -148[rbp]
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	eax, DWORD PTR -148[rbp]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	DWORD PTR -160[rbp], 0
	jmp	.L24
.L25:
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -160[rbp]
	cdqe
	sal	rax, 2
	lea	rbx, [rdx+rax]
	mov	edx, DWORD PTR -140[rbp]
	mov	eax, DWORD PTR -144[rbp]
	mov	esi, edx
	mov	edi, eax
	call	random_get
	mov	DWORD PTR [rbx], eax
	add	DWORD PTR -160[rbp], 1
.L24:
	mov	eax, DWORD PTR -160[rbp]
	cmp	eax, DWORD PTR -148[rbp]
	jl	.L25
	add	DWORD PTR -156[rbp], 1
.L23:
	mov	eax, DWORD PTR -156[rbp]
	cmp	eax, DWORD PTR -152[rbp]
	jl	.L26
	mov	rax, rsp
	mov	rbx, rax
	mov	eax, DWORD PTR -152[rbp]
	cdqe
	sub	rax, 1
	mov	QWORD PTR -120[rbp], rax
	mov	eax, DWORD PTR -152[rbp]
	cdqe
	mov	QWORD PTR -224[rbp], rax
	mov	QWORD PTR -216[rbp], 0
	mov	eax, DWORD PTR -152[rbp]
	cdqe
	mov	QWORD PTR -240[rbp], rax
	mov	QWORD PTR -232[rbp], 0
	mov	eax, DWORD PTR -152[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L27:
	cmp	rsp, rdx
	je	.L28
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L27
.L28:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L29
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L29:
	mov	rax, rsp
	add	rax, 7
	shr	rax, 3
	sal	rax, 3
	mov	QWORD PTR -112[rbp], rax
	mov	eax, 0
	call	time_get
	movq	rax, xmm0
	mov	QWORD PTR -104[rbp], rax
	mov	DWORD PTR -164[rbp], 0
	jmp	.L30
.L32:
	mov	eax, DWORD PTR -164[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, QWORD PTR -128[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -164[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -112[rbp]
	add	rax, rcx
	mov	rcx, rdx
	lea	rdx, thread_run_malloc[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	test	eax, eax
	je	.L31
	mov	eax, DWORD PTR -164[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	thread_printf
.L31:
	add	DWORD PTR -164[rbp], 1
.L30:
	mov	eax, DWORD PTR -164[rbp]
	cmp	eax, DWORD PTR -152[rbp]
	jl	.L32
	mov	DWORD PTR -168[rbp], 0
	jmp	.L33
.L35:
	mov	rax, QWORD PTR -112[rbp]
	mov	edx, DWORD PTR -168[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR [rax+rdx*8]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	test	eax, eax
	je	.L34
	mov	eax, DWORD PTR -168[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	thread_printf
.L34:
	add	DWORD PTR -168[rbp], 1
.L33:
	mov	eax, DWORD PTR -168[rbp]
	cmp	eax, DWORD PTR -152[rbp]
	jl	.L35
	mov	eax, 0
	call	time_get
	movq	rax, xmm0
	movq	xmm0, rax
	subsd	xmm0, QWORD PTR -104[rbp]
	movsd	QWORD PTR -104[rbp], xmm0
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -104[rbp]
	movq	xmm0, rax
	lea	rdi, .LC5[rip]
	mov	eax, 1
	call	printf@PLT
	mov	eax, DWORD PTR -152[rbp]
	imul	eax, DWORD PTR -148[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	divsd	xmm0, QWORD PTR -104[rbp]
	movsd	xmm1, QWORD PTR .LC6[rip]
	divsd	xmm0, xmm1
	movq	rax, xmm0
	movq	xmm0, rax
	lea	rdi, .LC7[rip]
	mov	eax, 1
	call	printf@PLT
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -148[rbp]
	divsd	xmm0, QWORD PTR -104[rbp]
	movsd	xmm1, QWORD PTR .LC6[rip]
	divsd	xmm0, xmm1
	movq	rax, xmm0
	movq	xmm0, rax
	lea	rdi, .LC8[rip]
	mov	eax, 1
	call	printf@PLT
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, DWORD PTR -148[rbp]
	movsd	xmm0, QWORD PTR -104[rbp]
	movapd	xmm1, xmm0
	divsd	xmm1, xmm2
	movsd	xmm0, QWORD PTR .LC0[rip]
	mulsd	xmm1, xmm0
	movq	rax, xmm1
	movq	xmm0, rax
	lea	rdi, .LC9[rip]
	mov	eax, 1
	call	printf@PLT
	mov	edi, 10
	call	putchar@PLT
	mov	rsp, rbx
	mov	rax, rsp
	mov	rbx, rax
	mov	eax, DWORD PTR -152[rbp]
	cdqe
	sub	rax, 1
	mov	QWORD PTR -96[rbp], rax
	mov	eax, DWORD PTR -152[rbp]
	cdqe
	mov	QWORD PTR -256[rbp], rax
	mov	QWORD PTR -248[rbp], 0
	mov	eax, DWORD PTR -152[rbp]
	cdqe
	mov	QWORD PTR -272[rbp], rax
	mov	QWORD PTR -264[rbp], 0
	mov	eax, DWORD PTR -152[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L36:
	cmp	rsp, rdx
	je	.L37
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L36
.L37:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L38
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L38:
	mov	rax, rsp
	add	rax, 7
	shr	rax, 3
	sal	rax, 3
	mov	QWORD PTR -88[rbp], rax
	mov	eax, 0
	call	time_get
	movq	rax, xmm0
	mov	QWORD PTR -80[rbp], rax
	mov	DWORD PTR -172[rbp], 0
	jmp	.L39
.L41:
	mov	eax, DWORD PTR -172[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, QWORD PTR -128[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -172[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rcx
	mov	rcx, rdx
	lea	rdx, thread_run_free[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	test	eax, eax
	je	.L40
	mov	eax, DWORD PTR -172[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	thread_printf
.L40:
	add	DWORD PTR -172[rbp], 1
.L39:
	mov	eax, DWORD PTR -172[rbp]
	cmp	eax, DWORD PTR -152[rbp]
	jl	.L41
	mov	DWORD PTR -176[rbp], 0
	jmp	.L42
.L44:
	mov	rax, QWORD PTR -88[rbp]
	mov	edx, DWORD PTR -176[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR [rax+rdx*8]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	test	eax, eax
	je	.L43
	mov	eax, DWORD PTR -176[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	thread_printf
.L43:
	add	DWORD PTR -176[rbp], 1
.L42:
	mov	eax, DWORD PTR -176[rbp]
	cmp	eax, DWORD PTR -152[rbp]
	jl	.L44
	mov	eax, 0
	call	time_get
	movq	rax, xmm0
	movq	xmm0, rax
	subsd	xmm0, QWORD PTR -80[rbp]
	movsd	QWORD PTR -80[rbp], xmm0
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -80[rbp]
	movq	xmm0, rax
	lea	rdi, .LC5[rip]
	mov	eax, 1
	call	printf@PLT
	mov	eax, DWORD PTR -152[rbp]
	imul	eax, DWORD PTR -148[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	divsd	xmm0, QWORD PTR -80[rbp]
	movsd	xmm1, QWORD PTR .LC6[rip]
	divsd	xmm0, xmm1
	movq	rax, xmm0
	movq	xmm0, rax
	lea	rdi, .LC11[rip]
	mov	eax, 1
	call	printf@PLT
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -148[rbp]
	divsd	xmm0, QWORD PTR -80[rbp]
	movsd	xmm1, QWORD PTR .LC6[rip]
	divsd	xmm0, xmm1
	movq	rax, xmm0
	movq	xmm0, rax
	lea	rdi, .LC12[rip]
	mov	eax, 1
	call	printf@PLT
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, DWORD PTR -148[rbp]
	movsd	xmm0, QWORD PTR -80[rbp]
	movapd	xmm1, xmm0
	divsd	xmm1, xmm2
	movsd	xmm0, QWORD PTR .LC0[rip]
	mulsd	xmm1, xmm0
	movq	rax, xmm1
	movq	xmm0, rax
	lea	rdi, .LC13[rip]
	mov	eax, 1
	call	printf@PLT
	mov	edi, 10
	call	putchar@PLT
	mov	rsp, rbx
	mov	DWORD PTR -180[rbp], 0
	jmp	.L45
.L46:
	mov	eax, DWORD PTR -180[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, QWORD PTR -128[rbp]
	add	rax, rdx
	mov	QWORD PTR -72[rbp], rax
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	free@PLT
	add	DWORD PTR -180[rbp], 1
.L45:
	mov	eax, DWORD PTR -180[rbp]
	cmp	eax, DWORD PTR -152[rbp]
	jl	.L46
	mov	eax, 0
	mov	rsp, QWORD PTR -280[rbp]
	mov	rbx, QWORD PTR -56[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L48
	call	__stack_chk_fail@PLT
.L48:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	main, .-main
	.data
	.align 4
	.type	x.0, @object
	.size	x.0, 4
x.0:
	.long	7
	.section	.rodata
	.align 8
.LC0:
	.long	0
	.long	1104006501
	.align 8
.LC6:
	.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	"59064.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	thread_printf, %function
thread_printf:
	@ args = 4, pretend = 16, frame = 152
	@ frame_needed = 1, uses_anonymous_args = 1
	push	{r0, r1, r2, r3}
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #152
	ldr	r3, [fp, #4]
	str	r3, [fp, #-152]
	ldr	r3, .L5
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	add	r3, fp, #8
	str	r3, [fp, #-148]
	mov	r3, #128
	str	r3, [fp, #-144]
	ldr	r1, [fp, #-144]
	sub	r0, fp, #136
	ldr	r3, [fp, #-148]
	ldr	r2, [fp, #-152]
	bl	vsnprintf
	str	r0, [fp, #-140]
	ldr	r3, [fp, #-140]
	cmp	r3, #0
	ble	.L4
	ldr	r2, [fp, #-140]
	sub	r3, fp, #136
	mov	r1, r3
	mov	r0, #0
	bl	write
.L4:
	nop
	ldr	r3, .L5
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L3
	bl	__stack_chk_fail
.L3:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, lr}
	add	sp, sp, #16
	bx	lr
.L6:
	.align	2
.L5:
	.word	.LC0
	.size	thread_printf, .-thread_printf
	.global	__aeabi_uidivmod
	.global	__aeabi_uldivmod
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	random_get, %function
random_get:
	@ 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
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	mvn	r3, #-2147483648
	str	r3, [fp, #-16]
	ldr	r3, .L9
	ldr	r1, [r3]
	mov	r2, r1
	lsl	r2, r2, #2
	add	r2, r2, r1
	lsl	r3, r2, #4
	sub	r3, r3, r2
	lsl	r3, r3, #5
	add	r3, r3, r1
	lsl	r2, r3, #3
	sub	r3, r2, r3
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	__aeabi_uidivmod
	mov	r3, r1
	mov	r2, r3
	ldr	r3, .L9
	str	r2, [r3]
	ldr	r3, .L9
	ldr	r3, [r3]
	mov	r0, r3
	mov	r1, #0
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-24]
	sub	r3, r2, r3
	mov	r2, r3
	asr	r3, r2, #31
	mul	lr, r2, r1
	mul	ip, r0, r3
	add	ip, lr, ip
	umull	r4, r5, r0, r2
	add	r3, ip, r5
	mov	r5, r3
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	mov	r2, r3
	mov	r3, #0
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_uldivmod
	mov	r2, r0
	mov	r3, r1
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L10:
	.align	2
.L9:
	.word	x.6116
	.size	random_get, .-random_get
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.global	__aeabi_dadd
	.section	.rodata
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	time_get, %function
time_get:
	@ 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, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #24
	mov	r1, #1
	mov	r0, r3
	bl	timespec_get
	ldr	r3, [fp, #-24]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [fp, #-20]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L14+4
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L14
	ldr	r0, [r1]
	ldr	r1, [fp, #-16]
	eors	r0, r1, r0
	mov	r1, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC1
	.word	1104006501
	.size	time_get, .-time_get
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	thread_run_malloc, %function
thread_run_malloc:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L17
.L18:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r4, r2, r3
	mov	r0, r1
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L17:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	blt	.L18
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	thread_run_malloc, .-thread_run_malloc
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	thread_run_free, %function
thread_run_free:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L21
.L22:
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L21:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L22
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	thread_run_free, .-thread_run_free
	.section	.rodata
	.align	2
.LC2:
	.ascii	"libc threads malloc()/free() benchmark\012---------"
	.ascii	"-----------------------------\012\012n = %d (number"
	.ascii	" of objects)\012m = %d (number of threads)\012\012\000"
	.align	2
.LC3:
	.ascii	"failed to create thread %d\012\000"
	.align	2
.LC4:
	.ascii	"failed to wait for thread %d\012\000"
	.global	__aeabi_dsub
	.align	2
.LC5:
	.ascii	"malloc() burst speed:\000"
	.align	2
.LC6:
	.ascii	"  t = %f s (test duration)\012\000"
	.align	2
.LC7:
	.ascii	"  n/t = %f MHz (average number of allocations per s"
	.ascii	"econd, all threads combined)\012\000"
	.align	2
.LC8:
	.ascii	"  n/t = %f MHz (average number of allocations per s"
	.ascii	"econd)\012\000"
	.global	__aeabi_dmul
	.align	2
.LC9:
	.ascii	"  t/n = %f ns (average latency of an allocation)\012"
	.ascii	"\000"
	.align	2
.LC10:
	.ascii	"free() burst speed:\000"
	.align	2
.LC11:
	.ascii	"  n/t = %f MHz (average number of deallocations per"
	.ascii	" second, all threads combined)\012\000"
	.align	2
.LC12:
	.ascii	"  n/t = %f MHz (average number of deallocations per"
	.ascii	" second)\012\000"
	.align	2
.LC13:
	.ascii	"  t/n = %f ns (average latency of an deallocation)\012"
	.ascii	"\000"
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #112
	str	r0, [fp, #-120]
	str	r1, [fp, #-124]
	ldr	r3, .L45
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, sp
	mov	r5, r3
	mov	r3, #8
	str	r3, [fp, #-84]
	ldr	r3, .L45+4
	str	r3, [fp, #-80]
	mov	r3, #12
	str	r3, [fp, #-76]
	mov	r3, #130
	str	r3, [fp, #-72]
	ldr	r2, [fp, #-84]
	ldr	r1, [fp, #-80]
	ldr	r0, .L45+8
	bl	printf
	ldr	r3, [fp, #-84]
	sub	r3, r3, #1
	str	r3, [fp, #-68]
	ldr	r3, [fp, #-84]
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #7
	orr	r3, r3, r0, lsr #25
	lsl	r2, r0, #7
	ldr	r3, [fp, #-84]
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #7
	orr	r3, r3, r0, lsr #25
	lsl	r2, r0, #7
	ldr	r3, [fp, #-84]
	lsl	r3, r3, #4
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-64]
	mov	r3, #0
	str	r3, [fp, #-88]
	b	.L25
.L28:
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-64]
	add	r3, r2, r3
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-88]
	str	r2, [r3]
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-80]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-40]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-40]
	str	r2, [r3, #12]
	mov	r3, #0
	str	r3, [fp, #-92]
	b	.L26
.L27:
	ldr	r3, [fp, #-40]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-92]
	lsl	r3, r3, #2
	add	r4, r2, r3
	ldr	r1, [fp, #-72]
	ldr	r0, [fp, #-76]
	bl	random_get
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-92]
	add	r3, r3, #1
	str	r3, [fp, #-92]
.L26:
	ldr	r2, [fp, #-92]
	ldr	r3, [fp, #-80]
	cmp	r2, r3
	blt	.L27
	ldr	r3, [fp, #-88]
	add	r3, r3, #1
	str	r3, [fp, #-88]
.L25:
	ldr	r2, [fp, #-88]
	ldr	r3, [fp, #-84]
	cmp	r2, r3
	blt	.L28
	mov	r3, sp
	mov	r4, r3
	ldr	r3, [fp, #-84]
	sub	r3, r3, #1
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-84]
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	ldr	r3, [fp, #-84]
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	ldr	r3, [fp, #-84]
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-56]
	bl	time_get
	str	r0, [fp, #-36]
	str	r1, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-96]
	b	.L29
.L31:
	ldr	r3, [fp, #-96]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-56]
	add	r0, r2, r3
	ldr	r3, [fp, #-96]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-64]
	add	r3, r2, r3
	ldr	r2, .L45+12
	mov	r1, #0
	bl	pthread_create
	mov	r3, r0
	cmp	r3, #0
	beq	.L30
	ldr	r1, [fp, #-96]
	ldr	r0, .L45+16
	bl	thread_printf
.L30:
	ldr	r3, [fp, #-96]
	add	r3, r3, #1
	str	r3, [fp, #-96]
.L29:
	ldr	r2, [fp, #-96]
	ldr	r3, [fp, #-84]
	cmp	r2, r3
	blt	.L31
	mov	r3, #0
	str	r3, [fp, #-100]
	b	.L32
.L34:
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-100]
	ldr	r3, [r3, r2, lsl #2]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	mov	r3, r0
	cmp	r3, #0
	beq	.L33
	ldr	r1, [fp, #-100]
	ldr	r0, .L45+20
	bl	thread_printf
.L33:
	ldr	r3, [fp, #-100]
	add	r3, r3, #1
	str	r3, [fp, #-100]
.L32:
	ldr	r2, [fp, #-100]
	ldr	r3, [fp, #-84]
	cmp	r2, r3
	blt	.L34
	bl	time_get
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	ldr	r0, .L45+24
	bl	puts
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	ldr	r0, .L45+28
	bl	printf
	ldr	r3, [fp, #-84]
	ldr	r2, [fp, #-80]
	mul	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L45+32
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L45+36
	bl	printf
	ldr	r0, [fp, #-80]
	bl	__aeabi_i2d
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L45+32
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L45+40
	bl	printf
	ldr	r0, [fp, #-80]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L45+44
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L45+48
	bl	printf
	mov	r0, #10
	bl	putchar
	mov	sp, r4
	mov	r3, sp
	mov	r4, r3
	ldr	r3, [fp, #-84]
	sub	r3, r3, #1
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-84]
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	ldr	r3, [fp, #-84]
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	ldr	r3, [fp, #-84]
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-48]
	bl	time_get
	str	r0, [fp, #-28]
	str	r1, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-104]
	b	.L35
.L37:
	ldr	r3, [fp, #-104]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-48]
	add	r0, r2, r3
	ldr	r3, [fp, #-104]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-64]
	add	r3, r2, r3
	ldr	r2, .L45+52
	mov	r1, #0
	bl	pthread_create
	mov	r3, r0
	cmp	r3, #0
	beq	.L36
	ldr	r1, [fp, #-104]
	ldr	r0, .L45+16
	bl	thread_printf
.L36:
	ldr	r3, [fp, #-104]
	add	r3, r3, #1
	str	r3, [fp, #-104]
.L35:
	ldr	r2, [fp, #-104]
	ldr	r3, [fp, #-84]
	cmp	r2, r3
	blt	.L37
	mov	r3, #0
	str	r3, [fp, #-108]
	b	.L38
.L40:
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-108]
	ldr	r3, [r3, r2, lsl #2]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	mov	r3, r0
	cmp	r3, #0
	beq	.L39
	ldr	r1, [fp, #-108]
	ldr	r0, .L45+20
	bl	thread_printf
.L39:
	ldr	r3, [fp, #-108]
	add	r3, r3, #1
	str	r3, [fp, #-108]
.L38:
	ldr	r2, [fp, #-108]
	ldr	r3, [fp, #-84]
	cmp	r2, r3
	blt	.L40
	bl	time_get
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r0, .L45+56
	bl	puts
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	ldr	r0, .L45+28
	bl	printf
	ldr	r3, [fp, #-84]
	ldr	r2, [fp, #-80]
	mul	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L45+32
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L45+60
	bl	printf
	ldr	r0, [fp, #-80]
	bl	__aeabi_i2d
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L45+32
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L45+64
	bl	printf
	ldr	r0, [fp, #-80]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L45+44
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L45+68
	bl	printf
	mov	r0, #10
	bl	putchar
	mov	sp, r4
	mov	r3, #0
	str	r3, [fp, #-112]
	b	.L41
.L42:
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-64]
	add	r3, r2, r3
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #12]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-112]
	add	r3, r3, #1
	str	r3, [fp, #-112]
.L41:
	ldr	r2, [fp, #-112]
	ldr	r3, [fp, #-84]
	cmp	r2, r3
	blt	.L42
	mov	r3, #0
	mov	sp, r5
	ldr	r2, .L45
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L44
	bl	__stack_chk_fail
.L44:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L46:
	.align	2
.L45:
	.word	.LC14
	.word	10000000
	.word	.LC2
	.word	thread_run_malloc
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	1093567616
	.word	.LC7
	.word	.LC8
	.word	1104006501
	.word	.LC9
	.word	thread_run_free
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.size	main, .-main
	.data
	.align	2
	.type	x.6116, %object
	.size	x.6116, 4
x.6116:
	.word	7
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
