	.file	"812961.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"stressfs starting"
.LC1:
	.string	"write %d\n"
.LC2:
	.string	"read"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 576
	mov	DWORD PTR -564[rbp], edi
	mov	QWORD PTR -576[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movabs	rax, 8315460701446632563
	mov	QWORD PTR -538[rbp], rax
	mov	WORD PTR -530[rbp], 48
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rax, -528[rbp]
	mov	edx, 512
	mov	esi, 97
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -548[rbp], 0
	jmp	.L2
.L5:
	call	fork@PLT
	test	eax, eax
	jg	.L12
	add	DWORD PTR -548[rbp], 1
.L2:
	cmp	DWORD PTR -548[rbp], 3
	jle	.L5
	jmp	.L4
.L12:
	nop
.L4:
	mov	eax, DWORD PTR -548[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, BYTE PTR -530[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -548[rbp]
	add	eax, edx
	mov	BYTE PTR -530[rbp], al
	lea	rax, -538[rbp]
	mov	esi, 66
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -544[rbp], eax
	mov	DWORD PTR -548[rbp], 0
	jmp	.L6
.L7:
	lea	rcx, -528[rbp]
	mov	eax, DWORD PTR -544[rbp]
	mov	edx, 512
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	add	DWORD PTR -548[rbp], 1
.L6:
	cmp	DWORD PTR -548[rbp], 19
	jle	.L7
	mov	eax, DWORD PTR -544[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rax, -538[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -544[rbp], eax
	mov	DWORD PTR -548[rbp], 0
	jmp	.L8
.L9:
	lea	rcx, -528[rbp]
	mov	eax, DWORD PTR -544[rbp]
	mov	edx, 512
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	add	DWORD PTR -548[rbp], 1
.L8:
	cmp	DWORD PTR -548[rbp], 19
	jle	.L9
	mov	eax, DWORD PTR -544[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 0
	call	wait@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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	"812961.c"
	.text
	.section	.rodata
	.align	2
.LC1:
	.ascii	"stressfs starting\000"
	.align	2
.LC2:
	.ascii	"write %d\012\000"
	.align	2
.LC3:
	.ascii	"read\000"
	.align	2
.LC0:
	.ascii	"stressfs0\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 544
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #544
	str	r0, [fp, #-544]
	str	r1, [fp, #-548]
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r2, .L13+4
	sub	r3, fp, #532
	ldm	r2, {r0, r1, r2}
	stmia	r3!, {r0, r1}
	strh	r2, [r3]	@ movhi
	ldr	r0, .L13+8
	bl	puts
	sub	r3, fp, #520
	mov	r2, #512
	mov	r1, #97
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-540]
	b	.L2
.L5:
	bl	fork
	mov	r3, r0
	cmp	r3, #0
	bgt	.L12
	ldr	r3, [fp, #-540]
	add	r3, r3, #1
	str	r3, [fp, #-540]
.L2:
	ldr	r3, [fp, #-540]
	cmp	r3, #3
	ble	.L5
	b	.L4
.L12:
	nop
.L4:
	ldr	r1, [fp, #-540]
	ldr	r0, .L13+12
	bl	printf
	ldrb	r2, [fp, #-524]	@ zero_extendqisi2
	ldr	r3, [fp, #-540]
	and	r3, r3, #255
	add	r3, r2, r3
	and	r3, r3, #255
	strb	r3, [fp, #-524]
	sub	r3, fp, #532
	mov	r1, #66
	mov	r0, r3
	bl	open
	str	r0, [fp, #-536]
	mov	r3, #0
	str	r3, [fp, #-540]
	b	.L6
.L7:
	sub	r3, fp, #520
	mov	r2, #512
	mov	r1, r3
	ldr	r0, [fp, #-536]
	bl	write
	ldr	r3, [fp, #-540]
	add	r3, r3, #1
	str	r3, [fp, #-540]
.L6:
	ldr	r3, [fp, #-540]
	cmp	r3, #19
	ble	.L7
	ldr	r0, [fp, #-536]
	bl	close
	ldr	r0, .L13+16
	bl	puts
	sub	r3, fp, #532
	mov	r1, #0
	mov	r0, r3
	bl	open
	str	r0, [fp, #-536]
	mov	r3, #0
	str	r3, [fp, #-540]
	b	.L8
.L9:
	sub	r3, fp, #520
	mov	r2, #512
	mov	r1, r3
	ldr	r0, [fp, #-536]
	bl	read
	ldr	r3, [fp, #-540]
	add	r3, r3, #1
	str	r3, [fp, #-540]
.L8:
	ldr	r3, [fp, #-540]
	cmp	r3, #19
	ble	.L9
	ldr	r0, [fp, #-536]
	bl	close
	mov	r0, #0
	bl	wait
	mov	r3, #0
	ldr	r2, .L13
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
