#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 */
struct dirent {
  char *d_name;
};
typedef int /*<<< orphan*/ name;
typedef int /*<<< orphan*/ DIR;

/* Variables and functions */
int MAXPATHLEN;
int RTLD_LOCAL;
int RTLD_NOW;
char *dlerror();
void *dlopen(char *, int);
int /*<<< orphan*/ *opendir(char const *);
int /*<<< orphan*/ printf(char *, ...);
struct dirent *readdir(int /*<<< orphan*/ *);
int /*<<< orphan*/ snprintf(char *, int, char *, char const *, char *);
int strlen(char *);
void fh_plugin_load(const char *plugin_dir_name) {
  void *plugin_handle;
  DIR *plugin_dir = NULL;
  struct dirent *entry = NULL;
  int len;
  char name[MAXPATHLEN];
  plugin_dir = opendir(plugin_dir_name);
  if (plugin_dir == NULL) {
    do {
      printf("FH_PLUGIN: %-5s%s",
             "WARN"
             ":",
             " ");
      printf("Invalid plugin directory or out of memory");
      printf("\n");
    } while (0);
    return;
  }
  while ((entry = readdir(plugin_dir))) {
    len = strlen(entry->d_name);
    if (len > 3 && entry->d_name[len - 3] == '.' &&
        entry->d_name[len - 2] == 's' && entry->d_name[len - 1] == 'o') {
      snprintf(name, sizeof(name), "%s/%s", plugin_dir_name, entry->d_name);
      plugin_handle = dlopen(name, RTLD_NOW | RTLD_LOCAL);
      if (plugin_handle == NULL) {
        do {
          printf("FH_PLUGIN: %-5s%s",
                 "WARN"
                 ":",
                 " ");
          printf("Failed to load plugin: %s | Error: %s", entry->d_name,
                 dlerror());
          printf("\n");
        } while (0);
      } else {
        do {
          printf("FH_PLUGIN: %-5s%s",
                 "INFO"
                 ":",
                 " ");
          printf("Loaded plugin: %s", entry->d_name);
          printf("\n");
        } while (0);
      }
    }
  }
}


