// File: /workspace/github_c_makefile_star2_O1/deplinenoise[P]tundra/unittest/googletest/googletest/src/gtest.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, "%s", 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, "%s", 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, "%s", 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 0x19042
movq %rsi, %r14
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x19439
movl %eax, %ebx
movq %r14, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x19439
movl %eax, %ebp
andl %ebx, %eax
cmpl $-0x1, %eax
je 0x19042
cmpl $-0x1, %ebx
setne %al
cmpl $-0x1, %ebp
sete %cl
orb %al, %cl
je 0x1904d
cmpl $-0x1, %ebp
setne %al
cmpl $-0x1, %ebx
sete %cl
orb %al, %cl
je 0x19140
testl %ebp, %ebp
js 0x1926a
cmpl %ebx, %ebp
jge 0x1926a
cmpl $0x2, %ebx
setge %al
jmp 0x19044
xorl %eax, %eax
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x8(%rsp), %rbx
movq %rbx, %rdi
callq 0x12eee
movq (%rbx), %rdi
addq $0x10, %rdi
leaq 0x3ace2(%rip), %rsi     # 0x53d4a
movl $0x28, %edx
callq 0xc700
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
leaq 0x3919e(%rip), %rsi     # 0x52220
movl $0x11, %edx
callq 0xc700
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
leaq 0x3ad62(%rip), %rsi     # 0x53dfe
movl $0x3, %edx
callq 0xc700
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
movl %ebp, %esi
callq 0xcb70
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
leaq 0x3acad(%rip), %rsi     # 0x53d73
movl $0x10, %edx
callq 0xc700
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
leaq 0x39120(%rip), %rsi     # 0x52200
movl $0x12, %edx
callq 0xc700
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
leaq 0x3ac8a(%rip), %rsi     # 0x53d84
movl $0x8, %edx
callq 0xc700
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x2b4dc
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x1912c
movq (%rdi), %rax
callq *0x8(%rax)
movq $0x0, 0x8(%rsp)
movq 0x28(%rsp), %rsi
leaq 0x8(%rsp), %rdi
callq 0x13163
jmp 0x1922e
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x12eee
movq (%r14), %rdi
addq $0x10, %rdi
leaq 0x3abef(%rip), %rsi     # 0x53d4a
movl $0x28, %edx
callq 0xc700
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
leaq 0x3908b(%rip), %rsi     # 0x52200
movl $0x12, %edx
callq 0xc700
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
leaq 0x3ac6f(%rip), %rsi     # 0x53dfe
movl $0x3, %edx
callq 0xc700
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
movl %ebx, %esi
callq 0xcb70
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
leaq 0x3abba(%rip), %rsi     # 0x53d73
movl $0x10, %edx
callq 0xc700
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
leaq 0x3904d(%rip), %rsi     # 0x52220
movl $0x11, %edx
callq 0xc700
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
leaq 0x3ab97(%rip), %rsi     # 0x53d84
movl $0x8, %edx
callq 0xc700
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x2b4dc
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x1921f
movq (%rdi), %rax
callq *0x8(%rax)
movq $0x0, 0x8(%rsp)
movq 0x28(%rsp), %rsi
leaq 0x8(%rsp), %rdi
callq 0x13163
leaq 0x8(%rsp), %rbx
movq (%rbx), %rdx
leaq 0x3abc7(%rip), %rsi     # 0x53e04
movl $0x1, %edi
xorl %eax, %eax
callq 0x18c6a
movq %rbx, %rdi
callq 0xcd08
movq 0x59d38(%rip), %rax     # 0x72f90
movq (%rax), %rdi
callq 0xc740
movl $0x1, %edi
callq 0xc7b0
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x12eee
movq (%r14), %rdi
addq $0x10, %rdi
leaq 0x3ab08(%rip), %rsi     # 0x53d8d
movl $0x2f, %edx
callq 0xc700
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
leaq 0x38f81(%rip), %rsi     # 0x52220
movl $0x11, %edx
callq 0xc700
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
leaq 0x3ab04(%rip), %rsi     # 0x53dbd
movl $0x3, %edx
callq 0xc700
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
leaq 0x38f2d(%rip), %rsi     # 0x52200
movl $0x12, %edx
callq 0xc700
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
leaq 0x3aad4(%rip), %rsi     # 0x53dc1
movl $0xf, %edx
callq 0xc700
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
leaq 0x38f19(%rip), %rsi     # 0x52220
movl $0x11, %edx
callq 0xc700
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
leaq 0x3c5ef(%rip), %rsi     # 0x55910
movl $0x1, %edx
callq 0xc700
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
movl %ebp, %esi
callq 0xcb70
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
leaq 0x3b9ed(%rip), %rsi     # 0x54d38
movl $0x2, %edx
callq 0xc700
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
leaq 0x38e9b(%rip), %rsi     # 0x52200
movl $0x12, %edx
callq 0xc700
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
leaq 0x3c591(%rip), %rsi     # 0x55910
movl $0x1, %edx
callq 0xc700
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
movl %ebx, %esi
callq 0xcb70
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
leaq 0x3a43c(%rip), %rsi     # 0x537e5
movl $0x2, %edx
callq 0xc700
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x2b4dc
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x193db
movq (%rdi), %rax
callq *0x8(%rax)
movq $0x0, 0x8(%rsp)
movq 0x28(%rsp), %rsi
leaq 0x8(%rsp), %rdi
callq 0x13163
jmp 0x1922e
jmp 0x193f3
jmp 0x193f3
movq %rax, %rbx
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x19431
movq (%rdi), %rax
callq *0x8(%rax)
movq $0x0, 0x28(%rsp)
jmp 0x19431
jmp 0x19415
jmp 0x19415
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x19431
movq (%rdi), %rax
callq *0x8(%rax)
movq $0x0, 0x8(%rsp)
movq %rbx, %rdi
callq 0xcbb0