diff --git a/crates/verified-garbage-asm-aarch64/assembly/internal/vg_ffdh_parameter_candidate_sieved.s b/crates/verified-garbage-asm-aarch64/assembly/internal/vg_ffdh_parameter_candidate_sieved.s index a0e994707b3..095e3d9bf95 100644 --- a/crates/verified-garbage-asm-aarch64/assembly/internal/vg_ffdh_parameter_candidate_sieved.s +++ b/crates/verified-garbage-asm-aarch64/assembly/internal/vg_ffdh_parameter_candidate_sieved.s @@ -135,37 +135,44 @@ vg_ffdh_parameter_candidate_sieved: ldr x12, [x0, #48] ldr x11, [x0, #224] add x16, x0, #256 - lsl x5, x12, #3 - add x10, x16, x5 + ldr x2, [x16, #0] add x14, x12, #0 - ldr x9, [x0, #160] - movz x6, #3, lsl #0 - subs x8, x9, x6 - movz x13, #10, lsl #0 - movz x6, #24, lsl #0 - csel x13, x13, x6, hs movz x3, #0, lsl #0 - movz x7, #0, lsl #0 - sub x8, x7, #1 28: - sub x10, x10, #8 - ldr x2, [x10, #0] - movz x9, #64, lsl #0 -29: - adds x2, x2, x2 - adcs x3, x3, x3 - adc x4, x7, x7 - subs x5, x3, x13 - csel x6, x8, x7, hs - sub x4, x7, x4 - orr x6, x6, x4 - eor x5, x5, x3 - and x5, x5, x6 - eor x3, x3, x5 - sub x9, x9, #1 - cbnz x9, 29b + ldr x5, [x16, #0] + lsr x4, x5, #32 + lsl x6, x4, #32 + sub x5, x5, x6 + add x3, x3, x4 + add x3, x3, x5 + add x16, x16, #8 sub x14, x14, #1 cbnz x14, 28b + movz x7, #39322, lsl #0 + movk x7, #39321, lsl #16 + movk x7, #39321, lsl #32 + movk x7, #6553, lsl #48 + movz x6, #43691, lsl #0 + movk x6, #43690, lsl #16 + movk x6, #43690, lsl #32 + movk x6, #2730, lsl #48 + ldr x9, [x0, #160] + movz x10, #3, lsl #0 + subs x8, x9, x10 + csel x7, x7, x6, hs + movz x13, #10, lsl #0 + movz x6, #24, lsl #0 + csel x13, x13, x6, hs + movz x4, #7, lsl #0 + and x2, x2, x4 + movz x4, #105, lsl #0 + mul x2, x2, x4 + movz x4, #16, lsl #0 + mul x3, x3, x4 + add x3, x3, x2 + umulh x4, x3, x7 + mul x4, x4, x13 + sub x3, x3, x4 ldr x9, [x0, #160] movz x6, #3, lsl #0 subs x8, x9, x6 @@ -178,13 +185,13 @@ vg_ffdh_parameter_candidate_sieved: eor x5, x5, x6 str x5, [x0, #32] ldr x5, [x0, #32] - cbz x5, 210f + cbz x5, 29f ldr x3, [x0, #216] ldr x2, [x0, #136] str x3, [x2, #0] movz x0, #2, lsl #0 - b 211f -210: + b 210f +29: ldr x12, [x0, #48] ldr x11, [x0, #224] add x9, x11, #0 @@ -1493,7 +1500,7 @@ vg_ffdh_parameter_candidate_sieved: movz x1, #0, lsl #0 movz x7, #0, lsl #0 sub x8, x7, #1 -212: +211: ldr x17, [x9, #0] add x9, x9, #8 add x3, x17, #0 @@ -1528,7 +1535,7 @@ vg_ffdh_parameter_candidate_sieved: add x16, x0, #256 add x14, x12, #0 movz x2, #0, lsl #0 -213: +212: ldr x5, [x16, #0] add w4, w5, #0 add x4, x4, x2 @@ -1544,7 +1551,7 @@ vg_ffdh_parameter_candidate_sieved: lsr x2, x6, #32 add x16, x16, #8 sub x14, x14, #1 - cbnz x14, 213b + cbnz x14, 212b movz x4, #1, lsl #0 subs x3, x2, x4 csel x5, x7, x8, hs @@ -1585,7 +1592,7 @@ vg_ffdh_parameter_candidate_sieved: add x16, x0, #256 add x14, x12, #0 movz x2, #0, lsl #0 -214: +213: ldr x5, [x16, #0] add w4, w5, #0 add x4, x4, x2 @@ -1601,7 +1608,7 @@ vg_ffdh_parameter_candidate_sieved: lsr x2, x6, #32 add x16, x16, #8 sub x14, x14, #1 - cbnz x14, 214b + cbnz x14, 213b movz x4, #1, lsl #0 subs x3, x2, x4 csel x5, x7, x8, hs @@ -1642,7 +1649,7 @@ vg_ffdh_parameter_candidate_sieved: add x16, x0, #256 add x14, x12, #0 movz x2, #0, lsl #0 -215: +214: ldr x5, [x16, #0] add w4, w5, #0 add x4, x4, x2 @@ -1658,7 +1665,7 @@ vg_ffdh_parameter_candidate_sieved: lsr x2, x6, #32 add x16, x16, #8 sub x14, x14, #1 - cbnz x14, 215b + cbnz x14, 214b movz x4, #1, lsl #0 subs x3, x2, x4 csel x5, x7, x8, hs @@ -1699,7 +1706,7 @@ vg_ffdh_parameter_candidate_sieved: add x16, x0, #256 add x14, x12, #0 movz x2, #0, lsl #0 -216: +215: ldr x5, [x16, #0] add w4, w5, #0 add x4, x4, x2 @@ -1715,7 +1722,7 @@ vg_ffdh_parameter_candidate_sieved: lsr x2, x6, #32 add x16, x16, #8 sub x14, x14, #1 - cbnz x14, 216b + cbnz x14, 215b movz x4, #1, lsl #0 subs x3, x2, x4 csel x5, x7, x8, hs @@ -1727,18 +1734,18 @@ vg_ffdh_parameter_candidate_sieved: sub x10, x10, #1 eor x3, x1, x8 and x10, x10, x3 - cbnz x10, 212b + cbnz x10, 211b ldr x5, [x0, #32] orr x5, x5, x1 str x5, [x0, #32] ldr x5, [x0, #32] - cbz x5, 217f + cbz x5, 216f ldr x3, [x0, #216] ldr x2, [x0, #136] str x3, [x2, #0] movz x0, #2, lsl #0 - b 218f -217: + b 217f +216: ldr x12, [x0, #48] ldr x11, [x0, #224] add x16, x0, #256 @@ -1748,7 +1755,7 @@ vg_ffdh_parameter_candidate_sieved: ldr x5, [x16, #0] add x16, x16, #8 sub x14, x12, #1 -219: +218: ldr x3, [x16, #0] lsl x4, x3, #63 lsr x6, x5, #1 @@ -1761,7 +1768,7 @@ vg_ffdh_parameter_candidate_sieved: add x17, x17, #8 add x5, x3, #0 sub x14, x14, #1 - cbnz x14, 219b + cbnz x14, 218b lsr x6, x5, #1 eor x6, x6, x5 and x6, x6, x15 @@ -1795,7 +1802,7 @@ vg_ffdh_parameter_candidate_sieved: movz x1, #0, lsl #0 movz x7, #0, lsl #0 sub x8, x7, #1 -220: +219: ldr x17, [x9, #0] add x9, x9, #8 add x3, x17, #0 @@ -1830,7 +1837,7 @@ vg_ffdh_parameter_candidate_sieved: add x16, x0, #256 add x14, x12, #0 movz x2, #0, lsl #0 -221: +220: ldr x5, [x16, #0] add w4, w5, #0 add x4, x4, x2 @@ -1846,7 +1853,7 @@ vg_ffdh_parameter_candidate_sieved: lsr x2, x6, #32 add x16, x16, #8 sub x14, x14, #1 - cbnz x14, 221b + cbnz x14, 220b movz x4, #1, lsl #0 subs x3, x2, x4 csel x5, x7, x8, hs @@ -1887,7 +1894,7 @@ vg_ffdh_parameter_candidate_sieved: add x16, x0, #256 add x14, x12, #0 movz x2, #0, lsl #0 -222: +221: ldr x5, [x16, #0] add w4, w5, #0 add x4, x4, x2 @@ -1903,7 +1910,7 @@ vg_ffdh_parameter_candidate_sieved: lsr x2, x6, #32 add x16, x16, #8 sub x14, x14, #1 - cbnz x14, 222b + cbnz x14, 221b movz x4, #1, lsl #0 subs x3, x2, x4 csel x5, x7, x8, hs @@ -1944,7 +1951,7 @@ vg_ffdh_parameter_candidate_sieved: add x16, x0, #256 add x14, x12, #0 movz x2, #0, lsl #0 -223: +222: ldr x5, [x16, #0] add w4, w5, #0 add x4, x4, x2 @@ -1960,7 +1967,7 @@ vg_ffdh_parameter_candidate_sieved: lsr x2, x6, #32 add x16, x16, #8 sub x14, x14, #1 - cbnz x14, 223b + cbnz x14, 222b movz x4, #1, lsl #0 subs x3, x2, x4 csel x5, x7, x8, hs @@ -2001,7 +2008,7 @@ vg_ffdh_parameter_candidate_sieved: add x16, x0, #256 add x14, x12, #0 movz x2, #0, lsl #0 -224: +223: ldr x5, [x16, #0] add w4, w5, #0 add x4, x4, x2 @@ -2017,7 +2024,7 @@ vg_ffdh_parameter_candidate_sieved: lsr x2, x6, #32 add x16, x16, #8 sub x14, x14, #1 - cbnz x14, 224b + cbnz x14, 223b movz x4, #1, lsl #0 subs x3, x2, x4 csel x5, x7, x8, hs @@ -2029,18 +2036,18 @@ vg_ffdh_parameter_candidate_sieved: sub x10, x10, #1 eor x3, x1, x8 and x10, x10, x3 - cbnz x10, 220b + cbnz x10, 219b ldr x5, [x0, #32] orr x5, x5, x1 str x5, [x0, #32] ldr x5, [x0, #32] - cbz x5, 225f + cbz x5, 224f ldr x3, [x0, #216] ldr x2, [x0, #136] str x3, [x2, #0] movz x0, #2, lsl #0 - b 226f -225: + b 225f +224: ldr x3, [x0, #152] add x4, x3, #7 lsr x4, x4, #3 @@ -2086,11 +2093,11 @@ vg_ffdh_parameter_candidate_sieved: sub x4, x7, #1 str x4, [x0, #176] movz x9, #0, lsl #0 -227: +226: add x9, x9, x9 add x9, x9, #1 sub x6, x6, #1 - cbnz x6, 227b + cbnz x6, 226b str x9, [x0, #16] ldr x12, [x0, #48] ldr x11, [x0, #224] @@ -2098,11 +2105,11 @@ vg_ffdh_parameter_candidate_sieved: movz x7, #0, lsl #0 add x16, x8, #0 add x14, x12, #2 -228: +227: str x7, [x16, #0] add x16, x16, #8 sub x14, x14, #1 - cbnz x14, 228b + cbnz x14, 227b ldr x12, [x0, #48] ldr x11, [x0, #224] add x8, x0, #256 @@ -2110,21 +2117,21 @@ vg_ffdh_parameter_candidate_sieved: ldr x2, [x0, #144] movz x3, #0, lsl #0 movz x6, #7, lsl #0 -229: +228: sub x2, x2, #1 lsl x3, x3, #8 ldrb w4, [x1, #0] add x3, x3, x4 add x1, x1, #1 and x5, x2, x6 - cbz x5, 230f - b 231f -230: + cbz x5, 229f + b 230f +229: add x5, x8, x2 str x3, [x5, #0] movz x3, #0, lsl #0 -231: - cbnz x2, 229b +230: + cbnz x2, 228b ldr x12, [x0, #48] ldr x11, [x0, #224] add x16, x0, #256 @@ -2177,11 +2184,11 @@ vg_ffdh_parameter_candidate_sieved: movz x7, #0, lsl #0 add x16, x8, #0 add x14, x12, #2 -232: +231: str x7, [x16, #0] add x16, x16, #8 sub x14, x14, #1 - cbnz x14, 232b + cbnz x14, 231b lsl x16, x13, #3 add x16, x8, x16 str x9, [x16, #0] @@ -2192,7 +2199,7 @@ vg_ffdh_parameter_candidate_sieved: add x13, x9, x13 ldr x3, [x13, #0] lsr x3, x3, #63 - cbz x3, 233f + cbz x3, 232f ldr x11, [x0, #96] ldr x9, [x0, #64] ldr x6, [x0, #88] @@ -2202,14 +2209,14 @@ vg_ffdh_parameter_candidate_sieved: add x17, x9, #0 add x14, x12, #0 subs x3, x7, x7 -235: +234: ldr x4, [x17, #0] sbcs x3, x7, x4 str x3, [x16, #0] add x16, x16, #8 add x17, x17, #8 sub x14, x14, #1 - cbnz x14, 235b + cbnz x14, 234b lsl x13, x12, #3 sub x13, x13, #8 add x13, x9, x13 @@ -2219,7 +2226,7 @@ vg_ffdh_parameter_candidate_sieved: movz x10, #0, lsl #0 movz x4, #1, lsl #0 movz x13, #64, lsl #0 -236: +235: lsr x3, x2, #63 lsl x2, x2, #1 orr x2, x2, x4 @@ -2231,11 +2238,11 @@ vg_ffdh_parameter_candidate_sieved: add x10, x10, x10 add x10, x10, x16 sub x13, x13, #1 - cbnz x13, 236b + cbnz x13, 235b str x10, [x6, #0] ldr x13, [x0, #48] str x13, [x0, #208] -237: +236: ldr x9, [x0, #64] ldr x11, [x0, #96] ldr x6, [x0, #88] @@ -2305,7 +2312,7 @@ vg_ffdh_parameter_candidate_sieved: sub x15, x15, #1 add x13, x15, #0 adds x3, x7, x7 -238: +237: ldr x3, [x17, #0] mul x4, x1, x3 umulh x3, x1, x3 @@ -2319,7 +2326,7 @@ vg_ffdh_parameter_candidate_sieved: add x16, x16, #8 add x17, x17, #8 sub x14, x14, #1 - cbnz x14, 238b + cbnz x14, 237b adc x4, x13, x2 eor x4, x4, x15 str x4, [x16, #0] @@ -2332,7 +2339,7 @@ vg_ffdh_parameter_candidate_sieved: add x17, x9, #0 add x14, x12, #0 adds x3, x7, x7 -239: +238: ldr x4, [x17, #0] and x4, x4, x15 ldr x3, [x16, #0] @@ -2341,16 +2348,16 @@ vg_ffdh_parameter_candidate_sieved: add x16, x16, #8 add x17, x17, #8 sub x14, x14, #1 - cbnz x14, 239b + cbnz x14, 238b ldr x3, [x16, #0] adc x3, x3, x7 str x3, [x16, #0] ldr x13, [x0, #208] sub x13, x13, #1 str x13, [x0, #208] - cbnz x13, 237b - b 234f -233: + cbnz x13, 236b + b 233f +232: ldr x12, [x0, #48] ldr x8, [x0, #64] sub x4, x12, #1 @@ -2360,27 +2367,27 @@ vg_ffdh_parameter_candidate_sieved: movz x9, #1, lsl #0 movz x13, #64, lsl #0 sub x6, x3, #1 - cbz x6, 240f -242: + cbz x6, 239f +241: lsr x3, x3, #1 add x9, x9, x9 sub x13, x13, #1 sub x6, x3, #1 - cbnz x6, 242b - b 241f + cbnz x6, 241b + b 240f +239: 240: -241: str x13, [x0, #208] sub x13, x12, #1 ldr x8, [x0, #96] movz x7, #0, lsl #0 add x16, x8, #0 add x14, x12, #2 -243: +242: str x7, [x16, #0] add x16, x16, #8 sub x14, x14, #1 - cbnz x14, 243b + cbnz x14, 242b lsl x16, x13, #3 add x16, x8, x16 str x9, [x16, #0] @@ -2388,7 +2395,7 @@ vg_ffdh_parameter_candidate_sieved: ldr x12, [x0, #48] add x13, x13, x12 str x13, [x0, #208] -244: +243: ldr x5, [x0, #96] ldr x10, [x0, #64] ldr x8, [x0, #80] @@ -2399,14 +2406,14 @@ vg_ffdh_parameter_candidate_sieved: add x16, x8, #0 add x14, x12, #0 adds x3, x7, x7 -245: +244: ldr x3, [x17, #0] adcs x3, x3, x3 str x3, [x16, #0] add x17, x17, #8 add x16, x16, #8 sub x14, x14, #1 - cbnz x14, 245b + cbnz x14, 244b adc x3, x7, x7 str x3, [x16, #0] add x16, x8, #0 @@ -2414,7 +2421,7 @@ vg_ffdh_parameter_candidate_sieved: add x13, x6, #0 add x14, x12, #0 subs x3, x7, x7 -246: +245: ldr x3, [x16, #0] ldr x4, [x17, #0] sbcs x3, x3, x4 @@ -2423,12 +2430,12 @@ vg_ffdh_parameter_candidate_sieved: add x17, x17, #8 add x13, x13, #8 sub x14, x14, #1 - cbnz x14, 246b + cbnz x14, 245b ldr x3, [x16, #0] sbcs x3, x3, x7 add x16, x8, #0 add x14, x12, #0 -247: +246: ldr x3, [x16, #0] ldr x4, [x6, #0] csel x3, x4, x3, hs @@ -2437,22 +2444,22 @@ vg_ffdh_parameter_candidate_sieved: add x6, x6, #8 add x5, x5, #8 sub x14, x14, #1 - cbnz x14, 247b + cbnz x14, 246b ldr x13, [x0, #208] sub x13, x13, #1 str x13, [x0, #208] - cbnz x13, 244b + cbnz x13, 243b movz x13, #6, lsl #0 str x13, [x0, #208] -248: +247: mov v31.d[0], x30 bl {vg_rsa_square_4_4} umov x30, v31.d[0] ldr x13, [x0, #208] sub x13, x13, #1 str x13, [x0, #208] - cbnz x13, 248b -234: + cbnz x13, 247b +233: ldr x8, [x0, #80] ldr x9, [x0, #120] ldr x10, [x0, #64] @@ -2464,20 +2471,20 @@ vg_ffdh_parameter_candidate_sieved: movz x7, #0, lsl #0 add x16, x8, #0 add x14, x12, #2 -249: +248: str x7, [x16, #0] add x16, x16, #8 sub x14, x14, #1 - cbnz x14, 249b + cbnz x14, 248b add x13, x12, #0 -250: +249: ldr x1, [x11, #0] add x11, x11, #8 add x16, x8, #0 add x17, x9, #0 add x14, x12, #0 adds x2, x7, x7 -251: +250: ldr x3, [x17, #0] mul x4, x1, x3 umulh x3, x1, x3 @@ -2489,7 +2496,7 @@ vg_ffdh_parameter_candidate_sieved: add x16, x16, #8 add x17, x17, #8 sub x14, x14, #1 - cbnz x14, 251b + cbnz x14, 250b adc x2, x2, x7 ldr x3, [x16, #0] adds x3, x3, x2 @@ -2508,7 +2515,7 @@ vg_ffdh_parameter_candidate_sieved: add x17, x10, #8 sub x14, x12, #1 adds x3, x7, x7 -252: +251: ldr x3, [x17, #0] mul x4, x1, x3 umulh x3, x1, x3 @@ -2520,7 +2527,7 @@ vg_ffdh_parameter_candidate_sieved: add x16, x16, #8 add x17, x17, #8 sub x14, x14, #1 - cbnz x14, 252b + cbnz x14, 251b adc x2, x2, x7 ldr x3, [x16, #8] adds x3, x3, x2 @@ -2530,13 +2537,13 @@ vg_ffdh_parameter_candidate_sieved: str x3, [x16, #8] str x7, [x16, #16] sub x13, x13, #1 - cbnz x13, 250b + cbnz x13, 249b add x16, x8, #0 add x17, x10, #0 add x13, x6, #0 add x14, x12, #0 subs x3, x7, x7 -253: +252: ldr x3, [x16, #0] ldr x4, [x17, #0] sbcs x3, x3, x4 @@ -2545,12 +2552,12 @@ vg_ffdh_parameter_candidate_sieved: add x17, x17, #8 add x13, x13, #8 sub x14, x14, #1 - cbnz x14, 253b + cbnz x14, 252b ldr x3, [x16, #0] sbcs x3, x3, x7 add x16, x8, #0 add x14, x12, #0 -254: +253: ldr x3, [x16, #0] ldr x4, [x6, #0] csel x3, x4, x3, hs @@ -2559,7 +2566,7 @@ vg_ffdh_parameter_candidate_sieved: add x6, x6, #8 add x5, x5, #8 sub x14, x14, #1 - cbnz x14, 254b + cbnz x14, 253b ldr x12, [x0, #48] ldr x11, [x0, #224] add x16, x11, #0 @@ -2576,13 +2583,13 @@ vg_ffdh_parameter_candidate_sieved: add x17, x17, x0 add x17, x17, #256 add x14, x12, #0 -255: +254: ldr x3, [x16, #0] str x3, [x17, #0] add x16, x16, #8 add x17, x17, #8 sub x14, x14, #1 - cbnz x14, 255b + cbnz x14, 254b ldr x12, [x0, #48] ldr x11, [x0, #224] movz x7, #0, lsl #0 @@ -2604,7 +2611,7 @@ vg_ffdh_parameter_candidate_sieved: add x8, x8, x8 add x8, x8, x0 add x8, x8, #256 -256: +255: ldr x3, [x16, #0] ldr x4, [x17, #0] and x4, x4, x15 @@ -2614,7 +2621,7 @@ vg_ffdh_parameter_candidate_sieved: add x17, x17, #8 add x8, x8, #8 sub x14, x14, #1 - cbnz x14, 256b + cbnz x14, 255b ldr x12, [x0, #48] ldr x11, [x0, #224] add x16, x0, #256 @@ -2625,7 +2632,7 @@ vg_ffdh_parameter_candidate_sieved: sub x14, x12, #1 movz x7, #0, lsl #0 sub x8, x7, #1 -257: +256: ldr x3, [x16, #0] subs x6, x5, x4 csel x6, x7, x8, hs @@ -2633,7 +2640,7 @@ vg_ffdh_parameter_candidate_sieved: orr x5, x5, x3 add x16, x16, #8 sub x14, x14, #1 - cbnz x14, 257b + cbnz x14, 256b add x10, x11, #0 add x10, x10, x10 add x10, x10, x11 @@ -2655,7 +2662,7 @@ vg_ffdh_parameter_candidate_sieved: ldr x5, [x16, #0] add x16, x16, #8 sub x14, x12, #1 -258: +257: ldr x3, [x16, #0] lsl x4, x3, #63 lsr x6, x5, #1 @@ -2668,7 +2675,7 @@ vg_ffdh_parameter_candidate_sieved: add x17, x17, #8 add x5, x3, #0 sub x14, x14, #1 - cbnz x14, 258b + cbnz x14, 257b lsr x6, x5, #1 eor x6, x6, x5 and x6, x6, x15 @@ -2688,7 +2695,7 @@ vg_ffdh_parameter_candidate_sieved: ldr x5, [x16, #0] add x16, x16, #8 sub x14, x12, #1 -259: +258: ldr x3, [x16, #0] lsl x4, x3, #63 lsr x6, x5, #1 @@ -2701,7 +2708,7 @@ vg_ffdh_parameter_candidate_sieved: add x17, x17, #8 add x5, x3, #0 sub x14, x14, #1 - cbnz x14, 259b + cbnz x14, 258b lsr x6, x5, #1 eor x6, x6, x5 and x6, x6, x15 @@ -2721,7 +2728,7 @@ vg_ffdh_parameter_candidate_sieved: ldr x5, [x16, #0] add x16, x16, #8 sub x14, x12, #1 -260: +259: ldr x3, [x16, #0] lsl x4, x3, #63 lsr x6, x5, #1 @@ -2734,7 +2741,7 @@ vg_ffdh_parameter_candidate_sieved: add x17, x17, #8 add x5, x3, #0 sub x14, x14, #1 - cbnz x14, 260b + cbnz x14, 259b lsr x6, x5, #1 eor x6, x6, x5 and x6, x6, x15 @@ -2754,7 +2761,7 @@ vg_ffdh_parameter_candidate_sieved: ldr x5, [x16, #0] add x16, x16, #8 sub x14, x12, #1 -261: +260: ldr x3, [x16, #0] lsl x4, x3, #63 lsr x6, x5, #1 @@ -2767,7 +2774,7 @@ vg_ffdh_parameter_candidate_sieved: add x17, x17, #8 add x5, x3, #0 sub x14, x14, #1 - cbnz x14, 261b + cbnz x14, 260b lsr x6, x5, #1 eor x6, x6, x5 and x6, x6, x15 @@ -2775,7 +2782,7 @@ vg_ffdh_parameter_candidate_sieved: str x6, [x17, #0] movz x3, #0, lsl #0 str x3, [x0, #24] -262: +261: ldr x3, [x0, #200] ldr x4, [x0, #216] sub x3, x3, x4 @@ -2784,7 +2791,7 @@ vg_ffdh_parameter_candidate_sieved: movz x7, #0, lsl #0 movz x4, #1, lsl #0 csel x5, x4, x7, hs - cbz x5, 263f + cbz x5, 262f ldr x12, [x0, #48] ldr x11, [x0, #224] add x8, x11, #0 @@ -2793,11 +2800,11 @@ vg_ffdh_parameter_candidate_sieved: movz x7, #0, lsl #0 add x16, x8, #0 add x14, x12, #2 -265: +264: str x7, [x16, #0] add x16, x16, #8 sub x14, x14, #1 - cbnz x14, 265b + cbnz x14, 264b ldr x12, [x0, #48] ldr x11, [x0, #224] add x8, x11, #0 @@ -2811,21 +2818,21 @@ vg_ffdh_parameter_candidate_sieved: str x3, [x0, #216] movz x3, #0, lsl #0 movz x6, #7, lsl #0 -266: +265: sub x2, x2, #1 lsl x3, x3, #8 ldrb w4, [x1, #0] add x3, x3, x4 add x1, x1, #1 and x5, x2, x6 - cbz x5, 267f - b 268f -267: + cbz x5, 266f + b 267f +266: add x5, x8, x2 str x3, [x5, #0] movz x3, #0, lsl #0 -268: - cbnz x2, 266b +267: + cbnz x2, 265b ldr x12, [x0, #48] ldr x11, [x0, #224] add x16, x11, #0 @@ -2847,12 +2854,12 @@ vg_ffdh_parameter_candidate_sieved: lsr x5, x5, #1 add x16, x16, #8 sub x14, x12, #1 -269: +268: ldr x3, [x16, #0] orr x5, x5, x3 add x16, x16, #8 sub x14, x14, #1 - cbnz x14, 269b + cbnz x14, 268b movz x7, #0, lsl #0 sub x8, x7, #1 movz x4, #1, lsl #0 @@ -2871,17 +2878,17 @@ vg_ffdh_parameter_candidate_sieved: add x16, x16, #8 add x17, x17, #8 sub x14, x12, #1 -270: +269: ldr x3, [x16, #0] ldr x4, [x17, #0] sbcs x3, x3, x4 add x16, x16, #8 add x17, x17, #8 sub x14, x14, #1 - cbnz x14, 270b + cbnz x14, 269b csel x15, x7, x8, hs and x9, x9, x15 - cbz x9, 271f + cbz x9, 270f ldr x8, [x0, #80] ldr x9, [x0, #96] ldr x10, [x0, #64] @@ -2893,20 +2900,20 @@ vg_ffdh_parameter_candidate_sieved: movz x7, #0, lsl #0 add x16, x8, #0 add x14, x12, #2 -273: +272: str x7, [x16, #0] add x16, x16, #8 sub x14, x14, #1 - cbnz x14, 273b + cbnz x14, 272b add x13, x12, #0 -274: +273: ldr x1, [x11, #0] add x11, x11, #8 add x16, x8, #0 add x17, x9, #0 add x14, x12, #0 adds x2, x7, x7 -275: +274: ldr x3, [x17, #0] mul x4, x1, x3 umulh x3, x1, x3 @@ -2918,7 +2925,7 @@ vg_ffdh_parameter_candidate_sieved: add x16, x16, #8 add x17, x17, #8 sub x14, x14, #1 - cbnz x14, 275b + cbnz x14, 274b adc x2, x2, x7 ldr x3, [x16, #0] adds x3, x3, x2 @@ -2937,7 +2944,7 @@ vg_ffdh_parameter_candidate_sieved: add x17, x10, #8 sub x14, x12, #1 adds x3, x7, x7 -276: +275: ldr x3, [x17, #0] mul x4, x1, x3 umulh x3, x1, x3 @@ -2949,7 +2956,7 @@ vg_ffdh_parameter_candidate_sieved: add x16, x16, #8 add x17, x17, #8 sub x14, x14, #1 - cbnz x14, 276b + cbnz x14, 275b adc x2, x2, x7 ldr x3, [x16, #8] adds x3, x3, x2 @@ -2959,13 +2966,13 @@ vg_ffdh_parameter_candidate_sieved: str x3, [x16, #8] str x7, [x16, #16] sub x13, x13, #1 - cbnz x13, 274b + cbnz x13, 273b add x16, x8, #0 add x17, x10, #0 add x13, x6, #0 add x14, x12, #0 subs x3, x7, x7 -277: +276: ldr x3, [x16, #0] ldr x4, [x17, #0] sbcs x3, x3, x4 @@ -2974,12 +2981,12 @@ vg_ffdh_parameter_candidate_sieved: add x17, x17, #8 add x13, x13, #8 sub x14, x14, #1 - cbnz x14, 277b + cbnz x14, 276b ldr x3, [x16, #0] sbcs x3, x3, x7 add x16, x8, #0 add x14, x12, #0 -278: +277: ldr x3, [x16, #0] ldr x4, [x6, #0] csel x3, x4, x3, hs @@ -2988,7 +2995,7 @@ vg_ffdh_parameter_candidate_sieved: add x6, x6, #8 add x5, x5, #8 sub x14, x14, #1 - cbnz x14, 278b + cbnz x14, 277b ldr x2, [x0, #120] ldr x3, [x0, #48] lsl x3, x3, #3 @@ -3014,7 +3021,7 @@ vg_ffdh_parameter_candidate_sieved: ldr x30, [x2, #8] ldr x19, [x2, #0] ldr x3, [x0, #184] - cbz x3, 279f + cbz x3, 278f ldr x3, [x0, #24] ldr x4, [x0, #0] add x3, x3, #1 @@ -3024,42 +3031,42 @@ vg_ffdh_parameter_candidate_sieved: csel x5, x7, x6, hs str x3, [x0, #24] str x5, [x0, #248] - b 280f -279: + b 279f +278: movz x3, #2, lsl #0 str x3, [x0, #248] -280: - b 272f -271: +279: + b 271f +270: movz x3, #4, lsl #0 str x3, [x0, #248] -272: - b 264f -263: +271: + b 263f +262: movz x3, #0, lsl #0 str x3, [x0, #248] -264: +263: ldr x3, [x0, #248] sub x3, x3, #4 - cbz x3, 262b + cbz x3, 261b ldr x3, [x0, #248] sub x3, x3, #1 - cbz x3, 281f + cbz x3, 280f ldr x3, [x0, #248] - cbz x3, 283f + cbz x3, 282f ldr x3, [x0, #216] ldr x2, [x0, #136] str x3, [x2, #0] movz x0, #2, lsl #0 - b 284f -283: + b 283f +282: movz x3, #0, lsl #0 ldr x2, [x0, #136] str x3, [x2, #0] movz x0, #0, lsl #0 -284: - b 282f -281: +283: + b 281f +280: ldr x12, [x0, #48] ldr x11, [x0, #224] add x16, x0, #256 @@ -3069,7 +3076,7 @@ vg_ffdh_parameter_candidate_sieved: ldr x5, [x16, #0] add x16, x16, #8 sub x14, x12, #1 -285: +284: ldr x3, [x16, #0] lsl x4, x3, #63 lsr x6, x5, #1 @@ -3082,7 +3089,7 @@ vg_ffdh_parameter_candidate_sieved: add x17, x17, #8 add x5, x3, #0 sub x14, x14, #1 - cbnz x14, 285b + cbnz x14, 284b lsr x6, x5, #1 eor x6, x6, x5 and x6, x6, x15 @@ -3144,11 +3151,11 @@ vg_ffdh_parameter_candidate_sieved: sub x4, x7, #1 str x4, [x0, #176] movz x9, #0, lsl #0 -286: +285: add x9, x9, x9 add x9, x9, #1 sub x6, x6, #1 - cbnz x6, 286b + cbnz x6, 285b str x9, [x0, #16] ldr x8, [x0, #64] ldr x3, [x8, #0] @@ -3183,11 +3190,11 @@ vg_ffdh_parameter_candidate_sieved: movz x7, #0, lsl #0 add x16, x8, #0 add x14, x12, #2 -287: +286: str x7, [x16, #0] add x16, x16, #8 sub x14, x14, #1 - cbnz x14, 287b + cbnz x14, 286b lsl x16, x13, #3 add x16, x8, x16 str x9, [x16, #0] @@ -3198,7 +3205,7 @@ vg_ffdh_parameter_candidate_sieved: add x13, x9, x13 ldr x3, [x13, #0] lsr x3, x3, #63 - cbz x3, 288f + cbz x3, 287f ldr x11, [x0, #96] ldr x9, [x0, #64] ldr x6, [x0, #88] @@ -3208,14 +3215,14 @@ vg_ffdh_parameter_candidate_sieved: add x17, x9, #0 add x14, x12, #0 subs x3, x7, x7 -290: +289: ldr x4, [x17, #0] sbcs x3, x7, x4 str x3, [x16, #0] add x16, x16, #8 add x17, x17, #8 sub x14, x14, #1 - cbnz x14, 290b + cbnz x14, 289b lsl x13, x12, #3 sub x13, x13, #8 add x13, x9, x13 @@ -3225,7 +3232,7 @@ vg_ffdh_parameter_candidate_sieved: movz x10, #0, lsl #0 movz x4, #1, lsl #0 movz x13, #64, lsl #0 -291: +290: lsr x3, x2, #63 lsl x2, x2, #1 orr x2, x2, x4 @@ -3237,11 +3244,11 @@ vg_ffdh_parameter_candidate_sieved: add x10, x10, x10 add x10, x10, x16 sub x13, x13, #1 - cbnz x13, 291b + cbnz x13, 290b str x10, [x6, #0] ldr x13, [x0, #48] str x13, [x0, #208] -292: +291: ldr x9, [x0, #64] ldr x11, [x0, #96] ldr x6, [x0, #88] @@ -3311,7 +3318,7 @@ vg_ffdh_parameter_candidate_sieved: sub x15, x15, #1 add x13, x15, #0 adds x3, x7, x7 -293: +292: ldr x3, [x17, #0] mul x4, x1, x3 umulh x3, x1, x3 @@ -3325,7 +3332,7 @@ vg_ffdh_parameter_candidate_sieved: add x16, x16, #8 add x17, x17, #8 sub x14, x14, #1 - cbnz x14, 293b + cbnz x14, 292b adc x4, x13, x2 eor x4, x4, x15 str x4, [x16, #0] @@ -3338,7 +3345,7 @@ vg_ffdh_parameter_candidate_sieved: add x17, x9, #0 add x14, x12, #0 adds x3, x7, x7 -294: +293: ldr x4, [x17, #0] and x4, x4, x15 ldr x3, [x16, #0] @@ -3347,16 +3354,16 @@ vg_ffdh_parameter_candidate_sieved: add x16, x16, #8 add x17, x17, #8 sub x14, x14, #1 - cbnz x14, 294b + cbnz x14, 293b ldr x3, [x16, #0] adc x3, x3, x7 str x3, [x16, #0] ldr x13, [x0, #208] sub x13, x13, #1 str x13, [x0, #208] - cbnz x13, 292b - b 289f -288: + cbnz x13, 291b + b 288f +287: ldr x12, [x0, #48] ldr x8, [x0, #64] sub x4, x12, #1 @@ -3366,27 +3373,27 @@ vg_ffdh_parameter_candidate_sieved: movz x9, #1, lsl #0 movz x13, #64, lsl #0 sub x6, x3, #1 - cbz x6, 295f -297: + cbz x6, 294f +296: lsr x3, x3, #1 add x9, x9, x9 sub x13, x13, #1 sub x6, x3, #1 - cbnz x6, 297b - b 296f + cbnz x6, 296b + b 295f +294: 295: -296: str x13, [x0, #208] sub x13, x12, #1 ldr x8, [x0, #96] movz x7, #0, lsl #0 add x16, x8, #0 add x14, x12, #2 -298: +297: str x7, [x16, #0] add x16, x16, #8 sub x14, x14, #1 - cbnz x14, 298b + cbnz x14, 297b lsl x16, x13, #3 add x16, x8, x16 str x9, [x16, #0] @@ -3394,7 +3401,7 @@ vg_ffdh_parameter_candidate_sieved: ldr x12, [x0, #48] add x13, x13, x12 str x13, [x0, #208] -299: +298: ldr x5, [x0, #96] ldr x10, [x0, #64] ldr x8, [x0, #80] @@ -3405,14 +3412,14 @@ vg_ffdh_parameter_candidate_sieved: add x16, x8, #0 add x14, x12, #0 adds x3, x7, x7 -2100: +299: ldr x3, [x17, #0] adcs x3, x3, x3 str x3, [x16, #0] add x17, x17, #8 add x16, x16, #8 sub x14, x14, #1 - cbnz x14, 2100b + cbnz x14, 299b adc x3, x7, x7 str x3, [x16, #0] add x16, x8, #0 @@ -3420,7 +3427,7 @@ vg_ffdh_parameter_candidate_sieved: add x13, x6, #0 add x14, x12, #0 subs x3, x7, x7 -2101: +2100: ldr x3, [x16, #0] ldr x4, [x17, #0] sbcs x3, x3, x4 @@ -3429,12 +3436,12 @@ vg_ffdh_parameter_candidate_sieved: add x17, x17, #8 add x13, x13, #8 sub x14, x14, #1 - cbnz x14, 2101b + cbnz x14, 2100b ldr x3, [x16, #0] sbcs x3, x3, x7 add x16, x8, #0 add x14, x12, #0 -2102: +2101: ldr x3, [x16, #0] ldr x4, [x6, #0] csel x3, x4, x3, hs @@ -3443,22 +3450,22 @@ vg_ffdh_parameter_candidate_sieved: add x6, x6, #8 add x5, x5, #8 sub x14, x14, #1 - cbnz x14, 2102b + cbnz x14, 2101b ldr x13, [x0, #208] sub x13, x13, #1 str x13, [x0, #208] - cbnz x13, 299b + cbnz x13, 298b movz x13, #6, lsl #0 str x13, [x0, #208] -2103: +2102: mov v31.d[0], x30 bl {vg_rsa_square_4_4} umov x30, v31.d[0] ldr x13, [x0, #208] sub x13, x13, #1 str x13, [x0, #208] - cbnz x13, 2103b -289: + cbnz x13, 2102b +288: ldr x8, [x0, #80] ldr x9, [x0, #120] ldr x10, [x0, #64] @@ -3470,20 +3477,20 @@ vg_ffdh_parameter_candidate_sieved: movz x7, #0, lsl #0 add x16, x8, #0 add x14, x12, #2 -2104: +2103: str x7, [x16, #0] add x16, x16, #8 sub x14, x14, #1 - cbnz x14, 2104b + cbnz x14, 2103b add x13, x12, #0 -2105: +2104: ldr x1, [x11, #0] add x11, x11, #8 add x16, x8, #0 add x17, x9, #0 add x14, x12, #0 adds x2, x7, x7 -2106: +2105: ldr x3, [x17, #0] mul x4, x1, x3 umulh x3, x1, x3 @@ -3495,7 +3502,7 @@ vg_ffdh_parameter_candidate_sieved: add x16, x16, #8 add x17, x17, #8 sub x14, x14, #1 - cbnz x14, 2106b + cbnz x14, 2105b adc x2, x2, x7 ldr x3, [x16, #0] adds x3, x3, x2 @@ -3514,7 +3521,7 @@ vg_ffdh_parameter_candidate_sieved: add x17, x10, #8 sub x14, x12, #1 adds x3, x7, x7 -2107: +2106: ldr x3, [x17, #0] mul x4, x1, x3 umulh x3, x1, x3 @@ -3526,7 +3533,7 @@ vg_ffdh_parameter_candidate_sieved: add x16, x16, #8 add x17, x17, #8 sub x14, x14, #1 - cbnz x14, 2107b + cbnz x14, 2106b adc x2, x2, x7 ldr x3, [x16, #8] adds x3, x3, x2 @@ -3536,13 +3543,13 @@ vg_ffdh_parameter_candidate_sieved: str x3, [x16, #8] str x7, [x16, #16] sub x13, x13, #1 - cbnz x13, 2105b + cbnz x13, 2104b add x16, x8, #0 add x17, x10, #0 add x13, x6, #0 add x14, x12, #0 subs x3, x7, x7 -2108: +2107: ldr x3, [x16, #0] ldr x4, [x17, #0] sbcs x3, x3, x4 @@ -3551,12 +3558,12 @@ vg_ffdh_parameter_candidate_sieved: add x17, x17, #8 add x13, x13, #8 sub x14, x14, #1 - cbnz x14, 2108b + cbnz x14, 2107b ldr x3, [x16, #0] sbcs x3, x3, x7 add x16, x8, #0 add x14, x12, #0 -2109: +2108: ldr x3, [x16, #0] ldr x4, [x6, #0] csel x3, x4, x3, hs @@ -3565,7 +3572,7 @@ vg_ffdh_parameter_candidate_sieved: add x6, x6, #8 add x5, x5, #8 sub x14, x14, #1 - cbnz x14, 2109b + cbnz x14, 2108b ldr x12, [x0, #48] ldr x11, [x0, #224] add x16, x11, #0 @@ -3582,13 +3589,13 @@ vg_ffdh_parameter_candidate_sieved: add x17, x17, x0 add x17, x17, #256 add x14, x12, #0 -2110: +2109: ldr x3, [x16, #0] str x3, [x17, #0] add x16, x16, #8 add x17, x17, #8 sub x14, x14, #1 - cbnz x14, 2110b + cbnz x14, 2109b ldr x12, [x0, #48] ldr x11, [x0, #224] movz x7, #0, lsl #0 @@ -3610,7 +3617,7 @@ vg_ffdh_parameter_candidate_sieved: add x8, x8, x8 add x8, x8, x0 add x8, x8, #256 -2111: +2110: ldr x3, [x16, #0] ldr x4, [x17, #0] and x4, x4, x15 @@ -3620,7 +3627,7 @@ vg_ffdh_parameter_candidate_sieved: add x17, x17, #8 add x8, x8, #8 sub x14, x14, #1 - cbnz x14, 2111b + cbnz x14, 2110b ldr x12, [x0, #48] ldr x11, [x0, #224] add x16, x0, #256 @@ -3631,7 +3638,7 @@ vg_ffdh_parameter_candidate_sieved: sub x14, x12, #1 movz x7, #0, lsl #0 sub x8, x7, #1 -2112: +2111: ldr x3, [x16, #0] subs x6, x5, x4 csel x6, x7, x8, hs @@ -3639,7 +3646,7 @@ vg_ffdh_parameter_candidate_sieved: orr x5, x5, x3 add x16, x16, #8 sub x14, x14, #1 - cbnz x14, 2112b + cbnz x14, 2111b add x10, x11, #0 add x10, x10, x10 add x10, x10, x11 @@ -3661,7 +3668,7 @@ vg_ffdh_parameter_candidate_sieved: ldr x5, [x16, #0] add x16, x16, #8 sub x14, x12, #1 -2113: +2112: ldr x3, [x16, #0] lsl x4, x3, #63 lsr x6, x5, #1 @@ -3674,7 +3681,7 @@ vg_ffdh_parameter_candidate_sieved: add x17, x17, #8 add x5, x3, #0 sub x14, x14, #1 - cbnz x14, 2113b + cbnz x14, 2112b lsr x6, x5, #1 eor x6, x6, x5 and x6, x6, x15 @@ -3694,7 +3701,7 @@ vg_ffdh_parameter_candidate_sieved: ldr x5, [x16, #0] add x16, x16, #8 sub x14, x12, #1 -2114: +2113: ldr x3, [x16, #0] lsl x4, x3, #63 lsr x6, x5, #1 @@ -3707,7 +3714,7 @@ vg_ffdh_parameter_candidate_sieved: add x17, x17, #8 add x5, x3, #0 sub x14, x14, #1 - cbnz x14, 2114b + cbnz x14, 2113b lsr x6, x5, #1 eor x6, x6, x5 and x6, x6, x15 @@ -3727,7 +3734,7 @@ vg_ffdh_parameter_candidate_sieved: ldr x5, [x16, #0] add x16, x16, #8 sub x14, x12, #1 -2115: +2114: ldr x3, [x16, #0] lsl x4, x3, #63 lsr x6, x5, #1 @@ -3740,7 +3747,7 @@ vg_ffdh_parameter_candidate_sieved: add x17, x17, #8 add x5, x3, #0 sub x14, x14, #1 - cbnz x14, 2115b + cbnz x14, 2114b lsr x6, x5, #1 eor x6, x6, x5 and x6, x6, x15 @@ -3760,7 +3767,7 @@ vg_ffdh_parameter_candidate_sieved: ldr x5, [x16, #0] add x16, x16, #8 sub x14, x12, #1 -2116: +2115: ldr x3, [x16, #0] lsl x4, x3, #63 lsr x6, x5, #1 @@ -3773,7 +3780,7 @@ vg_ffdh_parameter_candidate_sieved: add x17, x17, #8 add x5, x3, #0 sub x14, x14, #1 - cbnz x14, 2116b + cbnz x14, 2115b lsr x6, x5, #1 eor x6, x6, x5 and x6, x6, x15 @@ -3781,7 +3788,7 @@ vg_ffdh_parameter_candidate_sieved: str x6, [x17, #0] movz x3, #0, lsl #0 str x3, [x0, #24] -2117: +2116: ldr x3, [x0, #200] ldr x4, [x0, #216] sub x3, x3, x4 @@ -3790,7 +3797,7 @@ vg_ffdh_parameter_candidate_sieved: movz x7, #0, lsl #0 movz x4, #1, lsl #0 csel x5, x4, x7, hs - cbz x5, 2118f + cbz x5, 2117f ldr x12, [x0, #48] ldr x11, [x0, #224] add x8, x11, #0 @@ -3799,11 +3806,11 @@ vg_ffdh_parameter_candidate_sieved: movz x7, #0, lsl #0 add x16, x8, #0 add x14, x12, #2 -2120: +2119: str x7, [x16, #0] add x16, x16, #8 sub x14, x14, #1 - cbnz x14, 2120b + cbnz x14, 2119b ldr x12, [x0, #48] ldr x11, [x0, #224] add x8, x11, #0 @@ -3817,21 +3824,21 @@ vg_ffdh_parameter_candidate_sieved: str x3, [x0, #216] movz x3, #0, lsl #0 movz x6, #7, lsl #0 -2121: +2120: sub x2, x2, #1 lsl x3, x3, #8 ldrb w4, [x1, #0] add x3, x3, x4 add x1, x1, #1 and x5, x2, x6 - cbz x5, 2122f - b 2123f -2122: + cbz x5, 2121f + b 2122f +2121: add x5, x8, x2 str x3, [x5, #0] movz x3, #0, lsl #0 -2123: - cbnz x2, 2121b +2122: + cbnz x2, 2120b ldr x12, [x0, #48] ldr x11, [x0, #224] add x16, x11, #0 @@ -3853,12 +3860,12 @@ vg_ffdh_parameter_candidate_sieved: lsr x5, x5, #1 add x16, x16, #8 sub x14, x12, #1 -2124: +2123: ldr x3, [x16, #0] orr x5, x5, x3 add x16, x16, #8 sub x14, x14, #1 - cbnz x14, 2124b + cbnz x14, 2123b movz x7, #0, lsl #0 sub x8, x7, #1 movz x4, #1, lsl #0 @@ -3877,17 +3884,17 @@ vg_ffdh_parameter_candidate_sieved: add x16, x16, #8 add x17, x17, #8 sub x14, x12, #1 -2125: +2124: ldr x3, [x16, #0] ldr x4, [x17, #0] sbcs x3, x3, x4 add x16, x16, #8 add x17, x17, #8 sub x14, x14, #1 - cbnz x14, 2125b + cbnz x14, 2124b csel x15, x7, x8, hs and x9, x9, x15 - cbz x9, 2126f + cbz x9, 2125f ldr x8, [x0, #80] ldr x9, [x0, #96] ldr x10, [x0, #64] @@ -3899,20 +3906,20 @@ vg_ffdh_parameter_candidate_sieved: movz x7, #0, lsl #0 add x16, x8, #0 add x14, x12, #2 -2128: +2127: str x7, [x16, #0] add x16, x16, #8 sub x14, x14, #1 - cbnz x14, 2128b + cbnz x14, 2127b add x13, x12, #0 -2129: +2128: ldr x1, [x11, #0] add x11, x11, #8 add x16, x8, #0 add x17, x9, #0 add x14, x12, #0 adds x2, x7, x7 -2130: +2129: ldr x3, [x17, #0] mul x4, x1, x3 umulh x3, x1, x3 @@ -3924,7 +3931,7 @@ vg_ffdh_parameter_candidate_sieved: add x16, x16, #8 add x17, x17, #8 sub x14, x14, #1 - cbnz x14, 2130b + cbnz x14, 2129b adc x2, x2, x7 ldr x3, [x16, #0] adds x3, x3, x2 @@ -3943,7 +3950,7 @@ vg_ffdh_parameter_candidate_sieved: add x17, x10, #8 sub x14, x12, #1 adds x3, x7, x7 -2131: +2130: ldr x3, [x17, #0] mul x4, x1, x3 umulh x3, x1, x3 @@ -3955,7 +3962,7 @@ vg_ffdh_parameter_candidate_sieved: add x16, x16, #8 add x17, x17, #8 sub x14, x14, #1 - cbnz x14, 2131b + cbnz x14, 2130b adc x2, x2, x7 ldr x3, [x16, #8] adds x3, x3, x2 @@ -3965,13 +3972,13 @@ vg_ffdh_parameter_candidate_sieved: str x3, [x16, #8] str x7, [x16, #16] sub x13, x13, #1 - cbnz x13, 2129b + cbnz x13, 2128b add x16, x8, #0 add x17, x10, #0 add x13, x6, #0 add x14, x12, #0 subs x3, x7, x7 -2132: +2131: ldr x3, [x16, #0] ldr x4, [x17, #0] sbcs x3, x3, x4 @@ -3980,12 +3987,12 @@ vg_ffdh_parameter_candidate_sieved: add x17, x17, #8 add x13, x13, #8 sub x14, x14, #1 - cbnz x14, 2132b + cbnz x14, 2131b ldr x3, [x16, #0] sbcs x3, x3, x7 add x16, x8, #0 add x14, x12, #0 -2133: +2132: ldr x3, [x16, #0] ldr x4, [x6, #0] csel x3, x4, x3, hs @@ -3994,7 +4001,7 @@ vg_ffdh_parameter_candidate_sieved: add x6, x6, #8 add x5, x5, #8 sub x14, x14, #1 - cbnz x14, 2133b + cbnz x14, 2132b ldr x2, [x0, #120] ldr x3, [x0, #48] lsl x3, x3, #3 @@ -4020,7 +4027,7 @@ vg_ffdh_parameter_candidate_sieved: ldr x30, [x2, #8] ldr x19, [x2, #0] ldr x3, [x0, #184] - cbz x3, 2134f + cbz x3, 2133f ldr x3, [x0, #24] ldr x4, [x0, #0] add x3, x3, #1 @@ -4030,42 +4037,42 @@ vg_ffdh_parameter_candidate_sieved: csel x5, x7, x6, hs str x3, [x0, #24] str x5, [x0, #248] - b 2135f -2134: + b 2134f +2133: movz x3, #2, lsl #0 str x3, [x0, #248] -2135: - b 2127f -2126: +2134: + b 2126f +2125: movz x3, #4, lsl #0 str x3, [x0, #248] -2127: - b 2119f -2118: +2126: + b 2118f +2117: movz x3, #0, lsl #0 str x3, [x0, #248] -2119: +2118: ldr x3, [x0, #248] sub x3, x3, #4 - cbz x3, 2117b + cbz x3, 2116b ldr x3, [x0, #248] sub x3, x3, #1 - cbz x3, 2136f + cbz x3, 2135f ldr x3, [x0, #248] - cbz x3, 2138f + cbz x3, 2137f ldr x3, [x0, #216] ldr x2, [x0, #136] str x3, [x2, #0] movz x0, #2, lsl #0 - b 2139f -2138: + b 2138f +2137: movz x3, #0, lsl #0 ldr x2, [x0, #136] str x3, [x2, #0] movz x0, #0, lsl #0 -2139: - b 2137f -2136: +2138: + b 2136f +2135: ldr x3, [x0, #152] add x4, x3, #7 lsr x4, x4, #3 @@ -4111,11 +4118,11 @@ vg_ffdh_parameter_candidate_sieved: sub x4, x7, #1 str x4, [x0, #176] movz x9, #0, lsl #0 -2140: +2139: add x9, x9, x9 add x9, x9, #1 sub x6, x6, #1 - cbnz x6, 2140b + cbnz x6, 2139b str x9, [x0, #16] ldr x12, [x0, #48] ldr x11, [x0, #224] @@ -4123,11 +4130,11 @@ vg_ffdh_parameter_candidate_sieved: movz x7, #0, lsl #0 add x16, x8, #0 add x14, x12, #2 -2141: +2140: str x7, [x16, #0] add x16, x16, #8 sub x14, x14, #1 - cbnz x14, 2141b + cbnz x14, 2140b ldr x12, [x0, #48] ldr x11, [x0, #224] add x8, x0, #256 @@ -4135,21 +4142,21 @@ vg_ffdh_parameter_candidate_sieved: ldr x2, [x0, #144] movz x3, #0, lsl #0 movz x6, #7, lsl #0 -2142: +2141: sub x2, x2, #1 lsl x3, x3, #8 ldrb w4, [x1, #0] add x3, x3, x4 add x1, x1, #1 and x5, x2, x6 - cbz x5, 2143f - b 2144f -2143: + cbz x5, 2142f + b 2143f +2142: add x5, x8, x2 str x3, [x5, #0] movz x3, #0, lsl #0 -2144: - cbnz x2, 2142b +2143: + cbnz x2, 2141b ldr x12, [x0, #48] ldr x11, [x0, #224] add x16, x0, #256 @@ -4203,11 +4210,11 @@ vg_ffdh_parameter_candidate_sieved: movz x7, #0, lsl #0 add x16, x8, #0 add x14, x12, #2 -2145: +2144: str x7, [x16, #0] add x16, x16, #8 sub x14, x14, #1 - cbnz x14, 2145b + cbnz x14, 2144b lsl x16, x13, #3 add x16, x8, x16 str x9, [x16, #0] @@ -4218,7 +4225,7 @@ vg_ffdh_parameter_candidate_sieved: add x13, x9, x13 ldr x3, [x13, #0] lsr x3, x3, #63 - cbz x3, 2146f + cbz x3, 2145f ldr x11, [x0, #96] ldr x9, [x0, #64] ldr x6, [x0, #88] @@ -4228,14 +4235,14 @@ vg_ffdh_parameter_candidate_sieved: add x17, x9, #0 add x14, x12, #0 subs x3, x7, x7 -2148: +2147: ldr x4, [x17, #0] sbcs x3, x7, x4 str x3, [x16, #0] add x16, x16, #8 add x17, x17, #8 sub x14, x14, #1 - cbnz x14, 2148b + cbnz x14, 2147b lsl x13, x12, #3 sub x13, x13, #8 add x13, x9, x13 @@ -4245,7 +4252,7 @@ vg_ffdh_parameter_candidate_sieved: movz x10, #0, lsl #0 movz x4, #1, lsl #0 movz x13, #64, lsl #0 -2149: +2148: lsr x3, x2, #63 lsl x2, x2, #1 orr x2, x2, x4 @@ -4257,11 +4264,11 @@ vg_ffdh_parameter_candidate_sieved: add x10, x10, x10 add x10, x10, x16 sub x13, x13, #1 - cbnz x13, 2149b + cbnz x13, 2148b str x10, [x6, #0] ldr x13, [x0, #48] str x13, [x0, #208] -2150: +2149: ldr x9, [x0, #64] ldr x11, [x0, #96] ldr x6, [x0, #88] @@ -4331,7 +4338,7 @@ vg_ffdh_parameter_candidate_sieved: sub x15, x15, #1 add x13, x15, #0 adds x3, x7, x7 -2151: +2150: ldr x3, [x17, #0] mul x4, x1, x3 umulh x3, x1, x3 @@ -4345,7 +4352,7 @@ vg_ffdh_parameter_candidate_sieved: add x16, x16, #8 add x17, x17, #8 sub x14, x14, #1 - cbnz x14, 2151b + cbnz x14, 2150b adc x4, x13, x2 eor x4, x4, x15 str x4, [x16, #0] @@ -4358,7 +4365,7 @@ vg_ffdh_parameter_candidate_sieved: add x17, x9, #0 add x14, x12, #0 adds x3, x7, x7 -2152: +2151: ldr x4, [x17, #0] and x4, x4, x15 ldr x3, [x16, #0] @@ -4367,16 +4374,16 @@ vg_ffdh_parameter_candidate_sieved: add x16, x16, #8 add x17, x17, #8 sub x14, x14, #1 - cbnz x14, 2152b + cbnz x14, 2151b ldr x3, [x16, #0] adc x3, x3, x7 str x3, [x16, #0] ldr x13, [x0, #208] sub x13, x13, #1 str x13, [x0, #208] - cbnz x13, 2150b - b 2147f -2146: + cbnz x13, 2149b + b 2146f +2145: ldr x12, [x0, #48] ldr x8, [x0, #64] sub x4, x12, #1 @@ -4386,27 +4393,27 @@ vg_ffdh_parameter_candidate_sieved: movz x9, #1, lsl #0 movz x13, #64, lsl #0 sub x6, x3, #1 - cbz x6, 2153f -2155: + cbz x6, 2152f +2154: lsr x3, x3, #1 add x9, x9, x9 sub x13, x13, #1 sub x6, x3, #1 - cbnz x6, 2155b - b 2154f + cbnz x6, 2154b + b 2153f +2152: 2153: -2154: str x13, [x0, #208] sub x13, x12, #1 ldr x8, [x0, #96] movz x7, #0, lsl #0 add x16, x8, #0 add x14, x12, #2 -2156: +2155: str x7, [x16, #0] add x16, x16, #8 sub x14, x14, #1 - cbnz x14, 2156b + cbnz x14, 2155b lsl x16, x13, #3 add x16, x8, x16 str x9, [x16, #0] @@ -4414,7 +4421,7 @@ vg_ffdh_parameter_candidate_sieved: ldr x12, [x0, #48] add x13, x13, x12 str x13, [x0, #208] -2157: +2156: ldr x5, [x0, #96] ldr x10, [x0, #64] ldr x8, [x0, #80] @@ -4425,14 +4432,14 @@ vg_ffdh_parameter_candidate_sieved: add x16, x8, #0 add x14, x12, #0 adds x3, x7, x7 -2158: +2157: ldr x3, [x17, #0] adcs x3, x3, x3 str x3, [x16, #0] add x17, x17, #8 add x16, x16, #8 sub x14, x14, #1 - cbnz x14, 2158b + cbnz x14, 2157b adc x3, x7, x7 str x3, [x16, #0] add x16, x8, #0 @@ -4440,7 +4447,7 @@ vg_ffdh_parameter_candidate_sieved: add x13, x6, #0 add x14, x12, #0 subs x3, x7, x7 -2159: +2158: ldr x3, [x16, #0] ldr x4, [x17, #0] sbcs x3, x3, x4 @@ -4449,12 +4456,12 @@ vg_ffdh_parameter_candidate_sieved: add x17, x17, #8 add x13, x13, #8 sub x14, x14, #1 - cbnz x14, 2159b + cbnz x14, 2158b ldr x3, [x16, #0] sbcs x3, x3, x7 add x16, x8, #0 add x14, x12, #0 -2160: +2159: ldr x3, [x16, #0] ldr x4, [x6, #0] csel x3, x4, x3, hs @@ -4463,22 +4470,22 @@ vg_ffdh_parameter_candidate_sieved: add x6, x6, #8 add x5, x5, #8 sub x14, x14, #1 - cbnz x14, 2160b + cbnz x14, 2159b ldr x13, [x0, #208] sub x13, x13, #1 str x13, [x0, #208] - cbnz x13, 2157b + cbnz x13, 2156b movz x13, #6, lsl #0 str x13, [x0, #208] -2161: +2160: mov v31.d[0], x30 bl {vg_rsa_square_4_4} umov x30, v31.d[0] ldr x13, [x0, #208] sub x13, x13, #1 str x13, [x0, #208] - cbnz x13, 2161b -2147: + cbnz x13, 2160b +2146: ldr x8, [x0, #80] ldr x9, [x0, #120] ldr x10, [x0, #64] @@ -4490,20 +4497,20 @@ vg_ffdh_parameter_candidate_sieved: movz x7, #0, lsl #0 add x16, x8, #0 add x14, x12, #2 -2162: +2161: str x7, [x16, #0] add x16, x16, #8 sub x14, x14, #1 - cbnz x14, 2162b + cbnz x14, 2161b add x13, x12, #0 -2163: +2162: ldr x1, [x11, #0] add x11, x11, #8 add x16, x8, #0 add x17, x9, #0 add x14, x12, #0 adds x2, x7, x7 -2164: +2163: ldr x3, [x17, #0] mul x4, x1, x3 umulh x3, x1, x3 @@ -4515,7 +4522,7 @@ vg_ffdh_parameter_candidate_sieved: add x16, x16, #8 add x17, x17, #8 sub x14, x14, #1 - cbnz x14, 2164b + cbnz x14, 2163b adc x2, x2, x7 ldr x3, [x16, #0] adds x3, x3, x2 @@ -4534,7 +4541,7 @@ vg_ffdh_parameter_candidate_sieved: add x17, x10, #8 sub x14, x12, #1 adds x3, x7, x7 -2165: +2164: ldr x3, [x17, #0] mul x4, x1, x3 umulh x3, x1, x3 @@ -4546,7 +4553,7 @@ vg_ffdh_parameter_candidate_sieved: add x16, x16, #8 add x17, x17, #8 sub x14, x14, #1 - cbnz x14, 2165b + cbnz x14, 2164b adc x2, x2, x7 ldr x3, [x16, #8] adds x3, x3, x2 @@ -4556,13 +4563,13 @@ vg_ffdh_parameter_candidate_sieved: str x3, [x16, #8] str x7, [x16, #16] sub x13, x13, #1 - cbnz x13, 2163b + cbnz x13, 2162b add x16, x8, #0 add x17, x10, #0 add x13, x6, #0 add x14, x12, #0 subs x3, x7, x7 -2166: +2165: ldr x3, [x16, #0] ldr x4, [x17, #0] sbcs x3, x3, x4 @@ -4571,12 +4578,12 @@ vg_ffdh_parameter_candidate_sieved: add x17, x17, #8 add x13, x13, #8 sub x14, x14, #1 - cbnz x14, 2166b + cbnz x14, 2165b ldr x3, [x16, #0] sbcs x3, x3, x7 add x16, x8, #0 add x14, x12, #0 -2167: +2166: ldr x3, [x16, #0] ldr x4, [x6, #0] csel x3, x4, x3, hs @@ -4585,7 +4592,7 @@ vg_ffdh_parameter_candidate_sieved: add x6, x6, #8 add x5, x5, #8 sub x14, x14, #1 - cbnz x14, 2167b + cbnz x14, 2166b ldr x12, [x0, #48] ldr x11, [x0, #224] add x16, x11, #0 @@ -4602,13 +4609,13 @@ vg_ffdh_parameter_candidate_sieved: add x17, x17, x0 add x17, x17, #256 add x14, x12, #0 -2168: +2167: ldr x3, [x16, #0] str x3, [x17, #0] add x16, x16, #8 add x17, x17, #8 sub x14, x14, #1 - cbnz x14, 2168b + cbnz x14, 2167b ldr x12, [x0, #48] ldr x11, [x0, #224] movz x7, #0, lsl #0 @@ -4630,7 +4637,7 @@ vg_ffdh_parameter_candidate_sieved: add x8, x8, x8 add x8, x8, x0 add x8, x8, #256 -2169: +2168: ldr x3, [x16, #0] ldr x4, [x17, #0] and x4, x4, x15 @@ -4640,7 +4647,7 @@ vg_ffdh_parameter_candidate_sieved: add x17, x17, #8 add x8, x8, #8 sub x14, x14, #1 - cbnz x14, 2169b + cbnz x14, 2168b ldr x12, [x0, #48] ldr x11, [x0, #224] add x16, x0, #256 @@ -4651,7 +4658,7 @@ vg_ffdh_parameter_candidate_sieved: sub x14, x12, #1 movz x7, #0, lsl #0 sub x8, x7, #1 -2170: +2169: ldr x3, [x16, #0] subs x6, x5, x4 csel x6, x7, x8, hs @@ -4659,7 +4666,7 @@ vg_ffdh_parameter_candidate_sieved: orr x5, x5, x3 add x16, x16, #8 sub x14, x14, #1 - cbnz x14, 2170b + cbnz x14, 2169b add x10, x11, #0 add x10, x10, x10 add x10, x10, x11 @@ -4681,7 +4688,7 @@ vg_ffdh_parameter_candidate_sieved: ldr x5, [x16, #0] add x16, x16, #8 sub x14, x12, #1 -2171: +2170: ldr x3, [x16, #0] lsl x4, x3, #63 lsr x6, x5, #1 @@ -4694,7 +4701,7 @@ vg_ffdh_parameter_candidate_sieved: add x17, x17, #8 add x5, x3, #0 sub x14, x14, #1 - cbnz x14, 2171b + cbnz x14, 2170b lsr x6, x5, #1 eor x6, x6, x5 and x6, x6, x15 @@ -4714,7 +4721,7 @@ vg_ffdh_parameter_candidate_sieved: ldr x5, [x16, #0] add x16, x16, #8 sub x14, x12, #1 -2172: +2171: ldr x3, [x16, #0] lsl x4, x3, #63 lsr x6, x5, #1 @@ -4727,7 +4734,7 @@ vg_ffdh_parameter_candidate_sieved: add x17, x17, #8 add x5, x3, #0 sub x14, x14, #1 - cbnz x14, 2172b + cbnz x14, 2171b lsr x6, x5, #1 eor x6, x6, x5 and x6, x6, x15 @@ -4747,7 +4754,7 @@ vg_ffdh_parameter_candidate_sieved: ldr x5, [x16, #0] add x16, x16, #8 sub x14, x12, #1 -2173: +2172: ldr x3, [x16, #0] lsl x4, x3, #63 lsr x6, x5, #1 @@ -4760,7 +4767,7 @@ vg_ffdh_parameter_candidate_sieved: add x17, x17, #8 add x5, x3, #0 sub x14, x14, #1 - cbnz x14, 2173b + cbnz x14, 2172b lsr x6, x5, #1 eor x6, x6, x5 and x6, x6, x15 @@ -4780,7 +4787,7 @@ vg_ffdh_parameter_candidate_sieved: ldr x5, [x16, #0] add x16, x16, #8 sub x14, x12, #1 -2174: +2173: ldr x3, [x16, #0] lsl x4, x3, #63 lsr x6, x5, #1 @@ -4793,7 +4800,7 @@ vg_ffdh_parameter_candidate_sieved: add x17, x17, #8 add x5, x3, #0 sub x14, x14, #1 - cbnz x14, 2174b + cbnz x14, 2173b lsr x6, x5, #1 eor x6, x6, x5 and x6, x6, x15 @@ -4801,7 +4808,7 @@ vg_ffdh_parameter_candidate_sieved: str x6, [x17, #0] movz x3, #0, lsl #0 str x3, [x0, #24] -2175: +2174: ldr x3, [x0, #200] ldr x4, [x0, #216] sub x3, x3, x4 @@ -4810,7 +4817,7 @@ vg_ffdh_parameter_candidate_sieved: movz x7, #0, lsl #0 movz x4, #1, lsl #0 csel x5, x4, x7, hs - cbz x5, 2176f + cbz x5, 2175f ldr x12, [x0, #48] ldr x11, [x0, #224] add x8, x11, #0 @@ -4819,11 +4826,11 @@ vg_ffdh_parameter_candidate_sieved: movz x7, #0, lsl #0 add x16, x8, #0 add x14, x12, #2 -2178: +2177: str x7, [x16, #0] add x16, x16, #8 sub x14, x14, #1 - cbnz x14, 2178b + cbnz x14, 2177b ldr x12, [x0, #48] ldr x11, [x0, #224] add x8, x11, #0 @@ -4837,21 +4844,21 @@ vg_ffdh_parameter_candidate_sieved: str x3, [x0, #216] movz x3, #0, lsl #0 movz x6, #7, lsl #0 -2179: +2178: sub x2, x2, #1 lsl x3, x3, #8 ldrb w4, [x1, #0] add x3, x3, x4 add x1, x1, #1 and x5, x2, x6 - cbz x5, 2180f - b 2181f -2180: + cbz x5, 2179f + b 2180f +2179: add x5, x8, x2 str x3, [x5, #0] movz x3, #0, lsl #0 -2181: - cbnz x2, 2179b +2180: + cbnz x2, 2178b ldr x12, [x0, #48] ldr x11, [x0, #224] add x16, x11, #0 @@ -4873,12 +4880,12 @@ vg_ffdh_parameter_candidate_sieved: lsr x5, x5, #1 add x16, x16, #8 sub x14, x12, #1 -2182: +2181: ldr x3, [x16, #0] orr x5, x5, x3 add x16, x16, #8 sub x14, x14, #1 - cbnz x14, 2182b + cbnz x14, 2181b movz x7, #0, lsl #0 sub x8, x7, #1 movz x4, #1, lsl #0 @@ -4897,17 +4904,17 @@ vg_ffdh_parameter_candidate_sieved: add x16, x16, #8 add x17, x17, #8 sub x14, x12, #1 -2183: +2182: ldr x3, [x16, #0] ldr x4, [x17, #0] sbcs x3, x3, x4 add x16, x16, #8 add x17, x17, #8 sub x14, x14, #1 - cbnz x14, 2183b + cbnz x14, 2182b csel x15, x7, x8, hs and x9, x9, x15 - cbz x9, 2184f + cbz x9, 2183f ldr x8, [x0, #80] ldr x9, [x0, #96] ldr x10, [x0, #64] @@ -4919,20 +4926,20 @@ vg_ffdh_parameter_candidate_sieved: movz x7, #0, lsl #0 add x16, x8, #0 add x14, x12, #2 -2186: +2185: str x7, [x16, #0] add x16, x16, #8 sub x14, x14, #1 - cbnz x14, 2186b + cbnz x14, 2185b add x13, x12, #0 -2187: +2186: ldr x1, [x11, #0] add x11, x11, #8 add x16, x8, #0 add x17, x9, #0 add x14, x12, #0 adds x2, x7, x7 -2188: +2187: ldr x3, [x17, #0] mul x4, x1, x3 umulh x3, x1, x3 @@ -4944,7 +4951,7 @@ vg_ffdh_parameter_candidate_sieved: add x16, x16, #8 add x17, x17, #8 sub x14, x14, #1 - cbnz x14, 2188b + cbnz x14, 2187b adc x2, x2, x7 ldr x3, [x16, #0] adds x3, x3, x2 @@ -4963,7 +4970,7 @@ vg_ffdh_parameter_candidate_sieved: add x17, x10, #8 sub x14, x12, #1 adds x3, x7, x7 -2189: +2188: ldr x3, [x17, #0] mul x4, x1, x3 umulh x3, x1, x3 @@ -4975,7 +4982,7 @@ vg_ffdh_parameter_candidate_sieved: add x16, x16, #8 add x17, x17, #8 sub x14, x14, #1 - cbnz x14, 2189b + cbnz x14, 2188b adc x2, x2, x7 ldr x3, [x16, #8] adds x3, x3, x2 @@ -4985,13 +4992,13 @@ vg_ffdh_parameter_candidate_sieved: str x3, [x16, #8] str x7, [x16, #16] sub x13, x13, #1 - cbnz x13, 2187b + cbnz x13, 2186b add x16, x8, #0 add x17, x10, #0 add x13, x6, #0 add x14, x12, #0 subs x3, x7, x7 -2190: +2189: ldr x3, [x16, #0] ldr x4, [x17, #0] sbcs x3, x3, x4 @@ -5000,12 +5007,12 @@ vg_ffdh_parameter_candidate_sieved: add x17, x17, #8 add x13, x13, #8 sub x14, x14, #1 - cbnz x14, 2190b + cbnz x14, 2189b ldr x3, [x16, #0] sbcs x3, x3, x7 add x16, x8, #0 add x14, x12, #0 -2191: +2190: ldr x3, [x16, #0] ldr x4, [x6, #0] csel x3, x4, x3, hs @@ -5014,7 +5021,7 @@ vg_ffdh_parameter_candidate_sieved: add x6, x6, #8 add x5, x5, #8 sub x14, x14, #1 - cbnz x14, 2191b + cbnz x14, 2190b ldr x2, [x0, #120] ldr x3, [x0, #48] lsl x3, x3, #3 @@ -5040,7 +5047,7 @@ vg_ffdh_parameter_candidate_sieved: ldr x30, [x2, #8] ldr x19, [x2, #0] ldr x3, [x0, #184] - cbz x3, 2192f + cbz x3, 2191f ldr x3, [x0, #24] ldr x4, [x0, #0] add x3, x3, #1 @@ -5050,34 +5057,34 @@ vg_ffdh_parameter_candidate_sieved: csel x5, x7, x6, hs str x3, [x0, #24] str x5, [x0, #248] - b 2193f -2192: + b 2192f +2191: movz x3, #2, lsl #0 str x3, [x0, #248] -2193: - b 2185f -2184: +2192: + b 2184f +2183: movz x3, #4, lsl #0 str x3, [x0, #248] -2185: - b 2177f -2176: +2184: + b 2176f +2175: movz x3, #0, lsl #0 str x3, [x0, #248] -2177: +2176: ldr x3, [x0, #248] sub x3, x3, #4 - cbz x3, 2175b + cbz x3, 2174b ldr x3, [x0, #248] - cbz x3, 2194f + cbz x3, 2193f sub x3, x3, #1 - cbz x3, 2196f + cbz x3, 2195f ldr x3, [x0, #216] ldr x2, [x0, #136] str x3, [x2, #0] movz x0, #2, lsl #0 - b 2197f -2196: + b 2196f +2195: ldr x3, [x0, #216] ldr x2, [x0, #136] str x3, [x2, #0] @@ -5090,35 +5097,35 @@ vg_ffdh_parameter_candidate_sieved: ldr x15, [x0, #176] movz x2, #0, lsl #0 movz x6, #7, lsl #0 -2198: +2197: and x5, x2, x6 - cbz x5, 2199f - b 2200f -2199: + cbz x5, 2198f + b 2199f +2198: add x5, x8, x2 ldr x3, [x5, #0] and x3, x3, x15 -2200: +2199: sub x1, x1, #1 strb w3, [x1, #0] lsr x3, x3, #8 add x2, x2, #1 sub x9, x9, #1 - cbnz x9, 2198b + cbnz x9, 2197b movz x0, #1, lsl #0 -2197: - b 2195f -2194: +2196: + b 2194f +2193: movz x3, #0, lsl #0 ldr x2, [x0, #136] str x3, [x2, #0] movz x0, #0, lsl #0 -2195: -2137: -282: -226: -218: -211: +2194: +2136: +281: +225: +217: +210: b 22f 21: movz x3, #0, lsl #0 diff --git a/crates/verified-garbage-asm-aarch64/src/internal/vg_ffdh_parameter_candidate_sieved.rs b/crates/verified-garbage-asm-aarch64/src/internal/vg_ffdh_parameter_candidate_sieved.rs index c1d24018b16..a03cd2525c0 100644 --- a/crates/verified-garbage-asm-aarch64/src/internal/vg_ffdh_parameter_candidate_sieved.rs +++ b/crates/verified-garbage-asm-aarch64/src/internal/vg_ffdh_parameter_candidate_sieved.rs @@ -42,22 +42,19 @@ b 27f cbnz x2, 25b .inst 0xf940180c,0xf940700b,0x91040010,0xd37df185,0x8b050205,0xd10020a5,0xf9400804,0xf9400203 .inst 0xf94000a6,0xd2800029,0xaa090063,0x8a0400c6,0xd341fc89,0x91000529,0xaa0900c6,0xf9000203 -.inst 0xf90000a6,0xf940180c,0xf940700b,0x91040010,0xd37df185,0x8b05020a,0x9100018e,0xf9405009 -.inst 0xd2800066,0xeb060128,0xd280014d,0xd2800306,0x9a8621ad,0xd2800003,0xd2800007,0xd10004e8 +.inst 0xf90000a6,0xf940180c,0xf940700b,0x91040010,0xf9400202,0x9100018e,0xd2800003 28: -.inst 0xd100214a,0xf9400142,0xd2800809 -29: -.inst 0xab020042,0xba030063,0x9a0700e4,0xeb0d0065,0x9a872106,0xcb0400e4,0xaa0400c6,0xca0300a5 -.inst 0x8a0600a5,0xca050063,0xd1000529 -cbnz x9, 29b -.inst 0xd10005ce +.inst 0xf9400205,0xd360fca4,0xd3607c86,0xcb0600a5,0x8b040063,0x8b050063,0x91002210,0xd10005ce cbnz x14, 28b -.inst 0xf9405009,0xd2800066,0xeb060128,0xd2800084,0xaa040065,0x9a8320a5,0xd28000e6,0xd2800167 -.inst 0x9a8720c6,0xca0600a5,0xf9001005,0xf9401005 -cbz x5, 210f +.inst 0xd2933347,0xf2b33327,0xf2d33327,0xf2e33327,0xd2955566,0xf2b55546,0xf2d55546,0xf2e15546 +.inst 0xf9405009,0xd280006a,0xeb0a0128,0x9a8620e7,0xd280014d,0xd2800306,0x9a8621ad,0xd28000e4 +.inst 0x8a040042,0xd2800d24,0x9b047c42,0xd2800204,0x9b047c63,0x8b020063,0x9bc77c64,0x9b0d7c84 +.inst 0xcb040063,0xf9405009,0xd2800066,0xeb060128,0xd2800084,0xaa040065,0x9a8320a5,0xd28000e6 +.inst 0xd2800167,0x9a8720c6,0xca0600a5,0xf9001005,0xf9401005 +cbz x5, 29f .inst 0xf9406c03,0xf9404402,0xf9000043,0xd2800040 -b 211f -210: +b 210f +29: .inst 0xf940180c,0xf940700b,0x91000169,0x8b090129,0x8b090129,0x8b0b0129,0x8b090129,0x8b0b0129 .inst 0x8b000129,0x91040129,0xd2800063,0xf2a000a3,0xf2c000e3,0xf2e00163,0xf9000123,0xd28001a3 .inst 0xf2a00223,0xf2c00263,0xf2e002e3,0xf9000523,0xd28003a3,0xf2a003e3,0xf2c004a3,0xf2e00523 @@ -222,129 +219,129 @@ b 211f .inst 0xf2e3fc23,0xf903fd23,0xf940180c,0xf940700b,0x91000169,0x8b090129,0x8b090129,0x8b0b0129 .inst 0x8b090129,0x8b0b0129,0x8b000129,0x91040129,0xd2801003,0xd2802004,0xd2800225,0xeb050186 .inst 0x9a83208a,0xd2800001,0xd2800007,0xd10004e8 -212: +211: .inst 0xf9400131,0x91002129,0x91000223,0xd29fffe4,0x8a040063,0x91000064,0x9b047c65,0xd2800046 .inst 0xcb0500c5,0x9b057c84,0x9b047c65,0xd2800046,0xcb0500c5,0x9b057c84,0x9b047c65,0xd2800046 .inst 0xcb0500c5,0x9b057c84,0x9b047c65,0xd2800046,0xcb0500c5,0x9b057c84,0x9b047c65,0xd2800046 .inst 0xcb0500c5,0x9b057c84,0xd2800006,0xcb0400cf,0x9100006d,0xf940180c,0xf940700b,0x91040010 .inst 0x9100018e,0xd2800002 -213: +212: .inst 0xf9400205,0x110000a4,0x8b020084,0x1b0f7c86,0x9b0d7cc6,0x8b0400c6,0xd360fcc2,0xd360fca4 .inst 0x8b020084,0x1b0f7c86,0x9b0d7cc6,0x8b0400c6,0xd360fcc2,0x91002210,0xd10005ce -cbnz x14, 213b +cbnz x14, 212b .inst 0xd2800024,0xeb040043,0x9a8820e5,0xca0d0043,0xeb040063,0x9a8820e6,0xaa0600a5,0xaa050021 .inst 0xd350fe23,0xd29fffe4,0x8a040063,0x91000064,0x9b047c65,0xd2800046,0xcb0500c5,0x9b057c84 .inst 0x9b047c65,0xd2800046,0xcb0500c5,0x9b057c84,0x9b047c65,0xd2800046,0xcb0500c5,0x9b057c84 .inst 0x9b047c65,0xd2800046,0xcb0500c5,0x9b057c84,0x9b047c65,0xd2800046,0xcb0500c5,0x9b057c84 .inst 0xd2800006,0xcb0400cf,0x9100006d,0xf940180c,0xf940700b,0x91040010,0x9100018e,0xd2800002 -214: +213: .inst 0xf9400205,0x110000a4,0x8b020084,0x1b0f7c86,0x9b0d7cc6,0x8b0400c6,0xd360fcc2,0xd360fca4 .inst 0x8b020084,0x1b0f7c86,0x9b0d7cc6,0x8b0400c6,0xd360fcc2,0x91002210,0xd10005ce -cbnz x14, 214b +cbnz x14, 213b .inst 0xd2800024,0xeb040043,0x9a8820e5,0xca0d0043,0xeb040063,0x9a8820e6,0xaa0600a5,0xaa050021 .inst 0xd360fe23,0xd29fffe4,0x8a040063,0x91000064,0x9b047c65,0xd2800046,0xcb0500c5,0x9b057c84 .inst 0x9b047c65,0xd2800046,0xcb0500c5,0x9b057c84,0x9b047c65,0xd2800046,0xcb0500c5,0x9b057c84 .inst 0x9b047c65,0xd2800046,0xcb0500c5,0x9b057c84,0x9b047c65,0xd2800046,0xcb0500c5,0x9b057c84 .inst 0xd2800006,0xcb0400cf,0x9100006d,0xf940180c,0xf940700b,0x91040010,0x9100018e,0xd2800002 -215: +214: .inst 0xf9400205,0x110000a4,0x8b020084,0x1b0f7c86,0x9b0d7cc6,0x8b0400c6,0xd360fcc2,0xd360fca4 .inst 0x8b020084,0x1b0f7c86,0x9b0d7cc6,0x8b0400c6,0xd360fcc2,0x91002210,0xd10005ce -cbnz x14, 215b +cbnz x14, 214b .inst 0xd2800024,0xeb040043,0x9a8820e5,0xca0d0043,0xeb040063,0x9a8820e6,0xaa0600a5,0xaa050021 .inst 0xd370fe23,0xd29fffe4,0x8a040063,0x91000064,0x9b047c65,0xd2800046,0xcb0500c5,0x9b057c84 .inst 0x9b047c65,0xd2800046,0xcb0500c5,0x9b057c84,0x9b047c65,0xd2800046,0xcb0500c5,0x9b057c84 .inst 0x9b047c65,0xd2800046,0xcb0500c5,0x9b057c84,0x9b047c65,0xd2800046,0xcb0500c5,0x9b057c84 .inst 0xd2800006,0xcb0400cf,0x9100006d,0xf940180c,0xf940700b,0x91040010,0x9100018e,0xd2800002 -216: +215: .inst 0xf9400205,0x110000a4,0x8b020084,0x1b0f7c86,0x9b0d7cc6,0x8b0400c6,0xd360fcc2,0xd360fca4 .inst 0x8b020084,0x1b0f7c86,0x9b0d7cc6,0x8b0400c6,0xd360fcc2,0x91002210,0xd10005ce -cbnz x14, 216b +cbnz x14, 215b .inst 0xd2800024,0xeb040043,0x9a8820e5,0xca0d0043,0xeb040063,0x9a8820e6,0xaa0600a5,0xaa050021 .inst 0xd100054a,0xca080023,0x8a03014a -cbnz x10, 212b +cbnz x10, 211b .inst 0xf9401005,0xaa0100a5,0xf9001005,0xf9401005 -cbz x5, 217f +cbz x5, 216f .inst 0xf9406c03,0xf9404402,0xf9000043,0xd2800040 -b 218f -217: +b 217f +216: .inst 0xf940180c,0xf940700b,0x91040010,0x91000211,0xd2800007,0xd10004ef,0xf9400205,0x91002210 .inst 0xd100058e -219: +218: .inst 0xf9400203,0xd3410064,0xd341fca6,0xaa0400c6,0xca0500c6,0x8a0f00c6,0xca0500c6,0xf9000226 .inst 0x91002210,0x91002231,0x91000065,0xd10005ce -cbnz x14, 219b +cbnz x14, 218b .inst 0xd341fca6,0xca0500c6,0x8a0f00c6,0xca0500c6,0xf9000226,0xf940180c,0xf940700b,0x91040010 .inst 0xf9401005,0xf9400203,0xd2800024,0x8a040063,0xca040063,0xaa0300a5,0xf9001005,0xf940180c .inst 0xf940700b,0x91000169,0x8b090129,0x8b090129,0x8b0b0129,0x8b090129,0x8b0b0129,0x8b000129 .inst 0x91040129,0xd2801003,0xd2802004,0xd2800225,0xeb050186,0x9a83208a,0xd2800001,0xd2800007 .inst 0xd10004e8 -220: +219: .inst 0xf9400131,0x91002129,0x91000223,0xd29fffe4,0x8a040063,0x91000064,0x9b047c65,0xd2800046 .inst 0xcb0500c5,0x9b057c84,0x9b047c65,0xd2800046,0xcb0500c5,0x9b057c84,0x9b047c65,0xd2800046 .inst 0xcb0500c5,0x9b057c84,0x9b047c65,0xd2800046,0xcb0500c5,0x9b057c84,0x9b047c65,0xd2800046 .inst 0xcb0500c5,0x9b057c84,0xd2800006,0xcb0400cf,0x9100006d,0xf940180c,0xf940700b,0x91040010 .inst 0x9100018e,0xd2800002 -221: +220: .inst 0xf9400205,0x110000a4,0x8b020084,0x1b0f7c86,0x9b0d7cc6,0x8b0400c6,0xd360fcc2,0xd360fca4 .inst 0x8b020084,0x1b0f7c86,0x9b0d7cc6,0x8b0400c6,0xd360fcc2,0x91002210,0xd10005ce -cbnz x14, 221b +cbnz x14, 220b .inst 0xd2800024,0xeb040043,0x9a8820e5,0xca0d0043,0xeb040063,0x9a8820e6,0xaa0600a5,0xaa050021 .inst 0xd350fe23,0xd29fffe4,0x8a040063,0x91000064,0x9b047c65,0xd2800046,0xcb0500c5,0x9b057c84 .inst 0x9b047c65,0xd2800046,0xcb0500c5,0x9b057c84,0x9b047c65,0xd2800046,0xcb0500c5,0x9b057c84 .inst 0x9b047c65,0xd2800046,0xcb0500c5,0x9b057c84,0x9b047c65,0xd2800046,0xcb0500c5,0x9b057c84 .inst 0xd2800006,0xcb0400cf,0x9100006d,0xf940180c,0xf940700b,0x91040010,0x9100018e,0xd2800002 -222: +221: .inst 0xf9400205,0x110000a4,0x8b020084,0x1b0f7c86,0x9b0d7cc6,0x8b0400c6,0xd360fcc2,0xd360fca4 .inst 0x8b020084,0x1b0f7c86,0x9b0d7cc6,0x8b0400c6,0xd360fcc2,0x91002210,0xd10005ce -cbnz x14, 222b +cbnz x14, 221b .inst 0xd2800024,0xeb040043,0x9a8820e5,0xca0d0043,0xeb040063,0x9a8820e6,0xaa0600a5,0xaa050021 .inst 0xd360fe23,0xd29fffe4,0x8a040063,0x91000064,0x9b047c65,0xd2800046,0xcb0500c5,0x9b057c84 .inst 0x9b047c65,0xd2800046,0xcb0500c5,0x9b057c84,0x9b047c65,0xd2800046,0xcb0500c5,0x9b057c84 .inst 0x9b047c65,0xd2800046,0xcb0500c5,0x9b057c84,0x9b047c65,0xd2800046,0xcb0500c5,0x9b057c84 .inst 0xd2800006,0xcb0400cf,0x9100006d,0xf940180c,0xf940700b,0x91040010,0x9100018e,0xd2800002 -223: +222: .inst 0xf9400205,0x110000a4,0x8b020084,0x1b0f7c86,0x9b0d7cc6,0x8b0400c6,0xd360fcc2,0xd360fca4 .inst 0x8b020084,0x1b0f7c86,0x9b0d7cc6,0x8b0400c6,0xd360fcc2,0x91002210,0xd10005ce -cbnz x14, 223b +cbnz x14, 222b .inst 0xd2800024,0xeb040043,0x9a8820e5,0xca0d0043,0xeb040063,0x9a8820e6,0xaa0600a5,0xaa050021 .inst 0xd370fe23,0xd29fffe4,0x8a040063,0x91000064,0x9b047c65,0xd2800046,0xcb0500c5,0x9b057c84 .inst 0x9b047c65,0xd2800046,0xcb0500c5,0x9b057c84,0x9b047c65,0xd2800046,0xcb0500c5,0x9b057c84 .inst 0x9b047c65,0xd2800046,0xcb0500c5,0x9b057c84,0x9b047c65,0xd2800046,0xcb0500c5,0x9b057c84 .inst 0xd2800006,0xcb0400cf,0x9100006d,0xf940180c,0xf940700b,0x91040010,0x9100018e,0xd2800002 -224: +223: .inst 0xf9400205,0x110000a4,0x8b020084,0x1b0f7c86,0x9b0d7cc6,0x8b0400c6,0xd360fcc2,0xd360fca4 .inst 0x8b020084,0x1b0f7c86,0x9b0d7cc6,0x8b0400c6,0xd360fcc2,0x91002210,0xd10005ce -cbnz x14, 224b +cbnz x14, 223b .inst 0xd2800024,0xeb040043,0x9a8820e5,0xca0d0043,0xeb040063,0x9a8820e6,0xaa0600a5,0xaa050021 .inst 0xd100054a,0xca080023,0x8a03014a -cbnz x10, 220b +cbnz x10, 219b .inst 0xf9401005,0xaa0100a5,0xf9001005,0xf9401005 -cbz x5, 225f +cbz x5, 224f .inst 0xf9406c03,0xf9404402,0xf9000043,0xd2800040 -b 226f -225: +b 225f +224: .inst 0xf9404c03,0x91001c64,0xd343fc84,0xf9004804,0x9100fc66,0xd346fcc6,0xd37ae4c6,0x91010068 .inst 0xcb060106,0xd2800805,0xd2801009,0xd2810028,0xeb080068,0x9a852125,0xf9000005,0xf9404803 .inst 0x91001c6c,0xd343fd8c,0xf900180c,0x91000983,0xd37df063,0x91040004,0xf9002004,0x8b030084 .inst 0xf9002404,0x8b030084,0xf9002804,0x8b030084,0xf9002c04,0x8b030084,0xf9003004,0x8b030084 .inst 0xf9003404,0x8b030084,0xf9003804,0x8b030084,0xf9003c04,0x8b030084,0x91000983,0xd37df063 .inst 0xf9007003,0xd2800007,0xd10004e4,0xf9005804,0xd2800009 -227: +226: .inst 0x8b090129,0x91000529,0xd10004c6 -cbnz x6, 227b +cbnz x6, 226b .inst 0xf9000809,0xf940180c,0xf940700b,0x91040008,0xd2800007,0x91000110,0x9100098e -228: +227: .inst 0xf9000207,0x91002210,0xd10005ce -cbnz x14, 228b +cbnz x14, 227b .inst 0xf940180c,0xf940700b,0x91040008,0xf9406001,0xf9404802,0xd2800003,0xd28000e6 -229: +228: .inst 0xd1000442,0xd378dc63,0x39400024,0x8b040063,0x91000421,0x8a060045 -cbz x5, 230f -b 231f -230: +cbz x5, 229f +b 230f +229: .inst 0x8b020105,0xf90000a3,0xd2800003 -231: -cbnz x2, 229b +230: +cbnz x2, 228b .inst 0xf940180c,0xf940700b,0x91040010,0xd37df185,0x8b050205,0xd10020a5,0xf9400804,0xf9400203 .inst 0xf94000a6,0xd2800029,0xaa090063,0x8a0400c6,0xd341fc89,0x91000529,0xaa0900c6,0xf9000203 .inst 0xf90000a6,0xd2800023,0xf9000003,0xf9402008,0xf9400103,0x91000064,0x9b047c65,0xd2800046 @@ -352,25 +349,25 @@ cbnz x2, 229b .inst 0xcb0500c5,0x9b057c84,0x9b047c65,0xd2800046,0xcb0500c5,0x9b057c84,0x9b047c65,0xd2800046 .inst 0xcb0500c5,0x9b057c84,0xd2800006,0xcb0400cf,0xf9001c0f,0xf940180c,0xd2800029,0xd280000d .inst 0xf9403c08,0xd2800007,0x91000110,0x9100098e -232: +231: .inst 0xf9000207,0x91002210,0xd10005ce -cbnz x14, 232b +cbnz x14, 231b .inst 0xd37df1b0,0x8b100110,0xf9000209,0xf940180c,0xf9402009,0xd37df18d,0xd10021ad,0x8b0d012d .inst 0xf94001a3,0xd37ffc63 -cbz x3, 233f +cbz x3, 232f .inst 0xf940300b,0xf9402009,0xf9402c06,0xf940180c,0xd2800007,0x91000170,0x91000131,0x9100018e .inst 0xeb0700e3 -235: +234: .inst 0xf9400224,0xfa0400e3,0xf9000203,0x91002210,0x91002231,0xd10005ce -cbnz x14, 235b +cbnz x14, 234b .inst 0xd37df18d,0xd10021ad,0x8b0d012d,0xf94001a5,0xcb0500e2,0xd1000442,0xd280000a,0xd2800024 .inst 0xd280080d -236: +235: .inst 0xd37ffc43,0xd37ff842,0xaa040042,0xeb05004f,0x9a0700f0,0xaa030210,0xea10021f,0x9a8211e2 .inst 0x8b0a014a,0x8b10014a,0xd10005ad -cbnz x13, 236b +cbnz x13, 235b .inst 0xf90000ca,0xf940180d,0xf900680d -237: +236: .inst 0xf9402009,0xf940300b,0xf9402c06,0xf940180c,0xd2800007,0xd37df18d,0xd10021ad,0x8b0d012e .inst 0xf94001c5,0x8b0d0170,0xf9400202,0xd1002210,0xf9400203,0xcb0200a4,0xf94000d1,0x9b027e2d .inst 0x9bc27e2e,0xab0301ad,0x9a0201ce,0x910005ce,0x9b057dcf,0xcb0f006f,0xd10005d0,0x8b0501f1 @@ -380,232 +377,232 @@ cbnz x13, 236b .inst 0x9a070231,0xeb0d0084,0xfa0e0063,0xda110042,0xab0f0084,0xba050063,0x9a070050,0xd1000431 .inst 0xea02005f,0x9a814221,0x9a824202,0xd37ffc42,0xcb020021,0x91000170,0x91000131,0x9100018e .inst 0x910000e2,0xd280000f,0xd10005ef,0x910001ed,0xab0700e3 -238: +237: .inst 0xf9400223,0x9b037c24,0x9bc37c23,0xba020084,0x9a070062,0xf9400203,0xab0d0084,0xca0f006d .inst 0xca0f0084,0xf9000204,0x91002210,0x91002231,0xd10005ce -cbnz x14, 238b +cbnz x14, 237b .inst 0x9a0201a4,0xca0f0084,0xf9000204,0xd37df18d,0x8b0d016d,0xf94001a3,0xd37ffc63,0xcb0300ef .inst 0x91000170,0x91000131,0x9100018e,0xab0700e3 -239: +238: .inst 0xf9400224,0x8a0f0084,0xf9400203,0xba040063,0xf9000203,0x91002210,0x91002231,0xd10005ce -cbnz x14, 239b +cbnz x14, 238b .inst 0xf9400203,0x9a070063,0xf9000203,0xf940680d,0xd10005ad,0xf900680d -cbnz x13, 237b -b 234f -233: +cbnz x13, 236b +b 233f +232: .inst 0xf940180c,0xf9402008,0xd1000584,0xd37df084,0x8b040104,0xf9400083,0xd2800029,0xd280080d .inst 0xd1000466 -cbz x6, 240f -242: +cbz x6, 239f +241: .inst 0xd341fc63,0x8b090129,0xd10005ad,0xd1000466 -cbnz x6, 242b -b 241f +cbnz x6, 241b +b 240f +239: 240: -241: .inst 0xf900680d,0xd100058d,0xf9403008,0xd2800007,0x91000110,0x9100098e -243: +242: .inst 0xf9000207,0x91002210,0xd10005ce -cbnz x14, 243b +cbnz x14, 242b .inst 0xd37df1b0,0x8b100110,0xf9000209,0xf940680d,0xf940180c,0x8b0c01ad,0xf900680d -244: +243: .inst 0xf9403005,0xf940200a,0xf9402808,0xf9402c06,0xf940180c,0xd2800007,0x910000b1,0x91000110 .inst 0x9100018e,0xab0700e3 -245: +244: .inst 0xf9400223,0xba030063,0xf9000203,0x91002231,0x91002210,0xd10005ce -cbnz x14, 245b +cbnz x14, 244b .inst 0x9a0700e3,0xf9000203,0x91000110,0x91000151,0x910000cd,0x9100018e,0xeb0700e3 -246: +245: .inst 0xf9400203,0xf9400224,0xfa040063,0xf90001a3,0x91002210,0x91002231,0x910021ad,0xd10005ce -cbnz x14, 246b +cbnz x14, 245b .inst 0xf9400203,0xfa070063,0x91000110,0x9100018e -247: +246: .inst 0xf9400203,0xf94000c4,0x9a832083,0xf90000a3,0x91002210,0x910020c6,0x910020a5,0xd10005ce -cbnz x14, 247b +cbnz x14, 246b .inst 0xf940680d,0xd10005ad,0xf900680d -cbnz x13, 244b +cbnz x13, 243b .inst 0xd28000cd,0xf900680d -248: +247: .inst 0x4e081fdf bl {vg_rsa_square_4_4} .inst 0x4e083ffe,0xf940680d,0xd10005ad,0xf900680d -cbnz x13, 248b -234: +cbnz x13, 247b +233: .inst 0xf9402808,0xf9403c09,0xf940200a,0xf940300b,0xf9403805,0xf9402c06,0xf940180c,0xf9401c0f .inst 0xd2800007,0x91000110,0x9100098e -249: +248: .inst 0xf9000207,0x91002210,0xd10005ce -cbnz x14, 249b +cbnz x14, 248b .inst 0x9100018d -250: +249: .inst 0xf9400161,0x9100216b,0x91000110,0x91000131,0x9100018e,0xab0700e2 -251: +250: .inst 0xf9400223,0x9b037c24,0x9bc37c23,0xba020084,0x9a070062,0xf9400203,0xab030084,0xf9000204 .inst 0x91002210,0x91002231,0xd10005ce -cbnz x14, 251b +cbnz x14, 250b .inst 0x9a070042,0xf9400203,0xab020063,0xf9000203,0xf9400603,0x9a070063,0xf9000603,0xf9400103 .inst 0x9b0f7c61,0xf9400144,0x9b047c22,0x9bc47c24,0xab030042,0x9a070082,0x91000110,0x91002151 .inst 0xd100058e,0xab0700e3 -252: +251: .inst 0xf9400223,0x9b037c24,0x9bc37c23,0xba020084,0x9a070062,0xf9400603,0xab030084,0xf9000204 .inst 0x91002210,0x91002231,0xd10005ce -cbnz x14, 252b +cbnz x14, 251b .inst 0x9a070042,0xf9400603,0xab020063,0xf9000203,0xf9400a03,0x9a070063,0xf9000603,0xf9000a07 .inst 0xd10005ad -cbnz x13, 250b +cbnz x13, 249b .inst 0x91000110,0x91000151,0x910000cd,0x9100018e,0xeb0700e3 -253: +252: .inst 0xf9400203,0xf9400224,0xfa040063,0xf90001a3,0x91002210,0x91002231,0x910021ad,0xd10005ce -cbnz x14, 253b +cbnz x14, 252b .inst 0xf9400203,0xfa070063,0x91000110,0x9100018e -254: +253: .inst 0xf9400203,0xf94000c4,0x9a832083,0xf90000a3,0x91002210,0x910020c6,0x910020a5,0xd10005ce -cbnz x14, 254b +cbnz x14, 253b .inst 0xf940180c,0xf940700b,0x91000170,0x8b100210,0x8b0b0210,0x8b100210,0x8b000210,0x91040210 .inst 0x91000171,0x8b110231,0x8b110231,0x8b110231,0x8b0b0231,0x8b000231,0x91040231,0x9100018e -255: +254: .inst 0xf9400203,0xf9000223,0x91002210,0x91002231,0xd10005ce -cbnz x14, 255b +cbnz x14, 254b .inst 0xf940180c,0xf940700b,0xd2800007,0xd10004ef,0x9100018e,0xeb0700e3,0x91040010,0x91000171 .inst 0x8b110231,0x8b110231,0x8b110231,0x8b0b0231,0x8b000231,0x91040231,0x91000168,0x8b080108 .inst 0x8b080108,0x8b0b0108,0x8b080108,0x8b000108,0x91040108 -256: +255: .inst 0xf9400203,0xf9400224,0x8a0f0084,0xfa040063,0xf9000103,0x91002210,0x91002231,0x91002108 .inst 0xd10005ce -cbnz x14, 256b +cbnz x14, 255b .inst 0xf940180c,0xf940700b,0x91040010,0xf9400205,0xd2800024,0xca0400a5,0x91002210,0xd100058e .inst 0xd2800007,0xd10004e8 -257: +256: .inst 0xf9400203,0xeb0400a6,0x9a8820e6,0x8a060063,0xaa0300a5,0x91002210,0xd10005ce -cbnz x14, 257b +cbnz x14, 256b .inst 0x9100016a,0x8b0a014a,0x8b0b014a,0x8b0a014a,0x8b0a014a,0x8b0b014a,0x8b0a014a,0x8b0b014a .inst 0x8b00014a,0x9104014a,0xcb0500e6,0x8a0500c6,0xd37df189,0x8b090149,0xf9000126,0x9100010f .inst 0x91000151,0x91040010,0xf9400205,0x91002210,0xd100058e -258: +257: .inst 0xf9400203,0xd3410064,0xd341fca6,0xaa0400c6,0xca0500c6,0x8a0f00c6,0xca0500c6,0xf9000226 .inst 0x91002210,0x91002231,0x91000065,0xd10005ce -cbnz x14, 258b +cbnz x14, 257b .inst 0xd341fca6,0xca0500c6,0x8a0f00c6,0xca0500c6,0xf9000226,0xd29bbba4,0xf2bbbba4,0xf2dbbba4 .inst 0xf2fbbba4,0xf9400123,0x8a040063,0xd2800024,0xeb040063,0x9a87210f,0x91000150,0x91000151 .inst 0xf9400205,0x91002210,0xd100058e -259: +258: .inst 0xf9400203,0xd3410064,0xd341fca6,0xaa0400c6,0xca0500c6,0x8a0f00c6,0xca0500c6,0xf9000226 .inst 0x91002210,0x91002231,0x91000065,0xd10005ce -cbnz x14, 259b +cbnz x14, 258b .inst 0xd341fca6,0xca0500c6,0x8a0f00c6,0xca0500c6,0xf9000226,0xd2933324,0xf2b33324,0xf2d33324 .inst 0xf2f33324,0xf9400123,0x8a040063,0xd2800024,0xeb040063,0x9a87210f,0x91000150,0x91000151 .inst 0xf9400205,0x91002210,0xd100058e -260: +259: .inst 0xf9400203,0xd3410064,0xd341fca6,0xaa0400c6,0xca0500c6,0x8a0f00c6,0xca0500c6,0xf9000226 .inst 0x91002210,0x91002231,0x91000065,0xd10005ce -cbnz x14, 260b +cbnz x14, 259b .inst 0xd341fca6,0xca0500c6,0x8a0f00c6,0xca0500c6,0xf9000226,0xd2822224,0xf2a22224,0xf2c22224 .inst 0xf2e22224,0xf9400123,0x8a040063,0xd2800024,0xeb040063,0x9a87210f,0x91000150,0x91000151 .inst 0xf9400205,0x91002210,0xd100058e -261: +260: .inst 0xf9400203,0xd3410064,0xd341fca6,0xaa0400c6,0xca0500c6,0x8a0f00c6,0xca0500c6,0xf9000226 .inst 0x91002210,0x91002231,0x91000065,0xd10005ce -cbnz x14, 261b +cbnz x14, 260b .inst 0xd341fca6,0xca0500c6,0x8a0f00c6,0xca0500c6,0xf9000226,0xd2800003,0xf9000c03 -262: +261: .inst 0xf9406403,0xf9406c04,0xcb040063,0xf9404804,0xeb040063,0xd2800007,0xd2800024,0x9a872085 -cbz x5, 263f +cbz x5, 262f .inst 0xf940180c,0xf940700b,0x91000168,0x8b000108,0x91040108,0xd2800007,0x91000110,0x9100098e -265: +264: .inst 0xf9000207,0x91002210,0xd10005ce -cbnz x14, 265b +cbnz x14, 264b .inst 0xf940180c,0xf940700b,0x91000168,0x8b000108,0x91040108,0xf9406001,0xf9406c03,0x8b030021 .inst 0xf9404802,0x8b020063,0xf9006c03,0xd2800003,0xd28000e6 -266: +265: .inst 0xd1000442,0xd378dc63,0x39400024,0x8b040063,0x91000421,0x8a060045 -cbz x5, 267f -b 268f -267: +cbz x5, 266f +b 267f +266: .inst 0x8b020105,0xf90000a3,0xd2800003 -268: -cbnz x2, 266b +267: +cbnz x2, 265b .inst 0xf940180c,0xf940700b,0x91000170,0x8b000210,0x91040210,0xd37df185,0x8b050205,0xd10020a5 .inst 0xf9400804,0xf94000a3,0x8a040063,0xf90000a3,0xf940180c,0xf940700b,0x91000170,0x8b000210 .inst 0x91040210,0xf9400205,0xd341fca5,0x91002210,0xd100058e -269: +268: .inst 0xf9400203,0xaa0300a5,0x91002210,0xd10005ce -cbnz x14, 269b +cbnz x14, 268b .inst 0xd2800007,0xd10004e8,0xd2800024,0xeb0400a3,0x9a872109,0xf940180c,0xf940700b,0x91000170 .inst 0x8b000210,0x91040210,0x91040011,0xf9400203,0xaa040063,0xf9400224,0xeb040063,0x91002210 .inst 0x91002231,0xd100058e -270: +269: .inst 0xf9400203,0xf9400224,0xfa040063,0x91002210,0x91002231,0xd10005ce -cbnz x14, 270b +cbnz x14, 269b .inst 0x9a8820ef,0x8a0f0129 -cbz x9, 271f +cbz x9, 270f .inst 0xf9402808,0xf9403009,0xf940200a,0xf940240b,0xf9403405,0xf9402c06,0xf940180c,0xf9401c0f .inst 0xd2800007,0x91000110,0x9100098e -273: +272: .inst 0xf9000207,0x91002210,0xd10005ce -cbnz x14, 273b +cbnz x14, 272b .inst 0x9100018d -274: +273: .inst 0xf9400161,0x9100216b,0x91000110,0x91000131,0x9100018e,0xab0700e2 -275: +274: .inst 0xf9400223,0x9b037c24,0x9bc37c23,0xba020084,0x9a070062,0xf9400203,0xab030084,0xf9000204 .inst 0x91002210,0x91002231,0xd10005ce -cbnz x14, 275b +cbnz x14, 274b .inst 0x9a070042,0xf9400203,0xab020063,0xf9000203,0xf9400603,0x9a070063,0xf9000603,0xf9400103 .inst 0x9b0f7c61,0xf9400144,0x9b047c22,0x9bc47c24,0xab030042,0x9a070082,0x91000110,0x91002151 .inst 0xd100058e,0xab0700e3 -276: +275: .inst 0xf9400223,0x9b037c24,0x9bc37c23,0xba020084,0x9a070062,0xf9400603,0xab030084,0xf9000204 .inst 0x91002210,0x91002231,0xd10005ce -cbnz x14, 276b +cbnz x14, 275b .inst 0x9a070042,0xf9400603,0xab020063,0xf9000203,0xf9400a03,0x9a070063,0xf9000603,0xf9000a07 .inst 0xd10005ad -cbnz x13, 274b +cbnz x13, 273b .inst 0x91000110,0x91000151,0x910000cd,0x9100018e,0xeb0700e3 -277: +276: .inst 0xf9400203,0xf9400224,0xfa040063,0xf90001a3,0x91002210,0x91002231,0x910021ad,0xd10005ce -cbnz x14, 277b +cbnz x14, 276b .inst 0xf9400203,0xfa070063,0x91000110,0x9100018e -278: +277: .inst 0xf9400203,0xf94000c4,0x9a832083,0xf90000a3,0x91002210,0x910020c6,0x910020a5,0xd10005ce -cbnz x14, 278b +cbnz x14, 277b .inst 0xf9403c02,0xf9401803,0xd37df063,0x8b030042,0xf9000053,0xf900045e,0x91000013,0xf9401801 .inst 0x91000821,0xd2800384,0x9b047c21,0x91008021 bl {vg_miller_rabin_round} .inst 0x11000003,0x91000260,0xd2800004,0xcb030083,0xf9005c03,0xf9403c02,0xf9401803,0xd37df063 .inst 0x8b030042,0xf940045e,0xf9400053,0xf9405c03 -cbz x3, 279f +cbz x3, 278f .inst 0xf9400c03,0xf9400004,0x91000463,0xeb040065,0xd2800086,0xd2800027,0x9a8620e5,0xf9000c03 .inst 0xf9007c05 -b 280f -279: +b 279f +278: .inst 0xd2800043,0xf9007c03 -280: -b 272f -271: +279: +b 271f +270: .inst 0xd2800083,0xf9007c03 -272: -b 264f -263: +271: +b 263f +262: .inst 0xd2800003,0xf9007c03 -264: +263: .inst 0xf9407c03,0xd1001063 -cbz x3, 262b +cbz x3, 261b .inst 0xf9407c03,0xd1000463 -cbz x3, 281f +cbz x3, 280f .inst 0xf9407c03 -cbz x3, 283f +cbz x3, 282f .inst 0xf9406c03,0xf9404402,0xf9000043,0xd2800040 -b 284f -283: +b 283f +282: .inst 0xd2800003,0xf9404402,0xf9000043,0xd2800000 -284: -b 282f -281: +283: +b 281f +280: .inst 0xf940180c,0xf940700b,0x91040010,0x91000211,0xd2800007,0xd10004ef,0xf9400205,0x91002210 .inst 0xd100058e -285: +284: .inst 0xf9400203,0xd3410064,0xd341fca6,0xaa0400c6,0xca0500c6,0x8a0f00c6,0xca0500c6,0xf9000226 .inst 0x91002210,0x91002231,0x91000065,0xd10005ce -cbnz x14, 285b +cbnz x14, 284b .inst 0xd341fca6,0xca0500c6,0x8a0f00c6,0xca0500c6,0xf9000226,0xf940180c,0xf940700b,0x91040010 .inst 0xf9401005,0xf9400203,0xd2800024,0x8a040063,0xca040063,0xaa0300a5,0xf9001005,0xf9404c03 .inst 0xd1000463,0x91001c64,0xd343fc84,0xf9004804,0x9100fc66,0xd346fcc6,0xd37ae4c6,0x91010068 @@ -614,33 +611,33 @@ cbnz x14, 285b .inst 0xf9002404,0x8b030084,0xf9002804,0x8b030084,0xf9002c04,0x8b030084,0xf9003004,0x8b030084 .inst 0xf9003404,0x8b030084,0xf9003804,0x8b030084,0xf9003c04,0x8b030084,0x91000983,0xd37df063 .inst 0xf9007003,0xd2800007,0xd10004e4,0xf9005804,0xd2800009 -286: +285: .inst 0x8b090129,0x91000529,0xd10004c6 -cbnz x6, 286b +cbnz x6, 285b .inst 0xf9000809,0xf9402008,0xf9400103,0x91000064,0x9b047c65,0xd2800046,0xcb0500c5,0x9b057c84 .inst 0x9b047c65,0xd2800046,0xcb0500c5,0x9b057c84,0x9b047c65,0xd2800046,0xcb0500c5,0x9b057c84 .inst 0x9b047c65,0xd2800046,0xcb0500c5,0x9b057c84,0x9b047c65,0xd2800046,0xcb0500c5,0x9b057c84 .inst 0xd2800006,0xcb0400cf,0xf9001c0f,0xf940180c,0xd2800029,0xd280000d,0xf9403c08,0xd2800007 .inst 0x91000110,0x9100098e -287: +286: .inst 0xf9000207,0x91002210,0xd10005ce -cbnz x14, 287b +cbnz x14, 286b .inst 0xd37df1b0,0x8b100110,0xf9000209,0xf940180c,0xf9402009,0xd37df18d,0xd10021ad,0x8b0d012d .inst 0xf94001a3,0xd37ffc63 -cbz x3, 288f +cbz x3, 287f .inst 0xf940300b,0xf9402009,0xf9402c06,0xf940180c,0xd2800007,0x91000170,0x91000131,0x9100018e .inst 0xeb0700e3 -290: +289: .inst 0xf9400224,0xfa0400e3,0xf9000203,0x91002210,0x91002231,0xd10005ce -cbnz x14, 290b +cbnz x14, 289b .inst 0xd37df18d,0xd10021ad,0x8b0d012d,0xf94001a5,0xcb0500e2,0xd1000442,0xd280000a,0xd2800024 .inst 0xd280080d -291: +290: .inst 0xd37ffc43,0xd37ff842,0xaa040042,0xeb05004f,0x9a0700f0,0xaa030210,0xea10021f,0x9a8211e2 .inst 0x8b0a014a,0x8b10014a,0xd10005ad -cbnz x13, 291b +cbnz x13, 290b .inst 0xf90000ca,0xf940180d,0xf900680d -292: +291: .inst 0xf9402009,0xf940300b,0xf9402c06,0xf940180c,0xd2800007,0xd37df18d,0xd10021ad,0x8b0d012e .inst 0xf94001c5,0x8b0d0170,0xf9400202,0xd1002210,0xf9400203,0xcb0200a4,0xf94000d1,0x9b027e2d .inst 0x9bc27e2e,0xab0301ad,0x9a0201ce,0x910005ce,0x9b057dcf,0xcb0f006f,0xd10005d0,0x8b0501f1 @@ -650,248 +647,248 @@ cbnz x13, 291b .inst 0x9a070231,0xeb0d0084,0xfa0e0063,0xda110042,0xab0f0084,0xba050063,0x9a070050,0xd1000431 .inst 0xea02005f,0x9a814221,0x9a824202,0xd37ffc42,0xcb020021,0x91000170,0x91000131,0x9100018e .inst 0x910000e2,0xd280000f,0xd10005ef,0x910001ed,0xab0700e3 -293: +292: .inst 0xf9400223,0x9b037c24,0x9bc37c23,0xba020084,0x9a070062,0xf9400203,0xab0d0084,0xca0f006d .inst 0xca0f0084,0xf9000204,0x91002210,0x91002231,0xd10005ce -cbnz x14, 293b +cbnz x14, 292b .inst 0x9a0201a4,0xca0f0084,0xf9000204,0xd37df18d,0x8b0d016d,0xf94001a3,0xd37ffc63,0xcb0300ef .inst 0x91000170,0x91000131,0x9100018e,0xab0700e3 -294: +293: .inst 0xf9400224,0x8a0f0084,0xf9400203,0xba040063,0xf9000203,0x91002210,0x91002231,0xd10005ce -cbnz x14, 294b +cbnz x14, 293b .inst 0xf9400203,0x9a070063,0xf9000203,0xf940680d,0xd10005ad,0xf900680d -cbnz x13, 292b -b 289f -288: +cbnz x13, 291b +b 288f +287: .inst 0xf940180c,0xf9402008,0xd1000584,0xd37df084,0x8b040104,0xf9400083,0xd2800029,0xd280080d .inst 0xd1000466 -cbz x6, 295f -297: +cbz x6, 294f +296: .inst 0xd341fc63,0x8b090129,0xd10005ad,0xd1000466 -cbnz x6, 297b -b 296f +cbnz x6, 296b +b 295f +294: 295: -296: .inst 0xf900680d,0xd100058d,0xf9403008,0xd2800007,0x91000110,0x9100098e -298: +297: .inst 0xf9000207,0x91002210,0xd10005ce -cbnz x14, 298b +cbnz x14, 297b .inst 0xd37df1b0,0x8b100110,0xf9000209,0xf940680d,0xf940180c,0x8b0c01ad,0xf900680d -299: +298: .inst 0xf9403005,0xf940200a,0xf9402808,0xf9402c06,0xf940180c,0xd2800007,0x910000b1,0x91000110 .inst 0x9100018e,0xab0700e3 -2100: +299: .inst 0xf9400223,0xba030063,0xf9000203,0x91002231,0x91002210,0xd10005ce -cbnz x14, 2100b +cbnz x14, 299b .inst 0x9a0700e3,0xf9000203,0x91000110,0x91000151,0x910000cd,0x9100018e,0xeb0700e3 -2101: +2100: .inst 0xf9400203,0xf9400224,0xfa040063,0xf90001a3,0x91002210,0x91002231,0x910021ad,0xd10005ce -cbnz x14, 2101b +cbnz x14, 2100b .inst 0xf9400203,0xfa070063,0x91000110,0x9100018e -2102: +2101: .inst 0xf9400203,0xf94000c4,0x9a832083,0xf90000a3,0x91002210,0x910020c6,0x910020a5,0xd10005ce -cbnz x14, 2102b +cbnz x14, 2101b .inst 0xf940680d,0xd10005ad,0xf900680d -cbnz x13, 299b +cbnz x13, 298b .inst 0xd28000cd,0xf900680d -2103: +2102: .inst 0x4e081fdf bl {vg_rsa_square_4_4} .inst 0x4e083ffe,0xf940680d,0xd10005ad,0xf900680d -cbnz x13, 2103b -289: +cbnz x13, 2102b +288: .inst 0xf9402808,0xf9403c09,0xf940200a,0xf940300b,0xf9403805,0xf9402c06,0xf940180c,0xf9401c0f .inst 0xd2800007,0x91000110,0x9100098e -2104: +2103: .inst 0xf9000207,0x91002210,0xd10005ce -cbnz x14, 2104b +cbnz x14, 2103b .inst 0x9100018d -2105: +2104: .inst 0xf9400161,0x9100216b,0x91000110,0x91000131,0x9100018e,0xab0700e2 -2106: +2105: .inst 0xf9400223,0x9b037c24,0x9bc37c23,0xba020084,0x9a070062,0xf9400203,0xab030084,0xf9000204 .inst 0x91002210,0x91002231,0xd10005ce -cbnz x14, 2106b +cbnz x14, 2105b .inst 0x9a070042,0xf9400203,0xab020063,0xf9000203,0xf9400603,0x9a070063,0xf9000603,0xf9400103 .inst 0x9b0f7c61,0xf9400144,0x9b047c22,0x9bc47c24,0xab030042,0x9a070082,0x91000110,0x91002151 .inst 0xd100058e,0xab0700e3 -2107: +2106: .inst 0xf9400223,0x9b037c24,0x9bc37c23,0xba020084,0x9a070062,0xf9400603,0xab030084,0xf9000204 .inst 0x91002210,0x91002231,0xd10005ce -cbnz x14, 2107b +cbnz x14, 2106b .inst 0x9a070042,0xf9400603,0xab020063,0xf9000203,0xf9400a03,0x9a070063,0xf9000603,0xf9000a07 .inst 0xd10005ad -cbnz x13, 2105b +cbnz x13, 2104b .inst 0x91000110,0x91000151,0x910000cd,0x9100018e,0xeb0700e3 -2108: +2107: .inst 0xf9400203,0xf9400224,0xfa040063,0xf90001a3,0x91002210,0x91002231,0x910021ad,0xd10005ce -cbnz x14, 2108b +cbnz x14, 2107b .inst 0xf9400203,0xfa070063,0x91000110,0x9100018e -2109: +2108: .inst 0xf9400203,0xf94000c4,0x9a832083,0xf90000a3,0x91002210,0x910020c6,0x910020a5,0xd10005ce -cbnz x14, 2109b +cbnz x14, 2108b .inst 0xf940180c,0xf940700b,0x91000170,0x8b100210,0x8b0b0210,0x8b100210,0x8b000210,0x91040210 .inst 0x91000171,0x8b110231,0x8b110231,0x8b110231,0x8b0b0231,0x8b000231,0x91040231,0x9100018e -2110: +2109: .inst 0xf9400203,0xf9000223,0x91002210,0x91002231,0xd10005ce -cbnz x14, 2110b +cbnz x14, 2109b .inst 0xf940180c,0xf940700b,0xd2800007,0xd10004ef,0x9100018e,0xeb0700e3,0x91040010,0x91000171 .inst 0x8b110231,0x8b110231,0x8b110231,0x8b0b0231,0x8b000231,0x91040231,0x91000168,0x8b080108 .inst 0x8b080108,0x8b0b0108,0x8b080108,0x8b000108,0x91040108 -2111: +2110: .inst 0xf9400203,0xf9400224,0x8a0f0084,0xfa040063,0xf9000103,0x91002210,0x91002231,0x91002108 .inst 0xd10005ce -cbnz x14, 2111b +cbnz x14, 2110b .inst 0xf940180c,0xf940700b,0x91040010,0xf9400205,0xd2800024,0xca0400a5,0x91002210,0xd100058e .inst 0xd2800007,0xd10004e8 -2112: +2111: .inst 0xf9400203,0xeb0400a6,0x9a8820e6,0x8a060063,0xaa0300a5,0x91002210,0xd10005ce -cbnz x14, 2112b +cbnz x14, 2111b .inst 0x9100016a,0x8b0a014a,0x8b0b014a,0x8b0a014a,0x8b0a014a,0x8b0b014a,0x8b0a014a,0x8b0b014a .inst 0x8b00014a,0x9104014a,0xcb0500e6,0x8a0500c6,0xd37df189,0x8b090149,0xf9000126,0x9100010f .inst 0x91000151,0x91040010,0xf9400205,0x91002210,0xd100058e -2113: +2112: .inst 0xf9400203,0xd3410064,0xd341fca6,0xaa0400c6,0xca0500c6,0x8a0f00c6,0xca0500c6,0xf9000226 .inst 0x91002210,0x91002231,0x91000065,0xd10005ce -cbnz x14, 2113b +cbnz x14, 2112b .inst 0xd341fca6,0xca0500c6,0x8a0f00c6,0xca0500c6,0xf9000226,0xd29bbba4,0xf2bbbba4,0xf2dbbba4 .inst 0xf2fbbba4,0xf9400123,0x8a040063,0xd2800024,0xeb040063,0x9a87210f,0x91000150,0x91000151 .inst 0xf9400205,0x91002210,0xd100058e -2114: +2113: .inst 0xf9400203,0xd3410064,0xd341fca6,0xaa0400c6,0xca0500c6,0x8a0f00c6,0xca0500c6,0xf9000226 .inst 0x91002210,0x91002231,0x91000065,0xd10005ce -cbnz x14, 2114b +cbnz x14, 2113b .inst 0xd341fca6,0xca0500c6,0x8a0f00c6,0xca0500c6,0xf9000226,0xd2933324,0xf2b33324,0xf2d33324 .inst 0xf2f33324,0xf9400123,0x8a040063,0xd2800024,0xeb040063,0x9a87210f,0x91000150,0x91000151 .inst 0xf9400205,0x91002210,0xd100058e -2115: +2114: .inst 0xf9400203,0xd3410064,0xd341fca6,0xaa0400c6,0xca0500c6,0x8a0f00c6,0xca0500c6,0xf9000226 .inst 0x91002210,0x91002231,0x91000065,0xd10005ce -cbnz x14, 2115b +cbnz x14, 2114b .inst 0xd341fca6,0xca0500c6,0x8a0f00c6,0xca0500c6,0xf9000226,0xd2822224,0xf2a22224,0xf2c22224 .inst 0xf2e22224,0xf9400123,0x8a040063,0xd2800024,0xeb040063,0x9a87210f,0x91000150,0x91000151 .inst 0xf9400205,0x91002210,0xd100058e -2116: +2115: .inst 0xf9400203,0xd3410064,0xd341fca6,0xaa0400c6,0xca0500c6,0x8a0f00c6,0xca0500c6,0xf9000226 .inst 0x91002210,0x91002231,0x91000065,0xd10005ce -cbnz x14, 2116b +cbnz x14, 2115b .inst 0xd341fca6,0xca0500c6,0x8a0f00c6,0xca0500c6,0xf9000226,0xd2800003,0xf9000c03 -2117: +2116: .inst 0xf9406403,0xf9406c04,0xcb040063,0xf9404804,0xeb040063,0xd2800007,0xd2800024,0x9a872085 -cbz x5, 2118f +cbz x5, 2117f .inst 0xf940180c,0xf940700b,0x91000168,0x8b000108,0x91040108,0xd2800007,0x91000110,0x9100098e -2120: +2119: .inst 0xf9000207,0x91002210,0xd10005ce -cbnz x14, 2120b +cbnz x14, 2119b .inst 0xf940180c,0xf940700b,0x91000168,0x8b000108,0x91040108,0xf9406001,0xf9406c03,0x8b030021 .inst 0xf9404802,0x8b020063,0xf9006c03,0xd2800003,0xd28000e6 -2121: +2120: .inst 0xd1000442,0xd378dc63,0x39400024,0x8b040063,0x91000421,0x8a060045 -cbz x5, 2122f -b 2123f -2122: +cbz x5, 2121f +b 2122f +2121: .inst 0x8b020105,0xf90000a3,0xd2800003 -2123: -cbnz x2, 2121b +2122: +cbnz x2, 2120b .inst 0xf940180c,0xf940700b,0x91000170,0x8b000210,0x91040210,0xd37df185,0x8b050205,0xd10020a5 .inst 0xf9400804,0xf94000a3,0x8a040063,0xf90000a3,0xf940180c,0xf940700b,0x91000170,0x8b000210 .inst 0x91040210,0xf9400205,0xd341fca5,0x91002210,0xd100058e -2124: +2123: .inst 0xf9400203,0xaa0300a5,0x91002210,0xd10005ce -cbnz x14, 2124b +cbnz x14, 2123b .inst 0xd2800007,0xd10004e8,0xd2800024,0xeb0400a3,0x9a872109,0xf940180c,0xf940700b,0x91000170 .inst 0x8b000210,0x91040210,0x91040011,0xf9400203,0xaa040063,0xf9400224,0xeb040063,0x91002210 .inst 0x91002231,0xd100058e -2125: +2124: .inst 0xf9400203,0xf9400224,0xfa040063,0x91002210,0x91002231,0xd10005ce -cbnz x14, 2125b +cbnz x14, 2124b .inst 0x9a8820ef,0x8a0f0129 -cbz x9, 2126f +cbz x9, 2125f .inst 0xf9402808,0xf9403009,0xf940200a,0xf940240b,0xf9403405,0xf9402c06,0xf940180c,0xf9401c0f .inst 0xd2800007,0x91000110,0x9100098e -2128: +2127: .inst 0xf9000207,0x91002210,0xd10005ce -cbnz x14, 2128b +cbnz x14, 2127b .inst 0x9100018d -2129: +2128: .inst 0xf9400161,0x9100216b,0x91000110,0x91000131,0x9100018e,0xab0700e2 -2130: +2129: .inst 0xf9400223,0x9b037c24,0x9bc37c23,0xba020084,0x9a070062,0xf9400203,0xab030084,0xf9000204 .inst 0x91002210,0x91002231,0xd10005ce -cbnz x14, 2130b +cbnz x14, 2129b .inst 0x9a070042,0xf9400203,0xab020063,0xf9000203,0xf9400603,0x9a070063,0xf9000603,0xf9400103 .inst 0x9b0f7c61,0xf9400144,0x9b047c22,0x9bc47c24,0xab030042,0x9a070082,0x91000110,0x91002151 .inst 0xd100058e,0xab0700e3 -2131: +2130: .inst 0xf9400223,0x9b037c24,0x9bc37c23,0xba020084,0x9a070062,0xf9400603,0xab030084,0xf9000204 .inst 0x91002210,0x91002231,0xd10005ce -cbnz x14, 2131b +cbnz x14, 2130b .inst 0x9a070042,0xf9400603,0xab020063,0xf9000203,0xf9400a03,0x9a070063,0xf9000603,0xf9000a07 .inst 0xd10005ad -cbnz x13, 2129b +cbnz x13, 2128b .inst 0x91000110,0x91000151,0x910000cd,0x9100018e,0xeb0700e3 -2132: +2131: .inst 0xf9400203,0xf9400224,0xfa040063,0xf90001a3,0x91002210,0x91002231,0x910021ad,0xd10005ce -cbnz x14, 2132b +cbnz x14, 2131b .inst 0xf9400203,0xfa070063,0x91000110,0x9100018e -2133: +2132: .inst 0xf9400203,0xf94000c4,0x9a832083,0xf90000a3,0x91002210,0x910020c6,0x910020a5,0xd10005ce -cbnz x14, 2133b +cbnz x14, 2132b .inst 0xf9403c02,0xf9401803,0xd37df063,0x8b030042,0xf9000053,0xf900045e,0x91000013,0xf9401801 .inst 0x91000821,0xd2800384,0x9b047c21,0x91008021 bl {vg_miller_rabin_round} .inst 0x11000003,0x91000260,0xd2800004,0xcb030083,0xf9005c03,0xf9403c02,0xf9401803,0xd37df063 .inst 0x8b030042,0xf940045e,0xf9400053,0xf9405c03 -cbz x3, 2134f +cbz x3, 2133f .inst 0xf9400c03,0xf9400004,0x91000463,0xeb040065,0xd2800086,0xd2800027,0x9a8620e5,0xf9000c03 .inst 0xf9007c05 -b 2135f -2134: +b 2134f +2133: .inst 0xd2800043,0xf9007c03 -2135: -b 2127f -2126: +2134: +b 2126f +2125: .inst 0xd2800083,0xf9007c03 -2127: -b 2119f -2118: +2126: +b 2118f +2117: .inst 0xd2800003,0xf9007c03 -2119: +2118: .inst 0xf9407c03,0xd1001063 -cbz x3, 2117b +cbz x3, 2116b .inst 0xf9407c03,0xd1000463 -cbz x3, 2136f +cbz x3, 2135f .inst 0xf9407c03 -cbz x3, 2138f +cbz x3, 2137f .inst 0xf9406c03,0xf9404402,0xf9000043,0xd2800040 -b 2139f -2138: +b 2138f +2137: .inst 0xd2800003,0xf9404402,0xf9000043,0xd2800000 -2139: -b 2137f -2136: +2138: +b 2136f +2135: .inst 0xf9404c03,0x91001c64,0xd343fc84,0xf9004804,0x9100fc66,0xd346fcc6,0xd37ae4c6,0x91010068 .inst 0xcb060106,0xd2800805,0xd2801009,0xd2810028,0xeb080068,0x9a852125,0xf9000005,0xf9404803 .inst 0x91001c6c,0xd343fd8c,0xf900180c,0x91000983,0xd37df063,0x91040004,0xf9002004,0x8b030084 .inst 0xf9002404,0x8b030084,0xf9002804,0x8b030084,0xf9002c04,0x8b030084,0xf9003004,0x8b030084 .inst 0xf9003404,0x8b030084,0xf9003804,0x8b030084,0xf9003c04,0x8b030084,0x91000983,0xd37df063 .inst 0xf9007003,0xd2800007,0xd10004e4,0xf9005804,0xd2800009 -2140: +2139: .inst 0x8b090129,0x91000529,0xd10004c6 -cbnz x6, 2140b +cbnz x6, 2139b .inst 0xf9000809,0xf940180c,0xf940700b,0x91040008,0xd2800007,0x91000110,0x9100098e -2141: +2140: .inst 0xf9000207,0x91002210,0xd10005ce -cbnz x14, 2141b +cbnz x14, 2140b .inst 0xf940180c,0xf940700b,0x91040008,0xf9406001,0xf9404802,0xd2800003,0xd28000e6 -2142: +2141: .inst 0xd1000442,0xd378dc63,0x39400024,0x8b040063,0x91000421,0x8a060045 -cbz x5, 2143f -b 2144f -2143: +cbz x5, 2142f +b 2143f +2142: .inst 0x8b020105,0xf90000a3,0xd2800003 -2144: -cbnz x2, 2142b +2143: +cbnz x2, 2141b .inst 0xf940180c,0xf940700b,0x91040010,0xd37df185,0x8b050205,0xd10020a5,0xf9400804,0xf9400203 .inst 0xf94000a6,0xd2800029,0xaa090063,0x8a0400c6,0xd341fc89,0x91000529,0xaa0900c6,0xf9000203 .inst 0xf90000a6,0xf9400003,0xd1000463,0xf9000003,0xf9402008,0xf9400103,0x91000064,0x9b047c65 @@ -899,25 +896,25 @@ cbnz x2, 2142b .inst 0xd2800046,0xcb0500c5,0x9b057c84,0x9b047c65,0xd2800046,0xcb0500c5,0x9b057c84,0x9b047c65 .inst 0xd2800046,0xcb0500c5,0x9b057c84,0xd2800006,0xcb0400cf,0xf9001c0f,0xf940180c,0xd2800029 .inst 0xd280000d,0xf9403c08,0xd2800007,0x91000110,0x9100098e -2145: +2144: .inst 0xf9000207,0x91002210,0xd10005ce -cbnz x14, 2145b +cbnz x14, 2144b .inst 0xd37df1b0,0x8b100110,0xf9000209,0xf940180c,0xf9402009,0xd37df18d,0xd10021ad,0x8b0d012d .inst 0xf94001a3,0xd37ffc63 -cbz x3, 2146f +cbz x3, 2145f .inst 0xf940300b,0xf9402009,0xf9402c06,0xf940180c,0xd2800007,0x91000170,0x91000131,0x9100018e .inst 0xeb0700e3 -2148: +2147: .inst 0xf9400224,0xfa0400e3,0xf9000203,0x91002210,0x91002231,0xd10005ce -cbnz x14, 2148b +cbnz x14, 2147b .inst 0xd37df18d,0xd10021ad,0x8b0d012d,0xf94001a5,0xcb0500e2,0xd1000442,0xd280000a,0xd2800024 .inst 0xd280080d -2149: +2148: .inst 0xd37ffc43,0xd37ff842,0xaa040042,0xeb05004f,0x9a0700f0,0xaa030210,0xea10021f,0x9a8211e2 .inst 0x8b0a014a,0x8b10014a,0xd10005ad -cbnz x13, 2149b +cbnz x13, 2148b .inst 0xf90000ca,0xf940180d,0xf900680d -2150: +2149: .inst 0xf9402009,0xf940300b,0xf9402c06,0xf940180c,0xd2800007,0xd37df18d,0xd10021ad,0x8b0d012e .inst 0xf94001c5,0x8b0d0170,0xf9400202,0xd1002210,0xf9400203,0xcb0200a4,0xf94000d1,0x9b027e2d .inst 0x9bc27e2e,0xab0301ad,0x9a0201ce,0x910005ce,0x9b057dcf,0xcb0f006f,0xd10005d0,0x8b0501f1 @@ -927,244 +924,244 @@ cbnz x13, 2149b .inst 0x9a070231,0xeb0d0084,0xfa0e0063,0xda110042,0xab0f0084,0xba050063,0x9a070050,0xd1000431 .inst 0xea02005f,0x9a814221,0x9a824202,0xd37ffc42,0xcb020021,0x91000170,0x91000131,0x9100018e .inst 0x910000e2,0xd280000f,0xd10005ef,0x910001ed,0xab0700e3 -2151: +2150: .inst 0xf9400223,0x9b037c24,0x9bc37c23,0xba020084,0x9a070062,0xf9400203,0xab0d0084,0xca0f006d .inst 0xca0f0084,0xf9000204,0x91002210,0x91002231,0xd10005ce -cbnz x14, 2151b +cbnz x14, 2150b .inst 0x9a0201a4,0xca0f0084,0xf9000204,0xd37df18d,0x8b0d016d,0xf94001a3,0xd37ffc63,0xcb0300ef .inst 0x91000170,0x91000131,0x9100018e,0xab0700e3 -2152: +2151: .inst 0xf9400224,0x8a0f0084,0xf9400203,0xba040063,0xf9000203,0x91002210,0x91002231,0xd10005ce -cbnz x14, 2152b +cbnz x14, 2151b .inst 0xf9400203,0x9a070063,0xf9000203,0xf940680d,0xd10005ad,0xf900680d -cbnz x13, 2150b -b 2147f -2146: +cbnz x13, 2149b +b 2146f +2145: .inst 0xf940180c,0xf9402008,0xd1000584,0xd37df084,0x8b040104,0xf9400083,0xd2800029,0xd280080d .inst 0xd1000466 -cbz x6, 2153f -2155: +cbz x6, 2152f +2154: .inst 0xd341fc63,0x8b090129,0xd10005ad,0xd1000466 -cbnz x6, 2155b -b 2154f +cbnz x6, 2154b +b 2153f +2152: 2153: -2154: .inst 0xf900680d,0xd100058d,0xf9403008,0xd2800007,0x91000110,0x9100098e -2156: +2155: .inst 0xf9000207,0x91002210,0xd10005ce -cbnz x14, 2156b +cbnz x14, 2155b .inst 0xd37df1b0,0x8b100110,0xf9000209,0xf940680d,0xf940180c,0x8b0c01ad,0xf900680d -2157: +2156: .inst 0xf9403005,0xf940200a,0xf9402808,0xf9402c06,0xf940180c,0xd2800007,0x910000b1,0x91000110 .inst 0x9100018e,0xab0700e3 -2158: +2157: .inst 0xf9400223,0xba030063,0xf9000203,0x91002231,0x91002210,0xd10005ce -cbnz x14, 2158b +cbnz x14, 2157b .inst 0x9a0700e3,0xf9000203,0x91000110,0x91000151,0x910000cd,0x9100018e,0xeb0700e3 -2159: +2158: .inst 0xf9400203,0xf9400224,0xfa040063,0xf90001a3,0x91002210,0x91002231,0x910021ad,0xd10005ce -cbnz x14, 2159b +cbnz x14, 2158b .inst 0xf9400203,0xfa070063,0x91000110,0x9100018e -2160: +2159: .inst 0xf9400203,0xf94000c4,0x9a832083,0xf90000a3,0x91002210,0x910020c6,0x910020a5,0xd10005ce -cbnz x14, 2160b +cbnz x14, 2159b .inst 0xf940680d,0xd10005ad,0xf900680d -cbnz x13, 2157b +cbnz x13, 2156b .inst 0xd28000cd,0xf900680d -2161: +2160: .inst 0x4e081fdf bl {vg_rsa_square_4_4} .inst 0x4e083ffe,0xf940680d,0xd10005ad,0xf900680d -cbnz x13, 2161b -2147: +cbnz x13, 2160b +2146: .inst 0xf9402808,0xf9403c09,0xf940200a,0xf940300b,0xf9403805,0xf9402c06,0xf940180c,0xf9401c0f .inst 0xd2800007,0x91000110,0x9100098e -2162: +2161: .inst 0xf9000207,0x91002210,0xd10005ce -cbnz x14, 2162b +cbnz x14, 2161b .inst 0x9100018d -2163: +2162: .inst 0xf9400161,0x9100216b,0x91000110,0x91000131,0x9100018e,0xab0700e2 -2164: +2163: .inst 0xf9400223,0x9b037c24,0x9bc37c23,0xba020084,0x9a070062,0xf9400203,0xab030084,0xf9000204 .inst 0x91002210,0x91002231,0xd10005ce -cbnz x14, 2164b +cbnz x14, 2163b .inst 0x9a070042,0xf9400203,0xab020063,0xf9000203,0xf9400603,0x9a070063,0xf9000603,0xf9400103 .inst 0x9b0f7c61,0xf9400144,0x9b047c22,0x9bc47c24,0xab030042,0x9a070082,0x91000110,0x91002151 .inst 0xd100058e,0xab0700e3 -2165: +2164: .inst 0xf9400223,0x9b037c24,0x9bc37c23,0xba020084,0x9a070062,0xf9400603,0xab030084,0xf9000204 .inst 0x91002210,0x91002231,0xd10005ce -cbnz x14, 2165b +cbnz x14, 2164b .inst 0x9a070042,0xf9400603,0xab020063,0xf9000203,0xf9400a03,0x9a070063,0xf9000603,0xf9000a07 .inst 0xd10005ad -cbnz x13, 2163b +cbnz x13, 2162b .inst 0x91000110,0x91000151,0x910000cd,0x9100018e,0xeb0700e3 -2166: +2165: .inst 0xf9400203,0xf9400224,0xfa040063,0xf90001a3,0x91002210,0x91002231,0x910021ad,0xd10005ce -cbnz x14, 2166b +cbnz x14, 2165b .inst 0xf9400203,0xfa070063,0x91000110,0x9100018e -2167: +2166: .inst 0xf9400203,0xf94000c4,0x9a832083,0xf90000a3,0x91002210,0x910020c6,0x910020a5,0xd10005ce -cbnz x14, 2167b +cbnz x14, 2166b .inst 0xf940180c,0xf940700b,0x91000170,0x8b100210,0x8b0b0210,0x8b100210,0x8b000210,0x91040210 .inst 0x91000171,0x8b110231,0x8b110231,0x8b110231,0x8b0b0231,0x8b000231,0x91040231,0x9100018e -2168: +2167: .inst 0xf9400203,0xf9000223,0x91002210,0x91002231,0xd10005ce -cbnz x14, 2168b +cbnz x14, 2167b .inst 0xf940180c,0xf940700b,0xd2800007,0xd10004ef,0x9100018e,0xeb0700e3,0x91040010,0x91000171 .inst 0x8b110231,0x8b110231,0x8b110231,0x8b0b0231,0x8b000231,0x91040231,0x91000168,0x8b080108 .inst 0x8b080108,0x8b0b0108,0x8b080108,0x8b000108,0x91040108 -2169: +2168: .inst 0xf9400203,0xf9400224,0x8a0f0084,0xfa040063,0xf9000103,0x91002210,0x91002231,0x91002108 .inst 0xd10005ce -cbnz x14, 2169b +cbnz x14, 2168b .inst 0xf940180c,0xf940700b,0x91040010,0xf9400205,0xd2800024,0xca0400a5,0x91002210,0xd100058e .inst 0xd2800007,0xd10004e8 -2170: +2169: .inst 0xf9400203,0xeb0400a6,0x9a8820e6,0x8a060063,0xaa0300a5,0x91002210,0xd10005ce -cbnz x14, 2170b +cbnz x14, 2169b .inst 0x9100016a,0x8b0a014a,0x8b0b014a,0x8b0a014a,0x8b0a014a,0x8b0b014a,0x8b0a014a,0x8b0b014a .inst 0x8b00014a,0x9104014a,0xcb0500e6,0x8a0500c6,0xd37df189,0x8b090149,0xf9000126,0x9100010f .inst 0x91000151,0x91040010,0xf9400205,0x91002210,0xd100058e -2171: +2170: .inst 0xf9400203,0xd3410064,0xd341fca6,0xaa0400c6,0xca0500c6,0x8a0f00c6,0xca0500c6,0xf9000226 .inst 0x91002210,0x91002231,0x91000065,0xd10005ce -cbnz x14, 2171b +cbnz x14, 2170b .inst 0xd341fca6,0xca0500c6,0x8a0f00c6,0xca0500c6,0xf9000226,0xd29bbba4,0xf2bbbba4,0xf2dbbba4 .inst 0xf2fbbba4,0xf9400123,0x8a040063,0xd2800024,0xeb040063,0x9a87210f,0x91000150,0x91000151 .inst 0xf9400205,0x91002210,0xd100058e -2172: +2171: .inst 0xf9400203,0xd3410064,0xd341fca6,0xaa0400c6,0xca0500c6,0x8a0f00c6,0xca0500c6,0xf9000226 .inst 0x91002210,0x91002231,0x91000065,0xd10005ce -cbnz x14, 2172b +cbnz x14, 2171b .inst 0xd341fca6,0xca0500c6,0x8a0f00c6,0xca0500c6,0xf9000226,0xd2933324,0xf2b33324,0xf2d33324 .inst 0xf2f33324,0xf9400123,0x8a040063,0xd2800024,0xeb040063,0x9a87210f,0x91000150,0x91000151 .inst 0xf9400205,0x91002210,0xd100058e -2173: +2172: .inst 0xf9400203,0xd3410064,0xd341fca6,0xaa0400c6,0xca0500c6,0x8a0f00c6,0xca0500c6,0xf9000226 .inst 0x91002210,0x91002231,0x91000065,0xd10005ce -cbnz x14, 2173b +cbnz x14, 2172b .inst 0xd341fca6,0xca0500c6,0x8a0f00c6,0xca0500c6,0xf9000226,0xd2822224,0xf2a22224,0xf2c22224 .inst 0xf2e22224,0xf9400123,0x8a040063,0xd2800024,0xeb040063,0x9a87210f,0x91000150,0x91000151 .inst 0xf9400205,0x91002210,0xd100058e -2174: +2173: .inst 0xf9400203,0xd3410064,0xd341fca6,0xaa0400c6,0xca0500c6,0x8a0f00c6,0xca0500c6,0xf9000226 .inst 0x91002210,0x91002231,0x91000065,0xd10005ce -cbnz x14, 2174b +cbnz x14, 2173b .inst 0xd341fca6,0xca0500c6,0x8a0f00c6,0xca0500c6,0xf9000226,0xd2800003,0xf9000c03 -2175: +2174: .inst 0xf9406403,0xf9406c04,0xcb040063,0xf9404804,0xeb040063,0xd2800007,0xd2800024,0x9a872085 -cbz x5, 2176f +cbz x5, 2175f .inst 0xf940180c,0xf940700b,0x91000168,0x8b000108,0x91040108,0xd2800007,0x91000110,0x9100098e -2178: +2177: .inst 0xf9000207,0x91002210,0xd10005ce -cbnz x14, 2178b +cbnz x14, 2177b .inst 0xf940180c,0xf940700b,0x91000168,0x8b000108,0x91040108,0xf9406001,0xf9406c03,0x8b030021 .inst 0xf9404802,0x8b020063,0xf9006c03,0xd2800003,0xd28000e6 -2179: +2178: .inst 0xd1000442,0xd378dc63,0x39400024,0x8b040063,0x91000421,0x8a060045 -cbz x5, 2180f -b 2181f -2180: +cbz x5, 2179f +b 2180f +2179: .inst 0x8b020105,0xf90000a3,0xd2800003 -2181: -cbnz x2, 2179b +2180: +cbnz x2, 2178b .inst 0xf940180c,0xf940700b,0x91000170,0x8b000210,0x91040210,0xd37df185,0x8b050205,0xd10020a5 .inst 0xf9400804,0xf94000a3,0x8a040063,0xf90000a3,0xf940180c,0xf940700b,0x91000170,0x8b000210 .inst 0x91040210,0xf9400205,0xd341fca5,0x91002210,0xd100058e -2182: +2181: .inst 0xf9400203,0xaa0300a5,0x91002210,0xd10005ce -cbnz x14, 2182b +cbnz x14, 2181b .inst 0xd2800007,0xd10004e8,0xd2800024,0xeb0400a3,0x9a872109,0xf940180c,0xf940700b,0x91000170 .inst 0x8b000210,0x91040210,0x91040011,0xf9400203,0xaa040063,0xf9400224,0xeb040063,0x91002210 .inst 0x91002231,0xd100058e -2183: +2182: .inst 0xf9400203,0xf9400224,0xfa040063,0x91002210,0x91002231,0xd10005ce -cbnz x14, 2183b +cbnz x14, 2182b .inst 0x9a8820ef,0x8a0f0129 -cbz x9, 2184f +cbz x9, 2183f .inst 0xf9402808,0xf9403009,0xf940200a,0xf940240b,0xf9403405,0xf9402c06,0xf940180c,0xf9401c0f .inst 0xd2800007,0x91000110,0x9100098e -2186: +2185: .inst 0xf9000207,0x91002210,0xd10005ce -cbnz x14, 2186b +cbnz x14, 2185b .inst 0x9100018d -2187: +2186: .inst 0xf9400161,0x9100216b,0x91000110,0x91000131,0x9100018e,0xab0700e2 -2188: +2187: .inst 0xf9400223,0x9b037c24,0x9bc37c23,0xba020084,0x9a070062,0xf9400203,0xab030084,0xf9000204 .inst 0x91002210,0x91002231,0xd10005ce -cbnz x14, 2188b +cbnz x14, 2187b .inst 0x9a070042,0xf9400203,0xab020063,0xf9000203,0xf9400603,0x9a070063,0xf9000603,0xf9400103 .inst 0x9b0f7c61,0xf9400144,0x9b047c22,0x9bc47c24,0xab030042,0x9a070082,0x91000110,0x91002151 .inst 0xd100058e,0xab0700e3 -2189: +2188: .inst 0xf9400223,0x9b037c24,0x9bc37c23,0xba020084,0x9a070062,0xf9400603,0xab030084,0xf9000204 .inst 0x91002210,0x91002231,0xd10005ce -cbnz x14, 2189b +cbnz x14, 2188b .inst 0x9a070042,0xf9400603,0xab020063,0xf9000203,0xf9400a03,0x9a070063,0xf9000603,0xf9000a07 .inst 0xd10005ad -cbnz x13, 2187b +cbnz x13, 2186b .inst 0x91000110,0x91000151,0x910000cd,0x9100018e,0xeb0700e3 -2190: +2189: .inst 0xf9400203,0xf9400224,0xfa040063,0xf90001a3,0x91002210,0x91002231,0x910021ad,0xd10005ce -cbnz x14, 2190b +cbnz x14, 2189b .inst 0xf9400203,0xfa070063,0x91000110,0x9100018e -2191: +2190: .inst 0xf9400203,0xf94000c4,0x9a832083,0xf90000a3,0x91002210,0x910020c6,0x910020a5,0xd10005ce -cbnz x14, 2191b +cbnz x14, 2190b .inst 0xf9403c02,0xf9401803,0xd37df063,0x8b030042,0xf9000053,0xf900045e,0x91000013,0xf9401801 .inst 0x91000821,0xd2800384,0x9b047c21,0x91008021 bl {vg_miller_rabin_round} .inst 0x11000003,0x91000260,0xd2800004,0xcb030083,0xf9005c03,0xf9403c02,0xf9401803,0xd37df063 .inst 0x8b030042,0xf940045e,0xf9400053,0xf9405c03 -cbz x3, 2192f +cbz x3, 2191f .inst 0xf9400c03,0xf9400004,0x91000463,0xeb040065,0xd2800086,0xd2800027,0x9a8620e5,0xf9000c03 .inst 0xf9007c05 -b 2193f -2192: +b 2192f +2191: .inst 0xd2800043,0xf9007c03 -2193: -b 2185f -2184: +2192: +b 2184f +2183: .inst 0xd2800083,0xf9007c03 -2185: -b 2177f -2176: +2184: +b 2176f +2175: .inst 0xd2800003,0xf9007c03 -2177: +2176: .inst 0xf9407c03,0xd1001063 -cbz x3, 2175b +cbz x3, 2174b .inst 0xf9407c03 -cbz x3, 2194f +cbz x3, 2193f .inst 0xd1000463 -cbz x3, 2196f +cbz x3, 2195f .inst 0xf9406c03,0xf9404402,0xf9000043,0xd2800040 -b 2197f -2196: +b 2196f +2195: .inst 0xf9406c03,0xf9404402,0xf9000043,0xf940180c,0xf940700b,0x91040008,0xf9404001,0xf9404809 .inst 0x8b090021,0xf940580f,0xd2800002,0xd28000e6 -2198: +2197: .inst 0x8a060045 -cbz x5, 2199f -b 2200f -2199: +cbz x5, 2198f +b 2199f +2198: .inst 0x8b020105,0xf94000a3,0x8a0f0063 -2200: +2199: .inst 0xd1000421,0x39000023,0xd348fc63,0x91000442,0xd1000529 -cbnz x9, 2198b +cbnz x9, 2197b .inst 0xd2800020 -2197: -b 2195f -2194: +2196: +b 2194f +2193: .inst 0xd2800003,0xf9404402,0xf9000043,0xd2800000 -2195: -2137: -282: -226: -218: -211: +2194: +2136: +281: +225: +217: +210: b 22f 21: .inst 0xd2800003,0xf9404402,0xf9000043,0xd2800000 diff --git a/lean/VerifiedGarbage/Impl/Ffdh/AArch64/ParameterCandidate.lean b/lean/VerifiedGarbage/Impl/Ffdh/AArch64/ParameterCandidate.lean index e2a4bca0302..951ca024b2f 100644 --- a/lean/VerifiedGarbage/Impl/Ffdh/AArch64/ParameterCandidate.lean +++ b/lean/VerifiedGarbage/Impl/Ffdh/AArch64/ParameterCandidate.lean @@ -18,8 +18,12 @@ nor the shared Miller–Rabin round changes. 2. With `w = ⌈bits / 64⌉`: `p` from the first `out_len` octets of `rand`, cut to `bits` bits with its top and low bits set (`shapeP`: the top word's mask `2^k − 1`, `k = bits − 64 (w − 1)`, is computed by a loop of - `k` steps); `p mod 24` (generator 2) or `p mod 10` (generator 5) by RSA's - bit-serial reduction, and its congruence; RSA's trial division by its + `k` steps); `p mod 24` (generator 2) or `p mod 10` (generator 5), and + its congruence: with `S` the sum of the halves of 32 bits of `p`'s words, + which is congruent to `p` modulo `2³² − 1`, and so modulo 3 and 5, + `T = 105 (p mod 8) + 16 S` is congruent to `p` modulo 120, and `T mod e` + (`e` 24 or 10) is `T − e ⌊T m / 2⁶⁴⌋` for the reciprocal `m = ⌈2⁶⁴ / e⌉` + (`umulh`: the model has no division); RSA's trial division by its table's first 512 entries (1024 above 1024 bits), the odd primes of `Spec.RsaKeyGen.obviouslyComposite`, four entries (a word of the table) at a time, stopping after the first word with a divisor; then @@ -104,16 +108,46 @@ def shapeP : List (Prog isa) := ld .x3 .x16, ld .x6 .x5, movi .x9 1, .logic .orr .x .x3 .x3 .x9, .logic .and .x .x6 .x6 .x4, .lsr .x .x9 .x4 1, .addImm .x .x9 .x9 1, .logic .orr .x .x6 .x6 .x9, st .x3 .x16, st .x6 .x5])] +/-- `⌈2⁶⁴ / 10⌉`. -/ +def recip10 : Nat := 1844674407370955162 + +/-- `⌈2⁶⁴ / 24⌉`. -/ +def recip24 : Nat := 768614336404564651 + +/-- `r := W`, from its pieces of 16 bits. -/ +def loadWord (r : Reg) (W : Nat) : List Instr := + [.movz .x r (BitVec.ofNat 16 W) 0, .movk .x r (BitVec.ofNat 16 (W / 2 ^ 16)) 1, + .movk .x r (BitVec.ofNat 16 (W / 2 ^ 32)) 2, .movk .x r (BitVec.ofNat 16 (W / 2 ^ 48)) 3] + +/-- One word of `aN` (at `x16`) into the sum `x3`: its high half, and the +word less its high half shifted back, its low half. -/ +def halfSum : List Instr := + [ld .x5 .x16, .lsr .x .x4 .x5 32, .lsl .x .x6 .x4 32, .sub .x .x5 .x5 .x6, .add .x .x3 .x3 .x4, + .add .x .x3 .x3 .x5, next .x16] + +/-- The modulus `e` into `x13` and its reciprocal into `x7`: 10 and its +(`x7`) for generator 5, else 24 and its (`x6`). -/ +def modSelect : List Instr := + [ldh .x9 fGen, movi .x10 3, .subs .x .x8 .x9 .x10, .csel .x .x7 .x7 .x6, movi .x13 10, movi .x6 24, + .csel .x .x13 .x13 .x6] + +/-- `x3 := T mod e` for `T = 105 (x2 mod 8) + 16 x3`, `e` in `x13` and its +reciprocal `m` in `x7`: the quotient is `⌊T m / 2⁶⁴⌋` (`umulh`), exact for +`T < 2⁶¹`. -/ +def reduce : List Instr := + [movi .x4 7, .logic .and .x .x2 .x2 .x4, movi .x4 105, .mul .x .x2 .x2 .x4, movi .x4 16, .mul .x .x3 .x3 .x4, + .add .x .x3 .x3 .x2, .umulh .x4 .x3 .x7, .mul .x .x4 .x4 .x13, .sub .x .x3 .x3 .x4] + /-- The generator's congruence: `r = p mod e` (`e` 24 for generator 2, 10 -for 5) by RSA's bit-serial reduction of `aN`'s words from the top; `fBad := -r ⊕ 11` for generator 2, `(r | 4) ⊕ 7` for 5, zero iff `r = 11` or -`r ∈ {3, 7}`. -/ +for 5), from `p`'s low word (`x2`) and the sum of the halves of its words +(`x3`: `halfSum` over `aN`, `modSelect`, `reduce`); `fBad := r ⊕ 11` for generator 2, +`(r | 4) ⊕ 7` for 5, zero iff `r = 11` or `r ∈ {3, 7}`. -/ def residue : List (Prog isa) := [ - .block (ws ++ base aN .x16 ++ [.lsl .x .x5 .x12 3, .add .x .x10 .x16 .x5, mov .x14 .x12, ldh .x9 fGen, - movi .x6 3, .subs .x .x8 .x9 .x6, movi .x13 10, movi .x6 24, .csel .x .x13 .x13 .x6, movi .x3 0, movi .x7 0, - .subImm .x .x8 .x7 1]), - .loop (seqs [.block [.subImm .x .x10 .x10 8, ld .x2 .x10, movi .x9 64], countLoop .x9 modBit, - .block [.subImm .x .x14 .x14 1]]) (.nonzero .x .x14), + .block (ws ++ base aN .x16 ++ [ld .x2 .x16, mov .x14 .x12, movi .x3 0]), + countLoop .x14 halfSum, + .block (loadWord .x7 recip10 ++ loadWord .x6 recip24), + .block modSelect, + .block reduce, .block [ldh .x9 fGen, movi .x6 3, .subs .x .x8 .x9 .x6, movi .x4 4, .logic .orr .x .x5 .x3 .x4, .csel .x .x5 .x5 .x3, movi .x6 7, movi .x7 11, .csel .x .x6 .x6 .x7, .logic .eor .x .x5 .x5 .x6, sth .x5 fBad]] diff --git a/lean/VerifiedGarbage/Proof/Ffdh/AArch64/ParameterCandidate/ShapeOk.lean b/lean/VerifiedGarbage/Proof/Ffdh/AArch64/ParameterCandidate/ShapeOk.lean index 42bb31a6252..75814ee05e5 100644 --- a/lean/VerifiedGarbage/Proof/Ffdh/AArch64/ParameterCandidate/ShapeOk.lean +++ b/lean/VerifiedGarbage/Proof/Ffdh/AArch64/ParameterCandidate/ShapeOk.lean @@ -2,9 +2,7 @@ module public import VerifiedGarbage.Proof.Ffdh.AArch64.ParameterCandidate.Halve public import VerifiedGarbage.Proof.Ffdh.AArch64.ParameterCandidate.Base -import VerifiedGarbage.Proof.RsaKeyGen.AArch64.ModE -import VerifiedGarbage.Proof.Bignum.AArch64.CrtWs -import VerifiedGarbage.Proof.Bignum.AArch64.CrtGPow +import VerifiedGarbage.Proof.RsaKeyGen.AArch64.TrialTable import VerifiedGarbage.Proof.Framework.Omega public import VerifiedGarbage.Proof.Ffdh.AArch64.ParameterCandidate.Phase import VerifiedGarbage.Proof.RsaKeyGen.AArch64.Base @@ -26,10 +24,14 @@ section /-! # An FFDH parameter candidate on AArch64: the generator's congruence -`residue` (`residue_ok`): `r = c mod e` by RSA's bit-serial reduction of -`aN`'s words from the top (`modWords_ok`), `e` 24 for the generator 2 and 10 +`residue` (`residue_ok`): `r = c mod e`, `e` 24 for the generator 2 and 10 for 5, and `fBad := resFlag g r`, zero exactly for `r = 11` (generator 2) -or `r ∈ {3, 7}` (generator 5). +or `r ∈ {3, 7}` (generator 5). The sum `S` of the halves of 32 bits of +`aN`'s words (`hsum`, `halfSum_ok`) is congruent to `c` modulo 3 and 5, +which divide `2³² − 1` (`wv_hsum_mod`), so `T = 105 (c mod 8) + 16 S` is +congruent to `c` modulo 24 and 10, and `reduce` (`reduce_ok`) takes `T`'s +remainder by `umulh` with `e`'s reciprocal (`redBV_24`, `redBV_10`), which +`modSelect` (`modSelect_ok`) chose with `e`. -/ @[expose] public section @@ -69,48 +71,214 @@ theorem resFlag_zero {g c : Nat} (hg : g = 2 ∨ g = 5) : · rw [resFlag_five (by unfold resMod; simp only [show 3 ≤ 5 by decide, ite_true]; omega_arith)] simp [resMod] -theorem w8_addr (B : Addr) {d w : Nat} (hw : w < 2 ^ 31) : - off B d + BitVec.ofNat 64 w <<< 3 = off B (d + 8 * w) := by - rw [shl_ofNat (show w * 2 ^ 3 < 2 ^ 64 by omega_arith), off_add, show w * 2 ^ 3 = 8 * w by omega_arith] - -/-- The reduction's start. -/ +/-! ### The sum of the words' halves -/ + +/-- The sum of the halves of 32 bits of the `k` words at `o`. -/ +def hsum (m : Mem) (B : Addr) (o : Nat) : Nat → Nat + | 0 => 0 + | k + 1 => hsum m B o k + ((word m B (o + 8 * k)).toNat / 2 ^ 32 + (word m B (o + 8 * k)).toNat % 2 ^ 32) + +theorem hsum_le (m : Mem) (B : Addr) (o : Nat) : ∀ k, hsum m B o k ≤ k * 2 ^ 33 + | 0 => Nat.le_refl _ + | k + 1 => by + have h1 := hsum_le m B o k + have h2 := (word m B (o + 8 * k)).isLt + show hsum m B o k + ((word m B (o + 8 * k)).toNat / 2 ^ 32 + (word m B (o + 8 * k)).toNat % 2 ^ 32) ≤ + (k + 1) * 2 ^ 33 + rw [Nat.add_mul, Nat.one_mul] + omega_using [h1, h2] + +/-- Modulo a divisor of `2³² − 1`, a number is the sum of its words' halves. -/ +theorem wv_hsum_mod {d : Nat} (hd : 2 ^ 32 % d = 1) (m : Mem) (B : Addr) (o : Nat) : + ∀ k, wv m B o k % d = hsum m B o k % d + | 0 => rfl + | k + 1 => by + have hd1 : 1 % d = 1 := by + rcases Nat.lt_or_ge d 2 with h | h + · have : d = 0 ∨ d = 1 := by omega_using [h] + rcases this with rfl | rfl <;> simp at hd + · exact Nat.mod_eq_of_lt h + have hp : 2 ^ (64 * k) % d = 1 := by + rw [show 64 * k = 32 * (2 * k) by omega_using [], Nat.pow_mul, Nat.pow_mod, hd, Nat.one_pow, hd1] + rw [wv, hsum] + generalize (word m B (o + 8 * k)).toNat = W + have hW : W % d = (W / 2 ^ 32 + W % 2 ^ 32) % d := by + conv => lhs; rw [← Nat.div_add_mod W (2 ^ 32), Nat.add_mod, Nat.mul_mod, hd, Nat.one_mul, Nat.mod_mod, + ← Nat.add_mod] + have e1 : (wv m B o k + 2 ^ (64 * k) * W) % d = (hsum m B o k + W) % d := by + conv => lhs; rw [Nat.add_mod, Nat.mul_mod, hp, Nat.one_mul, Nat.mod_mod, wv_hsum_mod hd m B o k, + ← Nat.add_mod] + have e2 : (hsum m B o k + (W / 2 ^ 32 + W % 2 ^ 32)) % d = (hsum m B o k + W) % d := by + conv => lhs; rw [Nat.add_mod, ← hW, ← Nat.add_mod] + rw [e1, e2] + +/-- A word's halves, as `halfSum` takes them. -/ +theorem halves_bv (x : BitVec 64) : + x >>> 32 + (x - (x >>> 32) <<< 32) = BitVec.ofNat 64 (x.toNat / 2 ^ 32 + x.toNat % 2 ^ 32) := by + apply BitVec.eq_of_toNat_eq + have hx := x.isLt + rw [BitVec.toNat_add, BitVec.toNat_sub, BitVec.toNat_shiftLeft, BitVec.toNat_ushiftRight, BitVec.toNat_ofNat, + Nat.shiftRight_eq_div_pow, Nat.shiftLeft_eq] + omega_using [hx] + +/-- The sum's start: `aN`'s base, its low word, the count and the sum. -/ theorem residueHead_ok {s : State} {p : PP} {w : Nat} (h : PSt p w s) : - WP isa (.block (ws ++ base aN .x16 ++ ([.lsl .x .x5 .x12 3, .add .x .x10 .x16 .x5, mov .x14 .x12, ldh .x9 fGen, - movi .x6 3, .subs .x .x8 .x9 .x6, movi .x13 10, movi .x6 24, .csel .x .x13 .x13 .x6, movi .x3 0, movi .x7 0, - .subImm .x .x8 .x7 1] : List Instr))) s fun t => - (t.gpr .x10 = off p.B (slot w aN + 8 * w) ∧ t.gpr .x14 = BitVec.ofNat 64 w ∧ - t.gpr .x13 = BitVec.ofNat 64 (resMod p.g) ∧ t.gpr .x3 = 0 ∧ t.gpr .x7 = 0 ∧ t.gpr .x8 = mask true ∧ - t.mem = s.mem) ∧ Keep mmRegs s t := by + WP isa (.block (ws ++ base aN .x16 ++ ([ld .x2 .x16, mov .x14 .x12, movi .x3 0] : List Instr))) s fun t => + (t.gpr .x16 = off p.B (slot w aN) ∧ t.gpr .x14 = BitVec.ofNat 64 w ∧ t.gpr .x3 = 0 ∧ + t.gpr .x2 = word s.mem p.B (slot w aN) ∧ t.mem = s.mem) ∧ Keep mmRegs s t := by have hws := h.ws have hs := hws.scr have hn := hs.nowrap - have hw2 := hws.w2 - have hg := h.dims.g + have sN := hws.sl (show aN < 16 by decide) rw [WP.block_append_iff, WP.block_append_iff] refine WP.mono hws.ws_ok fun s₁ ⟨⟨h12, h11, m₁, _⟩, k₁⟩ => ?_ refine WP.mono (base_ok aN .x16 ((k₁.gpr .x0 (by decide)).trans hws.x0) h11) fun s₂ ⟨⟨h16, m₂, _⟩, k₂⟩ => ?_ have k12 := k₁.trans k₂ have hs₂ := hs.congr k12.wr - have h0₂ : s₂.gpr .x0 = p.B := (k12.gpr .x0 (by decide)).trans hws.x0 have e12 : s₂.gpr .x12 = BitVec.ofNat 64 w := (k₂.gpr .x12 (by decide)).trans h12 have hm₂ : s₂.mem = s.mem := m₂.trans m₁ - have hG : s₂.mem.readW (off p.B (8 * fGen)) 64 = BitVec.ofNat 64 p.g := by rw [hm₂]; exact h.args.gen - have hsel : (if decide (2 ^ 64 ≤ (BitVec.ofNat 64 p.g).toNat + (~~~BitVec.ofNat 64 3).toNat + true.toNat) = true - then BitVec.ofNat 64 10 else BitVec.ofNat 64 24) = BitVec.ofNat 64 (resMod p.g) := by - rw [subs_ge (by omega_arith) (by decide)] - unfold resMod - by_cases hc : 3 ≤ p.g - · simp [hc] - · simp [hc] - refine WP.mono (WP.keep [.x5, .x10, .x14, .x9, .x6, .x8, .x13, .x3, .x7] (Q := fun t => - t.gpr .x10 = off p.B (slot w aN + 8 * w) ∧ t.gpr .x14 = BitVec.ofNat 64 w ∧ - t.gpr .x13 = BitVec.ofNat 64 (resMod p.g) ∧ t.gpr .x3 = 0 ∧ t.gpr .x7 = 0 ∧ t.gpr .x8 = mask true ∧ - t.mem = s.mem) (by - brun [h16, e12, h0₂, hm₂, w8_addr p.B (d := slot w aN) (w := w) (by omega_arith), hdr_enc (show fGen < 32 by decide), - hs₂.ld (d := 8 * fGen) (by have := hws.h256; simp only [fGen, sFn]; omega_arith), hG, - imm16 (show 3 < 65536 by decide), imm16 (show 10 < 65536 by decide), imm16 (show 24 < 65536 by decide), - imm16 (show 0 < 65536 by decide), hsel, h.args.gen]) (by decide) (by decide) (by decide +kernel)) fun t ⟨hq, k₃⟩ => ⟨hq, (k12.trans k₃).mono (by decide)⟩ - + refine WP.mono (WP.keep [.x2, .x14, .x3] (Q := fun t => + t.gpr .x16 = off p.B (slot w aN) ∧ t.gpr .x14 = BitVec.ofNat 64 w ∧ t.gpr .x3 = 0 ∧ + t.gpr .x2 = word s.mem p.B (slot w aN) ∧ t.mem = s.mem) (by + brun [h16, e12, hm₂, hs₂.ld (d := slot w aN) (by omega_arith), imm16 (show 0 < 65536 by decide)]) + (by decide) (by decide) (by decide +kernel)) fun t ⟨hq, k₃⟩ => ⟨hq, (k12.trans k₃).mono (by decide)⟩ + +/-- `countLoop .x14 halfSum`: the sum of the halves of the `n` words at +`x16` into `x3`. -/ +theorem halfSum_ok {s : State} {B : Addr} {Z d n : Nat} (hs : Scr s B Z) (h16 : s.gpr .x16 = off B d) + (h14 : s.gpr .x14 = BitVec.ofNat 64 n) (h3 : s.gpr .x3 = 0) (hn : 1 ≤ n) (hn' : n < 2 ^ 24) + (hZ : d + 8 * n ≤ Z) : + WP isa (countLoop .x14 halfSum) s fun t => + t.mem = s.mem ∧ t.gpr .x3 = BitVec.ofNat 64 (hsum s.mem B d n) ∧ + Keep [.x3, .x4, .x5, .x6, .x14, .x16] s t := by + have hnw := hs.nowrap + let Inv : Nat → State → Prop := fun i t => t.mem = s.mem ∧ t.gpr .x16 = off B (d + 8 * i) ∧ + t.gpr .x3 = BitVec.ofNat 64 (hsum s.mem B d i) ∧ Keep [.x3, .x4, .x5, .x6, .x14, .x16] s t + unfold halfSum + refine WP.mono (wp_countdown (N := n) (by omega_using [hn']) (by omega_using [hn]) Inv + (fun i hi t ⟨jm, j16, j3, jk⟩ _ => ?_) ⟨rfl, by rw [h16]; rfl, by rw [h3]; rfl, Keep.refl _ _⟩ h14) + fun t ⟨tm, _, t3, tk⟩ => ⟨tm, t3, tk⟩ + have hst := hs.congr jk.wr + refine WP.mono (WP.keep [.x3, .x4, .x5, .x6, .x14, .x16] (Q := fun t' => t'.mem = t.mem ∧ + t'.gpr .x16 = off B (d + 8 * (i + 1)) ∧ + t'.gpr .x3 = t.gpr .x3 + word s.mem B (d + 8 * i) >>> 32 + + (word s.mem B (d + 8 * i) - (word s.mem B (d + 8 * i) >>> 32) <<< 32) ∧ + t'.gpr .x14 = t.gpr .x14 - BitVec.ofNat 64 1) (by + brun [j16, jm, hst.ld (show d + 8 * i + 8 ≤ Z by omega_using [hZ, hi]), off_add, + show d + 8 * i + 8 = d + 8 * (i + 1) by omega_using []]) + (by decide) (by decide) (by decide +kernel)) fun t' ⟨⟨m', a16, a3, a14⟩, k'⟩ => + ⟨⟨by rw [m', jm], a16, ?_, (jk.trans k').mono⟩, a14⟩ + rw [a3, j3, BitVec.add_assoc, halves_bv, ← BitVec.ofNat_add] + rfl + +/-! ### The remainder by the reciprocal -/ + +/-- `reduce`'s value, for the divisor `e` and its reciprocal `M`. -/ +def redBV (e M : Nat) (L : BitVec 64) (S : Nat) : BitVec 64 := + BitVec.ofNat 64 S * BitVec.ofNat 64 16 + (L &&& BitVec.ofNat 64 7) * BitVec.ofNat 64 105 - + BitVec.ofNat 64 ((BitVec.ofNat 64 S * BitVec.ofNat 64 16 + (L &&& BitVec.ofNat 64 7) * BitVec.ofNat 64 105).toNat * + (BitVec.ofNat 64 M).toNat / 2 ^ 64) * BitVec.ofNat 64 e + +/-- `T = 105 (L mod 8) + 16 S`, as `reduce` computes it. -/ +theorem redT (L : BitVec 64) (S : Nat) : + BitVec.ofNat 64 S * BitVec.ofNat 64 16 + (L &&& BitVec.ofNat 64 7) * BitVec.ofNat 64 105 = + BitVec.ofNat 64 (105 * (L.toNat % 8) + 16 * S) := by + have h7 : (L &&& BitVec.ofNat 64 7).toNat = L.toNat % 8 := by + rw [BitVec.toNat_and, BitVec.toNat_ofNat, show (7 : Nat) % 2 ^ 64 = 2 ^ 3 - 1 from rfl, + Nat.and_two_pow_sub_one_eq_mod] + apply BitVec.eq_of_toNat_eq + simp only [BitVec.toNat_add, BitVec.toNat_mul, BitVec.toNat_ofNat, h7, Nat.reducePow, Nat.reduceMod] + omega_using [] + +/-- The remainder modulo 24 by `⌈2⁶⁴ / 24⌉`. -/ +theorem redBV_24 (L : BitVec 64) {S : Nat} (hS : 16 * S + 735 < 2 ^ 61) : + redBV 24 recip24 L S = BitVec.ofNat 64 ((105 * (L.toNat % 8) + 16 * S) % 24) := by + have h8 := Nat.mod_lt L.toNat (show 0 < 8 by decide) + have hT : 105 * (L.toNat % 8) + 16 * S < 2 ^ 61 := by omega_using [hS, h8] + unfold redBV + rw [redT L S] + generalize 105 * (L.toNat % 8) + 16 * S = T at hT ⊢ + have hq : T * 768614336404564651 / 18446744073709551616 = T / 24 := by omega_using [hT] + have hp : BitVec.ofNat 64 (T / 24) * BitVec.ofNat 64 24 = BitVec.ofNat 64 (T / 24 * 24) := by + apply BitVec.eq_of_toNat_eq + simp only [BitVec.toNat_mul, BitVec.toNat_ofNat, Nat.reducePow, Nat.reduceMod] + omega_using [hT] + rw [BitVec.toNat_ofNat, Nat.mod_eq_of_lt (by omega_using [hT]), + show (BitVec.ofNat 64 recip24).toNat = 768614336404564651 from rfl, show (2 : Nat) ^ 64 = 18446744073709551616 from rfl, hq, hp, + BitVec.ofNat_sub_ofNat_of_le _ _ (by omega_using [hT]) (Nat.div_mul_le_self T 24), + show T - T / 24 * 24 = T % 24 by omega_using []] + +/-- The remainder modulo 10 by `⌈2⁶⁴ / 10⌉`. -/ +theorem redBV_10 (L : BitVec 64) {S : Nat} (hS : 16 * S + 735 < 2 ^ 61) : + redBV 10 recip10 L S = BitVec.ofNat 64 ((105 * (L.toNat % 8) + 16 * S) % 10) := by + have h8 := Nat.mod_lt L.toNat (show 0 < 8 by decide) + have hT : 105 * (L.toNat % 8) + 16 * S < 2 ^ 61 := by omega_using [hS, h8] + unfold redBV + rw [redT L S] + generalize 105 * (L.toNat % 8) + 16 * S = T at hT ⊢ + have hq : T * 1844674407370955162 / 18446744073709551616 = T / 10 := by omega_using [hT] + have hp : BitVec.ofNat 64 (T / 10) * BitVec.ofNat 64 10 = BitVec.ofNat 64 (T / 10 * 10) := by + apply BitVec.eq_of_toNat_eq + simp only [BitVec.toNat_mul, BitVec.toNat_ofNat, Nat.reducePow, Nat.reduceMod] + omega_using [hT] + rw [BitVec.toNat_ofNat, Nat.mod_eq_of_lt (by omega_using [hT]), + show (BitVec.ofNat 64 recip10).toNat = 1844674407370955162 from rfl, show (2 : Nat) ^ 64 = 18446744073709551616 from rfl, hq, hp, + BitVec.ofNat_sub_ofNat_of_le _ _ (by omega_using [hT]) (Nat.div_mul_le_self T 10), + show T - T / 10 * 10 = T % 10 by omega_using []] + +/-- The reciprocals, into `x7` and `x6`. -/ +theorem recips_ok (s : State) : + WP isa (.block (loadWord .x7 recip10 ++ loadWord .x6 recip24)) s fun t => + (t.gpr .x7 = BitVec.ofNat 64 recip10 ∧ t.gpr .x6 = BitVec.ofNat 64 recip24 ∧ t.mem = s.mem) ∧ + Keep [.x6, .x7] s t := by + unfold loadWord + -- Kept opaque: `simp` would otherwise evaluate the pieces. + generalize recip10 = W₁ + generalize recip24 = W₂ + refine WP.keep [.x6, .x7] ?_ rfl rfl rfl + apply WP.of_runBlock + simp only [runBlock_cons, runStep_some, runBlock_nil, List.cons_append, List.nil_append, + exec_movz_x' (show 0 < 4 by decide), exec_movk_x (show 1 < 4 by decide), exec_movk_x (show 2 < 4 by decide), + exec_movk_x (show 3 < 4 by decide), RegUpd.gpr_write, RegUpd.mem_write, reduceCtorEq, ite_true, ite_false, + Option.some.injEq, exists_eq_left', BitVec.setWidth_eq, movk_word, and_true] + +/-- The generator's reciprocal. -/ +def resRecip (g : Nat) : Nat := if 3 ≤ g then recip10 else recip24 + +/-- `modSelect`: the generator's modulus and its reciprocal. -/ +theorem modSelect_ok {s : State} {p : PP} {w : Nat} (h : PSt p w s) (h7 : s.gpr .x7 = BitVec.ofNat 64 recip10) + (h6 : s.gpr .x6 = BitVec.ofNat 64 recip24) : + WP isa (.block modSelect) s fun t => + (t.gpr .x7 = BitVec.ofNat 64 (resRecip p.g) ∧ t.gpr .x13 = BitVec.ofNat 64 (resMod p.g) ∧ t.mem = s.mem) ∧ + Keep [.x6, .x7, .x8, .x9, .x10, .x13] s t := by + have hws := h.ws + have hs := hws.scr + have hn := hs.nowrap + have hg := h.dims.g + have h256 := hws.h256 + have hgen := h.args.gen + unfold modSelect + refine WP.keep [.x6, .x7, .x8, .x9, .x10, .x13] ?_ (by decide) (by decide) (by decide +kernel) + rcases hg with hg | hg <;> rw [hg] at hgen ⊢ <;> + brun [hws.x0, h7, h6, hdr_enc (show fGen < 32 by decide), + hs.ld (d := 8 * fGen) (by simp only [fGen, sFn]; omega_arith), hgen, resRecip, resMod, + imm16 (show 3 < 65536 by decide), imm16 (show 10 < 65536 by decide), imm16 (show 24 < 65536 by decide)] + +/-- `reduce`: `T = 105 (L mod 8) + 16 S` less `e` times its quotient by the +reciprocal `M`. -/ +theorem reduce_ok {s : State} {S e M : Nat} {L : BitVec 64} (h2 : s.gpr .x2 = L) + (h3 : s.gpr .x3 = BitVec.ofNat 64 S) (h7 : s.gpr .x7 = BitVec.ofNat 64 M) + (h13 : s.gpr .x13 = BitVec.ofNat 64 e) : + WP isa (.block reduce) s fun t => + (t.gpr .x3 = redBV e M L S ∧ t.mem = s.mem) ∧ Keep [.x2, .x3, .x4] s t := by + unfold reduce + refine WP.keep [.x2, .x3, .x4] ?_ (by decide) (by decide) (by decide +kernel) + apply WP.of_runBlock + simp only [runBlock_cons, runStep_some, runBlock_nil, movi, exec_movz_x, exec_logic_x, exec_mul_x, exec_add_x, + exec_umulh, exec_sub_x, RegUpd.gpr_write, RegUpd.mem_write, reduceCtorEq, ite_true, ite_false, + Option.some.injEq, exists_eq_left', BitVec.setWidth_eq, h2, h3, h7, h13, redBV, + imm16 (show 7 < 65536 by decide), imm16 (show 105 < 65536 by decide), imm16 (show 16 < 65536 by decide), + and_true] /-- The flag, from the remainder in `x3`. -/ theorem residueTail_ok {s : State} {p : PP} {w : Nat} {X : BitVec 64} (h : PSt p w s) (h3 : s.gpr .x3 = X) : @@ -146,27 +314,49 @@ theorem residue_ok {s : State} {p : PP} {w c : Nat} (h : PSt p w s) (hc : wv s.m have sN := hws.sl (show aN < 16 by decide) have h256 := hws.h256 simp only [residue, seqs] - refine WP.seq (WP.mono (residueHead_ok h) fun s₁ ⟨⟨h10, h14, h13, h3, h7, h8, hm₁⟩, k₁⟩ => ?_) + -- The low word and the sum of the halves. + refine WP.seq (WP.mono (residueHead_ok h) fun s₁ ⟨⟨h16, h14, h3, h2, hm₁⟩, k₁⟩ => ?_) have hs₁ := hs.congr k₁.wr - refine WP.seq (WP.mono (modWords_ok hs₁ h10 h14 h7 h8 (by omega_arith) (by omega_arith) (by omega_arith) h3 - (by rw [h13, BitVec.toNat_ofNat]; unfold resMod; split <;> decide)) fun s₂ ⟨hr₂, hm₂, k₂⟩ => ?_) - have e13 : (s₁.gpr .x13).toNat = resMod p.g := by - rw [h13, BitVec.toNat_ofNat]; apply Nat.mod_eq_of_lt; unfold resMod; split <;> decide - rw [e13, hm₁, hc] at hr₂ - have h3₂ : s₂.gpr .x3 = BitVec.ofNat 64 (c % resMod p.g) := by - have h1 := Nat.mod_lt c (show 0 < resMod p.g by unfold resMod; split <;> decide) - have h2 : resMod p.g ≤ 24 := by unfold resMod; split <;> decide - apply BitVec.eq_of_toNat_eq; rw [hr₂, BitVec.toNat_ofNat]; exact (Nat.mod_eq_of_lt (by omega_arith)).symm - have k12 := k₁.trans k₂ - have st₂ : PSt p w s₂ := h.step (rs := []) (hws.congr' (rs := []) (by rw [hm₂, hm₁]; exact Frm.refl _ _ _) - (by simp) k12 (by decide)) (by rw [hm₂, hm₁]; exact Frm.refl _ _ _) (by simp) (by simp) k12 - refine WP.mono (residueTail_ok st₂ h3₂) fun t ⟨hm, k₃⟩ => ?_ + refine WP.seq (WP.mono (halfSum_ok hs₁ h16 h14 h3 (by omega_arith) hw2 (by omega_arith)) + fun s₂ ⟨hm₂, h3₂, k₂⟩ => ?_) + rw [hm₁] at h3₂ + -- The reciprocals. + refine WP.seq (WP.mono (recips_ok s₂) fun s₃ ⟨⟨h7, h6, hm₃⟩, k₃⟩ => ?_) + have k13 := (k₁.trans k₂).trans k₃ + have mem₃ : s₃.mem = s.mem := by rw [hm₃, hm₂, hm₁] + have st₃ : PSt p w s₃ := h.step (rs := []) (hws.congr' (rs := []) (by rw [mem₃]; exact Frm.refl _ _ _) + (by simp) k13 (by decide)) (by rw [mem₃]; exact Frm.refl _ _ _) (by simp) (by simp) k13 + -- The modulus and its reciprocal, and the remainder. + refine WP.seq (WP.mono (modSelect_ok st₃ h7 h6) fun s₃' ⟨⟨h7', h13', hm₃'⟩, k₃'⟩ => ?_) + have hS := hsum_le s.mem p.B (slot w aN) w + have hS' : 16 * hsum s.mem p.B (slot w aN) w + 735 < 2 ^ 61 := by omega_arith + refine WP.seq (WP.mono (reduce_ok + ((k₃'.gpr .x2 (by decide)).trans ((k₃.gpr .x2 (by decide)).trans ((k₂.gpr .x2 (by decide)).trans h2))) + ((k₃'.gpr .x3 (by decide)).trans ((k₃.gpr .x3 (by decide)).trans h3₂)) h7' h13') + fun s₄ ⟨⟨h3₄, hm₄⟩, k₄⟩ => ?_) + have k14 := (k13.trans k₃').trans k₄ + have mem₄ : s₄.mem = s.mem := hm₄.trans (hm₃'.trans mem₃) + have st₄ : PSt p w s₄ := h.step (rs := []) (hws.congr' (rs := []) (by rw [mem₄]; exact Frm.refl _ _ _) + (by simp) k14 (by decide)) (by rw [mem₄]; exact Frm.refl _ _ _) (by simp) (by simp) k14 + have h3' : s₄.gpr .x3 = BitVec.ofNat 64 (c % resMod p.g) := by + have hl : (word s.mem p.B (slot w aN)).toNat = c % 2 ^ 64 := by rw [← hc, wv_mod64 _ _ _ (by omega_arith)] + have m3 : c % 3 = hsum s.mem p.B (slot w aN) w % 3 := by rw [← hc]; exact wv_hsum_mod (by decide) _ _ _ _ + have m5 : c % 5 = hsum s.mem p.B (slot w aN) w % 5 := by rw [← hc]; exact wv_hsum_mod (by decide) _ _ _ _ + rw [h3₄] + rcases h.dims.g with hg | hg + · rw [hg, show resMod 2 = 24 from rfl, show resRecip 2 = recip24 from rfl, redBV_24 _ hS'] + refine congrArg (BitVec.ofNat 64) ?_ + omega_using [hl, m3] + · rw [hg, show resMod 5 = 10 from rfl, show resRecip 5 = recip10 from rfl, redBV_10 _ hS'] + refine congrArg (BitVec.ofNat 64) ?_ + omega_using [hl, m5] + refine WP.mono (residueTail_ok st₄ h3') fun t ⟨hm, k₅⟩ => ?_ have hf : Frm p.B [(8 * fBad, 8)] s.mem t.mem := by - rw [hm, hm₂, hm₁]; exact Frm.of_outside (writeW_outside _ _ _ (by simp only [fBad]; omega_arith)) (by simp) + rw [hm, mem₄]; exact Frm.of_outside (writeW_outside _ _ _ (by simp only [fBad]; omega_arith)) (by simp) refine ⟨h.step (hws.congr' hf (fun r hr => by rw [List.mem_singleton.mp hr]; exact KMut.hdr (by decide)) - ((k12.trans k₃)) (by decide)) hf (fun r hr => by rw [List.mem_singleton.mp hr]; exact PMut.hdr (by decide)) - (fun r hr => by rw [List.mem_singleton.mp hr]; simp only [fBad]; omega_arith) (k12.trans k₃), ?_, hf, - (k12.trans k₃).mono (by decide)⟩ + (k14.trans k₅) (by decide)) hf (fun r hr => by rw [List.mem_singleton.mp hr]; exact PMut.hdr (by decide)) + (fun r hr => by rw [List.mem_singleton.mp hr]; simp only [fBad]; omega_arith) (k14.trans k₅), ?_, hf, + (k14.trans k₅).mono (by decide)⟩ rw [hm, word_writeW_self] end VG.Proof.Ffdh.AArch64.ParameterCandidate