// File: interimadd[P]M5Stack-PixelArt/test/lib/googletest/googletest/src/gtest.cc
// Function: void testing::internal::ParseGoogleTestFlagsOnlyImpl<char>(int*, char**)
void ParseGoogleTestFlagsOnlyImpl(int* argc, CharType** argv) {
  for (int i = 1; i < *argc; i++) {
    const std::string arg_string = StreamableToString(argv[i]);
    const char* const arg = arg_string.c_str();

    using internal::ParseBoolFlag;
    using internal::ParseInt32Flag;
    using internal::ParseStringFlag;

    bool remove_flag = false;
    if (ParseGoogleTestFlag(arg)) {
      remove_flag = true;
#if GTEST_USE_OWN_FLAGFILE_FLAG_
    } else if (ParseStringFlag(arg, kFlagfileFlag, &GTEST_FLAG(flagfile))) {
      LoadFlagsFromFile(GTEST_FLAG(flagfile));
      remove_flag = true;
#endif  // GTEST_USE_OWN_FLAGFILE_FLAG_
    } else if (arg_string == "--help" || arg_string == "-h" ||
               arg_string == "-?" || arg_string == "/?" ||
               HasGoogleTestFlagPrefix(arg)) {
      // Both help flag and unrecognized Google Test flags (excluding
      // internal ones) trigger help display.
      g_help_flag = true;
    }

    if (remove_flag) {
      // Shift the remainder of the argv list left by one.  Note
      // that argv has (*argc + 1) elements, the last one always being
      // NULL.  The following loop moves the trailing NULL element as
      // well.
      for (int j = i; j != *argc; j++) {
        argv[j] = argv[j + 1];
      }

      // Decrements the argument count.
      (*argc)--;

      // We also need to decrement the iterator as we just removed
      // an element.
      i--;
    }
  }

  if (g_help_flag) {
    // We print the help here instead of in RUN_ALL_TESTS(), as the
    // latter may not be called at all if the user is using Google
    // Test with another testing framework.
    PrintColorEncoded(kColorEncodedHelpMessage);
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl $0x1, -0x14(%rbp)
movl -0x14(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl (%rcx), %eax
jge 0x9008f
movq -0x10(%rbp), %rax
movslq -0x14(%rbp), %rcx
leaq (%rax,%rcx,8), %rsi
leaq -0x38(%rbp), %rdi
movq %rdi, -0x68(%rbp)
callq 0xa54d0
movq -0x68(%rbp), %rdi
callq 0x52230
movq %rax, -0x40(%rbp)
movb $0x0, -0x41(%rbp)
movq -0x40(%rbp), %rdi
callq 0x7f8d0
movb %al, -0x59(%rbp)
jmp 0x8ff4e
movb -0x59(%rbp), %al
testb $0x1, %al
jne 0x8ff57
jmp 0x8ff7a
movb $0x1, -0x41(%rbp)
jmp 0x90025
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0x38(%rbp), %rdi
callq 0x52d38
jmp 0x900aa
movq -0x40(%rbp), %rdi
leaq 0x19087(%rip), %rsi     # 0xa900c
leaq 0x41944(%rip), %rdx     # 0xd18d0
callq 0x7f880
movb %al, -0x69(%rbp)
jmp 0x8ff96
movb -0x69(%rbp), %al
testb $0x1, %al
jne 0x8ff9f
jmp 0x8ffb3
leaq 0x4192a(%rip), %rdi     # 0xd18d0
callq 0x7fb70
jmp 0x8ffad
movb $0x1, -0x41(%rbp)
jmp 0x90023
leaq -0x38(%rbp), %rdi
leaq 0x1ba36(%rip), %rsi     # 0xab9f4
callq 0x8ef50
testb $0x1, %al
jne 0x9001a
leaq -0x38(%rbp), %rdi
leaq 0x1ba29(%rip), %rsi     # 0xab9fb
callq 0x8ef50
testb $0x1, %al
jne 0x9001a
leaq -0x38(%rbp), %rdi
leaq 0x1ba18(%rip), %rsi     # 0xab9fe
callq 0x8ef50
testb $0x1, %al
jne 0x9001a
leaq -0x38(%rbp), %rdi
leaq 0x1ba07(%rip), %rsi     # 0xaba01
callq 0x8ef50
testb $0x1, %al
jne 0x9001a
movq -0x40(%rbp), %rdi
callq 0x884b0
movb %al, -0x6a(%rbp)
jmp 0x90011
movb -0x6a(%rbp), %al
testb $0x1, %al
jne 0x9001a
jmp 0x90021
movb $0x1, 0x41800(%rip)     # 0xd1821
jmp 0x90023
jmp 0x90025
testb $0x1, -0x41(%rbp)
je 0x90078
movl -0x14(%rbp), %eax
movl %eax, -0x58(%rbp)
movl -0x58(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl (%rcx), %eax
je 0x90064
movq -0x10(%rbp), %rax
movl -0x58(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rdx
movq -0x10(%rbp), %rax
movslq -0x58(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movl -0x58(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x58(%rbp)
jmp 0x90031
movq -0x8(%rbp), %rax
movl (%rax), %ecx
addl $-0x1, %ecx
movl %ecx, (%rax)
movl -0x14(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x14(%rbp)
leaq -0x38(%rbp), %rdi
callq 0x52d38
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x8ff07
testb $0x1, 0x4178b(%rip)     # 0xd1821
je 0x900a4
leaq 0x18f81(%rip), %rdi     # 0xa9020
callq 0x88560
addq $0x70, %rsp
popq %rbp
retq
movq -0x50(%rbp), %rdi
callq 0x52bc0
nopw %cs:(%rax,%rax)
nopl (%rax)