void x_zotc(c) int c;
{
  if (c == '\t') {
    x_e_puts("    ");
  } else if (iscntrl(c)) {
    x_e_putc('^');
    x_e_putc(((c) == 0x7F ? '?' : (c) | 0x40));
  } else
    x_e_putc(c);
}


x86 assembly (clang, -O0):
<x_zotc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
cmpl   $0x9,-0x4(%rbp)
jne    1158 <x_zotc+0x28>
lea    0xeb4(%rip),%rdi
mov    $0x0,%al
call   1050 <x_e_puts@plt>
jmp    11b3 <x_zotc+0x83>
mov    -0x4(%rbp),%edi
call   1040 <iscntrl@plt>
cmp    $0x0,%eax
je     11a4 <x_zotc+0x74>
mov    $0x5e,%edi
mov    $0x0,%al
call   1030 <x_e_putc@plt>
cmpl   $0x7f,-0x4(%rbp)
jne    118c <x_zotc+0x5c>
mov    $0x3f,%eax
mov    %eax,-0x8(%rbp)
jmp    1195 <x_zotc+0x65>
mov    -0x4(%rbp),%eax
or     $0x40,%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%edi
mov    $0x0,%al
call   1030 <x_e_putc@plt>
jmp    11ae <x_zotc+0x7e>
mov    -0x4(%rbp),%edi
mov    $0x0,%al
call   1030 <x_e_putc@plt>
jmp    11b3 <x_zotc+0x83>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<x_zotc>:
push   %rbx
cmp    $0x9,%edi
jne    1145 <x_zotc+0x15>
lea    0xec3(%rip),%rdi
xor    %eax,%eax
pop    %rbx
jmp    1050 <x_e_puts@plt>
mov    %edi,%ebx
call   1040 <iscntrl@plt>
test   %eax,%eax
je     116e <x_zotc+0x3e>
mov    $0x5e,%edi
xor    %eax,%eax
call   1030 <x_e_putc@plt>
mov    %ebx,%eax
or     $0x40,%eax
cmp    $0x7f,%ebx
mov    $0x3f,%edi
cmovne %eax,%edi
jmp    1170 <x_zotc+0x40>
mov    %ebx,%edi
xor    %eax,%eax
pop    %rbx
jmp    1030 <x_e_putc@plt>

LLVM IR (-O0):
@.str = [5 x i8] c" \00"
define void @x_zotc(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp eq i32 %3, 9
br i1 %4, label %5, label %7
5: ; preds = %1
%6 = call i32 (i8*, ...) bitcast (i32 (...)* @x_e_puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
br label %26
7: ; preds = %1
%8 = load i32, i32* %2
%9 = call i32 @iscntrl(i32 %8)
%10 = icmp ne i32 %9, 0
br i1 %10, label %11, label %22
11: ; preds = %7
%12 = call i32 (i32, ...) bitcast (i32 (...)* @x_e_putc to i32 (i32, ...)*)(i32 94)
%13 = load i32, i32* %2
%14 = icmp eq i32 %13, 127
br i1 %14, label %15, label %16
15: ; preds = %11
br label %19
16: ; preds = %11
%17 = load i32, i32* %2
%18 = or i32 %17, 64
br label %19
19: ; preds = %16, %15
%20 = phi i32 [ 63, %15 ], [ %18, %16 ]
%21 = call i32 (i32, ...) bitcast (i32 (...)* @x_e_putc to i32 (i32, ...)*)(i32 %20)
br label %25
22: ; preds = %7
%23 = load i32, i32* %2
%24 = call i32 (i32, ...) bitcast (i32 (...)* @x_e_putc to i32 (i32, ...)*)(i32 %23)
br label %25
25: ; preds = %22, %19
br label %26
26: ; preds = %25, %5
ret void
}

LLVM IR (-O2):
@.str = [5 x i8] c" \00"
define void @x_zotc(i32 %0) {
%2 = icmp eq i32 %0, 9
br i1 %2, label %3, label %5
3: ; preds = %1
%4 = tail call i32 (i8*, ...) bitcast (i32 (...)* @x_e_puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
br label %16
5: ; preds = %1
%6 = tail call i32 @iscntrl(i32 %0)
%7 = icmp eq i32 %6, 0
br i1 %7, label %14, label %8
8: ; preds = %5
%9 = tail call i32 (i32, ...) bitcast (i32 (...)* @x_e_putc to i32 (i32, ...)*)(i32 94)
%10 = icmp eq i32 %0, 127
%11 = or i32 %0, 64
%12 = select i1 %10, i32 63, i32 %11
%13 = tail call i32 (i32, ...) bitcast (i32 (...)* @x_e_putc to i32 (i32, ...)*)(i32 %12)
br label %16
14: ; preds = %5
%15 = tail call i32 (i32, ...) bitcast (i32 (...)* @x_e_putc to i32 (i32, ...)*)(i32 %0)
br label %16
16: ; preds = %8, %14, %3
ret void
}