// File: halfflat[P]tinyopt/test/googletest/googletest/src/gtest.cc
// Function: testing::internal::(anonymous namespace)::UnitTestFilter::UnitTestFilter(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
explicit UnitTestFilter(const std::string& filter) {
    // By design "" filter matches "" string.
    std::vector<std::string> all_patterns;
    SplitString(filter, ':', &all_patterns);
    const auto exact_match_patterns_begin = std::partition(
        all_patterns.begin(), all_patterns.end(), &IsGlobPattern);

    glob_patterns_.reserve(static_cast<size_t>(
        std::distance(all_patterns.begin(), exact_match_patterns_begin)));
    std::move(all_patterns.begin(), exact_match_patterns_begin,
              std::inserter(glob_patterns_, glob_patterns_.begin()));
    std::move(
        exact_match_patterns_begin, all_patterns.end(),
        std::inserter(exact_match_patterns_, exact_match_patterns_.begin()));
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x160, %rsp            # imm = 0x160
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0xe8(%rbp)
movq %rdi, %rax
movq %rax, -0xf0(%rbp)
callq 0x39120
movq -0xe8(%rbp), %rdi
addq $0x18, %rdi
movq %rdi, -0xe0(%rbp)
callq 0xae790
leaq -0x28(%rbp), %rdi
movq %rdi, -0xd8(%rbp)
callq 0x39120
movq -0xd8(%rbp), %rdx
movq -0x10(%rbp), %rdi
movl $0x3a, %esi
callq 0x7af20
jmp 0x8285b
leaq -0x28(%rbp), %rdi
movq %rdi, -0x100(%rbp)
callq 0x3b980
movq -0x100(%rbp), %rdi
movq %rax, -0x48(%rbp)
callq 0x3b800
movq %rax, -0x50(%rbp)
movq -0x48(%rbp), %rdi
movq -0x50(%rbp), %rsi
leaq 0x1b702(%rip), %rdx     # 0x9df90
callq 0xae7b0
movq %rax, -0xf8(%rbp)
jmp 0x8289c
movq -0xf0(%rbp), %rax
movq -0xf8(%rbp), %rcx
movq %rcx, -0x40(%rbp)
movq %rax, -0x110(%rbp)
leaq -0x28(%rbp), %rdi
callq 0x3b980
movq %rax, -0x58(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x58(%rbp), %rdi
movq -0x60(%rbp), %rsi
callq 0x63890
movq %rax, -0x108(%rbp)
jmp 0x828e0
movq -0x108(%rbp), %rsi
movq -0x110(%rbp), %rdi
callq 0xae810
jmp 0x828f5
leaq -0x28(%rbp), %rdi
callq 0x3b980
movq -0xf0(%rbp), %rdi
movq %rax, -0x68(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x70(%rbp)
callq 0x3b980
movq -0xf0(%rbp), %rdi
movq %rax, -0x88(%rbp)
movq -0x88(%rbp), %rsi
callq 0xae990
movq %rdx, -0x120(%rbp)
movq %rax, -0x118(%rbp)
jmp 0x82940
movq -0x120(%rbp), %rax
movq -0x118(%rbp), %rcx
movq %rcx, -0x80(%rbp)
movq %rax, -0x78(%rbp)
movq -0x68(%rbp), %rdi
movq -0x70(%rbp), %rsi
movq -0x80(%rbp), %rdx
movq -0x78(%rbp), %rcx
callq 0xae910
movq %rdx, -0x130(%rbp)
movq %rax, -0x128(%rbp)
jmp 0x8297b
movq -0x130(%rbp), %rax
movq -0x128(%rbp), %rcx
movq %rcx, -0x98(%rbp)
movq %rax, -0x90(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0xa0(%rbp)
leaq -0x28(%rbp), %rdi
callq 0x3b800
movq -0xf0(%rbp), %rdi
movq %rax, -0xa8(%rbp)
addq $0x18, %rdi
movq %rdi, -0x148(%rbp)
callq 0xaea90
movq -0x148(%rbp), %rdi
movq %rax, -0xc0(%rbp)
movq -0xc0(%rbp), %rsi
callq 0xaea50
movq %rdx, -0x140(%rbp)
movq %rax, -0x138(%rbp)
jmp 0x829f3
movq -0x140(%rbp), %rax
movq -0x138(%rbp), %rcx
movq %rcx, -0xb8(%rbp)
movq %rax, -0xb0(%rbp)
movq -0xa0(%rbp), %rdi
movq -0xa8(%rbp), %rsi
movq -0xb8(%rbp), %rdx
movq -0xb0(%rbp), %rcx
callq 0xae9d0
movq %rdx, -0x158(%rbp)
movq %rax, -0x150(%rbp)
jmp 0x82a40
movq -0x158(%rbp), %rax
movq -0x150(%rbp), %rcx
movq %rcx, -0xd0(%rbp)
movq %rax, -0xc8(%rbp)
leaq -0x28(%rbp), %rdi
callq 0x390a0
addq $0x160, %rsp            # imm = 0x160
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0x28(%rbp), %rdi
callq 0x390a0
movq -0xe0(%rbp), %rdi
callq 0xaeac0
movq -0xe8(%rbp), %rdi
callq 0x390a0
movq -0x30(%rbp), %rdi
callq 0x10e00
nopw %cs:(%rax,%rax)