	.file	"615197.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"[%c]:Before fork: n = %d\n"
	.align 8
.LC1:
	.string	"Child process.  n=%d, returned PID=%d\n"
.LC2:
	.string	"\t\t\t\t\t\t\tC%d\n"
.LC3:
	.string	"Child process complete."
	.align 8
.LC4:
	.string	"Parent process.  n=%d, child PID=%d\n"
.LC5:
	.string	"\t\t\t\t\t\tp%d\n"
	.align 8
.LC6:
	.string	"Parent process: child complete"
.LC7:
	.string	"[%c]:After fork: n = %d\n"
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -20[rbp], 0
	mov	BYTE PTR -25[rbp], 88
	movsx	eax, BYTE PTR -25[rbp]
	mov	edx, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 2
	call	sleep@PLT
	call	fork@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jne	.L2
	mov	DWORD PTR -20[rbp], 1
	mov	BYTE PTR -25[rbp], 67
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -16[rbp], 0
	jmp	.L3
.L4:
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	sleep@PLT
	add	DWORD PTR -16[rbp], 1
.L3:
	cmp	DWORD PTR -16[rbp], 9
	jle	.L4
	mov	edi, 5
	call	sleep@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	jmp	.L5
.L2:
	mov	BYTE PTR -25[rbp], 80
	mov	edi, 2
	call	sleep@PLT
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -16[rbp], 0
	jmp	.L6
.L7:
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	sleep@PLT
	add	DWORD PTR -16[rbp], 1
.L6:
	cmp	DWORD PTR -16[rbp], 9
	jle	.L7
	lea	rax, -24[rbp]
	mov	rdi, rax
	call	wait@PLT
	lea	rdi, .LC6[rip]
	call	puts@PLT
.L5:
	movsx	eax, BYTE PTR -25[rbp]
	mov	edx, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.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	"615197.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"[%c]:Before fork: n = %d\012\000"
	.align	2
.LC1:
	.ascii	"Child process.  n=%d, returned PID=%d\012\000"
	.align	2
.LC2:
	.ascii	"\011\011\011\011\011\011\011C%d\012\000"
	.align	2
.LC3:
	.ascii	"Child process complete.\000"
	.align	2
.LC4:
	.ascii	"Parent process.  n=%d, child PID=%d\012\000"
	.align	2
.LC5:
	.ascii	"\011\011\011\011\011\011p%d\012\000"
	.align	2
.LC6:
	.ascii	"Parent process: child complete\000"
	.align	2
.LC7:
	.ascii	"[%c]:After fork: n = %d\012\000"
	.align	2
.LC8:
	.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
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #88
	strb	r3, [fp, #-25]
	ldrb	r3, [fp, #-25]	@ zero_extendqisi2
	ldr	r2, [fp, #-20]
	mov	r1, r3
	ldr	r0, .L9+4
	bl	printf
	mov	r0, #2
	bl	sleep
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L2
	mov	r3, #1
	str	r3, [fp, #-20]
	mov	r3, #67
	strb	r3, [fp, #-25]
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-20]
	ldr	r0, .L9+8
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L3
.L4:
	ldr	r1, [fp, #-16]
	ldr	r0, .L9+12
	bl	printf
	mov	r0, #1
	bl	sleep
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L3:
	ldr	r3, [fp, #-16]
	cmp	r3, #9
	ble	.L4
	mov	r0, #5
	bl	sleep
	ldr	r0, .L9+16
	bl	puts
	b	.L5
.L2:
	mov	r3, #80
	strb	r3, [fp, #-25]
	mov	r0, #2
	bl	sleep
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-20]
	ldr	r0, .L9+20
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L6
.L7:
	ldr	r1, [fp, #-16]
	ldr	r0, .L9+24
	bl	printf
	mov	r0, #1
	bl	sleep
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L6:
	ldr	r3, [fp, #-16]
	cmp	r3, #9
	ble	.L7
	sub	r3, fp, #24
	mov	r0, r3
	bl	wait
	ldr	r0, .L9+28
	bl	puts
.L5:
	ldrb	r3, [fp, #-25]	@ zero_extendqisi2
	ldr	r2, [fp, #-20]
	mov	r1, r3
	ldr	r0, .L9+32
	bl	printf
	mov	r0, #0
	bl	exit
.L10:
	.align	2
.L9:
	.word	.LC8
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
