// File: /workspace/github_cpp_makefile_star2_O1/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, 0x24(%rsp)
movl %r8d, %r12d
movl %ecx, %r15d
movq %rdx, %r13
movq %rsi, %r14
movq %rdi, 0x28(%rsp)
leaq 0x110(%rsp), %rdi
callq 0x5270
movq %r14, %rdi
callq 0xd638
leaq 0x100(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%r13), %rsi
movq 0x8(%r13), %rdx
addq %rsi, %rdx
leaq 0xf0(%rsp), %rdi
callq 0xb6a4
leaq 0xf0(%rsp), %r13
movq %r14, %rdi
movl $0x4e, %esi
movq %r13, %rdx
callq 0xd669
movq (%r13), %rdi
cmpq %rbp, %rdi
je 0xcd18
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 %r14, %rdi
movl $0x43, %esi
movq %r13, %rdx
callq 0xd71d
movq (%r13), %rdi
leaq 0xe0(%rsp), %rax
cmpq %rax, %rdi
je 0xcd79
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x51f0
leaq 0xc0(%rsp), %rbx
movq %rbx, -0x10(%rbx)
leaq 0x1bb59(%rip), %rsi     # 0x288e5
leaq 0x1bb58(%rip), %rdx     # 0x288eb
leaq 0xb0(%rsp), %rdi
callq 0xb734
leaq 0xb0(%rsp), %r13
movq %r14, %rdi
movl $0x54, %esi
movq %r13, %rdx
callq 0xd71d
movq (%r13), %rdi
cmpq %rbx, %rdi
je 0xcdd1
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x51f0
leaq 0x10(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x1afb8(%rip), %rdx     # 0x27d99
movq %rsp, %rdi
movq %rdx, %rsi
callq 0xb734
movq %rsp, %rsi
movq %r15, %rdi
callq 0x52a0
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0xce0d
movq 0x10(%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 %r14, %rdi
movl $0x41, %esi
movq %r12, %rdx
callq 0xd669
movq (%r12), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0xce66
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x51f0
movq %rsp, %rdi
movq %r13, (%rdi)
leaq 0x1af26(%rip), %rdx     # 0x27d99
movq %rdx, %rsi
callq 0xb734
movq %rsp, %rsi
movq %r15, %rdi
callq 0x52a0
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0xce9c
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x51f0
leaq 0x110(%rsp), %rdi
movl 0x24(%rsp), %esi
callq 0x5310
leaq 0x70(%rsp), %rdi
movq %r15, %rsi
callq 0x52c0
movq 0x2c0(%rsp), %rbp
leaq 0x70(%rsp), %r12
movq %r14, %rdi
movl $0x44, %esi
movq %r12, %rdx
callq 0xd71d
movq (%r12), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0xcef8
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x51f0
leaq 0x60(%rsp), %rbx
movq %rbx, -0x10(%rbx)
movq (%rbp), %rsi
movq 0x8(%rbp), %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 %rbx, %rdi
je 0xcf41
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x51f0
movq %rsp, %rdi
movq %r13, (%rdi)
leaq 0x1ae4b(%rip), %rdx     # 0x27d99
movq %rdx, %rsi
callq 0xb734
movq %rsp, %rsi
movq %r15, %rdi
callq 0x52a0
movl 0x2c8(%rsp), %ebp
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0xcf7e
movq 0x10(%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 %r14, %rdi
movl $0x4b, %esi
movq %r15, %rdx
callq 0xd669
movq (%r15), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0xcfc9
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x51f0
movq (%r14), %rax
movq 0x28(%rsp), %rbx
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 0x26fbe(%rip), %rsi     # 0x33fb8
leaq 0x110(%rsp), %rdi
callq 0x5120
leaq 0x180(%rsp), %rdi
callq 0x50b0
movq %rbx, %rax
addq $0x288, %rsp            # imm = 0x288
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xd031
jmp 0xd050
jmp 0xd031
jmp 0xd050
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0xd053
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x51f0
jmp 0xd053
jmp 0xd050
jmp 0xd050
movq %rax, %rbx
movq 0x26f5e(%rip), %rsi     # 0x33fb8
leaq 0x110(%rsp), %rdi
callq 0x5120
leaq 0x180(%rsp), %rdi
callq 0x50b0
movq %rbx, %rdi
callq 0x5320