#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__ {
  size_t st_name;
  scalar_t__ st_info;
  scalar_t__ st_other;
  int /*<<< orphan*/ st_shndx;
  int /*<<< orphan*/ st_size;
  int /*<<< orphan*/ st_value;
};
typedef size_t Elf64_Word;
typedef TYPE_1__ Elf64_Sym;

/* Variables and functions */
scalar_t__ ELF64_ST_BIND(scalar_t__);
scalar_t__ ELF64_ST_TYPE(scalar_t__);
int /*<<< orphan*/ beginblock(int);
int /*<<< orphan*/ deallocate(char *);
int /*<<< orphan*/ endblock();
int /*<<< orphan*/ getindexfromsection(int /*<<< orphan*/);
char *getpiecestrtable(int, long *);
char *getsectionid(int /*<<< orphan*/);
char *getsizestr(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ linebreak();
int /*<<< orphan*/ out(char *);
int /*<<< orphan*/ outcomment(char const *);
int /*<<< orphan*/ outf(char *, char *, char *);
char *straddress(int /*<<< orphan*/);
char *strallocate(char *);
char *strdec(int);
char *strdefint(scalar_t__, char *);
void outsym64(void const *ptr, long size, int ndx) {
  Elf64_Sym const *syms = ptr;
  long count = size / sizeof *syms;
  char const *strtab;
  char *bind;
  long i;
  strtab = getpiecestrtable(ndx, &size);
  beginblock(1);
  for (i = 0; i < count; ++i) {
    if (syms[i].st_name < (Elf64_Word)size && strtab[syms[i].st_name]) {
      linebreak();
      outcomment(strtab + syms[i].st_name);
    }
    beginblock(0);
    (out(strdec(syms[i].st_name)));
    if (i == 0 && syms[i].st_info == 0 && syms[i].st_other == 0) {
      out("0");
      out("0");
    } else {
      bind = strallocate(strdefint(ELF64_ST_BIND(syms[i].st_info), "STB_"));
      outf("ELF64_ST_INFO(%s, %s)", bind,
           strdefint(ELF64_ST_TYPE(syms[i].st_info), "STT_"));
      deallocate(bind);
      (out(strdefint(syms[i].st_other, "STV_")));
    }
    out(getsectionid(syms[i].st_shndx));
    (out(straddress(syms[i].st_value)));
    out(getsizestr(syms[i].st_size, getindexfromsection(syms[i].st_shndx)));
    endblock();
  }
  endblock();
}


x86 assembly (clang, -O0):
<outsym64>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%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    -0x14(%rbp),%edi
lea    -0x10(%rbp),%rsi
call   10f0 <getpiecestrtable@plt>
mov    %rax,-0x30(%rbp)
mov    $0x1,%edi
call   10d0 <beginblock@plt>
movq   $0x0,-0x40(%rbp)
mov    -0x40(%rbp),%rax
cmp    -0x28(%rbp),%rax
jge    1464 <outsym64+0x254>
mov    -0x20(%rbp),%rax
imul   $0x28,-0x40(%rbp),%rcx
add    %rcx,%rax
mov    (%rax),%rax
cmp    -0x10(%rbp),%rax
jae    12c5 <outsym64+0xb5>
mov    -0x30(%rbp),%rax
mov    -0x20(%rbp),%rcx
imul   $0x28,-0x40(%rbp),%rdx
add    %rdx,%rcx
mov    (%rcx),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x0,%eax
je     12c5 <outsym64+0xb5>
mov    $0x0,%al
call   1130 <linebreak@plt>
mov    -0x30(%rbp),%rdi
mov    -0x20(%rbp),%rax
imul   $0x28,-0x40(%rbp),%rcx
add    %rcx,%rax
add    (%rax),%rdi
call   10e0 <outcomment@plt>
xor    %edi,%edi
call   10d0 <beginblock@plt>
mov    -0x20(%rbp),%rax
imul   $0x28,-0x40(%rbp),%rcx
add    %rcx,%rax
mov    (%rax),%rax
mov    %eax,%edi
call   10a0 <strdec@plt>
mov    %rax,%rdi
call   1100 <out@plt>
cmpq   $0x0,-0x40(%rbp)
jne    1340 <outsym64+0x130>
mov    -0x20(%rbp),%rax
imul   $0x28,-0x40(%rbp),%rcx
add    %rcx,%rax
cmpq   $0x0,0x8(%rax)
jne    1340 <outsym64+0x130>
mov    -0x20(%rbp),%rax
imul   $0x28,-0x40(%rbp),%rcx
add    %rcx,%rax
cmpq   $0x0,0x10(%rax)
jne    1340 <outsym64+0x130>
lea    0xcd6(%rip),%rdi
call   1100 <out@plt>
lea    0xcca(%rip),%rdi
call   1100 <out@plt>
jmp    13dc <outsym64+0x1cc>
mov    -0x20(%rbp),%rax
imul   $0x28,-0x40(%rbp),%rcx
add    %rcx,%rax
mov    0x8(%rax),%rdi
call   10c0 <ELF64_ST_BIND@plt>
mov    %rax,%rdi
lea    0xca3(%rip),%rsi
call   1040 <strdefint@plt>
mov    %rax,%rdi
call   1120 <strallocate@plt>
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rax
mov    %rax,-0x48(%rbp)
mov    -0x20(%rbp),%rax
imul   $0x28,-0x40(%rbp),%rcx
add    %rcx,%rax
mov    0x8(%rax),%rdi
call   1090 <ELF64_ST_TYPE@plt>
mov    %rax,%rdi
lea    0xc86(%rip),%rsi
call   1040 <strdefint@plt>
mov    -0x48(%rbp),%rsi
mov    %rax,%rdx
lea    0xc5d(%rip),%rdi
call   1060 <outf@plt>
mov    -0x38(%rbp),%rdi
call   1080 <deallocate@plt>
mov    -0x20(%rbp),%rax
imul   $0x28,-0x40(%rbp),%rcx
add    %rcx,%rax
mov    0x10(%rax),%rdi
lea    0xc53(%rip),%rsi
call   1040 <strdefint@plt>
mov    %rax,%rdi
call   1100 <out@plt>
mov    -0x20(%rbp),%rax
imul   $0x28,-0x40(%rbp),%rcx
add    %rcx,%rax
mov    0x18(%rax),%edi
call   10b0 <getsectionid@plt>
mov    %rax,%rdi
call   1100 <out@plt>
mov    -0x20(%rbp),%rax
imul   $0x28,-0x40(%rbp),%rcx
add    %rcx,%rax
mov    0x20(%rax),%edi
call   1110 <straddress@plt>
mov    %rax,%rdi
call   1100 <out@plt>
mov    -0x20(%rbp),%rax
imul   $0x28,-0x40(%rbp),%rcx
add    %rcx,%rax
mov    0x1c(%rax),%eax
mov    %eax,-0x4c(%rbp)
mov    -0x20(%rbp),%rax
imul   $0x28,-0x40(%rbp),%rcx
add    %rcx,%rax
mov    0x18(%rax),%edi
call   1030 <getindexfromsection@plt>
mov    -0x4c(%rbp),%edi
mov    %eax,%esi
call   1070 <getsizestr@plt>
mov    %rax,%rdi
call   1100 <out@plt>
mov    $0x0,%al
call   1050 <endblock@plt>
mov    -0x40(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x40(%rbp)
jmp    125f <outsym64+0x4f>
mov    $0x0,%al
call   1050 <endblock@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<outsym64>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %rdi,%r12
mov    %rsi,(%rsp)
mov    %rsp,%rsi
mov    %edx,%edi
call   10f0 <getpiecestrtable@plt>
mov    %rax,%r15
mov    $0x1,%edi
call   10d0 <beginblock@plt>
cmp    $0x28,%rbx
jae    1258 <outsym64+0x48>
xor    %eax,%eax
call   1050 <endblock@plt>
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
movabs $0xcccccccccccccccd,%rcx
cc cc cc
mov    %rbx,%rax
mul    %rcx
mov    %rdx,%rbx
shr    $0x5,%rbx
mov    %r12,%r14
xor    %r13d,%r13d
cs nopw 0x0(%rax,%rax,1)
nop
mov    (%r14),%rax
cmp    (%rsp),%rax
jae    12a2 <outsym64+0x92>
cmpb   $0x0,(%r15,%rax,1)
je     12a2 <outsym64+0x92>
xor    %eax,%eax
call   1130 <linebreak@plt>
mov    (%r14),%rdi
add    %r15,%rdi
call   10e0 <outcomment@plt>
xor    %edi,%edi
call   10d0 <beginblock@plt>
mov    (%r14),%edi
call   10a0 <strdec@plt>
mov    %rax,%rdi
call   1100 <out@plt>
test   %r13,%r13
jne    12e0 <outsym64+0xd0>
cmpq   $0x0,0x8(%r12)
jne    12e0 <outsym64+0xd0>
cmpq   $0x0,0x10(%r12)
je     13aa <outsym64+0x19a>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    0x8(%r14),%rdi
call   10c0 <ELF64_ST_BIND@plt>
mov    %rax,%rdi
lea    0xd0f(%rip),%rsi
call   1040 <strdefint@plt>
mov    %rax,%rdi
call   1120 <strallocate@plt>
mov    %rax,%rbp
mov    0x8(%r14),%rdi
call   1090 <ELF64_ST_TYPE@plt>
mov    %rax,%rdi
lea    0xd07(%rip),%rsi
call   1040 <strdefint@plt>
lea    0xce5(%rip),%rdi
mov    %rbp,%rsi
mov    %rax,%rdx
call   1060 <outf@plt>
mov    %rbp,%rdi
call   1080 <deallocate@plt>
mov    0x10(%r14),%rdi
lea    0xce2(%rip),%rsi
call   1040 <strdefint@plt>
mov    %rax,%rdi
call   1100 <out@plt>
mov    0x18(%r14),%edi
call   10b0 <getsectionid@plt>
mov    %rax,%rdi
call   1100 <out@plt>
mov    0x20(%r14),%edi
call   1110 <straddress@plt>
mov    %rax,%rdi
call   1100 <out@plt>
mov    0x18(%r14),%edi
mov    0x1c(%r14),%ebp
call   1030 <getindexfromsection@plt>
mov    %ebp,%edi
mov    %eax,%esi
call   1070 <getsizestr@plt>
mov    %rax,%rdi
call   1100 <out@plt>
xor    %eax,%eax
call   1050 <endblock@plt>
add    $0x1,%r13
add    $0x28,%r14
cmp    %r13,%rbx
jne    1280 <outsym64+0x70>
jmp    1242 <outsym64+0x32>
lea    0xc4f(%rip),%rbp
mov    %rbp,%rdi
call   1100 <out@plt>
mov    %rbp,%rdi
jmp    1348 <outsym64+0x138>

LLVM IR (-O0):
%struct.TYPE_2__ = type { i64, i64, i64, i32, i32, i32 }
@.str = [2 x i8] c"0\00"
@.str.1 = [5 x i8] c"STB_\00"
@.str.2 = [22 x i8] c"ELF64_ST_INFO(%s, %s)\00"
@.str.3 = [5 x i8] c"STT_\00"
@.str.4 = [5 x i8] c"STV_\00"
define void @outsym64(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 i8*
%11 = alloca i64
store i8* %0, i8** %4
store i64 %1, i64* %5
store i32 %2, i32* %6
%12 = load i8*, i8** %4
%13 = bitcast i8* %12 to %struct.TYPE_2__*
store %struct.TYPE_2__* %13, %struct.TYPE_2__** %7
%14 = load i64, i64* %5
%15 = udiv i64 %14, 40
store i64 %15, i64* %8
%16 = load i32, i32* %6
%17 = call i8* @getpiecestrtable(i32 %16, i64* %5)
store i8* %17, i8** %9
%18 = call i32 @beginblock(i32 1)
store i64 0, i64* %11
br label %19
19: ; preds = %137, %3
%20 = load i64, i64* %11
%21 = load i64, i64* %8
%22 = icmp slt i64 %20, %21
br i1 %22, label %23, label %140
23: ; preds = %19
%24 = load %struct.TYPE_2__*, %struct.TYPE_2__** %7
%25 = load i64, i64* %11
%26 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %24, i64 %25
%27 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %26, i32 0, i32 0
%28 = load i64, i64* %27
%29 = load i64, i64* %5
%30 = icmp ult i64 %28, %29
br i1 %30, label %31, label %52
31: ; preds = %23
%32 = load i8*, i8** %9
%33 = load %struct.TYPE_2__*, %struct.TYPE_2__** %7
%34 = load i64, i64* %11
%35 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %33, i64 %34
%36 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %35, i32 0, i32 0
%37 = load i64, i64* %36
%38 = getelementptr inbounds i8, i8* %32, i64 %37
%39 = load i8, i8* %38
%40 = sext i8 %39 to i32
%41 = icmp ne i32 %40, 0
br i1 %41, label %42, label %52
42: ; preds = %31
%43 = call i32 (...) @linebreak()
%44 = load i8*, i8** %9
%45 = load %struct.TYPE_2__*, %struct.TYPE_2__** %7
%46 = load i64, i64* %11
%47 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %45, i64 %46
%48 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %47, i32 0, i32 0
%49 = load i64, i64* %48
%50 = getelementptr inbounds i8, i8* %44, i64 %49
%51 = call i32 @outcomment(i8* %50)
br label %52
52: ; preds = %42, %31, %23
%53 = call i32 @beginblock(i32 0)
%54 = load %struct.TYPE_2__*, %struct.TYPE_2__** %7
%55 = load i64, i64* %11
%56 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %54, i64 %55
%57 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %56, i32 0, i32 0
%58 = load i64, i64* %57
%59 = trunc i64 %58 to i32
%60 = call i8* @strdec(i32 %59)
%61 = call i32 @out(i8* %60)
%62 = load i64, i64* %11
%63 = icmp eq i64 %62, 0
br i1 %63, label %64, label %81
64: ; preds = %52
%65 = load %struct.TYPE_2__*, %struct.TYPE_2__** %7
%66 = load i64, i64* %11
%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 = icmp eq i64 %69, 0
br i1 %70, label %71, label %81
71: ; preds = %64
%72 = load %struct.TYPE_2__*, %struct.TYPE_2__** %7
%73 = load i64, i64* %11
%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 2
%76 = load i64, i64* %75
%77 = icmp eq i64 %76, 0
br i1 %77, label %78, label %81
78: ; preds = %71
%79 = call i32 @out(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%80 = call i32 @out(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
br label %108
81: ; preds = %71, %64, %52
%82 = load %struct.TYPE_2__*, %struct.TYPE_2__** %7
%83 = load i64, i64* %11
%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 = call i64 @ELF64_ST_BIND(i64 %86)
%88 = call i8* @strdefint(i64 %87, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%89 = call i8* @strallocate(i8* %88)
store i8* %89, i8** %10
%90 = load i8*, i8** %10
%91 = load %struct.TYPE_2__*, %struct.TYPE_2__** %7
%92 = load i64, i64* %11
%93 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %91, i64 %92
%94 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %93, i32 0, i32 1
%95 = load i64, i64* %94
%96 = call i64 @ELF64_ST_TYPE(i64 %95)
%97 = call i8* @strdefint(i64 %96, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%98 = call i32 @outf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0), i8* %90, i8* %97)
%99 = load i8*, i8** %10
%100 = call i32 @deallocate(i8* %99)
%101 = load %struct.TYPE_2__*, %struct.TYPE_2__** %7
%102 = load i64, i64* %11
%103 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %101, i64 %102
%104 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %103, i32 0, i32 2
%105 = load i64, i64* %104
%106 = call i8* @strdefint(i64 %105, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%107 = call i32 @out(i8* %106)
br label %108
108: ; preds = %81, %78
%109 = load %struct.TYPE_2__*, %struct.TYPE_2__** %7
%110 = load i64, i64* %11
%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 3
%113 = load i32, i32* %112
%114 = call i8* @getsectionid(i32 %113)
%115 = call i32 @out(i8* %114)
%116 = load %struct.TYPE_2__*, %struct.TYPE_2__** %7
%117 = load i64, i64* %11
%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 5
%120 = load i32, i32* %119
%121 = call i8* @straddress(i32 %120)
%122 = call i32 @out(i8* %121)
%123 = load %struct.TYPE_2__*, %struct.TYPE_2__** %7
%124 = load i64, i64* %11
%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 4
%127 = load i32, i32* %126
%128 = load %struct.TYPE_2__*, %struct.TYPE_2__** %7
%129 = load i64, i64* %11
%130 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %128, i64 %129
%131 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %130, i32 0, i32 3
%132 = load i32, i32* %131
%133 = call i32 @getindexfromsection(i32 %132)
%134 = call i8* @getsizestr(i32 %127, i32 %133)
%135 = call i32 @out(i8* %134)
%136 = call i32 (...) @endblock()
br label %137
137: ; preds = %108
%138 = load i64, i64* %11
%139 = add nsw i64 %138, 1
store i64 %139, i64* %11
br label %19
140: ; preds = %19
%141 = call i32 (...) @endblock()
ret void
}

LLVM IR (-O2):
%struct.TYPE_2__ = type { i64, i64, i64, i32, i32, i32 }
@.str = [2 x i8] c"0\00"
@.str.1 = [5 x i8] c"STB_\00"
@.str.2 = [22 x i8] c"ELF64_ST_INFO(%s, %s)\00"
@.str.3 = [5 x i8] c"STT_\00"
@.str.4 = [5 x i8] c"STV_\00"
define void @outsym64(i8* nocapture %0, i64 %1, i32 %2) {
%4 = alloca i64
store i64 %1, i64* %4
%5 = bitcast i8* %0 to %struct.TYPE_2__*
%6 = call i8* @getpiecestrtable(i32 %2, i64* %4)
%7 = call i32 @beginblock(i32 1)
%8 = icmp ult i64 %1, 40
br i1 %8, label %79, label %9
9: ; preds = %3
%10 = udiv i64 %1, 40
%11 = getelementptr inbounds i8, i8* %0, i64 8
%12 = bitcast i8* %11 to i64*
%13 = getelementptr inbounds i8, i8* %0, i64 16
%14 = bitcast i8* %13 to i64*
br label %15
15: ; preds = %9, %59
%16 = phi i64 [ %77, %59 ], [ 0, %9 ]
%17 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %5, i64 %16, i32 0
%18 = load i64, i64* %17
%19 = load i64, i64* %4
%20 = icmp ult i64 %18, %19
br i1 %20, label %21, label %30
21: ; preds = %15
%22 = getelementptr inbounds i8, i8* %6, i64 %18
%23 = load i8, i8* %22
%24 = icmp eq i8 %23, 0
br i1 %24, label %30, label %25
25: ; preds = %21
%26 = call i32 (...) @linebreak()
%27 = load i64, i64* %17
%28 = getelementptr inbounds i8, i8* %6, i64 %27
%29 = call i32 @outcomment(i8* %28)
br label %30
30: ; preds = %25, %21, %15
%31 = call i32 @beginblock(i32 0)
%32 = load i64, i64* %17
%33 = trunc i64 %32 to i32
%34 = call i8* @strdec(i32 %33)
%35 = call i32 @out(i8* %34)
%36 = icmp eq i64 %16, 0
br i1 %36, label %37, label %45
37: ; preds = %30
%38 = load i64, i64* %12
%39 = icmp eq i64 %38, 0
br i1 %39, label %40, label %45
40: ; preds = %37
%41 = load i64, i64* %14
%42 = icmp eq i64 %41, 0
br i1 %42, label %43, label %45
43: ; preds = %40
%44 = call i32 @out(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
br label %59
45: ; preds = %40, %37, %30
%46 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %5, i64 %16, i32 1
%47 = load i64, i64* %46
%48 = call i64 @ELF64_ST_BIND(i64 %47)
%49 = call i8* @strdefint(i64 %48, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%50 = call i8* @strallocate(i8* %49)
%51 = load i64, i64* %46
%52 = call i64 @ELF64_ST_TYPE(i64 %51)
%53 = call i8* @strdefint(i64 %52, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%54 = call i32 @outf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0), i8* %50, i8* %53)
%55 = call i32 @deallocate(i8* %50)
%56 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %5, i64 %16, i32 2
%57 = load i64, i64* %56
%58 = call i8* @strdefint(i64 %57, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
br label %59
59: ; preds = %45, %43
%60 = phi i8* [ %58, %45 ], [ getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), %43 ]
%61 = call i32 @out(i8* %60)
%62 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %5, i64 %16, i32 3
%63 = load i32, i32* %62
%64 = call i8* @getsectionid(i32 %63)
%65 = call i32 @out(i8* %64)
%66 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %5, i64 %16, i32 5
%67 = load i32, i32* %66
%68 = call i8* @straddress(i32 %67)
%69 = call i32 @out(i8* %68)
%70 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %5, i64 %16, i32 4
%71 = load i32, i32* %70
%72 = load i32, i32* %62
%73 = call i32 @getindexfromsection(i32 %72)
%74 = call i8* @getsizestr(i32 %71, i32 %73)
%75 = call i32 @out(i8* %74)
%76 = call i32 (...) @endblock()
%77 = add nuw nsw i64 %16, 1
%78 = icmp eq i64 %77, %10
br i1 %78, label %79, label %15
79: ; preds = %59, %3
%80 = call i32 (...) @endblock()
ret void
}