// File: attractivechaos[P]udb2/stb/./stb.h
// Function: stb__wild_parse
static char *stb__wild_parse(stb_matcher *matcher, int start, char *str, stb_uint16 *end)
{
   int n;
   stb_uint16 last_end;

   last_end = stb__add_node(matcher);
   stb__add_epsilon(matcher, start, last_end);

   while (*str) {
      switch (*str) {
            // fallthrough
         default: // match exactly this character
            n = stb__add_node(matcher);
            if (toupper(*str) == tolower(*str)) {
               stb__add_edge(matcher, last_end, n, *str);
            } else {
               stb__add_edge(matcher, last_end, n, tolower(*str));
               stb__add_edge(matcher, last_end, n, toupper(*str));
            }
            last_end = n;
            ++str;
            break;

         case '?':
            n = stb__add_node(matcher);
            stb__add_edge(matcher, last_end, n, -1);
            last_end = n;
            ++str;
            break;

         case '*':
            n = stb__add_node(matcher);
            stb__add_edge(matcher, last_end, n, -1);
            stb__add_epsilon(matcher, last_end, n);
            stb__add_epsilon(matcher, n, last_end);
            last_end = n;
            ++str;
            break;
      }
   }

   // now require end of string to match
   n = stb__add_node(matcher);
   stb__add_edge(matcher, last_end, n, 0);
   last_end = n;

   *end = last_end;
   return str;
}

// Assembly:
subq $0x58, %rsp
movq %rdi, 0x50(%rsp)
movl %esi, 0x4c(%rsp)
movq %rdx, 0x40(%rsp)
movq %rcx, 0x38(%rsp)
movq 0x50(%rsp), %rdi
callq 0x1d950
movw %ax, 0x32(%rsp)
movq 0x50(%rsp), %rdi
movl 0x4c(%rsp), %esi
movzwl 0x32(%rsp), %edx
callq 0x1daa0
movq 0x40(%rsp), %rax
cmpb $0x0, (%rax)
je 0x176eb
movq 0x40(%rsp), %rax
movsbl (%rax), %eax
movl %eax, 0x2c(%rsp)
subl $0x2a, %eax
je 0x17683
jmp 0x1754e
movl 0x2c(%rsp), %eax
subl $0x3f, %eax
je 0x17644
jmp 0x1755d
movq 0x50(%rsp), %rdi
callq 0x1d950
movl %eax, 0x34(%rsp)
movq 0x40(%rsp), %rax
movsbl (%rax), %edi
callq 0x2080
movl %eax, 0x28(%rsp)
movq 0x40(%rsp), %rax
movsbl (%rax), %edi
callq 0x2250
movl %eax, %ecx
movl 0x28(%rsp), %eax
cmpl %ecx, %eax
jne 0x175b0
movq 0x50(%rsp), %rdi
movzwl 0x32(%rsp), %esi
movl 0x34(%rsp), %edx
movq 0x40(%rsp), %rax
movsbl (%rax), %ecx
callq 0x1e480
jmp 0x17628
movq 0x50(%rsp), %rax
movq %rax, 0x8(%rsp)
movzwl 0x32(%rsp), %eax
movl %eax, 0x10(%rsp)
movl 0x34(%rsp), %eax
movl %eax, 0x14(%rsp)
movq 0x40(%rsp), %rax
movsbl (%rax), %edi
callq 0x2250
movq 0x8(%rsp), %rdi
movl 0x10(%rsp), %esi
movl 0x14(%rsp), %edx
movl %eax, %ecx
callq 0x1e480
movq 0x50(%rsp), %rax
movq %rax, 0x18(%rsp)
movzwl 0x32(%rsp), %eax
movl %eax, 0x20(%rsp)
movl 0x34(%rsp), %eax
movl %eax, 0x24(%rsp)
movq 0x40(%rsp), %rax
movsbl (%rax), %edi
callq 0x2080
movq 0x18(%rsp), %rdi
movl 0x20(%rsp), %esi
movl 0x24(%rsp), %edx
movl %eax, %ecx
callq 0x1e480
movl 0x34(%rsp), %eax
movw %ax, 0x32(%rsp)
movq 0x40(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x40(%rsp)
jmp 0x176e6
movq 0x50(%rsp), %rdi
callq 0x1d950
movl %eax, 0x34(%rsp)
movq 0x50(%rsp), %rdi
movzwl 0x32(%rsp), %esi
movl 0x34(%rsp), %edx
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
callq 0x1e480
movl 0x34(%rsp), %eax
movw %ax, 0x32(%rsp)
movq 0x40(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x40(%rsp)
jmp 0x176e6
movq 0x50(%rsp), %rdi
callq 0x1d950
movl %eax, 0x34(%rsp)
movq 0x50(%rsp), %rdi
movzwl 0x32(%rsp), %esi
movl 0x34(%rsp), %edx
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
callq 0x1e480
movq 0x50(%rsp), %rdi
movzwl 0x32(%rsp), %esi
movl 0x34(%rsp), %edx
callq 0x1daa0
movq 0x50(%rsp), %rdi
movl 0x34(%rsp), %esi
movzwl 0x32(%rsp), %edx
callq 0x1daa0
movl 0x34(%rsp), %eax
movw %ax, 0x32(%rsp)
movq 0x40(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x40(%rsp)
jmp 0x17529
movq 0x50(%rsp), %rdi
callq 0x1d950
movl %eax, 0x34(%rsp)
movq 0x50(%rsp), %rdi
movzwl 0x32(%rsp), %esi
movl 0x34(%rsp), %edx
xorl %ecx, %ecx
callq 0x1e480
movl 0x34(%rsp), %eax
movw %ax, 0x32(%rsp)
movw 0x32(%rsp), %cx
movq 0x38(%rsp), %rax
movw %cx, (%rax)
movq 0x40(%rsp), %rax
addq $0x58, %rsp
retq
nop