// File: /workspace/github_c_makefile_star2_O2/mattn[P]orelang/slre.c
// Function: slre_match
int slre_match(const char *regexp, const char *s, int s_len,
               struct slre_cap *caps, int num_caps, int flags) {
  struct regex_info info;

  /* Initialize info structure */
  info.flags = flags;
  info.num_brackets = info.num_branches = 0;
  info.num_caps = num_caps;
  info.caps = caps;

  DBG(("========================> [%s] [%.*s]\n", regexp, s_len, s));
  return foo(regexp, (int) strlen(regexp), s, s_len, &info);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1018, %rsp           # imm = 0x1018
movl %edx, 0x18(%rsp)
movq %rsi, %r15
movq %rdi, %r14
leaq 0x9c0(%rsp), %rbx
movl %r9d, 0x654(%rbx)
movl %r8d, 0x24(%rsp)
movl %r8d, 0x650(%rbx)
movq %rcx, 0x648(%rbx)
callq 0x20c0
movq %r14, 0x28(%rsp)
movq %r14, -0x968(%rbx)
movl %eax, -0x960(%rbx)
leal -0x1(%rax), %ecx
movl %ecx, 0x20(%rsp)
movq %rax, 0x38(%rsp)
addl $-0x3, %eax
movl %eax, 0x1c(%rsp)
pushq $0x1
popq %r12
xorl %ebx, %ebx
pushq $-0x3
popq %rax
movl %eax, (%rsp)
movl %r12d, %eax
movq %rax, 0x8(%rsp)
movq %rax, 0x10(%rsp)
xorl %r14d, %r14d
movl $0x0, 0x4(%rsp)
movq %r15, 0x30(%rsp)
movq 0x38(%rsp), %rax
movl %eax, %esi
subl %r14d, %esi
jle 0x96ab
movq %r12, %rbp
movslq %r14d, %r13
movq 0x28(%rsp), %r12
leaq (%r12,%r13), %r15
movq %r15, %rdi
callq 0x981e
movl %eax, %edi
movzbl (%r12,%r13), %eax
cmpl $0x28, %eax
je 0x9625
cmpl $0x29, %eax
je 0x956d
cmpl $0x5c, %eax
movq %rbp, %r12
je 0x95d4
cmpl $0x7c, %eax
jne 0x969e
cmpl $0x63, %ebx
jg 0x97f1
leal -0x1(%r12), %eax
cltq
imulq $0x18, %rax, %rcx
cmpl $-0x1, 0x60(%rsp,%rcx)
cmovnel 0x4(%rsp), %eax
movslq %ebx, %rcx
shlq $0x4, %rcx
leaq 0x9c0(%rsp), %rdx
movl %eax, (%rdx,%rcx)
movq %r15, 0x8(%rdx,%rcx)
incl %ebx
jmp 0x966d
movq 0x8(%rsp), %rax
decl %eax
cltq
imulq $0x18, %rax, %rcx
cmpl $-0x1, 0x60(%rsp,%rcx)
movl 0x4(%rsp), %ecx
cmovnel %ecx, %eax
cltq
imulq $0x18, %rax, %rax
subl 0x58(%rsp,%rax), %r15d
movl %r15d, 0x60(%rsp,%rax)
testl %ecx, %ecx
jle 0x9809
movl %ecx, %eax
movq %rbp, %r12
decl %eax
movl %eax, 0x4(%rsp)
testl %r14d, %r14d
jle 0x9694
movl %r14d, %eax
movq 0x28(%rsp), %rcx
cmpb $0x28, -0x1(%rcx,%rax)
movq 0x8(%rsp), %rax
movq %rax, 0x10(%rsp)
jne 0x969e
jmp 0x9803
cmpl 0x20(%rsp), %r14d
jge 0x972f
movzbl 0x1(%r15), %esi
cmpl $0x78, %esi
jne 0x9677
cmpl 0x1c(%rsp), %r14d
jge 0x972f
movl %edi, %ebp
callq 0x22b0
movq (%rax), %rax
movsbq 0x2(%r15), %rcx
testb $0x10, 0x1(%rax,%rcx,2)
je 0x972f
movsbq 0x3(%r15), %rcx
testb $0x10, 0x1(%rax,%rcx,2)
movl %ebp, %edi
jne 0x969e
jmp 0x972f
movq 0x8(%rsp), %rdx
cmpl $0x63, %edx
movl 0x24(%rsp), %ecx
jg 0x97f5
incl 0x4(%rsp)
movslq %edx, %rax
imulq $0x18, %rax, %rax
orl $-0x1, 0x60(%rsp,%rax)
incq %r15
leal 0x1(%rdx), %r12d
movq %r15, 0x58(%rsp,%rax)
testl %ecx, %ecx
jle 0x966d
movl %r12d, %eax
movq %rax, 0x10(%rsp)
cmpl %ecx, %edx
movq %rax, 0x8(%rsp)
jle 0x969e
jmp 0x97f9
movl %r12d, %eax
movq %rax, 0x8(%rsp)
jmp 0x9699
movl %edi, %ebp
leaq 0x7168(%rip), %rdi      # 0x107e8
pushq $0x16
popq %rdx
callq 0x2120
movl %ebp, %edi
testq %rax, %rax
jne 0x969e
jmp 0x972f
movq 0x8(%rsp), %rax
movq %rax, 0x10(%rsp)
addl %edi, %r14d
movq 0x30(%rsp), %r15
jmp 0x94e0
movl %r12d, 0x9b8(%rsp)
movl %ebx, 0x1000(%rsp)
cmpl $0x0, 0x4(%rsp)
jne 0x9809
pushq $0x1
popq %rax
leaq 0x9d0(%rsp), %rdx
xorl %esi, %esi
leaq 0x9c0(%rsp), %r14
movslq %ebx, %rcx
cmpq %rcx, %rsi
jge 0x9736
movq %rsi, %rcx
shlq $0x4, %rcx
addq %r14, %rcx
movl %eax, %edi
movq %rdx, %r8
cmpl %edi, %ebx
jle 0x9724
movl (%rcx), %r9d
cmpl (%r8), %r9d
jle 0x971c
movups (%rcx), %xmm0
movaps %xmm0, 0x40(%rsp)
movups (%r8), %xmm0
movups %xmm0, (%rcx)
movaps 0x40(%rsp), %xmm0
movups %xmm0, (%r8)
movl 0x1000(%rsp), %ebx
addq $0x10, %r8
incl %edi
jmp 0x96f1
incq %rsi
addq $0x10, %rdx
incl %eax
jmp 0x96da
pushq $-0x6
jmp 0x9805
xorl %eax, %eax
movq 0x10(%rsp), %r12
testl %r12d, %r12d
cmovlel %eax, %r12d
xorl %edx, %edx
cmpq %r12, %rax
je 0x97a1
imulq $0x18, %rax, %rsi
addq %rsp, %rsi
addq $0x58, %rsi
andl $0x0, 0x10(%rsi)
movl %edx, 0xc(%rsi)
movslq %edx, %rdi
cmpl %ebx, %edi
movl %ebx, %r8d
cmovgl %edi, %r8d
movq %rdi, %r9
shlq $0x4, %r9
addq %r14, %r9
xorl %r10d, %r10d
leaq (%rdi,%r10), %r11
cmpq %rcx, %r11
jge 0x9794
movl (%r9), %r11d
cmpq %r11, %rax
jne 0x9799
incq %r10
movl %r10d, 0x10(%rsi)
addq $0x10, %r9
jmp 0x9776
movl %r8d, %edx
jmp 0x979c
addl %r10d, %edx
incq %rax
jmp 0x9746
leaq 0x58(%rsp), %rbp
movq (%rbp), %rax
movb (%rax), %bl
movl 0x18(%rsp), %ecx
testl %ecx, %ecx
pushq $-0x1
popq %rax
movl %eax, (%rsp)
cmovnsl %ecx, %eax
movslq %eax, %r14
movl %ecx, %r12d
notq %r14
xorl %r13d, %r13d
cmpq %r13, %r14
je 0x9809
leal (%r12,%r13), %esi
movq %r15, %rdi
movq %rbp, %rdx
xorl %ecx, %ecx
callq 0x988b
movl %eax, (%rsp)
testl %eax, %eax
jns 0x97fd
decq %r13
incq %r15
cmpb $0x5e, %bl
jne 0x97c7
jmp 0x9809
pushq $-0x8
jmp 0x9805
pushq $-0x9
jmp 0x9805
pushq $-0x7
jmp 0x9805
subl %r13d, (%rsp)
jmp 0x9809
pushq $-0x1
popq %rax
movl %eax, (%rsp)
movl (%rsp), %eax
addq $0x1018, %rsp           # imm = 0x1018
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq