// File: /workspace/github_cpp_makefile_star2_O1/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, %r14
movq %rdi, %rbx
movq (%rsi), %rax
movq %rdx, 0x20(%rsp)
movq (%rdx), %rcx
leaq (%rax,%rcx), %rsi
incq %rsi
leaq 0x50(%r14), %rdx
callq 0x243c
movq 0x8(%rbx), %rdi
leaq 0x8(%rsp), %rsi
movb $0x40, (%rsi)
movq $0x1, 0x8(%rsi)
callq 0x5562
movq (%r14), %rax
testq %rax, %rax
movq %r14, %rbp
je 0x2a65
xorl %ecx, %ecx
leaq 0x8(%rsp), %r12
movq 0x8(%r14), %rax
movq %rcx, 0x18(%rsp)
leaq (%rcx,%rcx,2), %r14
shlq $0x4, %r14
leaq (%rax,%r14), %r15
addq $0x8, %r15
movq 0x10(%r15), %r13
cmpq %r15, %r13
je 0x2a51
movb 0x20(%r13), %al
movq 0x28(%r13), %rcx
incq %rcx
movq 0x8(%rbx), %rdx
leaq (%rdx,%r14), %rdi
addq $0x30, %rdi
movb %al, 0x8(%rsp)
movq %rcx, 0x10(%rsp)
movq %r12, %rsi
callq 0x5562
movq %r13, %rdi
callq 0x21b0
movq %rax, %r13
cmpq %r15, %rax
jne 0x2a19
movq 0x18(%rsp), %rcx
incq %rcx
movq %rbp, %r14
movq (%rbp), %rax
cmpq %rax, %rcx
jb 0x29f7
incq %rax
movq 0x8(%rbx), %rdi
leaq 0x8(%rsp), %rsi
movb $0x40, (%rsi)
movq %rax, 0x8(%rsi)
callq 0x5562
movq 0x20(%rsp), %r15
cmpq $0x0, (%r15)
je 0x2b11
xorl %ecx, %ecx
leaq 0x8(%rsp), %r12
movq 0x8(%r15), %rax
movq %rcx, 0x18(%rsp)
leaq (%rcx,%rcx,2), %r14
shlq $0x4, %r14
leaq (%rax,%r14), %r15
addq $0x8, %r15
movq 0x10(%r15), %r13
cmpq %r15, %r13
je 0x2aff
movb 0x20(%r13), %al
movq 0x28(%r13), %rcx
movq (%rbp), %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, 0x8(%rsp)
movq %rcx, 0x10(%rsp)
movq %r12, %rsi
callq 0x5562
movq %r13, %rdi
callq 0x21b0
movq %rax, %r13
cmpq %r15, %rax
jne 0x2ab5
movq 0x18(%rsp), %rcx
incq %rcx
movq 0x20(%rsp), %r15
cmpq (%r15), %rcx
jb 0x2a93
movq 0x38(%rbp), %r12
leaq 0x28(%rbp), %r14
cmpq %r14, %r12
je 0x2b4c
leaq 0x20(%rbx), %r13
movq 0x20(%r12), %rax
incq %rax
movq %rax, 0x8(%rsp)
movq %r13, %rdi
leaq 0x8(%rsp), %rsi
callq 0x5450
movq %r12, %rdi
callq 0x21b0
movq %rax, %r12
cmpq %r14, %rax
jne 0x2b22
movq 0x38(%r15), %r12
addq $0x28, %r15
cmpq %r15, %r12
je 0x2b93
movq %rbp, %r14
leaq 0x20(%rbx), %r13
leaq 0x8(%rsp), %rbp
movq 0x20(%r12), %rax
movq (%r14), %rcx
addq %rcx, %rax
incq %rax
movq %rax, 0x8(%rsp)
movq %r13, %rdi
movq %rbp, %rsi
callq 0x5450
movq %r12, %rdi
callq 0x21b0
movq %rax, %r12
cmpq %r15, %rax
jne 0x2b65
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2bad
jmp 0x2bad
jmp 0x2bad
jmp 0x2bad
movq %rax, %r14
movq %rbx, %rdi
callq 0x47c6
movq %r14, %rdi
callq 0x2270