// File: /workspace/github_cpp_makefile_star2_O1/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, %r13
movq %rdx, %r15
movq %rsi, %r12
callq 0xeba0
movq 0x2256a(%rip), %rax     # 0x498b8
movq 0x1d0(%rax), %r14
movq 0x110(%rax), %rcx
movl 0xf8(%rcx), %eax
leal 0x1(%rax), %edx
movl %edx, 0xf8(%rcx)
movl %edx, 0xc(%rsp)
testq %r14, %r14
je 0x273a9
cmpl 0x24(%r14), %eax
jge 0x27437
movq %r14, %rdi
movq %r13, %rsi
callq 0x7140
testl %eax, %eax
jne 0x27495
cmpl %ebp, 0x20(%r14)
jne 0x27495
movl 0x24(%r14), %eax
cmpl 0xc(%rsp), %eax
jne 0x27495
leaq 0x22538(%rip), %rdi     # 0x498e8
leaq 0xf72f(%rip), %rsi      # 0x36ae6
callq 0x7140
testl %eax, %eax
je 0x274a1
leaq 0x2251d(%rip), %rdi     # 0x498e8
leaq 0xdac6(%rip), %rsi      # 0x34e98
callq 0x7140
testl %eax, %eax
je 0x275d8
leaq 0xfa5b(%rip), %rsi      # 0x36e41
leaq 0x224fb(%rip), %rdx     # 0x498e8
leaq 0x10(%rsp), %rbx
movq %rbx, %rdi
callq 0x2da57
leaq 0xfa5b(%rip), %rsi      # 0x36e5c
movq %rbx, %rdi
callq 0x7a30
leaq 0x40(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x27780
movq %rdx, 0x30(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x40(%rsp)
jmp 0x27787
leaq 0xb8(%rsp), %rbx
leaq 0xc(%rsp), %rsi
movq %rbx, %rdi
callq 0x2c729
leaq 0xf9b5(%rip), %rcx      # 0x36e08
movl $0x12, %r8d
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x7540
leaq 0xa0(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x274ee
movq %rdx, 0x90(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xa0(%rsp)
jmp 0x274f5
movq $0x0, (%rbx)
jmp 0x2761b
movl $0x40, %edi
callq 0x7450
movq %rax, %r14
movq %rax, %rdi
callq 0x216a0
movq %r12, 0x8(%r14)
movq %r15, 0x10(%r14)
movb $0x0, 0x18(%r14)
movaps 0xd716(%rip), %xmm0     # 0x34be0
movups %xmm0, 0x1c(%r14)
movl $0xffffffff, 0x2c(%r14) # imm = 0xFFFFFFFF
leaq 0x21472(%rip), %rax     # 0x48950
movq %rax, (%r14)
movq %r13, 0x30(%r14)
movl %ebp, 0x38(%r14)
jmp 0x27618
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 0xf900(%rip), %rsi      # 0x36e1b
callq 0x7a30
leaq 0x60(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x27548
movq %rdx, 0x50(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x60(%rsp)
jmp 0x27550
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 0x2c729
movq 0x50(%rsp), %rcx
movq 0x58(%rsp), %r8
movq 0x78(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
cmpq %r12, %rcx
je 0x275a2
movq 0x60(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x275c7
leaq 0x80(%rsp), %rdi
movl $0xf, %esi
cmpq %rdi, -0x10(%rdi)
je 0x275c2
movq 0x80(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x27622
movq 0x70(%rsp), %rsi
leaq 0x50(%rsp), %rdi
callq 0x7150
jmp 0x27630
movl $0x30, %edi
callq 0x7450
movq %rax, %r14
movq %rax, %rdi
callq 0x216a0
movq %r12, 0x8(%r14)
movq %r15, 0x10(%r14)
movb $0x0, 0x18(%r14)
movaps 0xd5df(%rip), %xmm0     # 0x34be0
movups %xmm0, 0x1c(%r14)
movl $0xffffffff, 0x2c(%r14) # imm = 0xFFFFFFFF
leaq 0x212e3(%rip), %rax     # 0x488f8
movq %rax, (%r14)
movq %r14, (%rbx)
movb $0x1, %al
jmp 0x277e3
leaq 0x70(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x7540
leaq 0x20(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x27654
movq %rsi, 0x10(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x20(%rsp)
jmp 0x2765a
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 0xccbe(%rip), %rsi      # 0x3433c
leaq 0x10(%rsp), %rdi
callq 0x7a30
leaq 0x40(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x276af
movq %rdx, 0x30(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x40(%rsp)
jmp 0x276b6
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 0x22237(%rip), %rdi     # 0x49910
callq 0x7260
movq 0x30(%rsp), %rdi
cmpq %r14, %rdi
je 0x276f5
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x7480
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x27710
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x7480
leaq 0x80(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x27731
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x7480
movq 0x50(%rsp), %rdi
cmpq %r12, %rdi
je 0x27748
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x7480
movq 0x90(%rsp), %rdi
cmpq %r15, %rdi
je 0x27765
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x7480
leaq 0xc8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x277e1
movq 0xc8(%rsp), %rsi
jmp 0x277d9
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 0x22166(%rip), %rdi     # 0x49910
callq 0x7260
movq 0x30(%rsp), %rdi
cmpq %r14, %rdi
je 0x277c6
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x7480
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x277e1
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x7480
xorl %eax, %eax
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movl $0x30, %esi
jmp 0x27807
movq %rax, %rbx
movl $0x40, %esi
movq %r14, %rdi
jmp 0x27909
movq %rax, %rbx
movq 0x30(%rsp), %rdi
cmpq %r14, %rdi
je 0x2782e
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x7480
jmp 0x2782e
movq %rax, %rbx
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2790e
movq 0x20(%rsp), %rsi
jmp 0x27906
movq %rax, %rbx
movq 0x30(%rsp), %rdi
cmpq %r14, %rdi
je 0x27869
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x7480
jmp 0x27869
movq %rax, %rbx
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x27889
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x7480
jmp 0x27889
movq %rax, %rbx
leaq 0x80(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x278af
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x7480
jmp 0x278af
movq %rax, %rbx
movq 0x50(%rsp), %rdi
cmpq %r12, %rdi
je 0x278cb
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x7480
jmp 0x278cb
movq %rax, %rbx
movq 0x90(%rsp), %rdi
cmpq %r15, %rdi
je 0x278ed
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x7480
jmp 0x278ed
movq %rax, %rbx
leaq 0xc8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2790e
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x7480
movq %rbx, %rdi
callq 0x7960