// File: /workspace/github_cpp_makefile_star2_O3/jstaursky[P]hutch/src/Sleigh/slghsymbol.cc
// Function: DecisionNode::restoreXml(Element const*, DecisionNode*, SubtableSymbol*)
void DecisionNode::restoreXml(const Element *el,DecisionNode *par,SubtableSymbol *sub)

{
  parent = par;
  {
    istringstream s(el->getAttributeValue("number"));
    s.unsetf(ios::dec | ios::hex | ios::oct);
    s >> num;
  }
  contextdecision = xml_readbool(el->getAttributeValue("context"));
  {
    istringstream s(el->getAttributeValue("start"));
    s.unsetf(ios::dec | ios::hex | ios::oct);
    s >> startbit;
  }
  {
    istringstream s(el->getAttributeValue("size"));
    s.unsetf(ios::dec | ios::hex | ios::oct);
    s >> bitsize;
  }
  const List &childlist(el->getChildren());
  List::const_iterator iter;
  iter = childlist.begin();
  while(iter != childlist.end()) {
    if ((*iter)->getName() == "pair") {
      Constructor *ct;
      DisjointPattern *pat;
      uintm id;
      istringstream s((*iter)->getAttributeValue("id"));
      s.unsetf(ios::dec | ios::hex | ios::oct);
      s >> id;
      ct = sub->getConstructor(id);
      pat = DisjointPattern::restoreDisjoint((*iter)->getChildren().front());
      //This increments num      addConstructorPair(pat,ct);
      list.push_back(pair<DisjointPattern *,Constructor *>(pat,ct));
      //delete pat;		// addConstructorPair makes its own copy
    }
    else if ((*iter)->getName() == "decision") {
      DecisionNode *subnode = new DecisionNode();
      subnode->restoreXml(*iter,this,sub);
      children.push_back(subnode);
    }
    ++iter;
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1b8, %rsp            # imm = 0x1B8
movq %rcx, 0x28(%rsp)
movq %rsi, %r14
movq %rdi, %r15
movq %rdx, 0x40(%rdi)
leaq 0x10(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x15cb3(%rip), %rsi     # 0x81771
leaq 0x15cb2(%rip), %rdx     # 0x81777
movq %rsp, %rdi
callq 0x3f8a0
movq %rsp, %rsi
movq %r14, %rdi
callq 0x40f80
leaq 0x38(%rsp), %rdi
movq %rax, %rsi
movl $0x8, %edx
callq 0x41c90
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x6bb05
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x40880
leaq 0x38(%rsp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
andl $-0x4b, 0x50(%rsp,%rax)
leaq 0x30(%r15), %rsi
callq 0x3fe80
movq 0x371ea(%rip), %rsi     # 0xa2d10
leaq 0x38(%rsp), %rdi
callq 0x41450
leaq 0xb0(%rsp), %rdi
callq 0x3f730
leaq 0x48(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x15c2a(%rip), %rsi     # 0x81778
leaq 0x15c2a(%rip), %rdx     # 0x8177f
leaq 0x38(%rsp), %rdi
callq 0x3f8a0
leaq 0x38(%rsp), %rsi
movq %r14, %rdi
callq 0x40f80
cmpq $0x0, 0x8(%rax)
je 0x6bb8a
movq (%rax), %rax
movzbl (%rax), %ecx
movb $0x1, %al
cmpl $0x31, %ecx
je 0x6bb8c
cmpl $0x74, %ecx
je 0x6bb8c
cmpl $0x79, %ecx
je 0x6bb8c
xorl %eax, %eax
movb %al, 0x34(%r15)
movq 0x38(%rsp), %rdi
cmpq %r12, %rdi
je 0x6bba7
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x40880
movq %rsp, %rdi
leaq 0x10(%rsp), %rax
movq %rax, (%rdi)
leaq 0x14c7c(%rip), %rsi     # 0x80835
leaq 0x14c7a(%rip), %rdx     # 0x8083a
callq 0x3f8a0
movq %rsp, %rsi
movq %r14, %rdi
callq 0x40f80
leaq 0x38(%rsp), %rdi
movq %rax, %rsi
movl $0x8, %edx
callq 0x41c90
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x6bbfd
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x40880
leaq 0x38(%rsp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
andl $-0x4b, 0x50(%rsp,%rax)
leaq 0x38(%r15), %rsi
callq 0x3fe80
movq 0x370f2(%rip), %rsi     # 0xa2d10
leaq 0x38(%rsp), %rdi
callq 0x41450
leaq 0xb0(%rsp), %rdi
callq 0x3f730
movq %rsp, %rdi
leaq 0x10(%rsp), %rax
movq %rax, (%rdi)
leaq 0x19b56(%rip), %rsi     # 0x8579d
leaq 0x19b53(%rip), %rdx     # 0x857a1
callq 0x3f8a0
movq %rsp, %rsi
movq %r14, %rdi
callq 0x40f80
leaq 0x38(%rsp), %rdi
movq %rax, %rsi
movl $0x8, %edx
callq 0x41c90
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x6bc8b
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x40880
leaq 0x38(%rsp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
andl $-0x4b, 0x50(%rsp,%rax)
leaq 0x3c(%r15), %rsi
callq 0x3fe80
movq 0x37064(%rip), %rsi     # 0xa2d10
leaq 0x38(%rsp), %rdi
callq 0x41450
leaq 0xb0(%rsp), %rdi
callq 0x3f730
movq 0x78(%r14), %r13
cmpq 0x80(%r14), %r13
je 0x6be6a
leaq 0x18(%r15), %rax
movq %rax, 0x30(%rsp)
movq %rsp, %rbx
leaq 0x38(%rsp), %r12
movq (%r13), %rdi
leaq 0x15a90(%rip), %rsi     # 0x81780
callq 0x3f590
testl %eax, %eax
je 0x6bd62
movq (%r13), %rdi
leaq 0x15a25(%rip), %rsi     # 0x81729
callq 0x3f590
testl %eax, %eax
jne 0x6be48
movl $0x48, %edi
callq 0x40810
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x20(%rax)
movq %rax, 0x38(%rsp)
movq (%r13), %rsi
movq %rax, %rdi
movq %r15, %rdx
movq 0x28(%rsp), %rcx
callq 0x40ea0
movq 0x20(%r15), %rsi
cmpq 0x28(%r15), %rsi
je 0x6be5b
movq 0x38(%rsp), %rax
movq %rax, (%rsi)
addq $0x8, 0x20(%r15)
jmp 0x6be48
movq (%r13), %rbp
leaq 0x10(%rsp), %rax
movq %rax, (%rsp)
movq %rbx, %rdi
leaq 0x13f97(%rip), %rsi     # 0x7fd10
leaq 0x13f92(%rip), %rdx     # 0x7fd12
callq 0x3f8a0
movq %rbp, %rdi
movq %rbx, %rsi
callq 0x40f80
movq %r12, %rdi
movq %rax, %rsi
movl $0x8, %edx
callq 0x41c90
movq %rbx, %rbp
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x6bdbe
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x40880
movq 0x38(%rsp), %rax
movq -0x18(%rax), %rax
andl $-0x4b, 0x50(%rsp,%rax)
movq %r12, %rdi
leaq 0x24(%rsp), %rsi
callq 0x41ec0
movl 0x24(%rsp), %eax
movq 0x28(%rsp), %rcx
movq 0x40(%rcx), %rcx
movq (%rcx,%rax,8), %rbx
movq (%r13), %rax
movq 0x78(%rax), %rax
movq (%rax), %rdi
callq 0x42450
movq %rax, (%rsp)
movq %rbx, 0x8(%rsp)
movq 0x8(%r15), %rsi
cmpq 0x10(%r15), %rsi
je 0x6be1e
movups (%rsp), %xmm0
movups %xmm0, (%rsi)
addq $0x10, 0x8(%r15)
movq %rbp, %rbx
jmp 0x6be2c
movq %r15, %rdi
movq %rbp, %rbx
movq %rbp, %rdx
callq 0x41660
movq %r12, %rdi
movq 0x36eda(%rip), %rsi     # 0xa2d10
callq 0x41450
leaq 0xb0(%rsp), %rdi
callq 0x3f730
addq $0x8, %r13
cmpq 0x80(%r14), %r13
jne 0x6bce5
jmp 0x6be6a
movq 0x30(%rsp), %rdi
movq %r12, %rdx
callq 0x3f930
jmp 0x6be48
addq $0x1b8, %rsp            # imm = 0x1B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x6beab
jmp 0x6bea6
jmp 0x6beab
jmp 0x6bea6
movq %rax, %rbx
movq 0x38(%rsp), %rdi
cmpq %r12, %rdi
je 0x6beec
movq 0x48(%rsp), %rsi
jmp 0x6bee4
jmp 0x6bea6
jmp 0x6beab
jmp 0x6bea6
jmp 0x6bece
jmp 0x6bece
jmp 0x6bece
jmp 0x6beab
movq %rax, %rbx
jmp 0x6beec
movq %rax, %rbx
movq 0x36e5b(%rip), %rsi     # 0xa2d10
leaq 0x38(%rsp), %rdi
callq 0x41450
leaq 0xb0(%rsp), %rdi
callq 0x3f730
jmp 0x6beec
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x6beec
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x40880
movq %rbx, %rdi
callq 0x41f10