	.file	"345749.c"
	.intel_syntax noprefix
	.text
	.local	globalvar
	.comm	globalvar,4,4
	.local	expect_signaled
	.comm	expect_signaled,4,4
	.type	marker, @function
marker:
.LFB6:
	.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
.LFE6:
	.size	marker, .-marker
	.type	child_function, @function
child_function:
.LFB7:
	.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
.LFE7:
	.size	child_function, .-child_function
	.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
	call	fork@PLT
	mov	DWORD PTR -16[rbp], eax
	cmp	DWORD PTR -16[rbp], -1
	jne	.L4
	mov	edi, 1
	call	exit@PLT
.L4:
	cmp	DWORD PTR -16[rbp], 0
	je	.L5
	lea	rcx, -20[rbp]
	mov	eax, DWORD PTR -16[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	waitpid@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], -1
	jne	.L6
	mov	edi, 2
	call	exit@PLT
.L6:
	mov	eax, DWORD PTR expect_signaled[rip]
	test	eax, eax
	je	.L7
	mov	eax, DWORD PTR -20[rbp]
	and	eax, 127
	add	eax, 1
	sar	al
	test	al, al
	jg	.L7
	mov	edi, 3
	call	exit@PLT
.L7:
	mov	eax, DWORD PTR expect_signaled[rip]
	test	eax, eax
	jne	.L8
	mov	eax, DWORD PTR -20[rbp]
	and	eax, 127
	test	eax, eax
	je	.L8
	mov	edi, 4
	call	exit@PLT
.L8:
	call	marker
	jmp	.L9
.L5:
	call	child_function
.L9:
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE8:
	.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	"345749.c"
	.text
	.local	globalvar
	.comm	globalvar,4,4
	.local	expect_signaled
	.comm	expect_signaled,4,4
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	marker, %function
marker:
	@ 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	marker, .-marker
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	child_function, %function
child_function:
	@ 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	child_function, .-child_function
	.section	.rodata
	.align	2
.LC0:
	.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
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmn	r3, #1
	bne	.L4
	mov	r0, #1
	bl	exit
.L4:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L5
	sub	r3, fp, #20
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	waitpid
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L6
	mov	r0, #2
	bl	exit
.L6:
	ldr	r3, .L11+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L7
	ldr	r3, [fp, #-20]
	and	r3, r3, #255
	and	r3, r3, #127
	and	r3, r3, #255
	add	r3, r3, #1
	and	r3, r3, #255
	lsl	r3, r3, #24
	asr	r3, r3, #24
	asr	r3, r3, #1
	lsl	r3, r3, #24
	asr	r3, r3, #24
	cmp	r3, #0
	bgt	.L7
	mov	r0, #3
	bl	exit
.L7:
	ldr	r3, .L11+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L8
	ldr	r3, [fp, #-20]
	and	r3, r3, #127
	cmp	r3, #0
	beq	.L8
	mov	r0, #4
	bl	exit
.L8:
	bl	marker
	b	.L9
.L5:
	bl	child_function
.L9:
	mov	r0, #0
	bl	exit
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	expect_signaled
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
