	.file	"15761998.c"
	.intel_syntax noprefix
	.text
	.data
	.align 4
	.type	Nthread, @object
	.size	Nthread, 4
Nthread:
	.long	256
	.align 4
	.type	Nalloc, @object
	.size	Nalloc, 4
Nalloc:
	.long	1000000
	.align 8
	.type	Minsize, @object
	.size	Minsize, 8
Minsize:
	.quad	10
	.align 8
	.type	Maxsize, @object
	.size	Maxsize, 8
Maxsize:
	.quad	1024
	.text
	.globl	error
	.type	error, @function
error:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	mov	edi, 2
	call	write@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	error, .-error
	.section	.rodata
	.align 8
.LC0:
	.string	"failed to allocate space for list of objects\n"
	.align 8
.LC1:
	.string	"failed to allocate space for list of sizes\n"
.LC2:
	.string	"malloc failed\n"
.LC3:
	.string	"realloc failed\n"
	.text
	.globl	allocate
	.type	allocate, @function
allocate:
.LFB7:
	.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, 88
	.cfi_offset 3, -24
	mov	QWORD PTR -88[rbp], rdi
	mov	rax, QWORD PTR -88[rbp]
	mov	DWORD PTR -60[rbp], eax
	mov	DWORD PTR -64[rbp], 0
	mov	eax, DWORD PTR Nalloc[rip]
	mov	esi, DWORD PTR Nthread[rip]
	cdq
	idiv	esi
	cdqe
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	jne	.L3
	lea	rdi, .LC0[rip]
	call	error
.L3:
	mov	rax, QWORD PTR -48[rbp]
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	jne	.L4
	lea	rdi, .LC1[rip]
	call	error
