// File: /workspace/github_cpp_makefile_star2_O1/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, 0xc(%rsp)
movq %r8, %r15
movl %ecx, %r12d
movl %edx, %r14d
movq %rsi, %r13
movq %rdi, %rbx
leaq 0xf0(%rsp), %rdi
callq 0x5270
leaq 0x26ee5(%rip), %rsi     # 0x34208
movq %rbx, %rdi
callq 0xe3da
movq %rbx, %rdi
callq 0xd638
leaq 0xe0(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%r13), %rsi
movq 0x8(%r13), %rdx
addq %rsi, %rdx
leaq 0xd0(%rsp), %rdi
callq 0xb6a4
leaq 0xd0(%rsp), %r13
movq %rbx, %rdi
movl $0x4e, %esi
movq %r13, %rdx
callq 0xd669
movq (%r13), %rdi
cmpq %rbp, %rdi
je 0xd388
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x51f0
leaq 0xf0(%rsp), %rdi
movl %r14d, %esi
callq 0x5310
leaq 0xf8(%rsp), %r14
leaq 0xb0(%rsp), %rdi
movq %r14, %rsi
callq 0x52c0
leaq 0xb0(%rsp), %r13
movq %rbx, %rdi
movl $0x43, %esi
movq %r13, %rdx
callq 0xd71d
movq (%r13), %rdi
leaq 0xc0(%rsp), %rax
cmpq %rax, %rdi
je 0xd3e9
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x51f0
leaq 0xa0(%rsp), %rbp
movq %rbp, -0x10(%rbp)
leaq 0x1a4e5(%rip), %rsi     # 0x278e1
leaq 0x1a4e4(%rip), %rdx     # 0x278e7
leaq 0x90(%rsp), %rdi
callq 0xb734
leaq 0x90(%rsp), %r13
movq %rbx, %rdi
movl $0x54, %esi
movq %r13, %rdx
callq 0xd71d
movq (%r13), %rdi
cmpq %rbp, %rdi
je 0xd441
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x51f0
leaq 0x20(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x1a948(%rip), %rdx     # 0x27d99
leaq 0x10(%rsp), %rdi
movq %rdx, %rsi
callq 0xb734
leaq 0x10(%rsp), %rsi
movq %r14, %rdi
callq 0x52a0
movq 0x10(%rsp), %rdi
cmpq %r13, %rdi
je 0xd482
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x51f0
leaq 0xf0(%rsp), %rdi
movl %r12d, %esi
callq 0x5310
leaq 0x70(%rsp), %rdi
movq %r14, %rsi
callq 0x52c0
leaq 0x70(%rsp), %r12
movq %rbx, %rdi
movl $0x4b, %esi
movq %r12, %rdx
callq 0xd669
movq (%r12), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0xd4d5
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x51f0
leaq 0x60(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
leaq 0x50(%rsp), %rdi
callq 0xb6a4
leaq 0x50(%rsp), %r15
movq %rbx, %rdi
movl $0x45, %esi
movq %r15, %rdx
callq 0xd669
movq (%r15), %rdi
cmpq %r12, %rdi
je 0xd51d
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x51f0
leaq 0x10(%rsp), %rdi
movq %r13, (%rdi)
leaq 0x1a86d(%rip), %rdx     # 0x27d99
movq %rdx, %rsi
callq 0xb734
leaq 0x10(%rsp), %rsi
movq %r14, %rdi
callq 0x52a0
movq 0x10(%rsp), %rdi
cmpq %r13, %rdi
je 0xd558
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x51f0
leaq 0xf0(%rsp), %rdi
movl 0xc(%rsp), %esi
callq 0x5310
leaq 0x30(%rsp), %rdi
movq %r14, %rsi
callq 0x52c0
leaq 0x30(%rsp), %r14
movq %rbx, %rdi
movl $0x44, %esi
movq %r14, %rdx
callq 0xd71d
movq (%r14), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0xd5a5
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x51f0
movq 0x26a0c(%rip), %rsi     # 0x33fb8
leaq 0xf0(%rsp), %rdi
callq 0x5120
leaq 0x160(%rsp), %rdi
callq 0x50b0
movq %rbx, %rax
addq $0x268, %rsp            # imm = 0x268
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xd5df
jmp 0xd604
movq %rax, %r14
movq 0x10(%rsp), %rdi
cmpq %r13, %rdi
je 0xd607
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x51f0
jmp 0xd607
jmp 0xd604
jmp 0xd604
movq %rax, %r14
jmp 0xd60f
movq %rax, %r14
movq %rbx, %rdi
callq 0xc96c
movq 0x269a2(%rip), %rsi     # 0x33fb8
leaq 0xf0(%rsp), %rdi
callq 0x5120
leaq 0x160(%rsp), %rdi
callq 0x50b0
movq %r14, %rdi
callq 0x5320