// File: /workspace/github_cpp_makefile_star2_O3/muzuka[P]Cards-Against-Humanity-Online/Client.cpp
// Function: substitute(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, char)
string substitute(string target, string replacement[], char subChar) {
	string newString = target;
	int s = 0;
	for (int i = 0; i < newString.length(); i++) {
		if (newString[i] == subChar) {
			newString = newString.substr(0, i) + replacement[s] + newString.substr(i+1);
			s++;
		}
	}
	return newString;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movl %ecx, -0x30(%rbp)
movq %rdx, -0xa0(%rbp)
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, -0x78(%rbp)
movq %rax, (%rdi)
movq (%rsi), %rax
movq 0x8(%rsi), %rdx
addq %rax, %rdx
movq %rax, %rsi
callq 0x30fa
movq 0x8(%rbx), %rax
testq %rax, %rax
je 0x5758
leaq -0x60(%rbp), %rcx
xorl %r12d, %r12d
leaq -0xc0(%rbp), %r15
movl $0x0, -0x2c(%rbp)
movq %rcx, %r14
movq (%rbx), %rcx
movl -0x30(%rbp), %edx
cmpb %dl, (%rcx,%r12)
jne 0x55d1
movq %r15, %rdi
movq %rbx, %rsi
xorl %edx, %edx
movq %r12, %rcx
callq 0x2190
movslq -0x2c(%rbp), %rax
shlq $0x5, %rax
movq -0xa0(%rbp), %rcx
movq (%rcx,%rax), %rsi
movq 0x8(%rcx,%rax), %rdx
movq %r15, %r13
movq %r15, %rdi
callq 0x2070
movq %r14, -0x70(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x55dc
movq %rdx, -0x70(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x60(%rbp)
jmp 0x55e3
incq %r12
movq %r14, %rcx
jmp 0x574f
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
movq %rdx, -0x68(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
incq %r12
leaq -0x98(%rbp), %rdi
movq %rbx, %rsi
movq %r12, %rdx
movq $-0x1, %rcx
callq 0x2190
movq -0x70(%rbp), %rcx
movl $0xf, %edi
cmpq %r14, %rcx
je 0x5628
movq -0x60(%rbp), %rdi
movq -0x68(%rbp), %r8
movq -0x98(%rbp), %rsi
movq -0x90(%rbp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rdi, %rax
jbe 0x5660
movl $0xf, %edi
leaq -0x88(%rbp), %r9
cmpq %r9, %rsi
je 0x565b
movq -0x88(%rbp), %rdi
cmpq %rdi, %rax
jbe 0x566b
leaq -0x70(%rbp), %rdi
callq 0x2070
jmp 0x567b
leaq -0x98(%rbp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x21a0
leaq -0x40(%rbp), %rsi
movq %rsi, -0x50(%rbp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0x569c
movq %rdx, -0x50(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x40(%rbp)
jmp 0x56a2
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, -0x48(%rbp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
movq %rbx, %rdi
leaq -0x50(%rbp), %rsi
callq 0x21c0
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x56e3
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x2180
movq -0x98(%rbp), %rdi
leaq -0x88(%rbp), %rax
cmpq %rax, %rdi
je 0x5705
movq -0x88(%rbp), %rsi
incq %rsi
callq 0x2180
movq -0x70(%rbp), %rdi
movq %r14, %rcx
cmpq %r14, %rdi
je 0x5720
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x2180
movq %r14, %rcx
movq -0xc0(%rbp), %rdi
leaq -0xb0(%rbp), %rax
cmpq %rax, %rdi
je 0x5745
movq -0xb0(%rbp), %rsi
incq %rsi
callq 0x2180
movq %r14, %rcx
incl -0x2c(%rbp)
movq 0x8(%rbx), %rax
movq %r13, %r15
cmpq %r12, %rax
ja 0x556f
movq %rbx, %rax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r15
jmp 0x57d8
movq %rax, %r15
jmp 0x57a1
movq %rax, %r15
jmp 0x57b6
movq %rax, %r15
movq -0x98(%rbp), %rdi
leaq -0x88(%rbp), %rax
cmpq %rax, %rdi
je 0x57a1
movq -0x88(%rbp), %rsi
incq %rsi
callq 0x2180
movq -0x70(%rbp), %rdi
cmpq %r14, %rdi
je 0x57b6
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x2180
movq -0xc0(%rbp), %rdi
leaq -0xb0(%rbp), %rax
cmpq %rax, %rdi
je 0x57d8
movq -0xb0(%rbp), %rsi
incq %rsi
callq 0x2180
movq (%rbx), %rdi
cmpq -0x78(%rbp), %rdi
je 0x57f0
movq -0x78(%rbp), %rax
movq (%rax), %rsi
incq %rsi
callq 0x2180
movq %r15, %rdi
callq 0x2270