// File: /workspace/github_cpp_makefile_star2_O2/WeihuaZhu[P]hpc_prog2/./gtest/gtest-all.cc
// Function: testing::internal::ShouldShard(char const*, char const*, bool)
bool ShouldShard(const char* total_shards_env,
                 const char* shard_index_env,
                 bool in_subprocess_for_death_test) {
  if (in_subprocess_for_death_test) {
    return false;
  }

  const Int32 total_shards = Int32FromEnvOrDie(total_shards_env, -1);
  const Int32 shard_index = Int32FromEnvOrDie(shard_index_env, -1);

  if (total_shards == -1 && shard_index == -1) {
    return false;
  } else if (total_shards == -1 && shard_index != -1) {
    const Message msg = Message()
      << "Invalid environment variables: you have "
      << kTestShardIndex << " = " << shard_index
      << ", but have left " << kTestTotalShards << " unset.\n";
    ColoredPrintf(COLOR_RED, msg.GetString().c_str());
    fflush(stdout);
    exit(EXIT_FAILURE);
  } else if (total_shards != -1 && shard_index == -1) {
    const Message msg = Message()
      << "Invalid environment variables: you have "
      << kTestTotalShards << " = " << total_shards
      << ", but have left " << kTestShardIndex << " unset.\n";
    ColoredPrintf(COLOR_RED, msg.GetString().c_str());
    fflush(stdout);
    exit(EXIT_FAILURE);
  } else if (shard_index < 0 || shard_index >= total_shards) {
    const Message msg = Message()
      << "Invalid environment variables: we require 0 <= "
      << kTestShardIndex << " < " << kTestTotalShards
      << ", but you have " << kTestShardIndex << "=" << shard_index
      << ", " << kTestTotalShards << "=" << total_shards << ".\n";
    ColoredPrintf(COLOR_RED, msg.GetString().c_str());
    fflush(stdout);
    exit(EXIT_FAILURE);
  }

  return total_shards > 1;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x30, %rsp
testl %edx, %edx
jne 0xca71
movq %rsi, %r14
pushq $-0x1
popq %rbp
movl %ebp, %esi
callq 0xcd92
movl %eax, %ebx
movq %r14, %rdi
movl %ebp, %esi
callq 0xcd92
movl %eax, %ebp
andl %ebx, %eax
cmpl $-0x1, %eax
je 0xca71
cmpl $-0x1, %ebx
setne %al
cmpl $-0x1, %ebp
sete %cl
orb %al, %cl
je 0xca7c
cmpl $-0x1, %ebp
setne %al
cmpl $-0x1, %ebx
sete %cl
orb %al, %cl
je 0xcb3f
testl %ebp, %ebp
js 0xcc2f
cmpl %ebx, %ebp
jge 0xcc2f
cmpl $0x2, %ebx
setge %al
jmp 0xca73
xorl %eax, %eax
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x8(%rsp), %rbx
movq %rbx, %rdi
callq 0x8f22
movq (%rbx), %rbx
addq $0x10, %rbx
leaq 0x12484(%rip), %rsi     # 0x1ef1b
movq %rbx, %rdi
callq 0x6410
leaq 0x10a0a(%rip), %rsi     # 0x1d4b0
movq %rbx, %rdi
callq 0x6410
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
leaq 0x12511(%rip), %rsi     # 0x1efcf
callq 0x6410
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
movl %ebp, %esi
callq 0x68e0
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
leaq 0x12461(%rip), %rsi     # 0x1ef44
callq 0x6410
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
leaq 0x10998(%rip), %rsi     # 0x1d490
callq 0x6410
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
leaq 0x12448(%rip), %rsi     # 0x1ef55
callq 0x6410
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x1783c
leaq 0x8(%rsp), %rdi
callq 0x731c
movq 0x28(%rsp), %rsi
leaq 0x8(%rsp), %rdi
callq 0x90f7
jmp 0xcbfd
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x8f22
movq (%r14), %r14
addq $0x10, %r14
leaq 0x123c1(%rip), %rsi     # 0x1ef1b
movq %r14, %rdi
callq 0x6410
leaq 0x10927(%rip), %rsi     # 0x1d490
movq %r14, %rdi
callq 0x6410
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
leaq 0x1244e(%rip), %rsi     # 0x1efcf
callq 0x6410
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
movl %ebx, %esi
callq 0x68e0
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
leaq 0x1239e(%rip), %rsi     # 0x1ef44
callq 0x6410
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
leaq 0x108f5(%rip), %rsi     # 0x1d4b0
callq 0x6410
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
leaq 0x12385(%rip), %rsi     # 0x1ef55
callq 0x6410
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x1783c
leaq 0x8(%rsp), %rdi
callq 0x731c
movq 0x28(%rsp), %rsi
leaq 0x8(%rsp), %rdi
callq 0x90f7
leaq 0x8(%rsp), %rbx
movq (%rbx), %rsi
pushq $0x1
popq %rbp
movl %ebp, %edi
xorl %eax, %eax
callq 0xc6db
movq %rbx, %rdi
callq 0x6a28
movq 0x21368(%rip), %rax     # 0x2df88
movq (%rax), %rdi
callq 0x6580
movl %ebp, %edi
callq 0x65d0
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x8f22
movq (%r14), %r14
addq $0x10, %r14
leaq 0x12314(%rip), %rsi     # 0x1ef5e
movq %r14, %rdi
callq 0x6410
leaq 0x10857(%rip), %rsi     # 0x1d4b0
movq %r14, %rdi
callq 0x6410
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
leaq 0x1231d(%rip), %rsi     # 0x1ef8e
callq 0x6410
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
leaq 0x1080a(%rip), %rsi     # 0x1d490
callq 0x6410
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
leaq 0x122f7(%rip), %rsi     # 0x1ef92
callq 0x6410
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
leaq 0x10800(%rip), %rsi     # 0x1d4b0
callq 0x6410
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
leaq 0x12c93(%rip), %rsi     # 0x1f958
callq 0x6410
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
movl %ebp, %esi
callq 0x68e0
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
leaq 0x13110(%rip), %rsi     # 0x1fdfa
callq 0x6410
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
leaq 0x10791(%rip), %rsi     # 0x1d490
callq 0x6410
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
leaq 0x12c44(%rip), %rsi     # 0x1f958
callq 0x6410
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
movl %ebx, %esi
callq 0x68e0
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
leaq 0x11cc8(%rip), %rsi     # 0x1ea01
callq 0x6410
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x1783c
leaq 0x8(%rsp), %rdi
callq 0x731c
movq 0x28(%rsp), %rsi
leaq 0x8(%rsp), %rdi
callq 0x90f7
jmp 0xcbfd
jmp 0xcd6f
jmp 0xcd6f
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
jmp 0xcd85
jmp 0xcd7d
jmp 0xcd7d
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x731c
movq %rbx, %rdi
callq 0x6900