	.file	"318522.c"
	.intel_syntax noprefix
	.text
	.local	vector
	.comm	vector,128,32
	.data
	.align 16
	.type	mapvec, @object
	.size	mapvec, 28
mapvec:
	.string	""
	.string	""
	.string	""
	.string	""
	.string	"\b\b"
	.string	"\b"
	.string	"\b"
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.string	"\013\013"
	.string	""
	.string	""
	.string	"\013\007"
	.string	""
	.string	"\037"
	.string	""
	.align 4
	.type	firsttime, @object
	.size	firsttime, 4
firsttime:
	.long	1
	.text
	.globl	signal
	.type	signal, @function
signal:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -24
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	eax, DWORD PTR -36[rbp]
	lea	ebx, -1[rax]
	test	ebx, ebx
	js	.L2
	mov	eax, ebx
	cmp	eax, 15
	jbe	.L3
.L2:
	mov	rax, -1
	jmp	.L4
.L3:
	mov	eax, DWORD PTR firsttime[rip]
	test	eax, eax
	je	.L5
	mov	DWORD PTR firsttime[rip], 0
	lea	rdi, catchtrp[rip]
	mov	eax, 0
	call	_setsig@PLT
.L5:
	movsx	rax, ebx
	lea	rdx, 0[0+rax*8]
	lea	rax, vector[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	cmp	rax, QWORD PTR -48[rbp]
	je	.L6
	movsx	rax, ebx
	lea	rcx, 0[0+rax*8]
	lea	rdx, vector[rip]
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR [rcx+rdx], rax
	cmp	QWORD PTR -48[rbp], 1
	jne	.L7
	mov	ebx, -3
	jmp	.L8
.L7:
	cmp	QWORD PTR -48[rbp], 0
	jne	.L9
	mov	ebx, -2
	jmp	.L8
.L9:
	mov	eax, DWORD PTR -36[rbp]
	lea	ebx, 128[rax]
.L8:
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, eax
	mov	edi, ebx
	mov	eax, 0
	call	sigtrp@PLT
	cmp	eax, -1
	jne	.L6
	mov	rax, -1
	jmp	.L4
.L6:
	mov	rax, QWORD PTR -24[rbp]
.L4:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	signal, .-signal
	.type	catchtrp, @function
catchtrp:
.LFB1:
	.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
	cmp	DWORD PTR -4[rbp], 128
	jle	.L11
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, 144
	ja	.L11
	mov	eax, DWORD PTR -4[rbp]
	add	eax, -128
	mov	edi, eax
	mov	eax, 0
	call	procesig
	jmp	.L12
.L11:
	cmp	DWORD PTR -4[rbp], 0
	js	.L13
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, 27
	ja	.L13
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, mapvec[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	test	al, al
	je	.L13
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, mapvec[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movsx	eax, al
	mov	edi, eax
	mov	eax, 0
	call	procesig
	jmp	.L12
.L13:
	mov	eax, 0
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	catchtrp, .-catchtrp
	.type	procesig, @function
procesig:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -24
	mov	DWORD PTR -36[rbp], edi
	mov	eax, DWORD PTR -36[rbp]
	lea	ebx, -1[rax]
	movsx	rax, ebx
	lea	rdx, 0[0+rax*8]
	lea	rax, vector[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 1
	jne	.L15
	mov	eax, 1
	jmp	.L16
.L15:
	cmp	DWORD PTR -36[rbp], 4
	je	.L17
	cmp	DWORD PTR -36[rbp], 5
	je	.L17
	movsx	rax, ebx
	lea	rdx, 0[0+rax*8]
	lea	rax, vector[rip]
	mov	QWORD PTR [rdx+rax], 1
.L17:
	cmp	QWORD PTR -24[rbp], 0
	jne	.L18
	mov	eax, 0
	jmp	.L16
.L18:
	mov	eax, DWORD PTR -36[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	edi, eax
	mov	eax, 0
	call	rdx
	mov	eax, 1
.L16:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	procesig, .-procesig
	.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	"318522.c"
	.text
	.local	vector
	.comm	vector,64,4
	.data
	.align	2
	.type	mapvec, %object
	.size	mapvec, 28
mapvec:
	.ascii	"\000\000\000\000\010\010\000\010\000\010\000\000\000"
	.ascii	"\000\000\000\013\013\000\000\000\013\007\000\000\037"
	.ascii	"\000\000"
	.align	2
	.type	firsttime, %object
	.size	firsttime, 4
firsttime:
	.word	1
	.text
	.align	2
	.global	signal
	.syntax unified
	.arm
	.fpu softvfp
	.type	signal, %function
signal:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-24]
	sub	r4, r3, #1
	cmp	r4, #0
	blt	.L2
	mov	r3, r4
	cmp	r3, #15
	bls	.L3
.L2:
	mvn	r3, #0
	b	.L4
.L3:
	ldr	r3, .L10
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L5
	ldr	r3, .L10
	mov	r2, #0
	str	r2, [r3]
	ldr	r0, .L10+4
	bl	_setsig
.L5:
	ldr	r3, .L10+8
	ldr	r3, [r3, r4, lsl #2]
	str	r3, [fp, #-16]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	beq	.L6
	ldr	r2, .L10+8
	ldr	r3, [fp, #-28]
	str	r3, [r2, r4, lsl #2]
	ldr	r3, [fp, #-28]
	cmp	r3, #1
	bne	.L7
	mvn	r4, #2
	b	.L8
.L7:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L9
	mvn	r4, #1
	b	.L8
.L9:
	ldr	r3, [fp, #-24]
	add	r4, r3, #128
.L8:
	ldr	r1, [fp, #-24]
	mov	r0, r4
	bl	sigtrp
	mov	r3, r0
	cmn	r3, #1
	bne	.L6
	mvn	r3, #0
	b	.L4
.L6:
	ldr	r3, [fp, #-16]
.L4:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L11:
	.align	2
.L10:
	.word	firsttime
	.word	catchtrp
	.word	vector
	.size	signal, .-signal
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	catchtrp, %function
catchtrp:
	@ 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, [fp, #-8]
	cmp	r3, #128
	ble	.L13
	ldr	r3, [fp, #-8]
	cmp	r3, #144
	bhi	.L13
	ldr	r3, [fp, #-8]
	sub	r3, r3, #128
	mov	r0, r3
	bl	procesig
	mov	r3, r0
	b	.L14
.L13:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	blt	.L15
	ldr	r3, [fp, #-8]
	cmp	r3, #27
	bhi	.L15
	ldr	r2, .L16
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L15
	ldr	r2, .L16
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	procesig
	mov	r3, r0
	b	.L14
.L15:
	mov	r3, #0
.L14:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	mapvec
	.size	catchtrp, .-catchtrp
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	procesig, %function
procesig:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	sub	r4, r3, #1
	ldr	r3, .L23
	ldr	r3, [r3, r4, lsl #2]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bne	.L19
	mov	r3, #1
	b	.L20
.L19:
	ldr	r3, [fp, #-24]
	cmp	r3, #4
	beq	.L21
	ldr	r3, [fp, #-24]
	cmp	r3, #5
	beq	.L21
	ldr	r3, .L23
	mov	r2, #1
	str	r2, [r3, r4, lsl #2]
.L21:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L22
	mov	r3, #0
	b	.L20
.L22:
	ldr	r3, [fp, #-16]
	ldr	r0, [fp, #-24]
	blx	r3
	mov	r3, #1
.L20:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L24:
	.align	2
.L23:
	.word	vector
	.size	procesig, .-procesig
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
