	.file	"612974.c"
	.intel_syntax noprefix
	.text
	.globl	base64_table
	.section	.rodata
	.align 32
	.type	base64_table, @object
	.size	base64_table, 65
base64_table:
	.string	"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
.LC0:
	.string	"No file name passed.\n"
.LC1:
	.string	"r"
.LC2:
	.string	"Failed to open file"
.LC3:
	.string	"Failed to close file"
	.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
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	cmp	DWORD PTR -20[rbp], 2
	je	.L2
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 21
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L3
.L2:
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L4
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	eax, 2
	jmp	.L3
.L4:
	mov	rax, QWORD PTR stdout[rip]
	mov	rdx, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	base64_encode
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	test	eax, eax
	je	.L5
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	eax, 3
	jmp	.L3
.L5:
	mov	eax, 0
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
.LC4:
	.string	"the_stack_data/612974.c"
.LC5:
	.string	"feof(in)"
.LC6:
	.string	"\r\n"
	.text
	.globl	base64_encode
	.type	base64_encode, @function
base64_encode:
.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, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -13[rbp], 0
	mov	BYTE PTR -9[rbp], 0
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	setne	al
	mov	BYTE PTR -33[rbp], al
	jmp	.L7
.L13:
	mov	QWORD PTR -32[rbp], 0
	jmp	.L8
.L12:
	mov	rdx, QWORD PTR -64[rbp]
	lea	rax, -16[rbp]
	mov	rcx, rdx
	mov	edx, 3
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L9
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	jne	.L10
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 71
	lea	rsi, .LC4[rip]
	lea	rdi, .LC5[rip]
	call	__assert_fail@PLT
.L10:
	mov	BYTE PTR -33[rbp], 1
	jmp	.L11
