// File: /workspace/github_c_makefile_star2_O2/deplinenoise[P]tundra/unittest/googletest/googletest/src/gtest-death-test.cc
// Function: testing::internal::NoExecDeathTest::AssumeRole()
DeathTest::TestRole NoExecDeathTest::AssumeRole() {
  const size_t thread_count = GetThreadCount();
  if (thread_count != 1) {
    GTEST_LOG_(WARNING) << DeathTestThreadWarning(thread_count);
  }

  int pipe_fd[2];
  GTEST_DEATH_TEST_CHECK_(pipe(pipe_fd) != -1);

  DeathTest::set_last_death_test_message("");
  CaptureStderr();
  // When we fork the process below, the log file buffers are copied, but the
  // file descriptors are shared.  We flush all log files here so that closing
  // the file descriptors in the child process doesn't throw off the
  // synchronization between descriptors and buffers in the parent process.
  // This is as close to the fork as possible to avoid a race condition in case
  // there are multiple threads running before the death test, and another
  // thread writes to the log file.
  FlushInfoLog();

  const pid_t child_pid = fork();
  GTEST_DEATH_TEST_CHECK_(child_pid != -1);
  set_child_pid(child_pid);
  if (child_pid == 0) {
    GTEST_DEATH_TEST_CHECK_SYSCALL_(close(pipe_fd[0]));
    set_write_fd(pipe_fd[1]);
    // Redirects all logging to stderr in the child process to prevent
    // concurrent writes to the log files.  We capture stderr in the parent
    // process and append the child process' output to a log.
    LogToStderr();
    // Event forwarding to the listeners of event listener API mush be shut
    // down in death test subprocesses.
    GetUnitTestImpl()->listeners()->SuppressEventForwarding();
    g_in_fast_death_test_child = true;
    return EXECUTE_TEST;
  } else {
    GTEST_DEATH_TEST_CHECK_SYSCALL_(close(pipe_fd[1]));
    set_read_fd(pipe_fd[0]);
    set_spawned(true);
    return OVERSEE_TEST;
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x118, %rsp            # imm = 0x118
movq %rdi, %rbx
callq 0x1c416
cmpq $0x1, %rax
je 0x1bed5
movq %rax, %r14
leaq 0x29091(%rip), %rdx     # 0x44e72
leaq 0x58(%rsp), %rdi
pushq $0x1
popq %rsi
movl $0x344, %ecx            # imm = 0x344
callq 0x1e178
leaq 0x10(%rsp), %rdi
callq 0x11c8e
movq 0x10(%rsp), %r15
addq $0x10, %r15
leaq 0x29b9b(%rip), %rsi     # 0x459a8
movq %r15, %rdi
callq 0xd5e0
leaq 0x29bc1(%rip), %rsi     # 0x459dd
movq %r15, %rdi
callq 0xd5e0
movq 0x10(%rsp), %rdi
addq $0x10, %rdi
leaq 0x28463(%rip), %rsi     # 0x44297
callq 0xd5e0
movq 0x10(%rsp), %rdi
addq $0x10, %rdi
leaq 0x282f0(%rip), %rsi     # 0x44139
callq 0xd5e0
movq 0x10(%rsp), %rdi
addq $0x10, %rdi
testq %r14, %r14
je 0x1be8b
leaq 0x29bc9(%rip), %rsi     # 0x45a2c
callq 0xd5e0
movq 0x10(%rsp), %rdi
addq $0x10, %rdi
movq %r14, %rsi
callq 0xd3d0
movq 0x10(%rsp), %rdi
addq $0x10, %rdi
leaq 0x29b99(%rip), %rsi     # 0x45a22
jmp 0x1be92
leaq 0x29b73(%rip), %rsi     # 0x45a05
callq 0xd5e0
movq 0x10(%rsp), %rsi
leaq 0x30(%rsp), %rdi
callq 0x11e63
leaq 0x10(%rsp), %rdi
callq 0x1f8e0
movq 0x4d131(%rip), %rdi     # 0x68fe8
leaq 0x30(%rsp), %rsi
callq 0xd520
leaq 0x30(%rsp), %rdi
callq 0xdd68
leaq 0x58(%rsp), %rdi
callq 0x1e23c
leaq 0x50(%rsp), %rdi
callq 0xd910
cmpl $-0x1, %eax
je 0x1c14e
leaq 0x2dfb8(%rip), %rsi     # 0x49ea7
leaq 0x30(%rsp), %rdi
leaq 0x10(%rsp), %rdx
callq 0x1f4d6
leaq 0x30(%rsp), %rdi
callq 0x1b01e
leaq 0x30(%rsp), %rdi
callq 0xdd68
callq 0x1c547
callq 0x21f78
callq 0xd160
cmpl $-0x1, %eax
je 0x1c204
movl %eax, 0x2c(%rbx)
testl %eax, %eax
je 0x1c032
movl 0x54(%rsp), %edi
callq 0xdd40
cmpl $-0x1, %eax
jne 0x1c020
callq 0xd070
cmpl $0x4, (%rax)
je 0x1bf35
leaq 0x28fb9(%rip), %rsi     # 0x44f11
leaq 0x78(%rsp), %rdi
leaq 0xb(%rsp), %rdx
callq 0x1f4d6
leaq 0x28f04(%rip), %rdx     # 0x44e72
leaq 0x98(%rsp), %rdi
leaq 0x78(%rsp), %rsi
callq 0x1f511
leaq 0x28f9e(%rip), %rdx     # 0x44f25
leaq 0xb8(%rsp), %rdi
leaq 0x98(%rsp), %rsi
callq 0x1f511
leaq 0xc(%rsp), %rsi
movl $0x365, (%rsi)          # imm = 0x365
leaq 0xf8(%rsp), %rdi
callq 0x21107
leaq 0xd8(%rsp), %rdi
leaq 0xb8(%rsp), %rsi
leaq 0xf8(%rsp), %rdx
callq 0x210a0
leaq 0x282aa(%rip), %rdx     # 0x44282
leaq 0x58(%rsp), %rdi
leaq 0xd8(%rsp), %rsi
callq 0x1f511
leaq 0x29122(%rip), %rdx     # 0x45113
leaq 0x10(%rsp), %rdi
leaq 0x58(%rsp), %rsi
callq 0x1f511
leaq 0x2913b(%rip), %rdx     # 0x45142
leaq 0x30(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x1f511
leaq 0x30(%rsp), %rdi
callq 0x1aed0
movl 0x50(%rsp), %eax
movl %eax, 0x24(%rbx)
movb $0x1, 0x18(%rbx)
xorl %ebp, %ebp
jmp 0x1c13e
pushq $0x1
popq %rbp
movl 0x50(%rsp), %edi
callq 0xdd40
cmpl $-0x1, %eax
jne 0x1c120
callq 0xd070
cmpl $0x4, (%rax)
je 0x1c035
leaq 0x28eb9(%rip), %rsi     # 0x44f11
leaq 0x78(%rsp), %rdi
leaq 0xb(%rsp), %rdx
callq 0x1f4d6
leaq 0x28e04(%rip), %rdx     # 0x44e72
leaq 0x98(%rsp), %rdi
leaq 0x78(%rsp), %rsi
callq 0x1f511
leaq 0x28e9e(%rip), %rdx     # 0x44f25
leaq 0xb8(%rsp), %rdi
leaq 0x98(%rsp), %rsi
callq 0x1f511
leaq 0xc(%rsp), %rsi
movl $0x359, (%rsi)          # imm = 0x359
leaq 0xf8(%rsp), %rdi
callq 0x21107
leaq 0xd8(%rsp), %rdi
leaq 0xb8(%rsp), %rsi
leaq 0xf8(%rsp), %rdx
callq 0x210a0
leaq 0x281aa(%rip), %rdx     # 0x44282
leaq 0x58(%rsp), %rdi
leaq 0xd8(%rsp), %rsi
callq 0x1f511
leaq 0x29010(%rip), %rdx     # 0x45101
leaq 0x10(%rsp), %rdi
leaq 0x58(%rsp), %rsi
callq 0x1f511
leaq 0x2903b(%rip), %rdx     # 0x45142
leaq 0x30(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x1f511
leaq 0x30(%rsp), %rdi
callq 0x1aed0
movl 0x54(%rsp), %eax
movl %eax, 0x28(%rbx)
callq 0x1f568
movq 0x190(%rax), %rax
movb $0x0, 0x8(%rax)
movb $0x1, 0x4d7a3(%rip)     # 0x698e1
movl %ebp, %eax
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x28dbc(%rip), %rsi     # 0x44f11
leaq 0x98(%rsp), %rdi
leaq 0xc(%rsp), %rdx
callq 0x1f4d6
leaq 0x28d04(%rip), %rdx     # 0x44e72
leaq 0xb8(%rsp), %rdi
leaq 0x98(%rsp), %rsi
callq 0x1f511
leaq 0x28d9b(%rip), %rdx     # 0x44f25
leaq 0xd8(%rsp), %rdi
leaq 0xb8(%rsp), %rsi
callq 0x1f511
leaq 0xf8(%rsp), %rsi
movl $0x348, (%rsi)          # imm = 0x348
leaq 0x78(%rsp), %rdi
callq 0x21107
leaq 0x58(%rsp), %rdi
leaq 0xd8(%rsp), %rsi
leaq 0x78(%rsp), %rdx
callq 0x210a0
leaq 0x280ad(%rip), %rdx     # 0x44282
leaq 0x10(%rsp), %rdi
leaq 0x58(%rsp), %rsi
callq 0x1f511
leaq 0x28ef2(%rip), %rdx     # 0x450dd
leaq 0x30(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x1f511
leaq 0x30(%rsp), %rdi
callq 0x1aed0
leaq 0x28d06(%rip), %rsi     # 0x44f11
leaq 0x98(%rsp), %rdi
leaq 0xc(%rsp), %rdx
callq 0x1f4d6
leaq 0x28c4e(%rip), %rdx     # 0x44e72
leaq 0xb8(%rsp), %rdi
leaq 0x98(%rsp), %rsi
callq 0x1f511
leaq 0x28ce5(%rip), %rdx     # 0x44f25
leaq 0xd8(%rsp), %rdi
leaq 0xb8(%rsp), %rsi
callq 0x1f511
leaq 0xf8(%rsp), %rsi
movl $0x356, (%rsi)          # imm = 0x356
leaq 0x78(%rsp), %rdi
callq 0x21107
leaq 0x58(%rsp), %rdi
leaq 0xd8(%rsp), %rsi
leaq 0x78(%rsp), %rdx
callq 0x210a0
leaq 0x27ff7(%rip), %rdx     # 0x44282
leaq 0x10(%rsp), %rdi
leaq 0x58(%rsp), %rsi
callq 0x1f511
leaq 0x28e50(%rip), %rdx     # 0x450f1
leaq 0x30(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x1f511
leaq 0x30(%rsp), %rdi
callq 0x1aed0
jmp 0x1c2be
jmp 0x1c2cd
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0xdd68
jmp 0x1c2d0
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0xdd68
jmp 0x1c2e1
jmp 0x1c2de
movq %rax, %rbx
leaq 0x58(%rsp), %rdi
callq 0xdd68
jmp 0x1c2f2
jmp 0x1c2ef
movq %rax, %rbx
leaq 0x78(%rsp), %rdi
callq 0xdd68
jmp 0x1c307
jmp 0x1c316
jmp 0x1c325
jmp 0x1c304
movq %rax, %rbx
leaq 0xd8(%rsp), %rdi
callq 0xdd68
jmp 0x1c33b
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0xdd68
jmp 0x1c328
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0xdd68
jmp 0x1c34d
jmp 0x1c34a
jmp 0x1c338
movq %rax, %rbx
leaq 0xb8(%rsp), %rdi
callq 0xdd68
jmp 0x1c360
movq %rax, %rbx
leaq 0x58(%rsp), %rdi
callq 0xdd68
jmp 0x1c370
jmp 0x1c36d
jmp 0x1c35d
movq %rax, %rbx
leaq 0x98(%rsp), %rdi
jmp 0x1c402
movq %rax, %rbx
leaq 0xd8(%rsp), %rdi
callq 0xdd68
jmp 0x1c39c
jmp 0x1c399
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0xdd68
jmp 0x1c3ee
jmp 0x1c40b
jmp 0x1c40b
movq %rax, %rbx
jmp 0x1c3ee
movq %rax, %rbx
leaq 0xf8(%rsp), %rdi
callq 0xdd68
jmp 0x1c3bc
jmp 0x1c3b9
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
jmp 0x1c402
jmp 0x1c40b
movq %rax, %rbx
leaq 0xb8(%rsp), %rdi
callq 0xdd68
jmp 0x1c3d0
jmp 0x1c3cd
movq %rax, %rbx
leaq 0x98(%rsp), %rdi
callq 0xdd68
jmp 0x1c3fd
jmp 0x1c3fa
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x1f8e0
leaq 0x58(%rsp), %rdi
callq 0x1e23c
jmp 0x1c40e
movq %rax, %rbx
leaq 0x78(%rsp), %rdi
callq 0xdd68
jmp 0x1c40e
jmp 0x1c40b
movq %rax, %rbx
movq %rbx, %rdi
callq 0xdbf0