	.file	"833002.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Before vfork"
.LC1:
	.string	"vfork"
.LC2:
	.string	"After vfork (parent)"
	.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, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	call	vfork@PLT
	endbr64
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 0
	jne	.L9
	call	noop
	mov	edi, 2
	call	_exit@PLT
.L9:
	cmp	DWORD PTR -28[rbp], 0
	jns	.L4
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -24[rbp], 1
	mov	DWORD PTR -20[rbp], eax
	lea	rax, .LC1[rip]
	mov	QWORD PTR -16[rbp], rax
	mov	rdx, QWORD PTR -16[rbp]
	mov	ecx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, ecx
	mov	edi, eax
	mov	eax, 0
	call	error@PLT
	nop
.L4:
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rax, -32[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 0
	call	waitpid@PLT
	cmp	DWORD PTR -28[rbp], eax
	jne	.L5
	mov	eax, DWORD PTR -32[rbp]
	and	eax, 127
	test	eax, eax
	jne	.L5
	mov	eax, DWORD PTR -32[rbp]
	sar	eax, 8
	movzx	eax, al
	cmp	eax, 2
	je	.L6
.L5:
	mov	edi, 1
	call	exit@PLT
.L6:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.globl	noop
	.type	noop, @function
noop:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	noop, .-noop
	.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	"833002.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Before vfork\000"
	.align	2
.LC1:
	.ascii	"vfork\000"
	.align	2
.LC2:
	.ascii	"After vfork (parent)\000"
	.align	2
.LC3:
	.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, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L10+4
	bl	puts
	ldr	r3, .L10+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	bl	vfork
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L9
	bl	noop
	mov	r0, #2
	bl	_exit
.L9:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bge	.L4
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, #1
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	ldr	r3, .L10+12
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-20]
	bl	error
	nop
.L4:
	ldr	r0, .L10+16
	bl	puts
	sub	r3, fp, #28
	mov	r2, #0
	mov	r1, r3
	mov	r0, #0
	bl	waitpid
	mov	r2, r0
	ldr	r3, [fp, #-24]
	cmp	r3, r2
	bne	.L5
	ldr	r3, [fp, #-28]
	and	r3, r3, #127
	cmp	r3, #0
	bne	.L5
	ldr	r3, [fp, #-28]
	asr	r3, r3, #8
	and	r3, r3, #255
	cmp	r3, #2
	beq	.L6
.L5:
	mov	r0, #1
	bl	exit
.L6:
	mov	r3, #0
	ldr	r2, .L10
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L8
	bl	__stack_chk_fail
.L8:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC3
	.word	.LC0
	.word	stdout
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.align	2
	.global	noop
	.syntax unified
	.arm
	.fpu softvfp
	.type	noop, %function
noop:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	noop, .-noop
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
