int base64_decode(const unsigned char *source, unsigned char **target) {
  if (!source || !target)
    exit_on_error_m("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                    "outputs/2022-01-22/02-19-57/repos/aozkesek/c_cplusplus/"
                    "refs/heads/master/liblicense/base64.c",
                    __FUNCTION__, 57, -0x0301);
  int i = 0, j = 0, slen = strlen((const char *)source), tlen = (slen * 3 / 4);
  if (slen % 4)
    exit_on_error_m("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                    "outputs/2022-01-22/02-19-57/repos/aozkesek/c_cplusplus/"
                    "refs/heads/master/liblicense/base64.c",
                    __FUNCTION__, 65, -0x0301);
  if (!(*target))
    *target = malloc(tlen);
  memset(*target, 0, tlen);
  if (source[slen - 2] == '=')
    tlen--;
  if (source[slen - 1] == '=')
    tlen--;
  while (i <= slen - 4) {
    unsigned char b0 = source[i], b1 = source[i + 1],
                  b2 = source[i + 2] == '=' ? 0 : source[i + 2],
                  b3 = source[i + 3] == '=' ? 0 : source[i + 3];
    (*target)[j] = (b64toi(b0) << 2) + (b64toi(b1) >> 4);
    (*target)[j + 1] = ((b64toi(b1) & 0xf) << 4) + (b64toi(b2) >> 2);
    (*target)[j + 2] = ((b64toi(b2) & 0x3) << 6) + b64toi(b3);
    i += 4;
    j += 3;
  }
  return tlen;
}


