unsigned int iaad_dmp_arry(int log_dmp, unsigned int n, unsigned char *buf,
                           unsigned int len) {
  if (n > 8) {
    hu_log(6, "hu_aad", __func__, "iaad_dmp_arry n: %d", n);
  }
  unsigned int rmv = 0, adj = 0;
  unsigned int lft = len;
  unsigned int num = buf[0] >> 3;
  adj = 1;
  iaad_adj(&rmv, &buf, &lft, adj);
  unsigned long alen = 0;
  adj = iaad_vint_dec(log_dmp, buf, lft, &alen);
  if (adj > 8192 || alen > 8192) {
    if (log_dmp)
      hu_log(6, "hu_aad", __func__,
             "iaad_dmp_arry iaad_vint_dec adj: %d  alen: %ld", adj, alen);
    return (0xffffffff);
  }
  iaad_adj(&rmv, &buf, &lft, adj);
  if (alen == 0)
    return (rmv);
  if (alen < 0) {
    if (log_dmp)
      hu_log(6, "hu_aad", __func__, "iaad_dmp_arry alen: %ld", alen);
    return (rmv);
  }
  if (log_dmp) {
    unsigned char str_buf[256] = {0};
    int ctr = 0;
    for (ctr = 0; ctr < n - 1; ctr++)
      strncat(str_buf, "                    ", sizeof(str_buf));
    unsigned char str_buf2[256] = {0};
    snprintf(str_buf2, sizeof(str_buf), "%s%1.1d", str_buf, num);
    hex_dump(str_buf2, 16, buf, alen);
  }
  adj = iaad_dmp_n(0, n + 1, buf, alen);
  if (adj != alen || adj > 8192) {
    return (rmv + alen);
  }
  adj = iaad_dmp_n(log_dmp, n + 1, buf, alen);
  iaad_adj(&rmv, &buf, &lft, adj);
  return (rmv);
}


