// File: /workspace/github_cpp_makefile_star2_O2/jstaursky[P]hutch/src/Sleigh/slghsymbol.cc
// Function: OperandSymbol::restoreXml(Element const*, SleighBase*)
void OperandSymbol::restoreXml(const Element *el,SleighBase *trans)

{
  defexp = (PatternExpression *)0;
  triple = (TripleSymbol *)0;
  flags = 0;
  {
    istringstream s(el->getAttributeValue("index"));
    s.unsetf(ios::dec | ios::hex | ios::oct);
    s >> hand;
  }
  {
    istringstream s(el->getAttributeValue("off"));
    s.unsetf(ios::dec | ios::hex | ios::oct);
    s >> reloffset;
  }
  {
    istringstream s(el->getAttributeValue("base"));
    s.unsetf(ios::dec | ios::hex | ios::oct);
    s >> offsetbase;
  }
  {
    istringstream s(el->getAttributeValue("minlen"));
    s.unsetf(ios::dec | ios::hex | ios::oct);
    s >> minimumlength;
  }
  for(int4 i=0;i<el->getNumAttributes();++i) {
    if (el->getAttributeName(i) == "subsym") {
      uintm id;
      istringstream s(el->getAttributeValue(i));
      s.unsetf(ios::dec | ios::hex | ios::oct);
      s >> id;
      triple = (TripleSymbol *)trans->findSymbol(id);
    }
    else if (el->getAttributeName(i) == "code") {
      if (xml_readbool(el->getAttributeValue(i)))
	flags |= code_address;
    }
  }
  const List &list(el->getChildren());
  List::const_iterator iter;
  iter = list.begin();
  localexp = (OperandValue *)PatternExpression::restoreExpression(*iter,trans);
  localexp->layClaim();
  ++iter;
  if (iter != list.end()) {
    defexp = PatternExpression::restoreExpression(*iter,trans);
    defexp->layClaim();
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1b8, %rsp            # imm = 0x1B8
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, 0x48(%rdi)
andl $0x0, 0x58(%rdi)
leaq 0x149fe(%rip), %rsi     # 0x86726
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x515e0
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
callq 0x50230
leaq 0x38(%rsp), %rdi
pushq $0x8
popq %rdx
movq %rax, %rsi
callq 0x51500
leaq 0x8(%rsp), %rdi
callq 0x4e020
leaq 0x38(%rsp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
andl $-0x4b, 0x50(%rsp,%rax)
leaq 0x3c(%rbx), %rsi
callq 0x4e750
leaq 0x38(%rsp), %rdi
callq 0x4e070
leaq 0x16664(%rip), %rsi     # 0x883ed
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x515e0
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
callq 0x50230
leaq 0x38(%rsp), %rdi
pushq $0x8
popq %rdx
movq %rax, %rsi
callq 0x51500
leaq 0x8(%rsp), %rdi
callq 0x4e020
leaq 0x38(%rsp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
andl $-0x4b, 0x50(%rsp,%rax)
leaq 0x30(%rbx), %rsi
callq 0x51830
leaq 0x38(%rsp), %rdi
callq 0x4e070
leaq 0x14c9d(%rip), %rsi     # 0x86a87
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x515e0
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
callq 0x50230
leaq 0x38(%rsp), %rdi
pushq $0x8
popq %rdx
movq %rax, %rsi
callq 0x51500
leaq 0x8(%rsp), %rdi
callq 0x4e020
leaq 0x38(%rsp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
andl $-0x4b, 0x50(%rsp,%rax)
leaq 0x34(%rbx), %rsi
callq 0x4e750
leaq 0x38(%rsp), %rdi
callq 0x4e070
leaq 0x165a6(%rip), %rsi     # 0x883f1
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x515e0
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
callq 0x50230
leaq 0x38(%rsp), %rdi
pushq $0x8
popq %rdx
movq %rax, %rsi
callq 0x51500
movq %r14, 0x30(%rsp)
leaq 0x8(%rsp), %rdi
callq 0x4e020
leaq 0x38(%rsp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
andl $-0x4b, 0x50(%rsp,%rax)
leaq 0x38(%rbx), %rsi
callq 0x4e750
movq %rbx, 0x28(%rsp)
leaq 0x48(%rbx), %rbp
leaq 0x38(%rsp), %r12
movq %r12, %rdi
callq 0x4e070
xorl %ebx, %ebx
leaq 0x16539(%rip), %r13     # 0x883f8
xorl %r14d, %r14d
movq 0x40(%r15), %rdi
movq 0x48(%r15), %rax
subq %rdi, %rax
shrq $0x5, %rax
cltq
cmpq %rax, %r14
jge 0x71f76
addq %rbx, %rdi
movq %r13, %rsi
callq 0x520f0
testb %al, %al
je 0x71f3a
movq 0x58(%r15), %rsi
addq %rbx, %rsi
movq %r12, %rdi
pushq $0x8
popq %rdx
callq 0x51500
movq 0x38(%rsp), %rax
movq -0x18(%rax), %rax
andl $-0x4b, 0x50(%rsp,%rax)
movq %r12, %rdi
leaq 0x8(%rsp), %rsi
callq 0x51830
movl 0x8(%rsp), %eax
movq 0x30(%rsp), %rcx
movq 0x198(%rcx), %rcx
movq (%rcx,%rax,8), %rax
movq %rax, (%rbp)
movq %r12, %rdi
callq 0x4e070
jmp 0x71f6a
movq 0x40(%r15), %rdi
addq %rbx, %rdi
leaq 0x14d99(%rip), %rsi     # 0x86ce1
callq 0x520f0
testb %al, %al
je 0x71f6a
movq 0x58(%r15), %rdi
addq %rbx, %rdi
callq 0x4fb70
testb %al, %al
je 0x71f6a
movq 0x28(%rsp), %rax
orb $0x1, 0x58(%rax)
incq %r14
addq $0x20, %rbx
jmp 0x71ec2
movq 0x78(%r15), %rbx
movq (%rbx), %rdi
movq 0x30(%rsp), %r12
movq %r12, %rsi
callq 0x4f580
movq 0x28(%rsp), %r14
movq %rax, 0x40(%r14)
incl 0x8(%rax)
addq $0x8, %rbx
cmpq 0x80(%r15), %rbx
je 0x71fb5
movq (%rbx), %rdi
movq %r12, %rsi
callq 0x4f580
movq %rax, 0x50(%r14)
incl 0x8(%rax)
addq $0x1b8, %rsp            # imm = 0x1B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x71fef
jmp 0x71fd5
jmp 0x71fef
jmp 0x71fd5
jmp 0x71fef
jmp 0x71fd5
jmp 0x71fef
movq %rax, %rbx
jmp 0x71ffc
jmp 0x71fe0
jmp 0x71fe0
jmp 0x71fe0
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x4e020
jmp 0x71ffc
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x4e070
movq %rbx, %rdi
callq 0x518c0