// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/semantics.cc
// Function: ConstructTpl::restoreXml(Element const*, AddrSpaceManager const*)
int4 ConstructTpl::restoreXml(const Element *el,const AddrSpaceManager *manage)

{
  int4 sectionid = -1;
  for(int4 i=0;i<el->getNumAttributes();++i) {
    if (el->getAttributeName(i)=="delay") {
      istringstream s(el->getAttributeValue(i));
      s.unsetf(ios::dec | ios::hex | ios::oct);
      s >> delayslot;
    }
    else if (el->getAttributeName(i)=="labels") {
      istringstream s(el->getAttributeValue(i));
      s.unsetf(ios::dec | ios::hex | ios::oct);
      s >> numlabels;
    }
    else if (el->getAttributeName(i)=="section") {
      istringstream s(el->getAttributeValue(i));
      s.unsetf(ios::dec | ios::hex | ios::oct);
      s >> sectionid;
    }
  }
  const List &list(el->getChildren());
  List::const_iterator iter;
  iter = list.begin();
  if ((*iter)->getName() == "null")
    result = (HandleTpl *)0;
  else {
    result = new HandleTpl();
    result->restoreXml(*iter,manage);
  }
  ++iter;
  while(iter != list.end()) {
    OpTpl *op = new OpTpl();
    op->restoreXml(*iter,manage);
    vec.push_back(op);
    ++iter;
  }
  return sectionid;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x198, %rsp            # imm = 0x198
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movl $0xffffffff, 0xc(%rsp)  # imm = 0xFFFFFFFF
movq 0x40(%rsi), %rdi
movq 0x48(%rsi), %rax
subq %rdi, %rax
shrq $0x5, %rax
testl %eax, %eax
jle 0x56bff
leaq 0x4(%r15), %rax
movq %rax, 0x10(%rsp)
xorl %r13d, %r13d
leaq 0x18(%rsp), %r12
xorl %ebp, %ebp
addq %r13, %rdi
leaq 0x28c46(%rip), %rsi     # 0x7f73e
callq 0x3f590
testl %eax, %eax
je 0x56b64
movq 0x40(%r14), %rdi
addq %r13, %rdi
leaq 0x298e1(%rip), %rsi     # 0x803f0
callq 0x3f590
testl %eax, %eax
je 0x56b93
movq 0x40(%r14), %rdi
addq %r13, %rdi
leaq 0x29959(%rip), %rsi     # 0x8047f
callq 0x3f590
testl %eax, %eax
jne 0x56bde
movq 0x58(%r14), %rsi
addq %r13, %rsi
movq %r12, %rdi
movl $0x8, %edx
callq 0x41c80
movq 0x18(%rsp), %rax
movq -0x18(%rax), %rax
andl $-0x4b, 0x30(%rsp,%rax)
movq %r12, %rdi
leaq 0xc(%rsp), %rsi
callq 0x3fe80
jmp 0x56bc2
movq 0x58(%r14), %rsi
addq %r13, %rsi
movq %r12, %rdi
movl $0x8, %edx
callq 0x41c80
movq 0x18(%rsp), %rax
movq -0x18(%rax), %rax
andl $-0x4b, 0x30(%rsp,%rax)
movq %r12, %rdi
movq %r15, %rsi
callq 0x41eb0
jmp 0x56bc2
movq 0x58(%r14), %rsi
addq %r13, %rsi
movq %r12, %rdi
movl $0x8, %edx
callq 0x41c80
movq 0x18(%rsp), %rax
movq -0x18(%rax), %rax
andl $-0x4b, 0x30(%rsp,%rax)
movq %r12, %rdi
movq 0x10(%rsp), %rsi
callq 0x41eb0
movq %r12, %rdi
movq 0x4c144(%rip), %rsi     # 0xa2d10
callq 0x41440
leaq 0x90(%rsp), %rdi
callq 0x3f730
incq %rbp
movq 0x40(%r14), %rdi
movq 0x48(%r14), %rax
subq %rdi, %rax
shrq $0x5, %rax
cltq
addq $0x20, %r13
cmpq %rax, %rbp
jl 0x56aee
movq 0x78(%r14), %rbp
movq (%rbp), %rdi
leaq 0x29796(%rip), %rsi     # 0x803a4
callq 0x3f590
testl %eax, %eax
je 0x56c7a
movl $0xe0, %edi
callq 0x40800
xorl %ecx, %ecx
movl %ecx, (%rax)
movq %rcx, 0x10(%rax)
movl %ecx, 0x20(%rax)
movq %rcx, 0x30(%rax)
movl %ecx, 0x40(%rax)
movq %rcx, 0x50(%rax)
movl %ecx, 0x60(%rax)
movq %rcx, 0x70(%rax)
movl %ecx, 0x80(%rax)
movq %rcx, 0x90(%rax)
movl %ecx, 0xa0(%rax)
movq %rcx, 0xb0(%rax)
movl %ecx, 0xc0(%rax)
movq %rcx, 0xd0(%rax)
movq %rax, 0x20(%r15)
movq (%rbp), %rsi
movq %rax, %rdi
movq %rbx, %rdx
callq 0x40830
jmp 0x56c82
movq $0x0, 0x20(%r15)
addq $0x8, %rbp
cmpq 0x80(%r14), %rbp
je 0x56cf6
leaq 0x8(%r15), %r12
leaq 0x18(%rsp), %r13
movl $0x28, %edi
callq 0x40800
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movq $0x0, 0x20(%rax)
movq %rax, 0x18(%rsp)
movq (%rbp), %rsi
movq %rax, %rdi
movq %rbx, %rdx
callq 0x40c20
movq 0x10(%r15), %rsi
cmpq 0x18(%r15), %rsi
je 0x56cde
movq 0x18(%rsp), %rax
movq %rax, (%rsi)
addq $0x8, 0x10(%r15)
jmp 0x56ce9
movq %r12, %rdi
movq %r13, %rdx
callq 0x3f150
addq $0x8, %rbp
cmpq 0x80(%r14), %rbp
jne 0x56c98
movl 0xc(%rsp), %eax
addq $0x198, %rsp            # imm = 0x198
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x56d10
jmp 0x56d10
movq %rax, %rbx
movq 0x4bff6(%rip), %rsi     # 0xa2d10
leaq 0x18(%rsp), %rdi
callq 0x41440
leaq 0x90(%rsp), %rdi
callq 0x3f730
movq %rbx, %rdi
callq 0x41f00
nop