summaryrefslogtreecommitdiff
path: root/libs/libsodium/src/crypto_stream/salsa20/xmm6/salsa20_xmm6-asm.S
blob: 0406b29da99cd2684a16fd9bc3237ea2d529e55a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
#ifdef HAVE_AMD64_ASM

#include "private/asm_cet.h"
#include "salsa20_xmm6-asm_namespace.h"

.text
.p2align 5

#ifdef ASM_HIDE_SYMBOL
ASM_HIDE_SYMBOL stream_salsa20_xmm6
ASM_HIDE_SYMBOL _stream_salsa20_xmm6
#endif
.globl  stream_salsa20_xmm6
.globl _stream_salsa20_xmm6
#ifdef __ELF__
.type  stream_salsa20_xmm6, @function
.type _stream_salsa20_xmm6, @function
#endif
stream_salsa20_xmm6:
_stream_salsa20_xmm6:

_CET_ENDBR
mov %rsp,%r11
and $31,%r11
add $512,%r11
sub %r11,%rsp
movq %r11,416(%rsp)
movq %r12,424(%rsp)
movq %r13,432(%rsp)
movq %r14,440(%rsp)
movq %r15,448(%rsp)
movq %rbx,456(%rsp)
movq %rbp,464(%rsp)
mov  %rsi,%r9
mov  %rdi,%rdi
mov  %rdi,%rsi
mov  %rdx,%rdx
mov  %rcx,%r10
cmp  $0,%r9
jbe ._done
mov  $0,%rax
mov  %r9,%rcx
rep stosb
sub  %r9,%rdi
movq $0,472(%rsp)
jmp ._start

.text
.p2align 5

#ifdef ASM_HIDE_SYMBOL
ASM_HIDE_SYMBOL stream_salsa20_xmm6_xor_ic
ASM_HIDE_SYMBOL _stream_salsa20_xmm6_xor_ic
#endif
.globl  stream_salsa20_xmm6_xor_ic
.globl _stream_salsa20_xmm6_xor_ic
#ifdef __ELF__
.type  stream_salsa20_xmm6_xor_ic, @function
.type _stream_salsa20_xmm6_xor_ic, @function
#endif
stream_salsa20_xmm6_xor_ic:
_stream_salsa20_xmm6_xor_ic:

_CET_ENDBR
mov %rsp,%r11
and $31,%r11
add $512,%r11
sub %r11,%rsp
movq %r11,416(%rsp)
movq %r12,424(%rsp)
movq %r13,432(%rsp)
movq %r14,440(%rsp)
movq %r15,448(%rsp)
movq %rbx,456(%rsp)
movq %rbp,464(%rsp)
mov  %rdi,%rdi
mov  %rsi,%rsi
mov  %r9,%r10
movq %r8,472(%rsp)
mov  %rdx,%r9
mov  %rcx,%rdx
cmp  $0,%r9
jbe ._done

._start:
movl   20(%r10),%ecx
movl   0(%r10),%r8d
movl   0(%rdx),%eax
movl   16(%r10),%r11d
movl %ecx,64(%rsp)
movl %r8d,4+64(%rsp)
movl %eax,8+64(%rsp)
movl %r11d,12+64(%rsp)
movl   24(%r10),%r8d
movl   4(%r10),%eax
movl   4(%rdx),%edx
movq 472(%rsp),%rcx
movl %ecx,80(%rsp)
movl %r8d,4+80(%rsp)
movl %eax,8+80(%rsp)
movl %edx,12+80(%rsp)
movl   12(%r10),%edx
shr  $32,%rcx
movl   28(%r10),%r8d
movl   8(%r10),%eax
movl %edx,96(%rsp)
movl %ecx,4+96(%rsp)
movl %r8d,8+96(%rsp)
movl %eax,12+96(%rsp)
mov  $1634760805,%rdx
mov  $857760878,%rcx
mov  $2036477234,%r8
mov  $1797285236,%rax
movl %edx,112(%rsp)
movl %ecx,4+112(%rsp)
movl %r8d,8+112(%rsp)
movl %eax,12+112(%rsp)
cmp  $256,%r9
jb ._bytesbetween1and255
movdqa 112(%rsp),%xmm0
pshufd $0x55,%xmm0,%xmm1
pshufd $0xaa,%xmm0,%xmm2
pshufd $0xff,%xmm0,%xmm3
pshufd $0x00,%xmm0,%xmm0
movdqa %xmm1,128(%rsp)
movdqa %xmm2,144(%rsp)
movdqa %xmm3,160(%rsp)
movdqa %xmm0,176(%rsp)
movdqa 64(%rsp),%xmm0
pshufd $0xaa,%xmm0,%xmm1
pshufd $0xff,%xmm0,%xmm2
pshufd $0x00,%xmm0,%xmm3
pshufd $0x55,%xmm0,%xmm0
movdqa %xmm1,192(%rsp)
movdqa %xmm2,208(%rsp)
movdqa %xmm3,224(%rsp)
movdqa %xmm0,240(%rsp)
movdqa 80(%rsp),%xmm0
pshufd $0xff,%xmm0,%xmm1
pshufd $0x55,%xmm0,%xmm2
pshufd $0xaa,%xmm0,%xmm0
movdqa %xmm1,256(%rsp)
movdqa %xmm2,272(%rsp)
movdqa %xmm0,288(%rsp)
movdqa 96(%rsp),%xmm0
pshufd $0x00,%xmm0,%xmm1
pshufd $0xaa,%xmm0,%xmm2
pshufd $0xff,%xmm0,%xmm0
movdqa %xmm1,304(%rsp)
movdqa %xmm2,320(%rsp)
movdqa %xmm0,336(%rsp)

