	.file	"228654.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"fork"
.LC1:
	.string	"wait"
.LC2:
	.string	"child didn't exit gracefully"
.LC3:
	.string	"wrong exit status"
	.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 fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	call	fork@PLT
	cmp	eax, -1
	je	.L2
	test	eax, eax
	je	.L3
	jmp	.L10
.L2:
	lea	rsi, .LC0[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L3:
	mov	esi, 17
	mov	edi, 60
	mov	eax, 0
	call	syscall@PLT
	call	abort@PLT
.L10:
	lea	rax, -12[rbp]
	mov	rdi, rax
	call	wait@PLT
	test	eax, eax
	jns	.L5
	lea	rsi, .LC1[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L5:
	mov	eax, DWORD PTR -12[rbp]
	and	eax, 127
	test	eax, eax
	je	.L6
	lea	rsi, .LC2[rip]
	mov	edi, 1
	mov	eax, 0
	call	errx@PLT
.L6:
	mov	eax, DWORD PTR -12[rbp]
	sar	eax, 8
	movzx	eax, al
	cmp	eax, 17
	je	.L7
	lea	rsi, .LC3[rip]
	mov	edi, 1
	mov	eax, 0
	call	errx@PLT
.L7:
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.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	"228654.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"fork\000"
	.align	2
.LC1:
	.ascii	"wait\000"
	.align	2
.LC2:
	.ascii	"child didn't exit gracefully\000"
	.align	2
.LC3:
	.ascii	"wrong exit status\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 = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	fork
	mov	r3, r0
	cmn	r3, #1
	beq	.L2
	cmp	r3, #0
	beq	.L3
	b	.L10
.L2:
	ldr	r1, .L11+4
	mov	r0, #1
	bl	err
.L3:
	mov	r1, #17
	mov	r0, #1
	bl	syscall
	bl	abort
.L10:
	sub	r3, fp, #12
	mov	r0, r3
	bl	wait
	mov	r3, r0
	cmp	r3, #0
	bge	.L5
	ldr	r1, .L11+8
	mov	r0, #1
	bl	err
.L5:
	ldr	r3, [fp, #-12]
	and	r3, r3, #127
	cmp	r3, #0
	beq	.L6
	ldr	r1, .L11+12
	mov	r0, #1
	bl	errx
.L6:
	ldr	r3, [fp, #-12]
	asr	r3, r3, #8
	and	r3, r3, #255
	cmp	r3, #17
	beq	.L7
	ldr	r1, .L11+16
	mov	r0, #1
	bl	errx
.L7:
	mov	r3, #0
	ldr	r2, .L11
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.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
