#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 */
struct TYPE_3__ {
  scalar_t__ meth_data;
};
typedef TYPE_1__ CONF;

/* Variables and functions */
char *eat_ws(CONF *conf, char *p) {
  while ((((unsigned short *)((conf)->meth_data))[(*p) & 0xff] & 16) &&
         (!(((unsigned short *)((conf)->meth_data))[(*p) & 0xff] & 8)))
    p++;
  return (p);
}


x86 assembly (clang, -O0):
<eat_ws>:
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),%ecx
and    $0x10,%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x11(%rbp)
je     1161 <eat_ws+0x61>
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    $0x8,%eax
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
mov    %al,-0x11(%rbp)
mov    -0x11(%rbp),%al
test   $0x1,%al
jne    1171 <eat_ws+0x71>
jmp    1182 <eat_ws+0x82>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    110c <eat_ws+0xc>
mov    -0x10(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<eat_ws>:
mov    %rsi,%rax
mov    (%rdi),%rcx
add    $0xffffffffffffffff,%rax
nopw   0x0(%rax,%rax,1)
movzbl 0x1(%rax),%edx
add    $0x1,%rax
movzwl (%rcx,%rdx,2),%edx
and    $0x18,%edx
cmp    $0x10,%dx
je     1110 <eat_ws+0x10>
ret

LLVM IR (-O0):
%struct.TYPE_3__ = type { i64 }
define i8* @eat_ws(%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 = %38, %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, 16
%19 = icmp ne i32 %18, 0
br i1 %19, label %20, label %36
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 = load i8, i8* %25
%27 = sext i8 %26 to i32
%28 = and i32 %27, 255
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i16, i16* %24, i64 %29
%31 = load i16, i16* %30
%32 = zext i16 %31 to i32
%33 = and i32 %32, 8
%34 = icmp ne i32 %33, 0
%35 = xor i1 %34, true
br label %36
36: ; preds = %20, %5
%37 = phi i1 [ false, %5 ], [ %35, %20 ]
br i1 %37, label %38, label %41
38: ; preds = %36
%39 = load i8*, i8** %4
%40 = getelementptr inbounds i8, i8* %39, i32 1
store i8* %40, i8** %4
br label %5
41: ; preds = %36
%42 = load i8*, i8** %4
ret i8* %42
}

LLVM IR (-O2):
%struct.TYPE_3__ = type { i64 }
define i8* @eat_ws(%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 = %6, %2
%7 = phi i8* [ %1, %2 ], [ %14, %6 ]
%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 = and i16 %11, 24
%13 = icmp eq i16 %12, 16
%14 = getelementptr inbounds i8, i8* %7, i64 1
br i1 %13, label %6, label %15
15: ; preds = %6
ret i8* %7
}