// File: /workspace/github_cpp_makefile_star2_O3/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 0x56992
leaq 0x4(%r15), %rax
movq %rax, 0x10(%rsp)
xorl %r12d, %r12d
leaq 0x18(%rsp), %rbp
xorl %r13d, %r13d
addq %r12, %rdi
leaq 0x28eb3(%rip), %rsi     # 0x7f73e
callq 0x3f590
testl %eax, %eax
je 0x568f7
movq 0x40(%r14), %rdi
addq %r12, %rdi
leaq 0x29b4e(%rip), %rsi     # 0x803f0
callq 0x3f590
testl %eax, %eax
je 0x56926
movq 0x40(%r14), %rdi
addq %r12, %rdi
leaq 0x29bc6(%rip), %rsi     # 0x8047f
callq 0x3f590
testl %eax, %eax
jne 0x56971
movq 0x58(%r14), %rsi
addq %r12, %rsi
movq %rbp, %rdi
movl $0x8, %edx
callq 0x41c90
movq 0x18(%rsp), %rax
movq -0x18(%rax), %rax
andl $-0x4b, 0x30(%rsp,%rax)
movq %rbp, %rdi
leaq 0xc(%rsp), %rsi
callq 0x3fe80
jmp 0x56955
movq 0x58(%r14), %rsi
addq %r12, %rsi
movq %rbp, %rdi
movl $0x8, %edx
callq 0x41c90
movq 0x18(%rsp), %rax
movq -0x18(%rax), %rax
andl $-0x4b, 0x30(%rsp,%rax)
movq %rbp, %rdi
movq %r15, %rsi
callq 0x41ec0
jmp 0x56955
movq 0x58(%r14), %rsi
addq %r12, %rsi
movq %rbp, %rdi
movl $0x8, %edx
callq 0x41c90
movq 0x18(%rsp), %rax
movq -0x18(%rax), %rax
andl $-0x4b, 0x30(%rsp,%rax)
movq %rbp, %rdi
movq 0x10(%rsp), %rsi
callq 0x41ec0
movq %rbp, %rdi
movq 0x4c3b1(%rip), %rsi     # 0xa2d10
callq 0x41450
leaq 0x90(%rsp), %rdi
callq 0x3f730
incq %r13
movq 0x40(%r14), %rdi
movq 0x48(%r14), %rax
subq %rdi, %rax
shrq $0x5, %rax
cltq
addq $0x20, %r12
cmpq %rax, %r13
jl 0x56881
movq 0x78(%r14), %rbp
movq (%rbp), %rdi
leaq 0x29a03(%rip), %rsi     # 0x803a4
callq 0x3f590
testl %eax, %eax
je 0x56a0d
movl $0xe0, %edi
callq 0x40810
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 0x40840
jmp 0x56a15
movq $0x0, 0x20(%r15)
addq $0x8, %rbp
cmpq 0x80(%r14), %rbp
je 0x56a89
leaq 0x8(%r15), %r12
leaq 0x18(%rsp), %r13
movl $0x28, %edi
callq 0x40810
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 0x40c30
movq 0x10(%r15), %rsi
cmpq 0x18(%r15), %rsi
je 0x56a71
movq 0x18(%rsp), %rax
movq %rax, (%rsi)
addq $0x8, 0x10(%r15)
jmp 0x56a7c
movq %r12, %rdi
movq %r13, %rdx
callq 0x3f150
addq $0x8, %rbp
cmpq 0x80(%r14), %rbp
jne 0x56a2b
movl 0xc(%rsp), %eax
addq $0x198, %rsp            # imm = 0x198
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x56aa3
jmp 0x56aa3
movq %rax, %rbx
movq 0x4c263(%rip), %rsi     # 0xa2d10
leaq 0x18(%rsp), %rdi
callq 0x41450
leaq 0x90(%rsp), %rdi
callq 0x3f730
movq %rbx, %rdi
callq 0x41f10