#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_9__ TYPE_2__;
typedef struct TYPE_8__ TYPE_1__;

/* Type definitions */
struct TYPE_9__ {
  size_t fts_nitems;
  TYPE_1__ **fts_array;
  scalar_t__ fts_compar;
};
struct TYPE_8__ {
  struct TYPE_8__ *fts_link;
};
typedef TYPE_1__ FTSENT;
typedef TYPE_2__ FTS;

/* Variables and functions */
size_t UINT_MAX;
int /*<<< orphan*/ _DIAGASSERT(int /*<<< orphan*/);
int /*<<< orphan*/ qsort(void *, size_t, int,
                         int (*)(void const *, void const *));
TYPE_1__ **realloc(TYPE_1__ **, int);
FTSENT *fts_sort(FTS *sp, FTSENT *head, size_t nitems) {
  FTSENT **ap, *p;
  _DIAGASSERT(sp != NULL);
  _DIAGASSERT(head != NULL);
  if (nitems > sp->fts_nitems) {
    FTSENT **new;
    new = realloc(sp->fts_array, sizeof(FTSENT *) * (nitems + 40));
    if (new == 0)
      return (head);
    sp->fts_array = new;
    sp->fts_nitems =
        ((nitems + 40) > UINT_MAX ? UINT_MAX : (unsigned int)(nitems + 40));
  }
  for (ap = sp->fts_array, p = head; p; p = p->fts_link)
    *ap++ = p;
  qsort((void *)sp->fts_array, nitems, sizeof(FTSENT *),
        (int (*)(const void *, const void *))sp->fts_compar);
  for (head = *(ap = sp->fts_array); --nitems; ++ap)
    ap[0]->fts_link = ap[1];
  ap[0]->fts_link = NULL;
  return (head);
}


