// File: /workspace/github_cpp_makefile_star2_O3/WeihuaZhu[P]hpc_prog2/./gtest/gtest-all.cc
// Function: testing::internal::ForkingDeathTest::Wait()
int ForkingDeathTest::Wait() {
  if (!spawned())
    return 0;

  ReadAndInterpretStatusByte();

  int status_value;
  GTEST_DEATH_TEST_CHECK_SYSCALL_(waitpid(child_pid_, &status_value, 0));
  set_status(status_value);
  return status_value;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x118, %rsp            # imm = 0x118
xorl %eax, %eax
cmpb $0x1, 0x18(%rdi)
jne 0x1669e
movq %rdi, %rbx
callq 0x15246
leaq 0xc(%rsp), %r14
movl 0x2c(%rbx), %edi
movq %r14, %rsi
xorl %edx, %edx
callq 0x6350
cmpl $-0x1, %eax
jne 0x16697
callq 0x6070
cmpl $0x4, (%rax)
je 0x1661e
leaq 0x108(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x12a88(%rip), %rsi     # 0x290d5
leaq 0x12a94(%rip), %rdx     # 0x290e8
leaq 0xf8(%rsp), %rbx
movq %rbx, %rdi
callq 0x24240
leaq 0x11c26(%rip), %rsi     # 0x28291
movq %rbx, %rdi
callq 0x69a0
leaq 0xc8(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x166b0
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x166c3
movl 0xc(%rsp), %eax
movl %eax, 0x1c(%rbx)
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rdx, 0xb8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xc8(%rsp)
movq 0x8(%rax), %rdx
leaq 0xb8(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x12a00(%rip), %rsi     # 0x290e9
callq 0x69a0
leaq 0x40(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x16711
movups (%rcx), %xmm0
movups %xmm0, (%r12)
jmp 0x1671e
movq %rdx, 0x30(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x40(%rsp)
movq 0x8(%rax), %rdx
movq %rdx, 0x38(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x94(%rsp), %rsi
movl $0x1c84, (%rsi)         # imm = 0x1C84
leaq 0x98(%rsp), %rdi
callq 0x1fa2d
movq 0x30(%rsp), %rcx
movq 0x38(%rsp), %r8
movq 0xa0(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %r12, %rcx
je 0x16776
movq 0x40(%rsp), %rdi
leaq 0xa8(%rsp), %r13
movq -0x10(%r13), %rsi
cmpq %rdi, %rax
jbe 0x1679e
movl $0xf, %edi
cmpq %r13, %rsi
je 0x16799
movq 0xa8(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x167aa
leaq 0x30(%rsp), %rdi
callq 0x6130
jmp 0x167bb
leaq 0x98(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x64f0
leaq 0x20(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
jne 0x167d8
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
jmp 0x167e5
movq %rsi, 0x10(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x20(%rsp)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x18(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x11cec(%rip), %rsi     # 0x284f5
leaq 0x10(%rsp), %rdi
callq 0x69a0
leaq 0xe8(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x16837
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0x1684a
movq %rdx, 0xd8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xe8(%rsp)
movq 0x8(%rax), %rdx
leaq 0xd8(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x12a0b(%rip), %rsi     # 0x2927b
callq 0x69a0
leaq 0x60(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x1689a
movups (%rcx), %xmm0
leaq 0x60(%rsp), %rdx
movups %xmm0, (%rdx)
jmp 0x168a7
movq %rdx, 0x50(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x60(%rsp)
movq 0x8(%rax), %rdx
leaq 0x50(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x12a3c(%rip), %rsi     # 0x29306
callq 0x69a0
leaq 0x80(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x168fa
movups (%rcx), %xmm0
leaq 0x80(%rsp), %rdx
movups %xmm0, (%rdx)
jmp 0x1690a
movq %rdx, 0x70(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x80(%rsp)
movq 0x8(%rax), %rdx
leaq 0x70(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
callq 0x150b1
movq %rax, %rbx
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x16955
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x6430
jmp 0x16955
movq %rax, %rbx
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x16976
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x6430
jmp 0x16976
movq %rax, %rbx
movq 0xd8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x16998
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x6430
jmp 0x16998
movq %rax, %rbx
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x169b8
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x6430
jmp 0x169b8
movq %rax, %rbx
movq 0x98(%rsp), %rdi
cmpq %r13, %rdi
je 0x169da
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x6430
jmp 0x169da
movq %rax, %rbx
movq 0x30(%rsp), %rdi
cmpq %r12, %rdi
je 0x169f6
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x6430
jmp 0x169f6
movq %rax, %rbx
movq 0xb8(%rsp), %rdi
cmpq %r15, %rdi
je 0x16a18
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x6430
jmp 0x16a18
movq %rax, %rbx
movq 0xf8(%rsp), %rdi
cmpq %r14, %rdi
je 0x16a35
movq 0x108(%rsp), %rsi
incq %rsi
callq 0x6430
movq %rbx, %rdi
callq 0x68e0
nop