// File: /workspace/github_cpp_makefile_star2_O2/WeihuaZhu[P]hpc_prog2/./gtest/gtest-all.cc
// Function: testing::internal::ParseInt32(testing::Message const&, char const*, int*)
bool ParseInt32(const Message& src_text, const char* str, Int32* value) {
  // Parses the environment variable as a decimal integer.
  char* end = NULL;
  const long long_value = strtol(str, &end, 10);  // NOLINT

  // Has strtol() consumed all characters in the string?
  if (*end != '\0') {
    // No - an invalid character was encountered.
    Message msg;
    msg << "WARNING: " << src_text
        << " is expected to be a 32-bit integer, but actually"
        << " has value \"" << str << "\".\n";
    printf("%s", msg.GetString().c_str());
    fflush(stdout);
    return false;
  }

  // Is the parsed value in the range of an Int32?
  const Int32 result = static_cast<Int32>(long_value);
  if (long_value == LONG_MAX || long_value == LONG_MIN ||
      // The parsed value overflows as a long.  (strtol() returns
      // LONG_MAX or LONG_MIN when the input overflows.)
      result != long_value
      // The parsed value overflows as an Int32.
      ) {
    Message msg;
    msg << "WARNING: " << src_text
        << " is expected to be a 32-bit integer, but actually"
        << " has value " << str << ", which overflows.\n";
    printf("%s", msg.GetString().c_str());
    fflush(stdout);
    return false;
  }

  *value = result;
  return true;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x40, %rsp
movq %rdx, %r14
movq %rdi, %rbx
movq %rsi, 0x10(%rsp)
leaq 0x38(%rsp), %r15
andq $0x0, (%r15)
pushq $0xa
popq %rdx
movq %rsi, %rdi
movq %r15, %rsi
callq 0x6720
movq (%r15), %rcx
cmpb $0x0, (%rcx)
je 0x10b16
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x8f22
movq (%r14), %r14
addq $0x10, %r14
leaq 0xe984(%rip), %rsi      # 0x1f42b
movq %r14, %rdi
callq 0x6410
movq %r14, %rdi
movq %rbx, %rsi
callq 0x1c3f1
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
leaq 0xe96b(%rip), %rsi      # 0x1f435
callq 0x6410
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
leaq 0xe988(%rip), %rsi      # 0x1f467
callq 0x6410
leaq 0x8(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x1589c
leaq 0xe97a(%rip), %rsi      # 0x1f474
movq %rax, %rdi
callq 0x16fc0
movq 0x8(%rsp), %rsi
leaq 0x18(%rsp), %rdi
callq 0x90f7
jmp 0x10bad
movslq %eax, %rcx
cmpq %rax, %rcx
jne 0x10b28
movl %eax, (%r14)
movb $0x1, %bl
jmp 0x10be6
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x8f22
movq (%r14), %r14
addq $0x10, %r14
leaq 0xe8e8(%rip), %rsi      # 0x1f42b
movq %r14, %rdi
callq 0x6410
movq %r14, %rdi
movq %rbx, %rsi
callq 0x1c3f1
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
leaq 0xe8cf(%rip), %rsi      # 0x1f435
callq 0x6410
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
leaq 0xe8fd(%rip), %rsi      # 0x1f478
callq 0x6410
leaq 0x8(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x1589c
leaq 0xe8ee(%rip), %rsi      # 0x1f484
movq %rax, %rdi
callq 0x185e2
movq 0x8(%rsp), %rsi
leaq 0x18(%rsp), %rdi
callq 0x90f7
leaq 0x18(%rsp), %r14
movq (%r14), %rsi
leaq 0xe419(%rip), %rdi      # 0x1efd5
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x6070
movq %r14, %rdi
callq 0x6a28
movq 0x1d3b4(%rip), %rax     # 0x2df88
movq (%rax), %rdi
callq 0x6580
leaq 0x8(%rsp), %rdi
callq 0x731c
movl %ebx, %eax
addq $0x40, %rsp
popq %rbx
popq %r14
popq %r15
retq
jmp 0x10bf8
jmp 0x10bf8
jmp 0x10bf8
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x731c
movq %rbx, %rdi
callq 0x6900