// File: jstaursky[P]hutch/src/Sleigh/translate.cc
// Function: AddrSpaceManager::restoreXmlSpace(Element const*, Translate const*)
AddrSpace *AddrSpaceManager::restoreXmlSpace(const Element *el,const Translate *trans)

{
  AddrSpace *res;
  const string &tp(el->getName());
  if (tp == "space_base")
    res = new SpacebaseSpace(this,trans);
  else if (tp == "space_unique")
    res = new UniqueSpace(this,trans);
  else if (tp == "space_other")
    res = new OtherSpace(this,trans);
  else if (tp == "space_overlay")
    res = new OverlaySpace(this,trans);
  else
    res = new AddrSpace(this,trans,IPTR_PROCESSOR);

  res->restoreXml(el);
  return res;
}

// Assembly:
subq $0x68, %rsp
movq %rdi, 0x60(%rsp)
movq %rsi, 0x58(%rsp)
movq %rdx, 0x50(%rsp)
movq 0x60(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x58(%rsp), %rdi
callq 0xcea10
movq %rax, 0x40(%rsp)
movq 0x40(%rsp), %rdi
leaq 0x8c535(%rip), %rsi     # 0x187a9d
callq 0xe30f0
testb $0x1, %al
jne 0xfb573
jmp 0xfb5ca
movl $0xb0, %edi
callq 0xd8380
movq 0x28(%rsp), %rsi
movq %rax, %rdi
movq %rdi, %rax
movq %rax, 0x20(%rsp)
movq 0x50(%rsp), %rdx
callq 0xdf580
jmp 0xfb599
movq 0x20(%rsp), %rax
movq %rax, 0x48(%rsp)
jmp 0xfb767
movq 0x20(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x38(%rsp)
movl %eax, 0x34(%rsp)
movl $0xb0, %esi
callq 0xd8620
jmp 0xfb781
movq 0x40(%rsp), %rdi
leaq 0x8c298(%rip), %rsi     # 0x18786e
callq 0xe30f0
testb $0x1, %al
jne 0xfb5e1
jmp 0xfb638
movl $0x70, %edi
callq 0xd8380
movq 0x28(%rsp), %rsi
movq %rax, %rdi
movq %rdi, %rax
movq %rax, 0x18(%rsp)
movq 0x50(%rsp), %rdx
callq 0xd5010
jmp 0xfb607
movq 0x18(%rsp), %rax
movq %rax, 0x48(%rsp)
jmp 0xfb765
movq 0x18(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x38(%rsp)
movl %eax, 0x34(%rsp)
movl $0x70, %esi
callq 0xd8620
jmp 0xfb781
movq 0x40(%rsp), %rdi
leaq 0x8c21d(%rip), %rsi     # 0x187861
callq 0xe30f0
testb $0x1, %al
jne 0xfb64f
jmp 0xfb6a6
movl $0x70, %edi
callq 0xd8380
movq 0x28(%rsp), %rsi
movq %rax, %rdi
movq %rdi, %rax
movq %rax, 0x10(%rsp)
movq 0x50(%rsp), %rdx
callq 0xd4a30
jmp 0xfb675
movq 0x10(%rsp), %rax
movq %rax, 0x48(%rsp)
jmp 0xfb763
movq 0x10(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x38(%rsp)
movl %eax, 0x34(%rsp)
movl $0x70, %esi
callq 0xd8620
jmp 0xfb781
movq 0x40(%rsp), %rdi
leaq 0x8c2ad(%rip), %rsi     # 0x18795f
callq 0xe30f0
testb $0x1, %al
jne 0xfb6bd
jmp 0xfb70e
movl $0x78, %edi
callq 0xd8380
movq 0x28(%rsp), %rsi
movq %rax, %rdi
movq %rdi, %rax
movq %rax, 0x8(%rsp)
movq 0x50(%rsp), %rdx
callq 0xddf50
jmp 0xfb6e3
movq 0x8(%rsp), %rax
movq %rax, 0x48(%rsp)
jmp 0xfb761
movq 0x8(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x38(%rsp)
movl %eax, 0x34(%rsp)
movl $0x78, %esi
callq 0xd8620
jmp 0xfb781
movl $0x70, %edi
callq 0xd8380
movq 0x28(%rsp), %rsi
movq %rax, %rdi
movq %rdi, %rax
movq %rax, (%rsp)
movq 0x50(%rsp), %rdx
movl $0x1, %ecx
callq 0xd0bd0
jmp 0xfb738
movq (%rsp), %rax
movq %rax, 0x48(%rsp)
jmp 0xfb761
movq (%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x38(%rsp)
movl %eax, 0x34(%rsp)
movl $0x70, %esi
callq 0xd8620
jmp 0xfb781
jmp 0xfb763
jmp 0xfb765
jmp 0xfb767
movq 0x48(%rsp), %rdi
movq 0x58(%rsp), %rsi
movq (%rdi), %rax
callq *0x68(%rax)
movq 0x48(%rsp), %rax
addq $0x68, %rsp
retq
movq 0x38(%rsp), %rdi
callq 0xe0be0
nopl (%rax,%rax)