// File: /workspace/github_c_makefile_star2_O2/deplinenoise[P]tundra/unittest/googletest/googletest/src/gtest-death-test.cc
// Function: testing::internal::DefaultDeathTestFactory::Create(char const*, testing::internal::RE const*, char const*, int, testing::internal::DeathTest**)
bool DefaultDeathTestFactory::Create(const char* statement, const RE* regex,
                                     const char* file, int line,
                                     DeathTest** test) {
  UnitTestImpl* const impl = GetUnitTestImpl();
  const InternalRunDeathTestFlag* const flag =
      impl->internal_run_death_test_flag();
  const int death_test_index = impl->current_test_info()
      ->increment_death_test_count();

  if (flag != NULL) {
    if (death_test_index > flag->index()) {
      DeathTest::set_last_death_test_message(
          "Death test count (" + StreamableToString(death_test_index)
          + ") somehow exceeded expected maximum ("
          + StreamableToString(flag->index()) + ")");
      return false;
    }

    if (!(flag->file() == file && flag->line() == line &&
          flag->index() == death_test_index)) {
      *test = NULL;
      return true;
    }
  }

# if GTEST_OS_WINDOWS

  if (GTEST_FLAG(death_test_style) == "threadsafe" ||
      GTEST_FLAG(death_test_style) == "fast") {
    *test = new WindowsDeathTest(statement, regex, file, line);
  }

# else

  if (GTEST_FLAG(death_test_style) == "threadsafe") {
    *test = new ExecDeathTest(statement, regex, file, line);
  } else if (GTEST_FLAG(death_test_style) == "fast") {
    *test = new NoExecDeathTest(statement, regex);
  }

# endif  // GTEST_OS_WINDOWS

  else {  // NOLINT - this is more readable than unbalanced brackets inside #if.
    DeathTest::set_last_death_test_message(
        "Unknown death test style \"" + GTEST_FLAG(death_test_style)
        + "\" encountered");
    return false;
  }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movq %r9, %rbx
movl %r8d, %ebp
movq %rcx, %r12
movq %rdx, 0x8(%rsp)
movq %rsi, %r15
callq 0x1f568
movq 0x1d0(%rax), %r13
movq 0x110(%rax), %rcx
movl 0xf8(%rcx), %eax
leal 0x1(%rax), %r14d
movl %r14d, 0xf8(%rcx)
movl %r14d, 0x4(%rsp)
testq %r13, %r13
je 0x1d6c3
cmpl 0x24(%r13), %eax
jge 0x1d704
movq %r13, %rdi
movq %r12, %rsi
callq 0x216cd
testb %al, %al
je 0x1d7d4
cmpl %ebp, 0x20(%r13)
jne 0x1d7d4
cmpl %r14d, 0x24(%r13)
jne 0x1d7d4
leaq 0x4c1f6(%rip), %rdi     # 0x698c0
leaq 0x27758(%rip), %rsi     # 0x44e29
callq 0x216cd
testb %al, %al
je 0x1d7da
pushq $0x40
popq %rdi
callq 0xd600
movq %rax, %r13
movq %rax, %rdi
movq %r15, %rsi
movq 0x8(%rsp), %rdx
movq %r12, %rcx
movl %ebp, %r8d
callq 0x22096
jmp 0x1d80c
leaq 0xb8(%rsp), %rbx
leaq 0x4(%rsp), %rsi
movq %rbx, %rdi
callq 0x21107
leaq 0x27a2b(%rip), %rsi     # 0x4514b
leaq 0x78(%rsp), %rdi
movq %rbx, %rdx
callq 0x2044e
leaq 0x27a2a(%rip), %rdx     # 0x4515e
leaq 0x98(%rsp), %rdi
leaq 0x78(%rsp), %rsi
callq 0x1f511
movl 0x24(%r13), %eax
leaq 0x34(%rsp), %rsi
movl %eax, (%rsi)
leaq 0x58(%rsp), %rdi
callq 0x21107
leaq 0x38(%rsp), %rdi
leaq 0x98(%rsp), %rsi
leaq 0x58(%rsp), %rdx
callq 0x210a0
leaq 0x2ac6d(%rip), %rdx     # 0x483e6
leaq 0x10(%rsp), %rdi
leaq 0x38(%rsp), %rsi
callq 0x1f511
leaq 0x10(%rsp), %rdi
callq 0x1b01e
leaq 0x10(%rsp), %rdi
callq 0xdd68
leaq 0x38(%rsp), %rdi
callq 0xdd68
leaq 0x58(%rsp), %rdi
callq 0xdd68
leaq 0x98(%rsp), %rdi
callq 0xdd68
leaq 0x78(%rsp), %rdi
callq 0xdd68
leaq 0xb8(%rsp), %rdi
jmp 0x1d85b
andq $0x0, (%rbx)
jmp 0x1d80f
leaq 0x4c0df(%rip), %rdi     # 0x698c0
leaq 0x25b1c(%rip), %rsi     # 0x43304
callq 0x216cd
testb %al, %al
je 0x1d813
pushq $0x30
popq %rdi
callq 0xd600
movq %rax, %r13
movq %rax, %rdi
movq %r15, %rsi
movq 0x8(%rsp), %rdx
callq 0x220c2
movq %r13, (%rbx)
movb $0x1, %al
jmp 0x1d862
leaq 0x2796a(%rip), %rsi     # 0x45184
leaq 0x4c09f(%rip), %rdx     # 0x698c0
leaq 0x38(%rsp), %rbx
movq %rbx, %rdi
callq 0x220d7
leaq 0x2796a(%rip), %rdx     # 0x4519f
leaq 0x10(%rsp), %rdi
movq %rbx, %rsi
callq 0x1f511
leaq 0x10(%rsp), %rdi
callq 0x1b01e
leaq 0x10(%rsp), %rdi
callq 0xdd68
leaq 0x38(%rsp), %rdi
callq 0xdd68
xorl %eax, %eax
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0xdd68
jmp 0x1d886
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
jmp 0x1d8f8
movq %rax, %rbx
pushq $0x30
jmp 0x1d899
movq %rax, %rbx
pushq $0x40
popq %rsi
movq %r13, %rdi
callq 0xd630
jmp 0x1d8fd
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0xdd68
jmp 0x1d8b6
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0xdd68
jmp 0x1d8c5
movq %rax, %rbx
leaq 0x58(%rsp), %rdi
callq 0xdd68
jmp 0x1d8d4
movq %rax, %rbx
leaq 0x98(%rsp), %rdi
callq 0xdd68
jmp 0x1d8e6
movq %rax, %rbx
leaq 0x78(%rsp), %rdi
callq 0xdd68
leaq 0xb8(%rsp), %rdi
callq 0xdd68
movq %rbx, %rdi
callq 0xdbf0
movq %rax, %rbx
jmp 0x1d8f0