#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int fgetline(int /*<<< orphan*/ *, int, char *);
scalar_t__ memcmp(char **, char **, int);
int /*<<< orphan*/ separatewords(int, char *);
void processwordlist(FILE *fh_in) {
  static int len;
  static char hexid[] = "$HEX[";
  static char linein[256];
  while ((len = fgetline(fh_in, 256, linein)) != -1) {
    if (memcmp(&linein, &hexid, 5) == 0)
      continue;
    if (len < 64)
      separatewords(len, linein);
  }
  return;
}


x86 assembly (clang, -O0):
<processwordlist>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
mov    $0x100,%esi
lea    0x2f14(%rip),%rdx
call   1030 <fgetline@plt>
mov    %eax,0x2ef9(%rip)
cmp    $0xffffffff,%eax
je     11ab <processwordlist+0x7b>
lea    0x2ef9(%rip),%rdi
lea    0x2eca(%rip),%rsi
mov    $0x5,%edx
call   1050 <memcmp@plt>
cmp    $0x0,%rax
jne    1187 <processwordlist+0x57>
jmp    113c <processwordlist+0xc>
cmpl   $0x40,0x2ec2(%rip)
jge    11a6 <processwordlist+0x76>
mov    0x2eb6(%rip),%edi
lea    0x2ebf(%rip),%rsi
call   1040 <separatewords@plt>
jmp    113c <processwordlist+0xc>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<processwordlist>:
push   %r15
push   %r14
push   %rbx
mov    %rdi,%r14
lea    0x2f21(%rip),%rdx
mov    $0x100,%esi
call   1030 <fgetline@plt>
mov    %eax,0x2f01(%rip)
cmp    $0xffffffff,%eax
je     11b5 <processwordlist+0x85>
lea    0x2f05(%rip),%rbx
lea    0x2ed6(%rip),%r15
jmp    118b <processwordlist+0x5b>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %r14,%rdi
mov    $0x100,%esi
mov    %rbx,%rdx
call   1030 <fgetline@plt>
mov    %eax,0x2eca(%rip)
cmp    $0xffffffff,%eax
je     11b5 <processwordlist+0x85>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    $0x5,%edx
call   1050 <memcmp@plt>
test   %rax,%rax
je     1170 <processwordlist+0x40>
mov    0x2eaa(%rip),%edi
cmp    $0x3f,%edi
jg     1170 <processwordlist+0x40>
mov    %rbx,%rsi
call   1040 <separatewords@plt>
jmp    1170 <processwordlist+0x40>
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@processwordlist.len = internal global i32 0
@processwordlist.hexid = internal global [6 x i8] c"$HEX[\00"
@processwordlist.linein = internal global [256 x i8] zeroinitializer
define void @processwordlist(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
br label %3
3: ; preds = %17, %10, %1
%4 = load i32*, i32** %2
%5 = call i32 @fgetline(i32* %4, i32 256, i8* getelementptr inbounds ([256 x i8], [256 x i8]* @processwordlist.linein, i64 0, i64 0))
store i32 %5, i32* @processwordlist.len
%6 = icmp ne i32 %5, -1
br i1 %6, label %7, label %18
7: ; preds = %3
%8 = call i64 @memcmp(i8** bitcast ([256 x i8]* @processwordlist.linein to i8**), i8** bitcast ([6 x i8]* @processwordlist.hexid to i8**), i32 5)
%9 = icmp eq i64 %8, 0
br i1 %9, label %10, label %11
10: ; preds = %7
br label %3
11: ; preds = %7
%12 = load i32, i32* @processwordlist.len
%13 = icmp slt i32 %12, 64
br i1 %13, label %14, label %17
14: ; preds = %11
%15 = load i32, i32* @processwordlist.len
%16 = call i32 @separatewords(i32 %15, i8* getelementptr inbounds ([256 x i8], [256 x i8]* @processwordlist.linein, i64 0, i64 0))
br label %17
17: ; preds = %14, %11
br label %3
18: ; preds = %3
ret void
}

LLVM IR (-O2):
@processwordlist.len = internal unnamed_addr global i32 0
@processwordlist.hexid = internal global [6 x i8] c"$HEX[\00"
@processwordlist.linein = internal global [256 x i8] zeroinitializer
define void @processwordlist(i32* %0) {
%2 = tail call i32 @fgetline(i32* %0, i32 256, i8* getelementptr inbounds ([256 x i8], [256 x i8]* @processwordlist.linein, i64 0, i64 0))
store i32 %2, i32* @processwordlist.len
%3 = icmp eq i32 %2, -1
br i1 %3, label %15, label %4
4: ; preds = %1, %12
%5 = tail call i64 @memcmp(i8** bitcast ([256 x i8]* @processwordlist.linein to i8**), i8** bitcast ([6 x i8]* @processwordlist.hexid to i8**), i32 5)
%6 = icmp eq i64 %5, 0
br i1 %6, label %12, label %7
7: ; preds = %4
%8 = load i32, i32* @processwordlist.len
%9 = icmp slt i32 %8, 64
br i1 %9, label %10, label %12
10: ; preds = %7
%11 = tail call i32 @separatewords(i32 %8, i8* getelementptr inbounds ([256 x i8], [256 x i8]* @processwordlist.linein, i64 0, i64 0))
br label %12
12: ; preds = %7, %10, %4
%13 = tail call i32 @fgetline(i32* %0, i32 256, i8* getelementptr inbounds ([256 x i8], [256 x i8]* @processwordlist.linein, i64 0, i64 0))
store i32 %13, i32* @processwordlist.len
%14 = icmp eq i32 %13, -1
br i1 %14, label %15, label %4
15: ; preds = %12, %1
ret void
}