// File: /workspace/github_cpp_makefile_star2_O1/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 0x41410
movq %rax, 0x8(%rsp)
leaq 0x50(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x35637(%rip), %rsi     # 0x7fb1d
leaq 0x35635(%rip), %rdx     # 0x7fb22
leaq 0x40(%rsp), %rdi
callq 0x3f8a0
leaq 0x10(%rsp), %rsi
movb $0x20, (%rsi)
movl $0x1, %edx
movq %rbx, %rdi
callq 0x40b80
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %rdx
movq %rax, %rdi
callq 0x40b80
leaq 0x37233(%rip), %rsi     # 0x81758
movl $0x2, %edx
movq %rax, %rdi
callq 0x40b80
movq 0x38(%r15), %rsi
movq %rbx, %rdi
callq 0x3f3d0
leaq 0x370a2(%rip), %rsi     # 0x815e7
movl $0x1, %edx
movq %rbx, %rdi
callq 0x40b80
movq %rbx, 0x38(%rsp)
movq 0x40(%rsp), %rdi
cmpq %r14, %rdi
je 0x4a56e
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x40870
movq 0x8(%rsp), %rcx
movq 0x8(%rcx), %rax
subq (%rcx), %rax
sarq $0x3, %rax
movabsq $-0x5555555555555555, %rcx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rax, %rcx
movq %rcx, 0x30(%rsp)
testl %ecx, %ecx
jle 0x4a713
movq 0x30(%rsp), %r15
andl $0x7fffffff, %r15d      # imm = 0x7FFFFFFF
movl $0x10, %r14d
xorl %r13d, %r13d
leaq 0x40(%rsp), %rbp
leaq 0x10(%rsp), %r12
movq 0x8(%rsp), %rax
movq (%rax), %rbx
movq %rbp, %rdi
callq 0x41110
movl $0x6, %edx
movq %rbp, %rdi
leaq 0x35224(%rip), %rsi     # 0x7f7fb
callq 0x40b80
movq 0x40(%rsp), %rax
movq -0x18(%rax), %rax
movl 0x58(%rsp,%rax), %ecx
andl $-0x4b, %ecx
orl $0x2, %ecx
movl %ecx, 0x58(%rsp,%rax)
incq %r13
movq %rbp, %rdi
movl %r13d, %esi
callq 0x41da0
movl $0x2, %edx
movq %rax, %rdi
leaq 0x37148(%rip), %rsi     # 0x81758
callq 0x40b80
movq -0x10(%rbx,%r14), %rax
movq 0x38(%rax), %rsi
movq 0x40(%rax), %rdx
movq %rbp, %rdi
callq 0x40b80
movl $0x3, %edx
movq %rax, %rdi
leaq 0x351c9(%rip), %rsi     # 0x7f802
callq 0x40b80
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(%rbx,%r14), %rsi
movq %rbp, %rdi
callq 0x3ffb0
movb $0x3a, 0x10(%rsp)
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x40b80
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movl 0x18(%rax,%rcx), %edx
andl $-0x4b, %edx
orl $0x2, %edx
movl %edx, 0x18(%rax,%rcx)
movl (%rbx,%r14), %esi
movq %rax, %rdi
callq 0x3ffb0
movb $0x22, 0x10(%rsp)
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x40b80
movq %r12, %rdi
leaq 0x48(%rsp), %rsi
callq 0x418b0
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq 0x38(%rsp), %rdi
callq 0x40b80
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x4a6ea
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x40870
movq %rbp, %rdi
movq 0x5868c(%rip), %rsi     # 0xa2d80
callq 0x3fc30
leaq 0xb0(%rsp), %rdi
callq 0x3f730
addq $0x18, %r14
cmpq %r13, %r15
jne 0x4a5b8
cmpl $0x1, 0x30(%rsp)
jne 0x4a7d2
leaq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %r15
movq %r15, (%rdi)
leaq 0x350d4(%rip), %rsi     # 0x7f806
leaq 0x350d8(%rip), %rdx     # 0x7f811
callq 0x3f8a0
movq 0x8(%rsp), %rax
movl 0x28(%rax), %r14d
leaq 0x10(%rsp), %rsi
movb $0x20, (%rsi)
movl $0x1, %edx
movq 0x38(%rsp), %rdi
callq 0x40b80
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %rdx
movq %rax, %rdi
callq 0x40b80
movq %rax, %rbx
leaq 0x36fde(%rip), %rsi     # 0x81758
movl $0x2, %edx
movq %rax, %rdi
callq 0x40b80
movq (%rbx), %rax
movq -0x18(%rax), %rax
movl 0x18(%rbx,%rax), %ecx
andl $-0x4b, %ecx
orl $0x2, %ecx
movl %ecx, 0x18(%rbx,%rax)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x406f0
leaq 0x36e39(%rip), %rsi     # 0x815e7
movl $0x1, %edx
movq %rax, %rdi
callq 0x40b80
movq 0x40(%rsp), %rdi
cmpq %r15, %rdi
je 0x4a7d2
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x40870
addq $0x1b8, %rsp            # imm = 0x1B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x4a7e6
movq %rax, %rbx
jmp 0x4a85a
movq %rax, %rbx
movq 0x40(%rsp), %rdi
cmpq %r15, %rdi
jne 0x4a807
jmp 0x4a85a
movq %rax, %rbx
movq 0x40(%rsp), %rdi
cmpq %r14, %rdi
je 0x4a85a
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x40870
jmp 0x4a85a
jmp 0x4a839
movq %rax, %rbx
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x4a83c
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x40870
jmp 0x4a83c
movq %rax, %rbx
movq 0x5853d(%rip), %rsi     # 0xa2d80
leaq 0x40(%rsp), %rdi
callq 0x3fc30
leaq 0xb0(%rsp), %rdi
callq 0x3f730
movq %rbx, %rdi
callq 0x41f00