-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.s
904 lines (904 loc) · 15.5 KB
/
main.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
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
.arch armv6
.eabi_attribute 28, 1
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 1
.eabi_attribute 18, 4
.file "main.c"
.text
.align 2
.arch armv6
.syntax unified
.arm
.fpu neon
.type and_low, %function
and_low:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #20
vstr d0, [fp, #-20]
vstr d1, [fp, #-12]
ldrd r2, [fp, #-20]
mov r3, r2
and r3, r3, #1
mov r0, r3
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.size and_low, .-and_low
.align 2
.syntax unified
.arm
.fpu neon
.type newU128, %function
newU128:
@ args = 0, pretend = 0, frame = 40
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #44
strd r0, [fp, #-36]
strd r2, [fp, #-44]
sub r3, fp, #28
mov r1, r3
ldrd r2, [fp, #-44]
strd r2, [r1]
sub r3, fp, #28
mov r1, r3
ldrd r2, [fp, #-36]
strd r2, [r1, #8]
sub r3, fp, #28
str r3, [fp, #-8]
ldr r3, [fp, #-8]
vld1.64 {d16-d17}, [r3:64]
vmov q0, q8 @ v2di
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.size newU128, .-newU128
.align 2
.syntax unified
.arm
.fpu neon
.type newU128_0, %function
newU128_0:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #12
vmov.i32 d16, #0 @ di
vstr.64 d16, [fp, #-12] @ int
ldrd r2, [fp, #-12]
vmov d16, r2, r3
vmov d17, r2, r3
nop
vmov q0, q8 @ v2di
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.size newU128_0, .-newU128_0
.align 2
.syntax unified
.arm
.fpu neon
.type u128FromChar, %function
u128FromChar:
@ args = 0, pretend = 0, frame = 32
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #36
str r0, [fp, #-32]
ldr r3, [fp, #-32]
str r3, [fp, #-24]
ldr r3, [fp, #-24]
vld1.8 {d16-d17}, [r3]
vstr d16, [fp, #-20]
vstr d17, [fp, #-12]
vldr d16, [fp, #-20]
vldr d17, [fp, #-12]
nop
vmov q0, q8 @ v2di
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.size u128FromChar, .-u128FromChar
.section .rodata
.align 2
.LC0:
.ascii "%s - low: 0x%llx high: 0x%llx\012\000"
.text
.align 2
.global printU128
.syntax unified
.arm
.fpu neon
.type printU128, %function
printU128:
@ args = 0, pretend = 0, frame = 56
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #72
vstr d0, [fp, #-52]
vstr d1, [fp, #-44]
str r0, [fp, #-56]
ldr r3, .L16
ldr ip, [r3]
vldr d16, [fp, #-52]
vldr d17, [fp, #-44]
vstr d16, [fp, #-36]
vstr d17, [fp, #-28]
vldr d16, [fp, #-36]
vldr d17, [fp, #-28]
vmov r2, r3, d16 @ int
vldr d16, [fp, #-52]
vldr d17, [fp, #-44]
vstr d16, [fp, #-20]
vstr d17, [fp, #-12]
vldr d16, [fp, #-20]
vldr d17, [fp, #-12]
vmov r0, r1, d17 @ int
strd r0, [sp, #8]
strd r2, [sp]
ldr r2, [fp, #-56]
ldr r1, .L16+4
mov r0, ip
bl fprintf
nop
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L17:
.align 2
.L16:
.word stderr
.word .LC0
.size printU128, .-printU128
.align 2
.syntax unified
.arm
.fpu neon
.type shiftRight, %function
shiftRight:
@ args = 0, pretend = 0, frame = 48
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
push {r4, r5, fp}
add fp, sp, #8
sub sp, sp, #52
vstr d0, [fp, #-60]
vstr d1, [fp, #-52]
vldr d16, [fp, #-60]
vldr d17, [fp, #-52]
vstr d16, [fp, #-28]
vstr d17, [fp, #-20]
vldr d16, [fp, #-28]
vldr d17, [fp, #-20]
vshr.u64 q8, q8, #1
vstr d16, [fp, #-44]
vstr d17, [fp, #-36]
ldrd r4, [fp, #-52]
mov r0, #1
mov r1, #0
and r2, r4, r0
and r3, r5, r1
orrs r3, r2, r3
beq .L20
ldrd r4, [fp, #-44]
mov r0, #0
mov r1, #-2147483648
orr r2, r4, r0
orr r3, r5, r1
strd r2, [fp, #-44]
.L20:
vldr d16, [fp, #-44]
vldr d17, [fp, #-36]
vmov q0, q8 @ v2di
sub sp, fp, #8
@ sp needed
pop {r4, r5, fp}
bx lr
.size shiftRight, .-shiftRight
.align 2
.syntax unified
.arm
.fpu neon
.type add, %function
add:
@ args = 0, pretend = 0, frame = 80
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #84
vstr d0, [fp, #-68]
vstr d1, [fp, #-60]
vstr d2, [fp, #-84]
vstr d3, [fp, #-76]
vldr d16, [fp, #-84]
vldr d17, [fp, #-76]
vldr d18, [fp, #-68]
vldr d19, [fp, #-60]
vstr d18, [fp, #-20]
vstr d19, [fp, #-12]
vstr d16, [fp, #-36]
vstr d17, [fp, #-28]
vldr d18, [fp, #-20]
vldr d19, [fp, #-12]
vldr d16, [fp, #-36]
vldr d17, [fp, #-28]
vadd.i64 q8, q9, q8
vstr d16, [fp, #-52]
vstr d17, [fp, #-44]
ldrd r0, [fp, #-52]
ldrd r2, [fp, #-84]
cmp r1, r3
cmpeq r0, r2
bcs .L24
ldrd r0, [fp, #-44]
adds r2, r0, #1
adc r3, r1, #0
strd r2, [fp, #-44]
.L24:
vldr d16, [fp, #-52]
vldr d17, [fp, #-44]
vmov q0, q8 @ v2di
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.size add, .-add
.align 2
.syntax unified
.arm
.fpu neon
.type subtract, %function
subtract:
@ args = 0, pretend = 0, frame = 80
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #84
vstr d0, [fp, #-68]
vstr d1, [fp, #-60]
vstr d2, [fp, #-84]
vstr d3, [fp, #-76]
vldr d16, [fp, #-68]
vldr d17, [fp, #-60]
vstr d16, [fp, #-20]
vstr d17, [fp, #-12]
vldr d16, [fp, #-84]
vldr d17, [fp, #-76]
vstr d16, [fp, #-36]
vstr d17, [fp, #-28]
vldr d18, [fp, #-20]
vldr d19, [fp, #-12]
vldr d16, [fp, #-36]
vldr d17, [fp, #-28]
vsub.i64 q8, q9, q8
vstr d16, [fp, #-52]
vstr d17, [fp, #-44]
ldrd r0, [fp, #-52]
ldrd r2, [fp, #-68]
cmp r1, r3
cmpeq r0, r2
bls .L28
ldrd r0, [fp, #-44]
subs r2, r0, #1
sbc r3, r1, #0
strd r2, [fp, #-44]
.L28:
vldr d16, [fp, #-52]
vldr d17, [fp, #-44]
vmov q0, q8 @ v2di
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.size subtract, .-subtract
.align 2
.global greaterThanEqual
.syntax unified
.arm
.fpu neon
.type greaterThanEqual, %function
greaterThanEqual:
@ args = 0, pretend = 0, frame = 64
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #68
vstr d0, [fp, #-52]
vstr d1, [fp, #-44]
vstr d2, [fp, #-68]
vstr d3, [fp, #-60]
ldrd r2, [fp, #-52]
strd r2, [fp, #-12]
ldrd r2, [fp, #-44]
strd r2, [fp, #-20]
ldrd r2, [fp, #-52]
strd r2, [fp, #-28]
ldrd r2, [fp, #-60]
strd r2, [fp, #-36]
ldrd r0, [fp, #-20]
ldrd r2, [fp, #-36]
cmp r1, r3
cmpeq r0, r2
bcc .L31
ldrd r0, [fp, #-20]
ldrd r2, [fp, #-36]
cmp r1, r3
cmpeq r0, r2
bne .L32
ldrd r0, [fp, #-12]
ldrd r2, [fp, #-28]
cmp r1, r3
cmpeq r0, r2
bcs .L32
.L31:
mov r3, #0
b .L33
.L32:
mov r3, #1
.L33:
mov r0, r3
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.size greaterThanEqual, .-greaterThanEqual
.align 2
.global equal
.syntax unified
.arm
.fpu neon
.type equal, %function
equal:
@ args = 0, pretend = 0, frame = 64
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #68
vstr d0, [fp, #-52]
vstr d1, [fp, #-44]
vstr d2, [fp, #-68]
vstr d3, [fp, #-60]
ldrd r2, [fp, #-52]
strd r2, [fp, #-12]
ldrd r2, [fp, #-44]
strd r2, [fp, #-20]
ldrd r2, [fp, #-68]
strd r2, [fp, #-28]
ldrd r2, [fp, #-60]
strd r2, [fp, #-36]
ldrd r0, [fp, #-20]
ldrd r2, [fp, #-36]
cmp r1, r3
cmpeq r0, r2
bne .L35
ldrd r0, [fp, #-12]
ldrd r2, [fp, #-28]
cmp r1, r3
cmpeq r0, r2
bne .L35
mov r3, #1
b .L36
.L35:
mov r3, #0
.L36:
mov r0, r3
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.size equal, .-equal
.align 2
.global MMM
.syntax unified
.arm
.fpu neon
.type MMM, %function
MMM:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 1, uses_anonymous_args = 0
push {r4, r5, r6, r7, fp, lr}
vpush.64 {d8, d9, d10, d11, d12, d13, d14, d15}
add fp, sp, #84
vmov q6, q0 @ v2di
vmov q7, q1 @ v2di
bl newU128_0
vmov q4, q0 @ v2di
adr r3, .L44
ldrd r2, [r3]
ldr r0, .L44+8
mvn r1, #-1073741824
bl newU128
vmov q5, q0 @ v2di
vmov q0, q7 @ v2di
bl and_low
mov r3, r0
mov r6, r3
mov r4, #126
b .L38
.L41:
vmov q0, q6 @ v2di
bl and_low
mov r3, r0
mov r5, r3
vmov q0, q4 @ v2di
bl and_low
mov r2, r0
and r3, r5, r6
cmp r2, r3
beq .L39
vmov q1, q5 @ v2di
vmov q0, q4 @ v2di
bl add
vmov q4, q0 @ v2di
.L39:
cmp r5, #0
beq .L40
vmov q1, q7 @ v2di
vmov q0, q4 @ v2di
bl add
vmov q4, q0 @ v2di
.L40:
vmov q0, q6 @ v2di
bl shiftRight
vmov q6, q0 @ v2di
vmov q0, q4 @ v2di
bl shiftRight
vmov q4, q0 @ v2di
sub r4, r4, #1
.L38:
cmp r4, #0
bne .L41
vmov q1, q5 @ v2di
vmov q0, q4 @ v2di
bl greaterThanEqual
mov r3, r0
cmp r3, #0
beq .L42
vmov q1, q5 @ v2di
vmov q0, q4 @ v2di
bl subtract
vmov q4, q0 @ v2di
.L42:
vmov q8, q4 @ v2di
vmov q0, q8 @ v2di
sub sp, fp, #84
@ sp needed
vldm sp!, {d8-d15}
pop {r4, r5, r6, r7, fp, pc}
.L45:
.align 3
.L44:
.word 176625
.word 0
.word -423
.size MMM, .-MMM
.align 2
.global MMM_1
.syntax unified
.arm
.fpu neon
.type MMM_1, %function
MMM_1:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 1, uses_anonymous_args = 0
push {r4, r5, fp, lr}
vpush.64 {d8, d9, d10, d11, d12, d13}
add fp, sp, #60
vmov q6, q0 @ v2di
bl newU128_0
vmov q4, q0 @ v2di
adr r3, .L53
ldrd r2, [r3]
ldr r0, .L53+8
mvn r1, #-1073741824
bl newU128
vmov q5, q0 @ v2di
vmov q0, q6 @ v2di
bl and_low
mov r3, r0
cmp r3, #0
beq .L47
vmov q1, q5 @ v2di
vmov q0, q4 @ v2di
bl add
vmov q4, q0 @ v2di
.L47:
vmov q1, q6 @ v2di
vmov q0, q4 @ v2di
bl add
vmov q4, q0 @ v2di
vmov q0, q4 @ v2di
bl shiftRight
vmov q4, q0 @ v2di
mov r4, #125
b .L48
.L50:
vmov q0, q4 @ v2di
bl and_low
mov r3, r0
cmp r3, #0
beq .L49
vmov q1, q5 @ v2di
vmov q0, q4 @ v2di
bl add
vmov q4, q0 @ v2di
.L49:
vmov q0, q4 @ v2di
bl shiftRight
vmov q4, q0 @ v2di
sub r4, r4, #1
.L48:
cmp r4, #0
bne .L50
vmov q1, q5 @ v2di
vmov q0, q4 @ v2di
bl greaterThanEqual
mov r3, r0
cmp r3, #0
beq .L51
vmov q1, q5 @ v2di
vmov q0, q4 @ v2di
bl subtract
vmov q4, q0 @ v2di
.L51:
vmov q8, q4 @ v2di
vmov q0, q8 @ v2di
sub sp, fp, #60
@ sp needed
vldm sp!, {d8-d13}
pop {r4, r5, fp, pc}
.L54:
.align 3
.L53:
.word 176625
.word 0
.word -423
.size MMM_1, .-MMM_1
.align 2
.global ME_MMM
.syntax unified
.arm
.fpu neon
.type ME_MMM, %function
ME_MMM:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
vpush.64 {d8, d9, d10, d11, d12, d13}
add fp, sp, #52
sub sp, sp, #16
vmov q4, q0 @ v2di
vstr d2, [fp, #-68]
vstr d3, [fp, #-60]
bl newU128_0
vmov q5, q0 @ v2di
adr r3, .L60
ldrd r2, [r3]
adr r1, .L60+8
ldrd r0, [r1]
bl newU128
vmov q6, q0 @ v2di
vmov q0, q6 @ v2di
bl MMM_1
vmov q5, q0 @ v2di
vmov q1, q6 @ v2di
vmov q0, q4 @ v2di
bl MMM
vmov q4, q0 @ v2di
b .L56
.L58:
vldr d16, [fp, #-68]
vldr d17, [fp, #-60]
vmov q0, q8 @ v2di
bl and_low
mov r3, r0
cmp r3, #0
beq .L57
vmov q1, q4 @ v2di
vmov q0, q5 @ v2di
bl MMM
vmov q5, q0 @ v2di
.L57:
vmov q1, q4 @ v2di
vmov q0, q4 @ v2di
bl MMM
vmov q4, q0 @ v2di
vldr d16, [fp, #-68]
vldr d17, [fp, #-60]
vmov q0, q8 @ v2di
bl shiftRight
vmov q8, q0 @ v2di
vstr d16, [fp, #-68]
vstr d17, [fp, #-60]
.L56:
ldrd r2, [fp, #-68]
orrs r3, r2, r3
bne .L58
ldrd r2, [fp, #-60]
orrs r3, r2, r3
bne .L58
vmov q0, q5 @ v2di
bl MMM_1
vmov q8, q0 @ v2di
vmov q0, q8 @ v2di
sub sp, fp, #52
@ sp needed
vldm sp!, {d8-d13}
pop {fp, pc}
.L61:
.align 3
.L60:
.word -727667363
.word -23
.word 153323117
.word 0
.size ME_MMM, .-ME_MMM
.align 2
.global Encypt
.syntax unified
.arm
.fpu neon
.type Encypt, %function
Encypt:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #16
vstr d0, [fp, #-20]
vstr d1, [fp, #-12]
adr r3, .L64
ldrd r2, [r3]
adr r1, .L64+8
ldrd r0, [r1]
bl newU128
vmov q8, q0 @ v2di
vmov q1, q8 @ v2di
vldr d0, [fp, #-20]
vldr d1, [fp, #-12]
bl ME_MMM
vmov q8, q0 @ v2di
vmov q0, q8 @ v2di
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L65:
.align 3
.L64:
.word 463131873
.word 1121068490
.word 1046843180
.word 947050211
.size Encypt, .-Encypt
.align 2
.global Decrypt
.syntax unified
.arm
.fpu neon
.type Decrypt, %function
Decrypt:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #16
vstr d0, [fp, #-20]
vstr d1, [fp, #-12]
adr r3, .L68
ldrd r2, [r3]
adr r1, .L68+8
ldrd r0, [r1]
bl newU128
vmov q8, q0 @ v2di
vmov q1, q8 @ v2di
vldr d0, [fp, #-20]
vldr d1, [fp, #-12]
bl ME_MMM
vmov q8, q0 @ v2di
vmov q0, q8 @ v2di
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L69:
.align 3
.L68:
.word -834791263
.word -370256966
.word -343159921
.word 144194563
.size Decrypt, .-Decrypt
.section .rodata
.align 2
.LC1:
.ascii "r\000"
.align 2
.LC2:
.ascii "./generator/inputs_new.txt\000"
.align 2
.LC3:
.ascii "w+\000"
.align 2
.LC4:
.ascii "./results/results.csv\000"
.align 2
.LC5:
.ascii "encrypt,decrypt\012\000"
.align 2
.LC6:
.ascii "%.7f,%.7f\012\000"
.align 2
.LC7:
.ascii "NOT euqal!\000"
.align 2
.LC8:
.ascii "loop time: %.20f\012\000"
.text
.align 2
.global main
.syntax unified
.arm
.fpu neon
.type main, %function
main:
@ args = 0, pretend = 0, frame = 136
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #144
str r0, [fp, #-136]
str r1, [fp, #-140]
ldr r1, .L75+8
ldr r0, .L75+12
bl fopen
str r0, [fp, #-8]
ldr r1, .L75+16
ldr r0, .L75+20
bl fopen
str r0, [fp, #-12]
ldr r3, [fp, #-12]
mov r2, #16
mov r1, #1
ldr r0, .L75+24
bl fwrite
bl clock
str r0, [fp, #-16]
b .L71
.L73:
mov r3, #0
str r3, [fp, #-20]
mov r3, #0
str r3, [fp, #-24]
mov r3, #0
str r3, [fp, #-28]
mov r3, #0
str r3, [fp, #-32]
sub r3, fp, #132
mov r0, r3
bl u128FromChar
vstr d0, [fp, #-52]
vstr d1, [fp, #-44]
bl clock
str r0, [fp, #-20]
vldr d0, [fp, #-52]
vldr d1, [fp, #-44]
bl Encypt
vstr d0, [fp, #-68]
vstr d1, [fp, #-60]
bl clock
str r0, [fp, #-24]
bl clock
str r0, [fp, #-28]
vldr d0, [fp, #-68]
vldr d1, [fp, #-60]
bl Decrypt
vstr d0, [fp, #-84]
vstr d1, [fp, #-76]
bl clock
str r0, [fp, #-32]
ldr r2, [fp, #-24]
ldr r3, [fp, #-20]
sub r3, r2, r3
vmov s15, r3 @ int
vcvt.f64.s32 d17, s15
vldr.64 d18, .L75
vdiv.f64 d16, d17, d18
vstr.64 d16, [fp, #-92]
ldr r2, [fp, #-32]
ldr r3, [fp, #-28]
sub r3, r2, r3
vmov s15, r3 @ int
vcvt.f64.s32 d17, s15
vldr.64 d18, .L75
vdiv.f64 d16, d17, d18
vstr.64 d16, [fp, #-100]
ldrd r2, [fp, #-100]
strd r2, [sp]
ldrd r2, [fp, #-92]
ldr r1, .L75+28
ldr r0, [fp, #-12]
bl fprintf
vldr d2, [fp, #-84]
vldr d3, [fp, #-76]
vldr d0, [fp, #-52]
vldr d1, [fp, #-44]
bl equal
mov r3, r0
cmp r3, #0
bne .L71
ldr r0, .L75+32
bl puts
mov r3, #1
b .L74
.L71:
sub r3, fp, #132
ldr r2, [fp, #-8]
mov r1, #15
mov r0, r3
bl fgets
mov r3, r0
cmp r3, #0
bne .L73
bl clock
str r0, [fp, #-104]
ldr r0, [fp, #-8]
bl fclose
ldr r0, [fp, #-12]
bl fclose
ldr r2, [fp, #-104]
ldr r3, [fp, #-16]
sub r3, r2, r3
vmov s15, r3 @ int
vcvt.f64.s32 d17, s15
vldr.64 d18, .L75
vdiv.f64 d16, d17, d18
vstr.64 d16, [fp, #-116]
ldrd r2, [fp, #-116]
ldr r0, .L75+36
bl printf
mov r3, #1
.L74:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L76:
.align 3
.L75:
.word 0
.word 1093567616
.word .LC1
.word .LC2
.word .LC3
.word .LC4
.word .LC5
.word .LC6
.word .LC7
.word .LC8
.size main, .-main
.ident "GCC: (Raspbian 8.3.0-6+rpi1) 8.3.0"
.section .note.GNU-stack,"",%progbits