fiat_crypto/
curve25519_scalar_32.rs

1//! Autogenerated: 'src/ExtractionOCaml/word_by_word_montgomery' --lang Rust --inline 25519_scalar 32 '2^252 + 27742317777372353535851937790883648493' mul square add sub opp from_montgomery to_montgomery nonzero selectznz to_bytes from_bytes one msat divstep divstep_precomp
2//! curve description: 25519_scalar
3//! machine_wordsize = 32 (from "32")
4//! requested operations: mul, square, add, sub, opp, from_montgomery, to_montgomery, nonzero, selectznz, to_bytes, from_bytes, one, msat, divstep, divstep_precomp
5//! m = 0x1000000000000000000000000000000014def9dea2f79cd65812631a5cf5d3ed (from "2^252 + 27742317777372353535851937790883648493")
6//!
7//! NOTE: In addition to the bounds specified above each function, all
8//!   functions synthesized for this Montgomery arithmetic require the
9//!   input to be strictly less than the prime modulus (m), and also
10//!   require the input to be in the unique saturated representation.
11//!   All functions also ensure that these two properties are true of
12//!   return values.
13//!
14//! Computed values:
15//!   eval z = z[0] + (z[1] << 32) + (z[2] << 64) + (z[3] << 96) + (z[4] << 128) + (z[5] << 160) + (z[6] << 192) + (z[7] << 224)
16//!   bytes_eval z = z[0] + (z[1] << 8) + (z[2] << 16) + (z[3] << 24) + (z[4] << 32) + (z[5] << 40) + (z[6] << 48) + (z[7] << 56) + (z[8] << 64) + (z[9] << 72) + (z[10] << 80) + (z[11] << 88) + (z[12] << 96) + (z[13] << 104) + (z[14] << 112) + (z[15] << 120) + (z[16] << 128) + (z[17] << 136) + (z[18] << 144) + (z[19] << 152) + (z[20] << 160) + (z[21] << 168) + (z[22] << 176) + (z[23] << 184) + (z[24] << 192) + (z[25] << 200) + (z[26] << 208) + (z[27] << 216) + (z[28] << 224) + (z[29] << 232) + (z[30] << 240) + (z[31] << 248)
17//!   twos_complement_eval z = let x1 := z[0] + (z[1] << 32) + (z[2] << 64) + (z[3] << 96) + (z[4] << 128) + (z[5] << 160) + (z[6] << 192) + (z[7] << 224) in
18//!                            if x1 & (2^256-1) < 2^255 then x1 & (2^256-1) else (x1 & (2^256-1)) - 2^256
19
20#![allow(unused_parens)]
21#![allow(non_camel_case_types)]
22
23/** fiat_25519_scalar_u1 represents values of 1 bits, stored in one byte. */
24pub type fiat_25519_scalar_u1 = u8;
25/** fiat_25519_scalar_i1 represents values of 1 bits, stored in one byte. */
26pub type fiat_25519_scalar_i1 = i8;
27/** fiat_25519_scalar_u2 represents values of 2 bits, stored in one byte. */
28pub type fiat_25519_scalar_u2 = u8;
29/** fiat_25519_scalar_i2 represents values of 2 bits, stored in one byte. */
30pub type fiat_25519_scalar_i2 = i8;
31
32/** The type fiat_25519_scalar_montgomery_domain_field_element is a field element in the Montgomery domain. */
33/** Bounds: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]] */
34#[derive(Clone, Copy)]
35pub struct fiat_25519_scalar_montgomery_domain_field_element(pub [u32; 8]);
36
37impl core::ops::Index<usize> for fiat_25519_scalar_montgomery_domain_field_element {
38    type Output = u32;
39    #[inline]
40    fn index(&self, index: usize) -> &Self::Output {
41        &self.0[index]
42    }
43}
44
45impl core::ops::IndexMut<usize> for fiat_25519_scalar_montgomery_domain_field_element {
46    #[inline]
47    fn index_mut(&mut self, index: usize) -> &mut Self::Output {
48        &mut self.0[index]
49    }
50}
51
52/** The type fiat_25519_scalar_non_montgomery_domain_field_element is a field element NOT in the Montgomery domain. */
53/** Bounds: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]] */
54#[derive(Clone, Copy)]
55pub struct fiat_25519_scalar_non_montgomery_domain_field_element(pub [u32; 8]);
56
57impl core::ops::Index<usize> for fiat_25519_scalar_non_montgomery_domain_field_element {
58    type Output = u32;
59    #[inline]
60    fn index(&self, index: usize) -> &Self::Output {
61        &self.0[index]
62    }
63}
64
65impl core::ops::IndexMut<usize> for fiat_25519_scalar_non_montgomery_domain_field_element {
66    #[inline]
67    fn index_mut(&mut self, index: usize) -> &mut Self::Output {
68        &mut self.0[index]
69    }
70}
71
72
73/// The function fiat_25519_scalar_addcarryx_u32 is an addition with carry.
74///
75/// Postconditions:
76///   out1 = (arg1 + arg2 + arg3) mod 2^32
77///   out2 = ⌊(arg1 + arg2 + arg3) / 2^32⌋
78///
79/// Input Bounds:
80///   arg1: [0x0 ~> 0x1]
81///   arg2: [0x0 ~> 0xffffffff]
82///   arg3: [0x0 ~> 0xffffffff]
83/// Output Bounds:
84///   out1: [0x0 ~> 0xffffffff]
85///   out2: [0x0 ~> 0x1]
86#[inline]
87pub fn fiat_25519_scalar_addcarryx_u32(out1: &mut u32, out2: &mut fiat_25519_scalar_u1, arg1: fiat_25519_scalar_u1, arg2: u32, arg3: u32) {
88  let x1: u64 = (((arg1 as u64) + (arg2 as u64)) + (arg3 as u64));
89  let x2: u32 = ((x1 & (0xffffffff as u64)) as u32);
90  let x3: fiat_25519_scalar_u1 = ((x1 >> 32) as fiat_25519_scalar_u1);
91  *out1 = x2;
92  *out2 = x3;
93}
94
95/// The function fiat_25519_scalar_subborrowx_u32 is a subtraction with borrow.
96///
97/// Postconditions:
98///   out1 = (-arg1 + arg2 + -arg3) mod 2^32
99///   out2 = -⌊(-arg1 + arg2 + -arg3) / 2^32⌋
100///
101/// Input Bounds:
102///   arg1: [0x0 ~> 0x1]
103///   arg2: [0x0 ~> 0xffffffff]
104///   arg3: [0x0 ~> 0xffffffff]
105/// Output Bounds:
106///   out1: [0x0 ~> 0xffffffff]
107///   out2: [0x0 ~> 0x1]
108#[inline]
109pub fn fiat_25519_scalar_subborrowx_u32(out1: &mut u32, out2: &mut fiat_25519_scalar_u1, arg1: fiat_25519_scalar_u1, arg2: u32, arg3: u32) {
110  let x1: i64 = (((arg2 as i64) - (arg1 as i64)) - (arg3 as i64));
111  let x2: fiat_25519_scalar_i1 = ((x1 >> 32) as fiat_25519_scalar_i1);
112  let x3: u32 = ((x1 & (0xffffffff as i64)) as u32);
113  *out1 = x3;
114  *out2 = (((0x0 as fiat_25519_scalar_i2) - (x2 as fiat_25519_scalar_i2)) as fiat_25519_scalar_u1);
115}
116
117/// The function fiat_25519_scalar_mulx_u32 is a multiplication, returning the full double-width result.
118///
119/// Postconditions:
120///   out1 = (arg1 * arg2) mod 2^32
121///   out2 = ⌊arg1 * arg2 / 2^32⌋
122///
123/// Input Bounds:
124///   arg1: [0x0 ~> 0xffffffff]
125///   arg2: [0x0 ~> 0xffffffff]
126/// Output Bounds:
127///   out1: [0x0 ~> 0xffffffff]
128///   out2: [0x0 ~> 0xffffffff]
129#[inline]
130pub fn fiat_25519_scalar_mulx_u32(out1: &mut u32, out2: &mut u32, arg1: u32, arg2: u32) {
131  let x1: u64 = ((arg1 as u64) * (arg2 as u64));
132  let x2: u32 = ((x1 & (0xffffffff as u64)) as u32);
133  let x3: u32 = ((x1 >> 32) as u32);
134  *out1 = x2;
135  *out2 = x3;
136}
137
138/// The function fiat_25519_scalar_cmovznz_u32 is a single-word conditional move.
139///
140/// Postconditions:
141///   out1 = (if arg1 = 0 then arg2 else arg3)
142///
143/// Input Bounds:
144///   arg1: [0x0 ~> 0x1]
145///   arg2: [0x0 ~> 0xffffffff]
146///   arg3: [0x0 ~> 0xffffffff]
147/// Output Bounds:
148///   out1: [0x0 ~> 0xffffffff]
149#[inline]
150pub fn fiat_25519_scalar_cmovznz_u32(out1: &mut u32, arg1: fiat_25519_scalar_u1, arg2: u32, arg3: u32) {
151  let x1: fiat_25519_scalar_u1 = (!(!arg1));
152  let x2: u32 = ((((((0x0 as fiat_25519_scalar_i2) - (x1 as fiat_25519_scalar_i2)) as fiat_25519_scalar_i1) as i64) & (0xffffffff as i64)) as u32);
153  let x3: u32 = ((x2 & arg3) | ((!x2) & arg2));
154  *out1 = x3;
155}
156
157/// The function fiat_25519_scalar_mul multiplies two field elements in the Montgomery domain.
158///
159/// Preconditions:
160///   0 ≤ eval arg1 < m
161///   0 ≤ eval arg2 < m
162/// Postconditions:
163///   eval (from_montgomery out1) mod m = (eval (from_montgomery arg1) * eval (from_montgomery arg2)) mod m
164///   0 ≤ eval out1 < m
165///
166#[inline]
167pub fn fiat_25519_scalar_mul(out1: &mut fiat_25519_scalar_montgomery_domain_field_element, arg1: &fiat_25519_scalar_montgomery_domain_field_element, arg2: &fiat_25519_scalar_montgomery_domain_field_element) {
168  let x1: u32 = (arg1[1]);
169  let x2: u32 = (arg1[2]);
170  let x3: u32 = (arg1[3]);
171  let x4: u32 = (arg1[4]);
172  let x5: u32 = (arg1[5]);
173  let x6: u32 = (arg1[6]);
174  let x7: u32 = (arg1[7]);
175  let x8: u32 = (arg1[0]);
176  let mut x9: u32 = 0;
177  let mut x10: u32 = 0;
178  fiat_25519_scalar_mulx_u32(&mut x9, &mut x10, x8, (arg2[7]));
179  let mut x11: u32 = 0;
180  let mut x12: u32 = 0;
181  fiat_25519_scalar_mulx_u32(&mut x11, &mut x12, x8, (arg2[6]));
182  let mut x13: u32 = 0;
183  let mut x14: u32 = 0;
184  fiat_25519_scalar_mulx_u32(&mut x13, &mut x14, x8, (arg2[5]));
185  let mut x15: u32 = 0;
186  let mut x16: u32 = 0;
187  fiat_25519_scalar_mulx_u32(&mut x15, &mut x16, x8, (arg2[4]));
188  let mut x17: u32 = 0;
189  let mut x18: u32 = 0;
190  fiat_25519_scalar_mulx_u32(&mut x17, &mut x18, x8, (arg2[3]));
191  let mut x19: u32 = 0;
192  let mut x20: u32 = 0;
193  fiat_25519_scalar_mulx_u32(&mut x19, &mut x20, x8, (arg2[2]));
194  let mut x21: u32 = 0;
195  let mut x22: u32 = 0;
196  fiat_25519_scalar_mulx_u32(&mut x21, &mut x22, x8, (arg2[1]));
197  let mut x23: u32 = 0;
198  let mut x24: u32 = 0;
199  fiat_25519_scalar_mulx_u32(&mut x23, &mut x24, x8, (arg2[0]));
200  let mut x25: u32 = 0;
201  let mut x26: fiat_25519_scalar_u1 = 0;
202  fiat_25519_scalar_addcarryx_u32(&mut x25, &mut x26, 0x0, x24, x21);
203  let mut x27: u32 = 0;
204  let mut x28: fiat_25519_scalar_u1 = 0;
205  fiat_25519_scalar_addcarryx_u32(&mut x27, &mut x28, x26, x22, x19);
206  let mut x29: u32 = 0;
207  let mut x30: fiat_25519_scalar_u1 = 0;
208  fiat_25519_scalar_addcarryx_u32(&mut x29, &mut x30, x28, x20, x17);
209  let mut x31: u32 = 0;
210  let mut x32: fiat_25519_scalar_u1 = 0;
211  fiat_25519_scalar_addcarryx_u32(&mut x31, &mut x32, x30, x18, x15);
212  let mut x33: u32 = 0;
213  let mut x34: fiat_25519_scalar_u1 = 0;
214  fiat_25519_scalar_addcarryx_u32(&mut x33, &mut x34, x32, x16, x13);
215  let mut x35: u32 = 0;
216  let mut x36: fiat_25519_scalar_u1 = 0;
217  fiat_25519_scalar_addcarryx_u32(&mut x35, &mut x36, x34, x14, x11);
218  let mut x37: u32 = 0;
219  let mut x38: fiat_25519_scalar_u1 = 0;
220  fiat_25519_scalar_addcarryx_u32(&mut x37, &mut x38, x36, x12, x9);
221  let x39: u32 = ((x38 as u32) + x10);
222  let mut x40: u32 = 0;
223  let mut x41: u32 = 0;
224  fiat_25519_scalar_mulx_u32(&mut x40, &mut x41, x23, 0x12547e1b);
225  let mut x42: u32 = 0;
226  let mut x43: u32 = 0;
227  fiat_25519_scalar_mulx_u32(&mut x42, &mut x43, x40, 0x10000000);
228  let mut x44: u32 = 0;
229  let mut x45: u32 = 0;
230  fiat_25519_scalar_mulx_u32(&mut x44, &mut x45, x40, 0x14def9de);
231  let mut x46: u32 = 0;
232  let mut x47: u32 = 0;
233  fiat_25519_scalar_mulx_u32(&mut x46, &mut x47, x40, 0xa2f79cd6);
234  let mut x48: u32 = 0;
235  let mut x49: u32 = 0;
236  fiat_25519_scalar_mulx_u32(&mut x48, &mut x49, x40, 0x5812631a);
237  let mut x50: u32 = 0;
238  let mut x51: u32 = 0;
239  fiat_25519_scalar_mulx_u32(&mut x50, &mut x51, x40, 0x5cf5d3ed);
240  let mut x52: u32 = 0;
241  let mut x53: fiat_25519_scalar_u1 = 0;
242  fiat_25519_scalar_addcarryx_u32(&mut x52, &mut x53, 0x0, x51, x48);
243  let mut x54: u32 = 0;
244  let mut x55: fiat_25519_scalar_u1 = 0;
245  fiat_25519_scalar_addcarryx_u32(&mut x54, &mut x55, x53, x49, x46);
246  let mut x56: u32 = 0;
247  let mut x57: fiat_25519_scalar_u1 = 0;
248  fiat_25519_scalar_addcarryx_u32(&mut x56, &mut x57, x55, x47, x44);
249  let x58: u32 = ((x57 as u32) + x45);
250  let mut x59: u32 = 0;
251  let mut x60: fiat_25519_scalar_u1 = 0;
252  fiat_25519_scalar_addcarryx_u32(&mut x59, &mut x60, 0x0, x23, x50);
253  let mut x61: u32 = 0;
254  let mut x62: fiat_25519_scalar_u1 = 0;
255  fiat_25519_scalar_addcarryx_u32(&mut x61, &mut x62, x60, x25, x52);
256  let mut x63: u32 = 0;
257  let mut x64: fiat_25519_scalar_u1 = 0;
258  fiat_25519_scalar_addcarryx_u32(&mut x63, &mut x64, x62, x27, x54);
259  let mut x65: u32 = 0;
260  let mut x66: fiat_25519_scalar_u1 = 0;
261  fiat_25519_scalar_addcarryx_u32(&mut x65, &mut x66, x64, x29, x56);
262  let mut x67: u32 = 0;
263  let mut x68: fiat_25519_scalar_u1 = 0;
264  fiat_25519_scalar_addcarryx_u32(&mut x67, &mut x68, x66, x31, x58);
265  let mut x69: u32 = 0;
266  let mut x70: fiat_25519_scalar_u1 = 0;
267  fiat_25519_scalar_addcarryx_u32(&mut x69, &mut x70, x68, x33, (0x0 as u32));
268  let mut x71: u32 = 0;
269  let mut x72: fiat_25519_scalar_u1 = 0;
270  fiat_25519_scalar_addcarryx_u32(&mut x71, &mut x72, x70, x35, (0x0 as u32));
271  let mut x73: u32 = 0;
272  let mut x74: fiat_25519_scalar_u1 = 0;
273  fiat_25519_scalar_addcarryx_u32(&mut x73, &mut x74, x72, x37, x42);
274  let mut x75: u32 = 0;
275  let mut x76: fiat_25519_scalar_u1 = 0;
276  fiat_25519_scalar_addcarryx_u32(&mut x75, &mut x76, x74, x39, x43);
277  let mut x77: u32 = 0;
278  let mut x78: u32 = 0;
279  fiat_25519_scalar_mulx_u32(&mut x77, &mut x78, x1, (arg2[7]));
280  let mut x79: u32 = 0;
281  let mut x80: u32 = 0;
282  fiat_25519_scalar_mulx_u32(&mut x79, &mut x80, x1, (arg2[6]));
283  let mut x81: u32 = 0;
284  let mut x82: u32 = 0;
285  fiat_25519_scalar_mulx_u32(&mut x81, &mut x82, x1, (arg2[5]));
286  let mut x83: u32 = 0;
287  let mut x84: u32 = 0;
288  fiat_25519_scalar_mulx_u32(&mut x83, &mut x84, x1, (arg2[4]));
289  let mut x85: u32 = 0;
290  let mut x86: u32 = 0;
291  fiat_25519_scalar_mulx_u32(&mut x85, &mut x86, x1, (arg2[3]));
292  let mut x87: u32 = 0;
293  let mut x88: u32 = 0;
294  fiat_25519_scalar_mulx_u32(&mut x87, &mut x88, x1, (arg2[2]));
295  let mut x89: u32 = 0;
296  let mut x90: u32 = 0;
297  fiat_25519_scalar_mulx_u32(&mut x89, &mut x90, x1, (arg2[1]));
298  let mut x91: u32 = 0;
299  let mut x92: u32 = 0;
300  fiat_25519_scalar_mulx_u32(&mut x91, &mut x92, x1, (arg2[0]));
301  let mut x93: u32 = 0;
302  let mut x94: fiat_25519_scalar_u1 = 0;
303  fiat_25519_scalar_addcarryx_u32(&mut x93, &mut x94, 0x0, x92, x89);
304  let mut x95: u32 = 0;
305  let mut x96: fiat_25519_scalar_u1 = 0;
306  fiat_25519_scalar_addcarryx_u32(&mut x95, &mut x96, x94, x90, x87);
307  let mut x97: u32 = 0;
308  let mut x98: fiat_25519_scalar_u1 = 0;
309  fiat_25519_scalar_addcarryx_u32(&mut x97, &mut x98, x96, x88, x85);
310  let mut x99: u32 = 0;
311  let mut x100: fiat_25519_scalar_u1 = 0;
312  fiat_25519_scalar_addcarryx_u32(&mut x99, &mut x100, x98, x86, x83);
313  let mut x101: u32 = 0;
314  let mut x102: fiat_25519_scalar_u1 = 0;
315  fiat_25519_scalar_addcarryx_u32(&mut x101, &mut x102, x100, x84, x81);
316  let mut x103: u32 = 0;
317  let mut x104: fiat_25519_scalar_u1 = 0;
318  fiat_25519_scalar_addcarryx_u32(&mut x103, &mut x104, x102, x82, x79);
319  let mut x105: u32 = 0;
320  let mut x106: fiat_25519_scalar_u1 = 0;
321  fiat_25519_scalar_addcarryx_u32(&mut x105, &mut x106, x104, x80, x77);
322  let x107: u32 = ((x106 as u32) + x78);
323  let mut x108: u32 = 0;
324  let mut x109: fiat_25519_scalar_u1 = 0;
325  fiat_25519_scalar_addcarryx_u32(&mut x108, &mut x109, 0x0, x61, x91);
326  let mut x110: u32 = 0;
327  let mut x111: fiat_25519_scalar_u1 = 0;
328  fiat_25519_scalar_addcarryx_u32(&mut x110, &mut x111, x109, x63, x93);
329  let mut x112: u32 = 0;
330  let mut x113: fiat_25519_scalar_u1 = 0;
331  fiat_25519_scalar_addcarryx_u32(&mut x112, &mut x113, x111, x65, x95);
332  let mut x114: u32 = 0;
333  let mut x115: fiat_25519_scalar_u1 = 0;
334  fiat_25519_scalar_addcarryx_u32(&mut x114, &mut x115, x113, x67, x97);
335  let mut x116: u32 = 0;
336  let mut x117: fiat_25519_scalar_u1 = 0;
337  fiat_25519_scalar_addcarryx_u32(&mut x116, &mut x117, x115, x69, x99);
338  let mut x118: u32 = 0;
339  let mut x119: fiat_25519_scalar_u1 = 0;
340  fiat_25519_scalar_addcarryx_u32(&mut x118, &mut x119, x117, x71, x101);
341  let mut x120: u32 = 0;
342  let mut x121: fiat_25519_scalar_u1 = 0;
343  fiat_25519_scalar_addcarryx_u32(&mut x120, &mut x121, x119, x73, x103);
344  let mut x122: u32 = 0;
345  let mut x123: fiat_25519_scalar_u1 = 0;
346  fiat_25519_scalar_addcarryx_u32(&mut x122, &mut x123, x121, x75, x105);
347  let mut x124: u32 = 0;
348  let mut x125: fiat_25519_scalar_u1 = 0;
349  fiat_25519_scalar_addcarryx_u32(&mut x124, &mut x125, x123, (x76 as u32), x107);
350  let mut x126: u32 = 0;
351  let mut x127: u32 = 0;
352  fiat_25519_scalar_mulx_u32(&mut x126, &mut x127, x108, 0x12547e1b);
353  let mut x128: u32 = 0;
354  let mut x129: u32 = 0;
355  fiat_25519_scalar_mulx_u32(&mut x128, &mut x129, x126, 0x10000000);
356  let mut x130: u32 = 0;
357  let mut x131: u32 = 0;
358  fiat_25519_scalar_mulx_u32(&mut x130, &mut x131, x126, 0x14def9de);
359  let mut x132: u32 = 0;
360  let mut x133: u32 = 0;
361  fiat_25519_scalar_mulx_u32(&mut x132, &mut x133, x126, 0xa2f79cd6);
362  let mut x134: u32 = 0;
363  let mut x135: u32 = 0;
364  fiat_25519_scalar_mulx_u32(&mut x134, &mut x135, x126, 0x5812631a);
365  let mut x136: u32 = 0;
366  let mut x137: u32 = 0;
367  fiat_25519_scalar_mulx_u32(&mut x136, &mut x137, x126, 0x5cf5d3ed);
368  let mut x138: u32 = 0;
369  let mut x139: fiat_25519_scalar_u1 = 0;
370  fiat_25519_scalar_addcarryx_u32(&mut x138, &mut x139, 0x0, x137, x134);
371  let mut x140: u32 = 0;
372  let mut x141: fiat_25519_scalar_u1 = 0;
373  fiat_25519_scalar_addcarryx_u32(&mut x140, &mut x141, x139, x135, x132);
374  let mut x142: u32 = 0;
375  let mut x143: fiat_25519_scalar_u1 = 0;
376  fiat_25519_scalar_addcarryx_u32(&mut x142, &mut x143, x141, x133, x130);
377  let x144: u32 = ((x143 as u32) + x131);
378  let mut x145: u32 = 0;
379  let mut x146: fiat_25519_scalar_u1 = 0;
380  fiat_25519_scalar_addcarryx_u32(&mut x145, &mut x146, 0x0, x108, x136);
381  let mut x147: u32 = 0;
382  let mut x148: fiat_25519_scalar_u1 = 0;
383  fiat_25519_scalar_addcarryx_u32(&mut x147, &mut x148, x146, x110, x138);
384  let mut x149: u32 = 0;
385  let mut x150: fiat_25519_scalar_u1 = 0;
386  fiat_25519_scalar_addcarryx_u32(&mut x149, &mut x150, x148, x112, x140);
387  let mut x151: u32 = 0;
388  let mut x152: fiat_25519_scalar_u1 = 0;
389  fiat_25519_scalar_addcarryx_u32(&mut x151, &mut x152, x150, x114, x142);
390  let mut x153: u32 = 0;
391  let mut x154: fiat_25519_scalar_u1 = 0;
392  fiat_25519_scalar_addcarryx_u32(&mut x153, &mut x154, x152, x116, x144);
393  let mut x155: u32 = 0;
394  let mut x156: fiat_25519_scalar_u1 = 0;
395  fiat_25519_scalar_addcarryx_u32(&mut x155, &mut x156, x154, x118, (0x0 as u32));
396  let mut x157: u32 = 0;
397  let mut x158: fiat_25519_scalar_u1 = 0;
398  fiat_25519_scalar_addcarryx_u32(&mut x157, &mut x158, x156, x120, (0x0 as u32));
399  let mut x159: u32 = 0;
400  let mut x160: fiat_25519_scalar_u1 = 0;
401  fiat_25519_scalar_addcarryx_u32(&mut x159, &mut x160, x158, x122, x128);
402  let mut x161: u32 = 0;
403  let mut x162: fiat_25519_scalar_u1 = 0;
404  fiat_25519_scalar_addcarryx_u32(&mut x161, &mut x162, x160, x124, x129);
405  let x163: u32 = ((x162 as u32) + (x125 as u32));
406  let mut x164: u32 = 0;
407  let mut x165: u32 = 0;
408  fiat_25519_scalar_mulx_u32(&mut x164, &mut x165, x2, (arg2[7]));
409  let mut x166: u32 = 0;
410  let mut x167: u32 = 0;
411  fiat_25519_scalar_mulx_u32(&mut x166, &mut x167, x2, (arg2[6]));
412  let mut x168: u32 = 0;
413  let mut x169: u32 = 0;
414  fiat_25519_scalar_mulx_u32(&mut x168, &mut x169, x2, (arg2[5]));
415  let mut x170: u32 = 0;
416  let mut x171: u32 = 0;
417  fiat_25519_scalar_mulx_u32(&mut x170, &mut x171, x2, (arg2[4]));
418  let mut x172: u32 = 0;
419  let mut x173: u32 = 0;
420  fiat_25519_scalar_mulx_u32(&mut x172, &mut x173, x2, (arg2[3]));
421  let mut x174: u32 = 0;
422  let mut x175: u32 = 0;
423  fiat_25519_scalar_mulx_u32(&mut x174, &mut x175, x2, (arg2[2]));
424  let mut x176: u32 = 0;
425  let mut x177: u32 = 0;
426  fiat_25519_scalar_mulx_u32(&mut x176, &mut x177, x2, (arg2[1]));
427  let mut x178: u32 = 0;
428  let mut x179: u32 = 0;
429  fiat_25519_scalar_mulx_u32(&mut x178, &mut x179, x2, (arg2[0]));
430  let mut x180: u32 = 0;
431  let mut x181: fiat_25519_scalar_u1 = 0;
432  fiat_25519_scalar_addcarryx_u32(&mut x180, &mut x181, 0x0, x179, x176);
433  let mut x182: u32 = 0;
434  let mut x183: fiat_25519_scalar_u1 = 0;
435  fiat_25519_scalar_addcarryx_u32(&mut x182, &mut x183, x181, x177, x174);
436  let mut x184: u32 = 0;
437  let mut x185: fiat_25519_scalar_u1 = 0;
438  fiat_25519_scalar_addcarryx_u32(&mut x184, &mut x185, x183, x175, x172);
439  let mut x186: u32 = 0;
440  let mut x187: fiat_25519_scalar_u1 = 0;
441  fiat_25519_scalar_addcarryx_u32(&mut x186, &mut x187, x185, x173, x170);
442  let mut x188: u32 = 0;
443  let mut x189: fiat_25519_scalar_u1 = 0;
444  fiat_25519_scalar_addcarryx_u32(&mut x188, &mut x189, x187, x171, x168);
445  let mut x190: u32 = 0;
446  let mut x191: fiat_25519_scalar_u1 = 0;
447  fiat_25519_scalar_addcarryx_u32(&mut x190, &mut x191, x189, x169, x166);
448  let mut x192: u32 = 0;
449  let mut x193: fiat_25519_scalar_u1 = 0;
450  fiat_25519_scalar_addcarryx_u32(&mut x192, &mut x193, x191, x167, x164);
451  let x194: u32 = ((x193 as u32) + x165);
452  let mut x195: u32 = 0;
453  let mut x196: fiat_25519_scalar_u1 = 0;
454  fiat_25519_scalar_addcarryx_u32(&mut x195, &mut x196, 0x0, x147, x178);
455  let mut x197: u32 = 0;
456  let mut x198: fiat_25519_scalar_u1 = 0;
457  fiat_25519_scalar_addcarryx_u32(&mut x197, &mut x198, x196, x149, x180);
458  let mut x199: u32 = 0;
459  let mut x200: fiat_25519_scalar_u1 = 0;
460  fiat_25519_scalar_addcarryx_u32(&mut x199, &mut x200, x198, x151, x182);
461  let mut x201: u32 = 0;
462  let mut x202: fiat_25519_scalar_u1 = 0;
463  fiat_25519_scalar_addcarryx_u32(&mut x201, &mut x202, x200, x153, x184);
464  let mut x203: u32 = 0;
465  let mut x204: fiat_25519_scalar_u1 = 0;
466  fiat_25519_scalar_addcarryx_u32(&mut x203, &mut x204, x202, x155, x186);
467  let mut x205: u32 = 0;
468  let mut x206: fiat_25519_scalar_u1 = 0;
469  fiat_25519_scalar_addcarryx_u32(&mut x205, &mut x206, x204, x157, x188);
470  let mut x207: u32 = 0;
471  let mut x208: fiat_25519_scalar_u1 = 0;
472  fiat_25519_scalar_addcarryx_u32(&mut x207, &mut x208, x206, x159, x190);
473  let mut x209: u32 = 0;
474  let mut x210: fiat_25519_scalar_u1 = 0;
475  fiat_25519_scalar_addcarryx_u32(&mut x209, &mut x210, x208, x161, x192);
476  let mut x211: u32 = 0;
477  let mut x212: fiat_25519_scalar_u1 = 0;
478  fiat_25519_scalar_addcarryx_u32(&mut x211, &mut x212, x210, x163, x194);
479  let mut x213: u32 = 0;
480  let mut x214: u32 = 0;
481  fiat_25519_scalar_mulx_u32(&mut x213, &mut x214, x195, 0x12547e1b);
482  let mut x215: u32 = 0;
483  let mut x216: u32 = 0;
484  fiat_25519_scalar_mulx_u32(&mut x215, &mut x216, x213, 0x10000000);
485  let mut x217: u32 = 0;
486  let mut x218: u32 = 0;
487  fiat_25519_scalar_mulx_u32(&mut x217, &mut x218, x213, 0x14def9de);
488  let mut x219: u32 = 0;
489  let mut x220: u32 = 0;
490  fiat_25519_scalar_mulx_u32(&mut x219, &mut x220, x213, 0xa2f79cd6);
491  let mut x221: u32 = 0;
492  let mut x222: u32 = 0;
493  fiat_25519_scalar_mulx_u32(&mut x221, &mut x222, x213, 0x5812631a);
494  let mut x223: u32 = 0;
495  let mut x224: u32 = 0;
496  fiat_25519_scalar_mulx_u32(&mut x223, &mut x224, x213, 0x5cf5d3ed);
497  let mut x225: u32 = 0;
498  let mut x226: fiat_25519_scalar_u1 = 0;
499  fiat_25519_scalar_addcarryx_u32(&mut x225, &mut x226, 0x0, x224, x221);
500  let mut x227: u32 = 0;
501  let mut x228: fiat_25519_scalar_u1 = 0;
502  fiat_25519_scalar_addcarryx_u32(&mut x227, &mut x228, x226, x222, x219);
503  let mut x229: u32 = 0;
504  let mut x230: fiat_25519_scalar_u1 = 0;
505  fiat_25519_scalar_addcarryx_u32(&mut x229, &mut x230, x228, x220, x217);
506  let x231: u32 = ((x230 as u32) + x218);
507  let mut x232: u32 = 0;
508  let mut x233: fiat_25519_scalar_u1 = 0;
509  fiat_25519_scalar_addcarryx_u32(&mut x232, &mut x233, 0x0, x195, x223);
510  let mut x234: u32 = 0;
511  let mut x235: fiat_25519_scalar_u1 = 0;
512  fiat_25519_scalar_addcarryx_u32(&mut x234, &mut x235, x233, x197, x225);
513  let mut x236: u32 = 0;
514  let mut x237: fiat_25519_scalar_u1 = 0;
515  fiat_25519_scalar_addcarryx_u32(&mut x236, &mut x237, x235, x199, x227);
516  let mut x238: u32 = 0;
517  let mut x239: fiat_25519_scalar_u1 = 0;
518  fiat_25519_scalar_addcarryx_u32(&mut x238, &mut x239, x237, x201, x229);
519  let mut x240: u32 = 0;
520  let mut x241: fiat_25519_scalar_u1 = 0;
521  fiat_25519_scalar_addcarryx_u32(&mut x240, &mut x241, x239, x203, x231);
522  let mut x242: u32 = 0;
523  let mut x243: fiat_25519_scalar_u1 = 0;
524  fiat_25519_scalar_addcarryx_u32(&mut x242, &mut x243, x241, x205, (0x0 as u32));
525  let mut x244: u32 = 0;
526  let mut x245: fiat_25519_scalar_u1 = 0;
527  fiat_25519_scalar_addcarryx_u32(&mut x244, &mut x245, x243, x207, (0x0 as u32));
528  let mut x246: u32 = 0;
529  let mut x247: fiat_25519_scalar_u1 = 0;
530  fiat_25519_scalar_addcarryx_u32(&mut x246, &mut x247, x245, x209, x215);
531  let mut x248: u32 = 0;
532  let mut x249: fiat_25519_scalar_u1 = 0;
533  fiat_25519_scalar_addcarryx_u32(&mut x248, &mut x249, x247, x211, x216);
534  let x250: u32 = ((x249 as u32) + (x212 as u32));
535  let mut x251: u32 = 0;
536  let mut x252: u32 = 0;
537  fiat_25519_scalar_mulx_u32(&mut x251, &mut x252, x3, (arg2[7]));
538  let mut x253: u32 = 0;
539  let mut x254: u32 = 0;
540  fiat_25519_scalar_mulx_u32(&mut x253, &mut x254, x3, (arg2[6]));
541  let mut x255: u32 = 0;
542  let mut x256: u32 = 0;
543  fiat_25519_scalar_mulx_u32(&mut x255, &mut x256, x3, (arg2[5]));
544  let mut x257: u32 = 0;
545  let mut x258: u32 = 0;
546  fiat_25519_scalar_mulx_u32(&mut x257, &mut x258, x3, (arg2[4]));
547  let mut x259: u32 = 0;
548  let mut x260: u32 = 0;
549  fiat_25519_scalar_mulx_u32(&mut x259, &mut x260, x3, (arg2[3]));
550  let mut x261: u32 = 0;
551  let mut x262: u32 = 0;
552  fiat_25519_scalar_mulx_u32(&mut x261, &mut x262, x3, (arg2[2]));
553  let mut x263: u32 = 0;
554  let mut x264: u32 = 0;
555  fiat_25519_scalar_mulx_u32(&mut x263, &mut x264, x3, (arg2[1]));
556  let mut x265: u32 = 0;
557  let mut x266: u32 = 0;
558  fiat_25519_scalar_mulx_u32(&mut x265, &mut x266, x3, (arg2[0]));
559  let mut x267: u32 = 0;
560  let mut x268: fiat_25519_scalar_u1 = 0;
561  fiat_25519_scalar_addcarryx_u32(&mut x267, &mut x268, 0x0, x266, x263);
562  let mut x269: u32 = 0;
563  let mut x270: fiat_25519_scalar_u1 = 0;
564  fiat_25519_scalar_addcarryx_u32(&mut x269, &mut x270, x268, x264, x261);
565  let mut x271: u32 = 0;
566  let mut x272: fiat_25519_scalar_u1 = 0;
567  fiat_25519_scalar_addcarryx_u32(&mut x271, &mut x272, x270, x262, x259);
568  let mut x273: u32 = 0;
569  let mut x274: fiat_25519_scalar_u1 = 0;
570  fiat_25519_scalar_addcarryx_u32(&mut x273, &mut x274, x272, x260, x257);
571  let mut x275: u32 = 0;
572  let mut x276: fiat_25519_scalar_u1 = 0;
573  fiat_25519_scalar_addcarryx_u32(&mut x275, &mut x276, x274, x258, x255);
574  let mut x277: u32 = 0;
575  let mut x278: fiat_25519_scalar_u1 = 0;
576  fiat_25519_scalar_addcarryx_u32(&mut x277, &mut x278, x276, x256, x253);
577  let mut x279: u32 = 0;
578  let mut x280: fiat_25519_scalar_u1 = 0;
579  fiat_25519_scalar_addcarryx_u32(&mut x279, &mut x280, x278, x254, x251);
580  let x281: u32 = ((x280 as u32) + x252);
581  let mut x282: u32 = 0;
582  let mut x283: fiat_25519_scalar_u1 = 0;
583  fiat_25519_scalar_addcarryx_u32(&mut x282, &mut x283, 0x0, x234, x265);
584  let mut x284: u32 = 0;
585  let mut x285: fiat_25519_scalar_u1 = 0;
586  fiat_25519_scalar_addcarryx_u32(&mut x284, &mut x285, x283, x236, x267);
587  let mut x286: u32 = 0;
588  let mut x287: fiat_25519_scalar_u1 = 0;
589  fiat_25519_scalar_addcarryx_u32(&mut x286, &mut x287, x285, x238, x269);
590  let mut x288: u32 = 0;
591  let mut x289: fiat_25519_scalar_u1 = 0;
592  fiat_25519_scalar_addcarryx_u32(&mut x288, &mut x289, x287, x240, x271);
593  let mut x290: u32 = 0;
594  let mut x291: fiat_25519_scalar_u1 = 0;
595  fiat_25519_scalar_addcarryx_u32(&mut x290, &mut x291, x289, x242, x273);
596  let mut x292: u32 = 0;
597  let mut x293: fiat_25519_scalar_u1 = 0;
598  fiat_25519_scalar_addcarryx_u32(&mut x292, &mut x293, x291, x244, x275);
599  let mut x294: u32 = 0;
600  let mut x295: fiat_25519_scalar_u1 = 0;
601  fiat_25519_scalar_addcarryx_u32(&mut x294, &mut x295, x293, x246, x277);
602  let mut x296: u32 = 0;
603  let mut x297: fiat_25519_scalar_u1 = 0;
604  fiat_25519_scalar_addcarryx_u32(&mut x296, &mut x297, x295, x248, x279);
605  let mut x298: u32 = 0;
606  let mut x299: fiat_25519_scalar_u1 = 0;
607  fiat_25519_scalar_addcarryx_u32(&mut x298, &mut x299, x297, x250, x281);
608  let mut x300: u32 = 0;
609  let mut x301: u32 = 0;
610  fiat_25519_scalar_mulx_u32(&mut x300, &mut x301, x282, 0x12547e1b);
611  let mut x302: u32 = 0;
612  let mut x303: u32 = 0;
613  fiat_25519_scalar_mulx_u32(&mut x302, &mut x303, x300, 0x10000000);
614  let mut x304: u32 = 0;
615  let mut x305: u32 = 0;
616  fiat_25519_scalar_mulx_u32(&mut x304, &mut x305, x300, 0x14def9de);
617  let mut x306: u32 = 0;
618  let mut x307: u32 = 0;
619  fiat_25519_scalar_mulx_u32(&mut x306, &mut x307, x300, 0xa2f79cd6);
620  let mut x308: u32 = 0;
621  let mut x309: u32 = 0;
622  fiat_25519_scalar_mulx_u32(&mut x308, &mut x309, x300, 0x5812631a);
623  let mut x310: u32 = 0;
624  let mut x311: u32 = 0;
625  fiat_25519_scalar_mulx_u32(&mut x310, &mut x311, x300, 0x5cf5d3ed);
626  let mut x312: u32 = 0;
627  let mut x313: fiat_25519_scalar_u1 = 0;
628  fiat_25519_scalar_addcarryx_u32(&mut x312, &mut x313, 0x0, x311, x308);
629  let mut x314: u32 = 0;
630  let mut x315: fiat_25519_scalar_u1 = 0;
631  fiat_25519_scalar_addcarryx_u32(&mut x314, &mut x315, x313, x309, x306);
632  let mut x316: u32 = 0;
633  let mut x317: fiat_25519_scalar_u1 = 0;
634  fiat_25519_scalar_addcarryx_u32(&mut x316, &mut x317, x315, x307, x304);
635  let x318: u32 = ((x317 as u32) + x305);
636  let mut x319: u32 = 0;
637  let mut x320: fiat_25519_scalar_u1 = 0;
638  fiat_25519_scalar_addcarryx_u32(&mut x319, &mut x320, 0x0, x282, x310);
639  let mut x321: u32 = 0;
640  let mut x322: fiat_25519_scalar_u1 = 0;
641  fiat_25519_scalar_addcarryx_u32(&mut x321, &mut x322, x320, x284, x312);
642  let mut x323: u32 = 0;
643  let mut x324: fiat_25519_scalar_u1 = 0;
644  fiat_25519_scalar_addcarryx_u32(&mut x323, &mut x324, x322, x286, x314);
645  let mut x325: u32 = 0;
646  let mut x326: fiat_25519_scalar_u1 = 0;
647  fiat_25519_scalar_addcarryx_u32(&mut x325, &mut x326, x324, x288, x316);
648  let mut x327: u32 = 0;
649  let mut x328: fiat_25519_scalar_u1 = 0;
650  fiat_25519_scalar_addcarryx_u32(&mut x327, &mut x328, x326, x290, x318);
651  let mut x329: u32 = 0;
652  let mut x330: fiat_25519_scalar_u1 = 0;
653  fiat_25519_scalar_addcarryx_u32(&mut x329, &mut x330, x328, x292, (0x0 as u32));
654  let mut x331: u32 = 0;
655  let mut x332: fiat_25519_scalar_u1 = 0;
656  fiat_25519_scalar_addcarryx_u32(&mut x331, &mut x332, x330, x294, (0x0 as u32));
657  let mut x333: u32 = 0;
658  let mut x334: fiat_25519_scalar_u1 = 0;
659  fiat_25519_scalar_addcarryx_u32(&mut x333, &mut x334, x332, x296, x302);
660  let mut x335: u32 = 0;
661  let mut x336: fiat_25519_scalar_u1 = 0;
662  fiat_25519_scalar_addcarryx_u32(&mut x335, &mut x336, x334, x298, x303);
663  let x337: u32 = ((x336 as u32) + (x299 as u32));
664  let mut x338: u32 = 0;
665  let mut x339: u32 = 0;
666  fiat_25519_scalar_mulx_u32(&mut x338, &mut x339, x4, (arg2[7]));
667  let mut x340: u32 = 0;
668  let mut x341: u32 = 0;
669  fiat_25519_scalar_mulx_u32(&mut x340, &mut x341, x4, (arg2[6]));
670  let mut x342: u32 = 0;
671  let mut x343: u32 = 0;
672  fiat_25519_scalar_mulx_u32(&mut x342, &mut x343, x4, (arg2[5]));
673  let mut x344: u32 = 0;
674  let mut x345: u32 = 0;
675  fiat_25519_scalar_mulx_u32(&mut x344, &mut x345, x4, (arg2[4]));
676  let mut x346: u32 = 0;
677  let mut x347: u32 = 0;
678  fiat_25519_scalar_mulx_u32(&mut x346, &mut x347, x4, (arg2[3]));
679  let mut x348: u32 = 0;
680  let mut x349: u32 = 0;
681  fiat_25519_scalar_mulx_u32(&mut x348, &mut x349, x4, (arg2[2]));
682  let mut x350: u32 = 0;
683  let mut x351: u32 = 0;
684  fiat_25519_scalar_mulx_u32(&mut x350, &mut x351, x4, (arg2[1]));
685  let mut x352: u32 = 0;
686  let mut x353: u32 = 0;
687  fiat_25519_scalar_mulx_u32(&mut x352, &mut x353, x4, (arg2[0]));
688  let mut x354: u32 = 0;
689  let mut x355: fiat_25519_scalar_u1 = 0;
690  fiat_25519_scalar_addcarryx_u32(&mut x354, &mut x355, 0x0, x353, x350);
691  let mut x356: u32 = 0;
692  let mut x357: fiat_25519_scalar_u1 = 0;
693  fiat_25519_scalar_addcarryx_u32(&mut x356, &mut x357, x355, x351, x348);
694  let mut x358: u32 = 0;
695  let mut x359: fiat_25519_scalar_u1 = 0;
696  fiat_25519_scalar_addcarryx_u32(&mut x358, &mut x359, x357, x349, x346);
697  let mut x360: u32 = 0;
698  let mut x361: fiat_25519_scalar_u1 = 0;
699  fiat_25519_scalar_addcarryx_u32(&mut x360, &mut x361, x359, x347, x344);
700  let mut x362: u32 = 0;
701  let mut x363: fiat_25519_scalar_u1 = 0;
702  fiat_25519_scalar_addcarryx_u32(&mut x362, &mut x363, x361, x345, x342);
703  let mut x364: u32 = 0;
704  let mut x365: fiat_25519_scalar_u1 = 0;
705  fiat_25519_scalar_addcarryx_u32(&mut x364, &mut x365, x363, x343, x340);
706  let mut x366: u32 = 0;
707  let mut x367: fiat_25519_scalar_u1 = 0;
708  fiat_25519_scalar_addcarryx_u32(&mut x366, &mut x367, x365, x341, x338);
709  let x368: u32 = ((x367 as u32) + x339);
710  let mut x369: u32 = 0;
711  let mut x370: fiat_25519_scalar_u1 = 0;
712  fiat_25519_scalar_addcarryx_u32(&mut x369, &mut x370, 0x0, x321, x352);
713  let mut x371: u32 = 0;
714  let mut x372: fiat_25519_scalar_u1 = 0;
715  fiat_25519_scalar_addcarryx_u32(&mut x371, &mut x372, x370, x323, x354);
716  let mut x373: u32 = 0;
717  let mut x374: fiat_25519_scalar_u1 = 0;
718  fiat_25519_scalar_addcarryx_u32(&mut x373, &mut x374, x372, x325, x356);
719  let mut x375: u32 = 0;
720  let mut x376: fiat_25519_scalar_u1 = 0;
721  fiat_25519_scalar_addcarryx_u32(&mut x375, &mut x376, x374, x327, x358);
722  let mut x377: u32 = 0;
723  let mut x378: fiat_25519_scalar_u1 = 0;
724  fiat_25519_scalar_addcarryx_u32(&mut x377, &mut x378, x376, x329, x360);
725  let mut x379: u32 = 0;
726  let mut x380: fiat_25519_scalar_u1 = 0;
727  fiat_25519_scalar_addcarryx_u32(&mut x379, &mut x380, x378, x331, x362);
728  let mut x381: u32 = 0;
729  let mut x382: fiat_25519_scalar_u1 = 0;
730  fiat_25519_scalar_addcarryx_u32(&mut x381, &mut x382, x380, x333, x364);
731  let mut x383: u32 = 0;
732  let mut x384: fiat_25519_scalar_u1 = 0;
733  fiat_25519_scalar_addcarryx_u32(&mut x383, &mut x384, x382, x335, x366);
734  let mut x385: u32 = 0;
735  let mut x386: fiat_25519_scalar_u1 = 0;
736  fiat_25519_scalar_addcarryx_u32(&mut x385, &mut x386, x384, x337, x368);
737  let mut x387: u32 = 0;
738  let mut x388: u32 = 0;
739  fiat_25519_scalar_mulx_u32(&mut x387, &mut x388, x369, 0x12547e1b);
740  let mut x389: u32 = 0;
741  let mut x390: u32 = 0;
742  fiat_25519_scalar_mulx_u32(&mut x389, &mut x390, x387, 0x10000000);
743  let mut x391: u32 = 0;
744  let mut x392: u32 = 0;
745  fiat_25519_scalar_mulx_u32(&mut x391, &mut x392, x387, 0x14def9de);
746  let mut x393: u32 = 0;
747  let mut x394: u32 = 0;
748  fiat_25519_scalar_mulx_u32(&mut x393, &mut x394, x387, 0xa2f79cd6);
749  let mut x395: u32 = 0;
750  let mut x396: u32 = 0;
751  fiat_25519_scalar_mulx_u32(&mut x395, &mut x396, x387, 0x5812631a);
752  let mut x397: u32 = 0;
753  let mut x398: u32 = 0;
754  fiat_25519_scalar_mulx_u32(&mut x397, &mut x398, x387, 0x5cf5d3ed);
755  let mut x399: u32 = 0;
756  let mut x400: fiat_25519_scalar_u1 = 0;
757  fiat_25519_scalar_addcarryx_u32(&mut x399, &mut x400, 0x0, x398, x395);
758  let mut x401: u32 = 0;
759  let mut x402: fiat_25519_scalar_u1 = 0;
760  fiat_25519_scalar_addcarryx_u32(&mut x401, &mut x402, x400, x396, x393);
761  let mut x403: u32 = 0;
762  let mut x404: fiat_25519_scalar_u1 = 0;
763  fiat_25519_scalar_addcarryx_u32(&mut x403, &mut x404, x402, x394, x391);
764  let x405: u32 = ((x404 as u32) + x392);
765  let mut x406: u32 = 0;
766  let mut x407: fiat_25519_scalar_u1 = 0;
767  fiat_25519_scalar_addcarryx_u32(&mut x406, &mut x407, 0x0, x369, x397);
768  let mut x408: u32 = 0;
769  let mut x409: fiat_25519_scalar_u1 = 0;
770  fiat_25519_scalar_addcarryx_u32(&mut x408, &mut x409, x407, x371, x399);
771  let mut x410: u32 = 0;
772  let mut x411: fiat_25519_scalar_u1 = 0;
773  fiat_25519_scalar_addcarryx_u32(&mut x410, &mut x411, x409, x373, x401);
774  let mut x412: u32 = 0;
775  let mut x413: fiat_25519_scalar_u1 = 0;
776  fiat_25519_scalar_addcarryx_u32(&mut x412, &mut x413, x411, x375, x403);
777  let mut x414: u32 = 0;
778  let mut x415: fiat_25519_scalar_u1 = 0;
779  fiat_25519_scalar_addcarryx_u32(&mut x414, &mut x415, x413, x377, x405);
780  let mut x416: u32 = 0;
781  let mut x417: fiat_25519_scalar_u1 = 0;
782  fiat_25519_scalar_addcarryx_u32(&mut x416, &mut x417, x415, x379, (0x0 as u32));
783  let mut x418: u32 = 0;
784  let mut x419: fiat_25519_scalar_u1 = 0;
785  fiat_25519_scalar_addcarryx_u32(&mut x418, &mut x419, x417, x381, (0x0 as u32));
786  let mut x420: u32 = 0;
787  let mut x421: fiat_25519_scalar_u1 = 0;
788  fiat_25519_scalar_addcarryx_u32(&mut x420, &mut x421, x419, x383, x389);
789  let mut x422: u32 = 0;
790  let mut x423: fiat_25519_scalar_u1 = 0;
791  fiat_25519_scalar_addcarryx_u32(&mut x422, &mut x423, x421, x385, x390);
792  let x424: u32 = ((x423 as u32) + (x386 as u32));
793  let mut x425: u32 = 0;
794  let mut x426: u32 = 0;
795  fiat_25519_scalar_mulx_u32(&mut x425, &mut x426, x5, (arg2[7]));
796  let mut x427: u32 = 0;
797  let mut x428: u32 = 0;
798  fiat_25519_scalar_mulx_u32(&mut x427, &mut x428, x5, (arg2[6]));
799  let mut x429: u32 = 0;
800  let mut x430: u32 = 0;
801  fiat_25519_scalar_mulx_u32(&mut x429, &mut x430, x5, (arg2[5]));
802  let mut x431: u32 = 0;
803  let mut x432: u32 = 0;
804  fiat_25519_scalar_mulx_u32(&mut x431, &mut x432, x5, (arg2[4]));
805  let mut x433: u32 = 0;
806  let mut x434: u32 = 0;
807  fiat_25519_scalar_mulx_u32(&mut x433, &mut x434, x5, (arg2[3]));
808  let mut x435: u32 = 0;
809  let mut x436: u32 = 0;
810  fiat_25519_scalar_mulx_u32(&mut x435, &mut x436, x5, (arg2[2]));
811  let mut x437: u32 = 0;
812  let mut x438: u32 = 0;
813  fiat_25519_scalar_mulx_u32(&mut x437, &mut x438, x5, (arg2[1]));
814  let mut x439: u32 = 0;
815  let mut x440: u32 = 0;
816  fiat_25519_scalar_mulx_u32(&mut x439, &mut x440, x5, (arg2[0]));
817  let mut x441: u32 = 0;
818  let mut x442: fiat_25519_scalar_u1 = 0;
819  fiat_25519_scalar_addcarryx_u32(&mut x441, &mut x442, 0x0, x440, x437);
820  let mut x443: u32 = 0;
821  let mut x444: fiat_25519_scalar_u1 = 0;
822  fiat_25519_scalar_addcarryx_u32(&mut x443, &mut x444, x442, x438, x435);
823  let mut x445: u32 = 0;
824  let mut x446: fiat_25519_scalar_u1 = 0;
825  fiat_25519_scalar_addcarryx_u32(&mut x445, &mut x446, x444, x436, x433);
826  let mut x447: u32 = 0;
827  let mut x448: fiat_25519_scalar_u1 = 0;
828  fiat_25519_scalar_addcarryx_u32(&mut x447, &mut x448, x446, x434, x431);
829  let mut x449: u32 = 0;
830  let mut x450: fiat_25519_scalar_u1 = 0;
831  fiat_25519_scalar_addcarryx_u32(&mut x449, &mut x450, x448, x432, x429);
832  let mut x451: u32 = 0;
833  let mut x452: fiat_25519_scalar_u1 = 0;
834  fiat_25519_scalar_addcarryx_u32(&mut x451, &mut x452, x450, x430, x427);
835  let mut x453: u32 = 0;
836  let mut x454: fiat_25519_scalar_u1 = 0;
837  fiat_25519_scalar_addcarryx_u32(&mut x453, &mut x454, x452, x428, x425);
838  let x455: u32 = ((x454 as u32) + x426);
839  let mut x456: u32 = 0;
840  let mut x457: fiat_25519_scalar_u1 = 0;
841  fiat_25519_scalar_addcarryx_u32(&mut x456, &mut x457, 0x0, x408, x439);
842  let mut x458: u32 = 0;
843  let mut x459: fiat_25519_scalar_u1 = 0;
844  fiat_25519_scalar_addcarryx_u32(&mut x458, &mut x459, x457, x410, x441);
845  let mut x460: u32 = 0;
846  let mut x461: fiat_25519_scalar_u1 = 0;
847  fiat_25519_scalar_addcarryx_u32(&mut x460, &mut x461, x459, x412, x443);
848  let mut x462: u32 = 0;
849  let mut x463: fiat_25519_scalar_u1 = 0;
850  fiat_25519_scalar_addcarryx_u32(&mut x462, &mut x463, x461, x414, x445);
851  let mut x464: u32 = 0;
852  let mut x465: fiat_25519_scalar_u1 = 0;
853  fiat_25519_scalar_addcarryx_u32(&mut x464, &mut x465, x463, x416, x447);
854  let mut x466: u32 = 0;
855  let mut x467: fiat_25519_scalar_u1 = 0;
856  fiat_25519_scalar_addcarryx_u32(&mut x466, &mut x467, x465, x418, x449);
857  let mut x468: u32 = 0;
858  let mut x469: fiat_25519_scalar_u1 = 0;
859  fiat_25519_scalar_addcarryx_u32(&mut x468, &mut x469, x467, x420, x451);
860  let mut x470: u32 = 0;
861  let mut x471: fiat_25519_scalar_u1 = 0;
862  fiat_25519_scalar_addcarryx_u32(&mut x470, &mut x471, x469, x422, x453);
863  let mut x472: u32 = 0;
864  let mut x473: fiat_25519_scalar_u1 = 0;
865  fiat_25519_scalar_addcarryx_u32(&mut x472, &mut x473, x471, x424, x455);
866  let mut x474: u32 = 0;
867  let mut x475: u32 = 0;
868  fiat_25519_scalar_mulx_u32(&mut x474, &mut x475, x456, 0x12547e1b);
869  let mut x476: u32 = 0;
870  let mut x477: u32 = 0;
871  fiat_25519_scalar_mulx_u32(&mut x476, &mut x477, x474, 0x10000000);
872  let mut x478: u32 = 0;
873  let mut x479: u32 = 0;
874  fiat_25519_scalar_mulx_u32(&mut x478, &mut x479, x474, 0x14def9de);
875  let mut x480: u32 = 0;
876  let mut x481: u32 = 0;
877  fiat_25519_scalar_mulx_u32(&mut x480, &mut x481, x474, 0xa2f79cd6);
878  let mut x482: u32 = 0;
879  let mut x483: u32 = 0;
880  fiat_25519_scalar_mulx_u32(&mut x482, &mut x483, x474, 0x5812631a);
881  let mut x484: u32 = 0;
882  let mut x485: u32 = 0;
883  fiat_25519_scalar_mulx_u32(&mut x484, &mut x485, x474, 0x5cf5d3ed);
884  let mut x486: u32 = 0;
885  let mut x487: fiat_25519_scalar_u1 = 0;
886  fiat_25519_scalar_addcarryx_u32(&mut x486, &mut x487, 0x0, x485, x482);
887  let mut x488: u32 = 0;
888  let mut x489: fiat_25519_scalar_u1 = 0;
889  fiat_25519_scalar_addcarryx_u32(&mut x488, &mut x489, x487, x483, x480);
890  let mut x490: u32 = 0;
891  let mut x491: fiat_25519_scalar_u1 = 0;
892  fiat_25519_scalar_addcarryx_u32(&mut x490, &mut x491, x489, x481, x478);
893  let x492: u32 = ((x491 as u32) + x479);
894  let mut x493: u32 = 0;
895  let mut x494: fiat_25519_scalar_u1 = 0;
896  fiat_25519_scalar_addcarryx_u32(&mut x493, &mut x494, 0x0, x456, x484);
897  let mut x495: u32 = 0;
898  let mut x496: fiat_25519_scalar_u1 = 0;
899  fiat_25519_scalar_addcarryx_u32(&mut x495, &mut x496, x494, x458, x486);
900  let mut x497: u32 = 0;
901  let mut x498: fiat_25519_scalar_u1 = 0;
902  fiat_25519_scalar_addcarryx_u32(&mut x497, &mut x498, x496, x460, x488);
903  let mut x499: u32 = 0;
904  let mut x500: fiat_25519_scalar_u1 = 0;
905  fiat_25519_scalar_addcarryx_u32(&mut x499, &mut x500, x498, x462, x490);
906  let mut x501: u32 = 0;
907  let mut x502: fiat_25519_scalar_u1 = 0;
908  fiat_25519_scalar_addcarryx_u32(&mut x501, &mut x502, x500, x464, x492);
909  let mut x503: u32 = 0;
910  let mut x504: fiat_25519_scalar_u1 = 0;
911  fiat_25519_scalar_addcarryx_u32(&mut x503, &mut x504, x502, x466, (0x0 as u32));
912  let mut x505: u32 = 0;
913  let mut x506: fiat_25519_scalar_u1 = 0;
914  fiat_25519_scalar_addcarryx_u32(&mut x505, &mut x506, x504, x468, (0x0 as u32));
915  let mut x507: u32 = 0;
916  let mut x508: fiat_25519_scalar_u1 = 0;
917  fiat_25519_scalar_addcarryx_u32(&mut x507, &mut x508, x506, x470, x476);
918  let mut x509: u32 = 0;
919  let mut x510: fiat_25519_scalar_u1 = 0;
920  fiat_25519_scalar_addcarryx_u32(&mut x509, &mut x510, x508, x472, x477);
921  let x511: u32 = ((x510 as u32) + (x473 as u32));
922  let mut x512: u32 = 0;
923  let mut x513: u32 = 0;
924  fiat_25519_scalar_mulx_u32(&mut x512, &mut x513, x6, (arg2[7]));
925  let mut x514: u32 = 0;
926  let mut x515: u32 = 0;
927  fiat_25519_scalar_mulx_u32(&mut x514, &mut x515, x6, (arg2[6]));
928  let mut x516: u32 = 0;
929  let mut x517: u32 = 0;
930  fiat_25519_scalar_mulx_u32(&mut x516, &mut x517, x6, (arg2[5]));
931  let mut x518: u32 = 0;
932  let mut x519: u32 = 0;
933  fiat_25519_scalar_mulx_u32(&mut x518, &mut x519, x6, (arg2[4]));
934  let mut x520: u32 = 0;
935  let mut x521: u32 = 0;
936  fiat_25519_scalar_mulx_u32(&mut x520, &mut x521, x6, (arg2[3]));
937  let mut x522: u32 = 0;
938  let mut x523: u32 = 0;
939  fiat_25519_scalar_mulx_u32(&mut x522, &mut x523, x6, (arg2[2]));
940  let mut x524: u32 = 0;
941  let mut x525: u32 = 0;
942  fiat_25519_scalar_mulx_u32(&mut x524, &mut x525, x6, (arg2[1]));
943  let mut x526: u32 = 0;
944  let mut x527: u32 = 0;
945  fiat_25519_scalar_mulx_u32(&mut x526, &mut x527, x6, (arg2[0]));
946  let mut x528: u32 = 0;
947  let mut x529: fiat_25519_scalar_u1 = 0;
948  fiat_25519_scalar_addcarryx_u32(&mut x528, &mut x529, 0x0, x527, x524);
949  let mut x530: u32 = 0;
950  let mut x531: fiat_25519_scalar_u1 = 0;
951  fiat_25519_scalar_addcarryx_u32(&mut x530, &mut x531, x529, x525, x522);
952  let mut x532: u32 = 0;
953  let mut x533: fiat_25519_scalar_u1 = 0;
954  fiat_25519_scalar_addcarryx_u32(&mut x532, &mut x533, x531, x523, x520);
955  let mut x534: u32 = 0;
956  let mut x535: fiat_25519_scalar_u1 = 0;
957  fiat_25519_scalar_addcarryx_u32(&mut x534, &mut x535, x533, x521, x518);
958  let mut x536: u32 = 0;
959  let mut x537: fiat_25519_scalar_u1 = 0;
960  fiat_25519_scalar_addcarryx_u32(&mut x536, &mut x537, x535, x519, x516);
961  let mut x538: u32 = 0;
962  let mut x539: fiat_25519_scalar_u1 = 0;
963  fiat_25519_scalar_addcarryx_u32(&mut x538, &mut x539, x537, x517, x514);
964  let mut x540: u32 = 0;
965  let mut x541: fiat_25519_scalar_u1 = 0;
966  fiat_25519_scalar_addcarryx_u32(&mut x540, &mut x541, x539, x515, x512);
967  let x542: u32 = ((x541 as u32) + x513);
968  let mut x543: u32 = 0;
969  let mut x544: fiat_25519_scalar_u1 = 0;
970  fiat_25519_scalar_addcarryx_u32(&mut x543, &mut x544, 0x0, x495, x526);
971  let mut x545: u32 = 0;
972  let mut x546: fiat_25519_scalar_u1 = 0;
973  fiat_25519_scalar_addcarryx_u32(&mut x545, &mut x546, x544, x497, x528);
974  let mut x547: u32 = 0;
975  let mut x548: fiat_25519_scalar_u1 = 0;
976  fiat_25519_scalar_addcarryx_u32(&mut x547, &mut x548, x546, x499, x530);
977  let mut x549: u32 = 0;
978  let mut x550: fiat_25519_scalar_u1 = 0;
979  fiat_25519_scalar_addcarryx_u32(&mut x549, &mut x550, x548, x501, x532);
980  let mut x551: u32 = 0;
981  let mut x552: fiat_25519_scalar_u1 = 0;
982  fiat_25519_scalar_addcarryx_u32(&mut x551, &mut x552, x550, x503, x534);
983  let mut x553: u32 = 0;
984  let mut x554: fiat_25519_scalar_u1 = 0;
985  fiat_25519_scalar_addcarryx_u32(&mut x553, &mut x554, x552, x505, x536);
986  let mut x555: u32 = 0;
987  let mut x556: fiat_25519_scalar_u1 = 0;
988  fiat_25519_scalar_addcarryx_u32(&mut x555, &mut x556, x554, x507, x538);
989  let mut x557: u32 = 0;
990  let mut x558: fiat_25519_scalar_u1 = 0;
991  fiat_25519_scalar_addcarryx_u32(&mut x557, &mut x558, x556, x509, x540);
992  let mut x559: u32 = 0;
993  let mut x560: fiat_25519_scalar_u1 = 0;
994  fiat_25519_scalar_addcarryx_u32(&mut x559, &mut x560, x558, x511, x542);
995  let mut x561: u32 = 0;
996  let mut x562: u32 = 0;
997  fiat_25519_scalar_mulx_u32(&mut x561, &mut x562, x543, 0x12547e1b);
998  let mut x563: u32 = 0;
999  let mut x564: u32 = 0;
1000  fiat_25519_scalar_mulx_u32(&mut x563, &mut x564, x561, 0x10000000);
1001  let mut x565: u32 = 0;
1002  let mut x566: u32 = 0;
1003  fiat_25519_scalar_mulx_u32(&mut x565, &mut x566, x561, 0x14def9de);
1004  let mut x567: u32 = 0;
1005  let mut x568: u32 = 0;
1006  fiat_25519_scalar_mulx_u32(&mut x567, &mut x568, x561, 0xa2f79cd6);
1007  let mut x569: u32 = 0;
1008  let mut x570: u32 = 0;
1009  fiat_25519_scalar_mulx_u32(&mut x569, &mut x570, x561, 0x5812631a);
1010  let mut x571: u32 = 0;
1011  let mut x572: u32 = 0;
1012  fiat_25519_scalar_mulx_u32(&mut x571, &mut x572, x561, 0x5cf5d3ed);
1013  let mut x573: u32 = 0;
1014  let mut x574: fiat_25519_scalar_u1 = 0;
1015  fiat_25519_scalar_addcarryx_u32(&mut x573, &mut x574, 0x0, x572, x569);
1016  let mut x575: u32 = 0;
1017  let mut x576: fiat_25519_scalar_u1 = 0;
1018  fiat_25519_scalar_addcarryx_u32(&mut x575, &mut x576, x574, x570, x567);
1019  let mut x577: u32 = 0;
1020  let mut x578: fiat_25519_scalar_u1 = 0;
1021  fiat_25519_scalar_addcarryx_u32(&mut x577, &mut x578, x576, x568, x565);
1022  let x579: u32 = ((x578 as u32) + x566);
1023  let mut x580: u32 = 0;
1024  let mut x581: fiat_25519_scalar_u1 = 0;
1025  fiat_25519_scalar_addcarryx_u32(&mut x580, &mut x581, 0x0, x543, x571);
1026  let mut x582: u32 = 0;
1027  let mut x583: fiat_25519_scalar_u1 = 0;
1028  fiat_25519_scalar_addcarryx_u32(&mut x582, &mut x583, x581, x545, x573);
1029  let mut x584: u32 = 0;
1030  let mut x585: fiat_25519_scalar_u1 = 0;
1031  fiat_25519_scalar_addcarryx_u32(&mut x584, &mut x585, x583, x547, x575);
1032  let mut x586: u32 = 0;
1033  let mut x587: fiat_25519_scalar_u1 = 0;
1034  fiat_25519_scalar_addcarryx_u32(&mut x586, &mut x587, x585, x549, x577);
1035  let mut x588: u32 = 0;
1036  let mut x589: fiat_25519_scalar_u1 = 0;
1037  fiat_25519_scalar_addcarryx_u32(&mut x588, &mut x589, x587, x551, x579);
1038  let mut x590: u32 = 0;
1039  let mut x591: fiat_25519_scalar_u1 = 0;
1040  fiat_25519_scalar_addcarryx_u32(&mut x590, &mut x591, x589, x553, (0x0 as u32));
1041  let mut x592: u32 = 0;
1042  let mut x593: fiat_25519_scalar_u1 = 0;
1043  fiat_25519_scalar_addcarryx_u32(&mut x592, &mut x593, x591, x555, (0x0 as u32));
1044  let mut x594: u32 = 0;
1045  let mut x595: fiat_25519_scalar_u1 = 0;
1046  fiat_25519_scalar_addcarryx_u32(&mut x594, &mut x595, x593, x557, x563);
1047  let mut x596: u32 = 0;
1048  let mut x597: fiat_25519_scalar_u1 = 0;
1049  fiat_25519_scalar_addcarryx_u32(&mut x596, &mut x597, x595, x559, x564);
1050  let x598: u32 = ((x597 as u32) + (x560 as u32));
1051  let mut x599: u32 = 0;
1052  let mut x600: u32 = 0;
1053  fiat_25519_scalar_mulx_u32(&mut x599, &mut x600, x7, (arg2[7]));
1054  let mut x601: u32 = 0;
1055  let mut x602: u32 = 0;
1056  fiat_25519_scalar_mulx_u32(&mut x601, &mut x602, x7, (arg2[6]));
1057  let mut x603: u32 = 0;
1058  let mut x604: u32 = 0;
1059  fiat_25519_scalar_mulx_u32(&mut x603, &mut x604, x7, (arg2[5]));
1060  let mut x605: u32 = 0;
1061  let mut x606: u32 = 0;
1062  fiat_25519_scalar_mulx_u32(&mut x605, &mut x606, x7, (arg2[4]));
1063  let mut x607: u32 = 0;
1064  let mut x608: u32 = 0;
1065  fiat_25519_scalar_mulx_u32(&mut x607, &mut x608, x7, (arg2[3]));
1066  let mut x609: u32 = 0;
1067  let mut x610: u32 = 0;
1068  fiat_25519_scalar_mulx_u32(&mut x609, &mut x610, x7, (arg2[2]));
1069  let mut x611: u32 = 0;
1070  let mut x612: u32 = 0;
1071  fiat_25519_scalar_mulx_u32(&mut x611, &mut x612, x7, (arg2[1]));
1072  let mut x613: u32 = 0;
1073  let mut x614: u32 = 0;
1074  fiat_25519_scalar_mulx_u32(&mut x613, &mut x614, x7, (arg2[0]));
1075  let mut x615: u32 = 0;
1076  let mut x616: fiat_25519_scalar_u1 = 0;
1077  fiat_25519_scalar_addcarryx_u32(&mut x615, &mut x616, 0x0, x614, x611);
1078  let mut x617: u32 = 0;
1079  let mut x618: fiat_25519_scalar_u1 = 0;
1080  fiat_25519_scalar_addcarryx_u32(&mut x617, &mut x618, x616, x612, x609);
1081  let mut x619: u32 = 0;
1082  let mut x620: fiat_25519_scalar_u1 = 0;
1083  fiat_25519_scalar_addcarryx_u32(&mut x619, &mut x620, x618, x610, x607);
1084  let mut x621: u32 = 0;
1085  let mut x622: fiat_25519_scalar_u1 = 0;
1086  fiat_25519_scalar_addcarryx_u32(&mut x621, &mut x622, x620, x608, x605);
1087  let mut x623: u32 = 0;
1088  let mut x624: fiat_25519_scalar_u1 = 0;
1089  fiat_25519_scalar_addcarryx_u32(&mut x623, &mut x624, x622, x606, x603);
1090  let mut x625: u32 = 0;
1091  let mut x626: fiat_25519_scalar_u1 = 0;
1092  fiat_25519_scalar_addcarryx_u32(&mut x625, &mut x626, x624, x604, x601);
1093  let mut x627: u32 = 0;
1094  let mut x628: fiat_25519_scalar_u1 = 0;
1095  fiat_25519_scalar_addcarryx_u32(&mut x627, &mut x628, x626, x602, x599);
1096  let x629: u32 = ((x628 as u32) + x600);
1097  let mut x630: u32 = 0;
1098  let mut x631: fiat_25519_scalar_u1 = 0;
1099  fiat_25519_scalar_addcarryx_u32(&mut x630, &mut x631, 0x0, x582, x613);
1100  let mut x632: u32 = 0;
1101  let mut x633: fiat_25519_scalar_u1 = 0;
1102  fiat_25519_scalar_addcarryx_u32(&mut x632, &mut x633, x631, x584, x615);
1103  let mut x634: u32 = 0;
1104  let mut x635: fiat_25519_scalar_u1 = 0;
1105  fiat_25519_scalar_addcarryx_u32(&mut x634, &mut x635, x633, x586, x617);
1106  let mut x636: u32 = 0;
1107  let mut x637: fiat_25519_scalar_u1 = 0;
1108  fiat_25519_scalar_addcarryx_u32(&mut x636, &mut x637, x635, x588, x619);
1109  let mut x638: u32 = 0;
1110  let mut x639: fiat_25519_scalar_u1 = 0;
1111  fiat_25519_scalar_addcarryx_u32(&mut x638, &mut x639, x637, x590, x621);
1112  let mut x640: u32 = 0;
1113  let mut x641: fiat_25519_scalar_u1 = 0;
1114  fiat_25519_scalar_addcarryx_u32(&mut x640, &mut x641, x639, x592, x623);
1115  let mut x642: u32 = 0;
1116  let mut x643: fiat_25519_scalar_u1 = 0;
1117  fiat_25519_scalar_addcarryx_u32(&mut x642, &mut x643, x641, x594, x625);
1118  let mut x644: u32 = 0;
1119  let mut x645: fiat_25519_scalar_u1 = 0;
1120  fiat_25519_scalar_addcarryx_u32(&mut x644, &mut x645, x643, x596, x627);
1121  let mut x646: u32 = 0;
1122  let mut x647: fiat_25519_scalar_u1 = 0;
1123  fiat_25519_scalar_addcarryx_u32(&mut x646, &mut x647, x645, x598, x629);
1124  let mut x648: u32 = 0;
1125  let mut x649: u32 = 0;
1126  fiat_25519_scalar_mulx_u32(&mut x648, &mut x649, x630, 0x12547e1b);
1127  let mut x650: u32 = 0;
1128  let mut x651: u32 = 0;
1129  fiat_25519_scalar_mulx_u32(&mut x650, &mut x651, x648, 0x10000000);
1130  let mut x652: u32 = 0;
1131  let mut x653: u32 = 0;
1132  fiat_25519_scalar_mulx_u32(&mut x652, &mut x653, x648, 0x14def9de);
1133  let mut x654: u32 = 0;
1134  let mut x655: u32 = 0;
1135  fiat_25519_scalar_mulx_u32(&mut x654, &mut x655, x648, 0xa2f79cd6);
1136  let mut x656: u32 = 0;
1137  let mut x657: u32 = 0;
1138  fiat_25519_scalar_mulx_u32(&mut x656, &mut x657, x648, 0x5812631a);
1139  let mut x658: u32 = 0;
1140  let mut x659: u32 = 0;
1141  fiat_25519_scalar_mulx_u32(&mut x658, &mut x659, x648, 0x5cf5d3ed);
1142  let mut x660: u32 = 0;
1143  let mut x661: fiat_25519_scalar_u1 = 0;
1144  fiat_25519_scalar_addcarryx_u32(&mut x660, &mut x661, 0x0, x659, x656);
1145  let mut x662: u32 = 0;
1146  let mut x663: fiat_25519_scalar_u1 = 0;
1147  fiat_25519_scalar_addcarryx_u32(&mut x662, &mut x663, x661, x657, x654);
1148  let mut x664: u32 = 0;
1149  let mut x665: fiat_25519_scalar_u1 = 0;
1150  fiat_25519_scalar_addcarryx_u32(&mut x664, &mut x665, x663, x655, x652);
1151  let x666: u32 = ((x665 as u32) + x653);
1152  let mut x667: u32 = 0;
1153  let mut x668: fiat_25519_scalar_u1 = 0;
1154  fiat_25519_scalar_addcarryx_u32(&mut x667, &mut x668, 0x0, x630, x658);
1155  let mut x669: u32 = 0;
1156  let mut x670: fiat_25519_scalar_u1 = 0;
1157  fiat_25519_scalar_addcarryx_u32(&mut x669, &mut x670, x668, x632, x660);
1158  let mut x671: u32 = 0;
1159  let mut x672: fiat_25519_scalar_u1 = 0;
1160  fiat_25519_scalar_addcarryx_u32(&mut x671, &mut x672, x670, x634, x662);
1161  let mut x673: u32 = 0;
1162  let mut x674: fiat_25519_scalar_u1 = 0;
1163  fiat_25519_scalar_addcarryx_u32(&mut x673, &mut x674, x672, x636, x664);
1164  let mut x675: u32 = 0;
1165  let mut x676: fiat_25519_scalar_u1 = 0;
1166  fiat_25519_scalar_addcarryx_u32(&mut x675, &mut x676, x674, x638, x666);
1167  let mut x677: u32 = 0;
1168  let mut x678: fiat_25519_scalar_u1 = 0;
1169  fiat_25519_scalar_addcarryx_u32(&mut x677, &mut x678, x676, x640, (0x0 as u32));
1170  let mut x679: u32 = 0;
1171  let mut x680: fiat_25519_scalar_u1 = 0;
1172  fiat_25519_scalar_addcarryx_u32(&mut x679, &mut x680, x678, x642, (0x0 as u32));
1173  let mut x681: u32 = 0;
1174  let mut x682: fiat_25519_scalar_u1 = 0;
1175  fiat_25519_scalar_addcarryx_u32(&mut x681, &mut x682, x680, x644, x650);
1176  let mut x683: u32 = 0;
1177  let mut x684: fiat_25519_scalar_u1 = 0;
1178  fiat_25519_scalar_addcarryx_u32(&mut x683, &mut x684, x682, x646, x651);
1179  let x685: u32 = ((x684 as u32) + (x647 as u32));
1180  let mut x686: u32 = 0;
1181  let mut x687: fiat_25519_scalar_u1 = 0;
1182  fiat_25519_scalar_subborrowx_u32(&mut x686, &mut x687, 0x0, x669, 0x5cf5d3ed);
1183  let mut x688: u32 = 0;
1184  let mut x689: fiat_25519_scalar_u1 = 0;
1185  fiat_25519_scalar_subborrowx_u32(&mut x688, &mut x689, x687, x671, 0x5812631a);
1186  let mut x690: u32 = 0;
1187  let mut x691: fiat_25519_scalar_u1 = 0;
1188  fiat_25519_scalar_subborrowx_u32(&mut x690, &mut x691, x689, x673, 0xa2f79cd6);
1189  let mut x692: u32 = 0;
1190  let mut x693: fiat_25519_scalar_u1 = 0;
1191  fiat_25519_scalar_subborrowx_u32(&mut x692, &mut x693, x691, x675, 0x14def9de);
1192  let mut x694: u32 = 0;
1193  let mut x695: fiat_25519_scalar_u1 = 0;
1194  fiat_25519_scalar_subborrowx_u32(&mut x694, &mut x695, x693, x677, (0x0 as u32));
1195  let mut x696: u32 = 0;
1196  let mut x697: fiat_25519_scalar_u1 = 0;
1197  fiat_25519_scalar_subborrowx_u32(&mut x696, &mut x697, x695, x679, (0x0 as u32));
1198  let mut x698: u32 = 0;
1199  let mut x699: fiat_25519_scalar_u1 = 0;
1200  fiat_25519_scalar_subborrowx_u32(&mut x698, &mut x699, x697, x681, (0x0 as u32));
1201  let mut x700: u32 = 0;
1202  let mut x701: fiat_25519_scalar_u1 = 0;
1203  fiat_25519_scalar_subborrowx_u32(&mut x700, &mut x701, x699, x683, 0x10000000);
1204  let mut x702: u32 = 0;
1205  let mut x703: fiat_25519_scalar_u1 = 0;
1206  fiat_25519_scalar_subborrowx_u32(&mut x702, &mut x703, x701, x685, (0x0 as u32));
1207  let mut x704: u32 = 0;
1208  fiat_25519_scalar_cmovznz_u32(&mut x704, x703, x686, x669);
1209  let mut x705: u32 = 0;
1210  fiat_25519_scalar_cmovznz_u32(&mut x705, x703, x688, x671);
1211  let mut x706: u32 = 0;
1212  fiat_25519_scalar_cmovznz_u32(&mut x706, x703, x690, x673);
1213  let mut x707: u32 = 0;
1214  fiat_25519_scalar_cmovznz_u32(&mut x707, x703, x692, x675);
1215  let mut x708: u32 = 0;
1216  fiat_25519_scalar_cmovznz_u32(&mut x708, x703, x694, x677);
1217  let mut x709: u32 = 0;
1218  fiat_25519_scalar_cmovznz_u32(&mut x709, x703, x696, x679);
1219  let mut x710: u32 = 0;
1220  fiat_25519_scalar_cmovznz_u32(&mut x710, x703, x698, x681);
1221  let mut x711: u32 = 0;
1222  fiat_25519_scalar_cmovznz_u32(&mut x711, x703, x700, x683);
1223  out1[0] = x704;
1224  out1[1] = x705;
1225  out1[2] = x706;
1226  out1[3] = x707;
1227  out1[4] = x708;
1228  out1[5] = x709;
1229  out1[6] = x710;
1230  out1[7] = x711;
1231}
1232
1233/// The function fiat_25519_scalar_square squares a field element in the Montgomery domain.
1234///
1235/// Preconditions:
1236///   0 ≤ eval arg1 < m
1237/// Postconditions:
1238///   eval (from_montgomery out1) mod m = (eval (from_montgomery arg1) * eval (from_montgomery arg1)) mod m
1239///   0 ≤ eval out1 < m
1240///
1241#[inline]
1242pub fn fiat_25519_scalar_square(out1: &mut fiat_25519_scalar_montgomery_domain_field_element, arg1: &fiat_25519_scalar_montgomery_domain_field_element) {
1243  let x1: u32 = (arg1[1]);
1244  let x2: u32 = (arg1[2]);
1245  let x3: u32 = (arg1[3]);
1246  let x4: u32 = (arg1[4]);
1247  let x5: u32 = (arg1[5]);
1248  let x6: u32 = (arg1[6]);
1249  let x7: u32 = (arg1[7]);
1250  let x8: u32 = (arg1[0]);
1251  let mut x9: u32 = 0;
1252  let mut x10: u32 = 0;
1253  fiat_25519_scalar_mulx_u32(&mut x9, &mut x10, x8, (arg1[7]));
1254  let mut x11: u32 = 0;
1255  let mut x12: u32 = 0;
1256  fiat_25519_scalar_mulx_u32(&mut x11, &mut x12, x8, (arg1[6]));
1257  let mut x13: u32 = 0;
1258  let mut x14: u32 = 0;
1259  fiat_25519_scalar_mulx_u32(&mut x13, &mut x14, x8, (arg1[5]));
1260  let mut x15: u32 = 0;
1261  let mut x16: u32 = 0;
1262  fiat_25519_scalar_mulx_u32(&mut x15, &mut x16, x8, (arg1[4]));
1263  let mut x17: u32 = 0;
1264  let mut x18: u32 = 0;
1265  fiat_25519_scalar_mulx_u32(&mut x17, &mut x18, x8, (arg1[3]));
1266  let mut x19: u32 = 0;
1267  let mut x20: u32 = 0;
1268  fiat_25519_scalar_mulx_u32(&mut x19, &mut x20, x8, (arg1[2]));
1269  let mut x21: u32 = 0;
1270  let mut x22: u32 = 0;
1271  fiat_25519_scalar_mulx_u32(&mut x21, &mut x22, x8, (arg1[1]));
1272  let mut x23: u32 = 0;
1273  let mut x24: u32 = 0;
1274  fiat_25519_scalar_mulx_u32(&mut x23, &mut x24, x8, (arg1[0]));
1275  let mut x25: u32 = 0;
1276  let mut x26: fiat_25519_scalar_u1 = 0;
1277  fiat_25519_scalar_addcarryx_u32(&mut x25, &mut x26, 0x0, x24, x21);
1278  let mut x27: u32 = 0;
1279  let mut x28: fiat_25519_scalar_u1 = 0;
1280  fiat_25519_scalar_addcarryx_u32(&mut x27, &mut x28, x26, x22, x19);
1281  let mut x29: u32 = 0;
1282  let mut x30: fiat_25519_scalar_u1 = 0;
1283  fiat_25519_scalar_addcarryx_u32(&mut x29, &mut x30, x28, x20, x17);
1284  let mut x31: u32 = 0;
1285  let mut x32: fiat_25519_scalar_u1 = 0;
1286  fiat_25519_scalar_addcarryx_u32(&mut x31, &mut x32, x30, x18, x15);
1287  let mut x33: u32 = 0;
1288  let mut x34: fiat_25519_scalar_u1 = 0;
1289  fiat_25519_scalar_addcarryx_u32(&mut x33, &mut x34, x32, x16, x13);
1290  let mut x35: u32 = 0;
1291  let mut x36: fiat_25519_scalar_u1 = 0;
1292  fiat_25519_scalar_addcarryx_u32(&mut x35, &mut x36, x34, x14, x11);
1293  let mut x37: u32 = 0;
1294  let mut x38: fiat_25519_scalar_u1 = 0;
1295  fiat_25519_scalar_addcarryx_u32(&mut x37, &mut x38, x36, x12, x9);
1296  let x39: u32 = ((x38 as u32) + x10);
1297  let mut x40: u32 = 0;
1298  let mut x41: u32 = 0;
1299  fiat_25519_scalar_mulx_u32(&mut x40, &mut x41, x23, 0x12547e1b);
1300  let mut x42: u32 = 0;
1301  let mut x43: u32 = 0;
1302  fiat_25519_scalar_mulx_u32(&mut x42, &mut x43, x40, 0x10000000);
1303  let mut x44: u32 = 0;
1304  let mut x45: u32 = 0;
1305  fiat_25519_scalar_mulx_u32(&mut x44, &mut x45, x40, 0x14def9de);
1306  let mut x46: u32 = 0;
1307  let mut x47: u32 = 0;
1308  fiat_25519_scalar_mulx_u32(&mut x46, &mut x47, x40, 0xa2f79cd6);
1309  let mut x48: u32 = 0;
1310  let mut x49: u32 = 0;
1311  fiat_25519_scalar_mulx_u32(&mut x48, &mut x49, x40, 0x5812631a);
1312  let mut x50: u32 = 0;
1313  let mut x51: u32 = 0;
1314  fiat_25519_scalar_mulx_u32(&mut x50, &mut x51, x40, 0x5cf5d3ed);
1315  let mut x52: u32 = 0;
1316  let mut x53: fiat_25519_scalar_u1 = 0;
1317  fiat_25519_scalar_addcarryx_u32(&mut x52, &mut x53, 0x0, x51, x48);
1318  let mut x54: u32 = 0;
1319  let mut x55: fiat_25519_scalar_u1 = 0;
1320  fiat_25519_scalar_addcarryx_u32(&mut x54, &mut x55, x53, x49, x46);
1321  let mut x56: u32 = 0;
1322  let mut x57: fiat_25519_scalar_u1 = 0;
1323  fiat_25519_scalar_addcarryx_u32(&mut x56, &mut x57, x55, x47, x44);
1324  let x58: u32 = ((x57 as u32) + x45);
1325  let mut x59: u32 = 0;
1326  let mut x60: fiat_25519_scalar_u1 = 0;
1327  fiat_25519_scalar_addcarryx_u32(&mut x59, &mut x60, 0x0, x23, x50);
1328  let mut x61: u32 = 0;
1329  let mut x62: fiat_25519_scalar_u1 = 0;
1330  fiat_25519_scalar_addcarryx_u32(&mut x61, &mut x62, x60, x25, x52);
1331  let mut x63: u32 = 0;
1332  let mut x64: fiat_25519_scalar_u1 = 0;
1333  fiat_25519_scalar_addcarryx_u32(&mut x63, &mut x64, x62, x27, x54);
1334  let mut x65: u32 = 0;
1335  let mut x66: fiat_25519_scalar_u1 = 0;
1336  fiat_25519_scalar_addcarryx_u32(&mut x65, &mut x66, x64, x29, x56);
1337  let mut x67: u32 = 0;
1338  let mut x68: fiat_25519_scalar_u1 = 0;
1339  fiat_25519_scalar_addcarryx_u32(&mut x67, &mut x68, x66, x31, x58);
1340  let mut x69: u32 = 0;
1341  let mut x70: fiat_25519_scalar_u1 = 0;
1342  fiat_25519_scalar_addcarryx_u32(&mut x69, &mut x70, x68, x33, (0x0 as u32));
1343  let mut x71: u32 = 0;
1344  let mut x72: fiat_25519_scalar_u1 = 0;
1345  fiat_25519_scalar_addcarryx_u32(&mut x71, &mut x72, x70, x35, (0x0 as u32));
1346  let mut x73: u32 = 0;
1347  let mut x74: fiat_25519_scalar_u1 = 0;
1348  fiat_25519_scalar_addcarryx_u32(&mut x73, &mut x74, x72, x37, x42);
1349  let mut x75: u32 = 0;
1350  let mut x76: fiat_25519_scalar_u1 = 0;
1351  fiat_25519_scalar_addcarryx_u32(&mut x75, &mut x76, x74, x39, x43);
1352  let mut x77: u32 = 0;
1353  let mut x78: u32 = 0;
1354  fiat_25519_scalar_mulx_u32(&mut x77, &mut x78, x1, (arg1[7]));
1355  let mut x79: u32 = 0;
1356  let mut x80: u32 = 0;
1357  fiat_25519_scalar_mulx_u32(&mut x79, &mut x80, x1, (arg1[6]));
1358  let mut x81: u32 = 0;
1359  let mut x82: u32 = 0;
1360  fiat_25519_scalar_mulx_u32(&mut x81, &mut x82, x1, (arg1[5]));
1361  let mut x83: u32 = 0;
1362  let mut x84: u32 = 0;
1363  fiat_25519_scalar_mulx_u32(&mut x83, &mut x84, x1, (arg1[4]));
1364  let mut x85: u32 = 0;
1365  let mut x86: u32 = 0;
1366  fiat_25519_scalar_mulx_u32(&mut x85, &mut x86, x1, (arg1[3]));
1367  let mut x87: u32 = 0;
1368  let mut x88: u32 = 0;
1369  fiat_25519_scalar_mulx_u32(&mut x87, &mut x88, x1, (arg1[2]));
1370  let mut x89: u32 = 0;
1371  let mut x90: u32 = 0;
1372  fiat_25519_scalar_mulx_u32(&mut x89, &mut x90, x1, (arg1[1]));
1373  let mut x91: u32 = 0;
1374  let mut x92: u32 = 0;
1375  fiat_25519_scalar_mulx_u32(&mut x91, &mut x92, x1, (arg1[0]));
1376  let mut x93: u32 = 0;
1377  let mut x94: fiat_25519_scalar_u1 = 0;
1378  fiat_25519_scalar_addcarryx_u32(&mut x93, &mut x94, 0x0, x92, x89);
1379  let mut x95: u32 = 0;
1380  let mut x96: fiat_25519_scalar_u1 = 0;
1381  fiat_25519_scalar_addcarryx_u32(&mut x95, &mut x96, x94, x90, x87);
1382  let mut x97: u32 = 0;
1383  let mut x98: fiat_25519_scalar_u1 = 0;
1384  fiat_25519_scalar_addcarryx_u32(&mut x97, &mut x98, x96, x88, x85);
1385  let mut x99: u32 = 0;
1386  let mut x100: fiat_25519_scalar_u1 = 0;
1387  fiat_25519_scalar_addcarryx_u32(&mut x99, &mut x100, x98, x86, x83);
1388  let mut x101: u32 = 0;
1389  let mut x102: fiat_25519_scalar_u1 = 0;
1390  fiat_25519_scalar_addcarryx_u32(&mut x101, &mut x102, x100, x84, x81);
1391  let mut x103: u32 = 0;
1392  let mut x104: fiat_25519_scalar_u1 = 0;
1393  fiat_25519_scalar_addcarryx_u32(&mut x103, &mut x104, x102, x82, x79);
1394  let mut x105: u32 = 0;
1395  let mut x106: fiat_25519_scalar_u1 = 0;
1396  fiat_25519_scalar_addcarryx_u32(&mut x105, &mut x106, x104, x80, x77);
1397  let x107: u32 = ((x106 as u32) + x78);
1398  let mut x108: u32 = 0;
1399  let mut x109: fiat_25519_scalar_u1 = 0;
1400  fiat_25519_scalar_addcarryx_u32(&mut x108, &mut x109, 0x0, x61, x91);
1401  let mut x110: u32 = 0;
1402  let mut x111: fiat_25519_scalar_u1 = 0;
1403  fiat_25519_scalar_addcarryx_u32(&mut x110, &mut x111, x109, x63, x93);
1404  let mut x112: u32 = 0;
1405  let mut x113: fiat_25519_scalar_u1 = 0;
1406  fiat_25519_scalar_addcarryx_u32(&mut x112, &mut x113, x111, x65, x95);
1407  let mut x114: u32 = 0;
1408  let mut x115: fiat_25519_scalar_u1 = 0;
1409  fiat_25519_scalar_addcarryx_u32(&mut x114, &mut x115, x113, x67, x97);
1410  let mut x116: u32 = 0;
1411  let mut x117: fiat_25519_scalar_u1 = 0;
1412  fiat_25519_scalar_addcarryx_u32(&mut x116, &mut x117, x115, x69, x99);
1413  let mut x118: u32 = 0;
1414  let mut x119: fiat_25519_scalar_u1 = 0;
1415  fiat_25519_scalar_addcarryx_u32(&mut x118, &mut x119, x117, x71, x101);
1416  let mut x120: u32 = 0;
1417  let mut x121: fiat_25519_scalar_u1 = 0;
1418  fiat_25519_scalar_addcarryx_u32(&mut x120, &mut x121, x119, x73, x103);
1419  let mut x122: u32 = 0;
1420  let mut x123: fiat_25519_scalar_u1 = 0;
1421  fiat_25519_scalar_addcarryx_u32(&mut x122, &mut x123, x121, x75, x105);
1422  let mut x124: u32 = 0;
1423  let mut x125: fiat_25519_scalar_u1 = 0;
1424  fiat_25519_scalar_addcarryx_u32(&mut x124, &mut x125, x123, (x76 as u32), x107);
1425  let mut x126: u32 = 0;
1426  let mut x127: u32 = 0;
1427  fiat_25519_scalar_mulx_u32(&mut x126, &mut x127, x108, 0x12547e1b);
1428  let mut x128: u32 = 0;
1429  let mut x129: u32 = 0;
1430  fiat_25519_scalar_mulx_u32(&mut x128, &mut x129, x126, 0x10000000);
1431  let mut x130: u32 = 0;
1432  let mut x131: u32 = 0;
1433  fiat_25519_scalar_mulx_u32(&mut x130, &mut x131, x126, 0x14def9de);
1434  let mut x132: u32 = 0;
1435  let mut x133: u32 = 0;
1436  fiat_25519_scalar_mulx_u32(&mut x132, &mut x133, x126, 0xa2f79cd6);
1437  let mut x134: u32 = 0;
1438  let mut x135: u32 = 0;
1439  fiat_25519_scalar_mulx_u32(&mut x134, &mut x135, x126, 0x5812631a);
1440  let mut x136: u32 = 0;
1441  let mut x137: u32 = 0;
1442  fiat_25519_scalar_mulx_u32(&mut x136, &mut x137, x126, 0x5cf5d3ed);
1443  let mut x138: u32 = 0;
1444  let mut x139: fiat_25519_scalar_u1 = 0;
1445  fiat_25519_scalar_addcarryx_u32(&mut x138, &mut x139, 0x0, x137, x134);
1446  let mut x140: u32 = 0;
1447  let mut x141: fiat_25519_scalar_u1 = 0;
1448  fiat_25519_scalar_addcarryx_u32(&mut x140, &mut x141, x139, x135, x132);
1449  let mut x142: u32 = 0;
1450  let mut x143: fiat_25519_scalar_u1 = 0;
1451  fiat_25519_scalar_addcarryx_u32(&mut x142, &mut x143, x141, x133, x130);
1452  let x144: u32 = ((x143 as u32) + x131);
1453  let mut x145: u32 = 0;
1454  let mut x146: fiat_25519_scalar_u1 = 0;
1455  fiat_25519_scalar_addcarryx_u32(&mut x145, &mut x146, 0x0, x108, x136);
1456  let mut x147: u32 = 0;
1457  let mut x148: fiat_25519_scalar_u1 = 0;
1458  fiat_25519_scalar_addcarryx_u32(&mut x147, &mut x148, x146, x110, x138);
1459  let mut x149: u32 = 0;
1460  let mut x150: fiat_25519_scalar_u1 = 0;
1461  fiat_25519_scalar_addcarryx_u32(&mut x149, &mut x150, x148, x112, x140);
1462  let mut x151: u32 = 0;
1463  let mut x152: fiat_25519_scalar_u1 = 0;
1464  fiat_25519_scalar_addcarryx_u32(&mut x151, &mut x152, x150, x114, x142);
1465  let mut x153: u32 = 0;
1466  let mut x154: fiat_25519_scalar_u1 = 0;
1467  fiat_25519_scalar_addcarryx_u32(&mut x153, &mut x154, x152, x116, x144);
1468  let mut x155: u32 = 0;
1469  let mut x156: fiat_25519_scalar_u1 = 0;
1470  fiat_25519_scalar_addcarryx_u32(&mut x155, &mut x156, x154, x118, (0x0 as u32));
1471  let mut x157: u32 = 0;
1472  let mut x158: fiat_25519_scalar_u1 = 0;
1473  fiat_25519_scalar_addcarryx_u32(&mut x157, &mut x158, x156, x120, (0x0 as u32));
1474  let mut x159: u32 = 0;
1475  let mut x160: fiat_25519_scalar_u1 = 0;
1476  fiat_25519_scalar_addcarryx_u32(&mut x159, &mut x160, x158, x122, x128);
1477  let mut x161: u32 = 0;
1478  let mut x162: fiat_25519_scalar_u1 = 0;
1479  fiat_25519_scalar_addcarryx_u32(&mut x161, &mut x162, x160, x124, x129);
1480  let x163: u32 = ((x162 as u32) + (x125 as u32));
1481  let mut x164: u32 = 0;
1482  let mut x165: u32 = 0;
1483  fiat_25519_scalar_mulx_u32(&mut x164, &mut x165, x2, (arg1[7]));
1484  let mut x166: u32 = 0;
1485  let mut x167: u32 = 0;
1486  fiat_25519_scalar_mulx_u32(&mut x166, &mut x167, x2, (arg1[6]));
1487  let mut x168: u32 = 0;
1488  let mut x169: u32 = 0;
1489  fiat_25519_scalar_mulx_u32(&mut x168, &mut x169, x2, (arg1[5]));
1490  let mut x170: u32 = 0;
1491  let mut x171: u32 = 0;
1492  fiat_25519_scalar_mulx_u32(&mut x170, &mut x171, x2, (arg1[4]));
1493  let mut x172: u32 = 0;
1494  let mut x173: u32 = 0;
1495  fiat_25519_scalar_mulx_u32(&mut x172, &mut x173, x2, (arg1[3]));
1496  let mut x174: u32 = 0;
1497  let mut x175: u32 = 0;
1498  fiat_25519_scalar_mulx_u32(&mut x174, &mut x175, x2, (arg1[2]));
1499  let mut x176: u32 = 0;
1500  let mut x177: u32 = 0;
1501  fiat_25519_scalar_mulx_u32(&mut x176, &mut x177, x2, (arg1[1]));
1502  let mut x178: u32 = 0;
1503  let mut x179: u32 = 0;
1504  fiat_25519_scalar_mulx_u32(&mut x178, &mut x179, x2, (arg1[0]));
1505  let mut x180: u32 = 0;
1506  let mut x181: fiat_25519_scalar_u1 = 0;
1507  fiat_25519_scalar_addcarryx_u32(&mut x180, &mut x181, 0x0, x179, x176);
1508  let mut x182: u32 = 0;
1509  let mut x183: fiat_25519_scalar_u1 = 0;
1510  fiat_25519_scalar_addcarryx_u32(&mut x182, &mut x183, x181, x177, x174);
1511  let mut x184: u32 = 0;
1512  let mut x185: fiat_25519_scalar_u1 = 0;
1513  fiat_25519_scalar_addcarryx_u32(&mut x184, &mut x185, x183, x175, x172);
1514  let mut x186: u32 = 0;
1515  let mut x187: fiat_25519_scalar_u1 = 0;
1516  fiat_25519_scalar_addcarryx_u32(&mut x186, &mut x187, x185, x173, x170);
1517  let mut x188: u32 = 0;
1518  let mut x189: fiat_25519_scalar_u1 = 0;
1519  fiat_25519_scalar_addcarryx_u32(&mut x188, &mut x189, x187, x171, x168);
1520  let mut x190: u32 = 0;
1521  let mut x191: fiat_25519_scalar_u1 = 0;
1522  fiat_25519_scalar_addcarryx_u32(&mut x190, &mut x191, x189, x169, x166);
1523  let mut x192: u32 = 0;
1524  let mut x193: fiat_25519_scalar_u1 = 0;
1525  fiat_25519_scalar_addcarryx_u32(&mut x192, &mut x193, x191, x167, x164);
1526  let x194: u32 = ((x193 as u32) + x165);
1527  let mut x195: u32 = 0;
1528  let mut x196: fiat_25519_scalar_u1 = 0;
1529  fiat_25519_scalar_addcarryx_u32(&mut x195, &mut x196, 0x0, x147, x178);
1530  let mut x197: u32 = 0;
1531  let mut x198: fiat_25519_scalar_u1 = 0;
1532  fiat_25519_scalar_addcarryx_u32(&mut x197, &mut x198, x196, x149, x180);
1533  let mut x199: u32 = 0;
1534  let mut x200: fiat_25519_scalar_u1 = 0;
1535  fiat_25519_scalar_addcarryx_u32(&mut x199, &mut x200, x198, x151, x182);
1536  let mut x201: u32 = 0;
1537  let mut x202: fiat_25519_scalar_u1 = 0;
1538  fiat_25519_scalar_addcarryx_u32(&mut x201, &mut x202, x200, x153, x184);
1539  let mut x203: u32 = 0;
1540  let mut x204: fiat_25519_scalar_u1 = 0;
1541  fiat_25519_scalar_addcarryx_u32(&mut x203, &mut x204, x202, x155, x186);
1542  let mut x205: u32 = 0;
1543  let mut x206: fiat_25519_scalar_u1 = 0;
1544  fiat_25519_scalar_addcarryx_u32(&mut x205, &mut x206, x204, x157, x188);
1545  let mut x207: u32 = 0;
1546  let mut x208: fiat_25519_scalar_u1 = 0;
1547  fiat_25519_scalar_addcarryx_u32(&mut x207, &mut x208, x206, x159, x190);
1548  let mut x209: u32 = 0;
1549  let mut x210: fiat_25519_scalar_u1 = 0;
1550  fiat_25519_scalar_addcarryx_u32(&mut x209, &mut x210, x208, x161, x192);
1551  let mut x211: u32 = 0;
1552  let mut x212: fiat_25519_scalar_u1 = 0;
1553  fiat_25519_scalar_addcarryx_u32(&mut x211, &mut x212, x210, x163, x194);
1554  let mut x213: u32 = 0;
1555  let mut x214: u32 = 0;
1556  fiat_25519_scalar_mulx_u32(&mut x213, &mut x214, x195, 0x12547e1b);
1557  let mut x215: u32 = 0;
1558  let mut x216: u32 = 0;
1559  fiat_25519_scalar_mulx_u32(&mut x215, &mut x216, x213, 0x10000000);
1560  let mut x217: u32 = 0;
1561  let mut x218: u32 = 0;
1562  fiat_25519_scalar_mulx_u32(&mut x217, &mut x218, x213, 0x14def9de);
1563  let mut x219: u32 = 0;
1564  let mut x220: u32 = 0;
1565  fiat_25519_scalar_mulx_u32(&mut x219, &mut x220, x213, 0xa2f79cd6);
1566  let mut x221: u32 = 0;
1567  let mut x222: u32 = 0;
1568  fiat_25519_scalar_mulx_u32(&mut x221, &mut x222, x213, 0x5812631a);
1569  let mut x223: u32 = 0;
1570  let mut x224: u32 = 0;
1571  fiat_25519_scalar_mulx_u32(&mut x223, &mut x224, x213, 0x5cf5d3ed);
1572  let mut x225: u32 = 0;
1573  let mut x226: fiat_25519_scalar_u1 = 0;
1574  fiat_25519_scalar_addcarryx_u32(&mut x225, &mut x226, 0x0, x224, x221);
1575  let mut x227: u32 = 0;
1576  let mut x228: fiat_25519_scalar_u1 = 0;
1577  fiat_25519_scalar_addcarryx_u32(&mut x227, &mut x228, x226, x222, x219);
1578  let mut x229: u32 = 0;
1579  let mut x230: fiat_25519_scalar_u1 = 0;
1580  fiat_25519_scalar_addcarryx_u32(&mut x229, &mut x230, x228, x220, x217);
1581  let x231: u32 = ((x230 as u32) + x218);
1582  let mut x232: u32 = 0;
1583  let mut x233: fiat_25519_scalar_u1 = 0;
1584  fiat_25519_scalar_addcarryx_u32(&mut x232, &mut x233, 0x0, x195, x223);
1585  let mut x234: u32 = 0;
1586  let mut x235: fiat_25519_scalar_u1 = 0;
1587  fiat_25519_scalar_addcarryx_u32(&mut x234, &mut x235, x233, x197, x225);
1588  let mut x236: u32 = 0;
1589  let mut x237: fiat_25519_scalar_u1 = 0;
1590  fiat_25519_scalar_addcarryx_u32(&mut x236, &mut x237, x235, x199, x227);
1591  let mut x238: u32 = 0;
1592  let mut x239: fiat_25519_scalar_u1 = 0;
1593  fiat_25519_scalar_addcarryx_u32(&mut x238, &mut x239, x237, x201, x229);
1594  let mut x240: u32 = 0;
1595  let mut x241: fiat_25519_scalar_u1 = 0;
1596  fiat_25519_scalar_addcarryx_u32(&mut x240, &mut x241, x239, x203, x231);
1597  let mut x242: u32 = 0;
1598  let mut x243: fiat_25519_scalar_u1 = 0;
1599  fiat_25519_scalar_addcarryx_u32(&mut x242, &mut x243, x241, x205, (0x0 as u32));
1600  let mut x244: u32 = 0;
1601  let mut x245: fiat_25519_scalar_u1 = 0;
1602  fiat_25519_scalar_addcarryx_u32(&mut x244, &mut x245, x243, x207, (0x0 as u32));
1603  let mut x246: u32 = 0;
1604  let mut x247: fiat_25519_scalar_u1 = 0;
1605  fiat_25519_scalar_addcarryx_u32(&mut x246, &mut x247, x245, x209, x215);
1606  let mut x248: u32 = 0;
1607  let mut x249: fiat_25519_scalar_u1 = 0;
1608  fiat_25519_scalar_addcarryx_u32(&mut x248, &mut x249, x247, x211, x216);
1609  let x250: u32 = ((x249 as u32) + (x212 as u32));
1610  let mut x251: u32 = 0;
1611  let mut x252: u32 = 0;
1612  fiat_25519_scalar_mulx_u32(&mut x251, &mut x252, x3, (arg1[7]));
1613  let mut x253: u32 = 0;
1614  let mut x254: u32 = 0;
1615  fiat_25519_scalar_mulx_u32(&mut x253, &mut x254, x3, (arg1[6]));
1616  let mut x255: u32 = 0;
1617  let mut x256: u32 = 0;
1618  fiat_25519_scalar_mulx_u32(&mut x255, &mut x256, x3, (arg1[5]));
1619  let mut x257: u32 = 0;
1620  let mut x258: u32 = 0;
1621  fiat_25519_scalar_mulx_u32(&mut x257, &mut x258, x3, (arg1[4]));
1622  let mut x259: u32 = 0;
1623  let mut x260: u32 = 0;
1624  fiat_25519_scalar_mulx_u32(&mut x259, &mut x260, x3, (arg1[3]));
1625  let mut x261: u32 = 0;
1626  let mut x262: u32 = 0;
1627  fiat_25519_scalar_mulx_u32(&mut x261, &mut x262, x3, (arg1[2]));
1628  let mut x263: u32 = 0;
1629  let mut x264: u32 = 0;
1630  fiat_25519_scalar_mulx_u32(&mut x263, &mut x264, x3, (arg1[1]));
1631  let mut x265: u32 = 0;
1632  let mut x266: u32 = 0;
1633  fiat_25519_scalar_mulx_u32(&mut x265, &mut x266, x3, (arg1[0]));
1634  let mut x267: u32 = 0;
1635  let mut x268: fiat_25519_scalar_u1 = 0;
1636  fiat_25519_scalar_addcarryx_u32(&mut x267, &mut x268, 0x0, x266, x263);
1637  let mut x269: u32 = 0;
1638  let mut x270: fiat_25519_scalar_u1 = 0;
1639  fiat_25519_scalar_addcarryx_u32(&mut x269, &mut x270, x268, x264, x261);
1640  let mut x271: u32 = 0;
1641  let mut x272: fiat_25519_scalar_u1 = 0;
1642  fiat_25519_scalar_addcarryx_u32(&mut x271, &mut x272, x270, x262, x259);
1643  let mut x273: u32 = 0;
1644  let mut x274: fiat_25519_scalar_u1 = 0;
1645  fiat_25519_scalar_addcarryx_u32(&mut x273, &mut x274, x272, x260, x257);
1646  let mut x275: u32 = 0;
1647  let mut x276: fiat_25519_scalar_u1 = 0;
1648  fiat_25519_scalar_addcarryx_u32(&mut x275, &mut x276, x274, x258, x255);
1649  let mut x277: u32 = 0;
1650  let mut x278: fiat_25519_scalar_u1 = 0;
1651  fiat_25519_scalar_addcarryx_u32(&mut x277, &mut x278, x276, x256, x253);
1652  let mut x279: u32 = 0;
1653  let mut x280: fiat_25519_scalar_u1 = 0;
1654  fiat_25519_scalar_addcarryx_u32(&mut x279, &mut x280, x278, x254, x251);
1655  let x281: u32 = ((x280 as u32) + x252);
1656  let mut x282: u32 = 0;
1657  let mut x283: fiat_25519_scalar_u1 = 0;
1658  fiat_25519_scalar_addcarryx_u32(&mut x282, &mut x283, 0x0, x234, x265);
1659  let mut x284: u32 = 0;
1660  let mut x285: fiat_25519_scalar_u1 = 0;
1661  fiat_25519_scalar_addcarryx_u32(&mut x284, &mut x285, x283, x236, x267);
1662  let mut x286: u32 = 0;
1663  let mut x287: fiat_25519_scalar_u1 = 0;
1664  fiat_25519_scalar_addcarryx_u32(&mut x286, &mut x287, x285, x238, x269);
1665  let mut x288: u32 = 0;
1666  let mut x289: fiat_25519_scalar_u1 = 0;
1667  fiat_25519_scalar_addcarryx_u32(&mut x288, &mut x289, x287, x240, x271);
1668  let mut x290: u32 = 0;
1669  let mut x291: fiat_25519_scalar_u1 = 0;
1670  fiat_25519_scalar_addcarryx_u32(&mut x290, &mut x291, x289, x242, x273);
1671  let mut x292: u32 = 0;
1672  let mut x293: fiat_25519_scalar_u1 = 0;
1673  fiat_25519_scalar_addcarryx_u32(&mut x292, &mut x293, x291, x244, x275);
1674  let mut x294: u32 = 0;
1675  let mut x295: fiat_25519_scalar_u1 = 0;
1676  fiat_25519_scalar_addcarryx_u32(&mut x294, &mut x295, x293, x246, x277);
1677  let mut x296: u32 = 0;
1678  let mut x297: fiat_25519_scalar_u1 = 0;
1679  fiat_25519_scalar_addcarryx_u32(&mut x296, &mut x297, x295, x248, x279);
1680  let mut x298: u32 = 0;
1681  let mut x299: fiat_25519_scalar_u1 = 0;
1682  fiat_25519_scalar_addcarryx_u32(&mut x298, &mut x299, x297, x250, x281);
1683  let mut x300: u32 = 0;
1684  let mut x301: u32 = 0;
1685  fiat_25519_scalar_mulx_u32(&mut x300, &mut x301, x282, 0x12547e1b);
1686  let mut x302: u32 = 0;
1687  let mut x303: u32 = 0;
1688  fiat_25519_scalar_mulx_u32(&mut x302, &mut x303, x300, 0x10000000);
1689  let mut x304: u32 = 0;
1690  let mut x305: u32 = 0;
1691  fiat_25519_scalar_mulx_u32(&mut x304, &mut x305, x300, 0x14def9de);
1692  let mut x306: u32 = 0;
1693  let mut x307: u32 = 0;
1694  fiat_25519_scalar_mulx_u32(&mut x306, &mut x307, x300, 0xa2f79cd6);
1695  let mut x308: u32 = 0;
1696  let mut x309: u32 = 0;
1697  fiat_25519_scalar_mulx_u32(&mut x308, &mut x309, x300, 0x5812631a);
1698  let mut x310: u32 = 0;
1699  let mut x311: u32 = 0;
1700  fiat_25519_scalar_mulx_u32(&mut x310, &mut x311, x300, 0x5cf5d3ed);
1701  let mut x312: u32 = 0;
1702  let mut x313: fiat_25519_scalar_u1 = 0;
1703  fiat_25519_scalar_addcarryx_u32(&mut x312, &mut x313, 0x0, x311, x308);
1704  let mut x314: u32 = 0;
1705  let mut x315: fiat_25519_scalar_u1 = 0;
1706  fiat_25519_scalar_addcarryx_u32(&mut x314, &mut x315, x313, x309, x306);
1707  let mut x316: u32 = 0;
1708  let mut x317: fiat_25519_scalar_u1 = 0;
1709  fiat_25519_scalar_addcarryx_u32(&mut x316, &mut x317, x315, x307, x304);
1710  let x318: u32 = ((x317 as u32) + x305);
1711  let mut x319: u32 = 0;
1712  let mut x320: fiat_25519_scalar_u1 = 0;
1713  fiat_25519_scalar_addcarryx_u32(&mut x319, &mut x320, 0x0, x282, x310);
1714  let mut x321: u32 = 0;
1715  let mut x322: fiat_25519_scalar_u1 = 0;
1716  fiat_25519_scalar_addcarryx_u32(&mut x321, &mut x322, x320, x284, x312);
1717  let mut x323: u32 = 0;
1718  let mut x324: fiat_25519_scalar_u1 = 0;
1719  fiat_25519_scalar_addcarryx_u32(&mut x323, &mut x324, x322, x286, x314);
1720  let mut x325: u32 = 0;
1721  let mut x326: fiat_25519_scalar_u1 = 0;
1722  fiat_25519_scalar_addcarryx_u32(&mut x325, &mut x326, x324, x288, x316);
1723  let mut x327: u32 = 0;
1724  let mut x328: fiat_25519_scalar_u1 = 0;
1725  fiat_25519_scalar_addcarryx_u32(&mut x327, &mut x328, x326, x290, x318);
1726  let mut x329: u32 = 0;
1727  let mut x330: fiat_25519_scalar_u1 = 0;
1728  fiat_25519_scalar_addcarryx_u32(&mut x329, &mut x330, x328, x292, (0x0 as u32));
1729  let mut x331: u32 = 0;
1730  let mut x332: fiat_25519_scalar_u1 = 0;
1731  fiat_25519_scalar_addcarryx_u32(&mut x331, &mut x332, x330, x294, (0x0 as u32));
1732  let mut x333: u32 = 0;
1733  let mut x334: fiat_25519_scalar_u1 = 0;
1734  fiat_25519_scalar_addcarryx_u32(&mut x333, &mut x334, x332, x296, x302);
1735  let mut x335: u32 = 0;
1736  let mut x336: fiat_25519_scalar_u1 = 0;
1737  fiat_25519_scalar_addcarryx_u32(&mut x335, &mut x336, x334, x298, x303);
1738  let x337: u32 = ((x336 as u32) + (x299 as u32));
1739  let mut x338: u32 = 0;
1740  let mut x339: u32 = 0;
1741  fiat_25519_scalar_mulx_u32(&mut x338, &mut x339, x4, (arg1[7]));
1742  let mut x340: u32 = 0;
1743  let mut x341: u32 = 0;
1744  fiat_25519_scalar_mulx_u32(&mut x340, &mut x341, x4, (arg1[6]));
1745  let mut x342: u32 = 0;
1746  let mut x343: u32 = 0;
1747  fiat_25519_scalar_mulx_u32(&mut x342, &mut x343, x4, (arg1[5]));
1748  let mut x344: u32 = 0;
1749  let mut x345: u32 = 0;
1750  fiat_25519_scalar_mulx_u32(&mut x344, &mut x345, x4, (arg1[4]));
1751  let mut x346: u32 = 0;
1752  let mut x347: u32 = 0;
1753  fiat_25519_scalar_mulx_u32(&mut x346, &mut x347, x4, (arg1[3]));
1754  let mut x348: u32 = 0;
1755  let mut x349: u32 = 0;
1756  fiat_25519_scalar_mulx_u32(&mut x348, &mut x349, x4, (arg1[2]));
1757  let mut x350: u32 = 0;
1758  let mut x351: u32 = 0;
1759  fiat_25519_scalar_mulx_u32(&mut x350, &mut x351, x4, (arg1[1]));
1760  let mut x352: u32 = 0;
1761  let mut x353: u32 = 0;
1762  fiat_25519_scalar_mulx_u32(&mut x352, &mut x353, x4, (arg1[0]));
1763  let mut x354: u32 = 0;
1764  let mut x355: fiat_25519_scalar_u1 = 0;
1765  fiat_25519_scalar_addcarryx_u32(&mut x354, &mut x355, 0x0, x353, x350);
1766  let mut x356: u32 = 0;
1767  let mut x357: fiat_25519_scalar_u1 = 0;
1768  fiat_25519_scalar_addcarryx_u32(&mut x356, &mut x357, x355, x351, x348);
1769  let mut x358: u32 = 0;
1770  let mut x359: fiat_25519_scalar_u1 = 0;
1771  fiat_25519_scalar_addcarryx_u32(&mut x358, &mut x359, x357, x349, x346);
1772  let mut x360: u32 = 0;
1773  let mut x361: fiat_25519_scalar_u1 = 0;
1774  fiat_25519_scalar_addcarryx_u32(&mut x360, &mut x361, x359, x347, x344);
1775  let mut x362: u32 = 0;
1776  let mut x363: fiat_25519_scalar_u1 = 0;
1777  fiat_25519_scalar_addcarryx_u32(&mut x362, &mut x363, x361, x345, x342);
1778  let mut x364: u32 = 0;
1779  let mut x365: fiat_25519_scalar_u1 = 0;
1780  fiat_25519_scalar_addcarryx_u32(&mut x364, &mut x365, x363, x343, x340);
1781  let mut x366: u32 = 0;
1782  let mut x367: fiat_25519_scalar_u1 = 0;
1783  fiat_25519_scalar_addcarryx_u32(&mut x366, &mut x367, x365, x341, x338);
1784  let x368: u32 = ((x367 as u32) + x339);
1785  let mut x369: u32 = 0;
1786  let mut x370: fiat_25519_scalar_u1 = 0;
1787  fiat_25519_scalar_addcarryx_u32(&mut x369, &mut x370, 0x0, x321, x352);
1788  let mut x371: u32 = 0;
1789  let mut x372: fiat_25519_scalar_u1 = 0;
1790  fiat_25519_scalar_addcarryx_u32(&mut x371, &mut x372, x370, x323, x354);
1791  let mut x373: u32 = 0;
1792  let mut x374: fiat_25519_scalar_u1 = 0;
1793  fiat_25519_scalar_addcarryx_u32(&mut x373, &mut x374, x372, x325, x356);
1794  let mut x375: u32 = 0;
1795  let mut x376: fiat_25519_scalar_u1 = 0;
1796  fiat_25519_scalar_addcarryx_u32(&mut x375, &mut x376, x374, x327, x358);
1797  let mut x377: u32 = 0;
1798  let mut x378: fiat_25519_scalar_u1 = 0;
1799  fiat_25519_scalar_addcarryx_u32(&mut x377, &mut x378, x376, x329, x360);
1800  let mut x379: u32 = 0;
1801  let mut x380: fiat_25519_scalar_u1 = 0;
1802  fiat_25519_scalar_addcarryx_u32(&mut x379, &mut x380, x378, x331, x362);
1803  let mut x381: u32 = 0;
1804  let mut x382: fiat_25519_scalar_u1 = 0;
1805  fiat_25519_scalar_addcarryx_u32(&mut x381, &mut x382, x380, x333, x364);
1806  let mut x383: u32 = 0;
1807  let mut x384: fiat_25519_scalar_u1 = 0;
1808  fiat_25519_scalar_addcarryx_u32(&mut x383, &mut x384, x382, x335, x366);
1809  let mut x385: u32 = 0;
1810  let mut x386: fiat_25519_scalar_u1 = 0;
1811  fiat_25519_scalar_addcarryx_u32(&mut x385, &mut x386, x384, x337, x368);
1812  let mut x387: u32 = 0;
1813  let mut x388: u32 = 0;
1814  fiat_25519_scalar_mulx_u32(&mut x387, &mut x388, x369, 0x12547e1b);
1815  let mut x389: u32 = 0;
1816  let mut x390: u32 = 0;
1817  fiat_25519_scalar_mulx_u32(&mut x389, &mut x390, x387, 0x10000000);
1818  let mut x391: u32 = 0;
1819  let mut x392: u32 = 0;
1820  fiat_25519_scalar_mulx_u32(&mut x391, &mut x392, x387, 0x14def9de);
1821  let mut x393: u32 = 0;
1822  let mut x394: u32 = 0;
1823  fiat_25519_scalar_mulx_u32(&mut x393, &mut x394, x387, 0xa2f79cd6);
1824  let mut x395: u32 = 0;
1825  let mut x396: u32 = 0;
1826  fiat_25519_scalar_mulx_u32(&mut x395, &mut x396, x387, 0x5812631a);
1827  let mut x397: u32 = 0;
1828  let mut x398: u32 = 0;
1829  fiat_25519_scalar_mulx_u32(&mut x397, &mut x398, x387, 0x5cf5d3ed);
1830  let mut x399: u32 = 0;
1831  let mut x400: fiat_25519_scalar_u1 = 0;
1832  fiat_25519_scalar_addcarryx_u32(&mut x399, &mut x400, 0x0, x398, x395);
1833  let mut x401: u32 = 0;
1834  let mut x402: fiat_25519_scalar_u1 = 0;
1835  fiat_25519_scalar_addcarryx_u32(&mut x401, &mut x402, x400, x396, x393);
1836  let mut x403: u32 = 0;
1837  let mut x404: fiat_25519_scalar_u1 = 0;
1838  fiat_25519_scalar_addcarryx_u32(&mut x403, &mut x404, x402, x394, x391);
1839  let x405: u32 = ((x404 as u32) + x392);
1840  let mut x406: u32 = 0;
1841  let mut x407: fiat_25519_scalar_u1 = 0;
1842  fiat_25519_scalar_addcarryx_u32(&mut x406, &mut x407, 0x0, x369, x397);
1843  let mut x408: u32 = 0;
1844  let mut x409: fiat_25519_scalar_u1 = 0;
1845  fiat_25519_scalar_addcarryx_u32(&mut x408, &mut x409, x407, x371, x399);
1846  let mut x410: u32 = 0;
1847  let mut x411: fiat_25519_scalar_u1 = 0;
1848  fiat_25519_scalar_addcarryx_u32(&mut x410, &mut x411, x409, x373, x401);
1849  let mut x412: u32 = 0;
1850  let mut x413: fiat_25519_scalar_u1 = 0;
1851  fiat_25519_scalar_addcarryx_u32(&mut x412, &mut x413, x411, x375, x403);
1852  let mut x414: u32 = 0;
1853  let mut x415: fiat_25519_scalar_u1 = 0;
1854  fiat_25519_scalar_addcarryx_u32(&mut x414, &mut x415, x413, x377, x405);
1855  let mut x416: u32 = 0;
1856  let mut x417: fiat_25519_scalar_u1 = 0;
1857  fiat_25519_scalar_addcarryx_u32(&mut x416, &mut x417, x415, x379, (0x0 as u32));
1858  let mut x418: u32 = 0;
1859  let mut x419: fiat_25519_scalar_u1 = 0;
1860  fiat_25519_scalar_addcarryx_u32(&mut x418, &mut x419, x417, x381, (0x0 as u32));
1861  let mut x420: u32 = 0;
1862  let mut x421: fiat_25519_scalar_u1 = 0;
1863  fiat_25519_scalar_addcarryx_u32(&mut x420, &mut x421, x419, x383, x389);
1864  let mut x422: u32 = 0;
1865  let mut x423: fiat_25519_scalar_u1 = 0;
1866  fiat_25519_scalar_addcarryx_u32(&mut x422, &mut x423, x421, x385, x390);
1867  let x424: u32 = ((x423 as u32) + (x386 as u32));
1868  let mut x425: u32 = 0;
1869  let mut x426: u32 = 0;
1870  fiat_25519_scalar_mulx_u32(&mut x425, &mut x426, x5, (arg1[7]));
1871  let mut x427: u32 = 0;
1872  let mut x428: u32 = 0;
1873  fiat_25519_scalar_mulx_u32(&mut x427, &mut x428, x5, (arg1[6]));
1874  let mut x429: u32 = 0;
1875  let mut x430: u32 = 0;
1876  fiat_25519_scalar_mulx_u32(&mut x429, &mut x430, x5, (arg1[5]));
1877  let mut x431: u32 = 0;
1878  let mut x432: u32 = 0;
1879  fiat_25519_scalar_mulx_u32(&mut x431, &mut x432, x5, (arg1[4]));
1880  let mut x433: u32 = 0;
1881  let mut x434: u32 = 0;
1882  fiat_25519_scalar_mulx_u32(&mut x433, &mut x434, x5, (arg1[3]));
1883  let mut x435: u32 = 0;
1884  let mut x436: u32 = 0;
1885  fiat_25519_scalar_mulx_u32(&mut x435, &mut x436, x5, (arg1[2]));
1886  let mut x437: u32 = 0;
1887  let mut x438: u32 = 0;
1888  fiat_25519_scalar_mulx_u32(&mut x437, &mut x438, x5, (arg1[1]));
1889  let mut x439: u32 = 0;
1890  let mut x440: u32 = 0;
1891  fiat_25519_scalar_mulx_u32(&mut x439, &mut x440, x5, (arg1[0]));
1892  let mut x441: u32 = 0;
1893  let mut x442: fiat_25519_scalar_u1 = 0;
1894  fiat_25519_scalar_addcarryx_u32(&mut x441, &mut x442, 0x0, x440, x437);
1895  let mut x443: u32 = 0;
1896  let mut x444: fiat_25519_scalar_u1 = 0;
1897  fiat_25519_scalar_addcarryx_u32(&mut x443, &mut x444, x442, x438, x435);
1898  let mut x445: u32 = 0;
1899  let mut x446: fiat_25519_scalar_u1 = 0;
1900  fiat_25519_scalar_addcarryx_u32(&mut x445, &mut x446, x444, x436, x433);
1901  let mut x447: u32 = 0;
1902  let mut x448: fiat_25519_scalar_u1 = 0;
1903  fiat_25519_scalar_addcarryx_u32(&mut x447, &mut x448, x446, x434, x431);
1904  let mut x449: u32 = 0;
1905  let mut x450: fiat_25519_scalar_u1 = 0;
1906  fiat_25519_scalar_addcarryx_u32(&mut x449, &mut x450, x448, x432, x429);
1907  let mut x451: u32 = 0;
1908  let mut x452: fiat_25519_scalar_u1 = 0;
1909  fiat_25519_scalar_addcarryx_u32(&mut x451, &mut x452, x450, x430, x427);
1910  let mut x453: u32 = 0;
1911  let mut x454: fiat_25519_scalar_u1 = 0;
1912  fiat_25519_scalar_addcarryx_u32(&mut x453, &mut x454, x452, x428, x425);
1913  let x455: u32 = ((x454 as u32) + x426);
1914  let mut x456: u32 = 0;
1915  let mut x457: fiat_25519_scalar_u1 = 0;
1916  fiat_25519_scalar_addcarryx_u32(&mut x456, &mut x457, 0x0, x408, x439);
1917  let mut x458: u32 = 0;
1918  let mut x459: fiat_25519_scalar_u1 = 0;
1919  fiat_25519_scalar_addcarryx_u32(&mut x458, &mut x459, x457, x410, x441);
1920  let mut x460: u32 = 0;
1921  let mut x461: fiat_25519_scalar_u1 = 0;
1922  fiat_25519_scalar_addcarryx_u32(&mut x460, &mut x461, x459, x412, x443);
1923  let mut x462: u32 = 0;
1924  let mut x463: fiat_25519_scalar_u1 = 0;
1925  fiat_25519_scalar_addcarryx_u32(&mut x462, &mut x463, x461, x414, x445);
1926  let mut x464: u32 = 0;
1927  let mut x465: fiat_25519_scalar_u1 = 0;
1928  fiat_25519_scalar_addcarryx_u32(&mut x464, &mut x465, x463, x416, x447);
1929  let mut x466: u32 = 0;
1930  let mut x467: fiat_25519_scalar_u1 = 0;
1931  fiat_25519_scalar_addcarryx_u32(&mut x466, &mut x467, x465, x418, x449);
1932  let mut x468: u32 = 0;
1933  let mut x469: fiat_25519_scalar_u1 = 0;
1934  fiat_25519_scalar_addcarryx_u32(&mut x468, &mut x469, x467, x420, x451);
1935  let mut x470: u32 = 0;
1936  let mut x471: fiat_25519_scalar_u1 = 0;
1937  fiat_25519_scalar_addcarryx_u32(&mut x470, &mut x471, x469, x422, x453);
1938  let mut x472: u32 = 0;
1939  let mut x473: fiat_25519_scalar_u1 = 0;
1940  fiat_25519_scalar_addcarryx_u32(&mut x472, &mut x473, x471, x424, x455);
1941  let mut x474: u32 = 0;
1942  let mut x475: u32 = 0;
1943  fiat_25519_scalar_mulx_u32(&mut x474, &mut x475, x456, 0x12547e1b);
1944  let mut x476: u32 = 0;
1945  let mut x477: u32 = 0;
1946  fiat_25519_scalar_mulx_u32(&mut x476, &mut x477, x474, 0x10000000);
1947  let mut x478: u32 = 0;
1948  let mut x479: u32 = 0;
1949  fiat_25519_scalar_mulx_u32(&mut x478, &mut x479, x474, 0x14def9de);
1950  let mut x480: u32 = 0;
1951  let mut x481: u32 = 0;
1952  fiat_25519_scalar_mulx_u32(&mut x480, &mut x481, x474, 0xa2f79cd6);
1953  let mut x482: u32 = 0;
1954  let mut x483: u32 = 0;
1955  fiat_25519_scalar_mulx_u32(&mut x482, &mut x483, x474, 0x5812631a);
1956  let mut x484: u32 = 0;
1957  let mut x485: u32 = 0;
1958  fiat_25519_scalar_mulx_u32(&mut x484, &mut x485, x474, 0x5cf5d3ed);
1959  let mut x486: u32 = 0;
1960  let mut x487: fiat_25519_scalar_u1 = 0;
1961  fiat_25519_scalar_addcarryx_u32(&mut x486, &mut x487, 0x0, x485, x482);
1962  let mut x488: u32 = 0;
1963  let mut x489: fiat_25519_scalar_u1 = 0;
1964  fiat_25519_scalar_addcarryx_u32(&mut x488, &mut x489, x487, x483, x480);
1965  let mut x490: u32 = 0;
1966  let mut x491: fiat_25519_scalar_u1 = 0;
1967  fiat_25519_scalar_addcarryx_u32(&mut x490, &mut x491, x489, x481, x478);
1968  let x492: u32 = ((x491 as u32) + x479);
1969  let mut x493: u32 = 0;
1970  let mut x494: fiat_25519_scalar_u1 = 0;
1971  fiat_25519_scalar_addcarryx_u32(&mut x493, &mut x494, 0x0, x456, x484);
1972  let mut x495: u32 = 0;
1973  let mut x496: fiat_25519_scalar_u1 = 0;
1974  fiat_25519_scalar_addcarryx_u32(&mut x495, &mut x496, x494, x458, x486);
1975  let mut x497: u32 = 0;
1976  let mut x498: fiat_25519_scalar_u1 = 0;
1977  fiat_25519_scalar_addcarryx_u32(&mut x497, &mut x498, x496, x460, x488);
1978  let mut x499: u32 = 0;
1979  let mut x500: fiat_25519_scalar_u1 = 0;
1980  fiat_25519_scalar_addcarryx_u32(&mut x499, &mut x500, x498, x462, x490);
1981  let mut x501: u32 = 0;
1982  let mut x502: fiat_25519_scalar_u1 = 0;
1983  fiat_25519_scalar_addcarryx_u32(&mut x501, &mut x502, x500, x464, x492);
1984  let mut x503: u32 = 0;
1985  let mut x504: fiat_25519_scalar_u1 = 0;
1986  fiat_25519_scalar_addcarryx_u32(&mut x503, &mut x504, x502, x466, (0x0 as u32));
1987  let mut x505: u32 = 0;
1988  let mut x506: fiat_25519_scalar_u1 = 0;
1989  fiat_25519_scalar_addcarryx_u32(&mut x505, &mut x506, x504, x468, (0x0 as u32));
1990  let mut x507: u32 = 0;
1991  let mut x508: fiat_25519_scalar_u1 = 0;
1992  fiat_25519_scalar_addcarryx_u32(&mut x507, &mut x508, x506, x470, x476);
1993  let mut x509: u32 = 0;
1994  let mut x510: fiat_25519_scalar_u1 = 0;
1995  fiat_25519_scalar_addcarryx_u32(&mut x509, &mut x510, x508, x472, x477);
1996  let x511: u32 = ((x510 as u32) + (x473 as u32));
1997  let mut x512: u32 = 0;
1998  let mut x513: u32 = 0;
1999  fiat_25519_scalar_mulx_u32(&mut x512, &mut x513, x6, (arg1[7]));
2000  let mut x514: u32 = 0;
2001  let mut x515: u32 = 0;
2002  fiat_25519_scalar_mulx_u32(&mut x514, &mut x515, x6, (arg1[6]));
2003  let mut x516: u32 = 0;
2004  let mut x517: u32 = 0;
2005  fiat_25519_scalar_mulx_u32(&mut x516, &mut x517, x6, (arg1[5]));
2006  let mut x518: u32 = 0;
2007  let mut x519: u32 = 0;
2008  fiat_25519_scalar_mulx_u32(&mut x518, &mut x519, x6, (arg1[4]));
2009  let mut x520: u32 = 0;
2010  let mut x521: u32 = 0;
2011  fiat_25519_scalar_mulx_u32(&mut x520, &mut x521, x6, (arg1[3]));
2012  let mut x522: u32 = 0;
2013  let mut x523: u32 = 0;
2014  fiat_25519_scalar_mulx_u32(&mut x522, &mut x523, x6, (arg1[2]));
2015  let mut x524: u32 = 0;
2016  let mut x525: u32 = 0;
2017  fiat_25519_scalar_mulx_u32(&mut x524, &mut x525, x6, (arg1[1]));
2018  let mut x526: u32 = 0;
2019  let mut x527: u32 = 0;
2020  fiat_25519_scalar_mulx_u32(&mut x526, &mut x527, x6, (arg1[0]));
2021  let mut x528: u32 = 0;
2022  let mut x529: fiat_25519_scalar_u1 = 0;
2023  fiat_25519_scalar_addcarryx_u32(&mut x528, &mut x529, 0x0, x527, x524);
2024  let mut x530: u32 = 0;
2025  let mut x531: fiat_25519_scalar_u1 = 0;
2026  fiat_25519_scalar_addcarryx_u32(&mut x530, &mut x531, x529, x525, x522);
2027  let mut x532: u32 = 0;
2028  let mut x533: fiat_25519_scalar_u1 = 0;
2029  fiat_25519_scalar_addcarryx_u32(&mut x532, &mut x533, x531, x523, x520);
2030  let mut x534: u32 = 0;
2031  let mut x535: fiat_25519_scalar_u1 = 0;
2032  fiat_25519_scalar_addcarryx_u32(&mut x534, &mut x535, x533, x521, x518);
2033  let mut x536: u32 = 0;
2034  let mut x537: fiat_25519_scalar_u1 = 0;
2035  fiat_25519_scalar_addcarryx_u32(&mut x536, &mut x537, x535, x519, x516);
2036  let mut x538: u32 = 0;
2037  let mut x539: fiat_25519_scalar_u1 = 0;
2038  fiat_25519_scalar_addcarryx_u32(&mut x538, &mut x539, x537, x517, x514);
2039  let mut x540: u32 = 0;
2040  let mut x541: fiat_25519_scalar_u1 = 0;
2041  fiat_25519_scalar_addcarryx_u32(&mut x540, &mut x541, x539, x515, x512);
2042  let x542: u32 = ((x541 as u32) + x513);
2043  let mut x543: u32 = 0;
2044  let mut x544: fiat_25519_scalar_u1 = 0;
2045  fiat_25519_scalar_addcarryx_u32(&mut x543, &mut x544, 0x0, x495, x526);
2046  let mut x545: u32 = 0;
2047  let mut x546: fiat_25519_scalar_u1 = 0;
2048  fiat_25519_scalar_addcarryx_u32(&mut x545, &mut x546, x544, x497, x528);
2049  let mut x547: u32 = 0;
2050  let mut x548: fiat_25519_scalar_u1 = 0;
2051  fiat_25519_scalar_addcarryx_u32(&mut x547, &mut x548, x546, x499, x530);
2052  let mut x549: u32 = 0;
2053  let mut x550: fiat_25519_scalar_u1 = 0;
2054  fiat_25519_scalar_addcarryx_u32(&mut x549, &mut x550, x548, x501, x532);
2055  let mut x551: u32 = 0;
2056  let mut x552: fiat_25519_scalar_u1 = 0;
2057  fiat_25519_scalar_addcarryx_u32(&mut x551, &mut x552, x550, x503, x534);
2058  let mut x553: u32 = 0;
2059  let mut x554: fiat_25519_scalar_u1 = 0;
2060  fiat_25519_scalar_addcarryx_u32(&mut x553, &mut x554, x552, x505, x536);
2061  let mut x555: u32 = 0;
2062  let mut x556: fiat_25519_scalar_u1 = 0;
2063  fiat_25519_scalar_addcarryx_u32(&mut x555, &mut x556, x554, x507, x538);
2064  let mut x557: u32 = 0;
2065  let mut x558: fiat_25519_scalar_u1 = 0;
2066  fiat_25519_scalar_addcarryx_u32(&mut x557, &mut x558, x556, x509, x540);
2067  let mut x559: u32 = 0;
2068  let mut x560: fiat_25519_scalar_u1 = 0;
2069  fiat_25519_scalar_addcarryx_u32(&mut x559, &mut x560, x558, x511, x542);
2070  let mut x561: u32 = 0;
2071  let mut x562: u32 = 0;
2072  fiat_25519_scalar_mulx_u32(&mut x561, &mut x562, x543, 0x12547e1b);
2073  let mut x563: u32 = 0;
2074  let mut x564: u32 = 0;
2075  fiat_25519_scalar_mulx_u32(&mut x563, &mut x564, x561, 0x10000000);
2076  let mut x565: u32 = 0;
2077  let mut x566: u32 = 0;
2078  fiat_25519_scalar_mulx_u32(&mut x565, &mut x566, x561, 0x14def9de);
2079  let mut x567: u32 = 0;
2080  let mut x568: u32 = 0;
2081  fiat_25519_scalar_mulx_u32(&mut x567, &mut x568, x561, 0xa2f79cd6);
2082  let mut x569: u32 = 0;
2083  let mut x570: u32 = 0;
2084  fiat_25519_scalar_mulx_u32(&mut x569, &mut x570, x561, 0x5812631a);
2085  let mut x571: u32 = 0;
2086  let mut x572: u32 = 0;
2087  fiat_25519_scalar_mulx_u32(&mut x571, &mut x572, x561, 0x5cf5d3ed);
2088  let mut x573: u32 = 0;
2089  let mut x574: fiat_25519_scalar_u1 = 0;
2090  fiat_25519_scalar_addcarryx_u32(&mut x573, &mut x574, 0x0, x572, x569);
2091  let mut x575: u32 = 0;
2092  let mut x576: fiat_25519_scalar_u1 = 0;
2093  fiat_25519_scalar_addcarryx_u32(&mut x575, &mut x576, x574, x570, x567);
2094  let mut x577: u32 = 0;
2095  let mut x578: fiat_25519_scalar_u1 = 0;
2096  fiat_25519_scalar_addcarryx_u32(&mut x577, &mut x578, x576, x568, x565);
2097  let x579: u32 = ((x578 as u32) + x566);
2098  let mut x580: u32 = 0;
2099  let mut x581: fiat_25519_scalar_u1 = 0;
2100  fiat_25519_scalar_addcarryx_u32(&mut x580, &mut x581, 0x0, x543, x571);
2101  let mut x582: u32 = 0;
2102  let mut x583: fiat_25519_scalar_u1 = 0;
2103  fiat_25519_scalar_addcarryx_u32(&mut x582, &mut x583, x581, x545, x573);
2104  let mut x584: u32 = 0;
2105  let mut x585: fiat_25519_scalar_u1 = 0;
2106  fiat_25519_scalar_addcarryx_u32(&mut x584, &mut x585, x583, x547, x575);
2107  let mut x586: u32 = 0;
2108  let mut x587: fiat_25519_scalar_u1 = 0;
2109  fiat_25519_scalar_addcarryx_u32(&mut x586, &mut x587, x585, x549, x577);
2110  let mut x588: u32 = 0;
2111  let mut x589: fiat_25519_scalar_u1 = 0;
2112  fiat_25519_scalar_addcarryx_u32(&mut x588, &mut x589, x587, x551, x579);
2113  let mut x590: u32 = 0;
2114  let mut x591: fiat_25519_scalar_u1 = 0;
2115  fiat_25519_scalar_addcarryx_u32(&mut x590, &mut x591, x589, x553, (0x0 as u32));
2116  let mut x592: u32 = 0;
2117  let mut x593: fiat_25519_scalar_u1 = 0;
2118  fiat_25519_scalar_addcarryx_u32(&mut x592, &mut x593, x591, x555, (0x0 as u32));
2119  let mut x594: u32 = 0;
2120  let mut x595: fiat_25519_scalar_u1 = 0;
2121  fiat_25519_scalar_addcarryx_u32(&mut x594, &mut x595, x593, x557, x563);
2122  let mut x596: u32 = 0;
2123  let mut x597: fiat_25519_scalar_u1 = 0;
2124  fiat_25519_scalar_addcarryx_u32(&mut x596, &mut x597, x595, x559, x564);
2125  let x598: u32 = ((x597 as u32) + (x560 as u32));
2126  let mut x599: u32 = 0;
2127  let mut x600: u32 = 0;
2128  fiat_25519_scalar_mulx_u32(&mut x599, &mut x600, x7, (arg1[7]));
2129  let mut x601: u32 = 0;
2130  let mut x602: u32 = 0;
2131  fiat_25519_scalar_mulx_u32(&mut x601, &mut x602, x7, (arg1[6]));
2132  let mut x603: u32 = 0;
2133  let mut x604: u32 = 0;
2134  fiat_25519_scalar_mulx_u32(&mut x603, &mut x604, x7, (arg1[5]));
2135  let mut x605: u32 = 0;
2136  let mut x606: u32 = 0;
2137  fiat_25519_scalar_mulx_u32(&mut x605, &mut x606, x7, (arg1[4]));
2138  let mut x607: u32 = 0;
2139  let mut x608: u32 = 0;
2140  fiat_25519_scalar_mulx_u32(&mut x607, &mut x608, x7, (arg1[3]));
2141  let mut x609: u32 = 0;
2142  let mut x610: u32 = 0;
2143  fiat_25519_scalar_mulx_u32(&mut x609, &mut x610, x7, (arg1[2]));
2144  let mut x611: u32 = 0;
2145  let mut x612: u32 = 0;
2146  fiat_25519_scalar_mulx_u32(&mut x611, &mut x612, x7, (arg1[1]));
2147  let mut x613: u32 = 0;
2148  let mut x614: u32 = 0;
2149  fiat_25519_scalar_mulx_u32(&mut x613, &mut x614, x7, (arg1[0]));
2150  let mut x615: u32 = 0;
2151  let mut x616: fiat_25519_scalar_u1 = 0;
2152  fiat_25519_scalar_addcarryx_u32(&mut x615, &mut x616, 0x0, x614, x611);
2153  let mut x617: u32 = 0;
2154  let mut x618: fiat_25519_scalar_u1 = 0;
2155  fiat_25519_scalar_addcarryx_u32(&mut x617, &mut x618, x616, x612, x609);
2156  let mut x619: u32 = 0;
2157  let mut x620: fiat_25519_scalar_u1 = 0;
2158  fiat_25519_scalar_addcarryx_u32(&mut x619, &mut x620, x618, x610, x607);
2159  let mut x621: u32 = 0;
2160  let mut x622: fiat_25519_scalar_u1 = 0;
2161  fiat_25519_scalar_addcarryx_u32(&mut x621, &mut x622, x620, x608, x605);
2162  let mut x623: u32 = 0;
2163  let mut x624: fiat_25519_scalar_u1 = 0;
2164  fiat_25519_scalar_addcarryx_u32(&mut x623, &mut x624, x622, x606, x603);
2165  let mut x625: u32 = 0;
2166  let mut x626: fiat_25519_scalar_u1 = 0;
2167  fiat_25519_scalar_addcarryx_u32(&mut x625, &mut x626, x624, x604, x601);
2168  let mut x627: u32 = 0;
2169  let mut x628: fiat_25519_scalar_u1 = 0;
2170  fiat_25519_scalar_addcarryx_u32(&mut x627, &mut x628, x626, x602, x599);
2171  let x629: u32 = ((x628 as u32) + x600);
2172  let mut x630: u32 = 0;
2173  let mut x631: fiat_25519_scalar_u1 = 0;
2174  fiat_25519_scalar_addcarryx_u32(&mut x630, &mut x631, 0x0, x582, x613);
2175  let mut x632: u32 = 0;
2176  let mut x633: fiat_25519_scalar_u1 = 0;
2177  fiat_25519_scalar_addcarryx_u32(&mut x632, &mut x633, x631, x584, x615);
2178  let mut x634: u32 = 0;
2179  let mut x635: fiat_25519_scalar_u1 = 0;
2180  fiat_25519_scalar_addcarryx_u32(&mut x634, &mut x635, x633, x586, x617);
2181  let mut x636: u32 = 0;
2182  let mut x637: fiat_25519_scalar_u1 = 0;
2183  fiat_25519_scalar_addcarryx_u32(&mut x636, &mut x637, x635, x588, x619);
2184  let mut x638: u32 = 0;
2185  let mut x639: fiat_25519_scalar_u1 = 0;
2186  fiat_25519_scalar_addcarryx_u32(&mut x638, &mut x639, x637, x590, x621);
2187  let mut x640: u32 = 0;
2188  let mut x641: fiat_25519_scalar_u1 = 0;
2189  fiat_25519_scalar_addcarryx_u32(&mut x640, &mut x641, x639, x592, x623);
2190  let mut x642: u32 = 0;
2191  let mut x643: fiat_25519_scalar_u1 = 0;
2192  fiat_25519_scalar_addcarryx_u32(&mut x642, &mut x643, x641, x594, x625);
2193  let mut x644: u32 = 0;
2194  let mut x645: fiat_25519_scalar_u1 = 0;
2195  fiat_25519_scalar_addcarryx_u32(&mut x644, &mut x645, x643, x596, x627);
2196  let mut x646: u32 = 0;
2197  let mut x647: fiat_25519_scalar_u1 = 0;
2198  fiat_25519_scalar_addcarryx_u32(&mut x646, &mut x647, x645, x598, x629);
2199  let mut x648: u32 = 0;
2200  let mut x649: u32 = 0;
2201  fiat_25519_scalar_mulx_u32(&mut x648, &mut x649, x630, 0x12547e1b);
2202  let mut x650: u32 = 0;
2203  let mut x651: u32 = 0;
2204  fiat_25519_scalar_mulx_u32(&mut x650, &mut x651, x648, 0x10000000);
2205  let mut x652: u32 = 0;
2206  let mut x653: u32 = 0;
2207  fiat_25519_scalar_mulx_u32(&mut x652, &mut x653, x648, 0x14def9de);
2208  let mut x654: u32 = 0;
2209  let mut x655: u32 = 0;
2210  fiat_25519_scalar_mulx_u32(&mut x654, &mut x655, x648, 0xa2f79cd6);
2211  let mut x656: u32 = 0;
2212  let mut x657: u32 = 0;
2213  fiat_25519_scalar_mulx_u32(&mut x656, &mut x657, x648, 0x5812631a);
2214  let mut x658: u32 = 0;
2215  let mut x659: u32 = 0;
2216  fiat_25519_scalar_mulx_u32(&mut x658, &mut x659, x648, 0x5cf5d3ed);
2217  let mut x660: u32 = 0;
2218  let mut x661: fiat_25519_scalar_u1 = 0;
2219  fiat_25519_scalar_addcarryx_u32(&mut x660, &mut x661, 0x0, x659, x656);
2220  let mut x662: u32 = 0;
2221  let mut x663: fiat_25519_scalar_u1 = 0;
2222  fiat_25519_scalar_addcarryx_u32(&mut x662, &mut x663, x661, x657, x654);
2223  let mut x664: u32 = 0;
2224  let mut x665: fiat_25519_scalar_u1 = 0;
2225  fiat_25519_scalar_addcarryx_u32(&mut x664, &mut x665, x663, x655, x652);
2226  let x666: u32 = ((x665 as u32) + x653);
2227  let mut x667: u32 = 0;
2228  let mut x668: fiat_25519_scalar_u1 = 0;
2229  fiat_25519_scalar_addcarryx_u32(&mut x667, &mut x668, 0x0, x630, x658);
2230  let mut x669: u32 = 0;
2231  let mut x670: fiat_25519_scalar_u1 = 0;
2232  fiat_25519_scalar_addcarryx_u32(&mut x669, &mut x670, x668, x632, x660);
2233  let mut x671: u32 = 0;
2234  let mut x672: fiat_25519_scalar_u1 = 0;
2235  fiat_25519_scalar_addcarryx_u32(&mut x671, &mut x672, x670, x634, x662);
2236  let mut x673: u32 = 0;
2237  let mut x674: fiat_25519_scalar_u1 = 0;
2238  fiat_25519_scalar_addcarryx_u32(&mut x673, &mut x674, x672, x636, x664);
2239  let mut x675: u32 = 0;
2240  let mut x676: fiat_25519_scalar_u1 = 0;
2241  fiat_25519_scalar_addcarryx_u32(&mut x675, &mut x676, x674, x638, x666);
2242  let mut x677: u32 = 0;
2243  let mut x678: fiat_25519_scalar_u1 = 0;
2244  fiat_25519_scalar_addcarryx_u32(&mut x677, &mut x678, x676, x640, (0x0 as u32));
2245  let mut x679: u32 = 0;
2246  let mut x680: fiat_25519_scalar_u1 = 0;
2247  fiat_25519_scalar_addcarryx_u32(&mut x679, &mut x680, x678, x642, (0x0 as u32));
2248  let mut x681: u32 = 0;
2249  let mut x682: fiat_25519_scalar_u1 = 0;
2250  fiat_25519_scalar_addcarryx_u32(&mut x681, &mut x682, x680, x644, x650);
2251  let mut x683: u32 = 0;
2252  let mut x684: fiat_25519_scalar_u1 = 0;
2253  fiat_25519_scalar_addcarryx_u32(&mut x683, &mut x684, x682, x646, x651);
2254  let x685: u32 = ((x684 as u32) + (x647 as u32));
2255  let mut x686: u32 = 0;
2256  let mut x687: fiat_25519_scalar_u1 = 0;
2257  fiat_25519_scalar_subborrowx_u32(&mut x686, &mut x687, 0x0, x669, 0x5cf5d3ed);
2258  let mut x688: u32 = 0;
2259  let mut x689: fiat_25519_scalar_u1 = 0;
2260  fiat_25519_scalar_subborrowx_u32(&mut x688, &mut x689, x687, x671, 0x5812631a);
2261  let mut x690: u32 = 0;
2262  let mut x691: fiat_25519_scalar_u1 = 0;
2263  fiat_25519_scalar_subborrowx_u32(&mut x690, &mut x691, x689, x673, 0xa2f79cd6);
2264  let mut x692: u32 = 0;
2265  let mut x693: fiat_25519_scalar_u1 = 0;
2266  fiat_25519_scalar_subborrowx_u32(&mut x692, &mut x693, x691, x675, 0x14def9de);
2267  let mut x694: u32 = 0;
2268  let mut x695: fiat_25519_scalar_u1 = 0;
2269  fiat_25519_scalar_subborrowx_u32(&mut x694, &mut x695, x693, x677, (0x0 as u32));
2270  let mut x696: u32 = 0;
2271  let mut x697: fiat_25519_scalar_u1 = 0;
2272  fiat_25519_scalar_subborrowx_u32(&mut x696, &mut x697, x695, x679, (0x0 as u32));
2273  let mut x698: u32 = 0;
2274  let mut x699: fiat_25519_scalar_u1 = 0;
2275  fiat_25519_scalar_subborrowx_u32(&mut x698, &mut x699, x697, x681, (0x0 as u32));
2276  let mut x700: u32 = 0;
2277  let mut x701: fiat_25519_scalar_u1 = 0;
2278  fiat_25519_scalar_subborrowx_u32(&mut x700, &mut x701, x699, x683, 0x10000000);
2279  let mut x702: u32 = 0;
2280  let mut x703: fiat_25519_scalar_u1 = 0;
2281  fiat_25519_scalar_subborrowx_u32(&mut x702, &mut x703, x701, x685, (0x0 as u32));
2282  let mut x704: u32 = 0;
2283  fiat_25519_scalar_cmovznz_u32(&mut x704, x703, x686, x669);
2284  let mut x705: u32 = 0;
2285  fiat_25519_scalar_cmovznz_u32(&mut x705, x703, x688, x671);
2286  let mut x706: u32 = 0;
2287  fiat_25519_scalar_cmovznz_u32(&mut x706, x703, x690, x673);
2288  let mut x707: u32 = 0;
2289  fiat_25519_scalar_cmovznz_u32(&mut x707, x703, x692, x675);
2290  let mut x708: u32 = 0;
2291  fiat_25519_scalar_cmovznz_u32(&mut x708, x703, x694, x677);
2292  let mut x709: u32 = 0;
2293  fiat_25519_scalar_cmovznz_u32(&mut x709, x703, x696, x679);
2294  let mut x710: u32 = 0;
2295  fiat_25519_scalar_cmovznz_u32(&mut x710, x703, x698, x681);
2296  let mut x711: u32 = 0;
2297  fiat_25519_scalar_cmovznz_u32(&mut x711, x703, x700, x683);
2298  out1[0] = x704;
2299  out1[1] = x705;
2300  out1[2] = x706;
2301  out1[3] = x707;
2302  out1[4] = x708;
2303  out1[5] = x709;
2304  out1[6] = x710;
2305  out1[7] = x711;
2306}
2307
2308/// The function fiat_25519_scalar_add adds two field elements in the Montgomery domain.
2309///
2310/// Preconditions:
2311///   0 ≤ eval arg1 < m
2312///   0 ≤ eval arg2 < m
2313/// Postconditions:
2314///   eval (from_montgomery out1) mod m = (eval (from_montgomery arg1) + eval (from_montgomery arg2)) mod m
2315///   0 ≤ eval out1 < m
2316///
2317#[inline]
2318pub fn fiat_25519_scalar_add(out1: &mut fiat_25519_scalar_montgomery_domain_field_element, arg1: &fiat_25519_scalar_montgomery_domain_field_element, arg2: &fiat_25519_scalar_montgomery_domain_field_element) {
2319  let mut x1: u32 = 0;
2320  let mut x2: fiat_25519_scalar_u1 = 0;
2321  fiat_25519_scalar_addcarryx_u32(&mut x1, &mut x2, 0x0, (arg1[0]), (arg2[0]));
2322  let mut x3: u32 = 0;
2323  let mut x4: fiat_25519_scalar_u1 = 0;
2324  fiat_25519_scalar_addcarryx_u32(&mut x3, &mut x4, x2, (arg1[1]), (arg2[1]));
2325  let mut x5: u32 = 0;
2326  let mut x6: fiat_25519_scalar_u1 = 0;
2327  fiat_25519_scalar_addcarryx_u32(&mut x5, &mut x6, x4, (arg1[2]), (arg2[2]));
2328  let mut x7: u32 = 0;
2329  let mut x8: fiat_25519_scalar_u1 = 0;
2330  fiat_25519_scalar_addcarryx_u32(&mut x7, &mut x8, x6, (arg1[3]), (arg2[3]));
2331  let mut x9: u32 = 0;
2332  let mut x10: fiat_25519_scalar_u1 = 0;
2333  fiat_25519_scalar_addcarryx_u32(&mut x9, &mut x10, x8, (arg1[4]), (arg2[4]));
2334  let mut x11: u32 = 0;
2335  let mut x12: fiat_25519_scalar_u1 = 0;
2336  fiat_25519_scalar_addcarryx_u32(&mut x11, &mut x12, x10, (arg1[5]), (arg2[5]));
2337  let mut x13: u32 = 0;
2338  let mut x14: fiat_25519_scalar_u1 = 0;
2339  fiat_25519_scalar_addcarryx_u32(&mut x13, &mut x14, x12, (arg1[6]), (arg2[6]));
2340  let mut x15: u32 = 0;
2341  let mut x16: fiat_25519_scalar_u1 = 0;
2342  fiat_25519_scalar_addcarryx_u32(&mut x15, &mut x16, x14, (arg1[7]), (arg2[7]));
2343  let mut x17: u32 = 0;
2344  let mut x18: fiat_25519_scalar_u1 = 0;
2345  fiat_25519_scalar_subborrowx_u32(&mut x17, &mut x18, 0x0, x1, 0x5cf5d3ed);
2346  let mut x19: u32 = 0;
2347  let mut x20: fiat_25519_scalar_u1 = 0;
2348  fiat_25519_scalar_subborrowx_u32(&mut x19, &mut x20, x18, x3, 0x5812631a);
2349  let mut x21: u32 = 0;
2350  let mut x22: fiat_25519_scalar_u1 = 0;
2351  fiat_25519_scalar_subborrowx_u32(&mut x21, &mut x22, x20, x5, 0xa2f79cd6);
2352  let mut x23: u32 = 0;
2353  let mut x24: fiat_25519_scalar_u1 = 0;
2354  fiat_25519_scalar_subborrowx_u32(&mut x23, &mut x24, x22, x7, 0x14def9de);
2355  let mut x25: u32 = 0;
2356  let mut x26: fiat_25519_scalar_u1 = 0;
2357  fiat_25519_scalar_subborrowx_u32(&mut x25, &mut x26, x24, x9, (0x0 as u32));
2358  let mut x27: u32 = 0;
2359  let mut x28: fiat_25519_scalar_u1 = 0;
2360  fiat_25519_scalar_subborrowx_u32(&mut x27, &mut x28, x26, x11, (0x0 as u32));
2361  let mut x29: u32 = 0;
2362  let mut x30: fiat_25519_scalar_u1 = 0;
2363  fiat_25519_scalar_subborrowx_u32(&mut x29, &mut x30, x28, x13, (0x0 as u32));
2364  let mut x31: u32 = 0;
2365  let mut x32: fiat_25519_scalar_u1 = 0;
2366  fiat_25519_scalar_subborrowx_u32(&mut x31, &mut x32, x30, x15, 0x10000000);
2367  let mut x33: u32 = 0;
2368  let mut x34: fiat_25519_scalar_u1 = 0;
2369  fiat_25519_scalar_subborrowx_u32(&mut x33, &mut x34, x32, (x16 as u32), (0x0 as u32));
2370  let mut x35: u32 = 0;
2371  fiat_25519_scalar_cmovznz_u32(&mut x35, x34, x17, x1);
2372  let mut x36: u32 = 0;
2373  fiat_25519_scalar_cmovznz_u32(&mut x36, x34, x19, x3);
2374  let mut x37: u32 = 0;
2375  fiat_25519_scalar_cmovznz_u32(&mut x37, x34, x21, x5);
2376  let mut x38: u32 = 0;
2377  fiat_25519_scalar_cmovznz_u32(&mut x38, x34, x23, x7);
2378  let mut x39: u32 = 0;
2379  fiat_25519_scalar_cmovznz_u32(&mut x39, x34, x25, x9);
2380  let mut x40: u32 = 0;
2381  fiat_25519_scalar_cmovznz_u32(&mut x40, x34, x27, x11);
2382  let mut x41: u32 = 0;
2383  fiat_25519_scalar_cmovznz_u32(&mut x41, x34, x29, x13);
2384  let mut x42: u32 = 0;
2385  fiat_25519_scalar_cmovznz_u32(&mut x42, x34, x31, x15);
2386  out1[0] = x35;
2387  out1[1] = x36;
2388  out1[2] = x37;
2389  out1[3] = x38;
2390  out1[4] = x39;
2391  out1[5] = x40;
2392  out1[6] = x41;
2393  out1[7] = x42;
2394}
2395
2396/// The function fiat_25519_scalar_sub subtracts two field elements in the Montgomery domain.
2397///
2398/// Preconditions:
2399///   0 ≤ eval arg1 < m
2400///   0 ≤ eval arg2 < m
2401/// Postconditions:
2402///   eval (from_montgomery out1) mod m = (eval (from_montgomery arg1) - eval (from_montgomery arg2)) mod m
2403///   0 ≤ eval out1 < m
2404///
2405#[inline]
2406pub fn fiat_25519_scalar_sub(out1: &mut fiat_25519_scalar_montgomery_domain_field_element, arg1: &fiat_25519_scalar_montgomery_domain_field_element, arg2: &fiat_25519_scalar_montgomery_domain_field_element) {
2407  let mut x1: u32 = 0;
2408  let mut x2: fiat_25519_scalar_u1 = 0;
2409  fiat_25519_scalar_subborrowx_u32(&mut x1, &mut x2, 0x0, (arg1[0]), (arg2[0]));
2410  let mut x3: u32 = 0;
2411  let mut x4: fiat_25519_scalar_u1 = 0;
2412  fiat_25519_scalar_subborrowx_u32(&mut x3, &mut x4, x2, (arg1[1]), (arg2[1]));
2413  let mut x5: u32 = 0;
2414  let mut x6: fiat_25519_scalar_u1 = 0;
2415  fiat_25519_scalar_subborrowx_u32(&mut x5, &mut x6, x4, (arg1[2]), (arg2[2]));
2416  let mut x7: u32 = 0;
2417  let mut x8: fiat_25519_scalar_u1 = 0;
2418  fiat_25519_scalar_subborrowx_u32(&mut x7, &mut x8, x6, (arg1[3]), (arg2[3]));
2419  let mut x9: u32 = 0;
2420  let mut x10: fiat_25519_scalar_u1 = 0;
2421  fiat_25519_scalar_subborrowx_u32(&mut x9, &mut x10, x8, (arg1[4]), (arg2[4]));
2422  let mut x11: u32 = 0;
2423  let mut x12: fiat_25519_scalar_u1 = 0;
2424  fiat_25519_scalar_subborrowx_u32(&mut x11, &mut x12, x10, (arg1[5]), (arg2[5]));
2425  let mut x13: u32 = 0;
2426  let mut x14: fiat_25519_scalar_u1 = 0;
2427  fiat_25519_scalar_subborrowx_u32(&mut x13, &mut x14, x12, (arg1[6]), (arg2[6]));
2428  let mut x15: u32 = 0;
2429  let mut x16: fiat_25519_scalar_u1 = 0;
2430  fiat_25519_scalar_subborrowx_u32(&mut x15, &mut x16, x14, (arg1[7]), (arg2[7]));
2431  let mut x17: u32 = 0;
2432  fiat_25519_scalar_cmovznz_u32(&mut x17, x16, (0x0 as u32), 0xffffffff);
2433  let mut x18: u32 = 0;
2434  let mut x19: fiat_25519_scalar_u1 = 0;
2435  fiat_25519_scalar_addcarryx_u32(&mut x18, &mut x19, 0x0, x1, (x17 & 0x5cf5d3ed));
2436  let mut x20: u32 = 0;
2437  let mut x21: fiat_25519_scalar_u1 = 0;
2438  fiat_25519_scalar_addcarryx_u32(&mut x20, &mut x21, x19, x3, (x17 & 0x5812631a));
2439  let mut x22: u32 = 0;
2440  let mut x23: fiat_25519_scalar_u1 = 0;
2441  fiat_25519_scalar_addcarryx_u32(&mut x22, &mut x23, x21, x5, (x17 & 0xa2f79cd6));
2442  let mut x24: u32 = 0;
2443  let mut x25: fiat_25519_scalar_u1 = 0;
2444  fiat_25519_scalar_addcarryx_u32(&mut x24, &mut x25, x23, x7, (x17 & 0x14def9de));
2445  let mut x26: u32 = 0;
2446  let mut x27: fiat_25519_scalar_u1 = 0;
2447  fiat_25519_scalar_addcarryx_u32(&mut x26, &mut x27, x25, x9, (0x0 as u32));
2448  let mut x28: u32 = 0;
2449  let mut x29: fiat_25519_scalar_u1 = 0;
2450  fiat_25519_scalar_addcarryx_u32(&mut x28, &mut x29, x27, x11, (0x0 as u32));
2451  let mut x30: u32 = 0;
2452  let mut x31: fiat_25519_scalar_u1 = 0;
2453  fiat_25519_scalar_addcarryx_u32(&mut x30, &mut x31, x29, x13, (0x0 as u32));
2454  let mut x32: u32 = 0;
2455  let mut x33: fiat_25519_scalar_u1 = 0;
2456  fiat_25519_scalar_addcarryx_u32(&mut x32, &mut x33, x31, x15, (x17 & 0x10000000));
2457  out1[0] = x18;
2458  out1[1] = x20;
2459  out1[2] = x22;
2460  out1[3] = x24;
2461  out1[4] = x26;
2462  out1[5] = x28;
2463  out1[6] = x30;
2464  out1[7] = x32;
2465}
2466
2467/// The function fiat_25519_scalar_opp negates a field element in the Montgomery domain.
2468///
2469/// Preconditions:
2470///   0 ≤ eval arg1 < m
2471/// Postconditions:
2472///   eval (from_montgomery out1) mod m = -eval (from_montgomery arg1) mod m
2473///   0 ≤ eval out1 < m
2474///
2475#[inline]
2476pub fn fiat_25519_scalar_opp(out1: &mut fiat_25519_scalar_montgomery_domain_field_element, arg1: &fiat_25519_scalar_montgomery_domain_field_element) {
2477  let mut x1: u32 = 0;
2478  let mut x2: fiat_25519_scalar_u1 = 0;
2479  fiat_25519_scalar_subborrowx_u32(&mut x1, &mut x2, 0x0, (0x0 as u32), (arg1[0]));
2480  let mut x3: u32 = 0;
2481  let mut x4: fiat_25519_scalar_u1 = 0;
2482  fiat_25519_scalar_subborrowx_u32(&mut x3, &mut x4, x2, (0x0 as u32), (arg1[1]));
2483  let mut x5: u32 = 0;
2484  let mut x6: fiat_25519_scalar_u1 = 0;
2485  fiat_25519_scalar_subborrowx_u32(&mut x5, &mut x6, x4, (0x0 as u32), (arg1[2]));
2486  let mut x7: u32 = 0;
2487  let mut x8: fiat_25519_scalar_u1 = 0;
2488  fiat_25519_scalar_subborrowx_u32(&mut x7, &mut x8, x6, (0x0 as u32), (arg1[3]));
2489  let mut x9: u32 = 0;
2490  let mut x10: fiat_25519_scalar_u1 = 0;
2491  fiat_25519_scalar_subborrowx_u32(&mut x9, &mut x10, x8, (0x0 as u32), (arg1[4]));
2492  let mut x11: u32 = 0;
2493  let mut x12: fiat_25519_scalar_u1 = 0;
2494  fiat_25519_scalar_subborrowx_u32(&mut x11, &mut x12, x10, (0x0 as u32), (arg1[5]));
2495  let mut x13: u32 = 0;
2496  let mut x14: fiat_25519_scalar_u1 = 0;
2497  fiat_25519_scalar_subborrowx_u32(&mut x13, &mut x14, x12, (0x0 as u32), (arg1[6]));
2498  let mut x15: u32 = 0;
2499  let mut x16: fiat_25519_scalar_u1 = 0;
2500  fiat_25519_scalar_subborrowx_u32(&mut x15, &mut x16, x14, (0x0 as u32), (arg1[7]));
2501  let mut x17: u32 = 0;
2502  fiat_25519_scalar_cmovznz_u32(&mut x17, x16, (0x0 as u32), 0xffffffff);
2503  let mut x18: u32 = 0;
2504  let mut x19: fiat_25519_scalar_u1 = 0;
2505  fiat_25519_scalar_addcarryx_u32(&mut x18, &mut x19, 0x0, x1, (x17 & 0x5cf5d3ed));
2506  let mut x20: u32 = 0;
2507  let mut x21: fiat_25519_scalar_u1 = 0;
2508  fiat_25519_scalar_addcarryx_u32(&mut x20, &mut x21, x19, x3, (x17 & 0x5812631a));
2509  let mut x22: u32 = 0;
2510  let mut x23: fiat_25519_scalar_u1 = 0;
2511  fiat_25519_scalar_addcarryx_u32(&mut x22, &mut x23, x21, x5, (x17 & 0xa2f79cd6));
2512  let mut x24: u32 = 0;
2513  let mut x25: fiat_25519_scalar_u1 = 0;
2514  fiat_25519_scalar_addcarryx_u32(&mut x24, &mut x25, x23, x7, (x17 & 0x14def9de));
2515  let mut x26: u32 = 0;
2516  let mut x27: fiat_25519_scalar_u1 = 0;
2517  fiat_25519_scalar_addcarryx_u32(&mut x26, &mut x27, x25, x9, (0x0 as u32));
2518  let mut x28: u32 = 0;
2519  let mut x29: fiat_25519_scalar_u1 = 0;
2520  fiat_25519_scalar_addcarryx_u32(&mut x28, &mut x29, x27, x11, (0x0 as u32));
2521  let mut x30: u32 = 0;
2522  let mut x31: fiat_25519_scalar_u1 = 0;
2523  fiat_25519_scalar_addcarryx_u32(&mut x30, &mut x31, x29, x13, (0x0 as u32));
2524  let mut x32: u32 = 0;
2525  let mut x33: fiat_25519_scalar_u1 = 0;
2526  fiat_25519_scalar_addcarryx_u32(&mut x32, &mut x33, x31, x15, (x17 & 0x10000000));
2527  out1[0] = x18;
2528  out1[1] = x20;
2529  out1[2] = x22;
2530  out1[3] = x24;
2531  out1[4] = x26;
2532  out1[5] = x28;
2533  out1[6] = x30;
2534  out1[7] = x32;
2535}
2536
2537/// The function fiat_25519_scalar_from_montgomery translates a field element out of the Montgomery domain.
2538///
2539/// Preconditions:
2540///   0 ≤ eval arg1 < m
2541/// Postconditions:
2542///   eval out1 mod m = (eval arg1 * ((2^32)⁻¹ mod m)^8) mod m
2543///   0 ≤ eval out1 < m
2544///
2545#[inline]
2546pub fn fiat_25519_scalar_from_montgomery(out1: &mut fiat_25519_scalar_non_montgomery_domain_field_element, arg1: &fiat_25519_scalar_montgomery_domain_field_element) {
2547  let x1: u32 = (arg1[0]);
2548  let mut x2: u32 = 0;
2549  let mut x3: u32 = 0;
2550  fiat_25519_scalar_mulx_u32(&mut x2, &mut x3, x1, 0x12547e1b);
2551  let mut x4: u32 = 0;
2552  let mut x5: u32 = 0;
2553  fiat_25519_scalar_mulx_u32(&mut x4, &mut x5, x2, 0x10000000);
2554  let mut x6: u32 = 0;
2555  let mut x7: u32 = 0;
2556  fiat_25519_scalar_mulx_u32(&mut x6, &mut x7, x2, 0x14def9de);
2557  let mut x8: u32 = 0;
2558  let mut x9: u32 = 0;
2559  fiat_25519_scalar_mulx_u32(&mut x8, &mut x9, x2, 0xa2f79cd6);
2560  let mut x10: u32 = 0;
2561  let mut x11: u32 = 0;
2562  fiat_25519_scalar_mulx_u32(&mut x10, &mut x11, x2, 0x5812631a);
2563  let mut x12: u32 = 0;
2564  let mut x13: u32 = 0;
2565  fiat_25519_scalar_mulx_u32(&mut x12, &mut x13, x2, 0x5cf5d3ed);
2566  let mut x14: u32 = 0;
2567  let mut x15: fiat_25519_scalar_u1 = 0;
2568  fiat_25519_scalar_addcarryx_u32(&mut x14, &mut x15, 0x0, x13, x10);
2569  let mut x16: u32 = 0;
2570  let mut x17: fiat_25519_scalar_u1 = 0;
2571  fiat_25519_scalar_addcarryx_u32(&mut x16, &mut x17, x15, x11, x8);
2572  let mut x18: u32 = 0;
2573  let mut x19: fiat_25519_scalar_u1 = 0;
2574  fiat_25519_scalar_addcarryx_u32(&mut x18, &mut x19, x17, x9, x6);
2575  let mut x20: u32 = 0;
2576  let mut x21: fiat_25519_scalar_u1 = 0;
2577  fiat_25519_scalar_addcarryx_u32(&mut x20, &mut x21, 0x0, x1, x12);
2578  let mut x22: u32 = 0;
2579  let mut x23: fiat_25519_scalar_u1 = 0;
2580  fiat_25519_scalar_addcarryx_u32(&mut x22, &mut x23, x21, (0x0 as u32), x14);
2581  let mut x24: u32 = 0;
2582  let mut x25: fiat_25519_scalar_u1 = 0;
2583  fiat_25519_scalar_addcarryx_u32(&mut x24, &mut x25, x23, (0x0 as u32), x16);
2584  let mut x26: u32 = 0;
2585  let mut x27: fiat_25519_scalar_u1 = 0;
2586  fiat_25519_scalar_addcarryx_u32(&mut x26, &mut x27, x25, (0x0 as u32), x18);
2587  let mut x28: u32 = 0;
2588  let mut x29: fiat_25519_scalar_u1 = 0;
2589  fiat_25519_scalar_addcarryx_u32(&mut x28, &mut x29, 0x0, x22, (arg1[1]));
2590  let mut x30: u32 = 0;
2591  let mut x31: fiat_25519_scalar_u1 = 0;
2592  fiat_25519_scalar_addcarryx_u32(&mut x30, &mut x31, x29, x24, (0x0 as u32));
2593  let mut x32: u32 = 0;
2594  let mut x33: fiat_25519_scalar_u1 = 0;
2595  fiat_25519_scalar_addcarryx_u32(&mut x32, &mut x33, x31, x26, (0x0 as u32));
2596  let mut x34: u32 = 0;
2597  let mut x35: u32 = 0;
2598  fiat_25519_scalar_mulx_u32(&mut x34, &mut x35, x28, 0x12547e1b);
2599  let mut x36: u32 = 0;
2600  let mut x37: u32 = 0;
2601  fiat_25519_scalar_mulx_u32(&mut x36, &mut x37, x34, 0x10000000);
2602  let mut x38: u32 = 0;
2603  let mut x39: u32 = 0;
2604  fiat_25519_scalar_mulx_u32(&mut x38, &mut x39, x34, 0x14def9de);
2605  let mut x40: u32 = 0;
2606  let mut x41: u32 = 0;
2607  fiat_25519_scalar_mulx_u32(&mut x40, &mut x41, x34, 0xa2f79cd6);
2608  let mut x42: u32 = 0;
2609  let mut x43: u32 = 0;
2610  fiat_25519_scalar_mulx_u32(&mut x42, &mut x43, x34, 0x5812631a);
2611  let mut x44: u32 = 0;
2612  let mut x45: u32 = 0;
2613  fiat_25519_scalar_mulx_u32(&mut x44, &mut x45, x34, 0x5cf5d3ed);
2614  let mut x46: u32 = 0;
2615  let mut x47: fiat_25519_scalar_u1 = 0;
2616  fiat_25519_scalar_addcarryx_u32(&mut x46, &mut x47, 0x0, x45, x42);
2617  let mut x48: u32 = 0;
2618  let mut x49: fiat_25519_scalar_u1 = 0;
2619  fiat_25519_scalar_addcarryx_u32(&mut x48, &mut x49, x47, x43, x40);
2620  let mut x50: u32 = 0;
2621  let mut x51: fiat_25519_scalar_u1 = 0;
2622  fiat_25519_scalar_addcarryx_u32(&mut x50, &mut x51, x49, x41, x38);
2623  let mut x52: u32 = 0;
2624  let mut x53: fiat_25519_scalar_u1 = 0;
2625  fiat_25519_scalar_addcarryx_u32(&mut x52, &mut x53, 0x0, x28, x44);
2626  let mut x54: u32 = 0;
2627  let mut x55: fiat_25519_scalar_u1 = 0;
2628  fiat_25519_scalar_addcarryx_u32(&mut x54, &mut x55, x53, x30, x46);
2629  let mut x56: u32 = 0;
2630  let mut x57: fiat_25519_scalar_u1 = 0;
2631  fiat_25519_scalar_addcarryx_u32(&mut x56, &mut x57, x55, x32, x48);
2632  let mut x58: u32 = 0;
2633  let mut x59: fiat_25519_scalar_u1 = 0;
2634  fiat_25519_scalar_addcarryx_u32(&mut x58, &mut x59, x57, ((x33 as u32) + ((x27 as u32) + ((x19 as u32) + x7))), x50);
2635  let mut x60: u32 = 0;
2636  let mut x61: fiat_25519_scalar_u1 = 0;
2637  fiat_25519_scalar_addcarryx_u32(&mut x60, &mut x61, 0x0, x5, x36);
2638  let mut x62: u32 = 0;
2639  let mut x63: fiat_25519_scalar_u1 = 0;
2640  fiat_25519_scalar_addcarryx_u32(&mut x62, &mut x63, 0x0, x54, (arg1[2]));
2641  let mut x64: u32 = 0;
2642  let mut x65: fiat_25519_scalar_u1 = 0;
2643  fiat_25519_scalar_addcarryx_u32(&mut x64, &mut x65, x63, x56, (0x0 as u32));
2644  let mut x66: u32 = 0;
2645  let mut x67: fiat_25519_scalar_u1 = 0;
2646  fiat_25519_scalar_addcarryx_u32(&mut x66, &mut x67, x65, x58, (0x0 as u32));
2647  let mut x68: u32 = 0;
2648  let mut x69: u32 = 0;
2649  fiat_25519_scalar_mulx_u32(&mut x68, &mut x69, x62, 0x12547e1b);
2650  let mut x70: u32 = 0;
2651  let mut x71: u32 = 0;
2652  fiat_25519_scalar_mulx_u32(&mut x70, &mut x71, x68, 0x10000000);
2653  let mut x72: u32 = 0;
2654  let mut x73: u32 = 0;
2655  fiat_25519_scalar_mulx_u32(&mut x72, &mut x73, x68, 0x14def9de);
2656  let mut x74: u32 = 0;
2657  let mut x75: u32 = 0;
2658  fiat_25519_scalar_mulx_u32(&mut x74, &mut x75, x68, 0xa2f79cd6);
2659  let mut x76: u32 = 0;
2660  let mut x77: u32 = 0;
2661  fiat_25519_scalar_mulx_u32(&mut x76, &mut x77, x68, 0x5812631a);
2662  let mut x78: u32 = 0;
2663  let mut x79: u32 = 0;
2664  fiat_25519_scalar_mulx_u32(&mut x78, &mut x79, x68, 0x5cf5d3ed);
2665  let mut x80: u32 = 0;
2666  let mut x81: fiat_25519_scalar_u1 = 0;
2667  fiat_25519_scalar_addcarryx_u32(&mut x80, &mut x81, 0x0, x79, x76);
2668  let mut x82: u32 = 0;
2669  let mut x83: fiat_25519_scalar_u1 = 0;
2670  fiat_25519_scalar_addcarryx_u32(&mut x82, &mut x83, x81, x77, x74);
2671  let mut x84: u32 = 0;
2672  let mut x85: fiat_25519_scalar_u1 = 0;
2673  fiat_25519_scalar_addcarryx_u32(&mut x84, &mut x85, x83, x75, x72);
2674  let mut x86: u32 = 0;
2675  let mut x87: fiat_25519_scalar_u1 = 0;
2676  fiat_25519_scalar_addcarryx_u32(&mut x86, &mut x87, 0x0, x62, x78);
2677  let mut x88: u32 = 0;
2678  let mut x89: fiat_25519_scalar_u1 = 0;
2679  fiat_25519_scalar_addcarryx_u32(&mut x88, &mut x89, x87, x64, x80);
2680  let mut x90: u32 = 0;
2681  let mut x91: fiat_25519_scalar_u1 = 0;
2682  fiat_25519_scalar_addcarryx_u32(&mut x90, &mut x91, x89, x66, x82);
2683  let mut x92: u32 = 0;
2684  let mut x93: fiat_25519_scalar_u1 = 0;
2685  fiat_25519_scalar_addcarryx_u32(&mut x92, &mut x93, x91, ((x67 as u32) + ((x59 as u32) + ((x51 as u32) + x39))), x84);
2686  let mut x94: u32 = 0;
2687  let mut x95: fiat_25519_scalar_u1 = 0;
2688  fiat_25519_scalar_addcarryx_u32(&mut x94, &mut x95, 0x0, ((x61 as u32) + x37), x70);
2689  let mut x96: u32 = 0;
2690  let mut x97: fiat_25519_scalar_u1 = 0;
2691  fiat_25519_scalar_addcarryx_u32(&mut x96, &mut x97, 0x0, x88, (arg1[3]));
2692  let mut x98: u32 = 0;
2693  let mut x99: fiat_25519_scalar_u1 = 0;
2694  fiat_25519_scalar_addcarryx_u32(&mut x98, &mut x99, x97, x90, (0x0 as u32));
2695  let mut x100: u32 = 0;
2696  let mut x101: fiat_25519_scalar_u1 = 0;
2697  fiat_25519_scalar_addcarryx_u32(&mut x100, &mut x101, x99, x92, (0x0 as u32));
2698  let mut x102: u32 = 0;
2699  let mut x103: u32 = 0;
2700  fiat_25519_scalar_mulx_u32(&mut x102, &mut x103, x96, 0x12547e1b);
2701  let mut x104: u32 = 0;
2702  let mut x105: u32 = 0;
2703  fiat_25519_scalar_mulx_u32(&mut x104, &mut x105, x102, 0x10000000);
2704  let mut x106: u32 = 0;
2705  let mut x107: u32 = 0;
2706  fiat_25519_scalar_mulx_u32(&mut x106, &mut x107, x102, 0x14def9de);
2707  let mut x108: u32 = 0;
2708  let mut x109: u32 = 0;
2709  fiat_25519_scalar_mulx_u32(&mut x108, &mut x109, x102, 0xa2f79cd6);
2710  let mut x110: u32 = 0;
2711  let mut x111: u32 = 0;
2712  fiat_25519_scalar_mulx_u32(&mut x110, &mut x111, x102, 0x5812631a);
2713  let mut x112: u32 = 0;
2714  let mut x113: u32 = 0;
2715  fiat_25519_scalar_mulx_u32(&mut x112, &mut x113, x102, 0x5cf5d3ed);
2716  let mut x114: u32 = 0;
2717  let mut x115: fiat_25519_scalar_u1 = 0;
2718  fiat_25519_scalar_addcarryx_u32(&mut x114, &mut x115, 0x0, x113, x110);
2719  let mut x116: u32 = 0;
2720  let mut x117: fiat_25519_scalar_u1 = 0;
2721  fiat_25519_scalar_addcarryx_u32(&mut x116, &mut x117, x115, x111, x108);
2722  let mut x118: u32 = 0;
2723  let mut x119: fiat_25519_scalar_u1 = 0;
2724  fiat_25519_scalar_addcarryx_u32(&mut x118, &mut x119, x117, x109, x106);
2725  let mut x120: u32 = 0;
2726  let mut x121: fiat_25519_scalar_u1 = 0;
2727  fiat_25519_scalar_addcarryx_u32(&mut x120, &mut x121, 0x0, x96, x112);
2728  let mut x122: u32 = 0;
2729  let mut x123: fiat_25519_scalar_u1 = 0;
2730  fiat_25519_scalar_addcarryx_u32(&mut x122, &mut x123, x121, x98, x114);
2731  let mut x124: u32 = 0;
2732  let mut x125: fiat_25519_scalar_u1 = 0;
2733  fiat_25519_scalar_addcarryx_u32(&mut x124, &mut x125, x123, x100, x116);
2734  let mut x126: u32 = 0;
2735  let mut x127: fiat_25519_scalar_u1 = 0;
2736  fiat_25519_scalar_addcarryx_u32(&mut x126, &mut x127, x125, ((x101 as u32) + ((x93 as u32) + ((x85 as u32) + x73))), x118);
2737  let mut x128: u32 = 0;
2738  let mut x129: fiat_25519_scalar_u1 = 0;
2739  fiat_25519_scalar_addcarryx_u32(&mut x128, &mut x129, x127, x4, ((x119 as u32) + x107));
2740  let mut x130: u32 = 0;
2741  let mut x131: fiat_25519_scalar_u1 = 0;
2742  fiat_25519_scalar_addcarryx_u32(&mut x130, &mut x131, x129, x60, (0x0 as u32));
2743  let mut x132: u32 = 0;
2744  let mut x133: fiat_25519_scalar_u1 = 0;
2745  fiat_25519_scalar_addcarryx_u32(&mut x132, &mut x133, x131, x94, (0x0 as u32));
2746  let mut x134: u32 = 0;
2747  let mut x135: fiat_25519_scalar_u1 = 0;
2748  fiat_25519_scalar_addcarryx_u32(&mut x134, &mut x135, x133, ((x95 as u32) + x71), x104);
2749  let mut x136: u32 = 0;
2750  let mut x137: fiat_25519_scalar_u1 = 0;
2751  fiat_25519_scalar_addcarryx_u32(&mut x136, &mut x137, 0x0, x122, (arg1[4]));
2752  let mut x138: u32 = 0;
2753  let mut x139: fiat_25519_scalar_u1 = 0;
2754  fiat_25519_scalar_addcarryx_u32(&mut x138, &mut x139, x137, x124, (0x0 as u32));
2755  let mut x140: u32 = 0;
2756  let mut x141: fiat_25519_scalar_u1 = 0;
2757  fiat_25519_scalar_addcarryx_u32(&mut x140, &mut x141, x139, x126, (0x0 as u32));
2758  let mut x142: u32 = 0;
2759  let mut x143: fiat_25519_scalar_u1 = 0;
2760  fiat_25519_scalar_addcarryx_u32(&mut x142, &mut x143, x141, x128, (0x0 as u32));
2761  let mut x144: u32 = 0;
2762  let mut x145: fiat_25519_scalar_u1 = 0;
2763  fiat_25519_scalar_addcarryx_u32(&mut x144, &mut x145, x143, x130, (0x0 as u32));
2764  let mut x146: u32 = 0;
2765  let mut x147: fiat_25519_scalar_u1 = 0;
2766  fiat_25519_scalar_addcarryx_u32(&mut x146, &mut x147, x145, x132, (0x0 as u32));
2767  let mut x148: u32 = 0;
2768  let mut x149: fiat_25519_scalar_u1 = 0;
2769  fiat_25519_scalar_addcarryx_u32(&mut x148, &mut x149, x147, x134, (0x0 as u32));
2770  let mut x150: u32 = 0;
2771  let mut x151: u32 = 0;
2772  fiat_25519_scalar_mulx_u32(&mut x150, &mut x151, x136, 0x12547e1b);
2773  let mut x152: u32 = 0;
2774  let mut x153: u32 = 0;
2775  fiat_25519_scalar_mulx_u32(&mut x152, &mut x153, x150, 0x10000000);
2776  let mut x154: u32 = 0;
2777  let mut x155: u32 = 0;
2778  fiat_25519_scalar_mulx_u32(&mut x154, &mut x155, x150, 0x14def9de);
2779  let mut x156: u32 = 0;
2780  let mut x157: u32 = 0;
2781  fiat_25519_scalar_mulx_u32(&mut x156, &mut x157, x150, 0xa2f79cd6);
2782  let mut x158: u32 = 0;
2783  let mut x159: u32 = 0;
2784  fiat_25519_scalar_mulx_u32(&mut x158, &mut x159, x150, 0x5812631a);
2785  let mut x160: u32 = 0;
2786  let mut x161: u32 = 0;
2787  fiat_25519_scalar_mulx_u32(&mut x160, &mut x161, x150, 0x5cf5d3ed);
2788  let mut x162: u32 = 0;
2789  let mut x163: fiat_25519_scalar_u1 = 0;
2790  fiat_25519_scalar_addcarryx_u32(&mut x162, &mut x163, 0x0, x161, x158);
2791  let mut x164: u32 = 0;
2792  let mut x165: fiat_25519_scalar_u1 = 0;
2793  fiat_25519_scalar_addcarryx_u32(&mut x164, &mut x165, x163, x159, x156);
2794  let mut x166: u32 = 0;
2795  let mut x167: fiat_25519_scalar_u1 = 0;
2796  fiat_25519_scalar_addcarryx_u32(&mut x166, &mut x167, x165, x157, x154);
2797  let mut x168: u32 = 0;
2798  let mut x169: fiat_25519_scalar_u1 = 0;
2799  fiat_25519_scalar_addcarryx_u32(&mut x168, &mut x169, 0x0, x136, x160);
2800  let mut x170: u32 = 0;
2801  let mut x171: fiat_25519_scalar_u1 = 0;
2802  fiat_25519_scalar_addcarryx_u32(&mut x170, &mut x171, x169, x138, x162);
2803  let mut x172: u32 = 0;
2804  let mut x173: fiat_25519_scalar_u1 = 0;
2805  fiat_25519_scalar_addcarryx_u32(&mut x172, &mut x173, x171, x140, x164);
2806  let mut x174: u32 = 0;
2807  let mut x175: fiat_25519_scalar_u1 = 0;
2808  fiat_25519_scalar_addcarryx_u32(&mut x174, &mut x175, x173, x142, x166);
2809  let mut x176: u32 = 0;
2810  let mut x177: fiat_25519_scalar_u1 = 0;
2811  fiat_25519_scalar_addcarryx_u32(&mut x176, &mut x177, x175, x144, ((x167 as u32) + x155));
2812  let mut x178: u32 = 0;
2813  let mut x179: fiat_25519_scalar_u1 = 0;
2814  fiat_25519_scalar_addcarryx_u32(&mut x178, &mut x179, x177, x146, (0x0 as u32));
2815  let mut x180: u32 = 0;
2816  let mut x181: fiat_25519_scalar_u1 = 0;
2817  fiat_25519_scalar_addcarryx_u32(&mut x180, &mut x181, x179, x148, (0x0 as u32));
2818  let mut x182: u32 = 0;
2819  let mut x183: fiat_25519_scalar_u1 = 0;
2820  fiat_25519_scalar_addcarryx_u32(&mut x182, &mut x183, x181, ((x149 as u32) + ((x135 as u32) + x105)), x152);
2821  let mut x184: u32 = 0;
2822  let mut x185: fiat_25519_scalar_u1 = 0;
2823  fiat_25519_scalar_addcarryx_u32(&mut x184, &mut x185, 0x0, x170, (arg1[5]));
2824  let mut x186: u32 = 0;
2825  let mut x187: fiat_25519_scalar_u1 = 0;
2826  fiat_25519_scalar_addcarryx_u32(&mut x186, &mut x187, x185, x172, (0x0 as u32));
2827  let mut x188: u32 = 0;
2828  let mut x189: fiat_25519_scalar_u1 = 0;
2829  fiat_25519_scalar_addcarryx_u32(&mut x188, &mut x189, x187, x174, (0x0 as u32));
2830  let mut x190: u32 = 0;
2831  let mut x191: fiat_25519_scalar_u1 = 0;
2832  fiat_25519_scalar_addcarryx_u32(&mut x190, &mut x191, x189, x176, (0x0 as u32));
2833  let mut x192: u32 = 0;
2834  let mut x193: fiat_25519_scalar_u1 = 0;
2835  fiat_25519_scalar_addcarryx_u32(&mut x192, &mut x193, x191, x178, (0x0 as u32));
2836  let mut x194: u32 = 0;
2837  let mut x195: fiat_25519_scalar_u1 = 0;
2838  fiat_25519_scalar_addcarryx_u32(&mut x194, &mut x195, x193, x180, (0x0 as u32));
2839  let mut x196: u32 = 0;
2840  let mut x197: fiat_25519_scalar_u1 = 0;
2841  fiat_25519_scalar_addcarryx_u32(&mut x196, &mut x197, x195, x182, (0x0 as u32));
2842  let mut x198: u32 = 0;
2843  let mut x199: u32 = 0;
2844  fiat_25519_scalar_mulx_u32(&mut x198, &mut x199, x184, 0x12547e1b);
2845  let mut x200: u32 = 0;
2846  let mut x201: u32 = 0;
2847  fiat_25519_scalar_mulx_u32(&mut x200, &mut x201, x198, 0x10000000);
2848  let mut x202: u32 = 0;
2849  let mut x203: u32 = 0;
2850  fiat_25519_scalar_mulx_u32(&mut x202, &mut x203, x198, 0x14def9de);
2851  let mut x204: u32 = 0;
2852  let mut x205: u32 = 0;
2853  fiat_25519_scalar_mulx_u32(&mut x204, &mut x205, x198, 0xa2f79cd6);
2854  let mut x206: u32 = 0;
2855  let mut x207: u32 = 0;
2856  fiat_25519_scalar_mulx_u32(&mut x206, &mut x207, x198, 0x5812631a);
2857  let mut x208: u32 = 0;
2858  let mut x209: u32 = 0;
2859  fiat_25519_scalar_mulx_u32(&mut x208, &mut x209, x198, 0x5cf5d3ed);
2860  let mut x210: u32 = 0;
2861  let mut x211: fiat_25519_scalar_u1 = 0;
2862  fiat_25519_scalar_addcarryx_u32(&mut x210, &mut x211, 0x0, x209, x206);
2863  let mut x212: u32 = 0;
2864  let mut x213: fiat_25519_scalar_u1 = 0;
2865  fiat_25519_scalar_addcarryx_u32(&mut x212, &mut x213, x211, x207, x204);
2866  let mut x214: u32 = 0;
2867  let mut x215: fiat_25519_scalar_u1 = 0;
2868  fiat_25519_scalar_addcarryx_u32(&mut x214, &mut x215, x213, x205, x202);
2869  let mut x216: u32 = 0;
2870  let mut x217: fiat_25519_scalar_u1 = 0;
2871  fiat_25519_scalar_addcarryx_u32(&mut x216, &mut x217, 0x0, x184, x208);
2872  let mut x218: u32 = 0;
2873  let mut x219: fiat_25519_scalar_u1 = 0;
2874  fiat_25519_scalar_addcarryx_u32(&mut x218, &mut x219, x217, x186, x210);
2875  let mut x220: u32 = 0;
2876  let mut x221: fiat_25519_scalar_u1 = 0;
2877  fiat_25519_scalar_addcarryx_u32(&mut x220, &mut x221, x219, x188, x212);
2878  let mut x222: u32 = 0;
2879  let mut x223: fiat_25519_scalar_u1 = 0;
2880  fiat_25519_scalar_addcarryx_u32(&mut x222, &mut x223, x221, x190, x214);
2881  let mut x224: u32 = 0;
2882  let mut x225: fiat_25519_scalar_u1 = 0;
2883  fiat_25519_scalar_addcarryx_u32(&mut x224, &mut x225, x223, x192, ((x215 as u32) + x203));
2884  let mut x226: u32 = 0;
2885  let mut x227: fiat_25519_scalar_u1 = 0;
2886  fiat_25519_scalar_addcarryx_u32(&mut x226, &mut x227, x225, x194, (0x0 as u32));
2887  let mut x228: u32 = 0;
2888  let mut x229: fiat_25519_scalar_u1 = 0;
2889  fiat_25519_scalar_addcarryx_u32(&mut x228, &mut x229, x227, x196, (0x0 as u32));
2890  let mut x230: u32 = 0;
2891  let mut x231: fiat_25519_scalar_u1 = 0;
2892  fiat_25519_scalar_addcarryx_u32(&mut x230, &mut x231, x229, ((x197 as u32) + ((x183 as u32) + x153)), x200);
2893  let mut x232: u32 = 0;
2894  let mut x233: fiat_25519_scalar_u1 = 0;
2895  fiat_25519_scalar_addcarryx_u32(&mut x232, &mut x233, 0x0, x218, (arg1[6]));
2896  let mut x234: u32 = 0;
2897  let mut x235: fiat_25519_scalar_u1 = 0;
2898  fiat_25519_scalar_addcarryx_u32(&mut x234, &mut x235, x233, x220, (0x0 as u32));
2899  let mut x236: u32 = 0;
2900  let mut x237: fiat_25519_scalar_u1 = 0;
2901  fiat_25519_scalar_addcarryx_u32(&mut x236, &mut x237, x235, x222, (0x0 as u32));
2902  let mut x238: u32 = 0;
2903  let mut x239: fiat_25519_scalar_u1 = 0;
2904  fiat_25519_scalar_addcarryx_u32(&mut x238, &mut x239, x237, x224, (0x0 as u32));
2905  let mut x240: u32 = 0;
2906  let mut x241: fiat_25519_scalar_u1 = 0;
2907  fiat_25519_scalar_addcarryx_u32(&mut x240, &mut x241, x239, x226, (0x0 as u32));
2908  let mut x242: u32 = 0;
2909  let mut x243: fiat_25519_scalar_u1 = 0;
2910  fiat_25519_scalar_addcarryx_u32(&mut x242, &mut x243, x241, x228, (0x0 as u32));
2911  let mut x244: u32 = 0;
2912  let mut x245: fiat_25519_scalar_u1 = 0;
2913  fiat_25519_scalar_addcarryx_u32(&mut x244, &mut x245, x243, x230, (0x0 as u32));
2914  let mut x246: u32 = 0;
2915  let mut x247: u32 = 0;
2916  fiat_25519_scalar_mulx_u32(&mut x246, &mut x247, x232, 0x12547e1b);
2917  let mut x248: u32 = 0;
2918  let mut x249: u32 = 0;
2919  fiat_25519_scalar_mulx_u32(&mut x248, &mut x249, x246, 0x10000000);
2920  let mut x250: u32 = 0;
2921  let mut x251: u32 = 0;
2922  fiat_25519_scalar_mulx_u32(&mut x250, &mut x251, x246, 0x14def9de);
2923  let mut x252: u32 = 0;
2924  let mut x253: u32 = 0;
2925  fiat_25519_scalar_mulx_u32(&mut x252, &mut x253, x246, 0xa2f79cd6);
2926  let mut x254: u32 = 0;
2927  let mut x255: u32 = 0;
2928  fiat_25519_scalar_mulx_u32(&mut x254, &mut x255, x246, 0x5812631a);
2929  let mut x256: u32 = 0;
2930  let mut x257: u32 = 0;
2931  fiat_25519_scalar_mulx_u32(&mut x256, &mut x257, x246, 0x5cf5d3ed);
2932  let mut x258: u32 = 0;
2933  let mut x259: fiat_25519_scalar_u1 = 0;
2934  fiat_25519_scalar_addcarryx_u32(&mut x258, &mut x259, 0x0, x257, x254);
2935  let mut x260: u32 = 0;
2936  let mut x261: fiat_25519_scalar_u1 = 0;
2937  fiat_25519_scalar_addcarryx_u32(&mut x260, &mut x261, x259, x255, x252);
2938  let mut x262: u32 = 0;
2939  let mut x263: fiat_25519_scalar_u1 = 0;
2940  fiat_25519_scalar_addcarryx_u32(&mut x262, &mut x263, x261, x253, x250);
2941  let mut x264: u32 = 0;
2942  let mut x265: fiat_25519_scalar_u1 = 0;
2943  fiat_25519_scalar_addcarryx_u32(&mut x264, &mut x265, 0x0, x232, x256);
2944  let mut x266: u32 = 0;
2945  let mut x267: fiat_25519_scalar_u1 = 0;
2946  fiat_25519_scalar_addcarryx_u32(&mut x266, &mut x267, x265, x234, x258);
2947  let mut x268: u32 = 0;
2948  let mut x269: fiat_25519_scalar_u1 = 0;
2949  fiat_25519_scalar_addcarryx_u32(&mut x268, &mut x269, x267, x236, x260);
2950  let mut x270: u32 = 0;
2951  let mut x271: fiat_25519_scalar_u1 = 0;
2952  fiat_25519_scalar_addcarryx_u32(&mut x270, &mut x271, x269, x238, x262);
2953  let mut x272: u32 = 0;
2954  let mut x273: fiat_25519_scalar_u1 = 0;
2955  fiat_25519_scalar_addcarryx_u32(&mut x272, &mut x273, x271, x240, ((x263 as u32) + x251));
2956  let mut x274: u32 = 0;
2957  let mut x275: fiat_25519_scalar_u1 = 0;
2958  fiat_25519_scalar_addcarryx_u32(&mut x274, &mut x275, x273, x242, (0x0 as u32));
2959  let mut x276: u32 = 0;
2960  let mut x277: fiat_25519_scalar_u1 = 0;
2961  fiat_25519_scalar_addcarryx_u32(&mut x276, &mut x277, x275, x244, (0x0 as u32));
2962  let mut x278: u32 = 0;
2963  let mut x279: fiat_25519_scalar_u1 = 0;
2964  fiat_25519_scalar_addcarryx_u32(&mut x278, &mut x279, x277, ((x245 as u32) + ((x231 as u32) + x201)), x248);
2965  let mut x280: u32 = 0;
2966  let mut x281: fiat_25519_scalar_u1 = 0;
2967  fiat_25519_scalar_addcarryx_u32(&mut x280, &mut x281, 0x0, x266, (arg1[7]));
2968  let mut x282: u32 = 0;
2969  let mut x283: fiat_25519_scalar_u1 = 0;
2970  fiat_25519_scalar_addcarryx_u32(&mut x282, &mut x283, x281, x268, (0x0 as u32));
2971  let mut x284: u32 = 0;
2972  let mut x285: fiat_25519_scalar_u1 = 0;
2973  fiat_25519_scalar_addcarryx_u32(&mut x284, &mut x285, x283, x270, (0x0 as u32));
2974  let mut x286: u32 = 0;
2975  let mut x287: fiat_25519_scalar_u1 = 0;
2976  fiat_25519_scalar_addcarryx_u32(&mut x286, &mut x287, x285, x272, (0x0 as u32));
2977  let mut x288: u32 = 0;
2978  let mut x289: fiat_25519_scalar_u1 = 0;
2979  fiat_25519_scalar_addcarryx_u32(&mut x288, &mut x289, x287, x274, (0x0 as u32));
2980  let mut x290: u32 = 0;
2981  let mut x291: fiat_25519_scalar_u1 = 0;
2982  fiat_25519_scalar_addcarryx_u32(&mut x290, &mut x291, x289, x276, (0x0 as u32));
2983  let mut x292: u32 = 0;
2984  let mut x293: fiat_25519_scalar_u1 = 0;
2985  fiat_25519_scalar_addcarryx_u32(&mut x292, &mut x293, x291, x278, (0x0 as u32));
2986  let mut x294: u32 = 0;
2987  let mut x295: u32 = 0;
2988  fiat_25519_scalar_mulx_u32(&mut x294, &mut x295, x280, 0x12547e1b);
2989  let mut x296: u32 = 0;
2990  let mut x297: u32 = 0;
2991  fiat_25519_scalar_mulx_u32(&mut x296, &mut x297, x294, 0x10000000);
2992  let mut x298: u32 = 0;
2993  let mut x299: u32 = 0;
2994  fiat_25519_scalar_mulx_u32(&mut x298, &mut x299, x294, 0x14def9de);
2995  let mut x300: u32 = 0;
2996  let mut x301: u32 = 0;
2997  fiat_25519_scalar_mulx_u32(&mut x300, &mut x301, x294, 0xa2f79cd6);
2998  let mut x302: u32 = 0;
2999  let mut x303: u32 = 0;
3000  fiat_25519_scalar_mulx_u32(&mut x302, &mut x303, x294, 0x5812631a);
3001  let mut x304: u32 = 0;
3002  let mut x305: u32 = 0;
3003  fiat_25519_scalar_mulx_u32(&mut x304, &mut x305, x294, 0x5cf5d3ed);
3004  let mut x306: u32 = 0;
3005  let mut x307: fiat_25519_scalar_u1 = 0;
3006  fiat_25519_scalar_addcarryx_u32(&mut x306, &mut x307, 0x0, x305, x302);
3007  let mut x308: u32 = 0;
3008  let mut x309: fiat_25519_scalar_u1 = 0;
3009  fiat_25519_scalar_addcarryx_u32(&mut x308, &mut x309, x307, x303, x300);
3010  let mut x310: u32 = 0;
3011  let mut x311: fiat_25519_scalar_u1 = 0;
3012  fiat_25519_scalar_addcarryx_u32(&mut x310, &mut x311, x309, x301, x298);
3013  let mut x312: u32 = 0;
3014  let mut x313: fiat_25519_scalar_u1 = 0;
3015  fiat_25519_scalar_addcarryx_u32(&mut x312, &mut x313, 0x0, x280, x304);
3016  let mut x314: u32 = 0;
3017  let mut x315: fiat_25519_scalar_u1 = 0;
3018  fiat_25519_scalar_addcarryx_u32(&mut x314, &mut x315, x313, x282, x306);
3019  let mut x316: u32 = 0;
3020  let mut x317: fiat_25519_scalar_u1 = 0;
3021  fiat_25519_scalar_addcarryx_u32(&mut x316, &mut x317, x315, x284, x308);
3022  let mut x318: u32 = 0;
3023  let mut x319: fiat_25519_scalar_u1 = 0;
3024  fiat_25519_scalar_addcarryx_u32(&mut x318, &mut x319, x317, x286, x310);
3025  let mut x320: u32 = 0;
3026  let mut x321: fiat_25519_scalar_u1 = 0;
3027  fiat_25519_scalar_addcarryx_u32(&mut x320, &mut x321, x319, x288, ((x311 as u32) + x299));
3028  let mut x322: u32 = 0;
3029  let mut x323: fiat_25519_scalar_u1 = 0;
3030  fiat_25519_scalar_addcarryx_u32(&mut x322, &mut x323, x321, x290, (0x0 as u32));
3031  let mut x324: u32 = 0;
3032  let mut x325: fiat_25519_scalar_u1 = 0;
3033  fiat_25519_scalar_addcarryx_u32(&mut x324, &mut x325, x323, x292, (0x0 as u32));
3034  let mut x326: u32 = 0;
3035  let mut x327: fiat_25519_scalar_u1 = 0;
3036  fiat_25519_scalar_addcarryx_u32(&mut x326, &mut x327, x325, ((x293 as u32) + ((x279 as u32) + x249)), x296);
3037  let x328: u32 = ((x327 as u32) + x297);
3038  let mut x329: u32 = 0;
3039  let mut x330: fiat_25519_scalar_u1 = 0;
3040  fiat_25519_scalar_subborrowx_u32(&mut x329, &mut x330, 0x0, x314, 0x5cf5d3ed);
3041  let mut x331: u32 = 0;
3042  let mut x332: fiat_25519_scalar_u1 = 0;
3043  fiat_25519_scalar_subborrowx_u32(&mut x331, &mut x332, x330, x316, 0x5812631a);
3044  let mut x333: u32 = 0;
3045  let mut x334: fiat_25519_scalar_u1 = 0;
3046  fiat_25519_scalar_subborrowx_u32(&mut x333, &mut x334, x332, x318, 0xa2f79cd6);
3047  let mut x335: u32 = 0;
3048  let mut x336: fiat_25519_scalar_u1 = 0;
3049  fiat_25519_scalar_subborrowx_u32(&mut x335, &mut x336, x334, x320, 0x14def9de);
3050  let mut x337: u32 = 0;
3051  let mut x338: fiat_25519_scalar_u1 = 0;
3052  fiat_25519_scalar_subborrowx_u32(&mut x337, &mut x338, x336, x322, (0x0 as u32));
3053  let mut x339: u32 = 0;
3054  let mut x340: fiat_25519_scalar_u1 = 0;
3055  fiat_25519_scalar_subborrowx_u32(&mut x339, &mut x340, x338, x324, (0x0 as u32));
3056  let mut x341: u32 = 0;
3057  let mut x342: fiat_25519_scalar_u1 = 0;
3058  fiat_25519_scalar_subborrowx_u32(&mut x341, &mut x342, x340, x326, (0x0 as u32));
3059  let mut x343: u32 = 0;
3060  let mut x344: fiat_25519_scalar_u1 = 0;
3061  fiat_25519_scalar_subborrowx_u32(&mut x343, &mut x344, x342, x328, 0x10000000);
3062  let mut x345: u32 = 0;
3063  let mut x346: fiat_25519_scalar_u1 = 0;
3064  fiat_25519_scalar_subborrowx_u32(&mut x345, &mut x346, x344, (0x0 as u32), (0x0 as u32));
3065  let mut x347: u32 = 0;
3066  fiat_25519_scalar_cmovznz_u32(&mut x347, x346, x329, x314);
3067  let mut x348: u32 = 0;
3068  fiat_25519_scalar_cmovznz_u32(&mut x348, x346, x331, x316);
3069  let mut x349: u32 = 0;
3070  fiat_25519_scalar_cmovznz_u32(&mut x349, x346, x333, x318);
3071  let mut x350: u32 = 0;
3072  fiat_25519_scalar_cmovznz_u32(&mut x350, x346, x335, x320);
3073  let mut x351: u32 = 0;
3074  fiat_25519_scalar_cmovznz_u32(&mut x351, x346, x337, x322);
3075  let mut x352: u32 = 0;
3076  fiat_25519_scalar_cmovznz_u32(&mut x352, x346, x339, x324);
3077  let mut x353: u32 = 0;
3078  fiat_25519_scalar_cmovznz_u32(&mut x353, x346, x341, x326);
3079  let mut x354: u32 = 0;
3080  fiat_25519_scalar_cmovznz_u32(&mut x354, x346, x343, x328);
3081  out1[0] = x347;
3082  out1[1] = x348;
3083  out1[2] = x349;
3084  out1[3] = x350;
3085  out1[4] = x351;
3086  out1[5] = x352;
3087  out1[6] = x353;
3088  out1[7] = x354;
3089}
3090
3091/// The function fiat_25519_scalar_to_montgomery translates a field element into the Montgomery domain.
3092///
3093/// Preconditions:
3094///   0 ≤ eval arg1 < m
3095/// Postconditions:
3096///   eval (from_montgomery out1) mod m = eval arg1 mod m
3097///   0 ≤ eval out1 < m
3098///
3099#[inline]
3100pub fn fiat_25519_scalar_to_montgomery(out1: &mut fiat_25519_scalar_montgomery_domain_field_element, arg1: &fiat_25519_scalar_non_montgomery_domain_field_element) {
3101  let x1: u32 = (arg1[1]);
3102  let x2: u32 = (arg1[2]);
3103  let x3: u32 = (arg1[3]);
3104  let x4: u32 = (arg1[4]);
3105  let x5: u32 = (arg1[5]);
3106  let x6: u32 = (arg1[6]);
3107  let x7: u32 = (arg1[7]);
3108  let x8: u32 = (arg1[0]);
3109  let mut x9: u32 = 0;
3110  let mut x10: u32 = 0;
3111  fiat_25519_scalar_mulx_u32(&mut x9, &mut x10, x8, 0x399411b);
3112  let mut x11: u32 = 0;
3113  let mut x12: u32 = 0;
3114  fiat_25519_scalar_mulx_u32(&mut x11, &mut x12, x8, 0x7c309a3d);
3115  let mut x13: u32 = 0;
3116  let mut x14: u32 = 0;
3117  fiat_25519_scalar_mulx_u32(&mut x13, &mut x14, x8, 0xceec73d2);
3118  let mut x15: u32 = 0;
3119  let mut x16: u32 = 0;
3120  fiat_25519_scalar_mulx_u32(&mut x15, &mut x16, x8, 0x17f5be65);
3121  let mut x17: u32 = 0;
3122  let mut x18: u32 = 0;
3123  fiat_25519_scalar_mulx_u32(&mut x17, &mut x18, x8, 0xd00e1ba7);
3124  let mut x19: u32 = 0;
3125  let mut x20: u32 = 0;
3126  fiat_25519_scalar_mulx_u32(&mut x19, &mut x20, x8, 0x68859347);
3127  let mut x21: u32 = 0;
3128  let mut x22: u32 = 0;
3129  fiat_25519_scalar_mulx_u32(&mut x21, &mut x22, x8, 0xa40611e3);
3130  let mut x23: u32 = 0;
3131  let mut x24: u32 = 0;
3132  fiat_25519_scalar_mulx_u32(&mut x23, &mut x24, x8, 0x449c0f01);
3133  let mut x25: u32 = 0;
3134  let mut x26: fiat_25519_scalar_u1 = 0;
3135  fiat_25519_scalar_addcarryx_u32(&mut x25, &mut x26, 0x0, x24, x21);
3136  let mut x27: u32 = 0;
3137  let mut x28: fiat_25519_scalar_u1 = 0;
3138  fiat_25519_scalar_addcarryx_u32(&mut x27, &mut x28, x26, x22, x19);
3139  let mut x29: u32 = 0;
3140  let mut x30: fiat_25519_scalar_u1 = 0;
3141  fiat_25519_scalar_addcarryx_u32(&mut x29, &mut x30, x28, x20, x17);
3142  let mut x31: u32 = 0;
3143  let mut x32: fiat_25519_scalar_u1 = 0;
3144  fiat_25519_scalar_addcarryx_u32(&mut x31, &mut x32, x30, x18, x15);
3145  let mut x33: u32 = 0;
3146  let mut x34: fiat_25519_scalar_u1 = 0;
3147  fiat_25519_scalar_addcarryx_u32(&mut x33, &mut x34, x32, x16, x13);
3148  let mut x35: u32 = 0;
3149  let mut x36: fiat_25519_scalar_u1 = 0;
3150  fiat_25519_scalar_addcarryx_u32(&mut x35, &mut x36, x34, x14, x11);
3151  let mut x37: u32 = 0;
3152  let mut x38: fiat_25519_scalar_u1 = 0;
3153  fiat_25519_scalar_addcarryx_u32(&mut x37, &mut x38, x36, x12, x9);
3154  let mut x39: u32 = 0;
3155  let mut x40: u32 = 0;
3156  fiat_25519_scalar_mulx_u32(&mut x39, &mut x40, x23, 0x12547e1b);
3157  let mut x41: u32 = 0;
3158  let mut x42: u32 = 0;
3159  fiat_25519_scalar_mulx_u32(&mut x41, &mut x42, x39, 0x10000000);
3160  let mut x43: u32 = 0;
3161  let mut x44: u32 = 0;
3162  fiat_25519_scalar_mulx_u32(&mut x43, &mut x44, x39, 0x14def9de);
3163  let mut x45: u32 = 0;
3164  let mut x46: u32 = 0;
3165  fiat_25519_scalar_mulx_u32(&mut x45, &mut x46, x39, 0xa2f79cd6);
3166  let mut x47: u32 = 0;
3167  let mut x48: u32 = 0;
3168  fiat_25519_scalar_mulx_u32(&mut x47, &mut x48, x39, 0x5812631a);
3169  let mut x49: u32 = 0;
3170  let mut x50: u32 = 0;
3171  fiat_25519_scalar_mulx_u32(&mut x49, &mut x50, x39, 0x5cf5d3ed);
3172  let mut x51: u32 = 0;
3173  let mut x52: fiat_25519_scalar_u1 = 0;
3174  fiat_25519_scalar_addcarryx_u32(&mut x51, &mut x52, 0x0, x50, x47);
3175  let mut x53: u32 = 0;
3176  let mut x54: fiat_25519_scalar_u1 = 0;
3177  fiat_25519_scalar_addcarryx_u32(&mut x53, &mut x54, x52, x48, x45);
3178  let mut x55: u32 = 0;
3179  let mut x56: fiat_25519_scalar_u1 = 0;
3180  fiat_25519_scalar_addcarryx_u32(&mut x55, &mut x56, x54, x46, x43);
3181  let mut x57: u32 = 0;
3182  let mut x58: fiat_25519_scalar_u1 = 0;
3183  fiat_25519_scalar_addcarryx_u32(&mut x57, &mut x58, 0x0, x23, x49);
3184  let mut x59: u32 = 0;
3185  let mut x60: fiat_25519_scalar_u1 = 0;
3186  fiat_25519_scalar_addcarryx_u32(&mut x59, &mut x60, x58, x25, x51);
3187  let mut x61: u32 = 0;
3188  let mut x62: fiat_25519_scalar_u1 = 0;
3189  fiat_25519_scalar_addcarryx_u32(&mut x61, &mut x62, x60, x27, x53);
3190  let mut x63: u32 = 0;
3191  let mut x64: fiat_25519_scalar_u1 = 0;
3192  fiat_25519_scalar_addcarryx_u32(&mut x63, &mut x64, x62, x29, x55);
3193  let mut x65: u32 = 0;
3194  let mut x66: fiat_25519_scalar_u1 = 0;
3195  fiat_25519_scalar_addcarryx_u32(&mut x65, &mut x66, x64, x31, ((x56 as u32) + x44));
3196  let mut x67: u32 = 0;
3197  let mut x68: fiat_25519_scalar_u1 = 0;
3198  fiat_25519_scalar_addcarryx_u32(&mut x67, &mut x68, x66, x33, (0x0 as u32));
3199  let mut x69: u32 = 0;
3200  let mut x70: fiat_25519_scalar_u1 = 0;
3201  fiat_25519_scalar_addcarryx_u32(&mut x69, &mut x70, x68, x35, (0x0 as u32));
3202  let mut x71: u32 = 0;
3203  let mut x72: fiat_25519_scalar_u1 = 0;
3204  fiat_25519_scalar_addcarryx_u32(&mut x71, &mut x72, x70, x37, x41);
3205  let mut x73: u32 = 0;
3206  let mut x74: u32 = 0;
3207  fiat_25519_scalar_mulx_u32(&mut x73, &mut x74, x1, 0x399411b);
3208  let mut x75: u32 = 0;
3209  let mut x76: u32 = 0;
3210  fiat_25519_scalar_mulx_u32(&mut x75, &mut x76, x1, 0x7c309a3d);
3211  let mut x77: u32 = 0;
3212  let mut x78: u32 = 0;
3213  fiat_25519_scalar_mulx_u32(&mut x77, &mut x78, x1, 0xceec73d2);
3214  let mut x79: u32 = 0;
3215  let mut x80: u32 = 0;
3216  fiat_25519_scalar_mulx_u32(&mut x79, &mut x80, x1, 0x17f5be65);
3217  let mut x81: u32 = 0;
3218  let mut x82: u32 = 0;
3219  fiat_25519_scalar_mulx_u32(&mut x81, &mut x82, x1, 0xd00e1ba7);
3220  let mut x83: u32 = 0;
3221  let mut x84: u32 = 0;
3222  fiat_25519_scalar_mulx_u32(&mut x83, &mut x84, x1, 0x68859347);
3223  let mut x85: u32 = 0;
3224  let mut x86: u32 = 0;
3225  fiat_25519_scalar_mulx_u32(&mut x85, &mut x86, x1, 0xa40611e3);
3226  let mut x87: u32 = 0;
3227  let mut x88: u32 = 0;
3228  fiat_25519_scalar_mulx_u32(&mut x87, &mut x88, x1, 0x449c0f01);
3229  let mut x89: u32 = 0;
3230  let mut x90: fiat_25519_scalar_u1 = 0;
3231  fiat_25519_scalar_addcarryx_u32(&mut x89, &mut x90, 0x0, x88, x85);
3232  let mut x91: u32 = 0;
3233  let mut x92: fiat_25519_scalar_u1 = 0;
3234  fiat_25519_scalar_addcarryx_u32(&mut x91, &mut x92, x90, x86, x83);
3235  let mut x93: u32 = 0;
3236  let mut x94: fiat_25519_scalar_u1 = 0;
3237  fiat_25519_scalar_addcarryx_u32(&mut x93, &mut x94, x92, x84, x81);
3238  let mut x95: u32 = 0;
3239  let mut x96: fiat_25519_scalar_u1 = 0;
3240  fiat_25519_scalar_addcarryx_u32(&mut x95, &mut x96, x94, x82, x79);
3241  let mut x97: u32 = 0;
3242  let mut x98: fiat_25519_scalar_u1 = 0;
3243  fiat_25519_scalar_addcarryx_u32(&mut x97, &mut x98, x96, x80, x77);
3244  let mut x99: u32 = 0;
3245  let mut x100: fiat_25519_scalar_u1 = 0;
3246  fiat_25519_scalar_addcarryx_u32(&mut x99, &mut x100, x98, x78, x75);
3247  let mut x101: u32 = 0;
3248  let mut x102: fiat_25519_scalar_u1 = 0;
3249  fiat_25519_scalar_addcarryx_u32(&mut x101, &mut x102, x100, x76, x73);
3250  let mut x103: u32 = 0;
3251  let mut x104: fiat_25519_scalar_u1 = 0;
3252  fiat_25519_scalar_addcarryx_u32(&mut x103, &mut x104, 0x0, x59, x87);
3253  let mut x105: u32 = 0;
3254  let mut x106: fiat_25519_scalar_u1 = 0;
3255  fiat_25519_scalar_addcarryx_u32(&mut x105, &mut x106, x104, x61, x89);
3256  let mut x107: u32 = 0;
3257  let mut x108: fiat_25519_scalar_u1 = 0;
3258  fiat_25519_scalar_addcarryx_u32(&mut x107, &mut x108, x106, x63, x91);
3259  let mut x109: u32 = 0;
3260  let mut x110: fiat_25519_scalar_u1 = 0;
3261  fiat_25519_scalar_addcarryx_u32(&mut x109, &mut x110, x108, x65, x93);
3262  let mut x111: u32 = 0;
3263  let mut x112: fiat_25519_scalar_u1 = 0;
3264  fiat_25519_scalar_addcarryx_u32(&mut x111, &mut x112, x110, x67, x95);
3265  let mut x113: u32 = 0;
3266  let mut x114: fiat_25519_scalar_u1 = 0;
3267  fiat_25519_scalar_addcarryx_u32(&mut x113, &mut x114, x112, x69, x97);
3268  let mut x115: u32 = 0;
3269  let mut x116: fiat_25519_scalar_u1 = 0;
3270  fiat_25519_scalar_addcarryx_u32(&mut x115, &mut x116, x114, x71, x99);
3271  let mut x117: u32 = 0;
3272  let mut x118: fiat_25519_scalar_u1 = 0;
3273  fiat_25519_scalar_addcarryx_u32(&mut x117, &mut x118, x116, (((x72 as u32) + ((x38 as u32) + x10)) + x42), x101);
3274  let mut x119: u32 = 0;
3275  let mut x120: u32 = 0;
3276  fiat_25519_scalar_mulx_u32(&mut x119, &mut x120, x103, 0x12547e1b);
3277  let mut x121: u32 = 0;
3278  let mut x122: u32 = 0;
3279  fiat_25519_scalar_mulx_u32(&mut x121, &mut x122, x119, 0x10000000);
3280  let mut x123: u32 = 0;
3281  let mut x124: u32 = 0;
3282  fiat_25519_scalar_mulx_u32(&mut x123, &mut x124, x119, 0x14def9de);
3283  let mut x125: u32 = 0;
3284  let mut x126: u32 = 0;
3285  fiat_25519_scalar_mulx_u32(&mut x125, &mut x126, x119, 0xa2f79cd6);
3286  let mut x127: u32 = 0;
3287  let mut x128: u32 = 0;
3288  fiat_25519_scalar_mulx_u32(&mut x127, &mut x128, x119, 0x5812631a);
3289  let mut x129: u32 = 0;
3290  let mut x130: u32 = 0;
3291  fiat_25519_scalar_mulx_u32(&mut x129, &mut x130, x119, 0x5cf5d3ed);
3292  let mut x131: u32 = 0;
3293  let mut x132: fiat_25519_scalar_u1 = 0;
3294  fiat_25519_scalar_addcarryx_u32(&mut x131, &mut x132, 0x0, x130, x127);
3295  let mut x133: u32 = 0;
3296  let mut x134: fiat_25519_scalar_u1 = 0;
3297  fiat_25519_scalar_addcarryx_u32(&mut x133, &mut x134, x132, x128, x125);
3298  let mut x135: u32 = 0;
3299  let mut x136: fiat_25519_scalar_u1 = 0;
3300  fiat_25519_scalar_addcarryx_u32(&mut x135, &mut x136, x134, x126, x123);
3301  let mut x137: u32 = 0;
3302  let mut x138: fiat_25519_scalar_u1 = 0;
3303  fiat_25519_scalar_addcarryx_u32(&mut x137, &mut x138, 0x0, x103, x129);
3304  let mut x139: u32 = 0;
3305  let mut x140: fiat_25519_scalar_u1 = 0;
3306  fiat_25519_scalar_addcarryx_u32(&mut x139, &mut x140, x138, x105, x131);
3307  let mut x141: u32 = 0;
3308  let mut x142: fiat_25519_scalar_u1 = 0;
3309  fiat_25519_scalar_addcarryx_u32(&mut x141, &mut x142, x140, x107, x133);
3310  let mut x143: u32 = 0;
3311  let mut x144: fiat_25519_scalar_u1 = 0;
3312  fiat_25519_scalar_addcarryx_u32(&mut x143, &mut x144, x142, x109, x135);
3313  let mut x145: u32 = 0;
3314  let mut x146: fiat_25519_scalar_u1 = 0;
3315  fiat_25519_scalar_addcarryx_u32(&mut x145, &mut x146, x144, x111, ((x136 as u32) + x124));
3316  let mut x147: u32 = 0;
3317  let mut x148: fiat_25519_scalar_u1 = 0;
3318  fiat_25519_scalar_addcarryx_u32(&mut x147, &mut x148, x146, x113, (0x0 as u32));
3319  let mut x149: u32 = 0;
3320  let mut x150: fiat_25519_scalar_u1 = 0;
3321  fiat_25519_scalar_addcarryx_u32(&mut x149, &mut x150, x148, x115, (0x0 as u32));
3322  let mut x151: u32 = 0;
3323  let mut x152: fiat_25519_scalar_u1 = 0;
3324  fiat_25519_scalar_addcarryx_u32(&mut x151, &mut x152, x150, x117, x121);
3325  let mut x153: u32 = 0;
3326  let mut x154: u32 = 0;
3327  fiat_25519_scalar_mulx_u32(&mut x153, &mut x154, x2, 0x399411b);
3328  let mut x155: u32 = 0;
3329  let mut x156: u32 = 0;
3330  fiat_25519_scalar_mulx_u32(&mut x155, &mut x156, x2, 0x7c309a3d);
3331  let mut x157: u32 = 0;
3332  let mut x158: u32 = 0;
3333  fiat_25519_scalar_mulx_u32(&mut x157, &mut x158, x2, 0xceec73d2);
3334  let mut x159: u32 = 0;
3335  let mut x160: u32 = 0;
3336  fiat_25519_scalar_mulx_u32(&mut x159, &mut x160, x2, 0x17f5be65);
3337  let mut x161: u32 = 0;
3338  let mut x162: u32 = 0;
3339  fiat_25519_scalar_mulx_u32(&mut x161, &mut x162, x2, 0xd00e1ba7);
3340  let mut x163: u32 = 0;
3341  let mut x164: u32 = 0;
3342  fiat_25519_scalar_mulx_u32(&mut x163, &mut x164, x2, 0x68859347);
3343  let mut x165: u32 = 0;
3344  let mut x166: u32 = 0;
3345  fiat_25519_scalar_mulx_u32(&mut x165, &mut x166, x2, 0xa40611e3);
3346  let mut x167: u32 = 0;
3347  let mut x168: u32 = 0;
3348  fiat_25519_scalar_mulx_u32(&mut x167, &mut x168, x2, 0x449c0f01);
3349  let mut x169: u32 = 0;
3350  let mut x170: fiat_25519_scalar_u1 = 0;
3351  fiat_25519_scalar_addcarryx_u32(&mut x169, &mut x170, 0x0, x168, x165);
3352  let mut x171: u32 = 0;
3353  let mut x172: fiat_25519_scalar_u1 = 0;
3354  fiat_25519_scalar_addcarryx_u32(&mut x171, &mut x172, x170, x166, x163);
3355  let mut x173: u32 = 0;
3356  let mut x174: fiat_25519_scalar_u1 = 0;
3357  fiat_25519_scalar_addcarryx_u32(&mut x173, &mut x174, x172, x164, x161);
3358  let mut x175: u32 = 0;
3359  let mut x176: fiat_25519_scalar_u1 = 0;
3360  fiat_25519_scalar_addcarryx_u32(&mut x175, &mut x176, x174, x162, x159);
3361  let mut x177: u32 = 0;
3362  let mut x178: fiat_25519_scalar_u1 = 0;
3363  fiat_25519_scalar_addcarryx_u32(&mut x177, &mut x178, x176, x160, x157);
3364  let mut x179: u32 = 0;
3365  let mut x180: fiat_25519_scalar_u1 = 0;
3366  fiat_25519_scalar_addcarryx_u32(&mut x179, &mut x180, x178, x158, x155);
3367  let mut x181: u32 = 0;
3368  let mut x182: fiat_25519_scalar_u1 = 0;
3369  fiat_25519_scalar_addcarryx_u32(&mut x181, &mut x182, x180, x156, x153);
3370  let mut x183: u32 = 0;
3371  let mut x184: fiat_25519_scalar_u1 = 0;
3372  fiat_25519_scalar_addcarryx_u32(&mut x183, &mut x184, 0x0, x139, x167);
3373  let mut x185: u32 = 0;
3374  let mut x186: fiat_25519_scalar_u1 = 0;
3375  fiat_25519_scalar_addcarryx_u32(&mut x185, &mut x186, x184, x141, x169);
3376  let mut x187: u32 = 0;
3377  let mut x188: fiat_25519_scalar_u1 = 0;
3378  fiat_25519_scalar_addcarryx_u32(&mut x187, &mut x188, x186, x143, x171);
3379  let mut x189: u32 = 0;
3380  let mut x190: fiat_25519_scalar_u1 = 0;
3381  fiat_25519_scalar_addcarryx_u32(&mut x189, &mut x190, x188, x145, x173);
3382  let mut x191: u32 = 0;
3383  let mut x192: fiat_25519_scalar_u1 = 0;
3384  fiat_25519_scalar_addcarryx_u32(&mut x191, &mut x192, x190, x147, x175);
3385  let mut x193: u32 = 0;
3386  let mut x194: fiat_25519_scalar_u1 = 0;
3387  fiat_25519_scalar_addcarryx_u32(&mut x193, &mut x194, x192, x149, x177);
3388  let mut x195: u32 = 0;
3389  let mut x196: fiat_25519_scalar_u1 = 0;
3390  fiat_25519_scalar_addcarryx_u32(&mut x195, &mut x196, x194, x151, x179);
3391  let mut x197: u32 = 0;
3392  let mut x198: fiat_25519_scalar_u1 = 0;
3393  fiat_25519_scalar_addcarryx_u32(&mut x197, &mut x198, x196, (((x152 as u32) + ((x118 as u32) + ((x102 as u32) + x74))) + x122), x181);
3394  let mut x199: u32 = 0;
3395  let mut x200: u32 = 0;
3396  fiat_25519_scalar_mulx_u32(&mut x199, &mut x200, x183, 0x12547e1b);
3397  let mut x201: u32 = 0;
3398  let mut x202: u32 = 0;
3399  fiat_25519_scalar_mulx_u32(&mut x201, &mut x202, x199, 0x10000000);
3400  let mut x203: u32 = 0;
3401  let mut x204: u32 = 0;
3402  fiat_25519_scalar_mulx_u32(&mut x203, &mut x204, x199, 0x14def9de);
3403  let mut x205: u32 = 0;
3404  let mut x206: u32 = 0;
3405  fiat_25519_scalar_mulx_u32(&mut x205, &mut x206, x199, 0xa2f79cd6);
3406  let mut x207: u32 = 0;
3407  let mut x208: u32 = 0;
3408  fiat_25519_scalar_mulx_u32(&mut x207, &mut x208, x199, 0x5812631a);
3409  let mut x209: u32 = 0;
3410  let mut x210: u32 = 0;
3411  fiat_25519_scalar_mulx_u32(&mut x209, &mut x210, x199, 0x5cf5d3ed);
3412  let mut x211: u32 = 0;
3413  let mut x212: fiat_25519_scalar_u1 = 0;
3414  fiat_25519_scalar_addcarryx_u32(&mut x211, &mut x212, 0x0, x210, x207);
3415  let mut x213: u32 = 0;
3416  let mut x214: fiat_25519_scalar_u1 = 0;
3417  fiat_25519_scalar_addcarryx_u32(&mut x213, &mut x214, x212, x208, x205);
3418  let mut x215: u32 = 0;
3419  let mut x216: fiat_25519_scalar_u1 = 0;
3420  fiat_25519_scalar_addcarryx_u32(&mut x215, &mut x216, x214, x206, x203);
3421  let mut x217: u32 = 0;
3422  let mut x218: fiat_25519_scalar_u1 = 0;
3423  fiat_25519_scalar_addcarryx_u32(&mut x217, &mut x218, 0x0, x183, x209);
3424  let mut x219: u32 = 0;
3425  let mut x220: fiat_25519_scalar_u1 = 0;
3426  fiat_25519_scalar_addcarryx_u32(&mut x219, &mut x220, x218, x185, x211);
3427  let mut x221: u32 = 0;
3428  let mut x222: fiat_25519_scalar_u1 = 0;
3429  fiat_25519_scalar_addcarryx_u32(&mut x221, &mut x222, x220, x187, x213);
3430  let mut x223: u32 = 0;
3431  let mut x224: fiat_25519_scalar_u1 = 0;
3432  fiat_25519_scalar_addcarryx_u32(&mut x223, &mut x224, x222, x189, x215);
3433  let mut x225: u32 = 0;
3434  let mut x226: fiat_25519_scalar_u1 = 0;
3435  fiat_25519_scalar_addcarryx_u32(&mut x225, &mut x226, x224, x191, ((x216 as u32) + x204));
3436  let mut x227: u32 = 0;
3437  let mut x228: fiat_25519_scalar_u1 = 0;
3438  fiat_25519_scalar_addcarryx_u32(&mut x227, &mut x228, x226, x193, (0x0 as u32));
3439  let mut x229: u32 = 0;
3440  let mut x230: fiat_25519_scalar_u1 = 0;
3441  fiat_25519_scalar_addcarryx_u32(&mut x229, &mut x230, x228, x195, (0x0 as u32));
3442  let mut x231: u32 = 0;
3443  let mut x232: fiat_25519_scalar_u1 = 0;
3444  fiat_25519_scalar_addcarryx_u32(&mut x231, &mut x232, x230, x197, x201);
3445  let mut x233: u32 = 0;
3446  let mut x234: u32 = 0;
3447  fiat_25519_scalar_mulx_u32(&mut x233, &mut x234, x3, 0x399411b);
3448  let mut x235: u32 = 0;
3449  let mut x236: u32 = 0;
3450  fiat_25519_scalar_mulx_u32(&mut x235, &mut x236, x3, 0x7c309a3d);
3451  let mut x237: u32 = 0;
3452  let mut x238: u32 = 0;
3453  fiat_25519_scalar_mulx_u32(&mut x237, &mut x238, x3, 0xceec73d2);
3454  let mut x239: u32 = 0;
3455  let mut x240: u32 = 0;
3456  fiat_25519_scalar_mulx_u32(&mut x239, &mut x240, x3, 0x17f5be65);
3457  let mut x241: u32 = 0;
3458  let mut x242: u32 = 0;
3459  fiat_25519_scalar_mulx_u32(&mut x241, &mut x242, x3, 0xd00e1ba7);
3460  let mut x243: u32 = 0;
3461  let mut x244: u32 = 0;
3462  fiat_25519_scalar_mulx_u32(&mut x243, &mut x244, x3, 0x68859347);
3463  let mut x245: u32 = 0;
3464  let mut x246: u32 = 0;
3465  fiat_25519_scalar_mulx_u32(&mut x245, &mut x246, x3, 0xa40611e3);
3466  let mut x247: u32 = 0;
3467  let mut x248: u32 = 0;
3468  fiat_25519_scalar_mulx_u32(&mut x247, &mut x248, x3, 0x449c0f01);
3469  let mut x249: u32 = 0;
3470  let mut x250: fiat_25519_scalar_u1 = 0;
3471  fiat_25519_scalar_addcarryx_u32(&mut x249, &mut x250, 0x0, x248, x245);
3472  let mut x251: u32 = 0;
3473  let mut x252: fiat_25519_scalar_u1 = 0;
3474  fiat_25519_scalar_addcarryx_u32(&mut x251, &mut x252, x250, x246, x243);
3475  let mut x253: u32 = 0;
3476  let mut x254: fiat_25519_scalar_u1 = 0;
3477  fiat_25519_scalar_addcarryx_u32(&mut x253, &mut x254, x252, x244, x241);
3478  let mut x255: u32 = 0;
3479  let mut x256: fiat_25519_scalar_u1 = 0;
3480  fiat_25519_scalar_addcarryx_u32(&mut x255, &mut x256, x254, x242, x239);
3481  let mut x257: u32 = 0;
3482  let mut x258: fiat_25519_scalar_u1 = 0;
3483  fiat_25519_scalar_addcarryx_u32(&mut x257, &mut x258, x256, x240, x237);
3484  let mut x259: u32 = 0;
3485  let mut x260: fiat_25519_scalar_u1 = 0;
3486  fiat_25519_scalar_addcarryx_u32(&mut x259, &mut x260, x258, x238, x235);
3487  let mut x261: u32 = 0;
3488  let mut x262: fiat_25519_scalar_u1 = 0;
3489  fiat_25519_scalar_addcarryx_u32(&mut x261, &mut x262, x260, x236, x233);
3490  let mut x263: u32 = 0;
3491  let mut x264: fiat_25519_scalar_u1 = 0;
3492  fiat_25519_scalar_addcarryx_u32(&mut x263, &mut x264, 0x0, x219, x247);
3493  let mut x265: u32 = 0;
3494  let mut x266: fiat_25519_scalar_u1 = 0;
3495  fiat_25519_scalar_addcarryx_u32(&mut x265, &mut x266, x264, x221, x249);
3496  let mut x267: u32 = 0;
3497  let mut x268: fiat_25519_scalar_u1 = 0;
3498  fiat_25519_scalar_addcarryx_u32(&mut x267, &mut x268, x266, x223, x251);
3499  let mut x269: u32 = 0;
3500  let mut x270: fiat_25519_scalar_u1 = 0;
3501  fiat_25519_scalar_addcarryx_u32(&mut x269, &mut x270, x268, x225, x253);
3502  let mut x271: u32 = 0;
3503  let mut x272: fiat_25519_scalar_u1 = 0;
3504  fiat_25519_scalar_addcarryx_u32(&mut x271, &mut x272, x270, x227, x255);
3505  let mut x273: u32 = 0;
3506  let mut x274: fiat_25519_scalar_u1 = 0;
3507  fiat_25519_scalar_addcarryx_u32(&mut x273, &mut x274, x272, x229, x257);
3508  let mut x275: u32 = 0;
3509  let mut x276: fiat_25519_scalar_u1 = 0;
3510  fiat_25519_scalar_addcarryx_u32(&mut x275, &mut x276, x274, x231, x259);
3511  let mut x277: u32 = 0;
3512  let mut x278: fiat_25519_scalar_u1 = 0;
3513  fiat_25519_scalar_addcarryx_u32(&mut x277, &mut x278, x276, (((x232 as u32) + ((x198 as u32) + ((x182 as u32) + x154))) + x202), x261);
3514  let mut x279: u32 = 0;
3515  let mut x280: u32 = 0;
3516  fiat_25519_scalar_mulx_u32(&mut x279, &mut x280, x263, 0x12547e1b);
3517  let mut x281: u32 = 0;
3518  let mut x282: u32 = 0;
3519  fiat_25519_scalar_mulx_u32(&mut x281, &mut x282, x279, 0x10000000);
3520  let mut x283: u32 = 0;
3521  let mut x284: u32 = 0;
3522  fiat_25519_scalar_mulx_u32(&mut x283, &mut x284, x279, 0x14def9de);
3523  let mut x285: u32 = 0;
3524  let mut x286: u32 = 0;
3525  fiat_25519_scalar_mulx_u32(&mut x285, &mut x286, x279, 0xa2f79cd6);
3526  let mut x287: u32 = 0;
3527  let mut x288: u32 = 0;
3528  fiat_25519_scalar_mulx_u32(&mut x287, &mut x288, x279, 0x5812631a);
3529  let mut x289: u32 = 0;
3530  let mut x290: u32 = 0;
3531  fiat_25519_scalar_mulx_u32(&mut x289, &mut x290, x279, 0x5cf5d3ed);
3532  let mut x291: u32 = 0;
3533  let mut x292: fiat_25519_scalar_u1 = 0;
3534  fiat_25519_scalar_addcarryx_u32(&mut x291, &mut x292, 0x0, x290, x287);
3535  let mut x293: u32 = 0;
3536  let mut x294: fiat_25519_scalar_u1 = 0;
3537  fiat_25519_scalar_addcarryx_u32(&mut x293, &mut x294, x292, x288, x285);
3538  let mut x295: u32 = 0;
3539  let mut x296: fiat_25519_scalar_u1 = 0;
3540  fiat_25519_scalar_addcarryx_u32(&mut x295, &mut x296, x294, x286, x283);
3541  let mut x297: u32 = 0;
3542  let mut x298: fiat_25519_scalar_u1 = 0;
3543  fiat_25519_scalar_addcarryx_u32(&mut x297, &mut x298, 0x0, x263, x289);
3544  let mut x299: u32 = 0;
3545  let mut x300: fiat_25519_scalar_u1 = 0;
3546  fiat_25519_scalar_addcarryx_u32(&mut x299, &mut x300, x298, x265, x291);
3547  let mut x301: u32 = 0;
3548  let mut x302: fiat_25519_scalar_u1 = 0;
3549  fiat_25519_scalar_addcarryx_u32(&mut x301, &mut x302, x300, x267, x293);
3550  let mut x303: u32 = 0;
3551  let mut x304: fiat_25519_scalar_u1 = 0;
3552  fiat_25519_scalar_addcarryx_u32(&mut x303, &mut x304, x302, x269, x295);
3553  let mut x305: u32 = 0;
3554  let mut x306: fiat_25519_scalar_u1 = 0;
3555  fiat_25519_scalar_addcarryx_u32(&mut x305, &mut x306, x304, x271, ((x296 as u32) + x284));
3556  let mut x307: u32 = 0;
3557  let mut x308: fiat_25519_scalar_u1 = 0;
3558  fiat_25519_scalar_addcarryx_u32(&mut x307, &mut x308, x306, x273, (0x0 as u32));
3559  let mut x309: u32 = 0;
3560  let mut x310: fiat_25519_scalar_u1 = 0;
3561  fiat_25519_scalar_addcarryx_u32(&mut x309, &mut x310, x308, x275, (0x0 as u32));
3562  let mut x311: u32 = 0;
3563  let mut x312: fiat_25519_scalar_u1 = 0;
3564  fiat_25519_scalar_addcarryx_u32(&mut x311, &mut x312, x310, x277, x281);
3565  let mut x313: u32 = 0;
3566  let mut x314: u32 = 0;
3567  fiat_25519_scalar_mulx_u32(&mut x313, &mut x314, x4, 0x399411b);
3568  let mut x315: u32 = 0;
3569  let mut x316: u32 = 0;
3570  fiat_25519_scalar_mulx_u32(&mut x315, &mut x316, x4, 0x7c309a3d);
3571  let mut x317: u32 = 0;
3572  let mut x318: u32 = 0;
3573  fiat_25519_scalar_mulx_u32(&mut x317, &mut x318, x4, 0xceec73d2);
3574  let mut x319: u32 = 0;
3575  let mut x320: u32 = 0;
3576  fiat_25519_scalar_mulx_u32(&mut x319, &mut x320, x4, 0x17f5be65);
3577  let mut x321: u32 = 0;
3578  let mut x322: u32 = 0;
3579  fiat_25519_scalar_mulx_u32(&mut x321, &mut x322, x4, 0xd00e1ba7);
3580  let mut x323: u32 = 0;
3581  let mut x324: u32 = 0;
3582  fiat_25519_scalar_mulx_u32(&mut x323, &mut x324, x4, 0x68859347);
3583  let mut x325: u32 = 0;
3584  let mut x326: u32 = 0;
3585  fiat_25519_scalar_mulx_u32(&mut x325, &mut x326, x4, 0xa40611e3);
3586  let mut x327: u32 = 0;
3587  let mut x328: u32 = 0;
3588  fiat_25519_scalar_mulx_u32(&mut x327, &mut x328, x4, 0x449c0f01);
3589  let mut x329: u32 = 0;
3590  let mut x330: fiat_25519_scalar_u1 = 0;
3591  fiat_25519_scalar_addcarryx_u32(&mut x329, &mut x330, 0x0, x328, x325);
3592  let mut x331: u32 = 0;
3593  let mut x332: fiat_25519_scalar_u1 = 0;
3594  fiat_25519_scalar_addcarryx_u32(&mut x331, &mut x332, x330, x326, x323);
3595  let mut x333: u32 = 0;
3596  let mut x334: fiat_25519_scalar_u1 = 0;
3597  fiat_25519_scalar_addcarryx_u32(&mut x333, &mut x334, x332, x324, x321);
3598  let mut x335: u32 = 0;
3599  let mut x336: fiat_25519_scalar_u1 = 0;
3600  fiat_25519_scalar_addcarryx_u32(&mut x335, &mut x336, x334, x322, x319);
3601  let mut x337: u32 = 0;
3602  let mut x338: fiat_25519_scalar_u1 = 0;
3603  fiat_25519_scalar_addcarryx_u32(&mut x337, &mut x338, x336, x320, x317);
3604  let mut x339: u32 = 0;
3605  let mut x340: fiat_25519_scalar_u1 = 0;
3606  fiat_25519_scalar_addcarryx_u32(&mut x339, &mut x340, x338, x318, x315);
3607  let mut x341: u32 = 0;
3608  let mut x342: fiat_25519_scalar_u1 = 0;
3609  fiat_25519_scalar_addcarryx_u32(&mut x341, &mut x342, x340, x316, x313);
3610  let mut x343: u32 = 0;
3611  let mut x344: fiat_25519_scalar_u1 = 0;
3612  fiat_25519_scalar_addcarryx_u32(&mut x343, &mut x344, 0x0, x299, x327);
3613  let mut x345: u32 = 0;
3614  let mut x346: fiat_25519_scalar_u1 = 0;
3615  fiat_25519_scalar_addcarryx_u32(&mut x345, &mut x346, x344, x301, x329);
3616  let mut x347: u32 = 0;
3617  let mut x348: fiat_25519_scalar_u1 = 0;
3618  fiat_25519_scalar_addcarryx_u32(&mut x347, &mut x348, x346, x303, x331);
3619  let mut x349: u32 = 0;
3620  let mut x350: fiat_25519_scalar_u1 = 0;
3621  fiat_25519_scalar_addcarryx_u32(&mut x349, &mut x350, x348, x305, x333);
3622  let mut x351: u32 = 0;
3623  let mut x352: fiat_25519_scalar_u1 = 0;
3624  fiat_25519_scalar_addcarryx_u32(&mut x351, &mut x352, x350, x307, x335);
3625  let mut x353: u32 = 0;
3626  let mut x354: fiat_25519_scalar_u1 = 0;
3627  fiat_25519_scalar_addcarryx_u32(&mut x353, &mut x354, x352, x309, x337);
3628  let mut x355: u32 = 0;
3629  let mut x356: fiat_25519_scalar_u1 = 0;
3630  fiat_25519_scalar_addcarryx_u32(&mut x355, &mut x356, x354, x311, x339);
3631  let mut x357: u32 = 0;
3632  let mut x358: fiat_25519_scalar_u1 = 0;
3633  fiat_25519_scalar_addcarryx_u32(&mut x357, &mut x358, x356, (((x312 as u32) + ((x278 as u32) + ((x262 as u32) + x234))) + x282), x341);
3634  let mut x359: u32 = 0;
3635  let mut x360: u32 = 0;
3636  fiat_25519_scalar_mulx_u32(&mut x359, &mut x360, x343, 0x12547e1b);
3637  let mut x361: u32 = 0;
3638  let mut x362: u32 = 0;
3639  fiat_25519_scalar_mulx_u32(&mut x361, &mut x362, x359, 0x10000000);
3640  let mut x363: u32 = 0;
3641  let mut x364: u32 = 0;
3642  fiat_25519_scalar_mulx_u32(&mut x363, &mut x364, x359, 0x14def9de);
3643  let mut x365: u32 = 0;
3644  let mut x366: u32 = 0;
3645  fiat_25519_scalar_mulx_u32(&mut x365, &mut x366, x359, 0xa2f79cd6);
3646  let mut x367: u32 = 0;
3647  let mut x368: u32 = 0;
3648  fiat_25519_scalar_mulx_u32(&mut x367, &mut x368, x359, 0x5812631a);
3649  let mut x369: u32 = 0;
3650  let mut x370: u32 = 0;
3651  fiat_25519_scalar_mulx_u32(&mut x369, &mut x370, x359, 0x5cf5d3ed);
3652  let mut x371: u32 = 0;
3653  let mut x372: fiat_25519_scalar_u1 = 0;
3654  fiat_25519_scalar_addcarryx_u32(&mut x371, &mut x372, 0x0, x370, x367);
3655  let mut x373: u32 = 0;
3656  let mut x374: fiat_25519_scalar_u1 = 0;
3657  fiat_25519_scalar_addcarryx_u32(&mut x373, &mut x374, x372, x368, x365);
3658  let mut x375: u32 = 0;
3659  let mut x376: fiat_25519_scalar_u1 = 0;
3660  fiat_25519_scalar_addcarryx_u32(&mut x375, &mut x376, x374, x366, x363);
3661  let mut x377: u32 = 0;
3662  let mut x378: fiat_25519_scalar_u1 = 0;
3663  fiat_25519_scalar_addcarryx_u32(&mut x377, &mut x378, 0x0, x343, x369);
3664  let mut x379: u32 = 0;
3665  let mut x380: fiat_25519_scalar_u1 = 0;
3666  fiat_25519_scalar_addcarryx_u32(&mut x379, &mut x380, x378, x345, x371);
3667  let mut x381: u32 = 0;
3668  let mut x382: fiat_25519_scalar_u1 = 0;
3669  fiat_25519_scalar_addcarryx_u32(&mut x381, &mut x382, x380, x347, x373);
3670  let mut x383: u32 = 0;
3671  let mut x384: fiat_25519_scalar_u1 = 0;
3672  fiat_25519_scalar_addcarryx_u32(&mut x383, &mut x384, x382, x349, x375);
3673  let mut x385: u32 = 0;
3674  let mut x386: fiat_25519_scalar_u1 = 0;
3675  fiat_25519_scalar_addcarryx_u32(&mut x385, &mut x386, x384, x351, ((x376 as u32) + x364));
3676  let mut x387: u32 = 0;
3677  let mut x388: fiat_25519_scalar_u1 = 0;
3678  fiat_25519_scalar_addcarryx_u32(&mut x387, &mut x388, x386, x353, (0x0 as u32));
3679  let mut x389: u32 = 0;
3680  let mut x390: fiat_25519_scalar_u1 = 0;
3681  fiat_25519_scalar_addcarryx_u32(&mut x389, &mut x390, x388, x355, (0x0 as u32));
3682  let mut x391: u32 = 0;
3683  let mut x392: fiat_25519_scalar_u1 = 0;
3684  fiat_25519_scalar_addcarryx_u32(&mut x391, &mut x392, x390, x357, x361);
3685  let mut x393: u32 = 0;
3686  let mut x394: u32 = 0;
3687  fiat_25519_scalar_mulx_u32(&mut x393, &mut x394, x5, 0x399411b);
3688  let mut x395: u32 = 0;
3689  let mut x396: u32 = 0;
3690  fiat_25519_scalar_mulx_u32(&mut x395, &mut x396, x5, 0x7c309a3d);
3691  let mut x397: u32 = 0;
3692  let mut x398: u32 = 0;
3693  fiat_25519_scalar_mulx_u32(&mut x397, &mut x398, x5, 0xceec73d2);
3694  let mut x399: u32 = 0;
3695  let mut x400: u32 = 0;
3696  fiat_25519_scalar_mulx_u32(&mut x399, &mut x400, x5, 0x17f5be65);
3697  let mut x401: u32 = 0;
3698  let mut x402: u32 = 0;
3699  fiat_25519_scalar_mulx_u32(&mut x401, &mut x402, x5, 0xd00e1ba7);
3700  let mut x403: u32 = 0;
3701  let mut x404: u32 = 0;
3702  fiat_25519_scalar_mulx_u32(&mut x403, &mut x404, x5, 0x68859347);
3703  let mut x405: u32 = 0;
3704  let mut x406: u32 = 0;
3705  fiat_25519_scalar_mulx_u32(&mut x405, &mut x406, x5, 0xa40611e3);
3706  let mut x407: u32 = 0;
3707  let mut x408: u32 = 0;
3708  fiat_25519_scalar_mulx_u32(&mut x407, &mut x408, x5, 0x449c0f01);
3709  let mut x409: u32 = 0;
3710  let mut x410: fiat_25519_scalar_u1 = 0;
3711  fiat_25519_scalar_addcarryx_u32(&mut x409, &mut x410, 0x0, x408, x405);
3712  let mut x411: u32 = 0;
3713  let mut x412: fiat_25519_scalar_u1 = 0;
3714  fiat_25519_scalar_addcarryx_u32(&mut x411, &mut x412, x410, x406, x403);
3715  let mut x413: u32 = 0;
3716  let mut x414: fiat_25519_scalar_u1 = 0;
3717  fiat_25519_scalar_addcarryx_u32(&mut x413, &mut x414, x412, x404, x401);
3718  let mut x415: u32 = 0;
3719  let mut x416: fiat_25519_scalar_u1 = 0;
3720  fiat_25519_scalar_addcarryx_u32(&mut x415, &mut x416, x414, x402, x399);
3721  let mut x417: u32 = 0;
3722  let mut x418: fiat_25519_scalar_u1 = 0;
3723  fiat_25519_scalar_addcarryx_u32(&mut x417, &mut x418, x416, x400, x397);
3724  let mut x419: u32 = 0;
3725  let mut x420: fiat_25519_scalar_u1 = 0;
3726  fiat_25519_scalar_addcarryx_u32(&mut x419, &mut x420, x418, x398, x395);
3727  let mut x421: u32 = 0;
3728  let mut x422: fiat_25519_scalar_u1 = 0;
3729  fiat_25519_scalar_addcarryx_u32(&mut x421, &mut x422, x420, x396, x393);
3730  let mut x423: u32 = 0;
3731  let mut x424: fiat_25519_scalar_u1 = 0;
3732  fiat_25519_scalar_addcarryx_u32(&mut x423, &mut x424, 0x0, x379, x407);
3733  let mut x425: u32 = 0;
3734  let mut x426: fiat_25519_scalar_u1 = 0;
3735  fiat_25519_scalar_addcarryx_u32(&mut x425, &mut x426, x424, x381, x409);
3736  let mut x427: u32 = 0;
3737  let mut x428: fiat_25519_scalar_u1 = 0;
3738  fiat_25519_scalar_addcarryx_u32(&mut x427, &mut x428, x426, x383, x411);
3739  let mut x429: u32 = 0;
3740  let mut x430: fiat_25519_scalar_u1 = 0;
3741  fiat_25519_scalar_addcarryx_u32(&mut x429, &mut x430, x428, x385, x413);
3742  let mut x431: u32 = 0;
3743  let mut x432: fiat_25519_scalar_u1 = 0;
3744  fiat_25519_scalar_addcarryx_u32(&mut x431, &mut x432, x430, x387, x415);
3745  let mut x433: u32 = 0;
3746  let mut x434: fiat_25519_scalar_u1 = 0;
3747  fiat_25519_scalar_addcarryx_u32(&mut x433, &mut x434, x432, x389, x417);
3748  let mut x435: u32 = 0;
3749  let mut x436: fiat_25519_scalar_u1 = 0;
3750  fiat_25519_scalar_addcarryx_u32(&mut x435, &mut x436, x434, x391, x419);
3751  let mut x437: u32 = 0;
3752  let mut x438: fiat_25519_scalar_u1 = 0;
3753  fiat_25519_scalar_addcarryx_u32(&mut x437, &mut x438, x436, (((x392 as u32) + ((x358 as u32) + ((x342 as u32) + x314))) + x362), x421);
3754  let mut x439: u32 = 0;
3755  let mut x440: u32 = 0;
3756  fiat_25519_scalar_mulx_u32(&mut x439, &mut x440, x423, 0x12547e1b);
3757  let mut x441: u32 = 0;
3758  let mut x442: u32 = 0;
3759  fiat_25519_scalar_mulx_u32(&mut x441, &mut x442, x439, 0x10000000);
3760  let mut x443: u32 = 0;
3761  let mut x444: u32 = 0;
3762  fiat_25519_scalar_mulx_u32(&mut x443, &mut x444, x439, 0x14def9de);
3763  let mut x445: u32 = 0;
3764  let mut x446: u32 = 0;
3765  fiat_25519_scalar_mulx_u32(&mut x445, &mut x446, x439, 0xa2f79cd6);
3766  let mut x447: u32 = 0;
3767  let mut x448: u32 = 0;
3768  fiat_25519_scalar_mulx_u32(&mut x447, &mut x448, x439, 0x5812631a);
3769  let mut x449: u32 = 0;
3770  let mut x450: u32 = 0;
3771  fiat_25519_scalar_mulx_u32(&mut x449, &mut x450, x439, 0x5cf5d3ed);
3772  let mut x451: u32 = 0;
3773  let mut x452: fiat_25519_scalar_u1 = 0;
3774  fiat_25519_scalar_addcarryx_u32(&mut x451, &mut x452, 0x0, x450, x447);
3775  let mut x453: u32 = 0;
3776  let mut x454: fiat_25519_scalar_u1 = 0;
3777  fiat_25519_scalar_addcarryx_u32(&mut x453, &mut x454, x452, x448, x445);
3778  let mut x455: u32 = 0;
3779  let mut x456: fiat_25519_scalar_u1 = 0;
3780  fiat_25519_scalar_addcarryx_u32(&mut x455, &mut x456, x454, x446, x443);
3781  let mut x457: u32 = 0;
3782  let mut x458: fiat_25519_scalar_u1 = 0;
3783  fiat_25519_scalar_addcarryx_u32(&mut x457, &mut x458, 0x0, x423, x449);
3784  let mut x459: u32 = 0;
3785  let mut x460: fiat_25519_scalar_u1 = 0;
3786  fiat_25519_scalar_addcarryx_u32(&mut x459, &mut x460, x458, x425, x451);
3787  let mut x461: u32 = 0;
3788  let mut x462: fiat_25519_scalar_u1 = 0;
3789  fiat_25519_scalar_addcarryx_u32(&mut x461, &mut x462, x460, x427, x453);
3790  let mut x463: u32 = 0;
3791  let mut x464: fiat_25519_scalar_u1 = 0;
3792  fiat_25519_scalar_addcarryx_u32(&mut x463, &mut x464, x462, x429, x455);
3793  let mut x465: u32 = 0;
3794  let mut x466: fiat_25519_scalar_u1 = 0;
3795  fiat_25519_scalar_addcarryx_u32(&mut x465, &mut x466, x464, x431, ((x456 as u32) + x444));
3796  let mut x467: u32 = 0;
3797  let mut x468: fiat_25519_scalar_u1 = 0;
3798  fiat_25519_scalar_addcarryx_u32(&mut x467, &mut x468, x466, x433, (0x0 as u32));
3799  let mut x469: u32 = 0;
3800  let mut x470: fiat_25519_scalar_u1 = 0;
3801  fiat_25519_scalar_addcarryx_u32(&mut x469, &mut x470, x468, x435, (0x0 as u32));
3802  let mut x471: u32 = 0;
3803  let mut x472: fiat_25519_scalar_u1 = 0;
3804  fiat_25519_scalar_addcarryx_u32(&mut x471, &mut x472, x470, x437, x441);
3805  let mut x473: u32 = 0;
3806  let mut x474: u32 = 0;
3807  fiat_25519_scalar_mulx_u32(&mut x473, &mut x474, x6, 0x399411b);
3808  let mut x475: u32 = 0;
3809  let mut x476: u32 = 0;
3810  fiat_25519_scalar_mulx_u32(&mut x475, &mut x476, x6, 0x7c309a3d);
3811  let mut x477: u32 = 0;
3812  let mut x478: u32 = 0;
3813  fiat_25519_scalar_mulx_u32(&mut x477, &mut x478, x6, 0xceec73d2);
3814  let mut x479: u32 = 0;
3815  let mut x480: u32 = 0;
3816  fiat_25519_scalar_mulx_u32(&mut x479, &mut x480, x6, 0x17f5be65);
3817  let mut x481: u32 = 0;
3818  let mut x482: u32 = 0;
3819  fiat_25519_scalar_mulx_u32(&mut x481, &mut x482, x6, 0xd00e1ba7);
3820  let mut x483: u32 = 0;
3821  let mut x484: u32 = 0;
3822  fiat_25519_scalar_mulx_u32(&mut x483, &mut x484, x6, 0x68859347);
3823  let mut x485: u32 = 0;
3824  let mut x486: u32 = 0;
3825  fiat_25519_scalar_mulx_u32(&mut x485, &mut x486, x6, 0xa40611e3);
3826  let mut x487: u32 = 0;
3827  let mut x488: u32 = 0;
3828  fiat_25519_scalar_mulx_u32(&mut x487, &mut x488, x6, 0x449c0f01);
3829  let mut x489: u32 = 0;
3830  let mut x490: fiat_25519_scalar_u1 = 0;
3831  fiat_25519_scalar_addcarryx_u32(&mut x489, &mut x490, 0x0, x488, x485);
3832  let mut x491: u32 = 0;
3833  let mut x492: fiat_25519_scalar_u1 = 0;
3834  fiat_25519_scalar_addcarryx_u32(&mut x491, &mut x492, x490, x486, x483);
3835  let mut x493: u32 = 0;
3836  let mut x494: fiat_25519_scalar_u1 = 0;
3837  fiat_25519_scalar_addcarryx_u32(&mut x493, &mut x494, x492, x484, x481);
3838  let mut x495: u32 = 0;
3839  let mut x496: fiat_25519_scalar_u1 = 0;
3840  fiat_25519_scalar_addcarryx_u32(&mut x495, &mut x496, x494, x482, x479);
3841  let mut x497: u32 = 0;
3842  let mut x498: fiat_25519_scalar_u1 = 0;
3843  fiat_25519_scalar_addcarryx_u32(&mut x497, &mut x498, x496, x480, x477);
3844  let mut x499: u32 = 0;
3845  let mut x500: fiat_25519_scalar_u1 = 0;
3846  fiat_25519_scalar_addcarryx_u32(&mut x499, &mut x500, x498, x478, x475);
3847  let mut x501: u32 = 0;
3848  let mut x502: fiat_25519_scalar_u1 = 0;
3849  fiat_25519_scalar_addcarryx_u32(&mut x501, &mut x502, x500, x476, x473);
3850  let mut x503: u32 = 0;
3851  let mut x504: fiat_25519_scalar_u1 = 0;
3852  fiat_25519_scalar_addcarryx_u32(&mut x503, &mut x504, 0x0, x459, x487);
3853  let mut x505: u32 = 0;
3854  let mut x506: fiat_25519_scalar_u1 = 0;
3855  fiat_25519_scalar_addcarryx_u32(&mut x505, &mut x506, x504, x461, x489);
3856  let mut x507: u32 = 0;
3857  let mut x508: fiat_25519_scalar_u1 = 0;
3858  fiat_25519_scalar_addcarryx_u32(&mut x507, &mut x508, x506, x463, x491);
3859  let mut x509: u32 = 0;
3860  let mut x510: fiat_25519_scalar_u1 = 0;
3861  fiat_25519_scalar_addcarryx_u32(&mut x509, &mut x510, x508, x465, x493);
3862  let mut x511: u32 = 0;
3863  let mut x512: fiat_25519_scalar_u1 = 0;
3864  fiat_25519_scalar_addcarryx_u32(&mut x511, &mut x512, x510, x467, x495);
3865  let mut x513: u32 = 0;
3866  let mut x514: fiat_25519_scalar_u1 = 0;
3867  fiat_25519_scalar_addcarryx_u32(&mut x513, &mut x514, x512, x469, x497);
3868  let mut x515: u32 = 0;
3869  let mut x516: fiat_25519_scalar_u1 = 0;
3870  fiat_25519_scalar_addcarryx_u32(&mut x515, &mut x516, x514, x471, x499);
3871  let mut x517: u32 = 0;
3872  let mut x518: fiat_25519_scalar_u1 = 0;
3873  fiat_25519_scalar_addcarryx_u32(&mut x517, &mut x518, x516, (((x472 as u32) + ((x438 as u32) + ((x422 as u32) + x394))) + x442), x501);
3874  let mut x519: u32 = 0;
3875  let mut x520: u32 = 0;
3876  fiat_25519_scalar_mulx_u32(&mut x519, &mut x520, x503, 0x12547e1b);
3877  let mut x521: u32 = 0;
3878  let mut x522: u32 = 0;
3879  fiat_25519_scalar_mulx_u32(&mut x521, &mut x522, x519, 0x10000000);
3880  let mut x523: u32 = 0;
3881  let mut x524: u32 = 0;
3882  fiat_25519_scalar_mulx_u32(&mut x523, &mut x524, x519, 0x14def9de);
3883  let mut x525: u32 = 0;
3884  let mut x526: u32 = 0;
3885  fiat_25519_scalar_mulx_u32(&mut x525, &mut x526, x519, 0xa2f79cd6);
3886  let mut x527: u32 = 0;
3887  let mut x528: u32 = 0;
3888  fiat_25519_scalar_mulx_u32(&mut x527, &mut x528, x519, 0x5812631a);
3889  let mut x529: u32 = 0;
3890  let mut x530: u32 = 0;
3891  fiat_25519_scalar_mulx_u32(&mut x529, &mut x530, x519, 0x5cf5d3ed);
3892  let mut x531: u32 = 0;
3893  let mut x532: fiat_25519_scalar_u1 = 0;
3894  fiat_25519_scalar_addcarryx_u32(&mut x531, &mut x532, 0x0, x530, x527);
3895  let mut x533: u32 = 0;
3896  let mut x534: fiat_25519_scalar_u1 = 0;
3897  fiat_25519_scalar_addcarryx_u32(&mut x533, &mut x534, x532, x528, x525);
3898  let mut x535: u32 = 0;
3899  let mut x536: fiat_25519_scalar_u1 = 0;
3900  fiat_25519_scalar_addcarryx_u32(&mut x535, &mut x536, x534, x526, x523);
3901  let mut x537: u32 = 0;
3902  let mut x538: fiat_25519_scalar_u1 = 0;
3903  fiat_25519_scalar_addcarryx_u32(&mut x537, &mut x538, 0x0, x503, x529);
3904  let mut x539: u32 = 0;
3905  let mut x540: fiat_25519_scalar_u1 = 0;
3906  fiat_25519_scalar_addcarryx_u32(&mut x539, &mut x540, x538, x505, x531);
3907  let mut x541: u32 = 0;
3908  let mut x542: fiat_25519_scalar_u1 = 0;
3909  fiat_25519_scalar_addcarryx_u32(&mut x541, &mut x542, x540, x507, x533);
3910  let mut x543: u32 = 0;
3911  let mut x544: fiat_25519_scalar_u1 = 0;
3912  fiat_25519_scalar_addcarryx_u32(&mut x543, &mut x544, x542, x509, x535);
3913  let mut x545: u32 = 0;
3914  let mut x546: fiat_25519_scalar_u1 = 0;
3915  fiat_25519_scalar_addcarryx_u32(&mut x545, &mut x546, x544, x511, ((x536 as u32) + x524));
3916  let mut x547: u32 = 0;
3917  let mut x548: fiat_25519_scalar_u1 = 0;
3918  fiat_25519_scalar_addcarryx_u32(&mut x547, &mut x548, x546, x513, (0x0 as u32));
3919  let mut x549: u32 = 0;
3920  let mut x550: fiat_25519_scalar_u1 = 0;
3921  fiat_25519_scalar_addcarryx_u32(&mut x549, &mut x550, x548, x515, (0x0 as u32));
3922  let mut x551: u32 = 0;
3923  let mut x552: fiat_25519_scalar_u1 = 0;
3924  fiat_25519_scalar_addcarryx_u32(&mut x551, &mut x552, x550, x517, x521);
3925  let mut x553: u32 = 0;
3926  let mut x554: u32 = 0;
3927  fiat_25519_scalar_mulx_u32(&mut x553, &mut x554, x7, 0x399411b);
3928  let mut x555: u32 = 0;
3929  let mut x556: u32 = 0;
3930  fiat_25519_scalar_mulx_u32(&mut x555, &mut x556, x7, 0x7c309a3d);
3931  let mut x557: u32 = 0;
3932  let mut x558: u32 = 0;
3933  fiat_25519_scalar_mulx_u32(&mut x557, &mut x558, x7, 0xceec73d2);
3934  let mut x559: u32 = 0;
3935  let mut x560: u32 = 0;
3936  fiat_25519_scalar_mulx_u32(&mut x559, &mut x560, x7, 0x17f5be65);
3937  let mut x561: u32 = 0;
3938  let mut x562: u32 = 0;
3939  fiat_25519_scalar_mulx_u32(&mut x561, &mut x562, x7, 0xd00e1ba7);
3940  let mut x563: u32 = 0;
3941  let mut x564: u32 = 0;
3942  fiat_25519_scalar_mulx_u32(&mut x563, &mut x564, x7, 0x68859347);
3943  let mut x565: u32 = 0;
3944  let mut x566: u32 = 0;
3945  fiat_25519_scalar_mulx_u32(&mut x565, &mut x566, x7, 0xa40611e3);
3946  let mut x567: u32 = 0;
3947  let mut x568: u32 = 0;
3948  fiat_25519_scalar_mulx_u32(&mut x567, &mut x568, x7, 0x449c0f01);
3949  let mut x569: u32 = 0;
3950  let mut x570: fiat_25519_scalar_u1 = 0;
3951  fiat_25519_scalar_addcarryx_u32(&mut x569, &mut x570, 0x0, x568, x565);
3952  let mut x571: u32 = 0;
3953  let mut x572: fiat_25519_scalar_u1 = 0;
3954  fiat_25519_scalar_addcarryx_u32(&mut x571, &mut x572, x570, x566, x563);
3955  let mut x573: u32 = 0;
3956  let mut x574: fiat_25519_scalar_u1 = 0;
3957  fiat_25519_scalar_addcarryx_u32(&mut x573, &mut x574, x572, x564, x561);
3958  let mut x575: u32 = 0;
3959  let mut x576: fiat_25519_scalar_u1 = 0;
3960  fiat_25519_scalar_addcarryx_u32(&mut x575, &mut x576, x574, x562, x559);
3961  let mut x577: u32 = 0;
3962  let mut x578: fiat_25519_scalar_u1 = 0;
3963  fiat_25519_scalar_addcarryx_u32(&mut x577, &mut x578, x576, x560, x557);
3964  let mut x579: u32 = 0;
3965  let mut x580: fiat_25519_scalar_u1 = 0;
3966  fiat_25519_scalar_addcarryx_u32(&mut x579, &mut x580, x578, x558, x555);
3967  let mut x581: u32 = 0;
3968  let mut x582: fiat_25519_scalar_u1 = 0;
3969  fiat_25519_scalar_addcarryx_u32(&mut x581, &mut x582, x580, x556, x553);
3970  let mut x583: u32 = 0;
3971  let mut x584: fiat_25519_scalar_u1 = 0;
3972  fiat_25519_scalar_addcarryx_u32(&mut x583, &mut x584, 0x0, x539, x567);
3973  let mut x585: u32 = 0;
3974  let mut x586: fiat_25519_scalar_u1 = 0;
3975  fiat_25519_scalar_addcarryx_u32(&mut x585, &mut x586, x584, x541, x569);
3976  let mut x587: u32 = 0;
3977  let mut x588: fiat_25519_scalar_u1 = 0;
3978  fiat_25519_scalar_addcarryx_u32(&mut x587, &mut x588, x586, x543, x571);
3979  let mut x589: u32 = 0;
3980  let mut x590: fiat_25519_scalar_u1 = 0;
3981  fiat_25519_scalar_addcarryx_u32(&mut x589, &mut x590, x588, x545, x573);
3982  let mut x591: u32 = 0;
3983  let mut x592: fiat_25519_scalar_u1 = 0;
3984  fiat_25519_scalar_addcarryx_u32(&mut x591, &mut x592, x590, x547, x575);
3985  let mut x593: u32 = 0;
3986  let mut x594: fiat_25519_scalar_u1 = 0;
3987  fiat_25519_scalar_addcarryx_u32(&mut x593, &mut x594, x592, x549, x577);
3988  let mut x595: u32 = 0;
3989  let mut x596: fiat_25519_scalar_u1 = 0;
3990  fiat_25519_scalar_addcarryx_u32(&mut x595, &mut x596, x594, x551, x579);
3991  let mut x597: u32 = 0;
3992  let mut x598: fiat_25519_scalar_u1 = 0;
3993  fiat_25519_scalar_addcarryx_u32(&mut x597, &mut x598, x596, (((x552 as u32) + ((x518 as u32) + ((x502 as u32) + x474))) + x522), x581);
3994  let mut x599: u32 = 0;
3995  let mut x600: u32 = 0;
3996  fiat_25519_scalar_mulx_u32(&mut x599, &mut x600, x583, 0x12547e1b);
3997  let mut x601: u32 = 0;
3998  let mut x602: u32 = 0;
3999  fiat_25519_scalar_mulx_u32(&mut x601, &mut x602, x599, 0x10000000);
4000  let mut x603: u32 = 0;
4001  let mut x604: u32 = 0;
4002  fiat_25519_scalar_mulx_u32(&mut x603, &mut x604, x599, 0x14def9de);
4003  let mut x605: u32 = 0;
4004  let mut x606: u32 = 0;
4005  fiat_25519_scalar_mulx_u32(&mut x605, &mut x606, x599, 0xa2f79cd6);
4006  let mut x607: u32 = 0;
4007  let mut x608: u32 = 0;
4008  fiat_25519_scalar_mulx_u32(&mut x607, &mut x608, x599, 0x5812631a);
4009  let mut x609: u32 = 0;
4010  let mut x610: u32 = 0;
4011  fiat_25519_scalar_mulx_u32(&mut x609, &mut x610, x599, 0x5cf5d3ed);
4012  let mut x611: u32 = 0;
4013  let mut x612: fiat_25519_scalar_u1 = 0;
4014  fiat_25519_scalar_addcarryx_u32(&mut x611, &mut x612, 0x0, x610, x607);
4015  let mut x613: u32 = 0;
4016  let mut x614: fiat_25519_scalar_u1 = 0;
4017  fiat_25519_scalar_addcarryx_u32(&mut x613, &mut x614, x612, x608, x605);
4018  let mut x615: u32 = 0;
4019  let mut x616: fiat_25519_scalar_u1 = 0;
4020  fiat_25519_scalar_addcarryx_u32(&mut x615, &mut x616, x614, x606, x603);
4021  let mut x617: u32 = 0;
4022  let mut x618: fiat_25519_scalar_u1 = 0;
4023  fiat_25519_scalar_addcarryx_u32(&mut x617, &mut x618, 0x0, x583, x609);
4024  let mut x619: u32 = 0;
4025  let mut x620: fiat_25519_scalar_u1 = 0;
4026  fiat_25519_scalar_addcarryx_u32(&mut x619, &mut x620, x618, x585, x611);
4027  let mut x621: u32 = 0;
4028  let mut x622: fiat_25519_scalar_u1 = 0;
4029  fiat_25519_scalar_addcarryx_u32(&mut x621, &mut x622, x620, x587, x613);
4030  let mut x623: u32 = 0;
4031  let mut x624: fiat_25519_scalar_u1 = 0;
4032  fiat_25519_scalar_addcarryx_u32(&mut x623, &mut x624, x622, x589, x615);
4033  let mut x625: u32 = 0;
4034  let mut x626: fiat_25519_scalar_u1 = 0;
4035  fiat_25519_scalar_addcarryx_u32(&mut x625, &mut x626, x624, x591, ((x616 as u32) + x604));
4036  let mut x627: u32 = 0;
4037  let mut x628: fiat_25519_scalar_u1 = 0;
4038  fiat_25519_scalar_addcarryx_u32(&mut x627, &mut x628, x626, x593, (0x0 as u32));
4039  let mut x629: u32 = 0;
4040  let mut x630: fiat_25519_scalar_u1 = 0;
4041  fiat_25519_scalar_addcarryx_u32(&mut x629, &mut x630, x628, x595, (0x0 as u32));
4042  let mut x631: u32 = 0;
4043  let mut x632: fiat_25519_scalar_u1 = 0;
4044  fiat_25519_scalar_addcarryx_u32(&mut x631, &mut x632, x630, x597, x601);
4045  let x633: u32 = (((x632 as u32) + ((x598 as u32) + ((x582 as u32) + x554))) + x602);
4046  let mut x634: u32 = 0;
4047  let mut x635: fiat_25519_scalar_u1 = 0;
4048  fiat_25519_scalar_subborrowx_u32(&mut x634, &mut x635, 0x0, x619, 0x5cf5d3ed);
4049  let mut x636: u32 = 0;
4050  let mut x637: fiat_25519_scalar_u1 = 0;
4051  fiat_25519_scalar_subborrowx_u32(&mut x636, &mut x637, x635, x621, 0x5812631a);
4052  let mut x638: u32 = 0;
4053  let mut x639: fiat_25519_scalar_u1 = 0;
4054  fiat_25519_scalar_subborrowx_u32(&mut x638, &mut x639, x637, x623, 0xa2f79cd6);
4055  let mut x640: u32 = 0;
4056  let mut x641: fiat_25519_scalar_u1 = 0;
4057  fiat_25519_scalar_subborrowx_u32(&mut x640, &mut x641, x639, x625, 0x14def9de);
4058  let mut x642: u32 = 0;
4059  let mut x643: fiat_25519_scalar_u1 = 0;
4060  fiat_25519_scalar_subborrowx_u32(&mut x642, &mut x643, x641, x627, (0x0 as u32));
4061  let mut x644: u32 = 0;
4062  let mut x645: fiat_25519_scalar_u1 = 0;
4063  fiat_25519_scalar_subborrowx_u32(&mut x644, &mut x645, x643, x629, (0x0 as u32));
4064  let mut x646: u32 = 0;
4065  let mut x647: fiat_25519_scalar_u1 = 0;
4066  fiat_25519_scalar_subborrowx_u32(&mut x646, &mut x647, x645, x631, (0x0 as u32));
4067  let mut x648: u32 = 0;
4068  let mut x649: fiat_25519_scalar_u1 = 0;
4069  fiat_25519_scalar_subborrowx_u32(&mut x648, &mut x649, x647, x633, 0x10000000);
4070  let mut x650: u32 = 0;
4071  let mut x651: fiat_25519_scalar_u1 = 0;
4072  fiat_25519_scalar_subborrowx_u32(&mut x650, &mut x651, x649, (0x0 as u32), (0x0 as u32));
4073  let mut x652: u32 = 0;
4074  fiat_25519_scalar_cmovznz_u32(&mut x652, x651, x634, x619);
4075  let mut x653: u32 = 0;
4076  fiat_25519_scalar_cmovznz_u32(&mut x653, x651, x636, x621);
4077  let mut x654: u32 = 0;
4078  fiat_25519_scalar_cmovznz_u32(&mut x654, x651, x638, x623);
4079  let mut x655: u32 = 0;
4080  fiat_25519_scalar_cmovznz_u32(&mut x655, x651, x640, x625);
4081  let mut x656: u32 = 0;
4082  fiat_25519_scalar_cmovznz_u32(&mut x656, x651, x642, x627);
4083  let mut x657: u32 = 0;
4084  fiat_25519_scalar_cmovznz_u32(&mut x657, x651, x644, x629);
4085  let mut x658: u32 = 0;
4086  fiat_25519_scalar_cmovznz_u32(&mut x658, x651, x646, x631);
4087  let mut x659: u32 = 0;
4088  fiat_25519_scalar_cmovznz_u32(&mut x659, x651, x648, x633);
4089  out1[0] = x652;
4090  out1[1] = x653;
4091  out1[2] = x654;
4092  out1[3] = x655;
4093  out1[4] = x656;
4094  out1[5] = x657;
4095  out1[6] = x658;
4096  out1[7] = x659;
4097}
4098
4099/// The function fiat_25519_scalar_nonzero outputs a single non-zero word if the input is non-zero and zero otherwise.
4100///
4101/// Preconditions:
4102///   0 ≤ eval arg1 < m
4103/// Postconditions:
4104///   out1 = 0 ↔ eval (from_montgomery arg1) mod m = 0
4105///
4106/// Input Bounds:
4107///   arg1: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]]
4108/// Output Bounds:
4109///   out1: [0x0 ~> 0xffffffff]
4110#[inline]
4111pub fn fiat_25519_scalar_nonzero(out1: &mut u32, arg1: &[u32; 8]) {
4112  let x1: u32 = ((arg1[0]) | ((arg1[1]) | ((arg1[2]) | ((arg1[3]) | ((arg1[4]) | ((arg1[5]) | ((arg1[6]) | (arg1[7]))))))));
4113  *out1 = x1;
4114}
4115
4116/// The function fiat_25519_scalar_selectznz is a multi-limb conditional select.
4117///
4118/// Postconditions:
4119///   out1 = (if arg1 = 0 then arg2 else arg3)
4120///
4121/// Input Bounds:
4122///   arg1: [0x0 ~> 0x1]
4123///   arg2: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]]
4124///   arg3: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]]
4125/// Output Bounds:
4126///   out1: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]]
4127#[inline]
4128pub fn fiat_25519_scalar_selectznz(out1: &mut [u32; 8], arg1: fiat_25519_scalar_u1, arg2: &[u32; 8], arg3: &[u32; 8]) {
4129  let mut x1: u32 = 0;
4130  fiat_25519_scalar_cmovznz_u32(&mut x1, arg1, (arg2[0]), (arg3[0]));
4131  let mut x2: u32 = 0;
4132  fiat_25519_scalar_cmovznz_u32(&mut x2, arg1, (arg2[1]), (arg3[1]));
4133  let mut x3: u32 = 0;
4134  fiat_25519_scalar_cmovznz_u32(&mut x3, arg1, (arg2[2]), (arg3[2]));
4135  let mut x4: u32 = 0;
4136  fiat_25519_scalar_cmovznz_u32(&mut x4, arg1, (arg2[3]), (arg3[3]));
4137  let mut x5: u32 = 0;
4138  fiat_25519_scalar_cmovznz_u32(&mut x5, arg1, (arg2[4]), (arg3[4]));
4139  let mut x6: u32 = 0;
4140  fiat_25519_scalar_cmovznz_u32(&mut x6, arg1, (arg2[5]), (arg3[5]));
4141  let mut x7: u32 = 0;
4142  fiat_25519_scalar_cmovznz_u32(&mut x7, arg1, (arg2[6]), (arg3[6]));
4143  let mut x8: u32 = 0;
4144  fiat_25519_scalar_cmovznz_u32(&mut x8, arg1, (arg2[7]), (arg3[7]));
4145  out1[0] = x1;
4146  out1[1] = x2;
4147  out1[2] = x3;
4148  out1[3] = x4;
4149  out1[4] = x5;
4150  out1[5] = x6;
4151  out1[6] = x7;
4152  out1[7] = x8;
4153}
4154
4155/// The function fiat_25519_scalar_to_bytes serializes a field element NOT in the Montgomery domain to bytes in little-endian order.
4156///
4157/// Preconditions:
4158///   0 ≤ eval arg1 < m
4159/// Postconditions:
4160///   out1 = map (λ x, ⌊((eval arg1 mod m) mod 2^(8 * (x + 1))) / 2^(8 * x)⌋) [0..31]
4161///
4162/// Input Bounds:
4163///   arg1: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0x1fffffff]]
4164/// Output Bounds:
4165///   out1: [[0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0x1f]]
4166#[inline]
4167pub fn fiat_25519_scalar_to_bytes(out1: &mut [u8; 32], arg1: &[u32; 8]) {
4168  let x1: u32 = (arg1[7]);
4169  let x2: u32 = (arg1[6]);
4170  let x3: u32 = (arg1[5]);
4171  let x4: u32 = (arg1[4]);
4172  let x5: u32 = (arg1[3]);
4173  let x6: u32 = (arg1[2]);
4174  let x7: u32 = (arg1[1]);
4175  let x8: u32 = (arg1[0]);
4176  let x9: u8 = ((x8 & (0xff as u32)) as u8);
4177  let x10: u32 = (x8 >> 8);
4178  let x11: u8 = ((x10 & (0xff as u32)) as u8);
4179  let x12: u32 = (x10 >> 8);
4180  let x13: u8 = ((x12 & (0xff as u32)) as u8);
4181  let x14: u8 = ((x12 >> 8) as u8);
4182  let x15: u8 = ((x7 & (0xff as u32)) as u8);
4183  let x16: u32 = (x7 >> 8);
4184  let x17: u8 = ((x16 & (0xff as u32)) as u8);
4185  let x18: u32 = (x16 >> 8);
4186  let x19: u8 = ((x18 & (0xff as u32)) as u8);
4187  let x20: u8 = ((x18 >> 8) as u8);
4188  let x21: u8 = ((x6 & (0xff as u32)) as u8);
4189  let x22: u32 = (x6 >> 8);
4190  let x23: u8 = ((x22 & (0xff as u32)) as u8);
4191  let x24: u32 = (x22 >> 8);
4192  let x25: u8 = ((x24 & (0xff as u32)) as u8);
4193  let x26: u8 = ((x24 >> 8) as u8);
4194  let x27: u8 = ((x5 & (0xff as u32)) as u8);
4195  let x28: u32 = (x5 >> 8);
4196  let x29: u8 = ((x28 & (0xff as u32)) as u8);
4197  let x30: u32 = (x28 >> 8);
4198  let x31: u8 = ((x30 & (0xff as u32)) as u8);
4199  let x32: u8 = ((x30 >> 8) as u8);
4200  let x33: u8 = ((x4 & (0xff as u32)) as u8);
4201  let x34: u32 = (x4 >> 8);
4202  let x35: u8 = ((x34 & (0xff as u32)) as u8);
4203  let x36: u32 = (x34 >> 8);
4204  let x37: u8 = ((x36 & (0xff as u32)) as u8);
4205  let x38: u8 = ((x36 >> 8) as u8);
4206  let x39: u8 = ((x3 & (0xff as u32)) as u8);
4207  let x40: u32 = (x3 >> 8);
4208  let x41: u8 = ((x40 & (0xff as u32)) as u8);
4209  let x42: u32 = (x40 >> 8);
4210  let x43: u8 = ((x42 & (0xff as u32)) as u8);
4211  let x44: u8 = ((x42 >> 8) as u8);
4212  let x45: u8 = ((x2 & (0xff as u32)) as u8);
4213  let x46: u32 = (x2 >> 8);
4214  let x47: u8 = ((x46 & (0xff as u32)) as u8);
4215  let x48: u32 = (x46 >> 8);
4216  let x49: u8 = ((x48 & (0xff as u32)) as u8);
4217  let x50: u8 = ((x48 >> 8) as u8);
4218  let x51: u8 = ((x1 & (0xff as u32)) as u8);
4219  let x52: u32 = (x1 >> 8);
4220  let x53: u8 = ((x52 & (0xff as u32)) as u8);
4221  let x54: u32 = (x52 >> 8);
4222  let x55: u8 = ((x54 & (0xff as u32)) as u8);
4223  let x56: u8 = ((x54 >> 8) as u8);
4224  out1[0] = x9;
4225  out1[1] = x11;
4226  out1[2] = x13;
4227  out1[3] = x14;
4228  out1[4] = x15;
4229  out1[5] = x17;
4230  out1[6] = x19;
4231  out1[7] = x20;
4232  out1[8] = x21;
4233  out1[9] = x23;
4234  out1[10] = x25;
4235  out1[11] = x26;
4236  out1[12] = x27;
4237  out1[13] = x29;
4238  out1[14] = x31;
4239  out1[15] = x32;
4240  out1[16] = x33;
4241  out1[17] = x35;
4242  out1[18] = x37;
4243  out1[19] = x38;
4244  out1[20] = x39;
4245  out1[21] = x41;
4246  out1[22] = x43;
4247  out1[23] = x44;
4248  out1[24] = x45;
4249  out1[25] = x47;
4250  out1[26] = x49;
4251  out1[27] = x50;
4252  out1[28] = x51;
4253  out1[29] = x53;
4254  out1[30] = x55;
4255  out1[31] = x56;
4256}
4257
4258/// The function fiat_25519_scalar_from_bytes deserializes a field element NOT in the Montgomery domain from bytes in little-endian order.
4259///
4260/// Preconditions:
4261///   0 ≤ bytes_eval arg1 < m
4262/// Postconditions:
4263///   eval out1 mod m = bytes_eval arg1 mod m
4264///   0 ≤ eval out1 < m
4265///
4266/// Input Bounds:
4267///   arg1: [[0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0x1f]]
4268/// Output Bounds:
4269///   out1: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0x1fffffff]]
4270#[inline]
4271pub fn fiat_25519_scalar_from_bytes(out1: &mut [u32; 8], arg1: &[u8; 32]) {
4272  let x1: u32 = (((arg1[31]) as u32) << 24);
4273  let x2: u32 = (((arg1[30]) as u32) << 16);
4274  let x3: u32 = (((arg1[29]) as u32) << 8);
4275  let x4: u8 = (arg1[28]);
4276  let x5: u32 = (((arg1[27]) as u32) << 24);
4277  let x6: u32 = (((arg1[26]) as u32) << 16);
4278  let x7: u32 = (((arg1[25]) as u32) << 8);
4279  let x8: u8 = (arg1[24]);
4280  let x9: u32 = (((arg1[23]) as u32) << 24);
4281  let x10: u32 = (((arg1[22]) as u32) << 16);
4282  let x11: u32 = (((arg1[21]) as u32) << 8);
4283  let x12: u8 = (arg1[20]);
4284  let x13: u32 = (((arg1[19]) as u32) << 24);
4285  let x14: u32 = (((arg1[18]) as u32) << 16);
4286  let x15: u32 = (((arg1[17]) as u32) << 8);
4287  let x16: u8 = (arg1[16]);
4288  let x17: u32 = (((arg1[15]) as u32) << 24);
4289  let x18: u32 = (((arg1[14]) as u32) << 16);
4290  let x19: u32 = (((arg1[13]) as u32) << 8);
4291  let x20: u8 = (arg1[12]);
4292  let x21: u32 = (((arg1[11]) as u32) << 24);
4293  let x22: u32 = (((arg1[10]) as u32) << 16);
4294  let x23: u32 = (((arg1[9]) as u32) << 8);
4295  let x24: u8 = (arg1[8]);
4296  let x25: u32 = (((arg1[7]) as u32) << 24);
4297  let x26: u32 = (((arg1[6]) as u32) << 16);
4298  let x27: u32 = (((arg1[5]) as u32) << 8);
4299  let x28: u8 = (arg1[4]);
4300  let x29: u32 = (((arg1[3]) as u32) << 24);
4301  let x30: u32 = (((arg1[2]) as u32) << 16);
4302  let x31: u32 = (((arg1[1]) as u32) << 8);
4303  let x32: u8 = (arg1[0]);
4304  let x33: u32 = (x31 + (x32 as u32));
4305  let x34: u32 = (x30 + x33);
4306  let x35: u32 = (x29 + x34);
4307  let x36: u32 = (x27 + (x28 as u32));
4308  let x37: u32 = (x26 + x36);
4309  let x38: u32 = (x25 + x37);
4310  let x39: u32 = (x23 + (x24 as u32));
4311  let x40: u32 = (x22 + x39);
4312  let x41: u32 = (x21 + x40);
4313  let x42: u32 = (x19 + (x20 as u32));
4314  let x43: u32 = (x18 + x42);
4315  let x44: u32 = (x17 + x43);
4316  let x45: u32 = (x15 + (x16 as u32));
4317  let x46: u32 = (x14 + x45);
4318  let x47: u32 = (x13 + x46);
4319  let x48: u32 = (x11 + (x12 as u32));
4320  let x49: u32 = (x10 + x48);
4321  let x50: u32 = (x9 + x49);
4322  let x51: u32 = (x7 + (x8 as u32));
4323  let x52: u32 = (x6 + x51);
4324  let x53: u32 = (x5 + x52);
4325  let x54: u32 = (x3 + (x4 as u32));
4326  let x55: u32 = (x2 + x54);
4327  let x56: u32 = (x1 + x55);
4328  out1[0] = x35;
4329  out1[1] = x38;
4330  out1[2] = x41;
4331  out1[3] = x44;
4332  out1[4] = x47;
4333  out1[5] = x50;
4334  out1[6] = x53;
4335  out1[7] = x56;
4336}
4337
4338/// The function fiat_25519_scalar_set_one returns the field element one in the Montgomery domain.
4339///
4340/// Postconditions:
4341///   eval (from_montgomery out1) mod m = 1 mod m
4342///   0 ≤ eval out1 < m
4343///
4344#[inline]
4345pub fn fiat_25519_scalar_set_one(out1: &mut fiat_25519_scalar_montgomery_domain_field_element) {
4346  out1[0] = 0x8d98951d;
4347  out1[1] = 0xd6ec3174;
4348  out1[2] = 0x737dcf70;
4349  out1[3] = 0xc6ef5bf4;
4350  out1[4] = 0xfffffffe;
4351  out1[5] = 0xffffffff;
4352  out1[6] = 0xffffffff;
4353  out1[7] = 0xfffffff;
4354}
4355
4356/// The function fiat_25519_scalar_msat returns the saturated representation of the prime modulus.
4357///
4358/// Postconditions:
4359///   twos_complement_eval out1 = m
4360///   0 ≤ eval out1 < m
4361///
4362/// Output Bounds:
4363///   out1: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]]
4364#[inline]
4365pub fn fiat_25519_scalar_msat(out1: &mut [u32; 9]) {
4366  out1[0] = 0x5cf5d3ed;
4367  out1[1] = 0x5812631a;
4368  out1[2] = 0xa2f79cd6;
4369  out1[3] = 0x14def9de;
4370  out1[4] = (0x0 as u32);
4371  out1[5] = (0x0 as u32);
4372  out1[6] = (0x0 as u32);
4373  out1[7] = 0x10000000;
4374  out1[8] = (0x0 as u32);
4375}
4376
4377/// The function fiat_25519_scalar_divstep computes a divstep.
4378///
4379/// Preconditions:
4380///   0 ≤ eval arg4 < m
4381///   0 ≤ eval arg5 < m
4382/// Postconditions:
4383///   out1 = (if 0 < arg1 ∧ (twos_complement_eval arg3) is odd then 1 - arg1 else 1 + arg1)
4384///   twos_complement_eval out2 = (if 0 < arg1 ∧ (twos_complement_eval arg3) is odd then twos_complement_eval arg3 else twos_complement_eval arg2)
4385///   twos_complement_eval out3 = (if 0 < arg1 ∧ (twos_complement_eval arg3) is odd then ⌊(twos_complement_eval arg3 - twos_complement_eval arg2) / 2⌋ else ⌊(twos_complement_eval arg3 + (twos_complement_eval arg3 mod 2) * twos_complement_eval arg2) / 2⌋)
4386///   eval (from_montgomery out4) mod m = (if 0 < arg1 ∧ (twos_complement_eval arg3) is odd then (2 * eval (from_montgomery arg5)) mod m else (2 * eval (from_montgomery arg4)) mod m)
4387///   eval (from_montgomery out5) mod m = (if 0 < arg1 ∧ (twos_complement_eval arg3) is odd then (eval (from_montgomery arg4) - eval (from_montgomery arg4)) mod m else (eval (from_montgomery arg5) + (twos_complement_eval arg3 mod 2) * eval (from_montgomery arg4)) mod m)
4388///   0 ≤ eval out5 < m
4389///   0 ≤ eval out5 < m
4390///   0 ≤ eval out2 < m
4391///   0 ≤ eval out3 < m
4392///
4393/// Input Bounds:
4394///   arg1: [0x0 ~> 0xffffffff]
4395///   arg2: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]]
4396///   arg3: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]]
4397///   arg4: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]]
4398///   arg5: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]]
4399/// Output Bounds:
4400///   out1: [0x0 ~> 0xffffffff]
4401///   out2: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]]
4402///   out3: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]]
4403///   out4: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]]
4404///   out5: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]]
4405#[inline]
4406pub fn fiat_25519_scalar_divstep(out1: &mut u32, out2: &mut [u32; 9], out3: &mut [u32; 9], out4: &mut [u32; 8], out5: &mut [u32; 8], arg1: u32, arg2: &[u32; 9], arg3: &[u32; 9], arg4: &[u32; 8], arg5: &[u32; 8]) {
4407  let mut x1: u32 = 0;
4408  let mut x2: fiat_25519_scalar_u1 = 0;
4409  fiat_25519_scalar_addcarryx_u32(&mut x1, &mut x2, 0x0, (!arg1), (0x1 as u32));
4410  let x3: fiat_25519_scalar_u1 = (((x1 >> 31) as fiat_25519_scalar_u1) & (((arg3[0]) & (0x1 as u32)) as fiat_25519_scalar_u1));
4411  let mut x4: u32 = 0;
4412  let mut x5: fiat_25519_scalar_u1 = 0;
4413  fiat_25519_scalar_addcarryx_u32(&mut x4, &mut x5, 0x0, (!arg1), (0x1 as u32));
4414  let mut x6: u32 = 0;
4415  fiat_25519_scalar_cmovznz_u32(&mut x6, x3, arg1, x4);
4416  let mut x7: u32 = 0;
4417  fiat_25519_scalar_cmovznz_u32(&mut x7, x3, (arg2[0]), (arg3[0]));
4418  let mut x8: u32 = 0;
4419  fiat_25519_scalar_cmovznz_u32(&mut x8, x3, (arg2[1]), (arg3[1]));
4420  let mut x9: u32 = 0;
4421  fiat_25519_scalar_cmovznz_u32(&mut x9, x3, (arg2[2]), (arg3[2]));
4422  let mut x10: u32 = 0;
4423  fiat_25519_scalar_cmovznz_u32(&mut x10, x3, (arg2[3]), (arg3[3]));
4424  let mut x11: u32 = 0;
4425  fiat_25519_scalar_cmovznz_u32(&mut x11, x3, (arg2[4]), (arg3[4]));
4426  let mut x12: u32 = 0;
4427  fiat_25519_scalar_cmovznz_u32(&mut x12, x3, (arg2[5]), (arg3[5]));
4428  let mut x13: u32 = 0;
4429  fiat_25519_scalar_cmovznz_u32(&mut x13, x3, (arg2[6]), (arg3[6]));
4430  let mut x14: u32 = 0;
4431  fiat_25519_scalar_cmovznz_u32(&mut x14, x3, (arg2[7]), (arg3[7]));
4432  let mut x15: u32 = 0;
4433  fiat_25519_scalar_cmovznz_u32(&mut x15, x3, (arg2[8]), (arg3[8]));
4434  let mut x16: u32 = 0;
4435  let mut x17: fiat_25519_scalar_u1 = 0;
4436  fiat_25519_scalar_addcarryx_u32(&mut x16, &mut x17, 0x0, (0x1 as u32), (!(arg2[0])));
4437  let mut x18: u32 = 0;
4438  let mut x19: fiat_25519_scalar_u1 = 0;
4439  fiat_25519_scalar_addcarryx_u32(&mut x18, &mut x19, x17, (0x0 as u32), (!(arg2[1])));
4440  let mut x20: u32 = 0;
4441  let mut x21: fiat_25519_scalar_u1 = 0;
4442  fiat_25519_scalar_addcarryx_u32(&mut x20, &mut x21, x19, (0x0 as u32), (!(arg2[2])));
4443  let mut x22: u32 = 0;
4444  let mut x23: fiat_25519_scalar_u1 = 0;
4445  fiat_25519_scalar_addcarryx_u32(&mut x22, &mut x23, x21, (0x0 as u32), (!(arg2[3])));
4446  let mut x24: u32 = 0;
4447  let mut x25: fiat_25519_scalar_u1 = 0;
4448  fiat_25519_scalar_addcarryx_u32(&mut x24, &mut x25, x23, (0x0 as u32), (!(arg2[4])));
4449  let mut x26: u32 = 0;
4450  let mut x27: fiat_25519_scalar_u1 = 0;
4451  fiat_25519_scalar_addcarryx_u32(&mut x26, &mut x27, x25, (0x0 as u32), (!(arg2[5])));
4452  let mut x28: u32 = 0;
4453  let mut x29: fiat_25519_scalar_u1 = 0;
4454  fiat_25519_scalar_addcarryx_u32(&mut x28, &mut x29, x27, (0x0 as u32), (!(arg2[6])));
4455  let mut x30: u32 = 0;
4456  let mut x31: fiat_25519_scalar_u1 = 0;
4457  fiat_25519_scalar_addcarryx_u32(&mut x30, &mut x31, x29, (0x0 as u32), (!(arg2[7])));
4458  let mut x32: u32 = 0;
4459  let mut x33: fiat_25519_scalar_u1 = 0;
4460  fiat_25519_scalar_addcarryx_u32(&mut x32, &mut x33, x31, (0x0 as u32), (!(arg2[8])));
4461  let mut x34: u32 = 0;
4462  fiat_25519_scalar_cmovznz_u32(&mut x34, x3, (arg3[0]), x16);
4463  let mut x35: u32 = 0;
4464  fiat_25519_scalar_cmovznz_u32(&mut x35, x3, (arg3[1]), x18);
4465  let mut x36: u32 = 0;
4466  fiat_25519_scalar_cmovznz_u32(&mut x36, x3, (arg3[2]), x20);
4467  let mut x37: u32 = 0;
4468  fiat_25519_scalar_cmovznz_u32(&mut x37, x3, (arg3[3]), x22);
4469  let mut x38: u32 = 0;
4470  fiat_25519_scalar_cmovznz_u32(&mut x38, x3, (arg3[4]), x24);
4471  let mut x39: u32 = 0;
4472  fiat_25519_scalar_cmovznz_u32(&mut x39, x3, (arg3[5]), x26);
4473  let mut x40: u32 = 0;
4474  fiat_25519_scalar_cmovznz_u32(&mut x40, x3, (arg3[6]), x28);
4475  let mut x41: u32 = 0;
4476  fiat_25519_scalar_cmovznz_u32(&mut x41, x3, (arg3[7]), x30);
4477  let mut x42: u32 = 0;
4478  fiat_25519_scalar_cmovznz_u32(&mut x42, x3, (arg3[8]), x32);
4479  let mut x43: u32 = 0;
4480  fiat_25519_scalar_cmovznz_u32(&mut x43, x3, (arg4[0]), (arg5[0]));
4481  let mut x44: u32 = 0;
4482  fiat_25519_scalar_cmovznz_u32(&mut x44, x3, (arg4[1]), (arg5[1]));
4483  let mut x45: u32 = 0;
4484  fiat_25519_scalar_cmovznz_u32(&mut x45, x3, (arg4[2]), (arg5[2]));
4485  let mut x46: u32 = 0;
4486  fiat_25519_scalar_cmovznz_u32(&mut x46, x3, (arg4[3]), (arg5[3]));
4487  let mut x47: u32 = 0;
4488  fiat_25519_scalar_cmovznz_u32(&mut x47, x3, (arg4[4]), (arg5[4]));
4489  let mut x48: u32 = 0;
4490  fiat_25519_scalar_cmovznz_u32(&mut x48, x3, (arg4[5]), (arg5[5]));
4491  let mut x49: u32 = 0;
4492  fiat_25519_scalar_cmovznz_u32(&mut x49, x3, (arg4[6]), (arg5[6]));
4493  let mut x50: u32 = 0;
4494  fiat_25519_scalar_cmovznz_u32(&mut x50, x3, (arg4[7]), (arg5[7]));
4495  let mut x51: u32 = 0;
4496  let mut x52: fiat_25519_scalar_u1 = 0;
4497  fiat_25519_scalar_addcarryx_u32(&mut x51, &mut x52, 0x0, x43, x43);
4498  let mut x53: u32 = 0;
4499  let mut x54: fiat_25519_scalar_u1 = 0;
4500  fiat_25519_scalar_addcarryx_u32(&mut x53, &mut x54, x52, x44, x44);
4501  let mut x55: u32 = 0;
4502  let mut x56: fiat_25519_scalar_u1 = 0;
4503  fiat_25519_scalar_addcarryx_u32(&mut x55, &mut x56, x54, x45, x45);
4504  let mut x57: u32 = 0;
4505  let mut x58: fiat_25519_scalar_u1 = 0;
4506  fiat_25519_scalar_addcarryx_u32(&mut x57, &mut x58, x56, x46, x46);
4507  let mut x59: u32 = 0;
4508  let mut x60: fiat_25519_scalar_u1 = 0;
4509  fiat_25519_scalar_addcarryx_u32(&mut x59, &mut x60, x58, x47, x47);
4510  let mut x61: u32 = 0;
4511  let mut x62: fiat_25519_scalar_u1 = 0;
4512  fiat_25519_scalar_addcarryx_u32(&mut x61, &mut x62, x60, x48, x48);
4513  let mut x63: u32 = 0;
4514  let mut x64: fiat_25519_scalar_u1 = 0;
4515  fiat_25519_scalar_addcarryx_u32(&mut x63, &mut x64, x62, x49, x49);
4516  let mut x65: u32 = 0;
4517  let mut x66: fiat_25519_scalar_u1 = 0;
4518  fiat_25519_scalar_addcarryx_u32(&mut x65, &mut x66, x64, x50, x50);
4519  let mut x67: u32 = 0;
4520  let mut x68: fiat_25519_scalar_u1 = 0;
4521  fiat_25519_scalar_subborrowx_u32(&mut x67, &mut x68, 0x0, x51, 0x5cf5d3ed);
4522  let mut x69: u32 = 0;
4523  let mut x70: fiat_25519_scalar_u1 = 0;
4524  fiat_25519_scalar_subborrowx_u32(&mut x69, &mut x70, x68, x53, 0x5812631a);
4525  let mut x71: u32 = 0;
4526  let mut x72: fiat_25519_scalar_u1 = 0;
4527  fiat_25519_scalar_subborrowx_u32(&mut x71, &mut x72, x70, x55, 0xa2f79cd6);
4528  let mut x73: u32 = 0;
4529  let mut x74: fiat_25519_scalar_u1 = 0;
4530  fiat_25519_scalar_subborrowx_u32(&mut x73, &mut x74, x72, x57, 0x14def9de);
4531  let mut x75: u32 = 0;
4532  let mut x76: fiat_25519_scalar_u1 = 0;
4533  fiat_25519_scalar_subborrowx_u32(&mut x75, &mut x76, x74, x59, (0x0 as u32));
4534  let mut x77: u32 = 0;
4535  let mut x78: fiat_25519_scalar_u1 = 0;
4536  fiat_25519_scalar_subborrowx_u32(&mut x77, &mut x78, x76, x61, (0x0 as u32));
4537  let mut x79: u32 = 0;
4538  let mut x80: fiat_25519_scalar_u1 = 0;
4539  fiat_25519_scalar_subborrowx_u32(&mut x79, &mut x80, x78, x63, (0x0 as u32));
4540  let mut x81: u32 = 0;
4541  let mut x82: fiat_25519_scalar_u1 = 0;
4542  fiat_25519_scalar_subborrowx_u32(&mut x81, &mut x82, x80, x65, 0x10000000);
4543  let mut x83: u32 = 0;
4544  let mut x84: fiat_25519_scalar_u1 = 0;
4545  fiat_25519_scalar_subborrowx_u32(&mut x83, &mut x84, x82, (x66 as u32), (0x0 as u32));
4546  let x85: u32 = (arg4[7]);
4547  let x86: u32 = (arg4[6]);
4548  let x87: u32 = (arg4[5]);
4549  let x88: u32 = (arg4[4]);
4550  let x89: u32 = (arg4[3]);
4551  let x90: u32 = (arg4[2]);
4552  let x91: u32 = (arg4[1]);
4553  let x92: u32 = (arg4[0]);
4554  let mut x93: u32 = 0;
4555  let mut x94: fiat_25519_scalar_u1 = 0;
4556  fiat_25519_scalar_subborrowx_u32(&mut x93, &mut x94, 0x0, (0x0 as u32), x92);
4557  let mut x95: u32 = 0;
4558  let mut x96: fiat_25519_scalar_u1 = 0;
4559  fiat_25519_scalar_subborrowx_u32(&mut x95, &mut x96, x94, (0x0 as u32), x91);
4560  let mut x97: u32 = 0;
4561  let mut x98: fiat_25519_scalar_u1 = 0;
4562  fiat_25519_scalar_subborrowx_u32(&mut x97, &mut x98, x96, (0x0 as u32), x90);
4563  let mut x99: u32 = 0;
4564  let mut x100: fiat_25519_scalar_u1 = 0;
4565  fiat_25519_scalar_subborrowx_u32(&mut x99, &mut x100, x98, (0x0 as u32), x89);
4566  let mut x101: u32 = 0;
4567  let mut x102: fiat_25519_scalar_u1 = 0;
4568  fiat_25519_scalar_subborrowx_u32(&mut x101, &mut x102, x100, (0x0 as u32), x88);
4569  let mut x103: u32 = 0;
4570  let mut x104: fiat_25519_scalar_u1 = 0;
4571  fiat_25519_scalar_subborrowx_u32(&mut x103, &mut x104, x102, (0x0 as u32), x87);
4572  let mut x105: u32 = 0;
4573  let mut x106: fiat_25519_scalar_u1 = 0;
4574  fiat_25519_scalar_subborrowx_u32(&mut x105, &mut x106, x104, (0x0 as u32), x86);
4575  let mut x107: u32 = 0;
4576  let mut x108: fiat_25519_scalar_u1 = 0;
4577  fiat_25519_scalar_subborrowx_u32(&mut x107, &mut x108, x106, (0x0 as u32), x85);
4578  let mut x109: u32 = 0;
4579  fiat_25519_scalar_cmovznz_u32(&mut x109, x108, (0x0 as u32), 0xffffffff);
4580  let mut x110: u32 = 0;
4581  let mut x111: fiat_25519_scalar_u1 = 0;
4582  fiat_25519_scalar_addcarryx_u32(&mut x110, &mut x111, 0x0, x93, (x109 & 0x5cf5d3ed));
4583  let mut x112: u32 = 0;
4584  let mut x113: fiat_25519_scalar_u1 = 0;
4585  fiat_25519_scalar_addcarryx_u32(&mut x112, &mut x113, x111, x95, (x109 & 0x5812631a));
4586  let mut x114: u32 = 0;
4587  let mut x115: fiat_25519_scalar_u1 = 0;
4588  fiat_25519_scalar_addcarryx_u32(&mut x114, &mut x115, x113, x97, (x109 & 0xa2f79cd6));
4589  let mut x116: u32 = 0;
4590  let mut x117: fiat_25519_scalar_u1 = 0;
4591  fiat_25519_scalar_addcarryx_u32(&mut x116, &mut x117, x115, x99, (x109 & 0x14def9de));
4592  let mut x118: u32 = 0;
4593  let mut x119: fiat_25519_scalar_u1 = 0;
4594  fiat_25519_scalar_addcarryx_u32(&mut x118, &mut x119, x117, x101, (0x0 as u32));
4595  let mut x120: u32 = 0;
4596  let mut x121: fiat_25519_scalar_u1 = 0;
4597  fiat_25519_scalar_addcarryx_u32(&mut x120, &mut x121, x119, x103, (0x0 as u32));
4598  let mut x122: u32 = 0;
4599  let mut x123: fiat_25519_scalar_u1 = 0;
4600  fiat_25519_scalar_addcarryx_u32(&mut x122, &mut x123, x121, x105, (0x0 as u32));
4601  let mut x124: u32 = 0;
4602  let mut x125: fiat_25519_scalar_u1 = 0;
4603  fiat_25519_scalar_addcarryx_u32(&mut x124, &mut x125, x123, x107, (x109 & 0x10000000));
4604  let mut x126: u32 = 0;
4605  fiat_25519_scalar_cmovznz_u32(&mut x126, x3, (arg5[0]), x110);
4606  let mut x127: u32 = 0;
4607  fiat_25519_scalar_cmovznz_u32(&mut x127, x3, (arg5[1]), x112);
4608  let mut x128: u32 = 0;
4609  fiat_25519_scalar_cmovznz_u32(&mut x128, x3, (arg5[2]), x114);
4610  let mut x129: u32 = 0;
4611  fiat_25519_scalar_cmovznz_u32(&mut x129, x3, (arg5[3]), x116);
4612  let mut x130: u32 = 0;
4613  fiat_25519_scalar_cmovznz_u32(&mut x130, x3, (arg5[4]), x118);
4614  let mut x131: u32 = 0;
4615  fiat_25519_scalar_cmovznz_u32(&mut x131, x3, (arg5[5]), x120);
4616  let mut x132: u32 = 0;
4617  fiat_25519_scalar_cmovznz_u32(&mut x132, x3, (arg5[6]), x122);
4618  let mut x133: u32 = 0;
4619  fiat_25519_scalar_cmovznz_u32(&mut x133, x3, (arg5[7]), x124);
4620  let x134: fiat_25519_scalar_u1 = ((x34 & (0x1 as u32)) as fiat_25519_scalar_u1);
4621  let mut x135: u32 = 0;
4622  fiat_25519_scalar_cmovznz_u32(&mut x135, x134, (0x0 as u32), x7);
4623  let mut x136: u32 = 0;
4624  fiat_25519_scalar_cmovznz_u32(&mut x136, x134, (0x0 as u32), x8);
4625  let mut x137: u32 = 0;
4626  fiat_25519_scalar_cmovznz_u32(&mut x137, x134, (0x0 as u32), x9);
4627  let mut x138: u32 = 0;
4628  fiat_25519_scalar_cmovznz_u32(&mut x138, x134, (0x0 as u32), x10);
4629  let mut x139: u32 = 0;
4630  fiat_25519_scalar_cmovznz_u32(&mut x139, x134, (0x0 as u32), x11);
4631  let mut x140: u32 = 0;
4632  fiat_25519_scalar_cmovznz_u32(&mut x140, x134, (0x0 as u32), x12);
4633  let mut x141: u32 = 0;
4634  fiat_25519_scalar_cmovznz_u32(&mut x141, x134, (0x0 as u32), x13);
4635  let mut x142: u32 = 0;
4636  fiat_25519_scalar_cmovznz_u32(&mut x142, x134, (0x0 as u32), x14);
4637  let mut x143: u32 = 0;
4638  fiat_25519_scalar_cmovznz_u32(&mut x143, x134, (0x0 as u32), x15);
4639  let mut x144: u32 = 0;
4640  let mut x145: fiat_25519_scalar_u1 = 0;
4641  fiat_25519_scalar_addcarryx_u32(&mut x144, &mut x145, 0x0, x34, x135);
4642  let mut x146: u32 = 0;
4643  let mut x147: fiat_25519_scalar_u1 = 0;
4644  fiat_25519_scalar_addcarryx_u32(&mut x146, &mut x147, x145, x35, x136);
4645  let mut x148: u32 = 0;
4646  let mut x149: fiat_25519_scalar_u1 = 0;
4647  fiat_25519_scalar_addcarryx_u32(&mut x148, &mut x149, x147, x36, x137);
4648  let mut x150: u32 = 0;
4649  let mut x151: fiat_25519_scalar_u1 = 0;
4650  fiat_25519_scalar_addcarryx_u32(&mut x150, &mut x151, x149, x37, x138);
4651  let mut x152: u32 = 0;
4652  let mut x153: fiat_25519_scalar_u1 = 0;
4653  fiat_25519_scalar_addcarryx_u32(&mut x152, &mut x153, x151, x38, x139);
4654  let mut x154: u32 = 0;
4655  let mut x155: fiat_25519_scalar_u1 = 0;
4656  fiat_25519_scalar_addcarryx_u32(&mut x154, &mut x155, x153, x39, x140);
4657  let mut x156: u32 = 0;
4658  let mut x157: fiat_25519_scalar_u1 = 0;
4659  fiat_25519_scalar_addcarryx_u32(&mut x156, &mut x157, x155, x40, x141);
4660  let mut x158: u32 = 0;
4661  let mut x159: fiat_25519_scalar_u1 = 0;
4662  fiat_25519_scalar_addcarryx_u32(&mut x158, &mut x159, x157, x41, x142);
4663  let mut x160: u32 = 0;
4664  let mut x161: fiat_25519_scalar_u1 = 0;
4665  fiat_25519_scalar_addcarryx_u32(&mut x160, &mut x161, x159, x42, x143);
4666  let mut x162: u32 = 0;
4667  fiat_25519_scalar_cmovznz_u32(&mut x162, x134, (0x0 as u32), x43);
4668  let mut x163: u32 = 0;
4669  fiat_25519_scalar_cmovznz_u32(&mut x163, x134, (0x0 as u32), x44);
4670  let mut x164: u32 = 0;
4671  fiat_25519_scalar_cmovznz_u32(&mut x164, x134, (0x0 as u32), x45);
4672  let mut x165: u32 = 0;
4673  fiat_25519_scalar_cmovznz_u32(&mut x165, x134, (0x0 as u32), x46);
4674  let mut x166: u32 = 0;
4675  fiat_25519_scalar_cmovznz_u32(&mut x166, x134, (0x0 as u32), x47);
4676  let mut x167: u32 = 0;
4677  fiat_25519_scalar_cmovznz_u32(&mut x167, x134, (0x0 as u32), x48);
4678  let mut x168: u32 = 0;
4679  fiat_25519_scalar_cmovznz_u32(&mut x168, x134, (0x0 as u32), x49);
4680  let mut x169: u32 = 0;
4681  fiat_25519_scalar_cmovznz_u32(&mut x169, x134, (0x0 as u32), x50);
4682  let mut x170: u32 = 0;
4683  let mut x171: fiat_25519_scalar_u1 = 0;
4684  fiat_25519_scalar_addcarryx_u32(&mut x170, &mut x171, 0x0, x126, x162);
4685  let mut x172: u32 = 0;
4686  let mut x173: fiat_25519_scalar_u1 = 0;
4687  fiat_25519_scalar_addcarryx_u32(&mut x172, &mut x173, x171, x127, x163);
4688  let mut x174: u32 = 0;
4689  let mut x175: fiat_25519_scalar_u1 = 0;
4690  fiat_25519_scalar_addcarryx_u32(&mut x174, &mut x175, x173, x128, x164);
4691  let mut x176: u32 = 0;
4692  let mut x177: fiat_25519_scalar_u1 = 0;
4693  fiat_25519_scalar_addcarryx_u32(&mut x176, &mut x177, x175, x129, x165);
4694  let mut x178: u32 = 0;
4695  let mut x179: fiat_25519_scalar_u1 = 0;
4696  fiat_25519_scalar_addcarryx_u32(&mut x178, &mut x179, x177, x130, x166);
4697  let mut x180: u32 = 0;
4698  let mut x181: fiat_25519_scalar_u1 = 0;
4699  fiat_25519_scalar_addcarryx_u32(&mut x180, &mut x181, x179, x131, x167);
4700  let mut x182: u32 = 0;
4701  let mut x183: fiat_25519_scalar_u1 = 0;
4702  fiat_25519_scalar_addcarryx_u32(&mut x182, &mut x183, x181, x132, x168);
4703  let mut x184: u32 = 0;
4704  let mut x185: fiat_25519_scalar_u1 = 0;
4705  fiat_25519_scalar_addcarryx_u32(&mut x184, &mut x185, x183, x133, x169);
4706  let mut x186: u32 = 0;
4707  let mut x187: fiat_25519_scalar_u1 = 0;
4708  fiat_25519_scalar_subborrowx_u32(&mut x186, &mut x187, 0x0, x170, 0x5cf5d3ed);
4709  let mut x188: u32 = 0;
4710  let mut x189: fiat_25519_scalar_u1 = 0;
4711  fiat_25519_scalar_subborrowx_u32(&mut x188, &mut x189, x187, x172, 0x5812631a);
4712  let mut x190: u32 = 0;
4713  let mut x191: fiat_25519_scalar_u1 = 0;
4714  fiat_25519_scalar_subborrowx_u32(&mut x190, &mut x191, x189, x174, 0xa2f79cd6);
4715  let mut x192: u32 = 0;
4716  let mut x193: fiat_25519_scalar_u1 = 0;
4717  fiat_25519_scalar_subborrowx_u32(&mut x192, &mut x193, x191, x176, 0x14def9de);
4718  let mut x194: u32 = 0;
4719  let mut x195: fiat_25519_scalar_u1 = 0;
4720  fiat_25519_scalar_subborrowx_u32(&mut x194, &mut x195, x193, x178, (0x0 as u32));
4721  let mut x196: u32 = 0;
4722  let mut x197: fiat_25519_scalar_u1 = 0;
4723  fiat_25519_scalar_subborrowx_u32(&mut x196, &mut x197, x195, x180, (0x0 as u32));
4724  let mut x198: u32 = 0;
4725  let mut x199: fiat_25519_scalar_u1 = 0;
4726  fiat_25519_scalar_subborrowx_u32(&mut x198, &mut x199, x197, x182, (0x0 as u32));
4727  let mut x200: u32 = 0;
4728  let mut x201: fiat_25519_scalar_u1 = 0;
4729  fiat_25519_scalar_subborrowx_u32(&mut x200, &mut x201, x199, x184, 0x10000000);
4730  let mut x202: u32 = 0;
4731  let mut x203: fiat_25519_scalar_u1 = 0;
4732  fiat_25519_scalar_subborrowx_u32(&mut x202, &mut x203, x201, (x185 as u32), (0x0 as u32));
4733  let mut x204: u32 = 0;
4734  let mut x205: fiat_25519_scalar_u1 = 0;
4735  fiat_25519_scalar_addcarryx_u32(&mut x204, &mut x205, 0x0, x6, (0x1 as u32));
4736  let x206: u32 = ((x144 >> 1) | ((x146 << 31) & 0xffffffff));
4737  let x207: u32 = ((x146 >> 1) | ((x148 << 31) & 0xffffffff));
4738  let x208: u32 = ((x148 >> 1) | ((x150 << 31) & 0xffffffff));
4739  let x209: u32 = ((x150 >> 1) | ((x152 << 31) & 0xffffffff));
4740  let x210: u32 = ((x152 >> 1) | ((x154 << 31) & 0xffffffff));
4741  let x211: u32 = ((x154 >> 1) | ((x156 << 31) & 0xffffffff));
4742  let x212: u32 = ((x156 >> 1) | ((x158 << 31) & 0xffffffff));
4743  let x213: u32 = ((x158 >> 1) | ((x160 << 31) & 0xffffffff));
4744  let x214: u32 = ((x160 & 0x80000000) | (x160 >> 1));
4745  let mut x215: u32 = 0;
4746  fiat_25519_scalar_cmovznz_u32(&mut x215, x84, x67, x51);
4747  let mut x216: u32 = 0;
4748  fiat_25519_scalar_cmovznz_u32(&mut x216, x84, x69, x53);
4749  let mut x217: u32 = 0;
4750  fiat_25519_scalar_cmovznz_u32(&mut x217, x84, x71, x55);
4751  let mut x218: u32 = 0;
4752  fiat_25519_scalar_cmovznz_u32(&mut x218, x84, x73, x57);
4753  let mut x219: u32 = 0;
4754  fiat_25519_scalar_cmovznz_u32(&mut x219, x84, x75, x59);
4755  let mut x220: u32 = 0;
4756  fiat_25519_scalar_cmovznz_u32(&mut x220, x84, x77, x61);
4757  let mut x221: u32 = 0;
4758  fiat_25519_scalar_cmovznz_u32(&mut x221, x84, x79, x63);
4759  let mut x222: u32 = 0;
4760  fiat_25519_scalar_cmovznz_u32(&mut x222, x84, x81, x65);
4761  let mut x223: u32 = 0;
4762  fiat_25519_scalar_cmovznz_u32(&mut x223, x203, x186, x170);
4763  let mut x224: u32 = 0;
4764  fiat_25519_scalar_cmovznz_u32(&mut x224, x203, x188, x172);
4765  let mut x225: u32 = 0;
4766  fiat_25519_scalar_cmovznz_u32(&mut x225, x203, x190, x174);
4767  let mut x226: u32 = 0;
4768  fiat_25519_scalar_cmovznz_u32(&mut x226, x203, x192, x176);
4769  let mut x227: u32 = 0;
4770  fiat_25519_scalar_cmovznz_u32(&mut x227, x203, x194, x178);
4771  let mut x228: u32 = 0;
4772  fiat_25519_scalar_cmovznz_u32(&mut x228, x203, x196, x180);
4773  let mut x229: u32 = 0;
4774  fiat_25519_scalar_cmovznz_u32(&mut x229, x203, x198, x182);
4775  let mut x230: u32 = 0;
4776  fiat_25519_scalar_cmovznz_u32(&mut x230, x203, x200, x184);
4777  *out1 = x204;
4778  out2[0] = x7;
4779  out2[1] = x8;
4780  out2[2] = x9;
4781  out2[3] = x10;
4782  out2[4] = x11;
4783  out2[5] = x12;
4784  out2[6] = x13;
4785  out2[7] = x14;
4786  out2[8] = x15;
4787  out3[0] = x206;
4788  out3[1] = x207;
4789  out3[2] = x208;
4790  out3[3] = x209;
4791  out3[4] = x210;
4792  out3[5] = x211;
4793  out3[6] = x212;
4794  out3[7] = x213;
4795  out3[8] = x214;
4796  out4[0] = x215;
4797  out4[1] = x216;
4798  out4[2] = x217;
4799  out4[3] = x218;
4800  out4[4] = x219;
4801  out4[5] = x220;
4802  out4[6] = x221;
4803  out4[7] = x222;
4804  out5[0] = x223;
4805  out5[1] = x224;
4806  out5[2] = x225;
4807  out5[3] = x226;
4808  out5[4] = x227;
4809  out5[5] = x228;
4810  out5[6] = x229;
4811  out5[7] = x230;
4812}
4813
4814/// The function fiat_25519_scalar_divstep_precomp returns the precomputed value for Bernstein-Yang-inversion (in montgomery form).
4815///
4816/// Postconditions:
4817///   eval (from_montgomery out1) = ⌊(m - 1) / 2⌋^(if ⌊log2 m⌋ + 1 < 46 then ⌊(49 * (⌊log2 m⌋ + 1) + 80) / 17⌋ else ⌊(49 * (⌊log2 m⌋ + 1) + 57) / 17⌋)
4818///   0 ≤ eval out1 < m
4819///
4820/// Output Bounds:
4821///   out1: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]]
4822#[inline]
4823pub fn fiat_25519_scalar_divstep_precomp(out1: &mut [u32; 8]) {
4824  out1[0] = 0x36a7cb92;
4825  out1[1] = 0xd70af844;
4826  out1[2] = 0xb0b8b159;
4827  out1[3] = 0x5f71c978;
4828  out1[4] = 0x74947f1a;
4829  out1[5] = 0xe76d8169;
4830  out1[6] = 0xf193e4ff;
4831  out1[7] = 0x19a2d36;
4832}