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

/* Type definitions */
struct TYPE_4__ {
  scalar_t__ fts_info;
};
typedef TYPE_1__ FTSENT;

/* Variables and functions */
scalar_t__ FTS_F;
int byType(const FTSENT **a, const FTSENT **b) {
  if (((*a)->fts_info == FTS_F) && ((*b)->fts_info != FTS_F))
    return -1;
  else if (((*a)->fts_info != FTS_F) && ((*b)->fts_info == FTS_F))
    return 1;
  return 0;
}


x86 assembly (clang, -O0):
<byType>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
mov    (%rax),%rax
mov    0x2ecb(%rip),%rcx
cmp    (%rcx),%rax
jne    114c <byType+0x4c>
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
mov    (%rax),%rax
mov    0x2eb1(%rip),%rcx
cmp    (%rcx),%rax
je     114c <byType+0x4c>
movl   $0xffffffff,-0x4(%rbp)
jmp    1198 <byType+0x98>
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
mov    (%rax),%rax
mov    0x2e8b(%rip),%rcx
cmp    (%rcx),%rax
je     118c <byType+0x8c>
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
mov    (%rax),%rax
mov    0x2e71(%rip),%rcx
cmp    (%rcx),%rax
jne    118c <byType+0x8c>
movl   $0x1,-0x4(%rbp)
jmp    1198 <byType+0x98>
jmp    1191 <byType+0x91>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<byType>:
mov    (%rdi),%rax
mov    (%rax),%rcx
mov    0x2edb(%rip),%rax
mov    (%rax),%rdx
mov    (%rsi),%rax
mov    (%rax),%rsi
cmp    %rdx,%rcx
jne    1127 <byType+0x27>
mov    $0xffffffff,%eax
cmp    %rcx,%rsi
je     1131 <byType+0x31>
jmp    1133 <byType+0x33>
mov    $0x1,%eax
cmp    %rdx,%rsi
je     1133 <byType+0x33>
xor    %eax,%eax
ret

LLVM IR (-O0):
%struct.TYPE_4__ = type { i64 }
@FTS_F = global i64 0
define i32 @byType(%struct.TYPE_4__** %0, %struct.TYPE_4__** %1) {
%3 = alloca i32
%4 = alloca %struct.TYPE_4__**
%5 = alloca %struct.TYPE_4__**
store %struct.TYPE_4__** %0, %struct.TYPE_4__*** %4
store %struct.TYPE_4__** %1, %struct.TYPE_4__*** %5
%6 = load %struct.TYPE_4__**, %struct.TYPE_4__*** %4
%7 = load %struct.TYPE_4__*, %struct.TYPE_4__** %6
%8 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %7, i32 0, i32 0
%9 = load i64, i64* %8
%10 = load i64, i64* @FTS_F
%11 = icmp eq i64 %9, %10
br i1 %11, label %12, label %20
12: ; preds = %2
%13 = load %struct.TYPE_4__**, %struct.TYPE_4__*** %5
%14 = load %struct.TYPE_4__*, %struct.TYPE_4__** %13
%15 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %14, i32 0, i32 0
%16 = load i64, i64* %15
%17 = load i64, i64* @FTS_F
%18 = icmp ne i64 %16, %17
br i1 %18, label %19, label %20
19: ; preds = %12
store i32 -1, i32* %3
br label %37
20: ; preds = %12, %2
%21 = load %struct.TYPE_4__**, %struct.TYPE_4__*** %4
%22 = load %struct.TYPE_4__*, %struct.TYPE_4__** %21
%23 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %22, i32 0, i32 0
%24 = load i64, i64* %23
%25 = load i64, i64* @FTS_F
%26 = icmp ne i64 %24, %25
br i1 %26, label %27, label %35
27: ; preds = %20
%28 = load %struct.TYPE_4__**, %struct.TYPE_4__*** %5
%29 = load %struct.TYPE_4__*, %struct.TYPE_4__** %28
%30 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %29, i32 0, i32 0
%31 = load i64, i64* %30
%32 = load i64, i64* @FTS_F
%33 = icmp eq i64 %31, %32
br i1 %33, label %34, label %35
34: ; preds = %27
store i32 1, i32* %3
br label %37
35: ; preds = %27, %20
br label %36
36: ; preds = %35
store i32 0, i32* %3
br label %37
37: ; preds = %36, %34, %19
%38 = load i32, i32* %3
ret i32 %38
}

LLVM IR (-O2):
%struct.TYPE_4__ = type { i64 }
@FTS_F = global i64 0
define i32 @byType(%struct.TYPE_4__** nocapture %0, %struct.TYPE_4__** nocapture %1) {
%3 = load %struct.TYPE_4__*, %struct.TYPE_4__** %0
%4 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %3, i64 0, i32 0
%5 = load i64, i64* %4
%6 = load i64, i64* @FTS_F
%7 = icmp eq i64 %5, %6
%8 = load %struct.TYPE_4__*, %struct.TYPE_4__** %1
%9 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %8, i64 0, i32 0
%10 = load i64, i64* %9
br i1 %7, label %11, label %13
11: ; preds = %2
%12 = icmp eq i64 %10, %5
br i1 %12, label %15, label %16
13: ; preds = %2
%14 = icmp eq i64 %10, %6
br i1 %14, label %16, label %15
15: ; preds = %11, %13
br label %16
16: ; preds = %13, %11, %15
%17 = phi i32 [ 0, %15 ], [ -1, %11 ], [ 1, %13 ]
ret i32 %17
}