// File: /workspace/github_c_makefile_star2_O2/deplinenoise[P]tundra/unittest/googletest/googletest/src/gtest-port.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 0xd960
movq (%r15), %rcx
cmpb $0x0, (%rcx)
je 0x1a696
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x11c8e
movq (%r14), %r14
addq $0x10, %r14
leaq 0x2acae(%rip), %rsi     # 0x452d5
movq %r14, %rdi
callq 0xd5e0
movq %r14, %rdi
movq %rbx, %rsi
callq 0x27109
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
leaq 0x2ac95(%rip), %rsi     # 0x452df
callq 0xd5e0
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
leaq 0x2acb2(%rip), %rsi     # 0x45311
callq 0xd5e0
leaq 0x8(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x1fab0
leaq 0x2aca4(%rip), %rsi     # 0x4531e
movq %rax, %rdi
callq 0x1fa9a
movq 0x8(%rsp), %rsi
leaq 0x18(%rsp), %rdi
callq 0x11e63
jmp 0x1a72d
movslq %eax, %rcx
cmpq %rax, %rcx
jne 0x1a6a8
movl %eax, (%r14)
movb $0x1, %bl
jmp 0x1a766
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x11c8e
movq (%r14), %r14
addq $0x10, %r14
leaq 0x2ac12(%rip), %rsi     # 0x452d5
movq %r14, %rdi
callq 0xd5e0
movq %r14, %rdi
movq %rbx, %rsi
callq 0x27109
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
leaq 0x2abf9(%rip), %rsi     # 0x452df
callq 0xd5e0
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
leaq 0x2ac27(%rip), %rsi     # 0x45322
callq 0xd5e0
leaq 0x8(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x1fab0
leaq 0x2ac18(%rip), %rsi     # 0x4532e
movq %rax, %rdi
callq 0x22316
movq 0x8(%rsp), %rsi
leaq 0x18(%rsp), %rdi
callq 0x11e63
leaq 0x18(%rsp), %r14
movq (%r14), %rsi
leaq 0x2a6c8(%rip), %rdi     # 0x44e04
xorl %ebx, %ebx
xorl %eax, %eax
callq 0xd080
movq %r14, %rdi
callq 0xdd68
movq 0x4e83c(%rip), %rax     # 0x68f90
movq (%rax), %rdi
callq 0xd770
leaq 0x8(%rsp), %rdi
callq 0x1f8e0
movl %ebx, %eax
addq $0x40, %rsp
popq %rbx
popq %r14
popq %r15
retq
jmp 0x1a778
jmp 0x1a778
jmp 0x1a778
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x1f8e0
movq %rbx, %rdi
callq 0xdbf0