// File: /workspace/github_cpp_makefile_star2_O2/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, 0x38(%rsp)
movq 0xb8(%rdi), %rax
movq %rax, 0x30(%rsp)
leaq 0x68(%rsp), %rdi
leaq 0x10(%rsp), %rdx
callq 0x1337a
leaq 0x48(%rsp), %rdi
leaq 0x68(%rsp), %rsi
callq 0xd880
leaq 0x40(%rsp), %rdi
leaq 0x38(%rsp), %rsi
leaq 0x30(%rsp), %rdx
leaq 0x48(%rsp), %rcx
callq 0x4ed5c
leaq 0xb8(%rbx), %r15
leaq 0x48(%rsp), %rdi
callq 0xdbe8
leaq 0x68(%rsp), %rdi
callq 0xdbe8
movq 0x40(%rsp), %rax
cmpq (%r15), %rax
je 0x49671
movq -0x8(%rax), %rbx
jmp 0x49768
movl $0x108, %edi            # imm = 0x108
callq 0xd570
movq %r12, %r8
movq %rax, %r12
movq %rax, %rdi
movq %r14, %rsi
movq %rbp, %rdx
movq %r13, %rcx
callq 0x40e90
movq %r12, 0x8(%rsp)
leaq 0x107c2(%rip), %rsi     # 0x59e60
leaq 0x10(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x1337a
leaq 0x68(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x3c872
leaq 0x10(%rsp), %rdi
callq 0xdbe8
leaq 0x10(%rsp), %rdi
leaq 0x7(%rsp), %rdx
movq %r14, %rsi
callq 0x1337a
leaq 0x68(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x3c950
movl %eax, %ebp
leaq 0x10(%rsp), %rdi
callq 0xdbe8
testb %bpl, %bpl
je 0x49727
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 0x4edee
jmp 0x49734
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
callq 0x4ee58
movq 0xd8(%rbx), %rax
subq 0xd0(%rbx), %rax
leaq 0xd0(%rbx), %rdi
shrq $0x2, %rax
leaq 0x10(%rsp), %rsi
movl %eax, (%rsi)
callq 0x5468a
movq 0x8(%rsp), %rbx
leaq 0x68(%rsp), %rdi
callq 0x3ca5c
movq %rbx, %rax
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x49792
jmp 0x49792
jmp 0x49792
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0xdbe8
jmp 0x49795
movq %rax, %rbx
leaq 0x68(%rsp), %rdi
callq 0x3ca5c
jmp 0x497e0
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
jmp 0x497d6
jmp 0x497dd
movq %rax, %rbx
movl $0x108, %esi            # imm = 0x108
movq %r12, %rdi
callq 0xd5a0
jmp 0x497e0
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0xdbe8
jmp 0x497d1
movq %rax, %rbx
leaq 0x68(%rsp), %rdi
callq 0xdbe8
jmp 0x497e0
movq %rax, %rbx
movq %rbx, %rdi
callq 0xdaa0