// File: /workspace/github_cpp_makefile_star2_O2/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:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1b8, %rsp            # imm = 0x1B8
movq %rsi, %rbx
movq %rdi, %r15
movq 0x10(%rdi), %rdi
movq %rdx, %rsi
callq 0x508c0
movq %rax, 0x8(%rsp)
leaq 0x2e550(%rip), %rsi     # 0x86afd
leaq 0x40(%rsp), %rdi
leaq 0x20(%rsp), %rdx
callq 0x515e0
addq $0x38, %r15
leaq 0x40(%rsp), %rsi
movq %rbx, 0x10(%rsp)
movq %rbx, %rdi
movq %r15, %rdx
callq 0x4dd90
leaq 0x40(%rsp), %r15
movq %r15, %rdi
callq 0x4e020
movq 0x8(%rsp), %rcx
movq 0x8(%rcx), %rax
subq (%rcx), %rax
pushq $0x18
popq %rcx
cqto
idivq %rcx
xorl %r12d, %r12d
testl %eax, %eax
movl $0x0, %ecx
movq %rax, 0x18(%rsp)
cmovgl %eax, %ecx
imulq $0x18, %rcx, %rbx
pushq $0x1
popq %rbp
leaq 0x20(%rsp), %r13
cmpq %r12, %rbx
je 0x5871a
movq 0x8(%rsp), %rax
movq (%rax), %r14
movq %r15, %rdi
callq 0x504a0
movq %r15, %rdi
leaq 0x2e1c4(%rip), %rsi     # 0x867fb
callq 0x4f5b0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movl 0x18(%rax,%rcx), %edx
andl $-0x4b, %edx
orl $0x2, %edx
movl %edx, 0x18(%rax,%rcx)
movq %rax, %rdi
movl %ebp, %esi
callq 0x51690
movq %rax, %rdi
leaq 0x300c8(%rip), %rsi     # 0x8872d
callq 0x4f5b0
movq (%r14,%r12), %rsi
addq $0x38, %rsi
movq %r15, %rdi
callq 0x4f1b0
movq %rax, %rdi
leaq 0x2e17e(%rip), %rsi     # 0x86802
callq 0x4f5b0
movq 0x40(%rsp), %rax
movq -0x18(%rax), %rax
movl 0x58(%rsp,%rax), %ecx
andl $-0x4b, %ecx
orl $0x8, %ecx
movl %ecx, 0x58(%rsp,%rax)
movq 0x8(%r14,%r12), %rsi
movq %r15, %rdi
callq 0x4e990
movq %rax, %rdi
pushq $0x3a
popq %rsi
callq 0x4fc10
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movl 0x18(%rax,%rcx), %edx
andl $-0x4b, %edx
orl $0x2, %edx
movl %edx, 0x18(%rax,%rcx)
movl 0x10(%r14,%r12), %esi
movq %rax, %rdi
callq 0x4e990
movq %rax, %rdi
pushq $0x22
popq %rsi
callq 0x4fc10
movq %r13, %rdi
leaq 0x48(%rsp), %rsi
callq 0x50fb0
movq 0x10(%rsp), %rdi
movq %r13, %rsi
callq 0x4f1b0
movq %r13, %rdi
callq 0x4e020
movq %r15, %rdi
callq 0x4d7c0
addq $0x18, %r12
incl %ebp
jmp 0x58614
cmpl $0x1, 0x18(%rsp)
jne 0x58758
leaq 0x2e0de(%rip), %rsi     # 0x86806
leaq 0x40(%rsp), %rdi
leaq 0x20(%rsp), %rdx
callq 0x515e0
movq 0x8(%rsp), %rax
movl 0x28(%rax), %edx
leaq 0x40(%rsp), %rsi
movq 0x10(%rsp), %rdi
callq 0x50e20
leaq 0x40(%rsp), %rdi
callq 0x4e020
addq $0x1b8, %rsp            # imm = 0x1B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x5876e
jmp 0x5877d
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x4e020
jmp 0x587a0
movq %rax, %rbx
jmp 0x587a0
jmp 0x58793
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x4e020
jmp 0x58796
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x4d7c0
movq %rbx, %rdi
callq 0x518c0