// File: /workspace/github_cpp_makefile_star2_O3/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 0x147ad(%rip), %rcx     # 0x259a8
xorl %r8d, %r8d
callq 0x12cd9
movl %eax, %ebp
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x1121c
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
callq 0x42a0
leaq 0xaea2(%rip), %rsi      # 0x1c0c5
movl $0x1, %ecx
movq %r14, %rdi
xorl %edx, %edx
testb %bpl, %bpl
je 0x113e8
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 0xb0e6
leaq 0xae7a(%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 0x112c9
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x42a0
leaq 0xae25(%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 0x1131f
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 0x1135a
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x42a0
leaq 0xad66(%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 0xad3e(%rip), %rsi      # 0x1c0c9
leaq 0xe8(%rsp), %rdi
leaq 0x40(%rsp), %rdx
callq 0x1101d
leaq 0xad2f(%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 0x11625
movq %rdx, 0xa8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xb8(%rsp)
jmp 0x1162b
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 0x1144a
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x42a0
leaq 0xac76(%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 0xac4c(%rip), %rsi      # 0x1c0c9
leaq 0x88(%rsp), %rdi
leaq 0x40(%rsp), %rdx
callq 0x1101d
leaq 0xac4b(%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 0x114ca
movq %rdx, 0x68(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x78(%rsp)
jmp 0x114d1
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 0x11523
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x1152b
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 0xab90(%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 0x11573
movq %rsi, (%rbx)
movq (%rcx), %rdx
movq %rdx, 0x10(%rbx)
jmp 0x11579
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 0x115a6
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x42a0
movq 0x68(%rsp), %rdi
cmpq %r14, %rdi
je 0x115bd
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x42a0
leaq 0x98(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x115de
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x42a0
movq 0x20(%rsp), %rdi
cmpq %r15, %rdi
je 0x115f5
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x42a0
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x11610
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 0x11689
movq %rdx, 0xc8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xd8(%rsp)
jmp 0x11690
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 0xaa29(%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 0x116ee
movq %rdx, 0x88(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x98(%rsp)
jmp 0x116f5
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 0x1174d
movq %rdx, 0x68(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x78(%rsp)
jmp 0x11755
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 0xa964(%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 0x1179f
movq %rsi, (%rbx)
movq (%rcx), %rdx
movq %rdx, 0x10(%rbx)
jmp 0x117a5
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 0x117d3
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x42a0
movq 0x88(%rsp), %rdi
cmpq %rbp, %rdi
je 0x117f0
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x42a0
movq 0xc8(%rsp), %rdi
cmpq %r15, %rdi
je 0x1180d
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x42a0
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x11832
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x42a0
leaq 0xf8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x11853
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x42a0
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x11869
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x42a0
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
jne 0x115e8
jmp 0x115f5
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %r12, %rdi
je 0x1189b
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x42a0
jmp 0x1189b
movq %rax, %rbx
movq 0x88(%rsp), %rdi
cmpq %rbp, %rdi
je 0x118c0
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x42a0
jmp 0x118c0
movq %r12, %r13
movq %rax, %rbx
movq 0xc8(%rsp), %rdi
cmpq %r15, %rdi
je 0x118e8
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x42a0
jmp 0x118e8
movq %r13, %r14
movq %r12, %r13
movq %rax, %rbx
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x11918
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x42a0
jmp 0x11918
movq %r13, %r14
movq %r12, %r13
movq %rax, %rbx
leaq 0xf8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1195f
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x42a0
jmp 0x1195f
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x1197a
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x42a0
jmp 0x1197a
movq %r13, %r14
movq %r12, %r13
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x119d6
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x42a0
jmp 0x119d6
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %r14, %rdi
je 0x11998
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x42a0
jmp 0x11998
jmp 0x119d0
movq %rax, %rbx
leaq 0x98(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x119c0
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x42a0
jmp 0x119c0
jmp 0x119d0
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r15, %rdi
jne 0x119e0
jmp 0x119f4
jmp 0x119d0
jmp 0x119f1
movq %r12, %r13
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0x119f4
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x42a0
jmp 0x119f4
jmp 0x119f1
movq %rax, %rbx
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x11a0f
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x42a0
movq %rbx, %rdi
callq 0x4490
movq %rax, %rbx
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x11a0f
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
jmp 0x11a0a