	.file	"206394489.c"
	.intel_syntax noprefix
	.text
	.globl	sigflags
	.bss
	.align 32
	.type	sigflags, @object
	.size	sigflags, 128
sigflags:
	.zero	128
	.globl	sigslot
	.section	.rodata
.LC0:
	.string	"SIGHUP"
.LC1:
	.string	"SIGINT"
.LC2:
	.string	"SIGQUIT"
.LC3:
	.string	"SIGILL"
.LC4:
	.string	"SIGTRAP"
.LC5:
	.string	"SIGABRT"
.LC6:
	.string	"SIGBUS"
.LC7:
	.string	"SIGFPE"
.LC8:
	.string	"SIGKILL"
.LC9:
	.string	"SIGUSR1"
.LC10:
	.string	"SIGSEGV"
.LC11:
	.string	"SIGUSR2"
.LC12:
	.string	"SIGPIPE"
.LC13:
	.string	"SIGALRM"
.LC14:
	.string	"SIGTERM"
.LC15:
	.string	"SIGSTKFL"
.LC16:
	.string	"SIGCHLD"
.LC17:
	.string	"SIGCONT"
.LC18:
	.string	"SIGSTOP"
.LC19:
	.string	"SIGTSTP"
.LC20:
	.string	"SIGTTIN"
.LC21:
	.string	"SIGTTOU"
.LC22:
	.string	"SIGURG"
.LC23:
	.string	"SIGXCPU"
.LC24:
	.string	"SIGXFSZ"
.LC25:
	.string	"SIGVTALR"
.LC26:
	.string	"SIGPROF"
.LC27:
	.string	"SIGWINCH"
.LC28:
	.string	"SIGIO"
.LC29:
	.string	"SIGPWR"
.LC30:
	.string	"SIGSYS"
.LC31:
	.string	"SIGRTMIN"
	.section	.data.rel.local,"aw"
	.align 32
	.type	sigslot, @object
	.size	sigslot, 512
sigslot:
	.quad	.LC0
	.byte	0
	.zero	7
	.quad	.LC1
	.byte	0
	.zero	7
	.quad	.LC2
	.byte	0
	.zero	7
	.quad	.LC3
	.byte	0
	.zero	7
	.quad	.LC4
	.byte	0
	.zero	7
	.quad	.LC5
	.byte	0
	.zero	7
	.quad	.LC6
	.byte	0
	.zero	7
	.quad	.LC7
	.byte	0
	.zero	7
	.quad	.LC8
	.byte	1
	.zero	7
	.quad	.LC9
	.byte	0
	.zero	7
	.quad	.LC10
	.byte	0
	.zero	7
	.quad	.LC11
	.byte	0
	.zero	7
	.quad	.LC12
	.byte	0
	.zero	7
	.quad	.LC13
	.byte	0
	.zero	7
	.quad	.LC14
	.byte	0
	.zero	7
	.quad	.LC15
	.byte	0
	.zero	7
	.quad	.LC16
	.byte	0
	.zero	7
	.quad	.LC17
	.byte	0
	.zero	7
	.quad	.LC18
	.byte	0
	.zero	7
	.quad	.LC19
	.byte	0
	.zero	7
	.quad	.LC20
	.byte	0
	.zero	7
	.quad	.LC21
	.byte	0
	.zero	7
	.quad	.LC22
	.byte	0
	.zero	7
	.quad	.LC23
	.byte	0
	.zero	7
	.quad	.LC24
	.byte	0
	.zero	7
	.quad	.LC25
	.byte	0
	.zero	7
	.quad	.LC26
	.byte	0
	.zero	7
	.quad	.LC27
	.byte	0
	.zero	7
	.quad	.LC28
	.byte	0
	.zero	7
	.quad	.LC29
	.byte	0
	.zero	7
	.quad	.LC30
	.byte	0
	.zero	7
	.quad	.LC31
	.byte	0
	.zero	7
	.text
	.globl	handle_signal
	.type	handle_signal, @function
handle_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	eax, DWORD PTR -4[rbp]
	sub	eax, 1
	cdqe
	lea	rdx, sigflags[rip]
	mov	BYTE PTR [rax+rdx], 1
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	handle_signal, .-handle_signal
	.section	.rodata
.LC32:
	.string	"=== LOOP ===\n"
.LC33:
	.string	"got %s\n"
.LC34:
	.string	"got EOF, exiting...\n"
