// File: /workspace/github_c_makefile_star2_O2/LoupVaillant[P]Monocypher-Utils/src/monocypher.c
// Function: fe_tobytes
static void fe_tobytes(u8 s[32], const fe h)
{
    i32 t[10];
    FOR (i, 0, 10) {
        t[i] = h[i];
    }
    i32 q = (19 * t[9] + (((i32) 1) << 24)) >> 25;
    FOR (i, 0, 5) {
        q += t[2*i  ]; q >>= 26;
        q += t[2*i+1]; q >>= 25;
    }
    t[0] += 19 * q;

    i32 c0 = t[0] >> 26; t[1] += c0; t[0] -= c0 * (1 << 26);
    i32 c1 = t[1] >> 25; t[2] += c1; t[1] -= c1 * (1 << 25);
    i32 c2 = t[2] >> 26; t[3] += c2; t[2] -= c2 * (1 << 26);
    i32 c3 = t[3] >> 25; t[4] += c3; t[3] -= c3 * (1 << 25);
    i32 c4 = t[4] >> 26; t[5] += c4; t[4] -= c4 * (1 << 26);
    i32 c5 = t[5] >> 25; t[6] += c5; t[5] -= c5 * (1 << 25);
    i32 c6 = t[6] >> 26; t[7] += c6; t[6] -= c6 * (1 << 26);
    i32 c7 = t[7] >> 25; t[8] += c7; t[7] -= c7 * (1 << 25);
    i32 c8 = t[8] >> 26; t[9] += c8; t[8] -= c8 * (1 << 26);
    i32 c9 = t[9] >> 25;             t[9] -= c9 * (1 << 25);

    store32_le(s +  0, ((u32)t[0] >>  0) | ((u32)t[1] << 26));
    store32_le(s +  4, ((u32)t[1] >>  6) | ((u32)t[2] << 19));
    store32_le(s +  8, ((u32)t[2] >> 13) | ((u32)t[3] << 13));
    store32_le(s + 12, ((u32)t[3] >> 19) | ((u32)t[4] <<  6));
    store32_le(s + 16, ((u32)t[5] >>  0) | ((u32)t[6] << 25));
    store32_le(s + 20, ((u32)t[6] >>  7) | ((u32)t[7] << 19));
    store32_le(s + 24, ((u32)t[7] >> 13) | ((u32)t[8] << 12));
    store32_le(s + 28, ((u32)t[8] >> 20) | ((u32)t[9] <<  6));

    WIPE_BUFFER(t);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
xorl %eax, %eax
cmpq $0xa, %rax
je 0x5475
movl (%rsi,%rax,4), %ecx
movl %ecx, 0x20(%rsp,%rax,4)
incq %rax
jmp 0x5463
movl 0x44(%rsp), %eax
movl %eax, (%rsp)
imull $0x13, %eax, %eax
addl $0x1000000, %eax        # imm = 0x1000000
xorl %ecx, %ecx
sarl $0x19, %eax
cmpq $0x5, %rcx
je 0x549f
addl 0x20(%rsp,%rcx,8), %eax
sarl $0x1a, %eax
addl 0x24(%rsp,%rcx,8), %eax
incq %rcx
jmp 0x5486
imull $0x13, %eax, %ebx
leaq 0x20(%rsp), %rsi
addl (%rsi), %ebx
movl %ebx, %r12d
sarl $0x1a, %r12d
addl 0x4(%rsi), %r12d
movl $0x3ffffff, %edx        # imm = 0x3FFFFFF
movl %ebx, %ecx
andl %edx, %ecx
movl $0x3ffffff, %r10d       # imm = 0x3FFFFFF
movl %ecx, (%rsi)
movl %r12d, %r9d
sarl $0x19, %r9d
addl 0x8(%rsi), %r9d
movl $0x1ffffff, %edx        # imm = 0x1FFFFFF
movl %r12d, %eax
andl %edx, %eax
movl %eax, 0x8(%rsp)
movl %eax, 0x4(%rsi)
movl %r9d, %r15d
sarl $0x1a, %r15d
addl 0xc(%rsi), %r15d
movl %r9d, %eax
andl %r10d, %eax
movl %eax, 0xc(%rsp)
movl %eax, 0x8(%rsi)
movl %r15d, %r8d
sarl $0x19, %r8d
addl 0x10(%rsi), %r8d
movl %r15d, %eax
andl %edx, %eax
movl %eax, 0x1c(%rsp)
movl %eax, 0xc(%rsi)
movl %r8d, %eax
sarl $0x1a, %eax
addl 0x14(%rsi), %eax
movl %r8d, %edx
andl %r10d, %edx
movl %edx, 0x10(%rsi)
movl %r12d, %r13d
shll $0x1a, %r13d
orl %ecx, %r13d
movl %eax, 0x10(%rsp)
movl %eax, %r14d
sarl $0x19, %r14d
addl 0x18(%rsi), %r14d
movl $0x1ffffff, %ecx        # imm = 0x1FFFFFF
andl %ecx, %eax
movl %eax, 0x4(%rsp)
movl %eax, 0x14(%rsi)
movl %r14d, %r11d
sarl $0x1a, %r11d
addl 0x1c(%rsi), %r11d
movl %r14d, %edx
movl $0x3ffffff, %eax        # imm = 0x3FFFFFF
andl %eax, %edx
movl %edx, 0x14(%rsp)
movl %edx, 0x18(%rsi)
movl %r11d, %r10d
sarl $0x19, %r10d
addl 0x20(%rsi), %r10d
movl %r10d, %edx
sarl $0x1a, %edx
addl (%rsp), %edx
movl %r11d, %ebp
andl %ecx, %ebp
movl %ebp, 0x18(%rsp)
movl %ebp, 0x1c(%rsi)
andl %r10d, %eax
movl %eax, (%rsp)
movl %eax, 0x20(%rsi)
andl %edx, %ecx
movl %ecx, 0x24(%rsi)
movl %ecx, %esi
movb %bl, (%rdi)
movb %bh, 0x1(%rdi)
shrl $0x10, %ebx
movb %bl, 0x2(%rdi)
shrl $0x18, %r13d
movb %r13b, 0x3(%rdi)
movl 0x8(%rsp), %eax
shrl $0x6, %eax
movl %r9d, %ecx
shll $0x13, %ecx
orl %eax, %ecx
movb %al, 0x4(%rdi)
shrl $0xe, %r12d
movb %r12b, 0x5(%rdi)
shrl $0x10, %ecx
movb %cl, 0x6(%rdi)
shrl $0x5, %r9d
movb %r9b, 0x7(%rdi)
movl 0xc(%rsp), %ecx
shrl $0xd, %ecx
movl %r15d, %eax
shll $0xd, %eax
orl %ecx, %eax
movb %cl, 0x8(%rdi)
movb %ah, 0x9(%rdi)
movl %r14d, %eax
shll $0x19, %eax
addl 0x4(%rsp), %eax
movl %r15d, %ecx
shrl $0x3, %ecx
movb %cl, 0xa(%rdi)
shrl $0xb, %r15d
movb %r15b, 0xb(%rdi)
movl 0x1c(%rsp), %r9d
shrl $0x13, %r9d
movl %r8d, %ecx
shll $0x6, %ecx
orl %r9d, %ecx
movb %cl, 0xc(%rdi)
movl %r8d, %ecx
shrl $0x2, %ecx
movb %cl, 0xd(%rdi)
movl %r8d, %ecx
shrl $0xa, %ecx
movb %cl, 0xe(%rdi)
shrl $0x12, %r8d
movb %r8b, 0xf(%rdi)
movl 0x10(%rsp), %ecx
movb %cl, 0x10(%rdi)
movb %ch, 0x11(%rdi)
shrl $0x10, %ecx
movb %cl, 0x12(%rdi)
shrl $0x18, %eax
movb %al, 0x13(%rdi)
movl 0x14(%rsp), %ecx
shrl $0x7, %ecx
movl %r11d, %eax
shll $0x13, %eax
orl %ecx, %eax
movb %cl, 0x14(%rdi)
shrl $0xf, %r14d
movb %r14b, 0x15(%rdi)
shrl $0x10, %eax
movb %al, 0x16(%rdi)
shrl $0x5, %r11d
movb %r11b, 0x17(%rdi)
movl 0x18(%rsp), %ecx
shrl $0xd, %ecx
movl %r10d, %eax
shll $0xc, %eax
orl %ecx, %eax
movb %cl, 0x18(%rdi)
movb %ah, 0x19(%rdi)
movl %r10d, %eax
shrl $0x4, %eax
movb %al, 0x1a(%rdi)
shrl $0xc, %r10d
movb %r10b, 0x1b(%rdi)
movl (%rsp), %ecx
shrl $0x14, %ecx
movl %edx, %eax
shll $0x6, %eax
orl %ecx, %eax
movb %al, 0x1c(%rdi)
movl %edx, %eax
shrl $0x2, %eax
movb %al, 0x1d(%rdi)
shrl $0xa, %edx
movb %dl, 0x1e(%rdi)
movl %esi, %eax
shrl $0x12, %eax
movb %al, 0x1f(%rdi)
pushq $0x28
popq %rsi
leaq 0x20(%rsp), %rdi
callq 0x1734
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq