// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/external/lpeg-0.10.2/lpeg.c
// Function: matchl
static int matchl (lua_State *L) {
  Capture capture[INITCAPSIZE];
  const char *r;
  size_t l;
  Instruction *p = getpatt(L, 1, NULL);
  const char *s = luaL_checklstring(L, SUBJIDX, &l);
  int ptop = lua_gettop(L);
  lua_Integer ii = luaL_optinteger(L, 3, 1);
  size_t i = (ii > 0) ?
             (((size_t)ii <= l) ? (size_t)ii - 1 : l) :
             (((size_t)-ii <= l) ? l - ((size_t)-ii) : 0);
  lua_pushnil(L);  /* subscache */
  lua_pushlightuserdata(L, capture);  /* caplistidx */
  lua_getfenv(L, 1);  /* penvidx */
  r = match(L, s, s + i, s + l, p, capture, ptop);
  if (r == NULL) {
    lua_pushnil(L);
    return 1;
  }
  return getcaptures(L, s, r, ptop);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc08, %rsp            # imm = 0xC08
movq %rdi, %r14
movl $0x1, %esi
xorl %edx, %edx
callq 0x23dd8d
movq %rax, %r12
leaq 0x48(%rsp), %rdx
movq %r14, %rdi
movl $0x2, %esi
callq 0x22708d
movq %rax, 0x10(%rsp)
movq %r14, %rdi
callq 0x2235ac
movq %rax, 0x20(%rsp)
movl $0x1, %edx
movq %r14, %rdi
movl $0x3, %esi
callq 0x227333
testq %rax, %rax
jle 0x23fa40
movq 0x48(%rsp), %rcx
leaq -0x1(%rax), %rbp
cmpq %rcx, %rax
cmovaq %rcx, %rbp
jmp 0x23fa55
movq 0x48(%rsp), %rcx
leaq (%rcx,%rax), %rdx
negq %rax
xorl %ebp, %ebp
cmpq %rax, %rcx
cmovaeq %rdx, %rbp
movq %r14, %rdi
callq 0x2241b4
leaq 0xa00(%rsp), %r13
movq %r14, %rdi
movq %r13, %rsi
callq 0x2248bd
movq %r14, %rdi
movl $0x1, %esi
callq 0x224d0c
movq 0x10(%rsp), %rax
addq %rax, %rbp
movq 0x48(%rsp), %rcx
movq %rcx, 0x60(%rsp)
addq %rcx, %rax
movq %rax, 0x28(%rsp)
leaq 0xa00(%rsp), %rax
leaq 0x40(%rsp), %rcx
movq %rax, (%rcx)
leaq 0x189b3a(%rip), %rcx    # 0x3c95e8
movq %rcx, -0x958(%rax)
movq %rbp, -0x960(%rax)
movl $0x0, -0x950(%rax)
leaq 0xb8(%rsp), %r15
leaq 0xa0(%rsp), %rsi
movq %r14, %rdi
callq 0x2248bd
movq 0x20(%rsp), %rcx
leal 0x3(%rcx), %eax
movl %eax, 0x38(%rsp)
leal 0x4(%rcx), %eax
movl %eax, 0x4(%rsp)
movl $0x20, 0xc(%rsp)
xorl %ebx, %ebx
movq %r14, 0x50(%rsp)
movzbl (%r12), %eax
cmpq $0x17, %rax
ja 0x2403c9
leaq 0x1899da(%rip), %rcx    # 0x3c94f0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movslq %ebx, %rax
jmp 0x240020
movslq %ebx, %rax
xorl %ecx, %ecx
jmp 0x240022
testl %ebx, %ebx
jle 0x240358
leal -0x1(%rbx), %eax
shlq $0x4, %rax
cmpb $0x0, 0xb(%r13,%rax)
jne 0x24001e
movzbl 0x1(%r12), %edx
shrl $0x4, %edx
movq %rbp, %rcx
subq %rdx, %rcx
addq %r13, %rax
subq (%rax), %rcx
cmpq $0xff, %rcx
jge 0x24001e
incb %cl
movb %cl, 0xb(%rax)
jmp 0x24007c
cmpq 0x40(%rsp), %r15
jne 0x23fb94
movq %r14, %rdi
leaq 0x40(%rsp), %rsi
movq 0x20(%rsp), %rdx
callq 0x2411a3
movq %rax, %r15
movq $0x0, (%r15)
leaq 0x8(%r12), %rax
movq %rax, 0x8(%r15)
addq $0x18, %r15
jmp 0x23fda7
movq 0x28(%rsp), %rax
cmpq %rax, %rbp
jae 0x23fbde
subq %rbp, %rax
movzbl (%rbp), %ecx
movl %ecx, %edx
shrl $0x3, %edx
movzbl 0x8(%r12,%rdx), %edx
andl $0x7, %ecx
btl %ecx, %edx
jae 0x23fbde
incq %rbp
decq %rax
jne 0x23fbba
movq 0x28(%rsp), %rbp
addq $0x28, %r12
jmp 0x23fb00
leaq 0x10(%r12), %rcx
movq %rbp, %rdi
movq 0x28(%rsp), %rsi
movq 0x10(%rsp), %rdx
callq *0x8(%r12)
testq %rax, %rax
je 0x240091
movzbl 0x1(%r12), %ecx
addq $0x2, %rcx
movq %rax, %rbp
jmp 0x2400a0
movq %r14, %rdi
movl 0x4(%rsp), %esi
callq 0x224118
cmpq %rax, %r15
jbe 0x2402dc
cmpq $0x0, -0x18(%r15)
jne 0x23fd4c
jmp 0x2402dc
movb (%rbp), %al
cmpb 0x1(%r12), %al
sete %al
cmpq 0x28(%rsp), %rbp
setb %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x23fca5
addq $0x8, %r12
incq %rbp
jmp 0x23fb00
movzbl (%rbp), %eax
movl %eax, %ecx
shrl $0x3, %ecx
movzbl 0x8(%r12,%rcx), %ecx
andl $0x7, %eax
btl %eax, %ecx
jae 0x23fca5
cmpq 0x28(%rsp), %rbp
jae 0x23fca5
addq $0x28, %r12
incq %rbp
jmp 0x23fb00
movzbl 0x1(%r12), %eax
movq 0x28(%rsp), %rcx
subq %rbp, %rcx
cmpq %rax, %rcx
jge 0x240085
movswq 0x2(%r12), %rax
leaq (%r12,%rax,8), %r12
testq %rax, %rax
jne 0x23fb00
jmp 0x23fde1
cmpq 0x40(%rsp), %r15
jne 0x23fcd9
movq %r14, %rdi
leaq 0x40(%rsp), %rsi
movq 0x20(%rsp), %rdx
callq 0x2411a3
movq %rax, %r15
movswq 0x2(%r12), %rax
leaq (%r12,%rax,8), %rax
movq %rax, 0x8(%r15)
movzbl 0x1(%r12), %eax
movq %rbp, %rcx
subq %rax, %rcx
movq %rcx, (%r15)
movl %ebx, 0x10(%r15)
addq $0x18, %r15
jmp 0x24007c
movzbl 0x1(%r12), %eax
movq %rbp, %rcx
subq 0x10(%rsp), %rcx
subq %rax, %rbp
addq $0x8, %r12
cmpq %rax, %rcx
jge 0x23fb00
jmp 0x23fde1
movq %r14, %rdi
movl 0x4(%rsp), %esi
callq 0x224118
cmpq %rax, %r15
jbe 0x2402fb
movq -0x18(%r15), %rbp
testq %rbp, %rbp
je 0x2402fb
movl -0x8(%r15), %ebx
addq $-0x18, %r15
jmp 0x23fda7
movq %r14, %rdi
movl 0x4(%rsp), %esi
callq 0x224118
cmpq %rax, %r15
jbe 0x2402bd
cmpq $0x0, -0x18(%r15)
jne 0x2402bd
movq -0x10(%r15), %r12
addq $-0x18, %r15
jmp 0x23fb00
movq %r14, %rdi
movl 0x4(%rsp), %esi
callq 0x224118
cmpq %rax, %r15
jbe 0x24029e
cmpq $0x0, -0x18(%r15)
je 0x24029e
movq %rbp, -0x18(%r15)
movl %ebx, -0x8(%r15)
movswq 0x2(%r12), %rax
leaq (%r12,%rax,8), %r12
jmp 0x23fb00
movb 0x1(%r12), %cl
shrb $0x4, %cl
incb %cl
movslq %ebx, %rax
jmp 0x240022
movq %r14, %rdi
movl 0x4(%rsp), %esi
callq 0x224118
cmpq %rax, %r15
jbe 0x240339
addq $-0x18, %r15
movl 0x4(%rsp), %r12d
movq %r14, %rdi
movl %r12d, %esi
callq 0x224118
cmpq %rax, %r15
jbe 0x24027f
movq -0x18(%r15), %rbp
addq $-0x18, %r15
testq %rbp, %rbp
je 0x23fde6
movl 0x10(%r15), %ebx
movq 0x8(%r15), %r12
jmp 0x23fb00
movq %r12, 0x68(%rsp)
movq %r14, %rdi
callq 0x2235ac
movl %eax, %r12d
movq %rbx, 0x58(%rsp)
movslq %ebx, %rcx
shlq $0x4, %rcx
leaq (%rcx,%r13), %rax
movq %r13, 0x18(%rsp)
addq %r13, %rcx
addq $0x10, %rcx
xorl %edx, %edx
movq %rax, %r14
movq %rax, %rbx
subq %r14, %rbx
movq %rcx, %r8
subq %r14, %r8
movq %r14, %rsi
movb -0x6(%r14), %dil
testb %dil, %dil
je 0x23fe79
movq %r8, %r13
leaq -0x10(%rsi), %r14
addq $0x10, %rbx
addq $0x10, %r8
cmpb $0x0, -0x5(%rsi)
jne 0x23fe51
subl $0x1, %edx
jae 0x23fe7b
jmp 0x23fe84
incl %edx
addq $-0x10, %rsi
movq %rsi, %r14
jmp 0x23fe45
cmpb $0xc, %dil
jne 0x240377
leal 0x1(%r12), %ecx
movl %ecx, 0x8(%rsp)
movb $0x0, 0xa(%rax)
movq %rbp, (%rax)
movq 0x18(%rsp), %rax
movq %rax, 0x78(%rsp)
movq %r14, 0x70(%rsp)
movq 0x50(%rsp), %rdi
movq %rdi, 0x80(%rsp)
movq 0x10(%rsp), %rax
movq %rax, 0x90(%rsp)
movl $0x0, 0x98(%rsp)
movq 0x20(%rsp), %rax
movl %eax, 0x88(%rsp)
movl $0x4, %esi
leaq 0x189eb3(%rip), %rdx    # 0x3c9d9d
callq 0x2271b2
movswl 0x8(%r14), %edx
movq 0x50(%rsp), %r14
movq %r14, %rdi
movl 0x38(%rsp), %esi
callq 0x224b36
movq %r14, %rdi
movl $0x2, %esi
callq 0x223a2b
subq 0x10(%rsp), %rbp
leaq 0x1(%rbp), %rsi
movq %r14, %rdi
callq 0x2241dd
leaq 0x70(%rsp), %rdi
xorl %esi, %esi
callq 0x2412fa
leal 0x2(%rax), %esi
movq %r14, %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2252cf
movq %r14, %rdi
movl 0x8(%rsp), %esi
callq 0x223e53
movq %rax, 0x30(%rsp)
movq %r14, %rdi
callq 0x2235ac
movq 0x30(%rsp), %rdx
movl %eax, 0x3c(%rsp)
subq $0x1, %rdx
jae 0x23ff95
movq %r14, %rdi
movl 0x8(%rsp), %esi
callq 0x223e82
movq %r14, %rdi
testl %eax, %eax
je 0x24017e
movl 0x8(%rsp), %esi
callq 0x223a4b
cmpl $0x1, %eax
movq $-0x1, %rdx
cmoveq %rbp, %rdx
cmpq %rbp, %rdx
setge %al
cmpq 0x60(%rsp), %rdx
setle %cl
testb %cl, %al
jne 0x23ffbe
movq %r14, %rdi
leaq 0x189d22(%rip), %rsi    # 0x3c9cd3
xorl %eax, %eax
movq %rdx, %rbp
callq 0x226e43
movq %rbp, %rdx
shrq $0x4, %rbx
movl 0x3c(%rsp), %eax
movl %eax, %ebp
movl 0x8(%rsp), %esi
subl %esi, %ebp
addq 0x10(%rsp), %rdx
movq %rdx, 0x30(%rsp)
movq 0x58(%rsp), %rax
subl %ebx, %eax
movq %rax, %rbx
movq %r14, %rdi
callq 0x223710
testl %ebp, %ebp
jle 0x2400a9
addl %ebp, %ebx
incl %ebx
cmpl 0xc(%rsp), %ebx
movq %rbx, %rdx
movq 0x20(%rsp), %rcx
jge 0x2400b3
movq 0x18(%rsp), %rax
movl 0x8(%rsp), %esi
movq 0x30(%rsp), %r9
movq %rdx, %rbx
jmp 0x2400d3
movl %ebx, %eax
movb $0x1, %cl
shlq $0x4, %rax
movb %cl, 0xb(%r13,%rax)
movzbl 0x1(%r12), %ecx
shrl $0x4, %ecx
movq %rbp, %rdx
subq %rcx, %rdx
movq %rdx, (%r13,%rax)
movzwl 0x2(%r12), %ecx
movw %cx, 0x8(%r13,%rax)
movb 0x1(%r12), %cl
andb $0xf, %cl
movb %cl, 0xa(%r13,%rax)
incl %ebx
cmpl 0xc(%rsp), %ebx
jl 0x24007c
movq %r14, %rdi
movq %r13, %rsi
movl %ebx, %edx
movq 0x20(%rsp), %rcx
callq 0x24128b
movq %rax, %r13
leal (%rbx,%rbx), %eax
movl %eax, 0xc(%rsp)
addq $0x8, %r12
jmp 0x23fb00
addq $0x8, %r12
addq %rax, %rbp
jmp 0x23fb00
movswq 0x2(%r12), %rcx
testq %rcx, %rcx
je 0x23fde1
leaq (%r12,%rcx,8), %r12
jmp 0x23fb00
movq 0x30(%rsp), %r9
jmp 0x240168
movq %r14, %rdi
movq 0x18(%rsp), %rsi
movq %rdx, %rbx
callq 0x24128b
leal (%rbx,%rbx), %ecx
movl %ecx, 0xc(%rsp)
movl 0x8(%rsp), %esi
movq 0x30(%rsp), %r9
movslq %ebx, %r8
shlq $0x4, %r8
movq %rax, 0x18(%rsp)
addq %rax, %r8
movl %ebp, %edx
movq %rdx, %rcx
shlq $0x4, %rcx
subq %rcx, %r8
cmpb $0xc, -0x6(%r8)
jne 0x24031a
cmpb $0x0, -0x5(%r8)
jne 0x24031a
movw %si, -0x8(%r8)
cmpl $0x1, %ebp
je 0x240158
decq %rdx
movq 0x18(%rsp), %rsi
subq %rcx, %rsi
movl 0x3c(%rsp), %eax
addl 0x58(%rsp), %eax
subl %r12d, %eax
addl $0x2, %r12d
shrq $0x4, %r13
subl %r13d, %eax
movslq %eax, %rdi
shlq $0x4, %rdi
addq %rdi, %rsi
addq $0xb, %rsi
movq %r9, -0xb(%rsi)
movw $0x10c, -0x1(%rsi)      # imm = 0x10C
movw %r12w, -0x3(%rsi)
incl %r12d
addq $0x10, %rsi
decq %rdx
jne 0x24013d
addq $-0x10, %r8
movw $0x100, 0xa(%r8,%rcx)   # imm = 0x100
movq %r9, (%r8,%rcx)
movq 0x68(%rsp), %r12
addq $0x8, %r12
movq %r9, %rbp
movq 0x18(%rsp), %r13
jmp 0x23fb00
movl %r12d, %esi
callq 0x2235b9
movq 0x18(%rsp), %r13
jmp 0x23fde1
movq %r14, %rdi
movl 0x4(%rsp), %esi
callq 0x224118
addq $0x18, %rax
cmpq %rax, %r15
jne 0x2403e8
movslq %ebx, %rax
shlq $0x4, %rax
movb $0x0, 0xa(%r13,%rax)
movq $0x0, (%r13,%rax)
testq %rbp, %rbp
je 0x24025c
movq 0x20(%rsp), %rbx
movl %ebx, %esi
addl $0x2, %esi
movq %r14, %rdi
callq 0x224118
cmpb $0x0, 0xa(%rax)
movq %r14, %rdi
je 0x240235
leaq 0xa0(%rsp), %r15
movq %rax, (%r15)
movq %rax, 0x8(%r15)
movq %rbx, %rcx
movq %rdi, %rbx
movq %rdi, 0x10(%r15)
movq 0x10(%rsp), %rax
movq %rax, 0x20(%r15)
movl $0x0, 0x28(%r15)
movl %ecx, 0x18(%r15)
xorl %r14d, %r14d
movq %r15, %rdi
callq 0x24138d
addl %eax, %r14d
movq 0xa0(%rsp), %rax
cmpb $0x0, 0xa(%rax)
jne 0x240214
testl %r14d, %r14d
movq %rbx, %rdi
jne 0x24026a
subq 0x10(%rsp), %rbp
incq %rbp
movq %rbp, %rsi
callq 0x2241dd
jmp 0x240264
movq %r14, %rdi
movl 0x4(%rsp), %esi
callq 0x224118
cmpq %rax, %r15
jne 0x240407
movq %r14, %rdi
callq 0x2241b4
movl $0x1, %r14d
movl %r14d, %eax
addq $0xc08, %rsp            # imm = 0xC08
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x189a2f(%rip), %rdi    # 0x3c9cb5
leaq 0x189455(%rip), %rsi    # 0x3c96e2
leaq 0x18992a(%rip), %rcx    # 0x3c9bbe
movl $0x231, %edx            # imm = 0x231
callq 0x174d0
leaq 0x1899d8(%rip), %rdi    # 0x3c9c7d
leaq 0x189436(%rip), %rsi    # 0x3c96e2
leaq 0x18990b(%rip), %rcx    # 0x3c9bbe
movl $0x21d, %edx            # imm = 0x21D
callq 0x174d0
leaq 0x189981(%rip), %rdi    # 0x3c9c45
leaq 0x189417(%rip), %rsi    # 0x3c96e2
leaq 0x1898ec(%rip), %rcx    # 0x3c9bbe
movl $0x1d5, %edx            # imm = 0x1D5
callq 0x174d0
leaq 0x18999a(%rip), %rdi    # 0x3c9c7d
leaq 0x1893f8(%rip), %rsi    # 0x3c96e2
leaq 0x1898cd(%rip), %rcx    # 0x3c9bbe
movl $0x217, %edx            # imm = 0x217
callq 0x174d0
leaq 0x18997b(%rip), %rdi    # 0x3c9c7d
leaq 0x1893d9(%rip), %rsi    # 0x3c96e2
leaq 0x1898ae(%rip), %rcx    # 0x3c9bbe
movl $0x224, %edx            # imm = 0x224
callq 0x174d0
leaq 0x189b64(%rip), %rdi    # 0x3c9e85
leaq 0x1893ba(%rip), %rsi    # 0x3c96e2
leaq 0x189b83(%rip), %rcx    # 0x3c9eb2
movl $0x1a8, %edx            # imm = 0x1A8
callq 0x174d0
leaq 0x189975(%rip), %rdi    # 0x3c9cb5
leaq 0x18939b(%rip), %rsi    # 0x3c96e2
leaq 0x189870(%rip), %rcx    # 0x3c9bbe
movl $0x22b, %edx            # imm = 0x22B
callq 0x174d0
leaq 0x1899a4(%rip), %rdi    # 0x3c9d03
leaq 0x18937c(%rip), %rsi    # 0x3c96e2
leaq 0x189851(%rip), %rcx    # 0x3c9bbe
movl $0x256, %edx            # imm = 0x256
callq 0x174d0
leaq 0x1899b2(%rip), %rdi    # 0x3c9d30
leaq 0x18935d(%rip), %rsi    # 0x3c96e2
leaq 0x1899be(%rip), %rcx    # 0x3c9d4a
movl $0x7f2, %edx            # imm = 0x7F2
callq 0x174d0
movswl 0x2(%r12), %edx
movq %r14, %rdi
movl 0x38(%rsp), %esi
callq 0x224b36
movq %r14, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x23eba6
leaq 0x189952(%rip), %rsi    # 0x3c9d0e
movq %r14, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x226e43
leaq 0x12e60d(%rip), %rdi    # 0x36e9dd
leaq 0x18930b(%rip), %rsi    # 0x3c96e2
leaq 0x1897e0(%rip), %rcx    # 0x3c9bbe
movl $0x279, %edx            # imm = 0x279
callq 0x174d0
leaq 0x1897ac(%rip), %rdi    # 0x3c9b9b
leaq 0x1892ec(%rip), %rsi    # 0x3c96e2
leaq 0x1897c1(%rip), %rcx    # 0x3c9bbe
movl $0x1cb, %edx            # imm = 0x1CB
callq 0x174d0
leaq 0x189818(%rip), %rdi    # 0x3c9c26
leaq 0x1892cd(%rip), %rsi    # 0x3c96e2
leaq 0x1897a2(%rip), %rcx    # 0x3c9bbe
movl $0x1d1, %edx            # imm = 0x1D1
callq 0x174d0