.LC35:
	.string	"pselect"
	.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, 640
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -624[rbp]
	mov	rdi, rax
	call	sigfillset@PLT
	lea	rax, -496[rbp]
	mov	rdi, rax
	call	sigemptyset@PLT
	lea	rax, -624[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 0
	call	sigprocmask@PLT
	lea	rax, handle_signal[rip]
	mov	QWORD PTR -240[rbp], rax
	mov	rax, QWORD PTR -624[rbp]
	mov	rdx, QWORD PTR -616[rbp]
	mov	QWORD PTR -232[rbp], rax
	mov	QWORD PTR -224[rbp], rdx
	mov	rax, QWORD PTR -608[rbp]
	mov	rdx, QWORD PTR -600[rbp]
	mov	QWORD PTR -216[rbp], rax
	mov	QWORD PTR -208[rbp], rdx
	mov	rax, QWORD PTR -592[rbp]
	mov	rdx, QWORD PTR -584[rbp]
	mov	QWORD PTR -200[rbp], rax
	mov	QWORD PTR -192[rbp], rdx
	mov	rax, QWORD PTR -576[rbp]
	mov	rdx, QWORD PTR -568[rbp]
	mov	QWORD PTR -184[rbp], rax
	mov	QWORD PTR -176[rbp], rdx
	mov	rax, QWORD PTR -560[rbp]
	mov	rdx, QWORD PTR -552[rbp]
	mov	QWORD PTR -168[rbp], rax
	mov	QWORD PTR -160[rbp], rdx
	mov	rax, QWORD PTR -544[rbp]
	mov	rdx, QWORD PTR -536[rbp]
	mov	QWORD PTR -152[rbp], rax
	mov	QWORD PTR -144[rbp], rdx
	mov	rax, QWORD PTR -528[rbp]
	mov	rdx, QWORD PTR -520[rbp]
	mov	QWORD PTR -136[rbp], rax
	mov	QWORD PTR -128[rbp], rdx
	mov	rax, QWORD PTR -512[rbp]
	mov	rdx, QWORD PTR -504[rbp]
	mov	QWORD PTR -120[rbp], rax
	mov	QWORD PTR -112[rbp], rdx
	mov	DWORD PTR -640[rbp], 1
	jmp	.L3
.L4:
	lea	rcx, -240[rbp]
	mov	eax, DWORD PTR -640[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	sigaction@PLT
	add	DWORD PTR -640[rbp], 1
.L3:
	mov	eax, DWORD PTR -640[rbp]
	cmp	eax, 32
	jbe	.L4
.L15:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 13
	mov	esi, 1
	lea	rdi, .LC32[rip]
	call	fwrite@PLT
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, -368[rbp]
	mov	rdi, rdx
#APP
# 96 "the_stack_data/206394489.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -636[rbp], edx
	mov	DWORD PTR -632[rbp], eax
	mov	rax, QWORD PTR -368[rbp]
	or	rax, 1
	mov	QWORD PTR -368[rbp], rax
	lea	rdx, -496[rbp]
	lea	rax, -368[rbp]
	mov	r9, rdx
	mov	r8d, 0
	mov	ecx, 0
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 1
	call	pselect@PLT
	mov	DWORD PTR -628[rbp], eax
	cmp	DWORD PTR -628[rbp], -1
	jne	.L5
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 4
	jne	.L5
	mov	DWORD PTR -640[rbp], 0
	jmp	.L6
.L10:
	mov	eax, DWORD PTR -640[rbp]
	cdqe
	lea	rdx, sigflags[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	xor	eax, 1
	test	al, al
	jne	.L20
	mov	eax, DWORD PTR -640[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, sigslot[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC33[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR -640[rbp]
	cdqe
	lea	rdx, sigflags[rip]
	mov	BYTE PTR [rax+rdx], 0
	mov	eax, DWORD PTR -640[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, sigslot[rip+8]
	movzx	eax, BYTE PTR [rdx+rax]
	test	al, al
	jne	.L21
	jmp	.L8
.L20:
	nop
.L8:
	add	DWORD PTR -640[rbp], 1
.L6:
	mov	eax, DWORD PTR -640[rbp]
	cmp	eax, 31
	jbe	.L10
	jmp	.L11
.L5:
	cmp	DWORD PTR -628[rbp], -1
	je	.L22
	lea	rax, -80[rbp]
	mov	edx, 64
	mov	rsi, rax
	mov	edi, 0
	call	read@PLT
	mov	DWORD PTR -628[rbp], eax
	cmp	DWORD PTR -628[rbp], 0
	jne	.L14
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 20
	mov	esi, 1
	lea	rdi, .LC34[rip]
	call	fwrite@PLT
	jmp	.L9
.L14:
	mov	eax, DWORD PTR -628[rbp]
	movsx	rdx, eax
	lea	rax, -80[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	write@PLT
.L11:
	jmp	.L15
.L21:
	nop
.L9:
	mov	eax, 0
	jmp	.L17
.L22:
	nop
.L13:
	lea	rdi, .LC35[rip]
	call	perror@PLT
	mov	eax, 1
.L17:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	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	"206394489.c"
	.text
	.comm	sigflags,128,4
	.global	sigslot
	.section	.rodata
	.align	2
.LC0:
	.ascii	"SIGHUP\000"
	.align	2
.LC1:
	.ascii	"SIGINT\000"
	.align	2
.LC2:
	.ascii	"SIGQUIT\000"
	.align	2
.LC3:
	.ascii	"SIGILL\000"
	.align	2
.LC4:
	.ascii	"SIGTRAP\000"
	.align	2
.LC5:
	.ascii	"SIGABRT\000"
	.align	2
.LC6:
	.ascii	"SIGBUS\000"
	.align	2
.LC7:
	.ascii	"SIGFPE\000"
	.align	2
.LC8:
	.ascii	"SIGKILL\000"
	.align	2
.LC9:
	.ascii	"SIGUSR1\000"
	.align	2
.LC10:
	.ascii	"SIGSEGV\000"
	.align	2
.LC11:
	.ascii	"SIGUSR2\000"
	.align	2
.LC12:
	.ascii	"SIGPIPE\000"
	.align	2
.LC13:
	.ascii	"SIGALRM\000"
	.align	2
.LC14:
	.ascii	"SIGTERM\000"
	.align	2
.LC15:
	.ascii	"SIGSTKFL\000"
	.align	2
.LC16:
	.ascii	"SIGCHLD\000"
	.align	2
.LC17:
	.ascii	"SIGCONT\000"
	.align	2
.LC18:
	.ascii	"SIGSTOP\000"
	.align	2
.LC19:
	.ascii	"SIGTSTP\000"
	.align	2
.LC20:
	.ascii	"SIGTTIN\000"
	.align	2
.LC21:
	.ascii	"SIGTTOU\000"
	.align	2
.LC22:
	.ascii	"SIGURG\000"
	.align	2
.LC23:
	.ascii	"SIGXCPU\000"
	.align	2
.LC24:
	.ascii	"SIGXFSZ\000"
	.align	2
.LC25:
	.ascii	"SIGVTALR\000"
	.align	2
.LC26:
	.ascii	"SIGPROF\000"
	.align	2
.LC27:
	.ascii	"SIGWINCH\000"
	.align	2
.LC28:
	.ascii	"SIGIO\000"
	.align	2
.LC29:
	.ascii	"SIGPWR\000"
	.align	2
.LC30:
	.ascii	"SIGSYS\000"
	.align	2
.LC31:
	.ascii	"SIGRTMIN\000"
	.data
	.align	2
	.type	sigslot, %object
	.size	sigslot, 256
sigslot:
	.word	.LC0
	.byte	0
	.space	3
	.word	.LC1
	.byte	0
	.space	3
	.word	.LC2
	.byte	0
	.space	3
	.word	.LC3
	.byte	0
	.space	3
	.word	.LC4
	.byte	0
	.space	3
	.word	.LC5
	.byte	0
	.space	3
	.word	.LC6
	.byte	0
	.space	3
	.word	.LC7
	.byte	0
	.space	3
	.word	.LC8
	.byte	1
	.space	3
	.word	.LC9
	.byte	0
	.space	3
	.word	.LC10
	.byte	0
	.space	3
	.word	.LC11
	.byte	0
	.space	3
	.word	.LC12
	.byte	0
	.space	3
	.word	.LC13
	.byte	0
	.space	3
	.word	.LC14
	.byte	0
	.space	3
	.word	.LC15
	.byte	0
	.space	3
	.word	.LC16
	.byte	0
	.space	3
	.word	.LC17
	.byte	0
	.space	3
	.word	.LC18
	.byte	0
	.space	3
	.word	.LC19
	.byte	0
	.space	3
	.word	.LC20
	.byte	0
	.space	3
	.word	.LC21
	.byte	0
	.space	3
	.word	.LC22
	.byte	0
	.space	3
	.word	.LC23
	.byte	0
	.space	3
	.word	.LC24
	.byte	0
	.space	3
	.word	.LC25
	.byte	0
	.space	3
	.word	.LC26
	.byte	0
	.space	3
	.word	.LC27
	.byte	0
	.space	3
	.word	.LC28
	.byte	0
	.space	3
	.word	.LC29
	.byte	0
	.space	3
	.word	.LC30
	.byte	0
	.space	3
	.word	.LC31
	.byte	0
	.space	3
	.text
	.align	2
	.global	handle_signal
	.syntax unified
	.arm
	.fpu softvfp
	.type	handle_signal, %function
handle_signal:
	@ 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]
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	ldr	r2, .L2
	mov	r1, #1
	strb	r1, [r2, r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L3:
	.align	2
.L2:
	.word	sigflags
	.size	handle_signal, .-handle_signal
	.section	.rodata
	.align	2
.LC32:
	.ascii	"=== LOOP ===\012\000"
	.align	2
.LC33:
	.ascii	"got %s\012\000"
	.align	2
.LC34:
	.ascii	"got EOF, exiting...\012\000"
	.align	2
.LC35:
	.ascii	"pselect\000"
	.align	2
.LC36:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 608
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #616
	ldr	r3, .L27
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #596
	mov	r0, r3
	bl	sigfillset
	sub	r3, fp, #468
	mov	r0, r3
	bl	sigemptyset
	sub	r3, fp, #596
	mov	r2, #0
	mov	r1, r3
	mov	r0, #0
	bl	sigprocmask
	ldr	r3, .L27+4
	str	r3, [fp, #-212]
	sub	r3, fp, #208
	sub	r1, fp, #596
	mov	r2, #128
	mov	r0, r3
	bl	memcpy
	mov	r3, #1
	str	r3, [fp, #-612]
	b	.L5
.L6:
	sub	r3, fp, #212
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-612]
	bl	sigaction
	ldr	r3, [fp, #-612]
	add	r3, r3, #1
	str	r3, [fp, #-612]
.L5:
	ldr	r3, [fp, #-612]
	cmp	r3, #32
	bls	.L6
.L19:
	ldr	r3, .L27+8
	ldr	r3, [r3]
	mov	r2, #13
	mov	r1, #1
	ldr	r0, .L27+12
	bl	fwrite
	sub	r3, fp, #340
	str	r3, [fp, #-604]
	mov	r3, #0
	str	r3, [fp, #-608]
	b	.L7
.L8:
	ldr	r3, [fp, #-604]
	ldr	r2, [fp, #-608]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-608]
	add	r3, r3, #1
	str	r3, [fp, #-608]
.L7:
	ldr	r3, [fp, #-608]
	cmp	r3, #31
	bls	.L8
	ldr	r3, [fp, #-340]
	orr	r3, r3, #1
	str	r3, [fp, #-340]
	sub	r1, fp, #340
	sub	r3, fp, #468
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	mov	r0, #1
	bl	pselect
	str	r0, [fp, #-600]
	ldr	r3, [fp, #-600]
	cmn	r3, #1
	bne	.L9
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #4
	bne	.L9
	mov	r3, #0
	str	r3, [fp, #-612]
	b	.L10
.L14:
	ldr	r2, .L27+16
	ldr	r3, [fp, #-612]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L24
	ldr	r3, .L27+8
	ldr	r0, [r3]
	ldr	r2, .L27+20
	ldr	r3, [fp, #-612]
	ldr	r3, [r2, r3, lsl #3]
	mov	r2, r3
	ldr	r1, .L27+24
	bl	fprintf
	ldr	r2, .L27+16
	ldr	r3, [fp, #-612]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r2, .L27+20
	ldr	r3, [fp, #-612]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L25
	b	.L12
.L24:
	nop
.L12:
	ldr	r3, [fp, #-612]
	add	r3, r3, #1
	str	r3, [fp, #-612]
.L10:
	ldr	r3, [fp, #-612]
	cmp	r3, #31
	bls	.L14
	b	.L15
.L9:
	ldr	r3, [fp, #-600]
	cmn	r3, #1
	beq	.L26
	sub	r3, fp, #72
	mov	r2, #64
	mov	r1, r3
	mov	r0, #0
	bl	read
	str	r0, [fp, #-600]
	ldr	r3, [fp, #-600]
	cmp	r3, #0
	bne	.L18
	ldr	r3, .L27+8
	ldr	r3, [r3]
	mov	r2, #20
	mov	r1, #1
	ldr	r0, .L27+28
	bl	fwrite
	b	.L13
.L18:
	ldr	r2, [fp, #-600]
	sub	r3, fp, #72
	mov	r1, r3
	mov	r0, #1
	bl	write
.L15:
	b	.L19
.L25:
	nop
.L13:
	mov	r3, #0
	b	.L21
.L26:
	nop
.L17:
	ldr	r0, .L27+32
	bl	perror
	mov	r3, #1
.L21:
	ldr	r2, .L27
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L22
	bl	__stack_chk_fail
.L22:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC36
	.word	handle_signal
	.word	stderr
	.word	.LC32
	.word	sigflags
	.word	sigslot
	.word	.LC33
	.word	.LC34
	.word	.LC35
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
