// File: /workspace/github_cpp_makefile_star2_O1/halfflat[P]tinyopt/test/googletest/googletest/src/gtest.cc
// Function: testing::internal::UnitTestImpl::GetTestSuite(char const*, char const*, void (*)(), void (*)())
TestSuite* UnitTestImpl::GetTestSuite(
    const char* test_suite_name, const char* type_param,
    internal::SetUpTestSuiteFunc set_up_tc,
    internal::TearDownTestSuiteFunc tear_down_tc) {
  // Can we find a TestSuite with the given name?
  const auto test_suite =
      std::find_if(test_suites_.rbegin(), test_suites_.rend(),
                   TestSuiteNameIs(test_suite_name));

  if (test_suite != test_suites_.rend()) return *test_suite;

  // No.  Let's create one.
  auto* const new_test_suite =
      new TestSuite(test_suite_name, type_param, set_up_tc, tear_down_tc);

  const UnitTestFilter death_test_suite_filter(kDeathTestSuiteFilter);
  // Is this a death test suite?
  if (death_test_suite_filter.MatchesName(test_suite_name)) {
    // Yes.  Inserts the test suite after the last death test suite
    // defined so far.  This only works when the test suites haven't
    // been shuffled.  Otherwise we may end up running a death test
    // after a non-death test.
    ++last_death_test_suite_;
    test_suites_.insert(test_suites_.begin() + last_death_test_suite_,
                        new_test_suite);
  } else {
    // No.  Appends to the end of the list.
    test_suites_.push_back(new_test_suite);
  }

  test_suite_indices_.push_back(static_cast<int>(test_suite_indices_.size()));
  return new_test_suite;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq %r8, %r12
movq %rcx, %r13
movq %rdx, %rbp
movq %rsi, %r14
movq %rdi, %rbx
movq 0xc0(%rdi), %rax
movq %rax, 0x40(%rsp)
movq 0xb8(%rdi), %rax
movq %rax, 0x38(%rsp)
leaq 0x68(%rsp), %rdi
leaq 0x10(%rsp), %rdx
callq 0x208e8
leaq 0x58(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x68(%rsp), %rsi
movq 0x70(%rsp), %rdx
addq %rsi, %rdx
leaq 0x48(%rsp), %rdi
callq 0x155e4
leaq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rsi
leaq 0x38(%rsp), %rdx
leaq 0x48(%rsp), %rcx
callq 0x66292
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0x5f981
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xd530
leaq 0xb8(%rbx), %r15
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5f9a3
movq 0x78(%rsp), %rsi
incq %rsi
callq 0xd530
movq 0x30(%rsp), %rax
cmpq (%r15), %rax
je 0x5f9bb
movq 0x30(%rsp), %rax
movq -0x8(%rax), %rbx
jmp 0x5fb27
movl $0x108, %edi            # imm = 0x108
callq 0xd500
movq %r12, %r8
movq %rax, %r12
movq %rax, %rdi
movq %r14, %rsi
movq %rbp, %rdx
movq %r13, %rcx
callq 0x52cc2
movq %r12, 0x8(%rsp)
leaq 0x20(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x1241e(%rip), %rsi     # 0x71e10
leaq 0x1242e(%rip), %rdx     # 0x71e27
leaq 0x10(%rsp), %rdi
callq 0x15892
leaq 0x68(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x4cd8e
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
je 0x5fa29
movq 0x20(%rsp), %rsi
incq %rsi
callq 0xd530
leaq 0x10(%rsp), %rdi
leaq 0x7(%rsp), %rdx
movq %r14, %rsi
callq 0x208e8
leaq 0x68(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x4ce9c
movl %eax, %ebp
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
je 0x5fa63
movq 0x20(%rsp), %rsi
incq %rsi
callq 0xd530
testb %bpl, %bpl
je 0x5fa97
movslq 0x164(%rbx), %rax
leaq 0x1(%rax), %rcx
movl %ecx, 0x164(%rbx)
leaq 0x8(,%rax,8), %rsi
addq 0xb8(%rbx), %rsi
leaq 0x8(%rsp), %rdx
movq %r15, %rdi
callq 0x66426
jmp 0x5fac6
movq 0xc0(%rbx), %rsi
cmpq 0xc8(%rbx), %rsi
je 0x5fab9
movq 0x8(%rsp), %rax
movq %rax, (%rsi)
addq $0x8, 0xc0(%rbx)
jmp 0x5fac6
leaq 0x8(%rsp), %rdx
movq %r15, %rdi
callq 0x6d3c2
movq 0xd8(%rbx), %rsi
movq %rsi, %rax
subq 0xd0(%rbx), %rax
shrq $0x2, %rax
movl %eax, 0x10(%rsp)
cmpq 0xe0(%rbx), %rsi
je 0x5faf7
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0xd8(%rbx)
jmp 0x5fb0b
addq $0xd0, %rbx
leaq 0x10(%rsp), %rdx
movq %rbx, %rdi
callq 0x6c726
movq 0x8(%rsp), %rbx
leaq 0x80(%rsp), %rdi
callq 0x6802e
leaq 0x68(%rsp), %rdi
callq 0x20fca
movq %rbx, %rax
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x5fb5e
jmp 0x5fb5e
jmp 0x5fb5e
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
je 0x5fb61
movq 0x20(%rsp), %rsi
incq %rsi
callq 0xd530
jmp 0x5fb61
movq %rax, %rbx
leaq 0x80(%rsp), %rdi
callq 0x6802e
leaq 0x68(%rsp), %rdi
callq 0x20fca
jmp 0x5fbdc
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
je 0x5fbdc
movq 0x20(%rsp), %rsi
jmp 0x5fbcf
jmp 0x5fbd9
movq %rax, %rbx
movl $0x108, %esi            # imm = 0x108
movq %r12, %rdi
jmp 0x5fbd2
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0x5fbbc
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xd530
jmp 0x5fbbc
movq %rax, %rbx
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5fbdc
movq 0x78(%rsp), %rsi
incq %rsi
callq 0xd530
jmp 0x5fbdc
movq %rax, %rbx
movq %rbx, %rdi
callq 0xda70