	.file	"9513944.c"
	.intel_syntax noprefix
	.text
	.globl	dotest_flag
	.bss
	.align 4
	.type	dotest_flag, @object
	.size	dotest_flag, 4
dotest_flag:
	.zero	4
	.globl	memory_flag
	.data
	.align 4
	.type	memory_flag, @object
	.size	memory_flag, 4
memory_flag:
	.long	1024
	.globl	jobs_flag
	.align 4
	.type	jobs_flag, @object
	.size	jobs_flag, 4
jobs_flag:
	.long	1
	.globl	iter_flag
	.align 4
	.type	iter_flag, @object
	.size	iter_flag, 4
iter_flag:
	.long	500
	.globl	progname
	.bss
	.align 8
	.type	progname, @object
	.size	progname, 8
progname:
	.zero	8
	.globl	argvcp
	.align 8
	.type	argvcp, @object
	.size	argvcp, 8
argvcp:
	.zero	8
	.section	.rodata
.LC0:
	.string	"dotest"
.LC1:
	.string	"--help"
.LC2:
	.string	"-m"
.LC3:
	.string	"-j"
.LC4:
	.string	"-i"
	.align 8
.LC5:
	.string	"memory: %d, jobs: %d. iter: %d dotest: %d\n"
.LC6:
	.string	"Ok"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR argvcp[rip], rax
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 8[rax]
	mov	QWORD PTR -32[rbp], rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR progname[rip], rax
	mov	rax, QWORD PTR progname[rip]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L3
	mov	DWORD PTR dotest_flag[rip], 1
	jmp	.L3
.L12:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L4
	call	usage
	jmp	.L5
.L4:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L6
	add	QWORD PTR -32[rbp], 8
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L7
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR memory_flag[rip], eax
	mov	eax, DWORD PTR memory_flag[rip]
	sal	eax, 10
	mov	DWORD PTR memory_flag[rip], eax
	mov	eax, DWORD PTR memory_flag[rip]
	test	eax, eax
	jns	.L5
	call	usage
	jmp	.L5
.L7:
	call	usage
	jmp	.L5
.L6:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L8
	add	QWORD PTR -32[rbp], 8
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L9
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR jobs_flag[rip], eax
	mov	eax, DWORD PTR jobs_flag[rip]
	test	eax, eax
	jg	.L5
	call	usage
	jmp	.L5
.L9:
	call	usage
	jmp	.L5
.L8:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L10
	add	QWORD PTR -32[rbp], 8
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L11
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR iter_flag[rip], eax
	mov	eax, DWORD PTR iter_flag[rip]
	test	eax, eax
	jg	.L5
	call	usage
	jmp	.L5
.L11:
	call	usage
	jmp	.L5
.L10:
	call	usage
.L5:
	sub	DWORD PTR -20[rbp], 1
	add	QWORD PTR -32[rbp], 8
.L3:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L12
	mov	esi, DWORD PTR dotest_flag[rip]
	mov	ecx, DWORD PTR iter_flag[rip]
	mov	edx, DWORD PTR jobs_flag[rip]
	mov	eax, DWORD PTR memory_flag[rip]
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR dotest_flag[rip]
	test	eax, eax
	je	.L13
	mov	eax, DWORD PTR memory_flag[rip]
	mov	edi, eax
	call	dotest
	mov	edi, eax
	call	exit@PLT
.L13:
	mov	rax, QWORD PTR argvcp[rip]
	lea	rdx, .LC0[rip]
	mov	QWORD PTR [rax], rdx
	mov	DWORD PTR -4[rbp], 0
	jmp	.L14
.L15:
	call	start_child
	add	DWORD PTR -4[rbp], 1
