forked from mit-plv/fiat-crypto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
secp256k1_dettman_32.c
356 lines (351 loc) · 16.2 KB
/
secp256k1_dettman_32.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
/* Autogenerated: 'src/ExtractionOCaml/dettman_multiplication' --inline --static --use-value-barrier secp256k1_dettman 32 10 22 6 '2^256 - 4294968273' mul square */
/* curve description: secp256k1_dettman */
/* machine_wordsize = 32 (from "32") */
/* requested operations: mul, square */
/* n = 10 (from "10") */
/* last_limb_width = 22 (from "22") */
/* last_reduction = 6 (from "6") */
/* s-c = 2^256 - [(1, 4294968273)] (from "2^256 - 4294968273") */
/* inbounds_multiplier: None (from "") */
/* */
/* Computed values: */
/* */
/* */
#include <stdint.h>
#if defined(__GNUC__) || defined(__clang__)
# define FIAT_SECP256K1_DETTMAN_FIAT_INLINE __inline__
#else
# define FIAT_SECP256K1_DETTMAN_FIAT_INLINE
#endif
#if (-1 & 3) != 3
#error "This code only works on a two's complement system"
#endif
/*
* The function fiat_secp256k1_dettman_mul multiplies two field elements.
*
* Postconditions:
* eval out1 mod 115792089237316195423570985008687907853269984665640564039457584007908834671663 = (eval arg1 * eval arg2) mod 115792089237316195423570985008687907853269984665640564039457584007908834671663
*
* Input Bounds:
* arg1: [[0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7ffffe]]
* arg2: [[0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7ffffe]]
* Output Bounds:
* out1: [[0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x5fffff]]
*/
static FIAT_SECP256K1_DETTMAN_FIAT_INLINE void fiat_secp256k1_dettman_mul(uint32_t out1[10], const uint32_t arg1[10], const uint32_t arg2[10]) {
uint64_t x1;
uint32_t x2;
uint32_t x3;
uint64_t x4;
uint32_t x5;
uint32_t x6;
uint64_t x7;
uint32_t x8;
uint32_t x9;
uint64_t x10;
uint32_t x11;
uint32_t x12;
uint64_t x13;
uint32_t x14;
uint32_t x15;
uint64_t x16;
uint32_t x17;
uint32_t x18;
uint32_t x19;
uint32_t x20;
uint64_t x21;
uint32_t x22;
uint32_t x23;
uint64_t x24;
uint32_t x25;
uint32_t x26;
uint64_t x27;
uint32_t x28;
uint32_t x29;
uint64_t x30;
uint32_t x31;
uint32_t x32;
uint64_t x33;
uint32_t x34;
uint32_t x35;
uint64_t x36;
uint32_t x37;
uint32_t x38;
uint64_t x39;
uint32_t x40;
uint32_t x41;
uint64_t x42;
uint32_t x43;
uint32_t x44;
uint64_t x45;
uint32_t x46;
uint32_t x47;
uint64_t x48;
uint32_t x49;
uint32_t x50;
uint64_t x51;
uint32_t x52;
uint32_t x53;
uint64_t x54;
uint32_t x55;
uint32_t x56;
uint64_t x57;
uint32_t x58;
uint32_t x59;
uint64_t x60;
uint32_t x61;
uint32_t x62;
uint64_t x63;
uint32_t x64;
uint32_t x65;
uint32_t x66;
x1 = (((uint64_t)(arg1[8]) * (arg2[9])) + ((uint64_t)(arg1[9]) * (arg2[8])));
x2 = (uint32_t)(x1 >> 26);
x3 = (uint32_t)(x1 & UINT32_C(0x3ffffff));
x4 = ((((uint64_t)(arg1[0]) * (arg2[7])) + (((uint64_t)(arg1[1]) * (arg2[6])) + (((uint64_t)(arg1[2]) * (arg2[5])) + (((uint64_t)(arg1[3]) * (arg2[4])) + (((uint64_t)(arg1[4]) * (arg2[3])) + (((uint64_t)(arg1[5]) * (arg2[2])) + (((uint64_t)(arg1[6]) * (arg2[1])) + ((uint64_t)(arg1[7]) * (arg2[0]))))))))) + ((uint64_t)x3 * UINT16_C(0x3d10)));
x5 = (uint32_t)(x4 >> 26);
x6 = (uint32_t)(x4 & UINT32_C(0x3ffffff));
x7 = (x2 + ((uint64_t)(arg1[9]) * (arg2[9])));
x8 = (uint32_t)(x7 >> 32);
x9 = (uint32_t)(x7 & UINT32_C(0xffffffff));
x10 = ((x5 + ((((uint64_t)(arg1[0]) * (arg2[8])) + (((uint64_t)(arg1[1]) * (arg2[7])) + (((uint64_t)(arg1[2]) * (arg2[6])) + (((uint64_t)(arg1[3]) * (arg2[5])) + (((uint64_t)(arg1[4]) * (arg2[4])) + (((uint64_t)(arg1[5]) * (arg2[3])) + (((uint64_t)(arg1[6]) * (arg2[2])) + (((uint64_t)(arg1[7]) * (arg2[1])) + ((uint64_t)(arg1[8]) * (arg2[0])))))))))) + ((uint64_t)x3 << 10))) + ((uint64_t)x9 * UINT16_C(0x3d10)));
x11 = (uint32_t)(x10 >> 26);
x12 = (uint32_t)(x10 & UINT32_C(0x3ffffff));
x13 = ((x11 + ((((uint64_t)(arg1[0]) * (arg2[9])) + (((uint64_t)(arg1[1]) * (arg2[8])) + (((uint64_t)(arg1[2]) * (arg2[7])) + (((uint64_t)(arg1[3]) * (arg2[6])) + (((uint64_t)(arg1[4]) * (arg2[5])) + (((uint64_t)(arg1[5]) * (arg2[4])) + (((uint64_t)(arg1[6]) * (arg2[3])) + (((uint64_t)(arg1[7]) * (arg2[2])) + (((uint64_t)(arg1[8]) * (arg2[1])) + ((uint64_t)(arg1[9]) * (arg2[0]))))))))))) + ((uint64_t)x9 << 10))) + ((uint64_t)x8 * UINT32_C(0xf4400)));
x14 = (uint32_t)(x13 >> 26);
x15 = (uint32_t)(x13 & UINT32_C(0x3ffffff));
x16 = (x14 + ((((uint64_t)(arg1[1]) * (arg2[9])) + (((uint64_t)(arg1[2]) * (arg2[8])) + (((uint64_t)(arg1[3]) * (arg2[7])) + (((uint64_t)(arg1[4]) * (arg2[6])) + (((uint64_t)(arg1[5]) * (arg2[5])) + (((uint64_t)(arg1[6]) * (arg2[4])) + (((uint64_t)(arg1[7]) * (arg2[3])) + (((uint64_t)(arg1[8]) * (arg2[2])) + ((uint64_t)(arg1[9]) * (arg2[1])))))))))) + (x8 << 16)));
x17 = (uint32_t)(x16 >> 26);
x18 = (uint32_t)(x16 & UINT32_C(0x3ffffff));
x19 = (x15 >> 22);
x20 = (x15 & UINT32_C(0x3fffff));
x21 = (((uint64_t)(arg1[0]) * (arg2[0])) + ((uint64_t)(x19 + (x18 << 4)) * UINT16_C(0x3d1)));
x22 = (uint32_t)(x21 >> 26);
x23 = (uint32_t)(x21 & UINT32_C(0x3ffffff));
x24 = (x17 + (((uint64_t)(arg1[2]) * (arg2[9])) + (((uint64_t)(arg1[3]) * (arg2[8])) + (((uint64_t)(arg1[4]) * (arg2[7])) + (((uint64_t)(arg1[5]) * (arg2[6])) + (((uint64_t)(arg1[6]) * (arg2[5])) + (((uint64_t)(arg1[7]) * (arg2[4])) + (((uint64_t)(arg1[8]) * (arg2[3])) + ((uint64_t)(arg1[9]) * (arg2[2]))))))))));
x25 = (uint32_t)(x24 >> 26);
x26 = (uint32_t)(x24 & UINT32_C(0x3ffffff));
x27 = ((x22 + ((((uint64_t)(arg1[0]) * (arg2[1])) + ((uint64_t)(arg1[1]) * (arg2[0]))) + ((uint64_t)(x19 + (x18 << 4)) << 6))) + ((uint64_t)x26 * UINT16_C(0x3d10)));
x28 = (uint32_t)(x27 >> 26);
x29 = (uint32_t)(x27 & UINT32_C(0x3ffffff));
x30 = (x25 + (((uint64_t)(arg1[3]) * (arg2[9])) + (((uint64_t)(arg1[4]) * (arg2[8])) + (((uint64_t)(arg1[5]) * (arg2[7])) + (((uint64_t)(arg1[6]) * (arg2[6])) + (((uint64_t)(arg1[7]) * (arg2[5])) + (((uint64_t)(arg1[8]) * (arg2[4])) + ((uint64_t)(arg1[9]) * (arg2[3])))))))));
x31 = (uint32_t)(x30 >> 26);
x32 = (uint32_t)(x30 & UINT32_C(0x3ffffff));
x33 = ((x28 + ((((uint64_t)(arg1[0]) * (arg2[2])) + (((uint64_t)(arg1[1]) * (arg2[1])) + ((uint64_t)(arg1[2]) * (arg2[0])))) + ((uint64_t)x26 << 10))) + ((uint64_t)x32 * UINT16_C(0x3d10)));
x34 = (uint32_t)(x33 >> 26);
x35 = (uint32_t)(x33 & UINT32_C(0x3ffffff));
x36 = (x31 + (((uint64_t)(arg1[4]) * (arg2[9])) + (((uint64_t)(arg1[5]) * (arg2[8])) + (((uint64_t)(arg1[6]) * (arg2[7])) + (((uint64_t)(arg1[7]) * (arg2[6])) + (((uint64_t)(arg1[8]) * (arg2[5])) + ((uint64_t)(arg1[9]) * (arg2[4]))))))));
x37 = (uint32_t)(x36 >> 26);
x38 = (uint32_t)(x36 & UINT32_C(0x3ffffff));
x39 = ((x34 + ((((uint64_t)(arg1[0]) * (arg2[3])) + (((uint64_t)(arg1[1]) * (arg2[2])) + (((uint64_t)(arg1[2]) * (arg2[1])) + ((uint64_t)(arg1[3]) * (arg2[0]))))) + ((uint64_t)x32 << 10))) + ((uint64_t)x38 * UINT16_C(0x3d10)));
x40 = (uint32_t)(x39 >> 26);
x41 = (uint32_t)(x39 & UINT32_C(0x3ffffff));
x42 = (x37 + (((uint64_t)(arg1[5]) * (arg2[9])) + (((uint64_t)(arg1[6]) * (arg2[8])) + (((uint64_t)(arg1[7]) * (arg2[7])) + (((uint64_t)(arg1[8]) * (arg2[6])) + ((uint64_t)(arg1[9]) * (arg2[5])))))));
x43 = (uint32_t)(x42 >> 26);
x44 = (uint32_t)(x42 & UINT32_C(0x3ffffff));
x45 = ((x40 + ((((uint64_t)(arg1[0]) * (arg2[4])) + (((uint64_t)(arg1[1]) * (arg2[3])) + (((uint64_t)(arg1[2]) * (arg2[2])) + (((uint64_t)(arg1[3]) * (arg2[1])) + ((uint64_t)(arg1[4]) * (arg2[0])))))) + ((uint64_t)x38 << 10))) + ((uint64_t)x44 * UINT16_C(0x3d10)));
x46 = (uint32_t)(x45 >> 26);
x47 = (uint32_t)(x45 & UINT32_C(0x3ffffff));
x48 = (x43 + (((uint64_t)(arg1[6]) * (arg2[9])) + (((uint64_t)(arg1[7]) * (arg2[8])) + (((uint64_t)(arg1[8]) * (arg2[7])) + ((uint64_t)(arg1[9]) * (arg2[6]))))));
x49 = (uint32_t)(x48 >> 26);
x50 = (uint32_t)(x48 & UINT32_C(0x3ffffff));
x51 = ((x46 + ((((uint64_t)(arg1[0]) * (arg2[5])) + (((uint64_t)(arg1[1]) * (arg2[4])) + (((uint64_t)(arg1[2]) * (arg2[3])) + (((uint64_t)(arg1[3]) * (arg2[2])) + (((uint64_t)(arg1[4]) * (arg2[1])) + ((uint64_t)(arg1[5]) * (arg2[0]))))))) + ((uint64_t)x44 << 10))) + ((uint64_t)x50 * UINT16_C(0x3d10)));
x52 = (uint32_t)(x51 >> 26);
x53 = (uint32_t)(x51 & UINT32_C(0x3ffffff));
x54 = (x49 + (((uint64_t)(arg1[7]) * (arg2[9])) + (((uint64_t)(arg1[8]) * (arg2[8])) + ((uint64_t)(arg1[9]) * (arg2[7])))));
x55 = (uint32_t)(x54 >> 32);
x56 = (uint32_t)(x54 & UINT32_C(0xffffffff));
x57 = ((x52 + ((((uint64_t)(arg1[0]) * (arg2[6])) + (((uint64_t)(arg1[1]) * (arg2[5])) + (((uint64_t)(arg1[2]) * (arg2[4])) + (((uint64_t)(arg1[3]) * (arg2[3])) + (((uint64_t)(arg1[4]) * (arg2[2])) + (((uint64_t)(arg1[5]) * (arg2[1])) + ((uint64_t)(arg1[6]) * (arg2[0])))))))) + ((uint64_t)x50 << 10))) + ((uint64_t)x56 * UINT16_C(0x3d10)));
x58 = (uint32_t)(x57 >> 26);
x59 = (uint32_t)(x57 & UINT32_C(0x3ffffff));
x60 = ((x58 + (x6 + ((uint64_t)x56 << 10))) + ((uint64_t)x55 * UINT32_C(0xf4400)));
x61 = (uint32_t)(x60 >> 26);
x62 = (uint32_t)(x60 & UINT32_C(0x3ffffff));
x63 = (x61 + (x12 + ((uint64_t)x55 << 16)));
x64 = (uint32_t)(x63 >> 26);
x65 = (uint32_t)(x63 & UINT32_C(0x3ffffff));
x66 = (x64 + x20);
out1[0] = x23;
out1[1] = x29;
out1[2] = x35;
out1[3] = x41;
out1[4] = x47;
out1[5] = x53;
out1[6] = x59;
out1[7] = x62;
out1[8] = x65;
out1[9] = x66;
}
/*
* The function fiat_secp256k1_dettman_square squares a field element.
*
* Postconditions:
* eval out1 mod 115792089237316195423570985008687907853269984665640564039457584007908834671663 = (eval arg1 * eval arg1) mod 115792089237316195423570985008687907853269984665640564039457584007908834671663
*
* Input Bounds:
* arg1: [[0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7ffffe]]
* Output Bounds:
* out1: [[0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x7fffffe], [0x0 ~> 0x5fffff]]
*/
static FIAT_SECP256K1_DETTMAN_FIAT_INLINE void fiat_secp256k1_dettman_square(uint32_t out1[10], const uint32_t arg1[10]) {
uint32_t x1;
uint32_t x2;
uint32_t x3;
uint32_t x4;
uint32_t x5;
uint32_t x6;
uint32_t x7;
uint32_t x8;
uint32_t x9;
uint64_t x10;
uint32_t x11;
uint32_t x12;
uint64_t x13;
uint32_t x14;
uint32_t x15;
uint64_t x16;
uint32_t x17;
uint32_t x18;
uint64_t x19;
uint32_t x20;
uint32_t x21;
uint64_t x22;
uint32_t x23;
uint32_t x24;
uint64_t x25;
uint32_t x26;
uint32_t x27;
uint32_t x28;
uint32_t x29;
uint64_t x30;
uint32_t x31;
uint32_t x32;
uint64_t x33;
uint32_t x34;
uint32_t x35;
uint64_t x36;
uint32_t x37;
uint32_t x38;
uint64_t x39;
uint32_t x40;
uint32_t x41;
uint64_t x42;
uint32_t x43;
uint32_t x44;
uint64_t x45;
uint32_t x46;
uint32_t x47;
uint64_t x48;
uint32_t x49;
uint32_t x50;
uint64_t x51;
uint32_t x52;
uint32_t x53;
uint64_t x54;
uint32_t x55;
uint32_t x56;
uint64_t x57;
uint32_t x58;
uint32_t x59;
uint64_t x60;
uint32_t x61;
uint32_t x62;
uint64_t x63;
uint32_t x64;
uint32_t x65;
uint64_t x66;
uint32_t x67;
uint32_t x68;
uint64_t x69;
uint32_t x70;
uint32_t x71;
uint64_t x72;
uint32_t x73;
uint32_t x74;
uint32_t x75;
x1 = ((arg1[8]) * 0x2);
x2 = ((arg1[7]) * 0x2);
x3 = ((arg1[6]) * 0x2);
x4 = ((arg1[5]) * 0x2);
x5 = ((arg1[4]) * 0x2);
x6 = ((arg1[3]) * 0x2);
x7 = ((arg1[2]) * 0x2);
x8 = ((arg1[1]) * 0x2);
x9 = ((arg1[0]) * 0x2);
x10 = ((uint64_t)x1 * (arg1[9]));
x11 = (uint32_t)(x10 >> 26);
x12 = (uint32_t)(x10 & UINT32_C(0x3ffffff));
x13 = ((((uint64_t)x9 * (arg1[7])) + (((uint64_t)x8 * (arg1[6])) + (((uint64_t)x7 * (arg1[5])) + ((uint64_t)x6 * (arg1[4]))))) + ((uint64_t)x12 * UINT16_C(0x3d10)));
x14 = (uint32_t)(x13 >> 26);
x15 = (uint32_t)(x13 & UINT32_C(0x3ffffff));
x16 = (x11 + ((uint64_t)(arg1[9]) * (arg1[9])));
x17 = (uint32_t)(x16 >> 32);
x18 = (uint32_t)(x16 & UINT32_C(0xffffffff));
x19 = ((x14 + ((((uint64_t)x9 * (arg1[8])) + (((uint64_t)x8 * (arg1[7])) + (((uint64_t)x7 * (arg1[6])) + (((uint64_t)x6 * (arg1[5])) + ((uint64_t)(arg1[4]) * (arg1[4])))))) + ((uint64_t)x12 << 10))) + ((uint64_t)x18 * UINT16_C(0x3d10)));
x20 = (uint32_t)(x19 >> 26);
x21 = (uint32_t)(x19 & UINT32_C(0x3ffffff));
x22 = ((x20 + ((((uint64_t)x9 * (arg1[9])) + (((uint64_t)x8 * (arg1[8])) + (((uint64_t)x7 * (arg1[7])) + (((uint64_t)x6 * (arg1[6])) + ((uint64_t)x5 * (arg1[5])))))) + ((uint64_t)x18 << 10))) + ((uint64_t)x17 * UINT32_C(0xf4400)));
x23 = (uint32_t)(x22 >> 26);
x24 = (uint32_t)(x22 & UINT32_C(0x3ffffff));
x25 = (x23 + ((((uint64_t)x8 * (arg1[9])) + (((uint64_t)x7 * (arg1[8])) + (((uint64_t)x6 * (arg1[7])) + (((uint64_t)x5 * (arg1[6])) + ((uint64_t)(arg1[5]) * (arg1[5])))))) + (x17 << 16)));
x26 = (uint32_t)(x25 >> 26);
x27 = (uint32_t)(x25 & UINT32_C(0x3ffffff));
x28 = (x24 >> 22);
x29 = (x24 & UINT32_C(0x3fffff));
x30 = (((uint64_t)(arg1[0]) * (arg1[0])) + ((uint64_t)(x28 + (x27 << 4)) * UINT16_C(0x3d1)));
x31 = (uint32_t)(x30 >> 26);
x32 = (uint32_t)(x30 & UINT32_C(0x3ffffff));
x33 = (x26 + (((uint64_t)x7 * (arg1[9])) + (((uint64_t)x6 * (arg1[8])) + (((uint64_t)x5 * (arg1[7])) + ((uint64_t)x4 * (arg1[6]))))));
x34 = (uint32_t)(x33 >> 26);
x35 = (uint32_t)(x33 & UINT32_C(0x3ffffff));
x36 = ((x31 + (((uint64_t)x9 * (arg1[1])) + ((uint64_t)(x28 + (x27 << 4)) << 6))) + ((uint64_t)x35 * UINT16_C(0x3d10)));
x37 = (uint32_t)(x36 >> 26);
x38 = (uint32_t)(x36 & UINT32_C(0x3ffffff));
x39 = (x34 + (((uint64_t)x6 * (arg1[9])) + (((uint64_t)x5 * (arg1[8])) + (((uint64_t)x4 * (arg1[7])) + ((uint64_t)(arg1[6]) * (arg1[6]))))));
x40 = (uint32_t)(x39 >> 26);
x41 = (uint32_t)(x39 & UINT32_C(0x3ffffff));
x42 = ((x37 + ((((uint64_t)x9 * (arg1[2])) + ((uint64_t)(arg1[1]) * (arg1[1]))) + ((uint64_t)x35 << 10))) + ((uint64_t)x41 * UINT16_C(0x3d10)));
x43 = (uint32_t)(x42 >> 26);
x44 = (uint32_t)(x42 & UINT32_C(0x3ffffff));
x45 = (x40 + (((uint64_t)x5 * (arg1[9])) + (((uint64_t)x4 * (arg1[8])) + ((uint64_t)x3 * (arg1[7])))));
x46 = (uint32_t)(x45 >> 26);
x47 = (uint32_t)(x45 & UINT32_C(0x3ffffff));
x48 = ((x43 + ((((uint64_t)x9 * (arg1[3])) + ((uint64_t)x8 * (arg1[2]))) + ((uint64_t)x41 << 10))) + ((uint64_t)x47 * UINT16_C(0x3d10)));
x49 = (uint32_t)(x48 >> 26);
x50 = (uint32_t)(x48 & UINT32_C(0x3ffffff));
x51 = (x46 + (((uint64_t)x4 * (arg1[9])) + (((uint64_t)x3 * (arg1[8])) + ((uint64_t)(arg1[7]) * (arg1[7])))));
x52 = (uint32_t)(x51 >> 26);
x53 = (uint32_t)(x51 & UINT32_C(0x3ffffff));
x54 = ((x49 + ((((uint64_t)x9 * (arg1[4])) + (((uint64_t)x8 * (arg1[3])) + ((uint64_t)(arg1[2]) * (arg1[2])))) + ((uint64_t)x47 << 10))) + ((uint64_t)x53 * UINT16_C(0x3d10)));
x55 = (uint32_t)(x54 >> 26);
x56 = (uint32_t)(x54 & UINT32_C(0x3ffffff));
x57 = (x52 + (((uint64_t)x3 * (arg1[9])) + ((uint64_t)x2 * (arg1[8]))));
x58 = (uint32_t)(x57 >> 26);
x59 = (uint32_t)(x57 & UINT32_C(0x3ffffff));
x60 = ((x55 + ((((uint64_t)x9 * (arg1[5])) + (((uint64_t)x8 * (arg1[4])) + ((uint64_t)x7 * (arg1[3])))) + ((uint64_t)x53 << 10))) + ((uint64_t)x59 * UINT16_C(0x3d10)));
x61 = (uint32_t)(x60 >> 26);
x62 = (uint32_t)(x60 & UINT32_C(0x3ffffff));
x63 = (x58 + (((uint64_t)x2 * (arg1[9])) + ((uint64_t)(arg1[8]) * (arg1[8]))));
x64 = (uint32_t)(x63 >> 32);
x65 = (uint32_t)(x63 & UINT32_C(0xffffffff));
x66 = ((x61 + ((((uint64_t)x9 * (arg1[6])) + (((uint64_t)x8 * (arg1[5])) + (((uint64_t)x7 * (arg1[4])) + ((uint64_t)(arg1[3]) * (arg1[3]))))) + ((uint64_t)x59 << 10))) + ((uint64_t)x65 * UINT16_C(0x3d10)));
x67 = (uint32_t)(x66 >> 26);
x68 = (uint32_t)(x66 & UINT32_C(0x3ffffff));
x69 = ((x67 + (x15 + ((uint64_t)x65 << 10))) + ((uint64_t)x64 * UINT32_C(0xf4400)));
x70 = (uint32_t)(x69 >> 26);
x71 = (uint32_t)(x69 & UINT32_C(0x3ffffff));
x72 = (x70 + (x21 + ((uint64_t)x64 << 16)));
x73 = (uint32_t)(x72 >> 26);
x74 = (uint32_t)(x72 & UINT32_C(0x3ffffff));
x75 = (x73 + x29);
out1[0] = x32;
out1[1] = x38;
out1[2] = x44;
out1[3] = x50;
out1[4] = x56;
out1[5] = x62;
out1[6] = x68;
out1[7] = x71;
out1[8] = x74;
out1[9] = x75;
}