// File: /workspace/github_c_makefile_star2_O3/deplinenoise[P]tundra/unittest/googletest/googletest/src/gtest-death-test.cc
// Function: testing::internal::DeathTestImpl::Passed(bool)
bool DeathTestImpl::Passed(bool status_ok) {
  if (!spawned())
    return false;

  const std::string error_message = GetCapturedStderr();

  bool success = false;
  Message buffer;

  buffer << "Death test: " << statement() << "\n";
  switch (outcome()) {
    case LIVED:
      buffer << "    Result: failed to die.\n"
             << " Error msg:\n" << FormatDeathTestOutput(error_message);
      break;
    case THREW:
      buffer << "    Result: threw an exception.\n"
             << " Error msg:\n" << FormatDeathTestOutput(error_message);
      break;
    case RETURNED:
      buffer << "    Result: illegal return in test statement.\n"
             << " Error msg:\n" << FormatDeathTestOutput(error_message);
      break;
    case DIED:
      if (status_ok) {
        const bool matched = RE::PartialMatch(error_message.c_str(), *regex());
        if (matched) {
          success = true;
        } else {
          buffer << "    Result: died but not with expected error.\n"
                 << "  Expected: " << regex()->pattern() << "\n"
                 << "Actual msg:\n" << FormatDeathTestOutput(error_message);
        }
      } else {
        buffer << "    Result: died but not with expected exit code:\n"
               << "            " << ExitSummary(status()) << "\n"
               << "Actual msg:\n" << FormatDeathTestOutput(error_message);
      }
      break;
    case IN_PROGRESS:
    default:
      GTEST_LOG_(FATAL)
          << "DeathTest::Passed somehow called before conclusion of test";
  }

  DeathTest::set_last_death_test_message(buffer.GetString());
  return success;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x70, %rsp
cmpb $0x1, 0x18(%rdi)
jne 0x207f7
movl %esi, %ebp
movq %rdi, %r15
leaq 0x52130(%rip), %rsi     # 0x728e0
leaq 0x30(%rsp), %rdi
callq 0x26b40
leaq 0x28(%rsp), %rdi
callq 0x12e46
movq 0x28(%rsp), %rbx
leaq 0x10(%rbx), %r14
leaq 0x327c9(%rip), %rsi     # 0x52f9d
movl $0xc, %edx
movq %r14, %rdi
callq 0xc700
movq 0x8(%r15), %r12
testq %r12, %r12
je 0x207fe
movq %r12, %rdi
callq 0xc260
movq %rax, %rdx
jmp 0x2080a
xorl %ebp, %ebp
jmp 0x20c43
movl $0x6, %edx
leaq 0x31a79(%rip), %r12     # 0x52283
movq %r14, %rdi
movq %r12, %rsi
callq 0xc700
leaq 0x3209c(%rip), %rsi     # 0x528b8
movl $0x1, %edx
movq %r14, %rdi
callq 0xc700
movl 0x20(%r15), %eax
decl %eax
cmpl $0x3, %eax
ja 0x209b0
leaq 0x30871(%rip), %rcx     # 0x510b0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
testb %bpl, %bpl
je 0x209f2
movq 0x10(%r15), %rdi
cmpb $0x1, 0x8(%rdi)
jne 0x2087e
movq 0x30(%rsp), %rsi
addq $0x50, %rdi
leaq 0x8(%rsp), %rcx
movl $0x1, %edx
xorl %r8d, %r8d
callq 0xc7e0
testl %eax, %eax
je 0x20c52
leaq 0x3279e(%rip), %rsi     # 0x53023
movl $0x2e, %edx
movq %r14, %rdi
callq 0xc700
leaq 0x327b9(%rip), %rsi     # 0x53052
movl $0xc, %edx
movq %r14, %rdi
callq 0xc700
movq 0x10(%r15), %rax
movq (%rax), %r15
testq %r15, %r15
je 0x20b64
movq %r15, %rdi
callq 0xc260
movq %rax, %rdx
jmp 0x20b70
leaq 0x32727(%rip), %rsi     # 0x52ff4
movl $0x2e, %edx
movq %r14, %rdi
callq 0xc700
leaq 0x326e5(%rip), %rsi     # 0x52fc6
movl $0xc, %edx
movq %r14, %rdi
callq 0xc700
leaq 0x8(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x20d58
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %r14, %rdi
callq 0xc700
jmp 0x20bc4
leaq 0x326b8(%rip), %rsi     # 0x52fd3
movl $0x20, %edx
movq %r14, %rdi
callq 0xc700
leaq 0x32697(%rip), %rsi     # 0x52fc6
movl $0xc, %edx
movq %r14, %rdi
callq 0xc700
leaq 0x8(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x20d58
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %r14, %rdi
callq 0xc700
jmp 0x20bc4
leaq 0x32641(%rip), %rsi     # 0x52faa
movl $0x1b, %edx
movq %r14, %rdi
callq 0xc700
leaq 0x32649(%rip), %rsi     # 0x52fc6
movl $0xc, %edx
movq %r14, %rdi
callq 0xc700
leaq 0x8(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x20d58
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %r14, %rdi
callq 0xc700
jmp 0x20bc4
leaq 0x324eb(%rip), %rdx     # 0x52ea2
leaq 0x8(%rsp), %rdi
movl $0x3, %esi
movl $0x246, %ecx            # imm = 0x246
callq 0x268b2
movq 0x5161e(%rip), %rdi     # 0x71ff0
leaq 0x326d3(%rip), %rsi     # 0x530ac
movl $0x3a, %edx
callq 0xc700
leaq 0x8(%rsp), %rdi
callq 0x269f4
jmp 0x20bdf
leaq 0x32673(%rip), %rsi     # 0x5306c
movl $0x32, %edx
movq %r14, %rdi
callq 0xc700
leaq 0x32692(%rip), %rsi     # 0x5309f
movl $0xc, %edx
movq %r14, %rdi
callq 0xc700
movl 0x1c(%r15), %ebx
leaq 0x50(%rsp), %rdi
callq 0x12e46
movl %ebx, %ebp
andl $0x7f, %ebx
je 0x20a6a
movl %ebx, %eax
shll $0x18, %eax
addl $0x1000000, %eax        # imm = 0x1000000
movq 0x50(%rsp), %r12
cmpl $0x2000000, %eax        # imm = 0x2000000
jl 0x20a95
leaq 0x10(%r12), %r15
leaq 0x32f62(%rip), %rsi     # 0x539b3
movl $0x15, %edx
movq %r15, %rdi
callq 0xc700
movq %r15, %rdi
movl %ebx, %esi
callq 0xcb70
jmp 0x20a95
movq 0x50(%rsp), %r12
leaq 0x10(%r12), %r15
leaq 0x32f1f(%rip), %rsi     # 0x5399a
movl $0x18, %edx
movq %r15, %rdi
callq 0xc700
movl %ebp, %eax
movzbl %ah, %esi
movq %r15, %rdi
callq 0xcb70
testb %bpl, %bpl
jns 0x20ab0
leaq 0x10(%r12), %rdi
leaq 0x32f23(%rip), %rsi     # 0x539c9
movl $0xe, %edx
callq 0xc700
leaq 0x8(%rsp), %rdi
movq %r12, %rsi
callq 0x130af
testq %r12, %r12
je 0x20acc
movq (%r12), %rax
movq %r12, %rdi
callq *0x8(%rax)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %r14, %rdi
callq 0xc700
leaq 0x31dd3(%rip), %rsi     # 0x528b8
movl $0x1, %edx
movq %r14, %rdi
callq 0xc700
leaq 0x32566(%rip), %rsi     # 0x5305f
movl $0xc, %edx
movq %r14, %rdi
callq 0xc700
leaq 0x50(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x20d58
movq 0x50(%rsp), %rsi
movq 0x58(%rsp), %rdx
movq %r14, %rdi
callq 0xc700
leaq 0x60(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x20b42
movq 0x60(%rsp), %rsi
incq %rsi
callq 0xc600
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x20b5d
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xc600
movq 0x28(%rsp), %rbx
jmp 0x20bdf
movl $0x6, %edx
leaq 0x31713(%rip), %r15     # 0x52283
movq %r14, %rdi
movq %r15, %rsi
callq 0xc700
leaq 0x31d36(%rip), %rsi     # 0x528b8
movl $0x1, %edx
movq %r14, %rdi
callq 0xc700
leaq 0x324c9(%rip), %rsi     # 0x5305f
movl $0xc, %edx
movq %r14, %rdi
callq 0xc700
leaq 0x8(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x20d58
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %r14, %rdi
callq 0xc700
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x20bdf
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xc600
xorl %ebp, %ebp
leaq 0x8(%rsp), %rdi
movq %rbx, %rsi
callq 0x130af
leaq 0x51cc3(%rip), %rdi     # 0x728b8
leaq 0x8(%rsp), %rsi
callq 0xc300
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x20c1a
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xc600
testq %rbx, %rbx
je 0x20c28
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x8(%rax)
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x20c43
movq 0x40(%rsp), %rsi
incq %rsi
callq 0xc600
movl %ebp, %eax
addq $0x70, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movb $0x1, %bpl
jmp 0x20be1
jmp 0x20cab
jmp 0x20cab
jmp 0x20ce6
jmp 0x20d0f
movq %rax, %r14
leaq 0x60(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x20cc4
movq 0x60(%rsp), %rsi
incq %rsi
callq 0xc600
jmp 0x20cc4
jmp 0x20cc1
movq %rax, %r14
jmp 0x20cdf
jmp 0x20ce6
jmp 0x20ce6
jmp 0x20ce6
jmp 0x20d0f
jmp 0x20d0f
jmp 0x20d0f
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x269f4
jmp 0x20d12
jmp 0x20d0f
jmp 0x20d0f
movq %rax, %r14
testq %r12, %r12
je 0x20cdf
movq (%r12), %rax
movq %r12, %rdi
callq *0x8(%rax)
jmp 0x20cdf
jmp 0x20d0f
movq %rax, %r14
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x20cdf
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xc600
movq 0x28(%rsp), %rbx
jmp 0x20d12
movq %rax, %r14
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x20d12
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xc600
jmp 0x20d12
jmp 0x20d0f
movq %rax, %r14
jmp 0x20d20
jmp 0x20d0f
movq %rax, %r14
testq %rbx, %rbx
je 0x20d20
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x8(%rax)
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x20d3b
movq 0x40(%rsp), %rsi
incq %rsi
callq 0xc600
movq %r14, %rdi
callq 0xcbb0