// File: /workspace/github_cpp_makefile_star2_O3/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, %r13
movq %rcx, %rbp
movq %rdx, %r12
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 0x8(%rsp), %rdx
callq 0x2008e
leaq 0x58(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x68(%rsp), %rsi
movq 0x70(%rsp), %rdx
addq %rsi, %rdx
leaq 0x48(%rsp), %rdi
callq 0x152da
leaq 0x40(%rsp), %rdi
leaq 0x38(%rsp), %rsi
leaq 0x30(%rsp), %rdx
leaq 0x48(%rsp), %rcx
callq 0x64a1c
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0x5dfbd
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xd530
leaq 0xb8(%rbx), %r15
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5dfdf
movq 0x78(%rsp), %rsi
incq %rsi
callq 0xd530
movq 0x40(%rsp), %rax
cmpq (%r15), %rax
je 0x5dff2
movq -0x8(%rax), %rbx
jmp 0x5e159
movl $0x108, %edi            # imm = 0x108
callq 0xd500
movq %r13, %r8
movq %rax, %r13
movq %rax, %rdi
movq %r14, %rsi
movq %r12, %rdx
movq %rbp, %rcx
callq 0x51458
movq %r13, 0x28(%rsp)
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x11dc7(%rip), %rsi     # 0x6fdf0
leaq 0x11dd7(%rip), %rdx     # 0x6fe07
leaq 0x8(%rsp), %rdi
callq 0x1558a
leaq 0x68(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x4b554
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x5e060
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xd530
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rdx
movq %r14, %rsi
callq 0x2008e
leaq 0x68(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x4b662
movl %eax, %ebp
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x5e09a
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xd530
testb %bpl, %bpl
je 0x5e0ce
movslq 0x164(%rbx), %rax
leaq 0x1(%rax), %rcx
movl %ecx, 0x164(%rbx)
leaq 0x8(,%rax,8), %rsi
addq 0xb8(%rbx), %rsi
leaq 0x28(%rsp), %rdx
movq %r15, %rdi
callq 0x64b92
jmp 0x5e0f8
movq 0xc0(%rbx), %rsi
cmpq 0xc8(%rbx), %rsi
je 0x5e0eb
movq %r13, (%rsi)
addq $0x8, 0xc0(%rbx)
jmp 0x5e0f8
leaq 0x28(%rsp), %rdx
movq %r15, %rdi
callq 0x6bb52
movq 0xd8(%rbx), %rsi
movq %rsi, %rax
subq 0xd0(%rbx), %rax
shrq $0x2, %rax
movl %eax, 0x8(%rsp)
cmpq 0xe0(%rbx), %rsi
je 0x5e129
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0xd8(%rbx)
jmp 0x5e13d
addq $0xd0, %rbx
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
callq 0x6aeaa
movq 0x28(%rsp), %rbx
leaq 0x80(%rsp), %rdi
callq 0x667ae
leaq 0x68(%rsp), %rdi
callq 0x20770
movq %rbx, %rax
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x5e190
jmp 0x5e190
jmp 0x5e190
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x5e193
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xd530
jmp 0x5e193
movq %rax, %rbx
leaq 0x80(%rsp), %rdi
callq 0x667ae
leaq 0x68(%rsp), %rdi
callq 0x20770
jmp 0x5e20e
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x5e20e
movq 0x18(%rsp), %rsi
jmp 0x5e201
jmp 0x5e20b
movq %rax, %rbx
movl $0x108, %esi            # imm = 0x108
movq %r13, %rdi
jmp 0x5e204
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0x5e1ee
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xd530
jmp 0x5e1ee
movq %rax, %rbx
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5e20e
movq 0x78(%rsp), %rsi
incq %rsi
callq 0xd530
jmp 0x5e20e
movq %rax, %rbx
movq %rbx, %rdi
callq 0xda70