// File: /workspace/github_cpp_makefile_star2_O3/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, %rbx
movq %rdi, 0x28(%rsp)
leaq 0x110(%rsp), %rdi
callq 0x5270
movq %rbx, %rdi
callq 0xd464
leaq 0x100(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%r13), %rsi
movq 0x8(%r13), %rdx
addq %rsi, %rdx
leaq 0xf0(%rsp), %rdi
callq 0xb4e8
leaq 0xf0(%rsp), %r13
movq %rbx, %rdi
movl $0x4e, %esi
movq %r13, %rdx
callq 0xd4a5
movq (%r13), %rdi
cmpq %r14, %rdi
je 0xcb42
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x51f0
leaq 0x110(%rsp), %rdi
movl %r15d, %esi
callq 0x5310
leaq 0x118(%rsp), %r15
leaq 0xd0(%rsp), %rdi
movq %r15, %rsi
callq 0x52c0
leaq 0xd0(%rsp), %r13
movq %rbx, %rdi
movl $0x43, %esi
movq %r13, %rdx
callq 0xd545
movq (%r13), %rdi
leaq 0xe0(%rsp), %rax
cmpq %rax, %rdi
je 0xcba3
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x51f0
leaq 0xc0(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x1ad2f(%rip), %rsi     # 0x278e5
leaq 0x1ad2e(%rip), %rdx     # 0x278eb
leaq 0xb0(%rsp), %rdi
callq 0xb57e
leaq 0xb0(%rsp), %r13
movq %rbx, %rdi
movl $0x54, %esi
movq %r13, %rdx
callq 0xd545
movq (%r13), %rdi
cmpq %r14, %rdi
je 0xcbfb
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x51f0
leaq 0x18(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x1a18e(%rip), %rdx     # 0x26d99
leaq 0x8(%rsp), %rdi
movq %rdx, %rsi
callq 0xb57e
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
callq 0x52a0
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0xcc3c
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x51f0
leaq 0x110(%rsp), %rdi
movl %r12d, %esi
callq 0x5310
leaq 0x90(%rsp), %rdi
movq %r15, %rsi
callq 0x52c0
leaq 0x90(%rsp), %r12
movq %rbx, %rdi
movl $0x41, %esi
movq %r12, %rdx
callq 0xd4a5
movq (%r12), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0xcc95
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x51f0
leaq 0x8(%rsp), %rdi
movq %r13, (%rdi)
leaq 0x1a0f5(%rip), %rdx     # 0x26d99
movq %rdx, %rsi
callq 0xb57e
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
callq 0x52a0
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0xccd0
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x51f0
leaq 0x110(%rsp), %rdi
movl %ebp, %esi
callq 0x5310
leaq 0x70(%rsp), %rdi
movq %r15, %rsi
callq 0x52c0
movq 0x2c0(%rsp), %rbp
leaq 0x70(%rsp), %r12
movq %rbx, %rdi
movl $0x44, %esi
movq %r12, %rdx
callq 0xd545
movq (%r12), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0xcd2a
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x51f0
leaq 0x60(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rbp), %rsi
movq 0x8(%rbp), %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 0xcd73
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x51f0
leaq 0x8(%rsp), %rdi
movq %r13, (%rdi)
leaq 0x1a017(%rip), %rdx     # 0x26d99
movq %rdx, %rsi
callq 0xb57e
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
callq 0x52a0
movl 0x2c8(%rsp), %ebp
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0xcdb5
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x51f0
leaq 0x110(%rsp), %rdi
movl %ebp, %esi
callq 0x5310
leaq 0x30(%rsp), %rdi
movq %r15, %rsi
callq 0x52c0
leaq 0x30(%rsp), %r15
movq %rbx, %rdi
movl $0x4b, %esi
movq %r15, %rdx
callq 0xd4a5
movq (%r15), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0xce00
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x51f0
movups (%rbx), %xmm0
movq 0x28(%rsp), %rcx
movups %xmm0, (%rcx)
movq 0x10(%rbx), %rax
movq %rax, 0x10(%rcx)
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movq $0x0, 0x10(%rbx)
movq 0x26190(%rip), %rsi     # 0x32fb8
leaq 0x110(%rsp), %rdi
callq 0x5120
leaq 0x180(%rsp), %rdi
callq 0x50b0
addq $0x288, %rsp            # imm = 0x288
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xce5c
jmp 0xce7c
jmp 0xce5c
jmp 0xce7c
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0xce7f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x51f0
jmp 0xce7f
jmp 0xce7c
jmp 0xce7c
movq %rax, %rbx
movq 0x26132(%rip), %rsi     # 0x32fb8
leaq 0x110(%rsp), %rdi
callq 0x5120
leaq 0x180(%rsp), %rdi
callq 0x50b0
movq %rbx, %rdi
callq 0x5320