// File: /workspace/github_cpp_makefile_star2_O1/occivink[P]pyct/monocypher.cpp
// Function: fe_mul(int*, int const*, int const*)
static void fe_mul(fe h, const fe f, const fe g)
{
    // Everything is unrolled and put in temporary variables.
    // We could roll the loop, but that would make curve25519 twice as slow.
    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 g0 = g[0]; i32 g1 = g[1]; i32 g2 = g[2]; i32 g3 = g[3]; i32 g4 = g[4];
    i32 g5 = g[5]; i32 g6 = g[6]; i32 g7 = g[7]; i32 g8 = g[8]; i32 g9 = g[9];
    i32 F1 = f1*2; i32 F3 = f3*2; i32 F5 = f5*2; i32 F7 = f7*2; i32 F9 = f9*2;
    i32 G1 = g1*19;  i32 G2 = g2*19;  i32 G3 = g3*19;
    i32 G4 = g4*19;  i32 G5 = g5*19;  i32 G6 = g6*19;
    i32 G7 = g7*19;  i32 G8 = g8*19;  i32 G9 = g9*19;
    // |F1|, |F3|, |F5|, |F7|, |F9|  <  1.65 * 2^26
    // |G0|, |G2|, |G4|, |G6|, |G8|  <  2^31
    // |G1|, |G3|, |G5|, |G7|, |G9|  <  2^30

    i64 t0 = f0*(i64)g0 + F1*(i64)G9 + f2*(i64)G8 + F3*(i64)G7 + f4*(i64)G6
        +    F5*(i64)G5 + f6*(i64)G4 + F7*(i64)G3 + f8*(i64)G2 + F9*(i64)G1;
    i64 t1 = f0*(i64)g1 + f1*(i64)g0 + f2*(i64)G9 + f3*(i64)G8 + f4*(i64)G7
        +    f5*(i64)G6 + f6*(i64)G5 + f7*(i64)G4 + f8*(i64)G3 + f9*(i64)G2;
    i64 t2 = f0*(i64)g2 + F1*(i64)g1 + f2*(i64)g0 + F3*(i64)G9 + f4*(i64)G8
        +    F5*(i64)G7 + f6*(i64)G6 + F7*(i64)G5 + f8*(i64)G4 + F9*(i64)G3;
    i64 t3 = f0*(i64)g3 + f1*(i64)g2 + f2*(i64)g1 + f3*(i64)g0 + f4*(i64)G9
        +    f5*(i64)G8 + f6*(i64)G7 + f7*(i64)G6 + f8*(i64)G5 + f9*(i64)G4;
    i64 t4 = f0*(i64)g4 + F1*(i64)g3 + f2*(i64)g2 + F3*(i64)g1 + f4*(i64)g0
        +    F5*(i64)G9 + f6*(i64)G8 + F7*(i64)G7 + f8*(i64)G6 + F9*(i64)G5;
    i64 t5 = f0*(i64)g5 + f1*(i64)g4 + f2*(i64)g3 + f3*(i64)g2 + f4*(i64)g1
        +    f5*(i64)g0 + f6*(i64)G9 + f7*(i64)G8 + f8*(i64)G7 + f9*(i64)G6;
    i64 t6 = f0*(i64)g6 + F1*(i64)g5 + f2*(i64)g4 + F3*(i64)g3 + f4*(i64)g2
        +    F5*(i64)g1 + f6*(i64)g0 + F7*(i64)G9 + f8*(i64)G8 + F9*(i64)G7;
    i64 t7 = f0*(i64)g7 + f1*(i64)g6 + f2*(i64)g5 + f3*(i64)g4 + f4*(i64)g3
        +    f5*(i64)g2 + f6*(i64)g1 + f7*(i64)g0 + f8*(i64)G9 + f9*(i64)G8;
    i64 t8 = f0*(i64)g8 + F1*(i64)g7 + f2*(i64)g6 + F3*(i64)g5 + f4*(i64)g4
        +    F5*(i64)g3 + f6*(i64)g2 + F7*(i64)g1 + f8*(i64)g0 + F9*(i64)G9;
    i64 t9 = f0*(i64)g9 + f1*(i64)g8 + f2*(i64)g7 + f3*(i64)g6 + f4*(i64)g5
        +    f5*(i64)g4 + f6*(i64)g3 + f7*(i64)g2 + f8*(i64)g1 + f9*(i64)g0;
    // t0 < 0.67 * 2^61
    // t1 < 0.41 * 2^61
    // t2 < 0.52 * 2^61
    // t3 < 0.32 * 2^61
    // t4 < 0.38 * 2^61
    // t5 < 0.22 * 2^61
    // t6 < 0.23 * 2^61
    // t7 < 0.13 * 2^61
    // t8 < 0.09 * 2^61
    // t9 < 0.03 * 2^61

    FE_CARRY; // Everything below 2^62, Carry precondition OK
}

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