.p2align 4
._bytesatleast256:
movq 472(%rsp),%rdx
mov  %rdx,%rcx
shr  $32,%rcx
movl %edx,352(%rsp)
movl %ecx,368(%rsp)
add  $1,%rdx
mov  %rdx,%rcx
shr  $32,%rcx
movl %edx,4+352(%rsp)
movl %ecx,4+368(%rsp)
add  $1,%rdx
mov  %rdx,%rcx
shr  $32,%rcx
movl %edx,8+352(%rsp)
movl %ecx,8+368(%rsp)
add  $1,%rdx
mov  %rdx,%rcx
shr  $32,%rcx
movl %edx,12+352(%rsp)
movl %ecx,12+368(%rsp)
add  $1,%rdx
mov  %rdx,%rcx
shr  $32,%rcx
movl %edx,80(%rsp)
movl %ecx,4+96(%rsp)
movq %rdx,472(%rsp)
movq %r9,480(%rsp)
mov  $20,%rdx
movdqa 128(%rsp),%xmm0
movdqa 144(%rsp),%xmm1
movdqa 160(%rsp),%xmm2
movdqa 320(%rsp),%xmm3
movdqa 336(%rsp),%xmm4
movdqa 192(%rsp),%xmm5
movdqa 208(%rsp),%xmm6
movdqa 240(%rsp),%xmm7
movdqa 256(%rsp),%xmm8
movdqa 272(%rsp),%xmm9
movdqa 288(%rsp),%xmm10
movdqa 368(%rsp),%xmm11
movdqa 176(%rsp),%xmm12
movdqa 224(%rsp),%xmm13
movdqa 304(%rsp),%xmm14
movdqa 352(%rsp),%xmm15

