// File: /workspace/github_cpp_makefile_star2_O3/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, 0x48(%rsp)
callq 0x490c6
movq 0x50bca(%rip), %rax     # 0x949e0
movq 0x238(%rax), %r14
movq 0x170(%rax), %rcx
movl 0xf8(%rcx), %eax
leal 0x1(%rax), %r15d
movl %r15d, 0xf8(%rcx)
movl %r15d, 0x44(%rsp)
testq %r14, %r14
je 0x43e70
cmpl 0x24(%r14), %eax
jge 0x43efc
movq %r14, %rdi
movq %r13, %rsi
callq 0xd170
testl %eax, %eax
jne 0x43f5a
cmpl %ebp, 0x20(%r14)
jne 0x43f5a
cmpl %r15d, 0x24(%r14)
jne 0x43f5a
leaq 0x509b1(%rip), %rdi     # 0x94828
leaq 0x2d08f(%rip), %rsi     # 0x70f0d
callq 0xd170
testl %eax, %eax
je 0x43f66
leaq 0x50996(%rip), %rdi     # 0x94828
leaq 0x2bed7(%rip), %rsi     # 0x6fd70
callq 0xd170
testl %eax, %eax
je 0x440ac
leaq 0x2d41a(%rip), %rsi     # 0x712c7
leaq 0x50974(%rip), %rdx     # 0x94828
movq %rsp, %rbx
movq %rbx, %rdi
callq 0x2113f
leaq 0x2d41c(%rip), %rsi     # 0x712e2
movq %rbx, %rdi
callq 0xdb40
leaq 0x30(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x44265
movq %rdx, 0x20(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x30(%rsp)
jmp 0x4426c
leaq 0xb8(%rsp), %rbx
leaq 0x44(%rsp), %rsi
movq %rbx, %rdi
callq 0x61b3f
leaq 0x2d376(%rip), %rcx     # 0x7128e
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 0x43fc3
movq %rdx, 0x90(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xa0(%rsp)
jmp 0x43fca
movq $0x0, (%rbx)
jmp 0x44103
movl $0x50, %edi
callq 0xd500
movq %rax, %r14
movq 0x8(%r12), %rax
leaq 0xf0(%rsp), %rdx
movq %rax, 0x8(%rdx)
movq 0x10(%r12), %rax
movq %rax, 0x10(%rdx)
movq $0x0, 0x8(%r12)
leaq 0x4f78b(%rip), %rax     # 0x93728
movq %rax, (%rdx)
movq %r14, %rdi
movq 0x48(%rsp), %rsi
movq %r13, %rcx
movl %ebp, %r8d
callq 0x61c28
movq %r14, (%rbx)
leaq 0xf0(%rsp), %rdi
jmp 0x440fe
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 0x2d2b1(%rip), %rsi     # 0x712a1
callq 0xdb40
leaq 0x60(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x4401d
movq %rdx, 0x50(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x60(%rsp)
jmp 0x44025
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 0x61b3f
movq 0x50(%rsp), %rcx
movq 0x58(%rsp), %r8
movq 0x78(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %r12, %rcx
je 0x44077
movq 0x60(%rsp), %rdi
movq 0x70(%rsp), %rsi
cmpq %rdi, %rax
jbe 0x440a0
leaq 0x80(%rsp), %r9
movl $0xf, %edi
cmpq %r9, %rsi
je 0x4409b
movq 0x80(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x4410a
leaq 0x50(%rsp), %rdi
callq 0xd180
jmp 0x44118
movl $0x40, %edi
callq 0xd500
movq %rax, %r14
movq 0x8(%r12), %rax
leaq 0xd8(%rsp), %rdx
movq %rax, 0x8(%rdx)
movq 0x10(%r12), %rax
movq %rax, 0x10(%rdx)
movq $0x0, 0x8(%r12)
leaq 0x4f645(%rip), %rax     # 0x93728
movq %rax, (%rdx)
movq %r14, %rdi
movq 0x48(%rsp), %rsi
callq 0x61ca4
movq %r14, (%rbx)
leaq 0xd8(%rsp), %rdi
callq 0x61a5e
movb $0x1, %al
jmp 0x442c8
leaq 0x70(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0xd5e0
leaq 0x10(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x4413b
movq %rsi, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x44141
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x8(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x2a947(%rip), %rsi     # 0x6eaac
movq %rsp, %rdi
callq 0xdb40
leaq 0x30(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x44194
movq %rdx, 0x20(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x30(%rsp)
jmp 0x4419b
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
leaq 0x20(%rsp), %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x506ba(%rip), %rdi     # 0x94878
callq 0xd2a0
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
je 0x441da
movq 0x30(%rsp), %rsi
incq %rsi
callq 0xd530
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x441f5
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xd530
leaq 0x80(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x44216
movq 0x80(%rsp), %rsi
incq %rsi
callq 0xd530
movq 0x50(%rsp), %rdi
cmpq %r12, %rdi
je 0x4422d
movq 0x60(%rsp), %rsi
incq %rsi
callq 0xd530
movq 0x90(%rsp), %rdi
cmpq %r15, %rdi
je 0x4424a
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0xd530
leaq 0xc8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x442c6
movq 0xc8(%rsp), %rsi
jmp 0x442be
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
leaq 0x20(%rsp), %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x505e9(%rip), %rdi     # 0x94878
callq 0xd2a0
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
je 0x442ab
movq 0x30(%rsp), %rsi
incq %rsi
callq 0xd530
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x442c6
movq 0x10(%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 0x61a5e
movl $0x40, %esi
jmp 0x44306
movq %rax, %rbx
leaq 0xf0(%rsp), %rdi
callq 0x61a5e
movl $0x50, %esi
movq %r14, %rdi
jmp 0x44408
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
je 0x4432d
movq 0x30(%rsp), %rsi
incq %rsi
callq 0xd530
jmp 0x4432d
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4440d
movq 0x10(%rsp), %rsi
jmp 0x44405
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
je 0x44368
movq 0x30(%rsp), %rsi
incq %rsi
callq 0xd530
jmp 0x44368
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x44388
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xd530
jmp 0x44388
movq %rax, %rbx
leaq 0x80(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x443ae
movq 0x80(%rsp), %rsi
incq %rsi
callq 0xd530
jmp 0x443ae
movq %rax, %rbx
movq 0x50(%rsp), %rdi
cmpq %r12, %rdi
je 0x443ca
movq 0x60(%rsp), %rsi
incq %rsi
callq 0xd530
jmp 0x443ca
movq %rax, %rbx
movq 0x90(%rsp), %rdi
cmpq %r15, %rdi
je 0x443ec
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0xd530
jmp 0x443ec
movq %rax, %rbx
leaq 0xc8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4440d
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0xd530
movq %rbx, %rdi
callq 0xda70