// File: /workspace/github_cpp_makefile_star2_O1/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 $0x1e8, %rsp            # imm = 0x1E8
movq %rdx, 0x28(%rsp)
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
movl $0x65726170, (%r15)     # imm = 0x65726170
movw $0x746e, 0x4(%r15)      # imm = 0x746E
movq $0x6, -0x8(%r15)
movb $0x0, 0x6(%r15)
movq %rsp, %rsi
movq %r14, %rdi
callq 0x40f70
leaq 0x68(%rsp), %rdi
movq %rax, %rsi
movl $0x8, %edx
callq 0x41c80
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x6a26b
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x40870
leaq 0x68(%rsp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
andl $-0x4b, 0x80(%rsp,%rax)
leaq 0x3c(%rsp), %rsi
callq 0x41eb0
movl 0x3c(%rsp), %eax
movq 0x28(%rsp), %rcx
movq 0x198(%rcx), %rcx
movq (%rcx,%rax,8), %rax
movq %rax, 0x8(%rbx)
movq 0x38a68(%rip), %rsi     # 0xa2d10
leaq 0x68(%rsp), %rdi
callq 0x41440
leaq 0xe0(%rsp), %rdi
callq 0x3f730
movq %rsp, %rsi
movq %r15, (%rsi)
movl $0x73726966, 0x10(%rsi) # imm = 0x73726966
movw $0x74, 0x14(%rsi)
movq $0x5, 0x8(%rsi)
movq %r14, %rdi
callq 0x40f70
leaq 0x68(%rsp), %rdi
movq %rax, %rsi
movl $0x8, %edx
callq 0x41c80
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x6a30a
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x40870
leaq 0x68(%rsp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
andl $-0x4b, 0x80(%rsp,%rax)
leaq 0x88(%rbx), %rsi
callq 0x3fe80
movq 0x389df(%rip), %rsi     # 0xa2d10
leaq 0x68(%rsp), %rdi
callq 0x41440
leaq 0xe0(%rsp), %rdi
callq 0x3f730
movq %rsp, %rsi
movq %r15, (%rsi)
movl $0x676e656c, 0x10(%rsi) # imm = 0x676E656C
movw $0x6874, 0x14(%rsi)     # imm = 0x6874
movq $0x6, 0x8(%rsi)
movb $0x0, 0x16(%rsi)
movq %r14, %rdi
callq 0x40f70
leaq 0x68(%rsp), %rdi
movq %rax, %rsi
movl $0x8, %edx
callq 0x41c80
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x6a397
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x40870
leaq 0x68(%rsp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
andl $-0x4b, 0x80(%rsp,%rax)
leaq 0x80(%rbx), %rsi
callq 0x3fe80
movq 0x38952(%rip), %rsi     # 0xa2d10
leaq 0x68(%rsp), %rdi
callq 0x41440
leaq 0xe0(%rsp), %rdi
callq 0x3f730
movq %rsp, %rsi
movq %r15, (%rsi)
movl $0x656e696c, 0x10(%rsi) # imm = 0x656E696C
movq $0x4, 0x8(%rsi)
movb $0x0, 0x14(%rsi)
movq %r14, %rdi
callq 0x40f70
leaq 0x68(%rsp), %rdi
movq %rax, %rsi
movl $0x8, %edx
callq 0x41c80
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x6a41e
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x40870
leaq 0x68(%rsp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
andl $-0x4b, 0x80(%rsp,%rax)
leaq 0x90(%rbx), %rsi
callq 0x3fe80
movq 0x388cb(%rip), %rsi     # 0xa2d10
leaq 0x68(%rsp), %rdi
callq 0x41440
leaq 0xe0(%rsp), %rdi
callq 0x3f730
movq 0x78(%r14), %r13
cmpq 0x80(%r14), %r13
je 0x6a842
leaq 0x68(%rbx), %rbp
leaq 0x48(%rbx), %rax
movq %rax, 0x40(%rsp)
leaq 0x30(%rbx), %rax
movq %rax, 0x48(%rsp)
leaq 0x18(%rbx), %rax
movq %rax, 0x60(%rsp)
leaq 0x68(%rsp), %r12
movq 0x38818(%rip), %rax     # 0xa2cb0
addq $0x10, %rax
movq %rax, 0x58(%rsp)
movq 0x38708(%rip), %rax     # 0xa2bb0
addq $0x10, %rax
movq %rax, 0x50(%rsp)
movq %r14, 0x30(%rsp)
movq (%r13), %rdi
leaq 0x17049(%rip), %rsi     # 0x8150a
callq 0x3f590
testl %eax, %eax
je 0x6a597
movq (%r13), %rdi
leaq 0x17038(%rip), %rsi     # 0x81511
callq 0x3f590
movq (%r13), %rdi
testl %eax, %eax
je 0x6a650
leaq 0x1701e(%rip), %rsi     # 0x8150f
callq 0x3f590
testl %eax, %eax
je 0x6a6ac
movq (%r13), %rdi
leaq 0x172a4(%rip), %rsi     # 0x817ad
callq 0x3f590
testl %eax, %eax
je 0x6a78e
movq (%r13), %rdi
leaq 0x172bd(%rip), %rsi     # 0x817de
callq 0x3f590
testl %eax, %eax
je 0x6a7e3
movl $0x28, %edi
callq 0x40800
movq %rax, %r14
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movups %xmm0, 0x10(%rax)
movq $0x0, 0x20(%rax)
movq (%r13), %rsi
movq %rax, %rdi
movq 0x28(%rsp), %rdx
callq 0x3f560
testl %eax, %eax
js 0x6a81d
movl %eax, %r15d
movq 0x68(%rbx), %rax
movq 0x70(%rbx), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %r15, %rcx
ja 0x6a7cd
movq $0x0, 0x68(%rsp)
movq %rbp, %rdi
movq %r12, %rsi
callq 0x3fce0
jmp 0x6a569
movq (%r13), %rdi
movq %r15, (%rsp)
movw $0x6469, 0x10(%rsp)     # imm = 0x6469
movq $0x2, 0x8(%rsp)
movb $0x0, 0x12(%rsp)
movq %rsp, %rsi
callq 0x40f70
movq %r12, %rdi
movq %rax, %rsi
movl $0x8, %edx
callq 0x41c80
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x6a5e2
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x40870
movq 0x68(%rsp), %rax
movq -0x18(%rax), %rax
andl $-0x4b, 0x80(%rsp,%rax)
movq %r12, %rdi
leaq 0x24(%rsp), %rsi
callq 0x41eb0
movq %r12, %rdi
movq 0x38706(%rip), %rsi     # 0xa2d10
callq 0x41440
leaq 0xe0(%rsp), %rdi
callq 0x3f730
movl 0x24(%rsp), %eax
movq 0x28(%rsp), %rcx
movq 0x198(%rcx), %rcx
movq (%rcx,%rax,8), %rax
movq %rax, 0x68(%rsp)
movq 0x20(%rbx), %rsi
cmpq 0x28(%rbx), %rsi
je 0x6a77c
movq %rax, (%rsi)
addq $0x8, 0x20(%rbx)
jmp 0x6a831
leaq 0x78(%rsp), %rax
movq %rax, 0x68(%rsp)
movb $0x65, 0x4(%rax)
movl $0x63656970, (%rax)     # imm = 0x63656970
movq $0x5, 0x70(%rsp)
movb $0x0, 0x7d(%rsp)
movq %r12, %rsi
callq 0x40f70
movq 0x48(%rsp), %rdi
movq %rax, %rsi
callq 0x3fbc0
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x6a831
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x40870
jmp 0x6a831
movq (%r13), %rdi
movq %r15, (%rsp)
movw $0x6469, 0x10(%rsp)     # imm = 0x6469
movq $0x2, 0x8(%rsp)
movb $0x0, 0x12(%rsp)
movq %rsp, %rsi
callq 0x40f70
movq %r12, %rdi
movq %rax, %rsi
movl $0x8, %edx
callq 0x41c80
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x6a6f7
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x40870
movq 0x68(%rsp), %rax
movq -0x18(%rax), %rax
andl $-0x4b, 0x80(%rsp,%rax)
movq %r12, %rdi
leaq 0x24(%rsp), %rsi
callq 0x3fe80
movq %r15, (%rsp)
movw $0x200a, 0x10(%rsp)     # imm = 0x200A
movq $0x2, 0x8(%rsp)
movb $0x0, 0x12(%rsp)
movb 0x24(%rsp), %al
addb $0x41, %al
movb %al, 0x11(%rsp)
movq 0x48(%rsp), %rdi
movq %rsp, %rsi
callq 0x3fbc0
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x6a75b
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x40870
movq %r12, %rdi
movq 0x385ab(%rip), %rsi     # 0xa2d10
callq 0x41440
leaq 0xe0(%rsp), %rdi
callq 0x3f730
jmp 0x6a831
movq 0x60(%rsp), %rdi
movq %r12, %rdx
callq 0x41b90
jmp 0x6a831
movl $0x20, %edi
callq 0x40800
movq %rax, %r14
movq 0x58(%rsp), %rax
movq %rax, (%r14)
movq (%r13), %rsi
movq %r14, %rdi
movq 0x28(%rsp), %rdx
callq 0x407a0
movq %r14, 0x68(%rsp)
movq 0x30(%rsp), %r14
movq 0x40(%rsp), %rdi
movq %r12, %rsi
callq 0x40db0
jmp 0x6a831
cmpq $0x0, (%rax,%r15,8)
jne 0x6a886
movq %r14, (%rax,%r15,8)
leaq 0x10(%rsp), %r15
jmp 0x6a82c
movl $0x20, %edi
callq 0x40800
movq %rax, %r14
movq 0x50(%rsp), %rax
movq %rax, (%r14)
movq (%r13), %rsi
movq %r14, %rdi
movq 0x28(%rsp), %rdx
callq 0x40690
movq %r14, 0x68(%rsp)
movq 0x40(%rsp), %rdi
movq %r12, %rsi
callq 0x40db0
jmp 0x6a82c
cmpq $0x0, 0x60(%rbx)
jne 0x6a8dd
movq %r14, 0x60(%rbx)
movq 0x30(%rsp), %r14
addq $0x8, %r13
cmpq 0x80(%r14), %r13
jne 0x6a4b6
movq $0x0, (%rbx)
movq 0x30(%rbx), %rcx
movq 0x38(%rbx), %rdx
subq %rcx, %rdx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq $0x20, %rdx
jne 0x6a86e
movq (%rcx), %rcx
cmpb $0xa, (%rcx)
jne 0x6a86e
movsbl 0x1(%rcx), %eax
addl $-0x41, %eax
movl %eax, 0x8c(%rbx)
addq $0x1e8, %rsp            # imm = 0x1E8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0x3fb00
movq %rax, %r14
leaq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
movq %rax, (%rdi)
leaq 0x16c87(%rip), %rsi     # 0x8152e
leaq 0x16c97(%rip), %rdx     # 0x81545
callq 0x3f8a0
movb $0x1, %bpl
leaq 0x68(%rsp), %rsi
movq %r14, %rdi
callq 0x3f890
xorl %ebp, %ebp
movq 0x385dc(%rip), %rsi     # 0xa2ea8
movq 0x38365(%rip), %rdx     # 0xa2c38
movq %r14, %rdi
callq 0x41d60
jmp 0x6a932
movl $0x20, %edi
callq 0x3fb00
movq %rax, %r14
leaq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
movq %rax, (%rdi)
leaq 0x16c19(%rip), %rsi     # 0x81517
leaq 0x16c28(%rip), %rdx     # 0x8152d
callq 0x3f8a0
movb $0x1, %bpl
leaq 0x68(%rsp), %rsi
movq %r14, %rdi
callq 0x3f890
xorl %ebp, %ebp
movq 0x38585(%rip), %rsi     # 0xa2ea8
movq 0x3830e(%rip), %rdx     # 0xa2c38
movq %r14, %rdi
callq 0x41d60
jmp 0x6a936
jmp 0x6a957
movq %rax, %rbx
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x6a95d
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x40870
jmp 0x6a95d
movq %rax, %rbx
movb $0x1, %bpl
testb %bpl, %bpl
je 0x6a9f7
movq %r14, %rdi
callq 0x40080
jmp 0x6a9f7
jmp 0x6a9a2
jmp 0x6a9a2
jmp 0x6a9a2
jmp 0x6a9a2
jmp 0x6a9de
jmp 0x6a9de
jmp 0x6a9de
jmp 0x6a9de
jmp 0x6a9a2
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x6a9a5
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x40870
jmp 0x6a9a5
jmp 0x6a9de
movq %rax, %rbx
movq 0x38364(%rip), %rsi     # 0xa2d10
leaq 0x68(%rsp), %rdi
callq 0x41440
leaq 0xe0(%rsp), %rdi
callq 0x3f730
jmp 0x6a9f7
movq %rax, %rbx
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x6a9f7
movq 0x78(%rsp), %rsi
jmp 0x6a9ef
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x6a9f7
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x40870
movq %rbx, %rdi
callq 0x41f00
nop