// File: /workspace/github_cpp_makefile_star2_O2/BohangZhang[P]Sorcery-C-Project/ascii_graphics.cc
// Function: display_ritual(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, int)
card_template_t display_ritual(std::string name,int cost,int ritual_cost,std::string ritual_desc,
                               int ritual_charges) {
  std::ostringstream oss;
  card_template_t out(CARD_TEMPLATE_RITUAL);
  prepare_for_replace(out);
  replace_text_left(out,'N',name);
  oss << cost;
  replace_text_right(out,'C',oss.str());
  replace_text_right(out,'T',"Ritual");
  oss.str("");
  oss << ritual_cost;
  replace_text_left(out,'K',oss.str());
  replace_text_left(out,'E',ritual_desc);
  oss.str("");
  oss << ritual_charges;
  replace_text_right(out,'D',oss.str());
  return out;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x268, %rsp            # imm = 0x268
movl %r9d, %ebp
movq %r8, %r15
movl %ecx, %r12d
movl %edx, %r14d
movq %rsi, %r13
movq %rdi, %rbx
leaq 0xf0(%rsp), %rdi
callq 0x5280
leaq 0x20c6f(%rip), %rsi     # 0x2b210
movq %rbx, %rdi
callq 0xb0c4
movq %rbx, %rdi
callq 0xa7ab
leaq 0xd0(%rsp), %rdi
movq %r13, %rsi
callq 0x5290
pushq $0x4e
popq %rsi
leaq 0xd0(%rsp), %r13
movq %rbx, %rdi
movq %r13, %rdx
callq 0xa7dd
movq %r13, %rdi
callq 0x5378
leaq 0xf0(%rsp), %rdi
movl %r14d, %esi
callq 0x5320
leaq 0xf8(%rsp), %r14
leaq 0xb0(%rsp), %rdi
movq %r14, %rsi
callq 0x52d0
pushq $0x43
popq %rsi
leaq 0xb0(%rsp), %r13
movq %rbx, %rdi
movq %r13, %rdx
callq 0xa863
movq %r13, %rdi
callq 0x5378
leaq 0x13217(%rip), %rsi     # 0x1d843
leaq 0x90(%rsp), %rdi
leaq 0x10(%rsp), %rdx
callq 0x8d88
pushq $0x54
popq %rsi
leaq 0x90(%rsp), %r13
movq %rbx, %rdi
movq %r13, %rdx
callq 0xa863
movq %r13, %rdi
callq 0x5378
leaq 0x13698(%rip), %rsi     # 0x1dcfb
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x8d88
leaq 0x10(%rsp), %rsi
movq %r14, %rdi
callq 0x52b0
leaq 0x10(%rsp), %rdi
callq 0x5378
leaq 0xf0(%rsp), %rdi
movl %r12d, %esi
callq 0x5320
leaq 0x70(%rsp), %rdi
movq %r14, %rsi
callq 0x52d0
pushq $0x4b
popq %rsi
leaq 0x70(%rsp), %r12
movq %rbx, %rdi
movq %r12, %rdx
callq 0xa7dd
movq %r12, %rdi
callq 0x5378
leaq 0x50(%rsp), %rdi
movq %r15, %rsi
callq 0x5290
pushq $0x45
popq %rsi
leaq 0x50(%rsp), %r15
movq %rbx, %rdi
movq %r15, %rdx
callq 0xa7dd
movq %r15, %rdi
callq 0x5378
leaq 0x1360b(%rip), %rsi     # 0x1dcfb
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x8d88
leaq 0x10(%rsp), %rsi
movq %r14, %rdi
callq 0x52b0
leaq 0x10(%rsp), %rdi
callq 0x5378
leaq 0xf0(%rsp), %rdi
movl %ebp, %esi
callq 0x5320
leaq 0x30(%rsp), %rdi
movq %r14, %rsi
callq 0x52d0
pushq $0x44
popq %rsi
leaq 0x30(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rdx
callq 0xa863
movq %r14, %rdi
callq 0x5378
leaq 0xf0(%rsp), %rdi
callq 0x5070
movq %rbx, %rax
addq $0x268, %rsp            # imm = 0x268
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xa773
jmp 0xa78b
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x5378
jmp 0xa78e
jmp 0xa78b
jmp 0xa78b
movq %rax, %r14
jmp 0xa796
movq %rax, %r14
movq %rbx, %rdi
callq 0x9dd8
leaq 0xf0(%rsp), %rdi
callq 0x5070
movq %r14, %rdi
callq 0x5330