// File: /workspace/github_c_makefile_star2_O3/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
cmpl $-0x1, %eax
jne 0x1fb98
callq 0xc080
cmpl $0x4, (%rax)
je 0x1fb77
jmp 0x1fbd5
testl %eax, %eax
je 0x1fc5e
cmpl $0x1, %eax
jne 0x1fbd5
movzbl 0x7(%rsp), %r14d
cmpl $0x51, %r14d
jg 0x1fcfb
cmpl $0x49, %r14d
je 0x1fd9d
cmpl $0x4c, %r14d
jne 0x1fd17
movl $0x2, 0x20(%rbx)
jmp 0x1fc65
leaq 0x332c6(%rip), %rdx     # 0x52ea2
leaq 0x8(%rsp), %rdi
movl $0x3, %esi
movl $0x1d6, %ecx            # imm = 0x1D6
callq 0x268b2
movq 0x523f9(%rip), %rdi     # 0x71ff0
leaq 0x33317(%rip), %rsi     # 0x52f15
movl $0x2b, %edx
callq 0xc700
leaq 0xf0(%rsp), %rdi
callq 0x1fa43
movq 0xf0(%rsp), %rsi
movq 0xf8(%rsp), %rdx
movq 0x523c4(%rip), %rdi     # 0x71ff0
callq 0xc700
leaq 0x100(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1fc52
movq 0x100(%rsp), %rsi
incq %rsi
callq 0xc600
leaq 0x8(%rsp), %rdi
callq 0x269f4
jmp 0x1fc65
movl $0x1, 0x20(%rbx)
movl 0x24(%rbx), %edi
callq 0xccf0
cmpl $-0x1, %eax
jne 0x1fce2
callq 0xc080
cmpl $0x4, (%rax)
je 0x1fc65
leaq 0xe0(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x332b2(%rip), %rsi     # 0x52f41
leaq 0x332be(%rip), %rdx     # 0x52f54
leaq 0xd0(%rsp), %rdi
callq 0x2e9c2
leaq 0x331f8(%rip), %rsi     # 0x52ea2
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 0x1ff2a
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x1ff3d
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 0x1fe0c
cmpl $0x52, %r14d
jne 0x1fd17
movl $0x3, 0x20(%rbx)
jmp 0x1fc65
leaq 0x33184(%rip), %rdx     # 0x52ea2
leaq 0xf0(%rsp), %rdi
movl $0x3, %esi
movl $0x1d1, %ecx            # imm = 0x1D1
callq 0x268b2
movq 0x522b4(%rip), %rdi     # 0x71ff0
leaq 0x33196(%rip), %rsi     # 0x52ed9
movl $0x22, %edx
callq 0xc700
movq 0x5229c(%rip), %rdi     # 0x71ff0
leaq 0x331a1(%rip), %rsi     # 0x52efc
movl $0x18, %edx
callq 0xc700
movsbq %r14b, %rax
movl %eax, %esi
movq 0x5227e(%rip), %rdi     # 0x71ff0
callq 0xc3c0
leaq 0x36688(%rip), %rsi     # 0x56406
movl $0x1, %edx
movq %rax, %rdi
callq 0xc700
leaq 0xf0(%rsp), %rdi
callq 0x269f4
jmp 0x1fc65
movl 0x24(%rbx), %r15d
leaq 0x90(%rsp), %r14
movq %r14, %rdi
callq 0x12e46
movq (%r14), %r14
leaq 0x10(%r14), %r12
leaq 0xf0(%rsp), %r13
movl $0xff, %edx
movl %r15d, %edi
movq %r13, %rsi
callq 0xc930
testl %eax, %eax
jle 0x1fdf9
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movb $0x0, 0xf0(%rsp,%rax)
movq %r13, %rdi
callq 0xc260
movq %r12, %rdi
movq %r13, %rsi
movq %rax, %rdx
callq 0xc700
jmp 0x1fdc0
cmpl $-0x1, %eax
jne 0x1fe18
callq 0xc080
movl (%rax), %ebp
cmpl $0x4, %ebp
je 0x1fdc0
jmp 0x1fe66
movl $0x4, 0x20(%rbx)
jmp 0x1fc65
testl %eax, %eax
jne 0x1fe5f
leaq 0x3307f(%rip), %rdx     # 0x52ea2
leaq 0x28(%rsp), %rdi
movl $0x3, %esi
movl $0x150, %ecx            # imm = 0x150
callq 0x268b2
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0x130af
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq 0x5219b(%rip), %rdi     # 0x71ff0
callq 0xc700
jmp 0x1feee
callq 0xc080
movl (%rax), %ebp
leaq 0x33035(%rip), %rdx     # 0x52ea2
leaq 0x28(%rsp), %rdi
movl $0x3, %esi
movl $0x153, %ecx            # imm = 0x153
callq 0x268b2
movq 0x52168(%rip), %rdi     # 0x71ff0
leaq 0x33ad3(%rip), %rsi     # 0x53962
movl $0x29, %edx
callq 0xc700
leaq 0x8(%rsp), %rdi
callq 0x1fa43
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq 0x5213c(%rip), %rdi     # 0x71ff0
callq 0xc700
movq %rax, %r15
leaq 0x33f07(%rip), %rsi     # 0x53dca
movl $0x2, %edx
movq %rax, %rdi
callq 0xc700
movq %r15, %rdi
movl %ebp, %esi
callq 0xcb70
leaq 0x333eb(%rip), %rsi     # 0x532cc
movl $0x1, %edx
movq %rax, %rdi
callq 0xc700
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1ff09
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xc600
leaq 0x28(%rsp), %rdi
callq 0x269f4
testq %r14, %r14
je 0x1fc65
movq (%r14), %rax
movq %r14, %rdi
callq *0x8(%rax)
jmp 0x1fc65
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 0x32ff2(%rip), %rsi     # 0x52f55
callq 0xcca0
leaq 0x58(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x1ff8b
movups (%rcx), %xmm0
movups %xmm0, (%r12)
jmp 0x1ff98
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 $0x1d9, (%rsi)          # imm = 0x1D9
leaq 0x70(%rsp), %rdi
callq 0x2a671
movq 0x48(%rsp), %rcx
movq 0x50(%rsp), %r8
movq 0x78(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %r12, %rcx
je 0x1ffe7
movq 0x58(%rsp), %rdi
leaq 0x80(%rsp), %r13
movq -0x10(%r13), %rsi
cmpq %rdi, %rax
jbe 0x2000f
movl $0xf, %edi
cmpq %r13, %rsi
je 0x2000a
movq 0x80(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x2001b
leaq 0x48(%rsp), %rdi
callq 0xc190
jmp 0x20029
leaq 0x70(%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 0x20046
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
jmp 0x20053
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 0x3223b(%rip), %rsi     # 0x522b2
leaq 0x28(%rsp), %rdi
callq 0xcca0
leaq 0xa0(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x200a5
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0x200b8
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 0x32e7f(%rip), %rsi     # 0x52f5d
callq 0xcca0
leaq 0x18(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x20108
movups (%rcx), %xmm0
leaq 0x18(%rsp), %rdx
movups %xmm0, (%rdx)
jmp 0x20115
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 0x3303a(%rip), %rsi     # 0x53172
callq 0xcca0
leaq 0x100(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x20168
movups (%rcx), %xmm0
leaq 0x100(%rsp), %rdx
movups %xmm0, (%rdx)
jmp 0x2017b
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 0x1f9c9
jmp 0x201ff
jmp 0x201aa
jmp 0x202f0
jmp 0x201aa
movq %rax, %rbx
jmp 0x2021d
jmp 0x202f0
movq %rax, %rbx
movq 0xf0(%rsp), %rdi
leaq 0x100(%rsp), %rax
cmpq %rax, %rdi
je 0x201e1
movq 0x100(%rsp), %rsi
incq %rsi
callq 0xc600
jmp 0x201e1
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x2023c
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xc600
jmp 0x2023c
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2021d
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xc600
leaq 0x28(%rsp), %rdi
callq 0x269f4
jmp 0x202f3
movq %rax, %rbx
leaq 0xf0(%rsp), %rdi
jmp 0x202ab
movq %rax, %rbx
movq 0x90(%rsp), %rdi
cmpq %rbp, %rdi
je 0x2025e
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0xc600
jmp 0x2025e
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x202b8
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xc600
jmp 0x202b8
movq %rax, %rbx
leaq 0x100(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x202a6
movq 0x100(%rsp), %rsi
incq %rsi
callq 0xc600
jmp 0x202a6
jmp 0x202a3
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x269f4
jmp 0x2034a
movq %rax, %rbx
movq 0x70(%rsp), %rdi
cmpq %r13, %rdi
je 0x202d7
movq 0x80(%rsp), %rsi
incq %rsi
callq 0xc600
jmp 0x202d7
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
je 0x20306
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xc600
jmp 0x20306
movq %rax, %rbx
testq %r14, %r14
je 0x2034a
movq (%r14), %rax
movq %r14, %rdi
callq *0x8(%rax)
jmp 0x2034a
movq %rax, %rbx
movq 0xb0(%rsp), %rdi
cmpq %r15, %rdi
je 0x20328
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0xc600
jmp 0x20328
movq %rax, %rbx
movq 0xd0(%rsp), %rdi
cmpq %r14, %rdi
je 0x2034a
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0xc600
jmp 0x2034a
movq %rax, %rbx
movq %rbx, %rdi
callq 0xcbb0