// File: /workspace/github_cpp_makefile_star2_O2/cyamonide[P]md2html/./src/inlineparse.cpp
// Function: resolveLink(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
string resolveLink(string line)
{
    // Add Title
    if (regex_match(line, R_LINK_TITLE))
    {
        string href = line.substr(line.find("(") + 1);
        string title = href;

        href = href.substr(0, href.find(" "));

        title = title.substr(title.find(" ") + 1);
        title = title.substr(0, title.length() - 1);

        string disp = line.substr(1, line.find("]") - 1);

        return "<a href=\"" + href + "\" title=" + title + ">" + disp + "</a>";
    }

    string href = line.substr(line.find("(") + 1);
    href = href.substr(0, href.length() - 1);
    string disp = line.substr(1, line.find("]") - 1);

    // line.replace(0, line.length(), "<a href=\"" + href + "\">" + disp +
    // "</a>");

    return "<a href=\"" + href + "\">" + disp + "</a>";
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x13a85(%rip), %rsi     # 0x229b8
movq %r14, %rdi
xorl %edx, %edx
callq 0xfdd4
leaq 0x8181(%rip), %rsi      # 0x170c5
movq %r14, %rdi
xorl %edx, %edx
testb %al, %al
je 0xf136
callq 0x4520
leaq 0x1(%rax), %rdx
leaq 0x48(%rsp), %r15
pushq $-0x1
popq %rcx
movq %r15, %rdi
movq %r14, %rsi
callq 0x4300
leaq 0x28(%rsp), %rdi
movq %r15, %rsi
callq 0x43b0
leaq 0x8174(%rip), %rsi      # 0x170f5
leaq 0x48(%rsp), %r15
movq %r15, %rdi
xorl %edx, %edx
callq 0x4520
leaq 0x8(%rsp), %rdi
movq %r15, %rsi
xorl %edx, %edx
movq %rax, %rcx
callq 0x4300
leaq 0x48(%rsp), %rdi
leaq 0x8(%rsp), %r15
movq %r15, %rsi
callq 0x4370
movq %r15, %rdi
callq 0x4548
leaq 0x8132(%rip), %rsi      # 0x170f5
leaq 0x28(%rsp), %r15
movq %r15, %rdi
xorl %edx, %edx
callq 0x4520
leaq 0x1(%rax), %rdx
leaq 0x8(%rsp), %rdi
pushq $-0x1
popq %rcx
movq %r15, %rsi
callq 0x4300
leaq 0x28(%rsp), %r15
leaq 0x8(%rsp), %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0x4370
movq %r12, %rdi
callq 0x4548
movq 0x8(%r15), %rcx
decq %rcx
leaq 0x8(%rsp), %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x4300
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %r15
movq %r15, %rsi
callq 0x4370
movq %r15, %rdi
callq 0x4548
leaq 0x808d(%rip), %rsi      # 0x170c7
movq %r14, %rdi
xorl %edx, %edx
callq 0x4520
leaq -0x1(%rax), %rcx
leaq 0x8(%rsp), %rdi
pushq $0x1
popq %rdx
movq %r14, %rsi
callq 0x4300
leaq 0x806a(%rip), %rsi      # 0x170c9
leaq 0xa8(%rsp), %rdi
leaq 0x48(%rsp), %rdx
callq 0xed70
leaq 0x805b(%rip), %rdx      # 0x170d3
leaq 0xc8(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
callq 0xed51
leaq 0xe8(%rsp), %rdi
leaq 0xc8(%rsp), %rsi
leaq 0x28(%rsp), %rdx
callq 0xee4d
leaq 0x8034(%rip), %rdx      # 0x170e2
leaq 0x68(%rsp), %rdi
leaq 0xe8(%rsp), %rsi
callq 0xed51
leaq 0x88(%rsp), %rdi
leaq 0x68(%rsp), %rsi
leaq 0x8(%rsp), %rdx
callq 0xee4d
leaq 0x7ffe(%rip), %rdx      # 0x170dc
leaq 0x88(%rsp), %rsi
movq %rbx, %rdi
callq 0xed51
leaq 0x88(%rsp), %rdi
callq 0x4548
leaq 0x68(%rsp), %rdi
callq 0x4548
leaq 0xe8(%rsp), %rdi
callq 0x4548
leaq 0xc8(%rsp), %rdi
callq 0x4548
leaq 0xa8(%rsp), %rdi
callq 0x4548
leaq 0x8(%rsp), %rdi
jmp 0xf21d
callq 0x4520
leaq 0x1(%rax), %rdx
leaq 0x48(%rsp), %r15
pushq $-0x1
popq %rcx
movq %r15, %rdi
movq %r14, %rsi
callq 0x4300
movq 0x8(%r15), %rcx
decq %rcx
leaq 0x28(%rsp), %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x4300
leaq 0x48(%rsp), %rdi
leaq 0x28(%rsp), %r15
movq %r15, %rsi
callq 0x4370
movq %r15, %rdi
callq 0x4548
leaq 0x7f3e(%rip), %rsi      # 0x170c7
movq %r14, %rdi
xorl %edx, %edx
callq 0x4520
leaq -0x1(%rax), %rcx
leaq 0x28(%rsp), %rdi
pushq $0x1
popq %rdx
movq %r14, %rsi
callq 0x4300
leaq 0x7f1b(%rip), %rsi      # 0x170c9
leaq 0x68(%rsp), %rdi
leaq 0x48(%rsp), %rdx
callq 0xed70
leaq 0x7f1d(%rip), %rdx      # 0x170e1
leaq 0x88(%rsp), %rdi
leaq 0x68(%rsp), %rsi
callq 0xed51
leaq 0x8(%rsp), %rdi
leaq 0x88(%rsp), %rsi
leaq 0x28(%rsp), %rdx
callq 0xee4d
leaq 0x7ee8(%rip), %rdx      # 0x170dc
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0xed51
leaq 0x8(%rsp), %rdi
callq 0x4548
leaq 0x88(%rsp), %rdi
callq 0x4548
leaq 0x68(%rsp), %rdi
callq 0x4548
leaq 0x28(%rsp), %rdi
callq 0x4548
leaq 0x48(%rsp), %rdi
callq 0x4548
movq %rbx, %rax
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x88(%rsp), %rdi
callq 0x4548
jmp 0xf25d
movq %rax, %rbx
leaq 0x68(%rsp), %rdi
callq 0x4548
jmp 0xf26c
movq %rax, %rbx
leaq 0xe8(%rsp), %rdi
callq 0x4548
jmp 0xf27e
movq %rax, %rbx
leaq 0xc8(%rsp), %rdi
callq 0x4548
jmp 0xf290
movq %rax, %rbx
leaq 0xa8(%rsp), %rdi
callq 0x4548
leaq 0x8(%rsp), %rdi
jmp 0xf2d4
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x4548
jmp 0xf2bb
movq %rax, %rbx
jmp 0xf29d
movq %rax, %rbx
leaq 0x88(%rsp), %rdi
callq 0x4548
jmp 0xf2cf
jmp 0xf2e3
movq %rax, %rbx
leaq 0x68(%rsp), %rdi
callq 0x4548
jmp 0xf2e6
jmp 0xf2e3
jmp 0xf2e3
jmp 0xf2e3
jmp 0xf304
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x4548
leaq 0x48(%rsp), %rdi
callq 0x4548
movq %rbx, %rdi
callq 0x44a0
jmp 0xf304
movq %rax, %rbx
jmp 0xf2f0