// File: WeihuaZhu[P]hpc_prog2/./gtest/gtest-all.cc
// Function: testing::internal::DeathTestImpl::Abort(testing::internal::DeathTest::AbortReason)
void DeathTestImpl::Abort(AbortReason reason) {
  // The parent process considers the death test to be a failure if
  // it finds any data in our pipe.  So, here we write a single flag byte
  // to the pipe, then exit.
  const char status_ch =
      reason == TEST_DID_NOT_DIE ? kDeathTestLived :
      reason == TEST_THREW_EXCEPTION ? kDeathTestThrew : kDeathTestReturned;

  GTEST_DEATH_TEST_CHECK_SYSCALL_(posix::Write(write_fd(), &status_ch, 1));
  // We are leaking the descriptor here because on some platforms (i.e.,
  // when built as Windows DLL), destructors of global objects will still
  // run after calling _exit(). On such systems, write_fd_ will be
  // indirectly closed from the destructor of UnitTestImpl, causing double
  // close if it is also closed here. On debug configurations, double close
  // may assert. As there are no in-process buffers to flush here, we are
  // relying on the OS to close the descriptor after the process terminates
  // when the destructors are not run.
  _exit(1);  // Exits w/o any normal exit hooks (we were supposed to crash)
}

// Assembly:
subq $0x158, %rsp            # imm = 0x158
movq %rdi, 0x150(%rsp)
movl %esi, 0x14c(%rsp)
movq 0x150(%rsp), %rax
movq %rax, 0x18(%rsp)
cmpl $0x2, 0x14c(%rsp)
jne 0x29f95
movb $0x4c, %al
movb %al, 0x17(%rsp)
jmp 0x29fbd
movl 0x14c(%rsp), %ecx
movb $0x54, %al
movb $0x52, %dl
movb %dl, 0x15(%rsp)
cmpl $0x1, %ecx
movb %al, 0x16(%rsp)
je 0x29fb5
movb 0x15(%rsp), %al
movb %al, 0x16(%rsp)
movb 0x16(%rsp), %al
movb %al, 0x17(%rsp)
movb 0x17(%rsp), %al
movb %al, 0x14b(%rsp)
jmp 0x29fca
movq 0x18(%rsp), %rdi
callq 0x39f10
movl %eax, %edi
leaq 0x14b(%rsp), %rsi
movl $0x1, %edx
callq 0x39ee0
movl %eax, 0x144(%rsp)
xorl %eax, %eax
cmpl $-0x1, 0x144(%rsp)
movb %al, 0x14(%rsp)
jne 0x2a00e
callq 0xe080
cmpl $0x4, (%rax)
sete %al
movb %al, 0x14(%rsp)
movb 0x14(%rsp), %al
testb $0x1, %al
jne 0x29fca
cmpl $-0x1, 0x144(%rsp)
jne 0x2a29b
leaq 0x5f(%rsp), %rdi
movq %rdi, 0x8(%rsp)
callq 0xf420
movq 0x8(%rsp), %rdx
leaq 0x237e5(%rip), %rsi     # 0x4d824
leaq 0x60(%rsp), %rdi
callq 0x32980
jmp 0x2a04b
leaq 0x228ad(%rip), %rdx     # 0x4c8ff
leaq 0x80(%rsp), %rdi
leaq 0x60(%rsp), %rsi
callq 0x32c70
jmp 0x2a066
leaq 0x237cb(%rip), %rdx     # 0x4d838
leaq 0xa0(%rsp), %rdi
leaq 0x80(%rsp), %rsi
callq 0x32c70
jmp 0x2a084
movl $0x1b3c, 0x24(%rsp)     # imm = 0x1B3C
leaq 0x28(%rsp), %rdi
leaq 0x24(%rsp), %rsi
callq 0x370b0
jmp 0x2a09d
leaq 0xc0(%rsp), %rdi
leaq 0xa0(%rsp), %rsi
leaq 0x28(%rsp), %rdx
callq 0x36fc0
jmp 0x2a0b9
leaq 0x22abb(%rip), %rdx     # 0x4cb7b
leaq 0xe0(%rsp), %rdi
leaq 0xc0(%rsp), %rsi
callq 0x32c70
jmp 0x2a0d7
leaq 0x2377a(%rip), %rdx     # 0x4d858
leaq 0x100(%rsp), %rdi
leaq 0xe0(%rsp), %rsi
callq 0x32c70
jmp 0x2a0f5
leaq 0x23959(%rip), %rdx     # 0x4da55
leaq 0x120(%rsp), %rdi
leaq 0x100(%rsp), %rsi
callq 0x32c70
jmp 0x2a113
leaq 0x120(%rsp), %rdi
callq 0x293e0
jmp 0x2a122
leaq 0x120(%rsp), %rdi
callq 0xf698
leaq 0x100(%rsp), %rdi
callq 0xf698
leaq 0xe0(%rsp), %rdi
callq 0xf698
leaq 0xc0(%rsp), %rdi
callq 0xf698
leaq 0x28(%rsp), %rdi
callq 0xf698
leaq 0xa0(%rsp), %rdi
callq 0xf698
leaq 0x80(%rsp), %rdi
callq 0xf698
leaq 0x60(%rsp), %rdi
callq 0xf698
leaq 0x5f(%rsp), %rdi
callq 0xeb40
jmp 0x2a29b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x50(%rsp)
movl %eax, 0x4c(%rsp)
jmp 0x2a28f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x50(%rsp)
movl %eax, 0x4c(%rsp)
jmp 0x2a285
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x50(%rsp)
movl %eax, 0x4c(%rsp)
jmp 0x2a278
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x50(%rsp)
movl %eax, 0x4c(%rsp)
jmp 0x2a26b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x50(%rsp)
movl %eax, 0x4c(%rsp)
jmp 0x2a261
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x50(%rsp)
movl %eax, 0x4c(%rsp)
jmp 0x2a254
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x50(%rsp)
movl %eax, 0x4c(%rsp)
jmp 0x2a247
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x50(%rsp)
movl %eax, 0x4c(%rsp)
jmp 0x2a23a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x50(%rsp)
movl %eax, 0x4c(%rsp)
leaq 0x120(%rsp), %rdi
callq 0xf698
leaq 0x100(%rsp), %rdi
callq 0xf698
leaq 0xe0(%rsp), %rdi
callq 0xf698
leaq 0xc0(%rsp), %rdi
callq 0xf698
leaq 0x28(%rsp), %rdi
callq 0xf698
leaq 0xa0(%rsp), %rdi
callq 0xf698
leaq 0x80(%rsp), %rdi
callq 0xf698
leaq 0x60(%rsp), %rdi
callq 0xf698
leaq 0x5f(%rsp), %rdi
callq 0xeb40
jmp 0x2a2b4
jmp 0x2a29d
callq 0x39eb0
testb $0x1, %al
jne 0x29fc8
movl $0x1, %edi
callq 0xf280
movq 0x50(%rsp), %rdi
callq 0xf410
nop