// File: /workspace/github_cpp_makefile_star2_O3/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 0x38e2e(%rip), %rsi     # 0x7f1db
movl $0x11, %edx
movq %rbx, %rdi
callq 0x40b90
movq (%r14), %rdi
movq 0x8(%r14), %rdx
movq (%rdi), %rax
movq %rbx, %rsi
callq *0x38(%rax)
leaq 0x3b3f8(%rip), %rsi     # 0x817c9
movl $0x2, %edx
movq %rbx, %rdi
callq 0x40b90
movq 0x28(%r15), %r12
addq $0x18, %r15
cmpq %r15, %r12
je 0x46586
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 0x38dcf(%rip), %rsi     # 0x7f1ed
callq 0x40b90
movq %r13, 0x10(%rsp)
leaq 0x10(%rsp), %rdi
leaq 0x38bfd(%rip), %rsi     # 0x7f031
leaq 0x38bfa(%rip), %rdx     # 0x7f035
callq 0x3f8a0
movb $0x20, 0xf(%rsp)
movl $0x1, %edx
movq %rbx, %rdi
leaq 0xf(%rsp), %rsi
callq 0x40b90
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %rax, %rdi
callq 0x40b90
movl $0x2, %edx
movq %rax, %rdi
leaq 0x3b2e0(%rip), %rsi     # 0x81758
callq 0x40b90
movq 0x20(%r12), %rsi
movq %rbx, %rdi
callq 0x3f3d0
movl $0x1, %edx
movq %rbx, %rdi
leaq 0x3b14e(%rip), %rsi     # 0x815e7
callq 0x40b90
movq 0x10(%rsp), %rdi
cmpq %r13, %rdi
je 0x464b5
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x40880
movq %r13, 0x10(%rsp)
leaq 0x10(%rsp), %rdi
leaq 0x38cea(%rip), %rsi     # 0x7f1b0
leaq 0x38ce6(%rip), %rdx     # 0x7f1b3
callq 0x3f8a0
movb $0x20, 0xf(%rsp)
movl $0x1, %edx
movq %rbx, %rdi
leaq 0xf(%rsp), %rsi
callq 0x40b90
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %rax, %rdi
callq 0x40b90
movq %rax, %rbp
movl $0x4, %edx
movq %rax, %rdi
leaq 0x3aba5(%rip), %rsi     # 0x810b2
callq 0x40b90
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 0x3ffc0
movl $0x1, %edx
movq %rax, %rdi
leaq 0x3b0a5(%rip), %rsi     # 0x815e7
callq 0x40b90
movq 0x10(%rsp), %rdi
cmpq %r13, %rdi
je 0x4655e
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x40880
movl $0x3, %edx
movq %rbx, %rdi
leaq 0x3a2a8(%rip), %rsi     # 0x80815
callq 0x40b90
movq %r12, %rdi
callq 0x40bd0
movq %rax, %r12
cmpq %r15, %rax
jne 0x463f4
leaq 0x38c67(%rip), %rsi     # 0x7f1f4
movl $0x14, %edx
movq %rbx, %rdi
callq 0x40b90
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x465ab
movq %rax, %rbx
jmp 0x465cc
jmp 0x465b2
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %r13, %rdi
je 0x465cc
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x40880
movq %rbx, %rdi
callq 0x41f10