// File: /workspace/github_cpp_makefile_star2_O3/kage08[P]RegexLibrary/Resource.cpp
// Function: operator+(NFA&, NFA&)
NFA operator+(NFA& A, NFA& B){
  NFA C(A.noStates+B.noStates+1,A.alphabet);
  C.addTransition(0,1,'@');
  for(uLong i=0;i<A.noStates;i++){
    for(auto pb: A.Trans[i])
      C.addTransition(i+1,pb.second+1,pb.first);
  }
  C.addTransition(0,A.noStates+1,'@');
  for(uLong i=0;i<B.noStates;i++){
    for(auto pb: B.Trans[i])
      C.addTransition(i+A.noStates+1,pb.second+A.noStates+1,pb.first);
  }
  for(uLong f:A.acceptStates)
    C.acceptStates.insert(f+1);
  for(uLong f: B.acceptStates)
    C.acceptStates.insert(f+1+A.noStates);
  return C;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r8
movq %rdi, %rbx
movq (%rsi), %rax
movq %rdx, 0x20(%rsp)
movq (%rdx), %rcx
leaq (%rax,%rcx), %rsi
incq %rsi
movq %r8, 0x8(%rsp)
leaq 0x50(%r8), %rdx
callq 0x243c
movq 0x8(%rbx), %rdi
leaq 0x10(%rsp), %rsi
movb $0x40, (%rsi)
movq $0x1, 0x8(%rsi)
callq 0x5530
movq 0x8(%rsp), %rax
movq (%rax), %rax
testq %rax, %rax
je 0x2a19
xorl %ebp, %ebp
leaq 0x10(%rsp), %r12
movq 0x8(%rsp), %rcx
movq 0x8(%rcx), %rcx
leaq (,%rbp,2), %r14
addq %rbp, %r14
shlq $0x4, %r14
leaq (%rcx,%r14), %r15
addq $0x8, %r15
movq 0x10(%r15), %r13
cmpq %r15, %r13
je 0x2a0c
movb 0x20(%r13), %al
movq 0x28(%r13), %rcx
incq %rcx
movq 0x8(%rbx), %rdx
leaq (%rdx,%r14), %rdi
addq $0x30, %rdi
movb %al, 0x10(%rsp)
movq %rcx, 0x18(%rsp)
movq %r12, %rsi
callq 0x5530
movq %r13, %rdi
callq 0x21b0
movq %rax, %r13
cmpq %r15, %rax
jne 0x29cc
movq 0x8(%rsp), %rax
movq (%rax), %rax
incq %rbp
cmpq %rax, %rbp
jb 0x29a3
incq %rax
jmp 0x2a1e
movl $0x1, %eax
movq 0x8(%rbx), %rdi
leaq 0x10(%rsp), %rsi
movb $0x40, (%rsi)
movq %rax, 0x8(%rsi)
callq 0x5530
movq 0x20(%rsp), %rax
movq (%rax), %rax
testq %rax, %rax
je 0x2ad6
xorl %ebp, %ebp
leaq 0x10(%rsp), %r12
movq 0x20(%rsp), %rcx
movq 0x8(%rcx), %rcx
leaq (,%rbp,2), %r14
addq %rbp, %r14
shlq $0x4, %r14
leaq (%rcx,%r14), %r15
addq $0x8, %r15
movq 0x10(%r15), %r13
cmpq %r15, %r13
je 0x2aca
movb 0x20(%r13), %al
movq 0x28(%r13), %rcx
movq 0x8(%rsp), %rdx
movq (%rdx), %rdx
addq %rdx, %rcx
incq %rcx
movq 0x8(%rbx), %rsi
addq %r14, %rsi
leaq (%rdx,%rdx,2), %rdx
shlq $0x4, %rdx
leaq (%rdx,%rsi), %rdi
addq $0x30, %rdi
movb %al, 0x10(%rsp)
movq %rcx, 0x18(%rsp)
movq %r12, %rsi
callq 0x5530
movq %r13, %rdi
callq 0x21b0
movq %rax, %r13
cmpq %r15, %rax
jne 0x2a74
movq 0x20(%rsp), %rax
movq (%rax), %rax
incq %rbp
cmpq %rax, %rbp
jb 0x2a4b
movq 0x8(%rsp), %rax
movq 0x38(%rax), %r12
leaq 0x28(%rax), %r14
cmpq %r14, %r12
je 0x2b19
leaq 0x20(%rbx), %r13
leaq 0x10(%rsp), %rbp
movq 0x20(%r12), %rax
incq %rax
movq %rax, 0x10(%rsp)
movq %r13, %rdi
movq %rbp, %rsi
callq 0x541e
movq %r12, %rdi
callq 0x21b0
movq %rax, %r12
cmpq %r14, %rax
jne 0x2af1
movq 0x20(%rsp), %rax
movq 0x38(%rax), %r12
addq $0x28, %rax
cmpq %rax, %r12
je 0x2b6a
movq %rax, %r14
leaq 0x20(%rbx), %r13
leaq 0x10(%rsp), %rbp
movq 0x20(%r12), %rax
movq 0x8(%rsp), %rcx
movq (%rcx), %rcx
addq %rcx, %rax
incq %rax
movq %rax, 0x10(%rsp)
movq %r13, %rdi
movq %rbp, %rsi
callq 0x541e
movq %r12, %rdi
callq 0x21b0
movq %rax, %r12
cmpq %r14, %rax
jne 0x2b37
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2b84
jmp 0x2b84
jmp 0x2b84
jmp 0x2b84
movq %rax, %r14
movq %rbx, %rdi
callq 0x4770
movq %r14, %rdi
callq 0x2270