// File: /workspace/github_cpp_makefile_star2_O3/WeihuaZhu[P]hpc_prog2/./gtest/gtest-all.cc
// Function: testing::internal::ParseFlagValue(char const*, char const*, bool)
const char* ParseFlagValue(const char* str,
                           const char* flag,
                           bool def_optional) {
  // str and flag must not be NULL.
  if (str == NULL || flag == NULL) return NULL;

  // The flag must start with "--" followed by GTEST_FLAG_PREFIX_.
  const std::string flag_str = std::string("--") + GTEST_FLAG_PREFIX_ + flag;
  const size_t flag_len = flag_str.length();
  if (strncmp(str, flag_str.c_str(), flag_len) != 0) return NULL;

  // Skips the flag name.
  const char* flag_end = str + flag_len;

  // When def_optional is true, it's OK to not have a "=value" part.
  if (def_optional && (flag_end[0] == '\0')) {
    return flag_end;
  }

  // If def_optional is true and there are more characters after the
  // flag name, or if def_optional is false, there must be a '=' after
  // the flag name.
  if (flag_end[0] != '=') return NULL;

  // Returns the string after "=".
  return flag_end + 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
je 0x14d5b
xorl %r12d, %r12d
jmp 0x14eaf
movl %edx, %ebx
movq %rsi, %r15
movq %rdi, %r14
leaq 0x58(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x142ae(%rip), %rsi     # 0x29021
leaq 0x142a9(%rip), %rdx     # 0x29023
leaq 0x48(%rsp), %r12
movq %r12, %rdi
callq 0x24240
leaq 0x1427a(%rip), %rsi     # 0x29008
movq %r12, %rdi
callq 0x69a0
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x14dbe
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x14dc6
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
leaq 0x8(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %r15, %rsi
callq 0x69a0
leaq 0x38(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x14e11
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x14e18
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
movq 0x8(%rax), %rdx
movq %rdx, 0x30(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x14e47
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6430
movq 0x48(%rsp), %rdi
cmpq %r13, %rdi
je 0x14e5e
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x6430
movq 0x28(%rsp), %r15
movq 0x30(%rsp), %r13
movq %r14, %rdi
movq %r15, %rsi
movq %r13, %rdx
callq 0x61e0
testl %eax, %eax
je 0x14e7f
xorl %r12d, %r12d
jmp 0x14e9a
leaq (%r14,%r13), %r12
movb (%r14,%r13), %al
testb %bl, %bl
je 0x14e8f
testb %al, %al
je 0x14e9a
incq %r12
xorl %ecx, %ecx
cmpb $0x3d, %al
cmovneq %rcx, %r12
cmpq %rbp, %r15
je 0x14eaf
movq 0x38(%rsp), %rsi
incq %rsi
movq %r15, %rdi
callq 0x6430
movq %r12, %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x14ee0
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6430
jmp 0x14ee0
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r13, %rdi
je 0x14ef7
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x6430
movq %rbx, %rdi
callq 0x68e0