forked from Dvd848/CTFs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprogram.c
1123 lines (1119 loc) · 24.2 KB
/
program.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
/* Preamble:
Decompiled Web Assembly generated by wasmdec.
Note: this section of code isn't decompiled webassembly,
just support functions in cased decompiled code requires it
*/
#include <stdint.h> // For the bit size specific types
#include <math.h> // For certian WASM operations
typedef const char* wasm_table_t; // WASM tables
// Bit size specific types not declared in stdint.h:
typedef float float32_t;
typedef double float64_t;
// C implementation of WASM expressions:
unsigned int _rotl(const unsigned int value, int shift) {
if ((shift &= sizeof(value) * 8 - 1) == 0)
return value;
return (value << shift) | (value >> (sizeof(value)*8 - shift));
}
unsigned int _rotr(const unsigned int value, int shift) {
if ((shift &= sizeof(value) * 8 - 1) == 0)
return value;
return (value >> shift) | (value << (sizeof(value)*8 - shift));
}
#define MAX(a,b) ((a) > (b) ? a : b)
#define MIN(a,b) ((a) < (b) ? a : b)
// Host functions: used to request information from host machine.
extern int32_t host_has_feature(int32_t feature_opcode);
extern void host_grow_memory(int32_t size);
extern int32_t host_get_current_memory(void);
extern int32_t host_get_page_size(void);
// End of preamble
// WASM globals:
extern int gimport$1; /* import */
extern int gimport$2; /* import */
int global$0 = 2080;
int global$1 = 5244960;
float global$2 = 0.000000;
extern void ffimport$0(int local0); /* import */
int f0(int local0, int local1, int local2, int local3, int local4, int local5, int local6, int local7, int local8, int local9, int local10, int local11, int local12, int local13, int local14, int local15, int local16, int local17, int local18, int local19, int local20, int local21, int local22, int local23, int local24, int local25, int local26, int local27, int local28, int local29, int local30, int local31, int local32, int local33, int local34, int local35, int local36, int local37, int local38, int local39, int local40) {
// Parsed WASM function locals:
int local41;
int local42;
int local43;
int local44;
int local45;
int local46;
int local47;
int local48;
int local49;
int local50;
int local51;
int local52;
int local53;
int local54;
int local55;
int local56;
int local57;
int local58;
int local59;
int local60;
int local61;
int local62;
int local63;
int local64;
int local65;
int local66;
int local67;
int local68;
int local69;
int local70;
int local71;
int local72;
int local73;
int local74;
int local75;
int local76;
int local77;
int local78;
int local79;
int local80;
int local81;
int local82;
int local83;
int local84;
int local85;
int local86;
int local87;
int local88;
int local89;
int local90;
int local91;
int local92;
int local93;
int local94;
int local95;
int local96;
int local97;
int local98;
int local99;
int local100;
int local101;
int local102;
int local103;
int local104;
int local105;
int local106;
int local107;
int local108;
int local109;
int local110;
int local111;
int local112;
int local113;
int local114;
int local115;
int local116;
int local117;
int local118;
int local119;
int local120;
int local121;
int local122;
int local123;
int local124;
int local125;
int local126;
int local127;
int local128;
int local129;
int local130;
int local131;
int local132;
int local133;
int local134;
int local135;
int local136;
int local137;
int local138;
int local139;
int local140;
int local141;
int local142;
int local143;
int local144;
int local145;
int local146;
int local147;
int local148;
int local149;
int local150;
int local151;
int local152;
int local153;
int local154;
int local155;
int local156;
int local157;
int local158;
int local159;
int local160;
int local161;
int local162;
int local163;
int local164;
int local165;
int local166;
int local167;
int local168;
int local169;
int local170;
int local171;
int local172;
int local173;
int local174;
int local175;
int local176;
int local177;
int local178;
int local179;
int local180;
int local181;
int local182;
int local183;
int local184;
int local185;
int local186;
int local187;
int local188;
int local189;
int local190;
int local191;
int local192;
int local193;
int local194;
int local195;
int local196;
int local197;
int local198;
int local199;
int local200;
int local201;
int local202;
int local203;
int local204;
int local205;
int local206;
int local207;
int local208;
int local209;
int local210;
int local211;
int local212;
int local213;
int local214;
int local215;
int local216;
int local217;
int local218;
int local219;
int local220;
int local221;
int local222;
int local223;
int local224;
int local225;
int local226;
int local227;
int local228;
int local229;
int local230;
int local231;
int local232;
int local233;
int local234;
int local235;
int local236;
int local237;
int local238;
int local239;
int local240;
int local241;
int local242;
int local243;
int local244;
int local245;
int local246;
int local247;
int local248;
int local249;
int local250;
int local251;
int local252;
int local253;
int local254;
int local255;
int local256;
int local257;
int local258;
int local259;
int local260;
int local261;
int local262;
int local263;
int local264;
int local265;
int local266;
int local267;
int local268;
int local269;
int local270;
int local271;
int local272;
int local273;
int local274;
int local275;
int local276;
int local277;
int local278;
int local279;
int local280;
int local281;
int local282;
int local283;
int local284;
int local285;
int local286;
int local287;
int local288;
int local289;
int local290;
int local291;
int local292;
int local293;
int local294;
int local295;
int local296;
int local297;
int local298;
int local299;
int local300;
int local301;
int local302;
int local303;
int local304;
int local305;
int local306;
int local307;
int local308;
int local309;
int local310;
int local311;
int local312;
int local313;
int local314;
int local315;
int local316;
int local317;
int local318;
int local319;
int local320;
int local321;
int local322;
int local323;
int local324;
int local325;
int local326;
int local327;
int local328;
int local329;
int local330;
int local331;
int local332;
int local333;
int local334;
int local335;
int local336;
int local337;
int local338;
int local339;
int local340;
int local341;
int local342;
int local343;
int local344;
int local345;
int local346;
int local347;
int local348;
int local349;
int local350;
int local351;
int local352;
int local353;
int local354;
int local355;
int local356;
int local357;
int local358;
int local359;
int local360;
int local361;
int local362;
int local363;
int local364;
int local365;
int local366;
int local367;
int local368;
int local369;
int local370;
int local371;
int local372;
int local373;
int local374;
int local375;
int local376;
int local377;
int local378;
int local379;
int local380;
int local381;
int local382;
int local383;
int local384;
int local385;
int local386;
int local387;
int local388;
int local389;
int local390;
int local391;
int local392;
int local393;
int local394;
int local395;
int local396;
int local397;
int local398;
int local399;
int local400;
int local401;
int local402;
int local403;
int local404;
int local405;
int local406;
int local407;
int local408;
int local409;
int local410;
int local411;
int local412;
int local413;
int local414;
int local415;
int local416;
int local417;
int local418;
int local419;
int local420;
int local421;
int local422;
int local423;
int local424;
int local425;
int local426;
int local427;
int local428;
int local429;
int local430;
int local431;
int local432;
int local433;
int local434;
int local435;
int local436;
int local437;
int local438;
int local439;
int local440;
int local441;
int local442;
int local443;
int local444;
int local445;
int local446;
int local447;
int local448;
int local449;
int local450;
int local451;
int local452;
int local453;
int local454;
int local455;
int local456;
int local457;
int local458;
int local459;
int local460;
int local461;
int local462;
int local463;
int local464;
int local465;
int local466;
int local467;
int local468;
int local469;
int local470;
int local471;
int local472;
int local473;
int local474;
int local475;
int local476;
int local477;
int local478;
int local479;
int local480;
int local481;
int local482;
int local483;
int local484;
int local485;
int local486;
int local487;
int local488;
int local489;
int local490;
int local491;
int local492;
int local493;
int local494;
int local495;
int local496;
local495 = global$0;
global$0 = global$0 + 176 if (global$0 >= global$1) {
ffimport$0(176);
} // <No else block>
local288 = local0;
local289 = local1;
local300 = local2;
local311 = local3;
local322 = local4;
local324 = local5;
local325 = local6;
local326 = local7;
local327 = local8;
local328 = local9;
local290 = local10;
local291 = local11;
local292 = local12;
local293 = local13;
local294 = local14;
local295 = local15;
local296 = local16;
local297 = local17;
local298 = local18;
local299 = local19;
local301 = local20;
local302 = local21;
local303 = local22;
local304 = local23;
local305 = local24;
local306 = local25;
local307 = local26;
local308 = local27;
local309 = local28;
local310 = local29;
local312 = local30;
local313 = local31;
local314 = local32;
local315 = local33;
local316 = local34;
local317 = local35;
local318 = local36;
local319 = local37;
local320 = local38;
local321 = local39;
local323 = local40;
local452 = 0;
local41 = local288;
local370 = local41 ^ -1;
local206 = local370 & 208;
local42 = local288;
local207 = local42 & -209;
local411 = local206 | local207;
local453 = local411 - 184;
local329 = label$2:
local496 = local453;
(local496 < 0) ? (0 - local496) : (local496);
;
local77 = local452;
local165 = local77 + local329;
local452 = local165;
local88 = local289;
local387 = local88 ^ -1;
local266 = local387 & 146;
local99 = local289;
local271 = local99 & -147;
local444 = local266 | local271;
local487 = local444 - 230;
local364 = label$3:
local496 = local487;
(local496 < 0) ? (0 - local496) : (local496);
;
local110 = local452;
local202 = local110 + local364;
local452 = local202;
local121 = local300;
local409 = local121 ^ -1;
local208 = local409 & 100;
local132 = local300;
local213 = local132 & -101;
local415 = local208 | local213;
local458 = local415 - 16;
local335 = label$4:
local496 = local458;
(local496 < 0) ? (0 - local496) : (local496);
;
local143 = local452;
local173 = local143 + local335;
local452 = local173;
local154 = local311;
local380 = local154 ^ -1;
local230 = local380 & 203;
local43 = local311;
local235 = local43 & -204;
local426 = local230 | local235;
local469 = local426 - 187;
local346 = label$5:
local496 = local469;
(local496 < 0) ? (0 - local496) : (local496);
;
local54 = local452;
local184 = local54 + local346;
local452 = local184;
local65 = local322;
local392 = local65 ^ -1;
local252 = local392 & 3;
local70 = local322;
local257 = local70 & -4;
local437 = local252 | local257;
local480 = local437 - 57;
local357 = label$6:
local496 = local480;
(local496 < 0) ? (0 - local496) : (local496);
;
local71 = local452;
local194 = local71 + local357;
local452 = local194;
local72 = local324;
local400 = local72 ^ -1;
local267 = local400 & 61;
local73 = local324;
local268 = local73 & -62;
local441 = local267 | local268;
local483 = local441 - 18;
local359 = label$7:
local496 = local483;
(local496 < 0) ? (0 - local496) : (local496);
;
local74 = local452;
local195 = local74 + local359;
local452 = local195;
local75 = local325;
local401 = local75 ^ -1;
local269 = local401 & 3;
local76 = local325;
local270 = local76 & -4;
local442 = local269 | local270;
local484 = local442 - 44;
local360 = label$8:
local496 = local484;
(local496 < 0) ? (0 - local496) : (local496);
;
local78 = local452;
local196 = local78 + local360;
local452 = local196;
local79 = local326;
local402 = local79 ^ -1;
local272 = local402 & 166;
local80 = local326;
local273 = local80 & -167;
local443 = local272 | local273;
local485 = local443 - 206;
local361 = label$9:
local496 = local485;
(local496 < 0) ? (0 - local496) : (local496);
;
local81 = local452;
local197 = local81 + local361;
local452 = local197;
local82 = local327;
local403 = local82 ^ -1;
local274 = local403 & 42;
local83 = local327;
local275 = local83 & -43;
local445 = local274 | local275;
local486 = local445 - 25;
local362 = label$10:
local496 = local486;
(local496 < 0) ? (0 - local496) : (local496);
;
local84 = local452;
local198 = local84 + local362;
local452 = local198;
local85 = local328;
local404 = local85 ^ -1;
local276 = local404 & 151;
local86 = local328;
local277 = local86 & -152;
local446 = local276 | local277;
local488 = local446 - 244;
local363 = label$11:
local496 = local488;
(local496 < 0) ? (0 - local496) : (local496);
;
local87 = local452;
local199 = local87 + local363;
local452 = local199;
local89 = local290;
local405 = local89 ^ -1;
local278 = local405 & 250;
local90 = local290;
local279 = local90 & -251;
local447 = local278 | local279;
local489 = local447 - 145;
local365 = label$12:
local496 = local489;
(local496 < 0) ? (0 - local496) : (local496);
;
local91 = local452;
local200 = local91 + local365;
local452 = local200;
local92 = local291;
local406 = local92 ^ -1;
local280 = local406 & 209;
local93 = local291;
local281 = local93 & -210;
local448 = local280 | local281;
local490 = local448 - 252;
local366 = label$13:
local496 = local490;
(local496 < 0) ? (0 - local496) : (local496);
;
local94 = local452;
local201 = local94 + local366;
local452 = local201;
local95 = local292;
local407 = local95 ^ -1;
local282 = local407 & 249;
local96 = local292;
local283 = local96 & -250;
local449 = local282 | local283;
local491 = local449 - 128;
local367 = label$14:
local496 = local491;
(local496 < 0) ? (0 - local496) : (local496);
;
local97 = local452;
local203 = local97 + local367;
local452 = local203;
local98 = local293;
local408 = local98 ^ -1;
local284 = local408 & 138;
local100 = local293;
local285 = local100 & -139;
local450 = local284 | local285;
local492 = local450 - 185;
local368 = label$15:
local496 = local492;
(local496 < 0) ? (0 - local496) : (local496);
;
local101 = local452;
local204 = local101 + local368;
local452 = local204;
local102 = local294;
local410 = local102 ^ -1;
local286 = local410 & 163;
local103 = local294;
local287 = local103 & -164;
local451 = local286 | local287;
local493 = local451 - 151;
local369 = label$16:
local496 = local493;
(local496 < 0) ? (0 - local496) : (local496);
;
local104 = local452;
local205 = local104 + local369;
local452 = local205;
local105 = local295;
local371 = local105 ^ -1;
local209 = local371 & 144;
local106 = local295;
local210 = local106 & -145;
local412 = local209 | local210;
local454 = local412 - 248;
local330 = label$17:
local496 = local454;
(local496 < 0) ? (0 - local496) : (local496);
;
local107 = local452;
local166 = local107 + local330;
local452 = local166;
local108 = local296;
local372 = local108 ^ -1;
local211 = local372 & 150;
local109 = local296;
local212 = local109 & -151;
local413 = local211 | local212;
local455 = local413 - 187;
local331 = label$18:
local496 = local455;
(local496 < 0) ? (0 - local496) : (local496);
;
local111 = local452;
local167 = local111 + local331;
local452 = local167;
local112 = local297;
local373 = local112 ^ -1;
local214 = local373 & 66;
local113 = local297;
local215 = local113 & -67;
local414 = local214 | local215;
local456 = local414 - 116;
local332 = label$19:
local496 = local456;
(local496 < 0) ? (0 - local496) : (local496);
;
local114 = local452;
local168 = local114 + local332;
local452 = local168;
local115 = local298;
local374 = local115 ^ -1;
local216 = local374 & 244;
local116 = local298;
local217 = local116 & -245;
local416 = local216 | local217;
local457 = local416 - 197;
local333 = label$20:
local496 = local457;
(local496 < 0) ? (0 - local496) : (local496);
;
local117 = local452;
local169 = local117 + local333;
local452 = local169;
local118 = local299;
local375 = local118 ^ -1;
local218 = local375 & 58;
local119 = local299;
local219 = local119 & -59;
local417 = local218 | local219;
local459 = local417 - 87;
local334 = label$21:
local496 = local459;
(local496 < 0) ? (0 - local496) : (local496);
;
local120 = local452;
local170 = local120 + local334;
local452 = local170;
local122 = local301;
local376 = local122 ^ -1;
local220 = local376 & 21;
local123 = local301;
local221 = local123 & -22;
local418 = local220 | local221;
local460 = local418 - 120;
local336 = label$22:
local496 = local460;
(local496 < 0) ? (0 - local496) : (local496);
;
local124 = local452;
local171 = local124 + local336;
local452 = local171;
local125 = local302;
local377 = local125 ^ -1;
local222 = local377 & 150;
local126 = local302;
local223 = local126 & -151;
local419 = local222 | local223;
local461 = local419 - 165;
local337 = label$23:
local496 = local461;
(local496 < 0) ? (0 - local496) : (local496);
;
local127 = local452;
local172 = local127 + local337;
local452 = local172;
local128 = local303;
local378 = local128 ^ -1;
local224 = local378 & 211;
local129 = local303;
local225 = local129 & -212;
local420 = local224 | local225;
local462 = local420 - 254;
local338 = label$24:
local496 = local462;
(local496 < 0) ? (0 - local496) : (local496);
;
local130 = local452;
local174 = local130 + local338;
local452 = local174;
local131 = local304;
local379 = local131 ^ -1;
local226 = local379 & 229;
local133 = local304;
local227 = local133 & -230;
local421 = local226 | local227;
local463 = local421 - 208;
local339 = label$25:
local496 = local463;
(local496 < 0) ? (0 - local496) : (local496);
;
local134 = local452;
local175 = local134 + local339;
local452 = local175;
local135 = local305;
local381 = local135 ^ -1;
local228 = local381 & 187;
local136 = local305;
local229 = local136 & -188;
local422 = local228 | local229;
local464 = local422 - 139;
local340 = label$26:
local496 = local464;
(local496 < 0) ? (0 - local496) : (local496);
;
local137 = local452;
local176 = local137 + local340;
local452 = local176;
local138 = local306;
local382 = local138 ^ -1;
local231 = local382 & 163;
local139 = local306;
local232 = local139 & -164;
local423 = local231 | local232;
local465 = local423 - 206;
local341 = label$27:
local496 = local465;
(local496 < 0) ? (0 - local496) : (local496);
;
local140 = local452;
local177 = local140 + local341;
local452 = local177;
local141 = local307;
local383 = local141 ^ -1;
local233 = local383 & 107;
local142 = local307;
local234 = local142 & -108;
local424 = local233 | local234;
local466 = local424 - 88;
local342 = label$28:
local496 = local466;
(local496 < 0) ? (0 - local496) : (local496);
;
local144 = local452;
local178 = local144 + local342;
local452 = local178;
local145 = local308;
local384 = local145 ^ -1;
local236 = local384 & 174;
local146 = local308;
local237 = local146 & -175;
local425 = local236 | local237;
local467 = local425 - 131;
local343 = label$29:
local496 = local467;
(local496 < 0) ? (0 - local496) : (local496);
;
local147 = local452;
local179 = local147 + local343;
local452 = local179;
local148 = local309;
local385 = local148 ^ -1;
local238 = local385 & 106;
local149 = local309;
local239 = local149 & -107;
local427 = local238 | local239;
local468 = local427 - 9;
local344 = label$30:
local496 = local468;
(local496 < 0) ? (0 - local496) : (local496);
;
local150 = local452;
local180 = local150 + local344;
local452 = local180;
local151 = local310;
local386 = local151 ^ -1;
local240 = local386 & 34;
local152 = local310;
local241 = local152 & -35;
local428 = local240 | local241;
local470 = local428 - 18;
local345 = label$31:
local496 = local470;
(local496 < 0) ? (0 - local496) : (local496);
;
local153 = local452;
local181 = local153 + local345;
local452 = local181;
local155 = local312;
local388 = local155 ^ -1;
local242 = local388 & 186;
local156 = local312;
local243 = local156 & -187;
local429 = local242 | local243;
local471 = local429 - 138;
local347 = label$32:
local496 = local471;
(local496 < 0) ? (0 - local496) : (local496);
;
local157 = local452;
local182 = local157 + local347;
local452 = local182;
local158 = local313;
local389 = local158 ^ -1;
local244 = local389 & 225;
local159 = local313;
local245 = local159 & -226;
local430 = local244 | local245;
local472 = local430 - 141;
local348 = label$33:
local496 = local472;
(local496 < 0) ? (0 - local496) : (local496);
;
local160 = local452;
local183 = local160 + local348;
local452 = local183;
local161 = local314;
local390 = local161 ^ -1;
local246 = local390 & 8;
local162 = local314;
local247 = local162 & -9;
local431 = local246 | local247;
local473 = local431 - 37;