#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*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
int /*<<< orphan*/ free(char *);
int /*<<< orphan*/ gethostname(char *, int);
char *malloc(int);
int main(int argc, char *argv[]) {
  char *host_name = malloc(1024);
  gethostname(host_name, 1023);
  FILE *info_plist = fopen("info.plist", "wb");
  fprintf(info_plist, "<"
                      "?xml"
                      " version=\"1.0\" encoding=\"UTF-8\"?"
                      ">"
                      "\n"
                      "<"
                      "!DOCTYPE"
                      " plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" "
                      "\"http://www.apple.com/DTDs/PropertyList-1.0.dtd\""
                      ">"
                      "\n"
                      "<"
                      "plist"
                      " version=\"1.0\""
                      ">"
                      "\n"
                      "<"
                      "dict"
                      ""
                      ">"
                      "\n");
  fprintf(info_plist,
          "    "
          "<"
          "key"
          ""
          ">"
          "CFBundleDisplayName"
          "</"
          "key"
          ">"
          "\n"
          "    "
          "<"
          "string"
          ""
          ">"
          "%s"
          "</"
          "string"
          ">"
          "\n",
          argv[1]);
  fprintf(info_plist,
          "    "
          "<"
          "key"
          ""
          ">"
          "CFBundleExecutable"
          "</"
          "key"
          ">"
          "\n"
          "    "
          "<"
          "string"
          ""
          ">"
          "%s"
          "</"
          "string"
          ">"
          "\n",
          argv[1]);
  fprintf(info_plist,
          "    "
          "<"
          "key"
          ""
          ">"
          "CFBundleIdentifier"
          "</"
          "key"
          ">"
          "\n"
          "    "
          "<"
          "string"
          ""
          ">"
          "fm.ilia.%s"
          "</"
          "string"
          ">"
          "\n",
          argv[1]);
  fprintf(info_plist, "    "
                      "<"
                      "key"
                      ""
                      ">"
                      "CFBundleInfoDictionaryVersion"
                      "</"
                      "key"
                      ">"
                      "\n"
                      "    "
                      "<"
                      "string"
                      ""
                      ">"
                      "6.0"
                      "</"
                      "string"
                      ">"
                      "\n");
  fprintf(info_plist,
          "    "
          "<"
          "key"
          ""
          ">"
          "CFBundleName"
          "</"
          "key"
          ">"
          "\n"
          "    "
          "<"
          "string"
          ""
          ">"
          "%s"
          "</"
          "string"
          ">"
          "\n",
          argv[1]);
  fprintf(info_plist, "    "
                      "<"
                      "key"
                      ""
                      ">"
                      "CFBundlePackageType"
                      "</"
                      "key"
                      ">"
                      "\n"
                      "    "
                      "<"
                      "string"
                      ""
                      ">"
                      "APPL"
                      "</"
                      "string"
                      ">"
                      "\n");
  fprintf(info_plist,
          "    "
          "<"
          "key"
          ""
          ">"
          "CFBundleVersion"
          "</"
          "key"
          ">"
          "\n"
          "    "
          "<"
          "string"
          ""
          ">"
          "(%s @%s)"
          "</"
          "string"
          ">"
          "\n",
          "Mar 17 2022", host_name);
  fprintf(info_plist, "    "
                      "<"
                      "key"
                      ""
                      ">"
                      "LSMinimumSystemVersion"
                      "</"
                      "key"
                      ">"
                      "\n"
                      "    "
                      "<"
                      "string"
                      ""
                      ">"
                      "10.6.0"
                      "</"
                      "string"
                      ">"
                      "\n");
  fprintf(info_plist, "    "
                      "<"
                      "key"
                      ""
                      ">"
                      "CFBundleIconFile"
                      "</"
                      "key"
                      ">"
                      "\n"
                      "    "
                      "<"
                      "string"
                      ""
                      ">"
                      "MLV App.icns"
                      "</"
                      "string"
                      ">"
                      "\n");
  fprintf(info_plist, "    "
                      "<"
                      "key"
                      ""
                      ">"
                      "LSUIElement"
                      "</"
                      "key"
                      ">"
                      "\n"
                      "    "
                      "<"
                      "false"
                      "/>"
                      "\n");
  fprintf(info_plist, "    "
                      "<"
                      "key"
                      ""
                      ">"
                      "NSHumanReadableCopyright"
                      "</"
                      "key"
                      ">"
                      "\n"
                      "    "
                      "<"
                      "string"
                      ""
                      ">"
                      "© 2017 Creators Of MLV App"
                      "</"
                      "string"
                      ">"
                      "\n");
  fprintf(info_plist, "    "
                      "<"
                      "key"
                      ""
                      ">"
                      "CFBundleIconFile"
                      "</"
                      "key"
                      ">"
                      "\n"
                      "    "
                      "<"
                      "string"
                      ""
                      ">"
                      "MLV App.icns"
                      "</"
                      "string"
                      ">"
                      "\n");
  fprintf(info_plist, "    "
                      "<"
                      "key"
                      ""
                      ">"
                      "CFBundleDocumentTypes"
                      "</"
                      "key"
                      ">"
                      "\n");
  fprintf(info_plist, "    "
                      "<"
                      "array"
                      ""
                      ">"
                      "\n");
  fprintf(info_plist, "    "
                      "    "
                      "<"
                      "dict"
                      ""
                      ">"
                      "\n");
  fprintf(info_plist, "    "
                      "    "
                      "    "
                      "<"
                      "key"
                      ""
                      ">"
                      "CFBundleTypeExtensions"
                      "</"
                      "key"
                      ">"
                      "\n");
  fprintf(info_plist, "    "
                      "    "
                      "    "
                      "<"
                      "array"
                      ""
                      ">"
                      "\n");
  fprintf(info_plist, "    "
                      "    "
                      "    "
                      "    "
                      "<"
                      "string"
                      ""
                      ">"
                      "MLV"
                      "</"
                      "string"
                      ">"
                      "\n");
  fprintf(info_plist, "    "
                      "    "
                      "    "
                      "</"
                      "array"
                      ">"
                      "\n");
  fprintf(info_plist, "    "
                      "    "
                      "    "
                      "<"
                      "key"
                      ""
                      ">"
                      "LSHandlerRank"
                      "</"
                      "key"
                      ">"
                      "\n");
  fprintf(info_plist, "    "
                      "    "
                      "    "
                      "<"
                      "string"
                      ""
                      ">"
                      "Default"
                      "</"
                      "string"
                      ">"
                      "\n");
  fprintf(info_plist, "    "
                      "    "
                      "    "
                      "<"
                      "key"
                      ""
                      ">"
                      "CFBundleTypeRole"
                      "</"
                      "key"
                      ">"
                      "\n");
  fprintf(info_plist, "    "
                      "    "
                      "    "
                      "<"
                      "string"
                      ""
                      ">"
                      "Viewer"
                      "</"
                      "string"
                      ">"
                      "\n");
  fprintf(info_plist, "    "
                      "    "
                      "</"
                      "dict"
                      ">"
                      "\n");
  fprintf(info_plist, "    "
                      "</"
                      "array"
                      ">"
                      "\n");
  fprintf(info_plist, "</"
                      "dict"
                      ">"
                      "\n"
                      "</"
                      "plist"
                      ">"
                      "\n");
  fclose(info_plist);
  free(host_name);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0x400,%edi
call   1060 <malloc@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
mov    $0x3ff,%esi
call   1080 <gethostname@plt>
lea    0xe6e(%rip),%rdi
lea    0xe72(%rip),%rsi
call   1070 <fopen@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rdi
lea    0xe61(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdx
lea    0xef3(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdx
lea    0xf15(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdx
lea    0xf36(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0xf67(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdx
lea    0xf94(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0xfb7(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x18(%rbp),%rcx
lea    0xfdf(%rip),%rsi
lea    0x1016(%rip),%rdx
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0x1010(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0x1041(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0x1072(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0x1089(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0x100b(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0x10bf(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0x111a(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0x10c1(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0x10bf(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0x10dc(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0x10df(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0x10f3(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0x10f7(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0x110b(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0x111f(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0x1136(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0x1149(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0x108f(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0x1136(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x20(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0x18(%rbp),%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
mov    %rsi,%r15
mov    $0x400,%edi
call   1060 <malloc@plt>
mov    %rax,%r14
mov    %rax,%rdi
mov    $0x3ff,%esi
call   1080 <gethostname@plt>
lea    0xe67(%rip),%rdi
lea    0xe6b(%rip),%rsi
call   1070 <fopen@plt>
mov    %rax,%rbx
lea    0xe5f(%rip),%rdi
mov    $0xab,%esi
mov    $0x1,%edx
mov    %rax,%rcx
call   1090 <fwrite@plt>
mov    0x8(%r15),%rdx
lea    0xeee(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    0x8(%r15),%rdx
lea    0xf15(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    0x8(%r15),%rdx
lea    0xf3b(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <fprintf@plt>
lea    0xf6d(%rip),%rdi
mov    $0x46,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1090 <fwrite@plt>
mov    0x8(%r15),%rdx
lea    0xf97(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <fprintf@plt>
lea    0xfbb(%rip),%rdi
mov    $0x3d,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1090 <fwrite@plt>
lea    0xfe0(%rip),%rsi
lea    0x1017(%rip),%rdx
mov    %rbx,%rdi
mov    %r14,%rcx
xor    %eax,%eax
call   1050 <fprintf@plt>
lea    0x100f(%rip),%rdi
mov    $0x42,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1090 <fwrite@plt>
lea    0x1039(%rip),%r15
mov    $0x42,%esi
mov    $0x1,%edx
mov    %r15,%rdi
mov    %rbx,%rcx
call   1090 <fwrite@plt>
lea    0x1060(%rip),%rdi
mov    $0x28,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1090 <fwrite@plt>
lea    0x1070(%rip),%rdi
mov    $0x59,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1090 <fwrite@plt>
mov    $0x42,%esi
mov    $0x1,%edx
mov    %r15,%rdi
mov    %rbx,%rcx
call   1090 <fwrite@plt>
lea    0x109c(%rip),%rdi
mov    $0x25,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1090 <fwrite@plt>
lea    0x10f0(%rip),%rdi
mov    $0xc,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1090 <fwrite@plt>
lea    0x1090(%rip),%rdi
mov    $0xf,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1090 <fwrite@plt>
lea    0x1087(%rip),%rdi
mov    $0x2e,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1090 <fwrite@plt>
lea    0x109d(%rip),%rdi
mov    $0x14,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1090 <fwrite@plt>
lea    0x1099(%rip),%rdi
mov    $0x25,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1090 <fwrite@plt>
lea    0x10a6(%rip),%rdi
mov    $0x15,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1090 <fwrite@plt>
lea    0x10a3(%rip),%rdi
mov    $0x25,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1090 <fwrite@plt>
lea    0x10b0(%rip),%rdi
mov    $0x25,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1090 <fwrite@plt>
lea    0x10bd(%rip),%rdi
mov    $0x28,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1090 <fwrite@plt>
lea    0x10cd(%rip),%rdi
mov    $0x24,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1090 <fwrite@plt>
lea    0x10d9(%rip),%rdi
mov    $0x10,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1090 <fwrite@plt>
lea    0x1018(%rip),%rdi
mov    $0xd,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1090 <fwrite@plt>
lea    0x10b8(%rip),%rdi
mov    $0x11,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1090 <fwrite@plt>
mov    %rbx,%rdi
call   1040 <fclose@plt>
mov    %r14,%rdi
call   1030 <free@plt>
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [11 x i8] c"info.plist\00"
@.str.1 = [3 x i8] c"wb\00"
@.str.2 = [172 x i8] c"<?xml version=\221.0\22 encoding=\22UTF-8\22?>\0A<!DOCTYPE plist PUBLIC \22-//Apple//DTD PLIST 1.0//EN\22 \22http://www.apple.com/DTDs/PropertyList-1.0.dtd\22>\0A<plist version=\221.0\22>\0A<dict>\0A\00"
@.str.3 = [60 x i8] c" <key>CFBundleDisplayName</key>\0A <string>%s</string>\0A\00"
@.str.4 = [59 x i8] c" <key>CFBundleExecutable</key>\0A <string>%s</string>\0A\00"
@.str.5 = [67 x i8] c" <key>CFBundleIdentifier</key>\0A <string>fm.ilia.%s</string>\0A\00"
@.str.6 = [71 x i8] c" <key>CFBundleInfoDictionaryVersion</key>\0A <string>6.0</string>\0A\00"
@.str.7 = [53 x i8] c" <key>CFBundleName</key>\0A <string>%s</string>\0A\00"
@.str.8 = [62 x i8] c" <key>CFBundlePackageType</key>\0A <string>APPL</string>\0A\00"
@.str.9 = [62 x i8] c" <key>CFBundleVersion</key>\0A <string>(%s @%s)</string>\0A\00"
@.str.10 = [12 x i8] c"Mar 17 2022\00"
@.str.11 = [67 x i8] c" <key>LSMinimumSystemVersion</key>\0A <string>10.6.0</string>\0A\00"
@.str.12 = [67 x i8] c" <key>CFBundleIconFile</key>\0A <string>MLV App.icns</string>\0A\00"
@.str.13 = [41 x i8] c" <key>LSUIElement</key>\0A <false/>\0A\00"
@.str.14 = [90 x i8] c" <key>NSHumanReadableCopyright</key>\0A <string>\C2\A9 2017 Creators Of MLV App</string>\0A\00"
@.str.15 = [38 x i8] c" <key>CFBundleDocumentTypes</key>\0A\00"
@.str.16 = [13 x i8] c" <array>\0A\00"
@.str.17 = [16 x i8] c" <dict>\0A\00"
@.str.18 = [47 x i8] c" <key>CFBundleTypeExtensions</key>\0A\00"
@.str.19 = [21 x i8] c" <array>\0A\00"
@.str.20 = [38 x i8] c" <string>MLV</string>\0A\00"
@.str.21 = [22 x i8] c" </array>\0A\00"
@.str.22 = [38 x i8] c" <key>LSHandlerRank</key>\0A\00"
@.str.23 = [38 x i8] c" <string>Default</string>\0A\00"
@.str.24 = [41 x i8] c" <key>CFBundleTypeRole</key>\0A\00"
@.str.25 = [37 x i8] c" <string>Viewer</string>\0A\00"
@.str.26 = [17 x i8] c" </dict>\0A\00"
@.str.27 = [14 x i8] c" </array>\0A\00"
@.str.28 = [18 x i8] c"</dict>\0A</plist>\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
%5 = alloca i8*
%6 = alloca i32*
store i32 %0, i32* %3
store i8** %1, i8*** %4
%7 = call i8* @malloc(i32 1024)
store i8* %7, i8** %5
%8 = load i8*, i8** %5
%9 = call i32 @gethostname(i8* %8, i32 1023)
%10 = call i32* @fopen(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
store i32* %10, i32** %6
%11 = load i32*, i32** %6
%12 = call i32 (i32*, i8*, ...) @fprintf(i32* %11, i8* getelementptr inbounds ([172 x i8], [172 x i8]* @.str.2, i64 0, i64 0))
%13 = load i32*, i32** %6
%14 = load i8**, i8*** %4
%15 = getelementptr inbounds i8*, i8** %14, i64 1
%16 = load i8*, i8** %15
%17 = call i32 (i32*, i8*, ...) @fprintf(i32* %13, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.3, i64 0, i64 0), i8* %16)
%18 = load i32*, i32** %6
%19 = load i8**, i8*** %4
%20 = getelementptr inbounds i8*, i8** %19, i64 1
%21 = load i8*, i8** %20
%22 = call i32 (i32*, i8*, ...) @fprintf(i32* %18, i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.4, i64 0, i64 0), i8* %21)
%23 = load i32*, i32** %6
%24 = load i8**, i8*** %4
%25 = getelementptr inbounds i8*, i8** %24, i64 1
%26 = load i8*, i8** %25
%27 = call i32 (i32*, i8*, ...) @fprintf(i32* %23, i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.5, i64 0, i64 0), i8* %26)
%28 = load i32*, i32** %6
%29 = call i32 (i32*, i8*, ...) @fprintf(i32* %28, i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.6, i64 0, i64 0))
%30 = load i32*, i32** %6
%31 = load i8**, i8*** %4
%32 = getelementptr inbounds i8*, i8** %31, i64 1
%33 = load i8*, i8** %32
%34 = call i32 (i32*, i8*, ...) @fprintf(i32* %30, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.7, i64 0, i64 0), i8* %33)
%35 = load i32*, i32** %6
%36 = call i32 (i32*, i8*, ...) @fprintf(i32* %35, i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.8, i64 0, i64 0))
%37 = load i32*, i32** %6
%38 = load i8*, i8** %5
%39 = call i32 (i32*, i8*, ...) @fprintf(i32* %37, i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.10, i64 0, i64 0), i8* %38)
%40 = load i32*, i32** %6
%41 = call i32 (i32*, i8*, ...) @fprintf(i32* %40, i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.11, i64 0, i64 0))
%42 = load i32*, i32** %6
%43 = call i32 (i32*, i8*, ...) @fprintf(i32* %42, i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.12, i64 0, i64 0))
%44 = load i32*, i32** %6
%45 = call i32 (i32*, i8*, ...) @fprintf(i32* %44, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.13, i64 0, i64 0))
%46 = load i32*, i32** %6
%47 = call i32 (i32*, i8*, ...) @fprintf(i32* %46, i8* getelementptr inbounds ([90 x i8], [90 x i8]* @.str.14, i64 0, i64 0))
%48 = load i32*, i32** %6
%49 = call i32 (i32*, i8*, ...) @fprintf(i32* %48, i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.12, i64 0, i64 0))
%50 = load i32*, i32** %6
%51 = call i32 (i32*, i8*, ...) @fprintf(i32* %50, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.15, i64 0, i64 0))
%52 = load i32*, i32** %6
%53 = call i32 (i32*, i8*, ...) @fprintf(i32* %52, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.16, i64 0, i64 0))
%54 = load i32*, i32** %6
%55 = call i32 (i32*, i8*, ...) @fprintf(i32* %54, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.17, i64 0, i64 0))
%56 = load i32*, i32** %6
%57 = call i32 (i32*, i8*, ...) @fprintf(i32* %56, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.18, i64 0, i64 0))
%58 = load i32*, i32** %6
%59 = call i32 (i32*, i8*, ...) @fprintf(i32* %58, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.19, i64 0, i64 0))
%60 = load i32*, i32** %6
%61 = call i32 (i32*, i8*, ...) @fprintf(i32* %60, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.20, i64 0, i64 0))
%62 = load i32*, i32** %6
%63 = call i32 (i32*, i8*, ...) @fprintf(i32* %62, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.21, i64 0, i64 0))
%64 = load i32*, i32** %6
%65 = call i32 (i32*, i8*, ...) @fprintf(i32* %64, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.22, i64 0, i64 0))
%66 = load i32*, i32** %6
%67 = call i32 (i32*, i8*, ...) @fprintf(i32* %66, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.23, i64 0, i64 0))
%68 = load i32*, i32** %6
%69 = call i32 (i32*, i8*, ...) @fprintf(i32* %68, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.24, i64 0, i64 0))
%70 = load i32*, i32** %6
%71 = call i32 (i32*, i8*, ...) @fprintf(i32* %70, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.25, i64 0, i64 0))
%72 = load i32*, i32** %6
%73 = call i32 (i32*, i8*, ...) @fprintf(i32* %72, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.26, i64 0, i64 0))
%74 = load i32*, i32** %6
%75 = call i32 (i32*, i8*, ...) @fprintf(i32* %74, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.27, i64 0, i64 0))
%76 = load i32*, i32** %6
%77 = call i32 (i32*, i8*, ...) @fprintf(i32* %76, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.28, i64 0, i64 0))
%78 = load i32*, i32** %6
%79 = call i32 @fclose(i32* %78)
%80 = load i8*, i8** %5
%81 = call i32 @free(i8* %80)
ret i32 0
}

LLVM IR (-O2):
@.str = [11 x i8] c"info.plist\00"
@.str.1 = [3 x i8] c"wb\00"
@.str.2 = [172 x i8] c"<?xml version=\221.0\22 encoding=\22UTF-8\22?>\0A<!DOCTYPE plist PUBLIC \22-//Apple//DTD PLIST 1.0//EN\22 \22http://www.apple.com/DTDs/PropertyList-1.0.dtd\22>\0A<plist version=\221.0\22>\0A<dict>\0A\00"
@.str.3 = [60 x i8] c" <key>CFBundleDisplayName</key>\0A <string>%s</string>\0A\00"
@.str.4 = [59 x i8] c" <key>CFBundleExecutable</key>\0A <string>%s</string>\0A\00"
@.str.5 = [67 x i8] c" <key>CFBundleIdentifier</key>\0A <string>fm.ilia.%s</string>\0A\00"
@.str.6 = [71 x i8] c" <key>CFBundleInfoDictionaryVersion</key>\0A <string>6.0</string>\0A\00"
@.str.7 = [53 x i8] c" <key>CFBundleName</key>\0A <string>%s</string>\0A\00"
@.str.8 = [62 x i8] c" <key>CFBundlePackageType</key>\0A <string>APPL</string>\0A\00"
@.str.9 = [62 x i8] c" <key>CFBundleVersion</key>\0A <string>(%s @%s)</string>\0A\00"
@.str.10 = [12 x i8] c"Mar 17 2022\00"
@.str.11 = [67 x i8] c" <key>LSMinimumSystemVersion</key>\0A <string>10.6.0</string>\0A\00"
@.str.12 = [67 x i8] c" <key>CFBundleIconFile</key>\0A <string>MLV App.icns</string>\0A\00"
@.str.13 = [41 x i8] c" <key>LSUIElement</key>\0A <false/>\0A\00"
@.str.14 = [90 x i8] c" <key>NSHumanReadableCopyright</key>\0A <string>\C2\A9 2017 Creators Of MLV App</string>\0A\00"
@.str.15 = [38 x i8] c" <key>CFBundleDocumentTypes</key>\0A\00"
@.str.16 = [13 x i8] c" <array>\0A\00"
@.str.17 = [16 x i8] c" <dict>\0A\00"
@.str.18 = [47 x i8] c" <key>CFBundleTypeExtensions</key>\0A\00"
@.str.19 = [21 x i8] c" <array>\0A\00"
@.str.20 = [38 x i8] c" <string>MLV</string>\0A\00"
@.str.21 = [22 x i8] c" </array>\0A\00"
@.str.22 = [38 x i8] c" <key>LSHandlerRank</key>\0A\00"
@.str.23 = [38 x i8] c" <string>Default</string>\0A\00"
@.str.24 = [41 x i8] c" <key>CFBundleTypeRole</key>\0A\00"
@.str.25 = [37 x i8] c" <string>Viewer</string>\0A\00"
@.str.26 = [17 x i8] c" </dict>\0A\00"
@.str.27 = [14 x i8] c" </array>\0A\00"
@.str.28 = [18 x i8] c"</dict>\0A</plist>\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = tail call dereferenceable_or_null(1024) i8* @malloc(i32 1024)
%4 = tail call i32 @gethostname(i8* %3, i32 1023)
%5 = tail call i32* @fopen(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%6 = tail call i64 @fwrite(i8* getelementptr inbounds ([172 x i8], [172 x i8]* @.str.2, i64 0, i64 0), i64 171, i64 1, i32* %5)
%7 = getelementptr inbounds i8*, i8** %1, i64 1
%8 = load i8*, i8** %7
%9 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %5, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.3, i64 0, i64 0), i8* %8)
%10 = load i8*, i8** %7
%11 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %5, i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.4, i64 0, i64 0), i8* %10)
%12 = load i8*, i8** %7
%13 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %5, i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.5, i64 0, i64 0), i8* %12)
%14 = tail call i64 @fwrite(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.6, i64 0, i64 0), i64 70, i64 1, i32* %5)
%15 = load i8*, i8** %7
%16 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %5, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.7, i64 0, i64 0), i8* %15)
%17 = tail call i64 @fwrite(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.8, i64 0, i64 0), i64 61, i64 1, i32* %5)
%18 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %5, i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.10, i64 0, i64 0), i8* %3)
%19 = tail call i64 @fwrite(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.11, i64 0, i64 0), i64 66, i64 1, i32* %5)
%20 = tail call i64 @fwrite(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.12, i64 0, i64 0), i64 66, i64 1, i32* %5)
%21 = tail call i64 @fwrite(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.13, i64 0, i64 0), i64 40, i64 1, i32* %5)
%22 = tail call i64 @fwrite(i8* getelementptr inbounds ([90 x i8], [90 x i8]* @.str.14, i64 0, i64 0), i64 89, i64 1, i32* %5)
%23 = tail call i64 @fwrite(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.12, i64 0, i64 0), i64 66, i64 1, i32* %5)
%24 = tail call i64 @fwrite(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.15, i64 0, i64 0), i64 37, i64 1, i32* %5)
%25 = tail call i64 @fwrite(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.16, i64 0, i64 0), i64 12, i64 1, i32* %5)
%26 = tail call i64 @fwrite(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.17, i64 0, i64 0), i64 15, i64 1, i32* %5)
%27 = tail call i64 @fwrite(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.18, i64 0, i64 0), i64 46, i64 1, i32* %5)
%28 = tail call i64 @fwrite(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.19, i64 0, i64 0), i64 20, i64 1, i32* %5)
%29 = tail call i64 @fwrite(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.20, i64 0, i64 0), i64 37, i64 1, i32* %5)
%30 = tail call i64 @fwrite(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.21, i64 0, i64 0), i64 21, i64 1, i32* %5)
%31 = tail call i64 @fwrite(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.22, i64 0, i64 0), i64 37, i64 1, i32* %5)
%32 = tail call i64 @fwrite(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.23, i64 0, i64 0), i64 37, i64 1, i32* %5)
%33 = tail call i64 @fwrite(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.24, i64 0, i64 0), i64 40, i64 1, i32* %5)
%34 = tail call i64 @fwrite(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.25, i64 0, i64 0), i64 36, i64 1, i32* %5)
%35 = tail call i64 @fwrite(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.26, i64 0, i64 0), i64 16, i64 1, i32* %5)
%36 = tail call i64 @fwrite(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.27, i64 0, i64 0), i64 13, i64 1, i32* %5)
%37 = tail call i64 @fwrite(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.28, i64 0, i64 0), i64 17, i64 1, i32* %5)
%38 = tail call i32 @fclose(i32* %5)
%39 = tail call i32 @free(i8* %3)
ret i32 0
}