	.file	"494663.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"n=%d\n"
	.text
	.globl	encode
	.type	encode, @function
encode:
.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, 1120
	mov	QWORD PTR -1096[rbp], rdi
	mov	QWORD PTR -1104[rbp], rsi
	mov	QWORD PTR -1112[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -1040[rbp]
	mov	eax, 0
	mov	ecx, 128
	mov	rdi, rdx
	rep stosq
	mov	rax, QWORD PTR -1104[rbp]
	add	rax, 1
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -1048[rbp], rax
	cmp	QWORD PTR -1048[rbp], 0
	jne	.L2
	mov	eax, 0
	jmp	.L23
.L2:
	mov	QWORD PTR -1072[rbp], 0
	jmp	.L4
.L5:
	mov	rdx, QWORD PTR -1072[rbp]
	mov	rax, QWORD PTR -1096[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	cdqe
	mov	DWORD PTR -1040[rbp+rax*4], 1
	add	QWORD PTR -1072[rbp], 1
.L4:
	mov	rax, QWORD PTR -1072[rbp]
	cmp	rax, QWORD PTR -1104[rbp]
	jl	.L5
	mov	DWORD PTR -1076[rbp], 0
	mov	QWORD PTR -1072[rbp], 0
	jmp	.L6
.L8:
	mov	rax, QWORD PTR -1072[rbp]
	mov	eax, DWORD PTR -1040[rbp+rax*4]
	test	eax, eax
	je	.L7
	mov	eax, DWORD PTR -1076[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -1076[rbp], edx
	mov	rdx, QWORD PTR -1072[rbp]
	mov	DWORD PTR -1040[rbp+rdx*4], eax
	mov	eax, DWORD PTR -1076[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -1048[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR -1072[rbp]
	mov	BYTE PTR [rax], dl
.L7:
	add	QWORD PTR -1072[rbp], 1
.L6:
	cmp	QWORD PTR -1072[rbp], 255
	jle	.L8
	mov	eax, DWORD PTR -1076[rbp]
	add	eax, 1
	cdqe
	mov	QWORD PTR -1064[rbp], rax
	mov	rax, QWORD PTR -1064[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -1064[rbp], rdx
	mov	rdx, rax
	mov	rax, QWORD PTR -1048[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -1076[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	cmp	DWORD PTR -1076[rbp], 16
	jg	.L9
	mov	rax, QWORD PTR -1104[rbp]
	mov	rdx, rax
	shr	rdx, 63
	add	rax, rdx
	sar	rax
	mov	rdx, rax
	mov	rax, QWORD PTR -1064[rbp]
	add	rax, rdx
	cmp	QWORD PTR -1104[rbp], rax
	jge	.L10
.L9:
	mov	rax, QWORD PTR -1048[rbp]
	mov	BYTE PTR [rax], 1
	mov	rdx, QWORD PTR -1104[rbp]
	mov	rax, QWORD PTR -1048[rbp]
	lea	rcx, 1[rax]
	mov	rax, QWORD PTR -1096[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	mov	rax, QWORD PTR -1104[rbp]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -1112[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -1048[rbp]
	jmp	.L23
.L10:
	mov	rax, QWORD PTR -1104[rbp]
	mov	QWORD PTR -1056[rbp], rax
.L13:
	mov	rax, QWORD PTR -1056[rbp]
	and	eax, 127
	cmp	QWORD PTR -1056[rbp], 127
	jle	.L11
	mov	edx, -128
	jmp	.L12
.L11:
	mov	edx, 0
.L12:
	mov	ecx, edx
	or	ecx, eax
	mov	rax, QWORD PTR -1064[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -1064[rbp], rdx
	mov	rdx, rax
	mov	rax, QWORD PTR -1048[rbp]
	add	rax, rdx
	mov	edx, ecx
	mov	BYTE PTR [rax], dl
	sar	QWORD PTR -1056[rbp], 7
	cmp	QWORD PTR -1056[rbp], 0
	jne	.L13
	cmp	DWORD PTR -1076[rbp], 4
	jle	.L14
	mov	rax, QWORD PTR -1048[rbp]
	mov	BYTE PTR [rax], 2
	mov	QWORD PTR -1072[rbp], 0
	jmp	.L15
.L16:
	mov	rdx, QWORD PTR -1072[rbp]
	mov	rax, QWORD PTR -1096[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	cdqe
	mov	eax, DWORD PTR -1040[rbp+rax*4]
	sal	eax, 4
	mov	ecx, eax
	mov	rax, QWORD PTR -1072[rbp]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -1096[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	cdqe
	mov	eax, DWORD PTR -1040[rbp+rax*4]
	or	ecx, eax
	mov	rax, QWORD PTR -1064[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -1064[rbp], rdx
	mov	rdx, rax
	mov	rax, QWORD PTR -1048[rbp]
	add	rax, rdx
	mov	edx, ecx
	mov	BYTE PTR [rax], dl
	add	QWORD PTR -1072[rbp], 2
.L15:
	mov	rax, QWORD PTR -1072[rbp]
	cmp	rax, QWORD PTR -1104[rbp]
	jl	.L16
	mov	rax, QWORD PTR -1112[rbp]
	mov	rdx, QWORD PTR -1064[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -1048[rbp]
	jmp	.L23
.L14:
	cmp	DWORD PTR -1076[rbp], 2
	jle	.L17
	mov	rax, QWORD PTR -1048[rbp]
	mov	BYTE PTR [rax], 4
	mov	QWORD PTR -1072[rbp], 0
	jmp	.L18
.L19:
	mov	rdx, QWORD PTR -1072[rbp]
	mov	rax, QWORD PTR -1096[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	cdqe
	mov	eax, DWORD PTR -1040[rbp+rax*4]
	sal	eax, 6
	mov	ecx, eax
	mov	rax, QWORD PTR -1072[rbp]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -1096[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	cdqe
	mov	eax, DWORD PTR -1040[rbp+rax*4]
	sal	eax, 4
	or	ecx, eax
	mov	edx, ecx
	mov	rax, QWORD PTR -1072[rbp]
	lea	rcx, 2[rax]
	mov	rax, QWORD PTR -1096[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	cdqe
	mov	eax, DWORD PTR -1040[rbp+rax*4]
	sal	eax, 2
	or	edx, eax
	mov	rax, QWORD PTR -1072[rbp]
	lea	rcx, 3[rax]
	mov	rax, QWORD PTR -1096[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	cdqe
	mov	eax, DWORD PTR -1040[rbp+rax*4]
	mov	ecx, edx
	or	ecx, eax
	mov	rax, QWORD PTR -1064[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -1064[rbp], rdx
	mov	rdx, rax
	mov	rax, QWORD PTR -1048[rbp]
	add	rax, rdx
	mov	edx, ecx
	mov	BYTE PTR [rax], dl
	add	QWORD PTR -1072[rbp], 4
.L18:
	mov	rax, QWORD PTR -1072[rbp]
	cmp	rax, QWORD PTR -1104[rbp]
	jl	.L19
	mov	rax, QWORD PTR -1112[rbp]
	mov	rdx, QWORD PTR -1064[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -1048[rbp]
	jmp	.L23
.L17:
	cmp	DWORD PTR -1076[rbp], 1
	jle	.L20
	mov	rax, QWORD PTR -1048[rbp]
	mov	BYTE PTR [rax], 8
	mov	QWORD PTR -1072[rbp], 0
	jmp	.L21
.L22:
	mov	rdx, QWORD PTR -1072[rbp]
	mov	rax, QWORD PTR -1096[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	cdqe
	mov	eax, DWORD PTR -1040[rbp+rax*4]
	sal	eax, 7
	mov	ecx, eax
	mov	rax, QWORD PTR -1072[rbp]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -1096[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	cdqe
	mov	eax, DWORD PTR -1040[rbp+rax*4]
	sal	eax, 6
	or	ecx, eax
	mov	edx, ecx
	mov	rax, QWORD PTR -1072[rbp]
	lea	rcx, 2[rax]
	mov	rax, QWORD PTR -1096[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	cdqe
	mov	eax, DWORD PTR -1040[rbp+rax*4]
	sal	eax, 5
	or	edx, eax
	mov	rax, QWORD PTR -1072[rbp]
	lea	rcx, 3[rax]
	mov	rax, QWORD PTR -1096[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	cdqe
	mov	eax, DWORD PTR -1040[rbp+rax*4]
	sal	eax, 4
	or	edx, eax
	mov	rax, QWORD PTR -1072[rbp]
	lea	rcx, 4[rax]
	mov	rax, QWORD PTR -1096[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	cdqe
	mov	eax, DWORD PTR -1040[rbp+rax*4]
	sal	eax, 3
	or	edx, eax
	mov	rax, QWORD PTR -1072[rbp]
	lea	rcx, 5[rax]
	mov	rax, QWORD PTR -1096[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	cdqe
	mov	eax, DWORD PTR -1040[rbp+rax*4]
	sal	eax, 2
	or	edx, eax
	mov	rax, QWORD PTR -1072[rbp]
	lea	rcx, 6[rax]
	mov	rax, QWORD PTR -1096[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	cdqe
	mov	eax, DWORD PTR -1040[rbp+rax*4]
	add	eax, eax
	or	edx, eax
	mov	rax, QWORD PTR -1072[rbp]
	lea	rcx, 7[rax]
	mov	rax, QWORD PTR -1096[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	cdqe
	mov	eax, DWORD PTR -1040[rbp+rax*4]
	mov	ecx, edx
	or	ecx, eax
	mov	rax, QWORD PTR -1064[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -1064[rbp], rdx
	mov	rdx, rax
	mov	rax, QWORD PTR -1048[rbp]
	add	rax, rdx
	mov	edx, ecx
	mov	BYTE PTR [rax], dl
	add	QWORD PTR -1072[rbp], 8
.L21:
	mov	rax, QWORD PTR -1072[rbp]
	cmp	rax, QWORD PTR -1104[rbp]
	jl	.L22
	mov	rax, QWORD PTR -1112[rbp]
	mov	rdx, QWORD PTR -1064[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -1048[rbp]
	jmp	.L23
.L20:
	mov	rax, QWORD PTR -1048[rbp]
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -1112[rbp]
	mov	rdx, QWORD PTR -1064[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -1048[rbp]
.L23:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	encode, .-encode
	.section	.rodata
.LC1:
	.string	"orig len = %d\n"
	.text
	.globl	decode
	.type	decode, @function
decode:
.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, 1120
	mov	QWORD PTR -1096[rbp], rdi
	mov	QWORD PTR -1104[rbp], rsi
	mov	QWORD PTR -1112[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	BYTE PTR -1077[rbp], 0
	mov	rax, QWORD PTR -1096[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 1
	jne	.L26
	mov	rax, QWORD PTR -1104[rbp]
	sub	rax, 1
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -1048[rbp], rax
	cmp	QWORD PTR -1048[rbp], 0
	jne	.L27
	mov	eax, 0
	jmp	.L44
.L27:
	mov	rax, QWORD PTR -1104[rbp]
	sub	rax, 1
	mov	rdx, rax
	mov	rax, QWORD PTR -1096[rbp]
	lea	rcx, 1[rax]
	mov	rax, QWORD PTR -1048[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	rax, QWORD PTR -1104[rbp]
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -1112[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -1048[rbp]
	jmp	.L44
.L26:
	mov	QWORD PTR -1064[rbp], 1
.L29:
	mov	rax, QWORD PTR -1064[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -1064[rbp], rdx
	mov	rdx, rax
	mov	rax, QWORD PTR -1096[rbp]
	add	rax, rdx
	movzx	ecx, BYTE PTR [rax]
	movzx	eax, BYTE PTR -1077[rbp]
	lea	edx, 1[rax]
	mov	BYTE PTR -1077[rbp], dl
	movzx	eax, al
	movzx	edx, cl
	cdqe
	mov	DWORD PTR -1040[rbp+rax*4], edx
	mov	rdx, QWORD PTR -1064[rbp]
	mov	rax, QWORD PTR -1096[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L29
	add	QWORD PTR -1064[rbp], 1
	mov	QWORD PTR -1056[rbp], 0
	mov	DWORD PTR -1076[rbp], 0
.L30:
	mov	rax, QWORD PTR -1064[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -1064[rbp], rdx
	mov	rdx, rax
	mov	rax, QWORD PTR -1096[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -1077[rbp], al
	movzx	eax, BYTE PTR -1077[rbp]
	and	eax, 127
	mov	edx, eax
	mov	eax, DWORD PTR -1076[rbp]
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	cdqe
	or	QWORD PTR -1056[rbp], rax
	add	DWORD PTR -1076[rbp], 7
	movzx	eax, BYTE PTR -1077[rbp]
	test	al, al
	js	.L30
	mov	rax, QWORD PTR -1056[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -1056[rbp]
	add	rax, 7
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -1048[rbp], rax
	cmp	QWORD PTR -1048[rbp], 0
	jne	.L31
	mov	eax, 0
	jmp	.L44
.L31:
	mov	rax, QWORD PTR -1096[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	cmp	eax, 8
	je	.L32
	cmp	eax, 8
	jg	.L33
	cmp	eax, 4
	je	.L34
	cmp	eax, 4
	jg	.L33
	test	eax, eax
	je	.L35
	cmp	eax, 2
	je	.L36
	jmp	.L33
.L32:
	mov	QWORD PTR -1072[rbp], 0
	jmp	.L37
.L38:
	mov	rax, QWORD PTR -1064[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -1064[rbp], rdx
	mov	rdx, rax
	mov	rax, QWORD PTR -1096[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -1077[rbp], al
	movzx	eax, BYTE PTR -1077[rbp]
	shr	al, 7
	movzx	eax, al
	and	eax, 1
	cdqe
	mov	edx, DWORD PTR -1040[rbp+rax*4]
	mov	rcx, QWORD PTR -1072[rbp]
	mov	rax, QWORD PTR -1048[rbp]
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	movzx	eax, BYTE PTR -1077[rbp]
	shr	al, 6
	movzx	eax, al
	and	eax, 1
	cdqe
	mov	edx, DWORD PTR -1040[rbp+rax*4]
	mov	rax, QWORD PTR -1072[rbp]
	lea	rcx, 1[rax]
	mov	rax, QWORD PTR -1048[rbp]
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	movzx	eax, BYTE PTR -1077[rbp]
	shr	al, 5
	movzx	eax, al
	and	eax, 1
	cdqe
	mov	edx, DWORD PTR -1040[rbp+rax*4]
	mov	rax, QWORD PTR -1072[rbp]
	lea	rcx, 2[rax]
	mov	rax, QWORD PTR -1048[rbp]
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	movzx	eax, BYTE PTR -1077[rbp]
	shr	al, 4
	movzx	eax, al
	and	eax, 1
	cdqe
	mov	edx, DWORD PTR -1040[rbp+rax*4]
	mov	rax, QWORD PTR -1072[rbp]
	lea	rcx, 3[rax]
	mov	rax, QWORD PTR -1048[rbp]
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	movzx	eax, BYTE PTR -1077[rbp]
	shr	al, 3
	movzx	eax, al
	and	eax, 1
	cdqe
	mov	edx, DWORD PTR -1040[rbp+rax*4]
	mov	rax, QWORD PTR -1072[rbp]
	lea	rcx, 4[rax]
	mov	rax, QWORD PTR -1048[rbp]
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	movzx	eax, BYTE PTR -1077[rbp]
	shr	al, 2
	movzx	eax, al
	and	eax, 1
	cdqe
	mov	edx, DWORD PTR -1040[rbp+rax*4]
	mov	rax, QWORD PTR -1072[rbp]
	lea	rcx, 5[rax]
	mov	rax, QWORD PTR -1048[rbp]
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	movzx	eax, BYTE PTR -1077[rbp]
	shr	al
	movzx	eax, al
	and	eax, 1
	cdqe
	mov	edx, DWORD PTR -1040[rbp+rax*4]
	mov	rax, QWORD PTR -1072[rbp]
	lea	rcx, 6[rax]
	mov	rax, QWORD PTR -1048[rbp]
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	movzx	eax, BYTE PTR -1077[rbp]
	and	eax, 1
	cdqe
	mov	edx, DWORD PTR -1040[rbp+rax*4]
	mov	rax, QWORD PTR -1072[rbp]
	lea	rcx, 7[rax]
	mov	rax, QWORD PTR -1048[rbp]
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	add	QWORD PTR -1072[rbp], 8
.L37:
	mov	rax, QWORD PTR -1072[rbp]
	cmp	rax, QWORD PTR -1056[rbp]
	jl	.L38
	jmp	.L39
.L34:
	mov	QWORD PTR -1072[rbp], 0
	jmp	.L40
.L41:
	mov	rax, QWORD PTR -1064[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -1064[rbp], rdx
	mov	rdx, rax
	mov	rax, QWORD PTR -1096[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -1077[rbp], al
	movzx	eax, BYTE PTR -1077[rbp]
	shr	al, 6
	movzx	eax, al
	and	eax, 3
	cdqe
	mov	edx, DWORD PTR -1040[rbp+rax*4]
	mov	rcx, QWORD PTR -1072[rbp]
	mov	rax, QWORD PTR -1048[rbp]
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	movzx	eax, BYTE PTR -1077[rbp]
	shr	al, 4
	movzx	eax, al
	and	eax, 3
	cdqe
	mov	edx, DWORD PTR -1040[rbp+rax*4]
	mov	rax, QWORD PTR -1072[rbp]
	lea	rcx, 1[rax]
	mov	rax, QWORD PTR -1048[rbp]
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	movzx	eax, BYTE PTR -1077[rbp]
	shr	al, 2
	movzx	eax, al
	and	eax, 3
	cdqe
	mov	edx, DWORD PTR -1040[rbp+rax*4]
	mov	rax, QWORD PTR -1072[rbp]
	lea	rcx, 2[rax]
	mov	rax, QWORD PTR -1048[rbp]
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	movzx	eax, BYTE PTR -1077[rbp]
	and	eax, 3
	cdqe
	mov	edx, DWORD PTR -1040[rbp+rax*4]
	mov	rax, QWORD PTR -1072[rbp]
	lea	rcx, 3[rax]
	mov	rax, QWORD PTR -1048[rbp]
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	add	QWORD PTR -1072[rbp], 4
.L40:
	mov	rax, QWORD PTR -1072[rbp]
	cmp	rax, QWORD PTR -1056[rbp]
	jl	.L41
	jmp	.L39
.L36:
	mov	QWORD PTR -1072[rbp], 0
	jmp	.L42
.L43:
	mov	rax, QWORD PTR -1064[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -1064[rbp], rdx
	mov	rdx, rax
	mov	rax, QWORD PTR -1096[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -1077[rbp], al
	movzx	eax, BYTE PTR -1077[rbp]
	shr	al, 4
	movzx	eax, al
	and	eax, 15
	cdqe
	mov	edx, DWORD PTR -1040[rbp+rax*4]
	mov	rcx, QWORD PTR -1072[rbp]
	mov	rax, QWORD PTR -1048[rbp]
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	movzx	eax, BYTE PTR -1077[rbp]
	and	eax, 15
	cdqe
	mov	edx, DWORD PTR -1040[rbp+rax*4]
	mov	rax, QWORD PTR -1072[rbp]
	lea	rcx, 1[rax]
	mov	rax, QWORD PTR -1048[rbp]
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	add	QWORD PTR -1072[rbp], 8
.L42:
	mov	rax, QWORD PTR -1072[rbp]
	cmp	rax, QWORD PTR -1056[rbp]
	jl	.L43
	jmp	.L39
.L35:
	mov	rdx, QWORD PTR -1056[rbp]
	mov	ecx, DWORD PTR -1040[rbp]
	mov	rax, QWORD PTR -1048[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	memset@PLT
	jmp	.L39
.L33:
	mov	rax, QWORD PTR -1048[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	jmp	.L44
.L39:
	mov	rax, QWORD PTR -1112[rbp]
	mov	rdx, QWORD PTR -1056[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -1048[rbp]
.L44:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L45
	call	__stack_chk_fail@PLT
.L45:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	decode, .-decode
	.section	.rodata
.LC2:
	.string	"read"
	.text
	.type	load, @function
load:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -24[rbp], 0
	mov	QWORD PTR -16[rbp], 0
	mov	QWORD PTR -8[rbp], 0
.L51:
	mov	rax, QWORD PTR -16[rbp]
	sub	rax, QWORD PTR -8[rbp]
	cmp	rax, 1048575
	ja	.L47
	cmp	QWORD PTR -16[rbp], 0
	je	.L48
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rax
	jmp	.L49
.L48:
	mov	eax, 1048576
.L49:
	mov	QWORD PTR -16[rbp], rax
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR -24[rbp], rax
.L47:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	edx, 1048576
	mov	rsi, rax
	mov	edi, 0
	mov	eax, 0
	call	read@PLT
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 0
	jle	.L50
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	add	QWORD PTR -8[rbp], rax
.L50:
	cmp	DWORD PTR -28[rbp], 0
	jg	.L51
	cmp	DWORD PTR -28[rbp], -1
	jne	.L52
	lea	rdi, .LC2[rip]
	call	perror@PLT
.L52:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	load, .-load
	.section	.rodata
.LC3:
	.string	"-d"
	.text
	.globl	main
	.type	main, @function
main:
.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, 64
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -40[rbp]
	mov	rdi, rax
	call	load
	mov	QWORD PTR -16[rbp], rax
	cmp	DWORD PTR -52[rbp], 1
	jle	.L55
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L55
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, rax
	lea	rdx, -32[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	decode
	mov	QWORD PTR -24[rbp], rax
	jmp	.L56
.L55:
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, rax
	lea	rdx, -32[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	encode
	mov	QWORD PTR -24[rbp], rax
.L56:
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	mov	edi, 1
	mov	eax, 0
	call	write@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L58
	call	__stack_chk_fail@PLT
.L58:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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	"494663.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"n=%d\012\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	encode
	.syntax unified
	.arm
	.fpu softvfp
	.type	encode, %function
encode:
	@ args = 4, pretend = 0, frame = 1160
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #1152
	sub	sp, sp, #8
	str	r0, [fp, #-1096]
	str	r2, [fp, #-1108]
	str	r3, [fp, #-1104]
	ldr	r3, [fp, #4]
	str	r3, [fp, #-1100]
	ldr	r3, .L25
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	sub	r0, fp, #1040
	sub	r0, r0, #12
	sub	r0, r0, #4
	mov	r3, #1024
	mov	r2, r3
	mov	r1, #0
	bl	memset
	ldr	r3, [fp, #-1108]
	add	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-1088]
	ldr	r3, [fp, #-1088]
	cmp	r3, #0
	bne	.L2
	mov	r3, #0
	b	.L23
.L2:
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-1084]
	str	r3, [fp, #-1080]
	b	.L4
.L5:
	ldr	r2, [fp, #-1084]
	ldr	r3, [fp, #-1096]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r2, r3, #2
	sub	r3, fp, #28
	add	r2, r3, r2
	mov	r3, #1
	str	r3, [r2, #-1028]
	ldr	r2, [fp, #-1084]
	ldr	r3, [fp, #-1080]
	adds	r6, r2, #1
	adc	r7, r3, #0
	str	r6, [fp, #-1084]
	str	r7, [fp, #-1080]
.L4:
	ldr	r0, [fp, #-1084]
	ldr	r1, [fp, #-1080]
	ldr	r2, [fp, #-1108]
	ldr	r3, [fp, #-1104]
	cmp	r0, r2
	sbcs	r3, r1, r3
	blt	.L5
	mov	r3, #0
	str	r3, [fp, #-1092]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-1084]
	str	r3, [fp, #-1080]
	b	.L6
.L8:
	ldr	r3, [fp, #-1084]
	lsl	r3, r3, #2
	sub	r2, fp, #28
	add	r3, r2, r3
	ldr	r3, [r3, #-1028]
	cmp	r3, #0
	beq	.L7
	ldr	r2, [fp, #-1092]
	add	r3, r2, #1
	str	r3, [fp, #-1092]
	ldr	r3, [fp, #-1084]
	lsl	r3, r3, #2
	sub	r1, fp, #28
	add	r3, r1, r3
	str	r2, [r3, #-1028]
	ldr	r2, [fp, #-1092]
	ldr	r3, [fp, #-1088]
	add	r2, r3, r2
	ldrb	r3, [fp, #-1084]	@ zero_extendqisi2
	strb	r3, [r2]
.L7:
	ldr	r2, [fp, #-1084]
	ldr	r3, [fp, #-1080]
	adds	r8, r2, #1
	adc	r9, r3, #0
	str	r8, [fp, #-1084]
	str	r9, [fp, #-1080]
.L6:
	ldr	r2, [fp, #-1084]
	ldr	r3, [fp, #-1080]
	cmp	r2, #256
	sbcs	r3, r3, #0
	blt	.L8
	ldr	r3, [fp, #-1092]
	add	r3, r3, #1
	mov	r2, r3
	asr	r3, r2, #31
	str	r2, [fp, #-1076]
	str	r3, [fp, #-1072]
	ldr	r2, [fp, #-1076]
	ldr	r3, [fp, #-1072]
	adds	r1, r2, #1
	str	r1, [fp, #-1132]
	adc	r1, r3, #0
	str	r1, [fp, #-1128]
	ldr	r0, [fp, #-1132]
	ldr	r1, [fp, #-1128]
	str	r0, [fp, #-1076]
	str	r1, [fp, #-1072]
	ldr	r3, [fp, #-1088]
	add	r2, r3, r2
	mov	r3, #0
	strb	r3, [r2]
	ldr	r3, .L25+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-1092]
	ldr	r1, .L25+8
	mov	r0, r3
	bl	fprintf
	ldr	r3, [fp, #-1092]
	cmp	r3, #16
	bgt	.L9
	ldr	r0, [fp, #-1108]
	ldr	r1, [fp, #-1104]
	lsr	r3, r1, #31
	mov	r2, r3
	mov	r3, #0
	adds	r4, r2, r0
	adc	r5, r3, r1
	mov	r2, #0
	mov	r3, #0
	lsr	r2, r4, #1
	orr	r2, r2, r5, lsl #31
	asr	r3, r5, #1
	mov	r0, r2
	mov	r1, r3
	ldr	r2, [fp, #-1076]
	ldr	r3, [fp, #-1072]
	adds	ip, r0, r2
	str	ip, [fp, #-1116]
	adc	r3, r1, r3
	str	r3, [fp, #-1112]
	ldr	r2, [fp, #-1108]
	ldr	r3, [fp, #-1104]
	ldr	r0, [fp, #-1116]
	ldr	r1, [fp, #-1112]
	cmp	r2, r0
	sbcs	r3, r3, r1
	bge	.L10
.L9:
	ldr	r3, [fp, #-1088]
	mov	r2, #1
	strb	r2, [r3]
	ldr	r3, [fp, #-1088]
	add	r3, r3, #1
	ldr	r2, [fp, #-1108]
	ldr	r1, [fp, #-1096]
	mov	r0, r3
	bl	memcpy
	ldr	r2, [fp, #-1108]
	ldr	r3, [fp, #-1104]
	adds	r1, r2, #1
	str	r1, [fp, #-1124]
	adc	r3, r3, #0
	str	r3, [fp, #-1120]
	ldr	r3, [fp, #-1100]
	ldr	r1, [fp, #-1124]
	ldr	r2, [fp, #-1120]
	stm	r3, {r1-r2}
	ldr	r3, [fp, #-1088]
	b	.L23
.L10:
	ldr	r2, [fp, #-1108]
	ldr	r3, [fp, #-1104]
	str	r2, [fp, #-1068]
	str	r3, [fp, #-1064]
.L13:
	sub	r3, fp, #1056
	sub	r3, r3, #12
	ldrsb	r3, [r3]
	and	r3, r3, #127
	lsl	r3, r3, #24
	asr	r1, r3, #24
	ldr	r2, [fp, #-1068]
	ldr	r3, [fp, #-1064]
	cmp	r2, #128
	sbcs	r3, r3, #0
	blt	.L11
	mvn	r3, #127
	b	.L12
.L11:
	mov	r3, #0
.L12:
	orr	r3, r3, r1
	lsl	r3, r3, #24
	asr	r1, r3, #24
	ldr	r2, [fp, #-1076]
	ldr	r3, [fp, #-1072]
	adds	r0, r2, #1
	str	r0, [fp, #-1140]
	adc	r0, r3, #0
	str	r0, [fp, #-1136]
	ldr	r4, [fp, #-1140]
	ldr	r5, [fp, #-1136]
	str	r4, [fp, #-1076]
	str	r5, [fp, #-1072]
	ldr	r3, [fp, #-1088]
	add	r2, r3, r2
	and	r3, r1, #255
	strb	r3, [r2]
	ldr	r2, [fp, #-1068]
	ldr	r3, [fp, #-1064]
	mov	r0, #0
	mov	r1, #0
	lsr	r0, r2, #7
	orr	r0, r0, r3, lsl #25
	asr	r1, r3, #7
	str	r0, [fp, #-1068]
	str	r1, [fp, #-1064]
	ldr	r2, [fp, #-1068]
	ldr	r3, [fp, #-1064]
	orrs	r3, r2, r3
	bne	.L13
	ldr	r3, [fp, #-1092]
	cmp	r3, #4
	ble	.L14
	ldr	r3, [fp, #-1088]
	mov	r2, #2
	strb	r2, [r3]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-1084]
	str	r3, [fp, #-1080]
	b	.L15
.L16:
	ldr	r3, [fp, #-1084]
	ldr	r2, [fp, #-1096]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #2
	sub	r2, fp, #28
	add	r3, r2, r3
	ldr	r3, [r3, #-1028]
	lsl	r3, r3, #4
	lsl	r3, r3, #24
	asr	r2, r3, #24
	ldr	r3, [fp, #-1084]
	add	r3, r3, #1
	ldr	r1, [fp, #-1096]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #2
	sub	r1, fp, #28
	add	r3, r1, r3
	ldr	r3, [r3, #-1028]
	lsl	r3, r3, #24
	asr	r3, r3, #24
	orr	r3, r2, r3
	lsl	r3, r3, #24
	asr	r1, r3, #24
	ldr	r2, [fp, #-1076]
	ldr	r3, [fp, #-1072]
	adds	r0, r2, #1
	str	r0, [fp, #-1148]
	adc	r0, r3, #0
	str	r0, [fp, #-1144]
	ldr	r4, [fp, #-1148]
	ldr	r5, [fp, #-1144]
	str	r4, [fp, #-1076]
	str	r5, [fp, #-1072]
	ldr	r3, [fp, #-1088]
	add	r3, r3, r2
	and	r2, r1, #255
	strb	r2, [r3]
	ldr	r2, [fp, #-1084]
	ldr	r3, [fp, #-1080]
	adds	r1, r2, #2
	str	r1, [fp, #-1156]
	adc	r3, r3, #0
	str	r3, [fp, #-1152]
	ldr	r3, [fp, #-1156]
	ldr	r4, [fp, #-1152]
	str	r3, [fp, #-1084]
	str	r4, [fp, #-1080]
.L15:
	ldr	r0, [fp, #-1084]
	ldr	r1, [fp, #-1080]
	ldr	r2, [fp, #-1108]
	ldr	r3, [fp, #-1104]
	cmp	r0, r2
	sbcs	r3, r1, r3
	blt	.L16
	ldr	r1, [fp, #-1100]
	ldr	r2, [fp, #-1076]
	ldr	r3, [fp, #-1072]
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-1088]
	b	.L23
.L14:
	ldr	r3, [fp, #-1092]
	cmp	r3, #2
	ble	.L17
	ldr	r3, [fp, #-1088]
	mov	r2, #4
	strb	r2, [r3]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-1084]
	str	r3, [fp, #-1080]
	b	.L18
.L19:
	ldr	r3, [fp, #-1084]
	ldr	r2, [fp, #-1096]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #2
	sub	r2, fp, #28
	add	r3, r2, r3
	ldr	r3, [r3, #-1028]
	lsl	r3, r3, #6
	lsl	r3, r3, #24
	asr	r2, r3, #24
	ldr	r3, [fp, #-1084]
	add	r3, r3, #1
	ldr	r1, [fp, #-1096]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #2
	sub	r1, fp, #28
	add	r3, r1, r3
	ldr	r3, [r3, #-1028]
	lsl	r3, r3, #4
	lsl	r3, r3, #24
	asr	r3, r3, #24
	orr	r3, r2, r3
	lsl	r3, r3, #24
	asr	r2, r3, #24
	ldr	r3, [fp, #-1084]
	add	r3, r3, #2
	ldr	r1, [fp, #-1096]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #2
	sub	r1, fp, #28
	add	r3, r1, r3
	ldr	r3, [r3, #-1028]
	lsl	r3, r3, #2
	lsl	r3, r3, #24
	asr	r3, r3, #24
	orr	r3, r2, r3
	lsl	r3, r3, #24
	asr	r2, r3, #24
	ldr	r3, [fp, #-1084]
	add	r3, r3, #3
	ldr	r1, [fp, #-1096]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #2
	sub	r1, fp, #28
	add	r3, r1, r3
	ldr	r3, [r3, #-1028]
	lsl	r3, r3, #24
	asr	r3, r3, #24
	orr	r3, r2, r3
	lsl	r3, r3, #24
	asr	r1, r3, #24
	ldr	r2, [fp, #-1076]
	ldr	r3, [fp, #-1072]
	adds	r0, r2, #1
	str	r0, [fp, #-1164]
	adc	r0, r3, #0
	str	r0, [fp, #-1160]
	ldr	r4, [fp, #-1164]
	ldr	r5, [fp, #-1160]
	str	r4, [fp, #-1076]
	str	r5, [fp, #-1072]
	ldr	r3, [fp, #-1088]
	add	r3, r3, r2
	and	r2, r1, #255
	strb	r2, [r3]
	ldr	r2, [fp, #-1084]
	ldr	r3, [fp, #-1080]
	adds	r1, r2, #4
	str	r1, [fp, #-1172]
	adc	r3, r3, #0
	str	r3, [fp, #-1168]
	ldr	r3, [fp, #-1172]
	ldr	r4, [fp, #-1168]
	str	r3, [fp, #-1084]
	str	r4, [fp, #-1080]
.L18:
	ldr	r0, [fp, #-1084]
	ldr	r1, [fp, #-1080]
	ldr	r2, [fp, #-1108]
	ldr	r3, [fp, #-1104]
	cmp	r0, r2
	sbcs	r3, r1, r3
	blt	.L19
	ldr	r1, [fp, #-1100]
	ldr	r2, [fp, #-1076]
	ldr	r3, [fp, #-1072]
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-1088]
	b	.L23
.L17:
	ldr	r3, [fp, #-1092]
	cmp	r3, #1
	ble	.L20
	ldr	r3, [fp, #-1088]
	mov	r2, #8
	strb	r2, [r3]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-1084]
	str	r3, [fp, #-1080]
	b	.L21
.L22:
	ldr	r3, [fp, #-1084]
	ldr	r2, [fp, #-1096]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #2
	sub	r2, fp, #28
	add	r3, r2, r3
	ldr	r3, [r3, #-1028]
	lsl	r3, r3, #7
	lsl	r3, r3, #24
	asr	r2, r3, #24
	ldr	r3, [fp, #-1084]
	add	r3, r3, #1
	ldr	r1, [fp, #-1096]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #2
	sub	r1, fp, #28
	add	r3, r1, r3
	ldr	r3, [r3, #-1028]
	lsl	r3, r3, #6
	lsl	r3, r3, #24
	asr	r3, r3, #24
	orr	r3, r2, r3
	lsl	r3, r3, #24
	asr	r2, r3, #24
	ldr	r3, [fp, #-1084]
	add	r3, r3, #2
	ldr	r1, [fp, #-1096]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #2
	sub	r1, fp, #28
	add	r3, r1, r3
	ldr	r3, [r3, #-1028]
	lsl	r3, r3, #5
	lsl	r3, r3, #24
	asr	r3, r3, #24
	orr	r3, r2, r3
	lsl	r3, r3, #24
	asr	r2, r3, #24
	ldr	r3, [fp, #-1084]
	add	r3, r3, #3
	ldr	r1, [fp, #-1096]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #2
	sub	r1, fp, #28
	add	r3, r1, r3
	ldr	r3, [r3, #-1028]
	lsl	r3, r3, #4
	lsl	r3, r3, #24
	asr	r3, r3, #24
	orr	r3, r2, r3
	lsl	r3, r3, #24
	asr	r2, r3, #24
	ldr	r3, [fp, #-1084]
	add	r3, r3, #4
	ldr	r1, [fp, #-1096]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #2
	sub	r1, fp, #28
	add	r3, r1, r3
	ldr	r3, [r3, #-1028]
	lsl	r3, r3, #3
	lsl	r3, r3, #24
	asr	r3, r3, #24
	orr	r3, r2, r3
	lsl	r3, r3, #24
	asr	r2, r3, #24
	ldr	r3, [fp, #-1084]
	add	r3, r3, #5
	ldr	r1, [fp, #-1096]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #2
	sub	r1, fp, #28
	add	r3, r1, r3
	ldr	r3, [r3, #-1028]
	lsl	r3, r3, #2
	lsl	r3, r3, #24
	asr	r3, r3, #24
	orr	r3, r2, r3
	lsl	r3, r3, #24
	asr	r2, r3, #24
	ldr	r3, [fp, #-1084]
	add	r3, r3, #6
	ldr	r1, [fp, #-1096]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #2
	sub	r1, fp, #28
	add	r3, r1, r3
	ldr	r3, [r3, #-1028]
	lsl	r3, r3, #1
	lsl	r3, r3, #24
	asr	r3, r3, #24
	orr	r3, r2, r3
	lsl	r3, r3, #24
	asr	r2, r3, #24
	ldr	r3, [fp, #-1084]
	add	r3, r3, #7
	ldr	r1, [fp, #-1096]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #2
	sub	r1, fp, #28
	add	r3, r1, r3
	ldr	r3, [r3, #-1028]
	lsl	r3, r3, #24
	asr	r3, r3, #24
	orr	r3, r2, r3
	lsl	r3, r3, #24
	asr	r1, r3, #24
	ldr	r2, [fp, #-1076]
	ldr	r3, [fp, #-1072]
	adds	r0, r2, #1
	str	r0, [fp, #-1180]
	adc	r0, r3, #0
	str	r0, [fp, #-1176]
	ldr	r4, [fp, #-1180]
	ldr	r5, [fp, #-1176]
	str	r4, [fp, #-1076]
	str	r5, [fp, #-1072]
	ldr	r3, [fp, #-1088]
	add	r3, r3, r2
	and	r2, r1, #255
	strb	r2, [r3]
	ldr	r2, [fp, #-1084]
	ldr	r3, [fp, #-1080]
	adds	r1, r2, #8
	str	r1, [fp, #-1188]
	adc	r3, r3, #0
	str	r3, [fp, #-1184]
	ldr	r3, [fp, #-1188]
	ldr	r4, [fp, #-1184]
	str	r3, [fp, #-1084]
	str	r4, [fp, #-1080]
.L21:
	ldr	r0, [fp, #-1084]
	ldr	r1, [fp, #-1080]
	ldr	r2, [fp, #-1108]
	ldr	r3, [fp, #-1104]
	cmp	r0, r2
	sbcs	r3, r1, r3
	blt	.L22
	ldr	r1, [fp, #-1100]
	ldr	r2, [fp, #-1076]
	ldr	r3, [fp, #-1072]
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-1088]
	b	.L23
.L20:
	ldr	r3, [fp, #-1088]
	mov	r2, #0
	strb	r2, [r3]
	ldr	r1, [fp, #-1100]
	ldr	r2, [fp, #-1076]
	ldr	r3, [fp, #-1072]
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-1088]
.L23:
	ldr	r2, .L25
	ldr	r1, [r2]
	ldr	r2, [fp, #-32]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L24
	bl	__stack_chk_fail
.L24:
	mov	r0, r3
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L26:
	.align	2
.L25:
	.word	.LC1
	.word	stderr
	.word	.LC0
	.size	encode, .-encode
	.section	.rodata
	.align	2
.LC2:
	.ascii	"orig len = %d\012\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	decode
	.syntax unified
	.arm
	.fpu softvfp
	.type	decode, %function
decode:
	@ args = 4, pretend = 0, frame = 1152
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #1152
	str	r0, [fp, #-1104]
	str	r2, [fp, #-1116]
	str	r3, [fp, #-1112]
	ldr	r3, [fp, #4]
	str	r3, [fp, #-1108]
	ldr	r3, .L49
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	mov	r3, #0
	strb	r3, [fp, #-1093]
	ldr	r3, [fp, #-1104]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #1
	bne	.L28
	ldr	r3, [fp, #-1116]
	sub	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-1088]
	ldr	r3, [fp, #-1088]
	cmp	r3, #0
	bne	.L29
	mov	r3, #0
	b	.L47
.L29:
	ldr	r3, [fp, #-1104]
	add	r1, r3, #1
	ldr	r3, [fp, #-1116]
	sub	r3, r3, #1
	mov	r2, r3
	ldr	r0, [fp, #-1088]
	bl	memcpy
	ldr	r2, [fp, #-1116]
	ldr	r3, [fp, #-1112]
	subs	r4, r2, #1
	sbc	r5, r3, #0
	ldr	r3, [fp, #-1108]
	stm	r3, {r4-r5}
	ldr	r3, [fp, #-1088]
	b	.L47
.L28:
	mov	r2, #1
	mov	r3, #0
	str	r2, [fp, #-1076]
	str	r3, [fp, #-1072]
.L31:
	ldr	r2, [fp, #-1076]
	ldr	r3, [fp, #-1072]
	adds	r8, r2, #1
	adc	r9, r3, #0
	str	r8, [fp, #-1076]
	str	r9, [fp, #-1072]
	ldr	r3, [fp, #-1104]
	add	r3, r3, r2
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldrb	r2, [fp, #-1093]	@ zero_extendqisi2
	add	r3, r2, #1
	strb	r3, [fp, #-1093]
	mov	r3, r2
	mov	r2, r1
	lsl	r3, r3, #2
	sub	r1, fp, #28
	add	r3, r1, r3
	str	r2, [r3, #-1028]
	ldr	r2, [fp, #-1076]
	ldr	r3, [fp, #-1104]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L31
	ldr	r2, [fp, #-1076]
	ldr	r3, [fp, #-1072]
	adds	r6, r2, #1
	adc	r7, r3, #0
	str	r6, [fp, #-1076]
	str	r7, [fp, #-1072]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-1068]
	str	r3, [fp, #-1064]
	mov	r3, #0
	str	r3, [fp, #-1092]
.L32:
	ldr	r2, [fp, #-1076]
	ldr	r3, [fp, #-1072]
	adds	r1, r2, #1
	str	r1, [fp, #-1124]
	adc	r1, r3, #0
	str	r1, [fp, #-1120]
	ldr	r0, [fp, #-1124]
	ldr	r1, [fp, #-1120]
	str	r0, [fp, #-1076]
	str	r1, [fp, #-1072]
	ldr	r3, [fp, #-1104]
	add	r3, r3, r2
	ldrb	r3, [r3]
	strb	r3, [fp, #-1093]
	ldrb	r3, [fp, #-1093]	@ zero_extendqisi2
	and	r2, r3, #127
	ldr	r3, [fp, #-1092]
	lsl	r3, r2, r3
	mov	r0, r3
	asr	r1, r0, #31
	ldr	r2, [fp, #-1068]
	ldr	r3, [fp, #-1064]
	orr	ip, r2, r0
	str	ip, [fp, #-1132]
	orr	r3, r3, r1
	str	r3, [fp, #-1128]
	ldr	r3, [fp, #-1132]
	ldr	r4, [fp, #-1128]
	str	r3, [fp, #-1068]
	str	r4, [fp, #-1064]
	ldr	r3, [fp, #-1092]
	add	r3, r3, #7
	str	r3, [fp, #-1092]
	sub	r3, fp, #1072
	sub	r3, r3, #12
	sub	r3, r3, #9
	ldrsb	r3, [r3]
	cmp	r3, #0
	blt	.L32
	ldr	r3, .L49+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-1068]
	mov	r2, r3
	ldr	r1, .L49+8
	bl	fprintf
	ldr	r3, [fp, #-1068]
	add	r3, r3, #7
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-1088]
	ldr	r3, [fp, #-1088]
	cmp	r3, #0
	bne	.L33
	mov	r3, #0
	b	.L47
.L33:
	ldr	r3, [fp, #-1104]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #8
	ldrls	pc, [pc, r3, asl #2]
	b	.L34
.L36:
	.word	.L39
	.word	.L34
	.word	.L38
	.word	.L34
	.word	.L37
	.word	.L34
	.word	.L34
	.word	.L34
	.word	.L35
.L35:
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-1084]
	str	r3, [fp, #-1080]
	b	.L40
.L41:
	ldr	r2, [fp, #-1076]
	ldr	r3, [fp, #-1072]
	adds	r1, r2, #1
	str	r1, [fp, #-1140]
	adc	r1, r3, #0
	str	r1, [fp, #-1136]
	ldr	r0, [fp, #-1140]
	ldr	r1, [fp, #-1136]
	str	r0, [fp, #-1076]
	str	r1, [fp, #-1072]
	ldr	r3, [fp, #-1104]
	add	r3, r3, r2
	ldrb	r3, [r3]
	strb	r3, [fp, #-1093]
	ldrb	r3, [fp, #-1093]	@ zero_extendqisi2
	lsr	r3, r3, #7
	and	r3, r3, #255
	and	r3, r3, #1
	lsl	r3, r3, #2
	sub	r2, fp, #28
	add	r3, r2, r3
	ldr	r2, [r3, #-1028]
	ldr	r3, [fp, #-1084]
	ldr	r1, [fp, #-1088]
	add	r3, r1, r3
	and	r2, r2, #255
	strb	r2, [r3]
	ldrb	r3, [fp, #-1093]	@ zero_extendqisi2
	lsr	r3, r3, #6
	and	r3, r3, #255
	and	r3, r3, #1
	lsl	r3, r3, #2
	sub	r2, fp, #28
	add	r3, r2, r3
	ldr	r2, [r3, #-1028]
	ldr	r3, [fp, #-1084]
	add	r3, r3, #1
	ldr	r1, [fp, #-1088]
	add	r3, r1, r3
	and	r2, r2, #255
	strb	r2, [r3]
	ldrb	r3, [fp, #-1093]	@ zero_extendqisi2
	lsr	r3, r3, #5
	and	r3, r3, #255
	and	r3, r3, #1
	lsl	r3, r3, #2
	sub	r2, fp, #28
	add	r3, r2, r3
	ldr	r2, [r3, #-1028]
	ldr	r3, [fp, #-1084]
	add	r3, r3, #2
	ldr	r1, [fp, #-1088]
	add	r3, r1, r3
	and	r2, r2, #255
	strb	r2, [r3]
	ldrb	r3, [fp, #-1093]	@ zero_extendqisi2
	lsr	r3, r3, #4
	and	r3, r3, #255
	and	r3, r3, #1
	lsl	r3, r3, #2
	sub	r2, fp, #28
	add	r3, r2, r3
	ldr	r2, [r3, #-1028]
	ldr	r3, [fp, #-1084]
	add	r3, r3, #3
	ldr	r1, [fp, #-1088]
	add	r3, r1, r3
	and	r2, r2, #255
	strb	r2, [r3]
	ldrb	r3, [fp, #-1093]	@ zero_extendqisi2
	lsr	r3, r3, #3
	and	r3, r3, #255
	and	r3, r3, #1
	lsl	r3, r3, #2
	sub	r2, fp, #28
	add	r3, r2, r3
	ldr	r2, [r3, #-1028]
	ldr	r3, [fp, #-1084]
	add	r3, r3, #4
	ldr	r1, [fp, #-1088]
	add	r3, r1, r3
	and	r2, r2, #255
	strb	r2, [r3]
	ldrb	r3, [fp, #-1093]	@ zero_extendqisi2
	lsr	r3, r3, #2
	and	r3, r3, #255
	and	r3, r3, #1
	lsl	r3, r3, #2
	sub	r2, fp, #28
	add	r3, r2, r3
	ldr	r2, [r3, #-1028]
	ldr	r3, [fp, #-1084]
	add	r3, r3, #5
	ldr	r1, [fp, #-1088]
	add	r3, r1, r3
	and	r2, r2, #255
	strb	r2, [r3]
	ldrb	r3, [fp, #-1093]	@ zero_extendqisi2
	lsr	r3, r3, #1
	and	r3, r3, #255
	and	r3, r3, #1
	lsl	r3, r3, #2
	sub	r2, fp, #28
	add	r3, r2, r3
	ldr	r2, [r3, #-1028]
	ldr	r3, [fp, #-1084]
	add	r3, r3, #6
	ldr	r1, [fp, #-1088]
	add	r3, r1, r3
	and	r2, r2, #255
	strb	r2, [r3]
	ldrb	r3, [fp, #-1093]	@ zero_extendqisi2
	and	r3, r3, #1
	lsl	r3, r3, #2
	sub	r2, fp, #28
	add	r3, r2, r3
	ldr	r2, [r3, #-1028]
	ldr	r3, [fp, #-1084]
	add	r3, r3, #7
	ldr	r1, [fp, #-1088]
	add	r3, r1, r3
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r2, [fp, #-1084]
	ldr	r3, [fp, #-1080]
	adds	r1, r2, #8
	str	r1, [fp, #-1148]
	adc	r3, r3, #0
	str	r3, [fp, #-1144]
	ldr	r3, [fp, #-1148]
	ldr	r4, [fp, #-1144]
	str	r3, [fp, #-1084]
	str	r4, [fp, #-1080]
.L40:
	ldr	r0, [fp, #-1084]
	ldr	r1, [fp, #-1080]
	ldr	r2, [fp, #-1068]
	ldr	r3, [fp, #-1064]
	cmp	r0, r2
	sbcs	r3, r1, r3
	blt	.L41
	b	.L42
.L37:
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-1084]
	str	r3, [fp, #-1080]
	b	.L43
.L44:
	ldr	r2, [fp, #-1076]
	ldr	r3, [fp, #-1072]
	adds	r1, r2, #1
	str	r1, [fp, #-1156]
	adc	r1, r3, #0
	str	r1, [fp, #-1152]
	ldr	r0, [fp, #-1156]
	ldr	r1, [fp, #-1152]
	str	r0, [fp, #-1076]
	str	r1, [fp, #-1072]
	ldr	r3, [fp, #-1104]
	add	r3, r3, r2
	ldrb	r3, [r3]
	strb	r3, [fp, #-1093]
	ldrb	r3, [fp, #-1093]	@ zero_extendqisi2
	lsr	r3, r3, #6
	and	r3, r3, #255
	and	r3, r3, #3
	lsl	r3, r3, #2
	sub	r2, fp, #28
	add	r3, r2, r3
	ldr	r2, [r3, #-1028]
	ldr	r3, [fp, #-1084]
	ldr	r1, [fp, #-1088]
	add	r3, r1, r3
	and	r2, r2, #255
	strb	r2, [r3]
	ldrb	r3, [fp, #-1093]	@ zero_extendqisi2
	lsr	r3, r3, #4
	and	r3, r3, #255
	and	r3, r3, #3
	lsl	r3, r3, #2
	sub	r2, fp, #28
	add	r3, r2, r3
	ldr	r2, [r3, #-1028]
	ldr	r3, [fp, #-1084]
	add	r3, r3, #1
	ldr	r1, [fp, #-1088]
	add	r3, r1, r3
	and	r2, r2, #255
	strb	r2, [r3]
	ldrb	r3, [fp, #-1093]	@ zero_extendqisi2
	lsr	r3, r3, #2
	and	r3, r3, #255
	and	r3, r3, #3
	lsl	r3, r3, #2
	sub	r2, fp, #28
	add	r3, r2, r3
	ldr	r2, [r3, #-1028]
	ldr	r3, [fp, #-1084]
	add	r3, r3, #2
	ldr	r1, [fp, #-1088]
	add	r3, r1, r3
	and	r2, r2, #255
	strb	r2, [r3]
	ldrb	r3, [fp, #-1093]	@ zero_extendqisi2
	and	r3, r3, #3
	lsl	r3, r3, #2
	sub	r2, fp, #28
	add	r3, r2, r3
	ldr	r2, [r3, #-1028]
	ldr	r3, [fp, #-1084]
	add	r3, r3, #3
	ldr	r1, [fp, #-1088]
	add	r3, r1, r3
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r2, [fp, #-1084]
	ldr	r3, [fp, #-1080]
	adds	r1, r2, #4
	str	r1, [fp, #-1164]
	adc	r3, r3, #0
	str	r3, [fp, #-1160]
	ldr	r3, [fp, #-1164]
	ldr	r4, [fp, #-1160]
	str	r3, [fp, #-1084]
	str	r4, [fp, #-1080]
.L43:
	ldr	r0, [fp, #-1084]
	ldr	r1, [fp, #-1080]
	ldr	r2, [fp, #-1068]
	ldr	r3, [fp, #-1064]
	cmp	r0, r2
	sbcs	r3, r1, r3
	blt	.L44
	b	.L42
.L38:
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-1084]
	str	r3, [fp, #-1080]
	b	.L45
.L46:
	ldr	r2, [fp, #-1076]
	ldr	r3, [fp, #-1072]
	adds	r1, r2, #1
	str	r1, [fp, #-1172]
	adc	r1, r3, #0
	str	r1, [fp, #-1168]
	ldr	r0, [fp, #-1172]
	ldr	r1, [fp, #-1168]
	str	r0, [fp, #-1076]
	str	r1, [fp, #-1072]
	ldr	r3, [fp, #-1104]
	add	r3, r3, r2
	ldrb	r3, [r3]
	strb	r3, [fp, #-1093]
	ldrb	r3, [fp, #-1093]	@ zero_extendqisi2
	lsr	r3, r3, #4
	and	r3, r3, #255
	and	r3, r3, #15
	lsl	r3, r3, #2
	sub	r2, fp, #28
	add	r3, r2, r3
	ldr	r2, [r3, #-1028]
	ldr	r3, [fp, #-1084]
	ldr	r1, [fp, #-1088]
	add	r3, r1, r3
	and	r2, r2, #255
	strb	r2, [r3]
	ldrb	r3, [fp, #-1093]	@ zero_extendqisi2
	and	r3, r3, #15
	lsl	r3, r3, #2
	sub	r2, fp, #28
	add	r3, r2, r3
	ldr	r2, [r3, #-1028]
	ldr	r3, [fp, #-1084]
	add	r3, r3, #1
	ldr	r1, [fp, #-1088]
	add	r3, r1, r3
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r2, [fp, #-1084]
	ldr	r3, [fp, #-1080]
	adds	r1, r2, #8
	str	r1, [fp, #-1180]
	adc	r3, r3, #0
	str	r3, [fp, #-1176]
	ldr	r3, [fp, #-1180]
	ldr	r4, [fp, #-1176]
	str	r3, [fp, #-1084]
	str	r4, [fp, #-1080]
.L45:
	ldr	r0, [fp, #-1084]
	ldr	r1, [fp, #-1080]
	ldr	r2, [fp, #-1068]
	ldr	r3, [fp, #-1064]
	cmp	r0, r2
	sbcs	r3, r1, r3
	blt	.L46
	b	.L42
.L39:
	ldr	r3, [fp, #-1056]
	ldr	r2, [fp, #-1068]
	mov	r1, r3
	ldr	r0, [fp, #-1088]
	bl	memset
	b	.L42
.L34:
	ldr	r0, [fp, #-1088]
	bl	free
	mov	r3, #0
	b	.L47
.L42:
	ldr	r1, [fp, #-1108]
	ldr	r2, [fp, #-1068]
	ldr	r3, [fp, #-1064]
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-1088]
.L47:
	ldr	r2, .L49
	ldr	r1, [r2]
	ldr	r2, [fp, #-32]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L48
	bl	__stack_chk_fail
.L48:
	mov	r0, r3
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L50:
	.align	2
.L49:
	.word	.LC3
	.word	stderr
	.word	.LC2
	.size	decode, .-decode
	.section	.rodata
	.align	2
.LC4:
	.ascii	"read\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	load, %function
load:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #32
	str	r0, [fp, #-56]
	mov	r3, #0
	str	r3, [fp, #-52]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
.L56:
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	subs	r4, r0, r2
	sbc	r5, r1, r3
	cmp	r5, #0
	cmpeq	r4, #1048576
	bcs	.L52
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	orrs	r3, r2, r3
	beq	.L53
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	adds	r8, r2, r2
	adc	r9, r3, r3
	mov	r2, r8
	mov	r3, r9
	b	.L54
.L53:
	mov	r2, #1048576
	mov	r3, #0
.L54:
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-44]
	mov	r1, r3
	ldr	r0, [fp, #-52]
	bl	realloc
	str	r0, [fp, #-52]
.L52:
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	mov	r2, #1048576
	mov	r1, r3
	mov	r0, #0
	bl	read
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	ble	.L55
	ldr	r3, [fp, #-48]
	mov	r2, r3
	asr	r3, r2, #31
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	adds	r6, r0, r2
	adc	r7, r1, r3
	str	r6, [fp, #-36]
	str	r7, [fp, #-32]
.L55:
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bgt	.L56
	ldr	r3, [fp, #-48]
	cmn	r3, #1
	bne	.L57
	ldr	r0, .L59
	bl	perror
.L57:
	ldr	r1, [fp, #-56]
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-52]
	mov	r0, r3
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L60:
	.align	2
.L59:
	.word	.LC4
	.size	load, .-load
	.section	.rodata
	.align	2
.LC5:
	.ascii	"-d\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L66
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #28
	mov	r0, r3
	bl	load
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-40]
	cmp	r3, #1
	ble	.L62
	ldr	r3, [fp, #-44]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L66+4
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L62
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	sub	r3, fp, #20
	str	r3, [sp]
	mov	r2, r0
	mov	r3, r1
	ldr	r0, [fp, #-32]
	bl	decode
	str	r0, [fp, #-36]
	b	.L63
.L62:
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	sub	r3, fp, #20
	str	r3, [sp]
	mov	r2, r0
	mov	r3, r1
	ldr	r0, [fp, #-32]
	bl	encode
	str	r0, [fp, #-36]
.L63:
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	ldr	r1, [fp, #-36]
	mov	r0, #1
	bl	write
	ldr	r0, [fp, #-32]
	bl	free
	ldr	r0, [fp, #-36]
	bl	free
	mov	r3, #0
	ldr	r2, .L66
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L65
	bl	__stack_chk_fail
.L65:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L67:
	.align	2
.L66:
	.word	.LC6
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
