	.file	"426872.c"
	.intel_syntax noprefix
	.text
	.globl	SigCount
	.bss
	.align 4
	.type	SigCount, @object
	.size	SigCount, 4
SigCount:
	.zero	4
	.section	.rodata
.LC0:
	.string	"Unable to mask SIGCHLD"
.LC1:
	.string	"Unable to open pipe "
.LC2:
	.string	"Timeout, killing child\n"
.LC3:
	.string	"Error in sigtimedwait"
.LC4:
	.string	"Error on waitpid"
.LC5:
	.string	"Parent - terminate OK\n"
	.align 8
.LC6:
	.string	"Child - Unable to set up handler\n"
	.align 8
.LC7:
	.string	"Child - Unable to create thread\n"
	.align 8
.LC8:
	.string	"Child - Unable to set up timer\n"
	.align 8
.LC9:
	.string	"Child - Unable to disable timer\n"
.LC10:
	.string	"Child - terminate OK\n"
	.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, 384
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -304[rbp]
	mov	rdi, rax
	call	sigemptyset@PLT
	lea	rax, -304[rbp]
	mov	esi, 17
	mov	rdi, rax
	call	sigaddset@PLT
	lea	rax, -304[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 0
	call	sigprocmask@PLT
	test	eax, eax
	jns	.L2
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 22
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L18
.L2:
	lea	rsi, sig_hand[rip]
	mov	edi, 17
	call	signal@PLT
	lea	rax, -312[rbp]
	mov	rdi, rax
	call	pipe@PLT
	cmp	eax, -1
	jne	.L4
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 20
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L18
.L4:
	call	fork@PLT
	mov	DWORD PTR -372[rbp], eax
	cmp	DWORD PTR -372[rbp], 0
	je	.L5
	mov	eax, DWORD PTR -308[rbp]
	mov	edi, eax
	call	close@PLT
	mov	QWORD PTR -352[rbp], 120
	mov	QWORD PTR -344[rbp], 0
	mov	eax, DWORD PTR -312[rbp]
	lea	rcx, -10[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	eax, DWORD PTR -312[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rdx, -352[rbp]
	lea	rax, -304[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	sigtimedwait@PLT
	test	eax, eax
	jns	.L6
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	jne	.L7
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 23
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	eax, DWORD PTR -372[rbp]
	mov	esi, 9
	mov	edi, eax
	call	kill@PLT
	mov	eax, 1
	jmp	.L18
.L7:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 21
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L18
.L6:
	lea	rcx, -360[rbp]
	mov	eax, DWORD PTR -372[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	waitpid@PLT
	test	eax, eax
	jns	.L9
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 16
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L18
.L9:
	mov	eax, DWORD PTR -360[rbp]
	and	eax, 127
	test	eax, eax
	jne	.L10
	mov	eax, DWORD PTR -360[rbp]
	sar	eax, 8
	movzx	eax, al
	test	eax, eax
	jne	.L10
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 22
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	fwrite@PLT
	mov	eax, 0
	jmp	.L18
.L10:
	mov	eax, 1
	jmp	.L18
.L5:
	mov	eax, DWORD PTR -312[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rax, Handle[rip]
	mov	QWORD PTR -176[rbp], rax
	mov	DWORD PTR -40[rbp], 0
	lea	rax, -176[rbp]
	add	rax, 8
	mov	rdi, rax
	call	sigemptyset@PLT
	lea	rax, -176[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 26
	call	sigaction@PLT
	cmp	eax, -1
	jne	.L11
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 33
	mov	esi, 1
	lea	rdi, .LC6[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L18
.L11:
	lea	rax, -368[rbp]
	mov	ecx, 0
	lea	rdx, DoSysCallTillSignalsDone[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	test	eax, eax
	je	.L13
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 32
	mov	esi, 1
	lea	rdi, .LC7[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L18
.L13:
	mov	QWORD PTR -352[rbp], 0
	mov	QWORD PTR -344[rbp], 25000
	mov	QWORD PTR -336[rbp], 0
	mov	QWORD PTR -328[rbp], 25000
	lea	rax, -352[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 1
	call	setitimer@PLT
	cmp	eax, -1
	jne	.L14
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 31
	mov	esi, 1
	lea	rdi, .LC8[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L18
.L14:
	mov	eax, DWORD PTR -308[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L15
.L16:
	lea	rax, DoToolAnalysis[rip]
	mov	QWORD PTR -360[rbp], rax
	mov	rdx, QWORD PTR -360[rbp]
	mov	eax, 0
	call	rdx
.L15:
	mov	eax, DWORD PTR SigCount[rip]
	cmp	eax, 9
	jbe	.L16
	mov	QWORD PTR -336[rbp], 0
	mov	QWORD PTR -328[rbp], 0
	lea	rax, -352[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 1
	call	setitimer@PLT
	cmp	eax, -1
	jne	.L17
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 32
	mov	esi, 1
	lea	rdi, .LC9[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L18
.L17:
	mov	rax, QWORD PTR -368[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 21
	mov	esi, 1
	lea	rdi, .LC10[rip]
	call	fwrite@PLT
	mov	eax, 0
.L18:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	sig_hand
	.type	sig_hand, @function
sig_hand:
.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
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	sig_hand, .-sig_hand
	.section	.rodata
.LC11:
	.string	"Signal Count: %u\n"
	.text
	.type	Handle, @function
Handle:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR SigCount[rip]
	add	eax, 1
	mov	DWORD PTR SigCount[rip], eax
	mov	eax, DWORD PTR SigCount[rip]
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	Handle, .-Handle
	.type	DoSysCallTillSignalsDone, @function
DoSysCallTillSignalsDone:
.LFB9:
	.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	QWORD PTR -8[rbp], rdi
	jmp	.L23
.L24:
	call	sched_yield@PLT
.L23:
	mov	eax, DWORD PTR SigCount[rip]
	cmp	eax, 9
	jbe	.L24
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	DoSysCallTillSignalsDone, .-DoSysCallTillSignalsDone
	.globl	DoToolAnalysis
	.type	DoToolAnalysis, @function
DoToolAnalysis:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	call	sched_yield@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	DoToolAnalysis, .-DoToolAnalysis
	.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	"426872.c"
	.text
	.global	SigCount
	.bss
	.align	2
	.type	SigCount, %object
	.size	SigCount, 4
SigCount:
	.space	4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Unable to mask SIGCHLD\000"
	.align	2
.LC1:
	.ascii	"Unable to open pipe \000"
	.align	2
.LC2:
	.ascii	"Timeout, killing child\012\000"
	.align	2
.LC3:
	.ascii	"Error in sigtimedwait\000"
	.align	2
.LC4:
	.ascii	"Error on waitpid\000"
	.align	2
.LC5:
	.ascii	"Parent - terminate OK\012\000"
	.align	2
.LC6:
	.ascii	"Child - Unable to set up handler\012\000"
	.align	2
.LC7:
	.ascii	"Child - Unable to create thread\012\000"
	.align	2
.LC8:
	.ascii	"Child - Unable to set up timer\012\000"
	.align	2
.LC9:
	.ascii	"Child - Unable to disable timer\012\000"
	.align	2
.LC10:
	.ascii	"Child - terminate OK\012\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 312
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #312
	ldr	r3, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #280
	mov	r0, r3
	bl	sigemptyset
	sub	r3, fp, #280
	mov	r1, #17
	mov	r0, r3
	bl	sigaddset
	sub	r3, fp, #280
	mov	r2, #0
	mov	r1, r3
	mov	r0, #0
	bl	sigprocmask
	mov	r3, r0
	cmp	r3, #0
	bge	.L2
	ldr	r3, .L20+4
	ldr	r3, [r3]
	mov	r2, #22
	mov	r1, #1
	ldr	r0, .L20+8
	bl	fwrite
	mov	r3, #1
	b	.L18
.L2:
	ldr	r1, .L20+12
	mov	r0, #17
	bl	signal
	sub	r3, fp, #288
	mov	r0, r3
	bl	pipe
	mov	r3, r0
	cmn	r3, #1
	bne	.L4
	ldr	r3, .L20+4
	ldr	r3, [r3]
	mov	r2, #20
	mov	r1, #1
	ldr	r0, .L20+16
	bl	fwrite
	mov	r3, #1
	b	.L18
.L4:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-308]
	ldr	r3, [fp, #-308]
	cmp	r3, #0
	beq	.L5
	ldr	r3, [fp, #-284]
	mov	r0, r3
	bl	close
	mov	r3, #120
	str	r3, [fp, #-304]
	mov	r3, #0
	str	r3, [fp, #-300]
	ldr	r3, [fp, #-288]
	sub	r1, fp, #12
	mov	r2, #1
	mov	r0, r3
	bl	read
	ldr	r3, [fp, #-288]
	mov	r0, r3
	bl	close
	sub	r2, fp, #304
	sub	r3, fp, #280
	mov	r1, #0
	mov	r0, r3
	bl	sigtimedwait
	mov	r3, r0
	cmp	r3, #0
	bge	.L6
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	bne	.L7
	ldr	r3, .L20+4
	ldr	r3, [r3]
	mov	r2, #23
	mov	r1, #1
	ldr	r0, .L20+20
	bl	fwrite
	mov	r1, #9
	ldr	r0, [fp, #-308]
	bl	kill
	mov	r3, #1
	b	.L18
.L7:
	ldr	r3, .L20+4
	ldr	r3, [r3]
	mov	r2, #21
	mov	r1, #1
	ldr	r0, .L20+24
	bl	fwrite
	mov	r3, #1
	b	.L18
.L6:
	sub	r3, fp, #312
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-308]
	bl	waitpid
	mov	r3, r0
	cmp	r3, #0
	bge	.L9
	ldr	r3, .L20+4
	ldr	r3, [r3]
	mov	r2, #16
	mov	r1, #1
	ldr	r0, .L20+28
	bl	fwrite
	mov	r3, #1
	b	.L18
.L9:
	ldr	r3, [fp, #-312]
	and	r3, r3, #127
	cmp	r3, #0
	bne	.L10
	ldr	r3, [fp, #-312]
	asr	r3, r3, #8
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L10
	ldr	r3, .L20+4
	ldr	r3, [r3]
	mov	r2, #22
	mov	r1, #1
	ldr	r0, .L20+32
	bl	fwrite
	mov	r3, #0
	b	.L18
.L10:
	mov	r3, #1
	b	.L18
.L5:
	ldr	r3, [fp, #-288]
	mov	r0, r3
	bl	close
	ldr	r3, .L20+36
	str	r3, [fp, #-152]
	mov	r3, #0
	str	r3, [fp, #-20]
	sub	r3, fp, #152
	add	r3, r3, #4
	mov	r0, r3
	bl	sigemptyset
	sub	r3, fp, #152
	mov	r2, #0
	mov	r1, r3
	mov	r0, #26
	bl	sigaction
	mov	r3, r0
	cmn	r3, #1
	bne	.L11
	ldr	r3, .L20+4
	ldr	r3, [r3]
	mov	r2, #33
	mov	r1, #1
	ldr	r0, .L20+40
	bl	fwrite
	mov	r3, #1
	b	.L18
.L11:
	sub	r0, fp, #316
	mov	r3, #0
	ldr	r2, .L20+44
	mov	r1, #0
	bl	pthread_create
	mov	r3, r0
	cmp	r3, #0
	beq	.L13
	ldr	r3, .L20+4
	ldr	r3, [r3]
	mov	r2, #32
	mov	r1, #1
	ldr	r0, .L20+48
	bl	fwrite
	mov	r3, #1
	b	.L18
.L13:
	mov	r3, #0
	str	r3, [fp, #-304]
	ldr	r3, .L20+52
	str	r3, [fp, #-300]
	mov	r3, #0
	str	r3, [fp, #-296]
	ldr	r3, .L20+52
	str	r3, [fp, #-292]
	sub	r3, fp, #304
	mov	r2, #0
	mov	r1, r3
	mov	r0, #1
	bl	setitimer
	mov	r3, r0
	cmn	r3, #1
	bne	.L14
	ldr	r3, .L20+4
	ldr	r3, [r3]
	mov	r2, #31
	mov	r1, #1
	ldr	r0, .L20+56
	bl	fwrite
	mov	r3, #1
	b	.L18
.L14:
	ldr	r3, [fp, #-284]
	mov	r0, r3
	bl	close
	b	.L15
.L16:
	ldr	r3, .L20+60
	str	r3, [fp, #-312]
	ldr	r3, [fp, #-312]
	blx	r3
.L15:
	ldr	r3, .L20+64
	ldr	r3, [r3]
	cmp	r3, #9
	bls	.L16
	mov	r3, #0
	str	r3, [fp, #-296]
	mov	r3, #0
	str	r3, [fp, #-292]
	sub	r3, fp, #304
	mov	r2, #0
	mov	r1, r3
	mov	r0, #1
	bl	setitimer
	mov	r3, r0
	cmn	r3, #1
	bne	.L17
	ldr	r3, .L20+4
	ldr	r3, [r3]
	mov	r2, #32
	mov	r1, #1
	ldr	r0, .L20+68
	bl	fwrite
	mov	r3, #1
	b	.L18
.L17:
	ldr	r3, [fp, #-316]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r3, .L20+4
	ldr	r3, [r3]
	mov	r2, #21
	mov	r1, #1
	ldr	r0, .L20+72
	bl	fwrite
	mov	r3, #0
.L18:
	ldr	r2, .L20
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L19
	bl	__stack_chk_fail
.L19:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC11
	.word	stderr
	.word	.LC0
	.word	sig_hand
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	Handle
	.word	.LC6
	.word	DoSysCallTillSignalsDone
	.word	.LC7
	.word	25000
	.word	.LC8
	.word	DoToolAnalysis
	.word	SigCount
	.word	.LC9
	.word	.LC10
	.size	main, .-main
	.align	2
	.global	sig_hand
	.syntax unified
	.arm
	.fpu softvfp
	.type	sig_hand, %function
sig_hand:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	sig_hand, .-sig_hand
	.section	.rodata
	.align	2
.LC12:
	.ascii	"Signal Count: %u\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	Handle, %function
Handle:
	@ 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	r3, .L24
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L24
	str	r3, [r2]
	ldr	r3, .L24
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L24+4
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	SigCount
	.word	.LC12
	.size	Handle, .-Handle
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	DoSysCallTillSignalsDone, %function
DoSysCallTillSignalsDone:
	@ 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]
	b	.L27
.L28:
	bl	sched_yield
.L27:
	ldr	r3, .L30
	ldr	r3, [r3]
	cmp	r3, #9
	bls	.L28
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L31:
	.align	2
.L30:
	.word	SigCount
	.size	DoSysCallTillSignalsDone, .-DoSysCallTillSignalsDone
	.align	2
	.global	DoToolAnalysis
	.syntax unified
	.arm
	.fpu softvfp
	.type	DoToolAnalysis, %function
DoToolAnalysis:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	sched_yield
	nop
	pop	{fp, pc}
	.size	DoToolAnalysis, .-DoToolAnalysis
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
