	.file	"670553.c"
	.intel_syntax noprefix
	.text
	.globl	apps
	.data
	.align 32
	.type	apps, @object
	.size	apps, 2660
apps:
	.string	"Pax -r & rm"
	.zero	68
	.string	"pax -rf lcc-3.6.pax ; rm -rf lcc-3.6"
	.zero	263
	.string	"Pax -r & rm"
	.zero	68
	.string	"pax -rf lcc-3.6.pax ; rm -rf lcc-3.6"
	.zero	263
	.string	"cp & rm"
	.zero	72
	.string	"cp -r d1 d2 ; rm -rf d2"
	.zero	276
	.string	"cp & rm"
	.zero	72
	.string	"cp -r d1 d2 ; rm -rf d2"
	.zero	276
	.string	"Diff"
	.zero	75
	.string	"diff lcc-3.6.pax lcc-3.6.pax2 > temp; rm -f temp"
	.zero	251
	.string	"Tsp"
	.zero	76
	.string	"tsp > temp; rm -f temp"
	.zero	277
	.string	"Sor"
	.zero	76
	.string	"sor > temp; rm -f temp"
	.zero	277
	.globl	depth
	.bss
	.align 4
	.type	depth, @object
	.size	depth, 4
depth:
	.zero	4
	.globl	already_run
	.align 4
	.type	already_run, @object
	.size	already_run, 4
already_run:
	.zero	4
	.globl	to_run
	.align 4
	.type	to_run, @object
	.size	to_run, 4
to_run:
	.zero	4
	.globl	total
	.align 4
	.type	total, @object
	.size	total, 4
total:
	.zero	4
	.globl	s
	.align 16
	.type	s, @object
	.size	s, 16
s:
	.zero	16
	.globl	next_tag
	.align 4
	.type	next_tag, @object
	.size	next_tag, 4
next_tag:
	.zero	4
	.globl	history
	.align 32
	.type	history, @object
	.size	history, 1024
history:
	.zero	1024
	.globl	explicit_wait
	.align 4
	.type	explicit_wait, @object
	.size	explicit_wait, 4
explicit_wait:
	.zero	4
	.text
	.globl	handler
	.type	handler, @function
handler:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, 0
	call	handle_exit
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	handler, .-handler
	.globl	timestamp
	.type	timestamp, @function
