#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_flags;
  int /*<<< orphan*/ p_paddr;
  int /*<<< orphan*/ p_vaddr;
  int /*<<< orphan*/ p_offset;
  int /*<<< orphan*/ p_type;
};
typedef TYPE_1__ Elf32_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 outphdr32(void const *ptr, long size, int ndx) {
  Elf32_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_")));
    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(strdefflags(phdrs[i].p_flags, "PF_")));
    out(getentsizestr(phdrs[i].p_align, ndx));
    endblock();
  }
  endblock();
}


x86 assembly (clang, -O0):
<outphdr32>:
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 <outphdr32+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
call   1030 <getindexfromoffset@plt>
mov    %eax,-0x14(%rbp)
mov    -0x20(%rbp),%rax
imul   $0x28,-0x38(%rbp),%rcx
add    %rcx,%rax
mov    0x20(%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    0x1c(%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    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
cmpq   $0x0,(%rax)
jne    12e9 <outphdr32+0x129>
lea    0xd42(%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    13c0 <outphdr32+0x200>
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    1340 <outphdr32+0x180>
mov    -0x30(%rbp),%rdi
call   10d0 <out@plt>
jmp    13bb <outphdr32+0x1fb>
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    1387 <outphdr32+0x1c7>
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    13b6 <outphdr32+0x1f6>
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    0xc55(%rip),%rdi
call   1080 <outf@plt>
jmp    13bb <outphdr32+0x1fb>
jmp    13c0 <outphdr32+0x200>
mov    -0x20(%rbp),%rax
imul   $0x28,-0x38(%rbp),%rcx
add    %rcx,%rax
mov    0x14(%rax),%edi
lea    0xc39(%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    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 <outphdr32+0x3f>
mov    $0x0,%al
call   1070 <endblock@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<outphdr32>:
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 <outphdr32+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    0xdf0(%rip),%r13
jmp    1272 <outphdr32+0xb2>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %r12,%rdi
call   10d0 <out@plt>
mov    -0x10(%rbx),%edi
mov    %r13,%rsi
call   1050 <strdefflags@plt>
mov    %rax,%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 <outphdr32+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
call   1030 <getindexfromoffset@plt>
mov    %eax,%ebp
mov    -0x4(%rbx),%edi
mov    %eax,%esi
call   10c0 <getoffsetstr@plt>
mov    %rax,%rdi
call   10d0 <out@plt>
mov    -0x8(%rbx),%edi
call   10e0 <straddress@plt>
mov    %rax,%rdi
call   10d0 <out@plt>
mov    -0xc(%rbx),%edi
call   10e0 <straddress@plt>
mov    %rax,%rdi
call   10d0 <out@plt>
mov    -0x24(%rbx),%rdi
test   %rdi,%rdi
je     1310 <outphdr32+0x150>
mov    %ebp,%esi
call   1090 <getsizestr@plt>
mov    %rax,%r12
mov    %rax,%rdi
call   10d0 <out@plt>
mov    -0x1c(%rbx),%rdi
mov    %rdi,%rdx
sub    -0x24(%rbx),%rdx
je     1230 <outphdr32+0x70>
jl     1320 <outphdr32+0x160>
lea    0xd0a(%rip),%rdi
mov    %r12,%rsi
call   1080 <outf@plt>
jmp    1238 <outphdr32+0x78>
nopl   0x0(%rax)
lea    0xced(%rip),%rdi
call   10d0 <out@plt>
mov    -0x1c(%rbx),%rdi
call   1060 <strhex@plt>
mov    %rax,%rdi
jmp    1233 <outphdr32+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 = [2 x i8] c"0\00"
@.str.2 = [9 x i8] c"%s + %ld\00"
@.str.3 = [4 x i8] c"PF_\00"
define void @outphdr32(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 i32 @getindexfromoffset(i32 %33)
store i32 %34, i32* %6
%35 = load %struct.TYPE_2__*, %struct.TYPE_2__** %7
%36 = load i64, i64* %10
%37 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %35, i64 %36
%38 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %37, i32 0, i32 6
%39 = load i32, i32* %38
%40 = load i32, i32* %6
%41 = call i8* @getoffsetstr(i32 %39, i32 %40)
%42 = call i32 @out(i8* %41)
%43 = load %struct.TYPE_2__*, %struct.TYPE_2__** %7
%44 = load i64, i64* %10
%45 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %43, i64 %44
%46 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %45, i32 0, i32 5
%47 = load i32, i32* %46
%48 = call i8* @straddress(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 0
%61 = load i64, i64* %60
%62 = icmp eq i64 %61, 0
br i1 %62, label %63, label %72
63: ; preds = %20
%64 = call i32 @out(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%65 = load %struct.TYPE_2__*, %struct.TYPE_2__** %7
%66 = load i64, i64* %10
%67 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %65, i64 %66
%68 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %67, i32 0, i32 1
%69 = load i64, i64* %68
%70 = call i8* @strhex(i64 %69)
%71 = call i32 @out(i8* %70)
br label %132
72: ; preds = %20
%73 = load %struct.TYPE_2__*, %struct.TYPE_2__** %7
%74 = load i64, i64* %10
%75 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %73, i64 %74
%76 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %75, i32 0, i32 0
%77 = load i64, i64* %76
%78 = load i32, i32* %6
%79 = call i8* @getsizestr(i64 %77, i32 %78)
store i8* %79, i8** %9
%80 = load i8*, i8** %9
%81 = call i32 @out(i8* %80)
%82 = load %struct.TYPE_2__*, %struct.TYPE_2__** %7
%83 = load i64, i64* %10
%84 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %82, i64 %83
%85 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %84, i32 0, i32 1
%86 = load i64, i64* %85
%87 = load %struct.TYPE_2__*, %struct.TYPE_2__** %7
%88 = load i64, i64* %10
%89 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %87, i64 %88
%90 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %89, i32 0, i32 0
%91 = load i64, i64* %90
%92 = icmp eq i64 %86, %91
br i1 %92, label %93, label %96
93: ; preds = %72
%94 = load i8*, i8** %9
%95 = call i32 @out(i8* %94)
br label %131
96: ; preds = %72
%97 = load %struct.TYPE_2__*, %struct.TYPE_2__** %7
%98 = load i64, i64* %10
%99 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %97, i64 %98
%100 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %99, i32 0, i32 1
%101 = load i64, i64* %100
%102 = load %struct.TYPE_2__*, %struct.TYPE_2__** %7
%103 = load i64, i64* %10
%104 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %102, i64 %103
%105 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %104, i32 0, i32 0
%106 = load i64, i64* %105
%107 = icmp slt i64 %101, %106
br i1 %107, label %108, label %116
108: ; preds = %96
%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 1
%113 = load i64, i64* %112
%114 = call i8* @strhex(i64 %113)
%115 = call i32 @out(i8* %114)
br label %130
116: ; preds = %96
%117 = load i8*, i8** %9
%118 = load %struct.TYPE_2__*, %struct.TYPE_2__** %7
%119 = load i64, i64* %10
%120 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %118, i64 %119
%121 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %120, i32 0, i32 1
%122 = load i64, i64* %121
%123 = load %struct.TYPE_2__*, %struct.TYPE_2__** %7
%124 = load i64, i64* %10
%125 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %123, i64 %124
%126 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %125, i32 0, i32 0
%127 = load i64, i64* %126
%128 = sub nsw i64 %122, %127
%129 = call i32 @outf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i8* %117, i64 %128)
br label %130
130: ; preds = %116, %108
br label %131
131: ; preds = %130, %93
br label %132
132: ; preds = %131, %63
%133 = load %struct.TYPE_2__*, %struct.TYPE_2__** %7
%134 = load i64, i64* %10
%135 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %133, i64 %134
%136 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %135, i32 0, i32 3
%137 = load i32, i32* %136
%138 = call i8* @strdefflags(i32 %137, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%139 = call i32 @out(i8* %138)
%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 = %132
%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 = [2 x i8] c"0\00"
@.str.2 = [9 x i8] c"%s + %ld\00"
@.str.3 = [4 x i8] c"PF_\00"
define void @outphdr32(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, %56
%10 = phi i64 [ %66, %56 ], [ 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 i32 @getindexfromoffset(i32 %17)
%19 = load i32, i32* %16
%20 = tail call i8* @getoffsetstr(i32 %19, i32 %18)
%21 = tail call i32 @out(i8* %20)
%22 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %4, i64 %10, i32 5
%23 = load i32, i32* %22
%24 = tail call i8* @straddress(i32 %23)
%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 0
%31 = load i64, i64* %30
%32 = icmp eq i64 %31, 0
br i1 %32, label %33, label %39
33: ; preds = %9
%34 = tail call i32 @out(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%35 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %4, i64 %10, i32 1
%36 = load i64, i64* %35
%37 = tail call i8* @strhex(i64 %36)
%38 = tail call i32 @out(i8* %37)
br label %56
39: ; preds = %9
%40 = tail call i8* @getsizestr(i64 %31, i32 %18)
%41 = tail call i32 @out(i8* %40)
%42 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %4, i64 %10, i32 1
%43 = load i64, i64* %42
%44 = load i64, i64* %30
%45 = icmp eq i64 %43, %44
br i1 %45, label %46, label %48
46: ; preds = %39
%47 = tail call i32 @out(i8* %40)
br label %56
48: ; preds = %39
%49 = icmp slt i64 %43, %44
br i1 %49, label %50, label %53
50: ; preds = %48
%51 = tail call i8* @strhex(i64 %43)
%52 = tail call i32 @out(i8* %51)
br label %56
53: ; preds = %48
%54 = sub nsw i64 %43, %44
%55 = tail call i32 @outf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i8* %40, i64 %54)
br label %56
56: ; preds = %46, %53, %50, %33
%57 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %4, i64 %10, i32 3
%58 = load i32, i32* %57
%59 = tail call i8* @strdefflags(i32 %58, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%60 = tail call i32 @out(i8* %59)
%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 %18)
%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 = %56, %3
%69 = tail call i32 (...) @endblock()
ret void
}