// File: /workspace/github_cpp_makefile_star2_O2/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %rbx
movq %rdi, %r14
pushq $0x1
popq %r12
leaq 0x8(%rsp), %r15
cmpl (%r14), %r12d
jge 0x3f360
movslq %r12d, %r13
leaq (%rbx,%r13,8), %rsi
movq %r15, %rdi
callq 0x445cf
movq 0x8(%rsp), %rbp
movq %rbp, %rdi
callq 0x381e9
testb %al, %al
jne 0x3f2d1
movq %rbp, %rdi
leaq 0x749c(%rip), %rsi      # 0x46751
leaq 0x204ac(%rip), %rdx     # 0x5f768
callq 0x381ba
testb %al, %al
je 0x3f2f1
leaq 0x2049c(%rip), %rdi     # 0x5f768
callq 0x383d1
movslq (%r14), %rax
cmpq %r13, %rax
je 0x3f2e7
movq 0x8(%rbx,%r13,8), %rcx
movq %rcx, (%rbx,%r13,8)
incq %r13
jmp 0x3f2d4
decl %eax
movl %eax, (%r14)
decl %r12d
jmp 0x3f350
movq %r15, %rdi
leaq 0xa0d1(%rip), %rsi      # 0x493cc
callq 0x3edaf
testb %al, %al
jne 0x3f349
movq %r15, %rdi
leaq 0xa0c5(%rip), %rsi      # 0x493d3
callq 0x3edaf
testb %al, %al
jne 0x3f349
movq %r15, %rdi
leaq 0xa0b5(%rip), %rsi      # 0x493d6
callq 0x3edaf
testb %al, %al
jne 0x3f349
movq %r15, %rdi
leaq 0xa0a5(%rip), %rsi      # 0x493d9
callq 0x3edaf
testb %al, %al
jne 0x3f349
movq %rbp, %rdi
callq 0x3c8cf
testb %al, %al
je 0x3f350
movb $0x1, 0x20369(%rip)     # 0x5f6b9
movq %r15, %rdi
callq 0x25a68
incl %r12d
jmp 0x3f282
cmpb $0x0, 0x20352(%rip)     # 0x5f6b9
je 0x3f36e
callq 0x3c94b
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x25a68
movq %rbx, %rdi
callq 0x25930