// File: /workspace/github_cpp_makefile_star2_O1/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, 0x8(%rsp)
movq %r8, %r12
movl %ecx, %ebp
movq %rdx, %r13
movq %rsi, %r14
movq %rdi, %rbx
leaq 0xd0(%rsp), %rdi
callq 0x5270
movq %r14, %rdi
callq 0xd638
leaq 0xc0(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%r13), %rsi
movq 0x8(%r13), %rdx
addq %rsi, %rdx
leaq 0xb0(%rsp), %rdi
callq 0xb6a4
leaq 0xb0(%rsp), %r13
movq %r14, %rdi
movl $0x4e, %esi
movq %r13, %rdx
callq 0xd669
movq (%r13), %rdi
cmpq %r15, %rdi
je 0xdc19
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 %r14, %rdi
movl $0x43, %esi
movq %r13, %rdx
callq 0xd71d
movq (%r13), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0xdc76
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x51f0
leaq 0x80(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x1abe9(%rip), %rsi     # 0x28872
leaq 0x1abed(%rip), %rdx     # 0x2887d
leaq 0x70(%rsp), %rdi
callq 0xb734
leaq 0x70(%rsp), %r13
movq %r14, %rdi
movl $0x54, %esi
movq %r13, %rdx
callq 0xd71d
movq (%r13), %rdi
cmpq %r15, %rdi
je 0xdcc8
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x51f0
leaq 0x60(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%r12), %rsi
movq 0x8(%r12), %rdx
addq %rsi, %rdx
leaq 0x50(%rsp), %rdi
callq 0xb6a4
leaq 0x50(%rsp), %r12
movq %r14, %rdi
movl $0x45, %esi
movq %r12, %rdx
callq 0xd669
movq (%r12), %rdi
cmpq %r15, %rdi
je 0xdd12
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x51f0
leaq 0x40(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x8(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x30(%rsp), %rdi
callq 0xb6a4
movq 0x280(%rsp), %r13
leaq 0x30(%rsp), %r15
movq %r14, %rdi
movl $0x41, %esi
movq %r15, %rdx
callq 0xd669
movq (%r15), %rdi
cmpq %r12, %rdi
je 0xdd67
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x51f0
leaq 0x20(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%r13), %rsi
movq 0x8(%r13), %rdx
addq %rsi, %rdx
leaq 0x10(%rsp), %rdi
callq 0xb6a4
leaq 0x10(%rsp), %r15
movq %r14, %rdi
movl $0x44, %esi
movq %r15, %rdx
callq 0xd71d
movq (%r15), %rdi
cmpq %r12, %rdi
je 0xddb0
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x51f0
movq (%r14), %rax
movq %rax, (%rbx)
movq 0x8(%r14), %rax
movq %rax, 0x8(%rbx)
movq 0x10(%r14), %rax
movq %rax, 0x10(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, (%r14)
movq $0x0, 0x10(%r14)
movq 0x261dc(%rip), %rsi     # 0x33fb8
leaq 0xd0(%rsp), %rdi
callq 0x5120
leaq 0x140(%rsp), %rdi
callq 0x50b0
movq %rbx, %rax
addq $0x248, %rsp            # imm = 0x248
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xde0d
movq %rax, %rbx
movq 0x261a1(%rip), %rsi     # 0x33fb8
leaq 0xd0(%rsp), %rdi
callq 0x5120
leaq 0x140(%rsp), %rdi
callq 0x50b0
movq %rbx, %rdi
callq 0x5320