// File: /workspace/github_c_makefile_star2_O0/mjosaarinen[P]brutus/crypto_aead/oceankeyakv2/KnightsLanding/KeccakP-1600-times8-SIMD512.c
// Function: KeccakP1600times8_AddLanesAll
void KeccakP1600times8_AddLanesAll(void *states, const unsigned char *data, unsigned int laneCount, unsigned int laneOffset)
{
    V512 *stateAsLanes = states;
    const UINT64 *dataAsLanes = (const UINT64 *)data;
    unsigned int i;
	V256 index;

    #define Add_In( argIndex )  stateAsLanes[argIndex] = XOR(stateAsLanes[argIndex], LOAD_GATHER8_64(index, dataAsLanes+argIndex))
    index = LOAD8_32(7*laneOffset, 6*laneOffset, 5*laneOffset, 4*laneOffset, 3*laneOffset, 2*laneOffset, 1*laneOffset, 0*laneOffset);
    if ( laneCount >= 16 )  {
        Add_In( 0 );
        Add_In( 1 );
        Add_In( 2 );
        Add_In( 3 );
        Add_In( 4 );
        Add_In( 5 );
        Add_In( 6 );
        Add_In( 7 );
        Add_In( 8 );
        Add_In( 9 );
        Add_In( 10 );
        Add_In( 11 );
        Add_In( 12 );
        Add_In( 13 );
        Add_In( 14 );
        Add_In( 15 );
        if ( laneCount >= 20 )  {
	        Add_In( 16 );
    	    Add_In( 17 );
	        Add_In( 18 );
    	    Add_In( 19 );
            for(i=20; i<laneCount; i++)
                Add_In( i );
        }
        else {
            for(i=16; i<laneCount; i++)
                Add_In( i );
        }
    }
    else {
        for(i=0; i<laneCount; i++)
            Add_In( i );
    }
    #undef  Add_In
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
andq $-0x40, %rsp
subq $0xc80, %rsp            # imm = 0xC80
movq %rdi, 0x78(%rsp)
movq %rsi, 0x70(%rsp)
movl %edx, 0x6c(%rsp)
movl %ecx, 0x68(%rsp)
movq 0x78(%rsp), %rax
movq %rax, 0x60(%rsp)
movq 0x70(%rsp), %rax
movq %rax, 0x58(%rsp)
movl 0x68(%rsp), %eax
movl %eax, %r9d
shll $0x3, %r9d
subl %eax, %r9d
movl %eax, %ecx
addl %ecx, %ecx
movl %ecx, %edx
leal (%rdx,%rdx,2), %r8d
movl %eax, %edx
leal (%rdx,%rdx,4), %edi
movl %eax, %esi
shll $0x2, %esi
leal (%rdx,%rdx,2), %edx
movl %r9d, 0xbc(%rsp)
movl %r8d, 0xb8(%rsp)
movl %edi, 0xb4(%rsp)
movl %esi, 0xb0(%rsp)
movl %edx, 0xac(%rsp)
movl %ecx, 0xa8(%rsp)
movl %eax, 0xa4(%rsp)
movl $0x0, 0xa0(%rsp)
movl 0xa4(%rsp), %edx
movl 0xa8(%rsp), %ecx
movl 0xac(%rsp), %eax
movl 0xb4(%rsp), %r8d
movl 0xb8(%rsp), %edi
movl 0xbc(%rsp), %esi
vmovd 0xb0(%rsp), %xmm0
vpinsrd $0x1, %r8d, %xmm0, %xmm0
vpinsrd $0x2, %edi, %xmm0, %xmm0
vpinsrd $0x3, %esi, %xmm0, %xmm1
vmovd 0xa0(%rsp), %xmm0
vpinsrd $0x1, %edx, %xmm0, %xmm0
vpinsrd $0x2, %ecx, %xmm0, %xmm0
vpinsrd $0x3, %eax, %xmm0, %xmm2
vmovaps %xmm2, %xmm0
vinserti128 $0x1, %xmm1, %ymm0, %ymm0
vmovdqa %ymm0, 0x80(%rsp)
vmovdqa 0x80(%rsp), %ymm0
vmovdqa %ymm0, 0x20(%rsp)
cmpl $0x10, 0x6c(%rsp)
jb 0xc4335
movq 0x60(%rsp), %rax
vmovdqa64 (%rax), %zmm1
movq 0x58(%rsp), %rax
vmovdqa 0x20(%rsp), %ymm2
kxnorw %k0, %k0, %k1
vpxor %xmm0, %xmm0, %xmm0
vpgatherdq (%rax,%ymm2,8), %zmm0 {%k1}
vmovdqa64 %zmm1, 0xc00(%rsp)
vmovdqa64 %zmm0, 0xbc0(%rsp)
vmovdqa64 0xc00(%rsp), %zmm0
vpxorq 0xbc0(%rsp), %zmm0, %zmm0
movq 0x60(%rsp), %rax
vmovdqa64 %zmm0, (%rax)
movq 0x60(%rsp), %rax
vmovdqa64 0x40(%rax), %zmm1
movq 0x58(%rsp), %rax
addq $0x8, %rax
vmovdqa 0x20(%rsp), %ymm2
kxnorw %k0, %k0, %k1
vpxor %xmm0, %xmm0, %xmm0
vpgatherdq (%rax,%ymm2,8), %zmm0 {%k1}
vmovdqa64 %zmm1, 0xb80(%rsp)
vmovdqa64 %zmm0, 0xb40(%rsp)
vmovdqa64 0xb80(%rsp), %zmm0
vpxorq 0xb40(%rsp), %zmm0, %zmm0
movq 0x60(%rsp), %rax
vmovdqa64 %zmm0, 0x40(%rax)
movq 0x60(%rsp), %rax
vmovdqa64 0x80(%rax), %zmm1
movq 0x58(%rsp), %rax
addq $0x10, %rax
vmovdqa 0x20(%rsp), %ymm2
kxnorw %k0, %k0, %k1
vpxor %xmm0, %xmm0, %xmm0
vpgatherdq (%rax,%ymm2,8), %zmm0 {%k1}
vmovdqa64 %zmm1, 0xb00(%rsp)
vmovdqa64 %zmm0, 0xac0(%rsp)
vmovdqa64 0xb00(%rsp), %zmm0
vpxorq 0xac0(%rsp), %zmm0, %zmm0
movq 0x60(%rsp), %rax
vmovdqa64 %zmm0, 0x80(%rax)
movq 0x60(%rsp), %rax
vmovdqa64 0xc0(%rax), %zmm1
movq 0x58(%rsp), %rax
addq $0x18, %rax
vmovdqa 0x20(%rsp), %ymm2
kxnorw %k0, %k0, %k1
vpxor %xmm0, %xmm0, %xmm0
vpgatherdq (%rax,%ymm2,8), %zmm0 {%k1}
vmovdqa64 %zmm1, 0xa80(%rsp)
vmovdqa64 %zmm0, 0xa40(%rsp)
vmovdqa64 0xa80(%rsp), %zmm0
vpxorq 0xa40(%rsp), %zmm0, %zmm0
movq 0x60(%rsp), %rax
vmovdqa64 %zmm0, 0xc0(%rax)
movq 0x60(%rsp), %rax
vmovdqa64 0x100(%rax), %zmm1
movq 0x58(%rsp), %rax
addq $0x20, %rax
vmovdqa 0x20(%rsp), %ymm2
kxnorw %k0, %k0, %k1
vpxor %xmm0, %xmm0, %xmm0
vpgatherdq (%rax,%ymm2,8), %zmm0 {%k1}
vmovdqa64 %zmm1, 0xa00(%rsp)
vmovdqa64 %zmm0, 0x9c0(%rsp)
vmovdqa64 0xa00(%rsp), %zmm0
vpxorq 0x9c0(%rsp), %zmm0, %zmm0
movq 0x60(%rsp), %rax
vmovdqa64 %zmm0, 0x100(%rax)
movq 0x60(%rsp), %rax
vmovdqa64 0x140(%rax), %zmm1
movq 0x58(%rsp), %rax
addq $0x28, %rax
vmovdqa 0x20(%rsp), %ymm2
kxnorw %k0, %k0, %k1
vpxor %xmm0, %xmm0, %xmm0
vpgatherdq (%rax,%ymm2,8), %zmm0 {%k1}
vmovdqa64 %zmm1, 0x980(%rsp)
vmovdqa64 %zmm0, 0x940(%rsp)
vmovdqa64 0x980(%rsp), %zmm0
vpxorq 0x940(%rsp), %zmm0, %zmm0
movq 0x60(%rsp), %rax
vmovdqa64 %zmm0, 0x140(%rax)
movq 0x60(%rsp), %rax
vmovdqa64 0x180(%rax), %zmm1
movq 0x58(%rsp), %rax
addq $0x30, %rax
vmovdqa 0x20(%rsp), %ymm2
kxnorw %k0, %k0, %k1
vpxor %xmm0, %xmm0, %xmm0
vpgatherdq (%rax,%ymm2,8), %zmm0 {%k1}
vmovdqa64 %zmm1, 0x900(%rsp)
vmovdqa64 %zmm0, 0x8c0(%rsp)
vmovdqa64 0x900(%rsp), %zmm0
vpxorq 0x8c0(%rsp), %zmm0, %zmm0
movq 0x60(%rsp), %rax
vmovdqa64 %zmm0, 0x180(%rax)
movq 0x60(%rsp), %rax
vmovdqa64 0x1c0(%rax), %zmm1
movq 0x58(%rsp), %rax
addq $0x38, %rax
vmovdqa 0x20(%rsp), %ymm2
kxnorw %k0, %k0, %k1
vpxor %xmm0, %xmm0, %xmm0
vpgatherdq (%rax,%ymm2,8), %zmm0 {%k1}
vmovdqa64 %zmm1, 0x880(%rsp)
vmovdqa64 %zmm0, 0x840(%rsp)
vmovdqa64 0x880(%rsp), %zmm0
vpxorq 0x840(%rsp), %zmm0, %zmm0
movq 0x60(%rsp), %rax
vmovdqa64 %zmm0, 0x1c0(%rax)
movq 0x60(%rsp), %rax
vmovdqa64 0x200(%rax), %zmm1
movq 0x58(%rsp), %rax
addq $0x40, %rax
vmovdqa 0x20(%rsp), %ymm2
kxnorw %k0, %k0, %k1
vpxor %xmm0, %xmm0, %xmm0
vpgatherdq (%rax,%ymm2,8), %zmm0 {%k1}
vmovdqa64 %zmm1, 0x800(%rsp)
vmovdqa64 %zmm0, 0x7c0(%rsp)
vmovdqa64 0x800(%rsp), %zmm0
vpxorq 0x7c0(%rsp), %zmm0, %zmm0
movq 0x60(%rsp), %rax
vmovdqa64 %zmm0, 0x200(%rax)
movq 0x60(%rsp), %rax
vmovdqa64 0x240(%rax), %zmm1
movq 0x58(%rsp), %rax
addq $0x48, %rax
vmovdqa 0x20(%rsp), %ymm2
kxnorw %k0, %k0, %k1
vpxor %xmm0, %xmm0, %xmm0
vpgatherdq (%rax,%ymm2,8), %zmm0 {%k1}
vmovdqa64 %zmm1, 0x780(%rsp)
vmovdqa64 %zmm0, 0x740(%rsp)
vmovdqa64 0x780(%rsp), %zmm0
vpxorq 0x740(%rsp), %zmm0, %zmm0
movq 0x60(%rsp), %rax
vmovdqa64 %zmm0, 0x240(%rax)
movq 0x60(%rsp), %rax
vmovdqa64 0x280(%rax), %zmm1
movq 0x58(%rsp), %rax
addq $0x50, %rax
vmovdqa 0x20(%rsp), %ymm2
kxnorw %k0, %k0, %k1
vpxor %xmm0, %xmm0, %xmm0
vpgatherdq (%rax,%ymm2,8), %zmm0 {%k1}
vmovdqa64 %zmm1, 0x700(%rsp)
vmovdqa64 %zmm0, 0x6c0(%rsp)
vmovdqa64 0x700(%rsp), %zmm0
vpxorq 0x6c0(%rsp), %zmm0, %zmm0
movq 0x60(%rsp), %rax
vmovdqa64 %zmm0, 0x280(%rax)
movq 0x60(%rsp), %rax
vmovdqa64 0x2c0(%rax), %zmm1
movq 0x58(%rsp), %rax
addq $0x58, %rax
vmovdqa 0x20(%rsp), %ymm2
kxnorw %k0, %k0, %k1
vpxor %xmm0, %xmm0, %xmm0
vpgatherdq (%rax,%ymm2,8), %zmm0 {%k1}
vmovdqa64 %zmm1, 0x680(%rsp)
vmovdqa64 %zmm0, 0x640(%rsp)
vmovdqa64 0x680(%rsp), %zmm0
vpxorq 0x640(%rsp), %zmm0, %zmm0
movq 0x60(%rsp), %rax
vmovdqa64 %zmm0, 0x2c0(%rax)
movq 0x60(%rsp), %rax
vmovdqa64 0x300(%rax), %zmm1
movq 0x58(%rsp), %rax
addq $0x60, %rax
vmovdqa 0x20(%rsp), %ymm2
kxnorw %k0, %k0, %k1
vpxor %xmm0, %xmm0, %xmm0
vpgatherdq (%rax,%ymm2,8), %zmm0 {%k1}
vmovdqa64 %zmm1, 0x600(%rsp)
vmovdqa64 %zmm0, 0x5c0(%rsp)
vmovdqa64 0x600(%rsp), %zmm0
vpxorq 0x5c0(%rsp), %zmm0, %zmm0
movq 0x60(%rsp), %rax
vmovdqa64 %zmm0, 0x300(%rax)
movq 0x60(%rsp), %rax
vmovdqa64 0x340(%rax), %zmm1
movq 0x58(%rsp), %rax
addq $0x68, %rax
vmovdqa 0x20(%rsp), %ymm2
kxnorw %k0, %k0, %k1
vpxor %xmm0, %xmm0, %xmm0
vpgatherdq (%rax,%ymm2,8), %zmm0 {%k1}
vmovdqa64 %zmm1, 0x580(%rsp)
vmovdqa64 %zmm0, 0x540(%rsp)
vmovdqa64 0x580(%rsp), %zmm0
vpxorq 0x540(%rsp), %zmm0, %zmm0
movq 0x60(%rsp), %rax
vmovdqa64 %zmm0, 0x340(%rax)
movq 0x60(%rsp), %rax
vmovdqa64 0x380(%rax), %zmm1
movq 0x58(%rsp), %rax
addq $0x70, %rax
vmovdqa 0x20(%rsp), %ymm2
kxnorw %k0, %k0, %k1
vpxor %xmm0, %xmm0, %xmm0
vpgatherdq (%rax,%ymm2,8), %zmm0 {%k1}
vmovdqa64 %zmm1, 0x500(%rsp)
vmovdqa64 %zmm0, 0x4c0(%rsp)
vmovdqa64 0x500(%rsp), %zmm0
vpxorq 0x4c0(%rsp), %zmm0, %zmm0
movq 0x60(%rsp), %rax
vmovdqa64 %zmm0, 0x380(%rax)
movq 0x60(%rsp), %rax
vmovdqa64 0x3c0(%rax), %zmm1
movq 0x58(%rsp), %rax
addq $0x78, %rax
vmovdqa 0x20(%rsp), %ymm2
kxnorw %k0, %k0, %k1
vpxor %xmm0, %xmm0, %xmm0
vpgatherdq (%rax,%ymm2,8), %zmm0 {%k1}
vmovdqa64 %zmm1, 0x480(%rsp)
vmovdqa64 %zmm0, 0x440(%rsp)
vmovdqa64 0x480(%rsp), %zmm0
vpxorq 0x440(%rsp), %zmm0, %zmm0
movq 0x60(%rsp), %rax
vmovdqa64 %zmm0, 0x3c0(%rax)
cmpl $0x14, 0x6c(%rsp)
jb 0xc4297
movq 0x60(%rsp), %rax
vmovdqa64 0x400(%rax), %zmm1
movq 0x58(%rsp), %rax
addq $0x80, %rax
vmovdqa 0x20(%rsp), %ymm2
kxnorw %k0, %k0, %k1
vpxor %xmm0, %xmm0, %xmm0
vpgatherdq (%rax,%ymm2,8), %zmm0 {%k1}
vmovdqa64 %zmm1, 0x400(%rsp)
vmovdqa64 %zmm0, 0x3c0(%rsp)
vmovdqa64 0x400(%rsp), %zmm0
vpxorq 0x3c0(%rsp), %zmm0, %zmm0
movq 0x60(%rsp), %rax
vmovdqa64 %zmm0, 0x400(%rax)
movq 0x60(%rsp), %rax
vmovdqa64 0x440(%rax), %zmm1
movq 0x58(%rsp), %rax
addq $0x88, %rax
vmovdqa 0x20(%rsp), %ymm2
kxnorw %k0, %k0, %k1
vpxor %xmm0, %xmm0, %xmm0
vpgatherdq (%rax,%ymm2,8), %zmm0 {%k1}
vmovdqa64 %zmm1, 0x380(%rsp)
vmovdqa64 %zmm0, 0x340(%rsp)
vmovdqa64 0x380(%rsp), %zmm0
vpxorq 0x340(%rsp), %zmm0, %zmm0
movq 0x60(%rsp), %rax
vmovdqa64 %zmm0, 0x440(%rax)
movq 0x60(%rsp), %rax
vmovdqa64 0x480(%rax), %zmm1
movq 0x58(%rsp), %rax
addq $0x90, %rax
vmovdqa 0x20(%rsp), %ymm2
kxnorw %k0, %k0, %k1
vpxor %xmm0, %xmm0, %xmm0
vpgatherdq (%rax,%ymm2,8), %zmm0 {%k1}
vmovdqa64 %zmm1, 0x300(%rsp)
vmovdqa64 %zmm0, 0x2c0(%rsp)
vmovdqa64 0x300(%rsp), %zmm0
vpxorq 0x2c0(%rsp), %zmm0, %zmm0
movq 0x60(%rsp), %rax
vmovdqa64 %zmm0, 0x480(%rax)
movq 0x60(%rsp), %rax
vmovdqa64 0x4c0(%rax), %zmm1
movq 0x58(%rsp), %rax
addq $0x98, %rax
vmovdqa 0x20(%rsp), %ymm2
kxnorw %k0, %k0, %k1
vpxor %xmm0, %xmm0, %xmm0
vpgatherdq (%rax,%ymm2,8), %zmm0 {%k1}
vmovdqa64 %zmm1, 0x280(%rsp)
vmovdqa64 %zmm0, 0x240(%rsp)
vmovdqa64 0x280(%rsp), %zmm0
vpxorq 0x240(%rsp), %zmm0, %zmm0
movq 0x60(%rsp), %rax
vmovdqa64 %zmm0, 0x4c0(%rax)
movl $0x14, 0x54(%rsp)
movl 0x54(%rsp), %eax
cmpl 0x6c(%rsp), %eax
jae 0xc4292
movq 0x60(%rsp), %rax
movl 0x54(%rsp), %ecx
shlq $0x6, %rcx
addq %rcx, %rax
vmovdqa64 (%rax), %zmm1
movq 0x58(%rsp), %rax
movl 0x54(%rsp), %ecx
shlq $0x3, %rcx
addq %rcx, %rax
vmovdqa 0x20(%rsp), %ymm2
kxnorw %k0, %k0, %k1
vpxor %xmm0, %xmm0, %xmm0
vpgatherdq (%rax,%ymm2,8), %zmm0 {%k1}
vmovdqa64 %zmm1, 0x200(%rsp)
vmovdqa64 %zmm0, 0x1c0(%rsp)
vmovdqa64 0x200(%rsp), %zmm0
vpxorq 0x1c0(%rsp), %zmm0, %zmm0
movq 0x60(%rsp), %rax
movl 0x54(%rsp), %ecx
shlq $0x6, %rcx
addq %rcx, %rax
vmovdqa64 %zmm0, (%rax)
movl 0x54(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x54(%rsp)
jmp 0xc4203
jmp 0xc4330
movl $0x10, 0x54(%rsp)
movl 0x54(%rsp), %eax
cmpl 0x6c(%rsp), %eax
jae 0xc432e
movq 0x60(%rsp), %rax
movl 0x54(%rsp), %ecx
shlq $0x6, %rcx
addq %rcx, %rax
vmovdqa64 (%rax), %zmm1
movq 0x58(%rsp), %rax
movl 0x54(%rsp), %ecx
shlq $0x3, %rcx
addq %rcx, %rax
vmovdqa 0x20(%rsp), %ymm2
kxnorw %k0, %k0, %k1
vpxor %xmm0, %xmm0, %xmm0
vpgatherdq (%rax,%ymm2,8), %zmm0 {%k1}
vmovdqa64 %zmm1, 0x180(%rsp)
vmovdqa64 %zmm0, 0x140(%rsp)
vmovdqa64 0x180(%rsp), %zmm0
vpxorq 0x140(%rsp), %zmm0, %zmm0
movq 0x60(%rsp), %rax
movl 0x54(%rsp), %ecx
shlq $0x6, %rcx
addq %rcx, %rax
vmovdqa64 %zmm0, (%rax)
movl 0x54(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x54(%rsp)
jmp 0xc429f
jmp 0xc4330
jmp 0xc43ce
movl $0x0, 0x54(%rsp)
movl 0x54(%rsp), %eax
cmpl 0x6c(%rsp), %eax
jae 0xc43cc
movq 0x60(%rsp), %rax
movl 0x54(%rsp), %ecx
shlq $0x6, %rcx
addq %rcx, %rax
vmovdqa64 (%rax), %zmm1
movq 0x58(%rsp), %rax
movl 0x54(%rsp), %ecx
shlq $0x3, %rcx
addq %rcx, %rax
vmovdqa 0x20(%rsp), %ymm2
kxnorw %k0, %k0, %k1
vpxor %xmm0, %xmm0, %xmm0
vpgatherdq (%rax,%ymm2,8), %zmm0 {%k1}
vmovdqa64 %zmm1, 0x100(%rsp)
vmovdqa64 %zmm0, 0xc0(%rsp)
vmovdqa64 0x100(%rsp), %zmm0
vpxorq 0xc0(%rsp), %zmm0, %zmm0
movq 0x60(%rsp), %rax
movl 0x54(%rsp), %ecx
shlq $0x6, %rcx
addq %rcx, %rax
vmovdqa64 %zmm0, (%rax)
movl 0x54(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x54(%rsp)
jmp 0xc433d
jmp 0xc43ce
movq %rbp, %rsp
popq %rbp
vzeroupper
retq
nopw %cs:(%rax,%rax)