x86 assembly (clang, -O0):
<iaad_dmp_arry>:
push   %rbp
mov    %rsp,%rbp
sub    $0x250,%rsp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
cmpl   $0x8,-0xc(%rbp)
jbe    11c7 <iaad_dmp_arry+0x47>
mov    -0xc(%rbp),%r8d
mov    $0x6,%edi
lea    0xe4e(%rip),%rsi
lea    0xe4e(%rip),%rdx
lea    0xe55(%rip),%rcx
mov    $0x0,%al
call   1090 <hu_log@plt>
movl   $0x0,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
mov    -0x1c(%rbp),%eax
mov    %eax,-0x28(%rbp)
mov    -0x18(%rbp),%rax
movzbl (%rax),%eax
sar    $0x3,%eax
mov    %eax,-0x2c(%rbp)
movl   $0x1,-0x24(%rbp)
mov    -0x24(%rbp),%ecx
lea    -0x20(%rbp),%rdi
lea    -0x18(%rbp),%rsi
lea    -0x28(%rbp),%rdx
mov    $0x0,%al
call   1080 <iaad_adj@plt>
movq   $0x0,-0x38(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x18(%rbp),%rsi
mov    -0x28(%rbp),%edx
lea    -0x38(%rbp),%rcx
mov    $0x0,%al
call   1040 <iaad_vint_dec@plt>
mov    %eax,-0x24(%rbp)
cmpl   $0x2000,-0x24(%rbp)
ja     1240 <iaad_dmp_arry+0xc0>
cmpq   $0x2000,-0x38(%rbp)
jbe    127f <iaad_dmp_arry+0xff>
cmpl   $0x0,-0x8(%rbp)
je     1273 <iaad_dmp_arry+0xf3>
mov    -0x24(%rbp),%r8d
mov    -0x38(%rbp),%r9
mov    $0x6,%edi
lea    0xda2(%rip),%rsi
lea    0xda2(%rip),%rdx
lea    0xdbd(%rip),%rcx
mov    $0x0,%al
call   1090 <hu_log@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    142e <iaad_dmp_arry+0x2ae>
mov    -0x24(%rbp),%ecx
lea    -0x20(%rbp),%rdi
lea    -0x18(%rbp),%rsi
lea    -0x28(%rbp),%rdx
mov    $0x0,%al
call   1080 <iaad_adj@plt>
cmpq   $0x0,-0x38(%rbp)
jne    12ab <iaad_dmp_arry+0x12b>
mov    -0x20(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    142e <iaad_dmp_arry+0x2ae>
cmpq   $0x0,-0x38(%rbp)
jae    12f0 <iaad_dmp_arry+0x170>
cmpl   $0x0,-0x8(%rbp)
je     12e5 <iaad_dmp_arry+0x165>
mov    -0x38(%rbp),%r8
mov    $0x6,%edi
lea    0xd30(%rip),%rsi
lea    0xd30(%rip),%rdx
lea    0xd7a(%rip),%rcx
mov    $0x0,%al
call   1090 <hu_log@plt>
mov    -0x20(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    142e <iaad_dmp_arry+0x2ae>
cmpl   $0x0,-0x8(%rbp)
je     13b4 <iaad_dmp_arry+0x234>
lea    -0x140(%rbp),%rdi
xor    %esi,%esi
mov    $0x100,%edx
call   1060 <memset@plt>
movl   $0x0,-0x144(%rbp)
movl   $0x0,-0x144(%rbp)
mov    -0x144(%rbp),%eax
mov    -0xc(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jae    1361 <iaad_dmp_arry+0x1e1>
lea    -0x140(%rbp),%rdi
lea    0xd2d(%rip),%rsi
mov    $0x100,%edx
call   1070 <strncat@plt>
mov    -0x144(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x144(%rbp)
jmp    1321 <iaad_dmp_arry+0x1a1>
lea    -0x250(%rbp),%rdi
xor    %esi,%esi
mov    $0x100,%edx
call   1060 <memset@plt>
lea    -0x250(%rbp),%rdi
lea    -0x140(%rbp),%rcx
mov    -0x2c(%rbp),%r8d
mov    $0x100,%esi
lea    0xcf3(%rip),%rdx
mov    $0x0,%al
call   1050 <snprintf@plt>
lea    -0x250(%rbp),%rdi
mov    -0x18(%rbp),%rdx
mov    -0x38(%rbp),%rcx
mov    $0x10,%esi
mov    $0x0,%al
call   10a0 <hex_dump@plt>
mov    -0xc(%rbp),%esi
add    $0x1,%esi
mov    -0x18(%rbp),%rdx
mov    -0x38(%rbp),%rcx
xor    %edi,%edi
mov    $0x0,%al
call   1030 <iaad_dmp_n@plt>
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x38(%rbp),%rax
jne    13e8 <iaad_dmp_arry+0x268>
cmpl   $0x2000,-0x24(%rbp)
jbe    13f7 <iaad_dmp_arry+0x277>
mov    -0x20(%rbp),%eax
add    -0x38(%rbp),%rax
mov    %eax,-0x4(%rbp)
jmp    142e <iaad_dmp_arry+0x2ae>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
add    $0x1,%esi
mov    -0x18(%rbp),%rdx
mov    -0x38(%rbp),%rcx
mov    $0x0,%al
call   1030 <iaad_dmp_n@plt>
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%ecx
lea    -0x20(%rbp),%rdi
lea    -0x18(%rbp),%rsi
lea    -0x28(%rbp),%rdx
mov    $0x0,%al
call   1080 <iaad_adj@plt>
mov    -0x20(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x250,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<iaad_dmp_arry>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x228,%rsp
mov    %ecx,%ebp
mov    %rdx,%rbx
mov    %esi,%r12d
mov    %edi,%r15d
mov    %rdx,0x10(%rsp)
cmp    $0x9,%esi
jb     11ba <iaad_dmp_arry+0x4a>
lea    0xe63(%rip),%rsi
lea    0xe63(%rip),%rdx
lea    0xe6a(%rip),%rcx
mov    $0x6,%edi
mov    %r12d,%r8d
xor    %eax,%eax
call   1080 <hu_log@plt>
movl   $0x0,0x8(%rsp)
mov    %ebp,0xc(%rsp)
movzbl (%rbx),%r14d
lea    0x8(%rsp),%rdi
lea    0x10(%rsp),%rsi
lea    0xc(%rsp),%rdx
mov    $0x1,%ecx
xor    %eax,%eax
call   1070 <iaad_adj@plt>
movq   $0x0,0x18(%rsp)
mov    0x10(%rsp),%rsi
mov    0xc(%rsp),%edx
lea    0x18(%rsp),%rcx
mov    %r15d,%edi
xor    %eax,%eax
call   1050 <iaad_vint_dec@plt>
mov    0x18(%rsp),%r9
cmp    $0x2000,%eax
ja     141d <iaad_dmp_arry+0x2ad>
cmp    $0x2001,%r9
jae    141d <iaad_dmp_arry+0x2ad>
lea    0x8(%rsp),%rdi
lea    0x10(%rsp),%rsi
lea    0xc(%rsp),%rdx
mov    %eax,%ecx
xor    %eax,%eax
call   1070 <iaad_adj@plt>
mov    0x18(%rsp),%rcx
test   %rcx,%rcx
je     1417 <iaad_dmp_arry+0x2a7>
test   %r15d,%r15d
je     13c5 <iaad_dmp_arry+0x255>
shr    $0x3,%r14d
xorps  %xmm0,%xmm0
movaps %xmm0,0x110(%rsp)
movaps %xmm0,0x100(%rsp)
movaps %xmm0,0xf0(%rsp)
movaps %xmm0,0xe0(%rsp)
movaps %xmm0,0xd0(%rsp)
movaps %xmm0,0xc0(%rsp)
movaps %xmm0,0xb0(%rsp)
movaps %xmm0,0xa0(%rsp)
movaps %xmm0,0x90(%rsp)
movaps %xmm0,0x80(%rsp)
movaps %xmm0,0x70(%rsp)
movaps %xmm0,0x60(%rsp)
movaps %xmm0,0x50(%rsp)
movaps %xmm0,0x40(%rsp)
movaps %xmm0,0x30(%rsp)
movaps %xmm0,0x20(%rsp)
mov    %r12d,%ebp
add    $0xffffffff,%ebp
je     12fe <iaad_dmp_arry+0x18e>
lea    0x20(%rsp),%r13
movabs $0x20202020202020,%rbx
xchg   %ax,%ax
mov    %r13,%rdi
call   1040 <strlen@plt>
mov    %rbx,0x2d(%rsp,%rax,1)
movups 0xd64(%rip),%xmm0
movups %xmm0,0x20(%rsp,%rax,1)
add    $0xffffffff,%ebp
jne    12e0 <iaad_dmp_arry+0x170>
xorps  %xmm0,%xmm0
movaps %xmm0,0x210(%rsp)
movaps %xmm0,0x200(%rsp)
movaps %xmm0,0x1f0(%rsp)
movaps %xmm0,0x1e0(%rsp)
movaps %xmm0,0x1d0(%rsp)
movaps %xmm0,0x1c0(%rsp)
movaps %xmm0,0x1b0(%rsp)
movaps %xmm0,0x1a0(%rsp)
movaps %xmm0,0x190(%rsp)
movaps %xmm0,0x180(%rsp)
movaps %xmm0,0x170(%rsp)
movaps %xmm0,0x160(%rsp)
movaps %xmm0,0x150(%rsp)
movaps %xmm0,0x140(%rsp)
movaps %xmm0,0x130(%rsp)
movaps %xmm0,0x120(%rsp)
lea    0xce5(%rip),%rdx
lea    0x120(%rsp),%rbx
lea    0x20(%rsp),%rcx
mov    $0x100,%esi
mov    %rbx,%rdi
mov    %r14d,%r8d
xor    %eax,%eax
call   1060 <snprintf@plt>
mov    0x10(%rsp),%rdx
mov    0x18(%rsp),%rcx
mov    %rbx,%rdi
mov    $0x10,%esi
xor    %eax,%eax
call   1090 <hex_dump@plt>
mov    0x18(%rsp),%rcx
add    $0x1,%r12d
mov    0x10(%rsp),%rdx
xor    %edi,%edi
mov    %r12d,%esi
xor    %eax,%eax
call   1030 <iaad_dmp_n@plt>
mov    0x18(%rsp),%rbx
cmp    $0x2000,%eax
ja     144d <iaad_dmp_arry+0x2dd>
mov    %eax,%ecx
cmp    %rcx,%rbx
jne    144d <iaad_dmp_arry+0x2dd>
mov    0x10(%rsp),%rdx
mov    %r15d,%edi
mov    %r12d,%esi
xor    %eax,%eax
call   1030 <iaad_dmp_n@plt>
lea    0x8(%rsp),%rdi
lea    0x10(%rsp),%rsi
lea    0xc(%rsp),%rdx
mov    %eax,%ecx
xor    %eax,%eax
call   1070 <iaad_adj@plt>
mov    0x8(%rsp),%ebx
jmp    1451 <iaad_dmp_arry+0x2e1>
mov    $0xffffffff,%ebx
test   %r15d,%r15d
je     1451 <iaad_dmp_arry+0x2e1>
lea    0xbd2(%rip),%rsi
lea    0xbd2(%rip),%rdx
lea    0xbed(%rip),%rcx
mov    $0x6,%edi
mov    %eax,%r8d
xor    %eax,%eax
call   1080 <hu_log@plt>
jmp    1451 <iaad_dmp_arry+0x2e1>
add    0x8(%rsp),%ebx
mov    %ebx,%eax
add    $0x228,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [7 x i8] c"hu_aad\00"
@__func__.iaad_dmp_arry = [14 x i8] c"iaad_dmp_arry\00"
@.str.1 = [20 x i8] c"iaad_dmp_arry n: %d\00"
@.str.2 = [47 x i8] c"iaad_dmp_arry iaad_vint_dec adj: %d alen: %ld\00"
@.str.3 = [24 x i8] c"iaad_dmp_arry alen: %ld\00"
@.str.4 = [21 x i8] c" \00"
@.str.5 = [8 x i8] c"%s%1.1d\00"
define i32 @iaad_dmp_arry(i32 %0, i32 %1, i8* %2, i32 %3) {
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i8*
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i64
%15 = alloca [256 x i8]
%16 = alloca i32
%17 = alloca [256 x i8]
store i32 %0, i32* %6
store i32 %1, i32* %7
store i8* %2, i8** %8
store i32 %3, i32* %9
%18 = load i32, i32* %7
%19 = icmp ugt i32 %18, 8
br i1 %19, label %20, label %23
20: ; preds = %4
%21 = load i32, i32* %7
%22 = call i32 (i32, i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @hu_log to i32 (i32, i8*, i8*, i8*, i32, ...)*)(i32 6, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @__func__.iaad_dmp_arry, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), i32 %21)
br label %23
23: ; preds = %20, %4
store i32 0, i32* %10
store i32 0, i32* %11
%24 = load i32, i32* %9
store i32 %24, i32* %12
%25 = load i8*, i8** %8
%26 = getelementptr inbounds i8, i8* %25, i64 0
%27 = load i8, i8* %26
%28 = zext i8 %27 to i32
%29 = ashr i32 %28, 3
store i32 %29, i32* %13
store i32 1, i32* %11
%30 = load i32, i32* %11
%31 = call i32 (i32*, i8**, i32*, i32, ...) bitcast (i32 (...)* @iaad_adj to i32 (i32*, i8**, i32*, i32, ...)*)(i32* %10, i8** %8, i32* %12, i32 %30)
store i64 0, i64* %14
%32 = load i32, i32* %6
%33 = load i8*, i8** %8
%34 = load i32, i32* %12
%35 = call i32 (i32, i8*, i32, i64*, ...) bitcast (i32 (...)* @iaad_vint_dec to i32 (i32, i8*, i32, i64*, ...)*)(i32 %32, i8* %33, i32 %34, i64* %14)
store i32 %35, i32* %11
%36 = load i32, i32* %11
%37 = icmp ugt i32 %36, 8192
br i1 %37, label %41, label %38
38: ; preds = %23
%39 = load i64, i64* %14
%40 = icmp ugt i64 %39, 8192
br i1 %40, label %41, label %49
41: ; preds = %38, %23
%42 = load i32, i32* %6
%43 = icmp ne i32 %42, 0
br i1 %43, label %44, label %48
44: ; preds = %41
%45 = load i32, i32* %11
%46 = load i64, i64* %14
%47 = call i32 (i32, i8*, i8*, i8*, i32, i64, ...) bitcast (i32 (...)* @hu_log to i32 (i32, i8*, i8*, i8*, i32, i64, ...)*)(i32 6, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @__func__.iaad_dmp_arry, i64 0, i64 0), i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.2, i64 0, i64 0), i32 %45, i64 %46)
br label %48
48: ; preds = %44, %41
store i32 -1, i32* %5
br label %122
49: ; preds = %38
%50 = load i32, i32* %11
%51 = call i32 (i32*, i8**, i32*, i32, ...) bitcast (i32 (...)* @iaad_adj to i32 (i32*, i8**, i32*, i32, ...)*)(i32* %10, i8** %8, i32* %12, i32 %50)
%52 = load i64, i64* %14
%53 = icmp eq i64 %52, 0
br i1 %53, label %54, label %56
54: ; preds = %49
%55 = load i32, i32* %10
store i32 %55, i32* %5
br label %122
56: ; preds = %49
%57 = load i64, i64* %14
%58 = icmp ult i64 %57, 0
br i1 %58, label %59, label %67
59: ; preds = %56
%60 = load i32, i32* %6
%61 = icmp ne i32 %60, 0
br i1 %61, label %62, label %65
62: ; preds = %59
%63 = load i64, i64* %14
%64 = call i32 (i32, i8*, i8*, i8*, i64, ...) bitcast (i32 (...)* @hu_log to i32 (i32, i8*, i8*, i8*, i64, ...)*)(i32 6, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @__func__.iaad_dmp_arry, i64 0, i64 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.3, i64 0, i64 0), i64 %63)
br label %65
65: ; preds = %62, %59
%66 = load i32, i32* %10
store i32 %66, i32* %5
br label %122
67: ; preds = %56
%68 = load i32, i32* %6
%69 = icmp ne i32 %68, 0
br i1 %69, label %70, label %93
70: ; preds = %67
%71 = bitcast [256 x i8]* %15 to i8*
store i32 0, i32* %16
store i32 0, i32* %16
br label %72
72: ; preds = %80, %70
%73 = load i32, i32* %16
%74 = load i32, i32* %7
%75 = sub i32 %74, 1
%76 = icmp ult i32 %73, %75
br i1 %76, label %77, label %83
77: ; preds = %72
%78 = getelementptr inbounds [256 x i8], [256 x i8]* %15, i64 0, i64 0
%79 = call i8* @strncat(i8* %78, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0), i64 256)
br label %80
80: ; preds = %77
%81 = load i32, i32* %16
%82 = add nsw i32 %81, 1
store i32 %82, i32* %16
br label %72
83: ; preds = %72
%84 = bitcast [256 x i8]* %17 to i8*
%85 = getelementptr inbounds [256 x i8], [256 x i8]* %17, i64 0, i64 0
%86 = getelementptr inbounds [256 x i8], [256 x i8]* %15, i64 0, i64 0
%87 = load i32, i32* %13
%88 = call i32 (i8*, i64, i8*, ...) @snprintf(i8* %85, i64 256, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), i8* %86, i32 %87)
%89 = getelementptr inbounds [256 x i8], [256 x i8]* %17, i64 0, i64 0
%90 = load i8*, i8** %8
%91 = load i64, i64* %14
%92 = call i32 (i8*, i32, i8*, i64, ...) bitcast (i32 (...)* @hex_dump to i32 (i8*, i32, i8*, i64, ...)*)(i8* %89, i32 16, i8* %90, i64 %91)
br label %93
93: ; preds = %83, %67
%94 = load i32, i32* %7
%95 = add i32 %94, 1
%96 = load i8*, i8** %8
%97 = load i64, i64* %14
%98 = call i32 (i32, i32, i8*, i64, ...) bitcast (i32 (...)* @iaad_dmp_n to i32 (i32, i32, i8*, i64, ...)*)(i32 0, i32 %95, i8* %96, i64 %97)
store i32 %98, i32* %11
%99 = load i32, i32* %11
%100 = zext i32 %99 to i64
%101 = load i64, i64* %14
%102 = icmp ne i64 %100, %101
br i1 %102, label %106, label %103
103: ; preds = %93
%104 = load i32, i32* %11
%105 = icmp ugt i32 %104, 8192
br i1 %105, label %106, label %112
106: ; preds = %103, %93
%107 = load i32, i32* %10
%108 = zext i32 %107 to i64
%109 = load i64, i64* %14
%110 = add i64 %108, %109
%111 = trunc i64 %110 to i32
store i32 %111, i32* %5
br label %122
112: ; preds = %103
%113 = load i32, i32* %6
%114 = load i32, i32* %7
%115 = add i32 %114, 1
%116 = load i8*, i8** %8
%117 = load i64, i64* %14
%118 = call i32 (i32, i32, i8*, i64, ...) bitcast (i32 (...)* @iaad_dmp_n to i32 (i32, i32, i8*, i64, ...)*)(i32 %113, i32 %115, i8* %116, i64 %117)
store i32 %118, i32* %11
%119 = load i32, i32* %11
%120 = call i32 (i32*, i8**, i32*, i32, ...) bitcast (i32 (...)* @iaad_adj to i32 (i32*, i8**, i32*, i32, ...)*)(i32* %10, i8** %8, i32* %12, i32 %119)
%121 = load i32, i32* %10
store i32 %121, i32* %5
br label %122
122: ; preds = %112, %106, %65, %54, %48
%123 = load i32, i32* %5
ret i32 %123
}

