#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*/ _who(char const **);
void _wholist(char const **mode) {
  char c;
  _who(mode);
  for (c = **mode; c == 'u' || c == 'g' || c == 'o' || c == 'a'; c = **mode)
    _who(mode);
}


x86 assembly (clang, -O0):
<_wholist>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <_who@plt>
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
mov    (%rax),%al
mov    %al,-0x9(%rbp)
movsbl -0x9(%rbp),%ecx
mov    $0x1,%al
cmp    $0x75,%ecx
mov    %al,-0xa(%rbp)
je     1174 <_wholist+0x64>
movsbl -0x9(%rbp),%ecx
mov    $0x1,%al
cmp    $0x67,%ecx
mov    %al,-0xa(%rbp)
je     1174 <_wholist+0x64>
movsbl -0x9(%rbp),%ecx
mov    $0x1,%al
cmp    $0x6f,%ecx
mov    %al,-0xa(%rbp)
je     1174 <_wholist+0x64>
movsbl -0x9(%rbp),%eax
cmp    $0x61,%eax
sete   %al
mov    %al,-0xa(%rbp)
mov    -0xa(%rbp),%al
test   $0x1,%al
jne    1184 <_wholist+0x74>
jmp    119e <_wholist+0x8e>
mov    -0x8(%rbp),%rdi
call   1030 <_who@plt>
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
mov    (%rax),%al
mov    %al,-0x9(%rbp)
jmp    1131 <_wholist+0x21>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_wholist>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%rbx
call   1030 <_who@plt>
mov    $0x104041,%r14d
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    (%rbx),%rax
movzbl (%rax),%eax
add    $0x9f,%al
cmp    $0x14,%al
ja     114f <_wholist+0x3f>
movzbl %al,%eax
bt     %rax,%r14
jae    114f <_wholist+0x3f>
mov    %rbx,%rdi
call   1030 <_who@plt>
jmp    1130 <_wholist+0x20>
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define void @_wholist(i8** %0) {
%2 = alloca i8**
%3 = alloca i8
store i8** %0, i8*** %2
%4 = load i8**, i8*** %2
%5 = call i32 @_who(i8** %4)
%6 = load i8**, i8*** %2
%7 = load i8*, i8** %6
%8 = load i8, i8* %7
store i8 %8, i8* %3
br label %9
9: ; preds = %30, %1
%10 = load i8, i8* %3
%11 = sext i8 %10 to i32
%12 = icmp eq i32 %11, 117
br i1 %12, label %25, label %13
13: ; preds = %9
%14 = load i8, i8* %3
%15 = sext i8 %14 to i32
%16 = icmp eq i32 %15, 103
br i1 %16, label %25, label %17
17: ; preds = %13
%18 = load i8, i8* %3
%19 = sext i8 %18 to i32
%20 = icmp eq i32 %19, 111
br i1 %20, label %25, label %21
21: ; preds = %17
%22 = load i8, i8* %3
%23 = sext i8 %22 to i32
%24 = icmp eq i32 %23, 97
br label %25
25: ; preds = %21, %17, %13, %9
%26 = phi i1 [ true, %17 ], [ true, %13 ], [ true, %9 ], [ %24, %21 ]
br i1 %26, label %27, label %34
27: ; preds = %25
%28 = load i8**, i8*** %2
%29 = call i32 @_who(i8** %28)
br label %30
30: ; preds = %27
%31 = load i8**, i8*** %2
%32 = load i8*, i8** %31
%33 = load i8, i8* %32
store i8 %33, i8* %3
br label %9
34: ; preds = %25
ret void
}

LLVM IR (-O2):
define void @_wholist(i8** %0) {
%2 = tail call i32 @_who(i8** %0)
br label %3
3: ; preds = %6, %1
%4 = load i8*, i8** %0
%5 = load i8, i8* %4
switch i8 %5, label %8 [
i8 117, label %6
i8 111, label %6
i8 103, label %6
i8 97, label %6
]
6: ; preds = %3, %3, %3, %3
%7 = tail call i32 @_who(i8** %0)
br label %3
8: ; preds = %3
ret void
}