// File: interimadd[P]M5Stack-PixelArt/test/lib/googletest/googletest/src/gtest-port.cc
// Function: testing::internal::Int32FromGTestEnv(char const*, int)
Int32 Int32FromGTestEnv(const char* flag, Int32 default_value) {
#if defined(GTEST_GET_INT32_FROM_ENV_)
  return GTEST_GET_INT32_FROM_ENV_(flag, default_value);
#endif  // defined(GTEST_GET_INT32_FROM_ENV_)
  const std::string env_var = FlagToEnvVar(flag);
  const char* const string_value = posix::GetEnv(env_var.c_str());
  if (string_value == NULL) {
    // The environment variable is not set.
    return default_value;
  }

  Int32 result = default_value;
  if (!ParseInt32(Message() << "Environment variable " << env_var,
                  string_value, &result)) {
    printf("The default value %s is used.\n",
           (Message() << default_value).GetString().c_str());
    fflush(stdout);
    return default_value;
  }

  return result;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xc0, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq -0x10(%rbp), %rsi
leaq -0x38(%rbp), %rdi
movq %rdi, -0x98(%rbp)
callq 0x86700
movq -0x98(%rbp), %rdi
callq 0x52230
movq %rax, %rdi
callq 0x8d470
movq %rax, -0x90(%rbp)
jmp 0x6c563
movq -0x90(%rbp), %rax
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x40(%rbp)
jne 0x6c598
movl -0x14(%rbp), %eax
movl %eax, -0x4(%rbp)
movl $0x1, -0x50(%rbp)
jmp 0x6c6fc
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x6c711
movl -0x14(%rbp), %eax
movl %eax, -0x54(%rbp)
leaq -0x60(%rbp), %rdi
callq 0x6f710
jmp 0x6c5a9
leaq 0x3e9cc(%rip), %rsi     # 0xaaf7c
leaq -0x60(%rbp), %rdi
callq 0x91370
movq %rax, -0xa0(%rbp)
jmp 0x6c5c2
movq -0xa0(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x891d0
movq %rax, -0xa8(%rbp)
jmp 0x6c5db
movq -0xa8(%rbp), %rdi
movq -0x40(%rbp), %rsi
leaq -0x54(%rbp), %rdx
callq 0x7f060
movb %al, -0xa9(%rbp)
jmp 0x6c5f7
movb -0xa9(%rbp), %al
xorb $-0x1, %al
movb %al, -0xaa(%rbp)
leaq -0x60(%rbp), %rdi
callq 0x576b0
movb -0xaa(%rbp), %al
testb $0x1, %al
jne 0x6c61d
jmp 0x6c6ef
leaq -0x88(%rbp), %rdi
callq 0x6f710
jmp 0x6c62b
leaq -0x88(%rbp), %rdi
leaq -0x14(%rbp), %rsi
callq 0x89250
movq %rax, -0xb8(%rbp)
jmp 0x6c644
movq -0xb8(%rbp), %rsi
leaq -0x80(%rbp), %rdi
callq 0x6fa90
jmp 0x6c656
leaq -0x80(%rbp), %rdi
callq 0x52230
movq %rax, %rsi
leaq 0x3e929(%rip), %rdi     # 0xaaf92
xorl %eax, %eax
callq 0x52090
jmp 0x6c672
leaq -0x80(%rbp), %rdi
callq 0x52d38
leaq -0x88(%rbp), %rdi
callq 0x576b0
movq 0x64912(%rip), %rax     # 0xd0fa0
movq (%rax), %rdi
callq 0x527a0
jmp 0x6c698
movl -0x14(%rbp), %eax
movl %eax, -0x4(%rbp)
movl $0x1, -0x50(%rbp)
jmp 0x6c6fc
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x60(%rbp), %rdi
callq 0x576b0
jmp 0x6c711
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x6c6e1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x80(%rbp), %rdi
callq 0x52d38
leaq -0x88(%rbp), %rdi
callq 0x576b0
jmp 0x6c711
movl -0x54(%rbp), %eax
movl %eax, -0x4(%rbp)
movl $0x1, -0x50(%rbp)
leaq -0x38(%rbp), %rdi
callq 0x52d38
movl -0x4(%rbp), %eax
addq $0xc0, %rsp
popq %rbp
retq
leaq -0x38(%rbp), %rdi
callq 0x52d38
movq -0x48(%rbp), %rdi
callq 0x52bc0
nopw %cs:(%rax,%rax)