// File: /workspace/github_cpp_makefile_star2_O2/WeihuaZhu[P]hpc_prog2/./gtest/gtest-all.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 0x1552e
movq 0x1d0(%rax), %r13
movq 0x110(%rax), %rcx
movl 0xd0(%rcx), %eax
leal 0x1(%rax), %r14d
movl %r14d, 0xd0(%rcx)
movl %r14d, 0x4(%rsp)
testq %r13, %r13
je 0x135f7
cmpl 0x24(%r13), %eax
jge 0x13638
movq %r13, %rdi
movq %r12, %rsi
callq 0x175b5
testb %al, %al
je 0x13708
cmpl %ebp, 0x20(%r13)
jne 0x13708
cmpl %r14d, 0x24(%r13)
jne 0x13708
leaq 0x1b0f2(%rip), %rdi     # 0x2e6f0
leaq 0xb9ef(%rip), %rsi      # 0x1eff4
callq 0x175b5
testb %al, %al
je 0x1370e
pushq $0x40
popq %rdi
callq 0x6430
movq %rax, %r13
movq %rax, %rdi
movq %r15, %rsi
movq 0x8(%rsp), %rdx
movq %r12, %rcx
movl %ebp, %r8d
callq 0x18362
jmp 0x13740
leaq 0xb8(%rsp), %rbx
leaq 0x4(%rsp), %rsi
movq %rbx, %rdi
callq 0x1703c
leaq 0xbc8b(%rip), %rsi      # 0x1f2df
leaq 0x78(%rsp), %rdi
movq %rbx, %rdx
callq 0x16224
leaq 0xbc8a(%rip), %rdx      # 0x1f2f2
leaq 0x98(%rsp), %rdi
leaq 0x78(%rsp), %rsi
callq 0x154d7
movl 0x24(%r13), %eax
leaq 0x34(%rsp), %rsi
movl %eax, (%rsi)
leaq 0x58(%rsp), %rdi
callq 0x1703c
leaq 0x38(%rsp), %rdi
leaq 0x98(%rsp), %rsi
leaq 0x58(%rsp), %rdx
callq 0x16fd5
leaq 0xb245(%rip), %rdx      # 0x1e8f2
leaq 0x10(%rsp), %rdi
leaq 0x38(%rsp), %rsi
callq 0x154d7
leaq 0x10(%rsp), %rdi
callq 0x110cc
leaq 0x10(%rsp), %rdi
callq 0x6a28
leaq 0x38(%rsp), %rdi
callq 0x6a28
leaq 0x58(%rsp), %rdi
callq 0x6a28
leaq 0x98(%rsp), %rdi
callq 0x6a28
leaq 0x78(%rsp), %rdi
callq 0x6a28
leaq 0xb8(%rsp), %rdi
jmp 0x1378f
andq $0x0, (%rbx)
jmp 0x13743
leaq 0x1afdb(%rip), %rdi     # 0x2e6f0
leaq 0x9e6c(%rip), %rsi      # 0x1d588
callq 0x175b5
testb %al, %al
je 0x13747
pushq $0x30
popq %rdi
callq 0x6430
movq %rax, %r13
movq %rax, %rdi
movq %r15, %rsi
movq 0x8(%rsp), %rdx
callq 0x1838e
movq %r13, (%rbx)
movb $0x1, %al
jmp 0x13796
leaq 0xbbca(%rip), %rsi      # 0x1f318
leaq 0x1af9b(%rip), %rdx     # 0x2e6f0
leaq 0x38(%rsp), %rbx
movq %rbx, %rdi
callq 0x183a3
leaq 0xbbca(%rip), %rdx      # 0x1f333
leaq 0x10(%rsp), %rdi
movq %rbx, %rsi
callq 0x154d7
leaq 0x10(%rsp), %rdi
callq 0x110cc
leaq 0x10(%rsp), %rdi
callq 0x6a28
leaq 0x38(%rsp), %rdi
callq 0x6a28
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 0x6a28
jmp 0x137ba
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
jmp 0x1382c
movq %rax, %rbx
pushq $0x30
jmp 0x137cd
movq %rax, %rbx
pushq $0x40
popq %rsi
movq %r13, %rdi
callq 0x6460
jmp 0x13831
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x6a28
jmp 0x137ea
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x6a28
jmp 0x137f9
movq %rax, %rbx
leaq 0x58(%rsp), %rdi
callq 0x6a28
jmp 0x13808
movq %rax, %rbx
leaq 0x98(%rsp), %rdi
callq 0x6a28
jmp 0x1381a
movq %rax, %rbx
leaq 0x78(%rsp), %rdi
callq 0x6a28
leaq 0xb8(%rsp), %rdi
callq 0x6a28
movq %rbx, %rdi
callq 0x6900
movq %rax, %rbx
jmp 0x13824