#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*/ dec_to_octal(int, char *);
int /*<<< orphan*/ dos2unix_str(char *, char *);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fputs(char *, int /*<<< orphan*/ *);
int /*<<< orphan*/ fwrite(char *, int, int /*<<< orphan*/,
                          int /*<<< orphan*/ *);
int get_padding(char *);
int /*<<< orphan*/ padded_octal(char *, int, char *);
int /*<<< orphan*/ put_padding(int, int /*<<< orphan*/ *);
int /*<<< orphan*/ sprintf(char *, char *, int);
int /*<<< orphan*/ strcpy(char *, char *);
int /*<<< orphan*/ strlen(char *);
void p_write_tar_entry(char *tarname, char *filename, int _size, int _modified,
                       int etype) {
  char size[11];
  char psize[11];
  char modified[10];
  char pmodified[10];
  char fm[7];
  char contents[100000];
  dec_to_octal(_size, size);
  padded_octal(size, 11, psize);
  if (etype == 0) {
    strcpy(fm, "0100777");
    dos2unix_str(filename, contents);
  } else if (etype == 5) {
    strcpy(fm, "0040777");
  }
  FILE *tar;
  tar = fopen(tarname, "wb");
  fwrite(filename, 1, strlen(filename), tar);
  put_padding(100 - strlen(filename), tar);
  fputs(fm, tar);
  put_padding(1, tar);
  fputs("0000000", tar);
  put_padding(1, tar);
  fputs("0000000", tar);
  put_padding(1, tar);
  fputs(psize, tar);
  dec_to_octal(_modified, modified);
  padded_octal(modified, 0, pmodified);
  put_padding(1, tar);
  fputs(pmodified, tar);
  put_padding(1, tar);
  fputs("000000", tar);
  put_padding(1, tar);
  fputs(" ", tar);
  char cetype[2];
  sprintf(cetype, "%d", etype);
  fputs(cetype, tar);
  put_padding(100, tar);
  fputs("ustar", tar);
  put_padding(1, tar);
  fputs("00", tar);
  put_padding(247, tar);
  fwrite(contents, 1, strlen(contents), tar);
  int ps = get_padding(contents);
  put_padding(ps - 1, tar);
  fclose(tar);
}


