// File: /workspace/github_cpp_makefile_star2_O3/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 $0xc8, %rsp
movl %ecx, 0x84(%rsp)
movq %rdx, 0x88(%rsp)
cmpw $0xa, 0x18(%rdi)
jne 0x15ea2
movl %r9d, %ebp
movl %r8d, %r15d
movq %rsi, %r13
movq 0x100(%rsp), %rbx
xorps %xmm0, %xmm0
movaps %xmm0, 0xa0(%rsp)
movaps %xmm0, 0x90(%rsp)
movw $0x1, %r14w
movw %r14w, 0xb0(%rsp)
leaq 0x50(%rsp), %rdi
callq 0x15ec1
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
movaps %xmm0, 0x10(%rsp)
movw %r14w, 0x30(%rsp)
movb $0x0, 0x32(%rsp)
movslq %ebp, %r12
testl %r12d, %r12d
js 0x159d0
je 0x159ef
leaq 0x8(%rsp), %rdx
movq %r12, (%rdx)
leaq 0x10(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x16138
jmp 0x15a23
movq %r12, %rax
negq %rax
leaq 0x8(%rsp), %rdx
movq %rax, (%rdx)
leaq 0x10(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x16024
jmp 0x15a23
leaq 0x50(%rsp), %r14
movzwl 0x20(%r14), %edx
movl %r15d, 0x4c(%rsp)
leaq 0x10(%rsp), %r15
movw %dx, 0x20(%r15)
shll $0x3, %edx
movq %r15, %rdi
movq %r14, %rsi
callq 0x41b0
movb 0x22(%r14), %al
movb %al, 0x22(%r15)
movl 0x4c(%rsp), %r15d
movl 0x2f(%rsp), %eax
leaq 0x90(%rsp), %r14
movl %eax, 0x1f(%r14)
movaps 0x10(%rsp), %xmm0
movaps 0x20(%rsp), %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 0x41b0
movb 0x22(%r14), %al
movb %al, 0x22(%rbx)
leaq 0x50(%rsp), %rdi
movq 0x88(%rsp), %rsi
callq 0x15ec1
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
movaps %xmm0, 0x10(%rsp)
movw $0x1, 0x30(%rsp)
movb $0x0, 0x32(%rsp)
testl %ebp, %ebp
js 0x15aae
je 0x15acd
leaq 0x8(%rsp), %rdx
movq %r12, (%rdx)
leaq 0x10(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x16138
jmp 0x15b01
movq %r12, %rax
negq %rax
leaq 0x8(%rsp), %rdx
movq %rax, (%rdx)
leaq 0x10(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x16024
jmp 0x15b01
leaq 0x50(%rsp), %r14
movzwl 0x20(%r14), %edx
movl %r15d, 0x4c(%rsp)
leaq 0x10(%rsp), %r15
movw %dx, 0x20(%r15)
shll $0x3, %edx
movq %r15, %rdi
movq %r14, %rsi
callq 0x41b0
movb 0x22(%r14), %al
movb %al, 0x22(%r15)
movl 0x4c(%rsp), %r15d
movl 0x2f(%rsp), %eax
leaq 0x90(%rsp), %r14
movl %eax, 0x1f(%r14)
movaps 0x10(%rsp), %xmm0
movaps 0x20(%rsp), %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 0x41b0
movb 0x22(%r14), %al
movb %al, 0x52(%rbx)
movzwl 0x2(%r13), %eax
rolw $0x8, %ax
xorl %ecx, %ecx
movzwl %ax, %eax
xorps %xmm0, %xmm0
movaps %xmm0, 0x50(%rsp)
movaps %xmm0, 0x60(%rsp)
movq %rax, 0x50(%rsp)
movw $0x1, %dx
movw %dx, 0x70(%rsp)
movb %cl, 0x72(%rsp)
movaps %xmm0, 0x10(%rsp)
movaps %xmm0, 0x20(%rsp)
movw %dx, 0x30(%rsp)
movb %cl, 0x32(%rsp)
testl %ebp, %ebp
js 0x15ba2
je 0x15bc1
leaq 0x8(%rsp), %rdx
movq %r12, (%rdx)
leaq 0x10(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x16138
jmp 0x15bc6
movq %r12, %rax
negq %rax
leaq 0x8(%rsp), %rdx
movq %rax, (%rdx)
leaq 0x10(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x16024
jmp 0x15bc6
movq %rax, 0x10(%rsp)
movl 0x2f(%rsp), %eax
leaq 0x90(%rsp), %r14
movl %eax, 0x1f(%r14)
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rcx
movaps 0x20(%rsp), %xmm0
movaps %xmm0, 0x10(%r14)
movq %rax, (%r14)
movq %rcx, 0x8(%r14)
leaq 0x60(%rbx), %rdi
movzwl 0x20(%r14), %edx
movw %dx, 0x80(%rbx)
shll $0x3, %edx
movq %r14, %rsi
callq 0x41b0
movb 0x22(%r14), %al
movb %al, 0x82(%rbx)
movq 0x88(%rsp), %rax
movzwl 0x2(%rax), %eax
rolw $0x8, %ax
xorl %ecx, %ecx
movzwl %ax, %eax
xorps %xmm0, %xmm0
movaps %xmm0, 0x50(%rsp)
movaps %xmm0, 0x60(%rsp)
movq %rax, 0x50(%rsp)
movw $0x1, %dx
movw %dx, 0x70(%rsp)
movb %cl, 0x72(%rsp)
movaps %xmm0, 0x10(%rsp)
movaps %xmm0, 0x20(%rsp)
movw %dx, 0x30(%rsp)
movb %cl, 0x32(%rsp)
testl %ebp, %ebp
js 0x15c7c
je 0x15c9b
leaq 0x8(%rsp), %rdx
movq %r12, (%rdx)
leaq 0x10(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x16138
jmp 0x15ca0
movq %r12, %rax
negq %rax
leaq 0x8(%rsp), %rdx
movq %rax, (%rdx)
leaq 0x10(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x16024
jmp 0x15ca0
movq %rax, 0x10(%rsp)
movl 0x2f(%rsp), %eax
leaq 0x90(%rsp), %r14
movl %eax, 0x1f(%r14)
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rcx
movaps 0x20(%rsp), %xmm0
movaps %xmm0, 0x10(%r14)
movq %rax, (%r14)
movq %rcx, 0x8(%r14)
leaq 0x90(%rbx), %rdi
movzwl 0x20(%r14), %edx
movw %dx, 0xb0(%rbx)
shll $0x3, %edx
movq %r14, %rsi
callq 0x41b0
xorl %ecx, %ecx
movb 0x22(%r14), %al
movb %al, 0xb2(%rbx)
movzbl 0x84(%rsp), %eax
xorps %xmm0, %xmm0
movaps %xmm0, 0x50(%rsp)
movaps %xmm0, 0x60(%rsp)
movq %rax, 0x50(%rsp)
movw $0x1, %dx
movw %dx, 0x70(%rsp)
movb %cl, 0x72(%rsp)
movaps %xmm0, 0x10(%rsp)
movaps %xmm0, 0x20(%rsp)
movw %dx, 0x30(%rsp)
movb %cl, 0x32(%rsp)
testl %ebp, %ebp
js 0x15d4e
je 0x15d6d
leaq 0x8(%rsp), %rdx
movq %r12, (%rdx)
leaq 0x10(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x16138
jmp 0x15d72
movq %r12, %rax
negq %rax
leaq 0x8(%rsp), %rdx
movq %rax, (%rdx)
leaq 0x10(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x16024
jmp 0x15d72
movq %rax, 0x10(%rsp)
movl 0x2f(%rsp), %eax
leaq 0x90(%rsp), %r14
movl %eax, 0x1f(%r14)
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rcx
movaps 0x20(%rsp), %xmm0
movaps %xmm0, 0x10(%r14)
movq %rax, (%r14)
movq %rcx, 0x8(%r14)
leaq 0xc0(%rbx), %rdi
movzwl 0x20(%r14), %edx
movw %dx, 0xe0(%rbx)
shll $0x3, %edx
movq %r14, %rsi
callq 0x41b0
xorl %ecx, %ecx
movb 0x22(%r14), %al
movb %al, 0xe2(%rbx)
movzbl %r15b, %eax
xorps %xmm0, %xmm0
movaps %xmm0, 0x50(%rsp)
movaps %xmm0, 0x60(%rsp)
movq %rax, 0x50(%rsp)
movw $0x1, %dx
movw %dx, 0x70(%rsp)
movb %cl, 0x72(%rsp)
movaps %xmm0, 0x10(%rsp)
movaps %xmm0, 0x20(%rsp)
movw %dx, 0x30(%rsp)
movb %cl, 0x32(%rsp)
testl %ebp, %ebp
js 0x15e1c
je 0x15e38
leaq 0x8(%rsp), %rdx
movq %r12, (%rdx)
leaq 0x10(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x16138
jmp 0x15e3d
negq %r12
leaq 0x8(%rsp), %rdx
movq %r12, (%rdx)
leaq 0x10(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x16024
jmp 0x15e3d
movq %rax, 0x10(%rsp)
movl 0x2f(%rsp), %eax
leaq 0x90(%rsp), %r14
movl %eax, 0x1f(%r14)
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rcx
movaps 0x20(%rsp), %xmm0
movaps %xmm0, 0x10(%r14)
movq %rax, (%r14)
movq %rcx, 0x8(%r14)
leaq 0xf0(%rbx), %rdi
movzwl 0x20(%r14), %edx
movw %dx, 0x110(%rbx)
shll $0x3, %edx
movq %r14, %rsi
callq 0x41b0
movb 0x22(%r14), %al
movb %al, 0x112(%rbx)
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2646f(%rip), %rdi     # 0x3c318
leaq 0x1f6a6(%rip), %rsi     # 0x35556
leaq 0x26470(%rip), %rcx     # 0x3c327
movl $0x286, %edx            # imm = 0x286
callq 0x4140