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

/* Variables and functions */
int /*<<< orphan*/ SEEK_SET;
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
scalar_t__ feof(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
scalar_t__ fseek(int /*<<< orphan*/ *, int, int /*<<< orphan*/);
scalar_t__ md5sum_extract_md5(char *, char **, char **);
int /*<<< orphan*/ memset(char *, int /*<<< orphan*/, int);
int /*<<< orphan*/ printf(char *, char *, char *);
int /*<<< orphan*/ stderr;
scalar_t__ strcasecmp(char *, char *);
scalar_t__ strcmp(char *, char *);
int strlen(char *);
int /*<<< orphan*/ strncpy(char *, char *, int);
void md5sum_print(char *db_file, char *hash, off_t offset, int flags) {
  FILE *hFile;
  char buf[512], *name, *ptr = NULL, pname[512];
  int found = 0;
  if (strlen(hash) != 32) {
    fprintf(stderr, "md5sum_print: Invalid hash value: %s\n", hash);
    exit(1);
  }
  if (NULL == (hFile = fopen(db_file, "r"))) {
    fprintf(stderr, "md5sum_print: Error opening md5sum DB file: %s\n",
            db_file);
    return;
  }
  memset(pname, '0', 512);
  while (1) {
    int len;
    if (0 != fseek(hFile, offset, SEEK_SET)) {
      fprintf(stderr, "md5sum_print: Error seeking to get file name: %lu\n",
              (unsigned long)offset);
      exit(1);
    }
    if (NULL == fgets(buf, 512, hFile)) {
      if (feof(hFile)) {
        break;
      }
      fprintf(stderr, "md5sum_print: Error reading database\n");
      exit(1);
    }
    len = strlen(buf);
    if (md5sum_extract_md5(buf, &ptr, &name)) {
      fprintf(stderr, "md5sum_print: Invalid entry in database\n");
      exit(1);
    }
    if (0 != strcasecmp(ptr, hash)) {
      break;
    }
    if (strcmp(name, pname) != 0) {
      printf("%s\t%s\n", hash, name);
      found = 1;
      strncpy(pname, name, 512);
    }
    offset += len;
  }
  if (found == 0) {
    fprintf(stderr, "Hash not found in file at offset: %lu\n",
            (unsigned long)offset);
    exit(1);
  }
  fclose(hFile);
  return;
}


x86 assembly (clang, -O0):
<md5sum_print>:
push   %rbp
mov    %rsp,%rbp
sub    $0x440,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
movq   $0x0,-0x230(%rbp)
movl   $0x0,-0x434(%rbp)
mov    -0x10(%rbp),%rdi
call   1060 <strlen@plt>
cmp    $0x20,%eax
je     1245 <md5sum_print+0x65>
mov    0x2db9(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rdx
lea    0xdcc(%rip),%rsi
mov    $0x0,%al
call   10b0 <fprintf@plt>
mov    $0x1,%edi
call   1100 <exit@plt>
mov    -0x8(%rbp),%rdi
lea    0xdd6(%rip),%rsi
call   10e0 <fopen@plt>
mov    %rax,%rcx
mov    %rcx,-0x20(%rbp)
xor    %eax,%eax
cmp    %rcx,%rax
jne    1287 <md5sum_print+0xa7>
mov    0x2d72(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xdad(%rip),%rsi
mov    $0x0,%al
call   10b0 <fprintf@plt>
jmp    145d <md5sum_print+0x27d>
lea    -0x430(%rbp),%rdi
mov    $0x30,%esi
mov    $0x200,%edx
call   1080 <memset@plt>
mov    -0x20(%rbp),%rdi
mov    -0x14(%rbp),%esi
mov    0x2d2d(%rip),%rax
mov    (%rax),%edx
call   10d0 <fseek@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    %rcx,%rax
je     12e5 <md5sum_print+0x105>
mov    0x2d19(%rip),%rax
mov    (%rax),%edi
movslq -0x14(%rbp),%rdx
lea    0xd84(%rip),%rsi
mov    $0x0,%al
call   10b0 <fprintf@plt>
mov    $0x1,%edi
call   1100 <exit@plt>
lea    -0x220(%rbp),%rdi
mov    -0x20(%rbp),%rdx
mov    $0x200,%esi
call   1090 <fgets@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    %rcx,%rax
jne    1341 <md5sum_print+0x161>
mov    -0x20(%rbp),%rdi
call   10c0 <feof@plt>
cmp    $0x0,%rax
je     1320 <md5sum_print+0x140>
jmp    1422 <md5sum_print+0x242>
mov    0x2cb9(%rip),%rax
mov    (%rax),%edi
lea    0xd5b(%rip),%rsi
mov    $0x0,%al
call   10b0 <fprintf@plt>
mov    $0x1,%edi
call   1100 <exit@plt>
lea    -0x220(%rbp),%rdi
call   1060 <strlen@plt>
mov    %eax,-0x438(%rbp)
lea    -0x220(%rbp),%rdi
lea    -0x230(%rbp),%rsi
lea    -0x228(%rbp),%rdx
call   10f0 <md5sum_extract_md5@plt>
cmp    $0x0,%rax
je     1398 <md5sum_print+0x1b8>
mov    0x2c62(%rip),%rax
mov    (%rax),%edi
lea    0xd2a(%rip),%rsi
mov    $0x0,%al
call   10b0 <fprintf@plt>
mov    $0x1,%edi
call   1100 <exit@plt>
mov    -0x230(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1030 <strcasecmp@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    %rcx,%rax
je     13bb <md5sum_print+0x1db>
jmp    1422 <md5sum_print+0x242>
mov    -0x228(%rbp),%rdi
lea    -0x430(%rbp),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
je     1411 <md5sum_print+0x231>
mov    -0x10(%rbp),%rsi
mov    -0x228(%rbp),%rdx
lea    0xcf0(%rip),%rdi
call   1070 <printf@plt>
movl   $0x1,-0x434(%rbp)
lea    -0x430(%rbp),%rdi
mov    -0x228(%rbp),%rsi
mov    $0x200,%edx
call   1040 <strncpy@plt>
mov    -0x438(%rbp),%eax
add    -0x14(%rbp),%eax
mov    %eax,-0x14(%rbp)
jmp    129d <md5sum_print+0xbd>
cmpl   $0x0,-0x434(%rbp)
jne    1454 <md5sum_print+0x274>
mov    0x2baa(%rip),%rax
mov    (%rax),%edi
movslq -0x14(%rbp),%rdx
lea    0xc9e(%rip),%rsi
mov    $0x0,%al
call   10b0 <fprintf@plt>
mov    $0x1,%edi
call   1100 <exit@plt>
mov    -0x20(%rbp),%rdi
call   1050 <fclose@plt>
add    $0x440,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<md5sum_print>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x428,%rsp
mov    %edx,%r13d
mov    %rsi,%r14
mov    %rdi,%rbp
movq   $0x0,0x18(%rsp)
mov    %rsi,%rdi
call   1060 <strlen@plt>
cmp    $0x20,%eax
jne    13bd <md5sum_print+0x1dd>
lea    0xe0b(%rip),%rsi
mov    %rbp,%rdi
call   10e0 <fopen@plt>
test   %rax,%rax
je     133f <md5sum_print+0x15f>
mov    %rax,%rbx
lea    0x20(%rsp),%rdi
mov    $0x30,%esi
mov    $0x200,%edx
call   1080 <memset@plt>
mov    0x2d8e(%rip),%rax
mov    (%rax),%edx
mov    %rbx,%rdi
mov    %r13d,%esi
call   10d0 <fseek@plt>
test   %rax,%rax
jne    13d2 <md5sum_print+0x1f2>
movl   $0x0,0xc(%rsp)
lea    0x220(%rsp),%r15
lea    0x20(%rsp),%r12
jmp    12a2 <md5sum_print+0xc2>
nopw   0x0(%rax,%rax,1)
add    %r13d,%ebp
mov    0x2d4e(%rip),%rax
mov    (%rax),%edx
mov    %rbx,%rdi
mov    %ebp,%esi
call   10d0 <fseek@plt>
mov    %ebp,%r13d
test   %rax,%rax
jne    13d5 <md5sum_print+0x1f5>
mov    %r15,%rdi
mov    $0x200,%esi
mov    %rbx,%rdx
call   1090 <fgets@plt>
test   %rax,%rax
je     136a <md5sum_print+0x18a>
mov    %r15,%rdi
call   1060 <strlen@plt>
mov    %eax,%ebp
mov    %r15,%rdi
lea    0x18(%rsp),%rsi
lea    0x10(%rsp),%rdx
call   10f0 <md5sum_extract_md5@plt>
test   %rax,%rax
jne    139c <md5sum_print+0x1bc>
mov    0x18(%rsp),%rdi
mov    %r14,%rsi
call   1030 <strcasecmp@plt>
test   %rax,%rax
jne    137b <md5sum_print+0x19b>
mov    0x10(%rsp),%rdi
mov    %r12,%rsi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     1280 <md5sum_print+0xa0>
mov    0x10(%rsp),%rdx
lea    0xdc2(%rip),%rdi
mov    %r14,%rsi
call   1070 <printf@plt>
mov    0x10(%rsp),%rsi
mov    %r12,%rdi
mov    $0x200,%edx
call   1040 <strncpy@plt>
movl   $0x1,0xc(%rsp)
jmp    1280 <md5sum_print+0xa0>
mov    0x2c9a(%rip),%rax
mov    (%rax),%edi
lea    0xcd9(%rip),%rsi
mov    %rbp,%rdx
xor    %eax,%eax
add    $0x428,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    10b0 <fprintf@plt>
mov    %rbx,%rdi
call   10c0 <feof@plt>
test   %rax,%rax
je     140e <md5sum_print+0x22e>
cmpl   $0x0,0xc(%rsp)
je     13f9 <md5sum_print+0x219>
mov    %rbx,%rdi
call   1050 <fclose@plt>
add    $0x428,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2c3d(%rip),%rax
mov    (%rax),%edi
lea    0xd05(%rip),%rsi
xor    %eax,%eax
call   10b0 <fprintf@plt>
mov    $0x1,%edi
call   1100 <exit@plt>
mov    0x2c1c(%rip),%rax
mov    (%rax),%edi
lea    0xc33(%rip),%rsi
mov    %r14,%rdx
jmp    13e8 <md5sum_print+0x208>
mov    %r13d,%ebp
mov    0x2c04(%rip),%rax
mov    (%rax),%edi
movslq %ebp,%rdx
lea    0xc70(%rip),%rsi
xor    %eax,%eax
call   10b0 <fprintf@plt>
mov    $0x1,%edi
call   1100 <exit@plt>
mov    0x2be0(%rip),%rax
mov    (%rax),%edi
movslq %r13d,%rdx
lea    0xcd5(%rip),%rsi
jmp    13e8 <md5sum_print+0x208>
mov    0x2bcb(%rip),%rax
mov    (%rax),%edi
lea    0xc6d(%rip),%rsi
jmp    13ac <md5sum_print+0x1cc>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [38 x i8] c"md5sum_print: Invalid hash value: %s\0A\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [48 x i8] c"md5sum_print: Error opening md5sum DB file: %s\0A\00"
@SEEK_SET = global i32 0
@.str.3 = [51 x i8] c"md5sum_print: Error seeking to get file name: %lu\0A\00"
@.str.4 = [38 x i8] c"md5sum_print: Error reading database\0A\00"
@.str.5 = [41 x i8] c"md5sum_print: Invalid entry in database\0A\00"
@.str.6 = [7 x i8] c"%s\09%s\0A\00"
@.str.7 = [39 x i8] c"Hash not found in file at offset: %lu\0A\00"
define void @md5sum_print(i8* %0, i8* %1, i32 %2, i32 %3) {
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32*
%10 = alloca [512 x i8]
%11 = alloca i8*
%12 = alloca i8*
%13 = alloca [512 x i8]
%14 = alloca i32
%15 = alloca i32
store i8* %0, i8** %5
store i8* %1, i8** %6
store i32 %2, i32* %7
store i32 %3, i32* %8
store i8* null, i8** %12
store i32 0, i32* %14
%16 = load i8*, i8** %6
%17 = call i32 @strlen(i8* %16)
%18 = icmp ne i32 %17, 32
br i1 %18, label %19, label %24
19: ; preds = %4
%20 = load i32, i32* @stderr
%21 = load i8*, i8** %6
%22 = call i32 (i32, i8*, ...) @fprintf(i32 %20, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0), i8* %21)
%23 = call i32 @exit(i32 1)
unreachable
24: ; preds = %4
%25 = load i8*, i8** %5
%26 = call i32* @fopen(i8* %25, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %26, i32** %9
%27 = icmp eq i32* null, %26
br i1 %27, label %28, label %32
28: ; preds = %24
%29 = load i32, i32* @stderr
%30 = load i8*, i8** %5
%31 = call i32 (i32, i8*, ...) @fprintf(i32 %29, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.2, i64 0, i64 0), i8* %30)
br label %105
32: ; preds = %24
%33 = getelementptr inbounds [512 x i8], [512 x i8]* %13, i64 0, i64 0
%34 = call i32 @memset(i8* %33, i32 48, i32 512)
br label %35
35: ; preds = %32, %89
%36 = load i32*, i32** %9
%37 = load i32, i32* %7
%38 = load i32, i32* @SEEK_SET
%39 = call i64 @fseek(i32* %36, i32 %37, i32 %38)
%40 = icmp ne i64 0, %39
br i1 %40, label %41, label %47
41: ; preds = %35
%42 = load i32, i32* @stderr
%43 = load i32, i32* %7
%44 = sext i32 %43 to i64
%45 = call i32 (i32, i8*, ...) @fprintf(i32 %42, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.3, i64 0, i64 0), i64 %44)
%46 = call i32 @exit(i32 1)
unreachable
47: ; preds = %35
%48 = getelementptr inbounds [512 x i8], [512 x i8]* %10, i64 0, i64 0
%49 = load i32*, i32** %9
%50 = call i32* @fgets(i8* %48, i32 512, i32* %49)
%51 = icmp eq i32* null, %50
br i1 %51, label %52, label %61
52: ; preds = %47
%53 = load i32*, i32** %9
%54 = call i64 @feof(i32* %53)
%55 = icmp ne i64 %54, 0
br i1 %55, label %56, label %57
56: ; preds = %52
br label %93
57: ; preds = %52
%58 = load i32, i32* @stderr
%59 = call i32 (i32, i8*, ...) @fprintf(i32 %58, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.4, i64 0, i64 0))
%60 = call i32 @exit(i32 1)
unreachable
61: ; preds = %47
%62 = getelementptr inbounds [512 x i8], [512 x i8]* %10, i64 0, i64 0
%63 = call i32 @strlen(i8* %62)
store i32 %63, i32* %15
%64 = getelementptr inbounds [512 x i8], [512 x i8]* %10, i64 0, i64 0
%65 = call i64 @md5sum_extract_md5(i8* %64, i8** %12, i8** %11)
%66 = icmp ne i64 %65, 0
br i1 %66, label %67, label %71
67: ; preds = %61
%68 = load i32, i32* @stderr
%69 = call i32 (i32, i8*, ...) @fprintf(i32 %68, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.5, i64 0, i64 0))
%70 = call i32 @exit(i32 1)
unreachable
71: ; preds = %61
%72 = load i8*, i8** %12
%73 = load i8*, i8** %6
%74 = call i64 @strcasecmp(i8* %72, i8* %73)
%75 = icmp ne i64 0, %74
br i1 %75, label %76, label %77
76: ; preds = %71
br label %93
77: ; preds = %71
%78 = load i8*, i8** %11
%79 = getelementptr inbounds [512 x i8], [512 x i8]* %13, i64 0, i64 0
%80 = call i64 @strcmp(i8* %78, i8* %79)
%81 = icmp ne i64 %80, 0
br i1 %81, label %82, label %89
82: ; preds = %77
%83 = load i8*, i8** %6
%84 = load i8*, i8** %11
%85 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i8* %83, i8* %84)
store i32 1, i32* %14
%86 = getelementptr inbounds [512 x i8], [512 x i8]* %13, i64 0, i64 0
%87 = load i8*, i8** %11
%88 = call i32 @strncpy(i8* %86, i8* %87, i32 512)
br label %89
89: ; preds = %82, %77
%90 = load i32, i32* %15
%91 = load i32, i32* %7
%92 = add nsw i32 %91, %90
store i32 %92, i32* %7
br label %35
93: ; preds = %76, %56
%94 = load i32, i32* %14
%95 = icmp eq i32 %94, 0
br i1 %95, label %96, label %102
96: ; preds = %93
%97 = load i32, i32* @stderr
%98 = load i32, i32* %7
%99 = sext i32 %98 to i64
%100 = call i32 (i32, i8*, ...) @fprintf(i32 %97, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.7, i64 0, i64 0), i64 %99)
%101 = call i32 @exit(i32 1)
unreachable
102: ; preds = %93
%103 = load i32*, i32** %9
%104 = call i32 @fclose(i32* %103)
br label %105
105: ; preds = %102, %28
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [38 x i8] c"md5sum_print: Invalid hash value: %s\0A\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [48 x i8] c"md5sum_print: Error opening md5sum DB file: %s\0A\00"
@SEEK_SET = global i32 0
@.str.3 = [51 x i8] c"md5sum_print: Error seeking to get file name: %lu\0A\00"
@.str.4 = [38 x i8] c"md5sum_print: Error reading database\0A\00"
@.str.5 = [41 x i8] c"md5sum_print: Invalid entry in database\0A\00"
@.str.6 = [7 x i8] c"%s\09%s\0A\00"
@.str.7 = [39 x i8] c"Hash not found in file at offset: %lu\0A\00"
define void @md5sum_print(i8* %0, i8* %1, i32 %2, i32 %3) {
%5 = alloca [512 x i8]
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca [512 x i8]
%9 = getelementptr inbounds [512 x i8], [512 x i8]* %5, i64 0, i64 0
%10 = bitcast i8** %6 to i8*
%11 = bitcast i8** %7 to i8*
store i8* null, i8** %7
%12 = getelementptr inbounds [512 x i8], [512 x i8]* %8, i64 0, i64 0
%13 = tail call i32 @strlen(i8* %1)
%14 = icmp eq i32 %13, 32
br i1 %14, label %19, label %15
15: ; preds = %4
%16 = load i32, i32* @stderr
%17 = tail call i32 (i32, i8*, ...) @fprintf(i32 %16, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0), i8* %1)
%18 = tail call i32 @exit(i32 1)
unreachable
19: ; preds = %4
%20 = tail call i32* @fopen(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%21 = icmp eq i32* %20, null
br i1 %21, label %22, label %25
22: ; preds = %19
%23 = load i32, i32* @stderr
%24 = tail call i32 (i32, i8*, ...) @fprintf(i32 %23, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.2, i64 0, i64 0), i8* %0)
br label %84
25: ; preds = %19
%26 = call i32 @memset(i8* %12, i32 48, i32 512)
%27 = load i32, i32* @SEEK_SET
%28 = call i64 @fseek(i32* %20, i32 %2, i32 %27)
%29 = icmp eq i64 %28, 0
br i1 %29, label %36, label %30
30: ; preds = %69, %25
%31 = phi i32 [ %2, %25 ], [ %71, %69 ]
%32 = load i32, i32* @stderr
%33 = sext i32 %31 to i64
%34 = call i32 (i32, i8*, ...) @fprintf(i32 %32, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.3, i64 0, i64 0), i64 %33)
%35 = call i32 @exit(i32 1)
unreachable
36: ; preds = %25, %69
%37 = phi i32 [ %71, %69 ], [ %2, %25 ]
%38 = phi i32 [ %70, %69 ], [ 0, %25 ]
%39 = call i32* @fgets(i8* %9, i32 512, i32* %20)
%40 = icmp eq i32* %39, null
br i1 %40, label %41, label %48
41: ; preds = %36
%42 = call i64 @feof(i32* %20)
%43 = icmp eq i64 %42, 0
br i1 %43, label %44, label %75
44: ; preds = %41
%45 = load i32, i32* @stderr
%46 = call i32 (i32, i8*, ...) @fprintf(i32 %45, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.4, i64 0, i64 0))
%47 = call i32 @exit(i32 1)
unreachable
48: ; preds = %36
%49 = call i32 @strlen(i8* %9)
%50 = call i64 @md5sum_extract_md5(i8* %9, i8** %7, i8** %6)
%51 = icmp eq i64 %50, 0
br i1 %51, label %56, label %52
52: ; preds = %48
%53 = load i32, i32* @stderr
%54 = call i32 (i32, i8*, ...) @fprintf(i32 %53, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.5, i64 0, i64 0))
%55 = call i32 @exit(i32 1)
unreachable
56: ; preds = %48
%57 = load i8*, i8** %7
%58 = call i64 @strcasecmp(i8* %57, i8* %1)
%59 = icmp eq i64 %58, 0
br i1 %59, label %60, label %75
60: ; preds = %56
%61 = load i8*, i8** %6
%62 = call i64 @strcmp(i8* %61, i8* %12)
%63 = icmp eq i64 %62, 0
br i1 %63, label %69, label %64
64: ; preds = %60
%65 = load i8*, i8** %6
%66 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i8* %1, i8* %65)
%67 = load i8*, i8** %6
%68 = call i32 @strncpy(i8* %12, i8* %67, i32 512)
br label %69
69: ; preds = %60, %64
%70 = phi i32 [ 1, %64 ], [ %38, %60 ]
%71 = add nsw i32 %49, %37
%72 = load i32, i32* @SEEK_SET
%73 = call i64 @fseek(i32* %20, i32 %71, i32 %72)
%74 = icmp eq i64 %73, 0
br i1 %74, label %36, label %30
75: ; preds = %56, %41
%76 = icmp eq i32 %38, 0
br i1 %76, label %77, label %82
77: ; preds = %75
%78 = load i32, i32* @stderr
%79 = sext i32 %37 to i64
%80 = call i32 (i32, i8*, ...) @fprintf(i32 %78, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.7, i64 0, i64 0), i64 %79)
%81 = call i32 @exit(i32 1)
unreachable
82: ; preds = %75
%83 = call i32 @fclose(i32* %20)
br label %84
84: ; preds = %82, %22
ret void
}