.p2align 4
._mainloop1:
movdqa %xmm1,384(%rsp)
movdqa %xmm2,400(%rsp)
movdqa %xmm13,%xmm1
paddd %xmm12,%xmm1
movdqa %xmm1,%xmm2
pslld $7,%xmm1
pxor  %xmm1,%xmm14
psrld $25,%xmm2
pxor  %xmm2,%xmm14
movdqa %xmm7,%xmm1
paddd %xmm0,%xmm1
movdqa %xmm1,%xmm2
pslld $7,%xmm1
pxor  %xmm1,%xmm11
psrld $25,%xmm2
pxor  %xmm2,%xmm11
movdqa %xmm12,%xmm1
paddd %xmm14,%xmm1
movdqa %xmm1,%xmm2
pslld $9,%xmm1
pxor  %xmm1,%xmm15
psrld $23,%xmm2
pxor  %xmm2,%xmm15
movdqa %xmm0,%xmm1
paddd %xmm11,%xmm1
movdqa %xmm1,%xmm2
pslld $9,%xmm1
pxor  %xmm1,%xmm9
psrld $23,%xmm2
pxor  %xmm2,%xmm9
movdqa %xmm14,%xmm1
paddd %xmm15,%xmm1
movdqa %xmm1,%xmm2
pslld $13,%xmm1
pxor  %xmm1,%xmm13
psrld $19,%xmm2
pxor  %xmm2,%xmm13
movdqa %xmm11,%xmm1
paddd %xmm9,%xmm1
movdqa %xmm1,%xmm2
pslld $13,%xmm1
pxor  %xmm1,%xmm7
psrld $19,%xmm2
pxor  %xmm2,%xmm7
movdqa %xmm15,%xmm1
paddd %xmm13,%xmm1
movdqa %xmm1,%xmm2
pslld $18,%xmm1
pxor  %xmm1,%xmm12
psrld $14,%xmm2
pxor  %xmm2,%xmm12
movdqa 384(%rsp),%xmm1
movdqa %xmm12,384(%rsp)
movdqa %xmm9,%xmm2
paddd %xmm7,%xmm2
movdqa %xmm2,%xmm12
pslld $18,%xmm2
pxor  %xmm2,%xmm0
psrld $14,%xmm12
pxor  %xmm12,%xmm0
movdqa %xmm5,%xmm2
paddd %xmm1,%xmm2
movdqa %xmm2,%xmm12
pslld $7,%xmm2
pxor  %xmm2,%xmm3
psrld $25,%xmm12
pxor  %xmm12,%xmm3
movdqa 400(%rsp),%xmm2
movdqa %xmm0,400(%rsp)
movdqa %xmm6,%xmm0
paddd %xmm2,%xmm0
movdqa %xmm0,%xmm12
pslld $7,%xmm0
pxor  %xmm0,%xmm4
psrld $25,%xmm12
pxor  %xmm12,%xmm4
movdqa %xmm1,%xmm0
paddd %xmm3,%xmm0
movdqa %xmm0,%xmm12
pslld $9,%xmm0
pxor  %xmm0,%xmm10
psrld $23,%xmm12
pxor  %xmm12,%xmm10
movdqa %xmm2,%xmm0
paddd %xmm4,%xmm0
movdqa %xmm0,%xmm12
pslld $9,%xmm0
pxor  %xmm0,%xmm8
psrld $23,%xmm12
pxor  %xmm12,%xmm8
movdqa %xmm3,%xmm0
paddd %xmm10,%xmm0
movdqa %xmm0,%xmm12
pslld $13,%xmm0
pxor  %xmm0,%xmm5
psrld $19,%xmm12
pxor  %xmm12,%xmm5
movdqa %xmm4,%xmm0
paddd %xmm8,%xmm0
movdqa %xmm0,%xmm12
pslld $13,%xmm0
pxor  %xmm0,%xmm6
psrld $19,%xmm12
pxor  %xmm12,%xmm6
movdqa %xmm10,%xmm0
paddd %xmm5,%xmm0
movdqa %xmm0,%xmm12
pslld $18,%xmm0
pxor  %xmm0,%xmm1
psrld $14,%xmm12
pxor  %xmm12,%xmm1
movdqa 384(%rsp),%xmm0
movdqa %xmm1,384(%rsp)
movdqa %xmm4,%xmm1
paddd %xmm0,%xmm1
movdqa %xmm1,%xmm12
pslld $7,%xmm1
pxor  %xmm1,%xmm7
psrld $25,%xmm12
pxor  %xmm12,%xmm7
movdqa %xmm8,%xmm1
paddd %xmm6,%xmm1
movdqa %xmm1,%xmm12
pslld $18,%xmm1
pxor  %xmm1,%xmm2
psrld $14,%xmm12
pxor  %xmm12,%xmm2
movdqa 400(%rsp),%xmm12
movdqa %xmm2,400(%rsp)
movdqa %xmm14,%xmm1
paddd %xmm12,%xmm1
movdqa %xmm1,%xmm2
pslld $7,%xmm1
pxor  %xmm1,%xmm5
psrld $25,%xmm2
pxor  %xmm2,%xmm5
movdqa %xmm0,%xmm1
paddd %xmm7,%xmm1
movdqa %xmm1,%xmm2
pslld $9,%xmm1
pxor  %xmm1,%xmm10
psrld $23,%xmm2
pxor  %xmm2,%xmm10
movdqa %xmm12,%xmm1
paddd %xmm5,%xmm1
movdqa %xmm1,%xmm2
pslld $9,%xmm1
pxor  %xmm1,%xmm8
psrld $23,%xmm2
pxor  %xmm2,%xmm8
movdqa %xmm7,%xmm1
paddd %xmm10,%xmm1
movdqa %xmm1,%xmm2
pslld $13,%xmm1
pxor  %xmm1,%xmm4
psrld $19,%xmm2
pxor  %xmm2,%xmm4
movdqa %xmm5,%xmm1
paddd %xmm8,%xmm1
movdqa %xmm1,%xmm2
pslld $13,%xmm1
pxor  %xmm1,%xmm14
psrld $19,%xmm2
pxor  %xmm2,%xmm14
movdqa %xmm10,%xmm1
paddd %xmm4,%xmm1
movdqa %xmm1,%xmm2
pslld $18,%xmm1
pxor  %xmm1,%xmm0
psrld $14,%xmm2
pxor  %xmm2,%xmm0
movdqa 384(%rsp),%xmm1
movdqa %xmm0,384(%rsp)
movdqa %xmm8,%xmm0
paddd %xmm14,%xmm0
movdqa %xmm0,%xmm2
pslld $18,%xmm0
pxor  %xmm0,%xmm12
psrld $14,%xmm2
pxor  %xmm2,%xmm12
movdqa %xmm11,%xmm0
paddd %xmm1,%xmm0
movdqa %xmm0,%xmm2
pslld $7,%xmm0
pxor  %xmm0,%xmm6
psrld $25,%xmm2
pxor  %xmm2,%xmm6
movdqa 400(%rsp),%xmm2
movdqa %xmm12,400(%rsp)
movdqa %xmm3,%xmm0
paddd %xmm2,%xmm0
movdqa %xmm0,%xmm12
pslld $7,%xmm0
pxor  %xmm0,%xmm13
psrld $25,%xmm12
pxor  %xmm12,%xmm13
movdqa %xmm1,%xmm0
paddd %xmm6,%xmm0
movdqa %xmm0,%xmm12
pslld $9,%xmm0
pxor  %xmm0,%xmm15
psrld $23,%xmm12
pxor  %xmm12,%xmm15
movdqa %xmm2,%xmm0
paddd %xmm13,%xmm0
movdqa %xmm0,%xmm12
pslld $9,%xmm0
pxor  %xmm0,%xmm9
psrld $23,%xmm12
pxor  %xmm12,%xmm9
movdqa %xmm6,%xmm0
paddd %xmm15,%xmm0
movdqa %xmm0,%xmm12
pslld $13,%xmm0
pxor  %xmm0,%xmm11
psrld $19,%xmm12
pxor  %xmm12,%xmm11
movdqa %xmm13,%xmm0
paddd %xmm9,%xmm0
movdqa %xmm0,%xmm12
pslld $13,%xmm0
pxor  %xmm0,%xmm3
psrld $19,%xmm12
pxor  %xmm12,%xmm3
movdqa %xmm15,%xmm0
paddd %xmm11,%xmm0
movdqa %xmm0,%xmm12
pslld $18,%xmm0
pxor  %xmm0,%xmm1
psrld $14,%xmm12
pxor  %xmm12,%xmm1
movdqa %xmm9,%xmm0
paddd %xmm3,%xmm0
movdqa %xmm0,%xmm12
pslld $18,%xmm0
pxor  %xmm0,%xmm2
psrld $14,%xmm12
pxor  %xmm12,%xmm2
movdqa 384(%rsp),%xmm12
movdqa 400(%rsp),%xmm0
sub  $2,%rdx
ja ._mainloop1

