// File: /workspace/github_cpp_makefile_star2_O2/hariguchi[P]rtacl/./rtacl.hpp
// Function: rtacl::db<boost::multiprecision::number<boost::multiprecision::backends::cpp_int_backend<256u, 256u, (boost::multiprecision::cpp_integer_type)1, (boost::multiprecision::cpp_int_check_type)0, void>, (boost::multiprecision::expression_template_option)0>>::makeTuple(sockaddr_in6 const&, sockaddr_in6 const&, unsigned char, unsigned char, int, boost::geometry::model::point<boost::multiprecision::number<boost::multiprecision::backends::cpp_int_backend<256u, 256u, (boost::multiprecision::cpp_integer_type)1, (boost::multiprecision::cpp_int_check_type)0, void>, (boost::multiprecision::expression_template_option)0>, 6ul, boost::geometry::cs::cartesian>&)
inline void
db<ADDR>::makeTuple (const sockaddr_in6& src,
                     const sockaddr_in6& dst,
                     const u8 proto,
                     const u8 dscp,
                     const s32 offset,
                     tuple<rtacl::ipv6a>& result)
{
    assert(af == AF_INET6);

    s256 val;

    val = sin6a2int<s256>(src) + offset;
    bg::set<0>(result, val);
    val = sin6a2int<s256>(dst) + offset;
    bg::set<1>(result, val);
    val = static_cast<s256>(ntohs(src.sin6_port)) + offset;
    bg::set<2>(result, val);
    val = static_cast<s256>(ntohs(dst.sin6_port)) + offset;
    bg::set<3>(result, val);
    val = static_cast<s256>(proto) + offset;
    bg::set<4>(result, val);
    val = static_cast<s256>(dscp) + offset;
    bg::set<5>(result, val);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movl %r8d, 0x10(%rsp)
movl %ecx, 0xc(%rsp)
movl %r9d, 0x14(%rsp)
cmpw $0xa, 0x18(%rdi)
jne 0xfc5e
movq %rdx, %r15
movq %rsi, %rbp
movq 0xf0(%rsp), %rbx
leaq 0x20(%rsp), %r14
movq %r14, %rdi
callq 0xfcb2
leaq 0x50(%rsp), %r12
leaq 0x14(%rsp), %r13
movq %r12, %rdi
movq %r14, %rsi
movq %r13, %rdx
callq 0xfc7d
movl 0x1f(%r12), %eax
leaq 0x80(%rsp), %r14
movl %eax, 0x1f(%r14)
movaps (%r12), %xmm0
movaps 0x10(%r12), %xmm1
movaps %xmm1, 0x10(%r14)
movaps %xmm0, (%r14)
movzwl 0x20(%r14), %edx
movw %dx, 0x20(%rbx)
shll $0x3, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x41f0
movb 0x22(%r14), %al
movb %al, 0x22(%rbx)
leaq 0x20(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0xfcb2
movq %r15, 0x18(%rsp)
leaq 0x50(%rsp), %r15
movq %r15, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0xfc7d
movl 0x1f(%r15), %eax
movl %eax, 0x1f(%r14)
movaps (%r15), %xmm0
movaps 0x10(%r15), %xmm1
movaps %xmm1, 0x10(%r14)
movaps %xmm0, (%r14)
leaq 0x30(%rbx), %rdi
movzwl 0x20(%r14), %edx
movw %dx, 0x50(%rbx)
shll $0x3, %edx
movq %r14, %rsi
callq 0x41f0
movb 0x22(%r14), %al
movb %al, 0x52(%rbx)
movzwl 0x2(%rbp), %eax
rolw $0x8, %ax
movzwl %ax, %eax
xorps %xmm0, %xmm0
movaps %xmm0, (%r12)
movaps %xmm0, 0x10(%r12)
movq %rax, (%r12)
movw $0x1, %ax
movw %ax, 0x20(%r12)
xorl %ebp, %ebp
movb %bpl, 0x22(%r12)
leaq 0x50(%rsp), %r15
leaq 0x20(%rsp), %r12
movq %r15, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0xfc7d
movl 0x1f(%r15), %eax
movl %eax, 0x1f(%r14)
movaps (%r15), %xmm0
movaps 0x10(%r15), %xmm1
movaps %xmm1, 0x10(%r14)
movaps %xmm0, (%r14)
leaq 0x60(%rbx), %rdi
movzwl 0x20(%r14), %edx
movw %dx, 0x80(%rbx)
shll $0x3, %edx
movq %r14, %rsi
callq 0x41f0
movb 0x22(%r14), %al
movb %al, 0x82(%rbx)
movq 0x18(%rsp), %rax
movzwl 0x2(%rax), %eax
rolw $0x8, %ax
movzwl %ax, %eax
xorps %xmm0, %xmm0
movaps %xmm0, (%r12)
movaps %xmm0, 0x10(%r12)
movq %rax, (%r12)
movw $0x1, %ax
movw %ax, 0x20(%r12)
movb %bpl, 0x22(%r12)
leaq 0x50(%rsp), %r15
leaq 0x20(%rsp), %r12
movq %r15, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0xfc7d
movl 0x1f(%r15), %eax
movl %eax, 0x1f(%r14)
movaps (%r15), %xmm0
movaps 0x10(%r15), %xmm1
movaps %xmm1, 0x10(%r14)
movaps %xmm0, (%r14)
leaq 0x90(%rbx), %rdi
movzwl 0x20(%r14), %edx
movw %dx, 0xb0(%rbx)
shll $0x3, %edx
movq %r14, %rsi
callq 0x41f0
movb 0x22(%r14), %al
movb %al, 0xb2(%rbx)
movzbl 0xc(%rsp), %eax
xorps %xmm0, %xmm0
movaps %xmm0, (%r12)
movaps %xmm0, 0x10(%r12)
movq %rax, (%r12)
movw $0x1, %ax
movw %ax, 0x20(%r12)
movb %bpl, 0x22(%r12)
leaq 0x50(%rsp), %r15
leaq 0x20(%rsp), %r12
movq %r15, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0xfc7d
movl 0x1f(%r15), %eax
movl %eax, 0x1f(%r14)
movaps (%r15), %xmm0
movaps 0x10(%r15), %xmm1
movaps %xmm1, 0x10(%r14)
movaps %xmm0, (%r14)
leaq 0xc0(%rbx), %rdi
movzwl 0x20(%r14), %edx
movw %dx, 0xe0(%rbx)
shll $0x3, %edx
movq %r14, %rsi
callq 0x41f0
movb 0x22(%r14), %al
movb %al, 0xe2(%rbx)
movzbl 0x10(%rsp), %eax
xorps %xmm0, %xmm0
movaps %xmm0, (%r12)
movaps %xmm0, 0x10(%r12)
movq %rax, (%r12)
movw $0x1, %ax
movw %ax, 0x20(%r12)
movb %bpl, 0x22(%r12)
leaq 0x50(%rsp), %r15
leaq 0x20(%rsp), %rsi
movq %r15, %rdi
movq %r13, %rdx
callq 0xfc7d
movl 0x1f(%r15), %eax
movl %eax, 0x1f(%r14)
movaps (%r15), %xmm0
movaps 0x10(%r15), %xmm1
movaps %xmm1, 0x10(%r14)
movaps %xmm0, (%r14)
leaq 0xf0(%rbx), %rdi
movzwl 0x20(%r14), %edx
movw %dx, 0x110(%rbx)
shll $0x3, %edx
movq %r14, %rsi
callq 0x41f0
movb 0x22(%r14), %al
movb %al, 0x112(%rbx)
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x22b43(%rip), %rdi     # 0x327a8
leaq 0x1bd7a(%rip), %rsi     # 0x2b9e6
leaq 0x22b44(%rip), %rcx     # 0x327b7
movl $0x286, %edx            # imm = 0x286
callq 0x4180