#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 */
typedef struct TYPE_2__ TYPE_1__;

/* Type definitions */
struct TYPE_2__ {
  scalar_t__ p_filesz;
  scalar_t__ p_memsz;
  int /*<<< orphan*/ p_align;
  int /*<<< orphan*/ p_paddr;
  int /*<<< orphan*/ p_vaddr;
  int /*<<< orphan*/ p_offset;
  int /*<<< orphan*/ p_flags;
  int /*<<< orphan*/ p_type;
};
typedef TYPE_1__ Elf64_Phdr;

/* Variables and functions */
int /*<<< orphan*/ beginblock(int);
int /*<<< orphan*/ endblock();
char const *getentsizestr(int /*<<< orphan*/, int);
int getindexfromoffset(int /*<<< orphan*/);
char const *getoffsetstr(int /*<<< orphan*/, int);
char *getsizestr(scalar_t__, int);
int /*<<< orphan*/ out(char const *);
int /*<<< orphan*/ outf(char *, char const *, scalar_t__);
char const *straddress(int /*<<< orphan*/);
char const *strdefflags(int /*<<< orphan*/, char *);
char const *strdefint(int /*<<< orphan*/, char *);
char const *strhex(scalar_t__);
void outphdr64(void const *ptr, long size, int ndx) {
  Elf64_Phdr const *phdrs = ptr;
  long count = size / sizeof *phdrs;
  char const *filesz;
  long i;
  beginblock(1);
  for (i = 0; i < count; ++i) {
    beginblock(0);
    (out(strdefint(phdrs[i].p_type, "PT_")));
    (out(strdefflags(phdrs[i].p_flags, "PF_")));
    ndx = getindexfromoffset(phdrs[i].p_offset);
    out(getoffsetstr(phdrs[i].p_offset, ndx));
    (out(straddress(phdrs[i].p_vaddr)));
    (out(straddress(phdrs[i].p_paddr)));
    if (phdrs[i].p_filesz == 0) {
      out("0");
      (out(strhex(phdrs[i].p_memsz)));
    } else {
      filesz = getsizestr(phdrs[i].p_filesz, ndx);
      out(filesz);
      if (phdrs[i].p_memsz == phdrs[i].p_filesz)
        out(filesz);
      else if (phdrs[i].p_memsz < phdrs[i].p_filesz)
        (out(strhex(phdrs[i].p_memsz)));
      else
        outf("%s + %ld", filesz, phdrs[i].p_memsz - phdrs[i].p_filesz);
    }
    out(getentsizestr(phdrs[i].p_align, ndx));
    endblock();
  }
  endblock();
}


