// File: /workspace/github_cpp_makefile_star2_O1/halfflat[P]tinyopt/test/googletest/googletest/src/gtest-death-test.cc
// Function: testing::internal::DefaultDeathTestFactory::Create(char const*, testing::Matcher<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&>, char const*, int, testing::internal::DeathTest**)
bool DefaultDeathTestFactory::Create(const char* statement,
                                     Matcher<const std::string&> matcher,
                                     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 != nullptr) {
    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 = nullptr;
      return true;
    }
  }

#ifdef GTEST_OS_WINDOWS

  if (GTEST_FLAG_GET(death_test_style) == "threadsafe" ||
      GTEST_FLAG_GET(death_test_style) == "fast") {
    *test = new WindowsDeathTest(statement, std::move(matcher), file, line);
  }

#elif defined(GTEST_OS_FUCHSIA)

  if (GTEST_FLAG_GET(death_test_style) == "threadsafe" ||
      GTEST_FLAG_GET(death_test_style) == "fast") {
    *test = new FuchsiaDeathTest(statement, std::move(matcher), file, line);
  }

#else

  if (GTEST_FLAG_GET(death_test_style) == "threadsafe") {
    *test = new ExecDeathTest(statement, std::move(matcher), file, line);
  } else if (GTEST_FLAG_GET(death_test_style) == "fast") {
    *test = new NoExecDeathTest(statement, std::move(matcher));
  }

#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_GET(death_test_style) +
                                           "\" encountered");
    return false;
  }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movq %r9, %rbx
