// File: /workspace/github_cpp_makefile_star2_O1/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movq %rsi, %r14
movq %rdi, %rbx
movq (%rsi), %rdi
movq 0x8(%rsi), %rsi
addq %rdi, %rsi
xorps %xmm0, %xmm0
leaq 0x40(%rsp), %rdx
movaps %xmm0, 0x10(%rdx)
movaps %xmm0, (%rdx)
leaq 0x147c5(%rip), %rcx     # 0x259a8
xorl %r8d, %r8d
callq 0x12d87
movl %eax, %ebp
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x11204
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
callq 0x42a0
leaq 0xaeba(%rip), %rsi      # 0x1c0c5
movl $0x1, %ecx
movq %r14, %rdi
xorl %edx, %edx
testb %bpl, %bpl
je 0x113d0
callq 0x4480
leaq 0x1(%rax), %rdx
leaq 0x40(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
movq $-0x1, %rcx
callq 0x42d0
leaq 0x30(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
leaq 0x20(%rsp), %rdi
callq 0xb104
leaq 0xae92(%rip), %rsi      # 0x1c0f5
leaq 0x40(%rsp), %r15
movl $0x1, %ecx
movq %r15, %rdi
xorl %edx, %edx
callq 0x4480
movq %rsp, %rdi
movq %r15, %rsi
xorl %edx, %edx
movq %rax, %rcx
callq 0x42d0
leaq 0x40(%rsp), %rdi
movq %rsp, %r15
movq %r15, %rsi
callq 0x4360
movq (%r15), %rdi
leaq 0x10(%rsp), %r13
cmpq %r13, %rdi
je 0x112b1
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x42a0
leaq 0xae3d(%rip), %rsi      # 0x1c0f5
leaq 0x20(%rsp), %r15
movl $0x1, %ecx
movq %r15, %rdi
xorl %edx, %edx
callq 0x4480
leaq 0x1(%rax), %rdx
movq %rsp, %rdi
movq %r15, %rsi
movq $-0x1, %rcx
callq 0x42d0
leaq 0x20(%rsp), %rdi
movq %rsp, %r15
movq %r15, %rsi
callq 0x4360
movq (%r15), %rdi
cmpq %r13, %rdi
je 0x11307
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x42a0
leaq 0x20(%rsp), %rsi
movq 0x8(%rsi), %rcx
decq %rcx
movq %rsp, %rdi
xorl %edx, %edx
callq 0x42d0
leaq 0x20(%rsp), %rdi
movq %rsp, %r15
movq %r15, %rsi
callq 0x4360
movq (%r15), %rdi
cmpq %r13, %rdi
je 0x11342
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x42a0
leaq 0xad7e(%rip), %rsi      # 0x1c0c7
movl $0x1, %ecx
movq %r14, %rdi
xorl %edx, %edx
callq 0x4480
leaq -0x1(%rax), %rcx
movq %rsp, %rdi
movl $0x1, %edx
movq %r14, %rsi
callq 0x42d0
leaq 0xad56(%rip), %rsi      # 0x1c0c9
leaq 0xe8(%rsp), %rdi
leaq 0x40(%rsp), %rdx
callq 0x11006
leaq 0xad47(%rip), %rsi      # 0x1c0d3
leaq 0xe8(%rsp), %rdi
callq 0x4500
leaq 0xb8(%rsp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1160d
movq %rdx, 0xa8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xb8(%rsp)
jmp 0x11613
callq 0x4480
leaq 0x1(%rax), %rdx
leaq 0x40(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
movq $-0x1, %rcx
callq 0x42d0
movq 0x8(%r15), %rcx
decq %rcx
leaq 0x20(%rsp), %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x42d0
leaq 0x40(%rsp), %rdi
leaq 0x20(%rsp), %r15
movq %r15, %rsi
callq 0x4360
movq (%r15), %rdi
leaq 0x30(%rsp), %r15
cmpq %r15, %rdi
je 0x11432
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x42a0
leaq 0xac8e(%rip), %rsi      # 0x1c0c7
movl $0x1, %ecx
movq %r14, %rdi
xorl %edx, %edx
callq 0x4480
leaq -0x1(%rax), %rcx
leaq 0x20(%rsp), %rdi
movl $0x1, %edx
movq %r14, %rsi
callq 0x42d0
leaq 0xac64(%rip), %rsi      # 0x1c0c9
leaq 0x88(%rsp), %rdi
leaq 0x40(%rsp), %rdx
callq 0x11006
leaq 0xac63(%rip), %rsi      # 0x1c0e1
leaq 0x88(%rsp), %rdi
callq 0x4500
leaq 0x78(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x114b2
movq %rdx, 0x68(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x78(%rsp)
jmp 0x114b9
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
leaq 0x68(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
callq 0x40b0
leaq 0x10(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1150b
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x11513
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rsp, %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xaba8(%rip), %rsi      # 0x1c0dc
callq 0x4500
leaq 0x10(%rbx), %rdx
movq %rdx, (%rbx)
movq (%rax), %rsi
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rsi
je 0x1155b
movq %rsi, (%rbx)
movq (%rcx), %rdx
movq %rdx, 0x10(%rbx)
jmp 0x11561
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq 0x8(%rax), %rdx
movq %rdx, 0x8(%rbx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x1158e
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x42a0
movq 0x68(%rsp), %rdi
cmpq %r14, %rdi
je 0x115a5
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x42a0
leaq 0x98(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x115c6
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x42a0
movq 0x20(%rsp), %rdi
cmpq %r15, %rdi
je 0x115dd
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x42a0
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x115f8
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x42a0
movq %rbx, %rax
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
leaq 0xa8(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
callq 0x40b0
leaq 0xd8(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x11671
movq %rdx, 0xc8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xd8(%rsp)
jmp 0x11678
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq %r13, %r14
movq 0x8(%rax), %rdx
leaq 0xc8(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xaa41(%rip), %rsi      # 0x1c0e2
callq 0x4500
leaq 0x98(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x116d6
movq %rdx, 0x88(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x98(%rsp)
jmp 0x116dd
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
movq %r12, %r13
movq 0x8(%rax), %rdx
leaq 0x88(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
callq 0x40b0
leaq 0x78(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x11735
movq %rdx, 0x68(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x78(%rsp)
jmp 0x1173d
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
leaq 0x68(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xa97c(%rip), %rsi      # 0x1c0dc
callq 0x4500
leaq 0x10(%rbx), %rdx
movq %rdx, (%rbx)
movq (%rax), %rsi
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rsi
je 0x11787
movq %rsi, (%rbx)
movq (%rcx), %rdx
movq %rdx, 0x10(%rbx)
jmp 0x1178d
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq 0x8(%rax), %rdx
movq %rdx, 0x8(%rbx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x68(%rsp), %rdi
cmpq %r12, %rdi
je 0x117bb
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x42a0
movq 0x88(%rsp), %rdi
cmpq %rbp, %rdi
je 0x117d8
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x42a0
movq 0xc8(%rsp), %rdi
cmpq %r15, %rdi
je 0x117f5
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x42a0
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x1181a
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x42a0
leaq 0xf8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1183b
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x42a0
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x11851
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x42a0
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
jne 0x115d0
jmp 0x115dd
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %r12, %rdi
je 0x11883
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x42a0
jmp 0x11883
movq %rax, %rbx
movq 0x88(%rsp), %rdi
cmpq %rbp, %rdi
je 0x118a8
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x42a0
jmp 0x118a8
movq %r12, %r13
movq %rax, %rbx
movq 0xc8(%rsp), %rdi
cmpq %r15, %rdi
je 0x118d0
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x42a0
jmp 0x118d0
movq %r13, %r14
movq %r12, %r13
movq %rax, %rbx
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x11900
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x42a0
jmp 0x11900
movq %r13, %r14
movq %r12, %r13
movq %rax, %rbx
leaq 0xf8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x11947
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x42a0
jmp 0x11947
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x11962
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x42a0
jmp 0x11962
movq %r13, %r14
movq %r12, %r13
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x119be
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x42a0
jmp 0x119be
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %r14, %rdi
je 0x11980
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x42a0
jmp 0x11980
jmp 0x119b8
movq %rax, %rbx
leaq 0x98(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x119a8
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x42a0
jmp 0x119a8
jmp 0x119b8
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r15, %rdi
jne 0x119c8
jmp 0x119dc
jmp 0x119b8
jmp 0x119d9
movq %r12, %r13
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0x119dc
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x42a0
jmp 0x119dc
jmp 0x119d9
movq %rax, %rbx
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x119f7
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x42a0
movq %rbx, %rdi
callq 0x4490
movq %rax, %rbx
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x119f7
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
jmp 0x119f2