// File: WeihuaZhu[P]hpc_prog2/./gtest/gtest-all.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;

    // Do we see a Google Test flag?
    if (ParseBoolFlag(arg, kAlsoRunDisabledTestsFlag,
                      &GTEST_FLAG(also_run_disabled_tests)) ||
        ParseBoolFlag(arg, kBreakOnFailureFlag,
                      &GTEST_FLAG(break_on_failure)) ||
        ParseBoolFlag(arg, kCatchExceptionsFlag,
                      &GTEST_FLAG(catch_exceptions)) ||
        ParseStringFlag(arg, kColorFlag, &GTEST_FLAG(color)) ||
        ParseStringFlag(arg, kDeathTestStyleFlag,
                        &GTEST_FLAG(death_test_style)) ||
        ParseBoolFlag(arg, kDeathTestUseFork,
                      &GTEST_FLAG(death_test_use_fork)) ||
        ParseStringFlag(arg, kFilterFlag, &GTEST_FLAG(filter)) ||
        ParseStringFlag(arg, kInternalRunDeathTestFlag,
                        &GTEST_FLAG(internal_run_death_test)) ||
        ParseBoolFlag(arg, kListTestsFlag, &GTEST_FLAG(list_tests)) ||
        ParseStringFlag(arg, kOutputFlag, &GTEST_FLAG(output)) ||
        ParseBoolFlag(arg, kPrintTimeFlag, &GTEST_FLAG(print_time)) ||
        ParseInt32Flag(arg, kRandomSeedFlag, &GTEST_FLAG(random_seed)) ||
        ParseInt32Flag(arg, kRepeatFlag, &GTEST_FLAG(repeat)) ||
        ParseBoolFlag(arg, kShuffleFlag, &GTEST_FLAG(shuffle)) ||
        ParseInt32Flag(arg, kStackTraceDepthFlag,
                       &GTEST_FLAG(stack_trace_depth)) ||
        ParseStringFlag(arg, kStreamResultToFlag,
                        &GTEST_FLAG(stream_result_to)) ||
        ParseBoolFlag(arg, kThrowOnFailureFlag,
                      &GTEST_FLAG(throw_on_failure))
        ) {
      // Yes.  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--;
    } 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 (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:
subq $0x78, %rsp
movq %rdi, 0x70(%rsp)
movq %rsi, 0x68(%rsp)
movl $0x1, 0x64(%rsp)
movl 0x64(%rsp), %eax
movq 0x70(%rsp), %rcx
cmpl (%rcx), %eax
jge 0x396f9
movq 0x68(%rsp), %rax
movslq 0x64(%rsp), %rcx
leaq (%rax,%rcx,8), %rsi
leaq 0x40(%rsp), %rdi
movq %rdi, 0x18(%rsp)
callq 0x498f0
movq 0x18(%rsp), %rdi
callq 0xe370
movq %rax, 0x38(%rsp)
movq 0x38(%rsp), %rdi
leaq 0x12a31(%rip), %rsi     # 0x4bd50
leaq 0x2c874(%rip), %rdx     # 0x65b9a
callq 0x28fe0
movb %al, 0x27(%rsp)
jmp 0x39331
movb 0x27(%rsp), %al
testb $0x1, %al
jne 0x395ef
jmp 0x3933f
movq 0x38(%rsp), %rdi
leaq 0x12a25(%rip), %rsi     # 0x4bd70
leaq 0x2c849(%rip), %rdx     # 0x65b9b
callq 0x28fe0
movb %al, 0x17(%rsp)
jmp 0x3935d
movb 0x17(%rsp), %al
testb $0x1, %al
jne 0x395ef
jmp 0x3936b
movq 0x38(%rsp), %rdi
leaq 0x12a19(%rip), %rsi     # 0x4bd90
leaq 0x2c81e(%rip), %rdx     # 0x65b9c
callq 0x28fe0
movb %al, 0x16(%rsp)
jmp 0x39389
movb 0x16(%rsp), %al
testb $0x1, %al
jne 0x395ef
jmp 0x39397
movq 0x38(%rsp), %rdi
leaq 0x129fe(%rip), %rsi     # 0x4bda1
leaq 0x2c7f6(%rip), %rdx     # 0x65ba0
callq 0x29160
movb %al, 0x15(%rsp)
jmp 0x393b5
movb 0x15(%rsp), %al
testb $0x1, %al
jne 0x395ef
jmp 0x393c3
movq 0x38(%rsp), %rdi
leaq 0x129e1(%rip), %rsi     # 0x4bdb0
leaq 0x2c952(%rip), %rdx     # 0x65d28
callq 0x29160
movb %al, 0x14(%rsp)
jmp 0x393e1
movb 0x14(%rsp), %al
testb $0x1, %al
jne 0x395ef
jmp 0x393ef
movq 0x38(%rsp), %rdi
leaq 0x129d5(%rip), %rsi     # 0x4bdd0
leaq 0x2c946(%rip), %rdx     # 0x65d48
callq 0x28fe0
movb %al, 0x13(%rsp)
jmp 0x3940d
movb 0x13(%rsp), %al
testb $0x1, %al
jne 0x395ef
jmp 0x3941b
movq 0x38(%rsp), %rdi
leaq 0x12661(%rip), %rsi     # 0x4ba88
leaq 0x2c792(%rip), %rdx     # 0x65bc0
callq 0x29160
movb %al, 0x12(%rsp)
jmp 0x39439
movb 0x12(%rsp), %al
testb $0x1, %al
jne 0x395ef
jmp 0x39447
movq 0x38(%rsp), %rdi
leaq 0x1263d(%rip), %rsi     # 0x4ba90
leaq 0x2c8ae(%rip), %rdx     # 0x65d08
callq 0x29160
movb %al, 0x11(%rsp)
jmp 0x39465
movb 0x11(%rsp), %al
testb $0x1, %al
jne 0x395ef
jmp 0x39473
movq 0x38(%rsp), %rdi
leaq 0x12965(%rip), %rsi     # 0x4bde4
leaq 0x2c75a(%rip), %rdx     # 0x65be0
callq 0x28fe0
movb %al, 0x10(%rsp)
jmp 0x39491
movb 0x10(%rsp), %al
testb $0x1, %al
jne 0x395ef
jmp 0x3949f
movq 0x38(%rsp), %rdi
leaq 0x12944(%rip), %rsi     # 0x4bdef
leaq 0x2c736(%rip), %rdx     # 0x65be8
callq 0x29160
movb %al, 0xf(%rsp)
jmp 0x394bd
movb 0xf(%rsp), %al
testb $0x1, %al
jne 0x395ef
jmp 0x394cb
movq 0x38(%rsp), %rdi
leaq 0x1291f(%rip), %rsi     # 0x4bdf6
leaq 0x2c72a(%rip), %rdx     # 0x65c08
callq 0x28fe0
movb %al, 0xe(%rsp)
jmp 0x394e9
movb 0xe(%rsp), %al
testb $0x1, %al
jne 0x395ef
jmp 0x394f7
movq 0x38(%rsp), %rdi
leaq 0x128fe(%rip), %rsi     # 0x4be01
leaq 0x2c702(%rip), %rdx     # 0x65c0c
callq 0x29080
movb %al, 0xd(%rsp)
jmp 0x39515
movb 0xd(%rsp), %al
testb $0x1, %al
jne 0x395ef
jmp 0x39523
movq 0x38(%rsp), %rdi
leaq 0x128de(%rip), %rsi     # 0x4be0d
leaq 0x2c6da(%rip), %rdx     # 0x65c10
callq 0x29080
movb %al, 0xc(%rsp)
jmp 0x39541
movb 0xc(%rsp), %al
testb $0x1, %al
jne 0x395ef
jmp 0x3954f
movq 0x38(%rsp), %rdi
leaq 0x128b9(%rip), %rsi     # 0x4be14
leaq 0x2c6b3(%rip), %rdx     # 0x65c15
callq 0x28fe0
movb %al, 0xb(%rsp)
jmp 0x3956d
movb 0xb(%rsp), %al
testb $0x1, %al
jne 0x395ef
jmp 0x39577
movq 0x38(%rsp), %rdi
leaq 0x1289d(%rip), %rsi     # 0x4be20
leaq 0x2c68e(%rip), %rdx     # 0x65c18
callq 0x29080
movb %al, 0xa(%rsp)
jmp 0x39595
movb 0xa(%rsp), %al
testb $0x1, %al
jne 0x395ef
jmp 0x3959f
movq 0x38(%rsp), %rdi
leaq 0x12895(%rip), %rsi     # 0x4be40
leaq 0x2c66e(%rip), %rdx     # 0x65c20
callq 0x29160
movb %al, 0x9(%rsp)
jmp 0x395bd
movb 0x9(%rsp), %al
testb $0x1, %al
jne 0x395ef
jmp 0x395c7
movq 0x38(%rsp), %rdi
leaq 0x1288d(%rip), %rsi     # 0x4be60
leaq 0x2c666(%rip), %rdx     # 0x65c40
callq 0x28fe0
movb %al, 0x8(%rsp)
jmp 0x395e5
movb 0x8(%rsp), %al
testb $0x1, %al
jne 0x395ef
jmp 0x39668
movl 0x64(%rsp), %eax
movl %eax, 0x28(%rsp)
movl 0x28(%rsp), %eax
movq 0x70(%rsp), %rcx
cmpl (%rcx), %eax
je 0x3964f
movq 0x68(%rsp), %rax
movl 0x28(%rsp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rdx
movq 0x68(%rsp), %rax
movslq 0x28(%rsp), %rcx
movq %rdx, (%rax,%rcx,8)
movl 0x28(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x28(%rsp)
jmp 0x395f7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x30(%rsp)
movl %eax, 0x2c(%rsp)
leaq 0x40(%rsp), %rdi
callq 0xf698
jmp 0x39713
movq 0x70(%rsp), %rax
movl (%rax), %ecx
addl $-0x1, %ecx
movl %ecx, (%rax)
movl 0x64(%rsp), %eax
addl $-0x1, %eax
movl %eax, 0x64(%rsp)
jmp 0x396df
leaq 0x40(%rsp), %rdi
leaq 0x14f7c(%rip), %rsi     # 0x4e5f0
callq 0x38240
testb $0x1, %al
jne 0x396d6
leaq 0x40(%rsp), %rdi
leaq 0x14f6e(%rip), %rsi     # 0x4e5f7
callq 0x38240
testb $0x1, %al
jne 0x396d6
leaq 0x40(%rsp), %rdi
leaq 0x14f5c(%rip), %rsi     # 0x4e5fa
callq 0x38240
testb $0x1, %al
jne 0x396d6
leaq 0x40(%rsp), %rdi
leaq 0x14f4a(%rip), %rsi     # 0x4e5fd
callq 0x38240
testb $0x1, %al
jne 0x396d6
movq 0x38(%rsp), %rdi
callq 0x32070
movb %al, 0x7(%rsp)
jmp 0x396cc
movb 0x7(%rsp), %al
testb $0x1, %al
jne 0x396d6
jmp 0x396dd
movb $0x1, 0x2c4bc(%rip)     # 0x65b99
jmp 0x396df
leaq 0x40(%rsp), %rdi
callq 0xf698
movl 0x64(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x64(%rsp)
jmp 0x392d6
testb $0x1, 0x2c499(%rip)     # 0x65b99
je 0x3970e
leaq 0x12777(%rip), %rdi     # 0x4be80
callq 0x32130
addq $0x78, %rsp
retq
movq 0x30(%rsp), %rdi
callq 0xf410
nopl (%rax)