// File: /workspace/github_cpp_makefile_star2_O2/ambersun1234[P]AVL_Tree/./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);
  }

# elif GTEST_OS_FUCHSIA

  if (GTEST_FLAG(death_test_style) == "threadsafe" ||
      GTEST_FLAG(death_test_style) == "fast") {
    *test = new FuchsiaDeathTest(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 0x1f396
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 0x1cefb
cmpl 0x24(%r13), %eax
jge 0x1cf3c
movq %r13, %rdi
movq %r12, %rsi
callq 0xb9ef
testb %al, %al
je 0x1d00c
cmpl %ebp, 0x20(%r13)
jne 0x1d00c
cmpl %r14d, 0x24(%r13)
jne 0x1d00c
leaq 0x22a06(%rip), %rdi     # 0x3f908
leaq 0xdbed(%rip), %rsi      # 0x2aaf6
callq 0xb9ef
testb %al, %al
je 0x1d012
pushq $0x40
popq %rdi
callq 0x8480
movq %rax, %r13
movq %rax, %rdi
movq %r15, %rsi
movq 0x8(%rsp), %rdx
movq %r12, %rcx
movl %ebp, %r8d
callq 0x21c6c
jmp 0x1d044
leaq 0xb8(%rsp), %rbx
leaq 0x4(%rsp), %rsi
movq %rbx, %rdi
callq 0x20c47
leaq 0xdec0(%rip), %rsi      # 0x2ae18
leaq 0x78(%rsp), %rdi
movq %rbx, %rdx
callq 0x1ff10
leaq 0xdebf(%rip), %rdx      # 0x2ae2b
leaq 0x98(%rsp), %rdi
leaq 0x78(%rsp), %rsi
callq 0x1f33f
movl 0x24(%r13), %eax
leaq 0x34(%rsp), %rsi
movl %eax, (%rsi)
leaq 0x58(%rsp), %rdi
callq 0x20c47
leaq 0x38(%rsp), %rdi
leaq 0x98(%rsp), %rsi
leaq 0x58(%rsp), %rdx
callq 0x20be0
leaq 0xb393(%rip), %rdx      # 0x28344
leaq 0x10(%rsp), %rdi
leaq 0x38(%rsp), %rsi
callq 0x1f33f
leaq 0x10(%rsp), %rdi
callq 0x1a834
leaq 0x10(%rsp), %rdi
callq 0x8aa8
leaq 0x38(%rsp), %rdi
callq 0x8aa8
leaq 0x58(%rsp), %rdi
callq 0x8aa8
leaq 0x98(%rsp), %rdi
callq 0x8aa8
leaq 0x78(%rsp), %rdi
callq 0x8aa8
leaq 0xb8(%rsp), %rdi
jmp 0x1d093
andq $0x0, (%rbx)
jmp 0x1d047
leaq 0x228ef(%rip), %rdi     # 0x3f908
leaq 0xbe88(%rip), %rsi      # 0x28ea8
callq 0xb9ef
testb %al, %al
je 0x1d04b
pushq $0x30
popq %rdi
callq 0x8480
movq %rax, %r13
movq %rax, %rdi
movq %r15, %rsi
movq 0x8(%rsp), %rdx
callq 0x21c98
movq %r13, (%rbx)
movb $0x1, %al
jmp 0x1d09a
leaq 0xddff(%rip), %rsi      # 0x2ae51
leaq 0x228af(%rip), %rdx     # 0x3f908
leaq 0x38(%rsp), %rbx
movq %rbx, %rdi
callq 0x21cad
leaq 0xddff(%rip), %rdx      # 0x2ae6c
leaq 0x10(%rsp), %rdi
movq %rbx, %rsi
callq 0x1f33f
leaq 0x10(%rsp), %rdi
callq 0x1a834
leaq 0x10(%rsp), %rdi
callq 0x8aa8
leaq 0x38(%rsp), %rdi
callq 0x8aa8
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 0x8aa8
jmp 0x1d0be
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
jmp 0x1d130
movq %rax, %rbx
pushq $0x30
jmp 0x1d0d1
movq %rax, %rbx
pushq $0x40
popq %rsi
movq %r13, %rdi
callq 0x84b0
jmp 0x1d135
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x8aa8
jmp 0x1d0ee
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x8aa8
jmp 0x1d0fd
movq %rax, %rbx
leaq 0x58(%rsp), %rdi
callq 0x8aa8
jmp 0x1d10c
movq %rax, %rbx
leaq 0x98(%rsp), %rdi
callq 0x8aa8
jmp 0x1d11e
movq %rax, %rbx
leaq 0x78(%rsp), %rdi
callq 0x8aa8
leaq 0xb8(%rsp), %rdi
callq 0x8aa8
movq %rbx, %rdi
callq 0x8980
movq %rax, %rbx
jmp 0x1d128