paddd 176(%rsp),%xmm12
paddd 240(%rsp),%xmm7
paddd 288(%rsp),%xmm10
paddd 336(%rsp),%xmm4
movd   %xmm12,%rdx
movd   %xmm7,%rcx
movd   %xmm10,%r8
movd   %xmm4,%r9
pshufd $0x39,%xmm12,%xmm12
pshufd $0x39,%xmm7,%xmm7
pshufd $0x39,%xmm10,%xmm10
pshufd $0x39,%xmm4,%xmm4
xorl 0(%rsi),%edx
xorl 4(%rsi),%ecx
xorl 8(%rsi),%r8d
xorl 12(%rsi),%r9d
movl   %edx,0(%rdi)
movl   %ecx,4(%rdi)
movl   %r8d,8(%rdi)
movl   %r9d,12(%rdi)
movd   %xmm12,%rdx
movd   %xmm7,%rcx
movd   %xmm10,%r8
movd   %xmm4,%r9
pshufd $0x39,%xmm12,%xmm12
pshufd $0x39,%xmm7,%xmm7
pshufd $0x39,%xmm10,%xmm10
pshufd $0x39,%xmm4,%xmm4
xorl 64(%rsi),%edx
xorl 68(%rsi),%ecx
xorl 72(%rsi),%r8d
xorl 76(%rsi),%r9d
movl   %edx,64(%rdi)
movl   %ecx,68(%rdi)
movl   %r8d,72(%rdi)
movl   %r9d,76(%rdi)
movd   %xmm12,%rdx
movd   %xmm7,%rcx
movd   %xmm10,%r8
movd   %xmm4,%r9
pshufd $0x39,%xmm12,%xmm12
pshufd $0x39,%xmm7,%xmm7
pshufd $0x39,%xmm10,%xmm10
pshufd $0x39,%xmm4,%xmm4
xorl 128(%rsi),%edx
xorl 132(%rsi),%ecx
xorl 136(%rsi),%r8d
xorl 140(%rsi),%r9d
movl   %edx,128(%rdi)
movl   %ecx,132(%rdi)
movl   %r8d,136(%rdi)
movl   %r9d,140(%rdi)
movd   %xmm12,%rdx
movd   %xmm7,%rcx
movd   %xmm10,%r8
movd   %xmm4,%r9
xorl 192(%rsi),%edx
xorl 196(%rsi),%ecx
xorl 200(%rsi),%r8d
xorl 204(%rsi),%r9d
movl   %edx,192(%rdi)
movl   %ecx,196(%rdi)
movl   %r8d,200(%rdi)
movl   %r9d,204(%rdi)
paddd 304(%rsp),%xmm14
paddd 128(%rsp),%xmm0
paddd 192(%rsp),%xmm5
paddd 256(%rsp),%xmm8
movd   %xmm14,%rdx
movd   %xmm0,%rcx
movd   %xmm5,%r8
movd   %xmm8,%r9
pshufd $0x39,%xmm14,%xmm14
pshufd $0x39,%xmm0,%xmm0
pshufd $0x39,%xmm5,%xmm5
pshufd $0x39,%xmm8,%xmm8
xorl 16(%rsi),%edx
xorl 20(%rsi),%ecx
xorl 24(%rsi),%r8d
xorl 28(%rsi),%r9d
movl   %edx,16(%rdi)
movl   %ecx,20(%rdi)
movl   %r8d,24(%rdi)
movl   %r9d,28(%rdi)
movd   %xmm14,%rdx
movd   %xmm0,%rcx
movd   %xmm5,%r8
movd   %xmm8,%r9
pshufd $0x39,%xmm14,%xmm14
pshufd $0x39,%xmm0,%xmm0
pshufd $0x39,%xmm5,%xmm5
pshufd $0x39,%xmm8,%xmm8
xorl 80(%rsi),%edx
xorl 84(%rsi),%ecx
xorl 88(%rsi),%r8d
xorl 92(%rsi),%r9d
movl   %edx,80(%rdi)
movl   %ecx,84(%rdi)
movl   %r8d,88(%rdi)
movl   %r9d,92(%rdi)
movd   %xmm14,%rdx
movd   %xmm0,%rcx
movd   %xmm5,%r8
movd   %xmm8,%r9
pshufd $0x39,%xmm14,%xmm14
pshufd $0x39,%xmm0,%xmm0
pshufd $0x39,%xmm5,%xmm5
pshufd $0x39,%xmm8,%xmm8
xorl 144(%rsi),%edx
xorl 148(%rsi),%ecx
xorl 152(%rsi),%r8d
xorl 156(%rsi),%r9d
movl   %edx,144(%rdi)
movl   %ecx,148(%rdi)
movl   %r8d,152(%rdi)
movl   %r9d,156(%rdi)
movd   %xmm14,%rdx
movd   %xmm0,%rcx
movd   %xmm5,%r8
movd   %xmm8,%r9
xorl 208(%rsi),%edx
xorl 212(%rsi),%ecx
xorl 216(%rsi),%r8d
xorl 220(%rsi),%r9d
movl   %edx,208(%rdi)
movl   %ecx,212(%rdi)
movl   %r8d,216(%rdi)
movl   %r9d,220(%rdi)
paddd 352(%rsp),%xmm15
paddd 368(%rsp),%xmm11
paddd 144(%rsp),%xmm1
paddd 208(%rsp),%xmm6
movd   %xmm15,%rdx
movd   %xmm11,%rcx
movd   %xmm1,%r8
movd   %xmm6,%r9
pshufd $0x39,%xmm15,%xmm15
pshufd $0x39,%xmm11,%xmm11
pshufd $0x39,%xmm1,%xmm1
pshufd $0x39,%xmm6,%xmm6
xorl 32(%rsi),%edx
xorl 36(%rsi),%ecx
xorl 40(%rsi),%r8d
xorl 44(%rsi),%r9d
movl   %edx,32(%rdi)
movl   %ecx,36(%rdi)
movl   %r8d,40(%rdi)
movl   %r9d,44(%rdi)
movd   %xmm15,%rdx
movd   %xmm11,%rcx
movd   %xmm1,%r8
movd   %xmm6,%r9
pshufd $0x39,%xmm15,%xmm15
pshufd $0x39,%xmm11,%xmm11
pshufd $0x39,%xmm1,%xmm1
pshufd $0x39,%xmm6,%xmm6
xorl 96(%rsi),%edx
xorl 100(%rsi),%ecx
xorl 104(%rsi),%r8d
xorl 108(%rsi),%r9d
movl   %edx,96(%rdi)
movl   %ecx,100(%rdi)
movl   %r8d,104(%rdi)
movl   %r9d,108(%rdi)
movd   %xmm15,%rdx
movd   %xmm11,%rcx
movd   %xmm1,%r8
movd   %xmm6,%r9
pshufd $0x39,%xmm15,%xmm15
pshufd $0x39,%xmm11,%xmm11
pshufd $0x39,%xmm1,%xmm1
pshufd $0x39,%xmm6,%xmm6
xorl 160(%rsi),%edx
xorl 164(%rsi),%ecx
xorl 168(%rsi),%r8d
xorl 172(%rsi),%r9d
movl   %edx,160(%rdi)
movl   %ecx,164(%rdi)
movl   %r8d,168(%rdi)
movl   %r9d,172(%rdi)
movd   %xmm15,%rdx
movd   %xmm11,%rcx
movd   %xmm1,%r8
movd   %xmm6,%r9
xorl 224(%rsi),%edx
xorl 228(%rsi),%ecx
xorl 232(%rsi),%r8d
xorl 236(%rsi),%r9d
movl   %edx,224(%rdi)
movl   %ecx,228(%rdi)
movl   %r8d,232(%rdi)
movl   %r9d,236(%rdi)
paddd 224(%rsp),%xmm13
paddd 272(%rsp),%xmm9
paddd 320(%rsp),%xmm3
paddd 160(%rsp),%xmm2
movd   %xmm13,%rdx
movd   %xmm9,%rcx
movd   %xmm3,%r8
movd   %xmm2,%r9
pshufd $0x39,%xmm13,%xmm13
pshufd $0x39,%xmm9,%xmm9
pshufd $0x39,%xmm3,%xmm3
pshufd $0x39,%xmm2,%xmm2
xorl 48(%rsi),%edx
xorl 52(%rsi),%ecx
xorl 56(%rsi),%r8d
xorl 60(%rsi),%r9d
movl   %edx,48(%rdi)
movl   %ecx,52(%rdi)
movl   %r8d,56(%rdi)
movl   %r9d,60(%rdi)
movd   %xmm13,%rdx
movd   %xmm9,%rcx
movd   %xmm3,%r8
movd   %xmm2,%r9
pshufd $0x39,%xmm13,%xmm13
pshufd $0x39,%xmm9,%xmm9
pshufd $0x39,%xmm3,%xmm3
pshufd $0x39,%xmm2,%xmm2
xorl 112(%rsi),%edx
xorl 116(%rsi),%ecx
xorl 120(%rsi),%r8d
xorl 124(%rsi),%r9d
movl   %edx,112(%rdi)
movl   %ecx,116(%rdi)
movl   %r8d,120(%rdi)
movl   %r9d,124(%rdi)
movd   %xmm13,%rdx
movd   %xmm9,%rcx
movd   %xmm3,%r8
movd   %xmm2,%r9
pshufd $0x39,%xmm13,%xmm13
pshufd $0x39,%xmm9,%xmm9
pshufd $0x39,%xmm3,%xmm3
pshufd $0x39,%xmm2,%xmm2
xorl 176(%rsi),%edx
xorl 180(%rsi),%ecx
xorl 184(%rsi),%r8d
xorl 188(%rsi),%r9d
movl   %edx,176(%rdi)
movl   %ecx,180(%rdi)
movl   %r8d,184(%rdi)
movl   %r9d,188(%rdi)
movd   %xmm13,%rdx
movd   %xmm9,%rcx
movd   %xmm3,%r8
movd   %xmm2,%r9
xorl 240(%rsi),%edx
xorl 244(%rsi),%ecx
xorl 248(%rsi),%r8d
xorl 252(%rsi),%r9d
movl   %edx,240(%rdi)
movl   %ecx,244(%rdi)
movl   %r8d,248(%rdi)
movl   %r9d,252(%rdi)
movq 480(%rsp),%r9
sub  $256,%r9
add  $256,%rsi
add  $256,%rdi
cmp  $256,%r9
jae ._bytesatleast256