x86 assembly (clang, -O0):
<fh_plugin_load>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x8(%rbp)
movq   $0x0,-0x18(%rbp)
movq   $0x0,-0x20(%rbp)
mov    0x2e55(%rip),%rax
mov    (%rax),%eax
mov    %rax,-0x50(%rbp)
mov    %rsp,%rcx
mov    %rcx,-0x30(%rbp)
mov    %rax,%rdx
add    $0xf,%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x48(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x38(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <opendir@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    1222 <fh_plugin_load+0xb2>
jmp    11d9 <fh_plugin_load+0x69>
lea    0xe20(%rip),%rdi
lea    0xe2b(%rip),%rsi
lea    0xe2a(%rip),%rdx
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xe1e(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xe3a(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    1216 <fh_plugin_load+0xa6>
movl   $0x1,-0x3c(%rbp)
jmp    13b8 <fh_plugin_load+0x248>
jmp    1227 <fh_plugin_load+0xb7>
mov    -0x18(%rbp),%rdi
call   1090 <readdir@plt>
mov    %rax,-0x20(%rbp)
cmp    $0x0,%rax
je     13b1 <fh_plugin_load+0x241>
mov    -0x20(%rbp),%rax
mov    (%rax),%rdi
call   1050 <strlen@plt>
mov    %eax,-0x24(%rbp)
cmpl   $0x3,-0x24(%rbp)
jle    13ac <fh_plugin_load+0x23c>
mov    -0x20(%rbp),%rax
mov    (%rax),%rax
mov    -0x24(%rbp),%ecx
sub    $0x3,%ecx
movslq %ecx,%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x2e,%eax
jne    13ac <fh_plugin_load+0x23c>
mov    -0x20(%rbp),%rax
mov    (%rax),%rax
mov    -0x24(%rbp),%ecx
sub    $0x2,%ecx
movslq %ecx,%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x73,%eax
jne    13ac <fh_plugin_load+0x23c>
mov    -0x20(%rbp),%rax
mov    (%rax),%rax
mov    -0x24(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x6f,%eax
jne    13ac <fh_plugin_load+0x23c>
mov    -0x48(%rbp),%rdi
mov    -0x50(%rbp),%rax
mov    %eax,%esi
mov    -0x8(%rbp),%rcx
mov    -0x20(%rbp),%rax
mov    (%rax),%r8
lea    0xd7c(%rip),%rdx
call   1070 <snprintf@plt>
mov    -0x48(%rbp),%rdi
mov    0x2d06(%rip),%rax
mov    (%rax),%esi
mov    0x2ce5(%rip),%rax
or     (%rax),%esi
call   1080 <dlopen@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    1359 <fh_plugin_load+0x1e9>
jmp    12fe <fh_plugin_load+0x18e>
lea    0xcfb(%rip),%rdi
lea    0xd06(%rip),%rsi
lea    0xd05(%rip),%rdx
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x20(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x58(%rbp)
mov    $0x0,%al
call   1030 <dlerror@plt>
mov    -0x58(%rbp),%rsi
mov    %rax,%rdx
lea    0xd12(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xcfc(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    1354 <fh_plugin_load+0x1e4>
jmp    13a7 <fh_plugin_load+0x237>
jmp    135e <fh_plugin_load+0x1ee>
lea    0xc9b(%rip),%rdi
lea    0xd06(%rip),%rsi
lea    0xca5(%rip),%rdx
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x20(%rbp),%rax
mov    (%rax),%rsi
lea    0xcf0(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xcae(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    13a2 <fh_plugin_load+0x232>
jmp    13a7 <fh_plugin_load+0x237>
jmp    13ac <fh_plugin_load+0x23c>
jmp    1227 <fh_plugin_load+0xb7>
movl   $0x0,-0x3c(%rbp)
mov    -0x30(%rbp),%rax
mov    %rax,%rsp
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fh_plugin_load>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rdi,%r14
mov    0x2e50(%rip),%rax
mov    (%rax),%r15d
mov    %rsp,%r12
lea    0xf(%r15),%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%r12
mov    %r12,%rsp
call   1050 <opendir@plt>
test   %rax,%rax
je     11d2 <fh_plugin_load+0x52>
mov    %rax,%rbx
mov    %rax,%rdi
call   10a0 <readdir@plt>
test   %rax,%rax
je     130f <fh_plugin_load+0x18f>
mov    %rax,%r13
jmp    1274 <fh_plugin_load+0xf4>
lea    0xe27(%rip),%rdi
lea    0xe32(%rip),%rsi
lea    0xe31(%rip),%rdx
xor    %eax,%eax
call   1070 <printf@plt>
lea    0xe25(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
mov    $0xa,%edi
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <putchar@plt>
lea    0xdf7(%rip),%rsi
lea    0xdf6(%rip),%rdx
xor    %eax,%eax
call   1070 <printf@plt>
mov    0x0(%r13),%r13
xor    %eax,%eax
call   1030 <dlerror@plt>
lea    0xe0f(%rip),%rdi
mov    %r13,%rsi
mov    %rax,%rdx
xor    %eax,%eax
call   1070 <printf@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %rbx,%rdi
call   10a0 <readdir@plt>
mov    %rax,%r13
test   %rax,%rax
je     130f <fh_plugin_load+0x18f>
mov    0x0(%r13),%rdi
call   1060 <strlen@plt>
cmp    $0x4,%eax
jl     1260 <fh_plugin_load+0xe0>
mov    0x0(%r13),%r8
lea    -0x3(%rax),%ecx
cmpb   $0x2e,(%r8,%rcx,1)
jne    1260 <fh_plugin_load+0xe0>
lea    -0x2(%rax),%ecx
cmpb   $0x73,(%r8,%rcx,1)
jne    1260 <fh_plugin_load+0xe0>
add    $0xffffffff,%eax
cmpb   $0x6f,(%r8,%rax,1)
jne    1260 <fh_plugin_load+0xe0>
mov    %r12,%rdi
mov    %r15d,%esi
lea    0xd93(%rip),%rdx
mov    %r14,%rcx
call   1080 <snprintf@plt>
mov    0x2d08(%rip),%rax
mov    (%rax),%esi
mov    0x2d17(%rip),%rax
or     (%rax),%esi
mov    %r12,%rdi
call   1090 <dlopen@plt>
lea    0xd26(%rip),%rdi
test   %rax,%rax
je     1214 <fh_plugin_load+0x94>
lea    0xd86(%rip),%rsi
lea    0xd27(%rip),%rdx
xor    %eax,%eax
call   1070 <printf@plt>
mov    0x0(%r13),%rsi
lea    0xd73(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
jmp    1248 <fh_plugin_load+0xc8>
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.dirent = type { i8* }
@MAXPATHLEN = global i32 0
@.str = [18 x i8] c"FH_PLUGIN: %-5s%s\00"
@.str.1 = [6 x i8] c"WARN:\00"
@.str.2 = [2 x i8] c" \00"
@.str.3 = [42 x i8] c"Invalid plugin directory or out of memory\00"
@.str.4 = [2 x i8] c"\0A\00"
@.str.5 = [6 x i8] c"%s/%s\00"
@RTLD_NOW = global i32 0
@RTLD_LOCAL = global i32 0
@.str.6 = [38 x i8] c"Failed to load plugin: %s | Error: %s\00"
@.str.7 = [6 x i8] c"INFO:\00"
@.str.8 = [18 x i8] c"Loaded plugin: %s\00"
define void @fh_plugin_load(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
%4 = alloca i32*
%5 = alloca %struct.dirent*
%6 = alloca i32
%7 = alloca i8*
%8 = alloca i64
%9 = alloca i32
store i8* %0, i8** %2
store i32* null, i32** %4
store %struct.dirent* null, %struct.dirent** %5
%10 = load i32, i32* @MAXPATHLEN
%11 = zext i32 %10 to i64
%12 = call i8* @llvm.stacksave()
store i8* %12, i8** %7
%13 = alloca i8, i64 %11
store i64 %11, i64* %8
%14 = load i8*, i8** %2
%15 = call i32* @opendir(i8* %14)
store i32* %15, i32** %4
%16 = load i32*, i32** %4
%17 = icmp eq i32* %16, null
br i1 %17, label %18, label %25
18: ; preds = %1
br label %19
19: ; preds = %18
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.3, i64 0, i64 0))
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
br label %23
23: ; preds = %19
br label %24
24: ; preds = %23
store i32 1, i32* %9
br label %107
25: ; preds = %1
br label %26
26: ; preds = %105, %25
%27 = load i32*, i32** %4
%28 = call %struct.dirent* @readdir(i32* %27)
store %struct.dirent* %28, %struct.dirent** %5
%29 = icmp ne %struct.dirent* %28, null
br i1 %29, label %30, label %106
30: ; preds = %26
%31 = load %struct.dirent*, %struct.dirent** %5
%32 = getelementptr inbounds %struct.dirent, %struct.dirent* %31, i32 0, i32 0
%33 = load i8*, i8** %32
%34 = call i32 @strlen(i8* %33)
store i32 %34, i32* %6
%35 = load i32, i32* %6
%36 = icmp sgt i32 %35, 3
br i1 %36, label %37, label %105
37: ; preds = %30
%38 = load %struct.dirent*, %struct.dirent** %5
%39 = getelementptr inbounds %struct.dirent, %struct.dirent* %38, i32 0, i32 0
%40 = load i8*, i8** %39
%41 = load i32, i32* %6
%42 = sub nsw i32 %41, 3
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i8, i8* %40, i64 %43
%45 = load i8, i8* %44
%46 = sext i8 %45 to i32
%47 = icmp eq i32 %46, 46
br i1 %47, label %48, label %105
48: ; preds = %37
%49 = load %struct.dirent*, %struct.dirent** %5
%50 = getelementptr inbounds %struct.dirent, %struct.dirent* %49, i32 0, i32 0
%51 = load i8*, i8** %50
%52 = load i32, i32* %6
%53 = sub nsw i32 %52, 2
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds i8, i8* %51, i64 %54
%56 = load i8, i8* %55
%57 = sext i8 %56 to i32
%58 = icmp eq i32 %57, 115
br i1 %58, label %59, label %105
59: ; preds = %48
%60 = load %struct.dirent*, %struct.dirent** %5
%61 = getelementptr inbounds %struct.dirent, %struct.dirent* %60, i32 0, i32 0
%62 = load i8*, i8** %61
%63 = load i32, i32* %6
%64 = sub nsw i32 %63, 1
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds i8, i8* %62, i64 %65
%67 = load i8, i8* %66
%68 = sext i8 %67 to i32
%69 = icmp eq i32 %68, 111
br i1 %69, label %70, label %105
70: ; preds = %59
%71 = trunc i64 %11 to i32
%72 = load i8*, i8** %2
%73 = load %struct.dirent*, %struct.dirent** %5
%74 = getelementptr inbounds %struct.dirent, %struct.dirent* %73, i32 0, i32 0
%75 = load i8*, i8** %74
%76 = call i32 @snprintf(i8* %13, i32 %71, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i8* %72, i8* %75)
%77 = load i32, i32* @RTLD_NOW
%78 = load i32, i32* @RTLD_LOCAL
%79 = or i32 %77, %78
%80 = call i8* @dlopen(i8* %13, i32 %79)
store i8* %80, i8** %3
%81 = load i8*, i8** %3
%82 = icmp eq i8* %81, null
br i1 %82, label %83, label %94
83: ; preds = %70
br label %84
84: ; preds = %83
%85 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%86 = load %struct.dirent*, %struct.dirent** %5
%87 = getelementptr inbounds %struct.dirent, %struct.dirent* %86, i32 0, i32 0
%88 = load i8*, i8** %87
%89 = call i8* (...) @dlerror()
%90 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.6, i64 0, i64 0), i8* %88, i8* %89)
%91 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
br label %92
92: ; preds = %84
br label %93
93: ; preds = %92
br label %104
94: ; preds = %70
br label %95
95: ; preds = %94
%96 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%97 = load %struct.dirent*, %struct.dirent** %5
%98 = getelementptr inbounds %struct.dirent, %struct.dirent* %97, i32 0, i32 0
%99 = load i8*, i8** %98
%100 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.8, i64 0, i64 0), i8* %99)
%101 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
br label %102
102: ; preds = %95
br label %103
103: ; preds = %102
br label %104
104: ; preds = %103, %93
br label %105
105: ; preds = %104, %59, %48, %37, %30
br label %26
106: ; preds = %26
store i32 0, i32* %9
br label %107
107: ; preds = %106, %24
%108 = load i8*, i8** %7
%109 = load i32, i32* %9
switch i32 %109, label %111 [
i32 0, label %110
i32 1, label %110
]
110: ; preds = %107, %107
ret void
111: ; preds = %107
unreachable
}

LLVM IR (-O2):
%struct.dirent = type { i8* }
@MAXPATHLEN = global i32 0
@.str = [18 x i8] c"FH_PLUGIN: %-5s%s\00"
@.str.1 = [6 x i8] c"WARN:\00"
@.str.2 = [2 x i8] c" \00"
@.str.3 = [42 x i8] c"Invalid plugin directory or out of memory\00"
@.str.5 = [6 x i8] c"%s/%s\00"
@RTLD_NOW = global i32 0
@RTLD_LOCAL = global i32 0
@.str.6 = [38 x i8] c"Failed to load plugin: %s | Error: %s\00"
@.str.7 = [6 x i8] c"INFO:\00"
@.str.8 = [18 x i8] c"Loaded plugin: %s\00"
define void @fh_plugin_load(i8* %0) {
%2 = load i32, i32* @MAXPATHLEN
%3 = zext i32 %2 to i64
%4 = alloca i8, i64 %3
%5 = tail call i32* @opendir(i8* %0)
%6 = icmp eq i32* %5, null
br i1 %6, label %10, label %7
7: ; preds = %1
%8 = call %struct.dirent* @readdir(i32* %5)
%9 = icmp eq %struct.dirent* %8, null
br i1 %9, label %60, label %14
10: ; preds = %1
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str.3, i64 0, i64 0))
%13 = tail call i32 @putchar(i32 10)
br label %60
14: ; preds = %7, %57
%15 = phi %struct.dirent* [ %58, %57 ], [ %8, %7 ]
%16 = getelementptr inbounds %struct.dirent, %struct.dirent* %15, i64 0, i32 0
%17 = load i8*, i8** %16
%18 = call i32 @strlen(i8* %17)
%19 = icmp sgt i32 %18, 3
br i1 %19, label %20, label %57
20: ; preds = %14
%21 = load i8*, i8** %16
%22 = add nsw i32 %18, -3
%23 = zext i32 %22 to i64
%24 = getelementptr inbounds i8, i8* %21, i64 %23
%25 = load i8, i8* %24
%26 = icmp eq i8 %25, 46
br i1 %26, label %27, label %57
27: ; preds = %20
%28 = add nsw i32 %18, -2
%29 = zext i32 %28 to i64
%30 = getelementptr inbounds i8, i8* %21, i64 %29
%31 = load i8, i8* %30
%32 = icmp eq i8 %31, 115
br i1 %32, label %33, label %57
33: ; preds = %27
%34 = add nsw i32 %18, -1
%35 = zext i32 %34 to i64
%36 = getelementptr inbounds i8, i8* %21, i64 %35
%37 = load i8, i8* %36
%38 = icmp eq i8 %37, 111
br i1 %38, label %39, label %57
39: ; preds = %33
%40 = call i32 @snprintf(i8* %4, i32 %2, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i8* %0, i8* %21)
%41 = load i32, i32* @RTLD_NOW
%42 = load i32, i32* @RTLD_LOCAL
%43 = or i32 %42, %41
%44 = call i8* @dlopen(i8* %4, i32 %43)
%45 = icmp eq i8* %44, null
br i1 %45, label %46, label %51
46: ; preds = %39
%47 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%48 = load i8*, i8** %16
%49 = call i8* (...) @dlerror()
%50 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.6, i64 0, i64 0), i8* %48, i8* %49)
br label %55
51: ; preds = %39
%52 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%53 = load i8*, i8** %16
%54 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.8, i64 0, i64 0), i8* %53)
br label %55
55: ; preds = %51, %46
%56 = call i32 @putchar(i32 10)
br label %57
57: ; preds = %55, %33, %27, %20, %14
%58 = call %struct.dirent* @readdir(i32* %5)
%59 = icmp eq %struct.dirent* %58, null
br i1 %59, label %60, label %14
60: ; preds = %57, %7, %10
ret void
}