// File: /workspace/github_cpp_makefile_star2_O3/WeihuaZhu[P]hpc_prog2/./gtest/gtest-all.cc
// Function: testing::internal::DeathTestImpl::ReadAndInterpretStatusByte()
void DeathTestImpl::ReadAndInterpretStatusByte() {
  char flag;
  int bytes_read;

  // The read() here blocks until data is available (signifying the
  // failure of the death test) or until the pipe is closed (signifying
  // its success), so it's okay to call this in the parent before
  // the child process has exited.
  do {
    bytes_read = posix::Read(read_fd(), &flag, 1);
  } while (bytes_read == -1 && errno == EINTR);

  if (bytes_read == 0) {
    set_outcome(DIED);
  } else if (bytes_read == 1) {
    switch (flag) {
      case kDeathTestReturned:
        set_outcome(RETURNED);
        break;
      case kDeathTestThrew:
        set_outcome(THREW);
        break;
      case kDeathTestLived:
        set_outcome(LIVED);
        break;
      case kDeathTestInternalError:
        FailFromInternalError(read_fd());  // Does not return.
        break;
      default:
        GTEST_LOG_(FATAL) << "Death test child process reported "
                          << "unexpected status byte ("
                          << static_cast<unsigned int>(flag) << ")";
    }
  } else {
    GTEST_LOG_(FATAL) << "Read from death test child process failed: "
                      << GetLastErrnoDescription();
  }
  GTEST_DEATH_TEST_CHECK_SYSCALL_(posix::Close(read_fd()));
  set_read_fd(-1);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1f8, %rsp            # imm = 0x1F8
movq %rdi, %rbx
leaq 0x7(%rsp), %r14
movl 0x24(%rbx), %edi
movl $0x1, %edx
movq %r14, %rsi
callq 0x6720
cmpl $-0x1, %eax
jne 0x15280
callq 0x6070
cmpl $0x4, (%rax)
je 0x1525f
jmp 0x152bd
testl %eax, %eax
je 0x15346
cmpl $0x1, %eax
jne 0x152bd
movzbl 0x7(%rsp), %r14d
cmpl $0x51, %r14d
jg 0x153e3
cmpl $0x49, %r14d
je 0x15485
cmpl $0x4c, %r14d
jne 0x153ff
movl $0x2, 0x20(%rbx)
jmp 0x1534d
leaq 0x12fcd(%rip), %rdx     # 0x28291
leaq 0x8(%rsp), %rdi
movl $0x3, %esi
movl $0x1b29, %ecx           # imm = 0x1B29
callq 0x1be2c
movq 0x21d11(%rip), %rdi     # 0x36ff0
leaq 0x13dc3(%rip), %rsi     # 0x290a9
movl $0x2b, %edx
callq 0x6510
leaq 0xf0(%rsp), %rdi
callq 0x1512b
movq 0xf0(%rsp), %rsi
movq 0xf8(%rsp), %rdx
movq 0x21cdc(%rip), %rdi     # 0x36ff0
callq 0x6510
leaq 0x100(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1533a
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x6430
leaq 0x8(%rsp), %rdi
callq 0x1bf6e
jmp 0x1534d
movl $0x1, 0x20(%rbx)
movl 0x24(%rbx), %edi
callq 0x69d0
cmpl $-0x1, %eax
jne 0x153ca
callq 0x6070
cmpl $0x4, (%rax)
je 0x1534d
leaq 0xe0(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x13d5e(%rip), %rsi     # 0x290d5
leaq 0x13d6a(%rip), %rdx     # 0x290e8
leaq 0xd0(%rsp), %rdi
callq 0x24240
leaq 0x12eff(%rip), %rsi     # 0x28291
leaq 0xd0(%rsp), %rdi
callq 0x69a0
leaq 0xc0(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x15612
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x15625
movl $0xffffffff, 0x24(%rbx) # imm = 0xFFFFFFFF
addq $0x1f8, %rsp            # imm = 0x1F8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpl $0x54, %r14d
je 0x154f4
cmpl $0x52, %r14d
jne 0x153ff
movl $0x3, 0x20(%rbx)
jmp 0x1534d
leaq 0x12e8b(%rip), %rdx     # 0x28291
leaq 0xf0(%rsp), %rdi
movl $0x3, %esi
movl $0x1b24, %ecx           # imm = 0x1B24
callq 0x1be2c
movq 0x21bcc(%rip), %rdi     # 0x36ff0
leaq 0x13c42(%rip), %rsi     # 0x2906d
movl $0x22, %edx
callq 0x6510
movq 0x21bb4(%rip), %rdi     # 0x36ff0
leaq 0x13c4d(%rip), %rsi     # 0x29090
movl $0x18, %edx
callq 0x6510
movsbq %r14b, %rax
movl %eax, %esi
movq 0x21b96(%rip), %rdi     # 0x36ff0
callq 0x6290
leaq 0x134bc(%rip), %rsi     # 0x28922
movl $0x1, %edx
movq %rax, %rdi
callq 0x6510
leaq 0xf0(%rsp), %rdi
callq 0x1bf6e
jmp 0x1534d
movl 0x24(%rbx), %r15d
leaq 0x90(%rsp), %r14
movq %r14, %rdi
callq 0x9d20
movq (%r14), %r14
leaq 0x10(%r14), %r12
leaq 0xf0(%rsp), %r13
movl $0xff, %edx
movl %r15d, %edi
movq %r13, %rsi
callq 0x6720
testl %eax, %eax
jle 0x154e1
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movb $0x0, 0xf0(%rsp,%rax)
movq %r13, %rdi
callq 0x61c0
movq %r12, %rdi
movq %r13, %rsi
movq %rax, %rdx
callq 0x6510
jmp 0x154a8
cmpl $-0x1, %eax
jne 0x15500
callq 0x6070
movl (%rax), %ebp
cmpl $0x4, %ebp
je 0x154a8
jmp 0x1554e
movl $0x4, 0x20(%rbx)
jmp 0x1534d
testl %eax, %eax
jne 0x15547
leaq 0x12d86(%rip), %rdx     # 0x28291
leaq 0x28(%rsp), %rdi
movl $0x3, %esi
movl $0x1aa3, %ecx           # imm = 0x1AA3
callq 0x1be2c
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0x9f89
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq 0x21ab3(%rip), %rdi     # 0x36ff0
callq 0x6510
jmp 0x155d6
callq 0x6070
movl (%rax), %ebp
leaq 0x12d3c(%rip), %rdx     # 0x28291
leaq 0x28(%rsp), %rdi
movl $0x3, %esi
movl $0x1aa6, %ecx           # imm = 0x1AA6
callq 0x1be2c
movq 0x21a80(%rip), %rdi     # 0x36ff0
leaq 0x144b4(%rip), %rsi     # 0x29a2b
movl $0x29, %edx
callq 0x6510
leaq 0x8(%rsp), %rdi
callq 0x1512b
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq 0x21a54(%rip), %rdi     # 0x36ff0
callq 0x6510
movq %rax, %r15
leaq 0x148e1(%rip), %rsi     # 0x29e8c
movl $0x2, %edx
movq %rax, %rdi
callq 0x6510
movq %r15, %rdi
movl %ebp, %esi
callq 0x68a0
leaq 0x13e59(%rip), %rsi     # 0x29422
movl $0x1, %edx
movq %rax, %rdi
callq 0x6510
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x155f1
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6430
leaq 0x28(%rsp), %rdi
callq 0x1bf6e
testq %r14, %r14
je 0x1534d
movq (%r14), %rax
movq %r14, %rdi
callq *0x8(%rax)
jmp 0x1534d
movq %rdx, 0xb0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xc0(%rsp)
movq 0x8(%rax), %rdx
leaq 0xb0(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x13a9e(%rip), %rsi     # 0x290e9
callq 0x69a0
leaq 0x58(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x15673
movups (%rcx), %xmm0
movups %xmm0, (%r12)
jmp 0x15680
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
movq 0x8(%rax), %rdx
movq %rdx, 0x50(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x6c(%rsp), %rsi
movl $0x1b2c, (%rsi)         # imm = 0x1B2C
leaq 0x70(%rsp), %rdi
callq 0x1fa2d
movq 0x48(%rsp), %rcx
movq 0x50(%rsp), %r8
movq 0x78(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %r12, %rcx
je 0x156cf
movq 0x58(%rsp), %rdi
leaq 0x80(%rsp), %r13
movq -0x10(%r13), %rsi
cmpq %rdi, %rax
jbe 0x156f7
movl $0xf, %edi
cmpq %r13, %rsi
je 0x156f2
movq 0x80(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x15703
leaq 0x48(%rsp), %rdi
callq 0x6130
jmp 0x15711
leaq 0x70(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x64f0
leaq 0x38(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
jne 0x1572e
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
jmp 0x1573b
movq %rsi, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x30(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x12d96(%rip), %rsi     # 0x284f5
leaq 0x28(%rsp), %rdi
callq 0x69a0
leaq 0xa0(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x1578d
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0x157a0
movq %rdx, 0x90(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xa0(%rsp)
movq 0x8(%rax), %rdx
leaq 0x90(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x1392b(%rip), %rsi     # 0x290f1
callq 0x69a0
leaq 0x18(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x157f0
movups (%rcx), %xmm0
leaq 0x18(%rsp), %rdx
movups %xmm0, (%rdx)
jmp 0x157fd
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
movq 0x8(%rax), %rdx
leaq 0x8(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x13ae6(%rip), %rsi     # 0x29306
callq 0x69a0
leaq 0x100(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x15850
movups (%rcx), %xmm0
leaq 0x100(%rsp), %rdx
movups %xmm0, (%rdx)
jmp 0x15863
movq %rdx, 0xf0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x100(%rsp)
movq 0x8(%rax), %rdx
leaq 0xf0(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
callq 0x150b1
jmp 0x158e7
jmp 0x15892
jmp 0x159d8
jmp 0x15892
movq %rax, %rbx
jmp 0x15905
jmp 0x159d8
movq %rax, %rbx
movq 0xf0(%rsp), %rdi
leaq 0x100(%rsp), %rax
cmpq %rax, %rdi
je 0x158c9
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x6430
jmp 0x158c9
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x15924
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6430
jmp 0x15924
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x15905
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6430
leaq 0x28(%rsp), %rdi
callq 0x1bf6e
jmp 0x159db
movq %rax, %rbx
leaq 0xf0(%rsp), %rdi
jmp 0x15993
movq %rax, %rbx
movq 0x90(%rsp), %rdi
cmpq %rbp, %rdi
je 0x15946
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x6430
jmp 0x15946
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x159a0
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x6430
jmp 0x159a0
movq %rax, %rbx
leaq 0x100(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1598e
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x6430
jmp 0x1598e
jmp 0x1598b
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x1bf6e
jmp 0x15a32
movq %rax, %rbx
movq 0x70(%rsp), %rdi
cmpq %r13, %rdi
je 0x159bf
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x6430
jmp 0x159bf
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
je 0x159ee
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x6430
jmp 0x159ee
movq %rax, %rbx
testq %r14, %r14
je 0x15a32
movq (%r14), %rax
movq %r14, %rdi
callq *0x8(%rax)
jmp 0x15a32
movq %rax, %rbx
movq 0xb0(%rsp), %rdi
cmpq %r15, %rdi
je 0x15a10
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x6430
jmp 0x15a10
movq %rax, %rbx
movq 0xd0(%rsp), %rdi
cmpq %r14, %rdi
je 0x15a32
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x6430
jmp 0x15a32
movq %rax, %rbx
movq %rbx, %rdi
callq 0x68e0