// File: /workspace/github_cpp_makefile_star2_O3/richardposner[P]BioNetFit2/src/code/Parser.cpp
// Function: Parser::symbolExpand(std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
void Parser::symbolExpand(map<string, string>& symbols, string& s) {
	bool expanded;
	do {
		expanded = false;
		for (map<string, string>::iterator i = symbols.begin(); i != symbols.end(); ++i) {
			string search = "%" + i->first + "%";
			string replace = i->second;
			size_t pos = s.find(search);
			if (pos != string::npos) {
				expanded = true;
				s.replace(pos, search.length(), replace);
			}
		}
	} while (expanded);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
leaq 0x8(%rsi), %rax
movq %rsi, 0x50(%rsp)
movq 0x18(%rsi), %r15
movq %rax, 0x48(%rsp)
cmpq %rax, %r15
je 0x52f25
movq %rdx, %rbx
leaq 0x38(%rsp), %r14
xorl %r12d, %r12d
leaq 0x28(%rsp), %r13
leaq 0x20(%r15), %rdx
movq %r13, %rdi
leaq 0xa546c(%rip), %rbp     # 0xf8265
movq %rbp, %rsi
callq 0x31944
movq %r13, %rdi
movq %rbp, %rsi
callq 0x233b0
leaq 0x18(%rsp), %rsi
movq %rsi, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x52e34
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x52e3a
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x52e69
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x229c0
movq %r14, 0x28(%rsp)
movq 0x40(%r15), %rsi
movq 0x48(%r15), %rdx
addq %rsi, %rdx
movq %r13, %rdi
callq 0x3213c
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rcx
movq %rbx, %rdi
xorl %edx, %edx
callq 0x231f0
cmpq $-0x1, %rax
je 0x52eb8
movq 0x10(%rsp), %rdx
movb $0x1, %r12b
movq 0x28(%rsp), %rcx
movq 0x30(%rsp), %r8
movq %rbx, %rdi
movq %rax, %rsi
callq 0x22a80
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x52ecf
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x52eeb
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x229c0
movq %r15, %rdi
callq 0x22670
movq %rax, %r15
cmpq 0x48(%rsp), %rax
jne 0x52deb
movq 0x50(%rsp), %rax
movq 0x18(%rax), %r15
cmpq 0x48(%rsp), %r15
setne %al
andb %al, %r12b
cmpb $0x1, %r12b
movl $0x0, %r12d
je 0x52deb
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x52f53
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x52f53
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x52f83
movq 0x18(%rsp), %rsi
jmp 0x52f7b
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x52f83
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x229c0
movq %rbx, %rdi
callq 0x23240
nop