void A2C128_B(unsigned char **ppOutPos, unsigned char c) {
  unsigned char *pOutPos = *ppOutPos;
  switch (c) {
  case (unsigned char)(128):
    *pOutPos = 102;
    break;
  case (unsigned char)(129):
    *pOutPos = 97;
    break;
  case (unsigned char)(130):
    *pOutPos = 96;
    break;
  case (unsigned char)(131):
    *pOutPos = 100;
    break;
  case (unsigned char)(132):
    *pOutPos = 101;
    break;
  case (unsigned char)(134):
    *pOutPos = 99;
    break;
  case (unsigned char)(135):
    *pOutPos = 98;
    break;
  default:
    *pOutPos = (unsigned char)(c - ' ');
    break;
  }
  ++(*ppOutPos);
}


x86 assembly (clang, -O0):
<A2C128_B>:
push   %rbp
mov    %rsp,%rbp
mov    %sil,%al
mov    %rdi,-0x8(%rbp)
mov    %al,-0x9(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x18(%rbp)
movzbl -0x9(%rbp),%eax
add    $0xffffff80,%eax
mov    %eax,%ecx
mov    %rcx,-0x20(%rbp)
sub    $0x7,%eax
ja     1197 <A2C128_B+0x97>
mov    -0x20(%rbp),%rax
lea    0xec6(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x18(%rbp),%rax
movb   $0x66,(%rax)
jmp    11a6 <A2C128_B+0xa6>
mov    -0x18(%rbp),%rax
movb   $0x61,(%rax)
jmp    11a6 <A2C128_B+0xa6>
mov    -0x18(%rbp),%rax
movb   $0x60,(%rax)
jmp    11a6 <A2C128_B+0xa6>
mov    -0x18(%rbp),%rax
movb   $0x64,(%rax)
jmp    11a6 <A2C128_B+0xa6>
mov    -0x18(%rbp),%rax
movb   $0x65,(%rax)
jmp    11a6 <A2C128_B+0xa6>
mov    -0x18(%rbp),%rax
movb   $0x63,(%rax)
jmp    11a6 <A2C128_B+0xa6>
mov    -0x18(%rbp),%rax
movb   $0x62,(%rax)
jmp    11a6 <A2C128_B+0xa6>
movzbl -0x9(%rbp),%eax
sub    $0x20,%eax
mov    %al,%cl
mov    -0x18(%rbp),%rax
mov    %cl,(%rax)
mov    -0x8(%rbp),%rax
mov    (%rax),%rcx
add    $0x1,%rcx
mov    %rcx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<A2C128_B>:
mov    (%rdi),%rax
mov    %esi,%ecx
xor    $0x80,%cl
cmp    $0x8,%cl
jae    111a <A2C128_B+0x1a>
movzbl %cl,%ecx
mov    $0xdf,%edx
bt     %ecx,%edx
jb     1120 <A2C128_B+0x20>
add    $0xe0,%sil
jmp    1130 <A2C128_B+0x30>
shl    $0x3,%ecx
movabs $0x6263666564606166,%rsi
66 63 62
shr    %cl,%rsi
mov    %sil,(%rax)
addq   $0x1,(%rdi)
ret

LLVM IR (-O0):
define void @A2C128_B(i8** %0, i8 zeroext %1) {
%3 = alloca i8**
%4 = alloca i8
%5 = alloca i8*
store i8** %0, i8*** %3
store i8 %1, i8* %4
%6 = load i8**, i8*** %3
%7 = load i8*, i8** %6
store i8* %7, i8** %5
%8 = load i8, i8* %4
%9 = zext i8 %8 to i32
switch i32 %9, label %24 [
i32 128, label %10
i32 129, label %12
i32 130, label %14
i32 131, label %16
i32 132, label %18
i32 134, label %20
i32 135, label %22
]
10: ; preds = %2
%11 = load i8*, i8** %5
store i8 102, i8* %11
br label %30
12: ; preds = %2
%13 = load i8*, i8** %5
store i8 97, i8* %13
br label %30
14: ; preds = %2
%15 = load i8*, i8** %5
store i8 96, i8* %15
br label %30
16: ; preds = %2
%17 = load i8*, i8** %5
store i8 100, i8* %17
br label %30
18: ; preds = %2
%19 = load i8*, i8** %5
store i8 101, i8* %19
br label %30
20: ; preds = %2
%21 = load i8*, i8** %5
store i8 99, i8* %21
br label %30
22: ; preds = %2
%23 = load i8*, i8** %5
store i8 98, i8* %23
br label %30
24: ; preds = %2
%25 = load i8, i8* %4
%26 = zext i8 %25 to i32
%27 = sub nsw i32 %26, 32
%28 = trunc i32 %27 to i8
%29 = load i8*, i8** %5
store i8 %28, i8* %29
br label %30
30: ; preds = %24, %22, %20, %18, %16, %14, %12, %10
%31 = load i8**, i8*** %3
%32 = load i8*, i8** %31
%33 = getelementptr inbounds i8, i8* %32, i32 1
store i8* %33, i8** %31
ret void
}

LLVM IR (-O2):
define void @A2C128_B(i8** nocapture %0, i8 zeroext %1) {
%3 = load i8*, i8** %0
%4 = xor i8 %1, -128
%5 = icmp ult i8 %4, 8
br i1 %5, label %8, label %6
6: ; preds = %8, %2
%7 = add i8 %1, -32
br label %17
8: ; preds = %2
%9 = lshr i8 -33, %4
%10 = and i8 %9, 1
%11 = icmp eq i8 %10, 0
br i1 %11, label %6, label %12
12: ; preds = %8
%13 = zext i8 %4 to i64
%14 = shl nuw nsw i64 %13, 3
%15 = lshr i64 7089622824073060710, %14
%16 = trunc i64 %15 to i8
br label %17
17: ; preds = %12, %6
%18 = phi i8 [ %7, %6 ], [ %16, %12 ]
store i8 %18, i8* %3
%19 = load i8*, i8** %0
%20 = getelementptr inbounds i8, i8* %19, i64 1
store i8* %20, i8** %0
ret void
}