// File: /workspace/github_cpp_makefile_star2_O2/jstaursky[P]hutch/src/Sleigh/slghsymbol.cc
// Function: Constructor::restoreXml(Element const*, SleighBase*)
void Constructor::restoreXml(const Element *el,SleighBase *trans)

{
  uintm id;
  {
    istringstream s(el->getAttributeValue("parent"));
    s.unsetf(ios::dec | ios::hex | ios::oct);
    s >> id;
    parent = (SubtableSymbol *)trans->findSymbol(id);
  }
  {
    istringstream s(el->getAttributeValue("first"));
    s.unsetf(ios::dec | ios::hex | ios::oct);
    s >> firstwhitespace;
  }
  {
    istringstream s(el->getAttributeValue("length"));
    s.unsetf(ios::dec | ios::hex | ios::oct);
    s >> minimumlength;
  }
  {
    istringstream s(el->getAttributeValue("line"));
    s.unsetf(ios::dec | ios::hex | ios::oct);
    s >> lineno;
  }
  const List &list(el->getChildren());
  List::const_iterator iter;
  iter = list.begin();
  while(iter != list.end()) {
    if ((*iter)->getName() == "oper") {
      uintm id;
      {
	istringstream s((*iter)->getAttributeValue("id"));
	s.unsetf(ios::dec | ios::hex | ios::oct);
	s >> id;
      }
      OperandSymbol *sym = (OperandSymbol *)trans->findSymbol(id);
      operands.push_back(sym);
    }
    else if ((*iter)->getName() == "print")
      printpiece.push_back( (*iter)->getAttributeValue("piece"));
    else if ((*iter)->getName() == "opprint") {
      int4 index;
      istringstream s((*iter)->getAttributeValue("id"));
      s.unsetf(ios::dec | ios::hex | ios::oct);
      s >> index;
      string operstring = "\n ";
      operstring[1] = ('A' + index);
      printpiece.push_back(operstring);
    }
    else if ((*iter)->getName() == "context_op") {
      ContextOp *c_op = new ContextOp();
      c_op->restoreXml(*iter,trans);
      context.push_back(c_op);
    }
    else if ((*iter)->getName() == "commit") {
      ContextCommit *c_op = new ContextCommit();
      c_op->restoreXml(*iter,trans);
      context.push_back(c_op);
    }
    else {
      ConstructTpl *cur = new ConstructTpl();
      int4 sectionid = cur->restoreXml(*iter,trans);
      if (sectionid < 0) {
	if (templ != (ConstructTpl *)0)
	  throw LowlevelError("Duplicate main section");
	templ = cur;
      }
      else {
	while(namedtempl.size() <= sectionid)
	  namedtempl.push_back((ConstructTpl *)0);
	if (namedtempl[sectionid] != (ConstructTpl *)0)
	  throw LowlevelError("Duplicate named section");
	namedtempl[sectionid] = cur;
      }
    }
    ++iter;
  }
  pattern = (TokenPattern *)0;
  if ((printpiece.size()==1)&&(printpiece[0][0]=='\n'))
    flowthruindex = printpiece[0][1] - 'A';
  else
    flowthruindex = -1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1f8, %rsp            # imm = 0x1F8
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x155b5(%rip), %rsi     # 0x886d6
leaq 0x10(%rsp), %rdi
leaq 0xc(%rsp), %rdx
callq 0x515e0
leaq 0x10(%rsp), %rsi
movq %r14, %rdi
callq 0x50230
leaq 0x78(%rsp), %rdi
pushq $0x8
popq %rdx
movq %rax, %rsi
callq 0x51500
leaq 0x10(%rsp), %rdi
callq 0x4e020
leaq 0x78(%rsp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
andl $-0x4b, 0x90(%rsp,%rax)
leaq 0x3c(%rsp), %rsi
callq 0x51830
movl 0x3c(%rsp), %eax
movq 0x198(%r15), %rcx
movq (%rcx,%rax,8), %rax
movq %rax, 0x8(%rbx)
leaq 0x78(%rsp), %rdi
callq 0x4e070
leaq 0x12e7b(%rip), %rsi     # 0x86014
leaq 0x10(%rsp), %rdi
leaq 0xc(%rsp), %rdx
callq 0x515e0
leaq 0x10(%rsp), %rsi
movq %r14, %rdi
callq 0x50230
leaq 0x78(%rsp), %rdi
pushq $0x8
popq %rdx
movq %rax, %rsi
callq 0x51500
leaq 0x10(%rsp), %rdi
callq 0x4e020
leaq 0x78(%rsp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
andl $-0x4b, 0x90(%rsp,%rax)
leaq 0x88(%rbx), %rsi
callq 0x4e750
leaq 0x78(%rsp), %rdi
callq 0x4e070
leaq 0x152d3(%rip), %rsi     # 0x884d3
leaq 0x10(%rsp), %rdi
leaq 0xc(%rsp), %rdx
callq 0x515e0
leaq 0x10(%rsp), %rsi
movq %r14, %rdi
callq 0x50230
leaq 0x78(%rsp), %rdi
pushq $0x8
popq %rdx
movq %rax, %rsi
callq 0x51500
leaq 0x10(%rsp), %rdi
callq 0x4e020
leaq 0x78(%rsp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
andl $-0x4b, 0x90(%rsp,%rax)
leaq 0x80(%rbx), %rsi
callq 0x4e750
leaq 0x78(%rsp), %rdi
callq 0x4e070
leaq 0x15273(%rip), %rsi     # 0x884da
leaq 0x10(%rsp), %rdi
leaq 0xc(%rsp), %rdx
callq 0x515e0
leaq 0x10(%rsp), %rsi
movq %r14, %rdi
callq 0x50230
leaq 0x78(%rsp), %rdi
pushq $0x8
popq %rdx
movq %rax, %rsi
callq 0x51500
leaq 0x10(%rsp), %rdi
callq 0x4e020
leaq 0x78(%rsp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
andl $-0x4b, 0x90(%rsp,%rax)
leaq 0x90(%rbx), %rsi
callq 0x4e750
movq %rbx, %rbp
leaq 0x78(%rsp), %r12
movq %r12, %rdi
callq 0x4e070
movq %r14, %rbx
movq 0x78(%r14), %r13
leaq 0x68(%rbp), %rax
movq %rax, 0x70(%rsp)
leaq 0x48(%rbp), %rax
movq %rax, 0x40(%rsp)
leaq 0x30(%rbp), %rax
movq %rax, 0x48(%rsp)
movq %rbp, 0x30(%rsp)
leaq 0x18(%rbp), %rax
movq %rax, 0x68(%rsp)
leaq 0x10(%rsp), %r14
movq 0x3b9a7(%rip), %rax     # 0xaecb0
addq $0x10, %rax
movq %rax, 0x60(%rsp)
movq 0x3b897(%rip), %rax     # 0xaebb0
addq $0x10, %rax
movq %rax, 0x58(%rsp)
cmpq 0x80(%rbx), %r13
je 0x735e6
movq (%r13), %rdi
leaq 0x151a5(%rip), %rsi     # 0x884df
callq 0x520f0
testb %al, %al
je 0x733cc
movq (%r13), %rbp
movq %r14, %rdi
leaq 0x1399b(%rip), %rsi     # 0x86cf0
leaq 0xb(%rsp), %rdx
callq 0x515e0
movq %rbp, %rdi
movq %r14, %rsi
callq 0x50230
movq %r12, %rdi
movq %rax, %rsi
pushq $0x8
popq %rdx
callq 0x51500
movq %r14, %rdi
callq 0x4e020
movq 0x78(%rsp), %rax
movq -0x18(%rax), %rax
andl $-0x4b, 0x90(%rsp,%rax)
movq %r12, %rdi
leaq 0xc(%rsp), %rsi
callq 0x51830
movq %r12, %rdi
callq 0x4e070
movl 0xc(%rsp), %eax
movq 0x198(%r15), %rcx
movq (%rcx,%rax,8), %rax
movq %rax, 0x78(%rsp)
movq 0x68(%rsp), %rdi
movq %r12, %rsi
callq 0x509f0
jmp 0x7354f
movq (%r13), %rdi
leaq 0x1510f(%rip), %rsi     # 0x884e6
callq 0x520f0
movq (%r13), %rbp
testb %al, %al
je 0x7341b
movq %r12, %rdi
leaq 0x1340e(%rip), %rsi     # 0x867fc
movq %r14, %rdx
callq 0x515e0
movq %rbp, %rdi
movq %r12, %rsi
callq 0x50230
movq 0x48(%rsp), %rdi
movq %rax, %rsi
callq 0x4e310
movq %r12, %rdi
callq 0x4e020
jmp 0x7354f
movq %rbp, %rdi
leaq 0x150bf(%rip), %rsi     # 0x884e4
callq 0x520f0
testb %al, %al
je 0x734cd
movq (%r13), %rbp
movq %r14, %rdi
leaq 0x138b0(%rip), %rsi     # 0x86cf0
leaq 0xb(%rsp), %rdx
callq 0x515e0
movq %rbp, %rdi
movq %r14, %rsi
callq 0x50230
movq %r12, %rdi
movq %rax, %rsi
pushq $0x8
popq %rdx
callq 0x51500
movq %r14, %rdi
callq 0x4e020
movq 0x78(%rsp), %rax
movq -0x18(%rax), %rax
andl $-0x4b, 0x90(%rsp,%rax)
movq %r12, %rdi
leaq 0xc(%rsp), %rsi
callq 0x4e750
movq %r14, %rdi
leaq 0x14089(%rip), %rsi     # 0x8751c
leaq 0xb(%rsp), %rdx
callq 0x515e0
movb 0xc(%rsp), %al
addb $0x41, %al
movq 0x10(%rsp), %rcx
movb %al, 0x1(%rcx)
movq 0x48(%rsp), %rdi
movq %r14, %rsi
callq 0x4e310
movq %r14, %rdi
callq 0x4e020
movq %r12, %rdi
callq 0x4e070
jmp 0x7354f
movq (%r13), %rdi
leaq 0x152aa(%rip), %rsi     # 0x88782
callq 0x520f0
testb %al, %al
je 0x73506
pushq $0x20
popq %rdi
callq 0x4f5d0
movq %rax, %rbp
movq 0x60(%rsp), %rax
movq %rax, (%rbp)
movq (%r13), %rsi
movq %rbp, %rdi
movq %r15, %rdx
callq 0x4f530
jmp 0x7353d
movq (%r13), %rdi
leaq 0x152a2(%rip), %rsi     # 0x887b3
callq 0x520f0
testb %al, %al
je 0x73558
pushq $0x20
popq %rdi
callq 0x4f5d0
movq %rax, %rbp
movq 0x58(%rsp), %rax
movq %rax, (%rbp)
movq (%r13), %rsi
movq %rbp, %rdi
movq %r15, %rdx
callq 0x4f3a0
movq %rbp, 0x78(%rsp)
movq 0x40(%rsp), %rdi
movq %r12, %rsi
callq 0x4ff20
addq $0x8, %r13
jmp 0x73322
pushq $0x28
popq %rdi
callq 0x4f5d0
movq %rax, %rbp
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movups %xmm0, 0x10(%rax)
andq $0x0, 0x20(%rax)
movq (%r13), %rsi
movq %rax, %rdi
movq %r15, %rdx
callq 0x4d8d0
testl %eax, %eax
js 0x735cd
movq %r15, 0x50(%rsp)
movl %eax, %r15d
movq 0x30(%rsp), %rcx
movq 0x68(%rcx), %rax
movq 0x70(%rcx), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %r15, %rcx
ja 0x735bb
andq $0x0, 0x78(%rsp)
movq 0x70(%rsp), %rdi
movq %r12, %rsi
callq 0x4e4f0
jmp 0x7358d
cmpq $0x0, (%rax,%r15,8)
jne 0x7362a
movq %rbp, (%rax,%r15,8)
movq 0x50(%rsp), %r15
jmp 0x7354f
movq 0x30(%rsp), %rax
cmpq $0x0, 0x60(%rax)
jne 0x73675
movq %rbp, 0x60(%rax)
jmp 0x7354f
movq 0x30(%rsp), %rsi
andq $0x0, (%rsi)
movq 0x30(%rsi), %rcx
movq 0x38(%rsi), %rdx
subq %rcx, %rdx
pushq $-0x1
popq %rax
cmpq $0x20, %rdx
jne 0x73612
movq (%rcx), %rcx
cmpb $0xa, (%rcx)
jne 0x73612
movsbl 0x1(%rcx), %eax
addl $-0x41, %eax
movl %eax, 0x8c(%rsi)
addq $0x1f8, %rsp            # imm = 0x1F8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x20
popq %rdi
callq 0x4e180
movq %rax, %r14
leaq 0x14ec7(%rip), %rsi     # 0x88503
leaq 0x78(%rsp), %rdi
leaq 0x10(%rsp), %rdx
callq 0x515e0
movb $0x1, %bpl
leaq 0x78(%rsp), %rsi
movq %r14, %rdi
callq 0x4ddf0
xorl %ebp, %ebp
movq 0x3b83c(%rip), %rsi     # 0xaeea0
movq 0x3b5cd(%rip), %rdx     # 0xaec38
movq %r14, %rdi
callq 0x51630
jmp 0x736be
pushq $0x20
popq %rdi
callq 0x4e180
movq %rax, %r14
leaq 0x14e65(%rip), %rsi     # 0x884ec
leaq 0x78(%rsp), %rdi
leaq 0x10(%rsp), %rdx
callq 0x515e0
movb $0x1, %bpl
leaq 0x78(%rsp), %rsi
movq %r14, %rdi
callq 0x4ddf0
xorl %ebp, %ebp
movq 0x3b7f1(%rip), %rsi     # 0xaeea0
movq 0x3b582(%rip), %rdx     # 0xaec38
movq %r14, %rdi
callq 0x51630
jmp 0x736c2
jmp 0x736d6
movq %rax, %rbx
leaq 0x78(%rsp), %rdi
callq 0x4e020
testb %bpl, %bpl
jne 0x736d9
jmp 0x7373f
movq %rax, %rbx
movq %r14, %rdi
callq 0x4ea60
jmp 0x7373f
jmp 0x73723
jmp 0x73714
jmp 0x73723
jmp 0x73714
jmp 0x73723
jmp 0x73714
jmp 0x73723
jmp 0x73714
jmp 0x73732
jmp 0x73732
jmp 0x73732
jmp 0x73732
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x4e020
jmp 0x73726
jmp 0x73723
jmp 0x73723
jmp 0x73714
jmp 0x73732
jmp 0x73714
movq %rax, %rbx
jmp 0x7373f
movq %rax, %rbx
leaq 0x78(%rsp), %rdi
jmp 0x7373a
movq %rax, %rbx
leaq 0x78(%rsp), %rdi
callq 0x4e070
jmp 0x7373f
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x4e020
movq %rbx, %rdi
callq 0x518c0
nop