// File: /workspace/github_cpp_makefile_star2_O3/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 0xeb93
movq %rsi, %r14
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xeec4
movl %eax, %ebx
movq %r14, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xeec4
movl %eax, %ebp
andl %ebx, %eax
cmpl $-0x1, %eax
je 0xeb93
cmpl $-0x1, %ebx
setne %al
cmpl $-0x1, %ebp
sete %cl
orb %al, %cl
je 0xeb9e
cmpl $-0x1, %ebp
setne %al
cmpl $-0x1, %ebx
sete %cl
orb %al, %cl
je 0xec67
testl %ebp, %ebp
js 0xed60
cmpl %ebx, %ebp
jge 0xed60
cmpl $0x2, %ebx
setge %al
jmp 0xeb95
xorl %eax, %eax
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x10(%rsp), %rbx
movq %rbx, %rdi
callq 0x9d20
movq (%rbx), %rbx
addq $0x10, %rbx
leaq 0x1a392(%rip), %rsi     # 0x28f4b
movl $0x28, %edx
movq %rbx, %rdi
callq 0x6510
leaq 0x18913(%rip), %rsi     # 0x274e0
movl $0x11, %edx
movq %rbx, %rdi
callq 0x6510
leaq 0x1a41e(%rip), %rsi     # 0x28fff
movl $0x3, %edx
movq %rbx, %rdi
callq 0x6510
movq %rbx, %rdi
movl %ebp, %esi
callq 0x68a0
leaq 0x1a375(%rip), %rsi     # 0x28f74
movl $0x10, %edx
movq %rbx, %rdi
callq 0x6510
leaq 0x188ad(%rip), %rsi     # 0x274c0
movl $0x12, %edx
movq %rbx, %rdi
callq 0x6510
leaq 0x1a35e(%rip), %rsi     # 0x28f85
movl $0x8, %edx
movq %rbx, %rdi
callq 0x6510
leaq 0x8(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x20328
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0xec53
movq (%rdi), %rax
callq *0x8(%rax)
movq 0x8(%rsp), %rsi
leaq 0x10(%rsp), %rdi
callq 0x9f89
jmp 0xed2b
leaq 0x10(%rsp), %r14
movq %r14, %rdi
callq 0x9d20
movq (%r14), %r14
addq $0x10, %r14
leaq 0x1a2c9(%rip), %rsi     # 0x28f4b
movl $0x28, %edx
movq %r14, %rdi
callq 0x6510
leaq 0x1882a(%rip), %rsi     # 0x274c0
movl $0x12, %edx
movq %r14, %rdi
callq 0x6510
leaq 0x1a355(%rip), %rsi     # 0x28fff
movl $0x3, %edx
movq %r14, %rdi
callq 0x6510
movq %r14, %rdi
movl %ebx, %esi
callq 0x68a0
leaq 0x1a2ac(%rip), %rsi     # 0x28f74
movl $0x10, %edx
movq %r14, %rdi
callq 0x6510
leaq 0x18804(%rip), %rsi     # 0x274e0
movl $0x11, %edx
movq %r14, %rdi
callq 0x6510
leaq 0x1a295(%rip), %rsi     # 0x28f85
movl $0x8, %edx
movq %r14, %rdi
callq 0x6510
leaq 0x8(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x20328
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0xed1c
movq (%rdi), %rax
callq *0x8(%rax)
movq 0x8(%rsp), %rsi
leaq 0x10(%rsp), %rdi
callq 0x9f89
leaq 0x10(%rsp), %rbx
movq (%rbx), %rsi
movl $0x1, %edi
xorl %eax, %eax
callq 0xe7c5
movq %rbx, %rdi
callq 0x69e8
movq 0x2823a(%rip), %rax     # 0x36f88
movq (%rax), %rdi
callq 0x6560
movl $0x1, %edi
callq 0x65b0
leaq 0x10(%rsp), %r14
movq %r14, %rdi
callq 0x9d20
movq (%r14), %r14
addq $0x10, %r14
leaq 0x1a213(%rip), %rsi     # 0x28f8e
movl $0x2f, %edx
movq %r14, %rdi
callq 0x6510
leaq 0x18751(%rip), %rsi     # 0x274e0
movl $0x11, %edx
movq %r14, %rdi
callq 0x6510
leaq 0x1a21b(%rip), %rsi     # 0x28fbe
movl $0x3, %edx
movq %r14, %rdi
callq 0x6510
leaq 0x18709(%rip), %rsi     # 0x274c0
movl $0x12, %edx
movq %r14, %rdi
callq 0x6510
leaq 0x1a1f7(%rip), %rsi     # 0x28fc2
movl $0xf, %edx
movq %r14, %rdi
callq 0x6510
leaq 0x18701(%rip), %rsi     # 0x274e0
movl $0x11, %edx
movq %r14, %rdi
callq 0x6510
leaq 0x1ab95(%rip), %rsi     # 0x29988
movl $0x1, %edx
movq %r14, %rdi
callq 0x6510
movq %r14, %rdi
movl %ebp, %esi
callq 0x68a0
leaq 0x1b019(%rip), %rsi     # 0x29e2a
movl $0x2, %edx
movq %r14, %rdi
callq 0x6510
leaq 0x1869b(%rip), %rsi     # 0x274c0
movl $0x12, %edx
movq %r14, %rdi
callq 0x6510
leaq 0x1ab4f(%rip), %rsi     # 0x29988
movl $0x1, %edx
movq %r14, %rdi
callq 0x6510
movq %r14, %rdi
movl %ebx, %esi
callq 0x68a0
leaq 0x19bda(%rip), %rsi     # 0x28a31
movl $0x2, %edx
movq %r14, %rdi
callq 0x6510
leaq 0x8(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x20328
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0xee83
movq (%rdi), %rax
callq *0x8(%rax)
movq 0x8(%rsp), %rsi
leaq 0x10(%rsp), %rdi
callq 0x9f89
jmp 0xed2b
jmp 0xee9b
jmp 0xee9b
movq %rax, %rbx
movq 0x8(%rsp), %rdi
jmp 0xeeb1
jmp 0xeea9
jmp 0xeea9
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0xeebc
movq (%rdi), %rax
callq *0x8(%rax)
movq %rbx, %rdi
callq 0x68e0