#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 */
int /*<<< orphan*/ global_die(int);
int /*<<< orphan*/ log_9_(int, int /*<<< orphan*/, char const *,
                          unsigned long long, char const *, char *,
                          char const *, char *, char const *,
                          int /*<<< orphan*/, int /*<<< orphan*/,
                          int /*<<< orphan*/, int /*<<< orphan*/);
void die_fatal_(const char *fn, unsigned long long line, const char *trouble,
                const char *d, const char *f) {
  if (d) {
    if (f)
      log_9_(1, 0, fn, line, trouble, " ", d, "/", f, 0, 0, 0, 0);
    else
      log_9_(1, 0, fn, line, trouble, " ", d, 0, 0, 0, 0, 0, 0);
  } else {
    log_9_(1, 0, fn, line, trouble, 0, 0, 0, 0, 0, 0, 0, 0);
  }
  global_die(111);
}


x86 assembly (clang, -O0):
<die_fatal_>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
cmpq   $0x0,-0x20(%rbp)
je     1214 <die_fatal_+0xf4>
cmpq   $0x0,-0x28(%rbp)
je     11b3 <die_fatal_+0x93>
mov    -0x8(%rbp),%rdx
mov    -0x10(%rbp),%rcx
mov    -0x18(%rbp),%r8
mov    -0x20(%rbp),%r11
mov    -0x28(%rbp),%rax
mov    $0x1,%edi
xor    %esi,%esi
lea    0xe8c(%rip),%r9
lea    0xe87(%rip),%r10
mov    %r11,(%rsp)
mov    %r10,0x8(%rsp)
mov    %rax,0x10(%rsp)
movl   $0x0,0x18(%rsp)
movl   $0x0,0x20(%rsp)
movl   $0x0,0x28(%rsp)
movl   $0x0,0x30(%rsp)
call   1030 <log_9_@plt>
jmp    120f <die_fatal_+0xef>
mov    -0x8(%rbp),%rdx
mov    -0x10(%rbp),%rcx
mov    -0x18(%rbp),%r8
mov    -0x20(%rbp),%rax
mov    $0x1,%edi
xor    %esi,%esi
lea    0xe2f(%rip),%r9
xor    %r10d,%r10d
mov    %rax,(%rsp)
movq   $0x0,0x8(%rsp)
movq   $0x0,0x10(%rsp)
movl   $0x0,0x18(%rsp)
movl   $0x0,0x20(%rsp)
movl   $0x0,0x28(%rsp)
movl   $0x0,0x30(%rsp)
call   1030 <log_9_@plt>
jmp    126b <die_fatal_+0x14b>
mov    -0x8(%rbp),%rdx
mov    -0x10(%rbp),%rcx
mov    -0x18(%rbp),%r8
mov    $0x1,%edi
xor    %esi,%esi
xor    %eax,%eax
mov    %eax,%r9d
movq   $0x0,(%rsp)
movq   $0x0,0x8(%rsp)
movq   $0x0,0x10(%rsp)
movl   $0x0,0x18(%rsp)
movl   $0x0,0x20(%rsp)
movl   $0x0,0x28(%rsp)
movl   $0x0,0x30(%rsp)
call   1030 <log_9_@plt>
mov    $0x6f,%edi
call   1040 <global_die@plt>
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<die_fatal_>:
push   %rax
mov    %r8,%r10
mov    %rcx,%rax
mov    %rdx,%r8
mov    %rsi,%rcx
mov    %rdi,%rdx
test   %rax,%rax
je     1162 <die_fatal_+0x42>
test   %r10,%r10
je     11a2 <die_fatal_+0x82>
sub    $0x8,%rsp
lea    0xebd(%rip),%r11
lea    0xeb4(%rip),%r9
mov    $0x1,%edi
xor    %esi,%esi
push   $0x0
push   $0x0
push   $0x0
push   $0x0
push   %r10
push   %r11
push   %rax
jmp    11e0 <die_fatal_+0xc0>
sub    $0x40,%rsp
xorps  %xmm0,%xmm0
movups %xmm0,(%rsp)
movl   $0x0,0x30(%rsp)
movl   $0x0,0x28(%rsp)
movl   $0x0,0x20(%rsp)
movl   $0x0,0x18(%rsp)
movq   $0x0,0x10(%rsp)
mov    $0x1,%edi
xor    %esi,%esi
xor    %r9d,%r9d
jmp    11e0 <die_fatal_+0xc0>
sub    $0x40,%rsp
xorps  %xmm0,%xmm0
movups %xmm0,0x8(%rsp)
mov    %rax,(%rsp)
movl   $0x0,0x30(%rsp)
movl   $0x0,0x28(%rsp)
movl   $0x0,0x20(%rsp)
movl   $0x0,0x18(%rsp)
lea    0xe27(%rip),%r9
mov    $0x1,%edi
xor    %esi,%esi
call   1030 <log_9_@plt>
add    $0x40,%rsp
mov    $0x6f,%edi
pop    %rax
jmp    1040 <global_die@plt>

