// File: /workspace/github_cpp_makefile_star2_O2/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
leaq 0xc(%rsp), %rax
orl $-0x1, (%rax)
leaq 0x4(%rdi), %rax
movq %rax, 0x10(%rsp)
xorl %r13d, %r13d
leaq 0x18(%rsp), %r12
xorl %ebp, %ebp
movq 0x40(%r14), %rdi
movq 0x48(%r14), %rax
subq %rdi, %rax
shrq $0x5, %rax
cltq
cmpq %rax, %rbp
jge 0x62d9e
addq %r13, %rdi
leaq 0x23a77(%rip), %rsi     # 0x8673e
callq 0x520f0
testb %al, %al
je 0x62d00
movq 0x58(%r14), %rsi
addq %r13, %rsi
movq %r12, %rdi
pushq $0x8
popq %rdx
callq 0x51500
movq 0x18(%rsp), %rax
movq -0x18(%rax), %rax
andl $-0x4b, 0x30(%rsp,%rax)
movq %r12, %rdi
movq %r15, %rsi
callq 0x51830
jmp 0x62d8a
movq 0x40(%r14), %rdi
addq %r13, %rdi
leaq 0x246c2(%rip), %rsi     # 0x873d0
callq 0x520f0
testb %al, %al
je 0x62d46
movq 0x58(%r14), %rsi
addq %r13, %rsi
movq %r12, %rdi
pushq $0x8
popq %rdx
callq 0x51500
movq 0x18(%rsp), %rax
movq -0x18(%rax), %rax
andl $-0x4b, 0x30(%rsp,%rax)
movq %r12, %rdi
movq 0x10(%rsp), %rsi
callq 0x51830
jmp 0x62d8a
movq 0x40(%r14), %rdi
addq %r13, %rdi
leaq 0x2470b(%rip), %rsi     # 0x8745f
callq 0x520f0
testb %al, %al
je 0x62d92
movq 0x58(%r14), %rsi
addq %r13, %rsi
movq %r12, %rdi
pushq $0x8
popq %rdx
callq 0x51500
movq 0x18(%rsp), %rax
movq -0x18(%rax), %rax
andl $-0x4b, 0x30(%rsp,%rax)
movq %r12, %rdi
leaq 0xc(%rsp), %rsi
callq 0x4e750
movq %r12, %rdi
callq 0x4e070
incq %rbp
addq $0x20, %r13
jmp 0x62ca3
movq 0x78(%r14), %rbp
movq (%rbp), %rdi
leaq 0x245d7(%rip), %rsi     # 0x87384
callq 0x520f0
testb %al, %al
je 0x62dbd
andq $0x0, 0x20(%r15)
jmp 0x62de5
movl $0xe0, %edi
callq 0x4f5d0
movq %rax, %r12
movq %rax, %rdi
callq 0x4d2a0
movq %r12, 0x20(%r15)
movq (%rbp), %rsi
movq %r12, %rdi
movq %rbx, %rdx
callq 0x4f630
addq $0x8, %r15
addq $0x8, %rbp
pushq $0x28
popq %r12
leaq 0x18(%rsp), %r13
cmpq 0x80(%r14), %rbp
je 0x62e38
movq %r12, %rdi
callq 0x4f5d0
andq $0x0, 0x20(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movq %rax, 0x18(%rsp)
movq (%rbp), %rsi
movq %rax, %rdi
movq %rbx, %rdx
callq 0x4fc50
movq %r15, %rdi
movq %r13, %rsi
callq 0x50780
addq $0x8, %rbp
jmp 0x62df6
movl 0xc(%rsp), %eax
addq $0x198, %rsp            # imm = 0x198
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movl $0xe0, %esi
movq %r12, %rdi
callq 0x4f670
jmp 0x62e71
jmp 0x62e64
jmp 0x62e64
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x4e070
movq %rbx, %rdi
callq 0x518c0
nop