// File: /workspace/github_c_makefile_star2_O3/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, %ebp
movq %rsi, 0x38(%rsp)
movq %rdi, %rbx
movl %r9d, 0x1014(%rsp)
movl $0x0, 0x1000(%rsp)
movl %r8d, 0x2c(%rsp)
movl %r8d, 0x1010(%rsp)
movq %rcx, 0x1008(%rsp)
callq 0x20c0
movq %rax, %rdi
movq %rbx, 0x30(%rsp)
movq %rbx, 0x58(%rsp)
movl %edi, 0x60(%rsp)
movl $0x1, 0x9b8(%rsp)
testl %edi, %edi
jle 0xbb9f
leal -0x1(%rdi), %eax
movl %eax, 0x28(%rsp)
leal -0x3(%rdi), %eax
movl %eax, 0x24(%rsp)
movl $0x1, %eax
movq %rax, 0x10(%rsp)
xorl %ebx, %ebx
movl $0x1, %eax
movq %rax, 0x18(%rsp)
movl $0x0, 0xc(%rsp)
xorl %r15d, %r15d
movl %ebp, 0x8(%rsp)
movslq %r15d, %r14
movq 0x30(%rsp), %r12
leaq (%r12,%r14), %rbp
movq %rdi, %r13
movl %edi, %esi
subl %r14d, %esi
movq %rbp, %rdi
callq 0xbca9
movl %eax, %r8d
movzbl (%r12,%r14), %eax
cmpl $0x5b, %eax
jg 0xb9b1
cmpl $0x28, %eax
je 0xba0a
cmpl $0x29, %eax
movq %r13, %rdi
movq 0x18(%rsp), %rax
jne 0xbae8
decl %eax
cltq
leaq (%rax,%rax,2), %rcx
cmpl $-0x1, 0x60(%rsp,%rcx,8)
movl 0xc(%rsp), %ecx
cmovnel %ecx, %eax
cltq
leaq (%rax,%rax,2), %rax
subl 0x58(%rsp,%rax,8), %ebp
movl %ebp, 0x60(%rsp,%rax,8)
testl %ecx, %ecx
jle 0xbc63
movl %ecx, %eax
decl %eax
movl %eax, 0xc(%rsp)
testl %r15d, %r15d
movl 0x8(%rsp), %ebp
jle 0xbaec
movl %r15d, %eax
movq 0x30(%rsp), %rcx
cmpb $0x28, -0x1(%rcx,%rax)
jne 0xbaec
jmp 0xbc56
cmpl $0x5c, %eax
je 0xba60
cmpl $0x7c, %eax
movq %r13, %rdi
jne 0xbae8
cmpl $0x63, %ebx
jg 0xbc73
movq 0x10(%rsp), %rdx
leal -0x1(%rdx), %eax
cltq
leaq (%rax,%rax,2), %rcx
cmpl $-0x1, 0x60(%rsp,%rcx,8)
cmovnel 0xc(%rsp), %eax
movslq %ebx, %rcx
shlq $0x4, %rcx
leaq 0x9c0(%rsp), %rsi
movl %eax, (%rsi,%rcx)
movq %rbp, 0x8(%rsi,%rcx)
incl %ebx
movq %rdx, 0x18(%rsp)
jmp 0xbae8
movq 0x18(%rsp), %rdx
cmpl $0x63, %edx
jg 0xbc6b
movq %r13, %rdi
incl 0xc(%rsp)
incq %rbp
leal 0x1(%rdx), %ecx
movslq %edx, %rax
leaq (%rax,%rax,2), %rax
movq %rbp, 0x58(%rsp,%rax,8)
movl $0xffffffff, 0x60(%rsp,%rax,8) # imm = 0xFFFFFFFF
movl 0x2c(%rsp), %eax
testl %eax, %eax
movq %rcx, 0x10(%rsp)
jle 0xbae3
cmpl %eax, %edx
movq %rcx, 0x18(%rsp)
movl 0x8(%rsp), %ebp
jle 0xbaec
jmp 0xbc7b
movl $0xfffffffa, %r14d      # imm = 0xFFFFFFFA
cmpl 0x28(%rsp), %r15d
jge 0xbc81
movzbl 0x1(%rbp), %esi
cmpl $0x78, %esi
jne 0xbabb
cmpl 0x24(%rsp), %r15d
jge 0xbc81
movl %r8d, %r12d
callq 0x22b0
movq (%rax), %rax
movsbq 0x2(%rbp), %rcx
testb $0x10, 0x1(%rax,%rcx,2)
je 0xbc81
movsbq 0x3(%rbp), %rcx
testb $0x10, 0x1(%rax,%rcx,2)
movl 0x8(%rsp), %ebp
movq %r13, %rdi
movl %r12d, %r8d
jne 0xbaec
jmp 0xbc81
movl $0x16, %edx
leaq 0x8d55(%rip), %rdi      # 0x1481c
movl %r8d, %ebp
callq 0x2120
movl %ebp, %r8d
testq %rax, %rax
movl 0x8(%rsp), %ebp
movq %r13, %rdi
jne 0xbaec
jmp 0xbc81
movq %rcx, 0x18(%rsp)
movl 0x8(%rsp), %ebp
addl %r8d, %r15d
cmpl %edi, %r15d
jl 0xb917
movq 0x10(%rsp), %rax
movl %eax, 0x9b8(%rsp)
movl %ebx, 0x1000(%rsp)
movl $0xfffffffd, %r14d      # imm = 0xFFFFFFFD
cmpl $0x0, 0xc(%rsp)
jne 0xbc81
testl %ebx, %ebx
jle 0xbc96
movl $0x1, %eax
leaq 0x9d0(%rsp), %rcx
xorl %edx, %edx
movq 0x10(%rsp), %r10
movq %rdx, %rsi
incq %rdx
movslq %ebx, %rdi
cmpq %rdi, %rdx
jge 0xbb8f
shlq $0x4, %rsi
leaq 0x9c0(%rsp), %rdi
addq %rdi, %rsi
movq %rcx, %rdi
movl %eax, %r8d
movl (%rsi), %r9d
cmpl (%rdi), %r9d
jle 0xbb80
movups (%rsi), %xmm0
movaps %xmm0, 0x40(%rsp)
movups (%rdi), %xmm0
movups %xmm0, (%rsi)
movaps 0x40(%rsp), %xmm0
movups %xmm0, (%rdi)
movl 0x1000(%rsp), %ebx
incl %r8d
addq $0x10, %rdi
cmpl %r8d, %ebx
jg 0xbb5b
movslq %ebx, %rdi
incl %eax
addq $0x10, %rcx
cmpq %rdi, %rdx
jl 0xbb38
jmp 0xbc9b
movl $0x1, %r10d
xorl %ebx, %ebx
movslq %ebx, %rax
movl %r10d, %ecx
xorl %edx, %edx
leaq 0x9c0(%rsp), %rsi
xorl %edi, %edi
leaq (%rdx,%rdx,2), %r8
movl $0x0, 0x68(%rsp,%r8,8)
movl %edi, 0x64(%rsp,%r8,8)
cmpl %ebx, %edi
jge 0xbc09
leaq (%rsp,%r8,8), %r8
addq $0x58, %r8
movslq %edi, %r9
movq %rax, %r10
subq %r9, %r10
shlq $0x4, %r9
addq %rsi, %r9
xorl %r11d, %r11d
movl (%r9), %r14d
cmpq %r14, %rdx
jne 0xbc06
incq %r11
movl %r11d, 0x10(%r8)
addq $0x10, %r9
cmpq %r11, %r10
jne 0xbbea
movl %ebx, %edi
jmp 0xbc09
addl %r11d, %edi
incq %rdx
cmpq %rcx, %rdx
jne 0xbbb9
testl %ebp, %ebp
js 0xbc56
leaq 0x58(%rsp), %r15
movq (%r15), %rax
movb (%rax), %bl
movl %ebp, %r12d
xorl %r13d, %r13d
movq 0x38(%rsp), %rax
leaq (%rax,%r13), %rdi
movl %ebp, %esi
movq %r15, %rdx
xorl %ecx, %ecx
callq 0xbd1f
movl %eax, %r14d
testl %eax, %eax
jns 0xbc5e
cmpb $0x5e, %bl
je 0xbc81
leaq 0x1(%r13), %rax
decl %ebp
cmpq %r12, %r13
movq %rax, %r13
jb 0xbc25
jmp 0xbc81
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
jmp 0xbc81
addl %r13d, %r14d
jmp 0xbc81
movl $0xfffffffd, %r14d      # imm = 0xFFFFFFFD
jmp 0xbc81
movl $0xfffffff7, %r14d      # imm = 0xFFFFFFF7
jmp 0xbc81
movl $0xfffffff8, %r14d      # imm = 0xFFFFFFF8
jmp 0xbc81
movl $0xfffffff9, %r14d      # imm = 0xFFFFFFF9
movl %r14d, %eax
addq $0x1018, %rsp           # imm = 0x1018
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x10(%rsp), %r10
testl %r10d, %r10d
jg 0xbba7
jmp 0xbc11