// File: /workspace/github_c_makefile_star2_O1/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 %r12
pushq %rbx
subq $0x38, %rsp
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r12
leaq 0x30(%rsp), %r15
movq $0x0, (%r15)
movq %rsi, %rdi
movq %r15, %rsi
movl $0xa, %edx
callq 0xc910
movq (%r15), %rcx
cmpb $0x0, (%rcx)
je 0x1f1a8
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x12eee
movq (%r14), %r14
leaq 0x10(%r14), %r15
leaq 0x351b0(%rip), %rsi     # 0x542d5
movl $0x9, %edx
movq %r15, %rdi
callq 0xc700
movq (%r12), %rsi
leaq 0x10(%rsp), %rdi
callq 0x13163
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %r15, %rdi
callq 0xc700
leaq 0x20(%rsp), %r12
movq -0x10(%r12), %rdi
cmpq %r12, %rdi
je 0x1f16e
movq 0x20(%rsp), %rsi
incq %rsi
callq 0xc600
leaq 0x3516a(%rip), %rsi     # 0x542df
movl $0x31, %edx
movq %r15, %rdi
callq 0xc700
leaq 0x35188(%rip), %rsi     # 0x54311
movl $0xc, %edx
movq %r15, %rdi
callq 0xc700
testq %rbx, %rbx
je 0x1f1ba
movq %rbx, %rdi
callq 0xc260
movq %rax, %rdx
jmp 0x1f1c6
movslq %eax, %rcx
cmpq %rax, %rcx
jne 0x1f1f7
movl %eax, (%r14)
movb $0x1, %al
jmp 0x1f31f
movl $0x6, %edx
leaq 0x3408d(%rip), %rbx     # 0x53253
movq %r15, %rdi
movq %rbx, %rsi
callq 0xc700
leaq 0x35146(%rip), %rsi     # 0x5431e
movl $0x3, %edx
movq %r15, %rdi
callq 0xc700
leaq 0x10(%rsp), %rdi
movq %r14, %rsi
callq 0x13163
jmp 0x1f2cd
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x12eee
movq (%r14), %r14
leaq 0x10(%r14), %r15
leaq 0x350c3(%rip), %rsi     # 0x542d5
movl $0x9, %edx
movq %r15, %rdi
callq 0xc700
movq (%r12), %rsi
leaq 0x10(%rsp), %rdi
callq 0x13163
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %r15, %rdi
callq 0xc700
leaq 0x20(%rsp), %r12
movq -0x10(%r12), %rdi
cmpq %r12, %rdi
je 0x1f25b
movq 0x20(%rsp), %rsi
incq %rsi
callq 0xc600
leaq 0x3507d(%rip), %rsi     # 0x542df
movl $0x31, %edx
movq %r15, %rdi
callq 0xc700
leaq 0x350ac(%rip), %rsi     # 0x54322
movl $0xb, %edx
movq %r15, %rdi
callq 0xc700
testq %rbx, %rbx
je 0x1f295
movq %rbx, %rdi
callq 0xc260
movq %rax, %rdx
jmp 0x1f2a1
movl $0x6, %edx
leaq 0x33fb2(%rip), %rbx     # 0x53253
movq %r15, %rdi
movq %rbx, %rsi
callq 0xc700
leaq 0x3507b(%rip), %rsi     # 0x5432e
movl $0x13, %edx
movq %r15, %rdi
callq 0xc700
leaq 0x10(%rsp), %rdi
movq %r14, %rsi
callq 0x13163
movq 0x10(%rsp), %rsi
leaq 0x34b2b(%rip), %rdi     # 0x53e04
xorl %eax, %eax
callq 0xc090
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
je 0x1f2f7
movq 0x20(%rsp), %rsi
incq %rsi
callq 0xc600
movq 0x53c92(%rip), %rax     # 0x72f90
movq (%rax), %rdi
callq 0xc740
testq %r14, %r14
je 0x1f31d
movq (%r14), %rax
movq %r14, %rdi
callq *0x8(%rax)
movq $0x0, 0x8(%rsp)
xorl %eax, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
jmp 0x1f353
jmp 0x1f331
jmp 0x1f353
movq %rax, %rbx
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1f356
movq 0x20(%rsp), %rsi
incq %rsi
callq 0xc600
jmp 0x1f356
jmp 0x1f353
movq %rax, %rbx
testq %r14, %r14
je 0x1f36d
movq (%r14), %rax
movq %r14, %rdi
callq *0x8(%rax)
movq $0x0, 0x8(%rsp)
movq %rbx, %rdi
callq 0xcbb0