x86 assembly (clang, -O0):
<fts_sort>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
cmpq   $0x0,-0x10(%rbp)
setne  %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <_DIAGASSERT@plt>
cmpq   $0x0,-0x18(%rbp)
setne  %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <_DIAGASSERT@plt>
mov    -0x20(%rbp),%rax
mov    -0x10(%rbp),%rcx
cmp    (%rcx),%rax
jbe    1200 <fts_sort+0xd0>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
mov    -0x20(%rbp),%rax
add    $0x28,%rax
shl    $0x3,%rax
mov    %eax,%esi
call   1050 <realloc@plt>
mov    %rax,-0x38(%rbp)
cmpq   $0x0,-0x38(%rbp)
jne    11b0 <fts_sort+0x80>
mov    -0x18(%rbp),%rax
mov    %rax,-0x8(%rbp)
jmp    12c5 <fts_sort+0x195>
mov    -0x38(%rbp),%rcx
mov    -0x10(%rbp),%rax
mov    %rcx,0x8(%rax)
mov    -0x20(%rbp),%rax
add    $0x28,%rax
mov    0x2e1d(%rip),%rcx
cmp    (%rcx),%rax
jbe    11e7 <fts_sort+0xb7>
mov    0x2e0d(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x40(%rbp)
jmp    11f5 <fts_sort+0xc5>
mov    -0x20(%rbp),%rax
add    $0x28,%rax
mov    %eax,%eax
mov    %rax,-0x40(%rbp)
mov    -0x40(%rbp),%rcx
mov    -0x10(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x28(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x30(%rbp)
cmpq   $0x0,-0x30(%rbp)
je     1245 <fts_sort+0x115>
mov    -0x30(%rbp),%rcx
mov    -0x28(%rbp),%rax
mov    %rax,%rdx
add    $0x8,%rdx
mov    %rdx,-0x28(%rbp)
mov    %rcx,(%rax)
mov    -0x30(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x30(%rbp)
jmp    1214 <fts_sort+0xe4>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
mov    -0x20(%rbp),%rsi
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rcx
mov    $0x8,%edx
call   1030 <qsort@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x28(%rbp)
mov    (%rax),%rax
mov    %rax,-0x18(%rbp)
mov    -0x20(%rbp),%rax
add    $0xffffffffffffffff,%rax
mov    %rax,-0x20(%rbp)
cmp    $0x0,%rax
je     12af <fts_sort+0x17f>
mov    -0x28(%rbp),%rax
mov    0x8(%rax),%rcx
mov    -0x28(%rbp),%rax
mov    (%rax),%rax
mov    %rcx,(%rax)
mov    -0x28(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x28(%rbp)
jmp    1276 <fts_sort+0x146>
mov    -0x28(%rbp),%rax
mov    (%rax),%rax
movq   $0x0,(%rax)
mov    -0x18(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fts_sort>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
mov    %rdx,%r14
mov    %rsi,%rbx
mov    %rdi,%r15
xor    %edi,%edi
test   %r15,%r15
setne  %dil
call   1040 <_DIAGASSERT@plt>
xor    %edi,%edi
test   %rbx,%rbx
setne  %dil
call   1040 <_DIAGASSERT@plt>
mov    0x8(%r15),%rdi
cmp    %r14,(%r15)
jae    119e <fts_sort+0x6e>
lea    0x28(%r14),%r12
lea    0x0(,%r12,8),%esi
call   1050 <realloc@plt>
test   %rax,%rax
je     126f <fts_sort+0x13f>
mov    %rax,%rdi
mov    %rax,0x8(%r15)
mov    0x2e5a(%rip),%rax
mov    (%rax),%rax
cmp    %rax,%r12
mov    %r12d,%ecx
cmova  %rax,%rcx
mov    %rcx,(%r15)
test   %rbx,%rbx
je     11c3 <fts_sort+0x93>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %rbx,(%rdi)
add    $0x8,%rdi
mov    (%rbx),%rbx
test   %rbx,%rbx
jne    11b0 <fts_sort+0x80>
mov    0x8(%r15),%rdi
mov    0x10(%r15),%rcx
mov    %r14,%rsi
mov    $0x8,%edx
call   1030 <qsort@plt>
mov    0x8(%r15),%rax
mov    (%rax),%rbx
mov    %rbx,%rcx
cmp    $0x1,%r14
je     1268 <fts_sort+0x138>
mov    0x8(%rax),%rcx
add    $0x8,%rax
mov    %rcx,(%rbx)
mov    %r14,%rcx
add    $0xfffffffffffffffe,%rcx
je     1265 <fts_sort+0x135>
add    $0xfffffffffffffffd,%r14
mov    %rcx,%r8
and    $0x3,%r8
je     122a <fts_sort+0xfa>
xor    %esi,%esi
nopl   0x0(%rax,%rax,1)
mov    (%rax),%rdi
mov    0x8(%rax),%rdx
add    $0x8,%rax
mov    %rdx,(%rdi)
add    $0x1,%rsi
cmp    %rsi,%r8
jne    1210 <fts_sort+0xe0>
sub    %rsi,%rcx
cmp    $0x3,%r14
jb     1265 <fts_sort+0x135>
mov    (%rax),%rdx
mov    0x8(%rax),%rsi
mov    %rsi,(%rdx)
mov    0x8(%rax),%rdx
mov    0x10(%rax),%rsi
mov    %rsi,(%rdx)
mov    0x10(%rax),%rdx
mov    0x18(%rax),%rsi
mov    %rsi,(%rdx)
mov    0x18(%rax),%rdx
mov    0x20(%rax),%rsi
add    $0x20,%rax
mov    %rsi,(%rdx)
add    $0xfffffffffffffffc,%rcx
jne    1230 <fts_sort+0x100>
mov    (%rax),%rcx
movq   $0x0,(%rcx)
mov    %rbx,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
%struct.TYPE_9__ = type { i64, %struct.TYPE_8__**, i64 }
%struct.TYPE_8__ = type { %struct.TYPE_8__* }
@UINT_MAX = global i64 0
define %struct.TYPE_8__* @fts_sort(%struct.TYPE_9__* %0, %struct.TYPE_8__* %1, i64 %2) {
%4 = alloca %struct.TYPE_8__*
%5 = alloca %struct.TYPE_9__*
%6 = alloca %struct.TYPE_8__*
%7 = alloca i64
%8 = alloca %struct.TYPE_8__**
%9 = alloca %struct.TYPE_8__*
%10 = alloca %struct.TYPE_8__**
store %struct.TYPE_9__* %0, %struct.TYPE_9__** %5
store %struct.TYPE_8__* %1, %struct.TYPE_8__** %6
store i64 %2, i64* %7
%11 = load %struct.TYPE_9__*, %struct.TYPE_9__** %5
%12 = icmp ne %struct.TYPE_9__* %11, null
%13 = zext i1 %12 to i32
%14 = call i32 @_DIAGASSERT(i32 %13)
%15 = load %struct.TYPE_8__*, %struct.TYPE_8__** %6
%16 = icmp ne %struct.TYPE_8__* %15, null
%17 = zext i1 %16 to i32
%18 = call i32 @_DIAGASSERT(i32 %17)
%19 = load i64, i64* %7
%20 = load %struct.TYPE_9__*, %struct.TYPE_9__** %5
%21 = getelementptr inbounds %struct.TYPE_9__, %struct.TYPE_9__* %20, i32 0, i32 0
%22 = load i64, i64* %21
%23 = icmp ugt i64 %19, %22
br i1 %23, label %24, label %56
24: ; preds = %3
%25 = load %struct.TYPE_9__*, %struct.TYPE_9__** %5
%26 = getelementptr inbounds %struct.TYPE_9__, %struct.TYPE_9__* %25, i32 0, i32 1
%27 = load %struct.TYPE_8__**, %struct.TYPE_8__*** %26
%28 = load i64, i64* %7
%29 = add i64 %28, 40
%30 = mul i64 8, %29
%31 = trunc i64 %30 to i32
%32 = call %struct.TYPE_8__** @realloc(%struct.TYPE_8__** %27, i32 %31)
store %struct.TYPE_8__** %32, %struct.TYPE_8__*** %10
%33 = load %struct.TYPE_8__**, %struct.TYPE_8__*** %10
%34 = icmp eq %struct.TYPE_8__** %33, null
br i1 %34, label %35, label %37
35: ; preds = %24
%36 = load %struct.TYPE_8__*, %struct.TYPE_8__** %6
store %struct.TYPE_8__* %36, %struct.TYPE_8__** %4
br label %108
37: ; preds = %24
%38 = load %struct.TYPE_8__**, %struct.TYPE_8__*** %10
%39 = load %struct.TYPE_9__*, %struct.TYPE_9__** %5
%40 = getelementptr inbounds %struct.TYPE_9__, %struct.TYPE_9__* %39, i32 0, i32 1
store %struct.TYPE_8__** %38, %struct.TYPE_8__*** %40
%41 = load i64, i64* %7
%42 = add i64 %41, 40
%43 = load i64, i64* @UINT_MAX
%44 = icmp ugt i64 %42, %43
br i1 %44, label %45, label %47
45: ; preds = %37
%46 = load i64, i64* @UINT_MAX
br label %52
47: ; preds = %37
%48 = load i64, i64* %7
%49 = add i64 %48, 40
%50 = trunc i64 %49 to i32
%51 = zext i32 %50 to i64
br label %52
52: ; preds = %47, %45
%53 = phi i64 [ %46, %45 ], [ %51, %47 ]
%54 = load %struct.TYPE_9__*, %struct.TYPE_9__** %5
%55 = getelementptr inbounds %struct.TYPE_9__, %struct.TYPE_9__* %54, i32 0, i32 0
store i64 %53, i64* %55
br label %56
56: ; preds = %52, %3
%57 = load %struct.TYPE_9__*, %struct.TYPE_9__** %5
%58 = getelementptr inbounds %struct.TYPE_9__, %struct.TYPE_9__* %57, i32 0, i32 1
%59 = load %struct.TYPE_8__**, %struct.TYPE_8__*** %58
store %struct.TYPE_8__** %59, %struct.TYPE_8__*** %8
%60 = load %struct.TYPE_8__*, %struct.TYPE_8__** %6
store %struct.TYPE_8__* %60, %struct.TYPE_8__** %9
br label %61
61: ; preds = %68, %56
%62 = load %struct.TYPE_8__*, %struct.TYPE_8__** %9
%63 = icmp ne %struct.TYPE_8__* %62, null
br i1 %63, label %64, label %72
64: ; preds = %61
%65 = load %struct.TYPE_8__*, %struct.TYPE_8__** %9
%66 = load %struct.TYPE_8__**, %struct.TYPE_8__*** %8
%67 = getelementptr inbounds %struct.TYPE_8__*, %struct.TYPE_8__** %66, i32 1
store %struct.TYPE_8__** %67, %struct.TYPE_8__*** %8
store %struct.TYPE_8__* %65, %struct.TYPE_8__** %66
br label %68
68: ; preds = %64
%69 = load %struct.TYPE_8__*, %struct.TYPE_8__** %9
%70 = getelementptr inbounds %struct.TYPE_8__, %struct.TYPE_8__* %69, i32 0, i32 0
%71 = load %struct.TYPE_8__*, %struct.TYPE_8__** %70
store %struct.TYPE_8__* %71, %struct.TYPE_8__** %9
br label %61
72: ; preds = %61
%73 = load %struct.TYPE_9__*, %struct.TYPE_9__** %5
%74 = getelementptr inbounds %struct.TYPE_9__, %struct.TYPE_9__* %73, i32 0, i32 1
%75 = load %struct.TYPE_8__**, %struct.TYPE_8__*** %74
%76 = bitcast %struct.TYPE_8__** %75 to i8*
%77 = load i64, i64* %7
%78 = load %struct.TYPE_9__*, %struct.TYPE_9__** %5
%79 = getelementptr inbounds %struct.TYPE_9__, %struct.TYPE_9__* %78, i32 0, i32 2
%80 = load i64, i64* %79
%81 = inttoptr i64 %80 to i32 (i8*, i8*)*
%82 = call i32 @qsort(i8* %76, i64 %77, i32 8, i32 (i8*, i8*)* %81)
%83 = load %struct.TYPE_9__*, %struct.TYPE_9__** %5
%84 = getelementptr inbounds %struct.TYPE_9__, %struct.TYPE_9__* %83, i32 0, i32 1
%85 = load %struct.TYPE_8__**, %struct.TYPE_8__*** %84
store %struct.TYPE_8__** %85, %struct.TYPE_8__*** %8
%86 = load %struct.TYPE_8__*, %struct.TYPE_8__** %85
store %struct.TYPE_8__* %86, %struct.TYPE_8__** %6
br label %87
87: ; preds = %99, %72
%88 = load i64, i64* %7
%89 = add i64 %88, -1
store i64 %89, i64* %7
%90 = icmp ne i64 %89, 0
br i1 %90, label %91, label %102
91: ; preds = %87
%92 = load %struct.TYPE_8__**, %struct.TYPE_8__*** %8
%93 = getelementptr inbounds %struct.TYPE_8__*, %struct.TYPE_8__** %92, i64 1
%94 = load %struct.TYPE_8__*, %struct.TYPE_8__** %93
%95 = load %struct.TYPE_8__**, %struct.TYPE_8__*** %8
%96 = getelementptr inbounds %struct.TYPE_8__*, %struct.TYPE_8__** %95, i64 0
%97 = load %struct.TYPE_8__*, %struct.TYPE_8__** %96
%98 = getelementptr inbounds %struct.TYPE_8__, %struct.TYPE_8__* %97, i32 0, i32 0
store %struct.TYPE_8__* %94, %struct.TYPE_8__** %98
br label %99
99: ; preds = %91
%100 = load %struct.TYPE_8__**, %struct.TYPE_8__*** %8
%101 = getelementptr inbounds %struct.TYPE_8__*, %struct.TYPE_8__** %100, i32 1
store %struct.TYPE_8__** %101, %struct.TYPE_8__*** %8
br label %87
102: ; preds = %87
%103 = load %struct.TYPE_8__**, %struct.TYPE_8__*** %8
%104 = getelementptr inbounds %struct.TYPE_8__*, %struct.TYPE_8__** %103, i64 0
%105 = load %struct.TYPE_8__*, %struct.TYPE_8__** %104
%106 = getelementptr inbounds %struct.TYPE_8__, %struct.TYPE_8__* %105, i32 0, i32 0
store %struct.TYPE_8__* null, %struct.TYPE_8__** %106
%107 = load %struct.TYPE_8__*, %struct.TYPE_8__** %6
store %struct.TYPE_8__* %107, %struct.TYPE_8__** %4
br label %108
108: ; preds = %102, %35
%109 = load %struct.TYPE_8__*, %struct.TYPE_8__** %4
ret %struct.TYPE_8__* %109
}

LLVM IR (-O2):
%struct.TYPE_9__ = type { i64, %struct.TYPE_8__**, i64 }
%struct.TYPE_8__ = type { %struct.TYPE_8__* }
@UINT_MAX = global i64 0
define %struct.TYPE_8__* @fts_sort(%struct.TYPE_9__* %0, %struct.TYPE_8__* %1, i64 %2) {
%4 = icmp ne %struct.TYPE_9__* %0, null
%5 = zext i1 %4 to i32
%6 = tail call i32 @_DIAGASSERT(i32 %5)
%7 = icmp ne %struct.TYPE_8__* %1, null
%8 = zext i1 %7 to i32
%9 = tail call i32 @_DIAGASSERT(i32 %8)
%10 = getelementptr inbounds %struct.TYPE_9__, %struct.TYPE_9__* %0, i64 0, i32 0
%11 = load i64, i64* %10
%12 = icmp ult i64 %11, %2
%13 = getelementptr inbounds %struct.TYPE_9__, %struct.TYPE_9__* %0, i64 0, i32 1
%14 = load %struct.TYPE_8__**, %struct.TYPE_8__*** %13
br i1 %12, label %15, label %26
15: ; preds = %3
%16 = add i64 %2, 40
%17 = trunc i64 %16 to i32
%18 = shl i32 %17, 3
%19 = tail call %struct.TYPE_8__** @realloc(%struct.TYPE_8__** %14, i32 %18)
%20 = icmp eq %struct.TYPE_8__** %19, null
br i1 %20, label %104, label %21
21: ; preds = %15
store %struct.TYPE_8__** %19, %struct.TYPE_8__*** %13
%22 = load i64, i64* @UINT_MAX
%23 = icmp ugt i64 %16, %22
%24 = and i64 %16, 4294967295
%25 = select i1 %23, i64 %22, i64 %24
store i64 %25, i64* %10
br label %26
26: ; preds = %3, %21
%27 = phi %struct.TYPE_8__** [ %19, %21 ], [ %14, %3 ]
%28 = getelementptr inbounds %struct.TYPE_9__, %struct.TYPE_9__* %0, i64 0, i32 1
%29 = icmp eq %struct.TYPE_8__* %1, null
br i1 %29, label %30, label %32
30: ; preds = %26
%31 = bitcast %struct.TYPE_8__** %27 to i8*
br label %42
32: ; preds = %26, %32
%33 = phi %struct.TYPE_8__* [ %37, %32 ], [ %1, %26 ]
%34 = phi %struct.TYPE_8__** [ %35, %32 ], [ %27, %26 ]
%35 = getelementptr inbounds %struct.TYPE_8__*, %struct.TYPE_8__** %34, i64 1
store %struct.TYPE_8__* %33, %struct.TYPE_8__** %34
%36 = getelementptr inbounds %struct.TYPE_8__, %struct.TYPE_8__* %33, i64 0, i32 0
%37 = load %struct.TYPE_8__*, %struct.TYPE_8__** %36
%38 = icmp eq %struct.TYPE_8__* %37, null
br i1 %38, label %39, label %32
39: ; preds = %32
%40 = bitcast %struct.TYPE_8__*** %28 to i8**
%41 = load i8*, i8** %40
br label %42
42: ; preds = %30, %39
%43 = phi i8* [ %41, %39 ], [ %31, %30 ]
%44 = getelementptr inbounds %struct.TYPE_9__, %struct.TYPE_9__* %0, i64 0, i32 2
%45 = load i64, i64* %44
%46 = inttoptr i64 %45 to i32 (i8*, i8*)*
%47 = tail call i32 @qsort(i8* %43, i64 %2, i32 8, i32 (i8*, i8*)* %46)
%48 = load %struct.TYPE_8__**, %struct.TYPE_8__*** %28
%49 = load %struct.TYPE_8__*, %struct.TYPE_8__** %48
%50 = icmp eq i64 %2, 1
br i1 %50, label %101, label %51
51: ; preds = %42
%52 = getelementptr inbounds %struct.TYPE_8__*, %struct.TYPE_8__** %48, i64 1
%53 = load %struct.TYPE_8__*, %struct.TYPE_8__** %52
%54 = getelementptr inbounds %struct.TYPE_8__, %struct.TYPE_8__* %49, i64 0, i32 0
store %struct.TYPE_8__* %53, %struct.TYPE_8__** %54
%55 = add i64 %2, -2
%56 = icmp eq i64 %55, 0
br i1 %56, label %98, label %57
57: ; preds = %51
%58 = add i64 %2, -3
%59 = and i64 %55, 3
%60 = icmp eq i64 %59, 0
br i1 %60, label %72, label %61
61: ; preds = %57, %61
%62 = phi i64 [ %69, %61 ], [ %55, %57 ]
%63 = phi %struct.TYPE_8__** [ %66, %61 ], [ %52, %57 ]
%64 = phi i64 [ %70, %61 ], [ 0, %57 ]
%65 = load %struct.TYPE_8__*, %struct.TYPE_8__** %63
%66 = getelementptr inbounds %struct.TYPE_8__*, %struct.TYPE_8__** %63, i64 1
%67 = load %struct.TYPE_8__*, %struct.TYPE_8__** %66
%68 = getelementptr inbounds %struct.TYPE_8__, %struct.TYPE_8__* %65, i64 0, i32 0
store %struct.TYPE_8__* %67, %struct.TYPE_8__** %68
%69 = add i64 %62, -1
%70 = add i64 %64, 1
%71 = icmp eq i64 %70, %59
br i1 %71, label %72, label %61
72: ; preds = %61, %57
%73 = phi %struct.TYPE_8__** [ undef, %57 ], [ %66, %61 ]
%74 = phi i64 [ %55, %57 ], [ %69, %61 ]
%75 = phi %struct.TYPE_8__** [ %52, %57 ], [ %66, %61 ]
%76 = icmp ult i64 %58, 3
br i1 %76, label %98, label %77
77: ; preds = %72, %77
%78 = phi i64 [ %96, %77 ], [ %74, %72 ]
%79 = phi %struct.TYPE_8__** [ %93, %77 ], [ %75, %72 ]
%80 = load %struct.TYPE_8__*, %struct.TYPE_8__** %79
%81 = getelementptr inbounds %struct.TYPE_8__*, %struct.TYPE_8__** %79, i64 1
%82 = load %struct.TYPE_8__*, %struct.TYPE_8__** %81
%83 = getelementptr inbounds %struct.TYPE_8__, %struct.TYPE_8__* %80, i64 0, i32 0
store %struct.TYPE_8__* %82, %struct.TYPE_8__** %83
%84 = load %struct.TYPE_8__*, %struct.TYPE_8__** %81
%85 = getelementptr inbounds %struct.TYPE_8__*, %struct.TYPE_8__** %79, i64 2
%86 = load %struct.TYPE_8__*, %struct.TYPE_8__** %85
%87 = getelementptr inbounds %struct.TYPE_8__, %struct.TYPE_8__* %84, i64 0, i32 0
store %struct.TYPE_8__* %86, %struct.TYPE_8__** %87
%88 = load %struct.TYPE_8__*, %struct.TYPE_8__** %85
%89 = getelementptr inbounds %struct.TYPE_8__*, %struct.TYPE_8__** %79, i64 3
%90 = load %struct.TYPE_8__*, %struct.TYPE_8__** %89
%91 = getelementptr inbounds %struct.TYPE_8__, %struct.TYPE_8__* %88, i64 0, i32 0
store %struct.TYPE_8__* %90, %struct.TYPE_8__** %91
%92 = load %struct.TYPE_8__*, %struct.TYPE_8__** %89
%93 = getelementptr inbounds %struct.TYPE_8__*, %struct.TYPE_8__** %79, i64 4
%94 = load %struct.TYPE_8__*, %struct.TYPE_8__** %93
%95 = getelementptr inbounds %struct.TYPE_8__, %struct.TYPE_8__* %92, i64 0, i32 0
store %struct.TYPE_8__* %94, %struct.TYPE_8__** %95
%96 = add i64 %78, -4
%97 = icmp eq i64 %96, 0
br i1 %97, label %98, label %77
98: ; preds = %72, %77, %51
%99 = phi %struct.TYPE_8__** [ %52, %51 ], [ %73, %72 ], [ %93, %77 ]
%100 = load %struct.TYPE_8__*, %struct.TYPE_8__** %99
br label %101
101: ; preds = %98, %42
%102 = phi %struct.TYPE_8__* [ %49, %42 ], [ %100, %98 ]
%103 = getelementptr inbounds %struct.TYPE_8__, %struct.TYPE_8__* %102, i64 0, i32 0
store %struct.TYPE_8__* null, %struct.TYPE_8__** %103
br label %104
104: ; preds = %15, %101
%105 = phi %struct.TYPE_8__* [ %49, %101 ], [ %1, %15 ]
ret %struct.TYPE_8__* %105
}