// File: /workspace/github_c_makefile_star2_O1/jech[P]shncpd/ra.c
// Function: send_multicast_ra
static int
send_multicast_ra(struct interface *interface, int router)
{
    const unsigned char all_nodes[16] =
        {0xff, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
         0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01};
    struct sockaddr_in6 to;
    int rc;

    if(interface == NULL) {
        int i;
        for(i = 0; i < numinterfaces; i++) {
            if(interfaces[i].ifindex > 0)
                send_multicast_ra(&interfaces[i], router);
        }
        return 1;
    }

    if(ts_minus_msec(&now, &interface->last_ra_sent) < MIN_DELAY_BETWEEN_RAS)
        return 0;

    memset(&to, 0, sizeof(to));
    to.sin6_family = AF_INET6;
    memcpy(&to.sin6_addr, all_nodes, 16);
    to.sin6_scope_id = interface->ifindex;
    rc = send_ra(interface, &to, router);
    interface->last_ra_sent = now;
    return rc;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x448, %rsp            # imm = 0x448
movl %esi, %ebp
testq %rdi, %rdi
je 0x7bb0
movq %rdi, %r15
leaq 0x80(%rdi), %rbx
leaq 0xb8bd(%rip), %r14      # 0x13270
movq %r14, %rdi
movq %rbx, %rsi
callq 0xbab7
xorl %r12d, %r12d
cmpl $0xbb8, %eax            # imm = 0xBB8
jl 0x7de4
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
movups %xmm0, 0x2c(%rsp)
movw $0xa, 0x20(%rsp)
movaps 0x6329(%rip), %xmm0     # 0xdd10
movups %xmm0, 0x28(%rsp)
movl 0x8(%r15), %eax
movl %eax, 0x38(%rsp)
xorl %eax, %eax
movl %ebp, 0xc(%rsp)
cmpl $0x2, %ebp
movl $0xe10, %ecx            # imm = 0xE10
cmovll %eax, %ecx
rolw $0x8, %cx
movb $-0x7a, 0x40(%rsp)
movl $0x0, 0x41(%rsp)
movb $0x0, 0x45(%rsp)
movw %cx, 0x46(%rsp)
movq $0x0, 0x48(%rsp)
movq 0x90(%r15), %rdi
movl $0x10, %r13d
testq %rdi, %rdi
movq %r15, %r12
je 0x7ac3
cmpw $0x0, 0x8(%rdi)
jle 0x7ac3
leaq 0x50(%rsp), %rax
movl $0x10, %esi
movl $0x10, %ecx
xorl %edx, %edx
movl %esi, %r13d
cmpl $0x3e0, %esi            # imm = 0x3E0
jg 0x7aa3
movq (%rdi), %r8
movslq %esi, %r9
movw $0x403, 0x40(%rsp,%r9)  # imm = 0x403
movb (%r8,%rcx), %r10b
movb %r10b, 0x42(%rsp,%r9)
movb $-0x80, 0x43(%rsp,%r9)
movq $0x0, 0x44(%rsp,%r9)
movl $0x0, 0x4c(%rsp,%r9)
movups -0x10(%r8,%rcx), %xmm0
movups %xmm0, (%rax,%r9)
leal 0x20(%rsi), %r13d
cmpl $0x3e1, %esi            # imm = 0x3E1
jge 0x7dae
incq %rdx
movswq 0x8(%rdi), %r8
addq $0x1c, %rcx
movl %r13d, %esi
cmpq %r8, %rdx
jl 0x7a5a
callq 0x97c3
movq $0x0, 0x90(%r12)
cmpl $0x0, 0xc(%rsp)
movq %rbx, 0x18(%rsp)
jle 0x7bf8
cmpl $0x0, 0x68(%r12)
jle 0x7bf8
movl $0x1c, %r14d
xorl %ebx, %ebx
movq %r12, 0x10(%rsp)
movq %r13, %r15
movq 0x60(%r12), %r13
movl $0x18, %ebp
cmpl $0x0, 0x20(%r13,%r14)
je 0x7b2c
leaq (%r14,%r13), %r12
movq %r12, %rdi
callq 0x9ef3
testl %eax, %eax
je 0x7b52
movq %r15, %r13
movq 0x10(%rsp), %r12
jmp 0x7b2f
movq %r15, %r13
testl %ebp, %ebp
je 0x7b3c
cmpl $0x18, %ebp
jne 0x7d8a
incq %rbx
movslq 0x68(%r12), %rax
addq $0x70, %r14
cmpq %rax, %rbx
jl 0x7afd
jmp 0x7bf8
cmpb $0x0, 0x10(%r13,%r14)
js 0x7b22
movl $0x4, %ebp
cmpl $0x3e0, %r15d           # imm = 0x3E0
jg 0x7b22
movslq %r15d, %rax
movw $0x403, 0x40(%rsp,%rax) # imm = 0x403
movb 0x10(%r13,%r14), %cl
movb %cl, 0x42(%rsp,%rax)
movb $-0x40, 0x43(%rsp,%rax)
movabsq $0x8070000100e0000, %rcx # imm = 0x8070000100E0000
movq %rcx, 0x44(%rsp,%rax)
movl $0x0, 0x4c(%rsp,%rax)
movups (%r12), %xmm0
leaq 0x50(%rsp), %rcx
movups %xmm0, (%rcx,%rax)
addl $0x20, %r15d
xorl %ebp, %ebp
jmp 0x7b22
leaq 0xb6e9(%rip), %r14      # 0x132a0
movl $0x1, %r12d
cmpl $0x0, (%r14)
jle 0x7de4
leaq 0xb6e2(%rip), %rbx      # 0x132b0
xorl %r15d, %r15d
cmpl $0x0, 0x8(%rbx)
jle 0x7be1
movq %rbx, %rdi
movl %ebp, %esi
callq 0x7986
incq %r15
movslq (%r14), %rax
addq $0x98, %rbx
cmpq %rax, %r15
jl 0x7bd1
jmp 0x7de4
callq 0xa2d0
movq %rax, %r15
testq %rax, %rax
je 0x7cd3
cmpw $0x0, 0x8(%r15)
jle 0x7cd3
xorl %r14d, %r14d
cmpl $0x0, 0xc(%rsp)
movl $0xe10, %eax            # imm = 0xE10
cmovlel %r14d, %eax
bswapl %eax
movl %eax, 0x10(%rsp)
xorl %ebx, %ebx
movq (%r15), %rbp
leaq (%r14,%rbp), %r12
movq %r12, %rdi
callq 0x9ef3
movl $0x21, %ecx
testl %eax, %eax
jne 0x7cb1
movl $0x4, %ecx
cmpl $0x3e0, %r13d           # imm = 0x3E0
jg 0x7cb1
movslq %r13d, %rax
leaq (%rsp,%rax), %rdi
addq $0x48, %rdi
movb $0x18, -0x8(%rdi)
cmpb $0x41, 0x10(%rbp,%r14)
setae %al
orb $0x2, %al
movb %al, -0x7(%rdi)
movb 0x10(%rbp,%r14), %al
movb %al, -0x6(%rdi)
movb $0x0, -0x5(%rdi)
movl 0x10(%rsp), %eax
movl %eax, -0x4(%rdi)
xorl %eax, %eax
cmpb $0x41, 0x10(%rbp,%r14)
setae %al
leaq 0x8(,%rax,8), %rdx
movq %r12, %rsi
callq 0x2210
xorl %eax, %eax
cmpb $0x41, 0x10(%rbp,%r14)
setae %al
leal 0x10(%r13,%rax,8), %r13d
xorl %ecx, %ecx
testl %ecx, %ecx
je 0x7cbe
cmpl $0x21, %ecx
jne 0x7d9d
incq %rbx
movswq 0x8(%r15), %rax
addq $0x1c, %r14
cmpq %rax, %rbx
jl 0x7c2e
movq %r15, %rdi
callq 0x97c3
cmpl $0x0, 0xc(%rsp)
movq 0x18(%rsp), %rbx
leaq 0xb584(%rip), %r14      # 0x13270
jle 0x7dae
xorl %edi, %edi
xorl %esi, %esi
movl $0x1, %edx
callq 0x50b9
testq %rax, %rax
je 0x7d80
movswl 0x8(%rax), %ecx
testl %ecx, %ecx
jle 0x7d80
shll $0x4, %ecx
addl %r13d, %ecx
addl $0x8, %ecx
cmpl $0x400, %ecx            # imm = 0x400
jg 0x7dae
movslq %r13d, %rcx
addl $0x8, %r13d
movb $0x19, 0x40(%rsp,%rcx)
movb 0x8(%rax), %dl
addb %dl, %dl
incb %dl
movb %dl, 0x41(%rsp,%rcx)
movw $0x0, 0x42(%rsp,%rcx)
movl $0xa0bb0d00, 0x44(%rsp,%rcx) # imm = 0xA0BB0D00
cmpw $0x0, 0x8(%rax)
jle 0x7d80
movslq %r13d, %rcx
addq %rsp, %rcx
addq $0x40, %rcx
xorl %edx, %edx
xorl %esi, %esi
movq (%rax), %rdi
movups (%rdi,%rdx), %xmm0
movups %xmm0, (%rcx)
incq %rsi
movswq 0x8(%rax), %rdi
addq $0x1c, %rdx
addl $0x10, %r13d
addq $0x10, %rcx
cmpq %rdi, %rsi
jl 0x7d5d
movq %rax, %rdi
callq 0x97c3
jmp 0x7dae
cmpl $0x4, %ebp
jne 0x7df9
movq 0x18(%rsp), %rbx
leaq 0xb4d5(%rip), %r14      # 0x13270
jmp 0x7dae
cmpl $0x4, %ecx
movq 0x18(%rsp), %rbx
leaq 0xb4c4(%rip), %r14      # 0x13270
jne 0x7e07
leaq 0xb4a3(%rip), %rax      # 0x13258
cmpl $0x2, (%rax)
jge 0x7e09
movl 0xb42c(%rip), %edi      # 0x131ec
movslq %r13d, %rdx
leaq 0x40(%rsp), %rsi
leaq 0x20(%rsp), %r8
xorl %ecx, %ecx
movl $0x1c, %r9d
callq 0x2170
movq %rax, %r12
movups (%r14), %xmm0
movups %xmm0, (%rbx)
movl %r12d, %eax
addq $0x448, %rsp            # imm = 0x448
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x18(%rsp), %rbx
leaq 0xb46b(%rip), %r14      # 0x13270
jmp 0x7ddd
jmp 0x7ddd
callq 0x2df2
jmp 0x7dba