// File: /workspace/github_c_makefile_star2_O0/mattn[P]orelang/slre.c
// Function: match_op
static int match_op(const unsigned char *re, const unsigned char *s,
                    struct regex_info *info) {
  int result = 0;
  switch (*re) {
    case '\\':
      /* Metacharacters */
      switch (re[1]) {
        case 'S': FAIL_IF(isspace(*s), SLRE_NO_MATCH); result++; break;
        case 's': FAIL_IF(!isspace(*s), SLRE_NO_MATCH); result++; break;
        case 'd': FAIL_IF(!isdigit(*s), SLRE_NO_MATCH); result++; break;
        case 'b': FAIL_IF(*s != '\b', SLRE_NO_MATCH); result++; break;
        case 'f': FAIL_IF(*s != '\f', SLRE_NO_MATCH); result++; break;
        case 'n': FAIL_IF(*s != '\n', SLRE_NO_MATCH); result++; break;
        case 'r': FAIL_IF(*s != '\r', SLRE_NO_MATCH); result++; break;
        case 't': FAIL_IF(*s != '\t', SLRE_NO_MATCH); result++; break;
        case 'v': FAIL_IF(*s != '\v', SLRE_NO_MATCH); result++; break;

        case 'x':
          /* Match byte, \xHH where HH is hexadecimal byte representaion */
          FAIL_IF(hextoi(re + 2) != *s, SLRE_NO_MATCH);
          result++;
          break;

        default:
          /* Valid metacharacter check is done in bar() */
          FAIL_IF(re[1] != s[0], SLRE_NO_MATCH);
          result++;
          break;
      }
      break;

    case '|': FAIL_IF(1, SLRE_INTERNAL_ERROR); break;
    case '$': FAIL_IF(1, SLRE_NO_MATCH); break;
    case '.': result++; break;

    default:
      if (info->flags & SLRE_IGNORE_CASE) {
        FAIL_IF(tolower(*re) != tolower(*s), SLRE_NO_MATCH);
      } else {
        FAIL_IF(*re != *s, SLRE_NO_MATCH);
      }
      result++;
      break;
  }

  return result;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movl $0x0, -0x24(%rbp)
movq -0x10(%rbp), %rax
movzbl (%rax), %eax
movl %eax, -0x28(%rbp)
subl $0x24, %eax
je 0xfe3b
jmp 0xfbf0
movl -0x28(%rbp), %eax
subl $0x2e, %eax
je 0xfe44
jmp 0xfbfe
movl -0x28(%rbp), %eax
subl $0x5c, %eax
je 0xfc19
jmp 0xfc08
movl -0x28(%rbp), %eax
subl $0x7c, %eax
je 0xfe2f
jmp 0xfe4f
movq -0x10(%rbp), %rax
movzbl 0x1(%rax), %eax
addl $-0x53, %eax
movl %eax, %ecx
movq %rcx, -0x30(%rbp)
subl $0x25, %eax
ja 0xfe02
movq -0x30(%rbp), %rax
leaq 0xacaa(%rip), %rcx      # 0x1a8e8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
callq 0x2270
movq (%rax), %rax
movq -0x18(%rbp), %rcx
movzbl (%rcx), %ecx
movslq %ecx, %rcx
movzwl (%rax,%rcx,2), %eax
andl $0x2000, %eax           # imm = 0x2000
cmpl $0x0, %eax
je 0xfc73
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0xfebc
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0xfe2a
callq 0x2270
movq (%rax), %rax
movq -0x18(%rbp), %rcx
movzbl (%rcx), %ecx
movslq %ecx, %rcx
movzwl (%rax,%rcx,2), %eax
andl $0x2000, %eax           # imm = 0x2000
cmpl $0x0, %eax
jne 0xfcad
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0xfebc
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0xfe2a
callq 0x2270
movq (%rax), %rax
movq -0x18(%rbp), %rcx
movzbl (%rcx), %ecx
movslq %ecx, %rcx
movzwl (%rax,%rcx,2), %eax
andl $0x800, %eax            # imm = 0x800
cmpl $0x0, %eax
jne 0xfce7
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0xfebc
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0xfe2a
movq -0x18(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x8, %eax
je 0xfd0d
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0xfebc
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0xfe2a
movq -0x18(%rbp), %rax
movzbl (%rax), %eax
cmpl $0xc, %eax
je 0xfd33
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0xfebc
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0xfe2a
movq -0x18(%rbp), %rax
movzbl (%rax), %eax
cmpl $0xa, %eax
je 0xfd59
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0xfebc
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0xfe2a
movq -0x18(%rbp), %rax
movzbl (%rax), %eax
cmpl $0xd, %eax
je 0xfd7f
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0xfebc
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0xfe2a
movq -0x18(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x9, %eax
je 0xfda5
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0xfebc
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0xfe2a
movq -0x18(%rbp), %rax
movzbl (%rax), %eax
cmpl $0xb, %eax
je 0xfdc8
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0xfebc
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0xfe2a
movq -0x10(%rbp), %rdi
addq $0x2, %rdi
callq 0xfed0
movq -0x18(%rbp), %rcx
movzbl (%rcx), %ecx
cmpl %ecx, %eax
je 0xfdf7
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0xfebc
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0xfe2a
movq -0x10(%rbp), %rax
movzbl 0x1(%rax), %eax
movq -0x18(%rbp), %rcx
movzbl (%rcx), %ecx
cmpl %ecx, %eax
je 0xfe21
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0xfebc
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0xfeb6
movl $0xfffffffc, -0x4(%rbp) # imm = 0xFFFFFFFC
jmp 0xfebc
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0xfebc
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0xfeb6
movq -0x20(%rbp), %rax
movl 0xfbc(%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0xfe90
movq -0x10(%rbp), %rax
movzbl (%rax), %edi
callq 0x2180
movl %eax, -0x34(%rbp)
movq -0x18(%rbp), %rax
movzbl (%rax), %edi
callq 0x2180
movl %eax, %ecx
movl -0x34(%rbp), %eax
cmpl %ecx, %eax
je 0xfe8e
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0xfebc
jmp 0xfead
movq -0x10(%rbp), %rax
movzbl (%rax), %eax
movq -0x18(%rbp), %rcx
movzbl (%rcx), %ecx
cmpl %ecx, %eax
je 0xfeab
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0xfebc
jmp 0xfead
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
movl -0x24(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)