// File: /workspace/github_cpp_makefile_star2_O1/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 0x16a80
movq %rdi, %rbx
callq 0x155d0
leaq 0xc(%rsp), %r14
movl 0x2c(%rbx), %edi
movq %r14, %rsi
xorl %edx, %edx
callq 0x6350
cmpl $-0x1, %eax
jne 0x16a79
callq 0x6070
cmpl $0x4, (%rax)
je 0x16a00
leaq 0x108(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x126a6(%rip), %rsi     # 0x290d5
leaq 0x126b2(%rip), %rdx     # 0x290e8
leaq 0xf8(%rsp), %rbx
movq %rbx, %rdi
callq 0x247da
leaq 0x11844(%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 0x16a92
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x16aa5
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 0x1261e(%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 0x16af3
movups (%rcx), %xmm0
movups %xmm0, (%r12)
jmp 0x16b00
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 0xb4(%rsp), %rsi
movl $0x1c84, (%rsi)         # imm = 0x1C84
leaq 0x50(%rsp), %rdi
callq 0x20033
movq 0x30(%rsp), %rcx
movq 0x38(%rsp), %r8
movq 0x58(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
cmpq %r12, %rcx
je 0x16b52
movq 0x40(%rsp), %rsi
leaq 0x60(%rsp), %r13
cmpq %rsi, %rax
jbe 0x16b72
movl $0xf, %esi
cmpq %r13, 0x50(%rsp)
je 0x16b6d
movq 0x60(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x16b83
movq 0x50(%rsp), %rsi
leaq 0x30(%rsp), %rdi
callq 0x6130
jmp 0x16b91
leaq 0x50(%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 0x16bae
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
jmp 0x16bbb
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 0x11916(%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 0x16c0d
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0x16c20
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 0x12635(%rip), %rsi     # 0x2927b
callq 0x69a0
leaq 0x80(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x16c76
movups (%rcx), %xmm0
leaq 0x80(%rsp), %rdx
movups %xmm0, (%rdx)
jmp 0x16c86
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)
leaq 0x1265d(%rip), %rsi     # 0x29306
callq 0x69a0
leaq 0xa0(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x16cd9
movups (%rcx), %xmm0
leaq 0xa0(%rsp), %rdx
movups %xmm0, (%rdx)
jmp 0x16cec
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)
callq 0x1543b
movq %rax, %rbx
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x16d3d
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x6430
jmp 0x16d3d
movq %rax, %rbx
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x16d64
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x6430
jmp 0x16d64
movq %rax, %rbx
movq 0xd8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x16d86
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x6430
jmp 0x16d86
movq %rax, %rbx
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x16da6
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x6430
jmp 0x16da6
movq %rax, %rbx
movq 0x50(%rsp), %rdi
cmpq %r13, %rdi
je 0x16dc2
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x6430
jmp 0x16dc2
movq %rax, %rbx
movq 0x30(%rsp), %rdi
cmpq %r12, %rdi
je 0x16dde
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x6430
jmp 0x16dde
movq %rax, %rbx
movq 0xb8(%rsp), %rdi
cmpq %r15, %rdi
je 0x16e00
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x6430
jmp 0x16e00
movq %rax, %rbx
movq 0xf8(%rsp), %rdi
cmpq %r14, %rdi
je 0x16e1d
movq 0x108(%rsp), %rsi
incq %rsi
callq 0x6430
movq %rbx, %rdi
callq 0x68e0
nop