	.file	"150141205.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"/tmp/forktest.%d"
.LC1:
	.string	""
	.align 8
.LC2:
	.string	"INFO: %*s[%d] Writing %d times to %s\n"
	.align 8
.LC3:
	.string	"ERROR: [%d] creat() failed, fd=%d - %s\n"
	.align 8
.LC4:
	.string	"ERROR: [%d] write() failed, n=%d\n"
	.align 8
.LC5:
	.string	"ERROR: [%d] lseek() failed, offset=%ld - %s\n"
	.align 8
.LC6:
	.string	"ERROR: [%d] read() failed, n=%d - %s\n"
	.align 8
.LC7:
	.string	"ERROR: [%d] memcmp() failed, rc=%d\n"
.LC8:
	.string	"INFO: %*s[%d] Success\n"
	.text
	.globl	write_read
	.type	write_read, @function
write_read:
.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 336
	mov	DWORD PTR -8516[rbp], edi
	mov	DWORD PTR -8520[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -8480[rbp], 4096
	call	getpid@PLT
	mov	DWORD PTR -8492[rbp], eax
	mov	edx, DWORD PTR -8492[rbp]
	lea	rax, -272[rbp]
	mov	ecx, edx
	lea	rdx, .LC0[rip]
	mov	esi, 256
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	mov	edx, DWORD PTR -8520[rbp]
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	add	eax, eax
	mov	esi, eax
	lea	rcx, -272[rbp]
	mov	edx, DWORD PTR -8516[rbp]
	mov	eax, DWORD PTR -8492[rbp]
	mov	r9, rcx
	mov	r8d, edx
	mov	ecx, eax
	lea	rdx, .LC1[rip]
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -272[rbp]
	mov	edx, 384
	mov	esi, 578
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -8488[rbp], eax
	cmp	DWORD PTR -8488[rbp], 0
	jns	.L2
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	edx, DWORD PTR -8488[rbp]
	mov	eax, DWORD PTR -8492[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L13
.L2:
	mov	DWORD PTR -8500[rbp], 0
	jmp	.L4
.L5:
	mov	eax, DWORD PTR -8500[rbp]
	cdqe
	mov	edx, DWORD PTR -8492[rbp]
	mov	DWORD PTR -8464[rbp+rax*4], edx
	add	DWORD PTR -8500[rbp], 1
.L4:
	cmp	DWORD PTR -8500[rbp], 1023
	jle	.L5
	mov	DWORD PTR -8500[rbp], 0
	jmp	.L6
.L12:
	mov	rdx, QWORD PTR -8480[rbp]
	lea	rcx, -8464[rbp]
	mov	eax, DWORD PTR -8488[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -8484[rbp], eax
	mov	eax, DWORD PTR -8484[rbp]
	cdqe
	cmp	QWORD PTR -8480[rbp], rax
	je	.L7
	mov	edx, DWORD PTR -8484[rbp]
	mov	eax, DWORD PTR -8492[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -8496[rbp], -1
	jmp	.L8
.L7:
	mov	eax, DWORD PTR -8488[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	lseek@PLT
	mov	QWORD PTR -8472[rbp], rax
	cmp	QWORD PTR -8472[rbp], 0
	jns	.L9
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rdx, QWORD PTR -8472[rbp]
	mov	eax, DWORD PTR -8492[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -8496[rbp], -1
	jmp	.L8
.L9:
	mov	rdx, QWORD PTR -8480[rbp]
	lea	rcx, -4368[rbp]
	mov	eax, DWORD PTR -8488[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -8484[rbp], eax
	mov	eax, DWORD PTR -8484[rbp]
	cdqe
	cmp	QWORD PTR -8480[rbp], rax
	je	.L10
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	edx, DWORD PTR -8484[rbp]
	mov	eax, DWORD PTR -8492[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -8496[rbp], -1
	jmp	.L8
.L10:
	mov	rdx, QWORD PTR -8480[rbp]
	lea	rcx, -4368[rbp]
	lea	rax, -8464[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcmp@PLT
	mov	DWORD PTR -8496[rbp], eax
	cmp	DWORD PTR -8496[rbp], 0
	je	.L11
	mov	edx, DWORD PTR -8496[rbp]
	mov	eax, DWORD PTR -8492[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -8496[rbp], -1
	jmp	.L8
.L11:
	add	DWORD PTR -8500[rbp], 1
.L6:
	mov	eax, DWORD PTR -8500[rbp]
	cmp	eax, DWORD PTR -8516[rbp]
	jl	.L12
	mov	DWORD PTR -8496[rbp], 0
	mov	edx, DWORD PTR -8520[rbp]
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	add	eax, eax
	mov	esi, eax
	mov	eax, DWORD PTR -8492[rbp]
	mov	ecx, eax
	lea	rdx, .LC1[rip]
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
.L8:
	mov	eax, DWORD PTR -8488[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rax, -272[rbp]
	mov	rdi, rax
	call	unlink@PLT
	mov	eax, DWORD PTR -8496[rbp]
.L13:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	write_read, .-write_read
	.section	.rodata
.LC9:
	.string	"INFO: %*s[%d] Done - rc=%d\n"
	.text
	.globl	procfunc
	.type	procfunc, @function
procfunc:
.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	DWORD PTR -40[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -16[rbp], -1
	mov	eax, DWORD PTR -40[rbp]
	mov	esi, eax
	mov	edi, 1
	call	write_read
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	je	.L16
	mov	eax, DWORD PTR -20[rbp]
	jmp	.L24
.L16:
	cmp	DWORD PTR -36[rbp], 0
	jle	.L18
	call	fork@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jle	.L19
	mov	eax, DWORD PTR -40[rbp]
	mov	esi, eax
	mov	edi, 1000000
	call	write_read
	mov	DWORD PTR -20[rbp], eax
	lea	rcx, -24[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	waitpid@PLT
	mov	eax, DWORD PTR -24[rbp]
	and	eax, 127
	test	eax, eax
	jne	.L20
	mov	eax, DWORD PTR -24[rbp]
	sar	eax, 8
	and	eax, 255
	mov	DWORD PTR -16[rbp], eax
.L20:
	cmp	DWORD PTR -20[rbp], 0
	jne	.L21
	cmp	DWORD PTR -16[rbp], 0
	je	.L22
.L21:
	mov	DWORD PTR -20[rbp], -1
.L22:
	call	getpid@PLT
	mov	ecx, eax
	mov	edx, DWORD PTR -40[rbp]
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	add	eax, eax
	mov	esi, eax
	mov	eax, DWORD PTR -20[rbp]
	mov	r8d, eax
	lea	rdx, .LC1[rip]
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L23
.L19:
	mov	eax, DWORD PTR -40[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -36[rbp]
	sub	eax, 1
	mov	esi, edx
	mov	edi, eax
	call	procfunc
	mov	DWORD PTR -20[rbp], eax
	jmp	.L23
.L18:
	mov	eax, DWORD PTR -40[rbp]
	mov	esi, eax
	mov	edi, 1000000
	call	write_read
	mov	DWORD PTR -20[rbp], eax
	call	getpid@PLT
	mov	ecx, eax
	mov	edx, DWORD PTR -40[rbp]
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	add	eax, eax
	mov	esi, eax
	mov	eax, DWORD PTR -20[rbp]
	mov	r8d, eax
	lea	rdx, .LC1[rip]
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
.L23:
	mov	eax, DWORD PTR -20[rbp]
.L24:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	procfunc, .-procfunc
	.section	.rodata
.LC10:
	.string	"Usage: %s <child_count>\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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -36[rbp], 2
	je	.L27
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L31
.L27:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rcx, -16[rbp]
	mov	edx, 10
	mov	rsi, rcx
	mov	rdi, rax
	call	strtol@PLT
	mov	DWORD PTR -24[rbp], eax
	cmp	DWORD PTR -24[rbp], 0
	js	.L29
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	cmp	rdx, rax
	jne	.L30
.L29:
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L31
.L30:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	esi, 0
	mov	edi, eax
	call	procfunc
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	setne	al
	movzx	eax, al
.L31:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L32
	call	__stack_chk_fail@PLT
.L32:
	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	"150141205.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/tmp/forktest.%d\000"
	.align	2
.LC1:
	.ascii	"\000"
	.align	2
.LC2:
	.ascii	"INFO: %*s[%d] Writing %d times to %s\012\000"
	.align	2
.LC3:
	.ascii	"ERROR: [%d] creat() failed, fd=%d - %s\012\000"
	.align	2
.LC4:
	.ascii	"ERROR: [%d] write() failed, n=%d\012\000"
	.align	2
.LC5:
	.ascii	"ERROR: [%d] lseek() failed, offset=%ld - %s\012\000"
	.align	2
.LC6:
	.ascii	"ERROR: [%d] read() failed, n=%d - %s\012\000"
	.align	2
.LC7:
	.ascii	"ERROR: [%d] memcmp() failed, rc=%d\012\000"
	.align	2
.LC8:
	.ascii	"INFO: %*s[%d] Success\012\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	write_read
	.syntax unified
	.arm
	.fpu softvfp
	.type	write_read, %function
write_read:
	@ args = 0, pretend = 0, frame = 8488
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #8448
	sub	sp, sp, #52
	sub	r3, fp, #8192
	sub	r3, r3, #12
	str	r0, [r3, #-292]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	str	r1, [r3, #-296]
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #4096
	str	r3, [r2, #-280]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	bl	getpid
	str	r0, [r4, #-276]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r0, fp, #272
	ldr	r3, [r3, #-276]
	ldr	r2, .L15+4
	mov	r1, #256
	bl	snprintf
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r3, #-296]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #272
	str	r3, [sp, #4]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-292]
	str	r3, [sp]
	ldr	r3, [r2, #-276]
	ldr	r2, .L15+8
	ldr	r0, .L15+12
	bl	printf
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #272
	mov	r2, #384
	ldr	r1, .L15+16
	mov	r0, r3
	bl	open
	str	r0, [r4, #-272]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-272]
	cmp	r3, #0
	bge	.L2
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	sub	r2, fp, #8192
	sub	r2, r2, #12
	sub	r1, fp, #8192
	sub	r1, r1, #12
	ldr	r2, [r2, #-272]
	ldr	r1, [r1, #-276]
	ldr	r0, .L15+20
	bl	printf
	mvn	r3, #0
	b	.L13
.L2:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-288]
	b	.L4
.L5:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-288]
	lsl	r3, r3, #2
	add	r3, r2, r3
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-276]
	str	r2, [r3, #-260]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-288]
	add	r3, r3, #1
	str	r3, [r2, #-288]
.L4:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-288]
	cmp	r3, #1024
	blt	.L5
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-288]
	b	.L6
.L12:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8448
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r1, fp, #8192
	sub	r1, r1, #12
	mov	r0, r1
	ldr	r2, [r2, #-280]
	mov	r1, r3
	ldr	r0, [r0, #-272]
	bl	write
	str	r0, [r4, #-268]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-268]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-280]
	cmp	r2, r3
	beq	.L7
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r2, #-268]
	ldr	r1, [r3, #-276]
	ldr	r0, .L15+24
	bl	printf
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mvn	r3, #0
	str	r3, [r2, #-284]
	b	.L8
.L7:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [r3, #-272]
	bl	lseek
	str	r0, [r4, #-264]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-264]
	cmp	r3, #0
	bge	.L9
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	sub	r2, fp, #8192
	sub	r2, r2, #12
	sub	r1, fp, #8192
	sub	r1, r1, #12
	ldr	r2, [r2, #-264]
	ldr	r1, [r1, #-276]
	ldr	r0, .L15+28
	bl	printf
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mvn	r3, #0
	str	r3, [r2, #-284]
	b	.L8
.L9:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r1, fp, #8192
	sub	r1, r1, #12
	mov	r0, r1
	ldr	r2, [r2, #-280]
	mov	r1, r3
	ldr	r0, [r0, #-272]
	bl	read
	str	r0, [r4, #-268]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-268]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-280]
	cmp	r2, r3
	beq	.L10
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	sub	r2, fp, #8192
	sub	r2, r2, #12
	sub	r1, fp, #8192
	sub	r1, r1, #12
	ldr	r2, [r2, #-268]
	ldr	r1, [r1, #-276]
	ldr	r0, .L15+32
	bl	printf
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mvn	r3, #0
	str	r3, [r2, #-284]
	b	.L8
.L10:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r1, fp, #4352
	sub	r1, r1, #12
	sub	r1, r1, #4
	sub	r3, fp, #8448
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [r2, #-280]
	mov	r0, r3
	bl	memcmp
	str	r0, [r4, #-284]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-284]
	cmp	r3, #0
	beq	.L11
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r2, #-284]
	ldr	r1, [r3, #-276]
	ldr	r0, .L15+36
	bl	printf
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mvn	r3, #0
	str	r3, [r2, #-284]
	b	.L8
.L11:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-288]
	add	r3, r3, #1
	str	r3, [r2, #-288]
.L6:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r2, #-288]
	ldr	r3, [r3, #-292]
	cmp	r2, r3
	blt	.L12
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-284]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r3, #-296]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-276]
	ldr	r2, .L15+8
	ldr	r0, .L15+40
	bl	printf
.L8:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-272]
	bl	close
	sub	r3, fp, #272
	mov	r0, r3
	bl	unlink
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-284]
.L13:
	ldr	r2, .L15
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC9
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	578
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	write_read, .-write_read
	.section	.rodata
	.align	2
.LC10:
	.ascii	"INFO: %*s[%d] Done - rc=%d\012\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	procfunc
	.syntax unified
	.arm
	.fpu softvfp
	.type	procfunc, %function
procfunc:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #44
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L28
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mvn	r3, #0
	str	r3, [fp, #-24]
	ldr	r1, [fp, #-44]
	mov	r0, #1
	bl	write_read
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L18
	ldr	r3, [fp, #-28]
	b	.L26
.L18:
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	ble	.L20
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	ble	.L21
	ldr	r1, [fp, #-44]
	ldr	r0, .L28+4
	bl	write_read
	str	r0, [fp, #-28]
	sub	r3, fp, #32
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	waitpid
	ldr	r3, [fp, #-32]
	and	r3, r3, #127
	cmp	r3, #0
	bne	.L22
	ldr	r3, [fp, #-32]
	asr	r3, r3, #8
	and	r3, r3, #255
	str	r3, [fp, #-24]
.L22:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L23
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L24
.L23:
	mvn	r3, #0
	str	r3, [fp, #-28]
.L24:
	ldr	r2, [fp, #-44]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r4, r3
	bl	getpid
	mov	r2, r0
	ldr	r3, [fp, #-28]
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, .L28+8
	mov	r1, r4
	ldr	r0, .L28+12
	bl	printf
	b	.L25
.L21:
	ldr	r3, [fp, #-40]
	sub	r2, r3, #1
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	mov	r1, r3
	mov	r0, r2
	bl	procfunc
	str	r0, [fp, #-28]
	b	.L25
.L20:
	ldr	r1, [fp, #-44]
	ldr	r0, .L28+4
	bl	write_read
	str	r0, [fp, #-28]
	ldr	r2, [fp, #-44]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r4, r3
	bl	getpid
	mov	r2, r0
	ldr	r3, [fp, #-28]
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, .L28+8
	mov	r1, r4
	ldr	r0, .L28+12
	bl	printf
.L25:
	ldr	r3, [fp, #-28]
.L26:
	ldr	r2, .L28
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L27
	bl	__stack_chk_fail
.L27:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L29:
	.align	2
.L28:
	.word	.LC11
	.word	1000000
	.word	.LC1
	.word	.LC10
	.size	procfunc, .-procfunc
	.section	.rodata
	.align	2
.LC12:
	.ascii	"Usage: %s <child_count>\012\000"
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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]
	str	r1, [fp, #-28]
	ldr	r3, .L37
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-24]
	cmp	r3, #2
	beq	.L31
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L37+4
	bl	printf
	mov	r3, #1
	b	.L35
.L31:
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	ldr	r3, [r3]
	sub	r1, fp, #20
	mov	r2, #10
	mov	r0, r3
	bl	strtol
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	blt	.L33
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	bne	.L34
.L33:
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L37+4
	bl	printf
	mov	r3, #1
	b	.L35
.L34:
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	mov	r1, #0
	mov	r0, r3
	bl	procfunc
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
.L35:
	ldr	r2, .L37
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L36
	bl	__stack_chk_fail
.L36:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L38:
	.align	2
.L37:
	.word	.LC13
	.word	.LC12
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
