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