// File: /workspace/github_cpp_makefile_star2_O2/cyamonide[P]md2html/./src/inlineparse.cpp
// Function: resolveInline(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
string resolveInline(string line)
{
    // Double space line break
    if (regex_match(line, regex(".*[^ ]  ")))
        return resolveInline(line.substr(0, line.length() - 2)) + "<br>";

    // Regex obj
    smatch m;

    pair<int, string> mFirst;
    mFirst.first = line.length();
    mFirst.second = "";
    string mType = "";

    // Resolve inline code
    if (regex_search(line, m, R_CODE))
    {
        if (m.position() < mFirst.first)
        {
            mFirst.first = m.position();
            mFirst.second = m.str();
            mType = "code";
        }
    }
    // Resolve links
    if (regex_search(line, m, R_LINK))
    {
        if (m.position() < mFirst.first)
        {
            mFirst.first = m.position();
            mFirst.second = m.str();
            mType = "link";
        }
    }
    // Resolve triple asterisk/italics
    if (regex_search(line, m, R_TRIPLE_A) || regex_search(line, m, R_TRIPLE_U))
    {
        if (m.position() < mFirst.first)
        {
            mFirst.first = m.position();
            mFirst.second = m.str();
            mType = "triple";
        }
    }
    // Resolve bold
    if (regex_search(line, m, R_BOLD_A) || regex_search(line, m, R_BOLD_U))
    {
        if (m.position() < mFirst.first)
        {
            mFirst.first = m.position();
            mFirst.second = m.str();
            mType = "bold";
        }
    }
    // Resolve italics
    if (regex_search(line, m, R_ITALICS_A) ||
        regex_search(line, m, R_ITALICS_U))
    {
        if (m.position() < mFirst.first)
        {
            mFirst.first = m.position();
            mFirst.second = m.str();
            mType = "italics";
        }
    }

    if (mType == "")
        return line;

    string retval = resolveInline(line.substr(0, mFirst.first));
    string content = line.substr(mFirst.first, mFirst.second.length());

    if (mType == "code")
    {
        retval += resolveCode(content);
    }
    else if (mType == "link")
    {
        retval += resolveLink(content);
    }
    else if (mType == "triple")
    {
        retval += resolveTriple(content);
    }
    else if (mType == "bold")
    {
        retval += resolveBold(content);
    }
    else if (mType == "italics")
    {
        retval += resolveItalics(content);
    }

    retval += resolveInline(line.substr(mFirst.first + mFirst.second.length()));

    return retval;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x1b0, %rsp            # imm = 0x1B0
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x7c79(%rip), %rsi      # 0x170ee
leaq 0x48(%rsp), %r14
pushq $0x10
popq %rdx
movq %r14, %rdi
callq 0x5128
movq %r15, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0xfdd4
movl %eax, %ebp
leaq 0x48(%rsp), %rdi
callq 0x518e
testb %bpl, %bpl
je 0xf4fd
movq 0x8(%r15), %rcx
addq $-0x2, %rcx
leaq 0x190(%rsp), %r14
movq %r14, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x4300
leaq 0x48(%rsp), %rdi
movq %r14, %rsi
callq 0xf459
leaq 0x7c23(%rip), %rdx      # 0x170f7
leaq 0x48(%rsp), %rsi
movq %rbx, %rdi
callq 0xed51
leaq 0x48(%rsp), %rdi
callq 0x4548
leaq 0x190(%rsp), %rdi
callq 0x4548
jmp 0xfaa9
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movaps %xmm0, (%rsp)
leaq 0x60(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
leaq 0x50(%rsp), %r14
movb $0x0, (%rax)
movl 0x8(%r15), %ecx
movl %ecx, -0x18(%rax)
leaq 0x6d28(%rip), %rsi      # 0x16255
movq %r14, %rdi
callq 0x4500
leaq 0x6d19(%rip), %rsi      # 0x16255
leaq 0x90(%rsp), %rdi
leaq 0x70(%rsp), %rdx
callq 0x51a8
leaq 0x13423(%rip), %rdx     # 0x22978
movq %rsp, %rsi
movq %r15, %rdi
xorl %ecx, %ecx
callq 0xfdeb
testb %al, %al
je 0xf5c3
movq %rsp, %rdi
xorl %esi, %esi
callq 0xfe06
movslq 0x48(%rsp), %rcx
cmpq %rcx, %rax
jge 0xf5c3
movq %rsp, %rdi
xorl %esi, %esi
callq 0xfe06
movl %eax, 0x48(%rsp)
leaq 0x70(%rsp), %rdi
movq %rsp, %rsi
xorl %edx, %edx
callq 0xfe18
leaq 0x70(%rsp), %r12
movq %r14, %rdi
movq %r12, %rsi
callq 0x4370
movq %r12, %rdi
callq 0x4548
leaq 0x7b0a(%rip), %rsi      # 0x170c0
leaq 0x90(%rsp), %rdi
callq 0x4500
leaq 0x133ce(%rip), %rdx     # 0x22998
movq %rsp, %rsi
movq %r15, %rdi
xorl %ecx, %ecx
callq 0xfdeb
testb %al, %al
je 0xf638
movq %rsp, %rdi
xorl %esi, %esi
callq 0xfe06
movslq 0x48(%rsp), %rcx
cmpq %rcx, %rax
jge 0xf638
movq %rsp, %rdi
xorl %esi, %esi
callq 0xfe06
movl %eax, 0x48(%rsp)
leaq 0x70(%rsp), %rdi
movq %rsp, %rsi
xorl %edx, %edx
callq 0xfe18
leaq 0x70(%rsp), %r12
movq %r14, %rdi
movq %r12, %rsi
callq 0x4370
movq %r12, %rdi
callq 0x4548
leaq 0x7ad1(%rip), %rsi      # 0x170fc
leaq 0x90(%rsp), %rdi
callq 0x4500
leaq 0x13399(%rip), %rdx     # 0x229d8
movq %rsp, %rsi
movq %r15, %rdi
xorl %ecx, %ecx
callq 0xfdeb
testb %al, %al
jne 0xf668
leaq 0x133a1(%rip), %rdx     # 0x229f8
movq %rsp, %rsi
movq %r15, %rdi
xorl %ecx, %ecx
callq 0xfdeb
testb %al, %al
je 0xf6c5
movq %rsp, %rdi
xorl %esi, %esi
callq 0xfe06
movslq 0x48(%rsp), %rcx
cmpq %rcx, %rax
jge 0xf6c5
movq %rsp, %rdi
xorl %esi, %esi
callq 0xfe06
movl %eax, 0x48(%rsp)
leaq 0x70(%rsp), %rdi
movq %rsp, %rsi
xorl %edx, %edx
callq 0xfe18
leaq 0x70(%rsp), %r12
movq %r14, %rdi
movq %r12, %rsi
callq 0x4370
movq %r12, %rdi
callq 0x4548
leaq 0x7a49(%rip), %rsi      # 0x17101
leaq 0x90(%rsp), %rdi
callq 0x4500
leaq 0x1334c(%rip), %rdx     # 0x22a18
movq %rsp, %rsi
movq %r15, %rdi
xorl %ecx, %ecx
callq 0xfdeb
testb %al, %al
jne 0xf6f5
leaq 0x13354(%rip), %rdx     # 0x22a38
movq %rsp, %rsi
movq %r15, %rdi
xorl %ecx, %ecx
callq 0xfdeb
testb %al, %al
je 0xf752
movq %rsp, %rdi
xorl %esi, %esi
callq 0xfe06
movslq 0x48(%rsp), %rcx
cmpq %rcx, %rax
jge 0xf752
movq %rsp, %rdi
xorl %esi, %esi
callq 0xfe06
movl %eax, 0x48(%rsp)
leaq 0x70(%rsp), %rdi
movq %rsp, %rsi
xorl %edx, %edx
callq 0xfe18
leaq 0x70(%rsp), %r12
movq %r14, %rdi
movq %r12, %rsi
callq 0x4370
movq %r12, %rdi
callq 0x4548
leaq 0x79c3(%rip), %rsi      # 0x17108
leaq 0x90(%rsp), %rdi
callq 0x4500
leaq 0x132ff(%rip), %rdx     # 0x22a58
movq %rsp, %rsi
movq %r15, %rdi
xorl %ecx, %ecx
callq 0xfdeb
testb %al, %al
jne 0xf782
leaq 0x13307(%rip), %rdx     # 0x22a78
movq %rsp, %rsi
movq %r15, %rdi
xorl %ecx, %ecx
callq 0xfdeb
testb %al, %al
je 0xf7df
movq %rsp, %rdi
xorl %esi, %esi
callq 0xfe06
movslq 0x48(%rsp), %rcx
cmpq %rcx, %rax
jge 0xf7df
movq %rsp, %rdi
xorl %esi, %esi
callq 0xfe06
movl %eax, 0x48(%rsp)
leaq 0x70(%rsp), %rdi
movq %rsp, %rsi
xorl %edx, %edx
callq 0xfe18
leaq 0x70(%rsp), %r12
movq %r14, %rdi
movq %r12, %rsi
callq 0x4370
movq %r12, %rdi
callq 0x4548
leaq 0x793b(%rip), %rsi      # 0x1710d
leaq 0x90(%rsp), %rdi
callq 0x4500
leaq 0x6a6f(%rip), %rsi      # 0x16255
leaq 0x90(%rsp), %rdi
callq 0x94e5
testb %al, %al
je 0xf807
movq %rbx, %rdi
movq %r15, %rsi
callq 0x43a0
jmp 0xfa8c
movslq 0x48(%rsp), %rcx
leaq 0x170(%rsp), %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x4300
leaq 0x170(%rsp), %rsi
movq %rbx, %rdi
callq 0xf459
leaq 0x170(%rsp), %rdi
callq 0x4548
movslq 0x48(%rsp), %rdx
movq 0x58(%rsp), %rcx
leaq 0x70(%rsp), %rdi
movq %r15, %rsi
callq 0x4300
leaq 0x7867(%rip), %rsi      # 0x170c0
leaq 0x90(%rsp), %rdi
callq 0x94e5
testb %al, %al
je 0xf8b2
leaq 0x150(%rsp), %rdi
leaq 0x70(%rsp), %rsi
callq 0x43b0
leaq 0x28(%rsp), %rdi
leaq 0x150(%rsp), %rsi
callq 0xee6c
leaq 0x28(%rsp), %rsi
movq %rbx, %rdi
callq 0x4510
leaq 0x28(%rsp), %rdi
callq 0x4548
leaq 0x150(%rsp), %rdi
jmp 0xfa2a
leaq 0x7843(%rip), %rsi      # 0x170fc
leaq 0x90(%rsp), %rdi
callq 0x94e5
testb %al, %al
je 0xf912
leaq 0x130(%rsp), %rdi
leaq 0x70(%rsp), %rsi
callq 0x43b0
leaq 0x28(%rsp), %rdi
leaq 0x130(%rsp), %rsi
callq 0xef18
leaq 0x28(%rsp), %rsi
movq %rbx, %rdi
callq 0x4510
leaq 0x28(%rsp), %rdi
callq 0x4548
leaq 0x130(%rsp), %rdi
jmp 0xfa2a
leaq 0x77e8(%rip), %rsi      # 0x17101
leaq 0x90(%rsp), %rdi
callq 0x94e5
testb %al, %al
je 0xf972
leaq 0x110(%rsp), %rdi
leaq 0x70(%rsp), %rsi
callq 0x43b0
leaq 0x28(%rsp), %rdi
leaq 0x110(%rsp), %rsi
callq 0xf309
leaq 0x28(%rsp), %rsi
movq %rbx, %rdi
callq 0x4510
leaq 0x28(%rsp), %rdi
callq 0x4548
leaq 0x110(%rsp), %rdi
jmp 0xfa2a
leaq 0x778f(%rip), %rsi      # 0x17108
leaq 0x90(%rsp), %rdi
callq 0x94e5
testb %al, %al
je 0xf9cf
leaq 0xf0(%rsp), %rdi
leaq 0x70(%rsp), %rsi
callq 0x43b0
leaq 0x28(%rsp), %rdi
leaq 0xf0(%rsp), %rsi
callq 0xfc20
leaq 0x28(%rsp), %rsi
movq %rbx, %rdi
callq 0x4510
leaq 0x28(%rsp), %rdi
callq 0x4548
leaq 0xf0(%rsp), %rdi
jmp 0xfa2a
leaq 0x7737(%rip), %rsi      # 0x1710d
leaq 0x90(%rsp), %rdi
callq 0x94e5
testb %al, %al
je 0xfa2f
leaq 0xd0(%rsp), %rdi
leaq 0x70(%rsp), %rsi
callq 0x43b0
leaq 0x28(%rsp), %rdi
leaq 0xd0(%rsp), %rsi
callq 0xfcfa
leaq 0x28(%rsp), %rsi
movq %rbx, %rdi
callq 0x4510
leaq 0x28(%rsp), %rdi
callq 0x4548
leaq 0xd0(%rsp), %rdi
callq 0x4548
movslq 0x48(%rsp), %rdx
addq 0x58(%rsp), %rdx
leaq 0xb0(%rsp), %rdi
pushq $-0x1
popq %rcx
movq %r15, %rsi
callq 0x4300
leaq 0x28(%rsp), %rdi
leaq 0xb0(%rsp), %rsi
callq 0xf459
leaq 0x28(%rsp), %rsi
movq %rbx, %rdi
callq 0x4510
leaq 0x28(%rsp), %rdi
callq 0x4548
leaq 0xb0(%rsp), %rdi
callq 0x4548
leaq 0x70(%rsp), %rdi
callq 0x4548
leaq 0x90(%rsp), %rdi
callq 0x4548
movq %r14, %rdi
callq 0x4548
movq %rsp, %rdi
callq 0xfe38
movq %rbx, %rax
addq $0x1b0, %rsp            # imm = 0x1B0
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r15
leaq 0x28(%rsp), %rdi
callq 0x4548
jmp 0xface
movq %rax, %r15
leaq 0xd0(%rsp), %rdi
jmp 0xfb91
jmp 0xfb98
movq %rax, %r15
leaq 0x28(%rsp), %rdi
callq 0x4548
jmp 0xfaf2
movq %rax, %r15
leaq 0xf0(%rsp), %rdi
jmp 0xfb91
jmp 0xfb98
movq %rax, %r15
leaq 0x28(%rsp), %rdi
callq 0x4548
jmp 0xfb16
movq %rax, %r15
leaq 0x110(%rsp), %rdi
jmp 0xfb91
jmp 0xfb98
movq %rax, %r15
leaq 0x28(%rsp), %rdi
callq 0x4548
jmp 0xfb34
movq %rax, %r15
leaq 0x130(%rsp), %rdi
jmp 0xfb91
jmp 0xfb98
movq %rax, %r15
leaq 0x28(%rsp), %rdi
callq 0x4548
jmp 0xfb52
movq %rax, %r15
leaq 0x150(%rsp), %rdi
jmp 0xfb91
jmp 0xfb98
jmp 0xfbf8
jmp 0xfbf8
jmp 0xfbf8
jmp 0xfbf8
jmp 0xfbf8
movq %rax, %r15
leaq 0x28(%rsp), %rdi
callq 0x4548
jmp 0xfb89
movq %rax, %r15
leaq 0xb0(%rsp), %rdi
callq 0x4548
jmp 0xfb9b
movq %rax, %r15
leaq 0x70(%rsp), %rdi
callq 0x4548
movq %rbx, %rdi
callq 0x4548
jmp 0xfbfb
movq %rax, %r15
jmp 0xfba5
movq %rax, %r15
leaq 0x170(%rsp), %rdi
jmp 0xfba8
jmp 0xfbd2
movq %rax, %r15
leaq 0x48(%rsp), %rdi
callq 0x4548
jmp 0xfbda
movq %rax, %r15
jmp 0xfc08
movq %rax, %r15
leaq 0x190(%rsp), %rdi
callq 0x4548
jmp 0xfc18
movq %rax, %r15
leaq 0x48(%rsp), %rdi
callq 0x518e
jmp 0xfc18
movq %rax, %r15
leaq 0x90(%rsp), %rdi
callq 0x4548
movq %r14, %rdi
callq 0x4548
movq %rsp, %rdi
callq 0xfe38
movq %r15, %rdi
callq 0x44a0