// File: zeeev[P]DASVC/bamtools/src/toolkit/bamtools_filter.cpp
// Function: BamTools::FilterTool::FilterToolPrivate::ParseFilterObject(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, Json::Value const&)
bool FilterTool::FilterToolPrivate::ParseFilterObject(const string& filterName, const Json::Value& filterObject) {
  
    // filter object parsing variables
    Json::Value null(Json::nullValue);
    Json::Value propertyValue;
    
    // store results
    map<string, string> propertyTokens;
    
    // iterate over known properties
    vector<string>::const_iterator propertyNameIter = m_propertyNames.begin();
    vector<string>::const_iterator propertyNameEnd  = m_propertyNames.end();
    for ( ; propertyNameIter != propertyNameEnd; ++propertyNameIter ) {
        const string& propertyName = (*propertyNameIter);
        
        // if property defined in filter, add to token list
        propertyValue = filterObject.get(propertyName, null);
        if ( propertyValue != null ) 
            propertyTokens.insert( make_pair(propertyName, propertyValue.asString()) );
    }
  
    // add this filter to engin
    m_filterEngine.addFilter(filterName);
  
    // add token list to this filter
    return AddPropertyTokensToFilter(filterName, propertyTokens);
}

// Assembly:
subq $0x1e8, %rsp            # imm = 0x1E8
movq %rdi, 0x1e0(%rsp)
movq %rsi, 0x1d8(%rsp)
movq %rdx, 0x1d0(%rsp)
movq 0x1e0(%rsp), %rax
movq %rax, 0x40(%rsp)
leaq 0x1b8(%rsp), %rdi
xorl %esi, %esi
movl %esi, 0x4c(%rsp)
callq 0x1212e0
movl 0x4c(%rsp), %esi
leaq 0x1a0(%rsp), %rdi
callq 0x1212e0
jmp 0x9cca2
leaq 0x160(%rsp), %rdi
callq 0xa75f0
jmp 0x9ccb1
movq 0x40(%rsp), %rdi
callq 0x935d0
movq %rax, 0x38(%rsp)
jmp 0x9ccc2
movq 0x38(%rsp), %rax
movq %rax, 0x150(%rsp)
leaq 0x158(%rsp), %rdi
leaq 0x150(%rsp), %rsi
callq 0xa7230
jmp 0x9cce6
movq 0x40(%rsp), %rdi
callq 0x93440
movq %rax, 0x30(%rsp)
jmp 0x9ccf7
movq 0x30(%rsp), %rax
movq %rax, 0x140(%rsp)
leaq 0x148(%rsp), %rdi
leaq 0x140(%rsp), %rsi
callq 0xa7230
jmp 0x9cd1b
jmp 0x9cd1d
leaq 0x158(%rsp), %rdi
leaq 0x148(%rsp), %rsi
callq 0x96260
movb %al, 0x2f(%rsp)
jmp 0x9cd38
movb 0x2f(%rsp), %al
testb $0x1, %al
jne 0x9cd45
jmp 0x9cfc9
leaq 0x158(%rsp), %rdi
callq 0x962a0
movq %rax, 0x20(%rsp)
jmp 0x9cd59
movq 0x20(%rsp), %rax
movq %rax, 0x138(%rsp)
movq 0x1d0(%rsp), %rsi
movq 0x138(%rsp), %rdx
leaq 0x120(%rsp), %rdi
leaq 0x1b8(%rsp), %rcx
callq 0x124070
jmp 0x9cd8d
leaq 0x1a0(%rsp), %rdi
leaq 0x120(%rsp), %rsi
callq 0x121b00
jmp 0x9cda4
leaq 0x120(%rsp), %rdi
callq 0x121950
jmp 0x9cdb3
leaq 0x1a0(%rsp), %rdi
leaq 0x1b8(%rsp), %rsi
callq 0x122120
movb %al, 0x1f(%rsp)
jmp 0x9cdce
movb 0x1f(%rsp), %al
testb $0x1, %al
jne 0x9cddb
jmp 0x9cfb3
movq 0x138(%rsp), %rsi
leaq 0x80(%rsp), %rdi
callq 0x86350
jmp 0x9cdf2
leaq 0x60(%rsp), %rdi
leaq 0x1a0(%rsp), %rsi
callq 0x122160
jmp 0x9ce06
leaq 0xa0(%rsp), %rdi
leaq 0x80(%rsp), %rsi
leaq 0x60(%rsp), %rdx
callq 0xa7650
jmp 0x9ce22
leaq 0xe0(%rsp), %rdi
leaq 0xa0(%rsp), %rsi
callq 0xa7680
jmp 0x9ce39
leaq 0x160(%rsp), %rdi
leaq 0xe0(%rsp), %rsi
callq 0xa7600
movb %dl, 0xf(%rsp)
movq %rax, 0x10(%rsp)
jmp 0x9ce59
movb 0xf(%rsp), %al
movq 0x10(%rsp), %rcx
movq %rcx, 0x50(%rsp)
movb %al, 0x58(%rsp)
leaq 0xe0(%rsp), %rdi
callq 0xa76f0
jmp 0x9ce7a
leaq 0xa0(%rsp), %rdi
callq 0xa7750
jmp 0x9ce89
leaq 0x60(%rsp), %rdi
callq 0x86f68
jmp 0x9ce95
leaq 0x80(%rsp), %rdi
callq 0x86f68
jmp 0x9cea4
jmp 0x9cfb3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x198(%rsp)
movl %eax, 0x194(%rsp)
jmp 0x9d05c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x198(%rsp)
movl %eax, 0x194(%rsp)
jmp 0x9d04b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x198(%rsp)
movl %eax, 0x194(%rsp)
jmp 0x9d01f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x198(%rsp)
movl %eax, 0x194(%rsp)
leaq 0x120(%rsp), %rdi
callq 0x121950
jmp 0x9cf17
jmp 0x9d01f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x198(%rsp)
movl %eax, 0x194(%rsp)
jmp 0x9cfa2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x198(%rsp)
movl %eax, 0x194(%rsp)
jmp 0x9cf94
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x198(%rsp)
movl %eax, 0x194(%rsp)
jmp 0x9cf83
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x198(%rsp)
movl %eax, 0x194(%rsp)
leaq 0xe0(%rsp), %rdi
callq 0xa76f0
jmp 0x9cf81
jmp 0x9cf83
leaq 0xa0(%rsp), %rdi
callq 0xa7750
jmp 0x9cf92
jmp 0x9cf94
leaq 0x60(%rsp), %rdi
callq 0x86f68
jmp 0x9cfa0
jmp 0x9cfa2
leaq 0x80(%rsp), %rdi
callq 0x86f68
jmp 0x9cfb1
jmp 0x9d01f
jmp 0x9cfb5
leaq 0x158(%rsp), %rdi
callq 0x962b0
jmp 0x9cfc4
jmp 0x9cd1d
movq 0x40(%rsp), %rdi
addq $0x20, %rdi
movq 0x1d8(%rsp), %rsi
callq 0xa7460
jmp 0x9cfe1
movq 0x40(%rsp), %rdi
movq 0x1d8(%rsp), %rsi
leaq 0x160(%rsp), %rdx
callq 0x9a010
movb %al, 0xe(%rsp)
jmp 0x9d001
leaq 0x160(%rsp), %rdi
callq 0xa77b0
jmp 0x9d010
leaq 0x1a0(%rsp), %rdi
callq 0x121950
jmp 0x9d030
leaq 0x160(%rsp), %rdi
callq 0xa77b0
jmp 0x9d02e
jmp 0x9d04b
leaq 0x1b8(%rsp), %rdi
callq 0x121950
movb 0xe(%rsp), %al
andb $0x1, %al
addq $0x1e8, %rsp            # imm = 0x1E8
retq
leaq 0x1a0(%rsp), %rdi
callq 0x121950
jmp 0x9d05a
jmp 0x9d05c
leaq 0x1b8(%rsp), %rdi
callq 0x121950
jmp 0x9d06b
jmp 0x9d06d
movq 0x198(%rsp), %rdi
callq 0x86d80
movq %rax, %rdi
callq 0x91290
nopw %cs:(%rax,%rax)