1 #include "arm_arch.h" 2 3 .text 4 .globl ossl_md5_block_asm_data_order 5 .type ossl_md5_block_asm_data_order,@function 6 ossl_md5_block_asm_data_order: 7 AARCH64_VALID_CALL_TARGET 8 // Save all callee-saved registers 9 stp x19,x20,[sp,#-80]! 10 stp x21,x22,[sp,#16] 11 stp x23,x24,[sp,#32] 12 stp x25,x26,[sp,#48] 13 stp x27,x28,[sp,#64] 14 15 ldp w10, w11, [x0, #0] // .Load MD5 state->A and state->B 16 ldp w12, w13, [x0, #8] // .Load MD5 state->C and state->D 17 .align 5 18 ossl_md5_blocks_loop: 19 eor x17, x12, x13 // Begin aux function round 1 F(x,y,z)=(((y^z)&x)^z) 20 and x16, x17, x11 // Continue aux function round 1 F(x,y,z)=(((y^z)&x)^z) 21 ldp w15, w20, [x1] // .Load 2 words of input data0 M[0],M[1] 22 ldp w3, w21, [x1, #8] // .Load 2 words of input data0 M[2],M[3] 23 #ifdef __AARCH64EB__ 24 rev w15, w15 25 rev w20, w20 26 rev w3, w3 27 rev w21, w21 28 #endif 29 eor x14, x16, x13 // End aux function round 1 F(x,y,z)=(((y^z)&x)^z) 30 movz x9, #0xa478 // .Load lower half of constant 0xd76aa478 31 movk x9, #0xd76a, lsl #16 // .Load upper half of constant 0xd76aa478 32 add w8, w10, w15 // Add dest value 33 add w7, w8, w9 // Add constant 0xd76aa478 34 add w6, w7, w14 // Add aux function result 35 ror w6, w6, #25 // Rotate left s=7 bits 36 eor x5, x11, x12 // Begin aux function round 1 F(x,y,z)=(((y^z)&x)^z) 37 add w4, w11, w6 // Add X parameter round 1 A=FF(A, B, C, D, 0xd76aa478, s=7, M[0]) 38 and x8, x5, x4 // Continue aux function round 1 F(x,y,z)=(((y^z)&x)^z) 39 eor x17, x8, x12 // End aux function round 1 F(x,y,z)=(((y^z)&x)^z) 40 movz x16, #0xb756 // .Load lower half of constant 0xe8c7b756 41 movk x16, #0xe8c7, lsl #16 // .Load upper half of constant 0xe8c7b756 42 add w9, w13, w20 // Add dest value 43 add w7, w9, w16 // Add constant 0xe8c7b756 44 add w14, w7, w17 // Add aux function result 45 ror w14, w14, #20 // Rotate left s=12 bits 46 eor x6, x4, x11 // Begin aux function round 1 F(x,y,z)=(((y^z)&x)^z) 47 add w5, w4, w14 // Add X parameter round 1 D=FF(D, A, B, C, 0xe8c7b756, s=12, M[1]) 48 and x8, x6, x5 // Continue aux function round 1 F(x,y,z)=(((y^z)&x)^z) 49 eor x9, x8, x11 // End aux function round 1 F(x,y,z)=(((y^z)&x)^z) 50 movz x16, #0x70db // .Load lower half of constant 0x242070db 51 movk x16, #0x2420, lsl #16 // .Load upper half of constant 0x242070db 52 add w7, w12, w3 // Add dest value 53 add w17, w7, w16 // Add constant 0x242070db 54 add w14, w17, w9 // Add aux function result 55 ror w14, w14, #15 // Rotate left s=17 bits 56 eor x6, x5, x4 // Begin aux function round 1 F(x,y,z)=(((y^z)&x)^z) 57 add w8, w5, w14 // Add X parameter round 1 C=FF(C, D, A, B, 0x242070db, s=17, M[2]) 58 and x7, x6, x8 // Continue aux function round 1 F(x,y,z)=(((y^z)&x)^z) 59 eor x16, x7, x4 // End aux function round 1 F(x,y,z)=(((y^z)&x)^z) 60 movz x9, #0xceee // .Load lower half of constant 0xc1bdceee 61 movk x9, #0xc1bd, lsl #16 // .Load upper half of constant 0xc1bdceee 62 add w14, w11, w21 // Add dest value 63 add w6, w14, w9 // Add constant 0xc1bdceee 64 add w7, w6, w16 // Add aux function result 65 ror w7, w7, #10 // Rotate left s=22 bits 66 eor x17, x8, x5 // Begin aux function round 1 F(x,y,z)=(((y^z)&x)^z) 67 add w9, w8, w7 // Add X parameter round 1 B=FF(B, C, D, A, 0xc1bdceee, s=22, M[3]) 68 ldp w14, w22, [x1, #16] // .Load 2 words of input data0 M[4],M[5] 69 ldp w7, w23, [x1, #24] // .Load 2 words of input data0 M[6],M[7] 70 #ifdef __AARCH64EB__ 71 rev w14, w14 72 rev w22, w22 73 rev w7, w7 74 rev w23, w23 75 #endif 76 and x16, x17, x9 // Continue aux function round 1 F(x,y,z)=(((y^z)&x)^z) 77 eor x6, x16, x5 // End aux function round 1 F(x,y,z)=(((y^z)&x)^z) 78 movz x16, #0xfaf // .Load lower half of constant 0xf57c0faf 79 movk x16, #0xf57c, lsl #16 // .Load upper half of constant 0xf57c0faf 80 add w17, w4, w14 // Add dest value 81 add w16, w17, w16 // Add constant 0xf57c0faf 82 add w4, w16, w6 // Add aux function result 83 ror w4, w4, #25 // Rotate left s=7 bits 84 eor x16, x9, x8 // Begin aux function round 1 F(x,y,z)=(((y^z)&x)^z) 85 add w17, w9, w4 // Add X parameter round 1 A=FF(A, B, C, D, 0xf57c0faf, s=7, M[4]) 86 and x16, x16, x17 // Continue aux function round 1 F(x,y,z)=(((y^z)&x)^z) 87 eor x6, x16, x8 // End aux function round 1 F(x,y,z)=(((y^z)&x)^z) 88 movz x4, #0xc62a // .Load lower half of constant 0x4787c62a 89 movk x4, #0x4787, lsl #16 // .Load upper half of constant 0x4787c62a 90 add w16, w5, w22 // Add dest value 91 add w16, w16, w4 // Add constant 0x4787c62a 92 add w5, w16, w6 // Add aux function result 93 ror w5, w5, #20 // Rotate left s=12 bits 94 eor x4, x17, x9 // Begin aux function round 1 F(x,y,z)=(((y^z)&x)^z) 95 add w19, w17, w5 // Add X parameter round 1 D=FF(D, A, B, C, 0x4787c62a, s=12, M[5]) 96 and x6, x4, x19 // Continue aux function round 1 F(x,y,z)=(((y^z)&x)^z) 97 eor x5, x6, x9 // End aux function round 1 F(x,y,z)=(((y^z)&x)^z) 98 movz x4, #0x4613 // .Load lower half of constant 0xa8304613 99 movk x4, #0xa830, lsl #16 // .Load upper half of constant 0xa8304613 100 add w6, w8, w7 // Add dest value 101 add w8, w6, w4 // Add constant 0xa8304613 102 add w4, w8, w5 // Add aux function result 103 ror w4, w4, #15 // Rotate left s=17 bits 104 eor x6, x19, x17 // Begin aux function round 1 F(x,y,z)=(((y^z)&x)^z) 105 add w8, w19, w4 // Add X parameter round 1 C=FF(C, D, A, B, 0xa8304613, s=17, M[6]) 106 and x5, x6, x8 // Continue aux function round 1 F(x,y,z)=(((y^z)&x)^z) 107 eor x4, x5, x17 // End aux function round 1 F(x,y,z)=(((y^z)&x)^z) 108 movz x6, #0x9501 // .Load lower half of constant 0xfd469501 109 movk x6, #0xfd46, lsl #16 // .Load upper half of constant 0xfd469501 110 add w9, w9, w23 // Add dest value 111 add w5, w9, w6 // Add constant 0xfd469501 112 add w9, w5, w4 // Add aux function result 113 ror w9, w9, #10 // Rotate left s=22 bits 114 eor x6, x8, x19 // Begin aux function round 1 F(x,y,z)=(((y^z)&x)^z) 115 add w4, w8, w9 // Add X parameter round 1 B=FF(B, C, D, A, 0xfd469501, s=22, M[7]) 116 ldp w5, w24, [x1, #32] // .Load 2 words of input data0 M[8],M[9] 117 ldp w16, w25, [x1, #40] // .Load 2 words of input data0 M[10],M[11] 118 #ifdef __AARCH64EB__ 119 rev w5, w5 120 rev w24, w24 121 rev w16, w16 122 rev w25, w25 123 #endif 124 and x9, x6, x4 // Continue aux function round 1 F(x,y,z)=(((y^z)&x)^z) 125 eor x6, x9, x19 // End aux function round 1 F(x,y,z)=(((y^z)&x)^z) 126 movz x9, #0x98d8 // .Load lower half of constant 0x698098d8 127 movk x9, #0x6980, lsl #16 // .Load upper half of constant 0x698098d8 128 add w17, w17, w5 // Add dest value 129 add w9, w17, w9 // Add constant 0x698098d8 130 add w17, w9, w6 // Add aux function result 131 ror w17, w17, #25 // Rotate left s=7 bits 132 eor x9, x4, x8 // Begin aux function round 1 F(x,y,z)=(((y^z)&x)^z) 133 add w6, w4, w17 // Add X parameter round 1 A=FF(A, B, C, D, 0x698098d8, s=7, M[8]) 134 and x17, x9, x6 // Continue aux function round 1 F(x,y,z)=(((y^z)&x)^z) 135 eor x9, x17, x8 // End aux function round 1 F(x,y,z)=(((y^z)&x)^z) 136 movz x17, #0xf7af // .Load lower half of constant 0x8b44f7af 137 movk x17, #0x8b44, lsl #16 // .Load upper half of constant 0x8b44f7af 138 add w19, w19, w24 // Add dest value 139 add w17, w19, w17 // Add constant 0x8b44f7af 140 add w19, w17, w9 // Add aux function result 141 ror w19, w19, #20 // Rotate left s=12 bits 142 eor x9, x6, x4 // Begin aux function round 1 F(x,y,z)=(((y^z)&x)^z) 143 add w17, w6, w19 // Add X parameter round 1 D=FF(D, A, B, C, 0x8b44f7af, s=12, M[9]) 144 and x9, x9, x17 // Continue aux function round 1 F(x,y,z)=(((y^z)&x)^z) 145 eor x9, x9, x4 // End aux function round 1 F(x,y,z)=(((y^z)&x)^z) 146 movz x11, #0x5bb1 // .Load lower half of constant 0xffff5bb1 147 movk x11, #0xffff, lsl #16 // .Load upper half of constant 0xffff5bb1 148 add w8, w8, w16 // Add dest value 149 add w8, w8, w11 // Add constant 0xffff5bb1 150 add w8, w8, w9 // Add aux function result 151 ror w8, w8, #15 // Rotate left s=17 bits 152 eor x9, x17, x6 // Begin aux function round 1 F(x,y,z)=(((y^z)&x)^z) 153 add w8, w17, w8 // Add X parameter round 1 C=FF(C, D, A, B, 0xffff5bb1, s=17, M[10]) 154 and x9, x9, x8 // Continue aux function round 1 F(x,y,z)=(((y^z)&x)^z) 155 eor x9, x9, x6 // End aux function round 1 F(x,y,z)=(((y^z)&x)^z) 156 movz x11, #0xd7be // .Load lower half of constant 0x895cd7be 157 movk x11, #0x895c, lsl #16 // .Load upper half of constant 0x895cd7be 158 add w4, w4, w25 // Add dest value 159 add w4, w4, w11 // Add constant 0x895cd7be 160 add w9, w4, w9 // Add aux function result 161 ror w9, w9, #10 // Rotate left s=22 bits 162 eor x4, x8, x17 // Begin aux function round 1 F(x,y,z)=(((y^z)&x)^z) 163 add w9, w8, w9 // Add X parameter round 1 B=FF(B, C, D, A, 0x895cd7be, s=22, M[11]) 164 ldp w11, w26, [x1, #48] // .Load 2 words of input data0 M[12],M[13] 165 ldp w12, w27, [x1, #56] // .Load 2 words of input data0 M[14],M[15] 166 #ifdef __AARCH64EB__ 167 rev w11, w11 168 rev w26, w26 169 rev w12, w12 170 rev w27, w27 171 #endif 172 and x4, x4, x9 // Continue aux function round 1 F(x,y,z)=(((y^z)&x)^z) 173 eor x4, x4, x17 // End aux function round 1 F(x,y,z)=(((y^z)&x)^z) 174 movz x19, #0x1122 // .Load lower half of constant 0x6b901122 175 movk x19, #0x6b90, lsl #16 // .Load upper half of constant 0x6b901122 176 add w6, w6, w11 // Add dest value 177 add w6, w6, w19 // Add constant 0x6b901122 178 add w4, w6, w4 // Add aux function result 179 ror w4, w4, #25 // Rotate left s=7 bits 180 eor x6, x9, x8 // Begin aux function round 1 F(x,y,z)=(((y^z)&x)^z) 181 add w4, w9, w4 // Add X parameter round 1 A=FF(A, B, C, D, 0x6b901122, s=7, M[12]) 182 and x6, x6, x4 // Continue aux function round 1 F(x,y,z)=(((y^z)&x)^z) 183 eor x6, x6, x8 // End aux function round 1 F(x,y,z)=(((y^z)&x)^z) 184 movz x19, #0x7193 // .Load lower half of constant 0xfd987193 185 movk x19, #0xfd98, lsl #16 // .Load upper half of constant 0xfd987193 186 add w17, w17, w26 // Add dest value 187 add w17, w17, w19 // Add constant 0xfd987193 188 add w17, w17, w6 // Add aux function result 189 ror w17, w17, #20 // Rotate left s=12 bits 190 eor x6, x4, x9 // Begin aux function round 1 F(x,y,z)=(((y^z)&x)^z) 191 add w17, w4, w17 // Add X parameter round 1 D=FF(D, A, B, C, 0xfd987193, s=12, M[13]) 192 and x6, x6, x17 // Continue aux function round 1 F(x,y,z)=(((y^z)&x)^z) 193 eor x6, x6, x9 // End aux function round 1 F(x,y,z)=(((y^z)&x)^z) 194 movz x13, #0x438e // .Load lower half of constant 0xa679438e 195 movk x13, #0xa679, lsl #16 // .Load upper half of constant 0xa679438e 196 add w8, w8, w12 // Add dest value 197 add w8, w8, w13 // Add constant 0xa679438e 198 add w8, w8, w6 // Add aux function result 199 ror w8, w8, #15 // Rotate left s=17 bits 200 eor x6, x17, x4 // Begin aux function round 1 F(x,y,z)=(((y^z)&x)^z) 201 add w8, w17, w8 // Add X parameter round 1 C=FF(C, D, A, B, 0xa679438e, s=17, M[14]) 202 and x6, x6, x8 // Continue aux function round 1 F(x,y,z)=(((y^z)&x)^z) 203 eor x6, x6, x4 // End aux function round 1 F(x,y,z)=(((y^z)&x)^z) 204 movz x13, #0x821 // .Load lower half of constant 0x49b40821 205 movk x13, #0x49b4, lsl #16 // .Load upper half of constant 0x49b40821 206 add w9, w9, w27 // Add dest value 207 add w9, w9, w13 // Add constant 0x49b40821 208 add w9, w9, w6 // Add aux function result 209 ror w9, w9, #10 // Rotate left s=22 bits 210 bic x6, x8, x17 // Aux function round 2 (~z & y) 211 add w9, w8, w9 // Add X parameter round 1 B=FF(B, C, D, A, 0x49b40821, s=22, M[15]) 212 movz x13, #0x2562 // .Load lower half of constant 0xf61e2562 213 movk x13, #0xf61e, lsl #16 // .Load upper half of constant 0xf61e2562 214 add w4, w4, w20 // Add dest value 215 add w4, w4, w13 // Add constant 0xf61e2562 216 and x13, x9, x17 // Aux function round 2 (x & z) 217 add w4, w4, w6 // Add (~z & y) 218 add w4, w4, w13 // Add (x & z) 219 ror w4, w4, #27 // Rotate left s=5 bits 220 bic x6, x9, x8 // Aux function round 2 (~z & y) 221 add w4, w9, w4 // Add X parameter round 2 A=GG(A, B, C, D, 0xf61e2562, s=5, M[1]) 222 movz x13, #0xb340 // .Load lower half of constant 0xc040b340 223 movk x13, #0xc040, lsl #16 // .Load upper half of constant 0xc040b340 224 add w17, w17, w7 // Add dest value 225 add w17, w17, w13 // Add constant 0xc040b340 226 and x13, x4, x8 // Aux function round 2 (x & z) 227 add w17, w17, w6 // Add (~z & y) 228 add w17, w17, w13 // Add (x & z) 229 ror w17, w17, #23 // Rotate left s=9 bits 230 bic x6, x4, x9 // Aux function round 2 (~z & y) 231 add w17, w4, w17 // Add X parameter round 2 D=GG(D, A, B, C, 0xc040b340, s=9, M[6]) 232 movz x13, #0x5a51 // .Load lower half of constant 0x265e5a51 233 movk x13, #0x265e, lsl #16 // .Load upper half of constant 0x265e5a51 234 add w8, w8, w25 // Add dest value 235 add w8, w8, w13 // Add constant 0x265e5a51 236 and x13, x17, x9 // Aux function round 2 (x & z) 237 add w8, w8, w6 // Add (~z & y) 238 add w8, w8, w13 // Add (x & z) 239 ror w8, w8, #18 // Rotate left s=14 bits 240 bic x6, x17, x4 // Aux function round 2 (~z & y) 241 add w8, w17, w8 // Add X parameter round 2 C=GG(C, D, A, B, 0x265e5a51, s=14, M[11]) 242 movz x13, #0xc7aa // .Load lower half of constant 0xe9b6c7aa 243 movk x13, #0xe9b6, lsl #16 // .Load upper half of constant 0xe9b6c7aa 244 add w9, w9, w15 // Add dest value 245 add w9, w9, w13 // Add constant 0xe9b6c7aa 246 and x13, x8, x4 // Aux function round 2 (x & z) 247 add w9, w9, w6 // Add (~z & y) 248 add w9, w9, w13 // Add (x & z) 249 ror w9, w9, #12 // Rotate left s=20 bits 250 bic x6, x8, x17 // Aux function round 2 (~z & y) 251 add w9, w8, w9 // Add X parameter round 2 B=GG(B, C, D, A, 0xe9b6c7aa, s=20, M[0]) 252 movz x13, #0x105d // .Load lower half of constant 0xd62f105d 253 movk x13, #0xd62f, lsl #16 // .Load upper half of constant 0xd62f105d 254 add w4, w4, w22 // Add dest value 255 add w4, w4, w13 // Add constant 0xd62f105d 256 and x13, x9, x17 // Aux function round 2 (x & z) 257 add w4, w4, w6 // Add (~z & y) 258 add w4, w4, w13 // Add (x & z) 259 ror w4, w4, #27 // Rotate left s=5 bits 260 bic x6, x9, x8 // Aux function round 2 (~z & y) 261 add w4, w9, w4 // Add X parameter round 2 A=GG(A, B, C, D, 0xd62f105d, s=5, M[5]) 262 movz x13, #0x1453 // .Load lower half of constant 0x2441453 263 movk x13, #0x244, lsl #16 // .Load upper half of constant 0x2441453 264 add w17, w17, w16 // Add dest value 265 add w17, w17, w13 // Add constant 0x2441453 266 and x13, x4, x8 // Aux function round 2 (x & z) 267 add w17, w17, w6 // Add (~z & y) 268 add w17, w17, w13 // Add (x & z) 269 ror w17, w17, #23 // Rotate left s=9 bits 270 bic x6, x4, x9 // Aux function round 2 (~z & y) 271 add w17, w4, w17 // Add X parameter round 2 D=GG(D, A, B, C, 0x2441453, s=9, M[10]) 272 movz x13, #0xe681 // .Load lower half of constant 0xd8a1e681 273 movk x13, #0xd8a1, lsl #16 // .Load upper half of constant 0xd8a1e681 274 add w8, w8, w27 // Add dest value 275 add w8, w8, w13 // Add constant 0xd8a1e681 276 and x13, x17, x9 // Aux function round 2 (x & z) 277 add w8, w8, w6 // Add (~z & y) 278 add w8, w8, w13 // Add (x & z) 279 ror w8, w8, #18 // Rotate left s=14 bits 280 bic x6, x17, x4 // Aux function round 2 (~z & y) 281 add w8, w17, w8 // Add X parameter round 2 C=GG(C, D, A, B, 0xd8a1e681, s=14, M[15]) 282 movz x13, #0xfbc8 // .Load lower half of constant 0xe7d3fbc8 283 movk x13, #0xe7d3, lsl #16 // .Load upper half of constant 0xe7d3fbc8 284 add w9, w9, w14 // Add dest value 285 add w9, w9, w13 // Add constant 0xe7d3fbc8 286 and x13, x8, x4 // Aux function round 2 (x & z) 287 add w9, w9, w6 // Add (~z & y) 288 add w9, w9, w13 // Add (x & z) 289 ror w9, w9, #12 // Rotate left s=20 bits 290 bic x6, x8, x17 // Aux function round 2 (~z & y) 291 add w9, w8, w9 // Add X parameter round 2 B=GG(B, C, D, A, 0xe7d3fbc8, s=20, M[4]) 292 movz x13, #0xcde6 // .Load lower half of constant 0x21e1cde6 293 movk x13, #0x21e1, lsl #16 // .Load upper half of constant 0x21e1cde6 294 add w4, w4, w24 // Add dest value 295 add w4, w4, w13 // Add constant 0x21e1cde6 296 and x13, x9, x17 // Aux function round 2 (x & z) 297 add w4, w4, w6 // Add (~z & y) 298 add w4, w4, w13 // Add (x & z) 299 ror w4, w4, #27 // Rotate left s=5 bits 300 bic x6, x9, x8 // Aux function round 2 (~z & y) 301 add w4, w9, w4 // Add X parameter round 2 A=GG(A, B, C, D, 0x21e1cde6, s=5, M[9]) 302 movz x13, #0x7d6 // .Load lower half of constant 0xc33707d6 303 movk x13, #0xc337, lsl #16 // .Load upper half of constant 0xc33707d6 304 add w17, w17, w12 // Add dest value 305 add w17, w17, w13 // Add constant 0xc33707d6 306 and x13, x4, x8 // Aux function round 2 (x & z) 307 add w17, w17, w6 // Add (~z & y) 308 add w17, w17, w13 // Add (x & z) 309 ror w17, w17, #23 // Rotate left s=9 bits 310 bic x6, x4, x9 // Aux function round 2 (~z & y) 311 add w17, w4, w17 // Add X parameter round 2 D=GG(D, A, B, C, 0xc33707d6, s=9, M[14]) 312 movz x13, #0xd87 // .Load lower half of constant 0xf4d50d87 313 movk x13, #0xf4d5, lsl #16 // .Load upper half of constant 0xf4d50d87 314 add w8, w8, w21 // Add dest value 315 add w8, w8, w13 // Add constant 0xf4d50d87 316 and x13, x17, x9 // Aux function round 2 (x & z) 317 add w8, w8, w6 // Add (~z & y) 318 add w8, w8, w13 // Add (x & z) 319 ror w8, w8, #18 // Rotate left s=14 bits 320 bic x6, x17, x4 // Aux function round 2 (~z & y) 321 add w8, w17, w8 // Add X parameter round 2 C=GG(C, D, A, B, 0xf4d50d87, s=14, M[3]) 322 movz x13, #0x14ed // .Load lower half of constant 0x455a14ed 323 movk x13, #0x455a, lsl #16 // .Load upper half of constant 0x455a14ed 324 add w9, w9, w5 // Add dest value 325 add w9, w9, w13 // Add constant 0x455a14ed 326 and x13, x8, x4 // Aux function round 2 (x & z) 327 add w9, w9, w6 // Add (~z & y) 328 add w9, w9, w13 // Add (x & z) 329 ror w9, w9, #12 // Rotate left s=20 bits 330 bic x6, x8, x17 // Aux function round 2 (~z & y) 331 add w9, w8, w9 // Add X parameter round 2 B=GG(B, C, D, A, 0x455a14ed, s=20, M[8]) 332 movz x13, #0xe905 // .Load lower half of constant 0xa9e3e905 333 movk x13, #0xa9e3, lsl #16 // .Load upper half of constant 0xa9e3e905 334 add w4, w4, w26 // Add dest value 335 add w4, w4, w13 // Add constant 0xa9e3e905 336 and x13, x9, x17 // Aux function round 2 (x & z) 337 add w4, w4, w6 // Add (~z & y) 338 add w4, w4, w13 // Add (x & z) 339 ror w4, w4, #27 // Rotate left s=5 bits 340 bic x6, x9, x8 // Aux function round 2 (~z & y) 341 add w4, w9, w4 // Add X parameter round 2 A=GG(A, B, C, D, 0xa9e3e905, s=5, M[13]) 342 movz x13, #0xa3f8 // .Load lower half of constant 0xfcefa3f8 343 movk x13, #0xfcef, lsl #16 // .Load upper half of constant 0xfcefa3f8 344 add w17, w17, w3 // Add dest value 345 add w17, w17, w13 // Add constant 0xfcefa3f8 346 and x13, x4, x8 // Aux function round 2 (x & z) 347 add w17, w17, w6 // Add (~z & y) 348 add w17, w17, w13 // Add (x & z) 349 ror w17, w17, #23 // Rotate left s=9 bits 350 bic x6, x4, x9 // Aux function round 2 (~z & y) 351 add w17, w4, w17 // Add X parameter round 2 D=GG(D, A, B, C, 0xfcefa3f8, s=9, M[2]) 352 movz x13, #0x2d9 // .Load lower half of constant 0x676f02d9 353 movk x13, #0x676f, lsl #16 // .Load upper half of constant 0x676f02d9 354 add w8, w8, w23 // Add dest value 355 add w8, w8, w13 // Add constant 0x676f02d9 356 and x13, x17, x9 // Aux function round 2 (x & z) 357 add w8, w8, w6 // Add (~z & y) 358 add w8, w8, w13 // Add (x & z) 359 ror w8, w8, #18 // Rotate left s=14 bits 360 bic x6, x17, x4 // Aux function round 2 (~z & y) 361 add w8, w17, w8 // Add X parameter round 2 C=GG(C, D, A, B, 0x676f02d9, s=14, M[7]) 362 movz x13, #0x4c8a // .Load lower half of constant 0x8d2a4c8a 363 movk x13, #0x8d2a, lsl #16 // .Load upper half of constant 0x8d2a4c8a 364 add w9, w9, w11 // Add dest value 365 add w9, w9, w13 // Add constant 0x8d2a4c8a 366 and x13, x8, x4 // Aux function round 2 (x & z) 367 add w9, w9, w6 // Add (~z & y) 368 add w9, w9, w13 // Add (x & z) 369 eor x6, x8, x17 // Begin aux function round 3 H(x,y,z)=(x^y^z) 370 ror w9, w9, #12 // Rotate left s=20 bits 371 movz x10, #0x3942 // .Load lower half of constant 0xfffa3942 372 add w9, w8, w9 // Add X parameter round 2 B=GG(B, C, D, A, 0x8d2a4c8a, s=20, M[12]) 373 movk x10, #0xfffa, lsl #16 // .Load upper half of constant 0xfffa3942 374 add w4, w4, w22 // Add dest value 375 eor x6, x6, x9 // End aux function round 3 H(x,y,z)=(x^y^z) 376 add w4, w4, w10 // Add constant 0xfffa3942 377 add w4, w4, w6 // Add aux function result 378 ror w4, w4, #28 // Rotate left s=4 bits 379 eor x6, x9, x8 // Begin aux function round 3 H(x,y,z)=(x^y^z) 380 movz x10, #0xf681 // .Load lower half of constant 0x8771f681 381 add w4, w9, w4 // Add X parameter round 3 A=HH(A, B, C, D, 0xfffa3942, s=4, M[5]) 382 movk x10, #0x8771, lsl #16 // .Load upper half of constant 0x8771f681 383 add w17, w17, w5 // Add dest value 384 eor x6, x6, x4 // End aux function round 3 H(x,y,z)=(x^y^z) 385 add w17, w17, w10 // Add constant 0x8771f681 386 add w17, w17, w6 // Add aux function result 387 eor x6, x4, x9 // Begin aux function round 3 H(x,y,z)=(x^y^z) 388 ror w17, w17, #21 // Rotate left s=11 bits 389 movz x13, #0x6122 // .Load lower half of constant 0x6d9d6122 390 add w17, w4, w17 // Add X parameter round 3 D=HH(D, A, B, C, 0x8771f681, s=11, M[8]) 391 movk x13, #0x6d9d, lsl #16 // .Load upper half of constant 0x6d9d6122 392 add w8, w8, w25 // Add dest value 393 eor x6, x6, x17 // End aux function round 3 H(x,y,z)=(x^y^z) 394 add w8, w8, w13 // Add constant 0x6d9d6122 395 add w8, w8, w6 // Add aux function result 396 ror w8, w8, #16 // Rotate left s=16 bits 397 eor x6, x17, x4 // Begin aux function round 3 H(x,y,z)=(x^y^z) 398 movz x13, #0x380c // .Load lower half of constant 0xfde5380c 399 add w8, w17, w8 // Add X parameter round 3 C=HH(C, D, A, B, 0x6d9d6122, s=16, M[11]) 400 movk x13, #0xfde5, lsl #16 // .Load upper half of constant 0xfde5380c 401 add w9, w9, w12 // Add dest value 402 eor x6, x6, x8 // End aux function round 3 H(x,y,z)=(x^y^z) 403 add w9, w9, w13 // Add constant 0xfde5380c 404 add w9, w9, w6 // Add aux function result 405 eor x6, x8, x17 // Begin aux function round 3 H(x,y,z)=(x^y^z) 406 ror w9, w9, #9 // Rotate left s=23 bits 407 movz x10, #0xea44 // .Load lower half of constant 0xa4beea44 408 add w9, w8, w9 // Add X parameter round 3 B=HH(B, C, D, A, 0xfde5380c, s=23, M[14]) 409 movk x10, #0xa4be, lsl #16 // .Load upper half of constant 0xa4beea44 410 add w4, w4, w20 // Add dest value 411 eor x6, x6, x9 // End aux function round 3 H(x,y,z)=(x^y^z) 412 add w4, w4, w10 // Add constant 0xa4beea44 413 add w4, w4, w6 // Add aux function result 414 ror w4, w4, #28 // Rotate left s=4 bits 415 eor x6, x9, x8 // Begin aux function round 3 H(x,y,z)=(x^y^z) 416 movz x10, #0xcfa9 // .Load lower half of constant 0x4bdecfa9 417 add w4, w9, w4 // Add X parameter round 3 A=HH(A, B, C, D, 0xa4beea44, s=4, M[1]) 418 movk x10, #0x4bde, lsl #16 // .Load upper half of constant 0x4bdecfa9 419 add w17, w17, w14 // Add dest value 420 eor x6, x6, x4 // End aux function round 3 H(x,y,z)=(x^y^z) 421 add w17, w17, w10 // Add constant 0x4bdecfa9 422 add w17, w17, w6 // Add aux function result 423 eor x6, x4, x9 // Begin aux function round 3 H(x,y,z)=(x^y^z) 424 ror w17, w17, #21 // Rotate left s=11 bits 425 movz x13, #0x4b60 // .Load lower half of constant 0xf6bb4b60 426 add w17, w4, w17 // Add X parameter round 3 D=HH(D, A, B, C, 0x4bdecfa9, s=11, M[4]) 427 movk x13, #0xf6bb, lsl #16 // .Load upper half of constant 0xf6bb4b60 428 add w8, w8, w23 // Add dest value 429 eor x6, x6, x17 // End aux function round 3 H(x,y,z)=(x^y^z) 430 add w8, w8, w13 // Add constant 0xf6bb4b60 431 add w8, w8, w6 // Add aux function result 432 ror w8, w8, #16 // Rotate left s=16 bits 433 eor x6, x17, x4 // Begin aux function round 3 H(x,y,z)=(x^y^z) 434 movz x13, #0xbc70 // .Load lower half of constant 0xbebfbc70 435 add w8, w17, w8 // Add X parameter round 3 C=HH(C, D, A, B, 0xf6bb4b60, s=16, M[7]) 436 movk x13, #0xbebf, lsl #16 // .Load upper half of constant 0xbebfbc70 437 add w9, w9, w16 // Add dest value 438 eor x6, x6, x8 // End aux function round 3 H(x,y,z)=(x^y^z) 439 add w9, w9, w13 // Add constant 0xbebfbc70 440 add w9, w9, w6 // Add aux function result 441 eor x6, x8, x17 // Begin aux function round 3 H(x,y,z)=(x^y^z) 442 ror w9, w9, #9 // Rotate left s=23 bits 443 movz x10, #0x7ec6 // .Load lower half of constant 0x289b7ec6 444 add w9, w8, w9 // Add X parameter round 3 B=HH(B, C, D, A, 0xbebfbc70, s=23, M[10]) 445 movk x10, #0x289b, lsl #16 // .Load upper half of constant 0x289b7ec6 446 add w4, w4, w26 // Add dest value 447 eor x6, x6, x9 // End aux function round 3 H(x,y,z)=(x^y^z) 448 add w4, w4, w10 // Add constant 0x289b7ec6 449 add w4, w4, w6 // Add aux function result 450 ror w4, w4, #28 // Rotate left s=4 bits 451 eor x6, x9, x8 // Begin aux function round 3 H(x,y,z)=(x^y^z) 452 movz x10, #0x27fa // .Load lower half of constant 0xeaa127fa 453 add w4, w9, w4 // Add X parameter round 3 A=HH(A, B, C, D, 0x289b7ec6, s=4, M[13]) 454 movk x10, #0xeaa1, lsl #16 // .Load upper half of constant 0xeaa127fa 455 add w17, w17, w15 // Add dest value 456 eor x6, x6, x4 // End aux function round 3 H(x,y,z)=(x^y^z) 457 add w17, w17, w10 // Add constant 0xeaa127fa 458 add w17, w17, w6 // Add aux function result 459 eor x6, x4, x9 // Begin aux function round 3 H(x,y,z)=(x^y^z) 460 ror w17, w17, #21 // Rotate left s=11 bits 461 movz x13, #0x3085 // .Load lower half of constant 0xd4ef3085 462 add w17, w4, w17 // Add X parameter round 3 D=HH(D, A, B, C, 0xeaa127fa, s=11, M[0]) 463 movk x13, #0xd4ef, lsl #16 // .Load upper half of constant 0xd4ef3085 464 add w8, w8, w21 // Add dest value 465 eor x6, x6, x17 // End aux function round 3 H(x,y,z)=(x^y^z) 466 add w8, w8, w13 // Add constant 0xd4ef3085 467 add w8, w8, w6 // Add aux function result 468 ror w8, w8, #16 // Rotate left s=16 bits 469 eor x6, x17, x4 // Begin aux function round 3 H(x,y,z)=(x^y^z) 470 movz x13, #0x1d05 // .Load lower half of constant 0x4881d05 471 add w8, w17, w8 // Add X parameter round 3 C=HH(C, D, A, B, 0xd4ef3085, s=16, M[3]) 472 movk x13, #0x488, lsl #16 // .Load upper half of constant 0x4881d05 473 add w9, w9, w7 // Add dest value 474 eor x6, x6, x8 // End aux function round 3 H(x,y,z)=(x^y^z) 475 add w9, w9, w13 // Add constant 0x4881d05 476 add w9, w9, w6 // Add aux function result 477 eor x6, x8, x17 // Begin aux function round 3 H(x,y,z)=(x^y^z) 478 ror w9, w9, #9 // Rotate left s=23 bits 479 movz x10, #0xd039 // .Load lower half of constant 0xd9d4d039 480 add w9, w8, w9 // Add X parameter round 3 B=HH(B, C, D, A, 0x4881d05, s=23, M[6]) 481 movk x10, #0xd9d4, lsl #16 // .Load upper half of constant 0xd9d4d039 482 add w4, w4, w24 // Add dest value 483 eor x6, x6, x9 // End aux function round 3 H(x,y,z)=(x^y^z) 484 add w4, w4, w10 // Add constant 0xd9d4d039 485 add w4, w4, w6 // Add aux function result 486 ror w4, w4, #28 // Rotate left s=4 bits 487 eor x6, x9, x8 // Begin aux function round 3 H(x,y,z)=(x^y^z) 488 movz x10, #0x99e5 // .Load lower half of constant 0xe6db99e5 489 add w4, w9, w4 // Add X parameter round 3 A=HH(A, B, C, D, 0xd9d4d039, s=4, M[9]) 490 movk x10, #0xe6db, lsl #16 // .Load upper half of constant 0xe6db99e5 491 add w17, w17, w11 // Add dest value 492 eor x6, x6, x4 // End aux function round 3 H(x,y,z)=(x^y^z) 493 add w17, w17, w10 // Add constant 0xe6db99e5 494 add w17, w17, w6 // Add aux function result 495 eor x6, x4, x9 // Begin aux function round 3 H(x,y,z)=(x^y^z) 496 ror w17, w17, #21 // Rotate left s=11 bits 497 movz x13, #0x7cf8 // .Load lower half of constant 0x1fa27cf8 498 add w17, w4, w17 // Add X parameter round 3 D=HH(D, A, B, C, 0xe6db99e5, s=11, M[12]) 499 movk x13, #0x1fa2, lsl #16 // .Load upper half of constant 0x1fa27cf8 500 add w8, w8, w27 // Add dest value 501 eor x6, x6, x17 // End aux function round 3 H(x,y,z)=(x^y^z) 502 add w8, w8, w13 // Add constant 0x1fa27cf8 503 add w8, w8, w6 // Add aux function result 504 ror w8, w8, #16 // Rotate left s=16 bits 505 eor x6, x17, x4 // Begin aux function round 3 H(x,y,z)=(x^y^z) 506 movz x13, #0x5665 // .Load lower half of constant 0xc4ac5665 507 add w8, w17, w8 // Add X parameter round 3 C=HH(C, D, A, B, 0x1fa27cf8, s=16, M[15]) 508 movk x13, #0xc4ac, lsl #16 // .Load upper half of constant 0xc4ac5665 509 add w9, w9, w3 // Add dest value 510 eor x6, x6, x8 // End aux function round 3 H(x,y,z)=(x^y^z) 511 add w9, w9, w13 // Add constant 0xc4ac5665 512 add w9, w9, w6 // Add aux function result 513 ror w9, w9, #9 // Rotate left s=23 bits 514 movz x6, #0x2244 // .Load lower half of constant 0xf4292244 515 movk x6, #0xf429, lsl #16 // .Load upper half of constant 0xf4292244 516 add w9, w8, w9 // Add X parameter round 3 B=HH(B, C, D, A, 0xc4ac5665, s=23, M[2]) 517 add w4, w4, w15 // Add dest value 518 orn x13, x9, x17 // Begin aux function round 4 I(x,y,z)=((~z|x)^y) 519 add w4, w4, w6 // Add constant 0xf4292244 520 eor x6, x8, x13 // End aux function round 4 I(x,y,z)=((~z|x)^y) 521 add w4, w4, w6 // Add aux function result 522 ror w4, w4, #26 // Rotate left s=6 bits 523 movz x6, #0xff97 // .Load lower half of constant 0x432aff97 524 movk x6, #0x432a, lsl #16 // .Load upper half of constant 0x432aff97 525 add w4, w9, w4 // Add X parameter round 4 A=II(A, B, C, D, 0xf4292244, s=6, M[0]) 526 orn x10, x4, x8 // Begin aux function round 4 I(x,y,z)=((~z|x)^y) 527 add w17, w17, w23 // Add dest value 528 eor x10, x9, x10 // End aux function round 4 I(x,y,z)=((~z|x)^y) 529 add w17, w17, w6 // Add constant 0x432aff97 530 add w6, w17, w10 // Add aux function result 531 ror w6, w6, #22 // Rotate left s=10 bits 532 movz x17, #0x23a7 // .Load lower half of constant 0xab9423a7 533 movk x17, #0xab94, lsl #16 // .Load upper half of constant 0xab9423a7 534 add w6, w4, w6 // Add X parameter round 4 D=II(D, A, B, C, 0x432aff97, s=10, M[7]) 535 add w8, w8, w12 // Add dest value 536 orn x10, x6, x9 // Begin aux function round 4 I(x,y,z)=((~z|x)^y) 537 add w8, w8, w17 // Add constant 0xab9423a7 538 eor x17, x4, x10 // End aux function round 4 I(x,y,z)=((~z|x)^y) 539 add w8, w8, w17 // Add aux function result 540 ror w8, w8, #17 // Rotate left s=15 bits 541 movz x17, #0xa039 // .Load lower half of constant 0xfc93a039 542 movk x17, #0xfc93, lsl #16 // .Load upper half of constant 0xfc93a039 543 add w8, w6, w8 // Add X parameter round 4 C=II(C, D, A, B, 0xab9423a7, s=15, M[14]) 544 orn x13, x8, x4 // Begin aux function round 4 I(x,y,z)=((~z|x)^y) 545 add w9, w9, w22 // Add dest value 546 eor x13, x6, x13 // End aux function round 4 I(x,y,z)=((~z|x)^y) 547 add w9, w9, w17 // Add constant 0xfc93a039 548 add w17, w9, w13 // Add aux function result 549 ror w17, w17, #11 // Rotate left s=21 bits 550 movz x9, #0x59c3 // .Load lower half of constant 0x655b59c3 551 movk x9, #0x655b, lsl #16 // .Load upper half of constant 0x655b59c3 552 add w17, w8, w17 // Add X parameter round 4 B=II(B, C, D, A, 0xfc93a039, s=21, M[5]) 553 add w4, w4, w11 // Add dest value 554 orn x13, x17, x6 // Begin aux function round 4 I(x,y,z)=((~z|x)^y) 555 add w9, w4, w9 // Add constant 0x655b59c3 556 eor x4, x8, x13 // End aux function round 4 I(x,y,z)=((~z|x)^y) 557 add w9, w9, w4 // Add aux function result 558 ror w9, w9, #26 // Rotate left s=6 bits 559 movz x4, #0xcc92 // .Load lower half of constant 0x8f0ccc92 560 movk x4, #0x8f0c, lsl #16 // .Load upper half of constant 0x8f0ccc92 561 add w9, w17, w9 // Add X parameter round 4 A=II(A, B, C, D, 0x655b59c3, s=6, M[12]) 562 orn x10, x9, x8 // Begin aux function round 4 I(x,y,z)=((~z|x)^y) 563 add w6, w6, w21 // Add dest value 564 eor x10, x17, x10 // End aux function round 4 I(x,y,z)=((~z|x)^y) 565 add w4, w6, w4 // Add constant 0x8f0ccc92 566 add w6, w4, w10 // Add aux function result 567 ror w6, w6, #22 // Rotate left s=10 bits 568 movz x4, #0xf47d // .Load lower half of constant 0xffeff47d 569 movk x4, #0xffef, lsl #16 // .Load upper half of constant 0xffeff47d 570 add w6, w9, w6 // Add X parameter round 4 D=II(D, A, B, C, 0x8f0ccc92, s=10, M[3]) 571 add w8, w8, w16 // Add dest value 572 orn x10, x6, x17 // Begin aux function round 4 I(x,y,z)=((~z|x)^y) 573 add w8, w8, w4 // Add constant 0xffeff47d 574 eor x4, x9, x10 // End aux function round 4 I(x,y,z)=((~z|x)^y) 575 add w8, w8, w4 // Add aux function result 576 ror w8, w8, #17 // Rotate left s=15 bits 577 movz x4, #0x5dd1 // .Load lower half of constant 0x85845dd1 578 movk x4, #0x8584, lsl #16 // .Load upper half of constant 0x85845dd1 579 add w8, w6, w8 // Add X parameter round 4 C=II(C, D, A, B, 0xffeff47d, s=15, M[10]) 580 orn x10, x8, x9 // Begin aux function round 4 I(x,y,z)=((~z|x)^y) 581 add w15, w17, w20 // Add dest value 582 eor x17, x6, x10 // End aux function round 4 I(x,y,z)=((~z|x)^y) 583 add w15, w15, w4 // Add constant 0x85845dd1 584 add w4, w15, w17 // Add aux function result 585 ror w4, w4, #11 // Rotate left s=21 bits 586 movz x15, #0x7e4f // .Load lower half of constant 0x6fa87e4f 587 movk x15, #0x6fa8, lsl #16 // .Load upper half of constant 0x6fa87e4f 588 add w17, w8, w4 // Add X parameter round 4 B=II(B, C, D, A, 0x85845dd1, s=21, M[1]) 589 add w4, w9, w5 // Add dest value 590 orn x9, x17, x6 // Begin aux function round 4 I(x,y,z)=((~z|x)^y) 591 add w15, w4, w15 // Add constant 0x6fa87e4f 592 eor x4, x8, x9 // End aux function round 4 I(x,y,z)=((~z|x)^y) 593 add w9, w15, w4 // Add aux function result 594 ror w9, w9, #26 // Rotate left s=6 bits 595 movz x15, #0xe6e0 // .Load lower half of constant 0xfe2ce6e0 596 movk x15, #0xfe2c, lsl #16 // .Load upper half of constant 0xfe2ce6e0 597 add w4, w17, w9 // Add X parameter round 4 A=II(A, B, C, D, 0x6fa87e4f, s=6, M[8]) 598 orn x9, x4, x8 // Begin aux function round 4 I(x,y,z)=((~z|x)^y) 599 add w6, w6, w27 // Add dest value 600 eor x9, x17, x9 // End aux function round 4 I(x,y,z)=((~z|x)^y) 601 add w15, w6, w15 // Add constant 0xfe2ce6e0 602 add w6, w15, w9 // Add aux function result 603 ror w6, w6, #22 // Rotate left s=10 bits 604 movz x9, #0x4314 // .Load lower half of constant 0xa3014314 605 movk x9, #0xa301, lsl #16 // .Load upper half of constant 0xa3014314 606 add w15, w4, w6 // Add X parameter round 4 D=II(D, A, B, C, 0xfe2ce6e0, s=10, M[15]) 607 add w6, w8, w7 // Add dest value 608 orn x7, x15, x17 // Begin aux function round 4 I(x,y,z)=((~z|x)^y) 609 add w8, w6, w9 // Add constant 0xa3014314 610 eor x9, x4, x7 // End aux function round 4 I(x,y,z)=((~z|x)^y) 611 add w6, w8, w9 // Add aux function result 612 ror w6, w6, #17 // Rotate left s=15 bits 613 movz x7, #0x11a1 // .Load lower half of constant 0x4e0811a1 614 movk x7, #0x4e08, lsl #16 // .Load upper half of constant 0x4e0811a1 615 add w8, w15, w6 // Add X parameter round 4 C=II(C, D, A, B, 0xa3014314, s=15, M[6]) 616 orn x9, x8, x4 // Begin aux function round 4 I(x,y,z)=((~z|x)^y) 617 add w6, w17, w26 // Add dest value 618 eor x17, x15, x9 // End aux function round 4 I(x,y,z)=((~z|x)^y) 619 add w9, w6, w7 // Add constant 0x4e0811a1 620 add w7, w9, w17 // Add aux function result 621 ror w7, w7, #11 // Rotate left s=21 bits 622 movz x6, #0x7e82 // .Load lower half of constant 0xf7537e82 623 movk x6, #0xf753, lsl #16 // .Load upper half of constant 0xf7537e82 624 add w9, w8, w7 // Add X parameter round 4 B=II(B, C, D, A, 0x4e0811a1, s=21, M[13]) 625 add w17, w4, w14 // Add dest value 626 orn x7, x9, x15 // Begin aux function round 4 I(x,y,z)=((~z|x)^y) 627 add w14, w17, w6 // Add constant 0xf7537e82 628 eor x4, x8, x7 // End aux function round 4 I(x,y,z)=((~z|x)^y) 629 add w17, w14, w4 // Add aux function result 630 ror w17, w17, #26 // Rotate left s=6 bits 631 movz x6, #0xf235 // .Load lower half of constant 0xbd3af235 632 movk x6, #0xbd3a, lsl #16 // .Load upper half of constant 0xbd3af235 633 add w7, w9, w17 // Add X parameter round 4 A=II(A, B, C, D, 0xf7537e82, s=6, M[4]) 634 orn x14, x7, x8 // Begin aux function round 4 I(x,y,z)=((~z|x)^y) 635 add w4, w15, w25 // Add dest value 636 eor x17, x9, x14 // End aux function round 4 I(x,y,z)=((~z|x)^y) 637 add w15, w4, w6 // Add constant 0xbd3af235 638 add w16, w15, w17 // Add aux function result 639 ror w16, w16, #22 // Rotate left s=10 bits 640 movz x14, #0xd2bb // .Load lower half of constant 0x2ad7d2bb 641 movk x14, #0x2ad7, lsl #16 // .Load upper half of constant 0x2ad7d2bb 642 add w4, w7, w16 // Add X parameter round 4 D=II(D, A, B, C, 0xbd3af235, s=10, M[11]) 643 add w6, w8, w3 // Add dest value 644 orn x15, x4, x9 // Begin aux function round 4 I(x,y,z)=((~z|x)^y) 645 add w17, w6, w14 // Add constant 0x2ad7d2bb 646 eor x16, x7, x15 // End aux function round 4 I(x,y,z)=((~z|x)^y) 647 add w8, w17, w16 // Add aux function result 648 ror w8, w8, #17 // Rotate left s=15 bits 649 movz x3, #0xd391 // .Load lower half of constant 0xeb86d391 650 movk x3, #0xeb86, lsl #16 // .Load upper half of constant 0xeb86d391 651 add w14, w4, w8 // Add X parameter round 4 C=II(C, D, A, B, 0x2ad7d2bb, s=15, M[2]) 652 orn x6, x14, x7 // Begin aux function round 4 I(x,y,z)=((~z|x)^y) 653 add w15, w9, w24 // Add dest value 654 eor x17, x4, x6 // End aux function round 4 I(x,y,z)=((~z|x)^y) 655 add w16, w15, w3 // Add constant 0xeb86d391 656 add w8, w16, w17 // Add aux function result 657 ror w8, w8, #11 // Rotate left s=21 bits 658 ldp w6, w15, [x0] // Reload MD5 state->A and state->B 659 ldp w5, w9, [x0, #8] // Reload MD5 state->C and state->D 660 add w3, w14, w8 // Add X parameter round 4 B=II(B, C, D, A, 0xeb86d391, s=21, M[9]) 661 add w13, w4, w9 // Add result of MD5 rounds to state->D 662 add w12, w14, w5 // Add result of MD5 rounds to state->C 663 add w10, w7, w6 // Add result of MD5 rounds to state->A 664 add w11, w3, w15 // Add result of MD5 rounds to state->B 665 stp w12, w13, [x0, #8] // Store MD5 states C,D 666 stp w10, w11, [x0] // Store MD5 states A,B 667 add x1, x1, #64 // Increment data pointer 668 subs w2, w2, #1 // Decrement block counter 669 b.ne ossl_md5_blocks_loop 670 671 ldp x21,x22,[sp,#16] 672 ldp x23,x24,[sp,#32] 673 ldp x25,x26,[sp,#48] 674 ldp x27,x28,[sp,#64] 675 ldp x19,x20,[sp],#80 676 ret 677 678