#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 */
__attribute__((always_)) const char *hostmask_skip_prefix(const char *p) {
  switch (*p) {
  case '!':
    ++p;
    switch (*p) {
    case '~':
    case '=':
    case '-':
    case '+':
    case '^':
      ++p;
    }
    return p;
  }
  return NULL;
}


x86 assembly (clang, -O0):
<hostmask_skip_prefix>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%al
sub    $0x21,%al
jne    119c <hostmask_skip_prefix+0x9c>
jmp    111b <hostmask_skip_prefix+0x1b>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
mov    %eax,-0x14(%rbp)
sub    $0x2b,%eax
je     1183 <hostmask_skip_prefix+0x83>
jmp    113f <hostmask_skip_prefix+0x3f>
mov    -0x14(%rbp),%eax
sub    $0x2d,%eax
je     1183 <hostmask_skip_prefix+0x83>
jmp    1150 <hostmask_skip_prefix+0x50>
mov    -0x14(%rbp),%eax
sub    $0x3d,%eax
je     1183 <hostmask_skip_prefix+0x83>
jmp    1161 <hostmask_skip_prefix+0x61>
mov    -0x14(%rbp),%eax
sub    $0x5e,%eax
je     1183 <hostmask_skip_prefix+0x83>
jmp    1172 <hostmask_skip_prefix+0x72>
mov    -0x14(%rbp),%eax
sub    $0x7e,%eax
jne    118f <hostmask_skip_prefix+0x8f>
jmp    1183 <hostmask_skip_prefix+0x83>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x8(%rbp)
jmp    11a4 <hostmask_skip_prefix+0xa4>
movq   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<hostmask_skip_prefix>:
cmpb   $0x21,(%rdi)
jne    1129 <hostmask_skip_prefix+0x29>
mov    %rdi,%rax
movsbl 0x1(%rdi),%ecx
lea    -0x2b(%rcx),%edx
cmp    $0x33,%edx
ja     112c <hostmask_skip_prefix+0x2c>
movabs $0x8000000040005,%rsi
bt     %rdx,%rsi
jae    112c <hostmask_skip_prefix+0x2c>
add    $0x2,%rax
ret
xor    %eax,%eax
ret
cmp    $0x7e,%ecx
je     1124 <hostmask_skip_prefix+0x24>
add    $0x1,%rax
ret

LLVM IR (-O0):
define i8* @hostmask_skip_prefix(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
store i8* %0, i8** %3
%4 = load i8*, i8** %3
%5 = load i8, i8* %4
%6 = sext i8 %5 to i32
switch i32 %6, label %18 [
i32 33, label %7
]
7: ; preds = %1
%8 = load i8*, i8** %3
%9 = getelementptr inbounds i8, i8* %8, i32 1
store i8* %9, i8** %3
%10 = load i8*, i8** %3
%11 = load i8, i8* %10
%12 = sext i8 %11 to i32
switch i32 %12, label %16 [
i32 126, label %13
i32 61, label %13
i32 45, label %13
i32 43, label %13
i32 94, label %13
]
13: ; preds = %7, %7, %7, %7, %7
%14 = load i8*, i8** %3
%15 = getelementptr inbounds i8, i8* %14, i32 1
store i8* %15, i8** %3
br label %16
16: ; preds = %13, %7
%17 = load i8*, i8** %3
store i8* %17, i8** %2
br label %19
18: ; preds = %1
store i8* null, i8** %2
br label %19
19: ; preds = %18, %16
%20 = load i8*, i8** %2
ret i8* %20
}

LLVM IR (-O2):
define i8* @hostmask_skip_prefix(i8* %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 33
br i1 %3, label %4, label %10
4: ; preds = %1
%5 = getelementptr inbounds i8, i8* %0, i64 1
%6 = load i8, i8* %5
%7 = sext i8 %6 to i32
switch i32 %7, label %10 [
i32 126, label %8
i32 61, label %8
i32 45, label %8
i32 43, label %8
i32 94, label %8
]
8: ; preds = %4, %4, %4, %4, %4
%9 = getelementptr inbounds i8, i8* %0, i64 2
br label %10
10: ; preds = %1, %4, %8
%11 = phi i8* [ %5, %4 ], [ %9, %8 ], [ null, %1 ]
ret i8* %11
}