LLVM IR (-O2):
@.str = [7 x i8] c"hu_aad\00"
@__func__.iaad_dmp_arry = [14 x i8] c"iaad_dmp_arry\00"
@.str.1 = [20 x i8] c"iaad_dmp_arry n: %d\00"
@.str.2 = [47 x i8] c"iaad_dmp_arry iaad_vint_dec adj: %d alen: %ld\00"
@.str.4 = [21 x i8] c" \00"
@.str.5 = [8 x i8] c"%s%1.1d\00"
define i32 @iaad_dmp_arry(i32 %0, i32 %1, i8* %2, i32 %3) {
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i32
%8 = alloca i64
%9 = alloca [256 x i8]
%10 = alloca [256 x i8]
store i8* %2, i8** %5
%11 = icmp ugt i32 %1, 8
br i1 %11, label %12, label %14
12: ; preds = %4
%13 = tail call i32 (i32, i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @hu_log to i32 (i32, i8*, i8*, i8*, i32, ...)*)(i32 6, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @__func__.iaad_dmp_arry, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), i32 %1)
br label %14
14: ; preds = %12, %4
%15 = bitcast i32* %6 to i8*
store i32 0, i32* %6
%16 = bitcast i32* %7 to i8*
store i32 %3, i32* %7
%17 = load i8, i8* %2
%18 = lshr i8 %17, 3
%19 = zext i8 %18 to i32
%20 = call i32 (i32*, i8**, i32*, i32, ...) bitcast (i32 (...)* @iaad_adj to i32 (i32*, i8**, i32*, i32, ...)*)(i32* %6, i8** %5, i32* %7, i32 1)
%21 = bitcast i64* %8 to i8*
store i64 0, i64* %8
%22 = load i8*, i8** %5
%23 = load i32, i32* %7
%24 = call i32 (i32, i8*, i32, i64*, ...) bitcast (i32 (...)* @iaad_vint_dec to i32 (i32, i8*, i32, i64*, ...)*)(i32 %0, i8* %22, i32 %23, i64* %8)
%25 = icmp ugt i32 %24, 8192
%26 = load i64, i64* %8
%27 = icmp ugt i64 %26, 8192
%28 = select i1 %25, i1 true, i1 %27
br i1 %28, label %29, label %33
29: ; preds = %14
%30 = icmp eq i32 %0, 0
br i1 %30, label %77, label %31
31: ; preds = %29
%32 = call i32 (i32, i8*, i8*, i8*, i32, i64, ...) bitcast (i32 (...)* @hu_log to i32 (i32, i8*, i8*, i8*, i32, i64, ...)*)(i32 6, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @__func__.iaad_dmp_arry, i64 0, i64 0), i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.2, i64 0, i64 0), i32 %24, i64 %26)
br label %77
33: ; preds = %14
%34 = call i32 (i32*, i8**, i32*, i32, ...) bitcast (i32 (...)* @iaad_adj to i32 (i32*, i8**, i32*, i32, ...)*)(i32* %6, i8** %5, i32* %7, i32 %24)
%35 = load i64, i64* %8
%36 = icmp eq i64 %35, 0
br i1 %36, label %37, label %39
37: ; preds = %33
%38 = load i32, i32* %6
br label %77
39: ; preds = %33
%40 = icmp eq i32 %0, 0
br i1 %40, label %58, label %41
41: ; preds = %39
%42 = getelementptr inbounds [256 x i8], [256 x i8]* %9, i64 0, i64 0
%43 = add i32 %1, -1
%44 = icmp eq i32 %43, 0
br i1 %44, label %51, label %45
45: ; preds = %41, %45
%46 = phi i32 [ %49, %45 ], [ 0, %41 ]
%47 = call i64 @strlen(i8* %42)
%48 = getelementptr [256 x i8], [256 x i8]* %9, i64 0, i64 %47
%49 = add nuw nsw i32 %46, 1
%50 = icmp eq i32 %49, %43
br i1 %50, label %51, label %45
51: ; preds = %45, %41
%52 = getelementptr inbounds [256 x i8], [256 x i8]* %10, i64 0, i64 0
%53 = call i32 (i8*, i64, i8*, ...) @snprintf(i8* %52, i64 256, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), i8* %42, i32 %19)
%54 = load i8*, i8** %5
%55 = load i64, i64* %8
%56 = call i32 (i8*, i32, i8*, i64, ...) bitcast (i32 (...)* @hex_dump to i32 (i8*, i32, i8*, i64, ...)*)(i8* %52, i32 16, i8* %54, i64 %55)
%57 = load i64, i64* %8
br label %58
58: ; preds = %51, %39
%59 = phi i64 [ %57, %51 ], [ %35, %39 ]
%60 = add i32 %1, 1
%61 = load i8*, i8** %5
%62 = call i32 (i32, i32, i8*, i64, ...) bitcast (i32 (...)* @iaad_dmp_n to i32 (i32, i32, i8*, i64, ...)*)(i32 0, i32 %60, i8* %61, i64 %59)
%63 = zext i32 %62 to i64
%64 = load i64, i64* %8
%65 = icmp ne i64 %64, %63
%66 = icmp ugt i32 %62, 8192
%67 = or i1 %66, %65
br i1 %67, label %68, label %72
68: ; preds = %58
%69 = load i32, i32* %6
%70 = trunc i64 %64 to i32
%71 = add i32 %69, %70
br label %77
72: ; preds = %58
%73 = load i8*, i8** %5
%74 = call i32 (i32, i32, i8*, i64, ...) bitcast (i32 (...)* @iaad_dmp_n to i32 (i32, i32, i8*, i64, ...)*)(i32 %0, i32 %60, i8* %73, i64 %63)
%75 = call i32 (i32*, i8**, i32*, i32, ...) bitcast (i32 (...)* @iaad_adj to i32 (i32*, i8**, i32*, i32, ...)*)(i32* %6, i8** %5, i32* %7, i32 %74)
%76 = load i32, i32* %6
br label %77
77: ; preds = %29, %31, %72, %68, %37
%78 = phi i32 [ %38, %37 ], [ %71, %68 ], [ %76, %72 ], [ -1, %31 ], [ -1, %29 ]
ret i32 %78
}