#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */
typedef struct TYPE_3__ TYPE_1__;

/* Type definitions */
struct TYPE_3__ {
  int rem;
  int quot;
};
typedef TYPE_1__ lldiv_t;
typedef char cA;
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int alphanumeric_62(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, int);
TYPE_1__ lldiv(char, int);
int /*<<< orphan*/ printf(char *, int);
int /*<<< orphan*/ system(char *);
int codificador_62(char cA, char cB, int sobra, FILE *saida) {
  int resto, quo = 2;
  lldiv_t divisao;
  switch (sobra) {
  case (0): {
    cB = ((cA) >> 2) & 0x3F;
    sobra = 2;
    break;
  }
  case (1): {
    cB = ((cB) << 5 | (((cA) >> 3) & 0x1F)) & 0x3F;
    sobra = 3;
    break;
  }
  case (2): {
    cB = ((cB) << 4 | (((cA) >> 4) & 0x0F)) & 0x3F;
    sobra = 4;
    break;
  }
  case (3): {
    cB = ((cB) << 3 | (((cA) >> 5) & 0x07)) & 0x3F;
    sobra = 5;
    break;
  }
  case (4): {
    cB = ((cB) << 2 | (((cA) >> 6) & 0x03)) & 0x3F;
    sobra = 6;
    break;
  }
  case (5): {
    cB = ((cB) << 1 | (((cA) >> 7) & 0x01)) & 0x3F;
    sobra = 7;
    break;
  }
  }
  if (quo != 2) {
    if (quo == 0) {
      cB = (cB & 0xFE);
      sobra++;
    } else if (quo == 1) {
      cB = (cB & 0xFE);
      cB = (cB | 0x01);
      sobra++;
    } else {
      printf("[ERRO] O valor do quociente está em %d\n", quo);
      system("pause");
    }
    quo = 2;
  }
  divisao = lldiv(cB, 62);
  resto = divisao.rem;
  fprintf(saida, "%c", alphanumeric_62(resto));
  if (resto == 0 || resto == 1) {
    quo = divisao.quot;
  }
  if (sobra > 5) {
    if (sobra > 8) {
      printf("[ERRO] Sobra de bits igual %d\n", sobra);
    }
    switch (sobra) {
    case (6): {
      cB = (cA)&0x3F;
      sobra = 0;
      break;
    }
    case (7): {
      cB = ((cA) >> 1) & 0x3F;
      sobra = 1;
      break;
    }
    }
    if (quo != 2) {
      if (quo == 0) {
        cB = (cB & 0xFE);
        sobra++;
      } else if (quo == 1) {
        cB = (cB & 0xFE);
        cB = (cB | 0x01);
        sobra++;
      } else {
        printf("[ERRO] O valor do quociente está em %d\n", quo);
        system("pause");
      }
      quo = 2;
    }
    divisao = lldiv(cB, 62);
    resto = divisao.rem;
    fprintf(saida, "%c", alphanumeric_62(resto));
    if (resto == 0 || resto == 1) {
      quo = divisao.quot;
    }
  }
  return sobra;
}