.L14:
	mov	eax, DWORD PTR jobs_flag[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L15
	mov	DWORD PTR -4[rbp], 0
	jmp	.L16
.L17:
	call	wait_child
	call	start_child
	add	DWORD PTR -4[rbp], 1
.L16:
	mov	eax, DWORD PTR iter_flag[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L17
	mov	DWORD PTR -4[rbp], 0
	jmp	.L18
.L19:
	call	wait_child
	add	DWORD PTR -4[rbp], 1
.L18:
	mov	eax, DWORD PTR jobs_flag[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L19
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC7:
	.string	"Usage: %s [--help] [-m #] [-j #]"
.LC8:
	.string	"--help: you get this message"
	.align 8
.LC9:
	.string	"-m amount of memory to malloc and test in kilobytes"
	.align 8
.LC10:
	.string	"-j number of simulaneous processes banging on the memory"
.LC11:
	.string	"-i number of iterations"
	.align 8
.LC12:
	.string	"with no flags it starts testing memory"
	.align 8
.LC13:
	.string	"default: amount of memory: %d, jobs: %d, iterations: %d\n"
	.text
	.globl	usage
	.type	usage, @function
usage:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR __progname[rip]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC8[rip]
	call	puts@PLT
	lea	rdi, .LC9[rip]
	call	puts@PLT
	lea	rdi, .LC10[rip]
	call	puts@PLT
	lea	rdi, .LC11[rip]
	call	puts@PLT
	lea	rdi, .LC12[rip]
	call	puts@PLT
	mov	ecx, 500
	mov	edx, 1
	mov	esi, 1024
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE7:
	.size	usage, .-usage
	.section	.rodata
.LC14:
	.string	"could not malloc %d\n"
	.align 8
.LC15:
	.string	"memory differs at %p (from beginning %d) value: %d, expected %d\n"
	.text
	.globl	dotest
	.type	dotest, @function
dotest:
.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
	cmp	DWORD PTR -36[rbp], 0
	jne	.L23
	mov	eax, 0
	jmp	.L24
.L23:
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L25
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L24
.L25:
	mov	DWORD PTR -20[rbp], 0
	jmp	.L26
.L27:
	mov	edx, DWORD PTR -20[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR [rax], edx
	add	QWORD PTR -16[rbp], 4
	add	DWORD PTR -20[rbp], 1
.L26:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	mov	edx, DWORD PTR -36[rbp]
	movsx	rdx, edx
	shr	rdx, 2
	cmp	rax, rdx
	jb	.L27
	mov	DWORD PTR -20[rbp], 0
	jmp	.L28
.L30:
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 4[rax]
	mov	QWORD PTR -8[rbp], rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -20[rbp]
	cmp	edx, eax
	je	.L29
	sub	QWORD PTR -8[rbp], 4
	mov	rax, QWORD PTR -8[rbp]
	mov	ecx, DWORD PTR [rax]
	mov	esi, DWORD PTR -20[rbp]
	mov	edx, DWORD PTR -20[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	r8d, esi
	mov	rsi, rax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -2
	jmp	.L24
.L29:
	add	DWORD PTR -20[rbp], 1
.L28:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	mov	edx, DWORD PTR -36[rbp]
	movsx	rdx, edx
	shr	rdx, 2
	cmp	rax, rdx
	jb	.L30
	mov	eax, 0
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	dotest, .-dotest
	.section	.rodata
.LC16:
	.string	"problems forking: %d\n"
.LC17:
	.string	"FAILED"
	.text
	.globl	start_child
	.type	start_child, @function
start_child:
.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, 16
	call	fork@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jne	.L32
	mov	eax, DWORD PTR memory_flag[rip]
	mov	edi, eax
	call	dotest
	mov	edi, eax
	call	exit@PLT
.L32:
	cmp	DWORD PTR -4[rbp], 0
	jns	.L34
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC17[rip]
	call	puts@PLT
	mov	edi, -1
	call	exit@PLT
.L34:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	start_child, .-start_child
	.section	.rodata
.LC18:
	.string	"FAILED child returned %d\n"
	.text
	.globl	wait_child
	.type	wait_child, @function
wait_child:
.LFB10:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -12[rbp]
	mov	rdi, rax
	call	wait@PLT
	mov	eax, DWORD PTR -12[rbp]
	and	eax, 127
	test	eax, eax
	jne	.L36
	mov	eax, DWORD PTR -12[rbp]
	sar	eax, 8
	movzx	eax, al
	test	eax, eax
	je	.L40
.L36:
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, -1
	call	exit@PLT
.L40:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L38
	call	__stack_chk_fail@PLT
.L38:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	wait_child, .-wait_child
	.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	"9513944.c"
	.text
	.global	dotest_flag
	.bss
	.align	2
	.type	dotest_flag, %object
	.size	dotest_flag, 4
dotest_flag:
	.space	4
	.global	memory_flag
	.data
	.align	2
	.type	memory_flag, %object
	.size	memory_flag, 4
memory_flag:
	.word	1024
	.global	jobs_flag
	.align	2
	.type	jobs_flag, %object
	.size	jobs_flag, 4
jobs_flag:
	.word	1
	.global	iter_flag
	.align	2
	.type	iter_flag, %object
	.size	iter_flag, 4
iter_flag:
	.word	500
	.comm	progname,4,4
	.comm	argvcp,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"dotest\000"
	.align	2
.LC1:
	.ascii	"--help\000"
	.align	2
.LC2:
	.ascii	"-m\000"
	.align	2
.LC3:
	.ascii	"-j\000"
	.align	2
.LC4:
	.ascii	"-i\000"
	.align	2
.LC5:
	.ascii	"memory: %d, jobs: %d. iter: %d dotest: %d\012\000"
	.align	2
.LC6:
	.ascii	"Ok\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	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r2, .L21
	ldr	r3, [fp, #-20]
	str	r3, [r2]
	ldr	r3, [fp, #-20]
	add	r2, r3, #4
	str	r2, [fp, #-20]
	ldr	r3, [r3]
	ldr	r2, .L21+4
	str	r3, [r2]
	ldr	r3, .L21+4
	ldr	r3, [r3]
	ldr	r1, .L21+8
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L3
	ldr	r3, .L21+12
	mov	r2, #1
	str	r2, [r3]
	b	.L3
.L12:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r1, .L21+16
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L4
	bl	usage
	b	.L5
.L4:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r1, .L21+20
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L6
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L7
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L21+24
	str	r3, [r2]
	ldr	r3, .L21+24
	ldr	r3, [r3]
	lsl	r3, r3, #10
	ldr	r2, .L21+24
	str	r3, [r2]
	ldr	r3, .L21+24
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L5
	bl	usage
	b	.L5
.L7:
	bl	usage
	b	.L5
.L6:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r1, .L21+28
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L8
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L9
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L21+32
	str	r3, [r2]
	ldr	r3, .L21+32
	ldr	r3, [r3]
	cmp	r3, #0
	bgt	.L5
	bl	usage
	b	.L5
.L9:
	bl	usage
	b	.L5
.L8:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r1, .L21+36
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L10
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L11
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L21+40
	str	r3, [r2]
	ldr	r3, .L21+40
	ldr	r3, [r3]
	cmp	r3, #0
	bgt	.L5
	bl	usage
	b	.L5
.L11:
	bl	usage
	b	.L5
.L10:
	bl	usage
.L5:
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	str	r3, [fp, #-20]
.L3:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L12
	ldr	r3, .L21+24
	ldr	r1, [r3]
	ldr	r3, .L21+32
	ldr	r2, [r3]
	ldr	r3, .L21+40
	ldr	r0, [r3]
	ldr	r3, .L21+12
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L21+44
	bl	printf
	ldr	r3, .L21+12
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L13
	ldr	r3, .L21+24
	ldr	r3, [r3]
	mov	r0, r3
	bl	dotest
	mov	r3, r0
	mov	r0, r3
	bl	exit
.L13:
	ldr	r3, .L21
	ldr	r3, [r3]
	ldr	r2, .L21+8
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L14
.L15:
	bl	start_child
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L14:
	ldr	r3, .L21+32
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L15
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L16
.L17:
	bl	wait_child
	bl	start_child
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L16:
	ldr	r3, .L21+40
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L17
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L18
.L19:
	bl	wait_child
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L18:
	ldr	r3, .L21+32
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L19
	ldr	r0, .L21+48
	bl	puts
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	argvcp
	.word	progname
	.word	.LC0
	.word	dotest_flag
	.word	.LC1
	.word	.LC2
	.word	memory_flag
	.word	.LC3
	.word	jobs_flag
	.word	.LC4
	.word	iter_flag
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.section	.rodata
	.align	2
.LC7:
	.ascii	"Usage: %s [--help] [-m #] [-j #]\000"
	.align	2
.LC8:
	.ascii	"--help: you get this message\000"
	.align	2
.LC9:
	.ascii	"-m amount of memory to malloc and test in kilobytes"
	.ascii	"\000"
	.align	2
.LC10:
	.ascii	"-j number of simulaneous processes banging on the m"
	.ascii	"emory\000"
	.align	2
.LC11:
	.ascii	"-i number of iterations\000"
	.align	2
.LC12:
	.ascii	"with no flags it starts testing memory\000"
	.align	2
.LC13:
	.ascii	"default: amount of memory: %d, jobs: %d, iterations"
	.ascii	": %d\012\000"
	.text
	.align	2
	.global	usage
	.syntax unified
	.arm
	.fpu softvfp
	.type	usage, %function
usage:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L24
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L24+4
	bl	printf
	ldr	r0, .L24+8
	bl	puts
	ldr	r0, .L24+12
	bl	puts
	ldr	r0, .L24+16
	bl	puts
	ldr	r0, .L24+20
	bl	puts
	ldr	r0, .L24+24
	bl	puts
	mov	r3, #500
	mov	r2, #1
	mov	r1, #1024
	ldr	r0, .L24+28
	bl	printf
	mov	r0, #0
	bl	exit
.L25:
	.align	2
.L24:
	.word	__progname
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.size	usage, .-usage
	.section	.rodata
	.align	2
.LC14:
	.ascii	"could not malloc %d\012\000"
	.align	2
.LC15:
	.ascii	"memory differs at %p (from beginning %d) value: %d,"
	.ascii	" expected %d\012\000"
	.text
	.align	2
	.global	dotest
	.syntax unified
	.arm
	.fpu softvfp
	.type	dotest, %function
dotest:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L27
	mov	r3, #0
	b	.L28
.L27:
	ldr	r3, [fp, #-24]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L29
	ldr	r1, [fp, #-24]
	ldr	r0, .L35
	bl	printf
	mvn	r3, #0
	b	.L28
.L29:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L30
.L31:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #4
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L30:
	ldr	r3, [fp, #-24]
	lsr	r2, r3, #2
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bhi	.L31
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L32
.L34:
	ldr	r3, [fp, #-12]
	add	r2, r3, #4
	str	r2, [fp, #-12]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	beq	.L33
	ldr	r3, [fp, #-12]
	sub	r3, r3, #4
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-12]
	ldr	r0, .L35+4
	bl	printf
	mvn	r3, #1
	b	.L28
.L33:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L32:
	ldr	r3, [fp, #-24]
	lsr	r2, r3, #2
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bhi	.L34
	mov	r3, #0
.L28:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L36:
	.align	2
.L35:
	.word	.LC14
	.word	.LC15
	.size	dotest, .-dotest
	.section	.rodata
	.align	2
.LC16:
	.ascii	"problems forking: %d\012\000"
	.align	2
.LC17:
	.ascii	"FAILED\000"
	.text
	.align	2
	.global	start_child
	.syntax unified
	.arm
	.fpu softvfp
	.type	start_child, %function
start_child:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L38
	ldr	r3, .L41
	ldr	r3, [r3]
	mov	r0, r3
	bl	dotest
	mov	r3, r0
	mov	r0, r3
	bl	exit
.L38:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L40
	ldr	r1, [fp, #-8]
	ldr	r0, .L41+4
	bl	printf
	ldr	r0, .L41+8
	bl	puts
	mvn	r0, #0
	bl	exit
.L40:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L42:
	.align	2
.L41:
	.word	memory_flag
	.word	.LC16
	.word	.LC17
	.size	start_child, .-start_child
	.section	.rodata
	.align	2
.LC18:
	.ascii	"FAILED child returned %d\012\000"
	.align	2
.LC19:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	wait_child
	.syntax unified
	.arm
	.fpu softvfp
	.type	wait_child, %function
wait_child:
	@ 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, .L49
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #12
	mov	r0, r3
	bl	wait
	ldr	r3, [fp, #-12]
	and	r3, r3, #127
	cmp	r3, #0
	bne	.L44
	ldr	r3, [fp, #-12]
	asr	r3, r3, #8
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L48
.L44:
	ldr	r3, [fp, #-12]
	mov	r1, r3
	ldr	r0, .L49+4
	bl	printf
	mvn	r0, #0
	bl	exit
.L48:
	nop
	ldr	r3, .L49
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L46
	bl	__stack_chk_fail
.L46:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L50:
	.align	2
.L49:
	.word	.LC19
	.word	.LC18
	.size	wait_child, .-wait_child
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
