	.file	"27746.c"
	.intel_syntax noprefix
	.text
	.globl	base64Encoder
	.type	base64Encoder, @function
base64Encoder:
.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, 144
	mov	QWORD PTR -136[rbp], rdi
	mov	DWORD PTR -140[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movabs	rax, 5208208757389214273
	movabs	rdx, 5786930140093827657
	mov	QWORD PTR -80[rbp], rax
	mov	QWORD PTR -72[rbp], rdx
	movabs	rax, 6365651522798441041
	movabs	rdx, 7378413942531512921
	mov	QWORD PTR -64[rbp], rax
	mov	QWORD PTR -56[rbp], rdx
	movabs	rax, 7957135325236127847
	movabs	rdx, 8535856707940741231
	mov	QWORD PTR -48[rbp], rax
	mov	QWORD PTR -40[rbp], rdx
	movabs	rax, 3689065129052829815
	movabs	rdx, 3398873257388422452
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -24[rbp], rdx
	mov	BYTE PTR -16[rbp], 0
	mov	edi, 1000
	call	malloc@PLT
	mov	QWORD PTR -88[rbp], rax
	mov	DWORD PTR -120[rbp], 0
	mov	DWORD PTR -116[rbp], 0
	mov	DWORD PTR -112[rbp], 0
	mov	DWORD PTR -108[rbp], 0
	mov	DWORD PTR -96[rbp], 0
	mov	DWORD PTR -104[rbp], 0
	jmp	.L2
.L10:
	mov	DWORD PTR -112[rbp], 0
	mov	DWORD PTR -108[rbp], 0
	mov	DWORD PTR -120[rbp], 0
	mov	eax, DWORD PTR -104[rbp]
	mov	DWORD PTR -100[rbp], eax
	jmp	.L3
.L5:
	sal	DWORD PTR -112[rbp], 8
	mov	eax, DWORD PTR -100[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -136[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	or	DWORD PTR -112[rbp], eax
	add	DWORD PTR -108[rbp], 1
	add	DWORD PTR -100[rbp], 1
.L3:
	mov	eax, DWORD PTR -100[rbp]
	cmp	eax, DWORD PTR -140[rbp]
	jge	.L4
	mov	eax, DWORD PTR -104[rbp]
	add	eax, 2
	cmp	DWORD PTR -100[rbp], eax
	jle	.L5
.L4:
	mov	eax, DWORD PTR -108[rbp]
	sal	eax, 3
	mov	DWORD PTR -120[rbp], eax
	mov	eax, DWORD PTR -120[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1431655766
	shr	rdx, 32
	mov	esi, eax
	sar	esi, 31
	mov	ecx, edx
	sub	ecx, esi
	mov	edx, ecx
	add	edx, edx
	add	edx, ecx
	sub	eax, edx
	mov	DWORD PTR -116[rbp], eax
	jmp	.L6
.L9:
	cmp	DWORD PTR -120[rbp], 5
	jle	.L7
	mov	eax, DWORD PTR -120[rbp]
	sub	eax, 6
	mov	DWORD PTR -92[rbp], eax
	mov	eax, DWORD PTR -92[rbp]
	mov	edx, DWORD PTR -112[rbp]
	mov	ecx, eax
	sar	edx, cl
	mov	eax, edx
	and	eax, 63
	mov	DWORD PTR -124[rbp], eax
	sub	DWORD PTR -120[rbp], 6
	jmp	.L8
.L7:
	mov	eax, 6
	sub	eax, DWORD PTR -120[rbp]
	mov	DWORD PTR -92[rbp], eax
	mov	eax, DWORD PTR -92[rbp]
	mov	edx, DWORD PTR -112[rbp]
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	and	eax, 63
	mov	DWORD PTR -124[rbp], eax
	mov	DWORD PTR -120[rbp], 0
.L8:
	mov	eax, DWORD PTR -96[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -96[rbp], edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -88[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -124[rbp]
	cdqe
	movzx	eax, BYTE PTR -80[rbp+rax]
	mov	BYTE PTR [rdx], al
.L6:
	cmp	DWORD PTR -120[rbp], 0
	jne	.L9
	add	DWORD PTR -104[rbp], 3
.L2:
	mov	eax, DWORD PTR -104[rbp]
	cmp	eax, DWORD PTR -140[rbp]
	jl	.L10
	mov	DWORD PTR -104[rbp], 1
	jmp	.L11
.L12:
	mov	eax, DWORD PTR -96[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -96[rbp], edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 61
	add	DWORD PTR -104[rbp], 1
.L11:
	mov	eax, DWORD PTR -104[rbp]
	cmp	eax, DWORD PTR -116[rbp]
	jle	.L12
	mov	eax, DWORD PTR -96[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	base64Encoder, .-base64Encoder
	.section	.rodata
.LC0:
	.string	"Input string is : %s\n"
.LC1:
	.string	"Encoded string is : %s\n"
	.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, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -14[rbp], 1819043176
	mov	WORD PTR -10[rbp], 111
	mov	DWORD PTR -20[rbp], 6
	sub	DWORD PTR -20[rbp], 1
	lea	rax, -14[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, DWORD PTR -20[rbp]
	lea	rax, -14[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	base64Encoder
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	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	"27746.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxy"
	.ascii	"z0123456789+/\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	base64Encoder
	.syntax unified
	.arm
	.fpu softvfp
	.type	base64Encoder, %function
base64Encoder:
	@ args = 0, pretend = 0, frame = 120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #120
	str	r0, [fp, #-120]
	str	r1, [fp, #-124]
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r2, .L15+4
	sub	r3, fp, #76
	mov	r1, r2
	mov	r2, #65
	mov	r0, r3
	bl	memcpy
	mov	r0, #1000
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-84]
	mov	r3, #0
	str	r3, [fp, #-112]
	mov	r3, #0
	str	r3, [fp, #-108]
	mov	r3, #0
	str	r3, [fp, #-104]
	mov	r3, #0
	str	r3, [fp, #-100]
	mov	r3, #0
	str	r3, [fp, #-88]
	mov	r3, #0
	str	r3, [fp, #-96]
	b	.L2
.L10:
	mov	r3, #0
	str	r3, [fp, #-104]
	mov	r3, #0
	str	r3, [fp, #-100]
	mov	r3, #0
	str	r3, [fp, #-112]
	ldr	r3, [fp, #-96]
	str	r3, [fp, #-92]
	b	.L3
.L5:
	ldr	r3, [fp, #-104]
	lsl	r3, r3, #8
	str	r3, [fp, #-104]
	ldr	r3, [fp, #-92]
	ldr	r2, [fp, #-120]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-104]
	orr	r3, r3, r2
	str	r3, [fp, #-104]
	ldr	r3, [fp, #-100]
	add	r3, r3, #1
	str	r3, [fp, #-100]
	ldr	r3, [fp, #-92]
	add	r3, r3, #1
	str	r3, [fp, #-92]
.L3:
	ldr	r2, [fp, #-92]
	ldr	r3, [fp, #-124]
	cmp	r2, r3
	bge	.L4
	ldr	r3, [fp, #-96]
	add	r3, r3, #2
	ldr	r2, [fp, #-92]
	cmp	r2, r3
	ble	.L5
.L4:
	ldr	r3, [fp, #-100]
	lsl	r3, r3, #3
	str	r3, [fp, #-112]
	ldr	r2, [fp, #-112]
	ldr	r3, .L15+8
	smull	r0, r1, r3, r2
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #1
	add	r3, r3, r1
	sub	r3, r2, r3
	str	r3, [fp, #-108]
	b	.L6
.L9:
	ldr	r3, [fp, #-112]
	cmp	r3, #5
	ble	.L7
	ldr	r3, [fp, #-112]
	sub	r3, r3, #6
	str	r3, [fp, #-80]
	ldr	r2, [fp, #-104]
	ldr	r3, [fp, #-80]
	asr	r3, r2, r3
	and	r3, r3, #63
	str	r3, [fp, #-116]
	ldr	r3, [fp, #-112]
	sub	r3, r3, #6
	str	r3, [fp, #-112]
	b	.L8
.L7:
	ldr	r3, [fp, #-112]
	rsb	r3, r3, #6
	str	r3, [fp, #-80]
	ldr	r2, [fp, #-104]
	ldr	r3, [fp, #-80]
	lsl	r3, r2, r3
	and	r3, r3, #63
	str	r3, [fp, #-116]
	mov	r3, #0
	str	r3, [fp, #-112]
.L8:
	ldr	r3, [fp, #-88]
	add	r2, r3, #1
	str	r2, [fp, #-88]
	mov	r2, r3
	ldr	r3, [fp, #-84]
	add	r3, r3, r2
	sub	r1, fp, #76
	ldr	r2, [fp, #-116]
	add	r2, r1, r2
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
.L6:
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	bne	.L9
	ldr	r3, [fp, #-96]
	add	r3, r3, #3
	str	r3, [fp, #-96]
.L2:
	ldr	r2, [fp, #-96]
	ldr	r3, [fp, #-124]
	cmp	r2, r3
	blt	.L10
	mov	r3, #1
	str	r3, [fp, #-96]
	b	.L11
.L12:
	ldr	r3, [fp, #-88]
	add	r2, r3, #1
	str	r2, [fp, #-88]
	mov	r2, r3
	ldr	r3, [fp, #-84]
	add	r3, r3, r2
	mov	r2, #61
	strb	r2, [r3]
	ldr	r3, [fp, #-96]
	add	r3, r3, #1
	str	r3, [fp, #-96]
.L11:
	ldr	r2, [fp, #-96]
	ldr	r3, [fp, #-108]
	cmp	r2, r3
	ble	.L12
	ldr	r3, [fp, #-88]
	ldr	r2, [fp, #-84]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-84]
	ldr	r2, .L15
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC1
	.word	.LC0
	.word	1431655766
	.size	base64Encoder, .-base64Encoder
	.section	.rodata
	.align	2
.LC3:
	.ascii	"Input string is : %s\012\000"
	.align	2
.LC4:
	.ascii	"Encoded string is : %s\012\000"
	.align	2
.LC2:
	.ascii	"hello\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.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	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r2, .L20+4
	sub	r3, fp, #16
	ldm	r2, {r0, r1}
	str	r0, [r3]
	add	r3, r3, #4
	strh	r1, [r3]	@ movhi
	mov	r3, #6
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	str	r3, [fp, #-20]
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, .L20+8
	bl	printf
	sub	r3, fp, #16
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	base64Encoder
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L20+12
	bl	printf
	mov	r3, #0
	ldr	r2, .L20
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L19
	bl	__stack_chk_fail
.L19:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC5
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