x86 assembly (clang, -O0):
<outphdr64>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
mov    $0x28,%ecx
xor    %edx,%edx
div    %rcx
mov    %rax,-0x28(%rbp)
mov    $0x1,%edi
call   10b0 <beginblock@plt>
movq   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%rax
cmp    -0x28(%rbp),%rax
jge    141a <outphdr64+0x25a>
xor    %edi,%edi
call   10b0 <beginblock@plt>
mov    -0x20(%rbp),%rax
imul   $0x28,-0x38(%rbp),%rcx
add    %rcx,%rax
mov    0x24(%rax),%edi
lea    0xdd6(%rip),%rsi
call   1040 <strdefint@plt>
mov    %rax,%rdi
call   10d0 <out@plt>
mov    -0x20(%rbp),%rax
imul   $0x28,-0x38(%rbp),%rcx
add    %rcx,%rax
mov    0x20(%rax),%edi
lea    0xdb7(%rip),%rsi
call   1050 <strdefflags@plt>
mov    %rax,%rdi
call   10d0 <out@plt>
mov    -0x20(%rbp),%rax
imul   $0x28,-0x38(%rbp),%rcx
add    %rcx,%rax
mov    0x1c(%rax),%edi
call   1030 <getindexfromoffset@plt>
mov    %eax,-0x14(%rbp)
mov    -0x20(%rbp),%rax
imul   $0x28,-0x38(%rbp),%rcx
add    %rcx,%rax
mov    0x1c(%rax),%edi
mov    -0x14(%rbp),%esi
call   10c0 <getoffsetstr@plt>
mov    %rax,%rdi
call   10d0 <out@plt>
mov    -0x20(%rbp),%rax
imul   $0x28,-0x38(%rbp),%rcx
add    %rcx,%rax
mov    0x18(%rax),%edi
call   10e0 <straddress@plt>
mov    %rax,%rdi
call   10d0 <out@plt>
mov    -0x20(%rbp),%rax
imul   $0x28,-0x38(%rbp),%rcx
add    %rcx,%rax
mov    0x14(%rax),%edi
call   10e0 <straddress@plt>
mov    %rax,%rdi
call   10d0 <out@plt>
mov    -0x20(%rbp),%rax
imul   $0x28,-0x38(%rbp),%rcx
add    %rcx,%rax
cmpq   $0x0,(%rax)
jne    130c <outphdr64+0x14c>
lea    0xd23(%rip),%rdi
call   10d0 <out@plt>
mov    -0x20(%rbp),%rax
imul   $0x28,-0x38(%rbp),%rcx
add    %rcx,%rax
mov    0x8(%rax),%rdi
call   1060 <strhex@plt>
mov    %rax,%rdi
call   10d0 <out@plt>
jmp    13e3 <outphdr64+0x223>
mov    -0x20(%rbp),%rax
imul   $0x28,-0x38(%rbp),%rcx
add    %rcx,%rax
mov    (%rax),%rdi
mov    -0x14(%rbp),%esi
call   1090 <getsizestr@plt>
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rdi
call   10d0 <out@plt>
mov    -0x20(%rbp),%rax
imul   $0x28,-0x38(%rbp),%rcx
add    %rcx,%rax
mov    0x8(%rax),%rax
mov    -0x20(%rbp),%rcx
imul   $0x28,-0x38(%rbp),%rdx
add    %rdx,%rcx
cmp    (%rcx),%rax
jne    1363 <outphdr64+0x1a3>
mov    -0x30(%rbp),%rdi
call   10d0 <out@plt>
jmp    13de <outphdr64+0x21e>
mov    -0x20(%rbp),%rax
imul   $0x28,-0x38(%rbp),%rcx
add    %rcx,%rax
mov    0x8(%rax),%rax
mov    -0x20(%rbp),%rcx
imul   $0x28,-0x38(%rbp),%rdx
add    %rdx,%rcx
cmp    (%rcx),%rax
jge    13aa <outphdr64+0x1ea>
mov    -0x20(%rbp),%rax
imul   $0x28,-0x38(%rbp),%rcx
add    %rcx,%rax
mov    0x8(%rax),%rdi
call   1060 <strhex@plt>
mov    %rax,%rdi
call   10d0 <out@plt>
jmp    13d9 <outphdr64+0x219>
mov    -0x30(%rbp),%rsi
mov    -0x20(%rbp),%rax
imul   $0x28,-0x38(%rbp),%rcx
add    %rcx,%rax
mov    0x8(%rax),%rdx
mov    -0x20(%rbp),%rax
imul   $0x28,-0x38(%rbp),%rcx
add    %rcx,%rax
sub    (%rax),%rdx
lea    0xc36(%rip),%rdi
call   1080 <outf@plt>
jmp    13de <outphdr64+0x21e>
jmp    13e3 <outphdr64+0x223>
mov    -0x20(%rbp),%rax
imul   $0x28,-0x38(%rbp),%rcx
add    %rcx,%rax
mov    0x10(%rax),%edi
mov    -0x14(%rbp),%esi
call   10a0 <getentsizestr@plt>
mov    %rax,%rdi
call   10d0 <out@plt>
mov    $0x0,%al
call   1070 <endblock@plt>
mov    -0x38(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x38(%rbp)
jmp    11ff <outphdr64+0x3f>
mov    $0x0,%al
call   1070 <endblock@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<outphdr64>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rsi,%rbp
mov    %rdi,%rbx
mov    $0x1,%edi
call   10b0 <beginblock@plt>
cmp    $0x28,%rbp
jae    11f6 <outphdr64+0x36>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1070 <endblock@plt>
movabs $0xcccccccccccccccd,%rcx
cc cc cc
mov    %rbp,%rax
mul    %rcx
mov    %rdx,%r14
shr    $0x5,%r14
add    $0x24,%rbx
lea    0xde8(%rip),%r15
lea    0xde5(%rip),%r12
jmp    125b <outphdr64+0x9b>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %r13,%rdi
call   10d0 <out@plt>
mov    -0x14(%rbx),%edi
mov    %ebp,%esi
call   10a0 <getentsizestr@plt>
mov    %rax,%rdi
call   10d0 <out@plt>
xor    %eax,%eax
call   1070 <endblock@plt>
add    $0x28,%rbx
add    $0xffffffffffffffff,%r14
je     11e1 <outphdr64+0x21>
xor    %edi,%edi
call   10b0 <beginblock@plt>
mov    (%rbx),%edi
mov    %r15,%rsi
call   1040 <strdefint@plt>
mov    %rax,%rdi
call   10d0 <out@plt>
mov    -0x4(%rbx),%edi
mov    %r12,%rsi
call   1050 <strdefflags@plt>
mov    %rax,%rdi
call   10d0 <out@plt>
mov    -0x8(%rbx),%edi
call   1030 <getindexfromoffset@plt>
mov    %eax,%ebp
mov    -0x8(%rbx),%edi
mov    %eax,%esi
call   10c0 <getoffsetstr@plt>
mov    %rax,%rdi
call   10d0 <out@plt>
mov    -0xc(%rbx),%edi
call   10e0 <straddress@plt>
mov    %rax,%rdi
call   10d0 <out@plt>
mov    -0x10(%rbx),%edi
call   10e0 <straddress@plt>
mov    %rax,%rdi
call   10d0 <out@plt>
mov    -0x24(%rbx),%rdi
test   %rdi,%rdi
je     1310 <outphdr64+0x150>
mov    %ebp,%esi
call   1090 <getsizestr@plt>
mov    %rax,%r13
mov    %rax,%rdi
call   10d0 <out@plt>
mov    -0x1c(%rbx),%rdi
mov    %rdi,%rdx
sub    -0x24(%rbx),%rdx
je     1230 <outphdr64+0x70>
jl     1320 <outphdr64+0x160>
lea    0xd12(%rip),%rdi
mov    %r13,%rsi
call   1080 <outf@plt>
jmp    1238 <outphdr64+0x78>
cs nopw 0x0(%rax,%rax,1)
nop
lea    0xcf1(%rip),%rdi
call   10d0 <out@plt>
mov    -0x1c(%rbx),%rdi
call   1060 <strhex@plt>
mov    %rax,%rdi
jmp    1233 <outphdr64+0x73>

LLVM IR (-O0):
%struct.TYPE_2__ = type { i64, i64, i32, i32, i32, i32, i32, i32 }
@.str = [4 x i8] c"PT_\00"
@.str.1 = [4 x i8] c"PF_\00"
@.str.2 = [2 x i8] c"0\00"
@.str.3 = [9 x i8] c"%s + %ld\00"
define void @outphdr64(i8* %0, i64 %1, i32 %2) {
%4 = alloca i8*
%5 = alloca i64
%6 = alloca i32
%7 = alloca %struct.TYPE_2__*
%8 = alloca i64
%9 = alloca i8*
%10 = alloca i64
store i8* %0, i8** %4
store i64 %1, i64* %5
store i32 %2, i32* %6
%11 = load i8*, i8** %4
%12 = bitcast i8* %11 to %struct.TYPE_2__*
store %struct.TYPE_2__* %12, %struct.TYPE_2__** %7
%13 = load i64, i64* %5
%14 = udiv i64 %13, 40
store i64 %14, i64* %8
%15 = call i32 @beginblock(i32 1)
store i64 0, i64* %10
br label %16
16: ; preds = %149, %3
%17 = load i64, i64* %10
%18 = load i64, i64* %8
%19 = icmp slt i64 %17, %18
br i1 %19, label %20, label %152
20: ; preds = %16
%21 = call i32 @beginblock(i32 0)
%22 = load %struct.TYPE_2__*, %struct.TYPE_2__** %7
%23 = load i64, i64* %10
%24 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %22, i64 %23
%25 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %24, i32 0, i32 7
%26 = load i32, i32* %25
%27 = call i8* @strdefint(i32 %26, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%28 = call i32 @out(i8* %27)
%29 = load %struct.TYPE_2__*, %struct.TYPE_2__** %7
%30 = load i64, i64* %10
%31 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %29, i64 %30
%32 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %31, i32 0, i32 6
%33 = load i32, i32* %32
%34 = call i8* @strdefflags(i32 %33, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%35 = call i32 @out(i8* %34)
%36 = load %struct.TYPE_2__*, %struct.TYPE_2__** %7
%37 = load i64, i64* %10
%38 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %36, i64 %37
%39 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %38, i32 0, i32 5
%40 = load i32, i32* %39
%41 = call i32 @getindexfromoffset(i32 %40)
store i32 %41, i32* %6
%42 = load %struct.TYPE_2__*, %struct.TYPE_2__** %7
%43 = load i64, i64* %10
%44 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %42, i64 %43
%45 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %44, i32 0, i32 5
%46 = load i32, i32* %45
%47 = load i32, i32* %6
%48 = call i8* @getoffsetstr(i32 %46, i32 %47)
%49 = call i32 @out(i8* %48)
%50 = load %struct.TYPE_2__*, %struct.TYPE_2__** %7
%51 = load i64, i64* %10
%52 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %50, i64 %51
%53 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %52, i32 0, i32 4
%54 = load i32, i32* %53
%55 = call i8* @straddress(i32 %54)
%56 = call i32 @out(i8* %55)
%57 = load %struct.TYPE_2__*, %struct.TYPE_2__** %7
%58 = load i64, i64* %10
%59 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %57, i64 %58
%60 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %59, i32 0, i32 3
%61 = load i32, i32* %60
%62 = call i8* @straddress(i32 %61)
%63 = call i32 @out(i8* %62)
%64 = load %struct.TYPE_2__*, %struct.TYPE_2__** %7
%65 = load i64, i64* %10
%66 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %64, i64 %65
%67 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %66, i32 0, i32 0
%68 = load i64, i64* %67
%69 = icmp eq i64 %68, 0
br i1 %69, label %70, label %79
70: ; preds = %20
%71 = call i32 @out(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%72 = load %struct.TYPE_2__*, %struct.TYPE_2__** %7
%73 = load i64, i64* %10
%74 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %72, i64 %73
%75 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %74, i32 0, i32 1
%76 = load i64, i64* %75
%77 = call i8* @strhex(i64 %76)
%78 = call i32 @out(i8* %77)
br label %139
79: ; preds = %20
%80 = load %struct.TYPE_2__*, %struct.TYPE_2__** %7
%81 = load i64, i64* %10
%82 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %80, i64 %81
%83 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %82, i32 0, i32 0
%84 = load i64, i64* %83
%85 = load i32, i32* %6
%86 = call i8* @getsizestr(i64 %84, i32 %85)
store i8* %86, i8** %9
%87 = load i8*, i8** %9
%88 = call i32 @out(i8* %87)
%89 = load %struct.TYPE_2__*, %struct.TYPE_2__** %7
%90 = load i64, i64* %10
%91 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %89, i64 %90
%92 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %91, i32 0, i32 1
%93 = load i64, i64* %92
%94 = load %struct.TYPE_2__*, %struct.TYPE_2__** %7
%95 = load i64, i64* %10
%96 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %94, i64 %95
%97 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %96, i32 0, i32 0
%98 = load i64, i64* %97
%99 = icmp eq i64 %93, %98
br i1 %99, label %100, label %103
100: ; preds = %79
%101 = load i8*, i8** %9
%102 = call i32 @out(i8* %101)
br label %138
103: ; preds = %79
%104 = load %struct.TYPE_2__*, %struct.TYPE_2__** %7
%105 = load i64, i64* %10
%106 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %104, i64 %105
%107 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %106, i32 0, i32 1
%108 = load i64, i64* %107
%109 = load %struct.TYPE_2__*, %struct.TYPE_2__** %7
%110 = load i64, i64* %10
%111 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %109, i64 %110
%112 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %111, i32 0, i32 0
%113 = load i64, i64* %112
%114 = icmp slt i64 %108, %113
br i1 %114, label %115, label %123
115: ; preds = %103
%116 = load %struct.TYPE_2__*, %struct.TYPE_2__** %7
%117 = load i64, i64* %10
%118 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %116, i64 %117
%119 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %118, i32 0, i32 1
%120 = load i64, i64* %119
%121 = call i8* @strhex(i64 %120)
%122 = call i32 @out(i8* %121)
br label %137
123: ; preds = %103
%124 = load i8*, i8** %9
%125 = load %struct.TYPE_2__*, %struct.TYPE_2__** %7
%126 = load i64, i64* %10
%127 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %125, i64 %126
%128 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %127, i32 0, i32 1
%129 = load i64, i64* %128
%130 = load %struct.TYPE_2__*, %struct.TYPE_2__** %7
%131 = load i64, i64* %10
%132 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %130, i64 %131
%133 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %132, i32 0, i32 0
%134 = load i64, i64* %133
%135 = sub nsw i64 %129, %134
%136 = call i32 @outf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i8* %124, i64 %135)
br label %137
137: ; preds = %123, %115
br label %138
138: ; preds = %137, %100
br label %139
139: ; preds = %138, %70
%140 = load %struct.TYPE_2__*, %struct.TYPE_2__** %7
%141 = load i64, i64* %10
%142 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %140, i64 %141
%143 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %142, i32 0, i32 2
%144 = load i32, i32* %143
%145 = load i32, i32* %6
%146 = call i8* @getentsizestr(i32 %144, i32 %145)
%147 = call i32 @out(i8* %146)
%148 = call i32 (...) @endblock()
br label %149
149: ; preds = %139
%150 = load i64, i64* %10
%151 = add nsw i64 %150, 1
store i64 %151, i64* %10
br label %16
152: ; preds = %16
%153 = call i32 (...) @endblock()
ret void
}

LLVM IR (-O2):
%struct.TYPE_2__ = type { i64, i64, i32, i32, i32, i32, i32, i32 }
@.str = [4 x i8] c"PT_\00"
@.str.1 = [4 x i8] c"PF_\00"
@.str.2 = [2 x i8] c"0\00"
@.str.3 = [9 x i8] c"%s + %ld\00"
define void @outphdr64(i8* nocapture %0, i64 %1, i32 %2) {
%4 = bitcast i8* %0 to %struct.TYPE_2__*
%5 = tail call i32 @beginblock(i32 1)
%6 = icmp ult i64 %1, 40
br i1 %6, label %68, label %7
7: ; preds = %3
%8 = udiv i64 %1, 40
br label %9
9: ; preds = %7, %60
%10 = phi i64 [ %66, %60 ], [ 0, %7 ]
%11 = tail call i32 @beginblock(i32 0)
%12 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %4, i64 %10, i32 7
%13 = load i32, i32* %12
%14 = tail call i8* @strdefint(i32 %13, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%15 = tail call i32 @out(i8* %14)
%16 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %4, i64 %10, i32 6
%17 = load i32, i32* %16
%18 = tail call i8* @strdefflags(i32 %17, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%19 = tail call i32 @out(i8* %18)
%20 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %4, i64 %10, i32 5
%21 = load i32, i32* %20
%22 = tail call i32 @getindexfromoffset(i32 %21)
%23 = load i32, i32* %20
%24 = tail call i8* @getoffsetstr(i32 %23, i32 %22)
%25 = tail call i32 @out(i8* %24)
%26 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %4, i64 %10, i32 4
%27 = load i32, i32* %26
%28 = tail call i8* @straddress(i32 %27)
%29 = tail call i32 @out(i8* %28)
%30 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %4, i64 %10, i32 3
%31 = load i32, i32* %30
%32 = tail call i8* @straddress(i32 %31)
%33 = tail call i32 @out(i8* %32)
%34 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %4, i64 %10, i32 0
%35 = load i64, i64* %34
%36 = icmp eq i64 %35, 0
br i1 %36, label %37, label %43
37: ; preds = %9
%38 = tail call i32 @out(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%39 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %4, i64 %10, i32 1
%40 = load i64, i64* %39
%41 = tail call i8* @strhex(i64 %40)
%42 = tail call i32 @out(i8* %41)
br label %60
43: ; preds = %9
%44 = tail call i8* @getsizestr(i64 %35, i32 %22)
%45 = tail call i32 @out(i8* %44)
%46 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %4, i64 %10, i32 1
%47 = load i64, i64* %46
%48 = load i64, i64* %34
%49 = icmp eq i64 %47, %48
br i1 %49, label %50, label %52
50: ; preds = %43
%51 = tail call i32 @out(i8* %44)
br label %60
52: ; preds = %43
%53 = icmp slt i64 %47, %48
br i1 %53, label %54, label %57
54: ; preds = %52
%55 = tail call i8* @strhex(i64 %47)
%56 = tail call i32 @out(i8* %55)
br label %60
57: ; preds = %52
%58 = sub nsw i64 %47, %48
%59 = tail call i32 @outf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i8* %44, i64 %58)
br label %60
60: ; preds = %50, %57, %54, %37
%61 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %4, i64 %10, i32 2
%62 = load i32, i32* %61
%63 = tail call i8* @getentsizestr(i32 %62, i32 %22)
%64 = tail call i32 @out(i8* %63)
%65 = tail call i32 (...) @endblock()
%66 = add nuw nsw i64 %10, 1
%67 = icmp eq i64 %66, %8
br i1 %67, label %68, label %9
68: ; preds = %60, %3
%69 = tail call i32 (...) @endblock()
ret void
}