movl %r8d, %ebp
movq %rcx, %r13
movq %rdx, %r12
movq %rsi, %r15
callq 0x4a8ea
movq 0x5146e(%rip), %rax     # 0x969e0
movq 0x238(%rax), %r14
movq 0x170(%rax), %rcx
movl 0xf8(%rcx), %eax
leal 0x1(%rax), %edx
movl %edx, 0xf8(%rcx)
movl %edx, 0xc(%rsp)
testq %r14, %r14
je 0x455cd
cmpl 0x24(%r14), %eax
jge 0x4565b
movq %r14, %rdi
movq %r13, %rsi
callq 0xd170
testl %eax, %eax
jne 0x456bd
cmpl %ebp, 0x20(%r14)
jne 0x456bd
movl 0x24(%r14), %eax
cmpl 0xc(%rsp), %eax
jne 0x456bd
leaq 0x51254(%rip), %rdi     # 0x96828
leaq 0x2d922(%rip), %rsi     # 0x72efd
callq 0xd170
testl %eax, %eax
je 0x456c9
leaq 0x51239(%rip), %rdi     # 0x96828
leaq 0x2c79a(%rip), %rsi     # 0x71d90
callq 0xd170
testl %eax, %eax
je 0x45818
leaq 0x2dcad(%rip), %rsi     # 0x732b7
leaq 0x51217(%rip), %rdx     # 0x96828
leaq 0x10(%rsp), %rbx
movq %rbx, %rdi
callq 0x2198f
leaq 0x2dcad(%rip), %rsi     # 0x732d2
movq %rbx, %rdi
callq 0xdb40
leaq 0x40(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x459dc
movq %rdx, 0x30(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x40(%rsp)
jmp 0x459e3
leaq 0xb8(%rsp), %rbx
leaq 0xc(%rsp), %rsi
movq %rbx, %rdi
callq 0x63483
leaq 0x2dc07(%rip), %rcx     # 0x7327e
movl $0x12, %r8d
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0xd5e0
leaq 0xa0(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x4572e
movq %rdx, 0x90(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xa0(%rsp)
jmp 0x45735
movq $0x0, (%rbx)
jmp 0x45877
movl $0x50, %edi
callq 0xd500
movq %rax, %r14
leaq 0x502a3(%rip), %rax     # 0x95980
leaq 0xf0(%rsp), %rdx
movq %rax, (%rdx)
movq 0x8(%r12), %rax
movq %rax, 0x8(%rdx)
movq 0x10(%r12), %rax
movq %rax, 0x10(%rdx)
movq $0x0, 0x8(%r12)
leaq 0x4fffe(%rip), %rax     # 0x95708
movq %rax, (%rdx)
movq %r14, %rdi
movq %r15, %rsi
movq %r13, %rcx
movl %ebp, %r8d
callq 0x6356a
movq %r14, (%rbx)
leaq 0xf0(%rsp), %rdi
jmp 0x45872
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
leaq 0x90(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x2db36(%rip), %rsi     # 0x73291
callq 0xdb40
leaq 0x60(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x45788
movq %rdx, 0x50(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x60(%rsp)
jmp 0x45790
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, 0x58(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movl 0x24(%r14), %eax
leaq 0xb4(%rsp), %rsi
movl %eax, (%rsi)
leaq 0x70(%rsp), %rdi
callq 0x63483
movq 0x50(%rsp), %rcx
movq 0x58(%rsp), %r8
movq 0x78(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
cmpq %r12, %rcx
je 0x457e2
movq 0x60(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x45807
leaq 0x80(%rsp), %rdi
movl $0xf, %esi
cmpq %rdi, -0x10(%rdi)
je 0x45802
movq 0x80(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x4587e
movq 0x70(%rsp), %rsi
leaq 0x50(%rsp), %rdi
callq 0xd180
jmp 0x4588c
movl $0x40, %edi
callq 0xd500
movq %rax, %r14
leaq 0x50154(%rip), %rax     # 0x95980
leaq 0xd8(%rsp), %rdx
movq %rax, (%rdx)
movq 0x8(%r12), %rax
movq %rax, 0x8(%rdx)
movq 0x10(%r12), %rax
movq %rax, 0x10(%rdx)
movq $0x0, 0x8(%r12)
leaq 0x4feaf(%rip), %rax     # 0x95708
movq %rax, (%rdx)
movq %r14, %rdi
movq %r15, %rsi
callq 0x635f0
movq %r14, (%rbx)
leaq 0xd8(%rsp), %rdi
callq 0x633a2
movb $0x1, %al
jmp 0x45a3f
leaq 0x70(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0xd5e0
leaq 0x20(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x458b0
movq %rsi, 0x10(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x20(%rsp)
jmp 0x458b6
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x18(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x2b1f5(%rip), %rsi     # 0x70acf
leaq 0x10(%rsp), %rdi
callq 0xdb40
leaq 0x40(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x4590b
movq %rdx, 0x30(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x40(%rsp)
jmp 0x45912
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
leaq 0x30(%rsp), %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x50f43(%rip), %rdi     # 0x96878
callq 0xd2a0
movq 0x30(%rsp), %rdi
cmpq %r14, %rdi
je 0x45951
movq 0x40(%rsp), %rsi
incq %rsi
callq 0xd530
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4596c
movq 0x20(%rsp), %rsi
incq %rsi
callq 0xd530
leaq 0x80(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4598d
movq 0x80(%rsp), %rsi
incq %rsi
callq 0xd530
movq 0x50(%rsp), %rdi
cmpq %r12, %rdi
je 0x459a4
movq 0x60(%rsp), %rsi
incq %rsi
callq 0xd530
movq 0x90(%rsp), %rdi
cmpq %r15, %rdi
je 0x459c1
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0xd530
leaq 0xc8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x45a3d
movq 0xc8(%rsp), %rsi
jmp 0x45a35
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
leaq 0x30(%rsp), %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x50e72(%rip), %rdi     # 0x96878
callq 0xd2a0
movq 0x30(%rsp), %rdi
cmpq %r14, %rdi
je 0x45a22
movq 0x40(%rsp), %rsi
incq %rsi
callq 0xd530
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x45a3d
movq 0x20(%rsp), %rsi
incq %rsi
callq 0xd530
xorl %eax, %eax
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0xd8(%rsp), %rdi
callq 0x633a2
movl $0x40, %esi
jmp 0x45a7d
movq %rax, %rbx
leaq 0xf0(%rsp), %rdi
callq 0x633a2
movl $0x50, %esi
movq %r14, %rdi
jmp 0x45b7f
movq %rax, %rbx
movq 0x30(%rsp), %rdi
cmpq %r14, %rdi
je 0x45aa4
movq 0x40(%rsp), %rsi
incq %rsi
callq 0xd530
jmp 0x45aa4
movq %rax, %rbx
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x45b84
movq 0x20(%rsp), %rsi
jmp 0x45b7c
movq %rax, %rbx
movq 0x30(%rsp), %rdi
cmpq %r14, %rdi
je 0x45adf
movq 0x40(%rsp), %rsi
incq %rsi
callq 0xd530
jmp 0x45adf
movq %rax, %rbx
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x45aff
movq 0x20(%rsp), %rsi
incq %rsi
callq 0xd530
jmp 0x45aff
movq %rax, %rbx
leaq 0x80(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x45b25
movq 0x80(%rsp), %rsi
incq %rsi
callq 0xd530
jmp 0x45b25
movq %rax, %rbx
movq 0x50(%rsp), %rdi
cmpq %r12, %rdi
je 0x45b41
movq 0x60(%rsp), %rsi
incq %rsi
callq 0xd530
jmp 0x45b41
movq %rax, %rbx
movq 0x90(%rsp), %rdi
cmpq %r15, %rdi
je 0x45b63
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0xd530
jmp 0x45b63
movq %rax, %rbx
leaq 0xc8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x45b84
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0xd530
movq %rbx, %rdi
callq 0xda70