.L4:
	mov	rax, QWORD PTR -48[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR -48[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -80[rbp], 0
	jmp	.L5
.L25:
	mov	rax, QWORD PTR Maxsize[rip]
	mov	rdx, QWORD PTR Minsize[rip]
	sub	rax, rdx
	add	rax, 1
	mov	QWORD PTR -56[rbp], rax
.L8:
	mov	eax, DWORD PTR -64[rbp]
	imul	eax, eax, 16777619
	sub	eax, 2128831035
	mov	DWORD PTR -64[rbp], eax
	mov	eax, DWORD PTR -64[rbp]
	mov	edx, 0
	div	QWORD PTR -56[rbp]
	mov	QWORD PTR -24[rbp], rdx
	mov	eax, DWORD PTR -64[rbp]
	imul	eax, eax, 16777619
	sub	eax, 2128831035
	mov	DWORD PTR -64[rbp], eax
	mov	edx, DWORD PTR -64[rbp]
	mov	eax, edx
	imul	rax, rax, 1374389535
	shr	rax, 32
	shr	eax, 5
	imul	ecx, eax, 100
	mov	eax, edx
	sub	eax, ecx
	mov	ecx, eax
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	mov	edx, 0
	div	QWORD PTR -56[rbp]
	cmp	rcx, rax
	jnb	.L28
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -56[rbp], rax
	jmp	.L8
.L28:
	nop
	mov	rax, QWORD PTR Minsize[rip]
	add	QWORD PTR -24[rbp], rax
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	lea	rbx, [rdx+rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	rax, QWORD PTR [rbx]
	test	rax, rax
	jne	.L9
	lea	rdi, .LC2[rip]
	call	error
	jmp	.L10
.L9:
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rdx], rax
	mov	DWORD PTR -68[rbp], 0
	jmp	.L11
.L12:
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	imul	rax, QWORD PTR -24[rbp]
	movabs	rdx, -3689348814741910323
	mul	rdx
	mov	rax, rdx
	shr	rax, 3
	add	rax, rcx
	mov	BYTE PTR [rax], 109
	add	DWORD PTR -68[rbp], 1
.L11:
	cmp	DWORD PTR -68[rbp], 9
	jle	.L12
.L10:
	cmp	DWORD PTR -80[rbp], 999
	jle	.L29
	mov	eax, DWORD PTR -64[rbp]
	imul	eax, eax, 16777619
	sub	eax, 2128831035
	mov	DWORD PTR -64[rbp], eax
	mov	ecx, DWORD PTR -80[rbp]
	mov	eax, DWORD PTR -64[rbp]
	mov	edx, 0
	div	ecx
	mov	eax, edx
	mov	DWORD PTR -76[rbp], eax
	mov	eax, DWORD PTR -64[rbp]
	imul	eax, eax, 16777619
	sub	eax, 2128831035
	mov	DWORD PTR -64[rbp], eax
	mov	ecx, DWORD PTR -80[rbp]
	mov	eax, DWORD PTR -64[rbp]
	mov	edx, 0
	div	ecx
	mov	eax, edx
	mov	DWORD PTR -72[rbp], eax
	mov	eax, DWORD PTR -76[rbp]
	cmp	eax, DWORD PTR -72[rbp]
	jle	.L16
	mov	eax, DWORD PTR -76[rbp]
	mov	DWORD PTR -68[rbp], eax
	mov	eax, DWORD PTR -72[rbp]
	mov	DWORD PTR -76[rbp], eax
	mov	eax, DWORD PTR -68[rbp]
	mov	DWORD PTR -72[rbp], eax
	jmp	.L16
.L24:
	mov	eax, DWORD PTR -76[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L17
	mov	eax, DWORD PTR -64[rbp]
	imul	eax, eax, 16777619
	sub	eax, 2128831035
	mov	DWORD PTR -64[rbp], eax
	mov	eax, DWORD PTR -64[rbp]
	and	eax, 1
	test	eax, eax
	jne	.L18
	mov	eax, DWORD PTR -76[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -76[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	QWORD PTR [rax], 0
	mov	eax, DWORD PTR -76[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	QWORD PTR [rax], 0
	jmp	.L17
.L18:
	mov	eax, DWORD PTR -64[rbp]
	imul	eax, eax, 16777619
	sub	eax, 2128831035
	mov	DWORD PTR -64[rbp], eax
	mov	eax, DWORD PTR -64[rbp]
	and	eax, 3
	test	eax, eax
	jne	.L17
	mov	eax, DWORD PTR -76[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR Maxsize[rip]
	cmp	rdx, rax
	jbe	.L19
	mov	eax, DWORD PTR -76[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	shr	rax, 2
	jmp	.L20
.L19:
	mov	eax, DWORD PTR -76[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	add	rax, rax
.L20:
	mov	QWORD PTR -24[rbp], rax
	mov	eax, DWORD PTR -76[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR -76[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -40[rbp]
	lea	rbx, [rcx+rdx]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	rax, QWORD PTR [rbx]
	test	rax, rax
	jne	.L21
	lea	rdi, .LC3[rip]
	call	error
	jmp	.L17
.L21:
	mov	eax, DWORD PTR -76[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rdx], rax
	mov	DWORD PTR -68[rbp], 0
	jmp	.L22
.L23:
	mov	eax, DWORD PTR -76[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	imul	rax, QWORD PTR -24[rbp]
	movabs	rdx, -3689348814741910323
	mul	rdx
	mov	rax, rdx
	shr	rax, 3
	add	rax, rcx
	mov	BYTE PTR [rax], 114
	add	DWORD PTR -68[rbp], 1
.L22:
	cmp	DWORD PTR -68[rbp], 9
	jle	.L23
.L17:
	add	DWORD PTR -76[rbp], 1
.L16:
	mov	eax, DWORD PTR -76[rbp]
	cmp	eax, DWORD PTR -72[rbp]
	jle	.L24
	jmp	.L14
.L29:
	nop
.L14:
	add	DWORD PTR -80[rbp], 1
.L5:
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	cmp	QWORD PTR -48[rbp], rax
	ja	.L25
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	allocate, .-allocate
	.section	.rodata
	.align 8
.LC4:
	.string	"Running with %d allocations, %d threads, min size = %ld, max size = %ld\n"
.LC5:
	.string	"Failed to create thread\n"
.LC6:
	.string	"Failed waiting for thread\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 2096
	mov	DWORD PTR -2084[rbp], edi
	mov	QWORD PTR -2096[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	jmp	.L31
.L37:
	mov	rax, QWORD PTR -2096[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	jne	.L52
	mov	rax, QWORD PTR -2096[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 97
	jne	.L34
	mov	rax, QWORD PTR -2096[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	add	rax, 2
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR Nalloc[rip], eax
	jmp	.L33
.L34:
	mov	rax, QWORD PTR -2096[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 116
	jne	.L35
	mov	rax, QWORD PTR -2096[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	add	rax, 2
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR Nthread[rip], eax
	jmp	.L33
.L35:
	mov	rax, QWORD PTR -2096[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 122
	jne	.L36
	mov	rax, QWORD PTR -2096[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	add	rax, 2
	mov	rdi, rax
	call	atoi@PLT
	cdqe
	mov	QWORD PTR Minsize[rip], rax
	jmp	.L33
.L36:
	mov	rax, QWORD PTR -2096[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 90
	jne	.L33
	mov	rax, QWORD PTR -2096[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	add	rax, 2
	mov	rdi, rax
	call	atoi@PLT
	cdqe
	mov	QWORD PTR Maxsize[rip], rax
	jmp	.L33
.L52:
	nop
.L33:
	sub	DWORD PTR -2084[rbp], 1
	add	QWORD PTR -2096[rbp], 8
.L31:
	cmp	DWORD PTR -2084[rbp], 1
	jg	.L37
	mov	eax, DWORD PTR Nalloc[rip]
	test	eax, eax
	jle	.L38
	mov	eax, DWORD PTR Nalloc[rip]
	cmp	eax, 1000000
	jle	.L39
.L38:
	mov	DWORD PTR Nalloc[rip], 1000000
.L39:
	mov	eax, DWORD PTR Nthread[rip]
	test	eax, eax
	jle	.L40
	mov	eax, DWORD PTR Nthread[rip]
	cmp	eax, 256
	jle	.L41
.L40:
	mov	DWORD PTR Nthread[rip], 256
.L41:
	mov	rax, QWORD PTR Minsize[rip]
	test	rax, rax
	jne	.L42
	mov	QWORD PTR Minsize[rip], 1
.L42:
	mov	rdx, QWORD PTR Maxsize[rip]
	mov	rax, QWORD PTR Minsize[rip]
	cmp	rdx, rax
	jnb	.L43
	mov	rax, QWORD PTR Minsize[rip]
	mov	QWORD PTR Maxsize[rip], rax
.L43:
	mov	rsi, QWORD PTR Maxsize[rip]
	mov	rcx, QWORD PTR Minsize[rip]
	mov	edx, DWORD PTR Nthread[rip]
	mov	eax, DWORD PTR Nalloc[rip]
	mov	r8, rsi
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -2080[rbp], 0
	jmp	.L44
.L46:
	mov	eax, DWORD PTR -2080[rbp]
	cdqe
	mov	rdx, rax
	lea	rcx, -2064[rbp]
	mov	eax, DWORD PTR -2080[rbp]
	cdqe
	sal	rax, 3
	add	rax, rcx
	mov	rcx, rdx
	lea	rdx, allocate[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	DWORD PTR -2076[rbp], eax
	cmp	DWORD PTR -2076[rbp], 0
	je	.L45
	lea	rdi, .LC5[rip]
	call	error
.L45:
	add	DWORD PTR -2080[rbp], 1
.L44:
	mov	eax, DWORD PTR Nthread[rip]
	cmp	DWORD PTR -2080[rbp], eax
	jl	.L46
	mov	DWORD PTR -2080[rbp], 0
	jmp	.L47
.L49:
	mov	eax, DWORD PTR -2080[rbp]
	cdqe
	mov	rax, QWORD PTR -2064[rbp+rax*8]
	lea	rdx, -2072[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_join@PLT
	mov	DWORD PTR -2076[rbp], eax
	cmp	DWORD PTR -2076[rbp], 0
	je	.L48
	lea	rdi, .LC6[rip]
	call	error
.L48:
	add	DWORD PTR -2080[rbp], 1
.L47:
	mov	eax, DWORD PTR Nthread[rip]
	cmp	DWORD PTR -2080[rbp], eax
	jl	.L49
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L51
	call	__stack_chk_fail@PLT
.L51:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.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	"15761998.c"
	.text
	.data
	.align	2
	.type	Nthread, %object
	.size	Nthread, 4
Nthread:
	.word	256
	.align	2
	.type	Nalloc, %object
	.size	Nalloc, 4
Nalloc:
	.word	1000000
	.align	2
	.type	Minsize, %object
	.size	Minsize, 4
Minsize:
	.word	10
	.align	2
	.type	Maxsize, %object
	.size	Maxsize, 4
Maxsize:
	.word	1024
	.text
	.align	2
	.global	error
	.syntax unified
	.arm
	.fpu softvfp
	.type	error, %function
error:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-8]
	mov	r0, #2
	bl	write
	mov	r0, #1
	bl	exit
	.size	error, .-error
	.global	__aeabi_idiv
	.section	.rodata
	.align	2
.LC0:
	.ascii	"failed to allocate space for list of objects\012\000"
	.align	2
.LC1:
	.ascii	"failed to allocate space for list of sizes\012\000"
	.global	__aeabi_uidivmod
	.global	__aeabi_uidiv
	.align	2
.LC2:
	.ascii	"malloc failed\012\000"
	.align	2
.LC3:
	.ascii	"realloc failed\012\000"
	.text
	.align	2
	.global	allocate
	.syntax unified
	.arm
	.fpu softvfp
	.type	allocate, %function
allocate:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #60
	str	r0, [fp, #-64]
	ldr	r3, [fp, #-64]
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-36]
	ldr	r3, .L30
	ldr	r3, [r3]
	ldr	r2, .L30+4
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L3
	ldr	r0, .L30+8
	bl	error
.L3:
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L4
	ldr	r0, .L30+12
	bl	error
.L4:
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	mov	r2, r3
	mov	r1, #0
	ldr	r0, [fp, #-24]
	bl	memset
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	mov	r2, r3
	mov	r1, #0
	ldr	r0, [fp, #-20]
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L5
.L25:
	ldr	r3, .L30+16
	ldr	r2, [r3]
	ldr	r3, .L30+20
	ldr	r3, [r3]
	sub	r3, r2, r3
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L8:
	ldr	r2, [fp, #-36]
	mov	r3, r2
	lsl	r3, r3, #16
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r2, r3, r2
	ldr	r3, .L30+24
	add	r3, r2, r3
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	ldr	r1, [fp, #-40]
	mov	r0, r3
	bl	__aeabi_uidivmod
	mov	r3, r1
	str	r3, [fp, #-16]
	ldr	r2, [fp, #-36]
	mov	r3, r2
	lsl	r3, r3, #16
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r2, r3, r2
	ldr	r3, .L30+24
	add	r3, r2, r3
	str	r3, [fp, #-36]
	ldr	r2, [fp, #-36]
	ldr	r3, .L30+28
	umull	r1, r3, r2, r3
	lsr	r4, r3, #5
	mov	r3, r4
	lsl	r3, r3, #2
	add	r3, r3, r4
	lsl	r1, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #2
	sub	r4, r2, r3
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r1, [fp, #-40]
	mov	r0, r3
	bl	__aeabi_uidiv
	mov	r3, r0
	cmp	r4, r3
	bcs	.L28
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-40]
	b	.L8
.L28:
	nop
	ldr	r3, .L30+20
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r4, r2, r3
	ldr	r0, [fp, #-16]
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [r4]
	cmp	r3, #0
	bne	.L9
	ldr	r0, .L30+32
	bl	error
	b	.L10
.L9:
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L11
.L12:
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-44]
	ldr	r1, [fp, #-16]
	mul	r3, r1, r3
	ldr	r1, .L30+36
	umull	r0, r3, r1, r3
	lsr	r3, r3, #3
	add	r3, r2, r3
	mov	r2, #109
	strb	r2, [r3]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L11:
	ldr	r3, [fp, #-44]
	cmp	r3, #9
	ble	.L12
.L10:
	ldr	r3, [fp, #-56]
	cmp	r3, #1000
	blt	.L29
	ldr	r2, [fp, #-36]
	mov	r3, r2
	lsl	r3, r3, #16
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r2, r3, r2
	ldr	r3, .L30+24
	add	r3, r2, r3
	str	r3, [fp, #-36]
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-36]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_uidivmod
	mov	r3, r1
	str	r3, [fp, #-52]
	ldr	r2, [fp, #-36]
	mov	r3, r2
	lsl	r3, r3, #16
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r2, r3, r2
	ldr	r3, .L30+24
	add	r3, r2, r3
	str	r3, [fp, #-36]
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-36]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_uidivmod
	mov	r3, r1
	str	r3, [fp, #-48]
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	ble	.L16
	ldr	r3, [fp, #-52]
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-48]
	b	.L16
.L24:
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L17
	ldr	r2, [fp, #-36]
	mov	r3, r2
	lsl	r3, r3, #16
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r2, r3, r2
	ldr	r3, .L30+24
	add	r3, r2, r3
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	and	r3, r3, #1
	cmp	r3, #0
	bne	.L18
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	b	.L17
.L18:
	ldr	r2, [fp, #-36]
	mov	r3, r2
	lsl	r3, r3, #16
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r2, r3, r2
	ldr	r3, .L30+24
	add	r3, r2, r3
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	and	r3, r3, #3
	cmp	r3, #0
	bne	.L17
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, .L30+16
	ldr	r3, [r3]
	cmp	r2, r3
	bls	.L19
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	lsr	r3, r3, #2
	b	.L20
.L19:
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	lsl	r3, r3, #1
.L20:
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r0, [r3]
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r4, r2, r3
	ldr	r1, [fp, #-16]
	bl	realloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [r4]
	cmp	r3, #0
	bne	.L21
	ldr	r0, .L30+40
	bl	error
	b	.L17
.L21:
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L22
.L23:
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-44]
	ldr	r1, [fp, #-16]
	mul	r3, r1, r3
	ldr	r1, .L30+36
	umull	r0, r3, r1, r3
	lsr	r3, r3, #3
	add	r3, r2, r3
	mov	r2, #114
	strb	r2, [r3]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L22:
	ldr	r3, [fp, #-44]
	cmp	r3, #9
	ble	.L23
.L17:
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L16:
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	ble	.L24
	b	.L14
.L29:
	nop
.L14:
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L5:
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	bhi	.L25
	ldr	r0, [fp, #-24]
	bl	free
	ldr	r0, [fp, #-20]
	bl	free
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L31:
	.align	2
.L30:
	.word	Nalloc
	.word	Nthread
	.word	.LC0
	.word	.LC1
	.word	Maxsize
	.word	Minsize
	.word	-2128831035
	.word	1374389535
	.word	.LC2
	.word	-858993459
	.word	.LC3
	.size	allocate, .-allocate
	.section	.rodata
	.align	2
.LC4:
	.ascii	"Running with %d allocations, %d threads, min size ="
	.ascii	" %ld, max size = %ld\012\000"
	.align	2
.LC5:
	.ascii	"Failed to create thread\012\000"
	.align	2
.LC6:
	.ascii	"Failed waiting for thread\012\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1048
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1056
	str	r0, [fp, #-1048]
	str	r1, [fp, #-1052]
	ldr	r3, .L55
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	b	.L33
.L39:
	ldr	r3, [fp, #-1052]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L54
	ldr	r3, [fp, #-1052]
	add	r3, r3, #4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #97
	bne	.L36
	ldr	r3, [fp, #-1052]
	add	r3, r3, #4
	ldr	r3, [r3]
	add	r3, r3, #2
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L55+4
	str	r3, [r2]
	b	.L35
.L36:
	ldr	r3, [fp, #-1052]
	add	r3, r3, #4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #116
	bne	.L37
	ldr	r3, [fp, #-1052]
	add	r3, r3, #4
	ldr	r3, [r3]
	add	r3, r3, #2
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L55+8
	str	r3, [r2]
	b	.L35
.L37:
	ldr	r3, [fp, #-1052]
	add	r3, r3, #4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #122
	bne	.L38
	ldr	r3, [fp, #-1052]
	add	r3, r3, #4
	ldr	r3, [r3]
	add	r3, r3, #2
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L55+12
	str	r2, [r3]
	b	.L35
.L38:
	ldr	r3, [fp, #-1052]
	add	r3, r3, #4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #90
	bne	.L35
	ldr	r3, [fp, #-1052]
	add	r3, r3, #4
	ldr	r3, [r3]
	add	r3, r3, #2
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L55+16
	str	r2, [r3]
	b	.L35
.L54:
	nop
.L35:
	ldr	r3, [fp, #-1048]
	sub	r3, r3, #1
	str	r3, [fp, #-1048]
	ldr	r3, [fp, #-1052]
	add	r3, r3, #4
	str	r3, [fp, #-1052]
.L33:
	ldr	r3, [fp, #-1048]
	cmp	r3, #1
	bgt	.L39
	ldr	r3, .L55+4
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L40
	ldr	r3, .L55+4
	ldr	r3, [r3]
	ldr	r2, .L55+20
	cmp	r3, r2
	ble	.L41
.L40:
	ldr	r3, .L55+4
	ldr	r2, .L55+20
	str	r2, [r3]
.L41:
	ldr	r3, .L55+8
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L42
	ldr	r3, .L55+8
	ldr	r3, [r3]
	cmp	r3, #256
	ble	.L43
.L42:
	ldr	r3, .L55+8
	mov	r2, #256
	str	r2, [r3]
.L43:
	ldr	r3, .L55+12
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L44
	ldr	r3, .L55+12
	mov	r2, #1
	str	r2, [r3]
.L44:
	ldr	r3, .L55+16
	ldr	r2, [r3]
	ldr	r3, .L55+12
	ldr	r3, [r3]
	cmp	r2, r3
	bcs	.L45
	ldr	r3, .L55+12
	ldr	r3, [r3]
	ldr	r2, .L55+16
	str	r3, [r2]
.L45:
	ldr	r3, .L55+4
	ldr	r1, [r3]
	ldr	r3, .L55+8
	ldr	r2, [r3]
	ldr	r3, .L55+12
	ldr	r0, [r3]
	ldr	r3, .L55+16
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L55+24
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-1040]
	b	.L46
.L48:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-1040]
	lsl	r2, r2, #2
	add	r0, r3, r2
	ldr	r3, [fp, #-1040]
	ldr	r2, .L55+28
	mov	r1, #0
	bl	pthread_create
	str	r0, [fp, #-1036]
	ldr	r3, [fp, #-1036]
	cmp	r3, #0
	beq	.L47
	ldr	r0, .L55+32
	bl	error
.L47:
	ldr	r3, [fp, #-1040]
	add	r3, r3, #1
	str	r3, [fp, #-1040]
.L46:
	ldr	r3, .L55+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-1040]
	cmp	r2, r3
	blt	.L48
	mov	r3, #0
	str	r3, [fp, #-1040]
	b	.L49
.L51:
	ldr	r3, [fp, #-1040]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-1028]
	sub	r2, fp, #1040
	sub	r2, r2, #4
	mov	r1, r2
	mov	r0, r3
	bl	pthread_join
	str	r0, [fp, #-1036]
	ldr	r3, [fp, #-1036]
	cmp	r3, #0
	beq	.L50
	ldr	r0, .L55+36
	bl	error
.L50:
	ldr	r3, [fp, #-1040]
	add	r3, r3, #1
	str	r3, [fp, #-1040]
.L49:
	ldr	r3, .L55+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-1040]
	cmp	r2, r3
	blt	.L51
	mov	r3, #0
	ldr	r2, .L55
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L53
	bl	__stack_chk_fail
.L53:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L56:
	.align	2
.L55:
	.word	.LC7
	.word	Nalloc
	.word	Nthread
	.word	Minsize
	.word	Maxsize
	.word	1000000
	.word	.LC4
	.word	allocate
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
