// File: /workspace/github_cpp_makefile_star2_O1/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
movq %rax, %r15
cmpl $-0x1, %r15d
jne 0x1561d
callq 0x6070
cmpl $0x4, (%rax)
je 0x155e9
leaq 0x24(%rbx), %r13
testl %r15d, %r15d
je 0x15660
cmpl $0x1, %r15d
je 0x1562c
jmp 0x15673
testl %r15d, %r15d
je 0x1565c
cmpl $0x1, %r15d
jne 0x1566c
leaq 0x24(%rbx), %r13
movzbl 0x7(%rsp), %r14d
cmpl $0x51, %r14d
jg 0x15792
cmpl $0x49, %r14d
je 0x15834
cmpl $0x4c, %r14d
jne 0x157ae
movl $0x2, 0x20(%rbx)
jmp 0x156fa
leaq 0x24(%rbx), %r13
movl $0x1, 0x20(%rbx)
jmp 0x156fa
addq $0x24, %rbx
movq %rbx, %r13
leaq 0x12c17(%rip), %rdx     # 0x28291
leaq 0x8(%rsp), %rdi
movl $0x3, %esi
movl $0x1b29, %ecx           # imm = 0x1B29
callq 0x1c270
movq 0x2195b(%rip), %rdi     # 0x36ff0
leaq 0x13a0d(%rip), %rsi     # 0x290a9
movl $0x2b, %edx
callq 0x6510
leaq 0xf0(%rsp), %rdi
callq 0x154b5
movq 0xf0(%rsp), %rsi
movq 0xf8(%rsp), %rdx
movq 0x21926(%rip), %rdi     # 0x36ff0
callq 0x6510
leaq 0x100(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x156f0
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x6430
leaq 0x8(%rsp), %rdi
callq 0x1c3b2
movl (%r13), %edi
callq 0x69d0
cmpl $-0x1, %eax
jne 0x15778
callq 0x6070
cmpl $0x4, (%rax)
je 0x156fa
leaq 0xe0(%rsp), %rbx
movq %rbx, -0x10(%rbx)
leaq 0x139b0(%rip), %rsi     # 0x290d5
leaq 0x139bc(%rip), %rdx     # 0x290e8
leaq 0xd0(%rsp), %rdi
callq 0x247da
leaq 0x12b51(%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 0x159d2
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x159e5
movl $0xffffffff, (%r13)     # imm = 0xFFFFFFFF
addq $0x1f8, %rsp            # imm = 0x1F8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpl $0x54, %r14d
je 0x15940
cmpl $0x52, %r14d
jne 0x157ae
movl $0x3, 0x20(%rbx)
jmp 0x156fa
leaq 0x12adc(%rip), %rdx     # 0x28291
leaq 0xf0(%rsp), %rdi
movl $0x3, %esi
movl $0x1b24, %ecx           # imm = 0x1B24
callq 0x1c270
movq 0x2181d(%rip), %rdi     # 0x36ff0
leaq 0x13893(%rip), %rsi     # 0x2906d
movl $0x22, %edx
callq 0x6510
movq 0x21805(%rip), %rdi     # 0x36ff0
leaq 0x1389e(%rip), %rsi     # 0x29090
movl $0x18, %edx
callq 0x6510
movsbq %r14b, %rax
movl %eax, %esi
movq 0x217e7(%rip), %rdi     # 0x36ff0
callq 0x6290
leaq 0x1310d(%rip), %rsi     # 0x28922
movl $0x1, %edx
movq %rax, %rdi
callq 0x6510
leaq 0xf0(%rsp), %rdi
callq 0x1c3b2
jmp 0x156fa
movl (%r13), %ebp
leaq 0x88(%rsp), %rbx
movq %rbx, %rdi
callq 0x9de4
movq (%rbx), %rbx
leaq 0x10(%rbx), %r14
leaq 0xf0(%rsp), %r15
movl $0xff, %edx
movl %ebp, %edi
movq %r15, %rsi
callq 0x6720
movq %rax, %r12
testl %r12d, %r12d
jle 0x15896
andl $0x7fffffff, %r12d      # imm = 0x7FFFFFFF
movb $0x0, 0xf0(%rsp,%r12)
movq %r15, %rdi
callq 0x61c0
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x6510
jmp 0x15857
cmpl $-0x1, %r12d
jne 0x158a6
callq 0x6070
cmpl $0x4, (%rax)
je 0x15857
testl %r12d, %r12d
je 0x1594c
callq 0x6070
movl (%rax), %ebp
leaq 0x129d4(%rip), %rdx     # 0x28291
leaq 0x28(%rsp), %rdi
movl $0x3, %esi
movl $0x1aa6, %ecx           # imm = 0x1AA6
callq 0x1c270
movq 0x21718(%rip), %rdi     # 0x36ff0
leaq 0x1414c(%rip), %rsi     # 0x29a2b
movl $0x29, %edx
callq 0x6510
leaq 0x8(%rsp), %rdi
callq 0x154b5
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq 0x216ec(%rip), %rdi     # 0x36ff0
callq 0x6510
movq %rax, %r14
leaq 0x14579(%rip), %rsi     # 0x29e8c
movl $0x2, %edx
movq %rax, %rdi
callq 0x6510
movq %r14, %rdi
movl %ebp, %esi
callq 0x68a0
leaq 0x13af1(%rip), %rsi     # 0x29422
movl $0x1, %edx
movq %rax, %rdi
callq 0x6510
jmp 0x1598a
movl $0x4, 0x20(%rbx)
jmp 0x156fa
leaq 0x1293e(%rip), %rdx     # 0x28291
leaq 0x28(%rsp), %rdi
movl $0x3, %esi
movl $0x1aa3, %ecx           # imm = 0x1AA3
callq 0x1c270
leaq 0x8(%rsp), %rdi
movq %rbx, %rsi
callq 0xa059
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq 0x2166b(%rip), %rdi     # 0x36ff0
callq 0x6510
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x159a5
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6430
leaq 0x28(%rsp), %rdi
callq 0x1c3b2
testq %rbx, %rbx
je 0x156fa
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x8(%rax)
movq $0x0, 0x88(%rsp)
jmp 0x156fa
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 0x136de(%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 0x15a33
movups (%rcx), %xmm0
movups %xmm0, (%r12)
jmp 0x15a40
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 0xac(%rsp), %rsi
movl $0x1b2c, (%rsi)         # imm = 0x1B2C
leaq 0x68(%rsp), %rdi
callq 0x20033
movq 0x48(%rsp), %rcx
movq 0x50(%rsp), %r8
movq 0x70(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
cmpq %r12, %rcx
je 0x15a92
movq 0x58(%rsp), %rsi
leaq 0x78(%rsp), %r13
cmpq %rsi, %rax
jbe 0x15ab2
movl $0xf, %esi
cmpq %r13, 0x68(%rsp)
je 0x15aad
movq 0x78(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x15ac3
movq 0x68(%rsp), %rsi
leaq 0x48(%rsp), %rdi
callq 0x6130
jmp 0x15ad1
leaq 0x68(%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 0x15aee
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
jmp 0x15afb
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 0x129d6(%rip), %rsi     # 0x284f5
leaq 0x28(%rsp), %rdi
callq 0x69a0
leaq 0x98(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x15b4d
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0x15b60
movq %rdx, 0x88(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x98(%rsp)
movq 0x8(%rax), %rdx
leaq 0x88(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x1356b(%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 0x15bb0
movups (%rcx), %xmm0
leaq 0x18(%rsp), %rdx
movups %xmm0, (%rdx)
jmp 0x15bbd
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 0x13726(%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 0x15c10
movups (%rcx), %xmm0
leaq 0x100(%rsp), %rdx
movups %xmm0, (%rdx)
jmp 0x15c23
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 0x1543b
jmp 0x15ca7
jmp 0x15c52
jmp 0x15d95
jmp 0x15c52
movq %rax, %r14
jmp 0x15cc5
jmp 0x15d95
movq %rax, %r14
movq 0xf0(%rsp), %rdi
leaq 0x100(%rsp), %rax
cmpq %rax, %rdi
je 0x15c89
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x6430
jmp 0x15c89
movq %rax, %r14
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x15cd7
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6430
jmp 0x15cd7
movq %rax, %r14
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x15cc5
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6430
leaq 0x28(%rsp), %rdi
callq 0x1c3b2
jmp 0x15d98
movq %rax, %r14
movq 0x88(%rsp), %rdi
cmpq %rbp, %rdi
je 0x15d40
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x6430
jmp 0x15d40
movq %rax, %r14
leaq 0xf0(%rsp), %rdi
jmp 0x15d33
movq %rax, %r14
leaq 0x100(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x15d2e
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x6430
jmp 0x15d2e
jmp 0x15d2b
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x1c3b2
jmp 0x15dfb
movq %rax, %r14
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x15d60
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x6430
jmp 0x15d60
movq %rax, %r14
movq 0x68(%rsp), %rdi
cmpq %r13, %rdi
je 0x15d7c
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x6430
jmp 0x15d7c
movq %rax, %r14
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
je 0x15db7
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x6430
jmp 0x15db7
movq %rax, %r14
testq %rbx, %rbx
je 0x15dfb
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x8(%rax)
movq $0x0, 0x88(%rsp)
jmp 0x15dfb
movq %rax, %r14
movq 0xb0(%rsp), %rdi
cmpq %r15, %rdi
je 0x15dd9
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x6430
jmp 0x15dd9
movq %rax, %r14
movq 0xd0(%rsp), %rdi
cmpq %rbx, %rdi
je 0x15dfb
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x6430
jmp 0x15dfb
movq %rax, %r14
movq %r14, %rdi
callq 0x68e0
nop