1#![allow(unused_parens)]
16#![allow(non_camel_case_types)]
17
18pub type fiat_p521_u1 = u8;
20pub type fiat_p521_i1 = i8;
22pub type fiat_p521_u2 = u8;
24pub type fiat_p521_i2 = i8;
26
27#[derive(Clone, Copy)]
30pub struct fiat_p521_loose_field_element(pub [u32; 19]);
31
32impl core::ops::Index<usize> for fiat_p521_loose_field_element {
33 type Output = u32;
34 #[inline]
35 fn index(&self, index: usize) -> &Self::Output {
36 &self.0[index]
37 }
38}
39
40impl core::ops::IndexMut<usize> for fiat_p521_loose_field_element {
41 #[inline]
42 fn index_mut(&mut self, index: usize) -> &mut Self::Output {
43 &mut self.0[index]
44 }
45}
46
47#[derive(Clone, Copy)]
50pub struct fiat_p521_tight_field_element(pub [u32; 19]);
51
52impl core::ops::Index<usize> for fiat_p521_tight_field_element {
53 type Output = u32;
54 #[inline]
55 fn index(&self, index: usize) -> &Self::Output {
56 &self.0[index]
57 }
58}
59
60impl core::ops::IndexMut<usize> for fiat_p521_tight_field_element {
61 #[inline]
62 fn index_mut(&mut self, index: usize) -> &mut Self::Output {
63 &mut self.0[index]
64 }
65}
66
67
68#[inline]
82pub fn fiat_p521_addcarryx_u28(out1: &mut u32, out2: &mut fiat_p521_u1, arg1: fiat_p521_u1, arg2: u32, arg3: u32) {
83 let x1: u32 = (((arg1 as u32) + arg2) + arg3);
84 let x2: u32 = (x1 & 0xfffffff);
85 let x3: fiat_p521_u1 = ((x1 >> 28) as fiat_p521_u1);
86 *out1 = x2;
87 *out2 = x3;
88}
89
90#[inline]
104pub fn fiat_p521_subborrowx_u28(out1: &mut u32, out2: &mut fiat_p521_u1, arg1: fiat_p521_u1, arg2: u32, arg3: u32) {
105 let x1: i32 = ((((((arg2 as i64) - (arg1 as i64)) as i32) as i64) - (arg3 as i64)) as i32);
106 let x2: fiat_p521_i1 = ((x1 >> 28) as fiat_p521_i1);
107 let x3: u32 = (((x1 as i64) & (0xfffffff as i64)) as u32);
108 *out1 = x3;
109 *out2 = (((0x0 as fiat_p521_i2) - (x2 as fiat_p521_i2)) as fiat_p521_u1);
110}
111
112#[inline]
126pub fn fiat_p521_addcarryx_u27(out1: &mut u32, out2: &mut fiat_p521_u1, arg1: fiat_p521_u1, arg2: u32, arg3: u32) {
127 let x1: u32 = (((arg1 as u32) + arg2) + arg3);
128 let x2: u32 = (x1 & 0x7ffffff);
129 let x3: fiat_p521_u1 = ((x1 >> 27) as fiat_p521_u1);
130 *out1 = x2;
131 *out2 = x3;
132}
133
134#[inline]
148pub fn fiat_p521_subborrowx_u27(out1: &mut u32, out2: &mut fiat_p521_u1, arg1: fiat_p521_u1, arg2: u32, arg3: u32) {
149 let x1: i32 = ((((((arg2 as i64) - (arg1 as i64)) as i32) as i64) - (arg3 as i64)) as i32);
150 let x2: fiat_p521_i1 = ((x1 >> 27) as fiat_p521_i1);
151 let x3: u32 = (((x1 as i64) & (0x7ffffff as i64)) as u32);
152 *out1 = x3;
153 *out2 = (((0x0 as fiat_p521_i2) - (x2 as fiat_p521_i2)) as fiat_p521_u1);
154}
155
156#[inline]
168pub fn fiat_p521_cmovznz_u32(out1: &mut u32, arg1: fiat_p521_u1, arg2: u32, arg3: u32) {
169 let x1: fiat_p521_u1 = (!(!arg1));
170 let x2: u32 = ((((((0x0 as fiat_p521_i2) - (x1 as fiat_p521_i2)) as fiat_p521_i1) as i64) & (0xffffffff as i64)) as u32);
171 let x3: u32 = ((x2 & arg3) | ((!x2) & arg2));
172 *out1 = x3;
173}
174
175#[inline]
181pub fn fiat_p521_carry_mul(out1: &mut fiat_p521_tight_field_element, arg1: &fiat_p521_loose_field_element, arg2: &fiat_p521_loose_field_element) {
182 let x1: u64 = (((arg1[18]) as u64) * ((arg2[18]) as u64));
183 let x2: u64 = (((arg1[18]) as u64) * (((arg2[17]) * 0x2) as u64));
184 let x3: u64 = (((arg1[18]) as u64) * ((arg2[16]) as u64));
185 let x4: u64 = (((arg1[18]) as u64) * (((arg2[15]) * 0x2) as u64));
186 let x5: u64 = (((arg1[18]) as u64) * ((arg2[14]) as u64));
187 let x6: u64 = (((arg1[18]) as u64) * ((arg2[13]) as u64));
188 let x7: u64 = (((arg1[18]) as u64) * (((arg2[12]) * 0x2) as u64));
189 let x8: u64 = (((arg1[18]) as u64) * ((arg2[11]) as u64));
190 let x9: u64 = (((arg1[18]) as u64) * (((arg2[10]) * 0x2) as u64));
191 let x10: u64 = (((arg1[18]) as u64) * ((arg2[9]) as u64));
192 let x11: u64 = (((arg1[18]) as u64) * (((arg2[8]) * 0x2) as u64));
193 let x12: u64 = (((arg1[18]) as u64) * ((arg2[7]) as u64));
194 let x13: u64 = (((arg1[18]) as u64) * ((arg2[6]) as u64));
195 let x14: u64 = (((arg1[18]) as u64) * (((arg2[5]) * 0x2) as u64));
196 let x15: u64 = (((arg1[18]) as u64) * ((arg2[4]) as u64));
197 let x16: u64 = (((arg1[18]) as u64) * (((arg2[3]) * 0x2) as u64));
198 let x17: u64 = (((arg1[18]) as u64) * ((arg2[2]) as u64));
199 let x18: u64 = (((arg1[18]) as u64) * (((arg2[1]) * 0x2) as u64));
200 let x19: u64 = (((arg1[17]) as u64) * (((arg2[18]) * 0x2) as u64));
201 let x20: u64 = (((arg1[17]) as u64) * (((arg2[17]) * 0x2) as u64));
202 let x21: u64 = (((arg1[17]) as u64) * (((arg2[16]) * 0x2) as u64));
203 let x22: u64 = (((arg1[17]) as u64) * (((arg2[15]) * 0x2) as u64));
204 let x23: u64 = (((arg1[17]) as u64) * ((arg2[14]) as u64));
205 let x24: u64 = (((arg1[17]) as u64) * (((arg2[13]) * 0x2) as u64));
206 let x25: u64 = (((arg1[17]) as u64) * (((arg2[12]) * 0x2) as u64));
207 let x26: u64 = (((arg1[17]) as u64) * (((arg2[11]) * 0x2) as u64));
208 let x27: u64 = (((arg1[17]) as u64) * (((arg2[10]) * 0x2) as u64));
209 let x28: u64 = (((arg1[17]) as u64) * (((arg2[9]) * 0x2) as u64));
210 let x29: u64 = (((arg1[17]) as u64) * (((arg2[8]) * 0x2) as u64));
211 let x30: u64 = (((arg1[17]) as u64) * ((arg2[7]) as u64));
212 let x31: u64 = (((arg1[17]) as u64) * (((arg2[6]) * 0x2) as u64));
213 let x32: u64 = (((arg1[17]) as u64) * (((arg2[5]) * 0x2) as u64));
214 let x33: u64 = (((arg1[17]) as u64) * (((arg2[4]) * 0x2) as u64));
215 let x34: u64 = (((arg1[17]) as u64) * (((arg2[3]) * 0x2) as u64));
216 let x35: u64 = (((arg1[17]) as u64) * (((arg2[2]) * 0x2) as u64));
217 let x36: u64 = (((arg1[16]) as u64) * ((arg2[18]) as u64));
218 let x37: u64 = (((arg1[16]) as u64) * (((arg2[17]) * 0x2) as u64));
219 let x38: u64 = (((arg1[16]) as u64) * ((arg2[16]) as u64));
220 let x39: u64 = (((arg1[16]) as u64) * ((arg2[15]) as u64));
221 let x40: u64 = (((arg1[16]) as u64) * ((arg2[14]) as u64));
222 let x41: u64 = (((arg1[16]) as u64) * ((arg2[13]) as u64));
223 let x42: u64 = (((arg1[16]) as u64) * (((arg2[12]) * 0x2) as u64));
224 let x43: u64 = (((arg1[16]) as u64) * ((arg2[11]) as u64));
225 let x44: u64 = (((arg1[16]) as u64) * (((arg2[10]) * 0x2) as u64));
226 let x45: u64 = (((arg1[16]) as u64) * ((arg2[9]) as u64));
227 let x46: u64 = (((arg1[16]) as u64) * ((arg2[8]) as u64));
228 let x47: u64 = (((arg1[16]) as u64) * ((arg2[7]) as u64));
229 let x48: u64 = (((arg1[16]) as u64) * ((arg2[6]) as u64));
230 let x49: u64 = (((arg1[16]) as u64) * (((arg2[5]) * 0x2) as u64));
231 let x50: u64 = (((arg1[16]) as u64) * ((arg2[4]) as u64));
232 let x51: u64 = (((arg1[16]) as u64) * (((arg2[3]) * 0x2) as u64));
233 let x52: u64 = (((arg1[15]) as u64) * (((arg2[18]) * 0x2) as u64));
234 let x53: u64 = (((arg1[15]) as u64) * (((arg2[17]) * 0x2) as u64));
235 let x54: u64 = (((arg1[15]) as u64) * ((arg2[16]) as u64));
236 let x55: u64 = (((arg1[15]) as u64) * (((arg2[15]) * 0x2) as u64));
237 let x56: u64 = (((arg1[15]) as u64) * ((arg2[14]) as u64));
238 let x57: u64 = (((arg1[15]) as u64) * (((arg2[13]) * 0x2) as u64));
239 let x58: u64 = (((arg1[15]) as u64) * (((arg2[12]) * 0x2) as u64));
240 let x59: u64 = (((arg1[15]) as u64) * (((arg2[11]) * 0x2) as u64));
241 let x60: u64 = (((arg1[15]) as u64) * (((arg2[10]) * 0x2) as u64));
242 let x61: u64 = (((arg1[15]) as u64) * ((arg2[9]) as u64));
243 let x62: u64 = (((arg1[15]) as u64) * (((arg2[8]) * 0x2) as u64));
244 let x63: u64 = (((arg1[15]) as u64) * ((arg2[7]) as u64));
245 let x64: u64 = (((arg1[15]) as u64) * (((arg2[6]) * 0x2) as u64));
246 let x65: u64 = (((arg1[15]) as u64) * (((arg2[5]) * 0x2) as u64));
247 let x66: u64 = (((arg1[15]) as u64) * (((arg2[4]) * 0x2) as u64));
248 let x67: u64 = (((arg1[14]) as u64) * ((arg2[18]) as u64));
249 let x68: u64 = (((arg1[14]) as u64) * ((arg2[17]) as u64));
250 let x69: u64 = (((arg1[14]) as u64) * ((arg2[16]) as u64));
251 let x70: u64 = (((arg1[14]) as u64) * ((arg2[15]) as u64));
252 let x71: u64 = (((arg1[14]) as u64) * ((arg2[14]) as u64));
253 let x72: u64 = (((arg1[14]) as u64) * ((arg2[13]) as u64));
254 let x73: u64 = (((arg1[14]) as u64) * (((arg2[12]) * 0x2) as u64));
255 let x74: u64 = (((arg1[14]) as u64) * ((arg2[11]) as u64));
256 let x75: u64 = (((arg1[14]) as u64) * ((arg2[10]) as u64));
257 let x76: u64 = (((arg1[14]) as u64) * ((arg2[9]) as u64));
258 let x77: u64 = (((arg1[14]) as u64) * ((arg2[8]) as u64));
259 let x78: u64 = (((arg1[14]) as u64) * ((arg2[7]) as u64));
260 let x79: u64 = (((arg1[14]) as u64) * ((arg2[6]) as u64));
261 let x80: u64 = (((arg1[14]) as u64) * (((arg2[5]) * 0x2) as u64));
262 let x81: u64 = (((arg1[13]) as u64) * ((arg2[18]) as u64));
263 let x82: u64 = (((arg1[13]) as u64) * (((arg2[17]) * 0x2) as u64));
264 let x83: u64 = (((arg1[13]) as u64) * ((arg2[16]) as u64));
265 let x84: u64 = (((arg1[13]) as u64) * (((arg2[15]) * 0x2) as u64));
266 let x85: u64 = (((arg1[13]) as u64) * ((arg2[14]) as u64));
267 let x86: u64 = (((arg1[13]) as u64) * (((arg2[13]) * 0x2) as u64));
268 let x87: u64 = (((arg1[13]) as u64) * (((arg2[12]) * 0x2) as u64));
269 let x88: u64 = (((arg1[13]) as u64) * ((arg2[11]) as u64));
270 let x89: u64 = (((arg1[13]) as u64) * (((arg2[10]) * 0x2) as u64));
271 let x90: u64 = (((arg1[13]) as u64) * ((arg2[9]) as u64));
272 let x91: u64 = (((arg1[13]) as u64) * (((arg2[8]) * 0x2) as u64));
273 let x92: u64 = (((arg1[13]) as u64) * ((arg2[7]) as u64));
274 let x93: u64 = (((arg1[13]) as u64) * (((arg2[6]) * 0x2) as u64));
275 let x94: u64 = (((arg1[12]) as u64) * (((arg2[18]) * 0x2) as u64));
276 let x95: u64 = (((arg1[12]) as u64) * (((arg2[17]) * 0x2) as u64));
277 let x96: u64 = (((arg1[12]) as u64) * (((arg2[16]) * 0x2) as u64));
278 let x97: u64 = (((arg1[12]) as u64) * (((arg2[15]) * 0x2) as u64));
279 let x98: u64 = (((arg1[12]) as u64) * (((arg2[14]) * 0x2) as u64));
280 let x99: u64 = (((arg1[12]) as u64) * (((arg2[13]) * 0x2) as u64));
281 let x100: u64 = (((arg1[12]) as u64) * (((arg2[12]) * 0x2) as u64));
282 let x101: u64 = (((arg1[12]) as u64) * (((arg2[11]) * 0x2) as u64));
283 let x102: u64 = (((arg1[12]) as u64) * (((arg2[10]) * 0x2) as u64));
284 let x103: u64 = (((arg1[12]) as u64) * (((arg2[9]) * 0x2) as u64));
285 let x104: u64 = (((arg1[12]) as u64) * (((arg2[8]) * 0x2) as u64));
286 let x105: u64 = (((arg1[12]) as u64) * (((arg2[7]) * 0x2) as u64));
287 let x106: u64 = (((arg1[11]) as u64) * ((arg2[18]) as u64));
288 let x107: u64 = (((arg1[11]) as u64) * (((arg2[17]) * 0x2) as u64));
289 let x108: u64 = (((arg1[11]) as u64) * ((arg2[16]) as u64));
290 let x109: u64 = (((arg1[11]) as u64) * (((arg2[15]) * 0x2) as u64));
291 let x110: u64 = (((arg1[11]) as u64) * ((arg2[14]) as u64));
292 let x111: u64 = (((arg1[11]) as u64) * ((arg2[13]) as u64));
293 let x112: u64 = (((arg1[11]) as u64) * (((arg2[12]) * 0x2) as u64));
294 let x113: u64 = (((arg1[11]) as u64) * ((arg2[11]) as u64));
295 let x114: u64 = (((arg1[11]) as u64) * (((arg2[10]) * 0x2) as u64));
296 let x115: u64 = (((arg1[11]) as u64) * ((arg2[9]) as u64));
297 let x116: u64 = (((arg1[11]) as u64) * (((arg2[8]) * 0x2) as u64));
298 let x117: u64 = (((arg1[10]) as u64) * (((arg2[18]) * 0x2) as u64));
299 let x118: u64 = (((arg1[10]) as u64) * (((arg2[17]) * 0x2) as u64));
300 let x119: u64 = (((arg1[10]) as u64) * (((arg2[16]) * 0x2) as u64));
301 let x120: u64 = (((arg1[10]) as u64) * (((arg2[15]) * 0x2) as u64));
302 let x121: u64 = (((arg1[10]) as u64) * ((arg2[14]) as u64));
303 let x122: u64 = (((arg1[10]) as u64) * (((arg2[13]) * 0x2) as u64));
304 let x123: u64 = (((arg1[10]) as u64) * (((arg2[12]) * 0x2) as u64));
305 let x124: u64 = (((arg1[10]) as u64) * (((arg2[11]) * 0x2) as u64));
306 let x125: u64 = (((arg1[10]) as u64) * (((arg2[10]) * 0x2) as u64));
307 let x126: u64 = (((arg1[10]) as u64) * (((arg2[9]) * 0x2) as u64));
308 let x127: u64 = (((arg1[9]) as u64) * ((arg2[18]) as u64));
309 let x128: u64 = (((arg1[9]) as u64) * (((arg2[17]) * 0x2) as u64));
310 let x129: u64 = (((arg1[9]) as u64) * ((arg2[16]) as u64));
311 let x130: u64 = (((arg1[9]) as u64) * ((arg2[15]) as u64));
312 let x131: u64 = (((arg1[9]) as u64) * ((arg2[14]) as u64));
313 let x132: u64 = (((arg1[9]) as u64) * ((arg2[13]) as u64));
314 let x133: u64 = (((arg1[9]) as u64) * (((arg2[12]) * 0x2) as u64));
315 let x134: u64 = (((arg1[9]) as u64) * ((arg2[11]) as u64));
316 let x135: u64 = (((arg1[9]) as u64) * (((arg2[10]) * 0x2) as u64));
317 let x136: u64 = (((arg1[8]) as u64) * (((arg2[18]) * 0x2) as u64));
318 let x137: u64 = (((arg1[8]) as u64) * (((arg2[17]) * 0x2) as u64));
319 let x138: u64 = (((arg1[8]) as u64) * ((arg2[16]) as u64));
320 let x139: u64 = (((arg1[8]) as u64) * (((arg2[15]) * 0x2) as u64));
321 let x140: u64 = (((arg1[8]) as u64) * ((arg2[14]) as u64));
322 let x141: u64 = (((arg1[8]) as u64) * (((arg2[13]) * 0x2) as u64));
323 let x142: u64 = (((arg1[8]) as u64) * (((arg2[12]) * 0x2) as u64));
324 let x143: u64 = (((arg1[8]) as u64) * (((arg2[11]) * 0x2) as u64));
325 let x144: u64 = (((arg1[7]) as u64) * ((arg2[18]) as u64));
326 let x145: u64 = (((arg1[7]) as u64) * ((arg2[17]) as u64));
327 let x146: u64 = (((arg1[7]) as u64) * ((arg2[16]) as u64));
328 let x147: u64 = (((arg1[7]) as u64) * ((arg2[15]) as u64));
329 let x148: u64 = (((arg1[7]) as u64) * ((arg2[14]) as u64));
330 let x149: u64 = (((arg1[7]) as u64) * ((arg2[13]) as u64));
331 let x150: u64 = (((arg1[7]) as u64) * (((arg2[12]) * 0x2) as u64));
332 let x151: u64 = (((arg1[6]) as u64) * ((arg2[18]) as u64));
333 let x152: u64 = (((arg1[6]) as u64) * (((arg2[17]) * 0x2) as u64));
334 let x153: u64 = (((arg1[6]) as u64) * ((arg2[16]) as u64));
335 let x154: u64 = (((arg1[6]) as u64) * (((arg2[15]) * 0x2) as u64));
336 let x155: u64 = (((arg1[6]) as u64) * ((arg2[14]) as u64));
337 let x156: u64 = (((arg1[6]) as u64) * (((arg2[13]) * 0x2) as u64));
338 let x157: u64 = (((arg1[5]) as u64) * (((arg2[18]) * 0x2) as u64));
339 let x158: u64 = (((arg1[5]) as u64) * (((arg2[17]) * 0x2) as u64));
340 let x159: u64 = (((arg1[5]) as u64) * (((arg2[16]) * 0x2) as u64));
341 let x160: u64 = (((arg1[5]) as u64) * (((arg2[15]) * 0x2) as u64));
342 let x161: u64 = (((arg1[5]) as u64) * (((arg2[14]) * 0x2) as u64));
343 let x162: u64 = (((arg1[4]) as u64) * ((arg2[18]) as u64));
344 let x163: u64 = (((arg1[4]) as u64) * (((arg2[17]) * 0x2) as u64));
345 let x164: u64 = (((arg1[4]) as u64) * ((arg2[16]) as u64));
346 let x165: u64 = (((arg1[4]) as u64) * (((arg2[15]) * 0x2) as u64));
347 let x166: u64 = (((arg1[3]) as u64) * (((arg2[18]) * 0x2) as u64));
348 let x167: u64 = (((arg1[3]) as u64) * (((arg2[17]) * 0x2) as u64));
349 let x168: u64 = (((arg1[3]) as u64) * (((arg2[16]) * 0x2) as u64));
350 let x169: u64 = (((arg1[2]) as u64) * ((arg2[18]) as u64));
351 let x170: u64 = (((arg1[2]) as u64) * (((arg2[17]) * 0x2) as u64));
352 let x171: u64 = (((arg1[1]) as u64) * (((arg2[18]) * 0x2) as u64));
353 let x172: u64 = (((arg1[18]) as u64) * ((arg2[0]) as u64));
354 let x173: u64 = (((arg1[17]) as u64) * (((arg2[1]) * 0x2) as u64));
355 let x174: u64 = (((arg1[17]) as u64) * ((arg2[0]) as u64));
356 let x175: u64 = (((arg1[16]) as u64) * ((arg2[2]) as u64));
357 let x176: u64 = (((arg1[16]) as u64) * ((arg2[1]) as u64));
358 let x177: u64 = (((arg1[16]) as u64) * ((arg2[0]) as u64));
359 let x178: u64 = (((arg1[15]) as u64) * (((arg2[3]) * 0x2) as u64));
360 let x179: u64 = (((arg1[15]) as u64) * ((arg2[2]) as u64));
361 let x180: u64 = (((arg1[15]) as u64) * (((arg2[1]) * 0x2) as u64));
362 let x181: u64 = (((arg1[15]) as u64) * ((arg2[0]) as u64));
363 let x182: u64 = (((arg1[14]) as u64) * ((arg2[4]) as u64));
364 let x183: u64 = (((arg1[14]) as u64) * ((arg2[3]) as u64));
365 let x184: u64 = (((arg1[14]) as u64) * ((arg2[2]) as u64));
366 let x185: u64 = (((arg1[14]) as u64) * ((arg2[1]) as u64));
367 let x186: u64 = (((arg1[14]) as u64) * ((arg2[0]) as u64));
368 let x187: u64 = (((arg1[13]) as u64) * (((arg2[5]) * 0x2) as u64));
369 let x188: u64 = (((arg1[13]) as u64) * ((arg2[4]) as u64));
370 let x189: u64 = (((arg1[13]) as u64) * (((arg2[3]) * 0x2) as u64));
371 let x190: u64 = (((arg1[13]) as u64) * ((arg2[2]) as u64));
372 let x191: u64 = (((arg1[13]) as u64) * (((arg2[1]) * 0x2) as u64));
373 let x192: u64 = (((arg1[13]) as u64) * ((arg2[0]) as u64));
374 let x193: u64 = (((arg1[12]) as u64) * (((arg2[6]) * 0x2) as u64));
375 let x194: u64 = (((arg1[12]) as u64) * (((arg2[5]) * 0x2) as u64));
376 let x195: u64 = (((arg1[12]) as u64) * (((arg2[4]) * 0x2) as u64));
377 let x196: u64 = (((arg1[12]) as u64) * (((arg2[3]) * 0x2) as u64));
378 let x197: u64 = (((arg1[12]) as u64) * (((arg2[2]) * 0x2) as u64));
379 let x198: u64 = (((arg1[12]) as u64) * (((arg2[1]) * 0x2) as u64));
380 let x199: u64 = (((arg1[12]) as u64) * ((arg2[0]) as u64));
381 let x200: u64 = (((arg1[11]) as u64) * ((arg2[7]) as u64));
382 let x201: u64 = (((arg1[11]) as u64) * ((arg2[6]) as u64));
383 let x202: u64 = (((arg1[11]) as u64) * (((arg2[5]) * 0x2) as u64));
384 let x203: u64 = (((arg1[11]) as u64) * ((arg2[4]) as u64));
385 let x204: u64 = (((arg1[11]) as u64) * (((arg2[3]) * 0x2) as u64));
386 let x205: u64 = (((arg1[11]) as u64) * ((arg2[2]) as u64));
387 let x206: u64 = (((arg1[11]) as u64) * ((arg2[1]) as u64));
388 let x207: u64 = (((arg1[11]) as u64) * ((arg2[0]) as u64));
389 let x208: u64 = (((arg1[10]) as u64) * (((arg2[8]) * 0x2) as u64));
390 let x209: u64 = (((arg1[10]) as u64) * ((arg2[7]) as u64));
391 let x210: u64 = (((arg1[10]) as u64) * (((arg2[6]) * 0x2) as u64));
392 let x211: u64 = (((arg1[10]) as u64) * (((arg2[5]) * 0x2) as u64));
393 let x212: u64 = (((arg1[10]) as u64) * (((arg2[4]) * 0x2) as u64));
394 let x213: u64 = (((arg1[10]) as u64) * (((arg2[3]) * 0x2) as u64));
395 let x214: u64 = (((arg1[10]) as u64) * ((arg2[2]) as u64));
396 let x215: u64 = (((arg1[10]) as u64) * (((arg2[1]) * 0x2) as u64));
397 let x216: u64 = (((arg1[10]) as u64) * ((arg2[0]) as u64));
398 let x217: u64 = (((arg1[9]) as u64) * ((arg2[9]) as u64));
399 let x218: u64 = (((arg1[9]) as u64) * ((arg2[8]) as u64));
400 let x219: u64 = (((arg1[9]) as u64) * ((arg2[7]) as u64));
401 let x220: u64 = (((arg1[9]) as u64) * ((arg2[6]) as u64));
402 let x221: u64 = (((arg1[9]) as u64) * (((arg2[5]) * 0x2) as u64));
403 let x222: u64 = (((arg1[9]) as u64) * ((arg2[4]) as u64));
404 let x223: u64 = (((arg1[9]) as u64) * ((arg2[3]) as u64));
405 let x224: u64 = (((arg1[9]) as u64) * ((arg2[2]) as u64));
406 let x225: u64 = (((arg1[9]) as u64) * ((arg2[1]) as u64));
407 let x226: u64 = (((arg1[9]) as u64) * ((arg2[0]) as u64));
408 let x227: u64 = (((arg1[8]) as u64) * (((arg2[10]) * 0x2) as u64));
409 let x228: u64 = (((arg1[8]) as u64) * ((arg2[9]) as u64));
410 let x229: u64 = (((arg1[8]) as u64) * (((arg2[8]) * 0x2) as u64));
411 let x230: u64 = (((arg1[8]) as u64) * ((arg2[7]) as u64));
412 let x231: u64 = (((arg1[8]) as u64) * (((arg2[6]) * 0x2) as u64));
413 let x232: u64 = (((arg1[8]) as u64) * (((arg2[5]) * 0x2) as u64));
414 let x233: u64 = (((arg1[8]) as u64) * ((arg2[4]) as u64));
415 let x234: u64 = (((arg1[8]) as u64) * (((arg2[3]) * 0x2) as u64));
416 let x235: u64 = (((arg1[8]) as u64) * ((arg2[2]) as u64));
417 let x236: u64 = (((arg1[8]) as u64) * (((arg2[1]) * 0x2) as u64));
418 let x237: u64 = (((arg1[8]) as u64) * ((arg2[0]) as u64));
419 let x238: u64 = (((arg1[7]) as u64) * ((arg2[11]) as u64));
420 let x239: u64 = (((arg1[7]) as u64) * ((arg2[10]) as u64));
421 let x240: u64 = (((arg1[7]) as u64) * ((arg2[9]) as u64));
422 let x241: u64 = (((arg1[7]) as u64) * ((arg2[8]) as u64));
423 let x242: u64 = (((arg1[7]) as u64) * ((arg2[7]) as u64));
424 let x243: u64 = (((arg1[7]) as u64) * ((arg2[6]) as u64));
425 let x244: u64 = (((arg1[7]) as u64) * ((arg2[5]) as u64));
426 let x245: u64 = (((arg1[7]) as u64) * ((arg2[4]) as u64));
427 let x246: u64 = (((arg1[7]) as u64) * ((arg2[3]) as u64));
428 let x247: u64 = (((arg1[7]) as u64) * ((arg2[2]) as u64));
429 let x248: u64 = (((arg1[7]) as u64) * ((arg2[1]) as u64));
430 let x249: u64 = (((arg1[7]) as u64) * ((arg2[0]) as u64));
431 let x250: u64 = (((arg1[6]) as u64) * (((arg2[12]) * 0x2) as u64));
432 let x251: u64 = (((arg1[6]) as u64) * ((arg2[11]) as u64));
433 let x252: u64 = (((arg1[6]) as u64) * (((arg2[10]) * 0x2) as u64));
434 let x253: u64 = (((arg1[6]) as u64) * ((arg2[9]) as u64));
435 let x254: u64 = (((arg1[6]) as u64) * (((arg2[8]) * 0x2) as u64));
436 let x255: u64 = (((arg1[6]) as u64) * ((arg2[7]) as u64));
437 let x256: u64 = (((arg1[6]) as u64) * ((arg2[6]) as u64));
438 let x257: u64 = (((arg1[6]) as u64) * (((arg2[5]) * 0x2) as u64));
439 let x258: u64 = (((arg1[6]) as u64) * ((arg2[4]) as u64));
440 let x259: u64 = (((arg1[6]) as u64) * (((arg2[3]) * 0x2) as u64));
441 let x260: u64 = (((arg1[6]) as u64) * ((arg2[2]) as u64));
442 let x261: u64 = (((arg1[6]) as u64) * (((arg2[1]) * 0x2) as u64));
443 let x262: u64 = (((arg1[6]) as u64) * ((arg2[0]) as u64));
444 let x263: u64 = (((arg1[5]) as u64) * (((arg2[13]) * 0x2) as u64));
445 let x264: u64 = (((arg1[5]) as u64) * (((arg2[12]) * 0x2) as u64));
446 let x265: u64 = (((arg1[5]) as u64) * (((arg2[11]) * 0x2) as u64));
447 let x266: u64 = (((arg1[5]) as u64) * (((arg2[10]) * 0x2) as u64));
448 let x267: u64 = (((arg1[5]) as u64) * (((arg2[9]) * 0x2) as u64));
449 let x268: u64 = (((arg1[5]) as u64) * (((arg2[8]) * 0x2) as u64));
450 let x269: u64 = (((arg1[5]) as u64) * ((arg2[7]) as u64));
451 let x270: u64 = (((arg1[5]) as u64) * (((arg2[6]) * 0x2) as u64));
452 let x271: u64 = (((arg1[5]) as u64) * (((arg2[5]) * 0x2) as u64));
453 let x272: u64 = (((arg1[5]) as u64) * (((arg2[4]) * 0x2) as u64));
454 let x273: u64 = (((arg1[5]) as u64) * (((arg2[3]) * 0x2) as u64));
455 let x274: u64 = (((arg1[5]) as u64) * (((arg2[2]) * 0x2) as u64));
456 let x275: u64 = (((arg1[5]) as u64) * (((arg2[1]) * 0x2) as u64));
457 let x276: u64 = (((arg1[5]) as u64) * ((arg2[0]) as u64));
458 let x277: u64 = (((arg1[4]) as u64) * ((arg2[14]) as u64));
459 let x278: u64 = (((arg1[4]) as u64) * ((arg2[13]) as u64));
460 let x279: u64 = (((arg1[4]) as u64) * (((arg2[12]) * 0x2) as u64));
461 let x280: u64 = (((arg1[4]) as u64) * ((arg2[11]) as u64));
462 let x281: u64 = (((arg1[4]) as u64) * (((arg2[10]) * 0x2) as u64));
463 let x282: u64 = (((arg1[4]) as u64) * ((arg2[9]) as u64));
464 let x283: u64 = (((arg1[4]) as u64) * ((arg2[8]) as u64));
465 let x284: u64 = (((arg1[4]) as u64) * ((arg2[7]) as u64));
466 let x285: u64 = (((arg1[4]) as u64) * ((arg2[6]) as u64));
467 let x286: u64 = (((arg1[4]) as u64) * (((arg2[5]) * 0x2) as u64));
468 let x287: u64 = (((arg1[4]) as u64) * ((arg2[4]) as u64));
469 let x288: u64 = (((arg1[4]) as u64) * (((arg2[3]) * 0x2) as u64));
470 let x289: u64 = (((arg1[4]) as u64) * ((arg2[2]) as u64));
471 let x290: u64 = (((arg1[4]) as u64) * ((arg2[1]) as u64));
472 let x291: u64 = (((arg1[4]) as u64) * ((arg2[0]) as u64));
473 let x292: u64 = (((arg1[3]) as u64) * (((arg2[15]) * 0x2) as u64));
474 let x293: u64 = (((arg1[3]) as u64) * ((arg2[14]) as u64));
475 let x294: u64 = (((arg1[3]) as u64) * (((arg2[13]) * 0x2) as u64));
476 let x295: u64 = (((arg1[3]) as u64) * (((arg2[12]) * 0x2) as u64));
477 let x296: u64 = (((arg1[3]) as u64) * (((arg2[11]) * 0x2) as u64));
478 let x297: u64 = (((arg1[3]) as u64) * (((arg2[10]) * 0x2) as u64));
479 let x298: u64 = (((arg1[3]) as u64) * ((arg2[9]) as u64));
480 let x299: u64 = (((arg1[3]) as u64) * (((arg2[8]) * 0x2) as u64));
481 let x300: u64 = (((arg1[3]) as u64) * ((arg2[7]) as u64));
482 let x301: u64 = (((arg1[3]) as u64) * (((arg2[6]) * 0x2) as u64));
483 let x302: u64 = (((arg1[3]) as u64) * (((arg2[5]) * 0x2) as u64));
484 let x303: u64 = (((arg1[3]) as u64) * (((arg2[4]) * 0x2) as u64));
485 let x304: u64 = (((arg1[3]) as u64) * (((arg2[3]) * 0x2) as u64));
486 let x305: u64 = (((arg1[3]) as u64) * ((arg2[2]) as u64));
487 let x306: u64 = (((arg1[3]) as u64) * (((arg2[1]) * 0x2) as u64));
488 let x307: u64 = (((arg1[3]) as u64) * ((arg2[0]) as u64));
489 let x308: u64 = (((arg1[2]) as u64) * ((arg2[16]) as u64));
490 let x309: u64 = (((arg1[2]) as u64) * ((arg2[15]) as u64));
491 let x310: u64 = (((arg1[2]) as u64) * ((arg2[14]) as u64));
492 let x311: u64 = (((arg1[2]) as u64) * ((arg2[13]) as u64));
493 let x312: u64 = (((arg1[2]) as u64) * (((arg2[12]) * 0x2) as u64));
494 let x313: u64 = (((arg1[2]) as u64) * ((arg2[11]) as u64));
495 let x314: u64 = (((arg1[2]) as u64) * ((arg2[10]) as u64));
496 let x315: u64 = (((arg1[2]) as u64) * ((arg2[9]) as u64));
497 let x316: u64 = (((arg1[2]) as u64) * ((arg2[8]) as u64));
498 let x317: u64 = (((arg1[2]) as u64) * ((arg2[7]) as u64));
499 let x318: u64 = (((arg1[2]) as u64) * ((arg2[6]) as u64));
500 let x319: u64 = (((arg1[2]) as u64) * (((arg2[5]) * 0x2) as u64));
501 let x320: u64 = (((arg1[2]) as u64) * ((arg2[4]) as u64));
502 let x321: u64 = (((arg1[2]) as u64) * ((arg2[3]) as u64));
503 let x322: u64 = (((arg1[2]) as u64) * ((arg2[2]) as u64));
504 let x323: u64 = (((arg1[2]) as u64) * ((arg2[1]) as u64));
505 let x324: u64 = (((arg1[2]) as u64) * ((arg2[0]) as u64));
506 let x325: u64 = (((arg1[1]) as u64) * (((arg2[17]) * 0x2) as u64));
507 let x326: u64 = (((arg1[1]) as u64) * ((arg2[16]) as u64));
508 let x327: u64 = (((arg1[1]) as u64) * (((arg2[15]) * 0x2) as u64));
509 let x328: u64 = (((arg1[1]) as u64) * ((arg2[14]) as u64));
510 let x329: u64 = (((arg1[1]) as u64) * (((arg2[13]) * 0x2) as u64));
511 let x330: u64 = (((arg1[1]) as u64) * (((arg2[12]) * 0x2) as u64));
512 let x331: u64 = (((arg1[1]) as u64) * ((arg2[11]) as u64));
513 let x332: u64 = (((arg1[1]) as u64) * (((arg2[10]) * 0x2) as u64));
514 let x333: u64 = (((arg1[1]) as u64) * ((arg2[9]) as u64));
515 let x334: u64 = (((arg1[1]) as u64) * (((arg2[8]) * 0x2) as u64));
516 let x335: u64 = (((arg1[1]) as u64) * ((arg2[7]) as u64));
517 let x336: u64 = (((arg1[1]) as u64) * (((arg2[6]) * 0x2) as u64));
518 let x337: u64 = (((arg1[1]) as u64) * (((arg2[5]) * 0x2) as u64));
519 let x338: u64 = (((arg1[1]) as u64) * ((arg2[4]) as u64));
520 let x339: u64 = (((arg1[1]) as u64) * (((arg2[3]) * 0x2) as u64));
521 let x340: u64 = (((arg1[1]) as u64) * ((arg2[2]) as u64));
522 let x341: u64 = (((arg1[1]) as u64) * (((arg2[1]) * 0x2) as u64));
523 let x342: u64 = (((arg1[1]) as u64) * ((arg2[0]) as u64));
524 let x343: u64 = (((arg1[0]) as u64) * ((arg2[18]) as u64));
525 let x344: u64 = (((arg1[0]) as u64) * ((arg2[17]) as u64));
526 let x345: u64 = (((arg1[0]) as u64) * ((arg2[16]) as u64));
527 let x346: u64 = (((arg1[0]) as u64) * ((arg2[15]) as u64));
528 let x347: u64 = (((arg1[0]) as u64) * ((arg2[14]) as u64));
529 let x348: u64 = (((arg1[0]) as u64) * ((arg2[13]) as u64));
530 let x349: u64 = (((arg1[0]) as u64) * ((arg2[12]) as u64));
531 let x350: u64 = (((arg1[0]) as u64) * ((arg2[11]) as u64));
532 let x351: u64 = (((arg1[0]) as u64) * ((arg2[10]) as u64));
533 let x352: u64 = (((arg1[0]) as u64) * ((arg2[9]) as u64));
534 let x353: u64 = (((arg1[0]) as u64) * ((arg2[8]) as u64));
535 let x354: u64 = (((arg1[0]) as u64) * ((arg2[7]) as u64));
536 let x355: u64 = (((arg1[0]) as u64) * ((arg2[6]) as u64));
537 let x356: u64 = (((arg1[0]) as u64) * ((arg2[5]) as u64));
538 let x357: u64 = (((arg1[0]) as u64) * ((arg2[4]) as u64));
539 let x358: u64 = (((arg1[0]) as u64) * ((arg2[3]) as u64));
540 let x359: u64 = (((arg1[0]) as u64) * ((arg2[2]) as u64));
541 let x360: u64 = (((arg1[0]) as u64) * ((arg2[1]) as u64));
542 let x361: u64 = (((arg1[0]) as u64) * ((arg2[0]) as u64));
543 let x362: u64 = (x361 + (x171 + (x170 + (x168 + (x165 + (x161 + (x156 + (x150 + (x143 + (x135 + (x126 + (x116 + (x105 + (x93 + (x80 + (x66 + (x51 + (x35 + x18))))))))))))))))));
544 let x363: u64 = (x362 >> 28);
545 let x364: u32 = ((x362 & (0xfffffff as u64)) as u32);
546 let x365: u64 = (x343 + (x325 + (x308 + (x292 + (x277 + (x263 + (x250 + (x238 + (x227 + (x217 + (x208 + (x200 + (x193 + (x187 + (x182 + (x178 + (x175 + (x173 + x172))))))))))))))))));
547 let x366: u64 = (x344 + (x326 + (x309 + (x293 + (x278 + (x264 + (x251 + (x239 + (x228 + (x218 + (x209 + (x201 + (x194 + (x188 + (x183 + (x179 + (x176 + (x174 + x1))))))))))))))))));
548 let x367: u64 = (x345 + (x327 + (x310 + (x294 + (x279 + (x265 + (x252 + (x240 + (x229 + (x219 + (x210 + (x202 + (x195 + (x189 + (x184 + (x180 + (x177 + (x19 + x2))))))))))))))))));
549 let x368: u64 = (x346 + (x328 + (x311 + (x295 + (x280 + (x266 + (x253 + (x241 + (x230 + (x220 + (x211 + (x203 + (x196 + (x190 + (x185 + (x181 + (x36 + (x20 + x3))))))))))))))))));
550 let x369: u64 = (x347 + (x329 + (x312 + (x296 + (x281 + (x267 + (x254 + (x242 + (x231 + (x221 + (x212 + (x204 + (x197 + (x191 + (x186 + (x52 + (x37 + (x21 + x4))))))))))))))))));
551 let x370: u64 = (x348 + (x330 + (x313 + (x297 + (x282 + (x268 + (x255 + (x243 + (x232 + (x222 + (x213 + (x205 + (x198 + (x192 + (x67 + (x53 + (x38 + (x22 + x5))))))))))))))))));
552 let x371: u64 = (x349 + (x331 + (x314 + (x298 + (x283 + (x269 + (x256 + (x244 + (x233 + (x223 + (x214 + (x206 + (x199 + (x81 + (x68 + (x54 + (x39 + (x23 + x6))))))))))))))))));
553 let x372: u64 = (x350 + (x332 + (x315 + (x299 + (x284 + (x270 + (x257 + (x245 + (x234 + (x224 + (x215 + (x207 + (x94 + (x82 + (x69 + (x55 + (x40 + (x24 + x7))))))))))))))))));
554 let x373: u64 = (x351 + (x333 + (x316 + (x300 + (x285 + (x271 + (x258 + (x246 + (x235 + (x225 + (x216 + (x106 + (x95 + (x83 + (x70 + (x56 + (x41 + (x25 + x8))))))))))))))))));
555 let x374: u64 = (x352 + (x334 + (x317 + (x301 + (x286 + (x272 + (x259 + (x247 + (x236 + (x226 + (x117 + (x107 + (x96 + (x84 + (x71 + (x57 + (x42 + (x26 + x9))))))))))))))))));
556 let x375: u64 = (x353 + (x335 + (x318 + (x302 + (x287 + (x273 + (x260 + (x248 + (x237 + (x127 + (x118 + (x108 + (x97 + (x85 + (x72 + (x58 + (x43 + (x27 + x10))))))))))))))))));
557 let x376: u64 = (x354 + (x336 + (x319 + (x303 + (x288 + (x274 + (x261 + (x249 + (x136 + (x128 + (x119 + (x109 + (x98 + (x86 + (x73 + (x59 + (x44 + (x28 + x11))))))))))))))))));
558 let x377: u64 = (x355 + (x337 + (x320 + (x304 + (x289 + (x275 + (x262 + (x144 + (x137 + (x129 + (x120 + (x110 + (x99 + (x87 + (x74 + (x60 + (x45 + (x29 + x12))))))))))))))))));
559 let x378: u64 = (x356 + (x338 + (x321 + (x305 + (x290 + (x276 + (x151 + (x145 + (x138 + (x130 + (x121 + (x111 + (x100 + (x88 + (x75 + (x61 + (x46 + (x30 + x13))))))))))))))))));
560 let x379: u64 = (x357 + (x339 + (x322 + (x306 + (x291 + (x157 + (x152 + (x146 + (x139 + (x131 + (x122 + (x112 + (x101 + (x89 + (x76 + (x62 + (x47 + (x31 + x14))))))))))))))))));
561 let x380: u64 = (x358 + (x340 + (x323 + (x307 + (x162 + (x158 + (x153 + (x147 + (x140 + (x132 + (x123 + (x113 + (x102 + (x90 + (x77 + (x63 + (x48 + (x32 + x15))))))))))))))))));
562 let x381: u64 = (x359 + (x341 + (x324 + (x166 + (x163 + (x159 + (x154 + (x148 + (x141 + (x133 + (x124 + (x114 + (x103 + (x91 + (x78 + (x64 + (x49 + (x33 + x16))))))))))))))))));
563 let x382: u64 = (x360 + (x342 + (x169 + (x167 + (x164 + (x160 + (x155 + (x149 + (x142 + (x134 + (x125 + (x115 + (x104 + (x92 + (x79 + (x65 + (x50 + (x34 + x17))))))))))))))))));
564 let x383: u64 = (x363 + x382);
565 let x384: u64 = (x383 >> 27);
566 let x385: u32 = ((x383 & (0x7ffffff as u64)) as u32);
567 let x386: u64 = (x384 + x381);
568 let x387: u64 = (x386 >> 28);
569 let x388: u32 = ((x386 & (0xfffffff as u64)) as u32);
570 let x389: u64 = (x387 + x380);
571 let x390: u64 = (x389 >> 27);
572 let x391: u32 = ((x389 & (0x7ffffff as u64)) as u32);
573 let x392: u64 = (x390 + x379);
574 let x393: u64 = (x392 >> 28);
575 let x394: u32 = ((x392 & (0xfffffff as u64)) as u32);
576 let x395: u64 = (x393 + x378);
577 let x396: u64 = (x395 >> 27);
578 let x397: u32 = ((x395 & (0x7ffffff as u64)) as u32);
579 let x398: u64 = (x396 + x377);
580 let x399: u64 = (x398 >> 27);
581 let x400: u32 = ((x398 & (0x7ffffff as u64)) as u32);
582 let x401: u64 = (x399 + x376);
583 let x402: u64 = (x401 >> 28);
584 let x403: u32 = ((x401 & (0xfffffff as u64)) as u32);
585 let x404: u64 = (x402 + x375);
586 let x405: u64 = (x404 >> 27);
587 let x406: u32 = ((x404 & (0x7ffffff as u64)) as u32);
588 let x407: u64 = (x405 + x374);
589 let x408: u64 = (x407 >> 28);
590 let x409: u32 = ((x407 & (0xfffffff as u64)) as u32);
591 let x410: u64 = (x408 + x373);
592 let x411: u64 = (x410 >> 27);
593 let x412: u32 = ((x410 & (0x7ffffff as u64)) as u32);
594 let x413: u64 = (x411 + x372);
595 let x414: u64 = (x413 >> 28);
596 let x415: u32 = ((x413 & (0xfffffff as u64)) as u32);
597 let x416: u64 = (x414 + x371);
598 let x417: u64 = (x416 >> 27);
599 let x418: u32 = ((x416 & (0x7ffffff as u64)) as u32);
600 let x419: u64 = (x417 + x370);
601 let x420: u64 = (x419 >> 27);
602 let x421: u32 = ((x419 & (0x7ffffff as u64)) as u32);
603 let x422: u64 = (x420 + x369);
604 let x423: u64 = (x422 >> 28);
605 let x424: u32 = ((x422 & (0xfffffff as u64)) as u32);
606 let x425: u64 = (x423 + x368);
607 let x426: u64 = (x425 >> 27);
608 let x427: u32 = ((x425 & (0x7ffffff as u64)) as u32);
609 let x428: u64 = (x426 + x367);
610 let x429: u64 = (x428 >> 28);
611 let x430: u32 = ((x428 & (0xfffffff as u64)) as u32);
612 let x431: u64 = (x429 + x366);
613 let x432: u64 = (x431 >> 27);
614 let x433: u32 = ((x431 & (0x7ffffff as u64)) as u32);
615 let x434: u64 = (x432 + x365);
616 let x435: u64 = (x434 >> 27);
617 let x436: u32 = ((x434 & (0x7ffffff as u64)) as u32);
618 let x437: u64 = ((x364 as u64) + x435);
619 let x438: u32 = ((x437 >> 28) as u32);
620 let x439: u32 = ((x437 & (0xfffffff as u64)) as u32);
621 let x440: u32 = (x438 + x385);
622 let x441: fiat_p521_u1 = ((x440 >> 27) as fiat_p521_u1);
623 let x442: u32 = (x440 & 0x7ffffff);
624 let x443: u32 = ((x441 as u32) + x388);
625 out1[0] = x439;
626 out1[1] = x442;
627 out1[2] = x443;
628 out1[3] = x391;
629 out1[4] = x394;
630 out1[5] = x397;
631 out1[6] = x400;
632 out1[7] = x403;
633 out1[8] = x406;
634 out1[9] = x409;
635 out1[10] = x412;
636 out1[11] = x415;
637 out1[12] = x418;
638 out1[13] = x421;
639 out1[14] = x424;
640 out1[15] = x427;
641 out1[16] = x430;
642 out1[17] = x433;
643 out1[18] = x436;
644}
645
646#[inline]
652pub fn fiat_p521_carry_square(out1: &mut fiat_p521_tight_field_element, arg1: &fiat_p521_loose_field_element) {
653 let x1: u32 = (arg1[18]);
654 let x2: u32 = (x1 * 0x2);
655 let x3: u32 = ((arg1[18]) * 0x2);
656 let x4: u32 = (arg1[17]);
657 let x5: u32 = (x4 * 0x2);
658 let x6: u32 = ((arg1[17]) * 0x2);
659 let x7: u32 = (arg1[16]);
660 let x8: u32 = (x7 * 0x2);
661 let x9: u32 = ((arg1[16]) * 0x2);
662 let x10: u32 = (arg1[15]);
663 let x11: u32 = (x10 * 0x2);
664 let x12: u32 = ((arg1[15]) * 0x2);
665 let x13: u32 = (arg1[14]);
666 let x14: u32 = (x13 * 0x2);
667 let x15: u32 = ((arg1[14]) * 0x2);
668 let x16: u32 = (arg1[13]);
669 let x17: u32 = (x16 * 0x2);
670 let x18: u32 = ((arg1[13]) * 0x2);
671 let x19: u32 = (arg1[12]);
672 let x20: u32 = (x19 * 0x2);
673 let x21: u32 = ((arg1[12]) * 0x2);
674 let x22: u32 = (arg1[11]);
675 let x23: u32 = (x22 * 0x2);
676 let x24: u32 = ((arg1[11]) * 0x2);
677 let x25: u32 = (arg1[10]);
678 let x26: u32 = (x25 * 0x2);
679 let x27: u32 = ((arg1[10]) * 0x2);
680 let x28: u32 = ((arg1[9]) * 0x2);
681 let x29: u32 = ((arg1[8]) * 0x2);
682 let x30: u32 = ((arg1[7]) * 0x2);
683 let x31: u32 = ((arg1[6]) * 0x2);
684 let x32: u32 = ((arg1[5]) * 0x2);
685 let x33: u32 = ((arg1[4]) * 0x2);
686 let x34: u32 = ((arg1[3]) * 0x2);
687 let x35: u32 = ((arg1[2]) * 0x2);
688 let x36: u32 = ((arg1[1]) * 0x2);
689 let x37: u64 = (((arg1[18]) as u64) * (x1 as u64));
690 let x38: u64 = (((arg1[17]) as u64) * ((x2 * 0x2) as u64));
691 let x39: u64 = (((arg1[17]) as u64) * ((x4 * 0x2) as u64));
692 let x40: u64 = (((arg1[16]) as u64) * (x2 as u64));
693 let x41: u64 = (((arg1[16]) as u64) * ((x5 * 0x2) as u64));
694 let x42: u64 = (((arg1[16]) as u64) * (x7 as u64));
695 let x43: u64 = (((arg1[15]) as u64) * ((x2 * 0x2) as u64));
696 let x44: u64 = (((arg1[15]) as u64) * ((x5 * 0x2) as u64));
697 let x45: u64 = (((arg1[15]) as u64) * (x8 as u64));
698 let x46: u64 = (((arg1[15]) as u64) * ((x10 * 0x2) as u64));
699 let x47: u64 = (((arg1[14]) as u64) * (x2 as u64));
700 let x48: u64 = (((arg1[14]) as u64) * (x5 as u64));
701 let x49: u64 = (((arg1[14]) as u64) * (x8 as u64));
702 let x50: u64 = (((arg1[14]) as u64) * (x11 as u64));
703 let x51: u64 = (((arg1[14]) as u64) * (x13 as u64));
704 let x52: u64 = (((arg1[13]) as u64) * (x2 as u64));
705 let x53: u64 = (((arg1[13]) as u64) * ((x5 * 0x2) as u64));
706 let x54: u64 = (((arg1[13]) as u64) * (x8 as u64));
707 let x55: u64 = (((arg1[13]) as u64) * ((x11 * 0x2) as u64));
708 let x56: u64 = (((arg1[13]) as u64) * (x14 as u64));
709 let x57: u64 = (((arg1[13]) as u64) * ((x16 * 0x2) as u64));
710 let x58: u64 = (((arg1[12]) as u64) * ((x2 * 0x2) as u64));
711 let x59: u64 = (((arg1[12]) as u64) * ((x5 * 0x2) as u64));
712 let x60: u64 = (((arg1[12]) as u64) * ((x8 * 0x2) as u64));
713 let x61: u64 = (((arg1[12]) as u64) * ((x11 * 0x2) as u64));
714 let x62: u64 = (((arg1[12]) as u64) * ((x14 * 0x2) as u64));
715 let x63: u64 = (((arg1[12]) as u64) * ((x17 * 0x2) as u64));
716 let x64: u64 = (((arg1[12]) as u64) * ((x19 * 0x2) as u64));
717 let x65: u64 = (((arg1[11]) as u64) * (x2 as u64));
718 let x66: u64 = (((arg1[11]) as u64) * ((x5 * 0x2) as u64));
719 let x67: u64 = (((arg1[11]) as u64) * (x8 as u64));
720 let x68: u64 = (((arg1[11]) as u64) * ((x11 * 0x2) as u64));
721 let x69: u64 = (((arg1[11]) as u64) * (x14 as u64));
722 let x70: u64 = (((arg1[11]) as u64) * (x17 as u64));
723 let x71: u64 = (((arg1[11]) as u64) * ((x20 * 0x2) as u64));
724 let x72: u64 = (((arg1[11]) as u64) * (x22 as u64));
725 let x73: u64 = (((arg1[10]) as u64) * ((x2 * 0x2) as u64));
726 let x74: u64 = (((arg1[10]) as u64) * ((x5 * 0x2) as u64));
727 let x75: u64 = (((arg1[10]) as u64) * ((x8 * 0x2) as u64));
728 let x76: u64 = (((arg1[10]) as u64) * ((x11 * 0x2) as u64));
729 let x77: u64 = (((arg1[10]) as u64) * (x14 as u64));
730 let x78: u64 = (((arg1[10]) as u64) * ((x17 * 0x2) as u64));
731 let x79: u64 = (((arg1[10]) as u64) * ((x20 * 0x2) as u64));
732 let x80: u64 = (((arg1[10]) as u64) * ((x23 * 0x2) as u64));
733 let x81: u64 = (((arg1[10]) as u64) * ((x25 * 0x2) as u64));
734 let x82: u64 = (((arg1[9]) as u64) * (x2 as u64));
735 let x83: u64 = (((arg1[9]) as u64) * ((x5 * 0x2) as u64));
736 let x84: u64 = (((arg1[9]) as u64) * (x8 as u64));
737 let x85: u64 = (((arg1[9]) as u64) * (x11 as u64));
738 let x86: u64 = (((arg1[9]) as u64) * (x14 as u64));
739 let x87: u64 = (((arg1[9]) as u64) * (x17 as u64));
740 let x88: u64 = (((arg1[9]) as u64) * ((x20 * 0x2) as u64));
741 let x89: u64 = (((arg1[9]) as u64) * (x23 as u64));
742 let x90: u64 = (((arg1[9]) as u64) * ((x26 * 0x2) as u64));
743 let x91: u64 = (((arg1[9]) as u64) * ((arg1[9]) as u64));
744 let x92: u64 = (((arg1[8]) as u64) * ((x2 * 0x2) as u64));
745 let x93: u64 = (((arg1[8]) as u64) * ((x5 * 0x2) as u64));
746 let x94: u64 = (((arg1[8]) as u64) * (x8 as u64));
747 let x95: u64 = (((arg1[8]) as u64) * ((x11 * 0x2) as u64));
748 let x96: u64 = (((arg1[8]) as u64) * (x14 as u64));
749 let x97: u64 = (((arg1[8]) as u64) * ((x17 * 0x2) as u64));
750 let x98: u64 = (((arg1[8]) as u64) * ((x20 * 0x2) as u64));
751 let x99: u64 = (((arg1[8]) as u64) * ((x23 * 0x2) as u64));
752 let x100: u64 = (((arg1[8]) as u64) * ((x27 * 0x2) as u64));
753 let x101: u64 = (((arg1[8]) as u64) * (x28 as u64));
754 let x102: u64 = (((arg1[8]) as u64) * (((arg1[8]) * 0x2) as u64));
755 let x103: u64 = (((arg1[7]) as u64) * (x2 as u64));
756 let x104: u64 = (((arg1[7]) as u64) * (x5 as u64));
757 let x105: u64 = (((arg1[7]) as u64) * (x8 as u64));
758 let x106: u64 = (((arg1[7]) as u64) * (x11 as u64));
759 let x107: u64 = (((arg1[7]) as u64) * (x14 as u64));
760 let x108: u64 = (((arg1[7]) as u64) * (x17 as u64));
761 let x109: u64 = (((arg1[7]) as u64) * ((x20 * 0x2) as u64));
762 let x110: u64 = (((arg1[7]) as u64) * (x24 as u64));
763 let x111: u64 = (((arg1[7]) as u64) * (x27 as u64));
764 let x112: u64 = (((arg1[7]) as u64) * (x28 as u64));
765 let x113: u64 = (((arg1[7]) as u64) * (x29 as u64));
766 let x114: u64 = (((arg1[7]) as u64) * ((arg1[7]) as u64));
767 let x115: u64 = (((arg1[6]) as u64) * (x2 as u64));
768 let x116: u64 = (((arg1[6]) as u64) * ((x5 * 0x2) as u64));
769 let x117: u64 = (((arg1[6]) as u64) * (x8 as u64));
770 let x118: u64 = (((arg1[6]) as u64) * ((x11 * 0x2) as u64));
771 let x119: u64 = (((arg1[6]) as u64) * (x14 as u64));
772 let x120: u64 = (((arg1[6]) as u64) * ((x17 * 0x2) as u64));
773 let x121: u64 = (((arg1[6]) as u64) * ((x21 * 0x2) as u64));
774 let x122: u64 = (((arg1[6]) as u64) * (x24 as u64));
775 let x123: u64 = (((arg1[6]) as u64) * ((x27 * 0x2) as u64));
776 let x124: u64 = (((arg1[6]) as u64) * (x28 as u64));
777 let x125: u64 = (((arg1[6]) as u64) * ((x29 * 0x2) as u64));
778 let x126: u64 = (((arg1[6]) as u64) * (x30 as u64));
779 let x127: u64 = (((arg1[6]) as u64) * ((arg1[6]) as u64));
780 let x128: u64 = (((arg1[5]) as u64) * ((x2 * 0x2) as u64));
781 let x129: u64 = (((arg1[5]) as u64) * ((x5 * 0x2) as u64));
782 let x130: u64 = (((arg1[5]) as u64) * ((x8 * 0x2) as u64));
783 let x131: u64 = (((arg1[5]) as u64) * ((x11 * 0x2) as u64));
784 let x132: u64 = (((arg1[5]) as u64) * ((x14 * 0x2) as u64));
785 let x133: u64 = (((arg1[5]) as u64) * ((x18 * 0x2) as u64));
786 let x134: u64 = (((arg1[5]) as u64) * ((x21 * 0x2) as u64));
787 let x135: u64 = (((arg1[5]) as u64) * ((x24 * 0x2) as u64));
788 let x136: u64 = (((arg1[5]) as u64) * ((x27 * 0x2) as u64));
789 let x137: u64 = (((arg1[5]) as u64) * ((x28 * 0x2) as u64));
790 let x138: u64 = (((arg1[5]) as u64) * ((x29 * 0x2) as u64));
791 let x139: u64 = (((arg1[5]) as u64) * (x30 as u64));
792 let x140: u64 = (((arg1[5]) as u64) * ((x31 * 0x2) as u64));
793 let x141: u64 = (((arg1[5]) as u64) * (((arg1[5]) * 0x2) as u64));
794 let x142: u64 = (((arg1[4]) as u64) * (x2 as u64));
795 let x143: u64 = (((arg1[4]) as u64) * ((x5 * 0x2) as u64));
796 let x144: u64 = (((arg1[4]) as u64) * (x8 as u64));
797 let x145: u64 = (((arg1[4]) as u64) * ((x11 * 0x2) as u64));
798 let x146: u64 = (((arg1[4]) as u64) * (x15 as u64));
799 let x147: u64 = (((arg1[4]) as u64) * (x18 as u64));
800 let x148: u64 = (((arg1[4]) as u64) * ((x21 * 0x2) as u64));
801 let x149: u64 = (((arg1[4]) as u64) * (x24 as u64));
802 let x150: u64 = (((arg1[4]) as u64) * ((x27 * 0x2) as u64));
803 let x151: u64 = (((arg1[4]) as u64) * (x28 as u64));
804 let x152: u64 = (((arg1[4]) as u64) * (x29 as u64));
805 let x153: u64 = (((arg1[4]) as u64) * (x30 as u64));
806 let x154: u64 = (((arg1[4]) as u64) * (x31 as u64));
807 let x155: u64 = (((arg1[4]) as u64) * ((x32 * 0x2) as u64));
808 let x156: u64 = (((arg1[4]) as u64) * ((arg1[4]) as u64));
809 let x157: u64 = (((arg1[3]) as u64) * ((x2 * 0x2) as u64));
810 let x158: u64 = (((arg1[3]) as u64) * ((x5 * 0x2) as u64));
811 let x159: u64 = (((arg1[3]) as u64) * ((x8 * 0x2) as u64));
812 let x160: u64 = (((arg1[3]) as u64) * ((x12 * 0x2) as u64));
813 let x161: u64 = (((arg1[3]) as u64) * (x15 as u64));
814 let x162: u64 = (((arg1[3]) as u64) * ((x18 * 0x2) as u64));
815 let x163: u64 = (((arg1[3]) as u64) * ((x21 * 0x2) as u64));
816 let x164: u64 = (((arg1[3]) as u64) * ((x24 * 0x2) as u64));
817 let x165: u64 = (((arg1[3]) as u64) * ((x27 * 0x2) as u64));
818 let x166: u64 = (((arg1[3]) as u64) * (x28 as u64));
819 let x167: u64 = (((arg1[3]) as u64) * ((x29 * 0x2) as u64));
820 let x168: u64 = (((arg1[3]) as u64) * (x30 as u64));
821 let x169: u64 = (((arg1[3]) as u64) * ((x31 * 0x2) as u64));
822 let x170: u64 = (((arg1[3]) as u64) * ((x32 * 0x2) as u64));
823 let x171: u64 = (((arg1[3]) as u64) * ((x33 * 0x2) as u64));
824 let x172: u64 = (((arg1[3]) as u64) * (((arg1[3]) * 0x2) as u64));
825 let x173: u64 = (((arg1[2]) as u64) * (x2 as u64));
826 let x174: u64 = (((arg1[2]) as u64) * ((x5 * 0x2) as u64));
827 let x175: u64 = (((arg1[2]) as u64) * (x9 as u64));
828 let x176: u64 = (((arg1[2]) as u64) * (x12 as u64));
829 let x177: u64 = (((arg1[2]) as u64) * (x15 as u64));
830 let x178: u64 = (((arg1[2]) as u64) * (x18 as u64));
831 let x179: u64 = (((arg1[2]) as u64) * ((x21 * 0x2) as u64));
832 let x180: u64 = (((arg1[2]) as u64) * (x24 as u64));
833 let x181: u64 = (((arg1[2]) as u64) * (x27 as u64));
834 let x182: u64 = (((arg1[2]) as u64) * (x28 as u64));
835 let x183: u64 = (((arg1[2]) as u64) * (x29 as u64));
836 let x184: u64 = (((arg1[2]) as u64) * (x30 as u64));
837 let x185: u64 = (((arg1[2]) as u64) * (x31 as u64));
838 let x186: u64 = (((arg1[2]) as u64) * ((x32 * 0x2) as u64));
839 let x187: u64 = (((arg1[2]) as u64) * (x33 as u64));
840 let x188: u64 = (((arg1[2]) as u64) * (x34 as u64));
841 let x189: u64 = (((arg1[2]) as u64) * ((arg1[2]) as u64));
842 let x190: u64 = (((arg1[1]) as u64) * ((x2 * 0x2) as u64));
843 let x191: u64 = (((arg1[1]) as u64) * ((x6 * 0x2) as u64));
844 let x192: u64 = (((arg1[1]) as u64) * (x9 as u64));
845 let x193: u64 = (((arg1[1]) as u64) * ((x12 * 0x2) as u64));
846 let x194: u64 = (((arg1[1]) as u64) * (x15 as u64));
847 let x195: u64 = (((arg1[1]) as u64) * ((x18 * 0x2) as u64));
848 let x196: u64 = (((arg1[1]) as u64) * ((x21 * 0x2) as u64));
849 let x197: u64 = (((arg1[1]) as u64) * (x24 as u64));
850 let x198: u64 = (((arg1[1]) as u64) * ((x27 * 0x2) as u64));
851 let x199: u64 = (((arg1[1]) as u64) * (x28 as u64));
852 let x200: u64 = (((arg1[1]) as u64) * ((x29 * 0x2) as u64));
853 let x201: u64 = (((arg1[1]) as u64) * (x30 as u64));
854 let x202: u64 = (((arg1[1]) as u64) * ((x31 * 0x2) as u64));
855 let x203: u64 = (((arg1[1]) as u64) * ((x32 * 0x2) as u64));
856 let x204: u64 = (((arg1[1]) as u64) * (x33 as u64));
857 let x205: u64 = (((arg1[1]) as u64) * ((x34 * 0x2) as u64));
858 let x206: u64 = (((arg1[1]) as u64) * (x35 as u64));
859 let x207: u64 = (((arg1[1]) as u64) * (((arg1[1]) * 0x2) as u64));
860 let x208: u64 = (((arg1[0]) as u64) * (x3 as u64));
861 let x209: u64 = (((arg1[0]) as u64) * (x6 as u64));
862 let x210: u64 = (((arg1[0]) as u64) * (x9 as u64));
863 let x211: u64 = (((arg1[0]) as u64) * (x12 as u64));
864 let x212: u64 = (((arg1[0]) as u64) * (x15 as u64));
865 let x213: u64 = (((arg1[0]) as u64) * (x18 as u64));
866 let x214: u64 = (((arg1[0]) as u64) * (x21 as u64));
867 let x215: u64 = (((arg1[0]) as u64) * (x24 as u64));
868 let x216: u64 = (((arg1[0]) as u64) * (x27 as u64));
869 let x217: u64 = (((arg1[0]) as u64) * (x28 as u64));
870 let x218: u64 = (((arg1[0]) as u64) * (x29 as u64));
871 let x219: u64 = (((arg1[0]) as u64) * (x30 as u64));
872 let x220: u64 = (((arg1[0]) as u64) * (x31 as u64));
873 let x221: u64 = (((arg1[0]) as u64) * (x32 as u64));
874 let x222: u64 = (((arg1[0]) as u64) * (x33 as u64));
875 let x223: u64 = (((arg1[0]) as u64) * (x34 as u64));
876 let x224: u64 = (((arg1[0]) as u64) * (x35 as u64));
877 let x225: u64 = (((arg1[0]) as u64) * (x36 as u64));
878 let x226: u64 = (((arg1[0]) as u64) * ((arg1[0]) as u64));
879 let x227: u64 = (x226 + (x190 + (x174 + (x159 + (x145 + (x132 + (x120 + (x109 + (x99 + x90)))))))));
880 let x228: u64 = (x227 >> 28);
881 let x229: u32 = ((x227 & (0xfffffff as u64)) as u32);
882 let x230: u64 = (x208 + (x191 + (x175 + (x160 + (x146 + (x133 + (x121 + (x110 + (x100 + x91)))))))));
883 let x231: u64 = (x209 + (x192 + (x176 + (x161 + (x147 + (x134 + (x122 + (x111 + (x101 + x37)))))))));
884 let x232: u64 = (x210 + (x193 + (x177 + (x162 + (x148 + (x135 + (x123 + (x112 + (x102 + x38)))))))));
885 let x233: u64 = (x211 + (x194 + (x178 + (x163 + (x149 + (x136 + (x124 + (x113 + (x40 + x39)))))))));
886 let x234: u64 = (x212 + (x195 + (x179 + (x164 + (x150 + (x137 + (x125 + (x114 + (x43 + x41)))))))));
887 let x235: u64 = (x213 + (x196 + (x180 + (x165 + (x151 + (x138 + (x126 + (x47 + (x44 + x42)))))))));
888 let x236: u64 = (x214 + (x197 + (x181 + (x166 + (x152 + (x139 + (x127 + (x52 + (x48 + x45)))))))));
889 let x237: u64 = (x215 + (x198 + (x182 + (x167 + (x153 + (x140 + (x58 + (x53 + (x49 + x46)))))))));
890 let x238: u64 = (x216 + (x199 + (x183 + (x168 + (x154 + (x141 + (x65 + (x59 + (x54 + x50)))))))));
891 let x239: u64 = (x217 + (x200 + (x184 + (x169 + (x155 + (x73 + (x66 + (x60 + (x55 + x51)))))))));
892 let x240: u64 = (x218 + (x201 + (x185 + (x170 + (x156 + (x82 + (x74 + (x67 + (x61 + x56)))))))));
893 let x241: u64 = (x219 + (x202 + (x186 + (x171 + (x92 + (x83 + (x75 + (x68 + (x62 + x57)))))))));
894 let x242: u64 = (x220 + (x203 + (x187 + (x172 + (x103 + (x93 + (x84 + (x76 + (x69 + x63)))))))));
895 let x243: u64 = (x221 + (x204 + (x188 + (x115 + (x104 + (x94 + (x85 + (x77 + (x70 + x64)))))))));
896 let x244: u64 = (x222 + (x205 + (x189 + (x128 + (x116 + (x105 + (x95 + (x86 + (x78 + x71)))))))));
897 let x245: u64 = (x223 + (x206 + (x142 + (x129 + (x117 + (x106 + (x96 + (x87 + (x79 + x72)))))))));
898 let x246: u64 = (x224 + (x207 + (x157 + (x143 + (x130 + (x118 + (x107 + (x97 + (x88 + x80)))))))));
899 let x247: u64 = (x225 + (x173 + (x158 + (x144 + (x131 + (x119 + (x108 + (x98 + (x89 + x81)))))))));
900 let x248: u64 = (x228 + x247);
901 let x249: u64 = (x248 >> 27);
902 let x250: u32 = ((x248 & (0x7ffffff as u64)) as u32);
903 let x251: u64 = (x249 + x246);
904 let x252: u64 = (x251 >> 28);
905 let x253: u32 = ((x251 & (0xfffffff as u64)) as u32);
906 let x254: u64 = (x252 + x245);
907 let x255: u64 = (x254 >> 27);
908 let x256: u32 = ((x254 & (0x7ffffff as u64)) as u32);
909 let x257: u64 = (x255 + x244);
910 let x258: u64 = (x257 >> 28);
911 let x259: u32 = ((x257 & (0xfffffff as u64)) as u32);
912 let x260: u64 = (x258 + x243);
913 let x261: u64 = (x260 >> 27);
914 let x262: u32 = ((x260 & (0x7ffffff as u64)) as u32);
915 let x263: u64 = (x261 + x242);
916 let x264: u64 = (x263 >> 27);
917 let x265: u32 = ((x263 & (0x7ffffff as u64)) as u32);
918 let x266: u64 = (x264 + x241);
919 let x267: u64 = (x266 >> 28);
920 let x268: u32 = ((x266 & (0xfffffff as u64)) as u32);
921 let x269: u64 = (x267 + x240);
922 let x270: u64 = (x269 >> 27);
923 let x271: u32 = ((x269 & (0x7ffffff as u64)) as u32);
924 let x272: u64 = (x270 + x239);
925 let x273: u64 = (x272 >> 28);
926 let x274: u32 = ((x272 & (0xfffffff as u64)) as u32);
927 let x275: u64 = (x273 + x238);
928 let x276: u64 = (x275 >> 27);
929 let x277: u32 = ((x275 & (0x7ffffff as u64)) as u32);
930 let x278: u64 = (x276 + x237);
931 let x279: u64 = (x278 >> 28);
932 let x280: u32 = ((x278 & (0xfffffff as u64)) as u32);
933 let x281: u64 = (x279 + x236);
934 let x282: u64 = (x281 >> 27);
935 let x283: u32 = ((x281 & (0x7ffffff as u64)) as u32);
936 let x284: u64 = (x282 + x235);
937 let x285: u64 = (x284 >> 27);
938 let x286: u32 = ((x284 & (0x7ffffff as u64)) as u32);
939 let x287: u64 = (x285 + x234);
940 let x288: u64 = (x287 >> 28);
941 let x289: u32 = ((x287 & (0xfffffff as u64)) as u32);
942 let x290: u64 = (x288 + x233);
943 let x291: u64 = (x290 >> 27);
944 let x292: u32 = ((x290 & (0x7ffffff as u64)) as u32);
945 let x293: u64 = (x291 + x232);
946 let x294: u64 = (x293 >> 28);
947 let x295: u32 = ((x293 & (0xfffffff as u64)) as u32);
948 let x296: u64 = (x294 + x231);
949 let x297: u64 = (x296 >> 27);
950 let x298: u32 = ((x296 & (0x7ffffff as u64)) as u32);
951 let x299: u64 = (x297 + x230);
952 let x300: u64 = (x299 >> 27);
953 let x301: u32 = ((x299 & (0x7ffffff as u64)) as u32);
954 let x302: u64 = ((x229 as u64) + x300);
955 let x303: u32 = ((x302 >> 28) as u32);
956 let x304: u32 = ((x302 & (0xfffffff as u64)) as u32);
957 let x305: u32 = (x303 + x250);
958 let x306: fiat_p521_u1 = ((x305 >> 27) as fiat_p521_u1);
959 let x307: u32 = (x305 & 0x7ffffff);
960 let x308: u32 = ((x306 as u32) + x253);
961 out1[0] = x304;
962 out1[1] = x307;
963 out1[2] = x308;
964 out1[3] = x256;
965 out1[4] = x259;
966 out1[5] = x262;
967 out1[6] = x265;
968 out1[7] = x268;
969 out1[8] = x271;
970 out1[9] = x274;
971 out1[10] = x277;
972 out1[11] = x280;
973 out1[12] = x283;
974 out1[13] = x286;
975 out1[14] = x289;
976 out1[15] = x292;
977 out1[16] = x295;
978 out1[17] = x298;
979 out1[18] = x301;
980}
981
982#[inline]
988pub fn fiat_p521_carry(out1: &mut fiat_p521_tight_field_element, arg1: &fiat_p521_loose_field_element) {
989 let x1: u32 = (arg1[0]);
990 let x2: u32 = ((x1 >> 28) + (arg1[1]));
991 let x3: u32 = ((x2 >> 27) + (arg1[2]));
992 let x4: u32 = ((x3 >> 28) + (arg1[3]));
993 let x5: u32 = ((x4 >> 27) + (arg1[4]));
994 let x6: u32 = ((x5 >> 28) + (arg1[5]));
995 let x7: u32 = ((x6 >> 27) + (arg1[6]));
996 let x8: u32 = ((x7 >> 27) + (arg1[7]));
997 let x9: u32 = ((x8 >> 28) + (arg1[8]));
998 let x10: u32 = ((x9 >> 27) + (arg1[9]));
999 let x11: u32 = ((x10 >> 28) + (arg1[10]));
1000 let x12: u32 = ((x11 >> 27) + (arg1[11]));
1001 let x13: u32 = ((x12 >> 28) + (arg1[12]));
1002 let x14: u32 = ((x13 >> 27) + (arg1[13]));
1003 let x15: u32 = ((x14 >> 27) + (arg1[14]));
1004 let x16: u32 = ((x15 >> 28) + (arg1[15]));
1005 let x17: u32 = ((x16 >> 27) + (arg1[16]));
1006 let x18: u32 = ((x17 >> 28) + (arg1[17]));
1007 let x19: u32 = ((x18 >> 27) + (arg1[18]));
1008 let x20: u32 = ((x1 & 0xfffffff) + (x19 >> 27));
1009 let x21: u32 = ((((x20 >> 28) as fiat_p521_u1) as u32) + (x2 & 0x7ffffff));
1010 let x22: u32 = (x20 & 0xfffffff);
1011 let x23: u32 = (x21 & 0x7ffffff);
1012 let x24: u32 = ((((x21 >> 27) as fiat_p521_u1) as u32) + (x3 & 0xfffffff));
1013 let x25: u32 = (x4 & 0x7ffffff);
1014 let x26: u32 = (x5 & 0xfffffff);
1015 let x27: u32 = (x6 & 0x7ffffff);
1016 let x28: u32 = (x7 & 0x7ffffff);
1017 let x29: u32 = (x8 & 0xfffffff);
1018 let x30: u32 = (x9 & 0x7ffffff);
1019 let x31: u32 = (x10 & 0xfffffff);
1020 let x32: u32 = (x11 & 0x7ffffff);
1021 let x33: u32 = (x12 & 0xfffffff);
1022 let x34: u32 = (x13 & 0x7ffffff);
1023 let x35: u32 = (x14 & 0x7ffffff);
1024 let x36: u32 = (x15 & 0xfffffff);
1025 let x37: u32 = (x16 & 0x7ffffff);
1026 let x38: u32 = (x17 & 0xfffffff);
1027 let x39: u32 = (x18 & 0x7ffffff);
1028 let x40: u32 = (x19 & 0x7ffffff);
1029 out1[0] = x22;
1030 out1[1] = x23;
1031 out1[2] = x24;
1032 out1[3] = x25;
1033 out1[4] = x26;
1034 out1[5] = x27;
1035 out1[6] = x28;
1036 out1[7] = x29;
1037 out1[8] = x30;
1038 out1[9] = x31;
1039 out1[10] = x32;
1040 out1[11] = x33;
1041 out1[12] = x34;
1042 out1[13] = x35;
1043 out1[14] = x36;
1044 out1[15] = x37;
1045 out1[16] = x38;
1046 out1[17] = x39;
1047 out1[18] = x40;
1048}
1049
1050#[inline]
1056pub fn fiat_p521_add(out1: &mut fiat_p521_loose_field_element, arg1: &fiat_p521_tight_field_element, arg2: &fiat_p521_tight_field_element) {
1057 let x1: u32 = ((arg1[0]) + (arg2[0]));
1058 let x2: u32 = ((arg1[1]) + (arg2[1]));
1059 let x3: u32 = ((arg1[2]) + (arg2[2]));
1060 let x4: u32 = ((arg1[3]) + (arg2[3]));
1061 let x5: u32 = ((arg1[4]) + (arg2[4]));
1062 let x6: u32 = ((arg1[5]) + (arg2[5]));
1063 let x7: u32 = ((arg1[6]) + (arg2[6]));
1064 let x8: u32 = ((arg1[7]) + (arg2[7]));
1065 let x9: u32 = ((arg1[8]) + (arg2[8]));
1066 let x10: u32 = ((arg1[9]) + (arg2[9]));
1067 let x11: u32 = ((arg1[10]) + (arg2[10]));
1068 let x12: u32 = ((arg1[11]) + (arg2[11]));
1069 let x13: u32 = ((arg1[12]) + (arg2[12]));
1070 let x14: u32 = ((arg1[13]) + (arg2[13]));
1071 let x15: u32 = ((arg1[14]) + (arg2[14]));
1072 let x16: u32 = ((arg1[15]) + (arg2[15]));
1073 let x17: u32 = ((arg1[16]) + (arg2[16]));
1074 let x18: u32 = ((arg1[17]) + (arg2[17]));
1075 let x19: u32 = ((arg1[18]) + (arg2[18]));
1076 out1[0] = x1;
1077 out1[1] = x2;
1078 out1[2] = x3;
1079 out1[3] = x4;
1080 out1[4] = x5;
1081 out1[5] = x6;
1082 out1[6] = x7;
1083 out1[7] = x8;
1084 out1[8] = x9;
1085 out1[9] = x10;
1086 out1[10] = x11;
1087 out1[11] = x12;
1088 out1[12] = x13;
1089 out1[13] = x14;
1090 out1[14] = x15;
1091 out1[15] = x16;
1092 out1[16] = x17;
1093 out1[17] = x18;
1094 out1[18] = x19;
1095}
1096
1097#[inline]
1103pub fn fiat_p521_sub(out1: &mut fiat_p521_loose_field_element, arg1: &fiat_p521_tight_field_element, arg2: &fiat_p521_tight_field_element) {
1104 let x1: u32 = ((0x1ffffffe + (arg1[0])) - (arg2[0]));
1105 let x2: u32 = ((0xffffffe + (arg1[1])) - (arg2[1]));
1106 let x3: u32 = ((0x1ffffffe + (arg1[2])) - (arg2[2]));
1107 let x4: u32 = ((0xffffffe + (arg1[3])) - (arg2[3]));
1108 let x5: u32 = ((0x1ffffffe + (arg1[4])) - (arg2[4]));
1109 let x6: u32 = ((0xffffffe + (arg1[5])) - (arg2[5]));
1110 let x7: u32 = ((0xffffffe + (arg1[6])) - (arg2[6]));
1111 let x8: u32 = ((0x1ffffffe + (arg1[7])) - (arg2[7]));
1112 let x9: u32 = ((0xffffffe + (arg1[8])) - (arg2[8]));
1113 let x10: u32 = ((0x1ffffffe + (arg1[9])) - (arg2[9]));
1114 let x11: u32 = ((0xffffffe + (arg1[10])) - (arg2[10]));
1115 let x12: u32 = ((0x1ffffffe + (arg1[11])) - (arg2[11]));
1116 let x13: u32 = ((0xffffffe + (arg1[12])) - (arg2[12]));
1117 let x14: u32 = ((0xffffffe + (arg1[13])) - (arg2[13]));
1118 let x15: u32 = ((0x1ffffffe + (arg1[14])) - (arg2[14]));
1119 let x16: u32 = ((0xffffffe + (arg1[15])) - (arg2[15]));
1120 let x17: u32 = ((0x1ffffffe + (arg1[16])) - (arg2[16]));
1121 let x18: u32 = ((0xffffffe + (arg1[17])) - (arg2[17]));
1122 let x19: u32 = ((0xffffffe + (arg1[18])) - (arg2[18]));
1123 out1[0] = x1;
1124 out1[1] = x2;
1125 out1[2] = x3;
1126 out1[3] = x4;
1127 out1[4] = x5;
1128 out1[5] = x6;
1129 out1[6] = x7;
1130 out1[7] = x8;
1131 out1[8] = x9;
1132 out1[9] = x10;
1133 out1[10] = x11;
1134 out1[11] = x12;
1135 out1[12] = x13;
1136 out1[13] = x14;
1137 out1[14] = x15;
1138 out1[15] = x16;
1139 out1[16] = x17;
1140 out1[17] = x18;
1141 out1[18] = x19;
1142}
1143
1144#[inline]
1150pub fn fiat_p521_opp(out1: &mut fiat_p521_loose_field_element, arg1: &fiat_p521_tight_field_element) {
1151 let x1: u32 = (0x1ffffffe - (arg1[0]));
1152 let x2: u32 = (0xffffffe - (arg1[1]));
1153 let x3: u32 = (0x1ffffffe - (arg1[2]));
1154 let x4: u32 = (0xffffffe - (arg1[3]));
1155 let x5: u32 = (0x1ffffffe - (arg1[4]));
1156 let x6: u32 = (0xffffffe - (arg1[5]));
1157 let x7: u32 = (0xffffffe - (arg1[6]));
1158 let x8: u32 = (0x1ffffffe - (arg1[7]));
1159 let x9: u32 = (0xffffffe - (arg1[8]));
1160 let x10: u32 = (0x1ffffffe - (arg1[9]));
1161 let x11: u32 = (0xffffffe - (arg1[10]));
1162 let x12: u32 = (0x1ffffffe - (arg1[11]));
1163 let x13: u32 = (0xffffffe - (arg1[12]));
1164 let x14: u32 = (0xffffffe - (arg1[13]));
1165 let x15: u32 = (0x1ffffffe - (arg1[14]));
1166 let x16: u32 = (0xffffffe - (arg1[15]));
1167 let x17: u32 = (0x1ffffffe - (arg1[16]));
1168 let x18: u32 = (0xffffffe - (arg1[17]));
1169 let x19: u32 = (0xffffffe - (arg1[18]));
1170 out1[0] = x1;
1171 out1[1] = x2;
1172 out1[2] = x3;
1173 out1[3] = x4;
1174 out1[4] = x5;
1175 out1[5] = x6;
1176 out1[6] = x7;
1177 out1[7] = x8;
1178 out1[8] = x9;
1179 out1[9] = x10;
1180 out1[10] = x11;
1181 out1[11] = x12;
1182 out1[12] = x13;
1183 out1[13] = x14;
1184 out1[14] = x15;
1185 out1[15] = x16;
1186 out1[16] = x17;
1187 out1[17] = x18;
1188 out1[18] = x19;
1189}
1190
1191#[inline]
1203pub fn fiat_p521_selectznz(out1: &mut [u32; 19], arg1: fiat_p521_u1, arg2: &[u32; 19], arg3: &[u32; 19]) {
1204 let mut x1: u32 = 0;
1205 fiat_p521_cmovznz_u32(&mut x1, arg1, (arg2[0]), (arg3[0]));
1206 let mut x2: u32 = 0;
1207 fiat_p521_cmovznz_u32(&mut x2, arg1, (arg2[1]), (arg3[1]));
1208 let mut x3: u32 = 0;
1209 fiat_p521_cmovznz_u32(&mut x3, arg1, (arg2[2]), (arg3[2]));
1210 let mut x4: u32 = 0;
1211 fiat_p521_cmovznz_u32(&mut x4, arg1, (arg2[3]), (arg3[3]));
1212 let mut x5: u32 = 0;
1213 fiat_p521_cmovznz_u32(&mut x5, arg1, (arg2[4]), (arg3[4]));
1214 let mut x6: u32 = 0;
1215 fiat_p521_cmovznz_u32(&mut x6, arg1, (arg2[5]), (arg3[5]));
1216 let mut x7: u32 = 0;
1217 fiat_p521_cmovznz_u32(&mut x7, arg1, (arg2[6]), (arg3[6]));
1218 let mut x8: u32 = 0;
1219 fiat_p521_cmovznz_u32(&mut x8, arg1, (arg2[7]), (arg3[7]));
1220 let mut x9: u32 = 0;
1221 fiat_p521_cmovznz_u32(&mut x9, arg1, (arg2[8]), (arg3[8]));
1222 let mut x10: u32 = 0;
1223 fiat_p521_cmovznz_u32(&mut x10, arg1, (arg2[9]), (arg3[9]));
1224 let mut x11: u32 = 0;
1225 fiat_p521_cmovznz_u32(&mut x11, arg1, (arg2[10]), (arg3[10]));
1226 let mut x12: u32 = 0;
1227 fiat_p521_cmovznz_u32(&mut x12, arg1, (arg2[11]), (arg3[11]));
1228 let mut x13: u32 = 0;
1229 fiat_p521_cmovznz_u32(&mut x13, arg1, (arg2[12]), (arg3[12]));
1230 let mut x14: u32 = 0;
1231 fiat_p521_cmovznz_u32(&mut x14, arg1, (arg2[13]), (arg3[13]));
1232 let mut x15: u32 = 0;
1233 fiat_p521_cmovznz_u32(&mut x15, arg1, (arg2[14]), (arg3[14]));
1234 let mut x16: u32 = 0;
1235 fiat_p521_cmovznz_u32(&mut x16, arg1, (arg2[15]), (arg3[15]));
1236 let mut x17: u32 = 0;
1237 fiat_p521_cmovznz_u32(&mut x17, arg1, (arg2[16]), (arg3[16]));
1238 let mut x18: u32 = 0;
1239 fiat_p521_cmovznz_u32(&mut x18, arg1, (arg2[17]), (arg3[17]));
1240 let mut x19: u32 = 0;
1241 fiat_p521_cmovznz_u32(&mut x19, arg1, (arg2[18]), (arg3[18]));
1242 out1[0] = x1;
1243 out1[1] = x2;
1244 out1[2] = x3;
1245 out1[3] = x4;
1246 out1[4] = x5;
1247 out1[5] = x6;
1248 out1[6] = x7;
1249 out1[7] = x8;
1250 out1[8] = x9;
1251 out1[9] = x10;
1252 out1[10] = x11;
1253 out1[11] = x12;
1254 out1[12] = x13;
1255 out1[13] = x14;
1256 out1[14] = x15;
1257 out1[15] = x16;
1258 out1[16] = x17;
1259 out1[17] = x18;
1260 out1[18] = x19;
1261}
1262
1263#[inline]
1271pub fn fiat_p521_to_bytes(out1: &mut [u8; 66], arg1: &fiat_p521_tight_field_element) {
1272 let mut x1: u32 = 0;
1273 let mut x2: fiat_p521_u1 = 0;
1274 fiat_p521_subborrowx_u28(&mut x1, &mut x2, 0x0, (arg1[0]), 0xfffffff);
1275 let mut x3: u32 = 0;
1276 let mut x4: fiat_p521_u1 = 0;
1277 fiat_p521_subborrowx_u27(&mut x3, &mut x4, x2, (arg1[1]), 0x7ffffff);
1278 let mut x5: u32 = 0;
1279 let mut x6: fiat_p521_u1 = 0;
1280 fiat_p521_subborrowx_u28(&mut x5, &mut x6, x4, (arg1[2]), 0xfffffff);
1281 let mut x7: u32 = 0;
1282 let mut x8: fiat_p521_u1 = 0;
1283 fiat_p521_subborrowx_u27(&mut x7, &mut x8, x6, (arg1[3]), 0x7ffffff);
1284 let mut x9: u32 = 0;
1285 let mut x10: fiat_p521_u1 = 0;
1286 fiat_p521_subborrowx_u28(&mut x9, &mut x10, x8, (arg1[4]), 0xfffffff);
1287 let mut x11: u32 = 0;
1288 let mut x12: fiat_p521_u1 = 0;
1289 fiat_p521_subborrowx_u27(&mut x11, &mut x12, x10, (arg1[5]), 0x7ffffff);
1290 let mut x13: u32 = 0;
1291 let mut x14: fiat_p521_u1 = 0;
1292 fiat_p521_subborrowx_u27(&mut x13, &mut x14, x12, (arg1[6]), 0x7ffffff);
1293 let mut x15: u32 = 0;
1294 let mut x16: fiat_p521_u1 = 0;
1295 fiat_p521_subborrowx_u28(&mut x15, &mut x16, x14, (arg1[7]), 0xfffffff);
1296 let mut x17: u32 = 0;
1297 let mut x18: fiat_p521_u1 = 0;
1298 fiat_p521_subborrowx_u27(&mut x17, &mut x18, x16, (arg1[8]), 0x7ffffff);
1299 let mut x19: u32 = 0;
1300 let mut x20: fiat_p521_u1 = 0;
1301 fiat_p521_subborrowx_u28(&mut x19, &mut x20, x18, (arg1[9]), 0xfffffff);
1302 let mut x21: u32 = 0;
1303 let mut x22: fiat_p521_u1 = 0;
1304 fiat_p521_subborrowx_u27(&mut x21, &mut x22, x20, (arg1[10]), 0x7ffffff);
1305 let mut x23: u32 = 0;
1306 let mut x24: fiat_p521_u1 = 0;
1307 fiat_p521_subborrowx_u28(&mut x23, &mut x24, x22, (arg1[11]), 0xfffffff);
1308 let mut x25: u32 = 0;
1309 let mut x26: fiat_p521_u1 = 0;
1310 fiat_p521_subborrowx_u27(&mut x25, &mut x26, x24, (arg1[12]), 0x7ffffff);
1311 let mut x27: u32 = 0;
1312 let mut x28: fiat_p521_u1 = 0;
1313 fiat_p521_subborrowx_u27(&mut x27, &mut x28, x26, (arg1[13]), 0x7ffffff);
1314 let mut x29: u32 = 0;
1315 let mut x30: fiat_p521_u1 = 0;
1316 fiat_p521_subborrowx_u28(&mut x29, &mut x30, x28, (arg1[14]), 0xfffffff);
1317 let mut x31: u32 = 0;
1318 let mut x32: fiat_p521_u1 = 0;
1319 fiat_p521_subborrowx_u27(&mut x31, &mut x32, x30, (arg1[15]), 0x7ffffff);
1320 let mut x33: u32 = 0;
1321 let mut x34: fiat_p521_u1 = 0;
1322 fiat_p521_subborrowx_u28(&mut x33, &mut x34, x32, (arg1[16]), 0xfffffff);
1323 let mut x35: u32 = 0;
1324 let mut x36: fiat_p521_u1 = 0;
1325 fiat_p521_subborrowx_u27(&mut x35, &mut x36, x34, (arg1[17]), 0x7ffffff);
1326 let mut x37: u32 = 0;
1327 let mut x38: fiat_p521_u1 = 0;
1328 fiat_p521_subborrowx_u27(&mut x37, &mut x38, x36, (arg1[18]), 0x7ffffff);
1329 let mut x39: u32 = 0;
1330 fiat_p521_cmovznz_u32(&mut x39, x38, (0x0 as u32), 0xffffffff);
1331 let mut x40: u32 = 0;
1332 let mut x41: fiat_p521_u1 = 0;
1333 fiat_p521_addcarryx_u28(&mut x40, &mut x41, 0x0, x1, (x39 & 0xfffffff));
1334 let mut x42: u32 = 0;
1335 let mut x43: fiat_p521_u1 = 0;
1336 fiat_p521_addcarryx_u27(&mut x42, &mut x43, x41, x3, (x39 & 0x7ffffff));
1337 let mut x44: u32 = 0;
1338 let mut x45: fiat_p521_u1 = 0;
1339 fiat_p521_addcarryx_u28(&mut x44, &mut x45, x43, x5, (x39 & 0xfffffff));
1340 let mut x46: u32 = 0;
1341 let mut x47: fiat_p521_u1 = 0;
1342 fiat_p521_addcarryx_u27(&mut x46, &mut x47, x45, x7, (x39 & 0x7ffffff));
1343 let mut x48: u32 = 0;
1344 let mut x49: fiat_p521_u1 = 0;
1345 fiat_p521_addcarryx_u28(&mut x48, &mut x49, x47, x9, (x39 & 0xfffffff));
1346 let mut x50: u32 = 0;
1347 let mut x51: fiat_p521_u1 = 0;
1348 fiat_p521_addcarryx_u27(&mut x50, &mut x51, x49, x11, (x39 & 0x7ffffff));
1349 let mut x52: u32 = 0;
1350 let mut x53: fiat_p521_u1 = 0;
1351 fiat_p521_addcarryx_u27(&mut x52, &mut x53, x51, x13, (x39 & 0x7ffffff));
1352 let mut x54: u32 = 0;
1353 let mut x55: fiat_p521_u1 = 0;
1354 fiat_p521_addcarryx_u28(&mut x54, &mut x55, x53, x15, (x39 & 0xfffffff));
1355 let mut x56: u32 = 0;
1356 let mut x57: fiat_p521_u1 = 0;
1357 fiat_p521_addcarryx_u27(&mut x56, &mut x57, x55, x17, (x39 & 0x7ffffff));
1358 let mut x58: u32 = 0;
1359 let mut x59: fiat_p521_u1 = 0;
1360 fiat_p521_addcarryx_u28(&mut x58, &mut x59, x57, x19, (x39 & 0xfffffff));
1361 let mut x60: u32 = 0;
1362 let mut x61: fiat_p521_u1 = 0;
1363 fiat_p521_addcarryx_u27(&mut x60, &mut x61, x59, x21, (x39 & 0x7ffffff));
1364 let mut x62: u32 = 0;
1365 let mut x63: fiat_p521_u1 = 0;
1366 fiat_p521_addcarryx_u28(&mut x62, &mut x63, x61, x23, (x39 & 0xfffffff));
1367 let mut x64: u32 = 0;
1368 let mut x65: fiat_p521_u1 = 0;
1369 fiat_p521_addcarryx_u27(&mut x64, &mut x65, x63, x25, (x39 & 0x7ffffff));
1370 let mut x66: u32 = 0;
1371 let mut x67: fiat_p521_u1 = 0;
1372 fiat_p521_addcarryx_u27(&mut x66, &mut x67, x65, x27, (x39 & 0x7ffffff));
1373 let mut x68: u32 = 0;
1374 let mut x69: fiat_p521_u1 = 0;
1375 fiat_p521_addcarryx_u28(&mut x68, &mut x69, x67, x29, (x39 & 0xfffffff));
1376 let mut x70: u32 = 0;
1377 let mut x71: fiat_p521_u1 = 0;
1378 fiat_p521_addcarryx_u27(&mut x70, &mut x71, x69, x31, (x39 & 0x7ffffff));
1379 let mut x72: u32 = 0;
1380 let mut x73: fiat_p521_u1 = 0;
1381 fiat_p521_addcarryx_u28(&mut x72, &mut x73, x71, x33, (x39 & 0xfffffff));
1382 let mut x74: u32 = 0;
1383 let mut x75: fiat_p521_u1 = 0;
1384 fiat_p521_addcarryx_u27(&mut x74, &mut x75, x73, x35, (x39 & 0x7ffffff));
1385 let mut x76: u32 = 0;
1386 let mut x77: fiat_p521_u1 = 0;
1387 fiat_p521_addcarryx_u27(&mut x76, &mut x77, x75, x37, (x39 & 0x7ffffff));
1388 let x78: u64 = ((x76 as u64) << 6);
1389 let x79: u32 = (x74 << 3);
1390 let x80: u64 = ((x72 as u64) << 7);
1391 let x81: u32 = (x70 << 4);
1392 let x82: u32 = (x66 << 5);
1393 let x83: u32 = (x64 << 2);
1394 let x84: u64 = ((x62 as u64) << 6);
1395 let x85: u32 = (x60 << 3);
1396 let x86: u64 = ((x58 as u64) << 7);
1397 let x87: u32 = (x56 << 4);
1398 let x88: u32 = (x52 << 5);
1399 let x89: u32 = (x50 << 2);
1400 let x90: u64 = ((x48 as u64) << 6);
1401 let x91: u32 = (x46 << 3);
1402 let x92: u64 = ((x44 as u64) << 7);
1403 let x93: u32 = (x42 << 4);
1404 let x94: u8 = ((x40 & (0xff as u32)) as u8);
1405 let x95: u32 = (x40 >> 8);
1406 let x96: u8 = ((x95 & (0xff as u32)) as u8);
1407 let x97: u32 = (x95 >> 8);
1408 let x98: u8 = ((x97 & (0xff as u32)) as u8);
1409 let x99: u8 = ((x97 >> 8) as u8);
1410 let x100: u32 = (x93 + (x99 as u32));
1411 let x101: u8 = ((x100 & (0xff as u32)) as u8);
1412 let x102: u32 = (x100 >> 8);
1413 let x103: u8 = ((x102 & (0xff as u32)) as u8);
1414 let x104: u32 = (x102 >> 8);
1415 let x105: u8 = ((x104 & (0xff as u32)) as u8);
1416 let x106: u8 = ((x104 >> 8) as u8);
1417 let x107: u64 = (x92 + (x106 as u64));
1418 let x108: u8 = ((x107 & (0xff as u64)) as u8);
1419 let x109: u32 = ((x107 >> 8) as u32);
1420 let x110: u8 = ((x109 & (0xff as u32)) as u8);
1421 let x111: u32 = (x109 >> 8);
1422 let x112: u8 = ((x111 & (0xff as u32)) as u8);
1423 let x113: u32 = (x111 >> 8);
1424 let x114: u8 = ((x113 & (0xff as u32)) as u8);
1425 let x115: u8 = ((x113 >> 8) as u8);
1426 let x116: u32 = (x91 + (x115 as u32));
1427 let x117: u8 = ((x116 & (0xff as u32)) as u8);
1428 let x118: u32 = (x116 >> 8);
1429 let x119: u8 = ((x118 & (0xff as u32)) as u8);
1430 let x120: u32 = (x118 >> 8);
1431 let x121: u8 = ((x120 & (0xff as u32)) as u8);
1432 let x122: u8 = ((x120 >> 8) as u8);
1433 let x123: u64 = (x90 + (x122 as u64));
1434 let x124: u8 = ((x123 & (0xff as u64)) as u8);
1435 let x125: u32 = ((x123 >> 8) as u32);
1436 let x126: u8 = ((x125 & (0xff as u32)) as u8);
1437 let x127: u32 = (x125 >> 8);
1438 let x128: u8 = ((x127 & (0xff as u32)) as u8);
1439 let x129: u32 = (x127 >> 8);
1440 let x130: u8 = ((x129 & (0xff as u32)) as u8);
1441 let x131: u8 = ((x129 >> 8) as u8);
1442 let x132: u32 = (x89 + (x131 as u32));
1443 let x133: u8 = ((x132 & (0xff as u32)) as u8);
1444 let x134: u32 = (x132 >> 8);
1445 let x135: u8 = ((x134 & (0xff as u32)) as u8);
1446 let x136: u32 = (x134 >> 8);
1447 let x137: u8 = ((x136 & (0xff as u32)) as u8);
1448 let x138: u8 = ((x136 >> 8) as u8);
1449 let x139: u32 = (x88 + (x138 as u32));
1450 let x140: u8 = ((x139 & (0xff as u32)) as u8);
1451 let x141: u32 = (x139 >> 8);
1452 let x142: u8 = ((x141 & (0xff as u32)) as u8);
1453 let x143: u32 = (x141 >> 8);
1454 let x144: u8 = ((x143 & (0xff as u32)) as u8);
1455 let x145: u8 = ((x143 >> 8) as u8);
1456 let x146: u8 = ((x54 & (0xff as u32)) as u8);
1457 let x147: u32 = (x54 >> 8);
1458 let x148: u8 = ((x147 & (0xff as u32)) as u8);
1459 let x149: u32 = (x147 >> 8);
1460 let x150: u8 = ((x149 & (0xff as u32)) as u8);
1461 let x151: u8 = ((x149 >> 8) as u8);
1462 let x152: u32 = (x87 + (x151 as u32));
1463 let x153: u8 = ((x152 & (0xff as u32)) as u8);
1464 let x154: u32 = (x152 >> 8);
1465 let x155: u8 = ((x154 & (0xff as u32)) as u8);
1466 let x156: u32 = (x154 >> 8);
1467 let x157: u8 = ((x156 & (0xff as u32)) as u8);
1468 let x158: u8 = ((x156 >> 8) as u8);
1469 let x159: u64 = (x86 + (x158 as u64));
1470 let x160: u8 = ((x159 & (0xff as u64)) as u8);
1471 let x161: u32 = ((x159 >> 8) as u32);
1472 let x162: u8 = ((x161 & (0xff as u32)) as u8);
1473 let x163: u32 = (x161 >> 8);
1474 let x164: u8 = ((x163 & (0xff as u32)) as u8);
1475 let x165: u32 = (x163 >> 8);
1476 let x166: u8 = ((x165 & (0xff as u32)) as u8);
1477 let x167: u8 = ((x165 >> 8) as u8);
1478 let x168: u32 = (x85 + (x167 as u32));
1479 let x169: u8 = ((x168 & (0xff as u32)) as u8);
1480 let x170: u32 = (x168 >> 8);
1481 let x171: u8 = ((x170 & (0xff as u32)) as u8);
1482 let x172: u32 = (x170 >> 8);
1483 let x173: u8 = ((x172 & (0xff as u32)) as u8);
1484 let x174: u8 = ((x172 >> 8) as u8);
1485 let x175: u64 = (x84 + (x174 as u64));
1486 let x176: u8 = ((x175 & (0xff as u64)) as u8);
1487 let x177: u32 = ((x175 >> 8) as u32);
1488 let x178: u8 = ((x177 & (0xff as u32)) as u8);
1489 let x179: u32 = (x177 >> 8);
1490 let x180: u8 = ((x179 & (0xff as u32)) as u8);
1491 let x181: u32 = (x179 >> 8);
1492 let x182: u8 = ((x181 & (0xff as u32)) as u8);
1493 let x183: u8 = ((x181 >> 8) as u8);
1494 let x184: u32 = (x83 + (x183 as u32));
1495 let x185: u8 = ((x184 & (0xff as u32)) as u8);
1496 let x186: u32 = (x184 >> 8);
1497 let x187: u8 = ((x186 & (0xff as u32)) as u8);
1498 let x188: u32 = (x186 >> 8);
1499 let x189: u8 = ((x188 & (0xff as u32)) as u8);
1500 let x190: u8 = ((x188 >> 8) as u8);
1501 let x191: u32 = (x82 + (x190 as u32));
1502 let x192: u8 = ((x191 & (0xff as u32)) as u8);
1503 let x193: u32 = (x191 >> 8);
1504 let x194: u8 = ((x193 & (0xff as u32)) as u8);
1505 let x195: u32 = (x193 >> 8);
1506 let x196: u8 = ((x195 & (0xff as u32)) as u8);
1507 let x197: u8 = ((x195 >> 8) as u8);
1508 let x198: u8 = ((x68 & (0xff as u32)) as u8);
1509 let x199: u32 = (x68 >> 8);
1510 let x200: u8 = ((x199 & (0xff as u32)) as u8);
1511 let x201: u32 = (x199 >> 8);
1512 let x202: u8 = ((x201 & (0xff as u32)) as u8);
1513 let x203: u8 = ((x201 >> 8) as u8);
1514 let x204: u32 = (x81 + (x203 as u32));
1515 let x205: u8 = ((x204 & (0xff as u32)) as u8);
1516 let x206: u32 = (x204 >> 8);
1517 let x207: u8 = ((x206 & (0xff as u32)) as u8);
1518 let x208: u32 = (x206 >> 8);
1519 let x209: u8 = ((x208 & (0xff as u32)) as u8);
1520 let x210: u8 = ((x208 >> 8) as u8);
1521 let x211: u64 = (x80 + (x210 as u64));
1522 let x212: u8 = ((x211 & (0xff as u64)) as u8);
1523 let x213: u32 = ((x211 >> 8) as u32);
1524 let x214: u8 = ((x213 & (0xff as u32)) as u8);
1525 let x215: u32 = (x213 >> 8);
1526 let x216: u8 = ((x215 & (0xff as u32)) as u8);
1527 let x217: u32 = (x215 >> 8);
1528 let x218: u8 = ((x217 & (0xff as u32)) as u8);
1529 let x219: u8 = ((x217 >> 8) as u8);
1530 let x220: u32 = (x79 + (x219 as u32));
1531 let x221: u8 = ((x220 & (0xff as u32)) as u8);
1532 let x222: u32 = (x220 >> 8);
1533 let x223: u8 = ((x222 & (0xff as u32)) as u8);
1534 let x224: u32 = (x222 >> 8);
1535 let x225: u8 = ((x224 & (0xff as u32)) as u8);
1536 let x226: u8 = ((x224 >> 8) as u8);
1537 let x227: u64 = (x78 + (x226 as u64));
1538 let x228: u8 = ((x227 & (0xff as u64)) as u8);
1539 let x229: u32 = ((x227 >> 8) as u32);
1540 let x230: u8 = ((x229 & (0xff as u32)) as u8);
1541 let x231: u32 = (x229 >> 8);
1542 let x232: u8 = ((x231 & (0xff as u32)) as u8);
1543 let x233: u32 = (x231 >> 8);
1544 let x234: u8 = ((x233 & (0xff as u32)) as u8);
1545 let x235: fiat_p521_u1 = ((x233 >> 8) as fiat_p521_u1);
1546 out1[0] = x94;
1547 out1[1] = x96;
1548 out1[2] = x98;
1549 out1[3] = x101;
1550 out1[4] = x103;
1551 out1[5] = x105;
1552 out1[6] = x108;
1553 out1[7] = x110;
1554 out1[8] = x112;
1555 out1[9] = x114;
1556 out1[10] = x117;
1557 out1[11] = x119;
1558 out1[12] = x121;
1559 out1[13] = x124;
1560 out1[14] = x126;
1561 out1[15] = x128;
1562 out1[16] = x130;
1563 out1[17] = x133;
1564 out1[18] = x135;
1565 out1[19] = x137;
1566 out1[20] = x140;
1567 out1[21] = x142;
1568 out1[22] = x144;
1569 out1[23] = x145;
1570 out1[24] = x146;
1571 out1[25] = x148;
1572 out1[26] = x150;
1573 out1[27] = x153;
1574 out1[28] = x155;
1575 out1[29] = x157;
1576 out1[30] = x160;
1577 out1[31] = x162;
1578 out1[32] = x164;
1579 out1[33] = x166;
1580 out1[34] = x169;
1581 out1[35] = x171;
1582 out1[36] = x173;
1583 out1[37] = x176;
1584 out1[38] = x178;
1585 out1[39] = x180;
1586 out1[40] = x182;
1587 out1[41] = x185;
1588 out1[42] = x187;
1589 out1[43] = x189;
1590 out1[44] = x192;
1591 out1[45] = x194;
1592 out1[46] = x196;
1593 out1[47] = x197;
1594 out1[48] = x198;
1595 out1[49] = x200;
1596 out1[50] = x202;
1597 out1[51] = x205;
1598 out1[52] = x207;
1599 out1[53] = x209;
1600 out1[54] = x212;
1601 out1[55] = x214;
1602 out1[56] = x216;
1603 out1[57] = x218;
1604 out1[58] = x221;
1605 out1[59] = x223;
1606 out1[60] = x225;
1607 out1[61] = x228;
1608 out1[62] = x230;
1609 out1[63] = x232;
1610 out1[64] = x234;
1611 out1[65] = (x235 as u8);
1612}
1613
1614#[inline]
1622pub fn fiat_p521_from_bytes(out1: &mut fiat_p521_tight_field_element, arg1: &[u8; 66]) {
1623 let x1: u32 = ((((arg1[65]) as fiat_p521_u1) as u32) << 26);
1624 let x2: u32 = (((arg1[64]) as u32) << 18);
1625 let x3: u32 = (((arg1[63]) as u32) << 10);
1626 let x4: u32 = (((arg1[62]) as u32) << 2);
1627 let x5: u32 = (((arg1[61]) as u32) << 21);
1628 let x6: u32 = (((arg1[60]) as u32) << 13);
1629 let x7: u32 = (((arg1[59]) as u32) << 5);
1630 let x8: u64 = (((arg1[58]) as u64) << 25);
1631 let x9: u32 = (((arg1[57]) as u32) << 17);
1632 let x10: u32 = (((arg1[56]) as u32) << 9);
1633 let x11: u32 = (((arg1[55]) as u32) * (0x2 as u32));
1634 let x12: u32 = (((arg1[54]) as u32) << 20);
1635 let x13: u32 = (((arg1[53]) as u32) << 12);
1636 let x14: u32 = (((arg1[52]) as u32) << 4);
1637 let x15: u32 = (((arg1[51]) as u32) << 24);
1638 let x16: u32 = (((arg1[50]) as u32) << 16);
1639 let x17: u32 = (((arg1[49]) as u32) << 8);
1640 let x18: u8 = (arg1[48]);
1641 let x19: u32 = (((arg1[47]) as u32) << 19);
1642 let x20: u32 = (((arg1[46]) as u32) << 11);
1643 let x21: u32 = (((arg1[45]) as u32) << 3);
1644 let x22: u32 = (((arg1[44]) as u32) << 22);
1645 let x23: u32 = (((arg1[43]) as u32) << 14);
1646 let x24: u32 = (((arg1[42]) as u32) << 6);
1647 let x25: u64 = (((arg1[41]) as u64) << 26);
1648 let x26: u32 = (((arg1[40]) as u32) << 18);
1649 let x27: u32 = (((arg1[39]) as u32) << 10);
1650 let x28: u32 = (((arg1[38]) as u32) << 2);
1651 let x29: u32 = (((arg1[37]) as u32) << 21);
1652 let x30: u32 = (((arg1[36]) as u32) << 13);
1653 let x31: u32 = (((arg1[35]) as u32) << 5);
1654 let x32: u64 = (((arg1[34]) as u64) << 25);
1655 let x33: u32 = (((arg1[33]) as u32) << 17);
1656 let x34: u32 = (((arg1[32]) as u32) << 9);
1657 let x35: u32 = (((arg1[31]) as u32) * (0x2 as u32));
1658 let x36: u32 = (((arg1[30]) as u32) << 20);
1659 let x37: u32 = (((arg1[29]) as u32) << 12);
1660 let x38: u32 = (((arg1[28]) as u32) << 4);
1661 let x39: u32 = (((arg1[27]) as u32) << 24);
1662 let x40: u32 = (((arg1[26]) as u32) << 16);
1663 let x41: u32 = (((arg1[25]) as u32) << 8);
1664 let x42: u8 = (arg1[24]);
1665 let x43: u32 = (((arg1[23]) as u32) << 19);
1666 let x44: u32 = (((arg1[22]) as u32) << 11);
1667 let x45: u32 = (((arg1[21]) as u32) << 3);
1668 let x46: u32 = (((arg1[20]) as u32) << 22);
1669 let x47: u32 = (((arg1[19]) as u32) << 14);
1670 let x48: u32 = (((arg1[18]) as u32) << 6);
1671 let x49: u64 = (((arg1[17]) as u64) << 26);
1672 let x50: u32 = (((arg1[16]) as u32) << 18);
1673 let x51: u32 = (((arg1[15]) as u32) << 10);
1674 let x52: u32 = (((arg1[14]) as u32) << 2);
1675 let x53: u32 = (((arg1[13]) as u32) << 21);
1676 let x54: u32 = (((arg1[12]) as u32) << 13);
1677 let x55: u32 = (((arg1[11]) as u32) << 5);
1678 let x56: u64 = (((arg1[10]) as u64) << 25);
1679 let x57: u32 = (((arg1[9]) as u32) << 17);
1680 let x58: u32 = (((arg1[8]) as u32) << 9);
1681 let x59: u32 = (((arg1[7]) as u32) * (0x2 as u32));
1682 let x60: u32 = (((arg1[6]) as u32) << 20);
1683 let x61: u32 = (((arg1[5]) as u32) << 12);
1684 let x62: u32 = (((arg1[4]) as u32) << 4);
1685 let x63: u32 = (((arg1[3]) as u32) << 24);
1686 let x64: u32 = (((arg1[2]) as u32) << 16);
1687 let x65: u32 = (((arg1[1]) as u32) << 8);
1688 let x66: u8 = (arg1[0]);
1689 let x67: u32 = (x65 + (x66 as u32));
1690 let x68: u32 = (x64 + x67);
1691 let x69: u32 = (x63 + x68);
1692 let x70: u32 = (x69 & 0xfffffff);
1693 let x71: u8 = ((x69 >> 28) as u8);
1694 let x72: u32 = (x62 + (x71 as u32));
1695 let x73: u32 = (x61 + x72);
1696 let x74: u32 = (x60 + x73);
1697 let x75: u32 = (x74 & 0x7ffffff);
1698 let x76: fiat_p521_u1 = ((x74 >> 27) as fiat_p521_u1);
1699 let x77: u32 = (x59 + (x76 as u32));
1700 let x78: u32 = (x58 + x77);
1701 let x79: u32 = (x57 + x78);
1702 let x80: u64 = (x56 + (x79 as u64));
1703 let x81: u32 = ((x80 & (0xfffffff as u64)) as u32);
1704 let x82: u8 = ((x80 >> 28) as u8);
1705 let x83: u32 = (x55 + (x82 as u32));
1706 let x84: u32 = (x54 + x83);
1707 let x85: u32 = (x53 + x84);
1708 let x86: u32 = (x85 & 0x7ffffff);
1709 let x87: u8 = ((x85 >> 27) as u8);
1710 let x88: u32 = (x52 + (x87 as u32));
1711 let x89: u32 = (x51 + x88);
1712 let x90: u32 = (x50 + x89);
1713 let x91: u64 = (x49 + (x90 as u64));
1714 let x92: u32 = ((x91 & (0xfffffff as u64)) as u32);
1715 let x93: u8 = ((x91 >> 28) as u8);
1716 let x94: u32 = (x48 + (x93 as u32));
1717 let x95: u32 = (x47 + x94);
1718 let x96: u32 = (x46 + x95);
1719 let x97: u32 = (x96 & 0x7ffffff);
1720 let x98: u8 = ((x96 >> 27) as u8);
1721 let x99: u32 = (x45 + (x98 as u32));
1722 let x100: u32 = (x44 + x99);
1723 let x101: u32 = (x43 + x100);
1724 let x102: u32 = (x41 + (x42 as u32));
1725 let x103: u32 = (x40 + x102);
1726 let x104: u32 = (x39 + x103);
1727 let x105: u32 = (x104 & 0xfffffff);
1728 let x106: u8 = ((x104 >> 28) as u8);
1729 let x107: u32 = (x38 + (x106 as u32));
1730 let x108: u32 = (x37 + x107);
1731 let x109: u32 = (x36 + x108);
1732 let x110: u32 = (x109 & 0x7ffffff);
1733 let x111: fiat_p521_u1 = ((x109 >> 27) as fiat_p521_u1);
1734 let x112: u32 = (x35 + (x111 as u32));
1735 let x113: u32 = (x34 + x112);
1736 let x114: u32 = (x33 + x113);
1737 let x115: u64 = (x32 + (x114 as u64));
1738 let x116: u32 = ((x115 & (0xfffffff as u64)) as u32);
1739 let x117: u8 = ((x115 >> 28) as u8);
1740 let x118: u32 = (x31 + (x117 as u32));
1741 let x119: u32 = (x30 + x118);
1742 let x120: u32 = (x29 + x119);
1743 let x121: u32 = (x120 & 0x7ffffff);
1744 let x122: u8 = ((x120 >> 27) as u8);
1745 let x123: u32 = (x28 + (x122 as u32));
1746 let x124: u32 = (x27 + x123);
1747 let x125: u32 = (x26 + x124);
1748 let x126: u64 = (x25 + (x125 as u64));
1749 let x127: u32 = ((x126 & (0xfffffff as u64)) as u32);
1750 let x128: u8 = ((x126 >> 28) as u8);
1751 let x129: u32 = (x24 + (x128 as u32));
1752 let x130: u32 = (x23 + x129);
1753 let x131: u32 = (x22 + x130);
1754 let x132: u32 = (x131 & 0x7ffffff);
1755 let x133: u8 = ((x131 >> 27) as u8);
1756 let x134: u32 = (x21 + (x133 as u32));
1757 let x135: u32 = (x20 + x134);
1758 let x136: u32 = (x19 + x135);
1759 let x137: u32 = (x17 + (x18 as u32));
1760 let x138: u32 = (x16 + x137);
1761 let x139: u32 = (x15 + x138);
1762 let x140: u32 = (x139 & 0xfffffff);
1763 let x141: u8 = ((x139 >> 28) as u8);
1764 let x142: u32 = (x14 + (x141 as u32));
1765 let x143: u32 = (x13 + x142);
1766 let x144: u32 = (x12 + x143);
1767 let x145: u32 = (x144 & 0x7ffffff);
1768 let x146: fiat_p521_u1 = ((x144 >> 27) as fiat_p521_u1);
1769 let x147: u32 = (x11 + (x146 as u32));
1770 let x148: u32 = (x10 + x147);
1771 let x149: u32 = (x9 + x148);
1772 let x150: u64 = (x8 + (x149 as u64));
1773 let x151: u32 = ((x150 & (0xfffffff as u64)) as u32);
1774 let x152: u8 = ((x150 >> 28) as u8);
1775 let x153: u32 = (x7 + (x152 as u32));
1776 let x154: u32 = (x6 + x153);
1777 let x155: u32 = (x5 + x154);
1778 let x156: u32 = (x155 & 0x7ffffff);
1779 let x157: u8 = ((x155 >> 27) as u8);
1780 let x158: u32 = (x4 + (x157 as u32));
1781 let x159: u32 = (x3 + x158);
1782 let x160: u32 = (x2 + x159);
1783 let x161: u32 = (x1 + x160);
1784 out1[0] = x70;
1785 out1[1] = x75;
1786 out1[2] = x81;
1787 out1[3] = x86;
1788 out1[4] = x92;
1789 out1[5] = x97;
1790 out1[6] = x101;
1791 out1[7] = x105;
1792 out1[8] = x110;
1793 out1[9] = x116;
1794 out1[10] = x121;
1795 out1[11] = x127;
1796 out1[12] = x132;
1797 out1[13] = x136;
1798 out1[14] = x140;
1799 out1[15] = x145;
1800 out1[16] = x151;
1801 out1[17] = x156;
1802 out1[18] = x161;
1803}
1804
1805#[inline]
1811pub fn fiat_p521_relax(out1: &mut fiat_p521_loose_field_element, arg1: &fiat_p521_tight_field_element) {
1812 let x1: u32 = (arg1[0]);
1813 let x2: u32 = (arg1[1]);
1814 let x3: u32 = (arg1[2]);
1815 let x4: u32 = (arg1[3]);
1816 let x5: u32 = (arg1[4]);
1817 let x6: u32 = (arg1[5]);
1818 let x7: u32 = (arg1[6]);
1819 let x8: u32 = (arg1[7]);
1820 let x9: u32 = (arg1[8]);
1821 let x10: u32 = (arg1[9]);
1822 let x11: u32 = (arg1[10]);
1823 let x12: u32 = (arg1[11]);
1824 let x13: u32 = (arg1[12]);
1825 let x14: u32 = (arg1[13]);
1826 let x15: u32 = (arg1[14]);
1827 let x16: u32 = (arg1[15]);
1828 let x17: u32 = (arg1[16]);
1829 let x18: u32 = (arg1[17]);
1830 let x19: u32 = (arg1[18]);
1831 out1[0] = x1;
1832 out1[1] = x2;
1833 out1[2] = x3;
1834 out1[3] = x4;
1835 out1[4] = x5;
1836 out1[5] = x6;
1837 out1[6] = x7;
1838 out1[7] = x8;
1839 out1[8] = x9;
1840 out1[9] = x10;
1841 out1[10] = x11;
1842 out1[11] = x12;
1843 out1[12] = x13;
1844 out1[13] = x14;
1845 out1[14] = x15;
1846 out1[15] = x16;
1847 out1[16] = x17;
1848 out1[17] = x18;
1849 out1[18] = x19;
1850}