// File: /workspace/github_cpp_makefile_star2_O2/jstaursky[P]hutch/src/Sleigh/sleighbase.cc
// Function: SleighBase::saveXml(std::ostream&) const
void SleighBase::saveXml(ostream &s) const

{
  s << "<sleigh";
  a_v_i(s,"version",SLA_FORMAT_VERSION);
  a_v_b(s,"bigendian",isBigEndian());
  a_v_i(s,"align",alignment);
  a_v_u(s,"uniqbase",getUniqueBase());
  if (maxdelayslotbytes > 0)
    a_v_u(s,"maxdelay",maxdelayslotbytes);
  if (unique_allocatemask != 0)
    a_v_u(s,"uniqmask",unique_allocatemask);
  if (numSections != 0)
    a_v_u(s,"numsections",numSections);
  s << ">\n";

  s << "<spaces";
  a_v(s,"defaultspace",getDefaultSpace()->getName());
  s << ">\n";
  for(int4 i=0;i<numSpaces();++i) {
    AddrSpace *spc = getSpace(i);
    if (spc == (AddrSpace *)0) continue;
    if ((spc->getType()==IPTR_CONSTANT) || 
	(spc->getType()==IPTR_FSPEC)||
	(spc->getType()==IPTR_IOP)||
	(spc->getType()==IPTR_JOIN))
      continue;
    spc->saveXml(s);
  }
  s << "</spaces>\n";
  symtab.saveXml(s);
  s << "</sleigh>\n";
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x21bd2(%rip), %rsi     # 0x875bf
movq %rbx, %rdi
callq 0x4f5b0
leaq 0x21bcb(%rip), %rsi     # 0x875c7
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x515e0
leaq 0x8(%rsp), %rsi
pushq $0x2
popq %rdx
movq %rbx, %rdi
callq 0x50e20
leaq 0x8(%rsp), %rdi
callq 0x4e020
leaq 0x20d00(%rip), %rsi     # 0x8672c
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x515e0
movzbl 0x120(%r14), %edx
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x4da10
leaq 0x8(%rsp), %rdi
callq 0x4e020
leaq 0x21b6e(%rip), %rsi     # 0x875cf
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x515e0
movslq 0x128(%r14), %rdx
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x50e20
leaq 0x8(%rsp), %rdi
callq 0x4e020
leaq 0x21b40(%rip), %rsi     # 0x875d5
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x515e0
movl 0x124(%r14), %edx
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x4f410
leaq 0x8(%rsp), %rdi
callq 0x4e020
cmpl $0x0, 0x1d0(%r14)
je 0x65b00
leaq 0x21b0b(%rip), %rsi     # 0x875de
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x515e0
movl 0x1d0(%r14), %edx
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x4f410
leaq 0x8(%rsp), %rdi
callq 0x4e020
cmpl $0x0, 0x1d4(%r14)
je 0x65b3e
leaq 0x21ad6(%rip), %rsi     # 0x875e7
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x515e0
movl 0x1d4(%r14), %edx
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x4f410
leaq 0x8(%rsp), %rdi
callq 0x4e020
cmpl $0x0, 0x1d8(%r14)
je 0x65b7c
leaq 0x21aa1(%rip), %rsi     # 0x875f0
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x515e0
movl 0x1d8(%r14), %edx
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x4f410
leaq 0x8(%rsp), %rdi
callq 0x4e020
leaq 0x22c1b(%rip), %rsi     # 0x8879e
movq %rbx, %rdi
callq 0x4f5b0
leaq 0x21a6a(%rip), %rsi     # 0x875fc
movq %rbx, %rdi
callq 0x4f5b0
leaq 0x20ef9(%rip), %rsi     # 0x86a9a
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x515e0
movq 0xa0(%r14), %rdx
addq $0x38, %rdx
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x4dd90
leaq 0x8(%rsp), %rdi
callq 0x4e020
leaq 0x22bc5(%rip), %rsi     # 0x8879e
movq %rbx, %rdi
callq 0x4f5b0
xorl %r15d, %r15d
pushq $0x71
popq %rbp
movq 0x8(%r14), %rax
movq 0x10(%r14), %rcx
subq %rax, %rcx
shrq $0x3, %rcx
movslq %ecx, %rcx
cmpq %rcx, %r15
jge 0x65c24
movq (%rax,%r15,8), %rdi
testq %rdi, %rdi
je 0x65c14
movl 0x8(%rdi), %eax
cmpl $0x6, %eax
ja 0x65c19
btl %eax, %ebp
jae 0x65c19
incq %r15
jmp 0x65be7
movq (%rdi), %rax
movq %rbx, %rsi
callq *0x60(%rax)
jmp 0x65c14
leaq 0x219d9(%rip), %rsi     # 0x87604
movq %rbx, %rdi
callq 0x4f5b0
addq $0x198, %r14            # imm = 0x198
movq %r14, %rdi
movq %rbx, %rsi
callq 0x51be0
leaq 0x219c3(%rip), %rsi     # 0x8760f
movq %rbx, %rdi
callq 0x4f5b0
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
jmp 0x65c7b
jmp 0x65c8a
jmp 0x65c7b
jmp 0x65c8a
jmp 0x65c7b
jmp 0x65c8a
jmp 0x65c7b
jmp 0x65c8a
jmp 0x65c7b
jmp 0x65c8a
jmp 0x65c7b
jmp 0x65c8a
jmp 0x65c7b
jmp 0x65c8a
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x4e020
jmp 0x65c8d
movq %rax, %rbx
movq %rbx, %rdi
callq 0x518c0
nop