// File: 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 %rbp
movq %rsp, %rbp
subq $0x2b0, %rsp            # imm = 0x2B0
movq %rsi, -0x258(%rbp)
movq %rdi, %rax
movq -0x258(%rbp), %rdi
movq %rax, -0x250(%rbp)
movq %rax, %rcx
movq %rcx, -0x248(%rbp)
movq %rax, -0x8(%rbp)
movq %rdi, -0x10(%rbp)
leaq 0x2b79c(%rip), %rsi     # 0x53ae8
xorl %edx, %edx
callq 0x29b70
testb $0x1, %al
jne 0x2835c
jmp 0x286ca
movq -0x258(%rbp), %rdi
leaq 0x11dd3(%rip), %rsi     # 0x3a13d
xorl %eax, %eax
movl %eax, %edx
callq 0x5760
movq -0x258(%rbp), %rsi
movq %rax, %rdx
incq %rdx
leaq -0x30(%rbp), %rdi
movq %rdi, -0x260(%rbp)
movq $-0x1, %rcx
callq 0x5400
movq -0x260(%rbp), %rsi
leaq -0x50(%rbp), %rdi
callq 0x51b0
jmp 0x283a9
leaq 0x11dbd(%rip), %rsi     # 0x3a16d
xorl %eax, %eax
movl %eax, %edx
movq %rdx, -0x268(%rbp)
leaq -0x30(%rbp), %rdi
movq %rdi, -0x270(%rbp)
callq 0x5760
movq -0x270(%rbp), %rsi
movq -0x268(%rbp), %rdx
movq %rax, %rcx
leaq -0x80(%rbp), %rdi
callq 0x5400
jmp 0x283e7
leaq -0x30(%rbp), %rdi
leaq -0x80(%rbp), %rsi
movq %rsi, -0x280(%rbp)
callq 0x54d0
movq -0x280(%rbp), %rdi
callq 0x5798
leaq 0x11d5f(%rip), %rsi     # 0x3a16d
xorl %eax, %eax
movl %eax, %edx
leaq -0x50(%rbp), %rdi
movq %rdi, -0x278(%rbp)
callq 0x5760
movq -0x278(%rbp), %rsi
movq %rax, %rdx
incq %rdx
leaq -0xa0(%rbp), %rdi
movq $-0x1, %rcx
callq 0x5400
jmp 0x28444
leaq -0x50(%rbp), %rdi
movq %rdi, -0x288(%rbp)
leaq -0xa0(%rbp), %rsi
movq %rsi, -0x290(%rbp)
callq 0x54d0
movq -0x290(%rbp), %rdi
callq 0x5798
movq -0x288(%rbp), %rdi
callq 0x55d0
movq -0x288(%rbp), %rsi
movq %rax, %rcx
decq %rcx
xorl %eax, %eax
movl %eax, %edx
leaq -0xc0(%rbp), %rdi
callq 0x5400
jmp 0x28499
leaq -0x50(%rbp), %rdi
leaq -0xc0(%rbp), %rsi
movq %rsi, -0x298(%rbp)
callq 0x54d0
movq -0x298(%rbp), %rdi
callq 0x5798
movq -0x258(%rbp), %rdi
leaq 0x11c75(%rip), %rsi     # 0x3a13f
xorl %eax, %eax
movl %eax, %edx
callq 0x5760
movq -0x258(%rbp), %rsi
movq %rax, %rcx
decq %rcx
leaq -0xe0(%rbp), %rdi
movl $0x1, %edx
callq 0x5400
jmp 0x284f3
leaq 0x11c47(%rip), %rsi     # 0x3a141
leaq -0x180(%rbp), %rdi
leaq -0x30(%rbp), %rdx
callq 0x27f90
jmp 0x2850c
leaq 0x11c38(%rip), %rdx     # 0x3a14b
leaq -0x160(%rbp), %rdi
leaq -0x180(%rbp), %rsi
callq 0x27f40
jmp 0x28528
leaq -0x140(%rbp), %rdi
leaq -0x160(%rbp), %rsi
leaq -0x50(%rbp), %rdx
callq 0x28170
jmp 0x28541
leaq 0x11c12(%rip), %rdx     # 0x3a15a
leaq -0x120(%rbp), %rdi
leaq -0x140(%rbp), %rsi
callq 0x27f40
jmp 0x2855d
leaq -0x100(%rbp), %rdi
leaq -0x120(%rbp), %rsi
leaq -0xe0(%rbp), %rdx
callq 0x28170
jmp 0x28579
movq -0x250(%rbp), %rdi
leaq 0x11bcd(%rip), %rdx     # 0x3a154
leaq -0x100(%rbp), %rsi
callq 0x27f40
jmp 0x28595
leaq -0x100(%rbp), %rdi
callq 0x5798
leaq -0x120(%rbp), %rdi
callq 0x5798
leaq -0x140(%rbp), %rdi
callq 0x5798
leaq -0x160(%rbp), %rdi
callq 0x5798
leaq -0x180(%rbp), %rdi
callq 0x5798
leaq -0xe0(%rbp), %rdi
callq 0x5798
leaq -0x50(%rbp), %rdi
callq 0x5798
leaq -0x30(%rbp), %rdi
callq 0x5798
jmp 0x288cd
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
jmp 0x286bc
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
jmp 0x286b3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
jmp 0x286a7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
jmp 0x2869b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
jmp 0x2868f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
jmp 0x28683
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
jmp 0x28677
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
leaq -0x100(%rbp), %rdi
callq 0x5798
leaq -0x120(%rbp), %rdi
callq 0x5798
leaq -0x140(%rbp), %rdi
callq 0x5798
leaq -0x160(%rbp), %rdi
callq 0x5798
leaq -0x180(%rbp), %rdi
callq 0x5798
leaq -0xe0(%rbp), %rdi
callq 0x5798
leaq -0x50(%rbp), %rdi
callq 0x5798
leaq -0x30(%rbp), %rdi
callq 0x5798
jmp 0x288dd
movq -0x258(%rbp), %rdi
leaq 0x11a65(%rip), %rsi     # 0x3a13d
xorl %eax, %eax
movl %eax, %edx
movq %rdx, -0x2a0(%rbp)
callq 0x5760
movq -0x258(%rbp), %rsi
movq %rax, %rdx
incq %rdx
leaq -0x1a0(%rbp), %rdi
movq %rdi, -0x2a8(%rbp)
movq $-0x1, %rcx
callq 0x5400
movq -0x2a8(%rbp), %rdi
callq 0x55d0
movq -0x2a8(%rbp), %rsi
movq -0x2a0(%rbp), %rdx
movq %rax, %rcx
decq %rcx
leaq -0x1c0(%rbp), %rdi
callq 0x5400
jmp 0x2873d
leaq -0x1a0(%rbp), %rdi
leaq -0x1c0(%rbp), %rsi
movq %rsi, -0x2b0(%rbp)
callq 0x54d0
movq -0x2b0(%rbp), %rdi
callq 0x5798
movq -0x258(%rbp), %rdi
leaq 0x119ce(%rip), %rsi     # 0x3a13f
xorl %eax, %eax
movl %eax, %edx
callq 0x5760
movq -0x258(%rbp), %rsi
movq %rax, %rcx
decq %rcx
leaq -0x1e0(%rbp), %rdi
movl $0x1, %edx
callq 0x5400
jmp 0x2879a
leaq 0x119a0(%rip), %rsi     # 0x3a141
leaq -0x240(%rbp), %rdi
leaq -0x1a0(%rbp), %rdx
callq 0x27f90
jmp 0x287b6
leaq 0x1199c(%rip), %rdx     # 0x3a159
leaq -0x220(%rbp), %rdi
leaq -0x240(%rbp), %rsi
callq 0x27f40
jmp 0x287d2
leaq -0x200(%rbp), %rdi
leaq -0x220(%rbp), %rsi
leaq -0x1e0(%rbp), %rdx
callq 0x28170
jmp 0x287ee
movq -0x250(%rbp), %rdi
leaq 0x11958(%rip), %rdx     # 0x3a154
leaq -0x200(%rbp), %rsi
callq 0x27f40
jmp 0x2880a
leaq -0x200(%rbp), %rdi
callq 0x5798
leaq -0x220(%rbp), %rdi
callq 0x5798
leaq -0x240(%rbp), %rdi
callq 0x5798
leaq -0x1e0(%rbp), %rdi
callq 0x5798
leaq -0x1a0(%rbp), %rdi
callq 0x5798
jmp 0x288cd
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
jmp 0x288bf
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
jmp 0x288b3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
jmp 0x288a7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
jmp 0x2889b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
leaq -0x200(%rbp), %rdi
callq 0x5798
leaq -0x220(%rbp), %rdi
callq 0x5798
leaq -0x240(%rbp), %rdi
callq 0x5798
leaq -0x1e0(%rbp), %rdi
callq 0x5798
leaq -0x1a0(%rbp), %rdi
callq 0x5798
jmp 0x288dd
movq -0x248(%rbp), %rax
addq $0x2b0, %rsp            # imm = 0x2B0
popq %rbp
retq
movq -0x58(%rbp), %rdi
callq 0x56c0
nopw %cs:(%rax,%rax)