// File: /workspace/github_cpp_makefile_star2_O3/kage08[P]RegexLibrary/Resource.cpp
// Function: makeNFA(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::set<char, std::less<char>, std::allocator<char>>&)
NFA makeNFA(string& regex,set<char>& alpha){
  stack<NFA> stNFA;
  vector<char> alphac;
  for(char c:alpha)
    alphac.push_back(c);
  for(char c:regex){
    if(alpha.find(c)!=alpha.end() || c=='@')
      stNFA.push(NFA(alphac,c));
    else if(c=='%')
      stNFA.push(emptyLang(alphac));
    else if(c=='*'){
      NFA temp=Kleeny(stNFA.top());
      stNFA.pop();
      stNFA.push(temp);
    }
    else if(c=='.'){
      NFA temp=stNFA.top();
      stNFA.pop();
      NFA temp2=concat(stNFA.top(),temp);
      stNFA.pop();
      stNFA.push(temp2);
    }
    else if(c=='+'){
       NFA temp=stNFA.top();
      stNFA.pop();
      NFA temp2=(stNFA.top()+temp);
      stNFA.pop();
      stNFA.push(temp2);

    }
  }
  return stNFA.top();

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x148, %rsp            # imm = 0x148
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, 0xd0(%rsp)
xorps %xmm0, %xmm0
leaq 0x80(%rsp), %rdi
movaps %xmm0, 0x40(%rdi)
movaps %xmm0, 0x30(%rdi)
movaps %xmm0, 0x20(%rdi)
movaps %xmm0, 0x10(%rdi)
movaps %xmm0, (%rdi)
xorl %esi, %esi
callq 0x5758
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
movq 0x18(%r14), %r15
leaq 0x8(%r14), %rbp
cmpq %rbp, %r15
je 0x2f07
movq %rsp, %r12
leaq 0x18(%rsp), %r13
movb 0x20(%r15), %al
movb %al, 0x18(%rsp)
movq 0x8(%rsp), %rsi
cmpq 0x10(%rsp), %rsi
je 0x2eec
movb %al, (%rsi)
incq 0x8(%rsp)
jmp 0x2ef7
movq %r12, %rdi
movq %r13, %rdx
callq 0x58d0
movq %r15, %rdi
callq 0x21b0
movq %rax, %r15
cmpq %rbp, %rax
jne 0x2ecf
movq 0x8(%rbx), %r12
testq %r12, %r12
je 0x3298
movq (%rbx), %rbx
addq %rbx, %r12
leaq 0x38(%rsp), %r15
leaq 0x18(%rsp), %r13
movq %r12, 0xd8(%rsp)
movzbl (%rbx), %eax
movq 0x10(%r14), %rdx
movq %rbp, %rsi
testq %rdx, %rdx
je 0x2f67
movq %rbp, %rcx
xorl %esi, %esi
cmpb %al, 0x20(%rdx)
setl %sil
cmovgeq %rdx, %rcx
movq 0x10(%rdx,%rsi,8), %rdx
testq %rdx, %rdx
jne 0x2f3e
movq %rbp, %rsi
cmpq %rbp, %rcx
je 0x2f67
cmpb 0x20(%rcx), %al
cmovlq %rbp, %rcx
movq %rcx, %rsi
cmpq %rbp, %rsi
setne %cl
cmpb $0x40, %al
sete %dl
orb %cl, %dl
cmpb $0x1, %dl
jne 0x2fb6
movsbl %al, %edx
movq %r13, %rdi
movq %rsp, %rsi
callq 0x255e
leaq 0x80(%rsp), %rdi
movq %r13, %rsi
callq 0x59c2
movq 0x68(%rsp), %rdi
testq %rdi, %rdi
je 0x2fae
movq 0x78(%rsp), %rsi
subq %rdi, %rsi
callq 0x2180
movq %r15, %rdi
jmp 0x327d
addl $-0x25, %eax
cmpl $0x9, %eax
ja 0x328c
leaq 0x4057(%rip), %rcx      # 0x7020
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %r13, %rdi
xorl %esi, %esi
movq %rsp, %rdx
callq 0x243c
leaq 0x80(%rsp), %rdi
movq %r13, %rsi
callq 0x59c2
movq 0x68(%rsp), %rdi
testq %rdi, %rdi
jne 0x326b
jmp 0x3278
movq 0xb0(%rsp), %r15
cmpq 0xb8(%rsp), %r15
jne 0x3028
movq 0xc8(%rsp), %rax
movq -0x8(%rax), %r15
movl $0x1a0, %eax            # imm = 0x1A0
addq %rax, %r15
movq -0x68(%r15), %rax
movq %rax, 0x18(%rsp)
leaq -0x60(%r15), %rsi
leaq 0x20(%rsp), %rdi
callq 0x4ad2
leaq -0x48(%r15), %rsi
leaq 0x38(%rsp), %rdi
callq 0x4dfe
addq $-0x18, %r15
leaq 0x68(%rsp), %rdi
movq %r15, %rsi
callq 0x4b6e
leaq 0x80(%rsp), %rdi
callq 0x5cf2
movq 0xb0(%rsp), %rsi
cmpq 0xb8(%rsp), %rsi
jne 0x3091
movq 0xc8(%rsp), %rax
movq -0x8(%rax), %rsi
movl $0x1a0, %eax            # imm = 0x1A0
addq %rax, %rsi
addq $-0x68, %rsi
leaq 0xe0(%rsp), %r15
movq %r15, %rdi
movq %r13, %rdx
callq 0x2942
leaq 0x80(%rsp), %r13
movq %r13, %rdi
callq 0x5cf2
movq %r13, %rdi
movq %r15, %rsi
callq 0x5d84
jmp 0x3220
movq %r14, %r12
movq %r15, %r14
movq 0xb0(%rsp), %rsi
cmpq 0xb8(%rsp), %rsi
jne 0x30f4
movq 0xc8(%rsp), %rax
movq -0x8(%rax), %rsi
movl $0x1a0, %eax            # imm = 0x1A0
addq %rax, %rsi
addq $-0x68, %rsi
movq %r13, %rdi
callq 0x2b97
movq %r13, %r15
leaq 0x80(%rsp), %r13
movq %r13, %rdi
callq 0x5cf2
movq %r13, %rdi
movq %r15, %rsi
callq 0x5d84
movq %r15, %r13
movq 0x68(%rsp), %rdi
testq %rdi, %rdi
movq %r14, %r15
je 0x313b
movq 0x78(%rsp), %rsi
subq %rdi, %rsi
callq 0x2180
leaq 0x38(%rsp), %rdi
callq 0x47fa
leaq 0x20(%rsp), %rdi
callq 0x4664
movq %r12, %r14
movq 0xd8(%rsp), %r12
jmp 0x328c
movq 0xb0(%rsp), %r15
cmpq 0xb8(%rsp), %r15
jne 0x3185
movq 0xc8(%rsp), %rax
movq -0x8(%rax), %r15
movl $0x1a0, %eax            # imm = 0x1A0
addq %rax, %r15
movq -0x68(%r15), %rax
movq %rax, 0x18(%rsp)
leaq -0x60(%r15), %rsi
leaq 0x20(%rsp), %rdi
callq 0x4ad2
leaq -0x48(%r15), %rsi
leaq 0x38(%rsp), %rdi
callq 0x4dfe
addq $-0x18, %r15
leaq 0x68(%rsp), %rdi
movq %r15, %rsi
callq 0x4b6e
leaq 0x80(%rsp), %rdi
callq 0x5cf2
movq 0xb0(%rsp), %rsi
cmpq 0xb8(%rsp), %rsi
jne 0x31ee
movq 0xc8(%rsp), %rax
movq -0x8(%rax), %rsi
movl $0x1a0, %eax            # imm = 0x1A0
addq %rax, %rsi
addq $-0x68, %rsi
leaq 0xe0(%rsp), %r15
movq %r15, %rdi
movq %r13, %rdx
callq 0x2c7f
leaq 0x80(%rsp), %r13
movq %r13, %rdi
callq 0x5cf2
movq %r13, %rdi
movq %r15, %rsi
callq 0x5d84
movq 0x130(%rsp), %rdi
testq %rdi, %rdi
leaq 0x38(%rsp), %r15
je 0x3242
movq 0x140(%rsp), %rsi
subq %rdi, %rsi
callq 0x2180
leaq 0x100(%rsp), %rdi
callq 0x47fa
leaq 0xe8(%rsp), %rdi
callq 0x4664
movq 0x68(%rsp), %rdi
testq %rdi, %rdi
leaq 0x18(%rsp), %r13
je 0x3278
movq 0x78(%rsp), %rsi
subq %rdi, %rsi
callq 0x2180
leaq 0x38(%rsp), %rdi
callq 0x47fa
leaq 0x20(%rsp), %rdi
callq 0x4664
incq %rbx
cmpq %r12, %rbx
jne 0x2f2c
movq 0xb0(%rsp), %rbx
cmpq 0xb8(%rsp), %rbx
jne 0x32bb
movq 0xc8(%rsp), %rax
movl $0x1a0, %ebx            # imm = 0x1A0
addq -0x8(%rax), %rbx
movq -0x68(%rbx), %rax
movq 0xd0(%rsp), %r12
movq %rax, (%r12)
leaq 0x8(%r12), %r14
leaq -0x60(%rbx), %rsi
movq %r14, %rdi
callq 0x4ad2
leaq 0x20(%r12), %r15
leaq -0x48(%rbx), %rsi
movq %r15, %rdi
callq 0x4dfe
leaq 0x50(%r12), %rdi
addq $-0x18, %rbx
movq %rbx, %rsi
callq 0x4b6e
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x3314
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x2180
leaq 0x80(%rsp), %rdi
callq 0x4fce
movq %r12, %rax
addq $0x148, %rsp            # imm = 0x148
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq %r15, %rdi
callq 0x47fa
jmp 0x3346
movq %rax, %rbx
movq %r14, %rdi
jmp 0x338a
jmp 0x3395
jmp 0x339a
jmp 0x3395
jmp 0x339a
jmp 0x3395
jmp 0x335f
jmp 0x339a
jmp 0x3373
jmp 0x3382
jmp 0x3395
movq %rax, %rbx
leaq 0xe0(%rsp), %rdi
callq 0x4770
jmp 0x339d
jmp 0x339a
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x47fa
jmp 0x3385
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x4664
jmp 0x33a7
jmp 0x3395
jmp 0x3395
movq %rax, %rbx
jmp 0x33a7
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x4770
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x33bd
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x2180
leaq 0x80(%rsp), %rdi
callq 0x4fce
movq %rbx, %rdi
callq 0x2270