// File: /workspace/github_cpp_makefile_star2_O3/sellibitze[P]secretshare-cxx/base64.cpp
// Function: base64_dec(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
std::vector<unsigned char> base64_dec(std::string const& text)
{
	std::vector<unsigned char> temp;
	temp.reserve(text.size()*3/4);
	for (std::size_t pos=0; pos+2<=text.size(); pos+=4) {
		quad q = {{'A', 'A', 'A', 'A'}};
		auto remain = text.size() - pos;
		auto csize = remain>4 ? 4 : remain;
		for (unsigned k=0; k<csize; ++k) q.ascii[k] = text[pos+k];
		triple t = q.decode();
		csize -= 1; // n+1 characters => n bytes (for 1<=n<=3)
		for (unsigned k=0; k<csize; ++k) temp.push_back(t.octets[k]);
	}
	return temp;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movq 0x8(%rsi), %rax
leaq (%rax,%rax,2), %rsi
shrq $0x2, %rsi
callq 0x2ac8
movq 0x8(%r14), %r15
cmpq $0x2, %r15
jae 0x278d
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %r12d, %r12d
movl $0x4, %r13d
movq %r15, %rbp
subq %r12, %rbp
cmpq $0x4, %rbp
cmovaeq %r13, %rbp
movl $0x41414141, (%rsp)     # imm = 0x41414141
cmpq %r12, %r15
jne 0x27b7
movl $0x41, %ecx
jmp 0x27db
movq (%r14), %rsi
addq %r12, %rsi
cmpq $0x1, %rbp
movq %rbp, %rdx
adcq $0x0, %rdx
movq %rsp, %rdi
callq 0x2170
movsbl (%rsp), %ecx
leal -0x41(%rcx), %eax
cmpb $0x19, %al
ja 0x27ff
addl $-0x41, %ecx
movl %ecx, %eax
movsbl 0x1(%rsp), %edx
leal -0x41(%rdx), %ecx
cmpb $0x19, %cl
ja 0x27f2
addl $-0x41, %edx
jmp 0x281e
leal -0x61(%rdx), %ecx
cmpb $0x19, %cl
ja 0x280f
addl $-0x47, %edx
jmp 0x281e
leal -0x61(%rcx), %eax
cmpb $0x19, %al
ja 0x290c
addl $-0x47, %ecx
jmp 0x27de
leal -0x30(%rdx), %ecx
cmpb $0x9, %cl
ja 0x291b
addl $0x4, %edx
movl %edx, %ecx
movsbl 0x2(%rsp), %esi
leal -0x41(%rsi), %edx
cmpb $0x19, %dl
ja 0x2832
addl $-0x41, %esi
jmp 0x284e
leal -0x61(%rsi), %edx
cmpb $0x19, %dl
ja 0x283f
addl $-0x47, %esi
jmp 0x284e
leal -0x30(%rsi), %edx
cmpb $0x9, %dl
ja 0x293b
addl $0x4, %esi
movl %esi, %edx
movzbl 0x3(%rsp), %esi
leal -0x41(%rsi), %edi
cmpb $0x19, %dil
ja 0x2863
addl $-0x41, %esi
jmp 0x2881
leal -0x61(%rsi), %edi
cmpb $0x19, %dil
ja 0x2871
addl $-0x47, %esi
jmp 0x2881
leal -0x30(%rsi), %edi
cmpb $0x9, %dil
ja 0x295d
addl $0x4, %esi
movl %esi, %edi
shll $0x6, %edx
shll $0x12, %eax
shll $0xc, %ecx
addl %ecx, %eax
orl %edx, %ecx
orl %edi, %edx
movl %edx, %esi
shll $0x10, %esi
andl $0xff00, %ecx           # imm = 0xFF00
orl %esi, %ecx
andl $0xff0000, %eax         # imm = 0xFF0000
shrl $0x10, %eax
orl %ecx, %eax
movb %dl, 0x6(%rsp)
movw %ax, 0x4(%rsp)
decq %rbp
je 0x28f2
movl $0x1, %r15d
xorl %eax, %eax
leaq (%rsp,%rax), %rdx
addq $0x4, %rdx
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x28db
movb (%rdx), %al
movb %al, (%rsi)
incq 0x8(%rbx)
jmp 0x28e3
movq %rbx, %rdi
callq 0x2b5a
movl %r15d, %eax
incl %r15d
cmpq %rax, %rbp
ja 0x28bf
movq 0x8(%r14), %r15
leaq 0x4(%r12), %rax
addq $0x6, %r12
cmpq %r15, %r12
movq %rax, %r12
jbe 0x2796
jmp 0x277b
leal -0x30(%rcx), %eax
cmpb $0x9, %al
ja 0x297a
addl $0x4, %ecx
jmp 0x27de
movl $0x3e, %ecx
cmpb $0x2b, %dl
je 0x2820
movzbl %dl, %ecx
cmpl $0x2f, %ecx
jne 0x299a
movl $0x3f, %ecx
jmp 0x2820
movl $0x3e, %edx
cmpb $0x2b, %sil
je 0x2850
movzbl %sil, %edx
cmpl $0x2f, %edx
jne 0x29b8
movl $0x3f, %edx
jmp 0x2850
movl $0x3e, %edi
cmpl $0x2b, %esi
je 0x2883
cmpl $0x2f, %esi
jne 0x29d6
movl $0x3f, %edi
jmp 0x2883
movl $0x3e, %eax
cmpb $0x2b, %cl
je 0x27e0
movzbl %cl, %eax
cmpl $0x2f, %eax
jne 0x29f4
movl $0x3f, %eax
jmp 0x27e0
movl $0x10, %edi
callq 0x20a0
movq %rax, %r14
leaq 0x2659(%rip), %rsi      # 0x5007
movq %rax, %rdi
callq 0x2100
jmp 0x2a10
movl $0x10, %edi
callq 0x20a0
movq %rax, %r14
leaq 0x263b(%rip), %rsi      # 0x5007
movq %rax, %rdi
callq 0x2100
jmp 0x2a10
movl $0x10, %edi
callq 0x20a0
movq %rax, %r14
leaq 0x261d(%rip), %rsi      # 0x5007
movq %rax, %rdi
callq 0x2100
jmp 0x2a10
movl $0x10, %edi
callq 0x20a0
movq %rax, %r14
leaq 0x25ff(%rip), %rsi      # 0x5007
movq %rax, %rdi
callq 0x2100
movq 0x5569(%rip), %rsi      # 0x7f80
movq 0x5572(%rip), %rdx      # 0x7f90
movq %r14, %rdi
callq 0x2320
jmp 0x2a2c
jmp 0x2a2c
jmp 0x2a2c
movq %rax, %r15
movq %r14, %rdi
callq 0x2150
jmp 0x2a40
jmp 0x2a3d
jmp 0x2a3d
movq %rax, %r15
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x2a54
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x21d0
movq %r15, %rdi
callq 0x2330