x86 assembly (clang, -O0):
<p_write_tar_entry>:
push   %rbp
mov    %rsp,%rbp
sub    $0x18710,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
mov    %r8d,-0x1c(%rbp)
mov    -0x14(%rbp),%edi
lea    -0x27(%rbp),%rsi
call   1090 <dec_to_octal@plt>
lea    -0x27(%rbp),%rdi
lea    -0x32(%rbp),%rdx
mov    $0xb,%esi
call   10a0 <padded_octal@plt>
cmpl   $0x0,-0x1c(%rbp)
jne    122a <p_write_tar_entry+0x6a>
lea    -0x4d(%rbp),%rdi
lea    0xdf0(%rip),%rsi
call   1030 <strcpy@plt>
mov    -0x10(%rbp),%rdi
lea    -0x186f0(%rbp),%rsi
call   1040 <dos2unix_str@plt>
jmp    1249 <p_write_tar_entry+0x89>
cmpl   $0x5,-0x1c(%rbp)
jne    1244 <p_write_tar_entry+0x84>
lea    -0x4d(%rbp),%rdi
lea    0xdc9(%rip),%rsi
call   1030 <strcpy@plt>
jmp    1249 <p_write_tar_entry+0x89>
mov    -0x8(%rbp),%rdi
lea    0xdbc(%rip),%rsi
call   10b0 <fopen@plt>
mov    %rax,-0x186f8(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x18710(%rbp)
mov    -0x10(%rbp),%rdi
call   1060 <strlen@plt>
mov    -0x18710(%rbp),%rdi
mov    %eax,%edx
mov    -0x186f8(%rbp),%rcx
mov    $0x1,%esi
call   10e0 <fwrite@plt>
mov    -0x10(%rbp),%rdi
call   1060 <strlen@plt>
mov    $0x64,%edi
sub    %eax,%edi
mov    -0x186f8(%rbp),%rsi
call   10c0 <put_padding@plt>
lea    -0x4d(%rbp),%rdi
mov    -0x186f8(%rbp),%rsi
call   1070 <fputs@plt>
mov    -0x186f8(%rbp),%rsi
mov    $0x1,%edi
call   10c0 <put_padding@plt>
mov    -0x186f8(%rbp),%rsi
lea    0xd3a(%rip),%rdi
call   1070 <fputs@plt>
mov    -0x186f8(%rbp),%rsi
mov    $0x1,%edi
call   10c0 <put_padding@plt>
mov    -0x186f8(%rbp),%rsi
lea    0xd16(%rip),%rdi
call   1070 <fputs@plt>
mov    -0x186f8(%rbp),%rsi
mov    $0x1,%edi
call   10c0 <put_padding@plt>
lea    -0x32(%rbp),%rdi
mov    -0x186f8(%rbp),%rsi
call   1070 <fputs@plt>
mov    -0x18(%rbp),%edi
lea    -0x3c(%rbp),%rsi
call   1090 <dec_to_octal@plt>
lea    -0x3c(%rbp),%rdi
lea    -0x46(%rbp),%rdx
xor    %esi,%esi
call   10a0 <padded_octal@plt>
mov    -0x186f8(%rbp),%rsi
mov    $0x1,%edi
call   10c0 <put_padding@plt>
lea    -0x46(%rbp),%rdi
mov    -0x186f8(%rbp),%rsi
call   1070 <fputs@plt>
mov    -0x186f8(%rbp),%rsi
mov    $0x1,%edi
call   10c0 <put_padding@plt>
mov    -0x186f8(%rbp),%rsi
lea    0xc96(%rip),%rdi
call   1070 <fputs@plt>
mov    -0x186f8(%rbp),%rsi
mov    $0x1,%edi
call   10c0 <put_padding@plt>
mov    -0x186f8(%rbp),%rsi
lea    0xc79(%rip),%rdi
call   1070 <fputs@plt>
lea    -0x186fa(%rbp),%rdi
mov    -0x1c(%rbp),%edx
lea    0xc65(%rip),%rsi
call   10d0 <sprintf@plt>
lea    -0x186fa(%rbp),%rdi
mov    -0x186f8(%rbp),%rsi
call   1070 <fputs@plt>
mov    -0x186f8(%rbp),%rsi
mov    $0x64,%edi
call   10c0 <put_padding@plt>
mov    -0x186f8(%rbp),%rsi
lea    0xc31(%rip),%rdi
call   1070 <fputs@plt>
mov    -0x186f8(%rbp),%rsi
mov    $0x1,%edi
call   10c0 <put_padding@plt>
mov    -0x186f8(%rbp),%rsi
lea    0xc05(%rip),%rdi
call   1070 <fputs@plt>
mov    -0x186f8(%rbp),%rsi
mov    $0xf7,%edi
call   10c0 <put_padding@plt>
lea    -0x186f0(%rbp),%rax
mov    %rax,-0x18708(%rbp)
lea    -0x186f0(%rbp),%rdi
call   1060 <strlen@plt>
mov    -0x18708(%rbp),%rdi
mov    %eax,%edx
mov    -0x186f8(%rbp),%rcx
mov    $0x1,%esi
call   10e0 <fwrite@plt>
lea    -0x186f0(%rbp),%rdi
call   1080 <get_padding@plt>
mov    %eax,-0x18700(%rbp)
mov    -0x18700(%rbp),%edi
sub    $0x1,%edi
mov    -0x186f8(%rbp),%rsi
call   10c0 <put_padding@plt>
mov    -0x186f8(%rbp),%rdi
call   1050 <fclose@plt>
add    $0x18710,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<p_write_tar_entry>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x186e0,%rsp
mov    %r8d,%r15d
mov    %ecx,%r14d
mov    %rsi,%rbp
mov    %rdi,%r12
lea    0x35(%rsp),%rbx
mov    %edx,%edi
mov    %rbx,%rsi
call   1090 <dec_to_octal@plt>
lea    0x16(%rsp),%rdx
mov    %rbx,%rdi
mov    $0xb,%esi
call   10a0 <padded_octal@plt>
cmp    $0x5,%r15d
je     1227 <p_write_tar_entry+0x67>
test   %r15d,%r15d
jne    1238 <p_write_tar_entry+0x78>
lea    0xdf2(%rip),%rsi
lea    0xf(%rsp),%rdi
call   1030 <strcpy@plt>
lea    0x40(%rsp),%rsi
mov    %rbp,%rdi
call   1040 <dos2unix_str@plt>
jmp    1238 <p_write_tar_entry+0x78>
lea    0xdda(%rip),%rsi
lea    0xf(%rsp),%rdi
call   1030 <strcpy@plt>
lea    0xdd1(%rip),%rsi
mov    %r12,%rdi
call   10b0 <fopen@plt>
mov    %rax,%rbx
mov    %rbp,%rdi
call   1060 <strlen@plt>
mov    %rbp,%rdi
mov    $0x1,%esi
mov    %eax,%edx
mov    %rbx,%rcx
call   10e0 <fwrite@plt>
mov    %rbp,%rdi
call   1060 <strlen@plt>
mov    $0x64,%edi
sub    %eax,%edi
mov    %rbx,%rsi
call   10c0 <put_padding@plt>
lea    0xf(%rsp),%rdi
mov    %rbx,%rsi
call   1070 <fputs@plt>
mov    $0x1,%edi
mov    %rbx,%rsi
call   10c0 <put_padding@plt>
lea    0xd77(%rip),%rbp
mov    $0x7,%esi
mov    $0x1,%edx
mov    %rbp,%rdi
mov    %rbx,%rcx
call   10e0 <fwrite@plt>
mov    $0x1,%edi
mov    %rbx,%rsi
call   10c0 <put_padding@plt>
mov    $0x7,%esi
mov    $0x1,%edx
mov    %rbp,%rdi
mov    %rbx,%rcx
call   10e0 <fwrite@plt>
mov    $0x1,%edi
mov    %rbx,%rsi
call   10c0 <put_padding@plt>
lea    0x16(%rsp),%rdi
mov    %rbx,%rsi
call   1070 <fputs@plt>
lea    0x2b(%rsp),%rbp
mov    %r14d,%edi
mov    %rbp,%rsi
call   1090 <dec_to_octal@plt>
lea    0x21(%rsp),%r14
mov    %rbp,%rdi
xor    %esi,%esi
mov    %r14,%rdx
call   10a0 <padded_octal@plt>
mov    $0x1,%edi
mov    %rbx,%rsi
call   10c0 <put_padding@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
call   1070 <fputs@plt>
mov    $0x1,%edi
mov    %rbx,%rsi
call   10c0 <put_padding@plt>
lea    0xcd9(%rip),%rdi
mov    $0x6,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   10e0 <fwrite@plt>
mov    $0x1,%edi
mov    %rbx,%rsi
call   10c0 <put_padding@plt>
lea    0xcba(%rip),%rdi
mov    $0x1,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   10e0 <fwrite@plt>
lea    0xca3(%rip),%rsi
lea    0xd(%rsp),%rbp
mov    %rbp,%rdi
mov    %r15d,%edx
call   10d0 <sprintf@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
call   1070 <fputs@plt>
mov    $0x64,%edi
mov    %rbx,%rsi
call   10c0 <put_padding@plt>
lea    0xc77(%rip),%rdi
mov    $0x5,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   10e0 <fwrite@plt>
mov    $0x1,%edi
mov    %rbx,%rsi
call   10c0 <put_padding@plt>
lea    0xc49(%rip),%rdi
mov    $0x2,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   10e0 <fwrite@plt>
mov    $0xf7,%edi
mov    %rbx,%rsi
call   10c0 <put_padding@plt>
lea    0x40(%rsp),%rbp
mov    %rbp,%rdi
call   1060 <strlen@plt>
mov    %rbp,%rdi
mov    $0x1,%esi
mov    %eax,%edx
mov    %rbx,%rcx
call   10e0 <fwrite@plt>
mov    %rbp,%rdi
call   1080 <get_padding@plt>
lea    -0x1(%rax),%edi
mov    %rbx,%rsi
call   10c0 <put_padding@plt>
mov    %rbx,%rdi
call   1050 <fclose@plt>
add    $0x186e0,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [8 x i8] c"0100777\00"
@.str.1 = [8 x i8] c"0040777\00"
@.str.2 = [3 x i8] c"wb\00"
@.str.3 = [8 x i8] c"0000000\00"
@.str.4 = [7 x i8] c"000000\00"
@.str.5 = [2 x i8] c" \00"
@.str.6 = [3 x i8] c"%d\00"
@.str.7 = [6 x i8] c"ustar\00"
@.str.8 = [3 x i8] c"00\00"
define void @p_write_tar_entry(i8* %0, i8* %1, i32 %2, i32 %3, i32 %4) {
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca [11 x i8]
%12 = alloca [11 x i8]
%13 = alloca [10 x i8]
%14 = alloca [10 x i8]
%15 = alloca [7 x i8]
%16 = alloca [100000 x i8]
%17 = alloca i32*
%18 = alloca [2 x i8]
%19 = alloca i32
store i8* %0, i8** %6
store i8* %1, i8** %7
store i32 %2, i32* %8
store i32 %3, i32* %9
store i32 %4, i32* %10
%20 = load i32, i32* %8
%21 = getelementptr inbounds [11 x i8], [11 x i8]* %11, i64 0, i64 0
%22 = call i32 @dec_to_octal(i32 %20, i8* %21)
%23 = getelementptr inbounds [11 x i8], [11 x i8]* %11, i64 0, i64 0
%24 = getelementptr inbounds [11 x i8], [11 x i8]* %12, i64 0, i64 0
%25 = call i32 @padded_octal(i8* %23, i32 11, i8* %24)
%26 = load i32, i32* %10
%27 = icmp eq i32 %26, 0
br i1 %27, label %28, label %34
28: ; preds = %5
%29 = getelementptr inbounds [7 x i8], [7 x i8]* %15, i64 0, i64 0
%30 = call i32 @strcpy(i8* %29, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%31 = load i8*, i8** %7
%32 = getelementptr inbounds [100000 x i8], [100000 x i8]* %16, i64 0, i64 0
%33 = call i32 @dos2unix_str(i8* %31, i8* %32)
br label %41
34: ; preds = %5
%35 = load i32, i32* %10
%36 = icmp eq i32 %35, 5
br i1 %36, label %37, label %40
37: ; preds = %34
%38 = getelementptr inbounds [7 x i8], [7 x i8]* %15, i64 0, i64 0
%39 = call i32 @strcpy(i8* %38, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
br label %40
40: ; preds = %37, %34
br label %41
41: ; preds = %40, %28
%42 = load i8*, i8** %6
%43 = call i32* @fopen(i8* %42, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
store i32* %43, i32** %17
%44 = load i8*, i8** %7
%45 = load i8*, i8** %7
%46 = call i32 @strlen(i8* %45)
%47 = load i32*, i32** %17
%48 = call i32 @fwrite(i8* %44, i32 1, i32 %46, i32* %47)
%49 = load i8*, i8** %7
%50 = call i32 @strlen(i8* %49)
%51 = sub nsw i32 100, %50
%52 = load i32*, i32** %17
%53 = call i32 @put_padding(i32 %51, i32* %52)
%54 = getelementptr inbounds [7 x i8], [7 x i8]* %15, i64 0, i64 0
%55 = load i32*, i32** %17
%56 = call i32 @fputs(i8* %54, i32* %55)
%57 = load i32*, i32** %17
%58 = call i32 @put_padding(i32 1, i32* %57)
%59 = load i32*, i32** %17
%60 = call i32 @fputs(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i32* %59)
%61 = load i32*, i32** %17
%62 = call i32 @put_padding(i32 1, i32* %61)
%63 = load i32*, i32** %17
%64 = call i32 @fputs(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i32* %63)
%65 = load i32*, i32** %17
%66 = call i32 @put_padding(i32 1, i32* %65)
%67 = getelementptr inbounds [11 x i8], [11 x i8]* %12, i64 0, i64 0
%68 = load i32*, i32** %17
%69 = call i32 @fputs(i8* %67, i32* %68)
%70 = load i32, i32* %9
%71 = getelementptr inbounds [10 x i8], [10 x i8]* %13, i64 0, i64 0
%72 = call i32 @dec_to_octal(i32 %70, i8* %71)
%73 = getelementptr inbounds [10 x i8], [10 x i8]* %13, i64 0, i64 0
%74 = getelementptr inbounds [10 x i8], [10 x i8]* %14, i64 0, i64 0
%75 = call i32 @padded_octal(i8* %73, i32 0, i8* %74)
%76 = load i32*, i32** %17
%77 = call i32 @put_padding(i32 1, i32* %76)
%78 = getelementptr inbounds [10 x i8], [10 x i8]* %14, i64 0, i64 0
%79 = load i32*, i32** %17
%80 = call i32 @fputs(i8* %78, i32* %79)
%81 = load i32*, i32** %17
%82 = call i32 @put_padding(i32 1, i32* %81)
%83 = load i32*, i32** %17
%84 = call i32 @fputs(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32* %83)
%85 = load i32*, i32** %17
%86 = call i32 @put_padding(i32 1, i32* %85)
%87 = load i32*, i32** %17
%88 = call i32 @fputs(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0), i32* %87)
%89 = getelementptr inbounds [2 x i8], [2 x i8]* %18, i64 0, i64 0
%90 = load i32, i32* %10
%91 = call i32 @sprintf(i8* %89, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32 %90)
%92 = getelementptr inbounds [2 x i8], [2 x i8]* %18, i64 0, i64 0
%93 = load i32*, i32** %17
%94 = call i32 @fputs(i8* %92, i32* %93)
%95 = load i32*, i32** %17
%96 = call i32 @put_padding(i32 100, i32* %95)
%97 = load i32*, i32** %17
%98 = call i32 @fputs(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i32* %97)
%99 = load i32*, i32** %17
%100 = call i32 @put_padding(i32 1, i32* %99)
%101 = load i32*, i32** %17
%102 = call i32 @fputs(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i32* %101)
%103 = load i32*, i32** %17
%104 = call i32 @put_padding(i32 247, i32* %103)
%105 = getelementptr inbounds [100000 x i8], [100000 x i8]* %16, i64 0, i64 0
%106 = getelementptr inbounds [100000 x i8], [100000 x i8]* %16, i64 0, i64 0
%107 = call i32 @strlen(i8* %106)
%108 = load i32*, i32** %17
%109 = call i32 @fwrite(i8* %105, i32 1, i32 %107, i32* %108)
%110 = getelementptr inbounds [100000 x i8], [100000 x i8]* %16, i64 0, i64 0
%111 = call i32 @get_padding(i8* %110)
store i32 %111, i32* %19
%112 = load i32, i32* %19
%113 = sub nsw i32 %112, 1
%114 = load i32*, i32** %17
%115 = call i32 @put_padding(i32 %113, i32* %114)
%116 = load i32*, i32** %17
%117 = call i32 @fclose(i32* %116)
ret void
}

LLVM IR (-O2):
@.str = [8 x i8] c"0100777\00"
@.str.1 = [8 x i8] c"0040777\00"
@.str.2 = [3 x i8] c"wb\00"
@.str.3 = [8 x i8] c"0000000\00"
@.str.4 = [7 x i8] c"000000\00"
@.str.5 = [2 x i8] c" \00"
@.str.6 = [3 x i8] c"%d\00"
@.str.7 = [6 x i8] c"ustar\00"
@.str.8 = [3 x i8] c"00\00"
define void @p_write_tar_entry(i8* nocapture %0, i8* %1, i32 %2, i32 %3, i32 %4) {
%6 = alloca [11 x i8]
%7 = alloca [11 x i8]
%8 = alloca [10 x i8]
%9 = alloca [10 x i8]
%10 = alloca [7 x i8]
%11 = alloca [100000 x i8]
%12 = alloca [2 x i8]
%13 = getelementptr inbounds [11 x i8], [11 x i8]* %6, i64 0, i64 0
%14 = getelementptr inbounds [11 x i8], [11 x i8]* %7, i64 0, i64 0
%15 = getelementptr inbounds [10 x i8], [10 x i8]* %8, i64 0, i64 0
%16 = getelementptr inbounds [10 x i8], [10 x i8]* %9, i64 0, i64 0
%17 = getelementptr inbounds [7 x i8], [7 x i8]* %10, i64 0, i64 0
%18 = getelementptr inbounds [100000 x i8], [100000 x i8]* %11, i64 0, i64 0
%19 = call i32 @dec_to_octal(i32 %2, i8* %13)
%20 = call i32 @padded_octal(i8* %13, i32 11, i8* %14)
switch i32 %4, label %26 [
i32 0, label %21
i32 5, label %24
]
21: ; preds = %5
%22 = call i32 @strcpy(i8* %17, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%23 = call i32 @dos2unix_str(i8* %1, i8* %18)
br label %26
24: ; preds = %5
%25 = call i32 @strcpy(i8* %17, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
br label %26
26: ; preds = %5, %24, %21
%27 = call i32* @fopen(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%28 = call i32 @strlen(i8* %1)
%29 = call i32 @fwrite(i8* %1, i32 1, i32 %28, i32* %27)
%30 = call i32 @strlen(i8* %1)
%31 = sub nsw i32 100, %30
%32 = call i32 @put_padding(i32 %31, i32* %27)
%33 = call i32 @fputs(i8* %17, i32* %27)
%34 = call i32 @put_padding(i32 1, i32* %27)
%35 = call i64 bitcast (i32 (i8*, i32, i32, i32*)* @fwrite to i64 (i8*, i64, i64, i32*)*)(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i64 7, i64 1, i32* %27)
%36 = call i32 @put_padding(i32 1, i32* %27)
%37 = call i64 bitcast (i32 (i8*, i32, i32, i32*)* @fwrite to i64 (i8*, i64, i64, i32*)*)(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i64 7, i64 1, i32* %27)
%38 = call i32 @put_padding(i32 1, i32* %27)
%39 = call i32 @fputs(i8* %14, i32* %27)
%40 = call i32 @dec_to_octal(i32 %3, i8* %15)
%41 = call i32 @padded_octal(i8* %15, i32 0, i8* %16)
%42 = call i32 @put_padding(i32 1, i32* %27)
%43 = call i32 @fputs(i8* %16, i32* %27)
%44 = call i32 @put_padding(i32 1, i32* %27)
%45 = call i64 bitcast (i32 (i8*, i32, i32, i32*)* @fwrite to i64 (i8*, i64, i64, i32*)*)(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i64 6, i64 1, i32* %27)
%46 = call i32 @put_padding(i32 1, i32* %27)
%47 = call i64 bitcast (i32 (i8*, i32, i32, i32*)* @fwrite to i64 (i8*, i64, i64, i32*)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0), i64 1, i64 1, i32* %27)
%48 = getelementptr inbounds [2 x i8], [2 x i8]* %12, i64 0, i64 0
%49 = call i32 @sprintf(i8* %48, i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32 %4)
%50 = call i32 @fputs(i8* %48, i32* %27)
%51 = call i32 @put_padding(i32 100, i32* %27)
%52 = call i64 bitcast (i32 (i8*, i32, i32, i32*)* @fwrite to i64 (i8*, i64, i64, i32*)*)(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i64 5, i64 1, i32* %27)
%53 = call i32 @put_padding(i32 1, i32* %27)
%54 = call i64 bitcast (i32 (i8*, i32, i32, i32*)* @fwrite to i64 (i8*, i64, i64, i32*)*)(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i64 2, i64 1, i32* %27)
%55 = call i32 @put_padding(i32 247, i32* %27)
%56 = call i32 @strlen(i8* %18)
%57 = call i32 @fwrite(i8* %18, i32 1, i32 %56, i32* %27)
%58 = call i32 @get_padding(i8* %18)
%59 = add nsw i32 %58, -1
%60 = call i32 @put_padding(i32 %59, i32* %27)
%61 = call i32 @fclose(i32* %27)
ret void
}