#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 Elf32_Word;
typedef TYPE_1__ Elf32_Sym;

/* Variables and functions */
scalar_t__ ELF32_ST_BIND(scalar_t__);
scalar_t__ ELF32_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 outsym32(void const *ptr, long size, int ndx) {
  Elf32_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 < (Elf32_Word)size && strtab[syms[i].st_name]) {
      linebreak();
      outcomment(strtab + syms[i].st_name);
    }
    beginblock(0);
    (out(strdec(syms[i].st_name)));
    (out(straddress(syms[i].st_value)));
    out(getsizestr(syms[i].st_size, getindexfromsection(syms[i].st_shndx)));
    if (i == 0 && syms[i].st_info == 0 && syms[i].st_other == 0) {
      out("0");
      out("0");
    } else {
      bind = strallocate(strdefint(ELF32_ST_BIND(syms[i].st_info), "STB_"));
      outf("ELF32_ST_INFO(%s, %s)", bind,
           strdefint(ELF32_ST_TYPE(syms[i].st_info), "STT_"));
      deallocate(bind);
      (out(strdefint(syms[i].st_other, "STV_")));
    }
    out(getsectionid(syms[i].st_shndx));
    endblock();
  }
  endblock();
}


x86 assembly (clang, -O0):
<outsym32>:
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   10e0 <getpiecestrtable@plt>
mov    %rax,-0x30(%rbp)
mov    $0x1,%edi
call   10b0 <beginblock@plt>
movq   $0x0,-0x40(%rbp)
mov    -0x40(%rbp),%rax
cmp    -0x28(%rbp),%rax
jge    1464 <outsym32+0x254>
mov    -0x20(%rbp),%rax
imul   $0x28,-0x40(%rbp),%rcx
add    %rcx,%rax
mov    (%rax),%rax
cmp    -0x10(%rbp),%rax
jae    12c5 <outsym32+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 <outsym32+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   10d0 <outcomment@plt>
xor    %edi,%edi
call   10b0 <beginblock@plt>
mov    -0x20(%rbp),%rax
imul   $0x28,-0x40(%rbp),%rcx
add    %rcx,%rax
mov    (%rax),%rax
mov    %eax,%edi
call   1090 <strdec@plt>
mov    %rax,%rdi
call   10f0 <out@plt>
mov    -0x20(%rbp),%rax
imul   $0x28,-0x40(%rbp),%rcx
add    %rcx,%rax
mov    0x20(%rax),%edi
call   1100 <straddress@plt>
mov    %rax,%rdi
call   10f0 <out@plt>
mov    -0x20(%rbp),%rax
imul   $0x28,-0x40(%rbp),%rcx
add    %rcx,%rax
mov    0x1c(%rax),%eax
mov    %eax,-0x44(%rbp)
mov    -0x20(%rbp),%rax
imul   $0x28,-0x40(%rbp),%rcx
add    %rcx,%rax
mov    0x18(%rax),%edi
call   1030 <getindexfromsection@plt>
mov    -0x44(%rbp),%edi
mov    %eax,%esi
call   1070 <getsizestr@plt>
mov    %rax,%rdi
call   10f0 <out@plt>
cmpq   $0x0,-0x40(%rbp)
jne    1394 <outsym32+0x184>
mov    -0x20(%rbp),%rax
imul   $0x28,-0x40(%rbp),%rcx
add    %rcx,%rax
cmpq   $0x0,0x8(%rax)
jne    1394 <outsym32+0x184>
mov    -0x20(%rbp),%rax
imul   $0x28,-0x40(%rbp),%rcx
add    %rcx,%rax
cmpq   $0x0,0x10(%rax)
jne    1394 <outsym32+0x184>
lea    0xc82(%rip),%rdi
call   10f0 <out@plt>
lea    0xc76(%rip),%rdi
call   10f0 <out@plt>
jmp    1430 <outsym32+0x220>
mov    -0x20(%rbp),%rax
imul   $0x28,-0x40(%rbp),%rcx
add    %rcx,%rax
mov    0x8(%rax),%rdi
call   10c0 <ELF32_ST_BIND@plt>
mov    %rax,%rdi
lea    0xc4f(%rip),%rsi
call   1040 <strdefint@plt>
mov    %rax,%rdi
call   1110 <strallocate@plt>
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    -0x20(%rbp),%rax
imul   $0x28,-0x40(%rbp),%rcx
add    %rcx,%rax
mov    0x8(%rax),%rdi
call   1120 <ELF32_ST_TYPE@plt>
mov    %rax,%rdi
lea    0xc32(%rip),%rsi
call   1040 <strdefint@plt>
mov    -0x50(%rbp),%rsi
mov    %rax,%rdx
lea    0xc09(%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    0xbff(%rip),%rsi
call   1040 <strdefint@plt>
mov    %rax,%rdi
call   10f0 <out@plt>
mov    -0x20(%rbp),%rax
imul   $0x28,-0x40(%rbp),%rcx
add    %rcx,%rax
mov    0x18(%rax),%edi
call   10a0 <getsectionid@plt>
mov    %rax,%rdi
call   10f0 <out@plt>
mov    $0x0,%al
call   1050 <endblock@plt>
mov    -0x40(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x40(%rbp)
jmp    125f <outsym32+0x4f>
mov    $0x0,%al
call   1050 <endblock@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<outsym32>:
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   10e0 <getpiecestrtable@plt>
mov    %rax,%r15
mov    $0x1,%edi
call   10b0 <beginblock@plt>
cmp    $0x28,%rbx
jae    1258 <outsym32+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 <outsym32+0x92>
cmpb   $0x0,(%r15,%rax,1)
je     12a2 <outsym32+0x92>
xor    %eax,%eax
call   1130 <linebreak@plt>
mov    (%r14),%rdi
add    %r15,%rdi
call   10d0 <outcomment@plt>
xor    %edi,%edi
call   10b0 <beginblock@plt>
mov    (%r14),%edi
call   1090 <strdec@plt>
mov    %rax,%rdi
call   10f0 <out@plt>
mov    0x20(%r14),%edi
call   1100 <straddress@plt>
mov    %rax,%rdi
call   10f0 <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   10f0 <out@plt>
test   %r13,%r13
jne    1310 <outsym32+0x100>
cmpq   $0x0,0x8(%r12)
jne    1310 <outsym32+0x100>
cmpq   $0x0,0x10(%r12)
je     13ab <outsym32+0x19b>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    0x8(%r14),%rdi
call   10c0 <ELF32_ST_BIND@plt>
mov    %rax,%rdi
lea    0xcdf(%rip),%rsi
call   1040 <strdefint@plt>
mov    %rax,%rdi
call   1110 <strallocate@plt>
mov    %rax,%rbp
mov    0x8(%r14),%rdi
call   1120 <ELF32_ST_TYPE@plt>
mov    %rax,%rdi
lea    0xcd7(%rip),%rsi
call   1040 <strdefint@plt>
lea    0xcb5(%rip),%rdi
mov    %rbp,%rsi
mov    %rax,%rdx
call   1060 <outf@plt>
mov    %rbp,%rdi
call   1080 <deallocate@plt>
mov    0x10(%r14),%rdi
lea    0xcb2(%rip),%rsi
call   1040 <strdefint@plt>
mov    %rax,%rdi
call   10f0 <out@plt>
mov    0x18(%r14),%edi
call   10a0 <getsectionid@plt>
mov    %rax,%rdi
call   10f0 <out@plt>
xor    %eax,%eax
call   1050 <endblock@plt>
add    $0x1,%r13
add    $0x28,%r14
cmp    %r13,%rbx
jne    1280 <outsym32+0x70>
jmp    1242 <outsym32+0x32>
lea    0xc4e(%rip),%rbp
mov    %rbp,%rdi
call   10f0 <out@plt>
mov    %rbp,%rdi
jmp    1378 <outsym32+0x168>

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"ELF32_ST_INFO(%s, %s)\00"
@.str.3 = [5 x i8] c"STT_\00"
@.str.4 = [5 x i8] c"STV_\00"
define void @outsym32(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 %struct.TYPE_2__*, %struct.TYPE_2__** %7
%63 = load i64, i64* %11
%64 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %62, i64 %63
%65 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %64, i32 0, i32 5
%66 = load i32, i32* %65
%67 = call i8* @straddress(i32 %66)
%68 = call i32 @out(i8* %67)
%69 = load %struct.TYPE_2__*, %struct.TYPE_2__** %7
%70 = load i64, i64* %11
%71 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %69, i64 %70
%72 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %71, i32 0, i32 4
%73 = load i32, i32* %72
%74 = load %struct.TYPE_2__*, %struct.TYPE_2__** %7
%75 = load i64, i64* %11
%76 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %74, i64 %75
%77 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %76, i32 0, i32 3
%78 = load i32, i32* %77
%79 = call i32 @getindexfromsection(i32 %78)
%80 = call i8* @getsizestr(i32 %73, i32 %79)
%81 = call i32 @out(i8* %80)
%82 = load i64, i64* %11
%83 = icmp eq i64 %82, 0
br i1 %83, label %84, label %101
84: ; preds = %52
%85 = load %struct.TYPE_2__*, %struct.TYPE_2__** %7
%86 = load i64, i64* %11
%87 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %85, i64 %86
%88 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %87, i32 0, i32 1
%89 = load i64, i64* %88
%90 = icmp eq i64 %89, 0
br i1 %90, label %91, label %101
91: ; preds = %84
%92 = load %struct.TYPE_2__*, %struct.TYPE_2__** %7
%93 = load i64, i64* %11
%94 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %92, i64 %93
%95 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %94, i32 0, i32 2
%96 = load i64, i64* %95
%97 = icmp eq i64 %96, 0
br i1 %97, label %98, label %101
98: ; preds = %91
%99 = call i32 @out(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%100 = call i32 @out(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
br label %128
101: ; preds = %91, %84, %52
%102 = load %struct.TYPE_2__*, %struct.TYPE_2__** %7
%103 = load i64, i64* %11
%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 1
%106 = load i64, i64* %105
%107 = call i64 @ELF32_ST_BIND(i64 %106)
%108 = call i8* @strdefint(i64 %107, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%109 = call i8* @strallocate(i8* %108)
store i8* %109, i8** %10
%110 = load i8*, i8** %10
%111 = load %struct.TYPE_2__*, %struct.TYPE_2__** %7
%112 = load i64, i64* %11
%113 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %111, i64 %112
%114 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %113, i32 0, i32 1
%115 = load i64, i64* %114
%116 = call i64 @ELF32_ST_TYPE(i64 %115)
%117 = call i8* @strdefint(i64 %116, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%118 = call i32 @outf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0), i8* %110, i8* %117)
%119 = load i8*, i8** %10
%120 = call i32 @deallocate(i8* %119)
%121 = load %struct.TYPE_2__*, %struct.TYPE_2__** %7
%122 = load i64, i64* %11
%123 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %121, i64 %122
%124 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %123, i32 0, i32 2
%125 = load i64, i64* %124
%126 = call i8* @strdefint(i64 %125, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%127 = call i32 @out(i8* %126)
br label %128
128: ; preds = %101, %98
%129 = load %struct.TYPE_2__*, %struct.TYPE_2__** %7
%130 = load i64, i64* %11
%131 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %129, i64 %130
%132 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %131, i32 0, i32 3
%133 = load i32, i32* %132
%134 = call i8* @getsectionid(i32 %133)
%135 = call i32 @out(i8* %134)
%136 = call i32 (...) @endblock()
br label %137
137: ; preds = %128
%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"ELF32_ST_INFO(%s, %s)\00"
@.str.3 = [5 x i8] c"STT_\00"
@.str.4 = [5 x i8] c"STV_\00"
define void @outsym32(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, %70
%16 = phi i64 [ %77, %70 ], [ 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 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %5, i64 %16, i32 5
%37 = load i32, i32* %36
%38 = call i8* @straddress(i32 %37)
%39 = call i32 @out(i8* %38)
%40 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %5, i64 %16, i32 4
%41 = load i32, i32* %40
%42 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %5, i64 %16, i32 3
%43 = load i32, i32* %42
%44 = call i32 @getindexfromsection(i32 %43)
%45 = call i8* @getsizestr(i32 %41, i32 %44)
%46 = call i32 @out(i8* %45)
%47 = icmp eq i64 %16, 0
br i1 %47, label %48, label %56
48: ; preds = %30
%49 = load i64, i64* %12
%50 = icmp eq i64 %49, 0
br i1 %50, label %51, label %56
51: ; preds = %48
%52 = load i64, i64* %14
%53 = icmp eq i64 %52, 0
br i1 %53, label %54, label %56
54: ; preds = %51
%55 = call i32 @out(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
br label %70
56: ; preds = %51, %48, %30
%57 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %5, i64 %16, i32 1
%58 = load i64, i64* %57
%59 = call i64 @ELF32_ST_BIND(i64 %58)
%60 = call i8* @strdefint(i64 %59, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%61 = call i8* @strallocate(i8* %60)
%62 = load i64, i64* %57
%63 = call i64 @ELF32_ST_TYPE(i64 %62)
%64 = call i8* @strdefint(i64 %63, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%65 = call i32 @outf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0), i8* %61, i8* %64)
%66 = call i32 @deallocate(i8* %61)
%67 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %5, i64 %16, i32 2
%68 = load i64, i64* %67
%69 = call i8* @strdefint(i64 %68, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
br label %70
70: ; preds = %56, %54
%71 = phi i8* [ %69, %56 ], [ getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), %54 ]
%72 = call i32 @out(i8* %71)
%73 = load i32, i32* %42
%74 = call i8* @getsectionid(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 = %70, %3
%80 = call i32 (...) @endblock()
ret void
}