// File: /workspace/github_cpp_makefile_star2_O1/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, 0x74(%rsp)
movl %ecx, 0x70(%rsp)
movq %rdx, 0x78(%rsp)
cmpw $0xa, 0x18(%rdi)
jne 0x15f6f
movl %r9d, %ebp
movq %rsi, %r13
movq 0xf0(%rsp), %rbx
xorps %xmm0, %xmm0
movaps %xmm0, 0x90(%rsp)
movaps %xmm0, 0x80(%rsp)
movw $0x1, %r14w
movw %r14w, 0xa0(%rsp)
xorl %r15d, %r15d
movb %r15b, 0xa2(%rsp)
leaq 0x40(%rsp), %rdi
callq 0x15f8e
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movaps %xmm0, (%rsp)
movw %r14w, 0x20(%rsp)
movb %r15b, 0x22(%rsp)
movslq %ebp, %r12
testl %r12d, %r12d
js 0x15a9a
je 0x15ab7
leaq 0x38(%rsp), %rdx
movq %r12, (%rdx)
movq %rsp, %rdi
leaq 0x40(%rsp), %rsi
callq 0x16207
jmp 0x15adf
movq %r12, %rax
negq %rax
leaq 0x38(%rsp), %rdx
movq %rax, (%rdx)
movq %rsp, %rdi
leaq 0x40(%rsp), %rsi
callq 0x160eb
jmp 0x15adf
leaq 0x40(%rsp), %r14
movzwl 0x20(%r14), %edx
movq %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 0x1f(%rsp), %eax
leaq 0x80(%rsp), %r14
movl %eax, 0x1f(%r14)
movaps (%rsp), %xmm0
movaps 0x10(%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 0x40(%rsp), %rdi
movq 0x78(%rsp), %r15
movq %r15, %rsi
callq 0x15f8e
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movaps %xmm0, (%rsp)
movw $0x1, 0x20(%rsp)
movb $0x0, 0x22(%rsp)
testl %ebp, %ebp
js 0x15b66
je 0x15b83
leaq 0x38(%rsp), %rdx
movq %r12, (%rdx)
movq %rsp, %rdi
leaq 0x40(%rsp), %rsi
callq 0x16207
jmp 0x15bb0
movq %r12, %rax
negq %rax
leaq 0x38(%rsp), %rdx
movq %rax, (%rdx)
movq %rsp, %rdi
leaq 0x40(%rsp), %rsi
callq 0x160eb
jmp 0x15bb0
leaq 0x40(%rsp), %r14
movzwl 0x20(%r14), %edx
movq %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)
movq 0x78(%rsp), %r15
movl 0x1f(%rsp), %eax
leaq 0x80(%rsp), %r14
movl %eax, 0x1f(%r14)
movaps (%rsp), %xmm0
movaps 0x10(%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, 0x40(%rsp)
movaps %xmm0, 0x50(%rsp)
movq %rax, 0x40(%rsp)
movw $0x1, %ax
movw %ax, 0x60(%rsp)
movb %cl, 0x62(%rsp)
movaps %xmm0, (%rsp)
movaps %xmm0, 0x10(%rsp)
movw %ax, 0x20(%rsp)
movb %cl, 0x22(%rsp)
testl %ebp, %ebp
js 0x15c4d
je 0x15c6a
leaq 0x38(%rsp), %rdx
movq %r12, (%rdx)
movq %rsp, %rdi
leaq 0x40(%rsp), %rsi
callq 0x16207
jmp 0x15c7f
movq %r12, %rax
negq %rax
leaq 0x38(%rsp), %rdx
movq %rax, (%rdx)
movq %rsp, %rdi
leaq 0x40(%rsp), %rsi
callq 0x160eb
jmp 0x15c7f
movw $0x1, 0x20(%rsp)
movq 0x40(%rsp), %rax
movq %rax, (%rsp)
movb $0x0, 0x22(%rsp)
movl 0x1f(%rsp), %eax
leaq 0x80(%rsp), %r14
movl %eax, 0x1f(%r14)
movq (%rsp), %rax
movq 0x8(%rsp), %rcx
movaps 0x10(%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)
movzwl 0x2(%r15), %eax
rolw $0x8, %ax
xorl %ecx, %ecx
movzwl %ax, %eax
xorps %xmm0, %xmm0
movaps %xmm0, 0x40(%rsp)
movaps %xmm0, 0x50(%rsp)
movq %rax, 0x40(%rsp)
movw $0x1, %ax
movw %ax, 0x60(%rsp)
movb %cl, 0x62(%rsp)
movaps %xmm0, (%rsp)
movaps %xmm0, 0x10(%rsp)
movw %ax, 0x20(%rsp)
movb %cl, 0x22(%rsp)
testl %ebp, %ebp
js 0x15d2a
je 0x15d47
leaq 0x38(%rsp), %rdx
movq %r12, (%rdx)
movq %rsp, %rdi
leaq 0x40(%rsp), %rsi
callq 0x16207
jmp 0x15d5c
movq %r12, %rax
negq %rax
leaq 0x38(%rsp), %rdx
movq %rax, (%rdx)
movq %rsp, %rdi
leaq 0x40(%rsp), %rsi
callq 0x160eb
jmp 0x15d5c
movw $0x1, 0x20(%rsp)
movq 0x40(%rsp), %rax
movq %rax, (%rsp)
movb $0x0, 0x22(%rsp)
movl 0x1f(%rsp), %eax
leaq 0x80(%rsp), %r14
movl %eax, 0x1f(%r14)
movq (%rsp), %rax
movq 0x8(%rsp), %rcx
movaps 0x10(%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 %eax, %eax
movb 0x22(%r14), %cl
movb %cl, 0xb2(%rbx)
movzbl 0x70(%rsp), %ecx
xorps %xmm0, %xmm0
movaps %xmm0, 0x40(%rsp)
movaps %xmm0, 0x50(%rsp)
movq %rcx, 0x40(%rsp)
movw $0x1, %cx
movw %cx, 0x60(%rsp)
movb %al, 0x62(%rsp)
movaps %xmm0, (%rsp)
movaps %xmm0, 0x10(%rsp)
movw %cx, 0x20(%rsp)
movb %al, 0x22(%rsp)
testl %ebp, %ebp
js 0x15e03
je 0x15e20
leaq 0x38(%rsp), %rdx
movq %r12, (%rdx)
movq %rsp, %rdi
leaq 0x40(%rsp), %rsi
callq 0x16207
jmp 0x15e35
movq %r12, %rax
negq %rax
leaq 0x38(%rsp), %rdx
movq %rax, (%rdx)
movq %rsp, %rdi
leaq 0x40(%rsp), %rsi
callq 0x160eb
jmp 0x15e35
movw $0x1, 0x20(%rsp)
movq 0x40(%rsp), %rax
movq %rax, (%rsp)
movb $0x0, 0x22(%rsp)
movl 0x1f(%rsp), %eax
leaq 0x80(%rsp), %r14
movl %eax, 0x1f(%r14)
movq (%rsp), %rax
movq 0x8(%rsp), %rcx
movaps 0x10(%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 %eax, %eax
movb 0x22(%r14), %cl
movb %cl, 0xe2(%rbx)
movzbl 0x74(%rsp), %ecx
xorps %xmm0, %xmm0
movaps %xmm0, 0x40(%rsp)
movaps %xmm0, 0x50(%rsp)
movq %rcx, 0x40(%rsp)
movw $0x1, %cx
movw %cx, 0x60(%rsp)
movb %al, 0x62(%rsp)
movaps %xmm0, (%rsp)
movaps %xmm0, 0x10(%rsp)
movw %cx, 0x20(%rsp)
movb %al, 0x22(%rsp)
testl %ebp, %ebp
js 0x15edc
je 0x15ef6
leaq 0x38(%rsp), %rdx
movq %r12, (%rdx)
movq %rsp, %rdi
leaq 0x40(%rsp), %rsi
callq 0x16207
jmp 0x15f0b
negq %r12
leaq 0x38(%rsp), %rdx
movq %r12, (%rdx)
movq %rsp, %rdi
leaq 0x40(%rsp), %rsi
callq 0x160eb
jmp 0x15f0b
movw $0x1, 0x20(%rsp)
movq 0x40(%rsp), %rax
movq %rax, (%rsp)
movb $0x0, 0x22(%rsp)
movl 0x1f(%rsp), %eax
leaq 0x80(%rsp), %r14
movl %eax, 0x1f(%r14)
movq (%rsp), %rax
movq 0x8(%rsp), %rcx
movaps 0x10(%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 $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x263cc(%rip), %rdi     # 0x3c342
leaq 0x1f603(%rip), %rsi     # 0x35580
leaq 0x263cd(%rip), %rcx     # 0x3c351
movl $0x286, %edx            # imm = 0x286
callq 0x4140