-
-
Notifications
You must be signed in to change notification settings - Fork 23
/
simd_neon.s
755 lines (684 loc) · 23.5 KB
/
simd_neon.s
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
//go:build !noasm && !darwin && arm64
// AUTO-GENERATED BY GOCC -- DO NOT EDIT
TEXT ·_and(SB), $0-32
MOVD a+0(FP), R0
MOVD b+8(FP), R1
MOVD n+16(FP), R2
WORD $0xa9bf7bfd // stp x29, x30, [sp, #-16]!
WORD $0x910003fd // mov x29, sp
WORD $0xb40002a2 // cbz x2, .LBB0_7
WORD $0xf100105f // cmp x2, #4
WORD $0x54000103 // b.lo .LBB0_4
WORD $0xd37df048 // lsl x8, x2, #3
WORD $0x8b080029 // add x9, x1, x8
WORD $0xeb00013f // cmp x9, x0
WORD $0x54000229 // b.ls .LBB0_8
WORD $0x8b080008 // add x8, x0, x8
WORD $0xeb01011f // cmp x8, x1
WORD $0x540001c9 // b.ls .LBB0_8
LBB0_4:
WORD $0xaa1f03e8 // mov x8, xzr
LBB0_5:
WORD $0xd37df10a // lsl x10, x8, #3
WORD $0xcb080049 // sub x9, x2, x8
WORD $0x8b0a0008 // add x8, x0, x10
WORD $0x8b0a002a // add x10, x1, x10
LBB0_6:
WORD $0xf840854b // ldr x11, [x10], #8
WORD $0xf940010c // ldr x12, [x8]
WORD $0xf1000529 // subs x9, x9, #1
WORD $0x8a0b018b // and x11, x12, x11
WORD $0xf800850b // str x11, [x8], #8
WORD $0x54ffff61 // b.ne .LBB0_6
LBB0_7:
WORD $0xa8c17bfd // ldp x29, x30, [sp], #16
WORD $0xd65f03c0 // ret
LBB0_8:
WORD $0x927ef448 // and x8, x2, #0xfffffffffffffffc
WORD $0x91004029 // add x9, x1, #16
WORD $0x9100400a // add x10, x0, #16
WORD $0xaa0803eb // mov x11, x8
LBB0_9:
WORD $0xad7f8520 // ldp q0, q1, [x9, #-16]
WORD $0x91008129 // add x9, x9, #32
WORD $0xf100116b // subs x11, x11, #4
WORD $0xad7f8d42 // ldp q2, q3, [x10, #-16]
WORD $0x4e201c40 // and v0.16b, v2.16b, v0.16b
WORD $0x4e211c61 // and v1.16b, v3.16b, v1.16b
WORD $0xad3f8540 // stp q0, q1, [x10, #-16]
WORD $0x9100814a // add x10, x10, #32
WORD $0x54ffff01 // b.ne .LBB0_9
WORD $0xeb02011f // cmp x8, x2
WORD $0x54fffe00 // b.eq .LBB0_7
WORD $0x17ffffe5 // b .LBB0_5
TEXT ·_andn(SB), $0-32
MOVD a+0(FP), R0
MOVD b+8(FP), R1
MOVD n+16(FP), R2
WORD $0xa9bf7bfd // stp x29, x30, [sp, #-16]!
WORD $0x910003fd // mov x29, sp
WORD $0xb40002a2 // cbz x2, .LBB1_7
WORD $0xf100105f // cmp x2, #4
WORD $0x54000103 // b.lo .LBB1_4
WORD $0xd37df048 // lsl x8, x2, #3
WORD $0x8b080029 // add x9, x1, x8
WORD $0xeb00013f // cmp x9, x0
WORD $0x54000229 // b.ls .LBB1_8
WORD $0x8b080008 // add x8, x0, x8
WORD $0xeb01011f // cmp x8, x1
WORD $0x540001c9 // b.ls .LBB1_8
LBB1_4:
WORD $0xaa1f03e8 // mov x8, xzr
LBB1_5:
WORD $0xd37df10a // lsl x10, x8, #3
WORD $0xcb080049 // sub x9, x2, x8
WORD $0x8b0a0008 // add x8, x0, x10
WORD $0x8b0a002a // add x10, x1, x10
LBB1_6:
WORD $0xf840854b // ldr x11, [x10], #8
WORD $0xf940010c // ldr x12, [x8]
WORD $0xf1000529 // subs x9, x9, #1
WORD $0x8a2b018b // bic x11, x12, x11
WORD $0xf800850b // str x11, [x8], #8
WORD $0x54ffff61 // b.ne .LBB1_6
LBB1_7:
WORD $0xa8c17bfd // ldp x29, x30, [sp], #16
WORD $0xd65f03c0 // ret
LBB1_8:
WORD $0x927ef448 // and x8, x2, #0xfffffffffffffffc
WORD $0x91004029 // add x9, x1, #16
WORD $0x9100400a // add x10, x0, #16
WORD $0xaa0803eb // mov x11, x8
LBB1_9:
WORD $0xad7f8520 // ldp q0, q1, [x9, #-16]
WORD $0x91008129 // add x9, x9, #32
WORD $0xf100116b // subs x11, x11, #4
WORD $0xad7f8d42 // ldp q2, q3, [x10, #-16]
WORD $0x4e601c40 // bic v0.16b, v2.16b, v0.16b
WORD $0x4e611c61 // bic v1.16b, v3.16b, v1.16b
WORD $0xad3f8540 // stp q0, q1, [x10, #-16]
WORD $0x9100814a // add x10, x10, #32
WORD $0x54ffff01 // b.ne .LBB1_9
WORD $0xeb02011f // cmp x8, x2
WORD $0x54fffe00 // b.eq .LBB1_7
WORD $0x17ffffe5 // b .LBB1_5
TEXT ·_or(SB), $0-32
MOVD a+0(FP), R0
MOVD b+8(FP), R1
MOVD n+16(FP), R2
WORD $0xa9bf7bfd // stp x29, x30, [sp, #-16]!
WORD $0x910003fd // mov x29, sp
WORD $0xb40002a2 // cbz x2, .LBB2_7
WORD $0xf100105f // cmp x2, #4
WORD $0x54000103 // b.lo .LBB2_4
WORD $0xd37df048 // lsl x8, x2, #3
WORD $0x8b080029 // add x9, x1, x8
WORD $0xeb00013f // cmp x9, x0
WORD $0x54000229 // b.ls .LBB2_8
WORD $0x8b080008 // add x8, x0, x8
WORD $0xeb01011f // cmp x8, x1
WORD $0x540001c9 // b.ls .LBB2_8
LBB2_4:
WORD $0xaa1f03e8 // mov x8, xzr
LBB2_5:
WORD $0xd37df10a // lsl x10, x8, #3
WORD $0xcb080049 // sub x9, x2, x8
WORD $0x8b0a0008 // add x8, x0, x10
WORD $0x8b0a002a // add x10, x1, x10
LBB2_6:
WORD $0xf840854b // ldr x11, [x10], #8
WORD $0xf940010c // ldr x12, [x8]
WORD $0xf1000529 // subs x9, x9, #1
WORD $0xaa0b018b // orr x11, x12, x11
WORD $0xf800850b // str x11, [x8], #8
WORD $0x54ffff61 // b.ne .LBB2_6
LBB2_7:
WORD $0xa8c17bfd // ldp x29, x30, [sp], #16
WORD $0xd65f03c0 // ret
LBB2_8:
WORD $0x927ef448 // and x8, x2, #0xfffffffffffffffc
WORD $0x91004029 // add x9, x1, #16
WORD $0x9100400a // add x10, x0, #16
WORD $0xaa0803eb // mov x11, x8
LBB2_9:
WORD $0xad7f8520 // ldp q0, q1, [x9, #-16]
WORD $0x91008129 // add x9, x9, #32
WORD $0xf100116b // subs x11, x11, #4
WORD $0xad7f8d42 // ldp q2, q3, [x10, #-16]
WORD $0x4ea01c40 // orr v0.16b, v2.16b, v0.16b
WORD $0x4ea11c61 // orr v1.16b, v3.16b, v1.16b
WORD $0xad3f8540 // stp q0, q1, [x10, #-16]
WORD $0x9100814a // add x10, x10, #32
WORD $0x54ffff01 // b.ne .LBB2_9
WORD $0xeb02011f // cmp x8, x2
WORD $0x54fffe00 // b.eq .LBB2_7
WORD $0x17ffffe5 // b .LBB2_5
TEXT ·_xor(SB), $0-32
MOVD a+0(FP), R0
MOVD b+8(FP), R1
MOVD n+16(FP), R2
WORD $0xa9bf7bfd // stp x29, x30, [sp, #-16]!
WORD $0x910003fd // mov x29, sp
WORD $0xb40002a2 // cbz x2, .LBB3_7
WORD $0xf100105f // cmp x2, #4
WORD $0x54000103 // b.lo .LBB3_4
WORD $0xd37df048 // lsl x8, x2, #3
WORD $0x8b080029 // add x9, x1, x8
WORD $0xeb00013f // cmp x9, x0
WORD $0x54000229 // b.ls .LBB3_8
WORD $0x8b080008 // add x8, x0, x8
WORD $0xeb01011f // cmp x8, x1
WORD $0x540001c9 // b.ls .LBB3_8
LBB3_4:
WORD $0xaa1f03e8 // mov x8, xzr
LBB3_5:
WORD $0xd37df10a // lsl x10, x8, #3
WORD $0xcb080049 // sub x9, x2, x8
WORD $0x8b0a0008 // add x8, x0, x10
WORD $0x8b0a002a // add x10, x1, x10
LBB3_6:
WORD $0xf840854b // ldr x11, [x10], #8
WORD $0xf940010c // ldr x12, [x8]
WORD $0xf1000529 // subs x9, x9, #1
WORD $0xca0b018b // eor x11, x12, x11
WORD $0xf800850b // str x11, [x8], #8
WORD $0x54ffff61 // b.ne .LBB3_6
LBB3_7:
WORD $0xa8c17bfd // ldp x29, x30, [sp], #16
WORD $0xd65f03c0 // ret
LBB3_8:
WORD $0x927ef448 // and x8, x2, #0xfffffffffffffffc
WORD $0x91004029 // add x9, x1, #16
WORD $0x9100400a // add x10, x0, #16
WORD $0xaa0803eb // mov x11, x8
LBB3_9:
WORD $0xad7f8520 // ldp q0, q1, [x9, #-16]
WORD $0x91008129 // add x9, x9, #32
WORD $0xf100116b // subs x11, x11, #4
WORD $0xad7f8d42 // ldp q2, q3, [x10, #-16]
WORD $0x6e201c40 // eor v0.16b, v2.16b, v0.16b
WORD $0x6e211c61 // eor v1.16b, v3.16b, v1.16b
WORD $0xad3f8540 // stp q0, q1, [x10, #-16]
WORD $0x9100814a // add x10, x10, #32
WORD $0x54ffff01 // b.ne .LBB3_9
WORD $0xeb02011f // cmp x8, x2
WORD $0x54fffe00 // b.eq .LBB3_7
WORD $0x17ffffe5 // b .LBB3_5
TEXT ·_and_many(SB), $0-32
MOVD a+0(FP), R0
MOVD b+8(FP), R1
MOVD dims+16(FP), R2
WORD $0xa9bb7bfd // stp x29, x30, [sp, #-80]!
WORD $0xf2407c48 // ands x8, x2, #0xffffffff
WORD $0xf9000bf9 // str x25, [sp, #16]
WORD $0xa9025ff8 // stp x24, x23, [sp, #32]
WORD $0x910003fd // mov x29, sp
WORD $0xa90357f6 // stp x22, x21, [sp, #48]
WORD $0xa9044ff4 // stp x20, x19, [sp, #64]
WORD $0x54000a20 // b.eq .LBB4_14
WORD $0xd360fc4b // lsr x11, x2, #32
WORD $0xb40009eb // cbz x11, .LBB4_14
WORD $0xf100057f // cmp x11, #1
WORD $0xaa1f03e9 // mov x9, xzr
WORD $0xaa1f03ea // mov x10, xzr
WORD $0xaa1f03ef // mov x15, xzr
WORD $0x9a9f856b // csinc x11, x11, xzr, hi
WORD $0x9100400c // add x12, x0, #16
WORD $0x5280400d // mov w13, #512
WORD $0x5280020e // mov w14, #16
WORD $0x14000009 // b .LBB4_4
LBB4_3:
WORD $0x910801ad // add x13, x13, #512
WORD $0x9100054a // add x10, x10, #1
WORD $0xd1080129 // sub x9, x9, #512
WORD $0x914005ce // add x14, x14, #1, lsl #12
WORD $0x9140058c // add x12, x12, #1, lsl #12
WORD $0xaa1003ef // mov x15, x16
WORD $0xeb08021f // cmp x16, x8
WORD $0x540007c2 // b.hs .LBB4_14
LBB4_4:
WORD $0xeb0801bf // cmp x13, x8
WORD $0x910801f0 // add x16, x15, #512
WORD $0x9a8831b1 // csel x17, x13, x8, lo
WORD $0xeb08021f // cmp x16, x8
WORD $0x9a883212 // csel x18, x16, x8, lo
WORD $0xeb1201ff // cmp x15, x18
WORD $0x54fffe42 // b.hs .LBB4_3
WORD $0xcb0a2622 // sub x2, x17, x10, lsl #9
WORD $0xd374cd43 // lsl x3, x10, #12
WORD $0xd37df046 // lsl x6, x2, #3
WORD $0x8b030004 // add x4, x0, x3
WORD $0xd10020d4 // sub x20, x6, #8
WORD $0x8b090225 // add x5, x17, x9
WORD $0x8b140086 // add x6, x4, x20
WORD $0x927ef447 // and x7, x2, #0xfffffffffffffffc
WORD $0xaa1f03f2 // mov x18, xzr
WORD $0x927ef4a5 // and x5, x5, #0xfffffffffffffffc
WORD $0x910020c6 // add x6, x6, #8
WORD $0x8b0701f3 // add x19, x15, x7
WORD $0x8b140074 // add x20, x3, x20
WORD $0x14000004 // b .LBB4_7
LBB4_6:
WORD $0x91000652 // add x18, x18, #1
WORD $0xeb0b025f // cmp x18, x11
WORD $0x54fffc20 // b.eq .LBB4_3
LBB4_7:
WORD $0xf8727835 // ldr x21, [x1, x18, lsl #3]
WORD $0xaa0f03f7 // mov x23, x15
WORD $0xf100105f // cmp x2, #4
WORD $0x540002e3 // b.lo .LBB4_12
WORD $0x8b1402b6 // add x22, x21, x20
WORD $0x8b0302b7 // add x23, x21, x3
WORD $0x910022d6 // add x22, x22, #8
WORD $0xeb16009f // cmp x4, x22
WORD $0xfa4632e2 // ccmp x23, x6, #2, lo
WORD $0xaa0f03f7 // mov x23, x15
WORD $0x54000203 // b.lo .LBB4_12
WORD $0x8b0e02b6 // add x22, x21, x14
WORD $0xaa0c03f7 // mov x23, x12
WORD $0xaa0503f8 // mov x24, x5
LBB4_10:
WORD $0xad7f86c0 // ldp q0, q1, [x22, #-16]
WORD $0xf1001318 // subs x24, x24, #4
WORD $0x910082d6 // add x22, x22, #32
WORD $0xad7f8ee2 // ldp q2, q3, [x23, #-16]
WORD $0x4e201c40 // and v0.16b, v2.16b, v0.16b
WORD $0x4e211c61 // and v1.16b, v3.16b, v1.16b
WORD $0xad3f86e0 // stp q0, q1, [x23, #-16]
WORD $0x910082f7 // add x23, x23, #32
WORD $0x54ffff01 // b.ne .LBB4_10
WORD $0xaa1303f7 // mov x23, x19
WORD $0xeb07005f // cmp x2, x7
WORD $0x54fffc80 // b.eq .LBB4_6
LBB4_12:
WORD $0xd37df2f8 // lsl x24, x23, #3
WORD $0xcb170236 // sub x22, x17, x23
WORD $0x8b180017 // add x23, x0, x24
WORD $0x8b1802b5 // add x21, x21, x24
LBB4_13:
WORD $0xf84086b8 // ldr x24, [x21], #8
WORD $0xf94002f9 // ldr x25, [x23]
WORD $0xf10006d6 // subs x22, x22, #1
WORD $0x8a180338 // and x24, x25, x24
WORD $0xf80086f8 // str x24, [x23], #8
WORD $0x54ffff61 // b.ne .LBB4_13
WORD $0x17ffffd9 // b .LBB4_6
LBB4_14:
WORD $0xa9444ff4 // ldp x20, x19, [sp, #64]
WORD $0xa94357f6 // ldp x22, x21, [sp, #48]
WORD $0xa9425ff8 // ldp x24, x23, [sp, #32]
WORD $0xf9400bf9 // ldr x25, [sp, #16]
WORD $0xa8c57bfd // ldp x29, x30, [sp], #80
WORD $0xd65f03c0 // ret
TEXT ·_andn_many(SB), $0-32
MOVD a+0(FP), R0
MOVD b+8(FP), R1
MOVD dims+16(FP), R2
WORD $0xa9bb7bfd // stp x29, x30, [sp, #-80]!
WORD $0xf2407c48 // ands x8, x2, #0xffffffff
WORD $0xf9000bf9 // str x25, [sp, #16]
WORD $0xa9025ff8 // stp x24, x23, [sp, #32]
WORD $0x910003fd // mov x29, sp
WORD $0xa90357f6 // stp x22, x21, [sp, #48]
WORD $0xa9044ff4 // stp x20, x19, [sp, #64]
WORD $0x54000a20 // b.eq .LBB5_14
WORD $0xd360fc4b // lsr x11, x2, #32
WORD $0xb40009eb // cbz x11, .LBB5_14
WORD $0xf100057f // cmp x11, #1
WORD $0xaa1f03e9 // mov x9, xzr
WORD $0xaa1f03ea // mov x10, xzr
WORD $0xaa1f03ef // mov x15, xzr
WORD $0x9a9f856b // csinc x11, x11, xzr, hi
WORD $0x9100400c // add x12, x0, #16
WORD $0x5280400d // mov w13, #512
WORD $0x5280020e // mov w14, #16
WORD $0x14000009 // b .LBB5_4
LBB5_3:
WORD $0x910801ad // add x13, x13, #512
WORD $0x9100054a // add x10, x10, #1
WORD $0xd1080129 // sub x9, x9, #512
WORD $0x914005ce // add x14, x14, #1, lsl #12
WORD $0x9140058c // add x12, x12, #1, lsl #12
WORD $0xaa1003ef // mov x15, x16
WORD $0xeb08021f // cmp x16, x8
WORD $0x540007c2 // b.hs .LBB5_14
LBB5_4:
WORD $0xeb0801bf // cmp x13, x8
WORD $0x910801f0 // add x16, x15, #512
WORD $0x9a8831b1 // csel x17, x13, x8, lo
WORD $0xeb08021f // cmp x16, x8
WORD $0x9a883212 // csel x18, x16, x8, lo
WORD $0xeb1201ff // cmp x15, x18
WORD $0x54fffe42 // b.hs .LBB5_3
WORD $0xcb0a2622 // sub x2, x17, x10, lsl #9
WORD $0xd374cd43 // lsl x3, x10, #12
WORD $0xd37df046 // lsl x6, x2, #3
WORD $0x8b030004 // add x4, x0, x3
WORD $0xd10020d4 // sub x20, x6, #8
WORD $0x8b090225 // add x5, x17, x9
WORD $0x8b140086 // add x6, x4, x20
WORD $0x927ef447 // and x7, x2, #0xfffffffffffffffc
WORD $0xaa1f03f2 // mov x18, xzr
WORD $0x927ef4a5 // and x5, x5, #0xfffffffffffffffc
WORD $0x910020c6 // add x6, x6, #8
WORD $0x8b0701f3 // add x19, x15, x7
WORD $0x8b140074 // add x20, x3, x20
WORD $0x14000004 // b .LBB5_7
LBB5_6:
WORD $0x91000652 // add x18, x18, #1
WORD $0xeb0b025f // cmp x18, x11
WORD $0x54fffc20 // b.eq .LBB5_3
LBB5_7:
WORD $0xf8727835 // ldr x21, [x1, x18, lsl #3]
WORD $0xaa0f03f7 // mov x23, x15
WORD $0xf100105f // cmp x2, #4
WORD $0x540002e3 // b.lo .LBB5_12
WORD $0x8b1402b6 // add x22, x21, x20
WORD $0x8b0302b7 // add x23, x21, x3
WORD $0x910022d6 // add x22, x22, #8
WORD $0xeb16009f // cmp x4, x22
WORD $0xfa4632e2 // ccmp x23, x6, #2, lo
WORD $0xaa0f03f7 // mov x23, x15
WORD $0x54000203 // b.lo .LBB5_12
WORD $0x8b0e02b6 // add x22, x21, x14
WORD $0xaa0c03f7 // mov x23, x12
WORD $0xaa0503f8 // mov x24, x5
LBB5_10:
WORD $0xad7f86c0 // ldp q0, q1, [x22, #-16]
WORD $0xf1001318 // subs x24, x24, #4
WORD $0x910082d6 // add x22, x22, #32
WORD $0xad7f8ee2 // ldp q2, q3, [x23, #-16]
WORD $0x4e601c40 // bic v0.16b, v2.16b, v0.16b
WORD $0x4e611c61 // bic v1.16b, v3.16b, v1.16b
WORD $0xad3f86e0 // stp q0, q1, [x23, #-16]
WORD $0x910082f7 // add x23, x23, #32
WORD $0x54ffff01 // b.ne .LBB5_10
WORD $0xaa1303f7 // mov x23, x19
WORD $0xeb07005f // cmp x2, x7
WORD $0x54fffc80 // b.eq .LBB5_6
LBB5_12:
WORD $0xd37df2f8 // lsl x24, x23, #3
WORD $0xcb170236 // sub x22, x17, x23
WORD $0x8b180017 // add x23, x0, x24
WORD $0x8b1802b5 // add x21, x21, x24
LBB5_13:
WORD $0xf84086b8 // ldr x24, [x21], #8
WORD $0xf94002f9 // ldr x25, [x23]
WORD $0xf10006d6 // subs x22, x22, #1
WORD $0x8a380338 // bic x24, x25, x24
WORD $0xf80086f8 // str x24, [x23], #8
WORD $0x54ffff61 // b.ne .LBB5_13
WORD $0x17ffffd9 // b .LBB5_6
LBB5_14:
WORD $0xa9444ff4 // ldp x20, x19, [sp, #64]
WORD $0xa94357f6 // ldp x22, x21, [sp, #48]
WORD $0xa9425ff8 // ldp x24, x23, [sp, #32]
WORD $0xf9400bf9 // ldr x25, [sp, #16]
WORD $0xa8c57bfd // ldp x29, x30, [sp], #80
WORD $0xd65f03c0 // ret
TEXT ·_or_many(SB), $0-32
MOVD a+0(FP), R0
MOVD b+8(FP), R1
MOVD dims+16(FP), R2
WORD $0xa9bb7bfd // stp x29, x30, [sp, #-80]!
WORD $0xf2407c48 // ands x8, x2, #0xffffffff
WORD $0xf9000bf9 // str x25, [sp, #16]
WORD $0xa9025ff8 // stp x24, x23, [sp, #32]
WORD $0x910003fd // mov x29, sp
WORD $0xa90357f6 // stp x22, x21, [sp, #48]
WORD $0xa9044ff4 // stp x20, x19, [sp, #64]
WORD $0x54000a20 // b.eq .LBB6_14
WORD $0xd360fc4b // lsr x11, x2, #32
WORD $0xb40009eb // cbz x11, .LBB6_14
WORD $0xf100057f // cmp x11, #1
WORD $0xaa1f03e9 // mov x9, xzr
WORD $0xaa1f03ea // mov x10, xzr
WORD $0xaa1f03ef // mov x15, xzr
WORD $0x9a9f856b // csinc x11, x11, xzr, hi
WORD $0x9100400c // add x12, x0, #16
WORD $0x5280400d // mov w13, #512
WORD $0x5280020e // mov w14, #16
WORD $0x14000009 // b .LBB6_4
LBB6_3:
WORD $0x910801ad // add x13, x13, #512
WORD $0x9100054a // add x10, x10, #1
WORD $0xd1080129 // sub x9, x9, #512
WORD $0x914005ce // add x14, x14, #1, lsl #12
WORD $0x9140058c // add x12, x12, #1, lsl #12
WORD $0xaa1003ef // mov x15, x16
WORD $0xeb08021f // cmp x16, x8
WORD $0x540007c2 // b.hs .LBB6_14
LBB6_4:
WORD $0xeb0801bf // cmp x13, x8
WORD $0x910801f0 // add x16, x15, #512
WORD $0x9a8831b1 // csel x17, x13, x8, lo
WORD $0xeb08021f // cmp x16, x8
WORD $0x9a883212 // csel x18, x16, x8, lo
WORD $0xeb1201ff // cmp x15, x18
WORD $0x54fffe42 // b.hs .LBB6_3
WORD $0xcb0a2622 // sub x2, x17, x10, lsl #9
WORD $0xd374cd43 // lsl x3, x10, #12
WORD $0xd37df046 // lsl x6, x2, #3
WORD $0x8b030004 // add x4, x0, x3
WORD $0xd10020d4 // sub x20, x6, #8
WORD $0x8b090225 // add x5, x17, x9
WORD $0x8b140086 // add x6, x4, x20
WORD $0x927ef447 // and x7, x2, #0xfffffffffffffffc
WORD $0xaa1f03f2 // mov x18, xzr
WORD $0x927ef4a5 // and x5, x5, #0xfffffffffffffffc
WORD $0x910020c6 // add x6, x6, #8
WORD $0x8b0701f3 // add x19, x15, x7
WORD $0x8b140074 // add x20, x3, x20
WORD $0x14000004 // b .LBB6_7
LBB6_6:
WORD $0x91000652 // add x18, x18, #1
WORD $0xeb0b025f // cmp x18, x11
WORD $0x54fffc20 // b.eq .LBB6_3
LBB6_7:
WORD $0xf8727835 // ldr x21, [x1, x18, lsl #3]
WORD $0xaa0f03f7 // mov x23, x15
WORD $0xf100105f // cmp x2, #4
WORD $0x540002e3 // b.lo .LBB6_12
WORD $0x8b1402b6 // add x22, x21, x20
WORD $0x8b0302b7 // add x23, x21, x3
WORD $0x910022d6 // add x22, x22, #8
WORD $0xeb16009f // cmp x4, x22
WORD $0xfa4632e2 // ccmp x23, x6, #2, lo
WORD $0xaa0f03f7 // mov x23, x15
WORD $0x54000203 // b.lo .LBB6_12
WORD $0x8b0e02b6 // add x22, x21, x14
WORD $0xaa0c03f7 // mov x23, x12
WORD $0xaa0503f8 // mov x24, x5
LBB6_10:
WORD $0xad7f86c0 // ldp q0, q1, [x22, #-16]
WORD $0xf1001318 // subs x24, x24, #4
WORD $0x910082d6 // add x22, x22, #32
WORD $0xad7f8ee2 // ldp q2, q3, [x23, #-16]
WORD $0x4ea01c40 // orr v0.16b, v2.16b, v0.16b
WORD $0x4ea11c61 // orr v1.16b, v3.16b, v1.16b
WORD $0xad3f86e0 // stp q0, q1, [x23, #-16]
WORD $0x910082f7 // add x23, x23, #32
WORD $0x54ffff01 // b.ne .LBB6_10
WORD $0xaa1303f7 // mov x23, x19
WORD $0xeb07005f // cmp x2, x7
WORD $0x54fffc80 // b.eq .LBB6_6
LBB6_12:
WORD $0xd37df2f8 // lsl x24, x23, #3
WORD $0xcb170236 // sub x22, x17, x23
WORD $0x8b180017 // add x23, x0, x24
WORD $0x8b1802b5 // add x21, x21, x24
LBB6_13:
WORD $0xf84086b8 // ldr x24, [x21], #8
WORD $0xf94002f9 // ldr x25, [x23]
WORD $0xf10006d6 // subs x22, x22, #1
WORD $0xaa180338 // orr x24, x25, x24
WORD $0xf80086f8 // str x24, [x23], #8
WORD $0x54ffff61 // b.ne .LBB6_13
WORD $0x17ffffd9 // b .LBB6_6
LBB6_14:
WORD $0xa9444ff4 // ldp x20, x19, [sp, #64]
WORD $0xa94357f6 // ldp x22, x21, [sp, #48]
WORD $0xa9425ff8 // ldp x24, x23, [sp, #32]
WORD $0xf9400bf9 // ldr x25, [sp, #16]
WORD $0xa8c57bfd // ldp x29, x30, [sp], #80
WORD $0xd65f03c0 // ret
TEXT ·_xor_many(SB), $0-32
MOVD a+0(FP), R0
MOVD b+8(FP), R1
MOVD dims+16(FP), R2
WORD $0xa9bb7bfd // stp x29, x30, [sp, #-80]!
WORD $0xf2407c48 // ands x8, x2, #0xffffffff
WORD $0xf9000bf9 // str x25, [sp, #16]
WORD $0xa9025ff8 // stp x24, x23, [sp, #32]
WORD $0x910003fd // mov x29, sp
WORD $0xa90357f6 // stp x22, x21, [sp, #48]
WORD $0xa9044ff4 // stp x20, x19, [sp, #64]
WORD $0x54000a20 // b.eq .LBB7_14
WORD $0xd360fc4b // lsr x11, x2, #32
WORD $0xb40009eb // cbz x11, .LBB7_14
WORD $0xf100057f // cmp x11, #1
WORD $0xaa1f03e9 // mov x9, xzr
WORD $0xaa1f03ea // mov x10, xzr
WORD $0xaa1f03ef // mov x15, xzr
WORD $0x9a9f856b // csinc x11, x11, xzr, hi
WORD $0x9100400c // add x12, x0, #16
WORD $0x5280400d // mov w13, #512
WORD $0x5280020e // mov w14, #16
WORD $0x14000009 // b .LBB7_4
LBB7_3:
WORD $0x910801ad // add x13, x13, #512
WORD $0x9100054a // add x10, x10, #1
WORD $0xd1080129 // sub x9, x9, #512
WORD $0x914005ce // add x14, x14, #1, lsl #12
WORD $0x9140058c // add x12, x12, #1, lsl #12
WORD $0xaa1003ef // mov x15, x16
WORD $0xeb08021f // cmp x16, x8
WORD $0x540007c2 // b.hs .LBB7_14
LBB7_4:
WORD $0xeb0801bf // cmp x13, x8
WORD $0x910801f0 // add x16, x15, #512
WORD $0x9a8831b1 // csel x17, x13, x8, lo
WORD $0xeb08021f // cmp x16, x8
WORD $0x9a883212 // csel x18, x16, x8, lo
WORD $0xeb1201ff // cmp x15, x18
WORD $0x54fffe42 // b.hs .LBB7_3
WORD $0xcb0a2622 // sub x2, x17, x10, lsl #9
WORD $0xd374cd43 // lsl x3, x10, #12
WORD $0xd37df046 // lsl x6, x2, #3
WORD $0x8b030004 // add x4, x0, x3
WORD $0xd10020d4 // sub x20, x6, #8
WORD $0x8b090225 // add x5, x17, x9
WORD $0x8b140086 // add x6, x4, x20
WORD $0x927ef447 // and x7, x2, #0xfffffffffffffffc
WORD $0xaa1f03f2 // mov x18, xzr
WORD $0x927ef4a5 // and x5, x5, #0xfffffffffffffffc
WORD $0x910020c6 // add x6, x6, #8
WORD $0x8b0701f3 // add x19, x15, x7
WORD $0x8b140074 // add x20, x3, x20
WORD $0x14000004 // b .LBB7_7
LBB7_6:
WORD $0x91000652 // add x18, x18, #1
WORD $0xeb0b025f // cmp x18, x11
WORD $0x54fffc20 // b.eq .LBB7_3
LBB7_7:
WORD $0xf8727835 // ldr x21, [x1, x18, lsl #3]
WORD $0xaa0f03f7 // mov x23, x15
WORD $0xf100105f // cmp x2, #4
WORD $0x540002e3 // b.lo .LBB7_12
WORD $0x8b1402b6 // add x22, x21, x20
WORD $0x8b0302b7 // add x23, x21, x3
WORD $0x910022d6 // add x22, x22, #8
WORD $0xeb16009f // cmp x4, x22
WORD $0xfa4632e2 // ccmp x23, x6, #2, lo
WORD $0xaa0f03f7 // mov x23, x15
WORD $0x54000203 // b.lo .LBB7_12
WORD $0x8b0e02b6 // add x22, x21, x14
WORD $0xaa0c03f7 // mov x23, x12
WORD $0xaa0503f8 // mov x24, x5
LBB7_10:
WORD $0xad7f86c0 // ldp q0, q1, [x22, #-16]
WORD $0xf1001318 // subs x24, x24, #4
WORD $0x910082d6 // add x22, x22, #32
WORD $0xad7f8ee2 // ldp q2, q3, [x23, #-16]
WORD $0x6e201c40 // eor v0.16b, v2.16b, v0.16b
WORD $0x6e211c61 // eor v1.16b, v3.16b, v1.16b
WORD $0xad3f86e0 // stp q0, q1, [x23, #-16]
WORD $0x910082f7 // add x23, x23, #32
WORD $0x54ffff01 // b.ne .LBB7_10
WORD $0xaa1303f7 // mov x23, x19
WORD $0xeb07005f // cmp x2, x7
WORD $0x54fffc80 // b.eq .LBB7_6
LBB7_12:
WORD $0xd37df2f8 // lsl x24, x23, #3
WORD $0xcb170236 // sub x22, x17, x23
WORD $0x8b180017 // add x23, x0, x24
WORD $0x8b1802b5 // add x21, x21, x24
LBB7_13:
WORD $0xf84086b8 // ldr x24, [x21], #8
WORD $0xf94002f9 // ldr x25, [x23]
WORD $0xf10006d6 // subs x22, x22, #1
WORD $0xca180338 // eor x24, x25, x24
WORD $0xf80086f8 // str x24, [x23], #8
WORD $0x54ffff61 // b.ne .LBB7_13
WORD $0x17ffffd9 // b .LBB7_6
LBB7_14:
WORD $0xa9444ff4 // ldp x20, x19, [sp, #64]
WORD $0xa94357f6 // ldp x22, x21, [sp, #48]
WORD $0xa9425ff8 // ldp x24, x23, [sp, #32]
WORD $0xf9400bf9 // ldr x25, [sp, #16]
WORD $0xa8c57bfd // ldp x29, x30, [sp], #80
WORD $0xd65f03c0 // ret
TEXT ·_count(SB), $0-32
MOVD a+0(FP), R0
MOVD size+8(FP), R1
MOVD result+16(FP), R2
WORD $0xa9bf7bfd // stp x29, x30, [sp, #-16]!
WORD $0x910003fd // mov x29, sp
WORD $0xb40000c1 // cbz x1, .LBB8_3
WORD $0xf100103f // cmp x1, #4
WORD $0x540000c2 // b.hs .LBB8_4
WORD $0xaa1f03e8 // mov x8, xzr
WORD $0xaa1f03e9 // mov x9, xzr
WORD $0x14000019 // b .LBB8_7
LBB8_3:
WORD $0xaa1f03e9 // mov x9, xzr
WORD $0x14000020 // b .LBB8_9
LBB8_4:
WORD $0x927ef428 // and x8, x1, #0xfffffffffffffffc
WORD $0x91004009 // add x9, x0, #16
WORD $0x6f00e400 // movi v0.2d, #0000000000000000
WORD $0xaa0803ea // mov x10, x8
WORD $0x6f00e401 // movi v1.2d, #0000000000000000
LBB8_5:
WORD $0xad7f8d22 // ldp q2, q3, [x9, #-16]
WORD $0x91008129 // add x9, x9, #32
WORD $0xf100114a // subs x10, x10, #4
WORD $0x4e205842 // cnt v2.16b, v2.16b
WORD $0x4e205863 // cnt v3.16b, v3.16b
WORD $0x6e202842 // uaddlp v2.8h, v2.16b
WORD $0x6e202863 // uaddlp v3.8h, v3.16b
WORD $0x6e602842 // uaddlp v2.4s, v2.8h
WORD $0x6e602863 // uaddlp v3.4s, v3.8h
WORD $0x6ea06840 // uadalp v0.2d, v2.4s
WORD $0x6ea06861 // uadalp v1.2d, v3.4s
WORD $0x54fffea1 // b.ne .LBB8_5
WORD $0x4ee08420 // add v0.2d, v1.2d, v0.2d
WORD $0xeb01011f // cmp x8, x1
WORD $0x5ef1b800 // addp d0, v0.2d
WORD $0x9e660009 // fmov x9, d0
WORD $0x54000140 // b.eq .LBB8_9
LBB8_7:
WORD $0x8b080c0a // add x10, x0, x8, lsl #3
WORD $0xcb080028 // sub x8, x1, x8
LBB8_8:
WORD $0xfc408540 // ldr d0, [x10], #8
WORD $0xf1000508 // subs x8, x8, #1
WORD $0x0e205800 // cnt v0.8b, v0.8b
WORD $0x2e303800 // uaddlv h0, v0.8b
WORD $0x1e26000b // fmov w11, s0
WORD $0x8b090169 // add x9, x11, x9
WORD $0x54ffff41 // b.ne .LBB8_8
LBB8_9:
WORD $0xf9000049 // str x9, [x2]
WORD $0xa8c17bfd // ldp x29, x30, [sp], #16
WORD $0xd65f03c0 // ret