// File: /workspace/github_cpp_makefile_star2_O1/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 0x2ad0
movq 0x8(%r14), %rax
cmpq $0x2, %rax
jae 0x279e
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 %rax, %rbp
subq %r12, %rbp
cmpq $0x4, %rbp
cmovaeq %r13, %rbp
movl $0x41414141, (%rsp)     # imm = 0x41414141
cmpq %r12, %rax
je 0x27da
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 0x27ea
addl $-0x41, %ecx
jmp 0x2804
leal -0x61(%rcx), %eax
cmpb $0x19, %al
ja 0x27f6
addl $-0x47, %ecx
jmp 0x2804
leal -0x30(%rcx), %eax
cmpb $0x9, %al
ja 0x2922
addl $0x4, %ecx
movl %ecx, %eax
movsbl 0x1(%rsp), %edx
leal -0x41(%rdx), %ecx
cmpb $0x19, %cl
ja 0x2818
addl $-0x41, %edx
jmp 0x2834
leal -0x61(%rdx), %ecx
cmpb $0x19, %cl
ja 0x2825
addl $-0x47, %edx
jmp 0x2834
leal -0x30(%rdx), %ecx
cmpb $0x9, %cl
ja 0x2942
addl $0x4, %edx
movl %edx, %ecx
movsbl 0x2(%rsp), %esi
leal -0x41(%rsi), %edx
cmpb $0x19, %dl
ja 0x2848
addl $-0x41, %esi
jmp 0x2864
leal -0x61(%rsi), %edx
cmpb $0x19, %dl
ja 0x2855
addl $-0x47, %esi
jmp 0x2864
leal -0x30(%rsi), %edx
cmpb $0x9, %dl
ja 0x2962
addl $0x4, %esi
movl %esi, %edx
movzbl 0x3(%rsp), %esi
leal -0x41(%rsi), %edi
cmpb $0x19, %dil
ja 0x2879
addl $-0x41, %esi
jmp 0x2897
leal -0x61(%rsi), %edi
cmpb $0x19, %dil
ja 0x2887
addl $-0x47, %esi
jmp 0x2897
leal -0x30(%rsi), %edi
cmpb $0x9, %dil
ja 0x2984
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 0x2904
movl $0x1, %r15d
xorl %eax, %eax
leaq (%rsp,%rax), %rdx
addq $0x4, %rdx
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x28f1
movb (%rdx), %al
movb %al, (%rsi)
incq 0x8(%rbx)
jmp 0x28f9
movq %rbx, %rdi
callq 0x2b62
movl %r15d, %eax
incl %r15d
cmpq %rax, %rbp
ja 0x28d5
leaq 0x4(%r12), %rcx
addq $0x6, %r12
movq 0x8(%r14), %rax
cmpq %rax, %r12
movq %rcx, %r12
jbe 0x27a7
jmp 0x278c
movl $0x3e, %eax
cmpb $0x2b, %cl
je 0x2806
movzbl %cl, %eax
cmpl $0x2f, %eax
jne 0x29a1
movl $0x3f, %eax
jmp 0x2806
movl $0x3e, %ecx
cmpb $0x2b, %dl
je 0x2836
movzbl %dl, %ecx
cmpl $0x2f, %ecx
jne 0x29bf
movl $0x3f, %ecx
jmp 0x2836
movl $0x3e, %edx
cmpb $0x2b, %sil
je 0x2866
movzbl %sil, %edx
cmpl $0x2f, %edx
jne 0x29dd
movl $0x3f, %edx
jmp 0x2866
movl $0x3e, %edi
cmpl $0x2b, %esi
je 0x2899
cmpl $0x2f, %esi
jne 0x29fb
movl $0x3f, %edi
jmp 0x2899
movl $0x10, %edi
callq 0x20a0
movq %rax, %r14
leaq 0x2652(%rip), %rsi      # 0x5007
movq %rax, %rdi
callq 0x2100
jmp 0x2a17
movl $0x10, %edi
callq 0x20a0
movq %rax, %r14
leaq 0x2634(%rip), %rsi      # 0x5007
movq %rax, %rdi
callq 0x2100
jmp 0x2a17
movl $0x10, %edi
callq 0x20a0
movq %rax, %r14
leaq 0x2616(%rip), %rsi      # 0x5007
movq %rax, %rdi
callq 0x2100
jmp 0x2a17
movl $0x10, %edi
callq 0x20a0
movq %rax, %r14
leaq 0x25f8(%rip), %rsi      # 0x5007
movq %rax, %rdi
callq 0x2100
movq 0x5562(%rip), %rsi      # 0x7f80
movq 0x556b(%rip), %rdx      # 0x7f90
movq %r14, %rdi
callq 0x2330
jmp 0x2a33
jmp 0x2a33
jmp 0x2a33
movq %rax, %r15
movq %r14, %rdi
callq 0x2150
jmp 0x2a47
jmp 0x2a44
jmp 0x2a44
movq %rax, %r15
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x2a5b
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x21d0
movq %r15, %rdi
callq 0x2340
nop