// File: trisolaris233[P]httpc/src/http_router.hpp
// Function: void httpc::HttpRouter::RegisterRouterImpl_<main::$_0>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, main::$_0&&)
void RegisterRouterImpl_(
            const std::string&  http_method,
            const std::string&  router_directory,
            Function&&          callback,
            Aspects&&...         aspects
        ) {
            if (router_directory.empty() || router_directory[0] != '/') {
                return;
            }
            // if find char of '*' in the router location
            if (router_directory.find('*') != std::string::npos) {
                wildcard_router_map_[http_method + router_directory] = std::bind(
                    &HttpRouter::Invoke<Function, Aspects...>,
                    this,
                    std::placeholders::_1,
                    std::placeholders::_2,
                    std::forward<Function>(callback),
                    std::forward<Aspects>(aspects)...
                );
            } else {
                directly_router_map_[http_method + router_directory] = std::bind(
                    &HttpRouter::Invoke<Function, Aspects...>,
                    this,
                    std::placeholders::_1,
                    std::placeholders::_2,
                    std::forward<Function>(callback),
                    std::forward<Aspects>(aspects)...
                );
            }
        }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x100, %rsp            # imm = 0x100
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0xd8(%rbp)
movq -0x18(%rbp), %rdi
callq 0xaab0
testb $0x1, %al
jne 0xba48
movq -0x18(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0xa770
movsbl (%rax), %eax
cmpl $0x2f, %eax
je 0xba4d
jmp 0xbbf1
movq -0x18(%rbp), %rdi
movl $0x2a, %esi
xorl %eax, %eax
movl %eax, %edx
callq 0xa8f0
cmpq $-0x1, %rax
je 0xbb2a
movq -0xd8(%rbp), %rax
leaq 0x1e9(%rip), %rcx       # 0xbc60
movq %rcx, -0x48(%rbp)
movq $0x0, -0x40(%rbp)
movq %rax, -0x50(%rbp)
movq -0x20(%rbp), %r9
movq 0x7e4c6(%rip), %rcx     # 0x89f58
movq 0x7e54f(%rip), %r8      # 0x89fe8
leaq -0x38(%rbp), %rdi
leaq -0x48(%rbp), %rsi
leaq -0x50(%rbp), %rdx
callq 0xbc10
movq -0xd8(%rbp), %rax
addq $0x30, %rax
movq %rax, -0xf0(%rbp)
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
leaq -0x70(%rbp), %rdi
movq %rdi, -0xe8(%rbp)
callq 0x32dd0
movq -0xf0(%rbp), %rdi
movq -0xe8(%rbp), %rsi
callq 0x52a30
movq %rax, -0xe0(%rbp)
jmp 0xbaf0
movq -0xe0(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0xbce0
jmp 0xbb02
leaq -0x70(%rbp), %rdi
callq 0xa450
jmp 0xbbf1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x78(%rbp)
movl %eax, -0x7c(%rbp)
leaq -0x70(%rbp), %rdi
callq 0xa450
jmp 0xbbfa
movq -0xd8(%rbp), %rax
leaq 0x128(%rip), %rcx       # 0xbc60
movq %rcx, -0xa8(%rbp)
movq $0x0, -0xa0(%rbp)
movq %rax, -0xb0(%rbp)
movq -0x20(%rbp), %r9
movq 0x7e3fc(%rip), %rcx     # 0x89f58
movq 0x7e485(%rip), %r8      # 0x89fe8
leaq -0x98(%rbp), %rdi
leaq -0xa8(%rbp), %rsi
leaq -0xb0(%rbp), %rdx
callq 0xbc10
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
leaq -0xd0(%rbp), %rdi
movq %rdi, -0x100(%rbp)
callq 0x32dd0
movq -0xd8(%rbp), %rdi
movq -0x100(%rbp), %rsi
callq 0x52a30
movq %rax, -0xf8(%rbp)
jmp 0xbbb4
movq -0xf8(%rbp), %rdi
leaq -0x98(%rbp), %rsi
callq 0xbce0
jmp 0xbbc9
leaq -0xd0(%rbp), %rdi
callq 0xa450
jmp 0xbbf1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x78(%rbp)
movl %eax, -0x7c(%rbp)
leaq -0xd0(%rbp), %rdi
callq 0xa450
jmp 0xbbfa
addq $0x100, %rsp            # imm = 0x100
popq %rbp
retq
movq -0x78(%rbp), %rdi
callq 0xab10
nopw %cs:(%rax,%rax)