// File: /workspace/github_c_makefile_star2_O1/deplinenoise[P]tundra/unittest/googletest/googletest/src/gtest-death-test.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 0xc930
movq %rax, %r15
cmpl $-0x1, %r15d
jne 0x1fe09
callq 0xc080
cmpl $0x4, (%rax)
je 0x1fdd5
leaq 0x24(%rbx), %r13
testl %r15d, %r15d
je 0x1fe4c
cmpl $0x1, %r15d
je 0x1fe18
jmp 0x1fe5f
testl %r15d, %r15d
je 0x1fe48
cmpl $0x1, %r15d
jne 0x1fe58
leaq 0x24(%rbx), %r13
movzbl 0x7(%rsp), %r14d
cmpl $0x51, %r14d
jg 0x1ff7e
cmpl $0x49, %r14d
je 0x20020
cmpl $0x4c, %r14d
jne 0x1ff9a
movl $0x2, 0x20(%rbx)
jmp 0x1fee6
leaq 0x24(%rbx), %r13
movl $0x1, 0x20(%rbx)
jmp 0x1fee6
addq $0x24, %rbx
movq %rbx, %r13
leaq 0x3400c(%rip), %rdx     # 0x53e72
leaq 0x8(%rsp), %rdi
movl $0x3, %esi
movl $0x1d6, %ecx            # imm = 0x1D6
callq 0x26c0e
movq 0x5316f(%rip), %rdi     # 0x72ff0
leaq 0x3405d(%rip), %rsi     # 0x53ee5
movl $0x2b, %edx
callq 0xc700
leaq 0xf0(%rsp), %rdi
callq 0x1fca1
movq 0xf0(%rsp), %rsi
movq 0xf8(%rsp), %rdx
movq 0x5313a(%rip), %rdi     # 0x72ff0
callq 0xc700
leaq 0x100(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1fedc
movq 0x100(%rsp), %rsi
incq %rsi
callq 0xc600
leaq 0x8(%rsp), %rdi
callq 0x26d50
movl (%r13), %edi
callq 0xccf0
cmpl $-0x1, %eax
jne 0x1ff64
callq 0xc080
cmpl $0x4, (%rax)
je 0x1fee6
leaq 0xe0(%rsp), %rbx
movq %rbx, -0x10(%rbx)
leaq 0x34000(%rip), %rsi     # 0x53f11
leaq 0x3400c(%rip), %rdx     # 0x53f24
leaq 0xd0(%rsp), %rdi
callq 0x2ee64
leaq 0x33f46(%rip), %rsi     # 0x53e72
leaq 0xd0(%rsp), %rdi
callq 0xcca0
leaq 0xc0(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x201be
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x201d1
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 0x2012c
cmpl $0x52, %r14d
jne 0x1ff9a
movl $0x3, 0x20(%rbx)
jmp 0x1fee6
leaq 0x33ed1(%rip), %rdx     # 0x53e72
leaq 0xf0(%rsp), %rdi
movl $0x3, %esi
movl $0x1d1, %ecx            # imm = 0x1D1
callq 0x26c0e
movq 0x53031(%rip), %rdi     # 0x72ff0
leaq 0x33ee3(%rip), %rsi     # 0x53ea9
movl $0x22, %edx
callq 0xc700
movq 0x53019(%rip), %rdi     # 0x72ff0
leaq 0x33eee(%rip), %rsi     # 0x53ecc
movl $0x18, %edx
callq 0xc700
movsbq %r14b, %rax
movl %eax, %esi
movq 0x52ffb(%rip), %rdi     # 0x72ff0
callq 0xc3c0
leaq 0x373d5(%rip), %rsi     # 0x573d6
movl $0x1, %edx
movq %rax, %rdi
callq 0xc700
leaq 0xf0(%rsp), %rdi
callq 0x26d50
jmp 0x1fee6
movl (%r13), %ebp
leaq 0x88(%rsp), %rbx
movq %rbx, %rdi
callq 0x12eee
movq (%rbx), %rbx
leaq 0x10(%rbx), %r14
leaq 0xf0(%rsp), %r15
movl $0xff, %edx
movl %ebp, %edi
movq %r15, %rsi
callq 0xc930
movq %rax, %r12
testl %r12d, %r12d
jle 0x20082
andl $0x7fffffff, %r12d      # imm = 0x7FFFFFFF
movb $0x0, 0xf0(%rsp,%r12)
movq %r15, %rdi
callq 0xc260
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0xc700
jmp 0x20043
cmpl $-0x1, %r12d
jne 0x20092
callq 0xc080
cmpl $0x4, (%rax)
je 0x20043
testl %r12d, %r12d
je 0x20138
callq 0xc080
movl (%rax), %ebp
leaq 0x33dc9(%rip), %rdx     # 0x53e72
leaq 0x28(%rsp), %rdi
movl $0x3, %esi
movl $0x153, %ecx            # imm = 0x153
callq 0x26c0e
movq 0x52f2c(%rip), %rdi     # 0x72ff0
leaq 0x34867(%rip), %rsi     # 0x54932
movl $0x29, %edx
callq 0xc700
leaq 0x8(%rsp), %rdi
callq 0x1fca1
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq 0x52f00(%rip), %rdi     # 0x72ff0
callq 0xc700
movq %rax, %r14
leaq 0x34c9b(%rip), %rsi     # 0x54d9a
movl $0x2, %edx
movq %rax, %rdi
callq 0xc700
movq %r14, %rdi
movl %ebp, %esi
callq 0xcb70
leaq 0x3417f(%rip), %rsi     # 0x5429c
movl $0x1, %edx
movq %rax, %rdi
callq 0xc700
jmp 0x20176
movl $0x4, 0x20(%rbx)
jmp 0x1fee6
leaq 0x33d33(%rip), %rdx     # 0x53e72
leaq 0x28(%rsp), %rdi
movl $0x3, %esi
movl $0x150, %ecx            # imm = 0x150
callq 0x26c0e
leaq 0x8(%rsp), %rdi
movq %rbx, %rsi
callq 0x13163
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq 0x52e7f(%rip), %rdi     # 0x72ff0
callq 0xc700
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x20191
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xc600
leaq 0x28(%rsp), %rdi
callq 0x26d50
testq %rbx, %rbx
je 0x1fee6
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x8(%rax)
movq $0x0, 0x88(%rsp)
jmp 0x1fee6
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 0x33d2e(%rip), %rsi     # 0x53f25
callq 0xcca0
leaq 0x58(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x2021f
movups (%rcx), %xmm0
movups %xmm0, (%r12)
jmp 0x2022c
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 $0x1d9, (%rsi)          # imm = 0x1D9
leaq 0x68(%rsp), %rdi
callq 0x2aba1
movq 0x48(%rsp), %rcx
movq 0x50(%rsp), %r8
movq 0x70(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
cmpq %r12, %rcx
je 0x2027e
movq 0x58(%rsp), %rsi
leaq 0x78(%rsp), %r13
cmpq %rsi, %rax
jbe 0x2029e
movl $0xf, %esi
cmpq %r13, 0x68(%rsp)
je 0x20299
movq 0x78(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x202af
movq 0x68(%rsp), %rsi
leaq 0x48(%rsp), %rdi
callq 0xc190
jmp 0x202bd
leaq 0x68(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0xc6e0
leaq 0x38(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
jne 0x202da
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
jmp 0x202e7
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 0x32f77(%rip), %rsi     # 0x53282
leaq 0x28(%rsp), %rdi
callq 0xcca0
leaq 0x98(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x20339
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0x2034c
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 0x33bbb(%rip), %rsi     # 0x53f2d
callq 0xcca0
leaq 0x18(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x2039c
movups (%rcx), %xmm0
leaq 0x18(%rsp), %rdx
movups %xmm0, (%rdx)
jmp 0x203a9
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 0x33d76(%rip), %rsi     # 0x54142
callq 0xcca0
leaq 0x100(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x203fc
movups (%rcx), %xmm0
leaq 0x100(%rsp), %rdx
movups %xmm0, (%rdx)
jmp 0x2040f
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 0x1fc27
jmp 0x20493
jmp 0x2043e
jmp 0x20581
jmp 0x2043e
movq %rax, %r14
jmp 0x204b1
jmp 0x20581
movq %rax, %r14
movq 0xf0(%rsp), %rdi
leaq 0x100(%rsp), %rax
cmpq %rax, %rdi
je 0x20475
movq 0x100(%rsp), %rsi
incq %rsi
callq 0xc600
jmp 0x20475
movq %rax, %r14
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x204c3
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xc600
jmp 0x204c3
movq %rax, %r14
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x204b1
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xc600
leaq 0x28(%rsp), %rdi
callq 0x26d50
jmp 0x20584
movq %rax, %r14
movq 0x88(%rsp), %rdi
cmpq %rbp, %rdi
je 0x2052c
movq 0x98(%rsp), %rsi
incq %rsi
callq 0xc600
jmp 0x2052c
movq %rax, %r14
leaq 0xf0(%rsp), %rdi
jmp 0x2051f
movq %rax, %r14
leaq 0x100(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2051a
movq 0x100(%rsp), %rsi
incq %rsi
callq 0xc600
jmp 0x2051a
jmp 0x20517
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x26d50
jmp 0x205e7
movq %rax, %r14
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2054c
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xc600
jmp 0x2054c
movq %rax, %r14
movq 0x68(%rsp), %rdi
cmpq %r13, %rdi
je 0x20568
movq 0x78(%rsp), %rsi
incq %rsi
callq 0xc600
jmp 0x20568
movq %rax, %r14
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
je 0x205a3
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xc600
jmp 0x205a3
movq %rax, %r14
testq %rbx, %rbx
je 0x205e7
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x8(%rax)
movq $0x0, 0x88(%rsp)
jmp 0x205e7
movq %rax, %r14
movq 0xb0(%rsp), %rdi
cmpq %r15, %rdi
je 0x205c5
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0xc600
jmp 0x205c5
movq %rax, %r14
movq 0xd0(%rsp), %rdi
cmpq %rbx, %rdi
je 0x205e7
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0xc600
jmp 0x205e7
movq %rax, %r14
movq %r14, %rdi
callq 0xcbb0
nop