	.file	"194645.c"
	.intel_syntax noprefix
	.text
	.globl	com_fl
	.bss
	.type	com_fl, @object
	.size	com_fl, 1
com_fl:
	.zero	1
	.globl	del_fl
	.type	del_fl, @object
	.size	del_fl, 1
del_fl:
	.zero	1
	.globl	sq_fl
	.type	sq_fl, @object
	.size	sq_fl, 1
sq_fl:
	.zero	1
	.globl	output
	.align 32
	.type	output, @object
	.size	output, 1024
output:
	.zero	1024
	.globl	input
	.align 32
	.type	input, @object
	.size	input, 1024
input:
	.zero	1024
	.globl	vector
	.align 32
	.type	vector, @object
	.size	vector, 256
vector:
	.zero	256
	.globl	invec
	.align 32
	.type	invec, @object
	.size	invec, 256
invec:
	.zero	256
	.globl	outvec
	.align 32
	.type	outvec, @object
	.size	outvec, 256
outvec:
	.zero	256
	.globl	in_index
	.align 2
	.type	in_index, @object
	.size	in_index, 2
in_index:
	.zero	2
	.globl	out_index
	.align 2
	.type	out_index, @object
	.size	out_index, 2
out_index:
	.zero	2
	.section	.rodata
	.align 8
.LC0:
	.string	"Usage: tr [-cds] [string1 [string2]].\n"
	.text
	.globl	main
	.type	main, @function
main:
.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	DWORD PTR -20[rbp], 1
	cmp	DWORD PTR -36[rbp], 1
	jle	.L2
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	jne	.L2
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rbx, 1[rax]
	jmp	.L3
.L9:
	movzx	eax, BYTE PTR [rbx]
	movzx	eax, al
	cmp	eax, 115
	je	.L4
	cmp	eax, 115
	jg	.L5
	cmp	eax, 99
	je	.L6
	cmp	eax, 100
	je	.L7
	jmp	.L5
.L6:
	mov	BYTE PTR com_fl[rip], 1
	jmp	.L8
.L7:
	mov	BYTE PTR del_fl[rip], 1
	jmp	.L8
.L4:
	mov	BYTE PTR sq_fl[rip], 1
	jmp	.L8
.L5:
	mov	edx, 38
	lea	rsi, .LC0[rip]
	mov	edi, 2
	mov	eax, 0
	call	write@PLT
	mov	edi, 1
	call	exit@PLT
.L8:
	add	rbx, 1
.L3:
	movzx	eax, BYTE PTR [rbx]
	test	al, al
	jne	.L9
	add	DWORD PTR -20[rbp], 1
.L2:
	mov	WORD PTR -22[rbp], 0
	jmp	.L10
.L11:
	movsx	eax, WORD PTR -22[rbp]
	movzx	edx, WORD PTR -22[rbp]
	mov	ecx, edx
	cdqe
	lea	rdx, vector[rip]
	mov	BYTE PTR [rax+rdx], cl
	movsx	eax, WORD PTR -22[rbp]
	movsx	rdx, eax
	lea	rcx, outvec[rip]
	mov	BYTE PTR [rdx+rcx], 0
	movsx	ecx, WORD PTR -22[rbp]
	cdqe
	lea	rdx, outvec[rip]
	movzx	edx, BYTE PTR [rax+rdx]
	movsx	rax, ecx
	lea	rcx, invec[rip]
	mov	BYTE PTR [rax+rcx], dl
	movzx	eax, WORD PTR -22[rbp]
	add	eax, 1
	mov	WORD PTR -22[rbp], ax
