	.file	"61074018.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"CHILD: Got SIGCONT"
	.text
	.globl	sigcont
	.type	sigcont, @function
sigcont:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	sigcont, .-sigcont
	.section	.rodata
.LC1:
	.string	"pipe"
.LC2:
	.string	"fork"
.LC3:
	.string	"Child going to loop..."
.LC4:
	.string	""
.LC5:
	.string	"PARENT: sending SIGCONT\n"
	.align 8
.LC6:
	.string	"PARENT: child exited with status %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -20[rbp]
	mov	rdi, rax
	call	pipe@PLT
	test	eax, eax
	je	.L3
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	call	fork@PLT
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 0
	jns	.L4
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	edi, 2
	call	exit@PLT
.L4:
	cmp	DWORD PTR -28[rbp], 0
	jne	.L5
	lea	rsi, sigcont[rip]
	mov	edi, 18
	call	signal@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -16[rbp]
	mov	edx, 1
	lea	rsi, .LC4[rip]
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	close@PLT
.L6:
	mov	edi, 46
	call	putchar@PLT
	mov	edi, 500
	call	usleep@PLT
	jmp	.L6
.L5:
	mov	eax, DWORD PTR -20[rbp]
	lea	rcx, -9[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -28[rbp]
	mov	esi, 18
	mov	edi, eax
	call	kill@PLT
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	wait@PLT
	mov	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jne	.L7
	mov	eax, DWORD PTR -32[rbp]
	test	eax, eax
	jne	.L7
	mov	edi, 0
	call	exit@PLT
.L7:
	mov	eax, DWORD PTR -32[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE7:
	.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	"61074018.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"CHILD: Got SIGCONT\000"
	.text
	.align	2
	.global	sigcont
	.syntax unified
	.arm
	.fpu softvfp
	.type	sigcont, %function
sigcont:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L2
	bl	puts
	mov	r0, #0
	bl	exit
.L3:
	.align	2
.L2:
	.word	.LC0
	.size	sigcont, .-sigcont
	.section	.rodata
	.align	2
.LC1:
	.ascii	"pipe\000"
	.align	2
.LC2:
	.ascii	"fork\000"
	.align	2
.LC3:
	.ascii	"Child going to loop...\000"
	.align	2
.LC4:
	.ascii	"\000"
	.align	2
.LC5:
	.ascii	"PARENT: sending SIGCONT\012\000"
	.align	2
.LC6:
	.ascii	"PARENT: child exited with status %d\012\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #20
	mov	r0, r3
	bl	pipe
	mov	r3, r0
	cmp	r3, #0
	beq	.L5
	ldr	r0, .L11+4
	bl	perror
	mov	r0, #1
	bl	exit
.L5:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bge	.L6
	ldr	r0, .L11+8
	bl	perror
	mov	r0, #2
	bl	exit
.L6:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L7
	ldr	r1, .L11+12
	mov	r0, #18
	bl	signal
	ldr	r0, .L11+16
	bl	puts
	ldr	r3, [fp, #-16]
	mov	r2, #1
	ldr	r1, .L11+20
	mov	r0, r3
	bl	write
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-20]
	mov	r0, r3
	bl	close
.L8:
	mov	r0, #46
	bl	putchar
	mov	r0, #500
	bl	usleep
	b	.L8
.L7:
	ldr	r3, [fp, #-20]
	sub	r1, fp, #12
	mov	r2, #1
	mov	r0, r3
	bl	read
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-20]
	mov	r0, r3
	bl	close
	ldr	r0, .L11+24
	bl	puts
	mov	r1, #18
	ldr	r0, [fp, #-28]
	bl	kill
	sub	r3, fp, #32
	mov	r0, r3
	bl	wait
	str	r0, [fp, #-24]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	bne	.L9
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L9
	mov	r0, #0
	bl	exit
.L9:
	ldr	r3, [fp, #-32]
	mov	r1, r3
	ldr	r0, .L11+28
	bl	printf
	mov	r0, #1
	bl	exit
.L12:
	.align	2
.L11:
	.word	.LC7
	.word	.LC1
	.word	.LC2
	.word	sigcont
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
