// File: /workspace/github_cpp_makefile_star2_O2/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 $0x1c8, %rsp            # imm = 0x1C8
movq %rcx, 0x30(%rsp)
movq %rsi, %r13
movq %rdi, %rbx
movq %rdx, 0x40(%rdi)
leaq 0x13f8f(%rip), %rsi     # 0x88746
leaq 0x10(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0x515e0
leaq 0x10(%rsp), %rsi
movq %r13, %rdi
callq 0x50230
leaq 0x48(%rsp), %rdi
pushq $0x8
popq %rdx
movq %rax, %rsi
callq 0x51500
leaq 0x10(%rsp), %rdi
callq 0x4e020
leaq 0x48(%rsp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
andl $-0x4b, 0x60(%rsp,%rax)
leaq 0x30(%rbx), %rsi
callq 0x4e750
leaq 0x48(%rsp), %rdi
callq 0x4e070
leaq 0x13f35(%rip), %rsi     # 0x8874d
leaq 0x48(%rsp), %rdi
leaq 0x10(%rsp), %rdx
callq 0x515e0
leaq 0x48(%rsp), %rsi
movq %r13, %rdi
callq 0x50230
movq %rax, %rdi
callq 0x4fb70
movb %al, 0x34(%rbx)
leaq 0x48(%rsp), %rdi
callq 0x4e020
leaq 0x12fc5(%rip), %rsi     # 0x87815
leaq 0x10(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0x515e0
leaq 0x10(%rsp), %rsi
movq %r13, %rdi
callq 0x50230
leaq 0x48(%rsp), %rdi
pushq $0x8
popq %rdx
movq %rax, %rsi
callq 0x51500
leaq 0x10(%rsp), %rdi
callq 0x4e020
leaq 0x48(%rsp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
andl $-0x4b, 0x60(%rsp,%rax)
leaq 0x38(%rbx), %rsi
callq 0x4e750
leaq 0x48(%rsp), %rdi
callq 0x4e070
leaq 0x17ebc(%rip), %rsi     # 0x8c76d
leaq 0x10(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0x515e0
leaq 0x10(%rsp), %rsi
movq %r13, %rdi
callq 0x50230
leaq 0x48(%rsp), %rdi
pushq $0x8
popq %rdx
movq %rax, %rsi
callq 0x51500
leaq 0x10(%rsp), %rdi
callq 0x4e020
leaq 0x48(%rsp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
andl $-0x4b, 0x60(%rsp,%rax)
leaq 0x3c(%rbx), %rsi
callq 0x4e750
leaq 0x48(%rsp), %r12
movq %r12, %rdi
callq 0x4e070
movq 0x78(%r13), %r15
leaq 0x18(%rbx), %rax
movq %rax, 0x38(%rsp)
leaq 0x13e33(%rip), %r14     # 0x88755
leaq 0x10(%rsp), %rbp
movq %r13, 0x40(%rsp)
cmpq 0x80(%r13), %r15
je 0x74a50
movq (%r15), %rdi
movq %r14, %rsi
callq 0x520f0
testb %al, %al
je 0x749f9
movq %rbp, %r14
movq %rbx, %r13
movq (%r15), %rbx
movq %rbp, %rdi
leaq 0x12391(%rip), %rsi     # 0x86cf0
leaq 0xf(%rsp), %rdx
callq 0x515e0
movq %rbx, %rdi
movq %r14, %rbp
movq %r14, %rsi
callq 0x50230
movq %r12, %rbx
movq %r12, %rdi
movq %rax, %rsi
pushq $0x8
popq %rdx
callq 0x51500
movq %rbp, %rdi
callq 0x4e020
movq 0x48(%rsp), %rax
movq -0x18(%rax), %rax
andl $-0x4b, 0x60(%rsp,%rax)
movq %rbx, %rdi
leaq 0x8(%rsp), %rsi
callq 0x51830
movl 0x8(%rsp), %eax
movq 0x30(%rsp), %rcx
movq 0x40(%rcx), %rcx
movq (%rcx,%rax,8), %rbx
movq (%r15), %rax
movq 0x78(%rax), %rax
movq (%rax), %rdi
callq 0x520b0
movq %rax, 0x10(%rsp)
movq %rbx, 0x18(%rsp)
movq %r13, %rbx
movq %r13, %rdi
movq %rbp, %rsi
callq 0x4f6b0
movq %r12, %rdi
callq 0x4e070
leaq 0x13d63(%rip), %r14     # 0x88755
movq 0x40(%rsp), %r13
jmp 0x74a47
movq (%r15), %rdi
leaq 0x13cfb(%rip), %rsi     # 0x886fe
callq 0x520f0
testb %al, %al
je 0x74a47
pushq $0x48
popq %rdi
callq 0x4f5d0
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x20(%rax)
movq %rax, 0x48(%rsp)
movq (%r15), %rsi
movq %rax, %rdi
movq %rbx, %rdx
movq 0x30(%rsp), %rcx
callq 0x50060
movq 0x38(%rsp), %rdi
movq %r12, %rsi
callq 0x4d2b0
addq $0x8, %r15
jmp 0x7492c
addq $0x1c8, %rsp            # imm = 0x1C8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x74a96
jmp 0x74a80
jmp 0x74a96
jmp 0x74a80
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
jmp 0x74a8f
jmp 0x74a80
jmp 0x74a96
jmp 0x74a80
jmp 0x74a87
jmp 0x74a87
jmp 0x74a87
movq %rax, %rbx
jmp 0x74aa3
jmp 0x74a96
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x4e020
jmp 0x74aa3
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x4e070
movq %rbx, %rdi
callq 0x518c0
nop