// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x1a0, %rsp            # imm = 0x1A0
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movl %r8d, -0x2c(%rbp)
movq %r9, -0x38(%rbp)
callq 0x30ae0
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rdi
callq 0x37f40
movq %rax, -0x48(%rbp)
movq -0x40(%rbp), %rdi
callq 0x33da0
movq %rax, %rdi
callq 0x386a0
movl %eax, -0x4c(%rbp)
cmpq $0x0, -0x48(%rbp)
je 0x2c9e9
movl -0x4c(%rbp), %eax
movl %eax, -0x16c(%rbp)
movq -0x48(%rbp), %rdi
callq 0x386d0
movl %eax, %ecx
movl -0x16c(%rbp), %eax
cmpl %ecx, %eax
jle 0x2c99c
leaq -0xf0(%rbp), %rdi
movq %rdi, -0x178(%rbp)
leaq -0x4c(%rbp), %rsi
callq 0x35870
movq -0x178(%rbp), %rdx
leaq 0x5ef0a(%rip), %rsi     # 0x8b6f9
leaq -0xd0(%rbp), %rdi
callq 0x32f30
jmp 0x2c7fd
leaq 0x5ef08(%rip), %rdx     # 0x8b70c
leaq -0xb0(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
callq 0x30980
jmp 0x2c819
movq -0x48(%rbp), %rdi
callq 0x386d0
movl %eax, -0x17c(%rbp)
jmp 0x2c82a
movl -0x17c(%rbp), %eax
movl %eax, -0x124(%rbp)
leaq -0x120(%rbp), %rdi
leaq -0x124(%rbp), %rsi
callq 0x35870
jmp 0x2c84b
leaq -0x90(%rbp), %rdi
leaq -0xb0(%rbp), %rsi
leaq -0x120(%rbp), %rdx
callq 0x357a0
jmp 0x2c867
leaq 0x62128(%rip), %rdx     # 0x8e996
leaq -0x70(%rbp), %rdi
leaq -0x90(%rbp), %rsi
callq 0x30980
jmp 0x2c880
leaq -0x70(%rbp), %rdi
callq 0x27ca0
jmp 0x2c88b
leaq -0x70(%rbp), %rdi
callq 0xf058
leaq -0x90(%rbp), %rdi
callq 0xf058
leaq -0x120(%rbp), %rdi
callq 0xf058
leaq -0xb0(%rbp), %rdi
callq 0xf058
leaq -0xd0(%rbp), %rdi
callq 0xf058
leaq -0xf0(%rbp), %rdi
callq 0xf058
movb $0x0, -0x1(%rbp)
jmp 0x2cb94
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xf8(%rbp)
movl %eax, -0xfc(%rbp)
jmp 0x2c98b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xf8(%rbp)
movl %eax, -0xfc(%rbp)
jmp 0x2c97f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xf8(%rbp)
movl %eax, -0xfc(%rbp)
jmp 0x2c973
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xf8(%rbp)
movl %eax, -0xfc(%rbp)
jmp 0x2c967
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xf8(%rbp)
movl %eax, -0xfc(%rbp)
jmp 0x2c95b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xf8(%rbp)
movl %eax, -0xfc(%rbp)
leaq -0x70(%rbp), %rdi
callq 0xf058
leaq -0x90(%rbp), %rdi
callq 0xf058
leaq -0x120(%rbp), %rdi
callq 0xf058
leaq -0xb0(%rbp), %rdi
callq 0xf058
leaq -0xd0(%rbp), %rdi
callq 0xf058
leaq -0xf0(%rbp), %rdi
callq 0xf058
jmp 0x2cba2
movq -0x48(%rbp), %rdi
callq 0x386f0
movq %rax, %rdi
movq -0x28(%rbp), %rsi
callq 0x36ab0
testb $0x1, %al
jne 0x2c9b7
jmp 0x2c9d3
movq -0x48(%rbp), %rdi
callq 0x38700
cmpl -0x2c(%rbp), %eax
jne 0x2c9d3
movq -0x48(%rbp), %rdi
callq 0x386d0
cmpl -0x4c(%rbp), %eax
je 0x2c9e7
movq -0x38(%rbp), %rax
movq $0x0, (%rax)
movb $0x1, -0x1(%rbp)
jmp 0x2cb94
jmp 0x2c9e9
leaq 0x950a0(%rip), %rdi     # 0xc1a90
leaq 0x5e9e0(%rip), %rsi     # 0x8b3d7
callq 0x36ab0
testb $0x1, %al
jne 0x2ca02
jmp 0x2ca6b
movl $0x40, %edi
callq 0xe770
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x188(%rbp)
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
movq -0x28(%rbp), %rcx
movl -0x2c(%rbp), %r8d
callq 0x38720
jmp 0x2ca30
movq -0x188(%rbp), %rcx
movq -0x38(%rbp), %rax
movq %rcx, (%rax)
jmp 0x2cb90
movq -0x188(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xf8(%rbp)
movl %eax, -0xfc(%rbp)
movl $0x40, %esi
callq 0xe7a0
jmp 0x2cba2
leaq 0x9501e(%rip), %rdi     # 0xc1a90
leaq 0x5ecb9(%rip), %rsi     # 0x8b732
callq 0x36ab0
testb $0x1, %al
jne 0x2ca84
jmp 0x2cae5
movl $0x30, %edi
callq 0xe770
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x190(%rbp)
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
callq 0x38780
jmp 0x2caaa
movq -0x190(%rbp), %rcx
movq -0x38(%rbp), %rax
movq %rcx, (%rax)
jmp 0x2cb8e
movq -0x190(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xf8(%rbp)
movl %eax, -0xfc(%rbp)
movl $0x30, %esi
callq 0xe7a0
jmp 0x2cba2
leaq 0x5ec4b(%rip), %rsi     # 0x8b737
leaq 0x94f9d(%rip), %rdx     # 0xc1a90
leaq -0x168(%rbp), %rdi
movq %rdi, -0x198(%rbp)
callq 0x387d0
movq -0x198(%rbp), %rsi
leaq 0x5ec3e(%rip), %rdx     # 0x8b752
leaq -0x148(%rbp), %rdi
callq 0x30980
jmp 0x2cb22
leaq -0x148(%rbp), %rdi
callq 0x27ca0
jmp 0x2cb30
leaq -0x148(%rbp), %rdi
callq 0xf058
leaq -0x168(%rbp), %rdi
callq 0xf058
movb $0x0, -0x1(%rbp)
jmp 0x2cb94
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xf8(%rbp)
movl %eax, -0xfc(%rbp)
jmp 0x2cb80
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xf8(%rbp)
movl %eax, -0xfc(%rbp)
leaq -0x148(%rbp), %rdi
callq 0xf058
leaq -0x168(%rbp), %rdi
callq 0xf058
jmp 0x2cba2
jmp 0x2cb90
movb $0x1, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x1a0, %rsp            # imm = 0x1A0
popq %rbp
retq
movq -0xf8(%rbp), %rdi
callq 0xee80
nop