// File: /workspace/github_c_makefile_star2_O3/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, %r14
movq %rdi, %rbx
testl $0x1c0, %edx            # imm = 0x1C0
je 0xab3f
xorl %eax, %eax
testb %dl, %dl
setns %al
movl %edx, %ecx
shrl $0x6, %ecx
andl %ecx, %eax
shrl $0x7, %edx
andl $0x2, %edx
movq %r14, 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 0xac27
cmpl $0x0, (%r14)
jle 0xabfd
leaq 0x1b7c(%rip), %rbx      # 0xc648
leaq 0x8(%rsp), %r14
leaq 0x58(%rsp), %r15
xorl %r12d, %r12d
xorl %ebp, %ebp
movq %rbx, %rdi
movl %ebp, %esi
movq %r14, %rdx
callq 0xa22c
movq %rax, %r13
movl $0x8, %edx
movq %r15, %rdi
movq %rax, %rsi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x2100
testl %eax, %eax
jne 0xab26
movq 0x64ed(%rip), %rax      # 0x10ff8
movq (%rax), %rdi
leaq 0x1b2b(%rip), %rsi      # 0xc640
movl %ebp, %edx
movq %r13, %rcx
xorl %eax, %eax
callq 0x2400
movw $0x1, %r12w
incl %ebp
movq 0x8(%rsp), %rax
cmpl (%rax), %ebp
jl 0xaadb
xorl %ebx, %ebx
cmpw $0x1, %r12w
sbbl %ebx, %ebx
jmp 0xac02
movq %r14, 0x10(%rsp)
cmpl $0x0, (%r14)
jle 0xac20
leaq 0x1af3(%rip), %r14      # 0xc648
leaq 0x10(%rsp), %r15
leaq 0x1adf(%rip), %r12      # 0xc640
xorl %r13d, %r13d
xorl %ebp, %ebp
movq %r14, %rdi
movl %ebp, %esi
movq %r15, %rdx
callq 0xa22c
movb (%rax), %r8b
testb %r8b, %r8b
je 0xabe3
movb (%rbx), %cl
testb %cl, %cl
sete %dl
movq %rax, %rdi
xorl %esi, %esi
movl %edx, %r9d
cmpb %cl, %r8b
jne 0xabae
movl $0x1, %r8d
movb (%rbx,%r8), %r10b
testb %r10b, %r10b
sete %r9b
cmpb %r10b, (%rdi,%r8)
jne 0xabae
incq %r8
testb %r10b, %r10b
jne 0xab95
testb %r9b, %r9b
jne 0xabc5
leaq (%rax,%rsi), %rdi
movb (%rax,%rsi), %r8b
incq %rsi
testb %r8b, %r8b
jne 0xab87
jmp 0xabe3
movq 0x642c(%rip), %rcx      # 0x10ff8
movq (%rcx), %rdi
movq %r12, %rsi
movl %ebp, %edx
movq %rax, %rcx
xorl %eax, %eax
callq 0x2400
movw $0x1, %r13w
incl %ebp
movq 0x10(%rsp), %rax
cmpl (%rax), %ebp
jl 0xab66
xorl %ebx, %ebx
cmpw $0x1, %r13w
sbbl %ebx, %ebx
jmp 0xac0c
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
leaq 0x58(%rsp), %rdi
callq 0x2360
movl %ebx, %eax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
jmp 0xac0c
leaq 0x58(%rsp), %rsi
leaq 0x10(%rsp), %r14
movl $0x40, %ecx
movl %eax, %edi
movq %r14, %rdx
callq 0x2210
movq 0x63a1(%rip), %rax      # 0x10fe8
movq (%rax), %rdi
leaq 0x1a42(%rip), %rsi      # 0xc693
leaq 0x15fa(%rip), %rdx      # 0xc252
movq %rbx, %rcx
movq %r14, %r8
xorl %eax, %eax
callq 0x2400
movl $0xfffffffe, %ebx       # imm = 0xFFFFFFFE
jmp 0xac0c