// File: /workspace/github_cpp_makefile_star2_O1/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, %r13d
movq %rdx, -0xa0(%rbp)
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, -0x98(%rbp)
movq %rax, (%rdi)
movq (%rsi), %rax
movq 0x8(%rsi), %rdx
addq %rax, %rdx
movq %rax, %rsi
callq 0x313c
cmpq $0x0, 0x8(%rbx)
je 0x577b
xorl %r12d, %r12d
leaq -0xc0(%rbp), %r14
movl $0x0, -0x2c(%rbp)
movq (%rbx), %rax
cmpb %r13b, (%rax,%r12)
jne 0x576e
movq %r14, %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 %r14, %r15
movq %r14, %rdi
callq 0x2070
leaq -0x40(%rbp), %rsi
movq %rsi, -0x50(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x560a
movq %rdx, -0x50(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x40(%rbp)
jmp 0x5610
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, -0x48(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x1(%r12), %rdx
leaq -0x90(%rbp), %rdi
movq %rbx, %rsi
movq $-0x1, %rcx
callq 0x2190
movq -0x50(%rbp), %rcx
movl $0xf, %esi
leaq -0x40(%rbp), %rax
cmpq %rax, %rcx
je 0x5658
movq -0x40(%rbp), %rsi
movq -0x48(%rbp), %r8
movq -0x88(%rbp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rsi, %rax
jbe 0x5687
movl $0xf, %esi
leaq -0x80(%rbp), %rdi
cmpq %rdi, -0x90(%rbp)
je 0x5682
movq -0x80(%rbp), %rsi
cmpq %rsi, %rax
jbe 0x5699
movq -0x90(%rbp), %rsi
leaq -0x50(%rbp), %rdi
callq 0x2070
jmp 0x56a9
leaq -0x90(%rbp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x21a0
leaq -0x60(%rbp), %rsi
movq %rsi, -0x70(%rbp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0x56ca
movq %rdx, -0x70(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x60(%rbp)
jmp 0x56d0
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, -0x68(%rbp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
movq %rbx, %rdi
leaq -0x70(%rbp), %rsi
callq 0x21c0
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x5711
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x2180
movq -0x90(%rbp), %rdi
leaq -0x80(%rbp), %rax
cmpq %rax, %rdi
je 0x572d
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x2180
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x5746
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x2180
movq -0xc0(%rbp), %rdi
leaq -0xb0(%rbp), %rax
cmpq %rax, %rdi
je 0x5768
movq -0xb0(%rbp), %rsi
incq %rsi
callq 0x2180
incl -0x2c(%rbp)
movq %r15, %r14
incq %r12
cmpq %r12, 0x8(%rbx)
ja 0x55a6
movq %rbx, %rax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
jmp 0x57f9
movq %rax, %r14
jmp 0x57be
movq %rax, %r14
jmp 0x57d7
movq %rax, %r14
movq -0x90(%rbp), %rdi
leaq -0x80(%rbp), %rax
cmpq %rax, %rdi
je 0x57be
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x2180
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x57d7
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x2180
movq -0xc0(%rbp), %rdi
leaq -0xb0(%rbp), %rax
cmpq %rax, %rdi
je 0x57f9
movq -0xb0(%rbp), %rsi
incq %rsi
callq 0x2180
movq (%rbx), %rdi
cmpq -0x98(%rbp), %rdi
je 0x5817
movq -0x98(%rbp), %rax
movq (%rax), %rsi
incq %rsi
callq 0x2180
movq %r14, %rdi
callq 0x2270