// File: /workspace/github_cpp_makefile_star2_O1/halfflat[P]tinyopt/test/googletest/googletest/src/gtest.cc
// Function: testing::TestSuite::Run()
void TestSuite::Run() {
  if (!should_run_) return;

  internal::UnitTestImpl* const impl = internal::GetUnitTestImpl();
  impl->set_current_test_suite(this);

  TestEventListener* repeater = UnitTest::GetInstance()->listeners().repeater();

  // Ensure our tests are in a deterministic order.
  //
  // We do this by sorting lexicographically on (file, line number), providing
  // an order matching what the user can see in the source code.
  //
  // In the common case the line number comparison shouldn't be necessary,
  // because the registrations made by the TEST macro are executed in order
  // within a translation unit. But this is not true of the manual registration
  // API, and in more exotic scenarios a single file may be part of multiple
  // translation units.
  std::stable_sort(test_info_list_.begin(), test_info_list_.end(),
                   [](const TestInfo* const a, const TestInfo* const b) {
                     if (const int result = std::strcmp(a->file(), b->file())) {
                       return result < 0;
                     }

                     return a->line() < b->line();
                   });

  // Call both legacy and the new API
  repeater->OnTestSuiteStart(*this);
//  Legacy API is deprecated but still available
#ifndef GTEST_REMOVE_LEGACY_TEST_CASEAPI_
  repeater->OnTestCaseStart(*this);
#endif  //  GTEST_REMOVE_LEGACY_TEST_CASEAPI_

  impl->os_stack_trace_getter()->UponLeavingGTest();
  internal::HandleExceptionsInMethodIfSupported(
      this, &TestSuite::RunSetUpTestSuite, "SetUpTestSuite()");

  const bool skip_all =
      ad_hoc_test_result().Failed() || ad_hoc_test_result().Skipped();

  start_timestamp_ = internal::GetTimeInMillis();
  internal::Timer timer;
  for (int i = 0; i < total_test_count(); i++) {
    if (skip_all) {
      GetMutableTestInfo(i)->Skip();
    } else {
      GetMutableTestInfo(i)->Run();
    }
    if (GTEST_FLAG_GET(fail_fast) &&
        GetMutableTestInfo(i)->result()->Failed()) {
      for (int j = i + 1; j < total_test_count(); j++) {
        GetMutableTestInfo(j)->Skip();
      }
      break;
    }
  }
  elapsed_time_ = timer.Elapsed();

  impl->os_stack_trace_getter()->UponLeavingGTest();
  internal::HandleExceptionsInMethodIfSupported(
      this, &TestSuite::RunTearDownTestSuite, "TearDownTestSuite()");

  // Call both legacy and the new API
  repeater->OnTestSuiteEnd(*this);
//  Legacy API is deprecated but still available
#ifndef GTEST_REMOVE_LEGACY_TEST_CASEAPI_
  repeater->OnTestCaseEnd(*this);
#endif  //  GTEST_REMOVE_LEGACY_TEST_CASEAPI_

  impl->set_current_test_suite(nullptr);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
cmpb $0x1, 0x70(%rdi)
jne 0x532f1
movq %rdi, %rbx
callq 0x4a8ea
movq 0x439f7(%rip), %r15     # 0x969e0
movq %rbx, 0x168(%r15)
callq 0x4a8ea
movq 0x439e4(%rip), %rax     # 0x969e0
movq 0x1f8(%rax), %r14
movq 0x30(%rbx), %rbp
movq 0x38(%rbx), %r13
cmpq %r13, %rbp
movq %r15, 0x8(%rsp)
je 0x53077
movq %r13, %rax
subq %rbp, %rax
sarq $0x3, %rax
leaq 0x1(%rax), %rcx
shrq $0x3f, %rcx
leaq (%rax,%rcx), %rdi
incq %rdi
sarq %rdi
callq 0x6c801
movq %rax, %r12
movq %rdx, %r15
testq %rax, %rax
cmoveq %rax, %r15
je 0x53058
movq %rbp, %rdi
movq %r13, %rsi
movq %r12, %rdx
movq %r15, %rcx
callq 0x61fcb
jmp 0x53063
movq %rbp, %rdi
movq %r13, %rsi
callq 0x61f54
shlq $0x3, %r15
movq %r12, %rdi
movq %r15, %rsi
callq 0xd530
movq 0x8(%rsp), %r15
movq (%r14), %rax
movq %r14, %rdi
movq %rbx, %rsi
callq *0x30(%rax)
movq (%r14), %rax
movq %r14, %rdi
movq %rbx, %rsi
callq *0x38(%rax)
cmpq $0x0, 0x210(%r15)
jne 0x530b4
movl $0x8, %edi
callq 0xd500
leaq 0x42406(%rip), %rcx     # 0x954b0
movq %rcx, (%rax)
movq %rax, 0x210(%r15)
movq 0x210(%r15), %rdi
movq (%rdi), %rax
callq *0x18(%rax)
leaq 0x12b2e(%rip), %rsi     # 0x65bf6
leaq 0x20fd0(%rip), %rcx     # 0x7409f
movq %rbx, %rdi
xorl %edx, %edx
callq 0x65a71
leaq 0x88(%rbx), %r15
movq %r15, %rdi
callq 0x51850
movb $0x1, %bpl
testb %al, %al
jne 0x530f9
movq %r15, %rdi
callq 0x51814
movl %eax, %ebp
callq 0xd090
movabsq $0x431bde82d7b634db, %rcx # imm = 0x431BDE82D7B634DB
imulq %rcx
movq %rdx, %rax
shrq $0x3f, %rax
sarq $0x12, %rdx
addq %rax, %rdx
movq %rdx, 0x78(%rbx)
callq 0xd7c0
movq %rax, 0x10(%rsp)
movq 0x30(%rbx), %rax
movq 0x38(%rbx), %rcx
subq %rax, %rcx
shrq $0x3, %rcx
testl %ecx, %ecx
jle 0x53253
movl $0x1, %r13d
movl $0x90, %r12d
leaq -0x1(%r13), %r15
testb %bpl, %bpl
je 0x53181
movq 0x48(%rbx), %rcx
movq 0x50(%rbx), %rdx
subq %rcx, %rdx
shrq $0x2, %rdx
movslq %edx, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
cmpq %rsi, %r15
jge 0x53174
movl -0x4(%rcx,%r13,4), %edx
movl %edx, %ecx
movq (%rax,%rcx,8), %rdi
callq 0x52bbe
jmp 0x531ad
movq 0x48(%rbx), %rcx
movq 0x50(%rbx), %rdx
subq %rcx, %rdx
shrq $0x2, %rdx
movslq %edx, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
cmpq %rsi, %r15
jge 0x531a2
movl -0x4(%rcx,%r13,4), %edx
movl %edx, %ecx
movq (%rax,%rcx,8), %rdi
callq 0x52a08
cmpb $0x1, 0x436fe(%rip)     # 0x968b2
jne 0x531ed
movq 0x48(%rbx), %rax
movq 0x50(%rbx), %rcx
subq %rax, %rcx
shrq $0x2, %rcx
movslq %ecx, %rdx
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
cmpq %rdx, %r15
jge 0x531d7
movl -0x4(%rax,%r13,4), %ecx
movl %ecx, %eax
movq 0x30(%rbx), %rcx
movq (%rcx,%rax,8), %rdi
addq %r12, %rdi
callq 0x51850
testb %al, %al
jne 0x5323f
movq 0x30(%rbx), %rax
movq 0x38(%rbx), %rcx
subq %rax, %rcx
shrq $0x3, %rcx
movslq %ecx, %rcx
leaq 0x1(%r13), %rdx
cmpq %rcx, %r13
movq %rdx, %r13
jl 0x5314a
jmp 0x53253
movq 0x48(%rbx), %rcx
movq 0x50(%rbx), %rdx
subq %rcx, %rdx
shrq $0x2, %rdx
movslq %edx, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
cmpq %rsi, %r13
jge 0x53231
movl (%rcx,%r13,4), %edx
movl %edx, %ecx
movq (%rax,%rcx,8), %rdi
callq 0x52bbe
incq %r13
movq 0x30(%rbx), %rax
movq 0x38(%rbx), %rcx
subq %rax, %rcx
shrq $0x3, %rcx
cmpl %ecx, %r13d
jl 0x53211
callq 0xd7c0
subq 0x10(%rsp), %rax
movabsq $0x431bde82d7b634db, %rcx # imm = 0x431BDE82D7B634DB
imulq %rcx
movq %rdx, %rax
shrq $0x3f, %rax
sarq $0x12, %rdx
addq %rax, %rdx
movq %rdx, 0x80(%rbx)
movq 0x8(%rsp), %r15
cmpq $0x0, 0x210(%r15)
jne 0x532a9
movl $0x8, %edi
callq 0xd500
leaq 0x42211(%rip), %rcx     # 0x954b0
movq %rcx, (%rax)
movq %rax, 0x210(%r15)
movq 0x210(%r15), %rdi
movq (%rdi), %rax
callq *0x18(%rax)
leaq 0x12945(%rip), %rsi     # 0x65c02
leaq 0x20dec(%rip), %rcx     # 0x740b0
movq %rbx, %rdi
xorl %edx, %edx
callq 0x65a71
movq (%r14), %rax
movq %r14, %rdi
movq %rbx, %rsi
callq *0x60(%rax)
movq (%r14), %rax
movq %r14, %rdi
movq %rbx, %rsi
callq *0x68(%rax)
movq $0x0, 0x168(%r15)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
shlq $0x3, %r15
movq %r12, %rdi
movq %r15, %rsi
callq 0xd530
movq %rbx, %rdi
callq 0xda70