// File: /workspace/github_c_makefile_star2_O2/LoupVaillant[P]Monocypher-Utils/src/monocypher.c
// Function: fe_sq
static void fe_sq(fe h, const fe f)
{
    i32 f0 = f[0]; i32 f1 = f[1]; i32 f2 = f[2]; i32 f3 = f[3]; i32 f4 = f[4];
    i32 f5 = f[5]; i32 f6 = f[6]; i32 f7 = f[7]; i32 f8 = f[8]; i32 f9 = f[9];
    i32 f0_2  = f0*2;   i32 f1_2  = f1*2;   i32 f2_2  = f2*2;   i32 f3_2 = f3*2;
    i32 f4_2  = f4*2;   i32 f5_2  = f5*2;   i32 f6_2  = f6*2;   i32 f7_2 = f7*2;
    i32 f5_38 = f5*38;  i32 f6_19 = f6*19;  i32 f7_38 = f7*38;
    i32 f8_19 = f8*19;  i32 f9_38 = f9*38;

    i64 h0 = f0  *(i64)f0    + f1_2*(i64)f9_38 + f2_2*(i64)f8_19
        +    f3_2*(i64)f7_38 + f4_2*(i64)f6_19 + f5  *(i64)f5_38;
    i64 h1 = f0_2*(i64)f1    + f2  *(i64)f9_38 + f3_2*(i64)f8_19
        +    f4  *(i64)f7_38 + f5_2*(i64)f6_19;
    i64 h2 = f0_2*(i64)f2    + f1_2*(i64)f1    + f3_2*(i64)f9_38
        +    f4_2*(i64)f8_19 + f5_2*(i64)f7_38 + f6  *(i64)f6_19;
    i64 h3 = f0_2*(i64)f3    + f1_2*(i64)f2    + f4  *(i64)f9_38
        +    f5_2*(i64)f8_19 + f6  *(i64)f7_38;
    i64 h4 = f0_2*(i64)f4    + f1_2*(i64)f3_2  + f2  *(i64)f2
        +    f5_2*(i64)f9_38 + f6_2*(i64)f8_19 + f7  *(i64)f7_38;
    i64 h5 = f0_2*(i64)f5    + f1_2*(i64)f4    + f2_2*(i64)f3
        +    f6  *(i64)f9_38 + f7_2*(i64)f8_19;
    i64 h6 = f0_2*(i64)f6    + f1_2*(i64)f5_2  + f2_2*(i64)f4
        +    f3_2*(i64)f3    + f7_2*(i64)f9_38 + f8  *(i64)f8_19;
    i64 h7 = f0_2*(i64)f7    + f1_2*(i64)f6    + f2_2*(i64)f5
        +    f3_2*(i64)f4    + f8  *(i64)f9_38;
    i64 h8 = f0_2*(i64)f8    + f1_2*(i64)f7_2  + f2_2*(i64)f6
        +    f3_2*(i64)f5_2  + f4  *(i64)f4    + f9  *(i64)f9_38;
    i64 h9 = f0_2*(i64)f9    + f1_2*(i64)f8    + f2_2*(i64)f7
        +    f3_2*(i64)f6    + f4  *(i64)f5_2;

    CARRY;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x70, %rsp
movq %rdi, 0x68(%rsp)
movslq 0x4(%rsi), %r14
movslq 0x8(%rsi), %r11
movslq 0xc(%rsi), %rax
movslq 0x1c(%rsi), %r8
movq %r8, -0x28(%rsp)
movslq 0x20(%rsi), %rdi
movq %rdi, -0x78(%rsp)
movslq 0x24(%rsi), %r9
movq %r9, -0x40(%rsp)
leaq (%r14,%r14), %rbx
movq %rbx, 0x20(%rsp)
leaq (%r11,%r11), %rdx
movq %rdx, 0x60(%rsp)
movq %r11, 0x48(%rsp)
leaq (%rax,%rax), %r10
movq %rax, %r15
movq %rax, 0x58(%rsp)
imulq $0x13, %rdi, %rdi
imulq $0x26, %r9, %rax
movq %rax, -0x50(%rsp)
imulq %rbx, %rax
movq %rdi, %rcx
movq %rdi, -0x80(%rsp)
imulq %rdx, %rcx
addq %rax, %rcx
imulq $0x26, %r8, %rdx
movq %rdx, %rax
movq %rdx, %r9
imulq %r10, %rax
movq %r10, -0x20(%rsp)
movslq 0x10(%rsi), %rdx
movslq 0x18(%rsi), %r8
movq %r8, -0x58(%rsp)
leaq (%rdx,%rdx), %rbp
movq %rdx, %r12
imulq $0x13, %r8, %rdx
movq %rdx, -0x48(%rsp)
imulq %rbp, %rdx
addq %rax, %rdx
movslq (%rsi), %r8
movslq 0x14(%rsi), %r13
movq %r13, %rsi
imulq %r13, %rsi
leaq (%r8,%r8), %rax
imulq %r8, %r8
imulq $0x26, %rsi, %rsi
addq %r8, %rsi
addq %rdx, %rsi
addq %rcx, %rsi
movq %rsi, -0x38(%rsp)
imulq %r10, %rdi
movq %r9, %rdx
movq %r9, %r10
movq %r9, -0x18(%rsp)
imulq %r12, %rdx
movq %r12, -0x30(%rsp)
addq %rdi, %rdx
imulq %rax, %r11
movq %r11, -0x70(%rsp)
imulq %rax, %r15
movq %r15, -0x68(%rsp)
movq %r12, %rcx
imulq %rax, %rcx
movq %rcx, 0x50(%rsp)
movq %r13, (%rsp)
movq %r13, %rcx
imulq %rax, %rcx
movq %rcx, 0x40(%rsp)
movq -0x58(%rsp), %r15
movq %r15, %rcx
imulq %rax, %rcx
movq %rcx, 0x38(%rsp)
movq -0x28(%rsp), %rbx
movq %rbx, %rcx
imulq %rax, %rcx
movq %rcx, 0x30(%rsp)
movq -0x78(%rsp), %rcx
imulq %rax, %rcx
movq %rcx, 0x28(%rsp)
movq -0x50(%rsp), %rdi
movq %rdi, %r12
movq %rdi, %rcx
movq %rdi, 0x8(%rsp)
movq %rdi, 0x10(%rsp)
movq %rdi, 0x18(%rsp)
movq %rdi, %r9
movq %rdi, -0x60(%rsp)
movq -0x40(%rsp), %r8
imulq %r8, %rdi
movq %rdi, -0x50(%rsp)
imulq %rax, %r8
movq %r8, -0x40(%rsp)
imulq %r14, %rax
leaq (,%r13,2), %r8
movq -0x48(%rsp), %rdi
movq %rdi, %r11
imulq %r8, %r11
addq %rax, %r11
addq %rdx, %r11
movq 0x48(%rsp), %rsi
imulq %rsi, %r12
addq %r12, %r11
movq 0x20(%rsp), %r13
imulq %r13, %r14
addq -0x70(%rsp), %r14
movq -0x80(%rsp), %r12
imulq %r12, %rbp
movq %r10, %rax
imulq %r8, %rax
addq %rbp, %rax
movq %r15, %r10
imulq %r15, %rdi
addq %r14, %rdi
addq %rax, %rdi
movq -0x20(%rsp), %rdx
imulq %rdx, %rcx
addq %rcx, %rdi
movq %rdi, -0x48(%rsp)
movq %r13, %rax
imulq %r13, %rdx
movq %r15, %r13
imulq %r12, %r13
movq -0x30(%rsp), %rdi
movq %rdi, %rcx
imulq %rax, %rcx
movq %rcx, -0x10(%rsp)
leaq (%rbx,%rbx), %r15
movq %r12, %rbp
imulq %r15, %rbp
movq %r8, %rcx
imulq %rax, %rcx
movq %rax, %rbx
imulq %r15, %r9
movq %r9, -0x8(%rsp)
movq %r12, %r14
movq -0x78(%rsp), %rax
imulq %rax, %r12
movq %r12, -0x80(%rsp)
movq %r10, %r9
imulq %rbx, %r9
movq %rax, %r12
movq -0x60(%rsp), %rax
imulq %r12, %rax
movq %rax, -0x60(%rsp)
imulq %rbx, %r15
movq %r15, -0x70(%rsp)
imulq %rbx, %r12
movq %r12, -0x78(%rsp)
imulq %rsi, %rbx
addq -0x68(%rsp), %rbx
movq %rdi, %rax
movq 0x8(%rsp), %rdi
imulq %rax, %rdi
imulq %r8, %r14
addq %rdi, %r14
movq -0x18(%rsp), %r12
movq %r12, %rdi
imulq %r10, %rdi
addq %rbx, %rdi
addq %r14, %rdi
movq %rdi, -0x68(%rsp)
imulq %rsi, %rsi
addq %rdx, %rsi
addq 0x50(%rsp), %rsi
movq -0x28(%rsp), %r14
imulq %r14, %r12
addq %rsi, %r12
leaq (%r12,%r13,2), %r12
movq 0x10(%rsp), %rdx
imulq %r8, %rdx
addq %rdx, %r12
movq %rax, %rdx
movq 0x60(%rsp), %rbx
imulq %rbx, %rdx
movq (%rsp), %rsi
imulq %rbx, %rsi
movq %r10, %r15
imulq %rbx, %r15
imulq %rbx, %r14
movq 0x58(%rsp), %r13
imulq %r13, %rbx
addq -0x10(%rsp), %rbx
addq 0x40(%rsp), %rbx
addq %rbx, %rbp
movq 0x18(%rsp), %rax
imulq %r10, %rax
addq %rax, %rbp
addq 0x38(%rsp), %rcx
movq %r13, %rdi
movq -0x20(%rsp), %rbx
imulq %rbx, %rdi
addq %rdx, %rdi
addq %rcx, %rdi
movq -0x80(%rsp), %rax
addq %rdi, %rax
addq -0x8(%rsp), %rax
movq %rax, -0x80(%rsp)
addq 0x30(%rsp), %r9
movq %r8, %rax
imulq %rbx, %rax
imulq %rbx, %r10
movq %rbx, %rdx
movq -0x30(%rsp), %rdi
imulq %rdi, %rdx
addq %rsi, %rdx
addq %r9, %rdx
movq -0x60(%rsp), %r9
addq %rdx, %r9
addq -0x70(%rsp), %rax
imulq %rdi, %r8
imulq %rdi, %rdi
addq %r15, %rdi
addq %rax, %rdi
addq 0x28(%rsp), %rdi
movq -0x50(%rsp), %rbx
addq %rdi, %rbx
addq -0x78(%rsp), %r14
addq %r8, %r10
addq %r14, %r10
addq -0x40(%rsp), %r10
movq %r10, -0x58(%rsp)
movl $0x2000000, %eax        # imm = 0x2000000
movq -0x38(%rsp), %rsi
leaq (%rsi,%rax), %rcx
movq %rcx, %r13
sarq $0x1a, %r13
addq %r11, %r13
movq $-0x4000000, %rdx       # imm = 0xFC000000
andq %rdx, %rcx
subq %rcx, %rsi
movq %rsi, -0x38(%rsp)
leaq (%r12,%rax), %rcx
movq %rcx, %r15
sarq $0x1a, %r15
addq %rbp, %r15
andq %rdx, %rcx
subq %rcx, %r12
movl $0x1000000, %r11d       # imm = 0x1000000
leaq (%r11,%r13), %rcx
movq %rcx, %rdi
sarq $0x19, %rdi
addq -0x48(%rsp), %rdi
movl $0xfe000000, %ebp       # imm = 0xFE000000
andl %ebp, %ecx
subl %ecx, %r13d
leaq (%r15,%r11), %rcx
movq %rcx, %r10
sarq $0x19, %r10
addq -0x80(%rsp), %r10
andl %ebp, %ecx
subl %ecx, %r15d
leaq (%rdi,%rax), %rdx
movq %rdx, %r8
sarq $0x1a, %r8
addq -0x68(%rsp), %r8
movl $0xfc000000, %ecx       # imm = 0xFC000000
andl %ecx, %edx
subl %edx, %edi
leaq (%r10,%rax), %rsi
movq %rsi, %rdx
sarq $0x1a, %rdx
addq %r9, %rdx
andl %ecx, %esi
subl %esi, %r10d
leaq (%r8,%r11), %rsi
movq %rsi, %r14
sarq $0x19, %r14
addq %r12, %r14
andl %ebp, %esi
subl %esi, %r8d
leaq (%rdx,%r11), %r9
movq %r9, %rsi
sarq $0x19, %rsi
addq %rbx, %rsi
andl %ebp, %r9d
subl %r9d, %edx
leaq (%r14,%rax), %r12
movq %r12, %r9
shrq $0x1a, %r9
addl %r15d, %r9d
andl %ecx, %r12d
subl %r12d, %r14d
leaq (%rsi,%rax), %r12
movq %r12, %r15
sarq $0x1a, %r15
addq -0x58(%rsp), %r15
andl %ecx, %r12d
subl %r12d, %esi
addq %r15, %r11
movq %r11, %r12
sarq $0x19, %r12
imulq $0x13, %r12, %r12
addq -0x38(%rsp), %r12
andl %ebp, %r11d
subl %r11d, %r15d
addq %r12, %rax
movq %rax, %r11
shrq $0x1a, %r11
addl %r13d, %r11d
andl %ecx, %eax
subl %eax, %r12d
movq 0x68(%rsp), %rax
movl %r12d, (%rax)
movl %r11d, 0x4(%rax)
movl %edi, 0x8(%rax)
movl %r8d, 0xc(%rax)
movl %r14d, 0x10(%rax)
movl %r9d, 0x14(%rax)
movl %r10d, 0x18(%rax)
movl %edx, 0x1c(%rax)
movl %esi, 0x20(%rax)
movl %r15d, 0x24(%rax)
addq $0x70, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq