// File: /workspace/github_cpp_makefile_star2_O1/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 0x159d1(%rip), %rsi     # 0x81771
leaq 0x159d0(%rip), %rdx     # 0x81777
movq %rsp, %rdi
callq 0x3f8a0
movq %rsp, %rsi
movq %r14, %rdi
callq 0x40f70
leaq 0x38(%rsp), %rdi
movq %rax, %rsi
movl $0x8, %edx
callq 0x41c80
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x6bde7
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x40870
leaq 0x38(%rsp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
andl $-0x4b, 0x50(%rsp,%rax)
leaq 0x30(%r15), %rsi
callq 0x3fe80
movq 0x36f08(%rip), %rsi     # 0xa2d10
leaq 0x38(%rsp), %rdi
callq 0x41440
leaq 0xb0(%rsp), %rdi
callq 0x3f730
leaq 0x48(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x15948(%rip), %rsi     # 0x81778
leaq 0x15948(%rip), %rdx     # 0x8177f
leaq 0x38(%rsp), %rdi
callq 0x3f8a0
leaq 0x38(%rsp), %rsi
movq %r14, %rdi
callq 0x40f70
cmpq $0x0, 0x8(%rax)
je 0x6be6c
movq (%rax), %rax
movzbl (%rax), %ecx
movb $0x1, %al
cmpl $0x31, %ecx
je 0x6be6e
cmpl $0x74, %ecx
je 0x6be6e
cmpl $0x79, %ecx
je 0x6be6e
xorl %eax, %eax
movb %al, 0x34(%r15)
movq 0x38(%rsp), %rdi
cmpq %r12, %rdi
je 0x6be89
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x40870
movq %rsp, %rdi
leaq 0x10(%rsp), %rax
movq %rax, (%rdi)
leaq 0x1499a(%rip), %rsi     # 0x80835
leaq 0x14998(%rip), %rdx     # 0x8083a
callq 0x3f8a0
movq %rsp, %rsi
movq %r14, %rdi
callq 0x40f70
leaq 0x38(%rsp), %rdi
movq %rax, %rsi
movl $0x8, %edx
callq 0x41c80
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x6bedf
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x40870
leaq 0x38(%rsp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
andl $-0x4b, 0x50(%rsp,%rax)
leaq 0x38(%r15), %rsi
callq 0x3fe80
movq 0x36e10(%rip), %rsi     # 0xa2d10
leaq 0x38(%rsp), %rdi
callq 0x41440
leaq 0xb0(%rsp), %rdi
callq 0x3f730
movq %rsp, %rdi
leaq 0x10(%rsp), %rax
movq %rax, (%rdi)
leaq 0x19874(%rip), %rsi     # 0x8579d
leaq 0x19871(%rip), %rdx     # 0x857a1
callq 0x3f8a0
movq %rsp, %rsi
movq %r14, %rdi
callq 0x40f70
leaq 0x38(%rsp), %rdi
movq %rax, %rsi
movl $0x8, %edx
callq 0x41c80
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x6bf6d
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x40870
leaq 0x38(%rsp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
andl $-0x4b, 0x50(%rsp,%rax)
leaq 0x3c(%r15), %rsi
callq 0x3fe80
movq 0x36d82(%rip), %rsi     # 0xa2d10
leaq 0x38(%rsp), %rdi
callq 0x41440
leaq 0xb0(%rsp), %rdi
callq 0x3f730
movq 0x78(%r14), %r12
cmpq 0x80(%r14), %r12
je 0x6c14c
leaq 0x18(%r15), %rax
movq %rax, 0x30(%rsp)
movq %rsp, %rbx
leaq 0x38(%rsp), %r13
movq (%r12), %rdi
leaq 0x157ae(%rip), %rsi     # 0x81780
callq 0x3f590
testl %eax, %eax
je 0x6c044
movq (%r12), %rdi
leaq 0x15743(%rip), %rsi     # 0x81729
callq 0x3f590
testl %eax, %eax
jne 0x6c12a
movl $0x48, %edi
callq 0x40800
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x20(%rax)
movq %rax, 0x38(%rsp)
movq (%r12), %rsi
movq %rax, %rdi
movq %r15, %rdx
movq 0x28(%rsp), %rcx
callq 0x40e90
movq 0x20(%r15), %rsi
cmpq 0x28(%r15), %rsi
je 0x6c13d
movq 0x38(%rsp), %rax
movq %rax, (%rsi)
addq $0x8, 0x20(%r15)
jmp 0x6c12a
movq (%r12), %rbp
leaq 0x10(%rsp), %rax
movq %rax, (%rsp)
movq %rbx, %rdi
leaq 0x13cb5(%rip), %rsi     # 0x7fd10
leaq 0x13cb0(%rip), %rdx     # 0x7fd12
callq 0x3f8a0
movq %rbp, %rdi
movq %rbx, %rsi
callq 0x40f70
movq %r13, %rdi
movq %rax, %rsi
movl $0x8, %edx
callq 0x41c80
movq %rbx, %rbp
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x6c0a0
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x40870
movq 0x38(%rsp), %rax
movq -0x18(%rax), %rax
andl $-0x4b, 0x50(%rsp,%rax)
movq %r13, %rdi
leaq 0x24(%rsp), %rsi
callq 0x41eb0
movl 0x24(%rsp), %eax
movq 0x28(%rsp), %rcx
movq 0x40(%rcx), %rcx
movq (%rcx,%rax,8), %rbx
movq (%r12), %rax
movq 0x78(%rax), %rax
movq (%rax), %rdi
callq 0x42440
movq %rax, (%rsp)
movq %rbx, 0x8(%rsp)
movq 0x8(%r15), %rsi
cmpq 0x10(%r15), %rsi
je 0x6c100
movups (%rsp), %xmm0
movups %xmm0, (%rsi)
addq $0x10, 0x8(%r15)
movq %rbp, %rbx
jmp 0x6c10e
movq %r15, %rdi
movq %rbp, %rbx
movq %rbp, %rdx
callq 0x41650
movq %r13, %rdi
movq 0x36bf8(%rip), %rsi     # 0xa2d10
callq 0x41440
leaq 0xb0(%rsp), %rdi
callq 0x3f730
addq $0x8, %r12
cmpq 0x80(%r14), %r12
jne 0x6bfc7
jmp 0x6c14c
movq 0x30(%rsp), %rdi
movq %r13, %rdx
callq 0x3f930
jmp 0x6c12a
addq $0x1b8, %rsp            # imm = 0x1B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x6c18d
jmp 0x6c188
jmp 0x6c18d
jmp 0x6c188
movq %rax, %rbx
movq 0x38(%rsp), %rdi
cmpq %r12, %rdi
je 0x6c1ce
movq 0x48(%rsp), %rsi
jmp 0x6c1c6
jmp 0x6c188
jmp 0x6c18d
jmp 0x6c188
jmp 0x6c1b0
jmp 0x6c1b0
jmp 0x6c1b0
jmp 0x6c18d
movq %rax, %rbx
jmp 0x6c1ce
movq %rax, %rbx
movq 0x36b79(%rip), %rsi     # 0xa2d10
leaq 0x38(%rsp), %rdi
callq 0x41440
leaq 0xb0(%rsp), %rdi
callq 0x3f730
jmp 0x6c1ce
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x6c1ce
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x40870
movq %rbx, %rdi
callq 0x41f00