#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 /*<<< orphan*/ EGioParse(char **, char **, char const *, char const *);
char *fgets(char *, int, int /*<<< orphan*/ *);
void EGioDisCom(char **next, char **current, const char *delim,
                const char *comment, char *store, unsigned int storeSize,
                FILE *in) {
  int status = 1;
  if (!(*current)) {
    status = (store == fgets(store, (int)storeSize, in));
    *current = store;
  }
  EGioParse(next, current, delim, comment);
  while (!(*next) && status) {
    status = (store == fgets(store, (int)storeSize, in));
    *current = store;
    EGioParse(next, current, delim, comment);
  }
  return;
}


x86 assembly (clang, -O0):
<EGioDisCom>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9d,-0x2c(%rbp)
movl   $0x1,-0x30(%rbp)
mov    -0x10(%rbp),%rax
cmpq   $0x0,(%rax)
jne    1191 <EGioDisCom+0x71>
mov    -0x28(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x28(%rbp),%rdi
mov    -0x2c(%rbp),%esi
mov    0x10(%rbp),%rdx
call   1030 <fgets@plt>
mov    %rax,%rcx
mov    -0x38(%rbp),%rax
cmp    %rcx,%rax
sete   %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x30(%rbp)
mov    -0x28(%rbp),%rcx
mov    -0x10(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rcx
call   1040 <EGioParse@plt>
mov    -0x8(%rbp),%rcx
xor    %eax,%eax
cmpq   $0x0,(%rcx)
mov    %al,-0x39(%rbp)
jne    11c3 <EGioDisCom+0xa3>
cmpl   $0x0,-0x30(%rbp)
setne  %al
mov    %al,-0x39(%rbp)
mov    -0x39(%rbp),%al
test   $0x1,%al
jne    11d3 <EGioDisCom+0xb3>
jmp    1225 <EGioDisCom+0x105>
mov    -0x28(%rbp),%rax
mov    %rax,-0x48(%rbp)
mov    -0x28(%rbp),%rdi
mov    -0x2c(%rbp),%esi
mov    0x10(%rbp),%rdx
call   1030 <fgets@plt>
mov    %rax,%rcx
mov    -0x48(%rbp),%rax
cmp    %rcx,%rax
sete   %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x30(%rbp)
mov    -0x28(%rbp),%rcx
mov    -0x10(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rcx
call   1040 <EGioParse@plt>
jmp    11a6 <EGioDisCom+0x86>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<EGioDisCom>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %r9d,0x4(%rsp)
mov    %r8,%rbx
mov    %rcx,%r15
mov    %rdx,%r12
mov    %rsi,%rbp
mov    %rdi,%r13
mov    $0x1,%r14b
cmpq   $0x0,(%rsi)
jne    1164 <EGioDisCom+0x44>
mov    %rbx,%rdi
mov    0x4(%rsp),%esi
mov    0x40(%rsp),%rdx
call   1030 <fgets@plt>
cmp    %rbx,%rax
sete   %r14b
mov    %rbx,0x0(%rbp)
mov    %r13,%rdi
mov    %rbp,%rsi
mov    %r12,%rdx
mov    %r15,%rcx
call   1040 <EGioParse@plt>
test   %r14b,%r14b
je     11b5 <EGioDisCom+0x95>
nopw   0x0(%rax,%rax,1)
cmpq   $0x0,0x0(%r13)
jne    11b5 <EGioDisCom+0x95>
mov    %rbx,%rdi
mov    0x4(%rsp),%esi
mov    0x40(%rsp),%rdx
call   1030 <fgets@plt>
mov    %rax,%r14
mov    %rbx,0x0(%rbp)
mov    %r13,%rdi
mov    %rbp,%rsi
mov    %r12,%rdx
mov    %r15,%rcx
call   1040 <EGioParse@plt>
cmp    %rbx,%r14
je     1180 <EGioDisCom+0x60>
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @EGioDisCom(i8** %0, i8** %1, i8* %2, i8* %3, i8* %4, i32 %5, i32* %6) {
%8 = alloca i8**
%9 = alloca i8**
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca i8*
%13 = alloca i32
%14 = alloca i32*
%15 = alloca i32
store i8** %0, i8*** %8
store i8** %1, i8*** %9
store i8* %2, i8** %10
store i8* %3, i8** %11
store i8* %4, i8** %12
store i32 %5, i32* %13
store i32* %6, i32** %14
store i32 1, i32* %15
%16 = load i8**, i8*** %9
%17 = load i8*, i8** %16
%18 = icmp ne i8* %17, null
br i1 %18, label %29, label %19
19: ; preds = %7
%20 = load i8*, i8** %12
%21 = load i8*, i8** %12
%22 = load i32, i32* %13
%23 = load i32*, i32** %14
%24 = call i8* @fgets(i8* %21, i32 %22, i32* %23)
%25 = icmp eq i8* %20, %24
%26 = zext i1 %25 to i32
store i32 %26, i32* %15
%27 = load i8*, i8** %12
%28 = load i8**, i8*** %9
store i8* %27, i8** %28
br label %29
29: ; preds = %19, %7
%30 = load i8**, i8*** %8
%31 = load i8**, i8*** %9
%32 = load i8*, i8** %10
%33 = load i8*, i8** %11
%34 = call i32 @EGioParse(i8** %30, i8** %31, i8* %32, i8* %33)
br label %35
35: ; preds = %44, %29
%36 = load i8**, i8*** %8
%37 = load i8*, i8** %36
%38 = icmp ne i8* %37, null
br i1 %38, label %42, label %39
39: ; preds = %35
%40 = load i32, i32* %15
%41 = icmp ne i32 %40, 0
br label %42
42: ; preds = %39, %35
%43 = phi i1 [ false, %35 ], [ %41, %39 ]
br i1 %43, label %44, label %59
44: ; preds = %42
%45 = load i8*, i8** %12
%46 = load i8*, i8** %12
%47 = load i32, i32* %13
%48 = load i32*, i32** %14
%49 = call i8* @fgets(i8* %46, i32 %47, i32* %48)
%50 = icmp eq i8* %45, %49
%51 = zext i1 %50 to i32
store i32 %51, i32* %15
%52 = load i8*, i8** %12
%53 = load i8**, i8*** %9
store i8* %52, i8** %53
%54 = load i8**, i8*** %8
%55 = load i8**, i8*** %9
%56 = load i8*, i8** %10
%57 = load i8*, i8** %11
%58 = call i32 @EGioParse(i8** %54, i8** %55, i8* %56, i8* %57)
br label %35
59: ; preds = %42
ret void
}

LLVM IR (-O2):
define void @EGioDisCom(i8** %0, i8** %1, i8* %2, i8* %3, i8* %4, i32 %5, i32* nocapture %6) {
%8 = load i8*, i8** %1
%9 = icmp eq i8* %8, null
br i1 %9, label %10, label %13
10: ; preds = %7
%11 = tail call i8* @fgets(i8* %4, i32 %5, i32* %6)
%12 = icmp eq i8* %11, %4
store i8* %4, i8** %1
br label %13
13: ; preds = %10, %7
%14 = phi i1 [ true, %7 ], [ %12, %10 ]
%15 = tail call i32 @EGioParse(i8** %0, i8** %1, i8* %2, i8* %3)
%16 = load i8*, i8** %0
%17 = icmp eq i8* %16, null
%18 = and i1 %14, %17
br i1 %18, label %19, label %26
19: ; preds = %13, %19
%20 = tail call i8* @fgets(i8* %4, i32 %5, i32* %6)
%21 = icmp eq i8* %20, %4
store i8* %4, i8** %1
%22 = tail call i32 @EGioParse(i8** %0, i8** %1, i8* %2, i8* %3)
%23 = load i8*, i8** %0
%24 = icmp eq i8* %23, null
%25 = and i1 %21, %24
br i1 %25, label %19, label %26
26: ; preds = %19, %13
ret void
}