#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 */
typedef struct TYPE_3__ TYPE_1__;

/* Type definitions */
typedef char *p;
struct TYPE_3__ {
  scalar_t__ meth_data;
};
typedef TYPE_1__ CONF;

/* Variables and functions */
char *eat_alpha_numeric(CONF *conf, char *p) {
  for (;;) {
    if ((((unsigned short *)((conf)->meth_data))[(*p) & 0xff] & 32)) {
      p = ((((((unsigned short *)(((conf))->meth_data))[((p)[1]) & 0xff] & 8))
                ? ((p) + 1)
                : ((p) + 2)));
      continue;
    }
    if (!(((unsigned short *)((conf)->meth_data))[(*p) & 0xff] &
          ((2 | 4) | 1 | 256 | 512)))
      return (p);
    p++;
  }
}


x86 assembly (clang, -O0):
<eat_alpha_numeric>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
mov    -0x10(%rbp),%rcx
movsbl (%rcx),%ecx
and    $0xff,%ecx
movslq %ecx,%rcx
movzwl (%rax,%rcx,2),%eax
and    $0x20,%eax
cmp    $0x0,%eax
je     1185 <eat_alpha_numeric+0x85>
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
mov    -0x10(%rbp),%rcx
movsbl 0x1(%rcx),%ecx
and    $0xff,%ecx
movslq %ecx,%rcx
movzwl (%rax,%rcx,2),%eax
and    $0x8,%eax
cmp    $0x0,%eax
je     116c <eat_alpha_numeric+0x6c>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
jmp    1178 <eat_alpha_numeric+0x78>
mov    -0x10(%rbp),%rax
add    $0x2,%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x10(%rbp)
jmp    110c <eat_alpha_numeric+0xc>
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
mov    -0x10(%rbp),%rcx
movsbl (%rcx),%ecx
and    $0xff,%ecx
movslq %ecx,%rcx
movzwl (%rax,%rcx,2),%eax
and    $0x307,%eax
cmp    $0x0,%eax
jne    11b4 <eat_alpha_numeric+0xb4>
mov    -0x10(%rbp),%rax
pop    %rbp
ret
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    110c <eat_alpha_numeric+0xc>

x86 assembly (clang, -O2):
<eat_alpha_numeric>:
mov    %rsi,%rax
mov    (%rdi),%rcx
jmp    1114 <eat_alpha_numeric+0x14>
nopl   0x0(%rax,%rax,1)
add    $0x1,%rax
movzbl (%rax),%edx
movzwl (%rcx,%rdx,2),%edx
test   $0x20,%dl
jne    1130 <eat_alpha_numeric+0x30>
test   $0x307,%edx
je     1140 <eat_alpha_numeric+0x40>
add    $0x1,%rax
jmp    1114 <eat_alpha_numeric+0x14>
xchg   %ax,%ax
movzbl 0x1(%rax),%edx
testb  $0x8,(%rcx,%rdx,2)
jne    1110 <eat_alpha_numeric+0x10>
add    $0x2,%rax
jmp    1114 <eat_alpha_numeric+0x14>
ret