timestamp:
.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -32[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR s[rip+8]
	sub	rax, rdx
	mov	rcx, rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR s[rip]
	sub	rax, rdx
	imul	rax, rax, 1000000
	add	rcx, rax
	movabs	rdx, 2361183241434822607
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 7
	sar	rcx, 63
	mov	rdx, rcx
	sub	rax, rdx
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L4
	call	__stack_chk_fail@PLT
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	timestamp, .-timestamp
	.globl	trace
	.bss
	.align 32
	.type	trace, @object
	.size	trace, 16384
trace:
	.zero	16384
	.globl	next_trace
	.align 4
	.type	next_trace, @object
	.size	next_trace, 4
next_trace:
	.zero	4
	.section	.rodata
.LC0:
	.string	"the_stack_data/670553.c"
.LC1:
	.string	"next_trace < MAX_TRACE"
	.text
	.globl	proc_start
	.type	proc_start, @function
proc_start:
.LFB8:
	.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, 24
	.cfi_offset 3, -24
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	eax, DWORD PTR next_trace[rip]
	cmp	eax, 1023
	jle	.L6
	lea	rcx, __PRETTY_FUNCTION__.5[rip]
	mov	edx, 59
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L6:
	mov	eax, DWORD PTR next_trace[rip]
	cdqe
	sal	rax, 4
	mov	rcx, rax
	lea	rdx, trace[rip]
	mov	eax, DWORD PTR -24[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR next_trace[rip]
	cdqe
	sal	rax, 4
	mov	rcx, rax
	lea	rdx, trace[rip+4]
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	mov	ebx, DWORD PTR next_trace[rip]
	mov	eax, 0
	call	timestamp
	movsx	rdx, ebx
	mov	rcx, rdx
	sal	rcx, 4
	lea	rdx, trace[rip+8]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR next_trace[rip]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, trace[rip+12]
	mov	DWORD PTR [rdx+rax], 0
	mov	eax, DWORD PTR next_trace[rip]
	add	eax, 1
	mov	DWORD PTR next_trace[rip], eax
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	proc_start, .-proc_start
	.section	.rodata
.LC3:
	.string	"%-16s%20f%20f%20f\n"
.LC4:
	.string	"0"
	.text
	.globl	proc_terminate
	.type	proc_terminate, @function
proc_terminate:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -12[rbp], 0
	jmp	.L8
.L11:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, trace[rip+4]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -20[rbp], eax
	jne	.L9
	mov	eax, 0
	call	timestamp
	mov	edx, DWORD PTR -12[rbp]
	movsx	rdx, edx
	mov	rcx, rdx
	sal	rcx, 4
	lea	rdx, trace[rip+12]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, trace[rip+8]
	mov	eax, DWORD PTR [rdx+rax]
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	movss	xmm1, DWORD PTR .LC2[rip]
	divss	xmm0, xmm1
	movss	DWORD PTR -8[rbp], xmm0
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, trace[rip+12]
	mov	eax, DWORD PTR [rdx+rax]
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	movss	xmm1, DWORD PTR .LC2[rip]
	divss	xmm0, xmm1
	movss	DWORD PTR -4[rbp], xmm0
	movss	xmm0, DWORD PTR -4[rbp]
	subss	xmm0, DWORD PTR -8[rbp]
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	pxor	xmm0, xmm0
	cvtss2sd	xmm0, DWORD PTR -4[rbp]
	pxor	xmm3, xmm3
	cvtss2sd	xmm3, DWORD PTR -8[rbp]
	movq	rax, xmm3
	mov	edx, DWORD PTR -12[rbp]
	movsx	rdx, edx
	mov	rcx, rdx
	sal	rcx, 4
	lea	rdx, trace[rip]
	mov	edx, DWORD PTR [rcx+rdx]
	movsx	rdx, edx
	imul	rdx, rdx, 380
	lea	rcx, apps[rip]
	add	rdx, rcx
	movapd	xmm2, xmm1
	movapd	xmm1, xmm0
	movq	xmm0, rax
	mov	rsi, rdx
	lea	rdi, .LC3[rip]
	mov	eax, 3
	call	printf@PLT
	jmp	.L12
.L9:
	add	DWORD PTR -12[rbp], 1
.L8:
	mov	eax, DWORD PTR next_trace[rip]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L11
	lea	rcx, __PRETTY_FUNCTION__.4[rip]
	mov	edx, 81
	lea	rsi, .LC0[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	proc_terminate, .-proc_terminate
	.globl	proc_alldone
	.type	proc_alldone, @function
proc_alldone:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	proc_alldone, .-proc_alldone
	.globl	dirs
	.bss
	.align 32
	.type	dirs, @object
	.size	dirs, 128
dirs:
	.zero	128
	.text
	.globl	find_free_dir
	.type	find_free_dir, @function
find_free_dir:
.LFB11:
	.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	eax, DWORD PTR depth[rip]
	cmp	eax, 32
	jle	.L16
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 105
	lea	rsi, .LC0[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L16:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L17
.L20:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, dirs[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	jne	.L18
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, dirs[rip]
	mov	DWORD PTR [rdx+rax], 1
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L21
.L18:
	add	DWORD PTR -4[rbp], 1
.L17:
	mov	eax, DWORD PTR depth[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L20
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 114
	lea	rsi, .LC0[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	find_free_dir, .-find_free_dir
	.globl	mark_dir
	.type	mark_dir, @function
mark_dir:
.LFB12:
	.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 -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, dirs[rip]
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	mark_dir, .-mark_dir
	.globl	free_dir
	.type	free_dir, @function
free_dir:
.LFB13:
	.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	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L24
.L27:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, dirs[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -20[rbp], eax
	jne	.L25
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, dirs[rip]
	mov	DWORD PTR [rdx+rax], 0
	jmp	.L28
.L25:
	add	DWORD PTR -4[rbp], 1
.L24:
	mov	eax, DWORD PTR depth[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L27
	lea	rcx, __PRETTY_FUNCTION__.2[rip]
	mov	edx, 131
	lea	rsi, .LC0[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L28:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	free_dir, .-free_dir
	.section	.rodata
.LC5:
	.string	"couldn't fork\n"
.LC6:
	.string	"test%d"
.LC7:
	.string	"couldn't chdir to %s\n"
.LC8:
	.string	"system failed on %s\n"
	.text
	.globl	execute_command
	.type	execute_command, @function
execute_command:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	DWORD PTR -52[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR next_tag[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR next_tag[rip], edx
	mov	DWORD PTR -44[rbp], eax
	mov	eax, 0
	call	find_free_dir
	mov	DWORD PTR -40[rbp], eax
	mov	eax, DWORD PTR to_run[rip]
	sub	eax, 1
	mov	DWORD PTR to_run[rip], eax
	call	fork@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], -1
	jne	.L30
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 14
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	fwrite@PLT
	mov	edi, -1
	call	exit@PLT
.L30:
	cmp	DWORD PTR -36[rbp], 0
	jle	.L31
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -40[rbp]
	mov	esi, edx
	mov	edi, eax
	call	mark_dir
	mov	edx, DWORD PTR -52[rbp]
	mov	eax, DWORD PTR -44[rbp]
	mov	esi, edx
	mov	edi, eax
	call	proc_start
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L35
	jmp	.L36
.L31:
	mov	edx, DWORD PTR -40[rbp]
	lea	rax, -32[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	chdir@PLT
	test	eax, eax
	jns	.L33
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, -32[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, -1
	call	exit@PLT
.L33:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	imul	rax, rax, 380
	lea	rdx, 80[rax]
	lea	rax, apps[rip]
	add	rax, rdx
	mov	rdi, rax
	call	system@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	jns	.L34
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	imul	rax, rax, 380
	lea	rdx, 80[rax]
	lea	rax, apps[rip]
	add	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, -1
	call	exit@PLT
.L34:
	mov	eax, DWORD PTR -44[rbp]
	mov	edi, eax
	call	exit@PLT
.L36:
	call	__stack_chk_fail@PLT
.L35:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	execute_command, .-execute_command
	.globl	num_cmds
	.type	num_cmds, @function
num_cmds:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, 7
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	num_cmds, .-num_cmds
	.section	.rodata
	.align 8
.LC9:
	.string	"total - (already_run + to_run) <= depth"
	.align 8
.LC10:
	.string	"total - (already_run + to_run) >= 0"
	.text
	.globl	outstanding
	.type	outstanding, @function
outstanding:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR total[rip]
	mov	ecx, DWORD PTR already_run[rip]
	mov	edx, DWORD PTR to_run[rip]
	add	ecx, edx
	sub	eax, ecx
	mov	edx, eax
	mov	eax, DWORD PTR depth[rip]
	cmp	edx, eax
	jle	.L40
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 175
	lea	rsi, .LC0[rip]
	lea	rdi, .LC9[rip]
	call	__assert_fail@PLT
.L40:
	mov	eax, DWORD PTR total[rip]
	mov	ecx, DWORD PTR already_run[rip]
	mov	edx, DWORD PTR to_run[rip]
	add	edx, ecx
	sub	eax, edx
	test	eax, eax
	jns	.L41
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 176
	lea	rsi, .LC0[rip]
	lea	rdi, .LC10[rip]
	call	__assert_fail@PLT
.L41:
	mov	eax, DWORD PTR total[rip]
	mov	ecx, DWORD PTR already_run[rip]
	mov	edx, DWORD PTR to_run[rip]
	add	edx, ecx
	sub	eax, edx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	outstanding, .-outstanding
	.section	.rodata
.LC11:
	.string	"process didn't exit\n"
	.text
	.globl	handle_exit
	.type	handle_exit, @function
handle_exit:
.LFB17:
	.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, -20[rbp]
	mov	rdi, rax
	call	wait@PLT
	mov	DWORD PTR -16[rbp], eax
	cmp	DWORD PTR -16[rbp], 0
	jns	.L44
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 10
	je	.L49
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 190
	lea	rsi, .LC0[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L44:
	mov	eax, DWORD PTR -20[rbp]
	and	eax, 127
	test	eax, eax
	je	.L47
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 20
	mov	esi, 1
	lea	rdi, .LC11[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L47:
	mov	eax, DWORD PTR -20[rbp]
	sar	eax, 8
	and	eax, 255
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	proc_terminate
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	free_dir
	mov	eax, DWORD PTR already_run[rip]
	add	eax, 1
	mov	DWORD PTR already_run[rip], eax
	jmp	.L43
.L49:
	nop
.L43:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L48
	call	__stack_chk_fail@PLT
.L48:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	handle_exit, .-handle_exit
	.globl	wait_for_proc
	.type	wait_for_proc, @function
wait_for_proc:
.LFB18:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, 0
	call	handle_exit
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	wait_for_proc, .-wait_for_proc
	.section	.rodata
.LC12:
	.string	"usage %s seed depth total\n"
.LC13:
	.string	"Elapsed"
.LC14:
	.string	"End"
.LC15:
	.string	"Start"
.LC16:
	.string	"Process"
.LC17:
	.string	"%-16s%20s%20s%20s\n\n"
.LC18:
	.string	"\n*** STARTING DEPTH %d ***\n\n"
.LC19:
	.string	"\n*** DONE WITH DEPTH %d ***\n\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB19:
	.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	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	cmp	DWORD PTR -36[rbp], 3
	jg	.L52
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L53
.L52:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	srandom@PLT
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR depth[rip], eax
	mov	eax, DWORD PTR depth[rip]
	test	eax, eax
	jle	.L54
	mov	eax, DWORD PTR depth[rip]
	cmp	eax, 20
	jle	.L55
.L54:
	mov	edi, 1
	call	exit@PLT
.L55:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR to_run[rip], eax
	mov	eax, DWORD PTR to_run[rip]
	mov	DWORD PTR total[rip], eax
	lea	r8, .LC13[rip]
	lea	rcx, .LC14[rip]
	lea	rdx, .LC15[rip]
	lea	rsi, .LC16[rip]
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR depth[rip]
	mov	esi, eax
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	mov	esi, 0
	lea	rdi, s[rip]
	call	gettimeofday@PLT
	jmp	.L56
.L58:
	mov	eax, 0
	call	wait_for_proc
.L57:
	mov	eax, 0
	call	outstanding
	mov	edx, DWORD PTR depth[rip]
	cmp	eax, edx
	je	.L58
	call	random@PLT
	mov	rbx, rax
	mov	eax, 0
	call	num_cmds
	movsx	rcx, eax
	mov	rax, rbx
	cqo
	idiv	rcx
	mov	rax, rdx
	mov	edi, eax
	call	execute_command
.L56:
	mov	eax, DWORD PTR to_run[rip]
	test	eax, eax
	jne	.L57
	jmp	.L60
.L61:
	mov	eax, 0
	call	wait_for_proc
.L60:
	mov	eax, 0
	call	outstanding
	test	eax, eax
	jne	.L61
	mov	eax, DWORD PTR depth[rip]
	mov	esi, eax
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
.L53:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	main, .-main
	.section	.rodata
	.align 8
	.type	__PRETTY_FUNCTION__.5, @object
	.size	__PRETTY_FUNCTION__.5, 11
__PRETTY_FUNCTION__.5:
	.string	"proc_start"
	.align 8
	.type	__PRETTY_FUNCTION__.4, @object
	.size	__PRETTY_FUNCTION__.4, 15
__PRETTY_FUNCTION__.4:
	.string	"proc_terminate"
	.align 8
	.type	__PRETTY_FUNCTION__.3, @object
	.size	__PRETTY_FUNCTION__.3, 14
__PRETTY_FUNCTION__.3:
	.string	"find_free_dir"
	.align 8
	.type	__PRETTY_FUNCTION__.2, @object
	.size	__PRETTY_FUNCTION__.2, 9
__PRETTY_FUNCTION__.2:
	.string	"free_dir"
	.align 8
	.type	__PRETTY_FUNCTION__.1, @object
	.size	__PRETTY_FUNCTION__.1, 12
__PRETTY_FUNCTION__.1:
	.string	"outstanding"
	.align 8
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 12
__PRETTY_FUNCTION__.0:
	.string	"handle_exit"
	.align 4
.LC2:
	.long	1148846080
	.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	"670553.c"
	.text
	.global	apps
	.data
	.align	2
	.type	apps, %object
	.size	apps, 2660
apps:
	.ascii	"Pax -r & rm\000"
	.space	68
	.ascii	"pax -rf lcc-3.6.pax ; rm -rf lcc-3.6\000"
	.space	263
	.ascii	"Pax -r & rm\000"
	.space	68
	.ascii	"pax -rf lcc-3.6.pax ; rm -rf lcc-3.6\000"
	.space	263
	.ascii	"cp & rm\000"
	.space	72
	.ascii	"cp -r d1 d2 ; rm -rf d2\000"
	.space	276
	.ascii	"cp & rm\000"
	.space	72
	.ascii	"cp -r d1 d2 ; rm -rf d2\000"
	.space	276
	.ascii	"Diff\000"
	.space	75
	.ascii	"diff lcc-3.6.pax lcc-3.6.pax2 > temp; rm -f temp\000"
	.space	251
	.ascii	"Tsp\000"
	.space	76
	.ascii	"tsp > temp; rm -f temp\000"
	.space	277
	.ascii	"Sor\000"
	.space	76
	.ascii	"sor > temp; rm -f temp\000"
	.space	277
	.comm	depth,4,4
	.global	already_run
	.bss
	.align	2
	.type	already_run, %object
	.size	already_run, 4
already_run:
	.space	4
	.comm	to_run,4,4
	.comm	total,4,4
	.comm	s,8,4
	.global	next_tag
	.align	2
	.type	next_tag, %object
	.size	next_tag, 4
next_tag:
	.space	4
	.comm	history,1024,4
	.global	explicit_wait
	.align	2
	.type	explicit_wait, %object
	.size	explicit_wait, 4
explicit_wait:
	.space	4
	.text
	.align	2
	.global	handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	handler, %function
handler:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	handle_exit
	nop
	pop	{fp, pc}
	.size	handler, .-handler
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	timestamp
	.syntax unified
	.arm
	.fpu softvfp
	.type	timestamp, %function
timestamp:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L5
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #16
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	ldr	r2, [fp, #-12]
	ldr	r3, .L5+4
	ldr	r3, [r3, #4]
	sub	r0, r2, r3
	ldr	r2, [fp, #-16]
	ldr	r3, .L5+4
	ldr	r3, [r3]
	sub	r1, r2, r3
	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
	ldr	r2, .L5+8
	smull	r1, r2, r3, r2
	asr	r2, r2, #6
	asr	r3, r3, #31
	sub	r3, r2, r3
	ldr	r2, .L5
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L4
	bl	__stack_chk_fail
.L4:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	.LC0
	.word	s
	.word	274877907
	.size	timestamp, .-timestamp
	.comm	trace,16384,4
	.global	next_trace
	.bss
	.align	2
	.type	next_trace, %object
	.size	next_trace, 4
next_trace:
	.space	4
	.section	.rodata
	.align	2
.LC1:
	.ascii	"the_stack_data/670553.c\000"
	.align	2
.LC2:
	.ascii	"next_trace < MAX_TRACE\000"
	.text
	.align	2
	.global	proc_start
	.syntax unified
	.arm
	.fpu softvfp
	.type	proc_start, %function
proc_start:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #12
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, .L9
	ldr	r3, [r3]
	cmp	r3, #1024
	blt	.L8
	ldr	r3, .L9+4
	mov	r2, #59
	ldr	r1, .L9+8
	ldr	r0, .L9+12
	bl	__assert_fail
.L8:
	ldr	r3, .L9
	ldr	r3, [r3]
	ldr	r1, .L9+16
	ldr	r2, [fp, #-20]
	str	r2, [r1, r3, lsl #4]
	ldr	r3, .L9
	ldr	r3, [r3]
	ldr	r2, .L9+16
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r2, [fp, #-16]
	str	r2, [r3, #4]
	ldr	r3, .L9
	ldr	r4, [r3]
	bl	timestamp
	mov	r2, r0
	ldr	r1, .L9+16
	lsl	r3, r4, #4
	add	r3, r1, r3
	str	r2, [r3, #8]
	ldr	r3, .L9
	ldr	r3, [r3]
	ldr	r2, .L9+16
	lsl	r3, r3, #4
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #12]
	ldr	r3, .L9
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L9
	str	r3, [r2]
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L10:
	.align	2
.L9:
	.word	next_trace
	.word	__PRETTY_FUNCTION__.6346
	.word	.LC1
	.word	.LC2
	.word	trace
	.size	proc_start, .-proc_start
	.global	__aeabi_i2f
	.global	__aeabi_fdiv
	.global	__aeabi_f2d
	.global	__aeabi_fsub
	.section	.rodata
	.align	2
.LC3:
	.ascii	"%-16s%20f%20f%20f\012\000"
	.align	2
.LC4:
	.ascii	"0\000"
	.text
	.align	2
	.global	proc_terminate
	.syntax unified
	.arm
	.fpu softvfp
	.type	proc_terminate, %function
proc_terminate:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, fp, lr}
	add	fp, sp, #24
	sub	sp, sp, #44
	str	r0, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L12
.L15:
	ldr	r2, .L17
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-48]
	cmp	r2, r3
	bne	.L13
	bl	timestamp
	mov	r2, r0
	ldr	r1, .L17
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #4
	add	r3, r1, r3
	str	r2, [r3, #12]
	ldr	r2, .L17
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	ldr	r1, .L17+4
	mov	r0, r3
	bl	__aeabi_fdiv
	mov	r3, r0
	str	r3, [fp, #-36]	@ float
	ldr	r2, .L17
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r3, [r3, #12]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	ldr	r1, .L17+4
	mov	r0, r3
	bl	__aeabi_fdiv
	mov	r3, r0
	str	r3, [fp, #-32]	@ float
	ldr	r2, .L17
	ldr	r3, [fp, #-40]
	ldr	r2, [r2, r3, lsl #4]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L17+8
	add	r8, r3, r2
	ldr	r0, [fp, #-36]	@ float
	bl	__aeabi_f2d
	mov	r6, r0
	mov	r7, r1
	ldr	r0, [fp, #-32]	@ float
	bl	__aeabi_f2d
	mov	r4, r0
	mov	r5, r1
	ldr	r1, [fp, #-36]	@ float
	ldr	r0, [fp, #-32]	@ float
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	stm	sp, {r4-r5}
	mov	r2, r6
	mov	r3, r7
	mov	r1, r8
	ldr	r0, .L17+12
	bl	printf
	b	.L16
.L13:
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L12:
	ldr	r3, .L17+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-40]
	cmp	r2, r3
	blt	.L15
	ldr	r3, .L17+20
	mov	r2, #81
	ldr	r1, .L17+24
	ldr	r0, .L17+28
	bl	__assert_fail
.L16:
	sub	sp, fp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, fp, pc}
.L18:
	.align	2
.L17:
	.word	trace
	.word	1148846080
	.word	apps
	.word	.LC3
	.word	next_trace
	.word	__PRETTY_FUNCTION__.6356
	.word	.LC1
	.word	.LC4
	.size	proc_terminate, .-proc_terminate
	.align	2
	.global	proc_alldone
	.syntax unified
	.arm
	.fpu softvfp
	.type	proc_alldone, %function
proc_alldone:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	proc_alldone, .-proc_alldone
	.global	dirs
	.bss
	.align	2
	.type	dirs, %object
	.size	dirs, 128
dirs:
	.space	128
	.text
	.align	2
	.global	find_free_dir
	.syntax unified
	.arm
	.fpu softvfp
	.type	find_free_dir, %function
find_free_dir:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L28
	ldr	r3, [r3]
	cmp	r3, #32
	ble	.L22
	ldr	r3, .L28+4
	mov	r2, #105
	ldr	r1, .L28+8
	ldr	r0, .L28+12
	bl	__assert_fail
.L22:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L23
.L26:
	ldr	r2, .L28+16
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	bne	.L24
	ldr	r2, .L28+16
	ldr	r3, [fp, #-8]
	mov	r1, #1
	str	r1, [r2, r3, lsl #2]
	ldr	r3, [fp, #-8]
	b	.L27
.L24:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L23:
	ldr	r3, .L28
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L26
	ldr	r3, .L28+4
	mov	r2, #114
	ldr	r1, .L28+8
	ldr	r0, .L28+12
	bl	__assert_fail
.L27:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L29:
	.align	2
.L28:
	.word	depth
	.word	__PRETTY_FUNCTION__.6369
	.word	.LC1
	.word	.LC4
	.word	dirs
	.size	find_free_dir, .-find_free_dir
	.align	2
	.global	mark_dir
	.syntax unified
	.arm
	.fpu softvfp
	.type	mark_dir, %function
mark_dir:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r1, .L31
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	str	r2, [r1, r3, lsl #2]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L32:
	.align	2
.L31:
	.word	dirs
	.size	mark_dir, .-mark_dir
	.align	2
	.global	free_dir
	.syntax unified
	.arm
	.fpu softvfp
	.type	free_dir, %function
free_dir:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L34
.L37:
	ldr	r2, .L39
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bne	.L35
	ldr	r2, .L39
	ldr	r3, [fp, #-8]
	mov	r1, #0
	str	r1, [r2, r3, lsl #2]
	b	.L38
.L35:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L34:
	ldr	r3, .L39+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L37
	ldr	r3, .L39+8
	mov	r2, #131
	ldr	r1, .L39+12
	ldr	r0, .L39+16
	bl	__assert_fail
.L38:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L40:
	.align	2
.L39:
	.word	dirs
	.word	depth
	.word	__PRETTY_FUNCTION__.6384
	.word	.LC1
	.word	.LC4
	.size	free_dir, .-free_dir
	.section	.rodata
	.align	2
.LC5:
	.ascii	"couldn't fork\012\000"
	.align	2
.LC6:
	.ascii	"test%d\000"
	.align	2
.LC7:
	.ascii	"couldn't chdir to %s\012\000"
	.align	2
.LC8:
	.ascii	"system failed on %s\012\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	execute_command
	.syntax unified
	.arm
	.fpu softvfp
	.type	execute_command, %function
execute_command:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-48]
	ldr	r3, .L49
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L49+4
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L49+4
	str	r2, [r1]
	str	r3, [fp, #-40]
	bl	find_free_dir
	str	r0, [fp, #-36]
	ldr	r3, .L49+8
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L49+8
	str	r3, [r2]
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmn	r3, #1
	bne	.L42
	ldr	r3, .L49+12
	ldr	r3, [r3]
	mov	r2, #14
	mov	r1, #1
	ldr	r0, .L49+16
	bl	fwrite
	mvn	r0, #0
	bl	exit
.L42:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	ble	.L43
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-36]
	bl	mark_dir
	ldr	r1, [fp, #-48]
	ldr	r0, [fp, #-40]
	bl	proc_start
	nop
	ldr	r3, .L49
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L47
	b	.L48
.L43:
	sub	r3, fp, #28
	ldr	r2, [fp, #-36]
	ldr	r1, .L49+20
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #28
	mov	r0, r3
	bl	chdir
	mov	r3, r0
	cmp	r3, #0
	bge	.L45
	ldr	r3, .L49+12
	ldr	r3, [r3]
	sub	r2, fp, #28
	ldr	r1, .L49+24
	mov	r0, r3
	bl	fprintf
	mvn	r0, #0
	bl	exit
.L45:
	ldr	r2, [fp, #-48]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, #80
	ldr	r2, .L49+28
	add	r3, r3, r2
	mov	r0, r3
	bl	system
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bge	.L46
	ldr	r3, .L49+12
	ldr	r0, [r3]
	ldr	r2, [fp, #-48]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, #80
	ldr	r2, .L49+28
	add	r3, r3, r2
	mov	r2, r3
	ldr	r1, .L49+32
	bl	fprintf
	mvn	r0, #0
	bl	exit
.L46:
	ldr	r0, [fp, #-40]
	bl	exit
.L48:
	bl	__stack_chk_fail
.L47:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L50:
	.align	2
.L49:
	.word	.LC9
	.word	next_tag
	.word	to_run
	.word	stderr
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	apps
	.word	.LC8
	.size	execute_command, .-execute_command
	.align	2
	.global	num_cmds
	.syntax unified
	.arm
	.fpu softvfp
	.type	num_cmds, %function
num_cmds:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	mov	r3, #7
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	num_cmds, .-num_cmds
	.section	.rodata
	.align	2
.LC10:
	.ascii	"total - (already_run + to_run) <= depth\000"
	.align	2
.LC11:
	.ascii	"total - (already_run + to_run) >= 0\000"
	.text
	.align	2
	.global	outstanding
	.syntax unified
	.arm
	.fpu softvfp
	.type	outstanding, %function
outstanding:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L57
	ldr	r2, [r3]
	ldr	r3, .L57+4
	ldr	r1, [r3]
	ldr	r3, .L57+8
	ldr	r3, [r3]
	add	r3, r1, r3
	sub	r2, r2, r3
	ldr	r3, .L57+12
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L54
	ldr	r3, .L57+16
	mov	r2, #175
	ldr	r1, .L57+20
	ldr	r0, .L57+24
	bl	__assert_fail
.L54:
	ldr	r3, .L57
	ldr	r2, [r3]
	ldr	r3, .L57+4
	ldr	r1, [r3]
	ldr	r3, .L57+8
	ldr	r3, [r3]
	add	r3, r1, r3
	sub	r3, r2, r3
	cmp	r3, #0
	bge	.L55
	ldr	r3, .L57+16
	mov	r2, #176
	ldr	r1, .L57+20
	ldr	r0, .L57+28
	bl	__assert_fail
.L55:
	ldr	r3, .L57
	ldr	r2, [r3]
	ldr	r3, .L57+4
	ldr	r1, [r3]
	ldr	r3, .L57+8
	ldr	r3, [r3]
	add	r3, r1, r3
	sub	r3, r2, r3
	mov	r0, r3
	pop	{fp, pc}
.L58:
	.align	2
.L57:
	.word	total
	.word	already_run
	.word	to_run
	.word	depth
	.word	__PRETTY_FUNCTION__.6396
	.word	.LC1
	.word	.LC10
	.word	.LC11
	.size	outstanding, .-outstanding
	.section	.rodata
	.align	2
.LC12:
	.ascii	"process didn't exit\012\000"
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	handle_exit
	.syntax unified
	.arm
	.fpu softvfp
	.type	handle_exit, %function
handle_exit:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L66
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #20
	mov	r0, r3
	bl	wait
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bge	.L60
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #10
	beq	.L65
	ldr	r3, .L66+4
	mov	r2, #190
	ldr	r1, .L66+8
	ldr	r0, .L66+12
	bl	__assert_fail
.L60:
	ldr	r3, [fp, #-20]
	and	r3, r3, #127
	cmp	r3, #0
	beq	.L63
	ldr	r3, .L66+16
	ldr	r3, [r3]
	mov	r2, #20
	mov	r1, #1
	ldr	r0, .L66+20
	bl	fwrite
	mov	r0, #1
	bl	exit
.L63:
	ldr	r3, [fp, #-20]
	asr	r3, r3, #8
	and	r3, r3, #255
	str	r3, [fp, #-12]
	ldr	r0, [fp, #-12]
	bl	proc_terminate
	ldr	r0, [fp, #-16]
	bl	free_dir
	ldr	r3, .L66+24
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L66+24
	str	r3, [r2]
	b	.L59
.L65:
	nop
.L59:
	ldr	r3, .L66
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L64
	bl	__stack_chk_fail
.L64:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L67:
	.align	2
.L66:
	.word	.LC13
	.word	__PRETTY_FUNCTION__.6402
	.word	.LC1
	.word	.LC4
	.word	stderr
	.word	.LC12
	.word	already_run
	.size	handle_exit, .-handle_exit
	.align	2
	.global	wait_for_proc
	.syntax unified
	.arm
	.fpu softvfp
	.type	wait_for_proc, %function
wait_for_proc:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	handle_exit
	nop
	pop	{fp, pc}
	.size	wait_for_proc, .-wait_for_proc
	.section	.rodata
	.align	2
.LC14:
	.ascii	"usage %s seed depth total\012\000"
	.align	2
.LC15:
	.ascii	"End\000"
	.align	2
.LC16:
	.ascii	"Start\000"
	.align	2
.LC17:
	.ascii	"Process\000"
	.align	2
.LC18:
	.ascii	"%-16s%20s%20s%20s\012\012\000"
	.align	2
.LC19:
	.ascii	"Elapsed\000"
	.align	2
.LC20:
	.ascii	"\012*** STARTING DEPTH %d ***\012\012\000"
	.global	__aeabi_idivmod
	.align	2
.LC21:
	.ascii	"\012*** DONE WITH DEPTH %d ***\012\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-24]
	cmp	r3, #3
	bgt	.L70
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L80
	bl	printf
	mvn	r3, #0
	b	.L71
.L70:
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	srandom
	ldr	r3, [fp, #-28]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L80+4
	str	r3, [r2]
	ldr	r3, .L80+4
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L72
	ldr	r3, .L80+4
	ldr	r3, [r3]
	cmp	r3, #20
	ble	.L73
.L72:
	mov	r0, #1
	bl	exit
.L73:
	ldr	r3, [fp, #-28]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L80+8
	str	r3, [r2]
	ldr	r3, .L80+8
	ldr	r3, [r3]
	ldr	r2, .L80+12
	str	r3, [r2]
	ldr	r3, .L80+16
	str	r3, [sp]
	ldr	r3, .L80+20
	ldr	r2, .L80+24
	ldr	r1, .L80+28
	ldr	r0, .L80+32
	bl	printf
	ldr	r3, .L80+4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L80+36
	bl	printf
	mov	r1, #0
	ldr	r0, .L80+40
	bl	gettimeofday
	b	.L74
.L76:
	bl	wait_for_proc
.L75:
	bl	outstanding
	mov	r2, r0
	ldr	r3, .L80+4
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L76
	bl	random
	mov	r4, r0
	bl	num_cmds
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_idivmod
	mov	r3, r1
	mov	r0, r3
	bl	execute_command
.L74:
	ldr	r3, .L80+8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L75
	b	.L78
.L79:
	bl	wait_for_proc
.L78:
	bl	outstanding
	mov	r3, r0
	cmp	r3, #0
	bne	.L79
	ldr	r3, .L80+4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L80+44
	bl	printf
	mov	r3, #0
.L71:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L81:
	.align	2
.L80:
	.word	.LC14
	.word	depth
	.word	to_run
	.word	total
	.word	.LC19
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC20
	.word	s
	.word	.LC21
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.6346, %object
	.size	__PRETTY_FUNCTION__.6346, 11
__PRETTY_FUNCTION__.6346:
	.ascii	"proc_start\000"
	.align	2
	.type	__PRETTY_FUNCTION__.6356, %object
	.size	__PRETTY_FUNCTION__.6356, 15
__PRETTY_FUNCTION__.6356:
	.ascii	"proc_terminate\000"
	.align	2
	.type	__PRETTY_FUNCTION__.6369, %object
	.size	__PRETTY_FUNCTION__.6369, 14
__PRETTY_FUNCTION__.6369:
	.ascii	"find_free_dir\000"
	.align	2
	.type	__PRETTY_FUNCTION__.6384, %object
	.size	__PRETTY_FUNCTION__.6384, 9
__PRETTY_FUNCTION__.6384:
	.ascii	"free_dir\000"
	.align	2
	.type	__PRETTY_FUNCTION__.6396, %object
	.size	__PRETTY_FUNCTION__.6396, 12
__PRETTY_FUNCTION__.6396:
	.ascii	"outstanding\000"
	.align	2
	.type	__PRETTY_FUNCTION__.6402, %object
	.size	__PRETTY_FUNCTION__.6402, 12
__PRETTY_FUNCTION__.6402:
	.ascii	"handle_exit\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
