// File: jstaursky[P]hutch/src/Sleigh/space.cc
// Function: JoinSpace::saveXmlAttributes(std::ostream&, unsigned long) const
void JoinSpace::saveXmlAttributes(ostream &s,uintb offset) const

{
  JoinRecord *rec = getManager()->findJoin(offset); // Record must already exist
  a_v(s,"space",getName());
  int4 num = rec->numPieces();
  for(int4 i=0;i<num;++i) {
    const VarnodeData &vdata( rec->getPiece(i) );
    ostringstream t;
    t << " piece" << dec << (i+1) << "=\"";
    t << vdata.space->getName() << ":0x";
    t << hex << vdata.offset << ':' << dec << vdata.size << '\"';
    s << t.str();
  }
  if (num == 1)
    a_v_i(s,"logicalsize",rec->getUnified().size);

}

// Assembly:
subq $0x2c8, %rsp            # imm = 0x2C8
movq %rdi, 0x2c0(%rsp)
movq %rsi, 0x2b8(%rsp)
movq %rdx, 0x2b0(%rsp)
movq 0x2c0(%rsp), %rdi
movq %rdi, 0x88(%rsp)
callq 0xd6150
movq %rax, %rdi
movq 0x2b0(%rsp), %rsi
callq 0xdcde0
movq %rax, 0x2a8(%rsp)
movq 0x2b8(%rsp), %rax
movq %rax, 0x90(%rsp)
leaq 0x287(%rsp), %rdi
movq %rdi, 0x98(%rsp)
callq 0xe0c80
movq 0x98(%rsp), %rdx
leaq 0x90399(%rip), %rsi     # 0x187b19
leaq 0x288(%rsp), %rdi
callq 0xe00a0
jmp 0xf778f
movq 0x88(%rsp), %rdi
callq 0xd06f0
movq %rax, 0x80(%rsp)
jmp 0xf77a6
movq 0x80(%rsp), %rdx
movq 0x90(%rsp), %rdi
leaq 0x288(%rsp), %rsi
callq 0xd18c0
jmp 0xf77c5
leaq 0x288(%rsp), %rdi
callq 0xd4550
leaq 0x287(%rsp), %rdi
callq 0xd8ec0
movq 0x2a8(%rsp), %rdi
callq 0xd2b90
movl %eax, 0x270(%rsp)
movl $0x0, 0x26c(%rsp)
movl 0x26c(%rsp), %eax
cmpl 0x270(%rsp), %eax
jge 0xf7a6d
movq 0x2a8(%rsp), %rdi
movl 0x26c(%rsp), %esi
callq 0xdd0e0
movq %rax, 0x260(%rsp)
leaq 0xe8(%rsp), %rdi
movq %rdi, 0x70(%rsp)
callq 0xdbe90
movq 0x70(%rsp), %rdi
leaq 0x9002f(%rip), %rsi     # 0x18787b
callq 0xd8300
movq %rax, 0x78(%rsp)
jmp 0xf7858
movq 0x78(%rsp), %rdi
movq 0xd0534(%rip), %rsi     # 0x1c7d98
callq 0xd1180
movq %rax, 0x68(%rsp)
jmp 0xf7870
movq 0x68(%rsp), %rdi
movl 0x26c(%rsp), %esi
incl %esi
callq 0xe03e0
movq %rax, 0x60(%rsp)
jmp 0xf788a
movq 0x60(%rsp), %rdi
leaq 0x91d67(%rip), %rsi     # 0x1895fd
callq 0xd8300
jmp 0xf789d
movq 0x260(%rsp), %rax
movq (%rax), %rdi
callq 0xd06f0
movq %rax, 0x58(%rsp)
jmp 0xf78b4
movq 0x58(%rsp), %rsi
leaq 0xe8(%rsp), %rdi
callq 0xd7350
movq %rax, 0x50(%rsp)
jmp 0xf78cd
movq 0x50(%rsp), %rdi
leaq 0x8ffa9(%rip), %rsi     # 0x187882
callq 0xd8300
jmp 0xf78e0
movq 0xd06e1(%rip), %rsi     # 0x1c7fc8
leaq 0xe8(%rsp), %rdi
callq 0xd1180
movq %rax, 0x48(%rsp)
jmp 0xf78fb
movq 0x48(%rsp), %rdi
movq 0x260(%rsp), %rax
movq 0x8(%rax), %rsi
callq 0xd0050
movq %rax, 0x40(%rsp)
jmp 0xf7918
movq 0x40(%rsp), %rdi
movl $0x3a, %esi
callq 0xda0c0
movq %rax, 0x38(%rsp)
jmp 0xf792e
movq 0x38(%rsp), %rdi
movq 0xd045e(%rip), %rsi     # 0x1c7d98
callq 0xd1180
movq %rax, 0x30(%rsp)
jmp 0xf7946
movq 0x30(%rsp), %rdi
movq 0x260(%rsp), %rax
movl 0x10(%rax), %esi
callq 0xdbce0
movq %rax, 0x28(%rsp)
jmp 0xf7962
movq 0x28(%rsp), %rdi
movl $0x22, %esi
callq 0xda0c0
jmp 0xf7973
movq 0x2b8(%rsp), %rax
movq %rax, 0x20(%rsp)
leaq 0xc8(%rsp), %rdi
leaq 0xe8(%rsp), %rsi
callq 0xd8840
jmp 0xf7997
movq 0x20(%rsp), %rdi
leaq 0xc8(%rsp), %rsi
callq 0xd7350
jmp 0xf79ab
leaq 0xc8(%rsp), %rdi
callq 0xd4550
leaq 0xe8(%rsp), %rdi
callq 0xd0160
movl 0x26c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x26c(%rsp)
jmp 0xf77fe
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x278(%rsp)
movl %eax, 0x274(%rsp)
jmp 0xf7a12
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x278(%rsp)
movl %eax, 0x274(%rsp)
leaq 0x288(%rsp), %rdi
callq 0xd4550
leaq 0x287(%rsp), %rdi
callq 0xd8ec0
jmp 0xf7b51
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x278(%rsp)
movl %eax, 0x274(%rsp)
jmp 0xf7a5b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x278(%rsp)
movl %eax, 0x274(%rsp)
leaq 0xc8(%rsp), %rdi
callq 0xd4550
leaq 0xe8(%rsp), %rdi
callq 0xd0160
jmp 0xf7b51
cmpl $0x1, 0x270(%rsp)
jne 0xf7b49
movq 0x2b8(%rsp), %rax
movq %rax, 0x10(%rsp)
leaq 0xa7(%rsp), %rdi
movq %rdi, 0x18(%rsp)
callq 0xe0c80
movq 0x18(%rsp), %rdx
leaq 0x8fde0(%rip), %rsi     # 0x187886
leaq 0xa8(%rsp), %rdi
callq 0xe00a0
jmp 0xf7ab5
movq 0x2a8(%rsp), %rdi
callq 0xd20e0
movq %rax, 0x8(%rsp)
jmp 0xf7ac9
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rax
movl 0x10(%rax), %eax
movl %eax, %edx
leaq 0xa8(%rsp), %rsi
callq 0xde2b0
jmp 0xf7ae7
leaq 0xa8(%rsp), %rdi
callq 0xd4550
leaq 0xa7(%rsp), %rdi
callq 0xd8ec0
jmp 0xf7b49
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x278(%rsp)
movl %eax, 0x274(%rsp)
jmp 0xf7b3a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x278(%rsp)
movl %eax, 0x274(%rsp)
leaq 0xa8(%rsp), %rdi
callq 0xd4550
leaq 0xa7(%rsp), %rdi
callq 0xd8ec0
jmp 0xf7b51
addq $0x2c8, %rsp            # imm = 0x2C8
retq
movq 0x278(%rsp), %rdi
callq 0xe0be0
nop