1#![allow(unused_parens)]
21#![allow(non_camel_case_types)]
22
23pub type fiat_p256_scalar_u1 = u8;
25pub type fiat_p256_scalar_i1 = i8;
27pub type fiat_p256_scalar_u2 = u8;
29pub type fiat_p256_scalar_i2 = i8;
31
32#[derive(Clone, Copy)]
35pub struct fiat_p256_scalar_montgomery_domain_field_element(pub [u64; 4]);
36
37impl core::ops::Index<usize> for fiat_p256_scalar_montgomery_domain_field_element {
38 type Output = u64;
39 #[inline]
40 fn index(&self, index: usize) -> &Self::Output {
41 &self.0[index]
42 }
43}
44
45impl core::ops::IndexMut<usize> for fiat_p256_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#[derive(Clone, Copy)]
55pub struct fiat_p256_scalar_non_montgomery_domain_field_element(pub [u64; 4]);
56
57impl core::ops::Index<usize> for fiat_p256_scalar_non_montgomery_domain_field_element {
58 type Output = u64;
59 #[inline]
60 fn index(&self, index: usize) -> &Self::Output {
61 &self.0[index]
62 }
63}
64
65impl core::ops::IndexMut<usize> for fiat_p256_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#[inline]
87pub fn fiat_p256_scalar_addcarryx_u64(out1: &mut u64, out2: &mut fiat_p256_scalar_u1, arg1: fiat_p256_scalar_u1, arg2: u64, arg3: u64) {
88 let x1: u128 = (((arg1 as u128) + (arg2 as u128)) + (arg3 as u128));
89 let x2: u64 = ((x1 & (0xffffffffffffffff as u128)) as u64);
90 let x3: fiat_p256_scalar_u1 = ((x1 >> 64) as fiat_p256_scalar_u1);
91 *out1 = x2;
92 *out2 = x3;
93}
94
95#[inline]
109pub fn fiat_p256_scalar_subborrowx_u64(out1: &mut u64, out2: &mut fiat_p256_scalar_u1, arg1: fiat_p256_scalar_u1, arg2: u64, arg3: u64) {
110 let x1: i128 = (((arg2 as i128) - (arg1 as i128)) - (arg3 as i128));
111 let x2: fiat_p256_scalar_i1 = ((x1 >> 64) as fiat_p256_scalar_i1);
112 let x3: u64 = ((x1 & (0xffffffffffffffff as i128)) as u64);
113 *out1 = x3;
114 *out2 = (((0x0 as fiat_p256_scalar_i2) - (x2 as fiat_p256_scalar_i2)) as fiat_p256_scalar_u1);
115}
116
117#[inline]
130pub fn fiat_p256_scalar_mulx_u64(out1: &mut u64, out2: &mut u64, arg1: u64, arg2: u64) {
131 let x1: u128 = ((arg1 as u128) * (arg2 as u128));
132 let x2: u64 = ((x1 & (0xffffffffffffffff as u128)) as u64);
133 let x3: u64 = ((x1 >> 64) as u64);
134 *out1 = x2;
135 *out2 = x3;
136}
137
138#[inline]
150pub fn fiat_p256_scalar_cmovznz_u64(out1: &mut u64, arg1: fiat_p256_scalar_u1, arg2: u64, arg3: u64) {
151 let x1: fiat_p256_scalar_u1 = (!(!arg1));
152 let x2: u64 = ((((((0x0 as fiat_p256_scalar_i2) - (x1 as fiat_p256_scalar_i2)) as fiat_p256_scalar_i1) as i128) & (0xffffffffffffffff as i128)) as u64);
153 let x3: u64 = ((x2 & arg3) | ((!x2) & arg2));
154 *out1 = x3;
155}
156
157#[inline]
167pub fn fiat_p256_scalar_mul(out1: &mut fiat_p256_scalar_montgomery_domain_field_element, arg1: &fiat_p256_scalar_montgomery_domain_field_element, arg2: &fiat_p256_scalar_montgomery_domain_field_element) {
168 let x1: u64 = (arg1[1]);
169 let x2: u64 = (arg1[2]);
170 let x3: u64 = (arg1[3]);
171 let x4: u64 = (arg1[0]);
172 let mut x5: u64 = 0;
173 let mut x6: u64 = 0;
174 fiat_p256_scalar_mulx_u64(&mut x5, &mut x6, x4, (arg2[3]));
175 let mut x7: u64 = 0;
176 let mut x8: u64 = 0;
177 fiat_p256_scalar_mulx_u64(&mut x7, &mut x8, x4, (arg2[2]));
178 let mut x9: u64 = 0;
179 let mut x10: u64 = 0;
180 fiat_p256_scalar_mulx_u64(&mut x9, &mut x10, x4, (arg2[1]));
181 let mut x11: u64 = 0;
182 let mut x12: u64 = 0;
183 fiat_p256_scalar_mulx_u64(&mut x11, &mut x12, x4, (arg2[0]));
184 let mut x13: u64 = 0;
185 let mut x14: fiat_p256_scalar_u1 = 0;
186 fiat_p256_scalar_addcarryx_u64(&mut x13, &mut x14, 0x0, x12, x9);
187 let mut x15: u64 = 0;
188 let mut x16: fiat_p256_scalar_u1 = 0;
189 fiat_p256_scalar_addcarryx_u64(&mut x15, &mut x16, x14, x10, x7);
190 let mut x17: u64 = 0;
191 let mut x18: fiat_p256_scalar_u1 = 0;
192 fiat_p256_scalar_addcarryx_u64(&mut x17, &mut x18, x16, x8, x5);
193 let x19: u64 = ((x18 as u64) + x6);
194 let mut x20: u64 = 0;
195 let mut x21: u64 = 0;
196 fiat_p256_scalar_mulx_u64(&mut x20, &mut x21, x11, 0xccd1c8aaee00bc4f);
197 let mut x22: u64 = 0;
198 let mut x23: u64 = 0;
199 fiat_p256_scalar_mulx_u64(&mut x22, &mut x23, x20, 0xffffffff00000000);
200 let mut x24: u64 = 0;
201 let mut x25: u64 = 0;
202 fiat_p256_scalar_mulx_u64(&mut x24, &mut x25, x20, 0xffffffffffffffff);
203 let mut x26: u64 = 0;
204 let mut x27: u64 = 0;
205 fiat_p256_scalar_mulx_u64(&mut x26, &mut x27, x20, 0xbce6faada7179e84);
206 let mut x28: u64 = 0;
207 let mut x29: u64 = 0;
208 fiat_p256_scalar_mulx_u64(&mut x28, &mut x29, x20, 0xf3b9cac2fc632551);
209 let mut x30: u64 = 0;
210 let mut x31: fiat_p256_scalar_u1 = 0;
211 fiat_p256_scalar_addcarryx_u64(&mut x30, &mut x31, 0x0, x29, x26);
212 let mut x32: u64 = 0;
213 let mut x33: fiat_p256_scalar_u1 = 0;
214 fiat_p256_scalar_addcarryx_u64(&mut x32, &mut x33, x31, x27, x24);
215 let mut x34: u64 = 0;
216 let mut x35: fiat_p256_scalar_u1 = 0;
217 fiat_p256_scalar_addcarryx_u64(&mut x34, &mut x35, x33, x25, x22);
218 let x36: u64 = ((x35 as u64) + x23);
219 let mut x37: u64 = 0;
220 let mut x38: fiat_p256_scalar_u1 = 0;
221 fiat_p256_scalar_addcarryx_u64(&mut x37, &mut x38, 0x0, x11, x28);
222 let mut x39: u64 = 0;
223 let mut x40: fiat_p256_scalar_u1 = 0;
224 fiat_p256_scalar_addcarryx_u64(&mut x39, &mut x40, x38, x13, x30);
225 let mut x41: u64 = 0;
226 let mut x42: fiat_p256_scalar_u1 = 0;
227 fiat_p256_scalar_addcarryx_u64(&mut x41, &mut x42, x40, x15, x32);
228 let mut x43: u64 = 0;
229 let mut x44: fiat_p256_scalar_u1 = 0;
230 fiat_p256_scalar_addcarryx_u64(&mut x43, &mut x44, x42, x17, x34);
231 let mut x45: u64 = 0;
232 let mut x46: fiat_p256_scalar_u1 = 0;
233 fiat_p256_scalar_addcarryx_u64(&mut x45, &mut x46, x44, x19, x36);
234 let mut x47: u64 = 0;
235 let mut x48: u64 = 0;
236 fiat_p256_scalar_mulx_u64(&mut x47, &mut x48, x1, (arg2[3]));
237 let mut x49: u64 = 0;
238 let mut x50: u64 = 0;
239 fiat_p256_scalar_mulx_u64(&mut x49, &mut x50, x1, (arg2[2]));
240 let mut x51: u64 = 0;
241 let mut x52: u64 = 0;
242 fiat_p256_scalar_mulx_u64(&mut x51, &mut x52, x1, (arg2[1]));
243 let mut x53: u64 = 0;
244 let mut x54: u64 = 0;
245 fiat_p256_scalar_mulx_u64(&mut x53, &mut x54, x1, (arg2[0]));
246 let mut x55: u64 = 0;
247 let mut x56: fiat_p256_scalar_u1 = 0;
248 fiat_p256_scalar_addcarryx_u64(&mut x55, &mut x56, 0x0, x54, x51);
249 let mut x57: u64 = 0;
250 let mut x58: fiat_p256_scalar_u1 = 0;
251 fiat_p256_scalar_addcarryx_u64(&mut x57, &mut x58, x56, x52, x49);
252 let mut x59: u64 = 0;
253 let mut x60: fiat_p256_scalar_u1 = 0;
254 fiat_p256_scalar_addcarryx_u64(&mut x59, &mut x60, x58, x50, x47);
255 let x61: u64 = ((x60 as u64) + x48);
256 let mut x62: u64 = 0;
257 let mut x63: fiat_p256_scalar_u1 = 0;
258 fiat_p256_scalar_addcarryx_u64(&mut x62, &mut x63, 0x0, x39, x53);
259 let mut x64: u64 = 0;
260 let mut x65: fiat_p256_scalar_u1 = 0;
261 fiat_p256_scalar_addcarryx_u64(&mut x64, &mut x65, x63, x41, x55);
262 let mut x66: u64 = 0;
263 let mut x67: fiat_p256_scalar_u1 = 0;
264 fiat_p256_scalar_addcarryx_u64(&mut x66, &mut x67, x65, x43, x57);
265 let mut x68: u64 = 0;
266 let mut x69: fiat_p256_scalar_u1 = 0;
267 fiat_p256_scalar_addcarryx_u64(&mut x68, &mut x69, x67, x45, x59);
268 let mut x70: u64 = 0;
269 let mut x71: fiat_p256_scalar_u1 = 0;
270 fiat_p256_scalar_addcarryx_u64(&mut x70, &mut x71, x69, (x46 as u64), x61);
271 let mut x72: u64 = 0;
272 let mut x73: u64 = 0;
273 fiat_p256_scalar_mulx_u64(&mut x72, &mut x73, x62, 0xccd1c8aaee00bc4f);
274 let mut x74: u64 = 0;
275 let mut x75: u64 = 0;
276 fiat_p256_scalar_mulx_u64(&mut x74, &mut x75, x72, 0xffffffff00000000);
277 let mut x76: u64 = 0;
278 let mut x77: u64 = 0;
279 fiat_p256_scalar_mulx_u64(&mut x76, &mut x77, x72, 0xffffffffffffffff);
280 let mut x78: u64 = 0;
281 let mut x79: u64 = 0;
282 fiat_p256_scalar_mulx_u64(&mut x78, &mut x79, x72, 0xbce6faada7179e84);
283 let mut x80: u64 = 0;
284 let mut x81: u64 = 0;
285 fiat_p256_scalar_mulx_u64(&mut x80, &mut x81, x72, 0xf3b9cac2fc632551);
286 let mut x82: u64 = 0;
287 let mut x83: fiat_p256_scalar_u1 = 0;
288 fiat_p256_scalar_addcarryx_u64(&mut x82, &mut x83, 0x0, x81, x78);
289 let mut x84: u64 = 0;
290 let mut x85: fiat_p256_scalar_u1 = 0;
291 fiat_p256_scalar_addcarryx_u64(&mut x84, &mut x85, x83, x79, x76);
292 let mut x86: u64 = 0;
293 let mut x87: fiat_p256_scalar_u1 = 0;
294 fiat_p256_scalar_addcarryx_u64(&mut x86, &mut x87, x85, x77, x74);
295 let x88: u64 = ((x87 as u64) + x75);
296 let mut x89: u64 = 0;
297 let mut x90: fiat_p256_scalar_u1 = 0;
298 fiat_p256_scalar_addcarryx_u64(&mut x89, &mut x90, 0x0, x62, x80);
299 let mut x91: u64 = 0;
300 let mut x92: fiat_p256_scalar_u1 = 0;
301 fiat_p256_scalar_addcarryx_u64(&mut x91, &mut x92, x90, x64, x82);
302 let mut x93: u64 = 0;
303 let mut x94: fiat_p256_scalar_u1 = 0;
304 fiat_p256_scalar_addcarryx_u64(&mut x93, &mut x94, x92, x66, x84);
305 let mut x95: u64 = 0;
306 let mut x96: fiat_p256_scalar_u1 = 0;
307 fiat_p256_scalar_addcarryx_u64(&mut x95, &mut x96, x94, x68, x86);
308 let mut x97: u64 = 0;
309 let mut x98: fiat_p256_scalar_u1 = 0;
310 fiat_p256_scalar_addcarryx_u64(&mut x97, &mut x98, x96, x70, x88);
311 let x99: u64 = ((x98 as u64) + (x71 as u64));
312 let mut x100: u64 = 0;
313 let mut x101: u64 = 0;
314 fiat_p256_scalar_mulx_u64(&mut x100, &mut x101, x2, (arg2[3]));
315 let mut x102: u64 = 0;
316 let mut x103: u64 = 0;
317 fiat_p256_scalar_mulx_u64(&mut x102, &mut x103, x2, (arg2[2]));
318 let mut x104: u64 = 0;
319 let mut x105: u64 = 0;
320 fiat_p256_scalar_mulx_u64(&mut x104, &mut x105, x2, (arg2[1]));
321 let mut x106: u64 = 0;
322 let mut x107: u64 = 0;
323 fiat_p256_scalar_mulx_u64(&mut x106, &mut x107, x2, (arg2[0]));
324 let mut x108: u64 = 0;
325 let mut x109: fiat_p256_scalar_u1 = 0;
326 fiat_p256_scalar_addcarryx_u64(&mut x108, &mut x109, 0x0, x107, x104);
327 let mut x110: u64 = 0;
328 let mut x111: fiat_p256_scalar_u1 = 0;
329 fiat_p256_scalar_addcarryx_u64(&mut x110, &mut x111, x109, x105, x102);
330 let mut x112: u64 = 0;
331 let mut x113: fiat_p256_scalar_u1 = 0;
332 fiat_p256_scalar_addcarryx_u64(&mut x112, &mut x113, x111, x103, x100);
333 let x114: u64 = ((x113 as u64) + x101);
334 let mut x115: u64 = 0;
335 let mut x116: fiat_p256_scalar_u1 = 0;
336 fiat_p256_scalar_addcarryx_u64(&mut x115, &mut x116, 0x0, x91, x106);
337 let mut x117: u64 = 0;
338 let mut x118: fiat_p256_scalar_u1 = 0;
339 fiat_p256_scalar_addcarryx_u64(&mut x117, &mut x118, x116, x93, x108);
340 let mut x119: u64 = 0;
341 let mut x120: fiat_p256_scalar_u1 = 0;
342 fiat_p256_scalar_addcarryx_u64(&mut x119, &mut x120, x118, x95, x110);
343 let mut x121: u64 = 0;
344 let mut x122: fiat_p256_scalar_u1 = 0;
345 fiat_p256_scalar_addcarryx_u64(&mut x121, &mut x122, x120, x97, x112);
346 let mut x123: u64 = 0;
347 let mut x124: fiat_p256_scalar_u1 = 0;
348 fiat_p256_scalar_addcarryx_u64(&mut x123, &mut x124, x122, x99, x114);
349 let mut x125: u64 = 0;
350 let mut x126: u64 = 0;
351 fiat_p256_scalar_mulx_u64(&mut x125, &mut x126, x115, 0xccd1c8aaee00bc4f);
352 let mut x127: u64 = 0;
353 let mut x128: u64 = 0;
354 fiat_p256_scalar_mulx_u64(&mut x127, &mut x128, x125, 0xffffffff00000000);
355 let mut x129: u64 = 0;
356 let mut x130: u64 = 0;
357 fiat_p256_scalar_mulx_u64(&mut x129, &mut x130, x125, 0xffffffffffffffff);
358 let mut x131: u64 = 0;
359 let mut x132: u64 = 0;
360 fiat_p256_scalar_mulx_u64(&mut x131, &mut x132, x125, 0xbce6faada7179e84);
361 let mut x133: u64 = 0;
362 let mut x134: u64 = 0;
363 fiat_p256_scalar_mulx_u64(&mut x133, &mut x134, x125, 0xf3b9cac2fc632551);
364 let mut x135: u64 = 0;
365 let mut x136: fiat_p256_scalar_u1 = 0;
366 fiat_p256_scalar_addcarryx_u64(&mut x135, &mut x136, 0x0, x134, x131);
367 let mut x137: u64 = 0;
368 let mut x138: fiat_p256_scalar_u1 = 0;
369 fiat_p256_scalar_addcarryx_u64(&mut x137, &mut x138, x136, x132, x129);
370 let mut x139: u64 = 0;
371 let mut x140: fiat_p256_scalar_u1 = 0;
372 fiat_p256_scalar_addcarryx_u64(&mut x139, &mut x140, x138, x130, x127);
373 let x141: u64 = ((x140 as u64) + x128);
374 let mut x142: u64 = 0;
375 let mut x143: fiat_p256_scalar_u1 = 0;
376 fiat_p256_scalar_addcarryx_u64(&mut x142, &mut x143, 0x0, x115, x133);
377 let mut x144: u64 = 0;
378 let mut x145: fiat_p256_scalar_u1 = 0;
379 fiat_p256_scalar_addcarryx_u64(&mut x144, &mut x145, x143, x117, x135);
380 let mut x146: u64 = 0;
381 let mut x147: fiat_p256_scalar_u1 = 0;
382 fiat_p256_scalar_addcarryx_u64(&mut x146, &mut x147, x145, x119, x137);
383 let mut x148: u64 = 0;
384 let mut x149: fiat_p256_scalar_u1 = 0;
385 fiat_p256_scalar_addcarryx_u64(&mut x148, &mut x149, x147, x121, x139);
386 let mut x150: u64 = 0;
387 let mut x151: fiat_p256_scalar_u1 = 0;
388 fiat_p256_scalar_addcarryx_u64(&mut x150, &mut x151, x149, x123, x141);
389 let x152: u64 = ((x151 as u64) + (x124 as u64));
390 let mut x153: u64 = 0;
391 let mut x154: u64 = 0;
392 fiat_p256_scalar_mulx_u64(&mut x153, &mut x154, x3, (arg2[3]));
393 let mut x155: u64 = 0;
394 let mut x156: u64 = 0;
395 fiat_p256_scalar_mulx_u64(&mut x155, &mut x156, x3, (arg2[2]));
396 let mut x157: u64 = 0;
397 let mut x158: u64 = 0;
398 fiat_p256_scalar_mulx_u64(&mut x157, &mut x158, x3, (arg2[1]));
399 let mut x159: u64 = 0;
400 let mut x160: u64 = 0;
401 fiat_p256_scalar_mulx_u64(&mut x159, &mut x160, x3, (arg2[0]));
402 let mut x161: u64 = 0;
403 let mut x162: fiat_p256_scalar_u1 = 0;
404 fiat_p256_scalar_addcarryx_u64(&mut x161, &mut x162, 0x0, x160, x157);
405 let mut x163: u64 = 0;
406 let mut x164: fiat_p256_scalar_u1 = 0;
407 fiat_p256_scalar_addcarryx_u64(&mut x163, &mut x164, x162, x158, x155);
408 let mut x165: u64 = 0;
409 let mut x166: fiat_p256_scalar_u1 = 0;
410 fiat_p256_scalar_addcarryx_u64(&mut x165, &mut x166, x164, x156, x153);
411 let x167: u64 = ((x166 as u64) + x154);
412 let mut x168: u64 = 0;
413 let mut x169: fiat_p256_scalar_u1 = 0;
414 fiat_p256_scalar_addcarryx_u64(&mut x168, &mut x169, 0x0, x144, x159);
415 let mut x170: u64 = 0;
416 let mut x171: fiat_p256_scalar_u1 = 0;
417 fiat_p256_scalar_addcarryx_u64(&mut x170, &mut x171, x169, x146, x161);
418 let mut x172: u64 = 0;
419 let mut x173: fiat_p256_scalar_u1 = 0;
420 fiat_p256_scalar_addcarryx_u64(&mut x172, &mut x173, x171, x148, x163);
421 let mut x174: u64 = 0;
422 let mut x175: fiat_p256_scalar_u1 = 0;
423 fiat_p256_scalar_addcarryx_u64(&mut x174, &mut x175, x173, x150, x165);
424 let mut x176: u64 = 0;
425 let mut x177: fiat_p256_scalar_u1 = 0;
426 fiat_p256_scalar_addcarryx_u64(&mut x176, &mut x177, x175, x152, x167);
427 let mut x178: u64 = 0;
428 let mut x179: u64 = 0;
429 fiat_p256_scalar_mulx_u64(&mut x178, &mut x179, x168, 0xccd1c8aaee00bc4f);
430 let mut x180: u64 = 0;
431 let mut x181: u64 = 0;
432 fiat_p256_scalar_mulx_u64(&mut x180, &mut x181, x178, 0xffffffff00000000);
433 let mut x182: u64 = 0;
434 let mut x183: u64 = 0;
435 fiat_p256_scalar_mulx_u64(&mut x182, &mut x183, x178, 0xffffffffffffffff);
436 let mut x184: u64 = 0;
437 let mut x185: u64 = 0;
438 fiat_p256_scalar_mulx_u64(&mut x184, &mut x185, x178, 0xbce6faada7179e84);
439 let mut x186: u64 = 0;
440 let mut x187: u64 = 0;
441 fiat_p256_scalar_mulx_u64(&mut x186, &mut x187, x178, 0xf3b9cac2fc632551);
442 let mut x188: u64 = 0;
443 let mut x189: fiat_p256_scalar_u1 = 0;
444 fiat_p256_scalar_addcarryx_u64(&mut x188, &mut x189, 0x0, x187, x184);
445 let mut x190: u64 = 0;
446 let mut x191: fiat_p256_scalar_u1 = 0;
447 fiat_p256_scalar_addcarryx_u64(&mut x190, &mut x191, x189, x185, x182);
448 let mut x192: u64 = 0;
449 let mut x193: fiat_p256_scalar_u1 = 0;
450 fiat_p256_scalar_addcarryx_u64(&mut x192, &mut x193, x191, x183, x180);
451 let x194: u64 = ((x193 as u64) + x181);
452 let mut x195: u64 = 0;
453 let mut x196: fiat_p256_scalar_u1 = 0;
454 fiat_p256_scalar_addcarryx_u64(&mut x195, &mut x196, 0x0, x168, x186);
455 let mut x197: u64 = 0;
456 let mut x198: fiat_p256_scalar_u1 = 0;
457 fiat_p256_scalar_addcarryx_u64(&mut x197, &mut x198, x196, x170, x188);
458 let mut x199: u64 = 0;
459 let mut x200: fiat_p256_scalar_u1 = 0;
460 fiat_p256_scalar_addcarryx_u64(&mut x199, &mut x200, x198, x172, x190);
461 let mut x201: u64 = 0;
462 let mut x202: fiat_p256_scalar_u1 = 0;
463 fiat_p256_scalar_addcarryx_u64(&mut x201, &mut x202, x200, x174, x192);
464 let mut x203: u64 = 0;
465 let mut x204: fiat_p256_scalar_u1 = 0;
466 fiat_p256_scalar_addcarryx_u64(&mut x203, &mut x204, x202, x176, x194);
467 let x205: u64 = ((x204 as u64) + (x177 as u64));
468 let mut x206: u64 = 0;
469 let mut x207: fiat_p256_scalar_u1 = 0;
470 fiat_p256_scalar_subborrowx_u64(&mut x206, &mut x207, 0x0, x197, 0xf3b9cac2fc632551);
471 let mut x208: u64 = 0;
472 let mut x209: fiat_p256_scalar_u1 = 0;
473 fiat_p256_scalar_subborrowx_u64(&mut x208, &mut x209, x207, x199, 0xbce6faada7179e84);
474 let mut x210: u64 = 0;
475 let mut x211: fiat_p256_scalar_u1 = 0;
476 fiat_p256_scalar_subborrowx_u64(&mut x210, &mut x211, x209, x201, 0xffffffffffffffff);
477 let mut x212: u64 = 0;
478 let mut x213: fiat_p256_scalar_u1 = 0;
479 fiat_p256_scalar_subborrowx_u64(&mut x212, &mut x213, x211, x203, 0xffffffff00000000);
480 let mut x214: u64 = 0;
481 let mut x215: fiat_p256_scalar_u1 = 0;
482 fiat_p256_scalar_subborrowx_u64(&mut x214, &mut x215, x213, x205, (0x0 as u64));
483 let mut x216: u64 = 0;
484 fiat_p256_scalar_cmovznz_u64(&mut x216, x215, x206, x197);
485 let mut x217: u64 = 0;
486 fiat_p256_scalar_cmovznz_u64(&mut x217, x215, x208, x199);
487 let mut x218: u64 = 0;
488 fiat_p256_scalar_cmovznz_u64(&mut x218, x215, x210, x201);
489 let mut x219: u64 = 0;
490 fiat_p256_scalar_cmovznz_u64(&mut x219, x215, x212, x203);
491 out1[0] = x216;
492 out1[1] = x217;
493 out1[2] = x218;
494 out1[3] = x219;
495}
496
497#[inline]
506pub fn fiat_p256_scalar_square(out1: &mut fiat_p256_scalar_montgomery_domain_field_element, arg1: &fiat_p256_scalar_montgomery_domain_field_element) {
507 let x1: u64 = (arg1[1]);
508 let x2: u64 = (arg1[2]);
509 let x3: u64 = (arg1[3]);
510 let x4: u64 = (arg1[0]);
511 let mut x5: u64 = 0;
512 let mut x6: u64 = 0;
513 fiat_p256_scalar_mulx_u64(&mut x5, &mut x6, x4, (arg1[3]));
514 let mut x7: u64 = 0;
515 let mut x8: u64 = 0;
516 fiat_p256_scalar_mulx_u64(&mut x7, &mut x8, x4, (arg1[2]));
517 let mut x9: u64 = 0;
518 let mut x10: u64 = 0;
519 fiat_p256_scalar_mulx_u64(&mut x9, &mut x10, x4, (arg1[1]));
520 let mut x11: u64 = 0;
521 let mut x12: u64 = 0;
522 fiat_p256_scalar_mulx_u64(&mut x11, &mut x12, x4, (arg1[0]));
523 let mut x13: u64 = 0;
524 let mut x14: fiat_p256_scalar_u1 = 0;
525 fiat_p256_scalar_addcarryx_u64(&mut x13, &mut x14, 0x0, x12, x9);
526 let mut x15: u64 = 0;
527 let mut x16: fiat_p256_scalar_u1 = 0;
528 fiat_p256_scalar_addcarryx_u64(&mut x15, &mut x16, x14, x10, x7);
529 let mut x17: u64 = 0;
530 let mut x18: fiat_p256_scalar_u1 = 0;
531 fiat_p256_scalar_addcarryx_u64(&mut x17, &mut x18, x16, x8, x5);
532 let x19: u64 = ((x18 as u64) + x6);
533 let mut x20: u64 = 0;
534 let mut x21: u64 = 0;
535 fiat_p256_scalar_mulx_u64(&mut x20, &mut x21, x11, 0xccd1c8aaee00bc4f);
536 let mut x22: u64 = 0;
537 let mut x23: u64 = 0;
538 fiat_p256_scalar_mulx_u64(&mut x22, &mut x23, x20, 0xffffffff00000000);
539 let mut x24: u64 = 0;
540 let mut x25: u64 = 0;
541 fiat_p256_scalar_mulx_u64(&mut x24, &mut x25, x20, 0xffffffffffffffff);
542 let mut x26: u64 = 0;
543 let mut x27: u64 = 0;
544 fiat_p256_scalar_mulx_u64(&mut x26, &mut x27, x20, 0xbce6faada7179e84);
545 let mut x28: u64 = 0;
546 let mut x29: u64 = 0;
547 fiat_p256_scalar_mulx_u64(&mut x28, &mut x29, x20, 0xf3b9cac2fc632551);
548 let mut x30: u64 = 0;
549 let mut x31: fiat_p256_scalar_u1 = 0;
550 fiat_p256_scalar_addcarryx_u64(&mut x30, &mut x31, 0x0, x29, x26);
551 let mut x32: u64 = 0;
552 let mut x33: fiat_p256_scalar_u1 = 0;
553 fiat_p256_scalar_addcarryx_u64(&mut x32, &mut x33, x31, x27, x24);
554 let mut x34: u64 = 0;
555 let mut x35: fiat_p256_scalar_u1 = 0;
556 fiat_p256_scalar_addcarryx_u64(&mut x34, &mut x35, x33, x25, x22);
557 let x36: u64 = ((x35 as u64) + x23);
558 let mut x37: u64 = 0;
559 let mut x38: fiat_p256_scalar_u1 = 0;
560 fiat_p256_scalar_addcarryx_u64(&mut x37, &mut x38, 0x0, x11, x28);
561 let mut x39: u64 = 0;
562 let mut x40: fiat_p256_scalar_u1 = 0;
563 fiat_p256_scalar_addcarryx_u64(&mut x39, &mut x40, x38, x13, x30);
564 let mut x41: u64 = 0;
565 let mut x42: fiat_p256_scalar_u1 = 0;
566 fiat_p256_scalar_addcarryx_u64(&mut x41, &mut x42, x40, x15, x32);
567 let mut x43: u64 = 0;
568 let mut x44: fiat_p256_scalar_u1 = 0;
569 fiat_p256_scalar_addcarryx_u64(&mut x43, &mut x44, x42, x17, x34);
570 let mut x45: u64 = 0;
571 let mut x46: fiat_p256_scalar_u1 = 0;
572 fiat_p256_scalar_addcarryx_u64(&mut x45, &mut x46, x44, x19, x36);
573 let mut x47: u64 = 0;
574 let mut x48: u64 = 0;
575 fiat_p256_scalar_mulx_u64(&mut x47, &mut x48, x1, (arg1[3]));
576 let mut x49: u64 = 0;
577 let mut x50: u64 = 0;
578 fiat_p256_scalar_mulx_u64(&mut x49, &mut x50, x1, (arg1[2]));
579 let mut x51: u64 = 0;
580 let mut x52: u64 = 0;
581 fiat_p256_scalar_mulx_u64(&mut x51, &mut x52, x1, (arg1[1]));
582 let mut x53: u64 = 0;
583 let mut x54: u64 = 0;
584 fiat_p256_scalar_mulx_u64(&mut x53, &mut x54, x1, (arg1[0]));
585 let mut x55: u64 = 0;
586 let mut x56: fiat_p256_scalar_u1 = 0;
587 fiat_p256_scalar_addcarryx_u64(&mut x55, &mut x56, 0x0, x54, x51);
588 let mut x57: u64 = 0;
589 let mut x58: fiat_p256_scalar_u1 = 0;
590 fiat_p256_scalar_addcarryx_u64(&mut x57, &mut x58, x56, x52, x49);
591 let mut x59: u64 = 0;
592 let mut x60: fiat_p256_scalar_u1 = 0;
593 fiat_p256_scalar_addcarryx_u64(&mut x59, &mut x60, x58, x50, x47);
594 let x61: u64 = ((x60 as u64) + x48);
595 let mut x62: u64 = 0;
596 let mut x63: fiat_p256_scalar_u1 = 0;
597 fiat_p256_scalar_addcarryx_u64(&mut x62, &mut x63, 0x0, x39, x53);
598 let mut x64: u64 = 0;
599 let mut x65: fiat_p256_scalar_u1 = 0;
600 fiat_p256_scalar_addcarryx_u64(&mut x64, &mut x65, x63, x41, x55);
601 let mut x66: u64 = 0;
602 let mut x67: fiat_p256_scalar_u1 = 0;
603 fiat_p256_scalar_addcarryx_u64(&mut x66, &mut x67, x65, x43, x57);
604 let mut x68: u64 = 0;
605 let mut x69: fiat_p256_scalar_u1 = 0;
606 fiat_p256_scalar_addcarryx_u64(&mut x68, &mut x69, x67, x45, x59);
607 let mut x70: u64 = 0;
608 let mut x71: fiat_p256_scalar_u1 = 0;
609 fiat_p256_scalar_addcarryx_u64(&mut x70, &mut x71, x69, (x46 as u64), x61);
610 let mut x72: u64 = 0;
611 let mut x73: u64 = 0;
612 fiat_p256_scalar_mulx_u64(&mut x72, &mut x73, x62, 0xccd1c8aaee00bc4f);
613 let mut x74: u64 = 0;
614 let mut x75: u64 = 0;
615 fiat_p256_scalar_mulx_u64(&mut x74, &mut x75, x72, 0xffffffff00000000);
616 let mut x76: u64 = 0;
617 let mut x77: u64 = 0;
618 fiat_p256_scalar_mulx_u64(&mut x76, &mut x77, x72, 0xffffffffffffffff);
619 let mut x78: u64 = 0;
620 let mut x79: u64 = 0;
621 fiat_p256_scalar_mulx_u64(&mut x78, &mut x79, x72, 0xbce6faada7179e84);
622 let mut x80: u64 = 0;
623 let mut x81: u64 = 0;
624 fiat_p256_scalar_mulx_u64(&mut x80, &mut x81, x72, 0xf3b9cac2fc632551);
625 let mut x82: u64 = 0;
626 let mut x83: fiat_p256_scalar_u1 = 0;
627 fiat_p256_scalar_addcarryx_u64(&mut x82, &mut x83, 0x0, x81, x78);
628 let mut x84: u64 = 0;
629 let mut x85: fiat_p256_scalar_u1 = 0;
630 fiat_p256_scalar_addcarryx_u64(&mut x84, &mut x85, x83, x79, x76);
631 let mut x86: u64 = 0;
632 let mut x87: fiat_p256_scalar_u1 = 0;
633 fiat_p256_scalar_addcarryx_u64(&mut x86, &mut x87, x85, x77, x74);
634 let x88: u64 = ((x87 as u64) + x75);
635 let mut x89: u64 = 0;
636 let mut x90: fiat_p256_scalar_u1 = 0;
637 fiat_p256_scalar_addcarryx_u64(&mut x89, &mut x90, 0x0, x62, x80);
638 let mut x91: u64 = 0;
639 let mut x92: fiat_p256_scalar_u1 = 0;
640 fiat_p256_scalar_addcarryx_u64(&mut x91, &mut x92, x90, x64, x82);
641 let mut x93: u64 = 0;
642 let mut x94: fiat_p256_scalar_u1 = 0;
643 fiat_p256_scalar_addcarryx_u64(&mut x93, &mut x94, x92, x66, x84);
644 let mut x95: u64 = 0;
645 let mut x96: fiat_p256_scalar_u1 = 0;
646 fiat_p256_scalar_addcarryx_u64(&mut x95, &mut x96, x94, x68, x86);
647 let mut x97: u64 = 0;
648 let mut x98: fiat_p256_scalar_u1 = 0;
649 fiat_p256_scalar_addcarryx_u64(&mut x97, &mut x98, x96, x70, x88);
650 let x99: u64 = ((x98 as u64) + (x71 as u64));
651 let mut x100: u64 = 0;
652 let mut x101: u64 = 0;
653 fiat_p256_scalar_mulx_u64(&mut x100, &mut x101, x2, (arg1[3]));
654 let mut x102: u64 = 0;
655 let mut x103: u64 = 0;
656 fiat_p256_scalar_mulx_u64(&mut x102, &mut x103, x2, (arg1[2]));
657 let mut x104: u64 = 0;
658 let mut x105: u64 = 0;
659 fiat_p256_scalar_mulx_u64(&mut x104, &mut x105, x2, (arg1[1]));
660 let mut x106: u64 = 0;
661 let mut x107: u64 = 0;
662 fiat_p256_scalar_mulx_u64(&mut x106, &mut x107, x2, (arg1[0]));
663 let mut x108: u64 = 0;
664 let mut x109: fiat_p256_scalar_u1 = 0;
665 fiat_p256_scalar_addcarryx_u64(&mut x108, &mut x109, 0x0, x107, x104);
666 let mut x110: u64 = 0;
667 let mut x111: fiat_p256_scalar_u1 = 0;
668 fiat_p256_scalar_addcarryx_u64(&mut x110, &mut x111, x109, x105, x102);
669 let mut x112: u64 = 0;
670 let mut x113: fiat_p256_scalar_u1 = 0;
671 fiat_p256_scalar_addcarryx_u64(&mut x112, &mut x113, x111, x103, x100);
672 let x114: u64 = ((x113 as u64) + x101);
673 let mut x115: u64 = 0;
674 let mut x116: fiat_p256_scalar_u1 = 0;
675 fiat_p256_scalar_addcarryx_u64(&mut x115, &mut x116, 0x0, x91, x106);
676 let mut x117: u64 = 0;
677 let mut x118: fiat_p256_scalar_u1 = 0;
678 fiat_p256_scalar_addcarryx_u64(&mut x117, &mut x118, x116, x93, x108);
679 let mut x119: u64 = 0;
680 let mut x120: fiat_p256_scalar_u1 = 0;
681 fiat_p256_scalar_addcarryx_u64(&mut x119, &mut x120, x118, x95, x110);
682 let mut x121: u64 = 0;
683 let mut x122: fiat_p256_scalar_u1 = 0;
684 fiat_p256_scalar_addcarryx_u64(&mut x121, &mut x122, x120, x97, x112);
685 let mut x123: u64 = 0;
686 let mut x124: fiat_p256_scalar_u1 = 0;
687 fiat_p256_scalar_addcarryx_u64(&mut x123, &mut x124, x122, x99, x114);
688 let mut x125: u64 = 0;
689 let mut x126: u64 = 0;
690 fiat_p256_scalar_mulx_u64(&mut x125, &mut x126, x115, 0xccd1c8aaee00bc4f);
691 let mut x127: u64 = 0;
692 let mut x128: u64 = 0;
693 fiat_p256_scalar_mulx_u64(&mut x127, &mut x128, x125, 0xffffffff00000000);
694 let mut x129: u64 = 0;
695 let mut x130: u64 = 0;
696 fiat_p256_scalar_mulx_u64(&mut x129, &mut x130, x125, 0xffffffffffffffff);
697 let mut x131: u64 = 0;
698 let mut x132: u64 = 0;
699 fiat_p256_scalar_mulx_u64(&mut x131, &mut x132, x125, 0xbce6faada7179e84);
700 let mut x133: u64 = 0;
701 let mut x134: u64 = 0;
702 fiat_p256_scalar_mulx_u64(&mut x133, &mut x134, x125, 0xf3b9cac2fc632551);
703 let mut x135: u64 = 0;
704 let mut x136: fiat_p256_scalar_u1 = 0;
705 fiat_p256_scalar_addcarryx_u64(&mut x135, &mut x136, 0x0, x134, x131);
706 let mut x137: u64 = 0;
707 let mut x138: fiat_p256_scalar_u1 = 0;
708 fiat_p256_scalar_addcarryx_u64(&mut x137, &mut x138, x136, x132, x129);
709 let mut x139: u64 = 0;
710 let mut x140: fiat_p256_scalar_u1 = 0;
711 fiat_p256_scalar_addcarryx_u64(&mut x139, &mut x140, x138, x130, x127);
712 let x141: u64 = ((x140 as u64) + x128);
713 let mut x142: u64 = 0;
714 let mut x143: fiat_p256_scalar_u1 = 0;
715 fiat_p256_scalar_addcarryx_u64(&mut x142, &mut x143, 0x0, x115, x133);
716 let mut x144: u64 = 0;
717 let mut x145: fiat_p256_scalar_u1 = 0;
718 fiat_p256_scalar_addcarryx_u64(&mut x144, &mut x145, x143, x117, x135);
719 let mut x146: u64 = 0;
720 let mut x147: fiat_p256_scalar_u1 = 0;
721 fiat_p256_scalar_addcarryx_u64(&mut x146, &mut x147, x145, x119, x137);
722 let mut x148: u64 = 0;
723 let mut x149: fiat_p256_scalar_u1 = 0;
724 fiat_p256_scalar_addcarryx_u64(&mut x148, &mut x149, x147, x121, x139);
725 let mut x150: u64 = 0;
726 let mut x151: fiat_p256_scalar_u1 = 0;
727 fiat_p256_scalar_addcarryx_u64(&mut x150, &mut x151, x149, x123, x141);
728 let x152: u64 = ((x151 as u64) + (x124 as u64));
729 let mut x153: u64 = 0;
730 let mut x154: u64 = 0;
731 fiat_p256_scalar_mulx_u64(&mut x153, &mut x154, x3, (arg1[3]));
732 let mut x155: u64 = 0;
733 let mut x156: u64 = 0;
734 fiat_p256_scalar_mulx_u64(&mut x155, &mut x156, x3, (arg1[2]));
735 let mut x157: u64 = 0;
736 let mut x158: u64 = 0;
737 fiat_p256_scalar_mulx_u64(&mut x157, &mut x158, x3, (arg1[1]));
738 let mut x159: u64 = 0;
739 let mut x160: u64 = 0;
740 fiat_p256_scalar_mulx_u64(&mut x159, &mut x160, x3, (arg1[0]));
741 let mut x161: u64 = 0;
742 let mut x162: fiat_p256_scalar_u1 = 0;
743 fiat_p256_scalar_addcarryx_u64(&mut x161, &mut x162, 0x0, x160, x157);
744 let mut x163: u64 = 0;
745 let mut x164: fiat_p256_scalar_u1 = 0;
746 fiat_p256_scalar_addcarryx_u64(&mut x163, &mut x164, x162, x158, x155);
747 let mut x165: u64 = 0;
748 let mut x166: fiat_p256_scalar_u1 = 0;
749 fiat_p256_scalar_addcarryx_u64(&mut x165, &mut x166, x164, x156, x153);
750 let x167: u64 = ((x166 as u64) + x154);
751 let mut x168: u64 = 0;
752 let mut x169: fiat_p256_scalar_u1 = 0;
753 fiat_p256_scalar_addcarryx_u64(&mut x168, &mut x169, 0x0, x144, x159);
754 let mut x170: u64 = 0;
755 let mut x171: fiat_p256_scalar_u1 = 0;
756 fiat_p256_scalar_addcarryx_u64(&mut x170, &mut x171, x169, x146, x161);
757 let mut x172: u64 = 0;
758 let mut x173: fiat_p256_scalar_u1 = 0;
759 fiat_p256_scalar_addcarryx_u64(&mut x172, &mut x173, x171, x148, x163);
760 let mut x174: u64 = 0;
761 let mut x175: fiat_p256_scalar_u1 = 0;
762 fiat_p256_scalar_addcarryx_u64(&mut x174, &mut x175, x173, x150, x165);
763 let mut x176: u64 = 0;
764 let mut x177: fiat_p256_scalar_u1 = 0;
765 fiat_p256_scalar_addcarryx_u64(&mut x176, &mut x177, x175, x152, x167);
766 let mut x178: u64 = 0;
767 let mut x179: u64 = 0;
768 fiat_p256_scalar_mulx_u64(&mut x178, &mut x179, x168, 0xccd1c8aaee00bc4f);
769 let mut x180: u64 = 0;
770 let mut x181: u64 = 0;
771 fiat_p256_scalar_mulx_u64(&mut x180, &mut x181, x178, 0xffffffff00000000);
772 let mut x182: u64 = 0;
773 let mut x183: u64 = 0;
774 fiat_p256_scalar_mulx_u64(&mut x182, &mut x183, x178, 0xffffffffffffffff);
775 let mut x184: u64 = 0;
776 let mut x185: u64 = 0;
777 fiat_p256_scalar_mulx_u64(&mut x184, &mut x185, x178, 0xbce6faada7179e84);
778 let mut x186: u64 = 0;
779 let mut x187: u64 = 0;
780 fiat_p256_scalar_mulx_u64(&mut x186, &mut x187, x178, 0xf3b9cac2fc632551);
781 let mut x188: u64 = 0;
782 let mut x189: fiat_p256_scalar_u1 = 0;
783 fiat_p256_scalar_addcarryx_u64(&mut x188, &mut x189, 0x0, x187, x184);
784 let mut x190: u64 = 0;
785 let mut x191: fiat_p256_scalar_u1 = 0;
786 fiat_p256_scalar_addcarryx_u64(&mut x190, &mut x191, x189, x185, x182);
787 let mut x192: u64 = 0;
788 let mut x193: fiat_p256_scalar_u1 = 0;
789 fiat_p256_scalar_addcarryx_u64(&mut x192, &mut x193, x191, x183, x180);
790 let x194: u64 = ((x193 as u64) + x181);
791 let mut x195: u64 = 0;
792 let mut x196: fiat_p256_scalar_u1 = 0;
793 fiat_p256_scalar_addcarryx_u64(&mut x195, &mut x196, 0x0, x168, x186);
794 let mut x197: u64 = 0;
795 let mut x198: fiat_p256_scalar_u1 = 0;
796 fiat_p256_scalar_addcarryx_u64(&mut x197, &mut x198, x196, x170, x188);
797 let mut x199: u64 = 0;
798 let mut x200: fiat_p256_scalar_u1 = 0;
799 fiat_p256_scalar_addcarryx_u64(&mut x199, &mut x200, x198, x172, x190);
800 let mut x201: u64 = 0;
801 let mut x202: fiat_p256_scalar_u1 = 0;
802 fiat_p256_scalar_addcarryx_u64(&mut x201, &mut x202, x200, x174, x192);
803 let mut x203: u64 = 0;
804 let mut x204: fiat_p256_scalar_u1 = 0;
805 fiat_p256_scalar_addcarryx_u64(&mut x203, &mut x204, x202, x176, x194);
806 let x205: u64 = ((x204 as u64) + (x177 as u64));
807 let mut x206: u64 = 0;
808 let mut x207: fiat_p256_scalar_u1 = 0;
809 fiat_p256_scalar_subborrowx_u64(&mut x206, &mut x207, 0x0, x197, 0xf3b9cac2fc632551);
810 let mut x208: u64 = 0;
811 let mut x209: fiat_p256_scalar_u1 = 0;
812 fiat_p256_scalar_subborrowx_u64(&mut x208, &mut x209, x207, x199, 0xbce6faada7179e84);
813 let mut x210: u64 = 0;
814 let mut x211: fiat_p256_scalar_u1 = 0;
815 fiat_p256_scalar_subborrowx_u64(&mut x210, &mut x211, x209, x201, 0xffffffffffffffff);
816 let mut x212: u64 = 0;
817 let mut x213: fiat_p256_scalar_u1 = 0;
818 fiat_p256_scalar_subborrowx_u64(&mut x212, &mut x213, x211, x203, 0xffffffff00000000);
819 let mut x214: u64 = 0;
820 let mut x215: fiat_p256_scalar_u1 = 0;
821 fiat_p256_scalar_subborrowx_u64(&mut x214, &mut x215, x213, x205, (0x0 as u64));
822 let mut x216: u64 = 0;
823 fiat_p256_scalar_cmovznz_u64(&mut x216, x215, x206, x197);
824 let mut x217: u64 = 0;
825 fiat_p256_scalar_cmovznz_u64(&mut x217, x215, x208, x199);
826 let mut x218: u64 = 0;
827 fiat_p256_scalar_cmovznz_u64(&mut x218, x215, x210, x201);
828 let mut x219: u64 = 0;
829 fiat_p256_scalar_cmovznz_u64(&mut x219, x215, x212, x203);
830 out1[0] = x216;
831 out1[1] = x217;
832 out1[2] = x218;
833 out1[3] = x219;
834}
835
836#[inline]
846pub fn fiat_p256_scalar_add(out1: &mut fiat_p256_scalar_montgomery_domain_field_element, arg1: &fiat_p256_scalar_montgomery_domain_field_element, arg2: &fiat_p256_scalar_montgomery_domain_field_element) {
847 let mut x1: u64 = 0;
848 let mut x2: fiat_p256_scalar_u1 = 0;
849 fiat_p256_scalar_addcarryx_u64(&mut x1, &mut x2, 0x0, (arg1[0]), (arg2[0]));
850 let mut x3: u64 = 0;
851 let mut x4: fiat_p256_scalar_u1 = 0;
852 fiat_p256_scalar_addcarryx_u64(&mut x3, &mut x4, x2, (arg1[1]), (arg2[1]));
853 let mut x5: u64 = 0;
854 let mut x6: fiat_p256_scalar_u1 = 0;
855 fiat_p256_scalar_addcarryx_u64(&mut x5, &mut x6, x4, (arg1[2]), (arg2[2]));
856 let mut x7: u64 = 0;
857 let mut x8: fiat_p256_scalar_u1 = 0;
858 fiat_p256_scalar_addcarryx_u64(&mut x7, &mut x8, x6, (arg1[3]), (arg2[3]));
859 let mut x9: u64 = 0;
860 let mut x10: fiat_p256_scalar_u1 = 0;
861 fiat_p256_scalar_subborrowx_u64(&mut x9, &mut x10, 0x0, x1, 0xf3b9cac2fc632551);
862 let mut x11: u64 = 0;
863 let mut x12: fiat_p256_scalar_u1 = 0;
864 fiat_p256_scalar_subborrowx_u64(&mut x11, &mut x12, x10, x3, 0xbce6faada7179e84);
865 let mut x13: u64 = 0;
866 let mut x14: fiat_p256_scalar_u1 = 0;
867 fiat_p256_scalar_subborrowx_u64(&mut x13, &mut x14, x12, x5, 0xffffffffffffffff);
868 let mut x15: u64 = 0;
869 let mut x16: fiat_p256_scalar_u1 = 0;
870 fiat_p256_scalar_subborrowx_u64(&mut x15, &mut x16, x14, x7, 0xffffffff00000000);
871 let mut x17: u64 = 0;
872 let mut x18: fiat_p256_scalar_u1 = 0;
873 fiat_p256_scalar_subborrowx_u64(&mut x17, &mut x18, x16, (x8 as u64), (0x0 as u64));
874 let mut x19: u64 = 0;
875 fiat_p256_scalar_cmovznz_u64(&mut x19, x18, x9, x1);
876 let mut x20: u64 = 0;
877 fiat_p256_scalar_cmovznz_u64(&mut x20, x18, x11, x3);
878 let mut x21: u64 = 0;
879 fiat_p256_scalar_cmovznz_u64(&mut x21, x18, x13, x5);
880 let mut x22: u64 = 0;
881 fiat_p256_scalar_cmovznz_u64(&mut x22, x18, x15, x7);
882 out1[0] = x19;
883 out1[1] = x20;
884 out1[2] = x21;
885 out1[3] = x22;
886}
887
888#[inline]
898pub fn fiat_p256_scalar_sub(out1: &mut fiat_p256_scalar_montgomery_domain_field_element, arg1: &fiat_p256_scalar_montgomery_domain_field_element, arg2: &fiat_p256_scalar_montgomery_domain_field_element) {
899 let mut x1: u64 = 0;
900 let mut x2: fiat_p256_scalar_u1 = 0;
901 fiat_p256_scalar_subborrowx_u64(&mut x1, &mut x2, 0x0, (arg1[0]), (arg2[0]));
902 let mut x3: u64 = 0;
903 let mut x4: fiat_p256_scalar_u1 = 0;
904 fiat_p256_scalar_subborrowx_u64(&mut x3, &mut x4, x2, (arg1[1]), (arg2[1]));
905 let mut x5: u64 = 0;
906 let mut x6: fiat_p256_scalar_u1 = 0;
907 fiat_p256_scalar_subborrowx_u64(&mut x5, &mut x6, x4, (arg1[2]), (arg2[2]));
908 let mut x7: u64 = 0;
909 let mut x8: fiat_p256_scalar_u1 = 0;
910 fiat_p256_scalar_subborrowx_u64(&mut x7, &mut x8, x6, (arg1[3]), (arg2[3]));
911 let mut x9: u64 = 0;
912 fiat_p256_scalar_cmovznz_u64(&mut x9, x8, (0x0 as u64), 0xffffffffffffffff);
913 let mut x10: u64 = 0;
914 let mut x11: fiat_p256_scalar_u1 = 0;
915 fiat_p256_scalar_addcarryx_u64(&mut x10, &mut x11, 0x0, x1, (x9 & 0xf3b9cac2fc632551));
916 let mut x12: u64 = 0;
917 let mut x13: fiat_p256_scalar_u1 = 0;
918 fiat_p256_scalar_addcarryx_u64(&mut x12, &mut x13, x11, x3, (x9 & 0xbce6faada7179e84));
919 let mut x14: u64 = 0;
920 let mut x15: fiat_p256_scalar_u1 = 0;
921 fiat_p256_scalar_addcarryx_u64(&mut x14, &mut x15, x13, x5, x9);
922 let mut x16: u64 = 0;
923 let mut x17: fiat_p256_scalar_u1 = 0;
924 fiat_p256_scalar_addcarryx_u64(&mut x16, &mut x17, x15, x7, (x9 & 0xffffffff00000000));
925 out1[0] = x10;
926 out1[1] = x12;
927 out1[2] = x14;
928 out1[3] = x16;
929}
930
931#[inline]
940pub fn fiat_p256_scalar_opp(out1: &mut fiat_p256_scalar_montgomery_domain_field_element, arg1: &fiat_p256_scalar_montgomery_domain_field_element) {
941 let mut x1: u64 = 0;
942 let mut x2: fiat_p256_scalar_u1 = 0;
943 fiat_p256_scalar_subborrowx_u64(&mut x1, &mut x2, 0x0, (0x0 as u64), (arg1[0]));
944 let mut x3: u64 = 0;
945 let mut x4: fiat_p256_scalar_u1 = 0;
946 fiat_p256_scalar_subborrowx_u64(&mut x3, &mut x4, x2, (0x0 as u64), (arg1[1]));
947 let mut x5: u64 = 0;
948 let mut x6: fiat_p256_scalar_u1 = 0;
949 fiat_p256_scalar_subborrowx_u64(&mut x5, &mut x6, x4, (0x0 as u64), (arg1[2]));
950 let mut x7: u64 = 0;
951 let mut x8: fiat_p256_scalar_u1 = 0;
952 fiat_p256_scalar_subborrowx_u64(&mut x7, &mut x8, x6, (0x0 as u64), (arg1[3]));
953 let mut x9: u64 = 0;
954 fiat_p256_scalar_cmovznz_u64(&mut x9, x8, (0x0 as u64), 0xffffffffffffffff);
955 let mut x10: u64 = 0;
956 let mut x11: fiat_p256_scalar_u1 = 0;
957 fiat_p256_scalar_addcarryx_u64(&mut x10, &mut x11, 0x0, x1, (x9 & 0xf3b9cac2fc632551));
958 let mut x12: u64 = 0;
959 let mut x13: fiat_p256_scalar_u1 = 0;
960 fiat_p256_scalar_addcarryx_u64(&mut x12, &mut x13, x11, x3, (x9 & 0xbce6faada7179e84));
961 let mut x14: u64 = 0;
962 let mut x15: fiat_p256_scalar_u1 = 0;
963 fiat_p256_scalar_addcarryx_u64(&mut x14, &mut x15, x13, x5, x9);
964 let mut x16: u64 = 0;
965 let mut x17: fiat_p256_scalar_u1 = 0;
966 fiat_p256_scalar_addcarryx_u64(&mut x16, &mut x17, x15, x7, (x9 & 0xffffffff00000000));
967 out1[0] = x10;
968 out1[1] = x12;
969 out1[2] = x14;
970 out1[3] = x16;
971}
972
973#[inline]
982pub fn fiat_p256_scalar_from_montgomery(out1: &mut fiat_p256_scalar_non_montgomery_domain_field_element, arg1: &fiat_p256_scalar_montgomery_domain_field_element) {
983 let x1: u64 = (arg1[0]);
984 let mut x2: u64 = 0;
985 let mut x3: u64 = 0;
986 fiat_p256_scalar_mulx_u64(&mut x2, &mut x3, x1, 0xccd1c8aaee00bc4f);
987 let mut x4: u64 = 0;
988 let mut x5: u64 = 0;
989 fiat_p256_scalar_mulx_u64(&mut x4, &mut x5, x2, 0xffffffff00000000);
990 let mut x6: u64 = 0;
991 let mut x7: u64 = 0;
992 fiat_p256_scalar_mulx_u64(&mut x6, &mut x7, x2, 0xffffffffffffffff);
993 let mut x8: u64 = 0;
994 let mut x9: u64 = 0;
995 fiat_p256_scalar_mulx_u64(&mut x8, &mut x9, x2, 0xbce6faada7179e84);
996 let mut x10: u64 = 0;
997 let mut x11: u64 = 0;
998 fiat_p256_scalar_mulx_u64(&mut x10, &mut x11, x2, 0xf3b9cac2fc632551);
999 let mut x12: u64 = 0;
1000 let mut x13: fiat_p256_scalar_u1 = 0;
1001 fiat_p256_scalar_addcarryx_u64(&mut x12, &mut x13, 0x0, x11, x8);
1002 let mut x14: u64 = 0;
1003 let mut x15: fiat_p256_scalar_u1 = 0;
1004 fiat_p256_scalar_addcarryx_u64(&mut x14, &mut x15, x13, x9, x6);
1005 let mut x16: u64 = 0;
1006 let mut x17: fiat_p256_scalar_u1 = 0;
1007 fiat_p256_scalar_addcarryx_u64(&mut x16, &mut x17, x15, x7, x4);
1008 let mut x18: u64 = 0;
1009 let mut x19: fiat_p256_scalar_u1 = 0;
1010 fiat_p256_scalar_addcarryx_u64(&mut x18, &mut x19, 0x0, x1, x10);
1011 let mut x20: u64 = 0;
1012 let mut x21: fiat_p256_scalar_u1 = 0;
1013 fiat_p256_scalar_addcarryx_u64(&mut x20, &mut x21, x19, (0x0 as u64), x12);
1014 let mut x22: u64 = 0;
1015 let mut x23: fiat_p256_scalar_u1 = 0;
1016 fiat_p256_scalar_addcarryx_u64(&mut x22, &mut x23, x21, (0x0 as u64), x14);
1017 let mut x24: u64 = 0;
1018 let mut x25: fiat_p256_scalar_u1 = 0;
1019 fiat_p256_scalar_addcarryx_u64(&mut x24, &mut x25, x23, (0x0 as u64), x16);
1020 let mut x26: u64 = 0;
1021 let mut x27: fiat_p256_scalar_u1 = 0;
1022 fiat_p256_scalar_addcarryx_u64(&mut x26, &mut x27, 0x0, x20, (arg1[1]));
1023 let mut x28: u64 = 0;
1024 let mut x29: fiat_p256_scalar_u1 = 0;
1025 fiat_p256_scalar_addcarryx_u64(&mut x28, &mut x29, x27, x22, (0x0 as u64));
1026 let mut x30: u64 = 0;
1027 let mut x31: fiat_p256_scalar_u1 = 0;
1028 fiat_p256_scalar_addcarryx_u64(&mut x30, &mut x31, x29, x24, (0x0 as u64));
1029 let mut x32: u64 = 0;
1030 let mut x33: u64 = 0;
1031 fiat_p256_scalar_mulx_u64(&mut x32, &mut x33, x26, 0xccd1c8aaee00bc4f);
1032 let mut x34: u64 = 0;
1033 let mut x35: u64 = 0;
1034 fiat_p256_scalar_mulx_u64(&mut x34, &mut x35, x32, 0xffffffff00000000);
1035 let mut x36: u64 = 0;
1036 let mut x37: u64 = 0;
1037 fiat_p256_scalar_mulx_u64(&mut x36, &mut x37, x32, 0xffffffffffffffff);
1038 let mut x38: u64 = 0;
1039 let mut x39: u64 = 0;
1040 fiat_p256_scalar_mulx_u64(&mut x38, &mut x39, x32, 0xbce6faada7179e84);
1041 let mut x40: u64 = 0;
1042 let mut x41: u64 = 0;
1043 fiat_p256_scalar_mulx_u64(&mut x40, &mut x41, x32, 0xf3b9cac2fc632551);
1044 let mut x42: u64 = 0;
1045 let mut x43: fiat_p256_scalar_u1 = 0;
1046 fiat_p256_scalar_addcarryx_u64(&mut x42, &mut x43, 0x0, x41, x38);
1047 let mut x44: u64 = 0;
1048 let mut x45: fiat_p256_scalar_u1 = 0;
1049 fiat_p256_scalar_addcarryx_u64(&mut x44, &mut x45, x43, x39, x36);
1050 let mut x46: u64 = 0;
1051 let mut x47: fiat_p256_scalar_u1 = 0;
1052 fiat_p256_scalar_addcarryx_u64(&mut x46, &mut x47, x45, x37, x34);
1053 let mut x48: u64 = 0;
1054 let mut x49: fiat_p256_scalar_u1 = 0;
1055 fiat_p256_scalar_addcarryx_u64(&mut x48, &mut x49, 0x0, x26, x40);
1056 let mut x50: u64 = 0;
1057 let mut x51: fiat_p256_scalar_u1 = 0;
1058 fiat_p256_scalar_addcarryx_u64(&mut x50, &mut x51, x49, x28, x42);
1059 let mut x52: u64 = 0;
1060 let mut x53: fiat_p256_scalar_u1 = 0;
1061 fiat_p256_scalar_addcarryx_u64(&mut x52, &mut x53, x51, x30, x44);
1062 let mut x54: u64 = 0;
1063 let mut x55: fiat_p256_scalar_u1 = 0;
1064 fiat_p256_scalar_addcarryx_u64(&mut x54, &mut x55, x53, ((x31 as u64) + ((x25 as u64) + ((x17 as u64) + x5))), x46);
1065 let mut x56: u64 = 0;
1066 let mut x57: fiat_p256_scalar_u1 = 0;
1067 fiat_p256_scalar_addcarryx_u64(&mut x56, &mut x57, 0x0, x50, (arg1[2]));
1068 let mut x58: u64 = 0;
1069 let mut x59: fiat_p256_scalar_u1 = 0;
1070 fiat_p256_scalar_addcarryx_u64(&mut x58, &mut x59, x57, x52, (0x0 as u64));
1071 let mut x60: u64 = 0;
1072 let mut x61: fiat_p256_scalar_u1 = 0;
1073 fiat_p256_scalar_addcarryx_u64(&mut x60, &mut x61, x59, x54, (0x0 as u64));
1074 let mut x62: u64 = 0;
1075 let mut x63: u64 = 0;
1076 fiat_p256_scalar_mulx_u64(&mut x62, &mut x63, x56, 0xccd1c8aaee00bc4f);
1077 let mut x64: u64 = 0;
1078 let mut x65: u64 = 0;
1079 fiat_p256_scalar_mulx_u64(&mut x64, &mut x65, x62, 0xffffffff00000000);
1080 let mut x66: u64 = 0;
1081 let mut x67: u64 = 0;
1082 fiat_p256_scalar_mulx_u64(&mut x66, &mut x67, x62, 0xffffffffffffffff);
1083 let mut x68: u64 = 0;
1084 let mut x69: u64 = 0;
1085 fiat_p256_scalar_mulx_u64(&mut x68, &mut x69, x62, 0xbce6faada7179e84);
1086 let mut x70: u64 = 0;
1087 let mut x71: u64 = 0;
1088 fiat_p256_scalar_mulx_u64(&mut x70, &mut x71, x62, 0xf3b9cac2fc632551);
1089 let mut x72: u64 = 0;
1090 let mut x73: fiat_p256_scalar_u1 = 0;
1091 fiat_p256_scalar_addcarryx_u64(&mut x72, &mut x73, 0x0, x71, x68);
1092 let mut x74: u64 = 0;
1093 let mut x75: fiat_p256_scalar_u1 = 0;
1094 fiat_p256_scalar_addcarryx_u64(&mut x74, &mut x75, x73, x69, x66);
1095 let mut x76: u64 = 0;
1096 let mut x77: fiat_p256_scalar_u1 = 0;
1097 fiat_p256_scalar_addcarryx_u64(&mut x76, &mut x77, x75, x67, x64);
1098 let mut x78: u64 = 0;
1099 let mut x79: fiat_p256_scalar_u1 = 0;
1100 fiat_p256_scalar_addcarryx_u64(&mut x78, &mut x79, 0x0, x56, x70);
1101 let mut x80: u64 = 0;
1102 let mut x81: fiat_p256_scalar_u1 = 0;
1103 fiat_p256_scalar_addcarryx_u64(&mut x80, &mut x81, x79, x58, x72);
1104 let mut x82: u64 = 0;
1105 let mut x83: fiat_p256_scalar_u1 = 0;
1106 fiat_p256_scalar_addcarryx_u64(&mut x82, &mut x83, x81, x60, x74);
1107 let mut x84: u64 = 0;
1108 let mut x85: fiat_p256_scalar_u1 = 0;
1109 fiat_p256_scalar_addcarryx_u64(&mut x84, &mut x85, x83, ((x61 as u64) + ((x55 as u64) + ((x47 as u64) + x35))), x76);
1110 let mut x86: u64 = 0;
1111 let mut x87: fiat_p256_scalar_u1 = 0;
1112 fiat_p256_scalar_addcarryx_u64(&mut x86, &mut x87, 0x0, x80, (arg1[3]));
1113 let mut x88: u64 = 0;
1114 let mut x89: fiat_p256_scalar_u1 = 0;
1115 fiat_p256_scalar_addcarryx_u64(&mut x88, &mut x89, x87, x82, (0x0 as u64));
1116 let mut x90: u64 = 0;
1117 let mut x91: fiat_p256_scalar_u1 = 0;
1118 fiat_p256_scalar_addcarryx_u64(&mut x90, &mut x91, x89, x84, (0x0 as u64));
1119 let mut x92: u64 = 0;
1120 let mut x93: u64 = 0;
1121 fiat_p256_scalar_mulx_u64(&mut x92, &mut x93, x86, 0xccd1c8aaee00bc4f);
1122 let mut x94: u64 = 0;
1123 let mut x95: u64 = 0;
1124 fiat_p256_scalar_mulx_u64(&mut x94, &mut x95, x92, 0xffffffff00000000);
1125 let mut x96: u64 = 0;
1126 let mut x97: u64 = 0;
1127 fiat_p256_scalar_mulx_u64(&mut x96, &mut x97, x92, 0xffffffffffffffff);
1128 let mut x98: u64 = 0;
1129 let mut x99: u64 = 0;
1130 fiat_p256_scalar_mulx_u64(&mut x98, &mut x99, x92, 0xbce6faada7179e84);
1131 let mut x100: u64 = 0;
1132 let mut x101: u64 = 0;
1133 fiat_p256_scalar_mulx_u64(&mut x100, &mut x101, x92, 0xf3b9cac2fc632551);
1134 let mut x102: u64 = 0;
1135 let mut x103: fiat_p256_scalar_u1 = 0;
1136 fiat_p256_scalar_addcarryx_u64(&mut x102, &mut x103, 0x0, x101, x98);
1137 let mut x104: u64 = 0;
1138 let mut x105: fiat_p256_scalar_u1 = 0;
1139 fiat_p256_scalar_addcarryx_u64(&mut x104, &mut x105, x103, x99, x96);
1140 let mut x106: u64 = 0;
1141 let mut x107: fiat_p256_scalar_u1 = 0;
1142 fiat_p256_scalar_addcarryx_u64(&mut x106, &mut x107, x105, x97, x94);
1143 let mut x108: u64 = 0;
1144 let mut x109: fiat_p256_scalar_u1 = 0;
1145 fiat_p256_scalar_addcarryx_u64(&mut x108, &mut x109, 0x0, x86, x100);
1146 let mut x110: u64 = 0;
1147 let mut x111: fiat_p256_scalar_u1 = 0;
1148 fiat_p256_scalar_addcarryx_u64(&mut x110, &mut x111, x109, x88, x102);
1149 let mut x112: u64 = 0;
1150 let mut x113: fiat_p256_scalar_u1 = 0;
1151 fiat_p256_scalar_addcarryx_u64(&mut x112, &mut x113, x111, x90, x104);
1152 let mut x114: u64 = 0;
1153 let mut x115: fiat_p256_scalar_u1 = 0;
1154 fiat_p256_scalar_addcarryx_u64(&mut x114, &mut x115, x113, ((x91 as u64) + ((x85 as u64) + ((x77 as u64) + x65))), x106);
1155 let x116: u64 = ((x115 as u64) + ((x107 as u64) + x95));
1156 let mut x117: u64 = 0;
1157 let mut x118: fiat_p256_scalar_u1 = 0;
1158 fiat_p256_scalar_subborrowx_u64(&mut x117, &mut x118, 0x0, x110, 0xf3b9cac2fc632551);
1159 let mut x119: u64 = 0;
1160 let mut x120: fiat_p256_scalar_u1 = 0;
1161 fiat_p256_scalar_subborrowx_u64(&mut x119, &mut x120, x118, x112, 0xbce6faada7179e84);
1162 let mut x121: u64 = 0;
1163 let mut x122: fiat_p256_scalar_u1 = 0;
1164 fiat_p256_scalar_subborrowx_u64(&mut x121, &mut x122, x120, x114, 0xffffffffffffffff);
1165 let mut x123: u64 = 0;
1166 let mut x124: fiat_p256_scalar_u1 = 0;
1167 fiat_p256_scalar_subborrowx_u64(&mut x123, &mut x124, x122, x116, 0xffffffff00000000);
1168 let mut x125: u64 = 0;
1169 let mut x126: fiat_p256_scalar_u1 = 0;
1170 fiat_p256_scalar_subborrowx_u64(&mut x125, &mut x126, x124, (0x0 as u64), (0x0 as u64));
1171 let mut x127: u64 = 0;
1172 fiat_p256_scalar_cmovznz_u64(&mut x127, x126, x117, x110);
1173 let mut x128: u64 = 0;
1174 fiat_p256_scalar_cmovznz_u64(&mut x128, x126, x119, x112);
1175 let mut x129: u64 = 0;
1176 fiat_p256_scalar_cmovznz_u64(&mut x129, x126, x121, x114);
1177 let mut x130: u64 = 0;
1178 fiat_p256_scalar_cmovznz_u64(&mut x130, x126, x123, x116);
1179 out1[0] = x127;
1180 out1[1] = x128;
1181 out1[2] = x129;
1182 out1[3] = x130;
1183}
1184
1185#[inline]
1194pub fn fiat_p256_scalar_to_montgomery(out1: &mut fiat_p256_scalar_montgomery_domain_field_element, arg1: &fiat_p256_scalar_non_montgomery_domain_field_element) {
1195 let x1: u64 = (arg1[1]);
1196 let x2: u64 = (arg1[2]);
1197 let x3: u64 = (arg1[3]);
1198 let x4: u64 = (arg1[0]);
1199 let mut x5: u64 = 0;
1200 let mut x6: u64 = 0;
1201 fiat_p256_scalar_mulx_u64(&mut x5, &mut x6, x4, 0x66e12d94f3d95620);
1202 let mut x7: u64 = 0;
1203 let mut x8: u64 = 0;
1204 fiat_p256_scalar_mulx_u64(&mut x7, &mut x8, x4, 0x2845b2392b6bec59);
1205 let mut x9: u64 = 0;
1206 let mut x10: u64 = 0;
1207 fiat_p256_scalar_mulx_u64(&mut x9, &mut x10, x4, 0x4699799c49bd6fa6);
1208 let mut x11: u64 = 0;
1209 let mut x12: u64 = 0;
1210 fiat_p256_scalar_mulx_u64(&mut x11, &mut x12, x4, 0x83244c95be79eea2);
1211 let mut x13: u64 = 0;
1212 let mut x14: fiat_p256_scalar_u1 = 0;
1213 fiat_p256_scalar_addcarryx_u64(&mut x13, &mut x14, 0x0, x12, x9);
1214 let mut x15: u64 = 0;
1215 let mut x16: fiat_p256_scalar_u1 = 0;
1216 fiat_p256_scalar_addcarryx_u64(&mut x15, &mut x16, x14, x10, x7);
1217 let mut x17: u64 = 0;
1218 let mut x18: fiat_p256_scalar_u1 = 0;
1219 fiat_p256_scalar_addcarryx_u64(&mut x17, &mut x18, x16, x8, x5);
1220 let mut x19: u64 = 0;
1221 let mut x20: u64 = 0;
1222 fiat_p256_scalar_mulx_u64(&mut x19, &mut x20, x11, 0xccd1c8aaee00bc4f);
1223 let mut x21: u64 = 0;
1224 let mut x22: u64 = 0;
1225 fiat_p256_scalar_mulx_u64(&mut x21, &mut x22, x19, 0xffffffff00000000);
1226 let mut x23: u64 = 0;
1227 let mut x24: u64 = 0;
1228 fiat_p256_scalar_mulx_u64(&mut x23, &mut x24, x19, 0xffffffffffffffff);
1229 let mut x25: u64 = 0;
1230 let mut x26: u64 = 0;
1231 fiat_p256_scalar_mulx_u64(&mut x25, &mut x26, x19, 0xbce6faada7179e84);
1232 let mut x27: u64 = 0;
1233 let mut x28: u64 = 0;
1234 fiat_p256_scalar_mulx_u64(&mut x27, &mut x28, x19, 0xf3b9cac2fc632551);
1235 let mut x29: u64 = 0;
1236 let mut x30: fiat_p256_scalar_u1 = 0;
1237 fiat_p256_scalar_addcarryx_u64(&mut x29, &mut x30, 0x0, x28, x25);
1238 let mut x31: u64 = 0;
1239 let mut x32: fiat_p256_scalar_u1 = 0;
1240 fiat_p256_scalar_addcarryx_u64(&mut x31, &mut x32, x30, x26, x23);
1241 let mut x33: u64 = 0;
1242 let mut x34: fiat_p256_scalar_u1 = 0;
1243 fiat_p256_scalar_addcarryx_u64(&mut x33, &mut x34, x32, x24, x21);
1244 let mut x35: u64 = 0;
1245 let mut x36: fiat_p256_scalar_u1 = 0;
1246 fiat_p256_scalar_addcarryx_u64(&mut x35, &mut x36, 0x0, x11, x27);
1247 let mut x37: u64 = 0;
1248 let mut x38: fiat_p256_scalar_u1 = 0;
1249 fiat_p256_scalar_addcarryx_u64(&mut x37, &mut x38, x36, x13, x29);
1250 let mut x39: u64 = 0;
1251 let mut x40: fiat_p256_scalar_u1 = 0;
1252 fiat_p256_scalar_addcarryx_u64(&mut x39, &mut x40, x38, x15, x31);
1253 let mut x41: u64 = 0;
1254 let mut x42: fiat_p256_scalar_u1 = 0;
1255 fiat_p256_scalar_addcarryx_u64(&mut x41, &mut x42, x40, x17, x33);
1256 let mut x43: u64 = 0;
1257 let mut x44: fiat_p256_scalar_u1 = 0;
1258 fiat_p256_scalar_addcarryx_u64(&mut x43, &mut x44, x42, ((x18 as u64) + x6), ((x34 as u64) + x22));
1259 let mut x45: u64 = 0;
1260 let mut x46: u64 = 0;
1261 fiat_p256_scalar_mulx_u64(&mut x45, &mut x46, x1, 0x66e12d94f3d95620);
1262 let mut x47: u64 = 0;
1263 let mut x48: u64 = 0;
1264 fiat_p256_scalar_mulx_u64(&mut x47, &mut x48, x1, 0x2845b2392b6bec59);
1265 let mut x49: u64 = 0;
1266 let mut x50: u64 = 0;
1267 fiat_p256_scalar_mulx_u64(&mut x49, &mut x50, x1, 0x4699799c49bd6fa6);
1268 let mut x51: u64 = 0;
1269 let mut x52: u64 = 0;
1270 fiat_p256_scalar_mulx_u64(&mut x51, &mut x52, x1, 0x83244c95be79eea2);
1271 let mut x53: u64 = 0;
1272 let mut x54: fiat_p256_scalar_u1 = 0;
1273 fiat_p256_scalar_addcarryx_u64(&mut x53, &mut x54, 0x0, x52, x49);
1274 let mut x55: u64 = 0;
1275 let mut x56: fiat_p256_scalar_u1 = 0;
1276 fiat_p256_scalar_addcarryx_u64(&mut x55, &mut x56, x54, x50, x47);
1277 let mut x57: u64 = 0;
1278 let mut x58: fiat_p256_scalar_u1 = 0;
1279 fiat_p256_scalar_addcarryx_u64(&mut x57, &mut x58, x56, x48, x45);
1280 let mut x59: u64 = 0;
1281 let mut x60: fiat_p256_scalar_u1 = 0;
1282 fiat_p256_scalar_addcarryx_u64(&mut x59, &mut x60, 0x0, x37, x51);
1283 let mut x61: u64 = 0;
1284 let mut x62: fiat_p256_scalar_u1 = 0;
1285 fiat_p256_scalar_addcarryx_u64(&mut x61, &mut x62, x60, x39, x53);
1286 let mut x63: u64 = 0;
1287 let mut x64: fiat_p256_scalar_u1 = 0;
1288 fiat_p256_scalar_addcarryx_u64(&mut x63, &mut x64, x62, x41, x55);
1289 let mut x65: u64 = 0;
1290 let mut x66: fiat_p256_scalar_u1 = 0;
1291 fiat_p256_scalar_addcarryx_u64(&mut x65, &mut x66, x64, x43, x57);
1292 let mut x67: u64 = 0;
1293 let mut x68: u64 = 0;
1294 fiat_p256_scalar_mulx_u64(&mut x67, &mut x68, x59, 0xccd1c8aaee00bc4f);
1295 let mut x69: u64 = 0;
1296 let mut x70: u64 = 0;
1297 fiat_p256_scalar_mulx_u64(&mut x69, &mut x70, x67, 0xffffffff00000000);
1298 let mut x71: u64 = 0;
1299 let mut x72: u64 = 0;
1300 fiat_p256_scalar_mulx_u64(&mut x71, &mut x72, x67, 0xffffffffffffffff);
1301 let mut x73: u64 = 0;
1302 let mut x74: u64 = 0;
1303 fiat_p256_scalar_mulx_u64(&mut x73, &mut x74, x67, 0xbce6faada7179e84);
1304 let mut x75: u64 = 0;
1305 let mut x76: u64 = 0;
1306 fiat_p256_scalar_mulx_u64(&mut x75, &mut x76, x67, 0xf3b9cac2fc632551);
1307 let mut x77: u64 = 0;
1308 let mut x78: fiat_p256_scalar_u1 = 0;
1309 fiat_p256_scalar_addcarryx_u64(&mut x77, &mut x78, 0x0, x76, x73);
1310 let mut x79: u64 = 0;
1311 let mut x80: fiat_p256_scalar_u1 = 0;
1312 fiat_p256_scalar_addcarryx_u64(&mut x79, &mut x80, x78, x74, x71);
1313 let mut x81: u64 = 0;
1314 let mut x82: fiat_p256_scalar_u1 = 0;
1315 fiat_p256_scalar_addcarryx_u64(&mut x81, &mut x82, x80, x72, x69);
1316 let mut x83: u64 = 0;
1317 let mut x84: fiat_p256_scalar_u1 = 0;
1318 fiat_p256_scalar_addcarryx_u64(&mut x83, &mut x84, 0x0, x59, x75);
1319 let mut x85: u64 = 0;
1320 let mut x86: fiat_p256_scalar_u1 = 0;
1321 fiat_p256_scalar_addcarryx_u64(&mut x85, &mut x86, x84, x61, x77);
1322 let mut x87: u64 = 0;
1323 let mut x88: fiat_p256_scalar_u1 = 0;
1324 fiat_p256_scalar_addcarryx_u64(&mut x87, &mut x88, x86, x63, x79);
1325 let mut x89: u64 = 0;
1326 let mut x90: fiat_p256_scalar_u1 = 0;
1327 fiat_p256_scalar_addcarryx_u64(&mut x89, &mut x90, x88, x65, x81);
1328 let mut x91: u64 = 0;
1329 let mut x92: fiat_p256_scalar_u1 = 0;
1330 fiat_p256_scalar_addcarryx_u64(&mut x91, &mut x92, x90, (((x66 as u64) + (x44 as u64)) + ((x58 as u64) + x46)), ((x82 as u64) + x70));
1331 let mut x93: u64 = 0;
1332 let mut x94: u64 = 0;
1333 fiat_p256_scalar_mulx_u64(&mut x93, &mut x94, x2, 0x66e12d94f3d95620);
1334 let mut x95: u64 = 0;
1335 let mut x96: u64 = 0;
1336 fiat_p256_scalar_mulx_u64(&mut x95, &mut x96, x2, 0x2845b2392b6bec59);
1337 let mut x97: u64 = 0;
1338 let mut x98: u64 = 0;
1339 fiat_p256_scalar_mulx_u64(&mut x97, &mut x98, x2, 0x4699799c49bd6fa6);
1340 let mut x99: u64 = 0;
1341 let mut x100: u64 = 0;
1342 fiat_p256_scalar_mulx_u64(&mut x99, &mut x100, x2, 0x83244c95be79eea2);
1343 let mut x101: u64 = 0;
1344 let mut x102: fiat_p256_scalar_u1 = 0;
1345 fiat_p256_scalar_addcarryx_u64(&mut x101, &mut x102, 0x0, x100, x97);
1346 let mut x103: u64 = 0;
1347 let mut x104: fiat_p256_scalar_u1 = 0;
1348 fiat_p256_scalar_addcarryx_u64(&mut x103, &mut x104, x102, x98, x95);
1349 let mut x105: u64 = 0;
1350 let mut x106: fiat_p256_scalar_u1 = 0;
1351 fiat_p256_scalar_addcarryx_u64(&mut x105, &mut x106, x104, x96, x93);
1352 let mut x107: u64 = 0;
1353 let mut x108: fiat_p256_scalar_u1 = 0;
1354 fiat_p256_scalar_addcarryx_u64(&mut x107, &mut x108, 0x0, x85, x99);
1355 let mut x109: u64 = 0;
1356 let mut x110: fiat_p256_scalar_u1 = 0;
1357 fiat_p256_scalar_addcarryx_u64(&mut x109, &mut x110, x108, x87, x101);
1358 let mut x111: u64 = 0;
1359 let mut x112: fiat_p256_scalar_u1 = 0;
1360 fiat_p256_scalar_addcarryx_u64(&mut x111, &mut x112, x110, x89, x103);
1361 let mut x113: u64 = 0;
1362 let mut x114: fiat_p256_scalar_u1 = 0;
1363 fiat_p256_scalar_addcarryx_u64(&mut x113, &mut x114, x112, x91, x105);
1364 let mut x115: u64 = 0;
1365 let mut x116: u64 = 0;
1366 fiat_p256_scalar_mulx_u64(&mut x115, &mut x116, x107, 0xccd1c8aaee00bc4f);
1367 let mut x117: u64 = 0;
1368 let mut x118: u64 = 0;
1369 fiat_p256_scalar_mulx_u64(&mut x117, &mut x118, x115, 0xffffffff00000000);
1370 let mut x119: u64 = 0;
1371 let mut x120: u64 = 0;
1372 fiat_p256_scalar_mulx_u64(&mut x119, &mut x120, x115, 0xffffffffffffffff);
1373 let mut x121: u64 = 0;
1374 let mut x122: u64 = 0;
1375 fiat_p256_scalar_mulx_u64(&mut x121, &mut x122, x115, 0xbce6faada7179e84);
1376 let mut x123: u64 = 0;
1377 let mut x124: u64 = 0;
1378 fiat_p256_scalar_mulx_u64(&mut x123, &mut x124, x115, 0xf3b9cac2fc632551);
1379 let mut x125: u64 = 0;
1380 let mut x126: fiat_p256_scalar_u1 = 0;
1381 fiat_p256_scalar_addcarryx_u64(&mut x125, &mut x126, 0x0, x124, x121);
1382 let mut x127: u64 = 0;
1383 let mut x128: fiat_p256_scalar_u1 = 0;
1384 fiat_p256_scalar_addcarryx_u64(&mut x127, &mut x128, x126, x122, x119);
1385 let mut x129: u64 = 0;
1386 let mut x130: fiat_p256_scalar_u1 = 0;
1387 fiat_p256_scalar_addcarryx_u64(&mut x129, &mut x130, x128, x120, x117);
1388 let mut x131: u64 = 0;
1389 let mut x132: fiat_p256_scalar_u1 = 0;
1390 fiat_p256_scalar_addcarryx_u64(&mut x131, &mut x132, 0x0, x107, x123);
1391 let mut x133: u64 = 0;
1392 let mut x134: fiat_p256_scalar_u1 = 0;
1393 fiat_p256_scalar_addcarryx_u64(&mut x133, &mut x134, x132, x109, x125);
1394 let mut x135: u64 = 0;
1395 let mut x136: fiat_p256_scalar_u1 = 0;
1396 fiat_p256_scalar_addcarryx_u64(&mut x135, &mut x136, x134, x111, x127);
1397 let mut x137: u64 = 0;
1398 let mut x138: fiat_p256_scalar_u1 = 0;
1399 fiat_p256_scalar_addcarryx_u64(&mut x137, &mut x138, x136, x113, x129);
1400 let mut x139: u64 = 0;
1401 let mut x140: fiat_p256_scalar_u1 = 0;
1402 fiat_p256_scalar_addcarryx_u64(&mut x139, &mut x140, x138, (((x114 as u64) + (x92 as u64)) + ((x106 as u64) + x94)), ((x130 as u64) + x118));
1403 let mut x141: u64 = 0;
1404 let mut x142: u64 = 0;
1405 fiat_p256_scalar_mulx_u64(&mut x141, &mut x142, x3, 0x66e12d94f3d95620);
1406 let mut x143: u64 = 0;
1407 let mut x144: u64 = 0;
1408 fiat_p256_scalar_mulx_u64(&mut x143, &mut x144, x3, 0x2845b2392b6bec59);
1409 let mut x145: u64 = 0;
1410 let mut x146: u64 = 0;
1411 fiat_p256_scalar_mulx_u64(&mut x145, &mut x146, x3, 0x4699799c49bd6fa6);
1412 let mut x147: u64 = 0;
1413 let mut x148: u64 = 0;
1414 fiat_p256_scalar_mulx_u64(&mut x147, &mut x148, x3, 0x83244c95be79eea2);
1415 let mut x149: u64 = 0;
1416 let mut x150: fiat_p256_scalar_u1 = 0;
1417 fiat_p256_scalar_addcarryx_u64(&mut x149, &mut x150, 0x0, x148, x145);
1418 let mut x151: u64 = 0;
1419 let mut x152: fiat_p256_scalar_u1 = 0;
1420 fiat_p256_scalar_addcarryx_u64(&mut x151, &mut x152, x150, x146, x143);
1421 let mut x153: u64 = 0;
1422 let mut x154: fiat_p256_scalar_u1 = 0;
1423 fiat_p256_scalar_addcarryx_u64(&mut x153, &mut x154, x152, x144, x141);
1424 let mut x155: u64 = 0;
1425 let mut x156: fiat_p256_scalar_u1 = 0;
1426 fiat_p256_scalar_addcarryx_u64(&mut x155, &mut x156, 0x0, x133, x147);
1427 let mut x157: u64 = 0;
1428 let mut x158: fiat_p256_scalar_u1 = 0;
1429 fiat_p256_scalar_addcarryx_u64(&mut x157, &mut x158, x156, x135, x149);
1430 let mut x159: u64 = 0;
1431 let mut x160: fiat_p256_scalar_u1 = 0;
1432 fiat_p256_scalar_addcarryx_u64(&mut x159, &mut x160, x158, x137, x151);
1433 let mut x161: u64 = 0;
1434 let mut x162: fiat_p256_scalar_u1 = 0;
1435 fiat_p256_scalar_addcarryx_u64(&mut x161, &mut x162, x160, x139, x153);
1436 let mut x163: u64 = 0;
1437 let mut x164: u64 = 0;
1438 fiat_p256_scalar_mulx_u64(&mut x163, &mut x164, x155, 0xccd1c8aaee00bc4f);
1439 let mut x165: u64 = 0;
1440 let mut x166: u64 = 0;
1441 fiat_p256_scalar_mulx_u64(&mut x165, &mut x166, x163, 0xffffffff00000000);
1442 let mut x167: u64 = 0;
1443 let mut x168: u64 = 0;
1444 fiat_p256_scalar_mulx_u64(&mut x167, &mut x168, x163, 0xffffffffffffffff);
1445 let mut x169: u64 = 0;
1446 let mut x170: u64 = 0;
1447 fiat_p256_scalar_mulx_u64(&mut x169, &mut x170, x163, 0xbce6faada7179e84);
1448 let mut x171: u64 = 0;
1449 let mut x172: u64 = 0;
1450 fiat_p256_scalar_mulx_u64(&mut x171, &mut x172, x163, 0xf3b9cac2fc632551);
1451 let mut x173: u64 = 0;
1452 let mut x174: fiat_p256_scalar_u1 = 0;
1453 fiat_p256_scalar_addcarryx_u64(&mut x173, &mut x174, 0x0, x172, x169);
1454 let mut x175: u64 = 0;
1455 let mut x176: fiat_p256_scalar_u1 = 0;
1456 fiat_p256_scalar_addcarryx_u64(&mut x175, &mut x176, x174, x170, x167);
1457 let mut x177: u64 = 0;
1458 let mut x178: fiat_p256_scalar_u1 = 0;
1459 fiat_p256_scalar_addcarryx_u64(&mut x177, &mut x178, x176, x168, x165);
1460 let mut x179: u64 = 0;
1461 let mut x180: fiat_p256_scalar_u1 = 0;
1462 fiat_p256_scalar_addcarryx_u64(&mut x179, &mut x180, 0x0, x155, x171);
1463 let mut x181: u64 = 0;
1464 let mut x182: fiat_p256_scalar_u1 = 0;
1465 fiat_p256_scalar_addcarryx_u64(&mut x181, &mut x182, x180, x157, x173);
1466 let mut x183: u64 = 0;
1467 let mut x184: fiat_p256_scalar_u1 = 0;
1468 fiat_p256_scalar_addcarryx_u64(&mut x183, &mut x184, x182, x159, x175);
1469 let mut x185: u64 = 0;
1470 let mut x186: fiat_p256_scalar_u1 = 0;
1471 fiat_p256_scalar_addcarryx_u64(&mut x185, &mut x186, x184, x161, x177);
1472 let mut x187: u64 = 0;
1473 let mut x188: fiat_p256_scalar_u1 = 0;
1474 fiat_p256_scalar_addcarryx_u64(&mut x187, &mut x188, x186, (((x162 as u64) + (x140 as u64)) + ((x154 as u64) + x142)), ((x178 as u64) + x166));
1475 let mut x189: u64 = 0;
1476 let mut x190: fiat_p256_scalar_u1 = 0;
1477 fiat_p256_scalar_subborrowx_u64(&mut x189, &mut x190, 0x0, x181, 0xf3b9cac2fc632551);
1478 let mut x191: u64 = 0;
1479 let mut x192: fiat_p256_scalar_u1 = 0;
1480 fiat_p256_scalar_subborrowx_u64(&mut x191, &mut x192, x190, x183, 0xbce6faada7179e84);
1481 let mut x193: u64 = 0;
1482 let mut x194: fiat_p256_scalar_u1 = 0;
1483 fiat_p256_scalar_subborrowx_u64(&mut x193, &mut x194, x192, x185, 0xffffffffffffffff);
1484 let mut x195: u64 = 0;
1485 let mut x196: fiat_p256_scalar_u1 = 0;
1486 fiat_p256_scalar_subborrowx_u64(&mut x195, &mut x196, x194, x187, 0xffffffff00000000);
1487 let mut x197: u64 = 0;
1488 let mut x198: fiat_p256_scalar_u1 = 0;
1489 fiat_p256_scalar_subborrowx_u64(&mut x197, &mut x198, x196, (x188 as u64), (0x0 as u64));
1490 let mut x199: u64 = 0;
1491 fiat_p256_scalar_cmovznz_u64(&mut x199, x198, x189, x181);
1492 let mut x200: u64 = 0;
1493 fiat_p256_scalar_cmovznz_u64(&mut x200, x198, x191, x183);
1494 let mut x201: u64 = 0;
1495 fiat_p256_scalar_cmovznz_u64(&mut x201, x198, x193, x185);
1496 let mut x202: u64 = 0;
1497 fiat_p256_scalar_cmovznz_u64(&mut x202, x198, x195, x187);
1498 out1[0] = x199;
1499 out1[1] = x200;
1500 out1[2] = x201;
1501 out1[3] = x202;
1502}
1503
1504#[inline]
1516pub fn fiat_p256_scalar_nonzero(out1: &mut u64, arg1: &[u64; 4]) {
1517 let x1: u64 = ((arg1[0]) | ((arg1[1]) | ((arg1[2]) | (arg1[3]))));
1518 *out1 = x1;
1519}
1520
1521#[inline]
1533pub fn fiat_p256_scalar_selectznz(out1: &mut [u64; 4], arg1: fiat_p256_scalar_u1, arg2: &[u64; 4], arg3: &[u64; 4]) {
1534 let mut x1: u64 = 0;
1535 fiat_p256_scalar_cmovznz_u64(&mut x1, arg1, (arg2[0]), (arg3[0]));
1536 let mut x2: u64 = 0;
1537 fiat_p256_scalar_cmovznz_u64(&mut x2, arg1, (arg2[1]), (arg3[1]));
1538 let mut x3: u64 = 0;
1539 fiat_p256_scalar_cmovznz_u64(&mut x3, arg1, (arg2[2]), (arg3[2]));
1540 let mut x4: u64 = 0;
1541 fiat_p256_scalar_cmovznz_u64(&mut x4, arg1, (arg2[3]), (arg3[3]));
1542 out1[0] = x1;
1543 out1[1] = x2;
1544 out1[2] = x3;
1545 out1[3] = x4;
1546}
1547
1548#[inline]
1560pub fn fiat_p256_scalar_to_bytes(out1: &mut [u8; 32], arg1: &[u64; 4]) {
1561 let x1: u64 = (arg1[3]);
1562 let x2: u64 = (arg1[2]);
1563 let x3: u64 = (arg1[1]);
1564 let x4: u64 = (arg1[0]);
1565 let x5: u8 = ((x4 & (0xff as u64)) as u8);
1566 let x6: u64 = (x4 >> 8);
1567 let x7: u8 = ((x6 & (0xff as u64)) as u8);
1568 let x8: u64 = (x6 >> 8);
1569 let x9: u8 = ((x8 & (0xff as u64)) as u8);
1570 let x10: u64 = (x8 >> 8);
1571 let x11: u8 = ((x10 & (0xff as u64)) as u8);
1572 let x12: u64 = (x10 >> 8);
1573 let x13: u8 = ((x12 & (0xff as u64)) as u8);
1574 let x14: u64 = (x12 >> 8);
1575 let x15: u8 = ((x14 & (0xff as u64)) as u8);
1576 let x16: u64 = (x14 >> 8);
1577 let x17: u8 = ((x16 & (0xff as u64)) as u8);
1578 let x18: u8 = ((x16 >> 8) as u8);
1579 let x19: u8 = ((x3 & (0xff as u64)) as u8);
1580 let x20: u64 = (x3 >> 8);
1581 let x21: u8 = ((x20 & (0xff as u64)) as u8);
1582 let x22: u64 = (x20 >> 8);
1583 let x23: u8 = ((x22 & (0xff as u64)) as u8);
1584 let x24: u64 = (x22 >> 8);
1585 let x25: u8 = ((x24 & (0xff as u64)) as u8);
1586 let x26: u64 = (x24 >> 8);
1587 let x27: u8 = ((x26 & (0xff as u64)) as u8);
1588 let x28: u64 = (x26 >> 8);
1589 let x29: u8 = ((x28 & (0xff as u64)) as u8);
1590 let x30: u64 = (x28 >> 8);
1591 let x31: u8 = ((x30 & (0xff as u64)) as u8);
1592 let x32: u8 = ((x30 >> 8) as u8);
1593 let x33: u8 = ((x2 & (0xff as u64)) as u8);
1594 let x34: u64 = (x2 >> 8);
1595 let x35: u8 = ((x34 & (0xff as u64)) as u8);
1596 let x36: u64 = (x34 >> 8);
1597 let x37: u8 = ((x36 & (0xff as u64)) as u8);
1598 let x38: u64 = (x36 >> 8);
1599 let x39: u8 = ((x38 & (0xff as u64)) as u8);
1600 let x40: u64 = (x38 >> 8);
1601 let x41: u8 = ((x40 & (0xff as u64)) as u8);
1602 let x42: u64 = (x40 >> 8);
1603 let x43: u8 = ((x42 & (0xff as u64)) as u8);
1604 let x44: u64 = (x42 >> 8);
1605 let x45: u8 = ((x44 & (0xff as u64)) as u8);
1606 let x46: u8 = ((x44 >> 8) as u8);
1607 let x47: u8 = ((x1 & (0xff as u64)) as u8);
1608 let x48: u64 = (x1 >> 8);
1609 let x49: u8 = ((x48 & (0xff as u64)) as u8);
1610 let x50: u64 = (x48 >> 8);
1611 let x51: u8 = ((x50 & (0xff as u64)) as u8);
1612 let x52: u64 = (x50 >> 8);
1613 let x53: u8 = ((x52 & (0xff as u64)) as u8);
1614 let x54: u64 = (x52 >> 8);
1615 let x55: u8 = ((x54 & (0xff as u64)) as u8);
1616 let x56: u64 = (x54 >> 8);
1617 let x57: u8 = ((x56 & (0xff as u64)) as u8);
1618 let x58: u64 = (x56 >> 8);
1619 let x59: u8 = ((x58 & (0xff as u64)) as u8);
1620 let x60: u8 = ((x58 >> 8) as u8);
1621 out1[0] = x5;
1622 out1[1] = x7;
1623 out1[2] = x9;
1624 out1[3] = x11;
1625 out1[4] = x13;
1626 out1[5] = x15;
1627 out1[6] = x17;
1628 out1[7] = x18;
1629 out1[8] = x19;
1630 out1[9] = x21;
1631 out1[10] = x23;
1632 out1[11] = x25;
1633 out1[12] = x27;
1634 out1[13] = x29;
1635 out1[14] = x31;
1636 out1[15] = x32;
1637 out1[16] = x33;
1638 out1[17] = x35;
1639 out1[18] = x37;
1640 out1[19] = x39;
1641 out1[20] = x41;
1642 out1[21] = x43;
1643 out1[22] = x45;
1644 out1[23] = x46;
1645 out1[24] = x47;
1646 out1[25] = x49;
1647 out1[26] = x51;
1648 out1[27] = x53;
1649 out1[28] = x55;
1650 out1[29] = x57;
1651 out1[30] = x59;
1652 out1[31] = x60;
1653}
1654
1655#[inline]
1668pub fn fiat_p256_scalar_from_bytes(out1: &mut [u64; 4], arg1: &[u8; 32]) {
1669 let x1: u64 = (((arg1[31]) as u64) << 56);
1670 let x2: u64 = (((arg1[30]) as u64) << 48);
1671 let x3: u64 = (((arg1[29]) as u64) << 40);
1672 let x4: u64 = (((arg1[28]) as u64) << 32);
1673 let x5: u64 = (((arg1[27]) as u64) << 24);
1674 let x6: u64 = (((arg1[26]) as u64) << 16);
1675 let x7: u64 = (((arg1[25]) as u64) << 8);
1676 let x8: u8 = (arg1[24]);
1677 let x9: u64 = (((arg1[23]) as u64) << 56);
1678 let x10: u64 = (((arg1[22]) as u64) << 48);
1679 let x11: u64 = (((arg1[21]) as u64) << 40);
1680 let x12: u64 = (((arg1[20]) as u64) << 32);
1681 let x13: u64 = (((arg1[19]) as u64) << 24);
1682 let x14: u64 = (((arg1[18]) as u64) << 16);
1683 let x15: u64 = (((arg1[17]) as u64) << 8);
1684 let x16: u8 = (arg1[16]);
1685 let x17: u64 = (((arg1[15]) as u64) << 56);
1686 let x18: u64 = (((arg1[14]) as u64) << 48);
1687 let x19: u64 = (((arg1[13]) as u64) << 40);
1688 let x20: u64 = (((arg1[12]) as u64) << 32);
1689 let x21: u64 = (((arg1[11]) as u64) << 24);
1690 let x22: u64 = (((arg1[10]) as u64) << 16);
1691 let x23: u64 = (((arg1[9]) as u64) << 8);
1692 let x24: u8 = (arg1[8]);
1693 let x25: u64 = (((arg1[7]) as u64) << 56);
1694 let x26: u64 = (((arg1[6]) as u64) << 48);
1695 let x27: u64 = (((arg1[5]) as u64) << 40);
1696 let x28: u64 = (((arg1[4]) as u64) << 32);
1697 let x29: u64 = (((arg1[3]) as u64) << 24);
1698 let x30: u64 = (((arg1[2]) as u64) << 16);
1699 let x31: u64 = (((arg1[1]) as u64) << 8);
1700 let x32: u8 = (arg1[0]);
1701 let x33: u64 = (x31 + (x32 as u64));
1702 let x34: u64 = (x30 + x33);
1703 let x35: u64 = (x29 + x34);
1704 let x36: u64 = (x28 + x35);
1705 let x37: u64 = (x27 + x36);
1706 let x38: u64 = (x26 + x37);
1707 let x39: u64 = (x25 + x38);
1708 let x40: u64 = (x23 + (x24 as u64));
1709 let x41: u64 = (x22 + x40);
1710 let x42: u64 = (x21 + x41);
1711 let x43: u64 = (x20 + x42);
1712 let x44: u64 = (x19 + x43);
1713 let x45: u64 = (x18 + x44);
1714 let x46: u64 = (x17 + x45);
1715 let x47: u64 = (x15 + (x16 as u64));
1716 let x48: u64 = (x14 + x47);
1717 let x49: u64 = (x13 + x48);
1718 let x50: u64 = (x12 + x49);
1719 let x51: u64 = (x11 + x50);
1720 let x52: u64 = (x10 + x51);
1721 let x53: u64 = (x9 + x52);
1722 let x54: u64 = (x7 + (x8 as u64));
1723 let x55: u64 = (x6 + x54);
1724 let x56: u64 = (x5 + x55);
1725 let x57: u64 = (x4 + x56);
1726 let x58: u64 = (x3 + x57);
1727 let x59: u64 = (x2 + x58);
1728 let x60: u64 = (x1 + x59);
1729 out1[0] = x39;
1730 out1[1] = x46;
1731 out1[2] = x53;
1732 out1[3] = x60;
1733}
1734
1735#[inline]
1742pub fn fiat_p256_scalar_set_one(out1: &mut fiat_p256_scalar_montgomery_domain_field_element) {
1743 out1[0] = 0xc46353d039cdaaf;
1744 out1[1] = 0x4319055258e8617b;
1745 out1[2] = (0x0 as u64);
1746 out1[3] = 0xffffffff;
1747}
1748
1749#[inline]
1758pub fn fiat_p256_scalar_msat(out1: &mut [u64; 5]) {
1759 out1[0] = 0xf3b9cac2fc632551;
1760 out1[1] = 0xbce6faada7179e84;
1761 out1[2] = 0xffffffffffffffff;
1762 out1[3] = 0xffffffff00000000;
1763 out1[4] = (0x0 as u64);
1764}
1765
1766#[inline]
1795pub fn fiat_p256_scalar_divstep(out1: &mut u64, out2: &mut [u64; 5], out3: &mut [u64; 5], out4: &mut [u64; 4], out5: &mut [u64; 4], arg1: u64, arg2: &[u64; 5], arg3: &[u64; 5], arg4: &[u64; 4], arg5: &[u64; 4]) {
1796 let mut x1: u64 = 0;
1797 let mut x2: fiat_p256_scalar_u1 = 0;
1798 fiat_p256_scalar_addcarryx_u64(&mut x1, &mut x2, 0x0, (!arg1), (0x1 as u64));
1799 let x3: fiat_p256_scalar_u1 = (((x1 >> 63) as fiat_p256_scalar_u1) & (((arg3[0]) & (0x1 as u64)) as fiat_p256_scalar_u1));
1800 let mut x4: u64 = 0;
1801 let mut x5: fiat_p256_scalar_u1 = 0;
1802 fiat_p256_scalar_addcarryx_u64(&mut x4, &mut x5, 0x0, (!arg1), (0x1 as u64));
1803 let mut x6: u64 = 0;
1804 fiat_p256_scalar_cmovznz_u64(&mut x6, x3, arg1, x4);
1805 let mut x7: u64 = 0;
1806 fiat_p256_scalar_cmovznz_u64(&mut x7, x3, (arg2[0]), (arg3[0]));
1807 let mut x8: u64 = 0;
1808 fiat_p256_scalar_cmovznz_u64(&mut x8, x3, (arg2[1]), (arg3[1]));
1809 let mut x9: u64 = 0;
1810 fiat_p256_scalar_cmovznz_u64(&mut x9, x3, (arg2[2]), (arg3[2]));
1811 let mut x10: u64 = 0;
1812 fiat_p256_scalar_cmovznz_u64(&mut x10, x3, (arg2[3]), (arg3[3]));
1813 let mut x11: u64 = 0;
1814 fiat_p256_scalar_cmovznz_u64(&mut x11, x3, (arg2[4]), (arg3[4]));
1815 let mut x12: u64 = 0;
1816 let mut x13: fiat_p256_scalar_u1 = 0;
1817 fiat_p256_scalar_addcarryx_u64(&mut x12, &mut x13, 0x0, (0x1 as u64), (!(arg2[0])));
1818 let mut x14: u64 = 0;
1819 let mut x15: fiat_p256_scalar_u1 = 0;
1820 fiat_p256_scalar_addcarryx_u64(&mut x14, &mut x15, x13, (0x0 as u64), (!(arg2[1])));
1821 let mut x16: u64 = 0;
1822 let mut x17: fiat_p256_scalar_u1 = 0;
1823 fiat_p256_scalar_addcarryx_u64(&mut x16, &mut x17, x15, (0x0 as u64), (!(arg2[2])));
1824 let mut x18: u64 = 0;
1825 let mut x19: fiat_p256_scalar_u1 = 0;
1826 fiat_p256_scalar_addcarryx_u64(&mut x18, &mut x19, x17, (0x0 as u64), (!(arg2[3])));
1827 let mut x20: u64 = 0;
1828 let mut x21: fiat_p256_scalar_u1 = 0;
1829 fiat_p256_scalar_addcarryx_u64(&mut x20, &mut x21, x19, (0x0 as u64), (!(arg2[4])));
1830 let mut x22: u64 = 0;
1831 fiat_p256_scalar_cmovznz_u64(&mut x22, x3, (arg3[0]), x12);
1832 let mut x23: u64 = 0;
1833 fiat_p256_scalar_cmovznz_u64(&mut x23, x3, (arg3[1]), x14);
1834 let mut x24: u64 = 0;
1835 fiat_p256_scalar_cmovznz_u64(&mut x24, x3, (arg3[2]), x16);
1836 let mut x25: u64 = 0;
1837 fiat_p256_scalar_cmovznz_u64(&mut x25, x3, (arg3[3]), x18);
1838 let mut x26: u64 = 0;
1839 fiat_p256_scalar_cmovznz_u64(&mut x26, x3, (arg3[4]), x20);
1840 let mut x27: u64 = 0;
1841 fiat_p256_scalar_cmovznz_u64(&mut x27, x3, (arg4[0]), (arg5[0]));
1842 let mut x28: u64 = 0;
1843 fiat_p256_scalar_cmovznz_u64(&mut x28, x3, (arg4[1]), (arg5[1]));
1844 let mut x29: u64 = 0;
1845 fiat_p256_scalar_cmovznz_u64(&mut x29, x3, (arg4[2]), (arg5[2]));
1846 let mut x30: u64 = 0;
1847 fiat_p256_scalar_cmovznz_u64(&mut x30, x3, (arg4[3]), (arg5[3]));
1848 let mut x31: u64 = 0;
1849 let mut x32: fiat_p256_scalar_u1 = 0;
1850 fiat_p256_scalar_addcarryx_u64(&mut x31, &mut x32, 0x0, x27, x27);
1851 let mut x33: u64 = 0;
1852 let mut x34: fiat_p256_scalar_u1 = 0;
1853 fiat_p256_scalar_addcarryx_u64(&mut x33, &mut x34, x32, x28, x28);
1854 let mut x35: u64 = 0;
1855 let mut x36: fiat_p256_scalar_u1 = 0;
1856 fiat_p256_scalar_addcarryx_u64(&mut x35, &mut x36, x34, x29, x29);
1857 let mut x37: u64 = 0;
1858 let mut x38: fiat_p256_scalar_u1 = 0;
1859 fiat_p256_scalar_addcarryx_u64(&mut x37, &mut x38, x36, x30, x30);
1860 let mut x39: u64 = 0;
1861 let mut x40: fiat_p256_scalar_u1 = 0;
1862 fiat_p256_scalar_subborrowx_u64(&mut x39, &mut x40, 0x0, x31, 0xf3b9cac2fc632551);
1863 let mut x41: u64 = 0;
1864 let mut x42: fiat_p256_scalar_u1 = 0;
1865 fiat_p256_scalar_subborrowx_u64(&mut x41, &mut x42, x40, x33, 0xbce6faada7179e84);
1866 let mut x43: u64 = 0;
1867 let mut x44: fiat_p256_scalar_u1 = 0;
1868 fiat_p256_scalar_subborrowx_u64(&mut x43, &mut x44, x42, x35, 0xffffffffffffffff);
1869 let mut x45: u64 = 0;
1870 let mut x46: fiat_p256_scalar_u1 = 0;
1871 fiat_p256_scalar_subborrowx_u64(&mut x45, &mut x46, x44, x37, 0xffffffff00000000);
1872 let mut x47: u64 = 0;
1873 let mut x48: fiat_p256_scalar_u1 = 0;
1874 fiat_p256_scalar_subborrowx_u64(&mut x47, &mut x48, x46, (x38 as u64), (0x0 as u64));
1875 let x49: u64 = (arg4[3]);
1876 let x50: u64 = (arg4[2]);
1877 let x51: u64 = (arg4[1]);
1878 let x52: u64 = (arg4[0]);
1879 let mut x53: u64 = 0;
1880 let mut x54: fiat_p256_scalar_u1 = 0;
1881 fiat_p256_scalar_subborrowx_u64(&mut x53, &mut x54, 0x0, (0x0 as u64), x52);
1882 let mut x55: u64 = 0;
1883 let mut x56: fiat_p256_scalar_u1 = 0;
1884 fiat_p256_scalar_subborrowx_u64(&mut x55, &mut x56, x54, (0x0 as u64), x51);
1885 let mut x57: u64 = 0;
1886 let mut x58: fiat_p256_scalar_u1 = 0;
1887 fiat_p256_scalar_subborrowx_u64(&mut x57, &mut x58, x56, (0x0 as u64), x50);
1888 let mut x59: u64 = 0;
1889 let mut x60: fiat_p256_scalar_u1 = 0;
1890 fiat_p256_scalar_subborrowx_u64(&mut x59, &mut x60, x58, (0x0 as u64), x49);
1891 let mut x61: u64 = 0;
1892 fiat_p256_scalar_cmovznz_u64(&mut x61, x60, (0x0 as u64), 0xffffffffffffffff);
1893 let mut x62: u64 = 0;
1894 let mut x63: fiat_p256_scalar_u1 = 0;
1895 fiat_p256_scalar_addcarryx_u64(&mut x62, &mut x63, 0x0, x53, (x61 & 0xf3b9cac2fc632551));
1896 let mut x64: u64 = 0;
1897 let mut x65: fiat_p256_scalar_u1 = 0;
1898 fiat_p256_scalar_addcarryx_u64(&mut x64, &mut x65, x63, x55, (x61 & 0xbce6faada7179e84));
1899 let mut x66: u64 = 0;
1900 let mut x67: fiat_p256_scalar_u1 = 0;
1901 fiat_p256_scalar_addcarryx_u64(&mut x66, &mut x67, x65, x57, x61);
1902 let mut x68: u64 = 0;
1903 let mut x69: fiat_p256_scalar_u1 = 0;
1904 fiat_p256_scalar_addcarryx_u64(&mut x68, &mut x69, x67, x59, (x61 & 0xffffffff00000000));
1905 let mut x70: u64 = 0;
1906 fiat_p256_scalar_cmovznz_u64(&mut x70, x3, (arg5[0]), x62);
1907 let mut x71: u64 = 0;
1908 fiat_p256_scalar_cmovznz_u64(&mut x71, x3, (arg5[1]), x64);
1909 let mut x72: u64 = 0;
1910 fiat_p256_scalar_cmovznz_u64(&mut x72, x3, (arg5[2]), x66);
1911 let mut x73: u64 = 0;
1912 fiat_p256_scalar_cmovznz_u64(&mut x73, x3, (arg5[3]), x68);
1913 let x74: fiat_p256_scalar_u1 = ((x22 & (0x1 as u64)) as fiat_p256_scalar_u1);
1914 let mut x75: u64 = 0;
1915 fiat_p256_scalar_cmovznz_u64(&mut x75, x74, (0x0 as u64), x7);
1916 let mut x76: u64 = 0;
1917 fiat_p256_scalar_cmovznz_u64(&mut x76, x74, (0x0 as u64), x8);
1918 let mut x77: u64 = 0;
1919 fiat_p256_scalar_cmovznz_u64(&mut x77, x74, (0x0 as u64), x9);
1920 let mut x78: u64 = 0;
1921 fiat_p256_scalar_cmovznz_u64(&mut x78, x74, (0x0 as u64), x10);
1922 let mut x79: u64 = 0;
1923 fiat_p256_scalar_cmovznz_u64(&mut x79, x74, (0x0 as u64), x11);
1924 let mut x80: u64 = 0;
1925 let mut x81: fiat_p256_scalar_u1 = 0;
1926 fiat_p256_scalar_addcarryx_u64(&mut x80, &mut x81, 0x0, x22, x75);
1927 let mut x82: u64 = 0;
1928 let mut x83: fiat_p256_scalar_u1 = 0;
1929 fiat_p256_scalar_addcarryx_u64(&mut x82, &mut x83, x81, x23, x76);
1930 let mut x84: u64 = 0;
1931 let mut x85: fiat_p256_scalar_u1 = 0;
1932 fiat_p256_scalar_addcarryx_u64(&mut x84, &mut x85, x83, x24, x77);
1933 let mut x86: u64 = 0;
1934 let mut x87: fiat_p256_scalar_u1 = 0;
1935 fiat_p256_scalar_addcarryx_u64(&mut x86, &mut x87, x85, x25, x78);
1936 let mut x88: u64 = 0;
1937 let mut x89: fiat_p256_scalar_u1 = 0;
1938 fiat_p256_scalar_addcarryx_u64(&mut x88, &mut x89, x87, x26, x79);
1939 let mut x90: u64 = 0;
1940 fiat_p256_scalar_cmovznz_u64(&mut x90, x74, (0x0 as u64), x27);
1941 let mut x91: u64 = 0;
1942 fiat_p256_scalar_cmovznz_u64(&mut x91, x74, (0x0 as u64), x28);
1943 let mut x92: u64 = 0;
1944 fiat_p256_scalar_cmovznz_u64(&mut x92, x74, (0x0 as u64), x29);
1945 let mut x93: u64 = 0;
1946 fiat_p256_scalar_cmovznz_u64(&mut x93, x74, (0x0 as u64), x30);
1947 let mut x94: u64 = 0;
1948 let mut x95: fiat_p256_scalar_u1 = 0;
1949 fiat_p256_scalar_addcarryx_u64(&mut x94, &mut x95, 0x0, x70, x90);
1950 let mut x96: u64 = 0;
1951 let mut x97: fiat_p256_scalar_u1 = 0;
1952 fiat_p256_scalar_addcarryx_u64(&mut x96, &mut x97, x95, x71, x91);
1953 let mut x98: u64 = 0;
1954 let mut x99: fiat_p256_scalar_u1 = 0;
1955 fiat_p256_scalar_addcarryx_u64(&mut x98, &mut x99, x97, x72, x92);
1956 let mut x100: u64 = 0;
1957 let mut x101: fiat_p256_scalar_u1 = 0;
1958 fiat_p256_scalar_addcarryx_u64(&mut x100, &mut x101, x99, x73, x93);
1959 let mut x102: u64 = 0;
1960 let mut x103: fiat_p256_scalar_u1 = 0;
1961 fiat_p256_scalar_subborrowx_u64(&mut x102, &mut x103, 0x0, x94, 0xf3b9cac2fc632551);
1962 let mut x104: u64 = 0;
1963 let mut x105: fiat_p256_scalar_u1 = 0;
1964 fiat_p256_scalar_subborrowx_u64(&mut x104, &mut x105, x103, x96, 0xbce6faada7179e84);
1965 let mut x106: u64 = 0;
1966 let mut x107: fiat_p256_scalar_u1 = 0;
1967 fiat_p256_scalar_subborrowx_u64(&mut x106, &mut x107, x105, x98, 0xffffffffffffffff);
1968 let mut x108: u64 = 0;
1969 let mut x109: fiat_p256_scalar_u1 = 0;
1970 fiat_p256_scalar_subborrowx_u64(&mut x108, &mut x109, x107, x100, 0xffffffff00000000);
1971 let mut x110: u64 = 0;
1972 let mut x111: fiat_p256_scalar_u1 = 0;
1973 fiat_p256_scalar_subborrowx_u64(&mut x110, &mut x111, x109, (x101 as u64), (0x0 as u64));
1974 let mut x112: u64 = 0;
1975 let mut x113: fiat_p256_scalar_u1 = 0;
1976 fiat_p256_scalar_addcarryx_u64(&mut x112, &mut x113, 0x0, x6, (0x1 as u64));
1977 let x114: u64 = ((x80 >> 1) | ((x82 << 63) & 0xffffffffffffffff));
1978 let x115: u64 = ((x82 >> 1) | ((x84 << 63) & 0xffffffffffffffff));
1979 let x116: u64 = ((x84 >> 1) | ((x86 << 63) & 0xffffffffffffffff));
1980 let x117: u64 = ((x86 >> 1) | ((x88 << 63) & 0xffffffffffffffff));
1981 let x118: u64 = ((x88 & 0x8000000000000000) | (x88 >> 1));
1982 let mut x119: u64 = 0;
1983 fiat_p256_scalar_cmovznz_u64(&mut x119, x48, x39, x31);
1984 let mut x120: u64 = 0;
1985 fiat_p256_scalar_cmovznz_u64(&mut x120, x48, x41, x33);
1986 let mut x121: u64 = 0;
1987 fiat_p256_scalar_cmovznz_u64(&mut x121, x48, x43, x35);
1988 let mut x122: u64 = 0;
1989 fiat_p256_scalar_cmovznz_u64(&mut x122, x48, x45, x37);
1990 let mut x123: u64 = 0;
1991 fiat_p256_scalar_cmovznz_u64(&mut x123, x111, x102, x94);
1992 let mut x124: u64 = 0;
1993 fiat_p256_scalar_cmovznz_u64(&mut x124, x111, x104, x96);
1994 let mut x125: u64 = 0;
1995 fiat_p256_scalar_cmovznz_u64(&mut x125, x111, x106, x98);
1996 let mut x126: u64 = 0;
1997 fiat_p256_scalar_cmovznz_u64(&mut x126, x111, x108, x100);
1998 *out1 = x112;
1999 out2[0] = x7;
2000 out2[1] = x8;
2001 out2[2] = x9;
2002 out2[3] = x10;
2003 out2[4] = x11;
2004 out3[0] = x114;
2005 out3[1] = x115;
2006 out3[2] = x116;
2007 out3[3] = x117;
2008 out3[4] = x118;
2009 out4[0] = x119;
2010 out4[1] = x120;
2011 out4[2] = x121;
2012 out4[3] = x122;
2013 out5[0] = x123;
2014 out5[1] = x124;
2015 out5[2] = x125;
2016 out5[3] = x126;
2017}
2018
2019#[inline]
2028pub fn fiat_p256_scalar_divstep_precomp(out1: &mut [u64; 4]) {
2029 out1[0] = 0xd739262fb7fcfbb5;
2030 out1[1] = 0x8ac6f75d20074414;
2031 out1[2] = 0xc67428bfb5e3c256;
2032 out1[3] = 0x444962f2eda7aedf;
2033}