-
Notifications
You must be signed in to change notification settings - Fork 0
/
lonely_file.c
3169 lines (3053 loc) · 86.6 KB
/
lonely_file.c
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
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Address range: 0x14ff3 - 0x15000
int64_t function_14ff3(void) {
// 0x14ff3
int64_t v1; // 0x14ff3
int64_t v2; // 0x14ff3
int64_t v3; // 0x14ff3
return function_146c0(v1, v2, v3, &g12);
}
// Address range: 0xc693 - 0xc718
int64_t function_c693(int64_t a1, int64_t a2, int64_t a3, int64_t a4) {
int32_t v1 = *(int32_t *)(a1 + 168); // 0xc694
int32_t v2 = *(int32_t *)(a2 + 168); // 0xc69d
int64_t v3 = a4 & 0xffffff00 | (int64_t)(v1 == 3) | (int64_t)(v1 == 9); // 0xc6a6
if (v2 == 3 || v2 == 9) {
// 0xc6d8
if ((char)v3 == 0) {
// 0xc6d1
return 1;
}
} else {
// 0xc6c3
if ((char)v3 != 0) {
// 0xc6d1
return 0xffffffff;
}
}
int64_t v4 = *(int64_t *)(a1 + 96); // 0xc6dc
int64_t v5 = *(int64_t *)(a2 + 96); // 0xc6e0
if (v5 > v4) {
// 0xc6d1
return 0xffffffff;
}
// 0xc6e6
if (v5 < v4) {
// 0xc6d1
return 1;
}
uint32_t v6 = (int32_t)*(int64_t *)(a1 + 104) - *(int32_t *)(a2 + 104); // 0xc6ec
int64_t result = v6; // 0xc6ec
if (v6 != 0) {
// 0xc6d1
return result;
}
// 0xc6f2
return function_4a80(a1, a1, a2, v1 & -256 | (int32_t)v3, result);
}
// Address range: 0xd038 - 0xd3d4
int64_t function_d038(void) {
// 0xd038
int64_t v1; // 0xd038
int64_t v2; // 0xd038
int64_t v3; // 0xd038
fputs_unlocked(dcgettext(v2, " -t sort by modification time, newest first\n -T, --tabsize=COLS assume tab stops at each COLS instead of 8\n", v3), v1);
fputs_unlocked(dcgettext(0, " -u with -lt: sort by, and show, access time;\n with -l: show access time and sort by name;\n otherwise: sort by access time, newest first\n -U do not sort; list entries in directory order\n -v natural sort of (version) numbers within text\n", 5), (int64_t)g16);
fputs_unlocked(dcgettext(0, " -w, --width=COLS set output width to COLS. 0 means no limit\n -x list entries by lines instead of by columns\n -X sort alphabetically by entry extension\n -Z, --context print any security context of each file\n -1 list one file per line. Avoid '\\n' with -q or -b\n", 5), (int64_t)g16);
fputs_unlocked(dcgettext(0, " --help display this help and exit\n", 5), (int64_t)g16);
fputs_unlocked(dcgettext(0, " --version output version information and exit\n", 5), (int64_t)g16);
fputs_unlocked(dcgettext(0, "\nThe SIZE argument is an integer and optional unit (example: 10K is 10*1024).\nUnits are K,M,G,T,P,E,Z,Y (powers of 1024) or KB,MB,... (powers of 1000).\n", 5), (int64_t)g16);
fputs_unlocked(dcgettext(0, "\nThe TIME_STYLE argument can be full-iso, long-iso, iso, locale, or +FORMAT.\nFORMAT is interpreted like in date(1). If FORMAT is FORMAT1<newline>FORMAT2,\nthen FORMAT1 applies to non-recent files and FORMAT2 to recent files.\nTIME_STYLE prefixed with 'posix-' takes effect only outside the POSIX locale.\nAlso the TIME_STYLE environment variable sets the default style to use.\n", 5), (int64_t)g16);
fputs_unlocked(dcgettext(0, "\nUsing color to distinguish file types is disabled both by default and\nwith --color=never. With --color=auto, ls emits color codes only when\nstandard output is connected to a terminal. The LS_COLORS environment\nvariable can change the settings. Use the dircolors command to set it.\n", 5), (int64_t)g16);
fputs_unlocked(dcgettext(0, "\nExit status:\n 0 if OK,\n 1 if minor problems (e.g., cannot access subdirectory),\n 2 if serious trouble (e.g., cannot access command-line argument).\n", 5), (int64_t)g16);
int64_t v4 = (int64_t)"ls"; // 0xd187
if (g13 != 1) {
// 0xd189
v4 = g13 != 2 ? (int64_t)"vdir" : (int64_t)"dir";
}
int64_t v5 = &g5; // 0xd207
int64_t v6 = &v5; // 0xd22d
int64_t v7 = &g5; // 0xd22d
int64_t v8 = v6; // 0xd247
while ((int32_t)strcmp(v4, v7, 5, (int64_t)"sha512sum") != 0) {
// 0xd230
v6 += 16;
v7 = *(int64_t *)v6;
v8 = v6;
if (v7 == 0) {
// break -> 0xd249
break;
}
v8 = v6;
}
int64_t v9 = *(int64_t *)(v8 + 8); // 0xd249
__printf_chk(1, dcgettext(0, "\n%s online help: <%s>\n", 5), "GNU coreutils", "https://www.gnu.org/software/coreutils/");
int64_t v10 = setlocale(5, 0);
int64_t v11; // 0xd038
if (v9 == 0) {
if (v10 == 0) {
goto lab_0xd36c;
} else {
// 0xd357
if ((int32_t)strncmp(v10, "en_", 3) != 0) {
goto lab_0xd3aa;
} else {
goto lab_0xd36c;
}
}
} else {
// 0xd264
v11 = v9;
if (v10 == 0) {
goto lab_0xd2b3;
} else {
// 0xd29a
v11 = v9;
if ((int32_t)strncmp(v10, "en_", 3) != 0) {
goto lab_0xd3aa;
} else {
goto lab_0xd2b3;
}
}
}
lab_0xd36c:;
char * v12 = (char *)v4;
__printf_chk(1, dcgettext(0, "Full documentation at: <%s%s>\n", 5), "https://www.gnu.org/software/coreutils/", v12);
char * v13 = v12; // 0xd3a2
int64_t v14 = (int64_t)" invocation"; // 0xd3a2
goto lab_0xd2f4;
lab_0xd2b3:
// 0xd2b3
__printf_chk(1, dcgettext(0, "Full documentation at: <%s%s>\n", 5), "https://www.gnu.org/software/coreutils/", (char *)v4);
int64_t v15 = v4 != v11 ? (int64_t)&g2 : (int64_t)" invocation"; // 0xd2f0
v13 = (char *)v11;
v14 = v15;
goto lab_0xd2f4;
lab_0xd2f4:
// 0xd2f4
__printf_chk(1, dcgettext(0, "or available locally via: info '(coreutils) %s%s'\n", 5), v13, (char *)v14);
return function_ccfa();
lab_0xd3aa:
// 0xd3aa
__printf_chk(1, dcgettext(0, "Report %s translation bugs to <https://translationproject.org/team/>\n", 5), (char *)v4, "https://www.gnu.org/software/coreutils/");
v11 = v4;
goto lab_0xd2b3;
}
// Address range: 0xa773 - 0xa7a6
int64_t function_a773(int64_t a1, int64_t a2) {
int64_t v1 = *(int64_t *)(a1 + 72); // 0xa774
int64_t v2 = *(int64_t *)(a2 + 72); // 0xa77b
if (v2 > v1) {
// 0xa7a0
return 0xffffffff;
}
int64_t v3 = v2 - v1; // 0xa77b
if (v3 != 0) {
// 0xa790
return v3 < 0 != ((v3 ^ v2) & (v2 ^ v1)) < 0;
}
// 0xa783
int64_t v4; // 0xa773
int64_t v5; // 0xa773
return function_7310(a1, a1, v1, v5, v4);
}
// Address range: 0xf5d3 - 0xf680
int64_t function_f5d3(uint64_t a1) {
int64_t * v1 = (int64_t *)(a1 + 8); // 0xf5de
uint64_t v2 = *v1; // 0xf5de
int64_t result; // 0xf5d3
if (v2 <= a1) {
lab_0xf66b:
// 0xf66b
*(int64_t *)(a1 + 24) = 0;
*(int64_t *)(a1 + 32) = 0;
return result;
}
int64_t * v3 = (int64_t *)(a1 + 72);
int64_t v4 = a1;
int64_t * v5 = (int64_t *)v4;
int64_t v6; // 0xf5d3
int64_t v7; // 0xf5f0
while (*v5 == 0) {
// 0xf5f0
v7 = v4 + 16;
result = v6;
if (v2 <= v7) {
// break (via goto) -> 0xf66b
goto lab_0xf66b;
}
v4 = v7;
v5 = (int64_t *)v4;
}
int64_t * v8 = (int64_t *)(v4 + 8); // 0xf601
int64_t v9 = *v8; // 0xf601
int64_t result2 = v6; // 0xf60d
int64_t v10; // 0xf5d3
int64_t v11; // 0xf5d3
int64_t * v12; // 0xf629
int64_t v13; // 0xf629
if (v9 != 0) {
// 0xf61b
v12 = (int64_t *)(v9 + 8);
v13 = *v12;
*(int64_t *)v9 = 0;
*v12 = *v3;
*v3 = v9;
v10 = v9;
result2 = v13;
while (v13 != 0) {
// 0xf61b
v11 = v13;
v12 = (int64_t *)(v11 + 8);
v13 = *v12;
*(int64_t *)v11 = 0;
*v12 = v10;
*v3 = v11;
v10 = v11;
result2 = v13;
}
}
// 0xf645
*v5 = 0;
int64_t v14 = v4 + 16; // 0xf658
*v8 = 0;
uint64_t v15 = *v1; // 0xf665
while (v15 > v14) {
int64_t v16 = result2;
uint64_t v17 = v15; // 0xf5f4
v4 = v14;
v5 = (int64_t *)v4;
while (*v5 == 0) {
// 0xf5f0
v7 = v4 + 16;
result = v16;
if (v17 <= v7) {
// break (via goto) -> 0xf66b
goto lab_0xf66b;
}
v4 = v7;
v5 = (int64_t *)v4;
}
// 0xf601
v8 = (int64_t *)(v4 + 8);
v9 = *v8;
result2 = v16;
if (v9 != 0) {
// 0xf61b
v12 = (int64_t *)(v9 + 8);
v13 = *v12;
*(int64_t *)v9 = 0;
*v12 = *v3;
*v3 = v9;
v10 = v9;
result2 = v13;
while (v13 != 0) {
// 0xf61b
v11 = v13;
v12 = (int64_t *)(v11 + 8);
v13 = *v12;
*(int64_t *)v11 = 0;
*v12 = v10;
*v3 = v11;
v10 = v11;
result2 = v13;
}
}
// 0xf645
*v5 = 0;
v14 = v4 + 16;
*v8 = 0;
v15 = *v1;
}
// 0xf66b
*(int64_t *)(a1 + 24) = 0;
*(int64_t *)(a1 + 32) = 0;
return result2;
}
// Address range: 0x6f03 - 0x6f12
int64_t function_6f03(int64_t a1, int64_t a2) {
// 0x6f03
int64_t v1; // 0x6f03
int64_t v2; // 0x6f03
return function_4a80((int16_t *)a1, a1, v1, v2, a2);
}
// Address range: 0xdfd3 - 0xdfdc
int64_t function_dfd3(int64_t a1) {
// 0xdfd3
g18 = a1;
int64_t result; // 0xdfd3
return result;
}
// Address range: 0xc933 - 0xc9e8
int64_t function_c933(int64_t a1, int64_t a2, int64_t a3) {
int32_t v1 = *(int32_t *)(a1 + 168); // 0xc93b
int32_t v2 = *(int32_t *)(a2 + 168); // 0xc944
int64_t v3 = a3 & 0xffffff00 | (int64_t)(v1 == 3) | (int64_t)(v1 == 9); // 0xc94d
int64_t v4; // 0xc933
if (v2 == 3 || v2 == 9) {
// 0xc980
if ((char)v3 == 0) {
// 0xc976
return 1;
}
} else {
// 0xc968
v4 = 1;
if ((char)v3 != 0) {
// 0xc976
return 0xffffffff;
}
}
int64_t v5 = v3 | (int64_t)(v1 & -256);
int64_t v6 = (int64_t)(v2 & -256) | (int64_t)(v2 == 9); // 0xc961
int64_t v7 = strrchr(a1, 46, v5, v6); // 0xc98c
int64_t v8 = strrchr(46, 46, v5, v6); // 0xc99d
int64_t v9 = v8 == 0 ? (int64_t)&g6 : v8; // 0xc9af
int64_t v10 = v7 == 0 ? (int64_t)&g6 : v7; // 0xc9b6
int64_t v11 = function_7310(v10, v9, v5, v6, v4); // 0xc9bd
int64_t result = v11 & 0xffffffff; // 0xc9c2
if ((int32_t)v11 != 0) {
// 0xc976
return result;
}
// 0xc9c9
return function_7310(v10, v9, v5, v6, result);
}
// Address range: 0x6830 - 0x6869
int64_t function_6830(void) {
// 0x6830
return 0;
}
// Address range: 0xc183 - 0xc208
int64_t function_c183(int64_t a1, int64_t a2, int64_t a3, int64_t a4) {
int32_t v1 = *(int32_t *)(a1 + 168); // 0xc184
int32_t v2 = *(int32_t *)(a2 + 168); // 0xc18d
int64_t v3 = a4 & 0xffffff00 | (int64_t)(v1 == 3) | (int64_t)(v1 == 9); // 0xc196
if (v2 == 3 || v2 == 9) {
// 0xc1c8
if ((char)v3 == 0) {
// 0xc1c1
return 1;
}
} else {
// 0xc1b3
if ((char)v3 != 0) {
// 0xc1c1
return 0xffffffff;
}
}
int64_t v4 = *(int64_t *)(a1 + 96); // 0xc1cc
int64_t v5 = *(int64_t *)(a2 + 96); // 0xc1d0
if (v5 > v4) {
// 0xc1c1
return 0xffffffff;
}
// 0xc1d6
if (v5 < v4) {
// 0xc1c1
return 1;
}
uint32_t v6 = (int32_t)*(int64_t *)(a1 + 104) - *(int32_t *)(a2 + 104); // 0xc1dc
int64_t result = v6; // 0xc1dc
if (v6 != 0) {
// 0xc1c1
return result;
}
// 0xc1e2
return function_7310(a1, a1, a2, v3 | (int64_t)(v1 & -256), result);
}
// Address range: 0xf383 - 0xf3c3
int64_t function_f383(uint64_t a1, int64_t a2, uint64_t a3) {
int64_t * v1 = (int64_t *)(a1 + 8); // 0xf389
uint64_t v2 = *v1; // 0xf389
int64_t result = 0; // 0xf38d
if (v2 <= a1) {
lab_0xf39f:
// 0xf39f
return result;
}
int64_t result2 = 0;
int64_t v3 = a1; // 0xf395
int64_t v4 = v2; // 0xf393
int64_t v5 = result2; // 0xf393
int64_t v6 = result2; // 0xf393
int64_t v7 = v3; // 0xf393
int64_t v8; // 0xf3b4
if (*(int64_t *)v3 != 0) {
result = v6;
if (v6 >= a3) {
return result;
}
// 0xf3a8
v5 = v6 + 1;
*(int64_t *)(a2 - 8 + 8 * v5) = *(int64_t *)v7;
v8 = *(int64_t *)(v7 + 8);
v6 = v5;
v7 = v8;
while (v8 != 0) {
// 0xf3bd
result = v6;
if (v6 >= a3) {
return result;
}
// 0xf3a8
v5 = v6 + 1;
*(int64_t *)(a2 - 8 + 8 * v5) = *(int64_t *)v7;
v8 = *(int64_t *)(v7 + 8);
v6 = v5;
v7 = v8;
}
// 0xf395
v4 = *v1;
}
// 0xf395
result2 = v5;
v3 += 16;
while (v4 > v3) {
int64_t v9 = result2; // 0xf393
v6 = result2;
v7 = v3;
if (*(int64_t *)v3 != 0) {
result = v6;
if (v6 >= a3) {
return result;
}
// 0xf3a8
v5 = v6 + 1;
*(int64_t *)(a2 - 8 + 8 * v5) = *(int64_t *)v7;
v8 = *(int64_t *)(v7 + 8);
v6 = v5;
v7 = v8;
while (v8 != 0) {
// 0xf3bd
result = v6;
if (v6 >= a3) {
return result;
}
// 0xf3a8
v5 = v6 + 1;
*(int64_t *)(a2 - 8 + 8 * v5) = *(int64_t *)v7;
v8 = *(int64_t *)(v7 + 8);
v6 = v5;
v7 = v8;
}
// 0xf395
v4 = *v1;
v9 = v5;
}
// 0xf395
result2 = v9;
v3 += 16;
}
// 0xf39f
return result2;
}
// Address range: 0xeba3 - 0xebb4
int64_t function_eba3(uint64_t a1, uint64_t a2, int64_t a3) {
// 0xeba3
return (a1 / 8 | 0x2000000000000000 * a1) % a2;
}
// Address range: 0xfec3 - 0xfed9
int64_t function_fec3(int64_t a1) {
// 0xfec3
free(a1);
return free(a1);
}
// Address range: 0xc853 - 0xc8b5
int64_t function_c853(int64_t a1, int64_t a2) {
// 0xc853
int64_t v1; // 0xc853
int64_t v2; // 0xc853
int64_t v3 = strrchr(a1, 46, v1, v2); // 0xc866
int64_t v4 = strrchr(46, 46, v1, v2); // 0xc876
int64_t v5 = v4 == 0 ? (int64_t)&g6 : v4; // 0xc888
int64_t v6 = v3 == 0 ? (int64_t)&g6 : v3; // 0xc88f
int64_t v7; // 0xc853
int64_t result = function_7310(v6, v5, v1, v2, v7); // 0xc896
if ((int32_t)result != 0) {
// 0xc8b0
return result;
}
// 0xc89f
return function_7310(v6, v5, v1, v2, v7);
}
// Address range: 0xf493 - 0xf4b4
int64_t function_f493(int64_t a1) {
// 0xf493
*(char *)(a1 + 16) = 0;
*(int64_t *)a1 = 0x3f80000000000000;
*(int64_t *)(a1 + 8) = 0x3fb4fdf43f4ccccd;
return 0x3fb4fdf43f4ccccd;
}
// Address range: 0xfe83 - 0xfebb
int64_t function_fe83(int64_t a1, int64_t a2) {
int64_t v1 = *(int64_t *)(a2 + 8); // 0xfe84
if (*(int64_t *)(a1 + 8) != v1) {
// 0xfe90
return 0;
}
int64_t v2 = *(int64_t *)(a2 + 16); // 0xfe98
if (*(int64_t *)(a1 + 16) != v2) {
// 0xfe90
return 0;
}
int64_t v3 = strcmp(a1, a2, v1, v2); // 0xfeac
return v3 & -256 | (int64_t)((int32_t)v3 == 0);
}
// Address range: 0xa673 - 0xa6e8
int64_t function_a673(int64_t a1, int64_t a2, int64_t a3) {
int32_t v1 = *(int32_t *)(a1 + 168); // 0xa674
int32_t v2 = *(int32_t *)(a2 + 168); // 0xa67a
int64_t v3 = a3 & 0xffffff00 | (int64_t)(v1 == 3) | (int64_t)(v1 == 9); // 0xa683
int64_t v4; // 0xa673
if (v2 == 3 || v2 == 9) {
// 0xa6b0
if ((char)v3 == 0) {
// 0xa6ac
return 1;
}
} else {
// 0xa69e
v4 = 1;
if ((char)v3 != 0) {
// 0xa6ac
return 0xffffffff;
}
}
int64_t v5 = *(int64_t *)(a2 + 72); // 0xa6b4
int64_t v6 = *(int64_t *)(a1 + 72); // 0xa6b8
if (v6 > v5) {
// 0xa6ac
return 0xffffffff;
}
int64_t v7 = v6 - v5; // 0xa6b8
if (v7 != 0) {
// 0xa6d0
return v7 < 0 != ((v7 ^ v6) & (v6 ^ v5)) < 0;
}
// 0xa6c0
return function_4a80(a1, a2, v3 | (int64_t)(v1 & -256), v2 & -256 | (int32_t)(v2 == 9), v4);
}
// Address range: 0x68d3 - 0x68ec
int64_t function_68d3(int64_t a1, int64_t a2) {
if (a1 == a2) {
// 0x68e0
return *(int64_t *)(a1 + 8) & -256 | 1;
}
// 0x68de
return 0;
}
// Address range: 0x14bc3 - 0x14bd0
int64_t function_14bc3(void) {
// 0x14bc3
int64_t v1; // 0x14bc3
int64_t v2; // 0x14bc3
int64_t v3; // 0x14bc3
return function_146c0(v1, v2, v3, (int64_t *)&g24);
}
// Address range: 0x15993 - 0x15a14
int64_t function_15993(int64_t a1, uint64_t a2, uint64_t a3) {
int64_t v1; // 0x15993
int64_t v2; // 0x15993
int64_t v3; // 0x15993
int64_t v4; // 0x15993
if (a1 == 0) {
// 0x159d0
v3 = a2;
if (a2 == 0) {
goto lab_0x159f8;
} else {
goto lab_0x159d5;
}
} else {
uint64_t v5 = 0x5555555555555554 / a3; // 0x159ae
int64_t v6 = 0x5555555555555554 % a3;
v1 = v5;
v2 = v6;
v4 = a2;
if (v5 > a2) {
int64_t v7 = a2 + 1 + a2 / 2;
*(int64_t *)a2 = v7;
return function_15920(a1, v7 * a3, v6);
}
goto lab_0x159eb;
}
lab_0x159f8:;
// 0x159f8
int64_t v8; // 0x15993
int64_t v9 = v8; // 0x15a12
v3 = 128 / a3 + (int64_t)(a3 >= 129);
goto lab_0x159d5;
lab_0x159d5:;
uint128_t v10 = (int128_t)v3 * (int128_t)a3; // 0x159d8
int64_t v11 = v10; // 0x159d8
int64_t v12 = v3; // 0x159e4
v1 = v11;
v2 = v10 > 0xffffffffffffffff;
int64_t v13 = v9; // 0x159e4
v4 = v3;
if (v11 > -1 == v10 <= 0xffffffffffffffff) {
// 0x159c1
*(int64_t *)a2 = v12;
return function_15920(a1, v12 * a3, 0);
}
goto lab_0x159eb;
lab_0x159eb:;
int64_t v14 = v13 - 8; // 0x159eb
*(int64_t *)v14 = v1;
function_15b30(a1, v4, v2);
v8 = v14;
goto lab_0x159f8;
}
// Address range: 0x16893 - 0x168a8
int64_t function_16893(int64_t a1, int64_t a2) {
// 0x16893
int64_t v1; // 0x16893
return function_16800(lgetfilecon() & 0xffffffff, a2, v1);
}
// Address range: 0xf093 - 0xf0f7
int64_t function_f093(uint64_t a1, int64_t a2, int64_t a3, int64_t a4, int64_t a5) {
uint64_t v1 = *(int64_t *)(a1 + 8); // 0xf097
int64_t v2 = a1; // 0xf0a3
int64_t v3 = 0; // 0xf0a3
int64_t v4 = 0; // 0xf0a3
int64_t v5 = 0; // 0xf0a3
int64_t v6 = 0; // 0xf0a3
int64_t v7; // 0xf093
int64_t v8; // 0xf093
int64_t v9; // 0xf093
if (v1 > a1) {
while (true) {
lab_0xf0b9_2:;
int64_t v10 = v4;
int64_t v11 = v3;
v8 = v2;
v9 = v11;
v7 = v10;
if (*(int64_t *)v8 == 0) {
goto lab_0xf0b0;
} else {
int64_t v12 = *(int64_t *)(v8 + 8); // 0xf0bf
int64_t v13 = v10 + 1; // 0xf0c3
int64_t v14 = v11 + 1; // 0xf0c7
v9 = v14;
v7 = v13;
int64_t v15 = v12; // 0xf0ce
int64_t v16 = v14; // 0xf0ce
if (v12 == 0) {
goto lab_0xf0b0;
} else {
int64_t v17 = *(int64_t *)(v15 + 8); // 0xf0d0
int64_t v18 = v16 + 1; // 0xf0d4
v15 = v17;
v16 = v18;
while (v17 != 0) {
// 0xf0d0
v17 = *(int64_t *)(v15 + 8);
v18 = v16 + 1;
v15 = v17;
v16 = v18;
}
int64_t v19 = v8 + 16; // 0xf0dd
v2 = v19;
v3 = v18;
v4 = v13;
v5 = v18;
v6 = v13;
if (v19 >= v1) {
// break -> 0xf0e6
break;
}
goto lab_0xf0b9_2;
}
}
}
}
lab_0xf0e6:
// 0xf0e6
if (*(int64_t *)(a1 + 24) == v6) {
// 0xf0ef
return *(int64_t *)(a1 + 32) == v5;
}
// 0xf0ee
return 0;
lab_0xf0b0:;
int64_t v20 = v8 + 16; // 0xf0b0
v2 = v20;
v3 = v9;
v4 = v7;
v5 = v9;
v6 = v7;
if (v20 >= v1) {
// break -> 0xf0e6
goto lab_0xf0e6;
}
goto lab_0xf0b9_2;
// 0xf0b9
goto lab_0xf0b9_2;
}
// Address range: 0xc9f3 - 0xcaa8
int64_t function_c9f3(int64_t a1, int64_t a2, int64_t a3) {
int32_t v1 = *(int32_t *)(a1 + 168); // 0xc9fb
int32_t v2 = *(int32_t *)(a2 + 168); // 0xca04
int64_t v3 = a3 & 0xffffff00 | (int64_t)(v1 == 3) | (int64_t)(v1 == 9); // 0xca0d
int64_t v4; // 0xc9f3
if (v2 == 3 || v2 == 9) {
// 0xca40
if ((char)v3 == 0) {
// 0xca36
return 1;
}
} else {
// 0xca28
v4 = 1;
if ((char)v3 != 0) {
// 0xca36
return 0xffffffff;
}
}
int64_t v5 = v3 | (int64_t)(v1 & -256);
int64_t v6 = (int64_t)(v2 & -256) | (int64_t)(v2 == 9); // 0xca21
int64_t v7 = strrchr(a2, 46, v5, v6); // 0xca4c
int64_t v8 = strrchr(a2, 46, v5, v6); // 0xca5d
int64_t v9 = v8 == 0 ? (int64_t)&g6 : v8; // 0xca6f
int64_t v10 = v7 == 0 ? (int64_t)&g6 : v7; // 0xca76
int64_t v11 = function_7310(v10, v9, v5, v6, v4); // 0xca7d
int64_t result = v11 & 0xffffffff; // 0xca82
if ((int32_t)v11 != 0) {
// 0xca36
return result;
}
// 0xca89
return function_7310(v10, v10, v5, v6, result);
}
// Address range: 0xc013 - 0xc056
int64_t function_c013(int64_t a1, int64_t a2) {
int64_t v1 = *(int64_t *)(a1 + 96); // 0xc014
int64_t v2 = *(int64_t *)(a2 + 96); // 0xc01b
if (v2 > v1) {
// 0xc045
return 0xffffffff;
}
// 0xc021
if (v2 < v1) {
// 0xc045
return 1;
}
uint32_t result = (int32_t)*(int64_t *)(a1 + 104) - *(int32_t *)(a2 + 104); // 0xc027
if (result != 0) {
// 0xc045
return result;
}
// 0xc02c
int64_t v3; // 0xc013
int64_t v4; // 0xc013
return function_7310(a1, a1, a2, v4, v3);
}
// Address range: 0x7903 - 0x7958
int64_t function_7903(int64_t a1, int64_t a2, int64_t a3) {
int32_t v1 = *(int32_t *)(a1 + 168); // 0x7904
int32_t v2 = *(int32_t *)(a2 + 168); // 0x790a
int64_t v3 = a3 & 0xffffff00 | (int64_t)(v1 == 3) | (int64_t)(v1 == 9); // 0x7913
int64_t v4; // 0x7903
if (v2 == 3 || v2 == 9) {
// 0x7940
if ((char)v3 == 0) {
// 0x793c
return 1;
}
} else {
// 0x792e
v4 = 1;
if ((char)v3 != 0) {
// 0x793c
return 0xffffffff;
}
}
// 0x7944
return function_4a80((int16_t *)a1, a2, v3 | (int64_t)(v1 & -256), (int64_t)(v2 & -256) | (int64_t)(v2 == 9), v4);
}
// Address range: 0x168b3 - 0x168c8
int64_t function_168b3(int64_t a1, int64_t a2) {
// 0x168b3
int64_t v1; // 0x168b3
return function_16800(fgetfilecon() & 0xffffffff, a2, v1);
}
// Address range: 0xa5f3 - 0xa668
int64_t function_a5f3(int64_t a1, int64_t a2, int64_t a3) {
int32_t v1 = *(int32_t *)(a1 + 168); // 0xa5f4
int32_t v2 = *(int32_t *)(a2 + 168); // 0xa5fa
int64_t v3 = a3 & 0xffffff00 | (int64_t)(v1 == 3) | (int64_t)(v1 == 9); // 0xa603
int64_t v4; // 0xa5f3
if (v2 == 3 || v2 == 9) {
// 0xa630
if ((char)v3 == 0) {
// 0xa62c
return 1;
}
} else {
// 0xa61e
v4 = 1;
if ((char)v3 != 0) {
// 0xa62c
return 0xffffffff;
}
}
int64_t v5 = *(int64_t *)(a2 + 72); // 0xa634
int64_t v6 = *(int64_t *)(a1 + 72); // 0xa638
if (v6 > v5) {
// 0xa62c
return 0xffffffff;
}
int64_t v7 = v6 - v5; // 0xa638
if (v7 != 0) {
// 0xa650
return v7 < 0 != ((v7 ^ v6) & (v6 ^ v5)) < 0;
}
// 0xa640
return function_7310(a1, a2, v3 | (int64_t)(v1 & -256), (int64_t)(v2 & -256) | (int64_t)(v2 == 9), v4);
}
// Address range: 0x76c0 - 0x777b
int64_t function_76c0(int64_t a1, int64_t a2, int64_t a3) {
// 0x76c0
int64_t result; // 0x7733
if (a1 == 0) {
// 0x7760
__printf_chk(1, "%*lu ", a3, a2);
// 0x772c
result = 0x100000000 * a3 / 0x100000000 + 1 + g57;
g57 = result;
return result;
}
int32_t v1 = (int32_t)a3 - (int32_t)function_114b0(); // 0x76e5
int64_t v2 = v1 > 0 ? v1 : 0; // 0x76ec
fputs_unlocked(a1, (int64_t)g43);
int64_t v3 = strlen(a1); // 0x76f7
int64_t v4 = g43; // 0x7708
int64_t * v5 = (int64_t *)(v4 + 40); // 0x770f
uint64_t v6 = *v5; // 0x770f
int64_t v7; // 0x76c0
int64_t v8; // 0x76c0
int64_t v9; // 0x7719
int64_t v10; // 0x76c0
int64_t v11; // 0x76c0
if (v6 >= *(int64_t *)(v4 + 48)) {
// 0x7750
__overflow(v4, 32, a3, v11, v10, v8);
v7 = a3;
} else {
// 0x7719
v9 = v6 + 1;
*v5 = v9;
*(char *)v6 = 32;
v7 = v9;
}
int64_t v12 = v2 + 0xffffffff; // 0x7724
int64_t v13 = v12 & 0xffffffff; // 0x772a
int64_t v14 = v7; // 0x772a
while ((int32_t)v12 != -1) {
// 0x7708
v4 = g43;
v5 = (int64_t *)(v4 + 40);
v6 = *v5;
if (v6 >= *(int64_t *)(v4 + 48)) {
// 0x7750
__overflow(v4, 32, v14, v11, v10, v8);
v7 = v14;
} else {
// 0x7719
v9 = v6 + 1;
*v5 = v9;
*(char *)v6 = 32;
v7 = v9;
}
// 0x7724
v12 = v13 + 0xffffffff;
v13 = v12 & 0xffffffff;
v14 = v7;
}
// 0x772c
result = v3 + v2 + 1 + g57;
g57 = result;
return result;
}
// Address range: 0xa883 - 0xa900
int64_t function_a883(int64_t a1, int64_t a2, int64_t a3) {
int32_t v1 = *(int32_t *)(a1 + 168); // 0xa884
int32_t v2 = *(int32_t *)(a2 + 168); // 0xa88a
int64_t v3 = a3 & 0xffffff00 | (int64_t)(v1 == 3) | (int64_t)(v1 == 9); // 0xa893
if (v2 == 3 || v2 == 9) {
// 0xa8c0
if ((char)v3 == 0) {
// 0xa8bc
return 1;
}
} else {
// 0xa8ae
if ((char)v3 != 0) {
// 0xa8bc
return 0xffffffff;
}
}
int64_t v4 = *(int64_t *)(a2 + 112); // 0xa8c4
int64_t v5 = *(int64_t *)(a1 + 112); // 0xa8c8
if (v5 > v4) {
// 0xa8bc
return 0xffffffff;
}
// 0xa8ce
if (v5 < v4) {
// 0xa8bc
return 1;
}
uint32_t v6 = (int32_t)*(int64_t *)(a2 + 120) - *(int32_t *)(a1 + 120); // 0xa8d4
int64_t result = v6; // 0xa8d4
if (v6 != 0) {
// 0xa8bc
return result;
}
// 0xa8da
return function_4a80(a1, a2, v3 | (int64_t)(v1 & -256), v2 & -256 | (int32_t)(v2 == 9), result);
}
// Address range: 0xc563 - 0xc5a6
int64_t function_c563(int64_t a1, int64_t a2) {
int64_t v1 = *(int64_t *)(a2 + 128); // 0xc564
int64_t v2 = *(int64_t *)(a1 + 128); // 0xc56b
if (v2 > v1) {
// 0xc595
return 0xffffffff;
}
// 0xc574
if (v2 < v1) {
// 0xc595
return 1;
}
uint32_t result = (int32_t)*(int64_t *)(a2 + 136) - *(int32_t *)(a1 + 136); // 0xc57d
if (result != 0) {
// 0xc595
return result;
}
// 0xc585
int64_t v3; // 0xc563
int64_t v4; // 0xc563
int64_t v5; // 0xc563
return function_4a80(a1, a2, v4, (int32_t)v5, v3);
}
// Address range: 0xc143 - 0xc176
int64_t function_c143(int64_t a1, int64_t a2) {
int64_t v1 = *(int64_t *)(a2 + 96); // 0xc144
int64_t v2 = *(int64_t *)(a1 + 96); // 0xc148
if (v2 > v1) {
// 0xc16d
return 0xffffffff;
}
// 0xc14e
if (v2 < v1) {
// 0xc16d
return 1;
}
uint32_t result = (int32_t)*(int64_t *)(a2 + 104) - *(int32_t *)(a1 + 104); // 0xc154
if (result != 0) {
// 0xc16d
return result;
}
// 0xc159
int64_t v3; // 0xc143
int64_t v4; // 0xc143
int64_t v5; // 0xc143
return function_7310(a1, a2, v4, v5, v3);
}
// Address range: 0x77f0 - 0x7852
int64_t function_77f0(int64_t a1, int64_t a2, int64_t a3) {
int64_t v1 = function_14c10(4, a3); // 0x7802
int32_t v2 = *(int32_t *)__errno_location(); // 0x7817
int64_t v3; // 0x77f0
int64_t result = error(0, v2, (char *)a2, v1, v3); // 0x781b
if ((char)a1 != 0) {
// 0x7824
g59 = 2;
// 0x782e
return result;