x86 assembly (clang, -O0):
<codificador_62>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %sil,%al
mov    %dil,%sil
mov    %sil,-0x1(%rbp)
mov    %al,-0x2(%rbp)
mov    %edx,-0x8(%rbp)
mov    %rcx,-0x10(%rbp)
movl   $0x2,-0x18(%rbp)
mov    -0x8(%rbp),%eax
mov    %rax,-0x38(%rbp)
sub    $0x5,%rax
ja     1265 <codificador_62+0x115>
mov    -0x38(%rbp),%rax
lea    0xe71(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movsbl -0x1(%rbp),%eax
sar    $0x2,%eax
and    $0x3f,%eax
mov    %al,-0x2(%rbp)
movl   $0x2,-0x8(%rbp)
jmp    1265 <codificador_62+0x115>
movsbl -0x2(%rbp),%eax
shl    $0x5,%eax
movsbl -0x1(%rbp),%ecx
sar    $0x3,%ecx
and    $0x1f,%ecx
or     %ecx,%eax
and    $0x3f,%eax
mov    %al,-0x2(%rbp)
movl   $0x3,-0x8(%rbp)
jmp    1265 <codificador_62+0x115>
movsbl -0x2(%rbp),%eax
shl    $0x4,%eax
movsbl -0x1(%rbp),%ecx
sar    $0x4,%ecx
and    $0xf,%ecx
or     %ecx,%eax
and    $0x3f,%eax
mov    %al,-0x2(%rbp)
movl   $0x4,-0x8(%rbp)
jmp    1265 <codificador_62+0x115>
movsbl -0x2(%rbp),%eax
shl    $0x3,%eax
movsbl -0x1(%rbp),%ecx
sar    $0x5,%ecx
and    $0x7,%ecx
or     %ecx,%eax
and    $0x3f,%eax
mov    %al,-0x2(%rbp)
movl   $0x5,-0x8(%rbp)
jmp    1265 <codificador_62+0x115>
movsbl -0x2(%rbp),%eax
shl    $0x2,%eax
movsbl -0x1(%rbp),%ecx
sar    $0x6,%ecx
and    $0x3,%ecx
or     %ecx,%eax
and    $0x3f,%eax
mov    %al,-0x2(%rbp)
movl   $0x6,-0x8(%rbp)
jmp    1265 <codificador_62+0x115>
movsbl -0x2(%rbp),%eax
shl    $0x1,%eax
movsbl -0x1(%rbp),%ecx
sar    $0x7,%ecx
and    $0x1,%ecx
or     %ecx,%eax
and    $0x3f,%eax
mov    %al,-0x2(%rbp)
movl   $0x7,-0x8(%rbp)
cmpl   $0x2,-0x18(%rbp)
je     12e8 <codificador_62+0x198>
cmpl   $0x0,-0x18(%rbp)
jne    1293 <codificador_62+0x143>
movsbl -0x2(%rbp),%eax
and    $0xfe,%eax
mov    %al,-0x2(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    12e1 <codificador_62+0x191>
cmpl   $0x1,-0x18(%rbp)
jne    12c1 <codificador_62+0x171>
movsbl -0x2(%rbp),%eax
and    $0xfe,%eax
mov    %al,-0x2(%rbp)
movsbl -0x2(%rbp),%eax
or     $0x1,%eax
mov    %al,-0x2(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    12dc <codificador_62+0x18c>
mov    -0x18(%rbp),%esi
lea    0xd4d(%rip),%rdi
call   1050 <printf@plt>
lea    0xd6a(%rip),%rdi
call   1040 <system@plt>
jmp    12e1 <codificador_62+0x191>
movl   $0x2,-0x18(%rbp)
mov    $0x3e,%esi
movsbl -0x2(%rbp),%edi
call   1060 <lldiv@plt>
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x14(%rbp),%edi
call   1030 <alphanumeric_62@plt>
mov    -0x40(%rbp),%rdi
mov    %eax,%edx
lea    0xd22(%rip),%rsi
call   1070 <fprintf@plt>
cmpl   $0x0,-0x14(%rbp)
je     133e <codificador_62+0x1ee>
cmpl   $0x1,-0x14(%rbp)
jne    1344 <codificador_62+0x1f4>
mov    -0x1c(%rbp),%eax
mov    %eax,-0x18(%rbp)
cmpl   $0x5,-0x8(%rbp)
jle    149a <codificador_62+0x34a>
cmpl   $0x8,-0x8(%rbp)
jle    1367 <codificador_62+0x217>
mov    -0x8(%rbp),%esi
lea    0xce8(%rip),%rdi
call   1050 <printf@plt>
mov    -0x8(%rbp),%eax
mov    %eax,-0x44(%rbp)
sub    $0x6,%eax
je     138c <codificador_62+0x23c>
jmp    137b <codificador_62+0x22b>
mov    -0x44(%rbp),%eax
sub    $0x7,%eax
je     13a2 <codificador_62+0x252>
jmp    13b6 <codificador_62+0x266>
movsbl -0x1(%rbp),%eax
and    $0x3f,%eax
mov    %al,-0x2(%rbp)
movl   $0x0,-0x8(%rbp)
jmp    13b6 <codificador_62+0x266>
movsbl -0x1(%rbp),%eax
sar    $0x1,%eax
and    $0x3f,%eax
mov    %al,-0x2(%rbp)
movl   $0x1,-0x8(%rbp)
cmpl   $0x2,-0x18(%rbp)
je     1439 <codificador_62+0x2e9>
cmpl   $0x0,-0x18(%rbp)
jne    13e4 <codificador_62+0x294>
movsbl -0x2(%rbp),%eax
and    $0xfe,%eax
mov    %al,-0x2(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1432 <codificador_62+0x2e2>
cmpl   $0x1,-0x18(%rbp)
jne    1412 <codificador_62+0x2c2>
movsbl -0x2(%rbp),%eax
and    $0xfe,%eax
mov    %al,-0x2(%rbp)
movsbl -0x2(%rbp),%eax
or     $0x1,%eax
mov    %al,-0x2(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    142d <codificador_62+0x2dd>
mov    -0x18(%rbp),%esi
lea    0xbfc(%rip),%rdi
call   1050 <printf@plt>
lea    0xc19(%rip),%rdi
call   1040 <system@plt>
jmp    1432 <codificador_62+0x2e2>
movl   $0x2,-0x18(%rbp)
mov    $0x3e,%esi
movsbl -0x2(%rbp),%edi
call   1060 <lldiv@plt>
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    -0x14(%rbp),%edi
call   1030 <alphanumeric_62@plt>
mov    -0x50(%rbp),%rdi
mov    %eax,%edx
lea    0xbd1(%rip),%rsi
call   1070 <fprintf@plt>
cmpl   $0x0,-0x14(%rbp)
je     148f <codificador_62+0x33f>
cmpl   $0x1,-0x14(%rbp)
jne    1495 <codificador_62+0x345>
mov    -0x1c(%rbp),%eax
mov    %eax,-0x18(%rbp)
jmp    149a <codificador_62+0x34a>
mov    -0x8(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<codificador_62>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
mov    %rcx,%r14
mov    %edx,%ebx
mov    %esi,%r12d
mov    %edi,%r15d
cmp    $0x5,%edx
ja     1201 <codificador_62+0xb1>
mov    %ebx,%eax
lea    0xe8b(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    %r15d,%r12d
shr    $0x2,%r12b
mov    $0x2,%ebx
jmp    1201 <codificador_62+0xb1>
mov    %r15d,%eax
shr    $0x3,%al
shl    $0x5,%r12b
or     %al,%r12b
and    $0x3f,%r12b
mov    $0x3,%ebx
jmp    1201 <codificador_62+0xb1>
mov    %r15d,%eax
shr    $0x4,%al
shl    $0x4,%r12b
or     %al,%r12b
and    $0x3f,%r12b
mov    $0x4,%ebx
jmp    1201 <codificador_62+0xb1>
mov    %r15d,%eax
shr    $0x5,%al
shl    $0x3,%r12b
or     %al,%r12b
and    $0x3f,%r12b
mov    $0x5,%ebx
jmp    1201 <codificador_62+0xb1>
mov    %r15d,%eax
shr    $0x6,%al
shl    $0x2,%r12b
or     %al,%r12b
and    $0x3f,%r12b
mov    $0x6,%ebx
jmp    1201 <codificador_62+0xb1>
mov    %r15d,%eax
shr    $0x7,%al
add    %r12b,%r12b
or     %al,%r12b
and    $0x3f,%r12b
mov    $0x7,%ebx
movsbl %r12b,%edi
mov    $0x3e,%esi
call   1060 <lldiv@plt>
mov    %rax,%rbp
mov    %ebp,%edi
call   1030 <alphanumeric_62@plt>
mov    %eax,%edi
mov    %r14,%rsi
call   1070 <fputc@plt>
mov    %rbp,%rax
shr    $0x20,%rax
cmp    $0x2,%ebp
mov    $0x2,%ebp
cmovb  %eax,%ebp
cmp    $0x6,%ebx
jl     12cb <codificador_62+0x17b>
cmp    $0x9,%ebx
jb     1251 <codificador_62+0x101>
lea    0xdfd(%rip),%rdi
mov    %ebx,%esi
call   1050 <printf@plt>
cmp    $0x7,%ebx
je     1263 <codificador_62+0x113>
cmp    $0x6,%ebx
jne    1272 <codificador_62+0x122>
and    $0x3f,%r15b
xor    %ebx,%ebx
jmp    126f <codificador_62+0x11f>
shr    %r15b
and    $0x3f,%r15b
mov    $0x1,%ebx
mov    %r15d,%r12d
cmp    $0x2,%ebp
je     12ac <codificador_62+0x15c>
cmp    $0x1,%ebp
je     1289 <codificador_62+0x139>
test   %ebp,%ebp
jne    1292 <codificador_62+0x142>
and    $0xfe,%r12b
add    $0x1,%ebx
jmp    12ac <codificador_62+0x15c>
or     $0x1,%r12b
add    $0x1,%ebx
jmp    12ac <codificador_62+0x15c>
lea    0xd7f(%rip),%rdi
mov    %ebp,%esi
call   1050 <printf@plt>
lea    0xd9a(%rip),%rdi
call   1040 <system@plt>
movsbl %r12b,%edi
mov    $0x3e,%esi
call   1060 <lldiv@plt>
mov    %eax,%edi
call   1030 <alphanumeric_62@plt>
mov    %eax,%edi
mov    %r14,%rsi
call   1070 <fputc@plt>
mov    %ebx,%eax
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.TYPE_3__ = type { i32, i32 }
@.str = [41 x i8] c"[ERRO] O valor do quociente est\C3\A1 em %d\0A\00"
@.str.1 = [6 x i8] c"pause\00"
@.str.2 = [3 x i8] c"%c\00"
@.str.3 = [31 x i8] c"[ERRO] Sobra de bits igual %d\0A\00"
define i32 @codificador_62(i8 signext %0, i8 signext %1, i32 %2, i32* %3) {
%5 = alloca i8
%6 = alloca i8
%7 = alloca i32
%8 = alloca i32*
%9 = alloca i32
%10 = alloca i32
%11 = alloca %struct.TYPE_3__
%12 = alloca %struct.TYPE_3__
%13 = alloca %struct.TYPE_3__
store i8 %0, i8* %5
store i8 %1, i8* %6
store i32 %2, i32* %7
store i32* %3, i32** %8
store i32 2, i32* %10
%14 = load i32, i32* %7
switch i32 %14, label %76 [
i32 0, label %15
i32 1, label %21
i32 2, label %32
i32 3, label %43
i32 4, label %54
i32 5, label %65
]
15: ; preds = %4
%16 = load i8, i8* %5
%17 = sext i8 %16 to i32
%18 = ashr i32 %17, 2
%19 = and i32 %18, 63
%20 = trunc i32 %19 to i8
store i8 %20, i8* %6
store i32 2, i32* %7
br label %76
21: ; preds = %4
%22 = load i8, i8* %6
%23 = sext i8 %22 to i32
%24 = shl i32 %23, 5
%25 = load i8, i8* %5
%26 = sext i8 %25 to i32
%27 = ashr i32 %26, 3
%28 = and i32 %27, 31
%29 = or i32 %24, %28
%30 = and i32 %29, 63
%31 = trunc i32 %30 to i8
store i8 %31, i8* %6
store i32 3, i32* %7
br label %76
32: ; preds = %4
%33 = load i8, i8* %6
%34 = sext i8 %33 to i32
%35 = shl i32 %34, 4
%36 = load i8, i8* %5
%37 = sext i8 %36 to i32
%38 = ashr i32 %37, 4
%39 = and i32 %38, 15
%40 = or i32 %35, %39
%41 = and i32 %40, 63
%42 = trunc i32 %41 to i8
store i8 %42, i8* %6
store i32 4, i32* %7
br label %76
43: ; preds = %4
%44 = load i8, i8* %6
%45 = sext i8 %44 to i32
%46 = shl i32 %45, 3
%47 = load i8, i8* %5
%48 = sext i8 %47 to i32
%49 = ashr i32 %48, 5
%50 = and i32 %49, 7
%51 = or i32 %46, %50
%52 = and i32 %51, 63
%53 = trunc i32 %52 to i8
store i8 %53, i8* %6
store i32 5, i32* %7
br label %76
54: ; preds = %4
%55 = load i8, i8* %6
%56 = sext i8 %55 to i32
%57 = shl i32 %56, 2
%58 = load i8, i8* %5
%59 = sext i8 %58 to i32
%60 = ashr i32 %59, 6
%61 = and i32 %60, 3
%62 = or i32 %57, %61
%63 = and i32 %62, 63
%64 = trunc i32 %63 to i8
store i8 %64, i8* %6
store i32 6, i32* %7
br label %76
65: ; preds = %4
%66 = load i8, i8* %6
%67 = sext i8 %66 to i32
%68 = shl i32 %67, 1
%69 = load i8, i8* %5
%70 = sext i8 %69 to i32
%71 = ashr i32 %70, 7
%72 = and i32 %71, 1
%73 = or i32 %68, %72
%74 = and i32 %73, 63
%75 = trunc i32 %74 to i8
store i8 %75, i8* %6
store i32 7, i32* %7
br label %76
76: ; preds = %4, %65, %54, %43, %32, %21, %15
%77 = load i32, i32* %10
%78 = icmp ne i32 %77, 2
br i1 %78, label %79, label %109
79: ; preds = %76
%80 = load i32, i32* %10
%81 = icmp eq i32 %80, 0
br i1 %81, label %82, label %89
82: ; preds = %79
%83 = load i8, i8* %6
%84 = sext i8 %83 to i32
%85 = and i32 %84, 254
%86 = trunc i32 %85 to i8
store i8 %86, i8* %6
%87 = load i32, i32* %7
%88 = add nsw i32 %87, 1
store i32 %88, i32* %7
br label %108
89: ; preds = %79
%90 = load i32, i32* %10
%91 = icmp eq i32 %90, 1
br i1 %91, label %92, label %103
92: ; preds = %89
%93 = load i8, i8* %6
%94 = sext i8 %93 to i32
%95 = and i32 %94, 254
%96 = trunc i32 %95 to i8
store i8 %96, i8* %6
%97 = load i8, i8* %6
%98 = sext i8 %97 to i32
%99 = or i32 %98, 1
%100 = trunc i32 %99 to i8
store i8 %100, i8* %6
%101 = load i32, i32* %7
%102 = add nsw i32 %101, 1
store i32 %102, i32* %7
br label %107
103: ; preds = %89
%104 = load i32, i32* %10
%105 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str, i64 0, i64 0), i32 %104)
%106 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
br label %107
107: ; preds = %103, %92
br label %108
108: ; preds = %107, %82
store i32 2, i32* %10
br label %109
109: ; preds = %108, %76
%110 = load i8, i8* %6
%111 = call i64 @lldiv(i8 signext %110, i32 62)
%112 = bitcast %struct.TYPE_3__* %12 to i64*
store i64 %111, i64* %112
%113 = bitcast %struct.TYPE_3__* %11 to i8*
%114 = bitcast %struct.TYPE_3__* %12 to i8*
%115 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %11, i32 0, i32 0
%116 = load i32, i32* %115
store i32 %116, i32* %9
%117 = load i32*, i32** %8
%118 = load i32, i32* %9
%119 = call i32 @alphanumeric_62(i32 %118)
%120 = call i32 @fprintf(i32* %117, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32 %119)
%121 = load i32, i32* %9
%122 = icmp eq i32 %121, 0
br i1 %122, label %126, label %123
123: ; preds = %109
%124 = load i32, i32* %9
%125 = icmp eq i32 %124, 1
br i1 %125, label %126, label %129
126: ; preds = %123, %109
%127 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %11, i32 0, i32 1
%128 = load i32, i32* %127
store i32 %128, i32* %10
br label %129
129: ; preds = %126, %123
%130 = load i32, i32* %7
%131 = icmp sgt i32 %130, 5
br i1 %131, label %132, label %205
132: ; preds = %129
%133 = load i32, i32* %7
%134 = icmp sgt i32 %133, 8
br i1 %134, label %135, label %138
135: ; preds = %132
%136 = load i32, i32* %7
%137 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.3, i64 0, i64 0), i32 %136)
br label %138
138: ; preds = %135, %132
%139 = load i32, i32* %7
switch i32 %139, label %151 [
i32 6, label %140
i32 7, label %145
]
140: ; preds = %138
%141 = load i8, i8* %5
%142 = sext i8 %141 to i32
%143 = and i32 %142, 63
%144 = trunc i32 %143 to i8
store i8 %144, i8* %6
store i32 0, i32* %7
br label %151
145: ; preds = %138
%146 = load i8, i8* %5
%147 = sext i8 %146 to i32
%148 = ashr i32 %147, 1
%149 = and i32 %148, 63
%150 = trunc i32 %149 to i8
store i8 %150, i8* %6
store i32 1, i32* %7
br label %151
151: ; preds = %138, %145, %140
%152 = load i32, i32* %10
%153 = icmp ne i32 %152, 2
br i1 %153, label %154, label %184
154: ; preds = %151
%155 = load i32, i32* %10
%156 = icmp eq i32 %155, 0
br i1 %156, label %157, label %164
157: ; preds = %154
%158 = load i8, i8* %6
%159 = sext i8 %158 to i32
%160 = and i32 %159, 254
%161 = trunc i32 %160 to i8
store i8 %161, i8* %6
%162 = load i32, i32* %7
%163 = add nsw i32 %162, 1
store i32 %163, i32* %7
br label %183
164: ; preds = %154
%165 = load i32, i32* %10
%166 = icmp eq i32 %165, 1
br i1 %166, label %167, label %178
167: ; preds = %164
%168 = load i8, i8* %6
%169 = sext i8 %168 to i32
%170 = and i32 %169, 254
%171 = trunc i32 %170 to i8
store i8 %171, i8* %6
%172 = load i8, i8* %6
%173 = sext i8 %172 to i32
%174 = or i32 %173, 1
%175 = trunc i32 %174 to i8
store i8 %175, i8* %6
%176 = load i32, i32* %7
%177 = add nsw i32 %176, 1
store i32 %177, i32* %7
br label %182
178: ; preds = %164
%179 = load i32, i32* %10
%180 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str, i64 0, i64 0), i32 %179)
%181 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
br label %182
182: ; preds = %178, %167
br label %183
183: ; preds = %182, %157
store i32 2, i32* %10
br label %184
184: ; preds = %183, %151
%185 = load i8, i8* %6
%186 = call i64 @lldiv(i8 signext %185, i32 62)
%187 = bitcast %struct.TYPE_3__* %13 to i64*
store i64 %186, i64* %187
%188 = bitcast %struct.TYPE_3__* %11 to i8*
%189 = bitcast %struct.TYPE_3__* %13 to i8*
%190 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %11, i32 0, i32 0
%191 = load i32, i32* %190
store i32 %191, i32* %9
%192 = load i32*, i32** %8
%193 = load i32, i32* %9
%194 = call i32 @alphanumeric_62(i32 %193)
%195 = call i32 @fprintf(i32* %192, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32 %194)
%196 = load i32, i32* %9
%197 = icmp eq i32 %196, 0
br i1 %197, label %201, label %198
198: ; preds = %184
%199 = load i32, i32* %9
%200 = icmp eq i32 %199, 1
br i1 %200, label %201, label %204
201: ; preds = %198, %184
%202 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %11, i32 0, i32 1
%203 = load i32, i32* %202
store i32 %203, i32* %10
br label %204
204: ; preds = %201, %198
br label %205
205: ; preds = %204, %129
%206 = load i32, i32* %7
ret i32 %206
}

LLVM IR (-O2):
@.str = [41 x i8] c"[ERRO] O valor do quociente est\C3\A1 em %d\0A\00"
@.str.1 = [6 x i8] c"pause\00"
@.str.3 = [31 x i8] c"[ERRO] Sobra de bits igual %d\0A\00"
define i32 @codificador_62(i8 signext %0, i8 signext %1, i32 %2, i32* nocapture %3) {
switch i32 %2, label %32 [
i32 0, label %5
i32 1, label %7
i32 2, label %12
i32 3, label %17
i32 4, label %22
i32 5, label %27
]
5: ; preds = %4
%6 = lshr i8 %0, 2
br label %32
7: ; preds = %4
%8 = shl i8 %1, 5
%9 = lshr i8 %0, 3
%10 = and i8 %8, 32
%11 = or i8 %10, %9
br label %32
12: ; preds = %4
%13 = shl i8 %1, 4
%14 = lshr i8 %0, 4
%15 = and i8 %13, 48
%16 = or i8 %15, %14
br label %32
17: ; preds = %4
%18 = shl i8 %1, 3
%19 = lshr i8 %0, 5
%20 = and i8 %18, 56
%21 = or i8 %20, %19
br label %32
22: ; preds = %4
%23 = shl i8 %1, 2
%24 = lshr i8 %0, 6
%25 = and i8 %23, 60
%26 = or i8 %25, %24
br label %32
27: ; preds = %4
%28 = shl i8 %1, 1
%29 = lshr i8 %0, 7
%30 = and i8 %28, 62
%31 = or i8 %30, %29
br label %32
32: ; preds = %5, %7, %12, %17, %22, %27, %4
%33 = phi i32 [ %2, %4 ], [ 7, %27 ], [ 6, %22 ], [ 5, %17 ], [ 4, %12 ], [ 3, %7 ], [ 2, %5 ]
%34 = phi i8 [ %1, %4 ], [ %31, %27 ], [ %26, %22 ], [ %21, %17 ], [ %16, %12 ], [ %11, %7 ], [ %6, %5 ]
%35 = tail call i64 @lldiv(i8 signext %34, i32 62)
%36 = trunc i64 %35 to i32
%37 = tail call i32 @alphanumeric_62(i32 %36)
%38 = tail call i32 @fputc(i32 %37, i32* %3)
%39 = icmp ult i32 %36, 2
%40 = lshr i64 %35, 32
%41 = trunc i64 %40 to i32
%42 = select i1 %39, i32 %41, i32 2
%43 = icmp sgt i32 %33, 5
br i1 %43, label %44, label %73
44: ; preds = %32
%45 = icmp ugt i32 %33, 8
br i1 %45, label %46, label %48
46: ; preds = %44
%47 = tail call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.3, i64 0, i64 0), i32 %33)
br label %48
48: ; preds = %46, %44
switch i32 %33, label %54 [
i32 6, label %49
i32 7, label %51
]
49: ; preds = %48
%50 = and i8 %0, 63
br label %54
51: ; preds = %48
%52 = lshr i8 %0, 1
%53 = and i8 %52, 63
br label %54
54: ; preds = %48, %51, %49
%55 = phi i32 [ %33, %48 ], [ 1, %51 ], [ 0, %49 ]
%56 = phi i8 [ %34, %48 ], [ %53, %51 ], [ %50, %49 ]
switch i32 %42, label %63 [
i32 2, label %66
i32 0, label %57
i32 1, label %60
]
57: ; preds = %54
%58 = and i8 %56, -2
%59 = add nuw nsw i32 %55, 1
br label %66
60: ; preds = %54
%61 = or i8 %56, 1
%62 = add nuw nsw i32 %55, 1
br label %66
63: ; preds = %54
%64 = tail call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str, i64 0, i64 0), i32 %42)
%65 = tail call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
br label %66
66: ; preds = %57, %63, %60, %54
%67 = phi i32 [ %55, %54 ], [ %59, %57 ], [ %62, %60 ], [ %55, %63 ]
%68 = phi i8 [ %56, %54 ], [ %58, %57 ], [ %61, %60 ], [ %56, %63 ]
%69 = tail call i64 @lldiv(i8 signext %68, i32 62)
%70 = trunc i64 %69 to i32
%71 = tail call i32 @alphanumeric_62(i32 %70)
%72 = tail call i32 @fputc(i32 %71, i32* %3)
br label %73
73: ; preds = %66, %32
%74 = phi i32 [ %33, %32 ], [ %67, %66 ]
ret i32 %74
}