aesni-sha1-x86_64.s 57 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035
  1. .text
  2. .globl aesni_cbc_sha1_enc
  3. .type aesni_cbc_sha1_enc,@function
  4. .align 32
  5. aesni_cbc_sha1_enc:
  6. .cfi_startproc
  7. movl OPENSSL_ia32cap_P+0(%rip),%r10d
  8. movq OPENSSL_ia32cap_P+4(%rip),%r11
  9. btq $61,%r11
  10. jc aesni_cbc_sha1_enc_shaext
  11. andl $268435456,%r11d
  12. andl $1073741824,%r10d
  13. orl %r11d,%r10d
  14. cmpl $1342177280,%r10d
  15. je aesni_cbc_sha1_enc_avx
  16. jmp aesni_cbc_sha1_enc_ssse3
  17. .byte 0xf3,0xc3
  18. .cfi_endproc
  19. .size aesni_cbc_sha1_enc,.-aesni_cbc_sha1_enc
  20. .type aesni_cbc_sha1_enc_ssse3,@function
  21. .align 32
  22. aesni_cbc_sha1_enc_ssse3:
  23. .cfi_startproc
  24. movq 8(%rsp),%r10
  25. pushq %rbx
  26. .cfi_adjust_cfa_offset 8
  27. .cfi_offset %rbx,-16
  28. pushq %rbp
  29. .cfi_adjust_cfa_offset 8
  30. .cfi_offset %rbp,-24
  31. pushq %r12
  32. .cfi_adjust_cfa_offset 8
  33. .cfi_offset %r12,-32
  34. pushq %r13
  35. .cfi_adjust_cfa_offset 8
  36. .cfi_offset %r13,-40
  37. pushq %r14
  38. .cfi_adjust_cfa_offset 8
  39. .cfi_offset %r14,-48
  40. pushq %r15
  41. .cfi_adjust_cfa_offset 8
  42. .cfi_offset %r15,-56
  43. leaq -104(%rsp),%rsp
  44. .cfi_adjust_cfa_offset 104
  45. movq %rdi,%r12
  46. movq %rsi,%r13
  47. movq %rdx,%r14
  48. leaq 112(%rcx),%r15
  49. movdqu (%r8),%xmm2
  50. movq %r8,88(%rsp)
  51. shlq $6,%r14
  52. subq %r12,%r13
  53. movl 240-112(%r15),%r8d
  54. addq %r10,%r14
  55. leaq K_XX_XX(%rip),%r11
  56. movl 0(%r9),%eax
  57. movl 4(%r9),%ebx
  58. movl 8(%r9),%ecx
  59. movl 12(%r9),%edx
  60. movl %ebx,%esi
  61. movl 16(%r9),%ebp
  62. movl %ecx,%edi
  63. xorl %edx,%edi
  64. andl %edi,%esi
  65. movdqa 64(%r11),%xmm3
  66. movdqa 0(%r11),%xmm13
  67. movdqu 0(%r10),%xmm4
  68. movdqu 16(%r10),%xmm5
  69. movdqu 32(%r10),%xmm6
  70. movdqu 48(%r10),%xmm7
  71. .byte 102,15,56,0,227
  72. .byte 102,15,56,0,235
  73. .byte 102,15,56,0,243
  74. addq $64,%r10
  75. paddd %xmm13,%xmm4
  76. .byte 102,15,56,0,251
  77. paddd %xmm13,%xmm5
  78. paddd %xmm13,%xmm6
  79. movdqa %xmm4,0(%rsp)
  80. psubd %xmm13,%xmm4
  81. movdqa %xmm5,16(%rsp)
  82. psubd %xmm13,%xmm5
  83. movdqa %xmm6,32(%rsp)
  84. psubd %xmm13,%xmm6
  85. movups -112(%r15),%xmm15
  86. movups 16-112(%r15),%xmm0
  87. jmp .Loop_ssse3
  88. .align 32
  89. .Loop_ssse3:
  90. rorl $2,%ebx
  91. movups 0(%r12),%xmm14
  92. xorps %xmm15,%xmm14
  93. xorps %xmm14,%xmm2
  94. movups -80(%r15),%xmm1
  95. .byte 102,15,56,220,208
  96. pshufd $238,%xmm4,%xmm8
  97. xorl %edx,%esi
  98. movdqa %xmm7,%xmm12
  99. paddd %xmm7,%xmm13
  100. movl %eax,%edi
  101. addl 0(%rsp),%ebp
  102. punpcklqdq %xmm5,%xmm8
  103. xorl %ecx,%ebx
  104. roll $5,%eax
  105. addl %esi,%ebp
  106. psrldq $4,%xmm12
  107. andl %ebx,%edi
  108. xorl %ecx,%ebx
  109. pxor %xmm4,%xmm8
  110. addl %eax,%ebp
  111. rorl $7,%eax
  112. pxor %xmm6,%xmm12
  113. xorl %ecx,%edi
  114. movl %ebp,%esi
  115. addl 4(%rsp),%edx
  116. pxor %xmm12,%xmm8
  117. xorl %ebx,%eax
  118. roll $5,%ebp
  119. movdqa %xmm13,48(%rsp)
  120. addl %edi,%edx
  121. movups -64(%r15),%xmm0
  122. .byte 102,15,56,220,209
  123. andl %eax,%esi
  124. movdqa %xmm8,%xmm3
  125. xorl %ebx,%eax
  126. addl %ebp,%edx
  127. rorl $7,%ebp
  128. movdqa %xmm8,%xmm12
  129. xorl %ebx,%esi
  130. pslldq $12,%xmm3
  131. paddd %xmm8,%xmm8
  132. movl %edx,%edi
  133. addl 8(%rsp),%ecx
  134. psrld $31,%xmm12
  135. xorl %eax,%ebp
  136. roll $5,%edx
  137. addl %esi,%ecx
  138. movdqa %xmm3,%xmm13
  139. andl %ebp,%edi
  140. xorl %eax,%ebp
  141. psrld $30,%xmm3
  142. addl %edx,%ecx
  143. rorl $7,%edx
  144. por %xmm12,%xmm8
  145. xorl %eax,%edi
  146. movl %ecx,%esi
  147. addl 12(%rsp),%ebx
  148. movups -48(%r15),%xmm1
  149. .byte 102,15,56,220,208
  150. pslld $2,%xmm13
  151. pxor %xmm3,%xmm8
  152. xorl %ebp,%edx
  153. movdqa 0(%r11),%xmm3
  154. roll $5,%ecx
  155. addl %edi,%ebx
  156. andl %edx,%esi
  157. pxor %xmm13,%xmm8
  158. xorl %ebp,%edx
  159. addl %ecx,%ebx
  160. rorl $7,%ecx
  161. pshufd $238,%xmm5,%xmm9
  162. xorl %ebp,%esi
  163. movdqa %xmm8,%xmm13
  164. paddd %xmm8,%xmm3
  165. movl %ebx,%edi
  166. addl 16(%rsp),%eax
  167. punpcklqdq %xmm6,%xmm9
  168. xorl %edx,%ecx
  169. roll $5,%ebx
  170. addl %esi,%eax
  171. psrldq $4,%xmm13
  172. andl %ecx,%edi
  173. xorl %edx,%ecx
  174. pxor %xmm5,%xmm9
  175. addl %ebx,%eax
  176. rorl $7,%ebx
  177. movups -32(%r15),%xmm0
  178. .byte 102,15,56,220,209
  179. pxor %xmm7,%xmm13
  180. xorl %edx,%edi
  181. movl %eax,%esi
  182. addl 20(%rsp),%ebp
  183. pxor %xmm13,%xmm9
  184. xorl %ecx,%ebx
  185. roll $5,%eax
  186. movdqa %xmm3,0(%rsp)
  187. addl %edi,%ebp
  188. andl %ebx,%esi
  189. movdqa %xmm9,%xmm12
  190. xorl %ecx,%ebx
  191. addl %eax,%ebp
  192. rorl $7,%eax
  193. movdqa %xmm9,%xmm13
  194. xorl %ecx,%esi
  195. pslldq $12,%xmm12
  196. paddd %xmm9,%xmm9
  197. movl %ebp,%edi
  198. addl 24(%rsp),%edx
  199. psrld $31,%xmm13
  200. xorl %ebx,%eax
  201. roll $5,%ebp
  202. addl %esi,%edx
  203. movups -16(%r15),%xmm1
  204. .byte 102,15,56,220,208
  205. movdqa %xmm12,%xmm3
  206. andl %eax,%edi
  207. xorl %ebx,%eax
  208. psrld $30,%xmm12
  209. addl %ebp,%edx
  210. rorl $7,%ebp
  211. por %xmm13,%xmm9
  212. xorl %ebx,%edi
  213. movl %edx,%esi
  214. addl 28(%rsp),%ecx
  215. pslld $2,%xmm3
  216. pxor %xmm12,%xmm9
  217. xorl %eax,%ebp
  218. movdqa 16(%r11),%xmm12
  219. roll $5,%edx
  220. addl %edi,%ecx
  221. andl %ebp,%esi
  222. pxor %xmm3,%xmm9
  223. xorl %eax,%ebp
  224. addl %edx,%ecx
  225. rorl $7,%edx
  226. pshufd $238,%xmm6,%xmm10
  227. xorl %eax,%esi
  228. movdqa %xmm9,%xmm3
  229. paddd %xmm9,%xmm12
  230. movl %ecx,%edi
  231. addl 32(%rsp),%ebx
  232. movups 0(%r15),%xmm0
  233. .byte 102,15,56,220,209
  234. punpcklqdq %xmm7,%xmm10
  235. xorl %ebp,%edx
  236. roll $5,%ecx
  237. addl %esi,%ebx
  238. psrldq $4,%xmm3
  239. andl %edx,%edi
  240. xorl %ebp,%edx
  241. pxor %xmm6,%xmm10
  242. addl %ecx,%ebx
  243. rorl $7,%ecx
  244. pxor %xmm8,%xmm3
  245. xorl %ebp,%edi
  246. movl %ebx,%esi
  247. addl 36(%rsp),%eax
  248. pxor %xmm3,%xmm10
  249. xorl %edx,%ecx
  250. roll $5,%ebx
  251. movdqa %xmm12,16(%rsp)
  252. addl %edi,%eax
  253. andl %ecx,%esi
  254. movdqa %xmm10,%xmm13
  255. xorl %edx,%ecx
  256. addl %ebx,%eax
  257. rorl $7,%ebx
  258. movups 16(%r15),%xmm1
  259. .byte 102,15,56,220,208
  260. movdqa %xmm10,%xmm3
  261. xorl %edx,%esi
  262. pslldq $12,%xmm13
  263. paddd %xmm10,%xmm10
  264. movl %eax,%edi
  265. addl 40(%rsp),%ebp
  266. psrld $31,%xmm3
  267. xorl %ecx,%ebx
  268. roll $5,%eax
  269. addl %esi,%ebp
  270. movdqa %xmm13,%xmm12
  271. andl %ebx,%edi
  272. xorl %ecx,%ebx
  273. psrld $30,%xmm13
  274. addl %eax,%ebp
  275. rorl $7,%eax
  276. por %xmm3,%xmm10
  277. xorl %ecx,%edi
  278. movl %ebp,%esi
  279. addl 44(%rsp),%edx
  280. pslld $2,%xmm12
  281. pxor %xmm13,%xmm10
  282. xorl %ebx,%eax
  283. movdqa 16(%r11),%xmm13
  284. roll $5,%ebp
  285. addl %edi,%edx
  286. movups 32(%r15),%xmm0
  287. .byte 102,15,56,220,209
  288. andl %eax,%esi
  289. pxor %xmm12,%xmm10
  290. xorl %ebx,%eax
  291. addl %ebp,%edx
  292. rorl $7,%ebp
  293. pshufd $238,%xmm7,%xmm11
  294. xorl %ebx,%esi
  295. movdqa %xmm10,%xmm12
  296. paddd %xmm10,%xmm13
  297. movl %edx,%edi
  298. addl 48(%rsp),%ecx
  299. punpcklqdq %xmm8,%xmm11
  300. xorl %eax,%ebp
  301. roll $5,%edx
  302. addl %esi,%ecx
  303. psrldq $4,%xmm12
  304. andl %ebp,%edi
  305. xorl %eax,%ebp
  306. pxor %xmm7,%xmm11
  307. addl %edx,%ecx
  308. rorl $7,%edx
  309. pxor %xmm9,%xmm12
  310. xorl %eax,%edi
  311. movl %ecx,%esi
  312. addl 52(%rsp),%ebx
  313. movups 48(%r15),%xmm1
  314. .byte 102,15,56,220,208
  315. pxor %xmm12,%xmm11
  316. xorl %ebp,%edx
  317. roll $5,%ecx
  318. movdqa %xmm13,32(%rsp)
  319. addl %edi,%ebx
  320. andl %edx,%esi
  321. movdqa %xmm11,%xmm3
  322. xorl %ebp,%edx
  323. addl %ecx,%ebx
  324. rorl $7,%ecx
  325. movdqa %xmm11,%xmm12
  326. xorl %ebp,%esi
  327. pslldq $12,%xmm3
  328. paddd %xmm11,%xmm11
  329. movl %ebx,%edi
  330. addl 56(%rsp),%eax
  331. psrld $31,%xmm12
  332. xorl %edx,%ecx
  333. roll $5,%ebx
  334. addl %esi,%eax
  335. movdqa %xmm3,%xmm13
  336. andl %ecx,%edi
  337. xorl %edx,%ecx
  338. psrld $30,%xmm3
  339. addl %ebx,%eax
  340. rorl $7,%ebx
  341. cmpl $11,%r8d
  342. jb .Laesenclast1
  343. movups 64(%r15),%xmm0
  344. .byte 102,15,56,220,209
  345. movups 80(%r15),%xmm1
  346. .byte 102,15,56,220,208
  347. je .Laesenclast1
  348. movups 96(%r15),%xmm0
  349. .byte 102,15,56,220,209
  350. movups 112(%r15),%xmm1
  351. .byte 102,15,56,220,208
  352. .Laesenclast1:
  353. .byte 102,15,56,221,209
  354. movups 16-112(%r15),%xmm0
  355. por %xmm12,%xmm11
  356. xorl %edx,%edi
  357. movl %eax,%esi
  358. addl 60(%rsp),%ebp
  359. pslld $2,%xmm13
  360. pxor %xmm3,%xmm11
  361. xorl %ecx,%ebx
  362. movdqa 16(%r11),%xmm3
  363. roll $5,%eax
  364. addl %edi,%ebp
  365. andl %ebx,%esi
  366. pxor %xmm13,%xmm11
  367. pshufd $238,%xmm10,%xmm13
  368. xorl %ecx,%ebx
  369. addl %eax,%ebp
  370. rorl $7,%eax
  371. pxor %xmm8,%xmm4
  372. xorl %ecx,%esi
  373. movl %ebp,%edi
  374. addl 0(%rsp),%edx
  375. punpcklqdq %xmm11,%xmm13
  376. xorl %ebx,%eax
  377. roll $5,%ebp
  378. pxor %xmm5,%xmm4
  379. addl %esi,%edx
  380. movups 16(%r12),%xmm14
  381. xorps %xmm15,%xmm14
  382. movups %xmm2,0(%r12,%r13,1)
  383. xorps %xmm14,%xmm2
  384. movups -80(%r15),%xmm1
  385. .byte 102,15,56,220,208
  386. andl %eax,%edi
  387. movdqa %xmm3,%xmm12
  388. xorl %ebx,%eax
  389. paddd %xmm11,%xmm3
  390. addl %ebp,%edx
  391. pxor %xmm13,%xmm4
  392. rorl $7,%ebp
  393. xorl %ebx,%edi
  394. movl %edx,%esi
  395. addl 4(%rsp),%ecx
  396. movdqa %xmm4,%xmm13
  397. xorl %eax,%ebp
  398. roll $5,%edx
  399. movdqa %xmm3,48(%rsp)
  400. addl %edi,%ecx
  401. andl %ebp,%esi
  402. xorl %eax,%ebp
  403. pslld $2,%xmm4
  404. addl %edx,%ecx
  405. rorl $7,%edx
  406. psrld $30,%xmm13
  407. xorl %eax,%esi
  408. movl %ecx,%edi
  409. addl 8(%rsp),%ebx
  410. movups -64(%r15),%xmm0
  411. .byte 102,15,56,220,209
  412. por %xmm13,%xmm4
  413. xorl %ebp,%edx
  414. roll $5,%ecx
  415. pshufd $238,%xmm11,%xmm3
  416. addl %esi,%ebx
  417. andl %edx,%edi
  418. xorl %ebp,%edx
  419. addl %ecx,%ebx
  420. addl 12(%rsp),%eax
  421. xorl %ebp,%edi
  422. movl %ebx,%esi
  423. roll $5,%ebx
  424. addl %edi,%eax
  425. xorl %edx,%esi
  426. rorl $7,%ecx
  427. addl %ebx,%eax
  428. pxor %xmm9,%xmm5
  429. addl 16(%rsp),%ebp
  430. movups -48(%r15),%xmm1
  431. .byte 102,15,56,220,208
  432. xorl %ecx,%esi
  433. punpcklqdq %xmm4,%xmm3
  434. movl %eax,%edi
  435. roll $5,%eax
  436. pxor %xmm6,%xmm5
  437. addl %esi,%ebp
  438. xorl %ecx,%edi
  439. movdqa %xmm12,%xmm13
  440. rorl $7,%ebx
  441. paddd %xmm4,%xmm12
  442. addl %eax,%ebp
  443. pxor %xmm3,%xmm5
  444. addl 20(%rsp),%edx
  445. xorl %ebx,%edi
  446. movl %ebp,%esi
  447. roll $5,%ebp
  448. movdqa %xmm5,%xmm3
  449. addl %edi,%edx
  450. xorl %ebx,%esi
  451. movdqa %xmm12,0(%rsp)
  452. rorl $7,%eax
  453. addl %ebp,%edx
  454. addl 24(%rsp),%ecx
  455. pslld $2,%xmm5
  456. xorl %eax,%esi
  457. movl %edx,%edi
  458. psrld $30,%xmm3
  459. roll $5,%edx
  460. addl %esi,%ecx
  461. movups -32(%r15),%xmm0
  462. .byte 102,15,56,220,209
  463. xorl %eax,%edi
  464. rorl $7,%ebp
  465. por %xmm3,%xmm5
  466. addl %edx,%ecx
  467. addl 28(%rsp),%ebx
  468. pshufd $238,%xmm4,%xmm12
  469. xorl %ebp,%edi
  470. movl %ecx,%esi
  471. roll $5,%ecx
  472. addl %edi,%ebx
  473. xorl %ebp,%esi
  474. rorl $7,%edx
  475. addl %ecx,%ebx
  476. pxor %xmm10,%xmm6
  477. addl 32(%rsp),%eax
  478. xorl %edx,%esi
  479. punpcklqdq %xmm5,%xmm12
  480. movl %ebx,%edi
  481. roll $5,%ebx
  482. pxor %xmm7,%xmm6
  483. addl %esi,%eax
  484. xorl %edx,%edi
  485. movdqa 32(%r11),%xmm3
  486. rorl $7,%ecx
  487. paddd %xmm5,%xmm13
  488. addl %ebx,%eax
  489. pxor %xmm12,%xmm6
  490. addl 36(%rsp),%ebp
  491. movups -16(%r15),%xmm1
  492. .byte 102,15,56,220,208
  493. xorl %ecx,%edi
  494. movl %eax,%esi
  495. roll $5,%eax
  496. movdqa %xmm6,%xmm12
  497. addl %edi,%ebp
  498. xorl %ecx,%esi
  499. movdqa %xmm13,16(%rsp)
  500. rorl $7,%ebx
  501. addl %eax,%ebp
  502. addl 40(%rsp),%edx
  503. pslld $2,%xmm6
  504. xorl %ebx,%esi
  505. movl %ebp,%edi
  506. psrld $30,%xmm12
  507. roll $5,%ebp
  508. addl %esi,%edx
  509. xorl %ebx,%edi
  510. rorl $7,%eax
  511. por %xmm12,%xmm6
  512. addl %ebp,%edx
  513. addl 44(%rsp),%ecx
  514. pshufd $238,%xmm5,%xmm13
  515. xorl %eax,%edi
  516. movl %edx,%esi
  517. roll $5,%edx
  518. addl %edi,%ecx
  519. movups 0(%r15),%xmm0
  520. .byte 102,15,56,220,209
  521. xorl %eax,%esi
  522. rorl $7,%ebp
  523. addl %edx,%ecx
  524. pxor %xmm11,%xmm7
  525. addl 48(%rsp),%ebx
  526. xorl %ebp,%esi
  527. punpcklqdq %xmm6,%xmm13
  528. movl %ecx,%edi
  529. roll $5,%ecx
  530. pxor %xmm8,%xmm7
  531. addl %esi,%ebx
  532. xorl %ebp,%edi
  533. movdqa %xmm3,%xmm12
  534. rorl $7,%edx
  535. paddd %xmm6,%xmm3
  536. addl %ecx,%ebx
  537. pxor %xmm13,%xmm7
  538. addl 52(%rsp),%eax
  539. xorl %edx,%edi
  540. movl %ebx,%esi
  541. roll $5,%ebx
  542. movdqa %xmm7,%xmm13
  543. addl %edi,%eax
  544. xorl %edx,%esi
  545. movdqa %xmm3,32(%rsp)
  546. rorl $7,%ecx
  547. addl %ebx,%eax
  548. addl 56(%rsp),%ebp
  549. movups 16(%r15),%xmm1
  550. .byte 102,15,56,220,208
  551. pslld $2,%xmm7
  552. xorl %ecx,%esi
  553. movl %eax,%edi
  554. psrld $30,%xmm13
  555. roll $5,%eax
  556. addl %esi,%ebp
  557. xorl %ecx,%edi
  558. rorl $7,%ebx
  559. por %xmm13,%xmm7
  560. addl %eax,%ebp
  561. addl 60(%rsp),%edx
  562. pshufd $238,%xmm6,%xmm3
  563. xorl %ebx,%edi
  564. movl %ebp,%esi
  565. roll $5,%ebp
  566. addl %edi,%edx
  567. xorl %ebx,%esi
  568. rorl $7,%eax
  569. addl %ebp,%edx
  570. pxor %xmm4,%xmm8
  571. addl 0(%rsp),%ecx
  572. xorl %eax,%esi
  573. punpcklqdq %xmm7,%xmm3
  574. movl %edx,%edi
  575. roll $5,%edx
  576. pxor %xmm9,%xmm8
  577. addl %esi,%ecx
  578. movups 32(%r15),%xmm0
  579. .byte 102,15,56,220,209
  580. xorl %eax,%edi
  581. movdqa %xmm12,%xmm13
  582. rorl $7,%ebp
  583. paddd %xmm7,%xmm12
  584. addl %edx,%ecx
  585. pxor %xmm3,%xmm8
  586. addl 4(%rsp),%ebx
  587. xorl %ebp,%edi
  588. movl %ecx,%esi
  589. roll $5,%ecx
  590. movdqa %xmm8,%xmm3
  591. addl %edi,%ebx
  592. xorl %ebp,%esi
  593. movdqa %xmm12,48(%rsp)
  594. rorl $7,%edx
  595. addl %ecx,%ebx
  596. addl 8(%rsp),%eax
  597. pslld $2,%xmm8
  598. xorl %edx,%esi
  599. movl %ebx,%edi
  600. psrld $30,%xmm3
  601. roll $5,%ebx
  602. addl %esi,%eax
  603. xorl %edx,%edi
  604. rorl $7,%ecx
  605. por %xmm3,%xmm8
  606. addl %ebx,%eax
  607. addl 12(%rsp),%ebp
  608. movups 48(%r15),%xmm1
  609. .byte 102,15,56,220,208
  610. pshufd $238,%xmm7,%xmm12
  611. xorl %ecx,%edi
  612. movl %eax,%esi
  613. roll $5,%eax
  614. addl %edi,%ebp
  615. xorl %ecx,%esi
  616. rorl $7,%ebx
  617. addl %eax,%ebp
  618. pxor %xmm5,%xmm9
  619. addl 16(%rsp),%edx
  620. xorl %ebx,%esi
  621. punpcklqdq %xmm8,%xmm12
  622. movl %ebp,%edi
  623. roll $5,%ebp
  624. pxor %xmm10,%xmm9
  625. addl %esi,%edx
  626. xorl %ebx,%edi
  627. movdqa %xmm13,%xmm3
  628. rorl $7,%eax
  629. paddd %xmm8,%xmm13
  630. addl %ebp,%edx
  631. pxor %xmm12,%xmm9
  632. addl 20(%rsp),%ecx
  633. xorl %eax,%edi
  634. movl %edx,%esi
  635. roll $5,%edx
  636. movdqa %xmm9,%xmm12
  637. addl %edi,%ecx
  638. cmpl $11,%r8d
  639. jb .Laesenclast2
  640. movups 64(%r15),%xmm0
  641. .byte 102,15,56,220,209
  642. movups 80(%r15),%xmm1
  643. .byte 102,15,56,220,208
  644. je .Laesenclast2
  645. movups 96(%r15),%xmm0
  646. .byte 102,15,56,220,209
  647. movups 112(%r15),%xmm1
  648. .byte 102,15,56,220,208
  649. .Laesenclast2:
  650. .byte 102,15,56,221,209
  651. movups 16-112(%r15),%xmm0
  652. xorl %eax,%esi
  653. movdqa %xmm13,0(%rsp)
  654. rorl $7,%ebp
  655. addl %edx,%ecx
  656. addl 24(%rsp),%ebx
  657. pslld $2,%xmm9
  658. xorl %ebp,%esi
  659. movl %ecx,%edi
  660. psrld $30,%xmm12
  661. roll $5,%ecx
  662. addl %esi,%ebx
  663. xorl %ebp,%edi
  664. rorl $7,%edx
  665. por %xmm12,%xmm9
  666. addl %ecx,%ebx
  667. addl 28(%rsp),%eax
  668. pshufd $238,%xmm8,%xmm13
  669. rorl $7,%ecx
  670. movl %ebx,%esi
  671. xorl %edx,%edi
  672. roll $5,%ebx
  673. addl %edi,%eax
  674. xorl %ecx,%esi
  675. xorl %edx,%ecx
  676. addl %ebx,%eax
  677. pxor %xmm6,%xmm10
  678. addl 32(%rsp),%ebp
  679. movups 32(%r12),%xmm14
  680. xorps %xmm15,%xmm14
  681. movups %xmm2,16(%r13,%r12,1)
  682. xorps %xmm14,%xmm2
  683. movups -80(%r15),%xmm1
  684. .byte 102,15,56,220,208
  685. andl %ecx,%esi
  686. xorl %edx,%ecx
  687. rorl $7,%ebx
  688. punpcklqdq %xmm9,%xmm13
  689. movl %eax,%edi
  690. xorl %ecx,%esi
  691. pxor %xmm11,%xmm10
  692. roll $5,%eax
  693. addl %esi,%ebp
  694. movdqa %xmm3,%xmm12
  695. xorl %ebx,%edi
  696. paddd %xmm9,%xmm3
  697. xorl %ecx,%ebx
  698. pxor %xmm13,%xmm10
  699. addl %eax,%ebp
  700. addl 36(%rsp),%edx
  701. andl %ebx,%edi
  702. xorl %ecx,%ebx
  703. rorl $7,%eax
  704. movdqa %xmm10,%xmm13
  705. movl %ebp,%esi
  706. xorl %ebx,%edi
  707. movdqa %xmm3,16(%rsp)
  708. roll $5,%ebp
  709. addl %edi,%edx
  710. movups -64(%r15),%xmm0
  711. .byte 102,15,56,220,209
  712. xorl %eax,%esi
  713. pslld $2,%xmm10
  714. xorl %ebx,%eax
  715. addl %ebp,%edx
  716. psrld $30,%xmm13
  717. addl 40(%rsp),%ecx
  718. andl %eax,%esi
  719. xorl %ebx,%eax
  720. por %xmm13,%xmm10
  721. rorl $7,%ebp
  722. movl %edx,%edi
  723. xorl %eax,%esi
  724. roll $5,%edx
  725. pshufd $238,%xmm9,%xmm3
  726. addl %esi,%ecx
  727. xorl %ebp,%edi
  728. xorl %eax,%ebp
  729. addl %edx,%ecx
  730. addl 44(%rsp),%ebx
  731. andl %ebp,%edi
  732. xorl %eax,%ebp
  733. rorl $7,%edx
  734. movups -48(%r15),%xmm1
  735. .byte 102,15,56,220,208
  736. movl %ecx,%esi
  737. xorl %ebp,%edi
  738. roll $5,%ecx
  739. addl %edi,%ebx
  740. xorl %edx,%esi
  741. xorl %ebp,%edx
  742. addl %ecx,%ebx
  743. pxor %xmm7,%xmm11
  744. addl 48(%rsp),%eax
  745. andl %edx,%esi
  746. xorl %ebp,%edx
  747. rorl $7,%ecx
  748. punpcklqdq %xmm10,%xmm3
  749. movl %ebx,%edi
  750. xorl %edx,%esi
  751. pxor %xmm4,%xmm11
  752. roll $5,%ebx
  753. addl %esi,%eax
  754. movdqa 48(%r11),%xmm13
  755. xorl %ecx,%edi
  756. paddd %xmm10,%xmm12
  757. xorl %edx,%ecx
  758. pxor %xmm3,%xmm11
  759. addl %ebx,%eax
  760. addl 52(%rsp),%ebp
  761. movups -32(%r15),%xmm0
  762. .byte 102,15,56,220,209
  763. andl %ecx,%edi
  764. xorl %edx,%ecx
  765. rorl $7,%ebx
  766. movdqa %xmm11,%xmm3
  767. movl %eax,%esi
  768. xorl %ecx,%edi
  769. movdqa %xmm12,32(%rsp)
  770. roll $5,%eax
  771. addl %edi,%ebp
  772. xorl %ebx,%esi
  773. pslld $2,%xmm11
  774. xorl %ecx,%ebx
  775. addl %eax,%ebp
  776. psrld $30,%xmm3
  777. addl 56(%rsp),%edx
  778. andl %ebx,%esi
  779. xorl %ecx,%ebx
  780. por %xmm3,%xmm11
  781. rorl $7,%eax
  782. movl %ebp,%edi
  783. xorl %ebx,%esi
  784. roll $5,%ebp
  785. pshufd $238,%xmm10,%xmm12
  786. addl %esi,%edx
  787. movups -16(%r15),%xmm1
  788. .byte 102,15,56,220,208
  789. xorl %eax,%edi
  790. xorl %ebx,%eax
  791. addl %ebp,%edx
  792. addl 60(%rsp),%ecx
  793. andl %eax,%edi
  794. xorl %ebx,%eax
  795. rorl $7,%ebp
  796. movl %edx,%esi
  797. xorl %eax,%edi
  798. roll $5,%edx
  799. addl %edi,%ecx
  800. xorl %ebp,%esi
  801. xorl %eax,%ebp
  802. addl %edx,%ecx
  803. pxor %xmm8,%xmm4
  804. addl 0(%rsp),%ebx
  805. andl %ebp,%esi
  806. xorl %eax,%ebp
  807. rorl $7,%edx
  808. movups 0(%r15),%xmm0
  809. .byte 102,15,56,220,209
  810. punpcklqdq %xmm11,%xmm12
  811. movl %ecx,%edi
  812. xorl %ebp,%esi
  813. pxor %xmm5,%xmm4
  814. roll $5,%ecx
  815. addl %esi,%ebx
  816. movdqa %xmm13,%xmm3
  817. xorl %edx,%edi
  818. paddd %xmm11,%xmm13
  819. xorl %ebp,%edx
  820. pxor %xmm12,%xmm4
  821. addl %ecx,%ebx
  822. addl 4(%rsp),%eax
  823. andl %edx,%edi
  824. xorl %ebp,%edx
  825. rorl $7,%ecx
  826. movdqa %xmm4,%xmm12
  827. movl %ebx,%esi
  828. xorl %edx,%edi
  829. movdqa %xmm13,48(%rsp)
  830. roll $5,%ebx
  831. addl %edi,%eax
  832. xorl %ecx,%esi
  833. pslld $2,%xmm4
  834. xorl %edx,%ecx
  835. addl %ebx,%eax
  836. psrld $30,%xmm12
  837. addl 8(%rsp),%ebp
  838. movups 16(%r15),%xmm1
  839. .byte 102,15,56,220,208
  840. andl %ecx,%esi
  841. xorl %edx,%ecx
  842. por %xmm12,%xmm4
  843. rorl $7,%ebx
  844. movl %eax,%edi
  845. xorl %ecx,%esi
  846. roll $5,%eax
  847. pshufd $238,%xmm11,%xmm13
  848. addl %esi,%ebp
  849. xorl %ebx,%edi
  850. xorl %ecx,%ebx
  851. addl %eax,%ebp
  852. addl 12(%rsp),%edx
  853. andl %ebx,%edi
  854. xorl %ecx,%ebx
  855. rorl $7,%eax
  856. movl %ebp,%esi
  857. xorl %ebx,%edi
  858. roll $5,%ebp
  859. addl %edi,%edx
  860. movups 32(%r15),%xmm0
  861. .byte 102,15,56,220,209
  862. xorl %eax,%esi
  863. xorl %ebx,%eax
  864. addl %ebp,%edx
  865. pxor %xmm9,%xmm5
  866. addl 16(%rsp),%ecx
  867. andl %eax,%esi
  868. xorl %ebx,%eax
  869. rorl $7,%ebp
  870. punpcklqdq %xmm4,%xmm13
  871. movl %edx,%edi
  872. xorl %eax,%esi
  873. pxor %xmm6,%xmm5
  874. roll $5,%edx
  875. addl %esi,%ecx
  876. movdqa %xmm3,%xmm12
  877. xorl %ebp,%edi
  878. paddd %xmm4,%xmm3
  879. xorl %eax,%ebp
  880. pxor %xmm13,%xmm5
  881. addl %edx,%ecx
  882. addl 20(%rsp),%ebx
  883. andl %ebp,%edi
  884. xorl %eax,%ebp
  885. rorl $7,%edx
  886. movups 48(%r15),%xmm1
  887. .byte 102,15,56,220,208
  888. movdqa %xmm5,%xmm13
  889. movl %ecx,%esi
  890. xorl %ebp,%edi
  891. movdqa %xmm3,0(%rsp)
  892. roll $5,%ecx
  893. addl %edi,%ebx
  894. xorl %edx,%esi
  895. pslld $2,%xmm5
  896. xorl %ebp,%edx
  897. addl %ecx,%ebx
  898. psrld $30,%xmm13
  899. addl 24(%rsp),%eax
  900. andl %edx,%esi
  901. xorl %ebp,%edx
  902. por %xmm13,%xmm5
  903. rorl $7,%ecx
  904. movl %ebx,%edi
  905. xorl %edx,%esi
  906. roll $5,%ebx
  907. pshufd $238,%xmm4,%xmm3
  908. addl %esi,%eax
  909. xorl %ecx,%edi
  910. xorl %edx,%ecx
  911. addl %ebx,%eax
  912. addl 28(%rsp),%ebp
  913. cmpl $11,%r8d
  914. jb .Laesenclast3
  915. movups 64(%r15),%xmm0
  916. .byte 102,15,56,220,209
  917. movups 80(%r15),%xmm1
  918. .byte 102,15,56,220,208
  919. je .Laesenclast3
  920. movups 96(%r15),%xmm0
  921. .byte 102,15,56,220,209
  922. movups 112(%r15),%xmm1
  923. .byte 102,15,56,220,208
  924. .Laesenclast3:
  925. .byte 102,15,56,221,209
  926. movups 16-112(%r15),%xmm0
  927. andl %ecx,%edi
  928. xorl %edx,%ecx
  929. rorl $7,%ebx
  930. movl %eax,%esi
  931. xorl %ecx,%edi
  932. roll $5,%eax
  933. addl %edi,%ebp
  934. xorl %ebx,%esi
  935. xorl %ecx,%ebx
  936. addl %eax,%ebp
  937. pxor %xmm10,%xmm6
  938. addl 32(%rsp),%edx
  939. andl %ebx,%esi
  940. xorl %ecx,%ebx
  941. rorl $7,%eax
  942. punpcklqdq %xmm5,%xmm3
  943. movl %ebp,%edi
  944. xorl %ebx,%esi
  945. pxor %xmm7,%xmm6
  946. roll $5,%ebp
  947. addl %esi,%edx
  948. movups 48(%r12),%xmm14
  949. xorps %xmm15,%xmm14
  950. movups %xmm2,32(%r13,%r12,1)
  951. xorps %xmm14,%xmm2
  952. movups -80(%r15),%xmm1
  953. .byte 102,15,56,220,208
  954. movdqa %xmm12,%xmm13
  955. xorl %eax,%edi
  956. paddd %xmm5,%xmm12
  957. xorl %ebx,%eax
  958. pxor %xmm3,%xmm6
  959. addl %ebp,%edx
  960. addl 36(%rsp),%ecx
  961. andl %eax,%edi
  962. xorl %ebx,%eax
  963. rorl $7,%ebp
  964. movdqa %xmm6,%xmm3
  965. movl %edx,%esi
  966. xorl %eax,%edi
  967. movdqa %xmm12,16(%rsp)
  968. roll $5,%edx
  969. addl %edi,%ecx
  970. xorl %ebp,%esi
  971. pslld $2,%xmm6
  972. xorl %eax,%ebp
  973. addl %edx,%ecx
  974. psrld $30,%xmm3
  975. addl 40(%rsp),%ebx
  976. andl %ebp,%esi
  977. xorl %eax,%ebp
  978. por %xmm3,%xmm6
  979. rorl $7,%edx
  980. movups -64(%r15),%xmm0
  981. .byte 102,15,56,220,209
  982. movl %ecx,%edi
  983. xorl %ebp,%esi
  984. roll $5,%ecx
  985. pshufd $238,%xmm5,%xmm12
  986. addl %esi,%ebx
  987. xorl %edx,%edi
  988. xorl %ebp,%edx
  989. addl %ecx,%ebx
  990. addl 44(%rsp),%eax
  991. andl %edx,%edi
  992. xorl %ebp,%edx
  993. rorl $7,%ecx
  994. movl %ebx,%esi
  995. xorl %edx,%edi
  996. roll $5,%ebx
  997. addl %edi,%eax
  998. xorl %edx,%esi
  999. addl %ebx,%eax
  1000. pxor %xmm11,%xmm7
  1001. addl 48(%rsp),%ebp
  1002. movups -48(%r15),%xmm1
  1003. .byte 102,15,56,220,208
  1004. xorl %ecx,%esi
  1005. punpcklqdq %xmm6,%xmm12
  1006. movl %eax,%edi
  1007. roll $5,%eax
  1008. pxor %xmm8,%xmm7
  1009. addl %esi,%ebp
  1010. xorl %ecx,%edi
  1011. movdqa %xmm13,%xmm3
  1012. rorl $7,%ebx
  1013. paddd %xmm6,%xmm13
  1014. addl %eax,%ebp
  1015. pxor %xmm12,%xmm7
  1016. addl 52(%rsp),%edx
  1017. xorl %ebx,%edi
  1018. movl %ebp,%esi
  1019. roll $5,%ebp
  1020. movdqa %xmm7,%xmm12
  1021. addl %edi,%edx
  1022. xorl %ebx,%esi
  1023. movdqa %xmm13,32(%rsp)
  1024. rorl $7,%eax
  1025. addl %ebp,%edx
  1026. addl 56(%rsp),%ecx
  1027. pslld $2,%xmm7
  1028. xorl %eax,%esi
  1029. movl %edx,%edi
  1030. psrld $30,%xmm12
  1031. roll $5,%edx
  1032. addl %esi,%ecx
  1033. movups -32(%r15),%xmm0
  1034. .byte 102,15,56,220,209
  1035. xorl %eax,%edi
  1036. rorl $7,%ebp
  1037. por %xmm12,%xmm7
  1038. addl %edx,%ecx
  1039. addl 60(%rsp),%ebx
  1040. xorl %ebp,%edi
  1041. movl %ecx,%esi
  1042. roll $5,%ecx
  1043. addl %edi,%ebx
  1044. xorl %ebp,%esi
  1045. rorl $7,%edx
  1046. addl %ecx,%ebx
  1047. addl 0(%rsp),%eax
  1048. xorl %edx,%esi
  1049. movl %ebx,%edi
  1050. roll $5,%ebx
  1051. paddd %xmm7,%xmm3
  1052. addl %esi,%eax
  1053. xorl %edx,%edi
  1054. movdqa %xmm3,48(%rsp)
  1055. rorl $7,%ecx
  1056. addl %ebx,%eax
  1057. addl 4(%rsp),%ebp
  1058. movups -16(%r15),%xmm1
  1059. .byte 102,15,56,220,208
  1060. xorl %ecx,%edi
  1061. movl %eax,%esi
  1062. roll $5,%eax
  1063. addl %edi,%ebp
  1064. xorl %ecx,%esi
  1065. rorl $7,%ebx
  1066. addl %eax,%ebp
  1067. addl 8(%rsp),%edx
  1068. xorl %ebx,%esi
  1069. movl %ebp,%edi
  1070. roll $5,%ebp
  1071. addl %esi,%edx
  1072. xorl %ebx,%edi
  1073. rorl $7,%eax
  1074. addl %ebp,%edx
  1075. addl 12(%rsp),%ecx
  1076. xorl %eax,%edi
  1077. movl %edx,%esi
  1078. roll $5,%edx
  1079. addl %edi,%ecx
  1080. movups 0(%r15),%xmm0
  1081. .byte 102,15,56,220,209
  1082. xorl %eax,%esi
  1083. rorl $7,%ebp
  1084. addl %edx,%ecx
  1085. cmpq %r14,%r10
  1086. je .Ldone_ssse3
  1087. movdqa 64(%r11),%xmm3
  1088. movdqa 0(%r11),%xmm13
  1089. movdqu 0(%r10),%xmm4
  1090. movdqu 16(%r10),%xmm5
  1091. movdqu 32(%r10),%xmm6
  1092. movdqu 48(%r10),%xmm7
  1093. .byte 102,15,56,0,227
  1094. addq $64,%r10
  1095. addl 16(%rsp),%ebx
  1096. xorl %ebp,%esi
  1097. movl %ecx,%edi
  1098. .byte 102,15,56,0,235
  1099. roll $5,%ecx
  1100. addl %esi,%ebx
  1101. xorl %ebp,%edi
  1102. rorl $7,%edx
  1103. paddd %xmm13,%xmm4
  1104. addl %ecx,%ebx
  1105. addl 20(%rsp),%eax
  1106. xorl %edx,%edi
  1107. movl %ebx,%esi
  1108. movdqa %xmm4,0(%rsp)
  1109. roll $5,%ebx
  1110. addl %edi,%eax
  1111. xorl %edx,%esi
  1112. rorl $7,%ecx
  1113. psubd %xmm13,%xmm4
  1114. addl %ebx,%eax
  1115. addl 24(%rsp),%ebp
  1116. movups 16(%r15),%xmm1
  1117. .byte 102,15,56,220,208
  1118. xorl %ecx,%esi
  1119. movl %eax,%edi
  1120. roll $5,%eax
  1121. addl %esi,%ebp
  1122. xorl %ecx,%edi
  1123. rorl $7,%ebx
  1124. addl %eax,%ebp
  1125. addl 28(%rsp),%edx
  1126. xorl %ebx,%edi
  1127. movl %ebp,%esi
  1128. roll $5,%ebp
  1129. addl %edi,%edx
  1130. xorl %ebx,%esi
  1131. rorl $7,%eax
  1132. addl %ebp,%edx
  1133. addl 32(%rsp),%ecx
  1134. xorl %eax,%esi
  1135. movl %edx,%edi
  1136. .byte 102,15,56,0,243
  1137. roll $5,%edx
  1138. addl %esi,%ecx
  1139. movups 32(%r15),%xmm0
  1140. .byte 102,15,56,220,209
  1141. xorl %eax,%edi
  1142. rorl $7,%ebp
  1143. paddd %xmm13,%xmm5
  1144. addl %edx,%ecx
  1145. addl 36(%rsp),%ebx
  1146. xorl %ebp,%edi
  1147. movl %ecx,%esi
  1148. movdqa %xmm5,16(%rsp)
  1149. roll $5,%ecx
  1150. addl %edi,%ebx
  1151. xorl %ebp,%esi
  1152. rorl $7,%edx
  1153. psubd %xmm13,%xmm5
  1154. addl %ecx,%ebx
  1155. addl 40(%rsp),%eax
  1156. xorl %edx,%esi
  1157. movl %ebx,%edi
  1158. roll $5,%ebx
  1159. addl %esi,%eax
  1160. xorl %edx,%edi
  1161. rorl $7,%ecx
  1162. addl %ebx,%eax
  1163. addl 44(%rsp),%ebp
  1164. movups 48(%r15),%xmm1
  1165. .byte 102,15,56,220,208
  1166. xorl %ecx,%edi
  1167. movl %eax,%esi
  1168. roll $5,%eax
  1169. addl %edi,%ebp
  1170. xorl %ecx,%esi
  1171. rorl $7,%ebx
  1172. addl %eax,%ebp
  1173. addl 48(%rsp),%edx
  1174. xorl %ebx,%esi
  1175. movl %ebp,%edi
  1176. .byte 102,15,56,0,251
  1177. roll $5,%ebp
  1178. addl %esi,%edx
  1179. xorl %ebx,%edi
  1180. rorl $7,%eax
  1181. paddd %xmm13,%xmm6
  1182. addl %ebp,%edx
  1183. addl 52(%rsp),%ecx
  1184. xorl %eax,%edi
  1185. movl %edx,%esi
  1186. movdqa %xmm6,32(%rsp)
  1187. roll $5,%edx
  1188. addl %edi,%ecx
  1189. cmpl $11,%r8d
  1190. jb .Laesenclast4
  1191. movups 64(%r15),%xmm0
  1192. .byte 102,15,56,220,209
  1193. movups 80(%r15),%xmm1
  1194. .byte 102,15,56,220,208
  1195. je .Laesenclast4
  1196. movups 96(%r15),%xmm0
  1197. .byte 102,15,56,220,209
  1198. movups 112(%r15),%xmm1
  1199. .byte 102,15,56,220,208
  1200. .Laesenclast4:
  1201. .byte 102,15,56,221,209
  1202. movups 16-112(%r15),%xmm0
  1203. xorl %eax,%esi
  1204. rorl $7,%ebp
  1205. psubd %xmm13,%xmm6
  1206. addl %edx,%ecx
  1207. addl 56(%rsp),%ebx
  1208. xorl %ebp,%esi
  1209. movl %ecx,%edi
  1210. roll $5,%ecx
  1211. addl %esi,%ebx
  1212. xorl %ebp,%edi
  1213. rorl $7,%edx
  1214. addl %ecx,%ebx
  1215. addl 60(%rsp),%eax
  1216. xorl %edx,%edi
  1217. movl %ebx,%esi
  1218. roll $5,%ebx
  1219. addl %edi,%eax
  1220. rorl $7,%ecx
  1221. addl %ebx,%eax
  1222. movups %xmm2,48(%r13,%r12,1)
  1223. leaq 64(%r12),%r12
  1224. addl 0(%r9),%eax
  1225. addl 4(%r9),%esi
  1226. addl 8(%r9),%ecx
  1227. addl 12(%r9),%edx
  1228. movl %eax,0(%r9)
  1229. addl 16(%r9),%ebp
  1230. movl %esi,4(%r9)
  1231. movl %esi,%ebx
  1232. movl %ecx,8(%r9)
  1233. movl %ecx,%edi
  1234. movl %edx,12(%r9)
  1235. xorl %edx,%edi
  1236. movl %ebp,16(%r9)
  1237. andl %edi,%esi
  1238. jmp .Loop_ssse3
  1239. .Ldone_ssse3:
  1240. addl 16(%rsp),%ebx
  1241. xorl %ebp,%esi
  1242. movl %ecx,%edi
  1243. roll $5,%ecx
  1244. addl %esi,%ebx
  1245. xorl %ebp,%edi
  1246. rorl $7,%edx
  1247. addl %ecx,%ebx
  1248. addl 20(%rsp),%eax
  1249. xorl %edx,%edi
  1250. movl %ebx,%esi
  1251. roll $5,%ebx
  1252. addl %edi,%eax
  1253. xorl %edx,%esi
  1254. rorl $7,%ecx
  1255. addl %ebx,%eax
  1256. addl 24(%rsp),%ebp
  1257. movups 16(%r15),%xmm1
  1258. .byte 102,15,56,220,208
  1259. xorl %ecx,%esi
  1260. movl %eax,%edi
  1261. roll $5,%eax
  1262. addl %esi,%ebp
  1263. xorl %ecx,%edi
  1264. rorl $7,%ebx
  1265. addl %eax,%ebp
  1266. addl 28(%rsp),%edx
  1267. xorl %ebx,%edi
  1268. movl %ebp,%esi
  1269. roll $5,%ebp
  1270. addl %edi,%edx
  1271. xorl %ebx,%esi
  1272. rorl $7,%eax
  1273. addl %ebp,%edx
  1274. addl 32(%rsp),%ecx
  1275. xorl %eax,%esi
  1276. movl %edx,%edi
  1277. roll $5,%edx
  1278. addl %esi,%ecx
  1279. movups 32(%r15),%xmm0
  1280. .byte 102,15,56,220,209
  1281. xorl %eax,%edi
  1282. rorl $7,%ebp
  1283. addl %edx,%ecx
  1284. addl 36(%rsp),%ebx
  1285. xorl %ebp,%edi
  1286. movl %ecx,%esi
  1287. roll $5,%ecx
  1288. addl %edi,%ebx
  1289. xorl %ebp,%esi
  1290. rorl $7,%edx
  1291. addl %ecx,%ebx
  1292. addl 40(%rsp),%eax
  1293. xorl %edx,%esi
  1294. movl %ebx,%edi
  1295. roll $5,%ebx
  1296. addl %esi,%eax
  1297. xorl %edx,%edi
  1298. rorl $7,%ecx
  1299. addl %ebx,%eax
  1300. addl 44(%rsp),%ebp
  1301. movups 48(%r15),%xmm1
  1302. .byte 102,15,56,220,208
  1303. xorl %ecx,%edi
  1304. movl %eax,%esi
  1305. roll $5,%eax
  1306. addl %edi,%ebp
  1307. xorl %ecx,%esi
  1308. rorl $7,%ebx
  1309. addl %eax,%ebp
  1310. addl 48(%rsp),%edx
  1311. xorl %ebx,%esi
  1312. movl %ebp,%edi
  1313. roll $5,%ebp
  1314. addl %esi,%edx
  1315. xorl %ebx,%edi
  1316. rorl $7,%eax
  1317. addl %ebp,%edx
  1318. addl 52(%rsp),%ecx
  1319. xorl %eax,%edi
  1320. movl %edx,%esi
  1321. roll $5,%edx
  1322. addl %edi,%ecx
  1323. cmpl $11,%r8d
  1324. jb .Laesenclast5
  1325. movups 64(%r15),%xmm0
  1326. .byte 102,15,56,220,209
  1327. movups 80(%r15),%xmm1
  1328. .byte 102,15,56,220,208
  1329. je .Laesenclast5
  1330. movups 96(%r15),%xmm0
  1331. .byte 102,15,56,220,209
  1332. movups 112(%r15),%xmm1
  1333. .byte 102,15,56,220,208
  1334. .Laesenclast5:
  1335. .byte 102,15,56,221,209
  1336. movups 16-112(%r15),%xmm0
  1337. xorl %eax,%esi
  1338. rorl $7,%ebp
  1339. addl %edx,%ecx
  1340. addl 56(%rsp),%ebx
  1341. xorl %ebp,%esi
  1342. movl %ecx,%edi
  1343. roll $5,%ecx
  1344. addl %esi,%ebx
  1345. xorl %ebp,%edi
  1346. rorl $7,%edx
  1347. addl %ecx,%ebx
  1348. addl 60(%rsp),%eax
  1349. xorl %edx,%edi
  1350. movl %ebx,%esi
  1351. roll $5,%ebx
  1352. addl %edi,%eax
  1353. rorl $7,%ecx
  1354. addl %ebx,%eax
  1355. movups %xmm2,48(%r13,%r12,1)
  1356. movq 88(%rsp),%r8
  1357. addl 0(%r9),%eax
  1358. addl 4(%r9),%esi
  1359. addl 8(%r9),%ecx
  1360. movl %eax,0(%r9)
  1361. addl 12(%r9),%edx
  1362. movl %esi,4(%r9)
  1363. addl 16(%r9),%ebp
  1364. movl %ecx,8(%r9)
  1365. movl %edx,12(%r9)
  1366. movl %ebp,16(%r9)
  1367. movups %xmm2,(%r8)
  1368. leaq 104(%rsp),%rsi
  1369. .cfi_def_cfa %rsi,56
  1370. movq 0(%rsi),%r15
  1371. .cfi_restore %r15
  1372. movq 8(%rsi),%r14
  1373. .cfi_restore %r14
  1374. movq 16(%rsi),%r13
  1375. .cfi_restore %r13
  1376. movq 24(%rsi),%r12
  1377. .cfi_restore %r12
  1378. movq 32(%rsi),%rbp
  1379. .cfi_restore %rbp
  1380. movq 40(%rsi),%rbx
  1381. .cfi_restore %rbx
  1382. leaq 48(%rsi),%rsp
  1383. .cfi_def_cfa %rsp,8
  1384. .Lepilogue_ssse3:
  1385. .byte 0xf3,0xc3
  1386. .cfi_endproc
  1387. .size aesni_cbc_sha1_enc_ssse3,.-aesni_cbc_sha1_enc_ssse3
  1388. .type aesni_cbc_sha1_enc_avx,@function
  1389. .align 32
  1390. aesni_cbc_sha1_enc_avx:
  1391. .cfi_startproc
  1392. movq 8(%rsp),%r10
  1393. pushq %rbx
  1394. .cfi_adjust_cfa_offset 8
  1395. .cfi_offset %rbx,-16
  1396. pushq %rbp
  1397. .cfi_adjust_cfa_offset 8
  1398. .cfi_offset %rbp,-24
  1399. pushq %r12
  1400. .cfi_adjust_cfa_offset 8
  1401. .cfi_offset %r12,-32
  1402. pushq %r13
  1403. .cfi_adjust_cfa_offset 8
  1404. .cfi_offset %r13,-40
  1405. pushq %r14
  1406. .cfi_adjust_cfa_offset 8
  1407. .cfi_offset %r14,-48
  1408. pushq %r15
  1409. .cfi_adjust_cfa_offset 8
  1410. .cfi_offset %r15,-56
  1411. leaq -104(%rsp),%rsp
  1412. .cfi_adjust_cfa_offset 104
  1413. vzeroall
  1414. movq %rdi,%r12
  1415. movq %rsi,%r13
  1416. movq %rdx,%r14
  1417. leaq 112(%rcx),%r15
  1418. vmovdqu (%r8),%xmm12
  1419. movq %r8,88(%rsp)
  1420. shlq $6,%r14
  1421. subq %r12,%r13
  1422. movl 240-112(%r15),%r8d
  1423. addq %r10,%r14
  1424. leaq K_XX_XX(%rip),%r11
  1425. movl 0(%r9),%eax
  1426. movl 4(%r9),%ebx
  1427. movl 8(%r9),%ecx
  1428. movl 12(%r9),%edx
  1429. movl %ebx,%esi
  1430. movl 16(%r9),%ebp
  1431. movl %ecx,%edi
  1432. xorl %edx,%edi
  1433. andl %edi,%esi
  1434. vmovdqa 64(%r11),%xmm6
  1435. vmovdqa 0(%r11),%xmm10
  1436. vmovdqu 0(%r10),%xmm0
  1437. vmovdqu 16(%r10),%xmm1
  1438. vmovdqu 32(%r10),%xmm2
  1439. vmovdqu 48(%r10),%xmm3
  1440. vpshufb %xmm6,%xmm0,%xmm0
  1441. addq $64,%r10
  1442. vpshufb %xmm6,%xmm1,%xmm1
  1443. vpshufb %xmm6,%xmm2,%xmm2
  1444. vpshufb %xmm6,%xmm3,%xmm3
  1445. vpaddd %xmm10,%xmm0,%xmm4
  1446. vpaddd %xmm10,%xmm1,%xmm5
  1447. vpaddd %xmm10,%xmm2,%xmm6
  1448. vmovdqa %xmm4,0(%rsp)
  1449. vmovdqa %xmm5,16(%rsp)
  1450. vmovdqa %xmm6,32(%rsp)
  1451. vmovups -112(%r15),%xmm15
  1452. vmovups 16-112(%r15),%xmm14
  1453. jmp .Loop_avx
  1454. .align 32
  1455. .Loop_avx:
  1456. shrdl $2,%ebx,%ebx
  1457. vmovdqu 0(%r12),%xmm13
  1458. vpxor %xmm15,%xmm13,%xmm13
  1459. vpxor %xmm13,%xmm12,%xmm12
  1460. vaesenc %xmm14,%xmm12,%xmm12
  1461. vmovups -80(%r15),%xmm15
  1462. xorl %edx,%esi
  1463. vpalignr $8,%xmm0,%xmm1,%xmm4
  1464. movl %eax,%edi
  1465. addl 0(%rsp),%ebp
  1466. vpaddd %xmm3,%xmm10,%xmm9
  1467. xorl %ecx,%ebx
  1468. shldl $5,%eax,%eax
  1469. vpsrldq $4,%xmm3,%xmm8
  1470. addl %esi,%ebp
  1471. andl %ebx,%edi
  1472. vpxor %xmm0,%xmm4,%xmm4
  1473. xorl %ecx,%ebx
  1474. addl %eax,%ebp
  1475. vpxor %xmm2,%xmm8,%xmm8
  1476. shrdl $7,%eax,%eax
  1477. xorl %ecx,%edi
  1478. movl %ebp,%esi
  1479. addl 4(%rsp),%edx
  1480. vpxor %xmm8,%xmm4,%xmm4
  1481. xorl %ebx,%eax
  1482. shldl $5,%ebp,%ebp
  1483. vmovdqa %xmm9,48(%rsp)
  1484. addl %edi,%edx
  1485. vaesenc %xmm15,%xmm12,%xmm12
  1486. vmovups -64(%r15),%xmm14
  1487. andl %eax,%esi
  1488. vpsrld $31,%xmm4,%xmm8
  1489. xorl %ebx,%eax
  1490. addl %ebp,%edx
  1491. shrdl $7,%ebp,%ebp
  1492. xorl %ebx,%esi
  1493. vpslldq $12,%xmm4,%xmm9
  1494. vpaddd %xmm4,%xmm4,%xmm4
  1495. movl %edx,%edi
  1496. addl 8(%rsp),%ecx
  1497. xorl %eax,%ebp
  1498. shldl $5,%edx,%edx
  1499. vpor %xmm8,%xmm4,%xmm4
  1500. vpsrld $30,%xmm9,%xmm8
  1501. addl %esi,%ecx
  1502. andl %ebp,%edi
  1503. xorl %eax,%ebp
  1504. addl %edx,%ecx
  1505. vpslld $2,%xmm9,%xmm9
  1506. vpxor %xmm8,%xmm4,%xmm4
  1507. shrdl $7,%edx,%edx
  1508. xorl %eax,%edi
  1509. movl %ecx,%esi
  1510. addl 12(%rsp),%ebx
  1511. vaesenc %xmm14,%xmm12,%xmm12
  1512. vmovups -48(%r15),%xmm15
  1513. vpxor %xmm9,%xmm4,%xmm4
  1514. xorl %ebp,%edx
  1515. shldl $5,%ecx,%ecx
  1516. addl %edi,%ebx
  1517. andl %edx,%esi
  1518. xorl %ebp,%edx
  1519. addl %ecx,%ebx
  1520. shrdl $7,%ecx,%ecx
  1521. xorl %ebp,%esi
  1522. vpalignr $8,%xmm1,%xmm2,%xmm5
  1523. movl %ebx,%edi
  1524. addl 16(%rsp),%eax
  1525. vpaddd %xmm4,%xmm10,%xmm9
  1526. xorl %edx,%ecx
  1527. shldl $5,%ebx,%ebx
  1528. vpsrldq $4,%xmm4,%xmm8
  1529. addl %esi,%eax
  1530. andl %ecx,%edi
  1531. vpxor %xmm1,%xmm5,%xmm5
  1532. xorl %edx,%ecx
  1533. addl %ebx,%eax
  1534. vpxor %xmm3,%xmm8,%xmm8
  1535. shrdl $7,%ebx,%ebx
  1536. vaesenc %xmm15,%xmm12,%xmm12
  1537. vmovups -32(%r15),%xmm14
  1538. xorl %edx,%edi
  1539. movl %eax,%esi
  1540. addl 20(%rsp),%ebp
  1541. vpxor %xmm8,%xmm5,%xmm5
  1542. xorl %ecx,%ebx
  1543. shldl $5,%eax,%eax
  1544. vmovdqa %xmm9,0(%rsp)
  1545. addl %edi,%ebp
  1546. andl %ebx,%esi
  1547. vpsrld $31,%xmm5,%xmm8
  1548. xorl %ecx,%ebx
  1549. addl %eax,%ebp
  1550. shrdl $7,%eax,%eax
  1551. xorl %ecx,%esi
  1552. vpslldq $12,%xmm5,%xmm9
  1553. vpaddd %xmm5,%xmm5,%xmm5
  1554. movl %ebp,%edi
  1555. addl 24(%rsp),%edx
  1556. xorl %ebx,%eax
  1557. shldl $5,%ebp,%ebp
  1558. vpor %xmm8,%xmm5,%xmm5
  1559. vpsrld $30,%xmm9,%xmm8
  1560. addl %esi,%edx
  1561. vaesenc %xmm14,%xmm12,%xmm12
  1562. vmovups -16(%r15),%xmm15
  1563. andl %eax,%edi
  1564. xorl %ebx,%eax
  1565. addl %ebp,%edx
  1566. vpslld $2,%xmm9,%xmm9
  1567. vpxor %xmm8,%xmm5,%xmm5
  1568. shrdl $7,%ebp,%ebp
  1569. xorl %ebx,%edi
  1570. movl %edx,%esi
  1571. addl 28(%rsp),%ecx
  1572. vpxor %xmm9,%xmm5,%xmm5
  1573. xorl %eax,%ebp
  1574. shldl $5,%edx,%edx
  1575. vmovdqa 16(%r11),%xmm10
  1576. addl %edi,%ecx
  1577. andl %ebp,%esi
  1578. xorl %eax,%ebp
  1579. addl %edx,%ecx
  1580. shrdl $7,%edx,%edx
  1581. xorl %eax,%esi
  1582. vpalignr $8,%xmm2,%xmm3,%xmm6
  1583. movl %ecx,%edi
  1584. addl 32(%rsp),%ebx
  1585. vaesenc %xmm15,%xmm12,%xmm12
  1586. vmovups 0(%r15),%xmm14
  1587. vpaddd %xmm5,%xmm10,%xmm9
  1588. xorl %ebp,%edx
  1589. shldl $5,%ecx,%ecx
  1590. vpsrldq $4,%xmm5,%xmm8
  1591. addl %esi,%ebx
  1592. andl %edx,%edi
  1593. vpxor %xmm2,%xmm6,%xmm6
  1594. xorl %ebp,%edx
  1595. addl %ecx,%ebx
  1596. vpxor %xmm4,%xmm8,%xmm8
  1597. shrdl $7,%ecx,%ecx
  1598. xorl %ebp,%edi
  1599. movl %ebx,%esi
  1600. addl 36(%rsp),%eax
  1601. vpxor %xmm8,%xmm6,%xmm6
  1602. xorl %edx,%ecx
  1603. shldl $5,%ebx,%ebx
  1604. vmovdqa %xmm9,16(%rsp)
  1605. addl %edi,%eax
  1606. andl %ecx,%esi
  1607. vpsrld $31,%xmm6,%xmm8
  1608. xorl %edx,%ecx
  1609. addl %ebx,%eax
  1610. shrdl $7,%ebx,%ebx
  1611. vaesenc %xmm14,%xmm12,%xmm12
  1612. vmovups 16(%r15),%xmm15
  1613. xorl %edx,%esi
  1614. vpslldq $12,%xmm6,%xmm9
  1615. vpaddd %xmm6,%xmm6,%xmm6
  1616. movl %eax,%edi
  1617. addl 40(%rsp),%ebp
  1618. xorl %ecx,%ebx
  1619. shldl $5,%eax,%eax
  1620. vpor %xmm8,%xmm6,%xmm6
  1621. vpsrld $30,%xmm9,%xmm8
  1622. addl %esi,%ebp
  1623. andl %ebx,%edi
  1624. xorl %ecx,%ebx
  1625. addl %eax,%ebp
  1626. vpslld $2,%xmm9,%xmm9
  1627. vpxor %xmm8,%xmm6,%xmm6
  1628. shrdl $7,%eax,%eax
  1629. xorl %ecx,%edi
  1630. movl %ebp,%esi
  1631. addl 44(%rsp),%edx
  1632. vpxor %xmm9,%xmm6,%xmm6
  1633. xorl %ebx,%eax
  1634. shldl $5,%ebp,%ebp
  1635. addl %edi,%edx
  1636. vaesenc %xmm15,%xmm12,%xmm12
  1637. vmovups 32(%r15),%xmm14
  1638. andl %eax,%esi
  1639. xorl %ebx,%eax
  1640. addl %ebp,%edx
  1641. shrdl $7,%ebp,%ebp
  1642. xorl %ebx,%esi
  1643. vpalignr $8,%xmm3,%xmm4,%xmm7
  1644. movl %edx,%edi
  1645. addl 48(%rsp),%ecx
  1646. vpaddd %xmm6,%xmm10,%xmm9
  1647. xorl %eax,%ebp
  1648. shldl $5,%edx,%edx
  1649. vpsrldq $4,%xmm6,%xmm8
  1650. addl %esi,%ecx
  1651. andl %ebp,%edi
  1652. vpxor %xmm3,%xmm7,%xmm7
  1653. xorl %eax,%ebp
  1654. addl %edx,%ecx
  1655. vpxor %xmm5,%xmm8,%xmm8
  1656. shrdl $7,%edx,%edx
  1657. xorl %eax,%edi
  1658. movl %ecx,%esi
  1659. addl 52(%rsp),%ebx
  1660. vaesenc %xmm14,%xmm12,%xmm12
  1661. vmovups 48(%r15),%xmm15
  1662. vpxor %xmm8,%xmm7,%xmm7
  1663. xorl %ebp,%edx
  1664. shldl $5,%ecx,%ecx
  1665. vmovdqa %xmm9,32(%rsp)
  1666. addl %edi,%ebx
  1667. andl %edx,%esi
  1668. vpsrld $31,%xmm7,%xmm8
  1669. xorl %ebp,%edx
  1670. addl %ecx,%ebx
  1671. shrdl $7,%ecx,%ecx
  1672. xorl %ebp,%esi
  1673. vpslldq $12,%xmm7,%xmm9
  1674. vpaddd %xmm7,%xmm7,%xmm7
  1675. movl %ebx,%edi
  1676. addl 56(%rsp),%eax
  1677. xorl %edx,%ecx
  1678. shldl $5,%ebx,%ebx
  1679. vpor %xmm8,%xmm7,%xmm7
  1680. vpsrld $30,%xmm9,%xmm8
  1681. addl %esi,%eax
  1682. andl %ecx,%edi
  1683. xorl %edx,%ecx
  1684. addl %ebx,%eax
  1685. vpslld $2,%xmm9,%xmm9
  1686. vpxor %xmm8,%xmm7,%xmm7
  1687. shrdl $7,%ebx,%ebx
  1688. cmpl $11,%r8d
  1689. jb .Lvaesenclast6
  1690. vaesenc %xmm15,%xmm12,%xmm12
  1691. vmovups 64(%r15),%xmm14
  1692. vaesenc %xmm14,%xmm12,%xmm12
  1693. vmovups 80(%r15),%xmm15
  1694. je .Lvaesenclast6
  1695. vaesenc %xmm15,%xmm12,%xmm12
  1696. vmovups 96(%r15),%xmm14
  1697. vaesenc %xmm14,%xmm12,%xmm12
  1698. vmovups 112(%r15),%xmm15
  1699. .Lvaesenclast6:
  1700. vaesenclast %xmm15,%xmm12,%xmm12
  1701. vmovups -112(%r15),%xmm15
  1702. vmovups 16-112(%r15),%xmm14
  1703. xorl %edx,%edi
  1704. movl %eax,%esi
  1705. addl 60(%rsp),%ebp
  1706. vpxor %xmm9,%xmm7,%xmm7
  1707. xorl %ecx,%ebx
  1708. shldl $5,%eax,%eax
  1709. addl %edi,%ebp
  1710. andl %ebx,%esi
  1711. xorl %ecx,%ebx
  1712. addl %eax,%ebp
  1713. vpalignr $8,%xmm6,%xmm7,%xmm8
  1714. vpxor %xmm4,%xmm0,%xmm0
  1715. shrdl $7,%eax,%eax
  1716. xorl %ecx,%esi
  1717. movl %ebp,%edi
  1718. addl 0(%rsp),%edx
  1719. vpxor %xmm1,%xmm0,%xmm0
  1720. xorl %ebx,%eax
  1721. shldl $5,%ebp,%ebp
  1722. vpaddd %xmm7,%xmm10,%xmm9
  1723. addl %esi,%edx
  1724. vmovdqu 16(%r12),%xmm13
  1725. vpxor %xmm15,%xmm13,%xmm13
  1726. vmovups %xmm12,0(%r12,%r13,1)
  1727. vpxor %xmm13,%xmm12,%xmm12
  1728. vaesenc %xmm14,%xmm12,%xmm12
  1729. vmovups -80(%r15),%xmm15
  1730. andl %eax,%edi
  1731. vpxor %xmm8,%xmm0,%xmm0
  1732. xorl %ebx,%eax
  1733. addl %ebp,%edx
  1734. shrdl $7,%ebp,%ebp
  1735. xorl %ebx,%edi
  1736. vpsrld $30,%xmm0,%xmm8
  1737. vmovdqa %xmm9,48(%rsp)
  1738. movl %edx,%esi
  1739. addl 4(%rsp),%ecx
  1740. xorl %eax,%ebp
  1741. shldl $5,%edx,%edx
  1742. vpslld $2,%xmm0,%xmm0
  1743. addl %edi,%ecx
  1744. andl %ebp,%esi
  1745. xorl %eax,%ebp
  1746. addl %edx,%ecx
  1747. shrdl $7,%edx,%edx
  1748. xorl %eax,%esi
  1749. movl %ecx,%edi
  1750. addl 8(%rsp),%ebx
  1751. vaesenc %xmm15,%xmm12,%xmm12
  1752. vmovups -64(%r15),%xmm14
  1753. vpor %xmm8,%xmm0,%xmm0
  1754. xorl %ebp,%edx
  1755. shldl $5,%ecx,%ecx
  1756. addl %esi,%ebx
  1757. andl %edx,%edi
  1758. xorl %ebp,%edx
  1759. addl %ecx,%ebx
  1760. addl 12(%rsp),%eax
  1761. xorl %ebp,%edi
  1762. movl %ebx,%esi
  1763. shldl $5,%ebx,%ebx
  1764. addl %edi,%eax
  1765. xorl %edx,%esi
  1766. shrdl $7,%ecx,%ecx
  1767. addl %ebx,%eax
  1768. vpalignr $8,%xmm7,%xmm0,%xmm8
  1769. vpxor %xmm5,%xmm1,%xmm1
  1770. addl 16(%rsp),%ebp
  1771. vaesenc %xmm14,%xmm12,%xmm12
  1772. vmovups -48(%r15),%xmm15
  1773. xorl %ecx,%esi
  1774. movl %eax,%edi
  1775. shldl $5,%eax,%eax
  1776. vpxor %xmm2,%xmm1,%xmm1
  1777. addl %esi,%ebp
  1778. xorl %ecx,%edi
  1779. vpaddd %xmm0,%xmm10,%xmm9
  1780. shrdl $7,%ebx,%ebx
  1781. addl %eax,%ebp
  1782. vpxor %xmm8,%xmm1,%xmm1
  1783. addl 20(%rsp),%edx
  1784. xorl %ebx,%edi
  1785. movl %ebp,%esi
  1786. shldl $5,%ebp,%ebp
  1787. vpsrld $30,%xmm1,%xmm8
  1788. vmovdqa %xmm9,0(%rsp)
  1789. addl %edi,%edx
  1790. xorl %ebx,%esi
  1791. shrdl $7,%eax,%eax
  1792. addl %ebp,%edx
  1793. vpslld $2,%xmm1,%xmm1
  1794. addl 24(%rsp),%ecx
  1795. xorl %eax,%esi
  1796. movl %edx,%edi
  1797. shldl $5,%edx,%edx
  1798. addl %esi,%ecx
  1799. vaesenc %xmm15,%xmm12,%xmm12
  1800. vmovups -32(%r15),%xmm14
  1801. xorl %eax,%edi
  1802. shrdl $7,%ebp,%ebp
  1803. addl %edx,%ecx
  1804. vpor %xmm8,%xmm1,%xmm1
  1805. addl 28(%rsp),%ebx
  1806. xorl %ebp,%edi
  1807. movl %ecx,%esi
  1808. shldl $5,%ecx,%ecx
  1809. addl %edi,%ebx
  1810. xorl %ebp,%esi
  1811. shrdl $7,%edx,%edx
  1812. addl %ecx,%ebx
  1813. vpalignr $8,%xmm0,%xmm1,%xmm8
  1814. vpxor %xmm6,%xmm2,%xmm2
  1815. addl 32(%rsp),%eax
  1816. xorl %edx,%esi
  1817. movl %ebx,%edi
  1818. shldl $5,%ebx,%ebx
  1819. vpxor %xmm3,%xmm2,%xmm2
  1820. addl %esi,%eax
  1821. xorl %edx,%edi
  1822. vpaddd %xmm1,%xmm10,%xmm9
  1823. vmovdqa 32(%r11),%xmm10
  1824. shrdl $7,%ecx,%ecx
  1825. addl %ebx,%eax
  1826. vpxor %xmm8,%xmm2,%xmm2
  1827. addl 36(%rsp),%ebp
  1828. vaesenc %xmm14,%xmm12,%xmm12
  1829. vmovups -16(%r15),%xmm15
  1830. xorl %ecx,%edi
  1831. movl %eax,%esi
  1832. shldl $5,%eax,%eax
  1833. vpsrld $30,%xmm2,%xmm8
  1834. vmovdqa %xmm9,16(%rsp)
  1835. addl %edi,%ebp
  1836. xorl %ecx,%esi
  1837. shrdl $7,%ebx,%ebx
  1838. addl %eax,%ebp
  1839. vpslld $2,%xmm2,%xmm2
  1840. addl 40(%rsp),%edx
  1841. xorl %ebx,%esi
  1842. movl %ebp,%edi
  1843. shldl $5,%ebp,%ebp
  1844. addl %esi,%edx
  1845. xorl %ebx,%edi
  1846. shrdl $7,%eax,%eax
  1847. addl %ebp,%edx
  1848. vpor %xmm8,%xmm2,%xmm2
  1849. addl 44(%rsp),%ecx
  1850. xorl %eax,%edi
  1851. movl %edx,%esi
  1852. shldl $5,%edx,%edx
  1853. addl %edi,%ecx
  1854. vaesenc %xmm15,%xmm12,%xmm12
  1855. vmovups 0(%r15),%xmm14
  1856. xorl %eax,%esi
  1857. shrdl $7,%ebp,%ebp
  1858. addl %edx,%ecx
  1859. vpalignr $8,%xmm1,%xmm2,%xmm8
  1860. vpxor %xmm7,%xmm3,%xmm3
  1861. addl 48(%rsp),%ebx
  1862. xorl %ebp,%esi
  1863. movl %ecx,%edi
  1864. shldl $5,%ecx,%ecx
  1865. vpxor %xmm4,%xmm3,%xmm3
  1866. addl %esi,%ebx
  1867. xorl %ebp,%edi
  1868. vpaddd %xmm2,%xmm10,%xmm9
  1869. shrdl $7,%edx,%edx
  1870. addl %ecx,%ebx
  1871. vpxor %xmm8,%xmm3,%xmm3
  1872. addl 52(%rsp),%eax
  1873. xorl %edx,%edi
  1874. movl %ebx,%esi
  1875. shldl $5,%ebx,%ebx
  1876. vpsrld $30,%xmm3,%xmm8
  1877. vmovdqa %xmm9,32(%rsp)
  1878. addl %edi,%eax
  1879. xorl %edx,%esi
  1880. shrdl $7,%ecx,%ecx
  1881. addl %ebx,%eax
  1882. vpslld $2,%xmm3,%xmm3
  1883. addl 56(%rsp),%ebp
  1884. vaesenc %xmm14,%xmm12,%xmm12
  1885. vmovups 16(%r15),%xmm15
  1886. xorl %ecx,%esi
  1887. movl %eax,%edi
  1888. shldl $5,%eax,%eax
  1889. addl %esi,%ebp
  1890. xorl %ecx,%edi
  1891. shrdl $7,%ebx,%ebx
  1892. addl %eax,%ebp
  1893. vpor %xmm8,%xmm3,%xmm3
  1894. addl 60(%rsp),%edx
  1895. xorl %ebx,%edi
  1896. movl %ebp,%esi
  1897. shldl $5,%ebp,%ebp
  1898. addl %edi,%edx
  1899. xorl %ebx,%esi
  1900. shrdl $7,%eax,%eax
  1901. addl %ebp,%edx
  1902. vpalignr $8,%xmm2,%xmm3,%xmm8
  1903. vpxor %xmm0,%xmm4,%xmm4
  1904. addl 0(%rsp),%ecx
  1905. xorl %eax,%esi
  1906. movl %edx,%edi
  1907. shldl $5,%edx,%edx
  1908. vpxor %xmm5,%xmm4,%xmm4
  1909. addl %esi,%ecx
  1910. vaesenc %xmm15,%xmm12,%xmm12
  1911. vmovups 32(%r15),%xmm14
  1912. xorl %eax,%edi
  1913. vpaddd %xmm3,%xmm10,%xmm9
  1914. shrdl $7,%ebp,%ebp
  1915. addl %edx,%ecx
  1916. vpxor %xmm8,%xmm4,%xmm4
  1917. addl 4(%rsp),%ebx
  1918. xorl %ebp,%edi
  1919. movl %ecx,%esi
  1920. shldl $5,%ecx,%ecx
  1921. vpsrld $30,%xmm4,%xmm8
  1922. vmovdqa %xmm9,48(%rsp)
  1923. addl %edi,%ebx
  1924. xorl %ebp,%esi
  1925. shrdl $7,%edx,%edx
  1926. addl %ecx,%ebx
  1927. vpslld $2,%xmm4,%xmm4
  1928. addl 8(%rsp),%eax
  1929. xorl %edx,%esi
  1930. movl %ebx,%edi
  1931. shldl $5,%ebx,%ebx
  1932. addl %esi,%eax
  1933. xorl %edx,%edi
  1934. shrdl $7,%ecx,%ecx
  1935. addl %ebx,%eax
  1936. vpor %xmm8,%xmm4,%xmm4
  1937. addl 12(%rsp),%ebp
  1938. vaesenc %xmm14,%xmm12,%xmm12
  1939. vmovups 48(%r15),%xmm15
  1940. xorl %ecx,%edi
  1941. movl %eax,%esi
  1942. shldl $5,%eax,%eax
  1943. addl %edi,%ebp
  1944. xorl %ecx,%esi
  1945. shrdl $7,%ebx,%ebx
  1946. addl %eax,%ebp
  1947. vpalignr $8,%xmm3,%xmm4,%xmm8
  1948. vpxor %xmm1,%xmm5,%xmm5
  1949. addl 16(%rsp),%edx
  1950. xorl %ebx,%esi
  1951. movl %ebp,%edi
  1952. shldl $5,%ebp,%ebp
  1953. vpxor %xmm6,%xmm5,%xmm5
  1954. addl %esi,%edx
  1955. xorl %ebx,%edi
  1956. vpaddd %xmm4,%xmm10,%xmm9
  1957. shrdl $7,%eax,%eax
  1958. addl %ebp,%edx
  1959. vpxor %xmm8,%xmm5,%xmm5
  1960. addl 20(%rsp),%ecx
  1961. xorl %eax,%edi
  1962. movl %edx,%esi
  1963. shldl $5,%edx,%edx
  1964. vpsrld $30,%xmm5,%xmm8
  1965. vmovdqa %xmm9,0(%rsp)
  1966. addl %edi,%ecx
  1967. cmpl $11,%r8d
  1968. jb .Lvaesenclast7
  1969. vaesenc %xmm15,%xmm12,%xmm12
  1970. vmovups 64(%r15),%xmm14
  1971. vaesenc %xmm14,%xmm12,%xmm12
  1972. vmovups 80(%r15),%xmm15
  1973. je .Lvaesenclast7
  1974. vaesenc %xmm15,%xmm12,%xmm12
  1975. vmovups 96(%r15),%xmm14
  1976. vaesenc %xmm14,%xmm12,%xmm12
  1977. vmovups 112(%r15),%xmm15
  1978. .Lvaesenclast7:
  1979. vaesenclast %xmm15,%xmm12,%xmm12
  1980. vmovups -112(%r15),%xmm15
  1981. vmovups 16-112(%r15),%xmm14
  1982. xorl %eax,%esi
  1983. shrdl $7,%ebp,%ebp
  1984. addl %edx,%ecx
  1985. vpslld $2,%xmm5,%xmm5
  1986. addl 24(%rsp),%ebx
  1987. xorl %ebp,%esi
  1988. movl %ecx,%edi
  1989. shldl $5,%ecx,%ecx
  1990. addl %esi,%ebx
  1991. xorl %ebp,%edi
  1992. shrdl $7,%edx,%edx
  1993. addl %ecx,%ebx
  1994. vpor %xmm8,%xmm5,%xmm5
  1995. addl 28(%rsp),%eax
  1996. shrdl $7,%ecx,%ecx
  1997. movl %ebx,%esi
  1998. xorl %edx,%edi
  1999. shldl $5,%ebx,%ebx
  2000. addl %edi,%eax
  2001. xorl %ecx,%esi
  2002. xorl %edx,%ecx
  2003. addl %ebx,%eax
  2004. vpalignr $8,%xmm4,%xmm5,%xmm8
  2005. vpxor %xmm2,%xmm6,%xmm6
  2006. addl 32(%rsp),%ebp
  2007. vmovdqu 32(%r12),%xmm13
  2008. vpxor %xmm15,%xmm13,%xmm13
  2009. vmovups %xmm12,16(%r13,%r12,1)
  2010. vpxor %xmm13,%xmm12,%xmm12
  2011. vaesenc %xmm14,%xmm12,%xmm12
  2012. vmovups -80(%r15),%xmm15
  2013. andl %ecx,%esi
  2014. xorl %edx,%ecx
  2015. shrdl $7,%ebx,%ebx
  2016. vpxor %xmm7,%xmm6,%xmm6
  2017. movl %eax,%edi
  2018. xorl %ecx,%esi
  2019. vpaddd %xmm5,%xmm10,%xmm9
  2020. shldl $5,%eax,%eax
  2021. addl %esi,%ebp
  2022. vpxor %xmm8,%xmm6,%xmm6
  2023. xorl %ebx,%edi
  2024. xorl %ecx,%ebx
  2025. addl %eax,%ebp
  2026. addl 36(%rsp),%edx
  2027. vpsrld $30,%xmm6,%xmm8
  2028. vmovdqa %xmm9,16(%rsp)
  2029. andl %ebx,%edi
  2030. xorl %ecx,%ebx
  2031. shrdl $7,%eax,%eax
  2032. movl %ebp,%esi
  2033. vpslld $2,%xmm6,%xmm6
  2034. xorl %ebx,%edi
  2035. shldl $5,%ebp,%ebp
  2036. addl %edi,%edx
  2037. vaesenc %xmm15,%xmm12,%xmm12
  2038. vmovups -64(%r15),%xmm14
  2039. xorl %eax,%esi
  2040. xorl %ebx,%eax
  2041. addl %ebp,%edx
  2042. addl 40(%rsp),%ecx
  2043. andl %eax,%esi
  2044. vpor %xmm8,%xmm6,%xmm6
  2045. xorl %ebx,%eax
  2046. shrdl $7,%ebp,%ebp
  2047. movl %edx,%edi
  2048. xorl %eax,%esi
  2049. shldl $5,%edx,%edx
  2050. addl %esi,%ecx
  2051. xorl %ebp,%edi
  2052. xorl %eax,%ebp
  2053. addl %edx,%ecx
  2054. addl 44(%rsp),%ebx
  2055. andl %ebp,%edi
  2056. xorl %eax,%ebp
  2057. shrdl $7,%edx,%edx
  2058. vaesenc %xmm14,%xmm12,%xmm12
  2059. vmovups -48(%r15),%xmm15
  2060. movl %ecx,%esi
  2061. xorl %ebp,%edi
  2062. shldl $5,%ecx,%ecx
  2063. addl %edi,%ebx
  2064. xorl %edx,%esi
  2065. xorl %ebp,%edx
  2066. addl %ecx,%ebx
  2067. vpalignr $8,%xmm5,%xmm6,%xmm8
  2068. vpxor %xmm3,%xmm7,%xmm7
  2069. addl 48(%rsp),%eax
  2070. andl %edx,%esi
  2071. xorl %ebp,%edx
  2072. shrdl $7,%ecx,%ecx
  2073. vpxor %xmm0,%xmm7,%xmm7
  2074. movl %ebx,%edi
  2075. xorl %edx,%esi
  2076. vpaddd %xmm6,%xmm10,%xmm9
  2077. vmovdqa 48(%r11),%xmm10
  2078. shldl $5,%ebx,%ebx
  2079. addl %esi,%eax
  2080. vpxor %xmm8,%xmm7,%xmm7
  2081. xorl %ecx,%edi
  2082. xorl %edx,%ecx
  2083. addl %ebx,%eax
  2084. addl 52(%rsp),%ebp
  2085. vaesenc %xmm15,%xmm12,%xmm12
  2086. vmovups -32(%r15),%xmm14
  2087. vpsrld $30,%xmm7,%xmm8
  2088. vmovdqa %xmm9,32(%rsp)
  2089. andl %ecx,%edi
  2090. xorl %edx,%ecx
  2091. shrdl $7,%ebx,%ebx
  2092. movl %eax,%esi
  2093. vpslld $2,%xmm7,%xmm7
  2094. xorl %ecx,%edi
  2095. shldl $5,%eax,%eax
  2096. addl %edi,%ebp
  2097. xorl %ebx,%esi
  2098. xorl %ecx,%ebx
  2099. addl %eax,%ebp
  2100. addl 56(%rsp),%edx
  2101. andl %ebx,%esi
  2102. vpor %xmm8,%xmm7,%xmm7
  2103. xorl %ecx,%ebx
  2104. shrdl $7,%eax,%eax
  2105. movl %ebp,%edi
  2106. xorl %ebx,%esi
  2107. shldl $5,%ebp,%ebp
  2108. addl %esi,%edx
  2109. vaesenc %xmm14,%xmm12,%xmm12
  2110. vmovups -16(%r15),%xmm15
  2111. xorl %eax,%edi
  2112. xorl %ebx,%eax
  2113. addl %ebp,%edx
  2114. addl 60(%rsp),%ecx
  2115. andl %eax,%edi
  2116. xorl %ebx,%eax
  2117. shrdl $7,%ebp,%ebp
  2118. movl %edx,%esi
  2119. xorl %eax,%edi
  2120. shldl $5,%edx,%edx
  2121. addl %edi,%ecx
  2122. xorl %ebp,%esi
  2123. xorl %eax,%ebp
  2124. addl %edx,%ecx
  2125. vpalignr $8,%xmm6,%xmm7,%xmm8
  2126. vpxor %xmm4,%xmm0,%xmm0
  2127. addl 0(%rsp),%ebx
  2128. andl %ebp,%esi
  2129. xorl %eax,%ebp
  2130. shrdl $7,%edx,%edx
  2131. vaesenc %xmm15,%xmm12,%xmm12
  2132. vmovups 0(%r15),%xmm14
  2133. vpxor %xmm1,%xmm0,%xmm0
  2134. movl %ecx,%edi
  2135. xorl %ebp,%esi
  2136. vpaddd %xmm7,%xmm10,%xmm9
  2137. shldl $5,%ecx,%ecx
  2138. addl %esi,%ebx
  2139. vpxor %xmm8,%xmm0,%xmm0
  2140. xorl %edx,%edi
  2141. xorl %ebp,%edx
  2142. addl %ecx,%ebx
  2143. addl 4(%rsp),%eax
  2144. vpsrld $30,%xmm0,%xmm8
  2145. vmovdqa %xmm9,48(%rsp)
  2146. andl %edx,%edi
  2147. xorl %ebp,%edx
  2148. shrdl $7,%ecx,%ecx
  2149. movl %ebx,%esi
  2150. vpslld $2,%xmm0,%xmm0
  2151. xorl %edx,%edi
  2152. shldl $5,%ebx,%ebx
  2153. addl %edi,%eax
  2154. xorl %ecx,%esi
  2155. xorl %edx,%ecx
  2156. addl %ebx,%eax
  2157. addl 8(%rsp),%ebp
  2158. vaesenc %xmm14,%xmm12,%xmm12
  2159. vmovups 16(%r15),%xmm15
  2160. andl %ecx,%esi
  2161. vpor %xmm8,%xmm0,%xmm0
  2162. xorl %edx,%ecx
  2163. shrdl $7,%ebx,%ebx
  2164. movl %eax,%edi
  2165. xorl %ecx,%esi
  2166. shldl $5,%eax,%eax
  2167. addl %esi,%ebp
  2168. xorl %ebx,%edi
  2169. xorl %ecx,%ebx
  2170. addl %eax,%ebp
  2171. addl 12(%rsp),%edx
  2172. andl %ebx,%edi
  2173. xorl %ecx,%ebx
  2174. shrdl $7,%eax,%eax
  2175. movl %ebp,%esi
  2176. xorl %ebx,%edi
  2177. shldl $5,%ebp,%ebp
  2178. addl %edi,%edx
  2179. vaesenc %xmm15,%xmm12,%xmm12
  2180. vmovups 32(%r15),%xmm14
  2181. xorl %eax,%esi
  2182. xorl %ebx,%eax
  2183. addl %ebp,%edx
  2184. vpalignr $8,%xmm7,%xmm0,%xmm8
  2185. vpxor %xmm5,%xmm1,%xmm1
  2186. addl 16(%rsp),%ecx
  2187. andl %eax,%esi
  2188. xorl %ebx,%eax
  2189. shrdl $7,%ebp,%ebp
  2190. vpxor %xmm2,%xmm1,%xmm1
  2191. movl %edx,%edi
  2192. xorl %eax,%esi
  2193. vpaddd %xmm0,%xmm10,%xmm9
  2194. shldl $5,%edx,%edx
  2195. addl %esi,%ecx
  2196. vpxor %xmm8,%xmm1,%xmm1
  2197. xorl %ebp,%edi
  2198. xorl %eax,%ebp
  2199. addl %edx,%ecx
  2200. addl 20(%rsp),%ebx
  2201. vpsrld $30,%xmm1,%xmm8
  2202. vmovdqa %xmm9,0(%rsp)
  2203. andl %ebp,%edi
  2204. xorl %eax,%ebp
  2205. shrdl $7,%edx,%edx
  2206. vaesenc %xmm14,%xmm12,%xmm12
  2207. vmovups 48(%r15),%xmm15
  2208. movl %ecx,%esi
  2209. vpslld $2,%xmm1,%xmm1
  2210. xorl %ebp,%edi
  2211. shldl $5,%ecx,%ecx
  2212. addl %edi,%ebx
  2213. xorl %edx,%esi
  2214. xorl %ebp,%edx
  2215. addl %ecx,%ebx
  2216. addl 24(%rsp),%eax
  2217. andl %edx,%esi
  2218. vpor %xmm8,%xmm1,%xmm1
  2219. xorl %ebp,%edx
  2220. shrdl $7,%ecx,%ecx
  2221. movl %ebx,%edi
  2222. xorl %edx,%esi
  2223. shldl $5,%ebx,%ebx
  2224. addl %esi,%eax
  2225. xorl %ecx,%edi
  2226. xorl %edx,%ecx
  2227. addl %ebx,%eax
  2228. addl 28(%rsp),%ebp
  2229. cmpl $11,%r8d
  2230. jb .Lvaesenclast8
  2231. vaesenc %xmm15,%xmm12,%xmm12
  2232. vmovups 64(%r15),%xmm14
  2233. vaesenc %xmm14,%xmm12,%xmm12
  2234. vmovups 80(%r15),%xmm15
  2235. je .Lvaesenclast8
  2236. vaesenc %xmm15,%xmm12,%xmm12
  2237. vmovups 96(%r15),%xmm14
  2238. vaesenc %xmm14,%xmm12,%xmm12
  2239. vmovups 112(%r15),%xmm15
  2240. .Lvaesenclast8:
  2241. vaesenclast %xmm15,%xmm12,%xmm12
  2242. vmovups -112(%r15),%xmm15
  2243. vmovups 16-112(%r15),%xmm14
  2244. andl %ecx,%edi
  2245. xorl %edx,%ecx
  2246. shrdl $7,%ebx,%ebx
  2247. movl %eax,%esi
  2248. xorl %ecx,%edi
  2249. shldl $5,%eax,%eax
  2250. addl %edi,%ebp
  2251. xorl %ebx,%esi
  2252. xorl %ecx,%ebx
  2253. addl %eax,%ebp
  2254. vpalignr $8,%xmm0,%xmm1,%xmm8
  2255. vpxor %xmm6,%xmm2,%xmm2
  2256. addl 32(%rsp),%edx
  2257. andl %ebx,%esi
  2258. xorl %ecx,%ebx
  2259. shrdl $7,%eax,%eax
  2260. vpxor %xmm3,%xmm2,%xmm2
  2261. movl %ebp,%edi
  2262. xorl %ebx,%esi
  2263. vpaddd %xmm1,%xmm10,%xmm9
  2264. shldl $5,%ebp,%ebp
  2265. addl %esi,%edx
  2266. vmovdqu 48(%r12),%xmm13
  2267. vpxor %xmm15,%xmm13,%xmm13
  2268. vmovups %xmm12,32(%r13,%r12,1)
  2269. vpxor %xmm13,%xmm12,%xmm12
  2270. vaesenc %xmm14,%xmm12,%xmm12
  2271. vmovups -80(%r15),%xmm15
  2272. vpxor %xmm8,%xmm2,%xmm2
  2273. xorl %eax,%edi
  2274. xorl %ebx,%eax
  2275. addl %ebp,%edx
  2276. addl 36(%rsp),%ecx
  2277. vpsrld $30,%xmm2,%xmm8
  2278. vmovdqa %xmm9,16(%rsp)
  2279. andl %eax,%edi
  2280. xorl %ebx,%eax
  2281. shrdl $7,%ebp,%ebp
  2282. movl %edx,%esi
  2283. vpslld $2,%xmm2,%xmm2
  2284. xorl %eax,%edi
  2285. shldl $5,%edx,%edx
  2286. addl %edi,%ecx
  2287. xorl %ebp,%esi
  2288. xorl %eax,%ebp
  2289. addl %edx,%ecx
  2290. addl 40(%rsp),%ebx
  2291. andl %ebp,%esi
  2292. vpor %xmm8,%xmm2,%xmm2
  2293. xorl %eax,%ebp
  2294. shrdl $7,%edx,%edx
  2295. vaesenc %xmm15,%xmm12,%xmm12
  2296. vmovups -64(%r15),%xmm14
  2297. movl %ecx,%edi
  2298. xorl %ebp,%esi
  2299. shldl $5,%ecx,%ecx
  2300. addl %esi,%ebx
  2301. xorl %edx,%edi
  2302. xorl %ebp,%edx
  2303. addl %ecx,%ebx
  2304. addl 44(%rsp),%eax
  2305. andl %edx,%edi
  2306. xorl %ebp,%edx
  2307. shrdl $7,%ecx,%ecx
  2308. movl %ebx,%esi
  2309. xorl %edx,%edi
  2310. shldl $5,%ebx,%ebx
  2311. addl %edi,%eax
  2312. xorl %edx,%esi
  2313. addl %ebx,%eax
  2314. vpalignr $8,%xmm1,%xmm2,%xmm8
  2315. vpxor %xmm7,%xmm3,%xmm3
  2316. addl 48(%rsp),%ebp
  2317. vaesenc %xmm14,%xmm12,%xmm12
  2318. vmovups -48(%r15),%xmm15
  2319. xorl %ecx,%esi
  2320. movl %eax,%edi
  2321. shldl $5,%eax,%eax
  2322. vpxor %xmm4,%xmm3,%xmm3
  2323. addl %esi,%ebp
  2324. xorl %ecx,%edi
  2325. vpaddd %xmm2,%xmm10,%xmm9
  2326. shrdl $7,%ebx,%ebx
  2327. addl %eax,%ebp
  2328. vpxor %xmm8,%xmm3,%xmm3
  2329. addl 52(%rsp),%edx
  2330. xorl %ebx,%edi
  2331. movl %ebp,%esi
  2332. shldl $5,%ebp,%ebp
  2333. vpsrld $30,%xmm3,%xmm8
  2334. vmovdqa %xmm9,32(%rsp)
  2335. addl %edi,%edx
  2336. xorl %ebx,%esi
  2337. shrdl $7,%eax,%eax
  2338. addl %ebp,%edx
  2339. vpslld $2,%xmm3,%xmm3
  2340. addl 56(%rsp),%ecx
  2341. xorl %eax,%esi
  2342. movl %edx,%edi
  2343. shldl $5,%edx,%edx
  2344. addl %esi,%ecx
  2345. vaesenc %xmm15,%xmm12,%xmm12
  2346. vmovups -32(%r15),%xmm14
  2347. xorl %eax,%edi
  2348. shrdl $7,%ebp,%ebp
  2349. addl %edx,%ecx
  2350. vpor %xmm8,%xmm3,%xmm3
  2351. addl 60(%rsp),%ebx
  2352. xorl %ebp,%edi
  2353. movl %ecx,%esi
  2354. shldl $5,%ecx,%ecx
  2355. addl %edi,%ebx
  2356. xorl %ebp,%esi
  2357. shrdl $7,%edx,%edx
  2358. addl %ecx,%ebx
  2359. addl 0(%rsp),%eax
  2360. vpaddd %xmm3,%xmm10,%xmm9
  2361. xorl %edx,%esi
  2362. movl %ebx,%edi
  2363. shldl $5,%ebx,%ebx
  2364. addl %esi,%eax
  2365. vmovdqa %xmm9,48(%rsp)
  2366. xorl %edx,%edi
  2367. shrdl $7,%ecx,%ecx
  2368. addl %ebx,%eax
  2369. addl 4(%rsp),%ebp
  2370. vaesenc %xmm14,%xmm12,%xmm12
  2371. vmovups -16(%r15),%xmm15
  2372. xorl %ecx,%edi
  2373. movl %eax,%esi
  2374. shldl $5,%eax,%eax
  2375. addl %edi,%ebp
  2376. xorl %ecx,%esi
  2377. shrdl $7,%ebx,%ebx
  2378. addl %eax,%ebp
  2379. addl 8(%rsp),%edx
  2380. xorl %ebx,%esi
  2381. movl %ebp,%edi
  2382. shldl $5,%ebp,%ebp
  2383. addl %esi,%edx
  2384. xorl %ebx,%edi
  2385. shrdl $7,%eax,%eax
  2386. addl %ebp,%edx
  2387. addl 12(%rsp),%ecx
  2388. xorl %eax,%edi
  2389. movl %edx,%esi
  2390. shldl $5,%edx,%edx
  2391. addl %edi,%ecx
  2392. vaesenc %xmm15,%xmm12,%xmm12
  2393. vmovups 0(%r15),%xmm14
  2394. xorl %eax,%esi
  2395. shrdl $7,%ebp,%ebp
  2396. addl %edx,%ecx
  2397. cmpq %r14,%r10
  2398. je .Ldone_avx
  2399. vmovdqa 64(%r11),%xmm9
  2400. vmovdqa 0(%r11),%xmm10
  2401. vmovdqu 0(%r10),%xmm0
  2402. vmovdqu 16(%r10),%xmm1
  2403. vmovdqu 32(%r10),%xmm2
  2404. vmovdqu 48(%r10),%xmm3
  2405. vpshufb %xmm9,%xmm0,%xmm0
  2406. addq $64,%r10
  2407. addl 16(%rsp),%ebx
  2408. xorl %ebp,%esi
  2409. vpshufb %xmm9,%xmm1,%xmm1
  2410. movl %ecx,%edi
  2411. shldl $5,%ecx,%ecx
  2412. vpaddd %xmm10,%xmm0,%xmm8
  2413. addl %esi,%ebx
  2414. xorl %ebp,%edi
  2415. shrdl $7,%edx,%edx
  2416. addl %ecx,%ebx
  2417. vmovdqa %xmm8,0(%rsp)
  2418. addl 20(%rsp),%eax
  2419. xorl %edx,%edi
  2420. movl %ebx,%esi
  2421. shldl $5,%ebx,%ebx
  2422. addl %edi,%eax
  2423. xorl %edx,%esi
  2424. shrdl $7,%ecx,%ecx
  2425. addl %ebx,%eax
  2426. addl 24(%rsp),%ebp
  2427. vaesenc %xmm14,%xmm12,%xmm12
  2428. vmovups 16(%r15),%xmm15
  2429. xorl %ecx,%esi
  2430. movl %eax,%edi
  2431. shldl $5,%eax,%eax
  2432. addl %esi,%ebp
  2433. xorl %ecx,%edi
  2434. shrdl $7,%ebx,%ebx
  2435. addl %eax,%ebp
  2436. addl 28(%rsp),%edx
  2437. xorl %ebx,%edi
  2438. movl %ebp,%esi
  2439. shldl $5,%ebp,%ebp
  2440. addl %edi,%edx
  2441. xorl %ebx,%esi
  2442. shrdl $7,%eax,%eax
  2443. addl %ebp,%edx
  2444. addl 32(%rsp),%ecx
  2445. xorl %eax,%esi
  2446. vpshufb %xmm9,%xmm2,%xmm2
  2447. movl %edx,%edi
  2448. shldl $5,%edx,%edx
  2449. vpaddd %xmm10,%xmm1,%xmm8
  2450. addl %esi,%ecx
  2451. vaesenc %xmm15,%xmm12,%xmm12
  2452. vmovups 32(%r15),%xmm14
  2453. xorl %eax,%edi
  2454. shrdl $7,%ebp,%ebp
  2455. addl %edx,%ecx
  2456. vmovdqa %xmm8,16(%rsp)
  2457. addl 36(%rsp),%ebx
  2458. xorl %ebp,%edi
  2459. movl %ecx,%esi
  2460. shldl $5,%ecx,%ecx
  2461. addl %edi,%ebx
  2462. xorl %ebp,%esi
  2463. shrdl $7,%edx,%edx
  2464. addl %ecx,%ebx
  2465. addl 40(%rsp),%eax
  2466. xorl %edx,%esi
  2467. movl %ebx,%edi
  2468. shldl $5,%ebx,%ebx
  2469. addl %esi,%eax
  2470. xorl %edx,%edi
  2471. shrdl $7,%ecx,%ecx
  2472. addl %ebx,%eax
  2473. addl 44(%rsp),%ebp
  2474. vaesenc %xmm14,%xmm12,%xmm12
  2475. vmovups 48(%r15),%xmm15
  2476. xorl %ecx,%edi
  2477. movl %eax,%esi
  2478. shldl $5,%eax,%eax
  2479. addl %edi,%ebp
  2480. xorl %ecx,%esi
  2481. shrdl $7,%ebx,%ebx
  2482. addl %eax,%ebp
  2483. addl 48(%rsp),%edx
  2484. xorl %ebx,%esi
  2485. vpshufb %xmm9,%xmm3,%xmm3
  2486. movl %ebp,%edi
  2487. shldl $5,%ebp,%ebp
  2488. vpaddd %xmm10,%xmm2,%xmm8
  2489. addl %esi,%edx
  2490. xorl %ebx,%edi
  2491. shrdl $7,%eax,%eax
  2492. addl %ebp,%edx
  2493. vmovdqa %xmm8,32(%rsp)
  2494. addl 52(%rsp),%ecx
  2495. xorl %eax,%edi
  2496. movl %edx,%esi
  2497. shldl $5,%edx,%edx
  2498. addl %edi,%ecx
  2499. cmpl $11,%r8d
  2500. jb .Lvaesenclast9
  2501. vaesenc %xmm15,%xmm12,%xmm12
  2502. vmovups 64(%r15),%xmm14
  2503. vaesenc %xmm14,%xmm12,%xmm12
  2504. vmovups 80(%r15),%xmm15
  2505. je .Lvaesenclast9
  2506. vaesenc %xmm15,%xmm12,%xmm12
  2507. vmovups 96(%r15),%xmm14
  2508. vaesenc %xmm14,%xmm12,%xmm12
  2509. vmovups 112(%r15),%xmm15
  2510. .Lvaesenclast9:
  2511. vaesenclast %xmm15,%xmm12,%xmm12
  2512. vmovups -112(%r15),%xmm15
  2513. vmovups 16-112(%r15),%xmm14
  2514. xorl %eax,%esi
  2515. shrdl $7,%ebp,%ebp
  2516. addl %edx,%ecx
  2517. addl 56(%rsp),%ebx
  2518. xorl %ebp,%esi
  2519. movl %ecx,%edi
  2520. shldl $5,%ecx,%ecx
  2521. addl %esi,%ebx
  2522. xorl %ebp,%edi
  2523. shrdl $7,%edx,%edx
  2524. addl %ecx,%ebx
  2525. addl 60(%rsp),%eax
  2526. xorl %edx,%edi
  2527. movl %ebx,%esi
  2528. shldl $5,%ebx,%ebx
  2529. addl %edi,%eax
  2530. shrdl $7,%ecx,%ecx
  2531. addl %ebx,%eax
  2532. vmovups %xmm12,48(%r13,%r12,1)
  2533. leaq 64(%r12),%r12
  2534. addl 0(%r9),%eax
  2535. addl 4(%r9),%esi
  2536. addl 8(%r9),%ecx
  2537. addl 12(%r9),%edx
  2538. movl %eax,0(%r9)
  2539. addl 16(%r9),%ebp
  2540. movl %esi,4(%r9)
  2541. movl %esi,%ebx
  2542. movl %ecx,8(%r9)
  2543. movl %ecx,%edi
  2544. movl %edx,12(%r9)
  2545. xorl %edx,%edi
  2546. movl %ebp,16(%r9)
  2547. andl %edi,%esi
  2548. jmp .Loop_avx
  2549. .Ldone_avx:
  2550. addl 16(%rsp),%ebx
  2551. xorl %ebp,%esi
  2552. movl %ecx,%edi
  2553. shldl $5,%ecx,%ecx
  2554. addl %esi,%ebx
  2555. xorl %ebp,%edi
  2556. shrdl $7,%edx,%edx
  2557. addl %ecx,%ebx
  2558. addl 20(%rsp),%eax
  2559. xorl %edx,%edi
  2560. movl %ebx,%esi
  2561. shldl $5,%ebx,%ebx
  2562. addl %edi,%eax
  2563. xorl %edx,%esi
  2564. shrdl $7,%ecx,%ecx
  2565. addl %ebx,%eax
  2566. addl 24(%rsp),%ebp
  2567. vaesenc %xmm14,%xmm12,%xmm12
  2568. vmovups 16(%r15),%xmm15
  2569. xorl %ecx,%esi
  2570. movl %eax,%edi
  2571. shldl $5,%eax,%eax
  2572. addl %esi,%ebp
  2573. xorl %ecx,%edi
  2574. shrdl $7,%ebx,%ebx
  2575. addl %eax,%ebp
  2576. addl 28(%rsp),%edx
  2577. xorl %ebx,%edi
  2578. movl %ebp,%esi
  2579. shldl $5,%ebp,%ebp
  2580. addl %edi,%edx
  2581. xorl %ebx,%esi
  2582. shrdl $7,%eax,%eax
  2583. addl %ebp,%edx
  2584. addl 32(%rsp),%ecx
  2585. xorl %eax,%esi
  2586. movl %edx,%edi
  2587. shldl $5,%edx,%edx
  2588. addl %esi,%ecx
  2589. vaesenc %xmm15,%xmm12,%xmm12
  2590. vmovups 32(%r15),%xmm14
  2591. xorl %eax,%edi
  2592. shrdl $7,%ebp,%ebp
  2593. addl %edx,%ecx
  2594. addl 36(%rsp),%ebx
  2595. xorl %ebp,%edi
  2596. movl %ecx,%esi
  2597. shldl $5,%ecx,%ecx
  2598. addl %edi,%ebx
  2599. xorl %ebp,%esi
  2600. shrdl $7,%edx,%edx
  2601. addl %ecx,%ebx
  2602. addl 40(%rsp),%eax
  2603. xorl %edx,%esi
  2604. movl %ebx,%edi
  2605. shldl $5,%ebx,%ebx
  2606. addl %esi,%eax
  2607. xorl %edx,%edi
  2608. shrdl $7,%ecx,%ecx
  2609. addl %ebx,%eax
  2610. addl 44(%rsp),%ebp
  2611. vaesenc %xmm14,%xmm12,%xmm12
  2612. vmovups 48(%r15),%xmm15
  2613. xorl %ecx,%edi
  2614. movl %eax,%esi
  2615. shldl $5,%eax,%eax
  2616. addl %edi,%ebp
  2617. xorl %ecx,%esi
  2618. shrdl $7,%ebx,%ebx
  2619. addl %eax,%ebp
  2620. addl 48(%rsp),%edx
  2621. xorl %ebx,%esi
  2622. movl %ebp,%edi
  2623. shldl $5,%ebp,%ebp
  2624. addl %esi,%edx
  2625. xorl %ebx,%edi
  2626. shrdl $7,%eax,%eax
  2627. addl %ebp,%edx
  2628. addl 52(%rsp),%ecx
  2629. xorl %eax,%edi
  2630. movl %edx,%esi
  2631. shldl $5,%edx,%edx
  2632. addl %edi,%ecx
  2633. cmpl $11,%r8d
  2634. jb .Lvaesenclast10
  2635. vaesenc %xmm15,%xmm12,%xmm12
  2636. vmovups 64(%r15),%xmm14
  2637. vaesenc %xmm14,%xmm12,%xmm12
  2638. vmovups 80(%r15),%xmm15
  2639. je .Lvaesenclast10
  2640. vaesenc %xmm15,%xmm12,%xmm12
  2641. vmovups 96(%r15),%xmm14
  2642. vaesenc %xmm14,%xmm12,%xmm12
  2643. vmovups 112(%r15),%xmm15
  2644. .Lvaesenclast10:
  2645. vaesenclast %xmm15,%xmm12,%xmm12
  2646. vmovups -112(%r15),%xmm15
  2647. vmovups 16-112(%r15),%xmm14
  2648. xorl %eax,%esi
  2649. shrdl $7,%ebp,%ebp
  2650. addl %edx,%ecx
  2651. addl 56(%rsp),%ebx
  2652. xorl %ebp,%esi
  2653. movl %ecx,%edi
  2654. shldl $5,%ecx,%ecx
  2655. addl %esi,%ebx
  2656. xorl %ebp,%edi
  2657. shrdl $7,%edx,%edx
  2658. addl %ecx,%ebx
  2659. addl 60(%rsp),%eax
  2660. xorl %edx,%edi
  2661. movl %ebx,%esi
  2662. shldl $5,%ebx,%ebx
  2663. addl %edi,%eax
  2664. shrdl $7,%ecx,%ecx
  2665. addl %ebx,%eax
  2666. vmovups %xmm12,48(%r13,%r12,1)
  2667. movq 88(%rsp),%r8
  2668. addl 0(%r9),%eax
  2669. addl 4(%r9),%esi
  2670. addl 8(%r9),%ecx
  2671. movl %eax,0(%r9)
  2672. addl 12(%r9),%edx
  2673. movl %esi,4(%r9)
  2674. addl 16(%r9),%ebp
  2675. movl %ecx,8(%r9)
  2676. movl %edx,12(%r9)
  2677. movl %ebp,16(%r9)
  2678. vmovups %xmm12,(%r8)
  2679. vzeroall
  2680. leaq 104(%rsp),%rsi
  2681. .cfi_def_cfa %rsi,56
  2682. movq 0(%rsi),%r15
  2683. .cfi_restore %r15
  2684. movq 8(%rsi),%r14
  2685. .cfi_restore %r14
  2686. movq 16(%rsi),%r13
  2687. .cfi_restore %r13
  2688. movq 24(%rsi),%r12
  2689. .cfi_restore %r12
  2690. movq 32(%rsi),%rbp
  2691. .cfi_restore %rbp
  2692. movq 40(%rsi),%rbx
  2693. .cfi_restore %rbx
  2694. leaq 48(%rsi),%rsp
  2695. .cfi_def_cfa %rsp,8
  2696. .Lepilogue_avx:
  2697. .byte 0xf3,0xc3
  2698. .cfi_endproc
  2699. .size aesni_cbc_sha1_enc_avx,.-aesni_cbc_sha1_enc_avx
  2700. .align 64
  2701. K_XX_XX:
  2702. .long 0x5a827999,0x5a827999,0x5a827999,0x5a827999
  2703. .long 0x6ed9eba1,0x6ed9eba1,0x6ed9eba1,0x6ed9eba1
  2704. .long 0x8f1bbcdc,0x8f1bbcdc,0x8f1bbcdc,0x8f1bbcdc
  2705. .long 0xca62c1d6,0xca62c1d6,0xca62c1d6,0xca62c1d6
  2706. .long 0x00010203,0x04050607,0x08090a0b,0x0c0d0e0f
  2707. .byte 0xf,0xe,0xd,0xc,0xb,0xa,0x9,0x8,0x7,0x6,0x5,0x4,0x3,0x2,0x1,0x0
  2708. .byte 65,69,83,78,73,45,67,66,67,43,83,72,65,49,32,115,116,105,116,99,104,32,102,111,114,32,120,56,54,95,54,52,44,32,67,82,89,80,84,79,71,65,77,83,32,98,121,32,60,97,112,112,114,111,64,111,112,101,110,115,115,108,46,111,114,103,62,0
  2709. .align 64
  2710. .type aesni_cbc_sha1_enc_shaext,@function
  2711. .align 32
  2712. aesni_cbc_sha1_enc_shaext:
  2713. .cfi_startproc
  2714. movq 8(%rsp),%r10
  2715. movdqu (%r9),%xmm8
  2716. movd 16(%r9),%xmm9
  2717. movdqa K_XX_XX+80(%rip),%xmm7
  2718. movl 240(%rcx),%r11d
  2719. subq %rdi,%rsi
  2720. movups (%rcx),%xmm15
  2721. movups (%r8),%xmm2
  2722. movups 16(%rcx),%xmm0
  2723. leaq 112(%rcx),%rcx
  2724. pshufd $27,%xmm8,%xmm8
  2725. pshufd $27,%xmm9,%xmm9
  2726. jmp .Loop_shaext
  2727. .align 16
  2728. .Loop_shaext:
  2729. movups 0(%rdi),%xmm14
  2730. xorps %xmm15,%xmm14
  2731. xorps %xmm14,%xmm2
  2732. movups -80(%rcx),%xmm1
  2733. .byte 102,15,56,220,208
  2734. movdqu (%r10),%xmm3
  2735. movdqa %xmm9,%xmm12
  2736. .byte 102,15,56,0,223
  2737. movdqu 16(%r10),%xmm4
  2738. movdqa %xmm8,%xmm11
  2739. movups -64(%rcx),%xmm0
  2740. .byte 102,15,56,220,209
  2741. .byte 102,15,56,0,231
  2742. paddd %xmm3,%xmm9
  2743. movdqu 32(%r10),%xmm5
  2744. leaq 64(%r10),%r10
  2745. pxor %xmm12,%xmm3
  2746. movups -48(%rcx),%xmm1
  2747. .byte 102,15,56,220,208
  2748. pxor %xmm12,%xmm3
  2749. movdqa %xmm8,%xmm10
  2750. .byte 102,15,56,0,239
  2751. .byte 69,15,58,204,193,0
  2752. .byte 68,15,56,200,212
  2753. movups -32(%rcx),%xmm0
  2754. .byte 102,15,56,220,209
  2755. .byte 15,56,201,220
  2756. movdqu -16(%r10),%xmm6
  2757. movdqa %xmm8,%xmm9
  2758. .byte 102,15,56,0,247
  2759. movups -16(%rcx),%xmm1
  2760. .byte 102,15,56,220,208
  2761. .byte 69,15,58,204,194,0
  2762. .byte 68,15,56,200,205
  2763. pxor %xmm5,%xmm3
  2764. .byte 15,56,201,229
  2765. movups 0(%rcx),%xmm0
  2766. .byte 102,15,56,220,209
  2767. movdqa %xmm8,%xmm10
  2768. .byte 69,15,58,204,193,0
  2769. .byte 68,15,56,200,214
  2770. movups 16(%rcx),%xmm1
  2771. .byte 102,15,56,220,208
  2772. .byte 15,56,202,222
  2773. pxor %xmm6,%xmm4
  2774. .byte 15,56,201,238
  2775. movups 32(%rcx),%xmm0
  2776. .byte 102,15,56,220,209
  2777. movdqa %xmm8,%xmm9
  2778. .byte 69,15,58,204,194,0
  2779. .byte 68,15,56,200,203
  2780. movups 48(%rcx),%xmm1
  2781. .byte 102,15,56,220,208
  2782. .byte 15,56,202,227
  2783. pxor %xmm3,%xmm5
  2784. .byte 15,56,201,243
  2785. cmpl $11,%r11d
  2786. jb .Laesenclast11
  2787. movups 64(%rcx),%xmm0
  2788. .byte 102,15,56,220,209
  2789. movups 80(%rcx),%xmm1
  2790. .byte 102,15,56,220,208
  2791. je .Laesenclast11
  2792. movups 96(%rcx),%xmm0
  2793. .byte 102,15,56,220,209
  2794. movups 112(%rcx),%xmm1
  2795. .byte 102,15,56,220,208
  2796. .Laesenclast11:
  2797. .byte 102,15,56,221,209
  2798. movups 16-112(%rcx),%xmm0
  2799. movdqa %xmm8,%xmm10
  2800. .byte 69,15,58,204,193,0
  2801. .byte 68,15,56,200,212
  2802. movups 16(%rdi),%xmm14
  2803. xorps %xmm15,%xmm14
  2804. movups %xmm2,0(%rsi,%rdi,1)
  2805. xorps %xmm14,%xmm2
  2806. movups -80(%rcx),%xmm1
  2807. .byte 102,15,56,220,208
  2808. .byte 15,56,202,236
  2809. pxor %xmm4,%xmm6
  2810. .byte 15,56,201,220
  2811. movups -64(%rcx),%xmm0
  2812. .byte 102,15,56,220,209
  2813. movdqa %xmm8,%xmm9
  2814. .byte 69,15,58,204,194,1
  2815. .byte 68,15,56,200,205
  2816. movups -48(%rcx),%xmm1
  2817. .byte 102,15,56,220,208
  2818. .byte 15,56,202,245
  2819. pxor %xmm5,%xmm3
  2820. .byte 15,56,201,229
  2821. movups -32(%rcx),%xmm0
  2822. .byte 102,15,56,220,209
  2823. movdqa %xmm8,%xmm10
  2824. .byte 69,15,58,204,193,1
  2825. .byte 68,15,56,200,214
  2826. movups -16(%rcx),%xmm1
  2827. .byte 102,15,56,220,208
  2828. .byte 15,56,202,222
  2829. pxor %xmm6,%xmm4
  2830. .byte 15,56,201,238
  2831. movups 0(%rcx),%xmm0
  2832. .byte 102,15,56,220,209
  2833. movdqa %xmm8,%xmm9
  2834. .byte 69,15,58,204,194,1
  2835. .byte 68,15,56,200,203
  2836. movups 16(%rcx),%xmm1
  2837. .byte 102,15,56,220,208
  2838. .byte 15,56,202,227
  2839. pxor %xmm3,%xmm5
  2840. .byte 15,56,201,243
  2841. movups 32(%rcx),%xmm0
  2842. .byte 102,15,56,220,209
  2843. movdqa %xmm8,%xmm10
  2844. .byte 69,15,58,204,193,1
  2845. .byte 68,15,56,200,212
  2846. movups 48(%rcx),%xmm1
  2847. .byte 102,15,56,220,208
  2848. .byte 15,56,202,236
  2849. pxor %xmm4,%xmm6
  2850. .byte 15,56,201,220
  2851. cmpl $11,%r11d
  2852. jb .Laesenclast12
  2853. movups 64(%rcx),%xmm0
  2854. .byte 102,15,56,220,209
  2855. movups 80(%rcx),%xmm1
  2856. .byte 102,15,56,220,208
  2857. je .Laesenclast12
  2858. movups 96(%rcx),%xmm0
  2859. .byte 102,15,56,220,209
  2860. movups 112(%rcx),%xmm1
  2861. .byte 102,15,56,220,208
  2862. .Laesenclast12:
  2863. .byte 102,15,56,221,209
  2864. movups 16-112(%rcx),%xmm0
  2865. movdqa %xmm8,%xmm9
  2866. .byte 69,15,58,204,194,1
  2867. .byte 68,15,56,200,205
  2868. movups 32(%rdi),%xmm14
  2869. xorps %xmm15,%xmm14
  2870. movups %xmm2,16(%rsi,%rdi,1)
  2871. xorps %xmm14,%xmm2
  2872. movups -80(%rcx),%xmm1
  2873. .byte 102,15,56,220,208
  2874. .byte 15,56,202,245
  2875. pxor %xmm5,%xmm3
  2876. .byte 15,56,201,229
  2877. movups -64(%rcx),%xmm0
  2878. .byte 102,15,56,220,209
  2879. movdqa %xmm8,%xmm10
  2880. .byte 69,15,58,204,193,2
  2881. .byte 68,15,56,200,214
  2882. movups -48(%rcx),%xmm1
  2883. .byte 102,15,56,220,208
  2884. .byte 15,56,202,222
  2885. pxor %xmm6,%xmm4
  2886. .byte 15,56,201,238
  2887. movups -32(%rcx),%xmm0
  2888. .byte 102,15,56,220,209
  2889. movdqa %xmm8,%xmm9
  2890. .byte 69,15,58,204,194,2
  2891. .byte 68,15,56,200,203
  2892. movups -16(%rcx),%xmm1
  2893. .byte 102,15,56,220,208
  2894. .byte 15,56,202,227
  2895. pxor %xmm3,%xmm5
  2896. .byte 15,56,201,243
  2897. movups 0(%rcx),%xmm0
  2898. .byte 102,15,56,220,209
  2899. movdqa %xmm8,%xmm10
  2900. .byte 69,15,58,204,193,2
  2901. .byte 68,15,56,200,212
  2902. movups 16(%rcx),%xmm1
  2903. .byte 102,15,56,220,208
  2904. .byte 15,56,202,236
  2905. pxor %xmm4,%xmm6
  2906. .byte 15,56,201,220
  2907. movups 32(%rcx),%xmm0
  2908. .byte 102,15,56,220,209
  2909. movdqa %xmm8,%xmm9
  2910. .byte 69,15,58,204,194,2
  2911. .byte 68,15,56,200,205
  2912. movups 48(%rcx),%xmm1
  2913. .byte 102,15,56,220,208
  2914. .byte 15,56,202,245
  2915. pxor %xmm5,%xmm3
  2916. .byte 15,56,201,229
  2917. cmpl $11,%r11d
  2918. jb .Laesenclast13
  2919. movups 64(%rcx),%xmm0
  2920. .byte 102,15,56,220,209
  2921. movups 80(%rcx),%xmm1
  2922. .byte 102,15,56,220,208
  2923. je .Laesenclast13
  2924. movups 96(%rcx),%xmm0
  2925. .byte 102,15,56,220,209
  2926. movups 112(%rcx),%xmm1
  2927. .byte 102,15,56,220,208
  2928. .Laesenclast13:
  2929. .byte 102,15,56,221,209
  2930. movups 16-112(%rcx),%xmm0
  2931. movdqa %xmm8,%xmm10
  2932. .byte 69,15,58,204,193,2
  2933. .byte 68,15,56,200,214
  2934. movups 48(%rdi),%xmm14
  2935. xorps %xmm15,%xmm14
  2936. movups %xmm2,32(%rsi,%rdi,1)
  2937. xorps %xmm14,%xmm2
  2938. movups -80(%rcx),%xmm1
  2939. .byte 102,15,56,220,208
  2940. .byte 15,56,202,222
  2941. pxor %xmm6,%xmm4
  2942. .byte 15,56,201,238
  2943. movups -64(%rcx),%xmm0
  2944. .byte 102,15,56,220,209
  2945. movdqa %xmm8,%xmm9
  2946. .byte 69,15,58,204,194,3
  2947. .byte 68,15,56,200,203
  2948. movups -48(%rcx),%xmm1
  2949. .byte 102,15,56,220,208
  2950. .byte 15,56,202,227
  2951. pxor %xmm3,%xmm5
  2952. .byte 15,56,201,243
  2953. movups -32(%rcx),%xmm0
  2954. .byte 102,15,56,220,209
  2955. movdqa %xmm8,%xmm10
  2956. .byte 69,15,58,204,193,3
  2957. .byte 68,15,56,200,212
  2958. .byte 15,56,202,236
  2959. pxor %xmm4,%xmm6
  2960. movups -16(%rcx),%xmm1
  2961. .byte 102,15,56,220,208
  2962. movdqa %xmm8,%xmm9
  2963. .byte 69,15,58,204,194,3
  2964. .byte 68,15,56,200,205
  2965. .byte 15,56,202,245
  2966. movups 0(%rcx),%xmm0
  2967. .byte 102,15,56,220,209
  2968. movdqa %xmm12,%xmm5
  2969. movdqa %xmm8,%xmm10
  2970. .byte 69,15,58,204,193,3
  2971. .byte 68,15,56,200,214
  2972. movups 16(%rcx),%xmm1
  2973. .byte 102,15,56,220,208
  2974. movdqa %xmm8,%xmm9
  2975. .byte 69,15,58,204,194,3
  2976. .byte 68,15,56,200,205
  2977. movups 32(%rcx),%xmm0
  2978. .byte 102,15,56,220,209
  2979. movups 48(%rcx),%xmm1
  2980. .byte 102,15,56,220,208
  2981. cmpl $11,%r11d
  2982. jb .Laesenclast14
  2983. movups 64(%rcx),%xmm0
  2984. .byte 102,15,56,220,209
  2985. movups 80(%rcx),%xmm1
  2986. .byte 102,15,56,220,208
  2987. je .Laesenclast14
  2988. movups 96(%rcx),%xmm0
  2989. .byte 102,15,56,220,209
  2990. movups 112(%rcx),%xmm1
  2991. .byte 102,15,56,220,208
  2992. .Laesenclast14:
  2993. .byte 102,15,56,221,209
  2994. movups 16-112(%rcx),%xmm0
  2995. decq %rdx
  2996. paddd %xmm11,%xmm8
  2997. movups %xmm2,48(%rsi,%rdi,1)
  2998. leaq 64(%rdi),%rdi
  2999. jnz .Loop_shaext
  3000. pshufd $27,%xmm8,%xmm8
  3001. pshufd $27,%xmm9,%xmm9
  3002. movups %xmm2,(%r8)
  3003. movdqu %xmm8,(%r9)
  3004. movd %xmm9,16(%r9)
  3005. .byte 0xf3,0xc3
  3006. .cfi_endproc
  3007. .size aesni_cbc_sha1_enc_shaext,.-aesni_cbc_sha1_enc_shaext