// File: interimadd[P]M5Stack-PixelArt/test/lib/googletest/googletest/src/gtest-port.cc
// Function: testing::internal::StringFromGTestEnv[abi:cxx11](char const*, char const*)
std::string StringFromGTestEnv(const char* flag, const char* default_value) {
#if defined(GTEST_GET_STRING_FROM_ENV_)
  return GTEST_GET_STRING_FROM_ENV_(flag, default_value);
#endif  // defined(GTEST_GET_STRING_FROM_ENV_)
  const std::string env_var = FlagToEnvVar(flag);
  const char* value = posix::GetEnv(env_var.c_str());
  if (value != NULL) {
    return value;
  }

  // As a special case for the 'output' flag, if GTEST_OUTPUT is not
  // set, we look for XML_OUTPUT_FILE, which is set by the Bazel build
  // system.  The value of XML_OUTPUT_FILE is a filename without the
  // "xml:" prefix of GTEST_OUTPUT.
  //
  // The net priority order after flag processing is thus:
  //   --gtest_output command line flag
  //   GTEST_OUTPUT environment variable
  //   XML_OUTPUT_FILE environment variable
  //   'default_value'
  if (strcmp(flag, "output") == 0) {
    value = posix::GetEnv("XML_OUTPUT_FILE");
    if (value != NULL) {
      return std::string("xml:") + value;
    }
  }
  return default_value;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xd0, %rsp
movq %rdi, -0xa0(%rbp)
movq %rdi, %rax
movq %rax, -0x98(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x10(%rbp), %rsi
leaq -0x38(%rbp), %rdi
movq %rdi, -0x90(%rbp)
callq 0x86700
movq -0x90(%rbp), %rdi
callq 0x52230
movq %rax, %rdi
callq 0x8d470
movq %rax, -0x88(%rbp)
jmp 0x6c329
movq -0x88(%rbp), %rax
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x40(%rbp)
je 0x6c3b2
movq -0x40(%rbp), %rax
movq %rax, -0xb0(%rbp)
leaq -0x4d(%rbp), %rdi
movq %rdi, -0xa8(%rbp)
callq 0x52bd0
movq -0xa0(%rbp), %rdi
movq -0xb0(%rbp), %rsi
movq -0xa8(%rbp), %rdx
callq 0x57280
jmp 0x6c372
leaq -0x4d(%rbp), %rdi
callq 0x52690
movl $0x1, -0x54(%rbp)
jmp 0x6c4e3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x6c4fc
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x4d(%rbp), %rdi
callq 0x52690
jmp 0x6c4fc
movq -0x10(%rbp), %rdi
leaq 0x3d679(%rip), %rsi     # 0xa9a36
callq 0x52980
cmpl $0x0, %eax
jne 0x6c483
leaq 0x3ebdf(%rip), %rdi     # 0xaafb1
callq 0x8d470
movq %rax, -0xb8(%rbp)
jmp 0x6c3e0
movq -0xb8(%rbp), %rax
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x40(%rbp)
je 0x6c481
leaq -0x79(%rbp), %rdi
movq %rdi, -0xc0(%rbp)
callq 0x52bd0
movq -0xc0(%rbp), %rdx
leaq 0x3ebad(%rip), %rsi     # 0xaafc1
leaq -0x78(%rbp), %rdi
callq 0x57280
jmp 0x6c41f
movq -0xa0(%rbp), %rdi
movq -0x40(%rbp), %rdx
leaq -0x78(%rbp), %rsi
callq 0x89000
jmp 0x6c435
leaq -0x78(%rbp), %rdi
callq 0x52d38
leaq -0x79(%rbp), %rdi
callq 0x52690
movl $0x1, -0x54(%rbp)
jmp 0x6c4e3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x6c476
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x78(%rbp), %rdi
callq 0x52d38
leaq -0x79(%rbp), %rdi
callq 0x52690
jmp 0x6c4fc
jmp 0x6c483
movq -0x18(%rbp), %rax
movq %rax, -0xd0(%rbp)
leaq -0x7a(%rbp), %rdi
movq %rdi, -0xc8(%rbp)
callq 0x52bd0
movq -0xa0(%rbp), %rdi
movq -0xd0(%rbp), %rsi
movq -0xc8(%rbp), %rdx
callq 0x57280
jmp 0x6c4ba
leaq -0x7a(%rbp), %rdi
callq 0x52690
movl $0x1, -0x54(%rbp)
jmp 0x6c4e3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x7a(%rbp), %rdi
callq 0x52690
jmp 0x6c4fc
leaq -0x38(%rbp), %rdi
callq 0x52d38
movq -0x98(%rbp), %rax
addq $0xd0, %rsp
popq %rbp
retq
leaq -0x38(%rbp), %rdi
callq 0x52d38
movq -0x48(%rbp), %rdi
callq 0x52bc0
nop