// File: /workspace/github_c_makefile_star2_O2/sasairc[P]yasuna/src/subset.c
// Function: search_all_quotes
int search_all_quotes(char* pattern, polyaness_t* pt, int flag)
{
#ifdef  WITH_REGEX
    int     cflags  = 0;

    /*
     * extended regular expression
     */
    if (flag & YASUNA_SEARCH_REGEX_IGNORE       ||
            flag & YASUNA_SEARCH_REGEX_EXTENDED ||
            flag & YASUNA_SEARCH_REGEX_BASIC) {
        /* POSIX extended regular expression */
        if (flag & YASUNA_SEARCH_REGEX_EXTENDED)
            cflags |= REG_EXTENDED;
        /* POSIX basic regular expression */
        if (flag & YASUNA_SEARCH_REGEX_BASIC)
            cflags &= ~REG_EXTENDED;
        /* ignore case distinctions */
        if (flag & YASUNA_SEARCH_REGEX_IGNORE)
            cflags |= REG_ICASE;

        return search_all_quotes_with_regexp_string(pattern, pt, cflags);
    }
/* WITH_REGEX */
#endif
    
    /* 
     * fixed string
     */
    return search_all_quotes_with_fixed_string(pattern, pt);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rsi, %r13
movq %rdi, %rbx
testw $0x1c0, %dx             # imm = 0x1C0
je 0x9faa
xorl %eax, %eax
testb %dl, %dl
setns %al
movl %edx, %ecx
shrl $0x6, %ecx
andl %ecx, %eax
shrl $0x7, %edx
andl $0x2, %edx
movq %r13, 0x8(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x40(%rsp)
movaps %xmm0, 0x30(%rsp)
movaps %xmm0, 0x20(%rsp)
movaps %xmm0, 0x10(%rsp)
addl %eax, %edx
addl $0x8, %edx
leaq 0x58(%rsp), %rdi
movq %rbx, %rsi
callq 0x22c0
testl %eax, %eax
jne 0xa04c
leaq 0x16eb(%rip), %rbx      # 0xb60c
leaq 0x8(%rsp), %r14
leaq 0x58(%rsp), %r15
pushq $0x8
popq %r12
xorl %ebp, %ebp
movq $0x0, (%rsp)
cmpl (%r13), %ebp
jge 0x9f94
movq %rbx, %rdi
movl %ebp, %esi
movq %r14, %rdx
callq 0x95c7
movq %rax, %r13
movq %r15, %rdi
movq %rax, %rsi
movq %r12, %rdx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x2100
testl %eax, %eax
jne 0x9f8b
movq 0x608b(%rip), %rax      # 0xfff8
movq (%rax), %rdi
leaq 0x168d(%rip), %rsi      # 0xb604
movl %ebp, %edx
movq %r13, %rcx
xorl %eax, %eax
callq 0x2400
movw $0x1, %ax
movq %rax, (%rsp)
incl %ebp
movq 0x8(%rsp), %r13
jmp 0x9f39
leaq 0x58(%rsp), %rdi
callq 0x2360
xorl %eax, %eax
cmpw $0x1, (%rsp)
jmp 0xa038
leaq 0x10(%rsp), %r14
movq %r13, (%r14)
leaq 0x1653(%rip), %r15      # 0xb60c
xorl %ebp, %ebp
xorl %r12d, %r12d
cmpl (%r13), %ebp
jge 0xa031
movq %r15, %rdi
movl %ebp, %esi
movq %r14, %rdx
callq 0x95c7
xorl %ecx, %ecx
movq %rax, %rdx
movb (%rdx), %dil
testb %dil, %dil
je 0xa028
xorl %esi, %esi
movb (%rbx,%rsi), %r8b
cmpb %r8b, %dil
jne 0x9ff8
testb %r8b, %r8b
je 0x9ff8
movb 0x1(%rdx,%rsi), %dil
incq %rsi
jmp 0x9fe0
testb %r8b, %r8b
je 0xa006
leaq (%rax,%rcx), %rdx
incq %rcx
jmp 0x9fd6
movq 0x5feb(%rip), %rcx      # 0xfff8
movq (%rcx), %rdi
leaq 0x15ed(%rip), %rsi      # 0xb604
movl %ebp, %edx
movq %rax, %rcx
xorl %eax, %eax
callq 0x2400
movw $0x1, %r12w
incl %ebp
movq 0x10(%rsp), %r13
jmp 0x9fbe
xorl %eax, %eax
cmpw $0x1, %r12w
sbbl %eax, %eax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x58(%rsp), %rsi
leaq 0x10(%rsp), %r14
pushq $0x40
popq %rcx
movl %eax, %edi
movq %r14, %rdx
callq 0x2210
movq 0x5f7e(%rip), %rax      # 0xffe8
movq (%rax), %rdi
leaq 0x15e3(%rip), %rsi      # 0xb657
leaq 0x119b(%rip), %rdx      # 0xb216
movq %rbx, %rcx
movq %r14, %r8
xorl %eax, %eax
callq 0x2400
pushq $-0x2
popq %rax
jmp 0xa03a