// File: /workspace/github_cpp_makefile_star2_O2/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 %rbx
subq $0x1f8, %rsp            # imm = 0x1F8
movq %rdi, %rbx
leaq 0x6(%rsp), %r14
pushq $0x1
popq %r15
movl 0x24(%rbx), %edi
movq %r14, %rsi
movq %r15, %rdx
callq 0x6760
cmpl $-0x1, %eax
jne 0x11114
callq 0x6060
cmpl $0x4, (%rax)
je 0x110f5
jmp 0x11158
testl %eax, %eax
je 0x111bd
cmpl $0x1, %eax
jne 0x11158
movzbl 0x6(%rsp), %r14d
cmpl $0x49, %r14d
je 0x112d8
cmpl $0x4c, %r14d
je 0x112c0
cmpl $0x54, %r14d
je 0x112cc
cmpl $0x52, %r14d
jne 0x11338
movl $0x3, 0x20(%rbx)
jmp 0x111c4
leaq 0xd102(%rip), %rdx      # 0x1e261
leaq 0x8(%rsp), %rdi
pushq $0x3
popq %rsi
movl $0x1b29, %ecx           # imm = 0x1B29
callq 0x1418e
movq 0x1ce70(%rip), %rdi     # 0x2dfe8
leaq 0xdefa(%rip), %rsi      # 0x1f079
callq 0x6410
movq %rax, %r14
leaq 0xf0(%rsp), %rdi
callq 0x10fed
leaq 0xf0(%rsp), %rsi
movq %r14, %rdi
callq 0x63c0
leaq 0xf0(%rsp), %rdi
callq 0x6a28
leaq 0x8(%rsp), %rdi
callq 0x14252
jmp 0x111c4
movl $0x1, 0x20(%rbx)
movl 0x24(%rbx), %edi
callq 0x6a00
cmpl $-0x1, %eax
jne 0x112ae
callq 0x6060
cmpl $0x4, (%rax)
je 0x111c4
leaq 0xdebf(%rip), %rsi      # 0x1f0a5
leaq 0x90(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x1543a
leaq 0xd062(%rip), %rdx      # 0x1e261
leaq 0xb0(%rsp), %rdi
leaq 0x90(%rsp), %rsi
callq 0x154d7
leaq 0xde9e(%rip), %rdx      # 0x1f0b9
leaq 0xd0(%rsp), %rdi
leaq 0xb0(%rsp), %rsi
callq 0x154d7
leaq 0x6c(%rsp), %rsi
movl $0x1b2c, (%rsi)         # imm = 0x1B2C
leaq 0x70(%rsp), %rdi
callq 0x1703c
leaq 0x28(%rsp), %rdi
leaq 0xd0(%rsp), %rsi
leaq 0x70(%rsp), %rdx
callq 0x16fd5
leaq 0xd262(%rip), %rdx      # 0x1e4c5
leaq 0x48(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x154d7
leaq 0xde48(%rip), %rdx      # 0x1f0c1
leaq 0x8(%rsp), %rdi
leaq 0x48(%rsp), %rsi
callq 0x154d7
leaq 0xe047(%rip), %rdx      # 0x1f2d6
leaq 0xf0(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x154d7
leaq 0xf0(%rsp), %rdi
callq 0x10f7e
orl $-0x1, 0x24(%rbx)
addq $0x1f8, %rsp            # imm = 0x1F8
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movl $0x2, 0x20(%rbx)
jmp 0x111c4
movl $0x4, 0x20(%rbx)
jmp 0x111c4
movl 0x24(%rbx), %r14d
leaq 0x48(%rsp), %rdi
callq 0x8f22
leaq 0xf0(%rsp), %r15
movl $0xff, %edx
movl %r14d, %edi
movq %r15, %rsi
callq 0x6760
testl %eax, %eax
jle 0x11322
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movb $0x0, 0xf0(%rsp,%rax)
movq 0x48(%rsp), %rdi
addq $0x10, %rdi
movq %r15, %rsi
callq 0x6410
jmp 0x112ee
cmpl $-0x1, %eax
jne 0x113a5
callq 0x6060
movl (%rax), %ebp
cmpl $0x4, %ebp
je 0x112ee
jmp 0x113eb
leaq 0xcf22(%rip), %rdx      # 0x1e261
leaq 0xf0(%rsp), %rdi
pushq $0x3
popq %rsi
movl $0x1b24, %ecx           # imm = 0x1B24
callq 0x1418e
movq 0x1cc8d(%rip), %rdi     # 0x2dfe8
leaq 0xdcdb(%rip), %rsi      # 0x1f03d
callq 0x6410
leaq 0xdcf2(%rip), %rsi      # 0x1f060
movq %rax, %rdi
callq 0x6410
movsbq %r14b, %rcx
movl %ecx, %esi
movq %rax, %rdi
callq 0x62a0
leaq 0xd567(%rip), %rsi      # 0x1e8f2
movq %rax, %rdi
callq 0x6410
leaq 0xf0(%rsp), %rdi
callq 0x14252
jmp 0x111c4
testl %eax, %eax
jne 0x113e4
leaq 0xceb1(%rip), %rdx      # 0x1e261
leaq 0x28(%rsp), %rdi
pushq $0x3
popq %rsi
movl $0x1aa3, %ecx           # imm = 0x1AA3
callq 0x1418e
movq 0x48(%rsp), %rsi
leaq 0x8(%rsp), %rdi
callq 0x90f7
movq 0x1cc10(%rip), %rdi     # 0x2dfe8
leaq 0x8(%rsp), %rsi
callq 0x63c0
jmp 0x11459
callq 0x6060
movl (%rax), %ebp
leaq 0xce6f(%rip), %rdx      # 0x1e261
leaq 0x28(%rsp), %rdi
pushq $0x3
popq %rsi
movl $0x1aa6, %ecx           # imm = 0x1AA6
callq 0x1418e
movq 0x1cbdd(%rip), %rdi     # 0x2dfe8
leaq 0xe5e9(%rip), %rsi      # 0x1f9fb
callq 0x6410
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x10fed
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x63c0
leaq 0xea24(%rip), %rsi      # 0x1fe5c
movq %rax, %rdi
callq 0x6410
movq %rax, %rdi
movl %ebp, %esi
callq 0x68e0
leaq 0xdfa1(%rip), %rsi      # 0x1f3f2
movq %rax, %rdi
callq 0x6410
leaq 0x8(%rsp), %rdi
callq 0x6a28
leaq 0x28(%rsp), %rdi
callq 0x14252
leaq 0x48(%rsp), %rdi
callq 0x731c
jmp 0x111c4
jmp 0x114b2
jmp 0x11487
jmp 0x1153a
jmp 0x11487
movq %rax, %rbx
jmp 0x114bf
jmp 0x1153a
movq %rax, %rbx
leaq 0xf0(%rsp), %rdi
callq 0x6a28
jmp 0x114a6
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x6a28
jmp 0x114db
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x6a28
leaq 0x28(%rsp), %rdi
callq 0x14252
jmp 0x1153d
movq %rax, %rbx
leaq 0xf0(%rsp), %rdi
jmp 0x11512
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x6a28
jmp 0x114ea
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x6a28
jmp 0x1151c
movq %rax, %rbx
leaq 0xf0(%rsp), %rdi
callq 0x6a28
jmp 0x1150d
jmp 0x1150a
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x14252
jmp 0x11570
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
callq 0x6a28
jmp 0x1152b
movq %rax, %rbx
leaq 0xd0(%rsp), %rdi
callq 0x6a28
jmp 0x1154c
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x731c
jmp 0x11570
movq %rax, %rbx
leaq 0xb0(%rsp), %rdi
callq 0x6a28
jmp 0x1155e
movq %rax, %rbx
leaq 0x90(%rsp), %rdi
callq 0x6a28
jmp 0x11570
movq %rax, %rbx
movq %rbx, %rdi
callq 0x6900