.L10:
	cmp	WORD PTR -22[rbp], 255
	jle	.L11
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L12
	mov	eax, DWORD PTR -20[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -20[rbp], edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, input[rip]
	mov	rdi, rax
	mov	eax, 0
	call	expand
	movzx	eax, BYTE PTR com_fl[rip]
	test	al, al
	je	.L13
	lea	rdi, input[rip]
	mov	eax, 0
	call	complement
.L13:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L14
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, output[rip]
	mov	rdi, rax
	mov	eax, 0
	call	expand
.L14:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L15
	lea	rsi, output[rip]
	lea	rdi, input[rip]
	mov	eax, 0
	call	map
.L15:
	lea	rbx, input[rip]
	jmp	.L16
.L17:
	movzx	eax, BYTE PTR [rbx]
	movzx	eax, al
	cdqe
	lea	rdx, invec[rip]
	mov	BYTE PTR [rax+rdx], 1
	add	rbx, 1
.L16:
	movzx	eax, BYTE PTR [rbx]
	test	al, al
	jne	.L17
	lea	rbx, output[rip]
	jmp	.L18
.L19:
	movzx	eax, BYTE PTR [rbx]
	movzx	eax, al
	cdqe
	lea	rdx, outvec[rip]
	mov	BYTE PTR [rax+rdx], 1
	add	rbx, 1
.L18:
	movzx	eax, BYTE PTR [rbx]
	test	al, al
	jne	.L19
.L12:
	mov	eax, 0
	call	convert
	mov	eax, 0
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
.LC1:
	.string	"Bad write\n"
	.text
	.globl	convert
	.type	convert, @function
convert:
.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	WORD PTR -8[rbp], 0
	mov	WORD PTR -6[rbp], -1
.L29:
	movzx	eax, WORD PTR in_index[rip]
	cmp	WORD PTR -8[rbp], ax
	jne	.L22
	mov	edx, 1024
	lea	rsi, input[rip]
	mov	edi, 0
	mov	eax, 0
	call	read@PLT
	mov	WORD PTR -8[rbp], ax
	cmp	WORD PTR -8[rbp], 0
	jg	.L23
	movzx	eax, WORD PTR out_index[rip]
	cwde
	mov	edx, eax
	lea	rsi, output[rip]
	mov	edi, 1
	mov	eax, 0
	call	write@PLT
	movzx	edx, WORD PTR out_index[rip]
	movsx	edx, dx
	cmp	eax, edx
	je	.L24
	mov	edx, 10
	lea	rsi, .LC1[rip]
	mov	edi, 2
	mov	eax, 0
	call	write@PLT
.L24:
	mov	edi, 0
	call	exit@PLT
.L23:
	mov	WORD PTR in_index[rip], 0
.L22:
	movzx	eax, WORD PTR in_index[rip]
	mov	edx, eax
	add	edx, 1
	mov	WORD PTR in_index[rip], dx
	cwde
	cdqe
	lea	rdx, input[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movzx	eax, al
	mov	WORD PTR -4[rbp], ax
	movsx	eax, WORD PTR -4[rbp]
	cdqe
	lea	rdx, vector[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movzx	eax, al
	mov	WORD PTR -2[rbp], ax
	movzx	eax, BYTE PTR del_fl[rip]
	test	al, al
	je	.L25
	movsx	eax, WORD PTR -4[rbp]
	cdqe
	lea	rdx, invec[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	test	al, al
	jne	.L30
.L25:
	movzx	eax, BYTE PTR sq_fl[rip]
	test	al, al
	je	.L27
	movzx	eax, WORD PTR -6[rbp]
	cmp	ax, WORD PTR -2[rbp]
	jne	.L27
	movsx	eax, WORD PTR -2[rbp]
	cdqe
	lea	rdx, outvec[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	test	al, al
	jne	.L31
.L27:
	movzx	eax, WORD PTR -2[rbp]
	mov	WORD PTR -6[rbp], ax
	movzx	eax, WORD PTR out_index[rip]
	mov	edx, eax
	add	edx, 1
	mov	WORD PTR out_index[rip], dx
	cwde
	movzx	edx, WORD PTR -6[rbp]
	mov	ecx, edx
	cdqe
	lea	rdx, output[rip]
	mov	BYTE PTR [rax+rdx], cl
	movzx	eax, WORD PTR out_index[rip]
	cmp	ax, 1024
	jne	.L29
	movzx	eax, WORD PTR out_index[rip]
	cwde
	mov	edx, eax
	lea	rsi, output[rip]
	mov	edi, 1
	mov	eax, 0
	call	write@PLT
	movzx	edx, WORD PTR out_index[rip]
	movsx	edx, dx
	cmp	eax, edx
	je	.L28
	mov	edx, 10
	lea	rsi, .LC1[rip]
	mov	edi, 2
	mov	eax, 0
	call	write@PLT
	mov	edi, 1
	call	exit@PLT
.L28:
	mov	WORD PTR out_index[rip], 0
	jmp	.L29
.L30:
	nop
	jmp	.L29
.L31:
	nop
	jmp	.L29
	.cfi_endproc
.LFE1:
	.size	convert, .-convert
	.globl	map
	.type	map, @function
map:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, rdi
	mov	rdx, rsi
	jmp	.L33
.L36:
	movzx	ecx, BYTE PTR [rdx]
	test	cl, cl
	jne	.L34
	movzx	ecx, BYTE PTR [rax]
	movzx	ecx, cl
	movsx	rcx, ecx
	lea	rdi, vector[rip]
	movzx	esi, BYTE PTR -1[rbp]
	mov	BYTE PTR [rcx+rdi], sil
	jmp	.L35
.L34:
	mov	rcx, rdx
	lea	rdx, 1[rcx]
	movzx	ecx, BYTE PTR [rcx]
	mov	BYTE PTR -1[rbp], cl
	movzx	ecx, BYTE PTR [rax]
	movzx	ecx, cl
	movsx	rcx, ecx
	lea	rdi, vector[rip]
	movzx	esi, BYTE PTR -1[rbp]
	mov	BYTE PTR [rcx+rdi], sil
.L35:
	add	rax, 1
.L33:
	movzx	ecx, BYTE PTR [rax]
	test	cl, cl
	jne	.L36
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	map, .-map
	.globl	expand
	.type	expand, @function
expand:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, rdi
	mov	rdx, rsi
	jmp	.L38
.L48:
	movzx	ecx, BYTE PTR [rax]
	cmp	cl, 92
	jne	.L39
	add	rax, 1
	mov	DWORD PTR -4[rbp], 0
	mov	ecx, DWORD PTR -4[rbp]
	mov	DWORD PTR -8[rbp], ecx
	movzx	ecx, BYTE PTR [rax]
	cmp	cl, 47
	jle	.L40
	movzx	ecx, BYTE PTR [rax]
	cmp	cl, 55
	jg	.L40
.L42:
	mov	ecx, DWORD PTR -4[rbp]
	lea	esi, 0[0+rcx*8]
	mov	rcx, rax
	lea	rax, 1[rcx]
	movzx	ecx, BYTE PTR [rcx]
	movsx	ecx, cl
	add	ecx, esi
	sub	ecx, 48
	mov	DWORD PTR -4[rbp], ecx
	add	DWORD PTR -8[rbp], 1
	cmp	DWORD PTR -8[rbp], 3
	jg	.L41
	movzx	ecx, BYTE PTR [rax]
	cmp	cl, 47
	jle	.L41
	movzx	ecx, BYTE PTR [rax]
	cmp	cl, 55
	jle	.L42
.L41:
	mov	rcx, rdx
	lea	rdx, 1[rcx]
	mov	esi, DWORD PTR -4[rbp]
	mov	BYTE PTR [rcx], sil
	jmp	.L38
.L40:
	movzx	ecx, BYTE PTR [rax]
	test	cl, cl
	je	.L38
	mov	rcx, rax
	lea	rax, 1[rcx]
	movzx	esi, BYTE PTR [rcx]
	mov	rcx, rdx
	lea	rdx, 1[rcx]
	mov	BYTE PTR [rcx], sil
	jmp	.L38
.L39:
	movzx	ecx, BYTE PTR [rax]
	cmp	cl, 91
	jne	.L44
	add	rax, 1
	mov	rcx, rax
	lea	rax, 1[rcx]
	movzx	ecx, BYTE PTR [rcx]
	movsx	ecx, cl
	mov	DWORD PTR -8[rbp], ecx
	mov	rcx, rax
	lea	rax, 1[rcx]
	movzx	ecx, BYTE PTR [rcx]
	cmp	cl, 45
	je	.L45
	mov	rcx, rdx
	lea	rdx, 1[rcx]
	mov	BYTE PTR [rcx], 91
	sub	rax, 2
	jmp	.L38
.L45:
	mov	rcx, rax
	lea	rax, 1[rcx]
	movzx	ecx, BYTE PTR [rcx]
	movsx	ecx, cl
	mov	DWORD PTR -4[rbp], ecx
	jmp	.L46
.L47:
	mov	esi, DWORD PTR -8[rbp]
	lea	ecx, 1[rsi]
	mov	DWORD PTR -8[rbp], ecx
	mov	rcx, rdx
	lea	rdx, 1[rcx]
	mov	BYTE PTR [rcx], sil
.L46:
	mov	ecx, DWORD PTR -8[rbp]
	cmp	ecx, DWORD PTR -4[rbp]
	jle	.L47
	add	rax, 1
	jmp	.L38
.L44:
	mov	rcx, rax
	lea	rax, 1[rcx]
	movzx	esi, BYTE PTR [rcx]
	mov	rcx, rdx
	lea	rdx, 1[rcx]
	mov	BYTE PTR [rcx], sil
.L38:
	movzx	ecx, BYTE PTR [rax]
	test	cl, cl
	jne	.L48
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	expand, .-expand
	.globl	complement
	.type	complement, @function
complement:
.LFB4:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r13
	push	r12
	push	rbx
	sub	rsp, 296
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	.cfi_offset 3, -40
	mov	QWORD PTR -312[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	mov	r13d, 0
	mov	r12d, 1
	jmp	.L50
.L56:
	mov	rbx, QWORD PTR -312[rbp]
	jmp	.L51
.L54:
	movzx	eax, BYTE PTR [rbx]
	movzx	edx, al
	movsx	eax, r12w
	cmp	edx, eax
	je	.L58
	add	rbx, 1
.L51:
	movzx	eax, BYTE PTR [rbx]
	test	al, al
	jne	.L54
	jmp	.L53
.L58:
	nop
.L53:
	movzx	eax, BYTE PTR [rbx]
	test	al, al
	jne	.L55
	mov	eax, r13d
	mov	edx, eax
	add	edx, 1
	mov	r13d, edx
	cwde
	mov	edx, r12d
	cdqe
	mov	BYTE PTR -304[rbp+rax], dl
.L55:
	mov	eax, r12d
	add	eax, 1
	mov	r12d, eax
.L50:
	cmp	r12w, 255
	jle	.L56
	movsx	eax, r13w
	cdqe
	mov	BYTE PTR -304[rbp+rax], 0
	lea	rdx, -304[rbp]
	mov	rax, QWORD PTR -312[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	nop
	mov	rcx, QWORD PTR -40[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L57
	call	__stack_chk_fail@PLT
.L57:
	add	rsp, 296
	pop	rbx
	pop	r12
	pop	r13
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	complement, .-complement
	.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	"194645.c"
	.text
	.comm	com_fl,1,1
	.comm	del_fl,1,1
	.comm	sq_fl,1,1
	.comm	output,1024,4
	.comm	input,1024,4
	.comm	vector,256,4
	.comm	invec,256,4
	.comm	outvec,256,4
	.comm	in_index,2,2
	.comm	out_index,2,2
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Usage: tr [-cds] [string1 [string2]].\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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]
	mov	r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-24]
	cmp	r3, #1
	ble	.L2
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L2
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r4, r3, #1
	b	.L3
.L9:
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #115
	beq	.L4
	cmp	r3, #115
	bgt	.L5
	cmp	r3, #99
	beq	.L6
	cmp	r3, #100
	beq	.L7
	b	.L5
.L6:
	ldr	r3, .L21
	mov	r2, #1
	strb	r2, [r3]
	b	.L8
.L7:
	ldr	r3, .L21+4
	mov	r2, #1
	strb	r2, [r3]
	b	.L8
.L4:
	ldr	r3, .L21+8
	mov	r2, #1
	strb	r2, [r3]
	b	.L8
.L5:
	mov	r2, #38
	ldr	r1, .L21+12
	mov	r0, #2
	bl	write
	mov	r0, #1
	bl	exit
.L8:
	add	r4, r4, #1
.L3:
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L9
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L2:
	mov	r3, #0
	strh	r3, [fp, #-18]	@ movhi
	b	.L10
.L11:
	ldrsh	r3, [fp, #-18]
	ldrh	r2, [fp, #-18]	@ movhi
	and	r1, r2, #255
	ldr	r2, .L21+16
	strb	r1, [r2, r3]
	ldrsh	r3, [fp, #-18]
	ldr	r2, .L21+20
	mov	r1, #0
	strb	r1, [r2, r3]
	ldrsh	r2, [fp, #-18]
	ldr	r1, .L21+20
	ldrb	r1, [r1, r3]	@ zero_extendqisi2
	ldr	r3, .L21+24
	strb	r1, [r3, r2]
	ldrsh	r3, [fp, #-18]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-18]	@ movhi
.L10:
	ldrsh	r3, [fp, #-18]
	cmp	r3, #255
	ble	.L11
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L12
	ldr	r3, [fp, #-16]
	add	r2, r3, #1
	str	r2, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L21+28
	mov	r0, r3
	bl	expand
	ldr	r3, .L21
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L13
	ldr	r0, .L21+28
	bl	complement
.L13:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L14
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L21+32
	mov	r0, r3
	bl	expand
.L14:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L15
	ldr	r1, .L21+32
	ldr	r0, .L21+28
	bl	map
.L15:
	ldr	r4, .L21+28
	b	.L16
.L17:
	ldrb	r3, [r4]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, .L21+24
	mov	r1, #1
	strb	r1, [r3, r2]
	add	r4, r4, #1
.L16:
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L17
	ldr	r4, .L21+32
	b	.L18
.L19:
	ldrb	r3, [r4]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, .L21+20
	mov	r1, #1
	strb	r1, [r3, r2]
	add	r4, r4, #1
.L18:
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L19
.L12:
	bl	convert
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L22:
	.align	2
.L21:
	.word	com_fl
	.word	del_fl
	.word	sq_fl
	.word	.LC0
	.word	vector
	.word	outvec
	.word	invec
	.word	input
	.word	output
	.size	main, .-main
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Bad write\012\000"
	.text
	.align	2
	.global	convert
	.syntax unified
	.arm
	.fpu softvfp
	.type	convert, %function
convert:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #0
	strh	r3, [fp, #-12]	@ movhi
	mvn	r3, #0
	strh	r3, [fp, #-10]	@ movhi
.L31:
	ldr	r3, .L34
	ldrsh	r3, [r3]
	ldrsh	r2, [fp, #-12]
	cmp	r2, r3
	bne	.L24
	mov	r2, #1024
	ldr	r1, .L34+4
	mov	r0, #0
	bl	read
	mov	r3, r0
	strh	r3, [fp, #-12]	@ movhi
	ldrsh	r3, [fp, #-12]
	cmp	r3, #0
	bgt	.L25
	ldr	r3, .L34+8
	ldrsh	r3, [r3]
	mov	r2, r3
	ldr	r1, .L34+12
	mov	r0, #1
	bl	write
	mov	r3, r0
	ldr	r2, .L34+8
	ldrsh	r2, [r2]
	cmp	r3, r2
	beq	.L26
	mov	r2, #10
	ldr	r1, .L34+16
	mov	r0, #2
	bl	write
.L26:
	mov	r0, #0
	bl	exit
.L25:
	ldr	r3, .L34
	mov	r2, #0
	strh	r2, [r3]	@ movhi
.L24:
	ldr	r3, .L34
	ldrsh	r3, [r3]
	lsl	r2, r3, #16
	lsr	r2, r2, #16
	add	r2, r2, #1
	lsl	r2, r2, #16
	lsr	r2, r2, #16
	lsl	r2, r2, #16
	asr	r2, r2, #16
	ldr	r1, .L34
	strh	r2, [r1]	@ movhi
	mov	r2, r3
	ldr	r3, .L34+4
	ldrb	r3, [r3, r2]	@ zero_extendqisi2
	strh	r3, [fp, #-8]	@ movhi
	ldrsh	r3, [fp, #-8]
	ldr	r2, .L34+20
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	strh	r3, [fp, #-6]	@ movhi
	ldr	r3, .L34+24
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L27
	ldrsh	r3, [fp, #-8]
	ldr	r2, .L34+28
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L32
.L27:
	ldr	r3, .L34+32
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L29
	ldrsh	r2, [fp, #-10]
	ldrsh	r3, [fp, #-6]
	cmp	r2, r3
	bne	.L29
	ldrsh	r3, [fp, #-6]
	ldr	r2, .L34+36
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L33
.L29:
	ldrh	r3, [fp, #-6]	@ movhi
	strh	r3, [fp, #-10]	@ movhi
	ldr	r3, .L34+8
	ldrsh	r3, [r3]
	lsl	r2, r3, #16
	lsr	r2, r2, #16
	add	r2, r2, #1
	lsl	r2, r2, #16
	lsr	r2, r2, #16
	lsl	r2, r2, #16
	asr	r2, r2, #16
	ldr	r1, .L34+8
	strh	r2, [r1]	@ movhi
	mov	r2, r3
	ldrh	r3, [fp, #-10]	@ movhi
	and	r1, r3, #255
	ldr	r3, .L34+12
	strb	r1, [r3, r2]
	ldr	r3, .L34+8
	ldrsh	r3, [r3]
	cmp	r3, #1024
	bne	.L31
	ldr	r3, .L34+8
	ldrsh	r3, [r3]
	mov	r2, r3
	ldr	r1, .L34+12
	mov	r0, #1
	bl	write
	mov	r3, r0
	ldr	r2, .L34+8
	ldrsh	r2, [r2]
	cmp	r3, r2
	beq	.L30
	mov	r2, #10
	ldr	r1, .L34+16
	mov	r0, #2
	bl	write
	mov	r0, #1
	bl	exit
.L30:
	ldr	r3, .L34+8
	mov	r2, #0
	strh	r2, [r3]	@ movhi
	b	.L31
.L32:
	nop
	b	.L31
.L33:
	nop
	b	.L31
.L35:
	.align	2
.L34:
	.word	in_index
	.word	input
	.word	out_index
	.word	output
	.word	.LC1
	.word	vector
	.word	del_fl
	.word	invec
	.word	sq_fl
	.word	outvec
	.size	convert, .-convert
	.align	2
	.global	map
	.syntax unified
	.arm
	.fpu softvfp
	.type	map, %function
map:
	@ 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
	mov	r3, r0
	mov	r2, r1
	b	.L37
.L40:
	ldrb	r1, [r2]	@ zero_extendqisi2
	cmp	r1, #0
	bne	.L38
	ldrb	r1, [r3]	@ zero_extendqisi2
	mov	ip, r1
	ldr	r0, .L41
	ldrb	r1, [fp, #-5]
	strb	r1, [r0, ip]
	b	.L39
.L38:
	mov	r1, r2
	add	r2, r1, #1
	ldrb	r1, [r1]
	strb	r1, [fp, #-5]
	ldrb	r1, [r3]	@ zero_extendqisi2
	mov	ip, r1
	ldr	r0, .L41
	ldrb	r1, [fp, #-5]
	strb	r1, [r0, ip]
.L39:
	add	r3, r3, #1
.L37:
	ldrb	r1, [r3]	@ zero_extendqisi2
	cmp	r1, #0
	bne	.L40
	nop
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L42:
	.align	2
.L41:
	.word	vector
	.size	map, .-map
	.align	2
	.global	expand
	.syntax unified
	.arm
	.fpu softvfp
	.type	expand, %function
expand:
	@ 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
	mov	r3, r0
	mov	r2, r1
	b	.L44
.L54:
	ldrb	r1, [r3]	@ zero_extendqisi2
	cmp	r1, #92
	bne	.L45
	add	r3, r3, #1
	mov	r1, #0
	str	r1, [fp, #-8]
	ldr	r1, [fp, #-8]
	str	r1, [fp, #-12]
	ldrb	r1, [r3]	@ zero_extendqisi2
	cmp	r1, #47
	bls	.L46
	ldrb	r1, [r3]	@ zero_extendqisi2
	cmp	r1, #55
	bhi	.L46
.L48:
	ldr	r1, [fp, #-8]
	lsl	r0, r1, #3
	mov	r1, r3
	add	r3, r1, #1
	ldrb	r1, [r1]	@ zero_extendqisi2
	add	r1, r0, r1
	sub	r1, r1, #48
	str	r1, [fp, #-8]
	ldr	r1, [fp, #-12]
	add	r1, r1, #1
	str	r1, [fp, #-12]
	ldr	r1, [fp, #-12]
	cmp	r1, #3
	bgt	.L47
	ldrb	r1, [r3]	@ zero_extendqisi2
	cmp	r1, #47
	bls	.L47
	ldrb	r1, [r3]	@ zero_extendqisi2
	cmp	r1, #55
	bls	.L48
.L47:
	mov	r1, r2
	add	r2, r1, #1
	ldr	r0, [fp, #-8]
	and	r0, r0, #255
	strb	r0, [r1]
	b	.L44
.L46:
	ldrb	r1, [r3]	@ zero_extendqisi2
	cmp	r1, #0
	beq	.L44
	mov	r0, r3
	add	r3, r0, #1
	mov	r1, r2
	add	r2, r1, #1
	ldrb	r0, [r0]	@ zero_extendqisi2
	strb	r0, [r1]
	b	.L44
.L45:
	ldrb	r1, [r3]	@ zero_extendqisi2
	cmp	r1, #91
	bne	.L50
	add	r3, r3, #1
	mov	r1, r3
	add	r3, r1, #1
	ldrb	r1, [r1]	@ zero_extendqisi2
	str	r1, [fp, #-12]
	mov	r1, r3
	add	r3, r1, #1
	ldrb	r1, [r1]	@ zero_extendqisi2
	cmp	r1, #45
	beq	.L51
	mov	r1, r2
	add	r2, r1, #1
	mov	r0, #91
	strb	r0, [r1]
	sub	r3, r3, #2
	b	.L44
.L51:
	mov	r1, r3
	add	r3, r1, #1
	ldrb	r1, [r1]	@ zero_extendqisi2
	str	r1, [fp, #-8]
	b	.L52
.L53:
	ldr	r1, [fp, #-12]
	add	r0, r1, #1
	str	r0, [fp, #-12]
	mov	r0, r2
	add	r2, r0, #1
	and	r1, r1, #255
	strb	r1, [r0]
.L52:
	ldr	r0, [fp, #-12]
	ldr	r1, [fp, #-8]
	cmp	r0, r1
	ble	.L53
	add	r3, r3, #1
	b	.L44
.L50:
	mov	r0, r3
	add	r3, r0, #1
	mov	r1, r2
	add	r2, r1, #1
	ldrb	r0, [r0]	@ zero_extendqisi2
	strb	r0, [r1]
.L44:
	ldrb	r1, [r3]	@ zero_extendqisi2
	cmp	r1, #0
	bne	.L54
	nop
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	expand, .-expand
	.section	.rodata
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	complement
	.syntax unified
	.arm
	.fpu softvfp
	.type	complement, %function
complement:
	@ args = 0, pretend = 0, frame = 272
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #276
	str	r0, [fp, #-288]
	ldr	r3, .L65
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	mov	r6, #0
	mov	r5, #1
	b	.L56
.L62:
	ldr	r4, [fp, #-288]
	b	.L57
.L60:
	ldrb	r3, [r4]	@ zero_extendqisi2
	mov	r2, r3
	mov	r3, r5
	cmp	r2, r3
	beq	.L64
	add	r4, r4, #1
.L57:
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L60
	b	.L59
.L64:
	nop
.L59:
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L61
	mov	r2, r6
	lsl	r3, r2, #16
	lsr	r3, r3, #16
	add	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	lsl	r3, r3, #16
	asr	r6, r3, #16
	mov	r3, r2
	and	r2, r5, #255
	sub	r1, fp, #20
	add	r3, r1, r3
	strb	r2, [r3, #-264]
.L61:
	mov	r3, r5
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	lsl	r3, r3, #16
	asr	r5, r3, #16
.L56:
	cmp	r5, #255
	ble	.L62
	mov	r3, r6
	sub	r2, fp, #20
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-264]
	sub	r3, fp, #284
	mov	r1, r3
	ldr	r0, [fp, #-288]
	bl	strcpy
	nop
	ldr	r2, .L65
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L63
	bl	__stack_chk_fail
.L63:
	mov	r0, r3
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L66:
	.align	2
.L65:
	.word	.LC2
	.size	complement, .-complement
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