cmp  $0,%r9
jbe ._done

._bytesbetween1and255:
cmp  $64,%r9
jae ._nocopy

mov  %rdi,%rdx
leaq 0(%rsp),%rdi
mov  %r9,%rcx
rep movsb
leaq 0(%rsp),%rdi
leaq 0(%rsp),%rsi

._nocopy:
movq %r9,480(%rsp)
movdqa 112(%rsp),%xmm0
movdqa 64(%rsp),%xmm1
movdqa 80(%rsp),%xmm2
movdqa 96(%rsp),%xmm3
movdqa %xmm1,%xmm4
mov  $20,%rcx

.p2align 4
._mainloop2:
paddd %xmm0,%xmm4
movdqa %xmm0,%xmm5
movdqa %xmm4,%xmm6
pslld $7,%xmm4
psrld $25,%xmm6
pxor  %xmm4,%xmm3
pxor  %xmm6,%xmm3
paddd %xmm3,%xmm5
movdqa %xmm3,%xmm4
movdqa %xmm5,%xmm6
pslld $9,%xmm5
psrld $23,%xmm6
pxor  %xmm5,%xmm2
pshufd $0x93,%xmm3,%xmm3
pxor  %xmm6,%xmm2
paddd %xmm2,%xmm4
movdqa %xmm2,%xmm5
movdqa %xmm4,%xmm6
pslld $13,%xmm4
psrld $19,%xmm6
pxor  %xmm4,%xmm1
pshufd $0x4e,%xmm2,%xmm2
pxor  %xmm6,%xmm1
paddd %xmm1,%xmm5
movdqa %xmm3,%xmm4
movdqa %xmm5,%xmm6
pslld $18,%xmm5
psrld $14,%xmm6
pxor  %xmm5,%xmm0
pshufd $0x39,%xmm1,%xmm1
pxor  %xmm6,%xmm0
paddd %xmm0,%xmm4
movdqa %xmm0,%xmm5
movdqa %xmm4,%xmm6
pslld $7,%xmm4
psrld $25,%xmm6
pxor  %xmm4,%xmm1
pxor  %xmm6,%xmm1
paddd %xmm1,%xmm5
movdqa %xmm1,%xmm4
movdqa %xmm5,%xmm6
pslld $9,%xmm5
psrld $23,%xmm6
pxor  %xmm5,%xmm2
pshufd $0x93,%xmm1,%xmm1
pxor  %xmm6,%xmm2
paddd %xmm2,%xmm4
movdqa %xmm2,%xmm5
movdqa %xmm4,%xmm6
pslld $13,%xmm4
psrld $19,%xmm6
pxor  %xmm4,%xmm3
pshufd $0x4e,%xmm2,%xmm2
pxor  %xmm6,%xmm3
paddd %xmm3,%xmm5
movdqa %xmm1,%xmm4
movdqa %xmm5,%xmm6
pslld $18,%xmm5
psrld $14,%xmm6
pxor  %xmm5,%xmm0
pshufd $0x39,%xmm3,%xmm3
pxor  %xmm6,%xmm0
paddd %xmm0,%xmm4
movdqa %xmm0,%xmm5
movdqa %xmm4,%xmm6
pslld $7,%xmm4
psrld $25,%xmm6
pxor  %xmm4,%xmm3
pxor  %xmm6,%xmm3
paddd %xmm3,%xmm5
movdqa %xmm3,%xmm4
movdqa %xmm5,%xmm6
pslld $9,%xmm5
psrld $23,%xmm6
pxor  %xmm5,%xmm2
pshufd $0x93,%xmm3,%xmm3
pxor  %xmm6,%xmm2
paddd %xmm2,%xmm4
movdqa %xmm2,%xmm5
movdqa %xmm4,%xmm6
pslld $13,%xmm4
psrld $19,%xmm6
pxor  %xmm4,%xmm1
pshufd $0x4e,%xmm2,%xmm2
pxor  %xmm6,%xmm1
paddd %xmm1,%xmm5
movdqa %xmm3,%xmm4
movdqa %xmm5,%xmm6
pslld $18,%xmm5
psrld $14,%xmm6
pxor  %xmm5,%xmm0
pshufd $0x39,%xmm1,%xmm1
pxor  %xmm6,%xmm0
paddd %xmm0,%xmm4
movdqa %xmm0,%xmm5
movdqa %xmm4,%xmm6
pslld $7,%xmm4
psrld $25,%xmm6
pxor  %xmm4,%xmm1
pxor  %xmm6,%xmm1
paddd %xmm1,%xmm5
movdqa %xmm1,%xmm4
movdqa %xmm5,%xmm6
pslld $9,%xmm5
psrld $23,%xmm6
pxor  %xmm5,%xmm2
pshufd $0x93,%xmm1,%xmm1
pxor  %xmm6,%xmm2
paddd %xmm2,%xmm4
movdqa %xmm2,%xmm5
movdqa %xmm4,%xmm6
pslld $13,%xmm4
psrld $19,%xmm6
pxor  %xmm4,%xmm3
pshufd $0x4e,%xmm2,%xmm2
pxor  %xmm6,%xmm3
sub  $4,%rcx
paddd %xmm3,%xmm5
movdqa %xmm1,%xmm4
movdqa %xmm5,%xmm6
pslld $18,%xmm5
pxor   %xmm7,%xmm7
psrld $14,%xmm6
pxor  %xmm5,%xmm0
pshufd $0x39,%xmm3,%xmm3
pxor  %xmm6,%xmm0
ja ._mainloop2

