// File: /workspace/github_c_makefile_star2_O1/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 %rdi, %rbx
testl $0x1c0, %edx            # imm = 0x1C0
je 0xad3a
xorl %eax, %eax
testb %dl, %dl
setns %al
movl %edx, %ecx
shrl $0x6, %ecx
andl %ecx, %eax
shrl $0x7, %edx
andl $0x2, %edx
movq %rsi, 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 0xae22
movq 0x8(%rsp), %rax
cmpl $0x0, (%rax)
jle 0xadf8
leaq 0x1961(%rip), %rbx      # 0xc628
leaq 0x8(%rsp), %r14
leaq 0x58(%rsp), %r15
xorl %r12d, %r12d
xorl %ebp, %ebp
movq %rbx, %rdi
movl %ebp, %esi
movq %r14, %rdx
callq 0xa41b
movq %rax, %r13
movl $0x8, %edx
movq %r15, %rdi
movq %rax, %rsi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x2100
testl %eax, %eax
jne 0xad21
movq 0x62f2(%rip), %rax      # 0x10ff8
movq (%rax), %rdi
leaq 0x1910(%rip), %rsi      # 0xc620
movl %ebp, %edx
movq %r13, %rcx
xorl %eax, %eax
callq 0x23f0
movw $0x1, %r12w
incl %ebp
movq 0x8(%rsp), %rax
cmpl (%rax), %ebp
jl 0xacd6
xorl %ebx, %ebx
cmpw $0x1, %r12w
sbbl %ebx, %ebx
jmp 0xadfd
movq %rsi, 0x10(%rsp)
cmpl $0x0, (%rsi)
jle 0xae1b
leaq 0x18d9(%rip), %r14      # 0xc628
leaq 0x10(%rsp), %r15
leaq 0x18c5(%rip), %r12      # 0xc620
xorl %r13d, %r13d
xorl %ebp, %ebp
movq %r14, %rdi
movl %ebp, %esi
movq %r15, %rdx
callq 0xa41b
cmpb $0x0, (%rax)
je 0xadde
movb (%rbx), %cl
testb %cl, %cl
sete %dl
movq %rax, %rdi
xorl %esi, %esi
movl %edx, %r8d
testb %cl, %cl
je 0xadab
movl %edx, %r8d
cmpb %cl, (%rdi)
jne 0xadab
movl $0x1, %r9d
movb (%rbx,%r9), %r10b
testb %r10b, %r10b
sete %r8b
cmpb %r10b, (%rdi,%r9)
jne 0xadab
incq %r9
testb %r10b, %r10b
jne 0xad92
testb %r8b, %r8b
jne 0xadc0
leaq (%rax,%rsi), %rdi
cmpb $0x0, (%rax,%rsi)
leaq 0x1(%rsi), %rsi
jne 0xad7e
jmp 0xadde
movq 0x6231(%rip), %rcx      # 0x10ff8
movq (%rcx), %rdi
movq %r12, %rsi
movl %ebp, %edx
movq %rax, %rcx
xorl %eax, %eax
callq 0x23f0
movw $0x1, %r13w
incl %ebp
movq 0x10(%rsp), %rax
cmpl (%rax), %ebp
jl 0xad60
xorl %ebx, %ebx
cmpw $0x1, %r13w
sbbl %ebx, %ebx
jmp 0xae07
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 0xae07
leaq 0x58(%rsp), %rsi
leaq 0x10(%rsp), %r14
movl $0x40, %ecx
movl %eax, %edi
movq %r14, %rdx
callq 0x2210
movq 0x61a6(%rip), %rax      # 0x10fe8
movq (%rax), %rdi
leaq 0x1827(%rip), %rsi      # 0xc673
leaq 0x13df(%rip), %rdx      # 0xc232
movq %rbx, %rcx
movq %r14, %r8
xorl %eax, %eax
callq 0x23f0
movl $0xfffffffe, %ebx       # imm = 0xFFFFFFFE
jmp 0xae07