	.file	"893881.c"
	.intel_syntax noprefix
	.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, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, 1
	movabs	rdx, -6148914691236517205
	mul	rdx
	mov	rax, rdx
	shr	rax
	add	rax, 1
	sal	rax, 2
	add	rax, 1
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -36[rbp], 0
	mov	DWORD PTR -32[rbp], 0
	jmp	.L2
.L46:
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	shr	al, 2
	movzx	eax, al
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 4
	and	eax, 48
	mov	DWORD PTR -48[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, rdx
	cmp	rax, 1
	jbe	.L3
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	shr	al, 4
	movzx	eax, al
	xor	DWORD PTR -48[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 2
	and	eax, 60
	mov	DWORD PTR -44[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, rdx
	cmp	rax, 2
	jbe	.L4
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 2[rax]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	shr	al, 6
	movzx	eax, al
	xor	DWORD PTR -44[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 2[rax]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	and	eax, 63
	mov	DWORD PTR -40[rbp], eax
	jmp	.L5
.L4:
	mov	DWORD PTR -40[rbp], -1
	jmp	.L5
.L3:
	mov	DWORD PTR -44[rbp], -1
	mov	DWORD PTR -40[rbp], -1
.L5:
	cmp	DWORD PTR -28[rbp], -1
	je	.L6
	cmp	DWORD PTR -28[rbp], 25
	jg	.L7
	mov	eax, DWORD PTR -28[rbp]
	add	eax, 65
	jmp	.L15
.L7:
	cmp	DWORD PTR -28[rbp], 51
	jg	.L9
	mov	eax, DWORD PTR -28[rbp]
	add	eax, 71
	jmp	.L15
.L9:
	cmp	DWORD PTR -28[rbp], 61
	jg	.L11
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, 4
	jmp	.L15
.L11:
	cmp	DWORD PTR -28[rbp], 62
	jne	.L13
	mov	eax, 43
	jmp	.L15
.L13:
	mov	eax, 47
	jmp	.L15
.L6:
	mov	eax, 61
.L15:
	mov	edx, DWORD PTR -32[rbp]
	movsx	rcx, edx
	mov	rdx, QWORD PTR -8[rbp]
	add	rdx, rcx
	mov	BYTE PTR [rdx], al
	cmp	DWORD PTR -48[rbp], -1
	je	.L16
	cmp	DWORD PTR -48[rbp], 25
	jg	.L17
	mov	eax, DWORD PTR -48[rbp]
	add	eax, 65
	jmp	.L25
.L17:
	cmp	DWORD PTR -48[rbp], 51
	jg	.L19
	mov	eax, DWORD PTR -48[rbp]
	add	eax, 71
	jmp	.L25
.L19:
	cmp	DWORD PTR -48[rbp], 61
	jg	.L21
	mov	eax, DWORD PTR -48[rbp]
	sub	eax, 4
	jmp	.L25
.L21:
	cmp	DWORD PTR -48[rbp], 62
	jne	.L23
	mov	eax, 43
	jmp	.L25
.L23:
	mov	eax, 47
	jmp	.L25
.L16:
	mov	eax, 61
.L25:
	mov	edx, DWORD PTR -32[rbp]
	movsx	rdx, edx
	lea	rcx, 1[rdx]
	mov	rdx, QWORD PTR -8[rbp]
	add	rdx, rcx
	mov	BYTE PTR [rdx], al
	cmp	DWORD PTR -44[rbp], -1
	je	.L26
	cmp	DWORD PTR -44[rbp], 25
	jg	.L27
	mov	eax, DWORD PTR -44[rbp]
	add	eax, 65
	jmp	.L35
.L27:
	cmp	DWORD PTR -44[rbp], 51
	jg	.L29
	mov	eax, DWORD PTR -44[rbp]
	add	eax, 71
	jmp	.L35
.L29:
	cmp	DWORD PTR -44[rbp], 61
	jg	.L31
	mov	eax, DWORD PTR -44[rbp]
	sub	eax, 4
	jmp	.L35
.L31:
	cmp	DWORD PTR -44[rbp], 62
	jne	.L33
	mov	eax, 43
	jmp	.L35
.L33:
	mov	eax, 47
	jmp	.L35
.L26:
	mov	eax, 61
.L35:
	mov	edx, DWORD PTR -32[rbp]
	movsx	rdx, edx
	lea	rcx, 2[rdx]
	mov	rdx, QWORD PTR -8[rbp]
	add	rdx, rcx
	mov	BYTE PTR [rdx], al
	cmp	DWORD PTR -40[rbp], -1
	je	.L36
	cmp	DWORD PTR -40[rbp], 25
	jg	.L37
	mov	eax, DWORD PTR -40[rbp]
	add	eax, 65
	jmp	.L45
.L37:
	cmp	DWORD PTR -40[rbp], 51
	jg	.L39
	mov	eax, DWORD PTR -40[rbp]
	add	eax, 71
	jmp	.L45
.L39:
	cmp	DWORD PTR -40[rbp], 61
	jg	.L41
	mov	eax, DWORD PTR -40[rbp]
	sub	eax, 4
	jmp	.L45
.L41:
	cmp	DWORD PTR -40[rbp], 62
	jne	.L43
	mov	eax, 43
	jmp	.L45
.L43:
	mov	eax, 47
	jmp	.L45
.L36:
	mov	eax, 61
.L45:
	mov	edx, DWORD PTR -32[rbp]
	movsx	rdx, edx
	lea	rcx, 3[rdx]
	mov	rdx, QWORD PTR -8[rbp]
	add	rdx, rcx
	mov	BYTE PTR [rdx], al
	add	DWORD PTR -36[rbp], 3
	add	DWORD PTR -32[rbp], 4
.L2:
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	cmp	QWORD PTR -24[rbp], rax
	ja	.L46
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	encode, .-encode
	.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	encode
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	puts@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	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	"893881.c"
	.text
	.align	2
	.global	encode
	.syntax unified
	.arm
	.fpu softvfp
	.type	encode, %function
encode:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-48]
	ldr	r0, [fp, #-48]
	bl	strlen
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	ldr	r2, .L48
	umull	r1, r3, r2, r3
	lsr	r3, r3, #1
	add	r3, r3, #1
	lsl	r3, r3, #2
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r0, [fp, #-16]
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L2
.L46:
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsr	r3, r3, #2
	and	r3, r3, #255
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #4
	and	r3, r3, #48
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-20]
	sub	r3, r2, r3
	cmp	r3, #1
	bls	.L3
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsr	r3, r3, #4
	and	r3, r3, #255
	mov	r2, r3
	ldr	r3, [fp, #-40]
	eor	r3, r3, r2
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #2
	and	r3, r3, #60
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-20]
	sub	r3, r2, r3
	cmp	r3, #2
	bls	.L4
	ldr	r3, [fp, #-28]
	add	r3, r3, #2
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsr	r3, r3, #6
	and	r3, r3, #255
	mov	r2, r3
	ldr	r3, [fp, #-36]
	eor	r3, r3, r2
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-28]
	add	r3, r3, #2
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r3, r3, #63
	str	r3, [fp, #-32]
	b	.L5
.L4:
	mvn	r3, #0
	str	r3, [fp, #-32]
	b	.L5
.L3:
	mvn	r3, #0
	str	r3, [fp, #-36]
	mvn	r3, #0
	str	r3, [fp, #-32]
.L5:
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	beq	.L6
	ldr	r3, [fp, #-8]
	cmp	r3, #25
	bgt	.L7
	ldr	r3, [fp, #-8]
	and	r3, r3, #255
	add	r3, r3, #65
	and	r3, r3, #255
	b	.L15
.L7:
	ldr	r3, [fp, #-8]
	cmp	r3, #51
	bgt	.L9
	ldr	r3, [fp, #-8]
	and	r3, r3, #255
	add	r3, r3, #71
	and	r3, r3, #255
	b	.L15
.L9:
	ldr	r3, [fp, #-8]
	cmp	r3, #61
	bgt	.L11
	ldr	r3, [fp, #-8]
	and	r3, r3, #255
	sub	r3, r3, #4
	and	r3, r3, #255
	b	.L15
.L11:
	ldr	r3, [fp, #-8]
	cmp	r3, #62
	bne	.L13
	mov	r3, #43
	b	.L15
.L13:
	mov	r3, #47
	b	.L15
.L6:
	mov	r3, #61
.L15:
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-12]
	add	r2, r1, r2
	strb	r3, [r2]
	ldr	r3, [fp, #-40]
	cmn	r3, #1
	beq	.L16
	ldr	r3, [fp, #-40]
	cmp	r3, #25
	bgt	.L17
	ldr	r3, [fp, #-40]
	and	r3, r3, #255
	add	r3, r3, #65
	and	r3, r3, #255
	b	.L25
.L17:
	ldr	r3, [fp, #-40]
	cmp	r3, #51
	bgt	.L19
	ldr	r3, [fp, #-40]
	and	r3, r3, #255
	add	r3, r3, #71
	and	r3, r3, #255
	b	.L25
.L19:
	ldr	r3, [fp, #-40]
	cmp	r3, #61
	bgt	.L21
	ldr	r3, [fp, #-40]
	and	r3, r3, #255
	sub	r3, r3, #4
	and	r3, r3, #255
	b	.L25
.L21:
	ldr	r3, [fp, #-40]
	cmp	r3, #62
	bne	.L23
	mov	r3, #43
	b	.L25
.L23:
	mov	r3, #47
	b	.L25
.L16:
	mov	r3, #61
.L25:
	ldr	r2, [fp, #-24]
	add	r2, r2, #1
	ldr	r1, [fp, #-12]
	add	r2, r1, r2
	strb	r3, [r2]
	ldr	r3, [fp, #-36]
	cmn	r3, #1
	beq	.L26
	ldr	r3, [fp, #-36]
	cmp	r3, #25
	bgt	.L27
	ldr	r3, [fp, #-36]
	and	r3, r3, #255
	add	r3, r3, #65
	and	r3, r3, #255
	b	.L35
.L27:
	ldr	r3, [fp, #-36]
	cmp	r3, #51
	bgt	.L29
	ldr	r3, [fp, #-36]
	and	r3, r3, #255
	add	r3, r3, #71
	and	r3, r3, #255
	b	.L35
.L29:
	ldr	r3, [fp, #-36]
	cmp	r3, #61
	bgt	.L31
	ldr	r3, [fp, #-36]
	and	r3, r3, #255
	sub	r3, r3, #4
	and	r3, r3, #255
	b	.L35
.L31:
	ldr	r3, [fp, #-36]
	cmp	r3, #62
	bne	.L33
	mov	r3, #43
	b	.L35
.L33:
	mov	r3, #47
	b	.L35
.L26:
	mov	r3, #61
.L35:
	ldr	r2, [fp, #-24]
	add	r2, r2, #2
	ldr	r1, [fp, #-12]
	add	r2, r1, r2
	strb	r3, [r2]
	ldr	r3, [fp, #-32]
	cmn	r3, #1
	beq	.L36
	ldr	r3, [fp, #-32]
	cmp	r3, #25
	bgt	.L37
	ldr	r3, [fp, #-32]
	and	r3, r3, #255
	add	r3, r3, #65
	and	r3, r3, #255
	b	.L45
.L37:
	ldr	r3, [fp, #-32]
	cmp	r3, #51
	bgt	.L39
	ldr	r3, [fp, #-32]
	and	r3, r3, #255
	add	r3, r3, #71
	and	r3, r3, #255
	b	.L45
.L39:
	ldr	r3, [fp, #-32]
	cmp	r3, #61
	bgt	.L41
	ldr	r3, [fp, #-32]
	and	r3, r3, #255
	sub	r3, r3, #4
	and	r3, r3, #255
	b	.L45
.L41:
	ldr	r3, [fp, #-32]
	cmp	r3, #62
	bne	.L43
	mov	r3, #43
	b	.L45
.L43:
	mov	r3, #47
	b	.L45
.L36:
	mov	r3, #61
.L45:
	ldr	r2, [fp, #-24]
	add	r2, r2, #3
	ldr	r1, [fp, #-12]
	add	r2, r1, r2
	strb	r3, [r2]
	ldr	r3, [fp, #-28]
	add	r3, r3, #3
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-24]
	add	r3, r3, #4
	str	r3, [fp, #-24]
.L2:
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bhi	.L46
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L49:
	.align	2
.L48:
	.word	-1431655765
	.size	encode, .-encode
	.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	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	encode
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	puts
	ldr	r0, [fp, #-8]
	bl	free
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
