#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 EOF;
int /*<<< orphan*/ FSeekPastSpaces(int /*<<< orphan*/ *);
int /*<<< orphan*/ SEEK_CUR;
int fgetc(int /*<<< orphan*/ *);
int /*<<< orphan*/ fseek(int /*<<< orphan*/ *, int, int /*<<< orphan*/);
char *V3DLoadGetParmF(FILE *fp) {
  int c, i;
  static char rtn_str[80];
  *rtn_str = '\0';
  if (fp == NULL)
    return (rtn_str);
  FSeekPastSpaces(fp);
  for (i = 0; i < 80; i++) {
    c = fgetc(fp);
    if ((c == EOF) || (((c) == ' ') || ((c) == '\t'))) {
      rtn_str[i] = '\0';
      break;
    } else if (c == '\\') {
      c = fgetc(fp);
      if (c == EOF) {
        rtn_str[i] = '\0';
        break;
      }
      if (c != '\\')
        c = fgetc(fp);
      if (c == EOF) {
        rtn_str[i] = '\0';
        break;
      }
    } else if ((((c) == '\n') || ((c) == '\r'))) {
      fseek(fp, -1, SEEK_CUR);
      rtn_str[i] = '\0';
      break;
    }
    rtn_str[i] = (char)c;
  }
  return (rtn_str);
}


