// File: /workspace/github_c_makefile_star2_O0/deplinenoise[P]tundra/unittest/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 0x37baf
movq -0x10(%rbp), %rax
movslq -0x14(%rbp), %rcx
leaq (%rax,%rcx,8), %rsi
leaq -0x38(%rbp), %rdi
movq %rdi, -0x68(%rbp)
callq 0x4d410
movq -0x68(%rbp), %rdi
callq 0xe2b0
movq %rax, -0x40(%rbp)
movb $0x0, -0x41(%rbp)
movq -0x40(%rbp), %rdi
callq 0x27190
movb %al, -0x59(%rbp)
jmp 0x37a6e
movb -0x59(%rbp), %al
testb $0x1, %al
jne 0x37a77
jmp 0x37a9a
movb $0x1, -0x41(%rbp)
jmp 0x37b45
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0x38(%rbp), %rdi
callq 0xf058
jmp 0x37bca
movq -0x40(%rbp), %rdi
leaq 0x51fd7(%rip), %rsi     # 0x89a7c
leaq 0x89eec(%rip), %rdx     # 0xc1998
callq 0x27140
movb %al, -0x69(%rbp)
jmp 0x37ab6
movb -0x69(%rbp), %al
testb $0x1, %al
jne 0x37abf
jmp 0x37ad3
leaq 0x89ed2(%rip), %rdi     # 0xc1998
callq 0x27430
jmp 0x37acd
movb $0x1, -0x41(%rbp)
jmp 0x37b43
leaq -0x38(%rbp), %rdi
leaq 0x54875(%rip), %rsi     # 0x8c353
callq 0x36ab0
testb $0x1, %al
jne 0x37b3a
leaq -0x38(%rbp), %rdi
leaq 0x54868(%rip), %rsi     # 0x8c35a
callq 0x36ab0
testb $0x1, %al
jne 0x37b3a
leaq -0x38(%rbp), %rdi
leaq 0x54857(%rip), %rsi     # 0x8c35d
callq 0x36ab0
testb $0x1, %al
jne 0x37b3a
leaq -0x38(%rbp), %rdi
leaq 0x54846(%rip), %rsi     # 0x8c360
callq 0x36ab0
testb $0x1, %al
jne 0x37b3a
movq -0x40(%rbp), %rdi
callq 0x2fe10
movb %al, -0x6a(%rbp)
jmp 0x37b31
movb -0x6a(%rbp), %al
testb $0x1, %al
jne 0x37b3a
jmp 0x37b41
movb $0x1, 0x89da8(%rip)     # 0xc18e9
jmp 0x37b43
jmp 0x37b45
testb $0x1, -0x41(%rbp)
je 0x37b98
movl -0x14(%rbp), %eax
movl %eax, -0x58(%rbp)
movl -0x58(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl (%rcx), %eax
je 0x37b84
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 0x37b51
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 0xf058
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x37a27
testb $0x1, 0x89d33(%rip)     # 0xc18e9
je 0x37bc4
leaq 0x51ed1(%rip), %rdi     # 0x89a90
callq 0x2fec0
addq $0x70, %rsp
popq %rbp
retq
movq -0x50(%rbp), %rdi
callq 0xee80
nopw %cs:(%rax,%rax)
nopl (%rax)