// File: /workspace/github_cpp_makefile_star2_O1/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 0x57a0
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
movq 0x18(%r14), %r15
leaq 0x8(%r14), %rbp
cmpq %rbp, %r15
je 0x2f1a
movq %rsp, %r12
leaq 0x18(%rsp), %r13
movb 0x20(%r15), %al
movb %al, 0x18(%rsp)
movq 0x8(%rsp), %rsi
cmpq 0x10(%rsp), %rsi
je 0x2eff
movb %al, (%rsi)
incq 0x8(%rsp)
jmp 0x2f0a
movq %r12, %rdi
movq %r13, %rdx
callq 0x5918
movq %r15, %rdi
callq 0x21b0
movq %rax, %r15
cmpq %rbp, %rax
jne 0x2ee2
movq 0x8(%rbx), %r12
testq %r12, %r12
je 0x32ab
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, %rcx
testq %rdx, %rdx
je 0x2f68
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 0x2f51
movq %rbp, %rdx
cmpq %rbp, %rcx
je 0x2f7a
cmpb 0x20(%rcx), %al
cmovlq %rbp, %rcx
movq %rcx, %rdx
cmpq %rbp, %rdx
setne %cl
cmpb $0x40, %al
sete %dl
orb %cl, %dl
cmpb $0x1, %dl
jne 0x2fc9
movsbl %al, %edx
movq %r13, %rdi
movq %rsp, %rsi
callq 0x2580
leaq 0x80(%rsp), %rdi
movq %r13, %rsi
callq 0x5a0a
movq 0x68(%rsp), %rdi
testq %rdi, %rdi
je 0x2fc1
movq 0x78(%rsp), %rsi
subq %rdi, %rsi
callq 0x2180
movq %r15, %rdi
jmp 0x3290
addl $-0x25, %eax
cmpl $0x9, %eax
ja 0x329f
leaq 0x4044(%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 0x5a0a
movq 0x68(%rsp), %rdi
testq %rdi, %rdi
jne 0x327e
jmp 0x328b
movq 0xb0(%rsp), %r15
cmpq 0xb8(%rsp), %r15
jne 0x303b
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 0x4b2a
leaq -0x48(%r15), %rsi
leaq 0x38(%rsp), %rdi
callq 0x4e56
addq $-0x18, %r15
leaq 0x68(%rsp), %rdi
movq %r15, %rsi
callq 0x4bc6
leaq 0x80(%rsp), %rdi
callq 0x5d52
movq 0xb0(%rsp), %rsi
cmpq 0xb8(%rsp), %rsi
jne 0x30a4
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 0x299d
leaq 0x80(%rsp), %r13
movq %r13, %rdi
callq 0x5d52
movq %r13, %rdi
movq %r15, %rsi
callq 0x5de4
jmp 0x3233
movq %r14, %r12
movq %r15, %r14
movq 0xb0(%rsp), %rsi
cmpq 0xb8(%rsp), %rsi
jne 0x3107
movq 0xc8(%rsp), %rax
movq -0x8(%rax), %rsi
movl $0x1a0, %eax            # imm = 0x1A0
addq %rax, %rsi
addq $-0x68, %rsi
movq %r13, %rdi
callq 0x2bc0
movq %r13, %r15
leaq 0x80(%rsp), %r13
movq %r13, %rdi
callq 0x5d52
movq %r13, %rdi
movq %r15, %rsi
callq 0x5de4
movq %r15, %r13
movq 0x68(%rsp), %rdi
testq %rdi, %rdi
movq %r14, %r15
je 0x314e
movq 0x78(%rsp), %rsi
subq %rdi, %rsi
callq 0x2180
leaq 0x38(%rsp), %rdi
callq 0x4850
leaq 0x20(%rsp), %rdi
callq 0x46ce
movq %r12, %r14
movq 0xd8(%rsp), %r12
jmp 0x329f
movq 0xb0(%rsp), %r15
cmpq 0xb8(%rsp), %r15
jne 0x3198
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 0x4b2a
leaq -0x48(%r15), %rsi
leaq 0x38(%rsp), %rdi
callq 0x4e56
addq $-0x18, %r15
leaq 0x68(%rsp), %rdi
movq %r15, %rsi
callq 0x4bc6
leaq 0x80(%rsp), %rdi
callq 0x5d52
movq 0xb0(%rsp), %rsi
cmpq 0xb8(%rsp), %rsi
jne 0x3201
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 0x2ca8
leaq 0x80(%rsp), %r13
movq %r13, %rdi
callq 0x5d52
movq %r13, %rdi
movq %r15, %rsi
callq 0x5de4
movq 0x130(%rsp), %rdi
testq %rdi, %rdi
leaq 0x38(%rsp), %r15
je 0x3255
movq 0x140(%rsp), %rsi
subq %rdi, %rsi
callq 0x2180
leaq 0x100(%rsp), %rdi
callq 0x4850
leaq 0xe8(%rsp), %rdi
callq 0x46ce
movq 0x68(%rsp), %rdi
testq %rdi, %rdi
leaq 0x18(%rsp), %r13
je 0x328b
movq 0x78(%rsp), %rsi
subq %rdi, %rsi
callq 0x2180
leaq 0x38(%rsp), %rdi
callq 0x4850
leaq 0x20(%rsp), %rdi
callq 0x46ce
incq %rbx
cmpq %r12, %rbx
jne 0x2f3f
movq 0xb0(%rsp), %rbx
cmpq 0xb8(%rsp), %rbx
jne 0x32ce
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 0x4b2a
leaq 0x20(%r12), %r15
leaq -0x48(%rbx), %rsi
movq %r15, %rdi
callq 0x4e56
leaq 0x50(%r12), %rdi
addq $-0x18, %rbx
movq %rbx, %rsi
callq 0x4bc6
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x3327
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x2180
leaq 0x80(%rsp), %rdi
callq 0x5026
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 0x4850
jmp 0x3359
movq %rax, %rbx
movq %r14, %rdi
jmp 0x339d
jmp 0x33a8
jmp 0x33ad
jmp 0x33a8
jmp 0x33ad
jmp 0x33a8
jmp 0x3372
jmp 0x33ad
jmp 0x3386
jmp 0x3395
jmp 0x33a8
movq %rax, %rbx
leaq 0xe0(%rsp), %rdi
callq 0x47c6
jmp 0x33b0
jmp 0x33ad
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x4850
jmp 0x3398
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x46ce
jmp 0x33ba
jmp 0x33a8
jmp 0x33a8
movq %rax, %rbx
jmp 0x33ba
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x47c6
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x33d0
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x2180
leaq 0x80(%rsp), %rdi
callq 0x5026
movq %rbx, %rdi
callq 0x2270