paddd 112(%rsp),%xmm0
paddd 64(%rsp),%xmm1
paddd 80(%rsp),%xmm2
paddd 96(%rsp),%xmm3
movd   %xmm0,%rcx
movd   %xmm1,%r8
movd   %xmm2,%r9
movd   %xmm3,%rax
pshufd $0x39,%xmm0,%xmm0
pshufd $0x39,%xmm1,%xmm1
pshufd $0x39,%xmm2,%xmm2
pshufd $0x39,%xmm3,%xmm3
xorl 0(%rsi),%ecx
xorl 48(%rsi),%r8d
xorl 32(%rsi),%r9d
xorl 16(%rsi),%eax
movl   %ecx,0(%rdi)
movl   %r8d,48(%rdi)
movl   %r9d,32(%rdi)
movl   %eax,16(%rdi)
movd   %xmm0,%rcx
movd   %xmm1,%r8
movd   %xmm2,%r9
movd   %xmm3,%rax
pshufd $0x39,%xmm0,%xmm0
pshufd $0x39,%xmm1,%xmm1
pshufd $0x39,%xmm2,%xmm2
pshufd $0x39,%xmm3,%xmm3
xorl 20(%rsi),%ecx
xorl 4(%rsi),%r8d
xorl 52(%rsi),%r9d
xorl 36(%rsi),%eax
movl   %ecx,20(%rdi)
movl   %r8d,4(%rdi)
movl   %r9d,52(%rdi)
movl   %eax,36(%rdi)
movd   %xmm0,%rcx
movd   %xmm1,%r8
movd   %xmm2,%r9
movd   %xmm3,%rax
pshufd $0x39,%xmm0,%xmm0
pshufd $0x39,%xmm1,%xmm1
pshufd $0x39,%xmm2,%xmm2
pshufd $0x39,%xmm3,%xmm3
xorl 40(%rsi),%ecx
xorl 24(%rsi),%r8d
xorl 8(%rsi),%r9d
xorl 56(%rsi),%eax
movl   %ecx,40(%rdi)
movl   %r8d,24(%rdi)
movl   %r9d,8(%rdi)
movl   %eax,56(%rdi)
movd   %xmm0,%rcx
movd   %xmm1,%r8
movd   %xmm2,%r9
movd   %xmm3,%rax
xorl 60(%rsi),%ecx
xorl 44(%rsi),%r8d
xorl 28(%rsi),%r9d
xorl 12(%rsi),%eax
movl   %ecx,60(%rdi)
movl   %r8d,44(%rdi)
movl   %r9d,28(%rdi)
movl   %eax,12(%rdi)
movq 480(%rsp),%r9
movq 472(%rsp),%rcx
add  $1,%rcx
mov  %rcx,%r8
shr  $32,%r8
movl %ecx,80(%rsp)
movl %r8d,4+96(%rsp)
movq %rcx,472(%rsp)
cmp  $64,%r9
ja ._bytesatleast65
jae ._bytesatleast64

mov  %rdi,%rsi
mov  %rdx,%rdi
mov  %r9,%rcx
rep movsb

._bytesatleast64:
._done:
movq 416(%rsp),%r11
movq 424(%rsp),%r12
movq 432(%rsp),%r13
movq 440(%rsp),%r14
movq 448(%rsp),%r15
movq 456(%rsp),%rbx
movq 464(%rsp),%rbp
add %r11,%rsp
xor %rax,%rax
mov %rsi,%rdx
ret

._bytesatleast65:
sub  $64,%r9
add  $64,%rdi
add  $64,%rsi
jmp ._bytesbetween1and255

#endif

#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif