	.file	"326852.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"before: mypid is %d\n"
.LC1:
	.string	"fork"
	.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, 16
	mov	DWORD PTR -4[rbp], 0
	call	getpid@PLT
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	call	fork@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], -1
	jne	.L2
	lea	rdi, .LC1[rip]
	call	perror@PLT
	jmp	.L3
.L2:
	cmp	DWORD PTR -4[rbp], 0
	jne	.L4
	mov	edi, 2
	call	child_code
	jmp	.L3
.L4:
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	parent_code
.L3:
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC2:
	.string	"child %d here. will sleep for %d seconds\n"
.LC3:
	.string	"the_stack_data/326852.c"
.LC4:
	.string	"(int)u_delay == delay"
.LC5:
	.string	"child done. about to exit"
	.text
	.globl	child_code
	.type	child_code, @function
child_code:
.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	DWORD PTR -20[rbp], edi
	call	getpid@PLT
	mov	ecx, eax
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, eax
	mov	esi, ecx
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	cmp	DWORD PTR -20[rbp], eax
	je	.L7
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 36
	lea	rsi, .LC3[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L7:
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	sleep@PLT
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	edi, 10
	call	exit@PLT
	.cfi_endproc
.LFE7:
	.size	child_code, .-child_code
	.section	.rodata
	.align 8
.LC6:
	.string	"done waiting for %d. wait() returned: %d\n"
	.text
	.globl	parent_code
	.type	parent_code, @function
parent_code:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	edi, 0
	call	wait@PLT
	mov	DWORD PTR -4[rbp], eax
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	parent_code, .-parent_code
	.section	.rodata
	.align 8
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 11
__PRETTY_FUNCTION__.0:
	.string	"child_code"
	.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	"326852.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"before: mypid is %d\012\000"
	.align	2
.LC1:
	.ascii	"fork\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #0
	str	r3, [fp, #-8]
	bl	getpid
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L6
	bl	printf
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L2
	ldr	r0, .L6+4
	bl	perror
	b	.L3
.L2:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L4
	mov	r0, #2
	bl	child_code
	b	.L3
.L4:
	ldr	r0, [fp, #-8]
	bl	parent_code
.L3:
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC0
	.word	.LC1
	.size	main, .-main
	.section	.rodata
	.align	2
.LC2:
	.ascii	"child %d here. will sleep for %d seconds\012\000"
	.align	2
.LC3:
	.ascii	"the_stack_data/326852.c\000"
	.align	2
.LC4:
	.ascii	"(int)u_delay == delay\000"
	.align	2
.LC5:
	.ascii	"child done. about to exit\000"
	.text
	.align	2
	.global	child_code
	.syntax unified
	.arm
	.fpu softvfp
	.type	child_code, %function
child_code:
	@ 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]
	bl	getpid
	mov	r3, r0
	ldr	r2, [fp, #-16]
	mov	r1, r3
	ldr	r0, .L10
	bl	printf
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	beq	.L9
	ldr	r3, .L10+4
	mov	r2, #36
	ldr	r1, .L10+8
	ldr	r0, .L10+12
	bl	__assert_fail
.L9:
	ldr	r0, [fp, #-8]
	bl	sleep
	ldr	r0, .L10+16
	bl	puts
	mov	r0, #10
	bl	exit
.L11:
	.align	2
.L10:
	.word	.LC2
	.word	__PRETTY_FUNCTION__.6110
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	child_code, .-child_code
	.section	.rodata
	.align	2
.LC6:
	.ascii	"done waiting for %d. wait() returned: %d\012\000"
	.text
	.align	2
	.global	parent_code
	.syntax unified
	.arm
	.fpu softvfp
	.type	parent_code, %function
parent_code:
	@ 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	r0, #0
	bl	wait
	str	r0, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-16]
	ldr	r0, .L13
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC6
	.size	parent_code, .-parent_code
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.6110, %object
	.size	__PRETTY_FUNCTION__.6110, 11
__PRETTY_FUNCTION__.6110:
	.ascii	"child_code\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
