// File: /workspace/github_cpp_makefile_star2_O3/BohangZhang[P]Sorcery-C-Project/ascii_graphics.cc
// Function: display_enchantment_general(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, int, 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::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
static card_template_t display_enchantment_general(card_template_t out,std::string name,int cost,
                                                   std::string desc,std::string attack,
                                                   std::string defence) {
  std::ostringstream oss;
  prepare_for_replace(out);
  replace_text_left(out,'N',name);
  oss << cost;
  replace_text_right(out,'C',oss.str());
  replace_text_right(out,'T',"Enchantment");
  replace_text_left(out,'E',desc);
  replace_text_left(out,'A',attack);
  replace_text_right(out,'D',defence);
  return out;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x248, %rsp            # imm = 0x248
movq %r9, %r15
movq %r8, %r12
movl %ecx, %ebp
movq %rdx, %r13
movq %rsi, %rbx
movq %rdi, 0x8(%rsp)
leaq 0xd0(%rsp), %rdi
callq 0x5270
movq %rbx, %rdi
callq 0xd464
leaq 0xc0(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%r13), %rsi
movq 0x8(%r13), %rdx
addq %rsi, %rdx
leaq 0xb0(%rsp), %rdi
callq 0xb4e8
leaq 0xb0(%rsp), %r13
movq %rbx, %rdi
movl $0x4e, %esi
movq %r13, %rdx
callq 0xd4a5
movq (%r13), %rdi
cmpq %r14, %rdi
je 0xda2d
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x51f0
leaq 0xd0(%rsp), %rdi
movl %ebp, %esi
callq 0x5310
leaq 0xd8(%rsp), %rsi
leaq 0x90(%rsp), %rdi
callq 0x52c0
leaq 0x90(%rsp), %r13
movq %rbx, %rdi
movl $0x43, %esi
movq %r13, %rdx
callq 0xd545
movq (%r13), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0xda8a
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x51f0
leaq 0x80(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x19dd5(%rip), %rsi     # 0x27872
leaq 0x19dd9(%rip), %rdx     # 0x2787d
leaq 0x70(%rsp), %rdi
callq 0xb57e
leaq 0x70(%rsp), %r13
movq %rbx, %rdi
movl $0x54, %esi
movq %r13, %rdx
callq 0xd545
movq (%r13), %rdi
cmpq %r14, %rdi
je 0xdadc
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x51f0
leaq 0x60(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%r12), %rsi
movq 0x8(%r12), %rdx
addq %rsi, %rdx
leaq 0x50(%rsp), %rdi
callq 0xb4e8
leaq 0x50(%rsp), %r12
movq %rbx, %rdi
movl $0x45, %esi
movq %r12, %rdx
callq 0xd4a5
movq (%r12), %rdi
cmpq %r14, %rdi
je 0xdb26
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x51f0
leaq 0x40(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
leaq 0x30(%rsp), %rdi
callq 0xb4e8
movq 0x280(%rsp), %r13
leaq 0x30(%rsp), %r15
movq %rbx, %rdi
movl $0x41, %esi
movq %r15, %rdx
callq 0xd4a5
movq (%r15), %rdi
cmpq %r12, %rdi
je 0xdb76
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x51f0
leaq 0x20(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%r13), %rsi
movq 0x8(%r13), %rdx
addq %rsi, %rdx
leaq 0x10(%rsp), %rdi
callq 0xb4e8
leaq 0x10(%rsp), %r15
movq %rbx, %rdi
movl $0x44, %esi
movq %r15, %rdx
callq 0xd545
movq (%r15), %rdi
cmpq %r14, %rdi
je 0xdbbe
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x51f0
movups (%rbx), %xmm0
movq 0x8(%rsp), %rcx
movups %xmm0, (%rcx)
movq 0x10(%rbx), %rax
movq %rax, 0x10(%rcx)
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movq $0x0, 0x10(%rbx)
movq 0x253d2(%rip), %rsi     # 0x32fb8
leaq 0xd0(%rsp), %rdi
callq 0x5120
leaq 0x140(%rsp), %rdi
callq 0x50b0
addq $0x248, %rsp            # imm = 0x248
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xdc14
movq %rax, %rbx
movq 0x2539a(%rip), %rsi     # 0x32fb8
leaq 0xd0(%rsp), %rdi
callq 0x5120
leaq 0x140(%rsp), %rdi
callq 0x50b0
movq %rbx, %rdi
callq 0x5320