// File: /workspace/github_cpp_makefile_star2_O2/jstaursky[P]hutch/src/Sleigh/slghsymbol.cc
// Function: SubtableSymbol::buildPattern(std::ostream&)
TokenPattern *SubtableSymbol::buildPattern(ostream &s)

{
  if (pattern != (TokenPattern *)0) return pattern; // Already built

  errors = false;
  beingbuilt = true;
  pattern = new TokenPattern();
  if (construct.empty()) {
    s << "Error: There are no constructors in table: "+getName() << endl;
    errors = true;
    return pattern;
  }
  try {
    construct.front()->buildPattern(s);
  } catch(SleighError &err) {
    s << "Error: " << err.explain << ": for ";
    construct.front()->printInfo(s);
    s << endl;
    errors = true;
  }
  *pattern = *construct.front()->getPattern();
  for(int4 i=1;i<construct.size();++i) {
    try {
      construct[i]->buildPattern(s);
    } catch(SleighError &err) {
      s << "Error: " << err.explain << ": for ";
      construct[i]->printInfo(s);
      s << endl;
      errors = true;
    }
    *pattern = construct[i]->getPattern()->commonSubPattern(*pattern);
  }
  beingbuilt = false;
  return pattern;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq 0x30(%rdi), %rax
testq %rax, %rax
jne 0x74103
movq %rsi, %r14
movq %rdi, %rbx
movw $0x1, 0x38(%rdi)
pushq $0x28
popq %rdi
callq 0x4f5d0
movq %rax, %r15
movq %rax, %rdi
callq 0x50750
movq %r15, 0x30(%rbx)
movq 0x40(%rbx), %rax
cmpq 0x48(%rbx), %rax
je 0x740c6
movq (%rax), %rdi
movq %r14, %rsi
callq 0x50a40
movq 0x30(%rbx), %rdi
movq 0x40(%rbx), %rax
movq (%rax), %rax
movq (%rax), %rsi
callq 0x50980
pushq $0x1
popq %rbp
leaq 0x10(%rsp), %r15
leaq 0x1464c(%rip), %r12     # 0x8864b
leaq 0x1464d(%rip), %r13     # 0x88653
movq 0x40(%rbx), %rax
movq 0x48(%rbx), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %rbp, %rcx
jbe 0x740c0
movq (%rax,%rbp,8), %rdi
movq %r14, %rsi
callq 0x50a40
movq 0x30(%rbx), %rdx
movq 0x40(%rbx), %rax
movq (%rax,%rbp,8), %rax
movq (%rax), %rsi
movq %r15, %rdi
callq 0x50de0
movq 0x30(%rbx), %rdi
movq %r15, %rsi
callq 0x50980
movq %r15, %rdi
callq 0x4e060
incq %rbp
jmp 0x74006
movq %rax, 0x8(%rsp)
cmpl $0x1, %edx
jne 0x741d0
movq 0x8(%rsp), %rdi
callq 0x4de70
movq %rax, 0x8(%rsp)
movq %r14, %rdi
movq %r12, %rsi
callq 0x4f5b0
movq %rax, %rdi
movq 0x8(%rsp), %rsi
callq 0x4f1b0
movq %rax, %rdi
movq %r13, %rsi
callq 0x4f5b0
movq 0x40(%rbx), %rax
movq (%rax,%rbp,8), %rdi
movq %r14, %rsi
callq 0x51c70
movq %r14, %rdi
callq 0x4e140
movb $0x1, 0x39(%rbx)
callq 0x51210
jmp 0x7402a
movb $0x0, 0x38(%rbx)
jmp 0x740ff
leaq 0x8(%rbx), %rdx
leaq 0x1454e(%rip), %rsi     # 0x8861f
leaq 0x10(%rsp), %r15
movq %r15, %rdi
callq 0x4f1c0
movq %r14, %rdi
movq %r15, %rsi
callq 0x4f1b0
movq %rax, %rdi
callq 0x4e140
leaq 0x10(%rsp), %rdi
callq 0x4e020
movb $0x1, 0x39(%rbx)
movq 0x30(%rbx), %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, 0x8(%rsp)
callq 0x51210
jmp 0x741d0
movq %rax, 0x8(%rsp)
cmpl $0x1, %edx
jne 0x741d0
movq 0x8(%rsp), %rdi
callq 0x4de70
movq %rax, %r15
leaq 0x14508(%rip), %rsi     # 0x8864b
movq %r14, %rdi
callq 0x4f5b0
movq %rax, %rdi
movq %r15, %rsi
callq 0x4f1b0
leaq 0x144f6(%rip), %rsi     # 0x88653
movq %rax, %rdi
callq 0x4f5b0
movq 0x40(%rbx), %rax
movq (%rax), %rdi
movq %r14, %rsi
callq 0x51c70
movq %r14, %rdi
callq 0x4e140
movb $0x1, 0x39(%rbx)
callq 0x51210
jmp 0x73fdd
movq %rax, 0x8(%rsp)
callq 0x51210
jmp 0x741d0
movq %rax, %rdi
callq 0x55fd2
movq %rax, 0x8(%rsp)
leaq 0x10(%rsp), %rdi
callq 0x4e020
jmp 0x741d0
movq %rax, 0x8(%rsp)
pushq $0x28
popq %rsi
movq %r15, %rdi
callq 0x4f670
jmp 0x741d0
movq %rax, 0x8(%rsp)
leaq 0x10(%rsp), %rdi
callq 0x4e060
movq 0x8(%rsp), %rdi
callq 0x518c0