x86 assembly (clang, -O0):
<base64_decode>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpq   $0x0,-0x8(%rbp)
je     1176 <base64_decode+0x26>
cmpq   $0x0,-0x10(%rbp)
jne    1195 <base64_decode+0x45>
lea    0xe83(%rip),%rdi
lea    0xf11(%rip),%rsi
mov    $0x39,%edx
mov    $0xfffffcff,%ecx
mov    $0x0,%al
call   1070 <exit_on_error_m@plt>
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,-0x1c(%rbp)
imul   $0x3,-0x1c(%rbp),%eax
mov    $0x4,%ecx
cltd
idiv   %ecx
mov    %eax,-0x20(%rbp)
mov    -0x1c(%rbp),%eax
mov    $0x4,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     11f1 <base64_decode+0xa1>
lea    0xe27(%rip),%rdi
lea    0xeb5(%rip),%rsi
mov    $0x41,%edx
mov    $0xfffffcff,%ecx
mov    $0x0,%al
call   1070 <exit_on_error_m@plt>
mov    -0x10(%rbp),%rax
cmpq   $0x0,(%rax)
jne    1212 <base64_decode+0xc2>
movslq -0x20(%rbp),%rdi
call   1060 <malloc@plt>
mov    %rax,%rcx
mov    -0x10(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
movslq -0x20(%rbp),%rdx
xor    %esi,%esi
call   1040 <memset@plt>
mov    -0x8(%rbp),%rax
mov    -0x1c(%rbp),%ecx
sub    $0x2,%ecx
movslq %ecx,%rcx
movzbl (%rax,%rcx,1),%eax
cmp    $0x3d,%eax
jne    1247 <base64_decode+0xf7>
mov    -0x20(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x20(%rbp)
mov    -0x8(%rbp),%rax
mov    -0x1c(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movzbl (%rax,%rcx,1),%eax
cmp    $0x3d,%eax
jne    126a <base64_decode+0x11a>
mov    -0x20(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x20(%rbp)
jmp    126f <base64_decode+0x11f>
mov    -0x14(%rbp),%eax
mov    -0x1c(%rbp),%ecx
sub    $0x4,%ecx
cmp    %ecx,%eax
jg     13e3 <base64_decode+0x293>
mov    -0x8(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,1),%al
mov    %al,-0x21(%rbp)
mov    -0x8(%rbp),%rax
mov    -0x14(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,1),%al
mov    %al,-0x22(%rbp)
mov    -0x8(%rbp),%rax
mov    -0x14(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
movzbl (%rax,%rcx,1),%eax
cmp    $0x3d,%eax
jne    12c5 <base64_decode+0x175>
xor    %eax,%eax
mov    %eax,-0x28(%rbp)
jmp    12d9 <base64_decode+0x189>
mov    -0x8(%rbp),%rax
mov    -0x14(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
movzbl (%rax,%rcx,1),%eax
mov    %eax,-0x28(%rbp)
mov    -0x28(%rbp),%eax
mov    %al,-0x23(%rbp)
mov    -0x8(%rbp),%rax
mov    -0x14(%rbp),%ecx
add    $0x3,%ecx
movslq %ecx,%rcx
movzbl (%rax,%rcx,1),%eax
cmp    $0x3d,%eax
jne    1303 <base64_decode+0x1b3>
xor    %eax,%eax
mov    %eax,-0x2c(%rbp)
jmp    1317 <base64_decode+0x1c7>
mov    -0x8(%rbp),%rax
mov    -0x14(%rbp),%ecx
add    $0x3,%ecx
movslq %ecx,%rcx
movzbl (%rax,%rcx,1),%eax
mov    %eax,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
mov    %al,-0x24(%rbp)
movzbl -0x21(%rbp),%edi
mov    $0x0,%al
call   1050 <b64toi@plt>
shl    $0x2,%eax
mov    %eax,-0x38(%rbp)
movzbl -0x22(%rbp),%edi
mov    $0x0,%al
call   1050 <b64toi@plt>
mov    %eax,%ecx
mov    -0x38(%rbp),%eax
sar    $0x4,%ecx
add    %ecx,%eax
mov    %al,%dl
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
movslq -0x18(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
movzbl -0x22(%rbp),%edi
mov    $0x0,%al
call   1050 <b64toi@plt>
and    $0xf,%eax
shl    $0x4,%eax
mov    %eax,-0x34(%rbp)
movzbl -0x23(%rbp),%edi
mov    $0x0,%al
call   1050 <b64toi@plt>
mov    %eax,%ecx
mov    -0x34(%rbp),%eax
sar    $0x2,%ecx
add    %ecx,%eax
mov    %al,%dl
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
mov    -0x18(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    %dl,(%rax,%rcx,1)
movzbl -0x23(%rbp),%edi
mov    $0x0,%al
call   1050 <b64toi@plt>
and    $0x3,%eax
shl    $0x6,%eax
mov    %eax,-0x30(%rbp)
movzbl -0x24(%rbp),%edi
mov    $0x0,%al
call   1050 <b64toi@plt>
mov    %eax,%ecx
mov    -0x30(%rbp),%eax
add    %ecx,%eax
mov    %al,%dl
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
mov    -0x18(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x14(%rbp),%eax
add    $0x4,%eax
mov    %eax,-0x14(%rbp)
mov    -0x18(%rbp),%eax
add    $0x3,%eax
mov    %eax,-0x18(%rbp)
jmp    126f <base64_decode+0x11f>
mov    -0x20(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<base64_decode>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %rsi,%r14
mov    %rdi,%r15
test   %rdi,%rdi
je     116e <base64_decode+0x1e>
test   %r14,%r14
jne    118d <base64_decode+0x3d>
lea    0xe8b(%rip),%rdi
lea    0xf19(%rip),%rsi
mov    $0x39,%edx
mov    $0xfffffcff,%ecx
xor    %eax,%eax
call   1070 <exit_on_error_m@plt>
mov    %r15,%rdi
call   1030 <strlen@plt>
mov    %rax,%rbp
lea    (%rax,%rax,2),%eax
lea    0x3(%rbp,%rbp,2),%ebx
test   %eax,%eax
cmovns %eax,%ebx
sar    $0x2,%ebx
test   $0x3,%bpl
je     11cc <base64_decode+0x7c>
lea    0xe4c(%rip),%rdi
lea    0xeda(%rip),%rsi
mov    $0x41,%edx
mov    $0xfffffcff,%ecx
xor    %eax,%eax
call   1070 <exit_on_error_m@plt>
mov    (%r14),%rdi
mov    %ebx,0x18(%rsp)
movslq %ebx,%rbx
test   %rdi,%rdi
jne    11e9 <base64_decode+0x99>
mov    %rbx,%rdi
call   1060 <malloc@plt>
mov    %rax,%rdi
mov    %rax,(%r14)
xor    %esi,%esi
mov    %rbx,%rdx
call   1040 <memset@plt>
mov    %rbp,%rax
shl    $0x20,%rax
movabs $0xfffffffe00000000,%rcx
ff ff ff
add    %rax,%rcx
sar    $0x20,%rcx
mov    (%r15,%rcx,1),%cl
mov    %cl,0xf(%rsp)
movabs $0xffffffff00000000,%rcx
ff ff ff
add    %rax,%rcx
sar    $0x20,%rcx
mov    (%r15,%rcx,1),%al
mov    %al,0xe(%rsp)
cmp    $0x4,%ebp
jl     130d <base64_decode+0x1bd>
mov    %r15,%rcx
lea    -0x4(%rbp),%eax
mov    %eax,0x1c(%rsp)
xor    %r12d,%r12d
xor    %r15d,%r15d
mov    %r14,0x10(%rsp)
mov    %rcx,0x20(%rsp)
nop
movzbl (%rcx,%r15,1),%edi
movzbl 0x1(%rcx,%r15,1),%ebp
movzbl 0x2(%rcx,%r15,1),%r13d
cmp    $0x3d,%r13b
mov    $0x0,%eax
cmove  %eax,%r13d
movzbl 0x3(%rcx,%r15,1),%r14d
cmp    $0x3d,%r14b
cmove  %eax,%r14d
xor    %eax,%eax
call   1050 <b64toi@plt>
mov    %eax,%ebx
mov    %ebp,%edi
xor    %eax,%eax
call   1050 <b64toi@plt>
shr    $0x4,%eax
lea    (%rax,%rbx,4),%eax
mov    0x10(%rsp),%rcx
mov    (%rcx),%rcx
mov    %al,(%rcx,%r12,1)
mov    %ebp,%edi
xor    %eax,%eax
call   1050 <b64toi@plt>
mov    %eax,%ebx
shl    $0x4,%ebx
movzbl %r13b,%ebp
mov    %ebp,%edi
xor    %eax,%eax
call   1050 <b64toi@plt>
shr    $0x2,%eax
add    %ebx,%eax
mov    0x10(%rsp),%rcx
mov    (%rcx),%rcx
mov    %al,0x1(%rcx,%r12,1)
mov    %ebp,%edi
xor    %eax,%eax
call   1050 <b64toi@plt>
mov    %eax,%ebx
shl    $0x6,%ebx
movzbl %r14b,%edi
mov    0x10(%rsp),%r14
xor    %eax,%eax
call   1050 <b64toi@plt>
add    %ebx,%eax
mov    (%r14),%rcx
mov    %al,0x2(%rcx,%r12,1)
mov    0x20(%rsp),%rcx
add    $0x4,%r15
add    $0x3,%r12
cmp    %r15d,0x1c(%rsp)
jge    1250 <base64_decode+0x100>
xor    %edx,%edx
cmpb   $0x3d,0xe(%rsp)
sete   %dl
xor    %ecx,%ecx
cmpb   $0x3d,0xf(%rsp)
sete   %cl
mov    0x18(%rsp),%eax
sub    %ecx,%eax
sub    %edx,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [149 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/aozkesek/c_cplusplus/refs/heads/master/liblicense/base64.c\00"
@__FUNCTION__.base64_decode = [14 x i8] c"base64_decode\00"
define i32 @base64_decode(i8* %0, i8** %1) {
%3 = alloca i8*
%4 = alloca i8**
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i8
%10 = alloca i8
%11 = alloca i8
%12 = alloca i8
store i8* %0, i8** %3
store i8** %1, i8*** %4
%13 = load i8*, i8** %3
%14 = icmp ne i8* %13, null
br i1 %14, label %15, label %18
15: ; preds = %2
%16 = load i8**, i8*** %4
%17 = icmp ne i8** %16, null
br i1 %17, label %20, label %18
18: ; preds = %15, %2
%19 = call i32 (i8*, i8*, i32, i32, ...) bitcast (i32 (...)* @exit_on_error_m to i32 (i8*, i8*, i32, i32, ...)*)(i8* getelementptr inbounds ([149 x i8], [149 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @__FUNCTION__.base64_decode, i64 0, i64 0), i32 57, i32 -769)
br label %20
20: ; preds = %18, %15
store i32 0, i32* %5
store i32 0, i32* %6
%21 = load i8*, i8** %3
%22 = call i64 @strlen(i8* %21)
%23 = trunc i64 %22 to i32
store i32 %23, i32* %7
%24 = load i32, i32* %7
%25 = mul nsw i32 %24, 3
%26 = sdiv i32 %25, 4
store i32 %26, i32* %8
%27 = load i32, i32* %7
%28 = srem i32 %27, 4
%29 = icmp ne i32 %28, 0
br i1 %29, label %30, label %32
30: ; preds = %20
%31 = call i32 (i8*, i8*, i32, i32, ...) bitcast (i32 (...)* @exit_on_error_m to i32 (i8*, i8*, i32, i32, ...)*)(i8* getelementptr inbounds ([149 x i8], [149 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @__FUNCTION__.base64_decode, i64 0, i64 0), i32 65, i32 -769)
br label %32
32: ; preds = %30, %20
%33 = load i8**, i8*** %4
%34 = load i8*, i8** %33
%35 = icmp ne i8* %34, null
br i1 %35, label %41, label %36
36: ; preds = %32
%37 = load i32, i32* %8
%38 = sext i32 %37 to i64
%39 = call i8* @malloc(i64 %38)
%40 = load i8**, i8*** %4
store i8* %39, i8** %40
br label %41
41: ; preds = %36, %32
%42 = load i8**, i8*** %4
%43 = load i8*, i8** %42
%44 = load i32, i32* %8
%45 = sext i32 %44 to i64
%46 = load i8*, i8** %3
%47 = load i32, i32* %7
%48 = sub nsw i32 %47, 2
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds i8, i8* %46, i64 %49
%51 = load i8, i8* %50
%52 = zext i8 %51 to i32
%53 = icmp eq i32 %52, 61
br i1 %53, label %54, label %57
54: ; preds = %41
%55 = load i32, i32* %8
%56 = add nsw i32 %55, -1
store i32 %56, i32* %8
br label %57
57: ; preds = %54, %41
%58 = load i8*, i8** %3
%59 = load i32, i32* %7
%60 = sub nsw i32 %59, 1
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds i8, i8* %58, i64 %61
%63 = load i8, i8* %62
%64 = zext i8 %63 to i32
%65 = icmp eq i32 %64, 61
br i1 %65, label %66, label %69
66: ; preds = %57
%67 = load i32, i32* %8
%68 = add nsw i32 %67, -1
store i32 %68, i32* %8
br label %69
69: ; preds = %66, %57
br label %70
70: ; preds = %124, %69
%71 = load i32, i32* %5
%72 = load i32, i32* %7
%73 = sub nsw i32 %72, 4
%74 = icmp sle i32 %71, %73
br i1 %74, label %75, label %179
75: ; preds = %70
%76 = load i8*, i8** %3
%77 = load i32, i32* %5
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds i8, i8* %76, i64 %78
%80 = load i8, i8* %79
store i8 %80, i8* %9
%81 = load i8*, i8** %3
%82 = load i32, i32* %5
%83 = add nsw i32 %82, 1
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds i8, i8* %81, i64 %84
%86 = load i8, i8* %85
store i8 %86, i8* %10
%87 = load i8*, i8** %3
%88 = load i32, i32* %5
%89 = add nsw i32 %88, 2
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds i8, i8* %87, i64 %90
%92 = load i8, i8* %91
%93 = zext i8 %92 to i32
%94 = icmp eq i32 %93, 61
br i1 %94, label %95, label %96
95: ; preds = %75
br label %104
96: ; preds = %75
%97 = load i8*, i8** %3
%98 = load i32, i32* %5
%99 = add nsw i32 %98, 2
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds i8, i8* %97, i64 %100
%102 = load i8, i8* %101
%103 = zext i8 %102 to i32
br label %104
104: ; preds = %96, %95
%105 = phi i32 [ 0, %95 ], [ %103, %96 ]
%106 = trunc i32 %105 to i8
store i8 %106, i8* %11
%107 = load i8*, i8** %3
%108 = load i32, i32* %5
%109 = add nsw i32 %108, 3
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds i8, i8* %107, i64 %110
%112 = load i8, i8* %111
%113 = zext i8 %112 to i32
%114 = icmp eq i32 %113, 61
br i1 %114, label %115, label %116
115: ; preds = %104
br label %124
116: ; preds = %104
%117 = load i8*, i8** %3
%118 = load i32, i32* %5
%119 = add nsw i32 %118, 3
%120 = sext i32 %119 to i64
%121 = getelementptr inbounds i8, i8* %117, i64 %120
%122 = load i8, i8* %121
%123 = zext i8 %122 to i32
br label %124
124: ; preds = %116, %115
%125 = phi i32 [ 0, %115 ], [ %123, %116 ]
%126 = trunc i32 %125 to i8
store i8 %126, i8* %12
%127 = load i8, i8* %9
%128 = zext i8 %127 to i32
%129 = call i32 (i32, ...) bitcast (i32 (...)* @b64toi to i32 (i32, ...)*)(i32 %128)
%130 = shl i32 %129, 2
%131 = load i8, i8* %10
%132 = zext i8 %131 to i32
%133 = call i32 (i32, ...) bitcast (i32 (...)* @b64toi to i32 (i32, ...)*)(i32 %132)
%134 = ashr i32 %133, 4
%135 = add nsw i32 %130, %134
%136 = trunc i32 %135 to i8
%137 = load i8**, i8*** %4
%138 = load i8*, i8** %137
%139 = load i32, i32* %6
%140 = sext i32 %139 to i64
%141 = getelementptr inbounds i8, i8* %138, i64 %140
store i8 %136, i8* %141
%142 = load i8, i8* %10
%143 = zext i8 %142 to i32
%144 = call i32 (i32, ...) bitcast (i32 (...)* @b64toi to i32 (i32, ...)*)(i32 %143)
%145 = and i32 %144, 15
%146 = shl i32 %145, 4
%147 = load i8, i8* %11
%148 = zext i8 %147 to i32
%149 = call i32 (i32, ...) bitcast (i32 (...)* @b64toi to i32 (i32, ...)*)(i32 %148)
%150 = ashr i32 %149, 2
%151 = add nsw i32 %146, %150
%152 = trunc i32 %151 to i8
%153 = load i8**, i8*** %4
%154 = load i8*, i8** %153
%155 = load i32, i32* %6
%156 = add nsw i32 %155, 1
%157 = sext i32 %156 to i64
%158 = getelementptr inbounds i8, i8* %154, i64 %157
store i8 %152, i8* %158
%159 = load i8, i8* %11
%160 = zext i8 %159 to i32
%161 = call i32 (i32, ...) bitcast (i32 (...)* @b64toi to i32 (i32, ...)*)(i32 %160)
%162 = and i32 %161, 3
%163 = shl i32 %162, 6
%164 = load i8, i8* %12
%165 = zext i8 %164 to i32
%166 = call i32 (i32, ...) bitcast (i32 (...)* @b64toi to i32 (i32, ...)*)(i32 %165)
%167 = add nsw i32 %163, %166
%168 = trunc i32 %167 to i8
%169 = load i8**, i8*** %4
%170 = load i8*, i8** %169
%171 = load i32, i32* %6
%172 = add nsw i32 %171, 2
%173 = sext i32 %172 to i64
%174 = getelementptr inbounds i8, i8* %170, i64 %173
store i8 %168, i8* %174
%175 = load i32, i32* %5
%176 = add nsw i32 %175, 4
store i32 %176, i32* %5
%177 = load i32, i32* %6
%178 = add nsw i32 %177, 3
store i32 %178, i32* %6
br label %70
179: ; preds = %70
%180 = load i32, i32* %8
ret i32 %180
}

LLVM IR (-O2):
@.str = [149 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/aozkesek/c_cplusplus/refs/heads/master/liblicense/base64.c\00"
@__FUNCTION__.base64_decode = [14 x i8] c"base64_decode\00"
define i32 @base64_decode(i8* %0, i8** %1) {
%3 = icmp ne i8* %0, null
%4 = icmp ne i8** %1, null
%5 = and i1 %3, %4
br i1 %5, label %8, label %6
6: ; preds = %2
%7 = tail call i32 (i8*, i8*, i32, i32, ...) bitcast (i32 (...)* @exit_on_error_m to i32 (i8*, i8*, i32, i32, ...)*)(i8* getelementptr inbounds ([149 x i8], [149 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @__FUNCTION__.base64_decode, i64 0, i64 0), i32 57, i32 -769)
br label %8
8: ; preds = %2, %6
%9 = tail call i64 @strlen(i8* dereferenceable(1) %0)
%10 = trunc i64 %9 to i32
%11 = mul nsw i32 %10, 3
%12 = sdiv i32 %11, 4
%13 = and i32 %10, 3
%14 = icmp eq i32 %13, 0
br i1 %14, label %17, label %15
15: ; preds = %8
%16 = tail call i32 (i8*, i8*, i32, i32, ...) bitcast (i32 (...)* @exit_on_error_m to i32 (i8*, i8*, i32, i32, ...)*)(i8* getelementptr inbounds ([149 x i8], [149 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @__FUNCTION__.base64_decode, i64 0, i64 0), i32 65, i32 -769)
br label %17
17: ; preds = %15, %8
%18 = load i8*, i8** %1
%19 = icmp eq i8* %18, null
%20 = sext i32 %12 to i64
br i1 %19, label %21, label %23
21: ; preds = %17
%22 = tail call i8* @malloc(i64 %20)
store i8* %22, i8** %1
br label %23
23: ; preds = %17, %21
%24 = phi i8* [ %22, %21 ], [ %18, %17 ]
tail call void @llvm.memset.p0i8.i64(i8* align 1 %24, i8 0, i64 %20, i1 false)
%25 = shl i64 %9, 32
%26 = add i64 %25, -8589934592
%27 = ashr exact i64 %26, 32
%28 = getelementptr inbounds i8, i8* %0, i64 %27
%29 = load i8, i8* %28
%30 = add i64 %25, -4294967296
%31 = ashr exact i64 %30, 32
%32 = getelementptr inbounds i8, i8* %0, i64 %31
%33 = load i8, i8* %32
%34 = add nsw i32 %10, -4
%35 = icmp slt i32 %10, 4
br i1 %35, label %87, label %36
36: ; preds = %23, %36
%37 = phi i64 [ %84, %36 ], [ 0, %23 ]
%38 = phi i64 [ %83, %36 ], [ 0, %23 ]
%39 = getelementptr inbounds i8, i8* %0, i64 %38
%40 = load i8, i8* %39
%41 = or i64 %38, 1
%42 = getelementptr inbounds i8, i8* %0, i64 %41
%43 = load i8, i8* %42
%44 = or i64 %38, 2
%45 = getelementptr inbounds i8, i8* %0, i64 %44
%46 = load i8, i8* %45
%47 = icmp eq i8 %46, 61
%48 = select i1 %47, i8 0, i8 %46
%49 = or i64 %38, 3
%50 = getelementptr inbounds i8, i8* %0, i64 %49
%51 = load i8, i8* %50
%52 = icmp eq i8 %51, 61
%53 = select i1 %52, i8 0, i8 %51
%54 = zext i8 %40 to i32
%55 = tail call i32 (i32, ...) bitcast (i32 (...)* @b64toi to i32 (i32, ...)*)(i32 %54)
%56 = shl i32 %55, 2
%57 = zext i8 %43 to i32
%58 = tail call i32 (i32, ...) bitcast (i32 (...)* @b64toi to i32 (i32, ...)*)(i32 %57)
%59 = lshr i32 %58, 4
%60 = add i32 %59, %56
%61 = trunc i32 %60 to i8
%62 = load i8*, i8** %1
%63 = getelementptr inbounds i8, i8* %62, i64 %37
store i8 %61, i8* %63
%64 = tail call i32 (i32, ...) bitcast (i32 (...)* @b64toi to i32 (i32, ...)*)(i32 %57)
%65 = shl i32 %64, 4
%66 = zext i8 %48 to i32
%67 = tail call i32 (i32, ...) bitcast (i32 (...)* @b64toi to i32 (i32, ...)*)(i32 %66)
%68 = lshr i32 %67, 2
%69 = add i32 %68, %65
%70 = trunc i32 %69 to i8
%71 = load i8*, i8** %1
%72 = add nuw nsw i64 %37, 1
%73 = getelementptr inbounds i8, i8* %71, i64 %72
store i8 %70, i8* %73
%74 = tail call i32 (i32, ...) bitcast (i32 (...)* @b64toi to i32 (i32, ...)*)(i32 %66)
%75 = shl i32 %74, 6
%76 = zext i8 %53 to i32
%77 = tail call i32 (i32, ...) bitcast (i32 (...)* @b64toi to i32 (i32, ...)*)(i32 %76)
%78 = add i32 %75, %77
%79 = trunc i32 %78 to i8
%80 = load i8*, i8** %1
%81 = add nuw nsw i64 %37, 2
%82 = getelementptr inbounds i8, i8* %80, i64 %81
store i8 %79, i8* %82
%83 = add nuw i64 %38, 4
%84 = add nuw i64 %37, 3
%85 = trunc i64 %83 to i32
%86 = icmp slt i32 %34, %85
br i1 %86, label %87, label %36
87: ; preds = %36, %23
%88 = icmp eq i8 %33, 61
%89 = icmp eq i8 %29, 61
%90 = sext i1 %89 to i32
%91 = add nsw i32 %12, %90
%92 = sext i1 %88 to i32
%93 = add nsw i32 %91, %92
ret i32 %93
}