// File: /workspace/github_cpp_makefile_star2_O2/BohangZhang[P]Sorcery-C-Project/ascii_graphics.cc
// Function: display_minion_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, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, int)
static card_template_t display_minion_general(card_template_t out,std::string name,int cost,int attack,int defence,std::string desc,int ability_cost) {
  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',"Minion");
  oss.str("");
  oss << attack;
  replace_text_left(out,'A',oss.str());
  oss.str("");
  oss << defence;
  replace_text_right(out,'D',oss.str());
  replace_text_left(out,'E',desc);
  oss.str("");
  oss << ability_cost;
  replace_text_left(out,'K',oss.str());
  return out;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x288, %rsp            # imm = 0x288
movl %r9d, %ebp
movl %r8d, %r12d
movl %ecx, %r15d
movq %rdx, %r13
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x110(%rsp), %rdi
callq 0x5280
movq %r14, %rdi
callq 0xa7ab
leaq 0xf0(%rsp), %rdi
movq %r13, %rsi
callq 0x5290
pushq $0x4e
popq %rsi
leaq 0xf0(%rsp), %r13
movq %r14, %rdi
movq %r13, %rdx
callq 0xa7dd
movq %r13, %rdi
callq 0x5378
leaq 0x110(%rsp), %rdi
movl %r15d, %esi
callq 0x5320
leaq 0x118(%rsp), %r15
leaq 0xd0(%rsp), %rdi
movq %r15, %rsi
callq 0x52d0
pushq $0x43
popq %rsi
leaq 0xd0(%rsp), %r13
movq %r14, %rdi
movq %r13, %rdx
callq 0xa863
movq %r13, %rdi
callq 0x5378
leaq 0x14666(%rip), %rsi     # 0x1e82d
leaq 0xb0(%rsp), %rdi
leaq 0x10(%rsp), %rdx
callq 0x8d88
pushq $0x54
popq %rsi
leaq 0xb0(%rsp), %r13
movq %r14, %rdi
movq %r13, %rdx
callq 0xa863
movq %r13, %rdi
callq 0x5378
leaq 0x13afd(%rip), %rsi     # 0x1dcfb
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x8d88
leaq 0x10(%rsp), %rsi
movq %r15, %rdi
callq 0x52b0
leaq 0x10(%rsp), %rdi
callq 0x5378
leaq 0x110(%rsp), %rdi
movl %r12d, %esi
callq 0x5320
leaq 0x90(%rsp), %rdi
movq %r15, %rsi
callq 0x52d0
pushq $0x41
popq %rsi
leaq 0x90(%rsp), %r12
movq %r14, %rdi
movq %r12, %rdx
callq 0xa7dd
movq %r12, %rdi
callq 0x5378
leaq 0x13a92(%rip), %rsi     # 0x1dcfb
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x8d88
leaq 0x10(%rsp), %rsi
movq %r15, %rdi
callq 0x52b0
leaq 0x10(%rsp), %rdi
callq 0x5378
leaq 0x110(%rsp), %rdi
movl %ebp, %esi
callq 0x5320
leaq 0x70(%rsp), %rdi
movq %r15, %rsi
callq 0x52d0
movq 0x2c0(%rsp), %r12
pushq $0x44
popq %rsi
leaq 0x70(%rsp), %r13
movq %r14, %rdi
movq %r13, %rdx
callq 0xa863
movq %r13, %rdi
callq 0x5378
leaq 0x50(%rsp), %rdi
movq %r12, %rsi
callq 0x5290
pushq $0x45
popq %rsi
leaq 0x50(%rsp), %r12
movq %r14, %rdi
movq %r12, %rdx
callq 0xa7dd
movq %r12, %rdi
callq 0x5378
leaq 0x139fe(%rip), %rsi     # 0x1dcfb
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x8d88
leaq 0x10(%rsp), %rsi
movq %r15, %rdi
callq 0x52b0
movl 0x2c8(%rsp), %ebp
leaq 0x10(%rsp), %rdi
callq 0x5378
leaq 0x110(%rsp), %rdi
movl %ebp, %esi
callq 0x5320
leaq 0x30(%rsp), %rdi
movq %r15, %rsi
callq 0x52d0
pushq $0x4b
popq %rsi
leaq 0x30(%rsp), %r15
movq %r14, %rdi
movq %r15, %rdx
callq 0xa7dd
movq %r15, %rdi
callq 0x5378
movups (%r14), %xmm0
movups %xmm0, (%rbx)
movq 0x10(%r14), %rax
movq %rax, 0x10(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, (%r14)
andq $0x0, 0x10(%r14)
leaq 0x110(%rsp), %rdi
callq 0x5070
movq %rbx, %rax
addq $0x288, %rsp            # imm = 0x288
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xa3a6
jmp 0xa3b9
jmp 0xa3a6
jmp 0xa3b9
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x5378
jmp 0xa3bc
jmp 0xa3b9
jmp 0xa3b9
movq %rax, %rbx
leaq 0x110(%rsp), %rdi
callq 0x5070
movq %rbx, %rdi
callq 0x5330