	.file	"159515106.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Signal with number %i has arrived\n"
	.text
	.globl	handler
	.type	handler, @function
handler:
.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], edi
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	handler, .-handler
	.section	.rodata
	.align 8
.LC1:
	.string	"The program comes back from suspending"
.LC2:
	.string	"Parent process ended"
	.align 8
.LC3:
	.string	"Waits 3 seconds, then send a SIGUSR %i signal (it is not waited for by suspend) - so the suspend continues waiting\n"
	.align 8
.LC4:
	.string	"Waits 3 seconds, then send a SIGTERM %i signal (it is waited for by suspend)\n"
.LC5:
	.string	"Child process ended"
	.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, 304
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, handler[rip]
	mov	QWORD PTR -160[rbp], rax
	lea	rax, -160[rbp]
	add	rax, 8
	mov	rdi, rax
	call	sigemptyset@PLT
	mov	DWORD PTR -24[rbp], 0
	lea	rax, -160[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 15
	call	sigaction@PLT
	lea	rax, -160[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 10
	call	sigaction@PLT
	call	fork@PLT
	mov	DWORD PTR -292[rbp], eax
	cmp	DWORD PTR -292[rbp], 0
	jle	.L3
	lea	rax, -288[rbp]
	mov	rdi, rax
	call	sigfillset@PLT
	lea	rax, -288[rbp]
	mov	esi, 15
	mov	rdi, rax
	call	sigdelset@PLT
	lea	rax, -288[rbp]
	mov	rdi, rax
	call	sigsuspend@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rax, -296[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	wait@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	jmp	.L4
.L3:
	mov	esi, 10
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 3
	mov	eax, 0
	call	sleep@PLT
	mov	eax, 0
	call	getppid@PLT
	mov	esi, 10
	mov	edi, eax
	call	kill@PLT
	mov	esi, 15
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 3
	mov	eax, 0
	call	sleep@PLT
	mov	eax, 0
	call	getppid@PLT
	mov	esi, 15
	mov	edi, eax
	call	kill@PLT
	lea	rdi, .LC5[rip]
	call	puts@PLT
.L4:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.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	"159515106.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Signal with number %i has arrived\012\000"
	.text
	.align	2
	.global	handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	handler, %function
handler:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r1, [fp, #-8]
	ldr	r0, .L2
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	.LC0
	.size	handler, .-handler
	.section	.rodata
	.align	2
.LC1:
	.ascii	"The program comes back from suspending\000"
	.align	2
.LC2:
	.ascii	"Parent process ended\000"
	.align	2
.LC3:
	.ascii	"Waits 3 seconds, then send a SIGUSR %i signal (it i"
	.ascii	"s not waited for by suspend) - so the suspend conti"
	.ascii	"nues waiting\012\000"
	.align	2
.LC4:
	.ascii	"Waits 3 seconds, then send a SIGTERM %i signal (it "
	.ascii	"is waited for by suspend)\012\000"
	.align	2
.LC5:
	.ascii	"Child process ended\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 280
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #280
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L9+4
	str	r3, [fp, #-148]
	sub	r3, fp, #148
	add	r3, r3, #4
	mov	r0, r3
	bl	sigemptyset
	mov	r3, #0
	str	r3, [fp, #-16]
	sub	r3, fp, #148
	mov	r2, #0
	mov	r1, r3
	mov	r0, #15
	bl	sigaction
	sub	r3, fp, #148
	mov	r2, #0
	mov	r1, r3
	mov	r0, #10
	bl	sigaction
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-280]
	ldr	r3, [fp, #-280]
	cmp	r3, #0
	ble	.L5
	sub	r3, fp, #276
	mov	r0, r3
	bl	sigfillset
	sub	r3, fp, #276
	mov	r1, #15
	mov	r0, r3
	bl	sigdelset
	sub	r3, fp, #276
	mov	r0, r3
	bl	sigsuspend
	ldr	r0, .L9+8
	bl	puts
	sub	r3, fp, #284
	mov	r0, r3
	bl	wait
	ldr	r0, .L9+12
	bl	puts
	b	.L6
.L5:
	mov	r1, #10
	ldr	r0, .L9+16
	bl	printf
	mov	r0, #3
	bl	sleep
	bl	getppid
	mov	r3, r0
	mov	r1, #10
	mov	r0, r3
	bl	kill
	mov	r1, #15
	ldr	r0, .L9+20
	bl	printf
	mov	r0, #3
	bl	sleep
	bl	getppid
	mov	r3, r0
	mov	r1, #15
	mov	r0, r3
	bl	kill
	ldr	r0, .L9+24
	bl	puts
.L6:
	mov	r3, #0
	ldr	r2, .L9
	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}
.L10:
	.align	2
.L9:
	.word	.LC6
	.word	handler
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