x86 assembly (clang, -O0):
<V3DLoadGetParmF>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
movb   $0x0,0x2f0d(%rip)
cmpq   $0x0,-0x10(%rbp)
jne    115e <V3DLoadGetParmF+0x2e>
lea    0x2efb(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12b0 <V3DLoadGetParmF+0x180>
mov    -0x10(%rbp),%rdi
call   1040 <FSeekPastSpaces@plt>
movl   $0x0,-0x18(%rbp)
cmpl   $0x50,-0x18(%rbp)
jge    12a5 <V3DLoadGetParmF+0x175>
mov    -0x10(%rbp),%rdi
call   1030 <fgetc@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
mov    0x2e52(%rip),%rcx
cmp    (%rcx),%eax
je     11aa <V3DLoadGetParmF+0x7a>
cmpl   $0x20,-0x14(%rbp)
je     11aa <V3DLoadGetParmF+0x7a>
cmpl   $0x9,-0x14(%rbp)
jne    11be <V3DLoadGetParmF+0x8e>
movslq -0x18(%rbp),%rcx
lea    0x2e9b(%rip),%rax
movb   $0x0,(%rax,%rcx,1)
jmp    12a5 <V3DLoadGetParmF+0x175>
cmpl   $0x5c,-0x14(%rbp)
jne    123b <V3DLoadGetParmF+0x10b>
mov    -0x10(%rbp),%rdi
call   1030 <fgetc@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
mov    0x2e02(%rip),%rcx
cmp    (%rcx),%eax
jne    11fa <V3DLoadGetParmF+0xca>
movslq -0x18(%rbp),%rcx
lea    0x2e5f(%rip),%rax
movb   $0x0,(%rax,%rcx,1)
jmp    12a5 <V3DLoadGetParmF+0x175>
cmpl   $0x5c,-0x14(%rbp)
je     1210 <V3DLoadGetParmF+0xe0>
mov    -0x10(%rbp),%rdi
call   1030 <fgetc@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
mov    0x2dc6(%rip),%rcx
cmp    (%rcx),%eax
jne    1236 <V3DLoadGetParmF+0x106>
movslq -0x18(%rbp),%rcx
lea    0x2e23(%rip),%rax
movb   $0x0,(%rax,%rcx,1)
jmp    12a5 <V3DLoadGetParmF+0x175>
jmp    127f <V3DLoadGetParmF+0x14f>
cmpl   $0xa,-0x14(%rbp)
je     124f <V3DLoadGetParmF+0x11f>
cmpl   $0xd,-0x14(%rbp)
jne    127a <V3DLoadGetParmF+0x14a>
mov    -0x10(%rbp),%rdi
mov    0x2d8e(%rip),%rax
mov    (%rax),%edx
mov    $0xffffffff,%esi
call   1050 <fseek@plt>
movslq -0x18(%rbp),%rcx
lea    0x2ddf(%rip),%rax
movb   $0x0,(%rax,%rcx,1)
jmp    12a5 <V3DLoadGetParmF+0x175>
jmp    127f <V3DLoadGetParmF+0x14f>
jmp    1284 <V3DLoadGetParmF+0x154>
mov    -0x14(%rbp),%eax
mov    %al,%dl
movslq -0x18(%rbp),%rcx
lea    0x2dbc(%rip),%rax
mov    %dl,(%rax,%rcx,1)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    116e <V3DLoadGetParmF+0x3e>
lea    0x2da4(%rip),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<V3DLoadGetParmF>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
movb   $0x0,0x2f10(%rip)
test   %rdi,%rdi
je     11f5 <V3DLoadGetParmF+0xc5>
mov    %rdi,%r14
call   1040 <FSeekPastSpaces@plt>
xor    %ebx,%ebx
mov    0x2e86(%rip),%r12
lea    0x2eef(%rip),%r15
lea    0xe98(%rip),%r13
jmp    1182 <V3DLoadGetParmF+0x52>
nopw   0x0(%rax,%rax,1)
cmp    %edx,%eax
je     11f0 <V3DLoadGetParmF+0xc0>
mov    %al,(%rbx,%r15,1)
add    $0x1,%rbx
cmp    $0x50,%rbx
je     11f5 <V3DLoadGetParmF+0xc5>
mov    %r14,%rdi
call   1030 <fgetc@plt>
cmp    (%r12),%eax
je     11f0 <V3DLoadGetParmF+0xc0>
cmp    $0x5c,%eax
je     11b0 <V3DLoadGetParmF+0x80>
mov    %eax,%ecx
add    $0xfffffff7,%ecx
cmp    $0x17,%ecx
ja     1174 <V3DLoadGetParmF+0x44>
movslq 0x0(%r13,%rcx,4),%rcx
add    %r13,%rcx
jmp    *%rcx
nopl   0x0(%rax)
mov    %r14,%rdi
call   1030 <fgetc@plt>
mov    (%r12),%edx
cmp    %edx,%eax
je     11f0 <V3DLoadGetParmF+0xc0>
mov    %eax,%ecx
mov    $0x5c,%eax
cmp    $0x5c,%ecx
je     1170 <V3DLoadGetParmF+0x40>
mov    %r14,%rdi
call   1030 <fgetc@plt>
mov    (%r12),%edx
jmp    1170 <V3DLoadGetParmF+0x40>
mov    0x2e07(%rip),%rax
mov    (%rax),%edx
mov    %r14,%rdi
mov    $0xffffffff,%esi
call   1050 <fseek@plt>
movb   $0x0,(%rbx,%r15,1)
lea    0x2e54(%rip),%rax
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@V3DLoadGetParmF.rtn_str = internal global [80 x i8] zeroinitializer
@EOF = global i32 0
@SEEK_CUR = global i32 0
define i8* @V3DLoadGetParmF(i32* %0) {
%2 = alloca i8*
%3 = alloca i32*
%4 = alloca i32
%5 = alloca i32
store i32* %0, i32** %3
store i8 0, i8* getelementptr inbounds ([80 x i8], [80 x i8]* @V3DLoadGetParmF.rtn_str, i64 0, i64 0)
%6 = load i32*, i32** %3
%7 = icmp eq i32* %6, null
br i1 %7, label %8, label %9
8: ; preds = %1
store i8* getelementptr inbounds ([80 x i8], [80 x i8]* @V3DLoadGetParmF.rtn_str, i64 0, i64 0), i8** %2
br label %84
9: ; preds = %1
%10 = load i32*, i32** %3
%11 = call i32 @FSeekPastSpaces(i32* %10)
store i32 0, i32* %5
br label %12
12: ; preds = %80, %9
%13 = load i32, i32* %5
%14 = icmp slt i32 %13, 80
br i1 %14, label %15, label %83
15: ; preds = %12
%16 = load i32*, i32** %3
%17 = call i32 @fgetc(i32* %16)
store i32 %17, i32* %4
%18 = load i32, i32* %4
%19 = load i32, i32* @EOF
%20 = icmp eq i32 %18, %19
br i1 %20, label %27, label %21
21: ; preds = %15
%22 = load i32, i32* %4
%23 = icmp eq i32 %22, 32
br i1 %23, label %27, label %24
24: ; preds = %21
%25 = load i32, i32* %4
%26 = icmp eq i32 %25, 9
br i1 %26, label %27, label %31
27: ; preds = %24, %21, %15
%28 = load i32, i32* %5
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [80 x i8], [80 x i8]* @V3DLoadGetParmF.rtn_str, i64 0, i64 %29
store i8 0, i8* %30
br label %83
31: ; preds = %24
%32 = load i32, i32* %4
%33 = icmp eq i32 %32, 92
br i1 %33, label %34, label %59
34: ; preds = %31
%35 = load i32*, i32** %3
%36 = call i32 @fgetc(i32* %35)
store i32 %36, i32* %4
%37 = load i32, i32* %4
%38 = load i32, i32* @EOF
%39 = icmp eq i32 %37, %38
br i1 %39, label %40, label %44
40: ; preds = %34
%41 = load i32, i32* %5
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [80 x i8], [80 x i8]* @V3DLoadGetParmF.rtn_str, i64 0, i64 %42
store i8 0, i8* %43
br label %83
44: ; preds = %34
%45 = load i32, i32* %4
%46 = icmp ne i32 %45, 92
br i1 %46, label %47, label %50
47: ; preds = %44
%48 = load i32*, i32** %3
%49 = call i32 @fgetc(i32* %48)
store i32 %49, i32* %4
br label %50
50: ; preds = %47, %44
%51 = load i32, i32* %4
%52 = load i32, i32* @EOF
%53 = icmp eq i32 %51, %52
br i1 %53, label %54, label %58
54: ; preds = %50
%55 = load i32, i32* %5
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds [80 x i8], [80 x i8]* @V3DLoadGetParmF.rtn_str, i64 0, i64 %56
store i8 0, i8* %57
br label %83
58: ; preds = %50
br label %73
59: ; preds = %31
%60 = load i32, i32* %4
%61 = icmp eq i32 %60, 10
br i1 %61, label %65, label %62
62: ; preds = %59
%63 = load i32, i32* %4
%64 = icmp eq i32 %63, 13
br i1 %64, label %65, label %72
65: ; preds = %62, %59
%66 = load i32*, i32** %3
%67 = load i32, i32* @SEEK_CUR
%68 = call i32 @fseek(i32* %66, i32 -1, i32 %67)
%69 = load i32, i32* %5
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds [80 x i8], [80 x i8]* @V3DLoadGetParmF.rtn_str, i64 0, i64 %70
store i8 0, i8* %71
br label %83
72: ; preds = %62
br label %73
73: ; preds = %72, %58
br label %74
74: ; preds = %73
%75 = load i32, i32* %4
%76 = trunc i32 %75 to i8
%77 = load i32, i32* %5
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds [80 x i8], [80 x i8]* @V3DLoadGetParmF.rtn_str, i64 0, i64 %78
store i8 %76, i8* %79
br label %80
80: ; preds = %74
%81 = load i32, i32* %5
%82 = add nsw i32 %81, 1
store i32 %82, i32* %5
br label %12
83: ; preds = %65, %54, %40, %27, %12
store i8* getelementptr inbounds ([80 x i8], [80 x i8]* @V3DLoadGetParmF.rtn_str, i64 0, i64 0), i8** %2
br label %84
84: ; preds = %83, %8
%85 = load i8*, i8** %2
ret i8* %85
}

LLVM IR (-O2):
@V3DLoadGetParmF.rtn_str = internal global [80 x i8] zeroinitializer
@EOF = global i32 0
@SEEK_CUR = global i32 0
define i8* @V3DLoadGetParmF(i32* %0) {
store i8 0, i8* getelementptr inbounds ([80 x i8], [80 x i8]* @V3DLoadGetParmF.rtn_str, i64 0, i64 0)
%2 = icmp eq i32* %0, null
br i1 %2, label %37, label %3
3: ; preds = %1
%4 = tail call i32 @FSeekPastSpaces(i32* %0)
br label %5
5: ; preds = %3, %28
%6 = phi i64 [ 0, %3 ], [ %32, %28 ]
%7 = tail call i32 @fgetc(i32* %0)
%8 = load i32, i32* @EOF
%9 = freeze i32 %8
%10 = icmp eq i32 %7, %9
br i1 %10, label %34, label %11
11: ; preds = %5
switch i32 %7, label %28 [
i32 32, label %34
i32 9, label %34
i32 92, label %12
i32 13, label %25
i32 10, label %25
]
12: ; preds = %11
%13 = tail call i32 @fgetc(i32* %0)
%14 = load i32, i32* @EOF
%15 = icmp eq i32 %13, %14
br i1 %15, label %34, label %16
16: ; preds = %12
%17 = icmp eq i32 %13, 92
br i1 %17, label %21, label %18
18: ; preds = %16
%19 = tail call i32 @fgetc(i32* %0)
%20 = load i32, i32* @EOF
br label %21
21: ; preds = %18, %16
%22 = phi i32 [ %20, %18 ], [ %14, %16 ]
%23 = phi i32 [ %19, %18 ], [ 92, %16 ]
%24 = icmp eq i32 %23, %22
br i1 %24, label %34, label %28
25: ; preds = %11, %11
%26 = load i32, i32* @SEEK_CUR
%27 = tail call i32 @fseek(i32* %0, i32 -1, i32 %26)
br label %34
28: ; preds = %11, %21
%29 = phi i32 [ %23, %21 ], [ %7, %11 ]
%30 = trunc i32 %29 to i8
%31 = getelementptr inbounds [80 x i8], [80 x i8]* @V3DLoadGetParmF.rtn_str, i64 0, i64 %6
store i8 %30, i8* %31
%32 = add nuw nsw i64 %6, 1
%33 = icmp eq i64 %32, 80
br i1 %33, label %37, label %5
34: ; preds = %21, %12, %5, %11, %11, %25
%35 = and i64 %6, 4294967295
%36 = getelementptr inbounds [80 x i8], [80 x i8]* @V3DLoadGetParmF.rtn_str, i64 0, i64 %35
store i8 0, i8* %36
br label %37
37: ; preds = %28, %34, %1
ret i8* getelementptr inbounds ([80 x i8], [80 x i8]* @V3DLoadGetParmF.rtn_str, i64 0, i64 0)
}