LLVM IR (-O0):
%struct.TYPE_3__ = type { i64 }
define i8* @eat_alpha_numeric(%struct.TYPE_3__* %0, i8* %1) {
%3 = alloca %struct.TYPE_3__*
%4 = alloca i8*
store %struct.TYPE_3__* %0, %struct.TYPE_3__** %3
store i8* %1, i8** %4
br label %5
5: ; preds = %61, %42, %2
%6 = load %struct.TYPE_3__*, %struct.TYPE_3__** %3
%7 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %6, i32 0, i32 0
%8 = load i64, i64* %7
%9 = inttoptr i64 %8 to i16*
%10 = load i8*, i8** %4
%11 = load i8, i8* %10
%12 = sext i8 %11 to i32
%13 = and i32 %12, 255
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i16, i16* %9, i64 %14
%16 = load i16, i16* %15
%17 = zext i16 %16 to i32
%18 = and i32 %17, 32
%19 = icmp ne i32 %18, 0
br i1 %19, label %20, label %44
20: ; preds = %5
%21 = load %struct.TYPE_3__*, %struct.TYPE_3__** %3
%22 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %21, i32 0, i32 0
%23 = load i64, i64* %22
%24 = inttoptr i64 %23 to i16*
%25 = load i8*, i8** %4
%26 = getelementptr inbounds i8, i8* %25, i64 1
%27 = load i8, i8* %26
%28 = sext i8 %27 to i32
%29 = and i32 %28, 255
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i16, i16* %24, i64 %30
%32 = load i16, i16* %31
%33 = zext i16 %32 to i32
%34 = and i32 %33, 8
%35 = icmp ne i32 %34, 0
br i1 %35, label %36, label %39
36: ; preds = %20
%37 = load i8*, i8** %4
%38 = getelementptr inbounds i8, i8* %37, i64 1
br label %42
39: ; preds = %20
%40 = load i8*, i8** %4
%41 = getelementptr inbounds i8, i8* %40, i64 2
br label %42
42: ; preds = %39, %36
%43 = phi i8* [ %38, %36 ], [ %41, %39 ]
store i8* %43, i8** %4
br label %5
44: ; preds = %5
%45 = load %struct.TYPE_3__*, %struct.TYPE_3__** %3
%46 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %45, i32 0, i32 0
%47 = load i64, i64* %46
%48 = inttoptr i64 %47 to i16*
%49 = load i8*, i8** %4
%50 = load i8, i8* %49
%51 = sext i8 %50 to i32
%52 = and i32 %51, 255
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds i16, i16* %48, i64 %53
%55 = load i16, i16* %54
%56 = zext i16 %55 to i32
%57 = and i32 %56, 775
%58 = icmp ne i32 %57, 0
br i1 %58, label %61, label %59
59: ; preds = %44
%60 = load i8*, i8** %4
ret i8* %60
61: ; preds = %44
%62 = load i8*, i8** %4
%63 = getelementptr inbounds i8, i8* %62, i32 1
store i8* %63, i8** %4
br label %5
}

LLVM IR (-O2):
%struct.TYPE_3__ = type { i64 }
define i8* @eat_alpha_numeric(%struct.TYPE_3__* nocapture %0, i8* %1) {
%3 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %0, i64 0, i32 0
%4 = load i64, i64* %3
%5 = inttoptr i64 %4 to i16*
br label %6
6: ; preds = %25, %2
%7 = phi i8* [ %1, %2 ], [ %26, %25 ]
%8 = load i8, i8* %7
%9 = zext i8 %8 to i64
%10 = getelementptr inbounds i16, i16* %5, i64 %9
%11 = load i16, i16* %10
%12 = zext i16 %11 to i32
%13 = and i32 %12, 32
%14 = icmp eq i32 %13, 0
br i1 %14, label %27, label %15
15: ; preds = %6
%16 = getelementptr inbounds i8, i8* %7, i64 1
%17 = load i8, i8* %16
%18 = zext i8 %17 to i64
%19 = getelementptr inbounds i16, i16* %5, i64 %18
%20 = load i16, i16* %19
%21 = and i16 %20, 8
%22 = icmp eq i16 %21, 0
%23 = getelementptr inbounds i8, i8* %7, i64 2
%24 = select i1 %22, i8* %23, i8* %16
br label %25
25: ; preds = %15, %31
%26 = phi i8* [ %24, %15 ], [ %32, %31 ]
br label %6
27: ; preds = %6
%28 = and i32 %12, 775
%29 = icmp eq i32 %28, 0
br i1 %29, label %30, label %31
30: ; preds = %27
ret i8* %7
31: ; preds = %27
%32 = getelementptr inbounds i8, i8* %7, i64 1
br label %25
}