	.file	"104828084.c"
	.intel_syntax noprefix
	.text
	.globl	received_count
	.bss
	.align 4
	.type	received_count, @object
	.size	received_count, 4
received_count:
	.zero	4
	.globl	should_have_received
	.align 4
	.type	should_have_received, @object
	.size	should_have_received, 4
should_have_received:
	.zero	4
	.globl	catching
	.data
	.type	catching, @object
	.size	catching, 1
catching:
	.byte	1
	.globl	mode
	.bss
	.align 4
	.type	mode, @object
	.size	mode, 4
mode:
	.zero	4
	.text
	.globl	react_to_normal_signal
	.type	react_to_normal_signal, @function
react_to_normal_signal:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	eax, DWORD PTR received_count[rip]
	add	eax, 1
	mov	DWORD PTR received_count[rip], eax
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 24[rax]
	add	eax, 1
	mov	DWORD PTR should_have_received[rip], eax
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	react_to_normal_signal, .-react_to_normal_signal
	.globl	react_to_end_of_transmission
	.type	react_to_end_of_transmission, @function
react_to_end_of_transmission:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	BYTE PTR catching[rip], 0
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	react_to_end_of_transmission, .-react_to_end_of_transmission
	.section	.rodata
	.align 8
.LC0:
	.string	"Error: wrong number of arguments! There should be: catcher_PID number_of_signals_to_send mode!"
.LC1:
	.string	"KILL"
.LC2:
	.string	"SIGQUEUE"
.LC3:
	.string	"SIGRT"
	.align 8
.LC4:
	.string	"Error: wrong mode! It should be KILL, SIGQUEUE or SIGRT!"
	.align 8
.LC5:
	.string	"Warning: could not properly send signal SIGUSR1."
	.align 8
.LC6:
	.string	"Warning: could not properly send signal SIGRTMIN."
	.align 8
