#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 */

/* Type definitions */

/* Variables and functions */
size_t FSE_decompress_usingDTable_generic(void *, size_t, void const *, size_t,
                                          void const *, int);
size_t FSE_decompress_usingDTable(void *dst, size_t originalSize,
                                  const void *cSrc, size_t cSrcSize,
                                  const void *DTable, size_t fastMode) {
  if (fastMode)
    return FSE_decompress_usingDTable_generic(dst, originalSize, cSrc, cSrcSize,
                                              DTable, 1);
  return FSE_decompress_usingDTable_generic(dst, originalSize, cSrc, cSrcSize,
                                            DTable, 0);
}


x86 assembly (clang, -O0):
<FSE_decompress_usingDTable>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    %r8,-0x30(%rbp)
mov    %r9,-0x38(%rbp)
cmpq   $0x0,-0x38(%rbp)
je     1163 <FSE_decompress_usingDTable+0x53>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%rdx
mov    -0x28(%rbp),%rcx
mov    -0x30(%rbp),%r8
mov    $0x1,%r9d
call   1030 <FSE_decompress_usingDTable_generic@plt>
mov    %rax,-0x8(%rbp)
jmp    1183 <FSE_decompress_usingDTable+0x73>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%rdx
mov    -0x28(%rbp),%rcx
mov    -0x30(%rbp),%r8
xor    %r9d,%r9d
call   1030 <FSE_decompress_usingDTable_generic@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<FSE_decompress_usingDTable>:
xor    %eax,%eax
test   %r9,%r9
setne  %al
mov    %eax,%r9d
jmp    1030 <FSE_decompress_usingDTable_generic@plt>

LLVM IR (-O0):
define i64 @FSE_decompress_usingDTable(i8* %0, i64 %1, i8* %2, i64 %3, i8* %4, i64 %5) {
%7 = alloca i64
%8 = alloca i8*
%9 = alloca i64
%10 = alloca i8*
%11 = alloca i64
%12 = alloca i8*
%13 = alloca i64
store i8* %0, i8** %8
store i64 %1, i64* %9
store i8* %2, i8** %10
store i64 %3, i64* %11
store i8* %4, i8** %12
store i64 %5, i64* %13
%14 = load i64, i64* %13
%15 = icmp ne i64 %14, 0
br i1 %15, label %16, label %23
16: ; preds = %6
%17 = load i8*, i8** %8
%18 = load i64, i64* %9
%19 = load i8*, i8** %10
%20 = load i64, i64* %11
%21 = load i8*, i8** %12
%22 = call i64 @FSE_decompress_usingDTable_generic(i8* %17, i64 %18, i8* %19, i64 %20, i8* %21, i32 1)
store i64 %22, i64* %7
br label %30
23: ; preds = %6
%24 = load i8*, i8** %8
%25 = load i64, i64* %9
%26 = load i8*, i8** %10
%27 = load i64, i64* %11
%28 = load i8*, i8** %12
%29 = call i64 @FSE_decompress_usingDTable_generic(i8* %24, i64 %25, i8* %26, i64 %27, i8* %28, i32 0)
store i64 %29, i64* %7
br label %30
30: ; preds = %23, %16
%31 = load i64, i64* %7
ret i64 %31
}

LLVM IR (-O2):
define i64 @FSE_decompress_usingDTable(i8* %0, i64 %1, i8* %2, i64 %3, i8* %4, i64 %5) {
%7 = icmp ne i64 %5, 0
%8 = zext i1 %7 to i32
%9 = tail call i64 @FSE_decompress_usingDTable_generic(i8* %0, i64 %1, i8* %2, i64 %3, i8* %4, i32 %8)
ret i64 %9
}