#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_3__ TYPE_1__;

/* Type definitions */
struct _ftsent {
  struct _ftsent *fts_link;
};
struct TYPE_3__ {
  int fts_nitems;
  struct _ftsent **fts_array;
  int /*<<< orphan*/ fts_compar;
};
typedef struct _ftsent FTSENT;
typedef TYPE_1__ FTS;

/* Variables and functions */
int /*<<< orphan*/ free(struct _ftsent **);
int /*<<< orphan*/ qsort(void *, int, int, int /*<<< orphan*/);
struct _ftsent **realloc(struct _ftsent **, int);
FTSENT *fts_sort(FTS *sp, FTSENT *head, int nitems) {
  FTSENT **ap, *p;
  if (nitems > sp->fts_nitems) {
    struct _ftsent **a;
    sp->fts_nitems = nitems + 40;
    if ((a = realloc(sp->fts_array, sp->fts_nitems * sizeof(FTSENT *))) ==
        NULL) {
      if (sp->fts_array)
        free(sp->fts_array);
      sp->fts_array = NULL;
      sp->fts_nitems = 0;
      return (head);
    }
    sp->fts_array = a;
  }
  for (ap = sp->fts_array, p = head; p; p = p->fts_link)
    *ap++ = p;
  qsort((void *)sp->fts_array, nitems, sizeof(FTSENT *), 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    %edx,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
mov    -0x10(%rbp),%rcx
cmp    (%rcx),%eax
jle    11d1 <fts_sort+0xa1>
mov    -0x1c(%rbp),%ecx
add    $0x28,%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
mov    -0x10(%rbp),%rax
movslq (%rax),%rax
shl    $0x3,%rax
mov    %eax,%esi
call   1050 <realloc@plt>
mov    %rax,-0x38(%rbp)
cmp    $0x0,%rax
jne    11c5 <fts_sort+0x95>
mov    -0x10(%rbp),%rax
cmpq   $0x0,0x8(%rax)
je     11a2 <fts_sort+0x72>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1030 <free@plt>
mov    -0x10(%rbp),%rax
movq   $0x0,0x8(%rax)
mov    -0x10(%rbp),%rax
movl   $0x0,(%rax)
mov    -0x18(%rbp),%rax
mov    %rax,-0x8(%rbp)
jmp    1290 <fts_sort+0x160>
mov    -0x38(%rbp),%rcx
mov    -0x10(%rbp),%rax
mov    %rcx,0x8(%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     1216 <fts_sort+0xe6>
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    11e5 <fts_sort+0xb5>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
mov    -0x1c(%rbp),%esi
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%ecx
mov    $0x8,%edx
call   1040 <qsort@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x28(%rbp)
mov    (%rax),%rax
mov    %rax,-0x18(%rbp)
mov    -0x1c(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x1c(%rbp)
cmp    $0x0,%eax
je     127a <fts_sort+0x14a>
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    1245 <fts_sort+0x115>
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   %rbx
mov    %edx,%r14d
mov    %rsi,%rbx
mov    %rdi,%r15
cmp    %edx,(%rdi)
jge    1171 <fts_sort+0x41>
lea    0x28(%r14),%eax
mov    %eax,(%r15)
mov    0x8(%r15),%rdi
lea    0x140(,%r14,8),%esi
call   1050 <realloc@plt>
test   %rax,%rax
je     1257 <fts_sort+0x127>
mov    %rax,%rdi
mov    %rax,0x8(%r15)
test   %rbx,%rbx
jne    1180 <fts_sort+0x50>
jmp    1193 <fts_sort+0x63>
mov    0x8(%r15),%rdi
test   %rbx,%rbx
je     1193 <fts_sort+0x63>
nopw   0x0(%rax,%rax,1)
mov    %rbx,(%rdi)
add    $0x8,%rdi
mov    (%rbx),%rbx
test   %rbx,%rbx
jne    1180 <fts_sort+0x50>
mov    0x8(%r15),%rdi
mov    0x10(%r15),%ecx
mov    %r14d,%esi
mov    $0x8,%edx
call   1040 <qsort@plt>
mov    0x8(%r15),%rax
mov    (%rax),%rbx
mov    %rbx,%rcx
cmp    $0x1,%r14d
je     1247 <fts_sort+0x117>
mov    0x8(%rax),%rcx
add    $0x8,%rax
mov    %rcx,(%rbx)
mov    %r14d,%ecx
add    $0xfffffffe,%ecx
je     1244 <fts_sort+0x114>
lea    -0x3(%r14),%r8d
test   $0x3,%cl
je     1209 <fts_sort+0xd9>
add    $0x2,%r14b
movzbl %r14b,%r9d
and    $0x3,%r9d
xor    %edi,%edi
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    (%rax),%rdx
mov    0x8(%rax),%rsi
add    $0x8,%rax
mov    %rsi,(%rdx)
add    $0x1,%rdi
cmp    %edi,%r9d
jne    11f0 <fts_sort+0xc0>
sub    %edi,%ecx
cmp    $0x3,%r8d
jb     1244 <fts_sort+0x114>
nop
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    $0xfffffffc,%ecx
jne    1210 <fts_sort+0xe0>
mov    (%rax),%rcx
movq   $0x0,(%rcx)
mov    %rbx,%rax
pop    %rbx
pop    %r14
pop    %r15
ret
mov    0x8(%r15),%rdi
test   %rdi,%rdi
je     1265 <fts_sort+0x135>
call   1030 <free@plt>
movq   $0x0,0x8(%r15)
movl   $0x0,(%r15)
jmp    124e <fts_sort+0x11e>

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

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