#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 */
scalar_t__ _is_nospcrlfcl(char const *);
char const *_is_trailing(char const *peek) {
  while (*peek && (*peek == ':' || *peek == ' ' || _is_nospcrlfcl(peek)))
    peek++;
  return peek;
}


x86 assembly (clang, -O0):
<_is_trailing>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x9(%rbp)
je     1174 <_is_trailing+0x64>
mov    -0x8(%rbp),%rax
movsbl (%rax),%ecx
mov    $0x1,%al
cmp    $0x3a,%ecx
mov    %al,-0xa(%rbp)
je     116e <_is_trailing+0x5e>
mov    -0x8(%rbp),%rax
movsbl (%rax),%ecx
mov    $0x1,%al
cmp    $0x20,%ecx
mov    %al,-0xa(%rbp)
je     116e <_is_trailing+0x5e>
mov    -0x8(%rbp),%rdi
call   1030 <_is_nospcrlfcl@plt>
cmp    $0x0,%rax
setne  %al
mov    %al,-0xa(%rbp)
mov    -0xa(%rbp),%al
mov    %al,-0x9(%rbp)
mov    -0x9(%rbp),%al
test   $0x1,%al
jne    1184 <_is_trailing+0x74>
jmp    1195 <_is_trailing+0x85>
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
jmp    111c <_is_trailing+0xc>
mov    -0x8(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_is_trailing>:
push   %rbx
mov    %rdi,%rbx
jmp    1124 <_is_trailing+0x14>
cs nopw 0x0(%rax,%rax,1)
add    $0x1,%rbx
movzbl (%rbx),%eax
cmp    $0x20,%al
je     1120 <_is_trailing+0x10>
cmp    $0x3a,%al
je     1120 <_is_trailing+0x10>
test   %al,%al
je     1140 <_is_trailing+0x30>
mov    %rbx,%rdi
call   1030 <_is_nospcrlfcl@plt>
test   %rax,%rax
jne    1120 <_is_trailing+0x10>
mov    %rbx,%rax
pop    %rbx
ret

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

LLVM IR (-O2):
define i8* @_is_trailing(i8* %0) {
br label %2
2: ; preds = %8, %1
%3 = phi i8* [ %0, %1 ], [ %9, %8 ]
%4 = load i8, i8* %3
switch i8 %4, label %5 [
i8 0, label %10
i8 58, label %8
i8 32, label %8
]
5: ; preds = %2
%6 = tail call i64 @_is_nospcrlfcl(i8* %3)
%7 = icmp eq i64 %6, 0
br i1 %7, label %10, label %8
8: ; preds = %2, %2, %5
%9 = getelementptr inbounds i8, i8* %3, i64 1
br label %2
10: ; preds = %2, %5
ret i8* %3
}