	.file	"107952436.c"
	.intel_syntax noprefix
	.text
	.local	sigcounts
	.comm	sigcounts,264,32
	.local	sigfifo
	.comm	sigfifo,264,32
	.local	fifo_depth
	.comm	fifo_depth,4,4
	.local	suspender_mask
	.comm	suspender_mask,128,32
	.local	suspender_tid
	.comm	suspender_tid,8,8
	.section	.rodata
	.align 8
.LC0:
	.string	"Unable to suspend for signals, errno %d, return value %d\n"
	.align 8
.LC1:
	.string	"Sigsuspend woke up by signal %d\n"
	.text
	.type	sigsuspender, @function
sigsuspender:
.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, 176
	mov	QWORD PTR -168[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -144[rbp]
	mov	rdi, rax
	call	sigfillset@PLT
	lea	rax, -144[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 2
	call	sigprocmask@PLT
	lea	rdi, suspender_mask[rip]
	call	sigfillset@PLT
	mov	esi, 2
	lea	rdi, suspender_mask[rip]
	call	sigdelset@PLT
	mov	esi, 1
	lea	rdi, suspender_mask[rip]
	call	sigdelset@PLT
	mov	esi, 3
	lea	rdi, suspender_mask[rip]
	call	sigdelset@PLT
	mov	esi, 23
	lea	rdi, suspender_mask[rip]
	call	sigdelset@PLT
	mov	esi, 29
	lea	rdi, suspender_mask[rip]
	call	sigdelset@PLT
	mov	esi, 12
	lea	rdi, suspender_mask[rip]
	call	sigdelset@PLT
	jmp	.L2
.L7:
	mov	eax, DWORD PTR sigcounts[rip+48]
	mov	DWORD PTR -152[rbp], eax
	lea	rdi, suspender_mask[rip]
	call	sigsuspend@PLT
	mov	DWORD PTR -148[rbp], eax
	cmp	DWORD PTR -148[rbp], 0
	je	.L3
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 4
	je	.L4
.L3:
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, DWORD PTR -148[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	mov	DWORD PTR -156[rbp], 0
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -156[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, sigfifo[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	DWORD PTR -156[rbp], 1
.L5:
	mov	eax, DWORD PTR fifo_depth[rip]
	cmp	DWORD PTR -156[rbp], eax
	jl	.L6
	mov	DWORD PTR fifo_depth[rip], 0
.L2:
	mov	eax, DWORD PTR sigcounts[rip+8]
	test	eax, eax
	je	.L7
	mov	rax, QWORD PTR -168[rbp]
	mov	rdi, rax
	call	pthread_exit@PLT
	.cfi_endproc
.LFE6:
	.size	sigsuspender, .-sigsuspender
	.section	.rodata
	.align 8
.LC2:
	.string	"  -> Suspender thread signal handler caught signal %d\n"
	.align 8
.LC3:
	.string	"  >>> FAIL: sigsuspender signal handler running with incorrect mask.\n"
	.align 8
.LC4:
	.string	"  -> Main thread signal handler caught signal %d\n"
	.text
	.type	sighandler, @function
sighandler:
.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	DWORD PTR -292[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -292[rbp], 0
	js	.L10
	cmp	DWORD PTR -292[rbp], 65
	jg	.L10
	mov	eax, DWORD PTR -292[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, sigcounts[rip]
	mov	eax, DWORD PTR [rdx+rax]
	lea	ecx, 1[rax]
	mov	eax, DWORD PTR -292[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, sigcounts[rip]
	mov	DWORD PTR [rdx+rax], ecx
.L10:
	call	pthread_self@PLT
	mov	QWORD PTR -280[rbp], rax
	mov	rax, QWORD PTR suspender_tid[rip]
	cmp	QWORD PTR -280[rbp], rax
	jne	.L11
	mov	eax, DWORD PTR fifo_depth[rip]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, sigfifo[rip]
	mov	eax, DWORD PTR -292[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR fifo_depth[rip]
	add	eax, 1
	mov	DWORD PTR fifo_depth[rip], eax
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -292[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	lea	rax, -272[rbp]
	mov	rdx, rax
	mov	esi, 0
	mov	edi, 2
	call	sigprocmask@PLT
	mov	rax, QWORD PTR suspender_mask[rip]
	mov	rdx, QWORD PTR suspender_mask[rip+8]
	mov	QWORD PTR -144[rbp], rax
	mov	QWORD PTR -136[rbp], rdx
	mov	rax, QWORD PTR suspender_mask[rip+16]
	mov	rdx, QWORD PTR suspender_mask[rip+24]
	mov	QWORD PTR -128[rbp], rax
	mov	QWORD PTR -120[rbp], rdx
	mov	rax, QWORD PTR suspender_mask[rip+32]
	mov	rdx, QWORD PTR suspender_mask[rip+40]
	mov	QWORD PTR -112[rbp], rax
	mov	QWORD PTR -104[rbp], rdx
	mov	rax, QWORD PTR suspender_mask[rip+48]
	mov	rdx, QWORD PTR suspender_mask[rip+56]
	mov	QWORD PTR -96[rbp], rax
	mov	QWORD PTR -88[rbp], rdx
	mov	rax, QWORD PTR suspender_mask[rip+64]
	mov	rdx, QWORD PTR suspender_mask[rip+72]
	mov	QWORD PTR -80[rbp], rax
	mov	QWORD PTR -72[rbp], rdx
	mov	rax, QWORD PTR suspender_mask[rip+80]
	mov	rdx, QWORD PTR suspender_mask[rip+88]
	mov	QWORD PTR -64[rbp], rax
	mov	QWORD PTR -56[rbp], rdx
	mov	rax, QWORD PTR suspender_mask[rip+96]
	mov	rdx, QWORD PTR suspender_mask[rip+104]
	mov	QWORD PTR -48[rbp], rax
	mov	QWORD PTR -40[rbp], rdx
	mov	rax, QWORD PTR suspender_mask[rip+112]
	mov	rdx, QWORD PTR suspender_mask[rip+120]
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -24[rbp], rdx
	mov	edx, DWORD PTR -292[rbp]
	lea	rax, -144[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	sigaddset@PLT
	lea	rcx, -144[rbp]
	lea	rax, -272[rbp]
	mov	edx, 128
	mov	rsi, rcx
	mov	rdi, rax
	call	memcmp@PLT
	test	eax, eax
	je	.L14
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 69
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	jmp	.L14
.L11:
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -292[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L14:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	sighandler, .-sighandler
	.section	.rodata
	.align 8
.LC5:
	.string	"Unable to send thread signal, errno %d.\n"
	.text
	.type	send_thread_signal, @function
send_thread_signal:
.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	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	pthread_kill@PLT
	test	eax, eax
	je	.L17
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L17:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	send_thread_signal, .-send_thread_signal
	.section	.rodata
	.align 8
.LC6:
	.string	"Unable to send process signal, errno %d.\n"
	.text
	.type	send_process_signal, @function
send_process_signal:
.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	DWORD PTR -4[rbp], edi
	call	getpid@PLT
	mov	edx, eax
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	mov	edi, edx
	call	kill@PLT
	test	eax, eax
	je	.L20
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L20:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	send_process_signal, .-send_process_signal
	.section	.rodata
	.align 8
.LC7:
	.string	"Unable to initialize thread attributes.\n"
	.align 8
.LC8:
	.string	"Unable to create thread, errno %d.\n"
	.align 8
.LC9:
	.string	"FAIL: sigsuspend wakes up for ignored signal SIGIO.\n"
	.align 8
.LC10:
	.string	"FAIL: sigsuspend doesn't wake up for SIGURG.\n"
	.align 8
.LC11:
	.string	"FAIL: sigsuspend doesn't wake up for SIGUSR2.\n"
	.align 8
.LC12:
	.string	"FAIL: signal hander called for SIGUSR1.\n"
	.align 8
.LC13:
	.string	"FAIL: SIGPIPE did not terminate process.\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 512
	mov	DWORD PTR -500[rbp], edi
	mov	QWORD PTR -512[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edx, 260
	mov	esi, 0
	lea	rdi, sigcounts[rip]
	call	memset@PLT
	lea	rax, -160[rbp]
	add	rax, 8
	mov	rdi, rax
	call	sigemptyset@PLT
	lea	rax, -160[rbp]
	add	rax, 8
	mov	esi, 29
	mov	rdi, rax
	call	sigaddset@PLT
	mov	QWORD PTR -160[rbp], 1
	mov	DWORD PTR -24[rbp], 0
	lea	rax, -160[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 29
	call	sigaction@PLT
	lea	rax, -160[rbp]
	add	rax, 8
	mov	rdi, rax
	call	sigemptyset@PLT
	lea	rax, -160[rbp]
	add	rax, 8
	mov	esi, 23
	mov	rdi, rax
	call	sigaddset@PLT
	lea	rax, sighandler[rip]
	mov	QWORD PTR -160[rbp], rax
	mov	DWORD PTR -24[rbp], 268435456
	lea	rax, -160[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 23
	call	sigaction@PLT
	lea	rax, -160[rbp]
	add	rax, 8
	mov	rdi, rax
	call	sigemptyset@PLT
	lea	rax, -160[rbp]
	add	rax, 8
	mov	esi, 24
	mov	rdi, rax
	call	sigaddset@PLT
	lea	rax, -160[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 24
	call	sigaction@PLT
	lea	rax, -416[rbp]
	mov	rdx, rax
	mov	esi, 0
	mov	edi, 2
	call	sigprocmask@PLT
	mov	rax, QWORD PTR -416[rbp]
	mov	rdx, QWORD PTR -408[rbp]
	mov	QWORD PTR -288[rbp], rax
	mov	QWORD PTR -280[rbp], rdx
	mov	rax, QWORD PTR -400[rbp]
	mov	rdx, QWORD PTR -392[rbp]
	mov	QWORD PTR -272[rbp], rax
	mov	QWORD PTR -264[rbp], rdx
	mov	rax, QWORD PTR -384[rbp]
	mov	rdx, QWORD PTR -376[rbp]
	mov	QWORD PTR -256[rbp], rax
	mov	QWORD PTR -248[rbp], rdx
	mov	rax, QWORD PTR -368[rbp]
	mov	rdx, QWORD PTR -360[rbp]
	mov	QWORD PTR -240[rbp], rax
	mov	QWORD PTR -232[rbp], rdx
	mov	rax, QWORD PTR -352[rbp]
	mov	rdx, QWORD PTR -344[rbp]
	mov	QWORD PTR -224[rbp], rax
	mov	QWORD PTR -216[rbp], rdx
	mov	rax, QWORD PTR -336[rbp]
	mov	rdx, QWORD PTR -328[rbp]
	mov	QWORD PTR -208[rbp], rax
	mov	QWORD PTR -200[rbp], rdx
	mov	rax, QWORD PTR -320[rbp]
	mov	rdx, QWORD PTR -312[rbp]
	mov	QWORD PTR -192[rbp], rax
	mov	QWORD PTR -184[rbp], rdx
	mov	rax, QWORD PTR -304[rbp]
	mov	rdx, QWORD PTR -296[rbp]
	mov	QWORD PTR -176[rbp], rax
	mov	QWORD PTR -168[rbp], rdx
	lea	rax, -288[rbp]
	mov	esi, 10
	mov	rdi, rax
	call	sigaddset@PLT
	lea	rax, -288[rbp]
	mov	esi, 12
	mov	rdi, rax
	call	sigaddset@PLT
	lea	rax, -288[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 2
	call	sigprocmask@PLT
	lea	rax, -160[rbp]
	add	rax, 8
	mov	rdi, rax
	call	sigemptyset@PLT
	lea	rax, -160[rbp]
	add	rax, 8
	mov	esi, 10
	mov	rdi, rax
	call	sigaddset@PLT
	lea	rax, -160[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 10
	call	sigaction@PLT
	lea	rax, -160[rbp]
	add	rax, 8
	mov	rdi, rax
	call	sigemptyset@PLT
	lea	rax, -160[rbp]
	add	rax, 8
	mov	esi, 12
	mov	rdi, rax
	call	sigaddset@PLT
	lea	rax, -160[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 12
	call	sigaction@PLT
	lea	rax, -480[rbp]
	mov	rdi, rax
	call	pthread_attr_init@PLT
	test	eax, eax
	jne	.L22
	lea	rax, -480[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_attr_setdetachstate@PLT
	test	eax, eax
	je	.L23
.L22:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 40
	mov	esi, 1
	lea	rdi, .LC7[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L23:
	lea	rax, -480[rbp]
	mov	ecx, 0
	lea	rdx, sigsuspender[rip]
	mov	rsi, rax
	lea	rdi, suspender_tid[rip]
	call	pthread_create@PLT
	test	eax, eax
	je	.L24
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L24:
	mov	rax, QWORD PTR suspender_tid[rip]
	mov	esi, 29
	mov	rdi, rax
	call	send_thread_signal
	mov	edi, 1
	call	sleep@PLT
	mov	edi, 29
	call	send_process_signal
	mov	edi, 1
	call	sleep@PLT
	mov	eax, DWORD PTR sigcounts[rip+116]
	test	eax, eax
	je	.L25
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 52
	mov	esi, 1
	lea	rdi, .LC9[rip]
	call	fwrite@PLT
.L25:
	mov	rax, QWORD PTR suspender_tid[rip]
	mov	esi, 23
	mov	rdi, rax
	call	send_thread_signal
	mov	edi, 1
	call	sleep@PLT
	mov	edi, 23
	call	send_process_signal
	mov	edi, 1
	call	sleep@PLT
	mov	eax, DWORD PTR sigcounts[rip+92]
	cmp	eax, 2
	je	.L26
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 45
	mov	esi, 1
	lea	rdi, .LC10[rip]
	call	fwrite@PLT
.L26:
	mov	rax, QWORD PTR suspender_tid[rip]
	mov	esi, 12
	mov	rdi, rax
	call	send_thread_signal
	mov	edi, 1
	call	sleep@PLT
	mov	edi, 12
	call	send_process_signal
	mov	edi, 1
	call	sleep@PLT
	mov	eax, DWORD PTR sigcounts[rip+48]
	cmp	eax, 2
	je	.L27
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 46
	mov	esi, 1
	lea	rdi, .LC11[rip]
	call	fwrite@PLT
.L27:
	mov	rax, QWORD PTR suspender_tid[rip]
	mov	esi, 10
	mov	rdi, rax
	call	send_thread_signal
	mov	edi, 1
	call	sleep@PLT
	mov	edi, 10
	call	send_process_signal
	mov	edi, 1
	call	sleep@PLT
	mov	eax, DWORD PTR sigcounts[rip+40]
	test	eax, eax
	je	.L28
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 40
	mov	esi, 1
	lea	rdi, .LC12[rip]
	call	fwrite@PLT
.L28:
	mov	edi, 13
	call	send_process_signal
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 41
	mov	esi, 1
	lea	rdi, .LC13[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR suspender_tid[rip]
	lea	rdx, -488[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_join@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L30
	call	__stack_chk_fail@PLT
.L30:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.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	"107952436.c"
	.text
	.local	sigcounts
	.comm	sigcounts,264,4
	.local	sigfifo
	.comm	sigfifo,264,4
	.local	fifo_depth
	.comm	fifo_depth,4,4
	.local	suspender_mask
	.comm	suspender_mask,128,4
	.local	suspender_tid
	.comm	suspender_tid,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Unable to suspend for signals, errno %d, return val"
	.ascii	"ue %d\012\000"
	.align	2
.LC1:
	.ascii	"Sigsuspend woke up by signal %d\012\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sigsuspender, %function
sigsuspender:
	@ args = 0, pretend = 0, frame = 152
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #156
	str	r0, [fp, #-160]
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #144
	mov	r0, r3
	bl	sigfillset
	sub	r3, fp, #144
	mov	r2, #0
	mov	r1, r3
	mov	r0, #2
	bl	sigprocmask
	ldr	r0, .L9+4
	bl	sigfillset
	mov	r1, #2
	ldr	r0, .L9+4
	bl	sigdelset
	mov	r1, #1
	ldr	r0, .L9+4
	bl	sigdelset
	mov	r1, #3
	ldr	r0, .L9+4
	bl	sigdelset
	mov	r1, #23
	ldr	r0, .L9+4
	bl	sigdelset
	mov	r1, #29
	ldr	r0, .L9+4
	bl	sigdelset
	mov	r1, #12
	ldr	r0, .L9+4
	bl	sigdelset
	b	.L2
.L7:
	ldr	r3, .L9+8
	ldr	r3, [r3, #48]
	str	r3, [fp, #-152]
	ldr	r0, .L9+4
	bl	sigsuspend
	str	r0, [fp, #-148]
	ldr	r3, [fp, #-148]
	cmp	r3, #0
	beq	.L3
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #4
	beq	.L4
.L3:
	ldr	r3, .L9+12
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-148]
	ldr	r1, .L9+16
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L4:
	mov	r3, #0
	str	r3, [fp, #-156]
	b	.L5
.L6:
	ldr	r3, .L9+12
	ldr	r0, [r3]
	ldr	r2, .L9+20
	ldr	r3, [fp, #-156]
	ldr	r3, [r2, r3, lsl #2]
	mov	r2, r3
	ldr	r1, .L9+24
	bl	fprintf
	ldr	r3, [fp, #-156]
	add	r3, r3, #1
	str	r3, [fp, #-156]
.L5:
	ldr	r3, .L9+28
	ldr	r3, [r3]
	ldr	r2, [fp, #-156]
	cmp	r2, r3
	blt	.L6
	ldr	r3, .L9+28
	mov	r2, #0
	str	r2, [r3]
.L2:
	ldr	r3, .L9+8
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L7
	ldr	r0, [fp, #-160]
	bl	pthread_exit
.L10:
	.align	2
.L9:
	.word	.LC2
	.word	suspender_mask
	.word	sigcounts
	.word	stderr
	.word	.LC0
	.word	sigfifo
	.word	.LC1
	.word	fifo_depth
	.size	sigsuspender, .-sigsuspender
	.section	.rodata
	.align	2
.LC3:
	.ascii	"  -> Suspender thread signal handler caught signal "
	.ascii	"%d\012\000"
	.align	2
.LC4:
	.ascii	"  >>> FAIL: sigsuspender signal handler running wit"
	.ascii	"h incorrect mask.\012\000"
	.align	2
.LC5:
	.ascii	"  -> Main thread signal handler caught signal %d\012"
	.ascii	"\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sighandler, %function
sighandler:
	@ args = 0, pretend = 0, frame = 272
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #272
	str	r0, [fp, #-272]
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-272]
	cmp	r3, #0
	blt	.L12
	ldr	r3, [fp, #-272]
	cmp	r3, #65
	bgt	.L12
	ldr	r2, .L17+4
	ldr	r3, [fp, #-272]
	ldr	r3, [r2, r3, lsl #2]
	add	r2, r3, #1
	ldr	r1, .L17+4
	ldr	r3, [fp, #-272]
	str	r2, [r1, r3, lsl #2]
.L12:
	bl	pthread_self
	str	r0, [fp, #-268]
	ldr	r3, .L17+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-268]
	cmp	r2, r3
	bne	.L13
	ldr	r3, .L17+12
	ldr	r3, [r3]
	ldr	r1, .L17+16
	ldr	r2, [fp, #-272]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, .L17+12
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L17+12
	str	r3, [r2]
	ldr	r3, .L17+20
	ldr	r3, [r3]
	ldr	r2, [fp, #-272]
	ldr	r1, .L17+24
	mov	r0, r3
	bl	fprintf
	sub	r3, fp, #264
	mov	r2, r3
	mov	r1, #0
	mov	r0, #2
	bl	sigprocmask
	ldr	r2, .L17+28
	sub	r3, fp, #136
	mov	r1, r2
	mov	r2, #128
	mov	r0, r3
	bl	memcpy
	sub	r3, fp, #136
	ldr	r1, [fp, #-272]
	mov	r0, r3
	bl	sigaddset
	sub	r1, fp, #136
	sub	r3, fp, #264
	mov	r2, #128
	mov	r0, r3
	bl	memcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L16
	ldr	r3, .L17+20
	ldr	r3, [r3]
	mov	r2, #69
	mov	r1, #1
	ldr	r0, .L17+32
	bl	fwrite
	b	.L16
.L13:
	ldr	r3, .L17+20
	ldr	r3, [r3]
	ldr	r2, [fp, #-272]
	ldr	r1, .L17+36
	mov	r0, r3
	bl	fprintf
.L16:
	nop
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC6
	.word	sigcounts
	.word	suspender_tid
	.word	fifo_depth
	.word	sigfifo
	.word	stderr
	.word	.LC3
	.word	suspender_mask
	.word	.LC4
	.word	.LC5
	.size	sighandler, .-sighandler
	.section	.rodata
	.align	2
.LC7:
	.ascii	"Unable to send thread signal, errno %d.\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	send_thread_signal, %function
send_thread_signal:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #12
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	pthread_kill
	mov	r3, r0
	cmp	r3, #0
	beq	.L21
	ldr	r3, .L22
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L22+4
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L21:
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L23:
	.align	2
.L22:
	.word	stderr
	.word	.LC7
	.size	send_thread_signal, .-send_thread_signal
	.section	.rodata
	.align	2
.LC8:
	.ascii	"Unable to send process signal, errno %d.\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	send_process_signal, %function
send_process_signal:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #12
	str	r0, [fp, #-16]
	bl	getpid
	mov	r3, r0
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	kill
	mov	r3, r0
	cmp	r3, #0
	beq	.L26
	ldr	r3, .L27
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L27+4
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L26:
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L28:
	.align	2
.L27:
	.word	stderr
	.word	.LC8
	.size	send_process_signal, .-send_process_signal
	.section	.rodata
	.align	2
.LC9:
	.ascii	"Unable to initialize thread attributes.\012\000"
	.align	2
.LC10:
	.ascii	"Unable to create thread, errno %d.\012\000"
	.align	2
.LC11:
	.ascii	"FAIL: sigsuspend wakes up for ignored signal SIGIO."
	.ascii	"\012\000"
	.align	2
.LC12:
	.ascii	"FAIL: sigsuspend doesn't wake up for SIGURG.\012\000"
	.align	2
.LC13:
	.ascii	"FAIL: sigsuspend doesn't wake up for SIGUSR2.\012\000"
	.align	2
.LC14:
	.ascii	"FAIL: signal hander called for SIGUSR1.\012\000"
	.align	2
.LC15:
	.ascii	"FAIL: SIGPIPE did not terminate process.\012\000"
	.align	2
.LC16:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 448
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #452
	str	r0, [fp, #-456]
	str	r1, [fp, #-460]
	ldr	r3, .L39
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r2, #260
	mov	r1, #0
	ldr	r0, .L39+4
	bl	memset
	sub	r3, fp, #156
	add	r3, r3, #4
	mov	r0, r3
	bl	sigemptyset
	sub	r3, fp, #156
	add	r3, r3, #4
	mov	r1, #29
	mov	r0, r3
	bl	sigaddset
	mov	r3, #1
	str	r3, [fp, #-156]
	mov	r3, #0
	str	r3, [fp, #-24]
	sub	r3, fp, #156
	mov	r2, #0
	mov	r1, r3
	mov	r0, #29
	bl	sigaction
	sub	r3, fp, #156
	add	r3, r3, #4
	mov	r0, r3
	bl	sigemptyset
	sub	r3, fp, #156
	add	r3, r3, #4
	mov	r1, #23
	mov	r0, r3
	bl	sigaddset
	ldr	r3, .L39+8
	str	r3, [fp, #-156]
	mov	r3, #268435456
	str	r3, [fp, #-24]
	sub	r3, fp, #156
	mov	r2, #0
	mov	r1, r3
	mov	r0, #23
	bl	sigaction
	sub	r3, fp, #156
	add	r3, r3, #4
	mov	r0, r3
	bl	sigemptyset
	sub	r3, fp, #156
	add	r3, r3, #4
	mov	r1, #24
	mov	r0, r3
	bl	sigaddset
	sub	r3, fp, #156
	mov	r2, #0
	mov	r1, r3
	mov	r0, #24
	bl	sigaction
	sub	r3, fp, #412
	mov	r2, r3
	mov	r1, #0
	mov	r0, #2
	bl	sigprocmask
	sub	r3, fp, #284
	sub	r1, fp, #412
	mov	r2, #128
	mov	r0, r3
	bl	memcpy
	sub	r3, fp, #284
	mov	r1, #10
	mov	r0, r3
	bl	sigaddset
	sub	r3, fp, #284
	mov	r1, #12
	mov	r0, r3
	bl	sigaddset
	sub	r3, fp, #284
	mov	r2, #0
	mov	r1, r3
	mov	r0, #2
	bl	sigprocmask
	sub	r3, fp, #156
	add	r3, r3, #4
	mov	r0, r3
	bl	sigemptyset
	sub	r3, fp, #156
	add	r3, r3, #4
	mov	r1, #10
	mov	r0, r3
	bl	sigaddset
	sub	r3, fp, #156
	mov	r2, #0
	mov	r1, r3
	mov	r0, #10
	bl	sigaction
	sub	r3, fp, #156
	add	r3, r3, #4
	mov	r0, r3
	bl	sigemptyset
	sub	r3, fp, #156
	add	r3, r3, #4
	mov	r1, #12
	mov	r0, r3
	bl	sigaddset
	sub	r3, fp, #156
	mov	r2, #0
	mov	r1, r3
	mov	r0, #12
	bl	sigaction
	sub	r3, fp, #448
	mov	r0, r3
	bl	pthread_attr_init
	mov	r3, r0
	cmp	r3, #0
	bne	.L30
	sub	r3, fp, #448
	mov	r1, #0
	mov	r0, r3
	bl	pthread_attr_setdetachstate
	mov	r3, r0
	cmp	r3, #0
	beq	.L31
.L30:
	ldr	r3, .L39+12
	ldr	r3, [r3]
	mov	r2, #40
	mov	r1, #1
	ldr	r0, .L39+16
	bl	fwrite
	mov	r0, #1
	bl	exit
.L31:
	sub	r1, fp, #448
	mov	r3, #0
	ldr	r2, .L39+20
	ldr	r0, .L39+24
	bl	pthread_create
	mov	r3, r0
	cmp	r3, #0
	beq	.L32
	ldr	r3, .L39+12
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L39+28
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L32:
	ldr	r3, .L39+24
	ldr	r3, [r3]
	mov	r1, #29
	mov	r0, r3
	bl	send_thread_signal
	mov	r0, #1
	bl	sleep
	mov	r0, #29
	bl	send_process_signal
	mov	r0, #1
	bl	sleep
	ldr	r3, .L39+4
	ldr	r3, [r3, #116]
	cmp	r3, #0
	beq	.L33
	ldr	r3, .L39+12
	ldr	r3, [r3]
	mov	r2, #52
	mov	r1, #1
	ldr	r0, .L39+32
	bl	fwrite
.L33:
	ldr	r3, .L39+24
	ldr	r3, [r3]
	mov	r1, #23
	mov	r0, r3
	bl	send_thread_signal
	mov	r0, #1
	bl	sleep
	mov	r0, #23
	bl	send_process_signal
	mov	r0, #1
	bl	sleep
	ldr	r3, .L39+4
	ldr	r3, [r3, #92]
	cmp	r3, #2
	beq	.L34
	ldr	r3, .L39+12
	ldr	r3, [r3]
	mov	r2, #45
	mov	r1, #1
	ldr	r0, .L39+36
	bl	fwrite
.L34:
	ldr	r3, .L39+24
	ldr	r3, [r3]
	mov	r1, #12
	mov	r0, r3
	bl	send_thread_signal
	mov	r0, #1
	bl	sleep
	mov	r0, #12
	bl	send_process_signal
	mov	r0, #1
	bl	sleep
	ldr	r3, .L39+4
	ldr	r3, [r3, #48]
	cmp	r3, #2
	beq	.L35
	ldr	r3, .L39+12
	ldr	r3, [r3]
	mov	r2, #46
	mov	r1, #1
	ldr	r0, .L39+40
	bl	fwrite
.L35:
	ldr	r3, .L39+24
	ldr	r3, [r3]
	mov	r1, #10
	mov	r0, r3
	bl	send_thread_signal
	mov	r0, #1
	bl	sleep
	mov	r0, #10
	bl	send_process_signal
	mov	r0, #1
	bl	sleep
	ldr	r3, .L39+4
	ldr	r3, [r3, #40]
	cmp	r3, #0
	beq	.L36
	ldr	r3, .L39+12
	ldr	r3, [r3]
	mov	r2, #40
	mov	r1, #1
	ldr	r0, .L39+44
	bl	fwrite
.L36:
	mov	r0, #13
	bl	send_process_signal
	ldr	r3, .L39+12
	ldr	r3, [r3]
	mov	r2, #41
	mov	r1, #1
	ldr	r0, .L39+48
	bl	fwrite
	ldr	r3, .L39+24
	ldr	r3, [r3]
	sub	r2, fp, #452
	mov	r1, r2
	mov	r0, r3
	bl	pthread_join
	mov	r3, #0
	ldr	r2, .L39
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L38
	bl	__stack_chk_fail
.L38:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L40:
	.align	2
.L39:
	.word	.LC16
	.word	sigcounts
	.word	sighandler
	.word	stderr
	.word	.LC9
	.word	sigsuspender
	.word	suspender_tid
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
