// File: /workspace/github_cpp_makefile_star2_O3/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 0x40f80
leaq 0x68(%rsp), %rdi
movq %rax, %rsi
movl $0x8, %edx
callq 0x41c90
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x69f53
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x40880
leaq 0x68(%rsp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
andl $-0x4b, 0x80(%rsp,%rax)
leaq 0x3c(%rsp), %rsi
callq 0x41ec0
movl 0x3c(%rsp), %eax
movq 0x28(%rsp), %rcx
movq 0x198(%rcx), %rcx
movq (%rcx,%rax,8), %rax
movq %rax, 0x8(%rbx)
movq 0x38d80(%rip), %rsi     # 0xa2d10
leaq 0x68(%rsp), %rdi
callq 0x41450
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 0x40f80
leaq 0x68(%rsp), %rdi
movq %rax, %rsi
movl $0x8, %edx
callq 0x41c90
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x69ff2
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x40880
leaq 0x68(%rsp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
andl $-0x4b, 0x80(%rsp,%rax)
leaq 0x88(%rbx), %rsi
callq 0x3fe80
movq 0x38cf7(%rip), %rsi     # 0xa2d10
leaq 0x68(%rsp), %rdi
callq 0x41450
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 0x40f80
leaq 0x68(%rsp), %rdi
movq %rax, %rsi
movl $0x8, %edx
callq 0x41c90
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x6a07f
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x40880
leaq 0x68(%rsp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
andl $-0x4b, 0x80(%rsp,%rax)
leaq 0x80(%rbx), %rsi
callq 0x3fe80
movq 0x38c6a(%rip), %rsi     # 0xa2d10
leaq 0x68(%rsp), %rdi
callq 0x41450
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 0x40f80
leaq 0x68(%rsp), %rdi
movq %rax, %rsi
movl $0x8, %edx
callq 0x41c90
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x6a106
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x40880
leaq 0x68(%rsp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
andl $-0x4b, 0x80(%rsp,%rax)
leaq 0x90(%rbx), %rsi
callq 0x3fe80
movq 0x38be3(%rip), %rsi     # 0xa2d10
leaq 0x68(%rsp), %rdi
callq 0x41450
leaq 0xe0(%rsp), %rdi
callq 0x3f730
movq 0x78(%r14), %r13
cmpq 0x80(%r14), %r13
je 0x6a52a
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 0x38b30(%rip), %rax     # 0xa2cb0
addq $0x10, %rax
movq %rax, 0x58(%rsp)
movq 0x38a20(%rip), %rax     # 0xa2bb0
addq $0x10, %rax
movq %rax, 0x50(%rsp)
movq %r14, 0x30(%rsp)
movq (%r13), %rdi
leaq 0x17361(%rip), %rsi     # 0x8150a
callq 0x3f590
testl %eax, %eax
je 0x6a27f
movq (%r13), %rdi
leaq 0x17350(%rip), %rsi     # 0x81511
callq 0x3f590
movq (%r13), %rdi
testl %eax, %eax
je 0x6a338
leaq 0x17336(%rip), %rsi     # 0x8150f
callq 0x3f590
testl %eax, %eax
je 0x6a394
movq (%r13), %rdi
leaq 0x175bc(%rip), %rsi     # 0x817ad
callq 0x3f590
testl %eax, %eax
je 0x6a476
movq (%r13), %rdi
leaq 0x175d5(%rip), %rsi     # 0x817de
callq 0x3f590
testl %eax, %eax
je 0x6a4cb
movl $0x28, %edi
callq 0x40810
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 0x6a505
movl %eax, %r15d
movq 0x68(%rbx), %rax
movq 0x70(%rbx), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %r15, %rcx
ja 0x6a4b5
movq $0x0, 0x68(%rsp)
movq %rbp, %rdi
movq %r12, %rsi
callq 0x3fce0
jmp 0x6a251
movq (%r13), %rdi
movq %r15, (%rsp)
movw $0x6469, 0x10(%rsp)     # imm = 0x6469
movq $0x2, 0x8(%rsp)
movb $0x0, 0x12(%rsp)
movq %rsp, %rsi
callq 0x40f80
movq %r12, %rdi
movq %rax, %rsi
movl $0x8, %edx
callq 0x41c90
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x6a2ca
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x40880
movq 0x68(%rsp), %rax
movq -0x18(%rax), %rax
andl $-0x4b, 0x80(%rsp,%rax)
movq %r12, %rdi
leaq 0x24(%rsp), %rsi
callq 0x41ec0
movq %r12, %rdi
movq 0x38a1e(%rip), %rsi     # 0xa2d10
callq 0x41450
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 0x6a464
movq %rax, (%rsi)
addq $0x8, 0x20(%rbx)
jmp 0x6a519
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 0x40f80
movq 0x48(%rsp), %rdi
movq %rax, %rsi
callq 0x3fbc0
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x6a519
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x40880
jmp 0x6a519
movq (%r13), %rdi
movq %r15, (%rsp)
movw $0x6469, 0x10(%rsp)     # imm = 0x6469
movq $0x2, 0x8(%rsp)
movb $0x0, 0x12(%rsp)
movq %rsp, %rsi
callq 0x40f80
movq %r12, %rdi
movq %rax, %rsi
movl $0x8, %edx
callq 0x41c90
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x6a3df
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x40880
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 0x6a443
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x40880
movq %r12, %rdi
movq 0x388c3(%rip), %rsi     # 0xa2d10
callq 0x41450
leaq 0xe0(%rsp), %rdi
callq 0x3f730
jmp 0x6a519
movq 0x60(%rsp), %rdi
movq %r12, %rdx
callq 0x41ba0
jmp 0x6a519
movl $0x20, %edi
callq 0x40810
movq %rax, %r14
movq 0x58(%rsp), %rax
movq %rax, (%r14)
movq (%r13), %rsi
movq %r14, %rdi
movq 0x28(%rsp), %rdx
callq 0x407b0
movq %r14, 0x68(%rsp)
movq 0x30(%rsp), %r14
movq 0x40(%rsp), %rdi
movq %r12, %rsi
callq 0x40dc0
jmp 0x6a519
cmpq $0x0, (%rax,%r15,8)
jne 0x6a56e
movq %r14, (%rax,%r15,8)
leaq 0x10(%rsp), %r15
jmp 0x6a514
movl $0x20, %edi
callq 0x40810
movq %rax, %r14
movq 0x50(%rsp), %rax
movq %rax, (%r14)
movq (%r13), %rsi
movq %r14, %rdi
movq 0x28(%rsp), %rdx
callq 0x406a0
movq %r14, 0x68(%rsp)
movq 0x40(%rsp), %rdi
movq %r12, %rsi
callq 0x40dc0
jmp 0x6a514
cmpq $0x0, 0x60(%rbx)
jne 0x6a5c5
movq %r14, 0x60(%rbx)
movq 0x30(%rsp), %r14
addq $0x8, %r13
cmpq 0x80(%r14), %r13
jne 0x6a19e
movq $0x0, (%rbx)
movq 0x30(%rbx), %rcx
movq 0x38(%rbx), %rdx
subq %rcx, %rdx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq $0x20, %rdx
jne 0x6a556
movq (%rcx), %rcx
cmpb $0xa, (%rcx)
jne 0x6a556
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 0x16f9f(%rip), %rsi     # 0x8152e
leaq 0x16faf(%rip), %rdx     # 0x81545
callq 0x3f8a0
movb $0x1, %bpl
leaq 0x68(%rsp), %rsi
movq %r14, %rdi
callq 0x3f890
xorl %ebp, %ebp
movq 0x388f4(%rip), %rsi     # 0xa2ea8
movq 0x3867d(%rip), %rdx     # 0xa2c38
movq %r14, %rdi
callq 0x41d70
jmp 0x6a61a
movl $0x20, %edi
callq 0x3fb00
movq %rax, %r14
leaq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
movq %rax, (%rdi)
leaq 0x16f31(%rip), %rsi     # 0x81517
leaq 0x16f40(%rip), %rdx     # 0x8152d
callq 0x3f8a0
movb $0x1, %bpl
leaq 0x68(%rsp), %rsi
movq %r14, %rdi
callq 0x3f890
xorl %ebp, %ebp
movq 0x3889d(%rip), %rsi     # 0xa2ea8
movq 0x38626(%rip), %rdx     # 0xa2c38
movq %r14, %rdi
callq 0x41d70
jmp 0x6a61e
jmp 0x6a647
movq %rax, %rbx
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x6a63d
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x40880
testb %bpl, %bpl
jne 0x6a64a
jmp 0x6a6db
movq %rax, %rbx
movq %r14, %rdi
callq 0x40090
jmp 0x6a6db
jmp 0x6a686
jmp 0x6a686
jmp 0x6a686
jmp 0x6a686
jmp 0x6a6c2
jmp 0x6a6c2
jmp 0x6a6c2
jmp 0x6a6c2
jmp 0x6a686
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x6a689
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x40880
jmp 0x6a689
jmp 0x6a6c2
movq %rax, %rbx
movq 0x38680(%rip), %rsi     # 0xa2d10
leaq 0x68(%rsp), %rdi
callq 0x41450
leaq 0xe0(%rsp), %rdi
callq 0x3f730
jmp 0x6a6db
movq %rax, %rbx
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x6a6db
movq 0x78(%rsp), %rsi
jmp 0x6a6d3
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x6a6db
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x40880
movq %rbx, %rdi
callq 0x41f10
nop