.LC7:
	.string	"Sender reporting: %d signals received, should have received %d signals.\n"
	.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, 208
	mov	DWORD PTR -196[rbp], edi
	mov	QWORD PTR -208[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -196[rbp], 4
	je	.L4
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	mov	rax, QWORD PTR -208[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -176[rbp], eax
	mov	rax, QWORD PTR -208[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -172[rbp], eax
	mov	rax, QWORD PTR -208[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L5
	mov	DWORD PTR mode[rip], -1
	jmp	.L6
.L5:
	mov	rax, QWORD PTR -208[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L7
	mov	DWORD PTR mode[rip], 0
	jmp	.L6
.L7:
	mov	rax, QWORD PTR -208[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L8
	mov	DWORD PTR mode[rip], 1
	jmp	.L6
.L8:
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L6:
	mov	DWORD PTR -180[rbp], 0
	mov	eax, DWORD PTR mode[rip]
	cmp	eax, -1
	jne	.L9
	jmp	.L10
.L12:
	mov	eax, DWORD PTR -176[rbp]
	mov	esi, 10
	mov	edi, eax
	call	kill@PLT
	test	eax, eax
	je	.L11
	lea	rdi, .LC5[rip]
	call	puts@PLT
.L11:
	add	DWORD PTR -180[rbp], 1
.L10:
	mov	eax, DWORD PTR -180[rbp]
	cmp	eax, DWORD PTR -172[rbp]
	jl	.L12
	mov	eax, DWORD PTR -176[rbp]
	mov	esi, 12
	mov	edi, eax
	call	kill@PLT
	jmp	.L13
.L9:
	mov	eax, DWORD PTR mode[rip]
	test	eax, eax
	jne	.L18
	mov	DWORD PTR -168[rbp], 0
	jmp	.L15
.L17:
	mov	rdx, QWORD PTR -168[rbp]
	mov	eax, DWORD PTR -176[rbp]
	mov	esi, 10
	mov	edi, eax
	call	sigqueue@PLT
	test	eax, eax
	je	.L16
	lea	rdi, .LC5[rip]
	call	puts@PLT
.L16:
	add	DWORD PTR -180[rbp], 1
.L15:
	mov	eax, DWORD PTR -180[rbp]
	cmp	eax, DWORD PTR -172[rbp]
	jl	.L17
	mov	rdx, QWORD PTR -168[rbp]
	mov	eax, DWORD PTR -176[rbp]
	mov	esi, 12
	mov	edi, eax
	call	sigqueue@PLT
	jmp	.L13
.L20:
	call	__libc_current_sigrtmin@PLT
	mov	edx, eax
	mov	eax, DWORD PTR -176[rbp]
	mov	esi, edx
	mov	edi, eax
	call	kill@PLT
	test	eax, eax
	je	.L19
	lea	rdi, .LC6[rip]
	call	puts@PLT
.L19:
	add	DWORD PTR -180[rbp], 1
.L18:
	mov	eax, DWORD PTR -180[rbp]
	cmp	eax, DWORD PTR -172[rbp]
	jl	.L20
	call	__libc_current_sigrtmax@PLT
	mov	edx, eax
	mov	eax, DWORD PTR -176[rbp]
	mov	esi, edx
	mov	edi, eax
	call	kill@PLT
.L13:
	mov	DWORD PTR -24[rbp], 4
	lea	rax, react_to_normal_signal[rip]
	mov	QWORD PTR -160[rbp], rax
	lea	rax, -160[rbp]
	add	rax, 8
	mov	rdi, rax
	call	sigfillset@PLT
	lea	rax, -160[rbp]
	add	rax, 8
	mov	esi, 10
	mov	rdi, rax
	call	sigdelset@PLT
	call	__libc_current_sigrtmin@PLT
	mov	edx, eax
	lea	rax, -160[rbp]
	add	rax, 8
	mov	esi, edx
	mov	rdi, rax
	call	sigdelset@PLT
	lea	rax, -160[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 10
	call	sigaction@PLT
	call	__libc_current_sigrtmin@PLT
	mov	ecx, eax
	lea	rax, -160[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, ecx
	call	sigaction@PLT
	lea	rax, react_to_end_of_transmission[rip]
	mov	QWORD PTR -160[rbp], rax
	lea	rax, -160[rbp]
	add	rax, 8
	mov	rdi, rax
	call	sigfillset@PLT
	lea	rax, -160[rbp]
	add	rax, 8
	mov	esi, 12
	mov	rdi, rax
	call	sigdelset@PLT
	call	__libc_current_sigrtmax@PLT
	mov	edx, eax
	lea	rax, -160[rbp]
	add	rax, 8
	mov	esi, edx
	mov	rdi, rax
	call	sigdelset@PLT
	lea	rax, -160[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 12
	call	sigaction@PLT
	call	__libc_current_sigrtmax@PLT
	mov	ecx, eax
	lea	rax, -160[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, ecx
	call	sigaction@PLT
	nop
.L21:
	movzx	eax, BYTE PTR catching[rip]
	test	al, al
	jne	.L21
	mov	eax, DWORD PTR received_count[rip]
	mov	edx, DWORD PTR -180[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.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	"104828084.c"
	.text
	.global	received_count
	.bss
	.align	2
	.type	received_count, %object
	.size	received_count, 4
received_count:
	.space	4
	.global	should_have_received
	.align	2
	.type	should_have_received, %object
	.size	should_have_received, 4
should_have_received:
	.space	4
	.global	catching
	.data
	.type	catching, %object
	.size	catching, 1
catching:
	.byte	1
	.comm	mode,4,4
	.text
	.align	2
	.global	react_to_normal_signal
	.syntax unified
	.arm
	.fpu softvfp
	.type	react_to_normal_signal, %function
react_to_normal_signal:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, .L2
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L2
	str	r3, [r2]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #20]
	add	r3, r3, #1
	ldr	r2, .L2+4
	str	r3, [r2]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L3:
	.align	2
.L2:
	.word	received_count
	.word	should_have_received
	.size	react_to_normal_signal, .-react_to_normal_signal
	.align	2
	.global	react_to_end_of_transmission
	.syntax unified
	.arm
	.fpu softvfp
	.type	react_to_end_of_transmission, %function
react_to_end_of_transmission:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, .L5
	mov	r2, #0
	strb	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L6:
	.align	2
.L5:
	.word	catching
	.size	react_to_end_of_transmission, .-react_to_end_of_transmission
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Error: wrong number of arguments! There should be: "
	.ascii	"catcher_PID number_of_signals_to_send mode!\000"
	.align	2
.LC1:
	.ascii	"KILL\000"
	.align	2
.LC2:
	.ascii	"SIGQUEUE\000"
	.align	2
.LC3:
	.ascii	"SIGRT\000"
	.align	2
.LC4:
	.ascii	"Error: wrong mode! It should be KILL, SIGQUEUE or S"
	.ascii	"IGRT!\000"
	.align	2
.LC5:
	.ascii	"Warning: could not properly send signal SIGUSR1.\000"
	.align	2
.LC6:
	.ascii	"Warning: could not properly send signal SIGRTMIN.\000"
	.align	2
.LC7:
	.ascii	"Sender reporting: %d signals received, should have "
	.ascii	"received %d signals.\012\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 168
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #168
	str	r0, [fp, #-168]
	str	r1, [fp, #-172]
	ldr	r3, .L28
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-168]
	cmp	r3, #4
	beq	.L8
	ldr	r0, .L28+4
	bl	perror
	mov	r0, #1
	bl	exit
.L8:
	ldr	r3, [fp, #-172]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-156]
	ldr	r3, [fp, #-172]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-152]
	ldr	r3, [fp, #-172]
	add	r3, r3, #12
	ldr	r3, [r3]
	ldr	r1, .L28+8
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L9
	ldr	r3, .L28+12
	mvn	r2, #0
	str	r2, [r3]
	b	.L10
.L9:
	ldr	r3, [fp, #-172]
	add	r3, r3, #12
	ldr	r3, [r3]
	ldr	r1, .L28+16
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L11
	ldr	r3, .L28+12
	mov	r2, #0
	str	r2, [r3]
	b	.L10
.L11:
	ldr	r3, [fp, #-172]
	add	r3, r3, #12
	ldr	r3, [r3]
	ldr	r1, .L28+20
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L12
	ldr	r3, .L28+12
	mov	r2, #1
	str	r2, [r3]
	b	.L10
.L12:
	ldr	r0, .L28+24
	bl	perror
	mov	r0, #1
	bl	exit
.L10:
	mov	r3, #0
	str	r3, [fp, #-160]
	ldr	r3, .L28+12
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L13
	b	.L14
.L16:
	mov	r1, #10
	ldr	r0, [fp, #-156]
	bl	kill
	mov	r3, r0
	cmp	r3, #0
	beq	.L15
	ldr	r0, .L28+28
	bl	puts
.L15:
	ldr	r3, [fp, #-160]
	add	r3, r3, #1
	str	r3, [fp, #-160]
.L14:
	ldr	r2, [fp, #-160]
	ldr	r3, [fp, #-152]
	cmp	r2, r3
	blt	.L16
	mov	r1, #12
	ldr	r0, [fp, #-156]
	bl	kill
	b	.L17
.L13:
	ldr	r3, .L28+12
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L22
	mov	r3, #0
	str	r3, [fp, #-164]
	b	.L19
.L21:
	ldr	r2, [fp, #-164]
	mov	r1, #10
	ldr	r0, [fp, #-156]
	bl	sigqueue
	mov	r3, r0
	cmp	r3, #0
	beq	.L20
	ldr	r0, .L28+28
	bl	puts
.L20:
	ldr	r3, [fp, #-160]
	add	r3, r3, #1
	str	r3, [fp, #-160]
.L19:
	ldr	r2, [fp, #-160]
	ldr	r3, [fp, #-152]
	cmp	r2, r3
	blt	.L21
	ldr	r2, [fp, #-164]
	mov	r1, #12
	ldr	r0, [fp, #-156]
	bl	sigqueue
	b	.L17
.L24:
	bl	__libc_current_sigrtmin
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-156]
	bl	kill
	mov	r3, r0
	cmp	r3, #0
	beq	.L23
	ldr	r0, .L28+32
	bl	puts
.L23:
	ldr	r3, [fp, #-160]
	add	r3, r3, #1
	str	r3, [fp, #-160]
.L22:
	ldr	r2, [fp, #-160]
	ldr	r3, [fp, #-152]
	cmp	r2, r3
	blt	.L24
	bl	__libc_current_sigrtmax
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-156]
	bl	kill
.L17:
	mov	r3, #4
	str	r3, [fp, #-16]
	ldr	r3, .L28+36
	str	r3, [fp, #-148]
	sub	r3, fp, #148
	add	r3, r3, #4
	mov	r0, r3
	bl	sigfillset
	sub	r3, fp, #148
	add	r3, r3, #4
	mov	r1, #10
	mov	r0, r3
	bl	sigdelset
	bl	__libc_current_sigrtmin
	mov	r2, r0
	sub	r3, fp, #148
	add	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	sigdelset
	sub	r3, fp, #148
	mov	r2, #0
	mov	r1, r3
	mov	r0, #10
	bl	sigaction
	bl	__libc_current_sigrtmin
	sub	r3, fp, #148
	mov	r2, #0
	mov	r1, r3
	bl	sigaction
	ldr	r3, .L28+40
	str	r3, [fp, #-148]
	sub	r3, fp, #148
	add	r3, r3, #4
	mov	r0, r3
	bl	sigfillset
	sub	r3, fp, #148
	add	r3, r3, #4
	mov	r1, #12
	mov	r0, r3
	bl	sigdelset
	bl	__libc_current_sigrtmax
	mov	r2, r0
	sub	r3, fp, #148
	add	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	sigdelset
	sub	r3, fp, #148
	mov	r2, #0
	mov	r1, r3
	mov	r0, #12
	bl	sigaction
	bl	__libc_current_sigrtmax
	sub	r3, fp, #148
	mov	r2, #0
	mov	r1, r3
	bl	sigaction
	nop
.L25:
	ldr	r3, .L28+44
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L25
	ldr	r3, .L28+48
	ldr	r3, [r3]
	ldr	r2, [fp, #-160]
	mov	r1, r3
	ldr	r0, .L28+52
	bl	printf
	mov	r3, #0
	ldr	r2, .L28
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L27
	bl	__stack_chk_fail
.L27:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L29:
	.align	2
.L28:
	.word	.LC8
	.word	.LC0
	.word	.LC1
	.word	mode
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	react_to_normal_signal
	.word	react_to_end_of_transmission
	.word	catching
	.word	received_count
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
