// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/globalcontext.cc
// Function: ContextInternal::saveContext(std::ostream&, Address const&, unsigned int const*) const
void ContextInternal::saveContext(ostream &s,const Address &addr,
				  const uintm *vec) const
{
  s << "<context_pointset";
  addr.getSpace()->saveXmlAttributes(s,addr.getOffset() );
  s << ">\n";
  map<string,ContextBitRange>::const_iterator iter;
  for(iter=variables.begin();iter!=variables.end();++iter) {
    uintm val = (*iter).second.getValue(vec);
    s << "  <set";
    a_v(s,"name",(*iter).first);
    a_v_u(s,"val",val);
    s << "/>\n";
  }
  s << "</context_pointset>\n";
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rcx, 0x30(%rsp)
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r15
leaq 0x38da2(%rip), %rsi     # 0x7f1db
movl $0x11, %edx
movq %rbx, %rdi
callq 0x40b80
movq (%r14), %rdi
movq 0x8(%r14), %rdx
movq (%rdi), %rax
movq %rbx, %rsi
callq *0x38(%rax)
leaq 0x3b36c(%rip), %rsi     # 0x817c9
movl $0x2, %edx
movq %rbx, %rdi
callq 0x40b80
movq 0x28(%r15), %r12
addq $0x18, %r15
cmpq %r15, %r12
je 0x46612
leaq 0x20(%rsp), %r13
movslq 0x40(%r12), %rax
movq 0x30(%rsp), %rcx
movl (%rcx,%rax,4), %r14d
movb 0x4c(%r12), %cl
shrl %cl, %r14d
andl 0x50(%r12), %r14d
movl $0x6, %edx
movq %rbx, %rdi
leaq 0x38d43(%rip), %rsi     # 0x7f1ed
callq 0x40b80
movq %r13, 0x10(%rsp)
leaq 0x10(%rsp), %rdi
leaq 0x38b71(%rip), %rsi     # 0x7f031
leaq 0x38b6e(%rip), %rdx     # 0x7f035
callq 0x3f8a0
movb $0x20, 0xf(%rsp)
movl $0x1, %edx
movq %rbx, %rdi
leaq 0xf(%rsp), %rsi
callq 0x40b80
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %rax, %rdi
callq 0x40b80
movl $0x2, %edx
movq %rax, %rdi
leaq 0x3b254(%rip), %rsi     # 0x81758
callq 0x40b80
movq 0x20(%r12), %rsi
movq %rbx, %rdi
callq 0x3f3d0
movl $0x1, %edx
movq %rbx, %rdi
leaq 0x3b0c2(%rip), %rsi     # 0x815e7
callq 0x40b80
movq 0x10(%rsp), %rdi
cmpq %r13, %rdi
je 0x46541
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x40870
movq %r13, 0x10(%rsp)
leaq 0x10(%rsp), %rdi
leaq 0x38c5e(%rip), %rsi     # 0x7f1b0
leaq 0x38c5a(%rip), %rdx     # 0x7f1b3
callq 0x3f8a0
movb $0x20, 0xf(%rsp)
movl $0x1, %edx
movq %rbx, %rdi
leaq 0xf(%rsp), %rsi
callq 0x40b80
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %rax, %rdi
callq 0x40b80
movq %rax, %rbp
movl $0x4, %edx
movq %rax, %rdi
leaq 0x3ab19(%rip), %rsi     # 0x810b2
callq 0x40b80
movl %r14d, %esi
movq (%rbp), %rax
movq -0x18(%rax), %rax
movl 0x18(%rbp,%rax), %ecx
andl $-0x4b, %ecx
orl $0x8, %ecx
movl %ecx, 0x18(%rbp,%rax)
movq %rbp, %rdi
callq 0x3ffb0
movl $0x1, %edx
movq %rax, %rdi
leaq 0x3b019(%rip), %rsi     # 0x815e7
callq 0x40b80
movq 0x10(%rsp), %rdi
cmpq %r13, %rdi
je 0x465ea
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x40870
movl $0x3, %edx
movq %rbx, %rdi
leaq 0x3a21c(%rip), %rsi     # 0x80815
callq 0x40b80
movq %r12, %rdi
callq 0x40bc0
movq %rax, %r12
cmpq %r15, %rax
jne 0x46480
leaq 0x38bdb(%rip), %rsi     # 0x7f1f4
movl $0x14, %edx
movq %rbx, %rdi
callq 0x40b80
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x46637
movq %rax, %rbx
jmp 0x46658
jmp 0x4663e
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %r13, %rdi
je 0x46658
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x40870
movq %rbx, %rdi
callq 0x41f00