#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 */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ isprint(char const);
char base64dec_getc(const char **src) {
  while (**src && !isprint(**src))
    (*src)++;
  return *((*src)++);
}


x86 assembly (clang, -O0):
<base64dec_getc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x9(%rbp)
je     114e <base64dec_getc+0x3e>
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
movsbl (%rax),%edi
call   1030 <isprint@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
mov    %al,-0x9(%rbp)
mov    -0x9(%rbp),%al
test   $0x1,%al
jne    115e <base64dec_getc+0x4e>
jmp    1171 <base64dec_getc+0x61>
mov    -0x8(%rbp),%rax
mov    (%rax),%rcx
add    $0x1,%rcx
mov    %rcx,(%rax)
jmp    111c <base64dec_getc+0xc>
mov    -0x8(%rbp),%rcx
mov    (%rcx),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,(%rcx)
movsbl (%rax),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<base64dec_getc>:
push   %rbx
mov    %rdi,%rbx
mov    (%rdi),%rax
mov    (%rax),%cl
test   %cl,%cl
je     1143 <base64dec_getc+0x33>
nopl   (%rax)
movsbl %cl,%edi
call   1030 <isprint@plt>
mov    (%rbx),%rcx
test   %eax,%eax
jne    1140 <base64dec_getc+0x30>
lea    0x1(%rcx),%rax
mov    %rax,(%rbx)
movzbl 0x1(%rcx),%ecx
test   %cl,%cl
jne    1120 <base64dec_getc+0x10>
jmp    1143 <base64dec_getc+0x33>
mov    %rcx,%rax
lea    0x1(%rax),%rcx
mov    %rcx,(%rbx)
mov    (%rax),%al
pop    %rbx
ret

LLVM IR (-O0):
define signext i8 @base64dec_getc(i8** %0) {
%2 = alloca i8**
store i8** %0, i8*** %2
br label %3
3: ; preds = %18, %1
%4 = load i8**, i8*** %2
%5 = load i8*, i8** %4
%6 = load i8, i8* %5
%7 = sext i8 %6 to i32
%8 = icmp ne i32 %7, 0
br i1 %8, label %9, label %16
9: ; preds = %3
%10 = load i8**, i8*** %2
%11 = load i8*, i8** %10
%12 = load i8, i8* %11
%13 = call i32 @isprint(i8 signext %12)
%14 = icmp ne i32 %13, 0
%15 = xor i1 %14, true
br label %16
16: ; preds = %9, %3
%17 = phi i1 [ false, %3 ], [ %15, %9 ]
br i1 %17, label %18, label %22
18: ; preds = %16
%19 = load i8**, i8*** %2
%20 = load i8*, i8** %19
%21 = getelementptr inbounds i8, i8* %20, i32 1
store i8* %21, i8** %19
br label %3
22: ; preds = %16
%23 = load i8**, i8*** %2
%24 = load i8*, i8** %23
%25 = getelementptr inbounds i8, i8* %24, i32 1
store i8* %25, i8** %23
%26 = load i8, i8* %24
ret i8 %26
}

LLVM IR (-O2):
define signext i8 @base64dec_getc(i8** nocapture %0) {
%2 = load i8*, i8** %0
%3 = load i8, i8* %2
%4 = icmp eq i8 %3, 0
br i1 %4, label %16, label %5
5: ; preds = %1, %10
%6 = phi i8 [ %12, %10 ], [ %3, %1 ]
%7 = tail call i32 @isprint(i8 signext %6)
%8 = icmp eq i32 %7, 0
%9 = load i8*, i8** %0
br i1 %8, label %10, label %16
10: ; preds = %5
%11 = getelementptr inbounds i8, i8* %9, i64 1
store i8* %11, i8** %0
%12 = load i8, i8* %11
%13 = icmp eq i8 %12, 0
br i1 %13, label %14, label %5
14: ; preds = %10
%15 = getelementptr inbounds i8, i8* %9, i64 1
br label %16
16: ; preds = %5, %14, %1
%17 = phi i8* [ %2, %1 ], [ %15, %14 ], [ %9, %5 ]
%18 = getelementptr inbounds i8, i8* %17, i64 1
store i8* %18, i8** %0
%19 = load i8, i8* %17
ret i8 %19
}