.L9:
	mov	rdx, QWORD PTR -24[rbp]
	lea	rcx, -16[rbp]
	lea	rax, -13[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	base64_encode_block
	mov	rdx, QWORD PTR -56[rbp]
	lea	rax, -13[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	add	QWORD PTR -32[rbp], 1
.L8:
	cmp	QWORD PTR -32[rbp], 18
	ja	.L11
	movzx	eax, BYTE PTR -33[rbp]
	xor	eax, 1
	test	al, al
	jne	.L12
.L11:
	mov	rax, QWORD PTR -56[rbp]
	mov	rcx, rax
	mov	edx, 2
	mov	esi, 1
	lea	rdi, .LC6[rip]
	call	fwrite@PLT
.L7:
	movzx	eax, BYTE PTR -33[rbp]
	xor	eax, 1
	test	al, al
	jne	.L13
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	base64_encode, .-base64_encode
	.globl	base64_encode_block
	.type	base64_encode_block, @function
base64_encode_block:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	QWORD PTR -72[rbp], rdx
	mov	rax, QWORD PTR -72[rbp]
	sal	rax, 3
	add	rax, 5
	movabs	rdx, -6148914691236517205
	mul	rdx
	mov	rax, rdx
	shr	rax, 2
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	jmp	.L16
.L17:
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	edx, al
	mov	eax, 2
	sub	rax, QWORD PTR -32[rbp]
	sal	eax, 3
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	or	DWORD PTR -40[rbp], eax
	add	QWORD PTR -32[rbp], 1
.L16:
	mov	rax, QWORD PTR -32[rbp]
	cmp	rax, QWORD PTR -72[rbp]
	jb	.L17
	mov	DWORD PTR -36[rbp], 16515072
	mov	QWORD PTR -24[rbp], 0
	jmp	.L18
.L19:
	mov	eax, DWORD PTR -40[rbp]
	and	eax, DWORD PTR -36[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	ecx, eax
	mov	eax, ecx
	sal	ecx, 2
	sub	eax, ecx
	add	eax, eax
	add	eax, 18
	mov	ecx, eax
	shr	edx, cl
	mov	ecx, edx
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	ecx, ecx
	lea	rax, base64_table[rip]
	movzx	eax, BYTE PTR [rcx+rax]
	mov	BYTE PTR [rdx], al
	add	QWORD PTR -24[rbp], 1
	shr	DWORD PTR -36[rbp], 6
.L18:
	mov	rax, QWORD PTR -24[rbp]
	cmp	rax, QWORD PTR -8[rbp]
	jb	.L19
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L20
.L21:
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 61
	add	QWORD PTR -16[rbp], 1
.L20:
	cmp	QWORD PTR -16[rbp], 3
	jbe	.L21
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	base64_encode_block, .-base64_encode_block
	.section	.rodata
	.align 8
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 14
__PRETTY_FUNCTION__.0:
	.string	"base64_encode"
	.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	"612974.c"
	.text
	.global	base64_table
	.section	.rodata
	.align	2
	.type	base64_table, %object
	.size	base64_table, 65
base64_table:
	.ascii	"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxy"
	.ascii	"z0123456789+/\000"
	.align	2
.LC0:
	.ascii	"No file name passed.\012\000"
	.align	2
.LC1:
	.ascii	"r\000"
	.align	2
.LC2:
	.ascii	"Failed to open file\000"
	.align	2
.LC3:
	.ascii	"Failed to close file\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	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	beq	.L2
	ldr	r3, .L6
	ldr	r3, [r3]
	mov	r2, #21
	mov	r1, #1
	ldr	r0, .L6+4
	bl	fwrite
	mov	r3, #1
	b	.L3
.L2:
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L6+8
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L4
	ldr	r0, .L6+12
	bl	perror
	mov	r3, #2
	b	.L3
.L4:
	ldr	r3, .L6+16
	ldr	r3, [r3]
	ldr	r1, [fp, #-8]
	mov	r0, r3
	bl	base64_encode
	ldr	r0, [fp, #-8]
	bl	fclose
	mov	r3, r0
	cmp	r3, #0
	beq	.L5
	ldr	r0, .L6+20
	bl	perror
	mov	r3, #3
	b	.L3
.L5:
	mov	r3, #0
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	stdout
	.word	.LC3
	.size	main, .-main
	.section	.rodata
	.align	2
.LC4:
	.ascii	"the_stack_data/612974.c\000"
	.align	2
.LC5:
	.ascii	"feof(in)\000"
	.align	2
.LC6:
	.ascii	"\015\012\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	base64_encode
	.syntax unified
	.arm
	.fpu softvfp
	.type	base64_encode, %function
base64_encode:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	strb	r3, [fp, #-12]
	ldr	r0, [fp, #-44]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	movne	r3, #1
	moveq	r3, #0
	strb	r3, [fp, #-29]
	b	.L9
.L15:
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L10
.L14:
	sub	r0, fp, #20
	ldr	r3, [fp, #-44]
	mov	r2, #3
	mov	r1, #1
	bl	fread
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L11
	ldr	r0, [fp, #-44]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	bne	.L12
	ldr	r3, .L17+4
	mov	r2, #71
	ldr	r1, .L17+8
	ldr	r0, .L17+12
	bl	__assert_fail
.L12:
	mov	r3, #1
	strb	r3, [fp, #-29]
	b	.L13
.L11:
	sub	r1, fp, #20
	sub	r3, fp, #16
	ldr	r2, [fp, #-24]
	mov	r0, r3
	bl	base64_encode_block
	sub	r3, fp, #16
	ldr	r1, [fp, #-40]
	mov	r0, r3
	bl	fputs
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L10:
	ldr	r3, [fp, #-28]
	cmp	r3, #18
	bhi	.L13
	ldrb	r3, [fp, #-29]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L14
.L13:
	ldr	r3, [fp, #-40]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, .L17+16
	bl	fwrite
.L9:
	ldrb	r3, [fp, #-29]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L15
	nop
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC7
	.word	__PRETTY_FUNCTION__.4662
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	base64_encode, .-base64_encode
	.align	2
	.global	base64_encode_block
	.syntax unified
	.arm
	.fpu softvfp
	.type	base64_encode_block, %function
base64_encode_block:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #44
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #3
	add	r3, r3, #5
	ldr	r2, .L26
	umull	r1, r3, r2, r3
	lsr	r3, r3, #2
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L20
.L21:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-24]
	rsb	r3, r3, #2
	lsl	r3, r3, #3
	lsl	r3, r2, r3
	ldr	r2, [fp, #-28]
	orr	r3, r2, r3
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L20:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	bcc	.L21
	mov	r3, #16515072
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L22
.L23:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-20]
	and	r1, r2, r3
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r2, r2, #2
	sub	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, #18
	lsr	r2, r1, r3
	ldr	r1, [fp, #-32]
	ldr	r3, [fp, #-16]
	add	r3, r1, r3
	ldr	r1, .L26+4
	ldrb	r2, [r1, r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	lsr	r3, r3, #6
	str	r3, [fp, #-20]
.L22:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bcc	.L23
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-12]
	b	.L24
.L25:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	mov	r2, #61
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L24:
	ldr	r3, [fp, #-12]
	cmp	r3, #3
	bls	.L25
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L27:
	.align	2
.L26:
	.word	-1431655765
	.word	base64_table
	.size	base64_encode_block, .-base64_encode_block
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.4662, %object
	.size	__PRETTY_FUNCTION__.4662, 14
__PRETTY_FUNCTION__.4662:
	.ascii	"base64_encode\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