LLVM IR (-O0):
@.str = [2 x i8] c" \00"
@.str.1 = [2 x i8] c"/\00"
define void @die_fatal_(i8* %0, i64 %1, i8* %2, i8* %3, i8* %4) {
%6 = alloca i8*
%7 = alloca i64
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i8*
store i8* %0, i8** %6
store i64 %1, i64* %7
store i8* %2, i8** %8
store i8* %3, i8** %9
store i8* %4, i8** %10
%11 = load i8*, i8** %9
%12 = icmp ne i8* %11, null
br i1 %12, label %13, label %30
13: ; preds = %5
%14 = load i8*, i8** %10
%15 = icmp ne i8* %14, null
br i1 %15, label %16, label %23
16: ; preds = %13
%17 = load i8*, i8** %6
%18 = load i64, i64* %7
%19 = load i8*, i8** %8
%20 = load i8*, i8** %9
%21 = load i8*, i8** %10
%22 = call i32 @log_9_(i32 1, i32 0, i8* %17, i64 %18, i8* %19, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* %20, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i8* %21, i32 0, i32 0, i32 0, i32 0)
br label %29
23: ; preds = %13
%24 = load i8*, i8** %6
%25 = load i64, i64* %7
%26 = load i8*, i8** %8
%27 = load i8*, i8** %9
%28 = call i32 @log_9_(i32 1, i32 0, i8* %24, i64 %25, i8* %26, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* %27, i8* null, i8* null, i32 0, i32 0, i32 0, i32 0)
br label %29
29: ; preds = %23, %16
br label %35
30: ; preds = %5
%31 = load i8*, i8** %6
%32 = load i64, i64* %7
%33 = load i8*, i8** %8
%34 = call i32 @log_9_(i32 1, i32 0, i8* %31, i64 %32, i8* %33, i8* null, i8* null, i8* null, i8* null, i32 0, i32 0, i32 0, i32 0)
br label %35
35: ; preds = %30, %29
%36 = call i32 @global_die(i32 111)
ret void
}

LLVM IR (-O2):
@.str = [2 x i8] c" \00"
@.str.1 = [2 x i8] c"/\00"
define void @die_fatal_(i8* %0, i64 %1, i8* %2, i8* %3, i8* %4) {
%6 = icmp eq i8* %3, null
br i1 %6, label %13, label %7
7: ; preds = %5
%8 = icmp eq i8* %4, null
br i1 %8, label %11, label %9
9: ; preds = %7
%10 = tail call i32 @log_9_(i32 1, i32 0, i8* %0, i64 %1, i8* %2, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* %3, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i8* %4, i32 0, i32 0, i32 0, i32 0)
br label %15
11: ; preds = %7
%12 = tail call i32 @log_9_(i32 1, i32 0, i8* %0, i64 %1, i8* %2, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* %3, i8* null, i8* null, i32 0, i32 0, i32 0, i32 0)
br label %15
13: ; preds = %5
%14 = tail call i32 @log_9_(i32 1, i32 0, i8* %0, i64 %1, i8* %2, i8* null, i8* null, i8* null, i8* null, i32 0, i32 0, i32 0, i32 0)
br label %15
15: ; preds = %9, %11, %13
%16 = tail call i32 @global_die(i32 111)
ret void
}