-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path07E0F19B09DD36A3.ll
9540 lines (8148 loc) · 587 KB
/
07E0F19B09DD36A3.ll
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
; ModuleID = '/usr/local/google/home/aeubanks/repos/test-suite/MultiSource/Benchmarks/7zip/CPP/7zip/Archive/Zip/ZipUpdate.cpp'
source_filename = "/usr/local/google/home/aeubanks/repos/test-suite/MultiSource/Benchmarks/7zip/CPP/7zip/Archive/Zip/ZipUpdate.cpp"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.GUID = type { i32, i16, i16, [8 x i8] }
%"struct.NArchive::NZip::CThreadInfo" = type { %"class.NWindows::CThread", %"class.NWindows::NSynchronization::CAutoResetEvent", %"class.NWindows::NSynchronization::CAutoResetEventWFMO", i8, ptr, %class.CMyComPtr, ptr, %class.CMyComPtr.2, %class.CMyComPtr.3, %"class.NArchive::NZip::CAddCommon", i32, %"struct.NArchive::NZip::CCompressingResult", i8, i32 }
%"class.NWindows::CThread" = type { %struct._CThread }
%struct._CThread = type { i64, i32 }
%"class.NWindows::NSynchronization::CAutoResetEvent" = type { %"class.NWindows::NSynchronization::CBaseEvent" }
%"class.NWindows::NSynchronization::CBaseEvent" = type { %struct._CEvent }
%struct._CEvent = type { i32, i32, i32, %union.pthread_mutex_t, %union.pthread_cond_t }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%union.pthread_cond_t = type { %struct.__pthread_cond_s }
%struct.__pthread_cond_s = type { %union.__atomic_wide_counter, %union.__atomic_wide_counter, [2 x i32], [2 x i32], i32, i32, [2 x i32] }
%union.__atomic_wide_counter = type { i64 }
%"class.NWindows::NSynchronization::CAutoResetEventWFMO" = type { %"class.NWindows::NSynchronization::CBaseEventWFMO.base", [6 x i8] }
%"class.NWindows::NSynchronization::CBaseEventWFMO.base" = type <{ %"struct.NWindows::NSynchronization::CBaseHandleWFMO", i8, i8 }>
%"struct.NWindows::NSynchronization::CBaseHandleWFMO" = type { ptr, ptr }
%class.CMyComPtr = type { ptr }
%class.CMyComPtr.2 = type { ptr }
%class.CMyComPtr.3 = type { ptr }
%"class.NArchive::NZip::CAddCommon" = type { %"struct.NArchive::NZip::CCompressionMethodMode", ptr, %class.CMyComPtr.6, %class.CMyComPtr.6, i8, ptr, %class.CMyComPtr.1, ptr, ptr }
%"struct.NArchive::NZip::CCompressionMethodMode" = type <{ %class.CRecordVector.4, %class.CStringBase, i32, i32, i32, i8, [3 x i8], i32, i32, i32, i32, i32, i8, [3 x i8], %class.CStringBase.5, i8, i8, [6 x i8] }>
%class.CRecordVector.4 = type { %class.CBaseRecordVector }
%class.CBaseRecordVector = type { ptr, i32, i32, ptr, i64 }
%class.CStringBase = type { ptr, i32, i32 }
%class.CStringBase.5 = type { ptr, i32, i32 }
%class.CMyComPtr.6 = type { ptr }
%class.CMyComPtr.1 = type { ptr }
%"struct.NArchive::NZip::CCompressingResult" = type { i64, i64, i32, i16, i8 }
%"class.NWindows::NSynchronization::CSynchro" = type <{ %union.pthread_mutex_t, %union.pthread_cond_t, i8, [7 x i8] }>
%"class.NArchive::NZip::CMtProgressMixer2" = type { %struct.ICompressProgressInfo, %class.CMyUnknownImp, i64, [2 x i64], [2 x i64], %class.CMyComPtr.13, %class.CMyComPtr, i8, %"class.NWindows::NSynchronization::CCriticalSection" }
%struct.ICompressProgressInfo = type { %struct.IUnknown }
%struct.IUnknown = type { ptr }
%class.CMyUnknownImp = type { i32 }
%class.CMyComPtr.13 = type { ptr }
%"class.NWindows::NSynchronization::CCriticalSection" = type { %struct.CCriticalSection }
%struct.CCriticalSection = type { %union.pthread_mutex_t }
%"class.NArchive::NZip::CMtProgressMixer" = type { %struct.ICompressProgressInfo, %class.CMyUnknownImp, ptr, %class.CMyComPtr }
%"class.NArchive::NZip::CCacheOutStream" = type { %struct.IOutStream, %class.CMyUnknownImp, %class.CMyComPtr.2, ptr, i64, i64, i64, i64, i64, i64 }
%struct.IOutStream = type { %struct.ISequentialOutStream }
%struct.ISequentialOutStream = type { %struct.IUnknown }
%class.CObjectVector.17 = type { %class.CRecordVector.0 }
%class.CRecordVector.0 = type { %class.CBaseRecordVector }
%"class.NArchive::NZip::CItemEx" = type <{ %"class.NArchive::NZip::CItem.base", i8, i32, i16, [6 x i8] }>
%"class.NArchive::NZip::CItem.base" = type <{ %"class.NArchive::NZip::CLocalItem", %"struct.NArchive::NZip::CVersion", i16, i32, i64, %struct._FILETIME, %struct._FILETIME, %struct._FILETIME, %"struct.NArchive::NZip::CExtraBlock", %class.CBuffer, i8, i8, i8 }>
%"class.NArchive::NZip::CLocalItem" = type { %"struct.NArchive::NZip::CVersion", i16, i16, i32, i32, i64, i64, %class.CStringBase.5, %"struct.NArchive::NZip::CExtraBlock" }
%"struct.NArchive::NZip::CVersion" = type { i8, i8 }
%struct._FILETIME = type { i32, i32 }
%"struct.NArchive::NZip::CExtraBlock" = type { %class.CObjectVector.16 }
%class.CObjectVector.16 = type { %class.CRecordVector.0 }
%class.CBuffer = type { ptr, i64, ptr }
%class.CMtCompressProgressMixer = type { %class.CMyComPtr, %class.CRecordVector, %class.CRecordVector, i64, i64, %"class.NWindows::NSynchronization::CCriticalSection" }
%class.CRecordVector = type { %class.CBaseRecordVector }
%class.CMemBlockManagerMt = type { %class.CMemBlockManager, %"class.NWindows::NSynchronization::CCriticalSection", %"class.NWindows::NSynchronization::CSemaphoreWFMO" }
%class.CMemBlockManager = type { ptr, i64, ptr }
%"class.NWindows::NSynchronization::CSemaphoreWFMO" = type { %"struct.NWindows::NSynchronization::CBaseHandleWFMO", i32, i32 }
%"class.NArchive::NZip::CMemRefs" = type { ptr, %class.CObjectVector.18 }
%class.CObjectVector.18 = type { %class.CRecordVector.0 }
%"class.NArchive::NZip::CThreads" = type { %class.CObjectVector.19 }
%class.CObjectVector.19 = type { %class.CRecordVector.0 }
%class.CRecordVector.20 = type { %class.CBaseRecordVector }
%class.CRecordVector.21 = type { %class.CBaseRecordVector }
%"struct.NArchive::NZip::CMemBlocks2" = type <{ %struct.CMemLockBlocks.base, [7 x i8], %"struct.NArchive::NZip::CCompressingResult", i8, i8, [6 x i8] }>
%struct.CMemLockBlocks.base = type <{ %class.CMemBlocks, i8 }>
%class.CMemBlocks = type { %class.CRecordVector.0, i64 }
%"class.NArchive::NZip::COutArchive" = type <{ %class.CMyComPtr.2, %class.COutBuffer, i64, i32, i32, i8, [7 x i8] }>
%class.COutBuffer = type <{ ptr, i32, i32, i32, i32, %class.CMyComPtr.1, i64, ptr, i8, [7 x i8] }>
%"class.NArchive::NZip::CInArchive" = type <{ %class.CMyComPtr.15, i32, [4 x i8], i64, i64, i8, [7 x i8], %class.CInBuffer, %"class.NArchive::NZip::CInArchiveInfo", i8, i8, [6 x i8] }>
%class.CMyComPtr.15 = type { ptr }
%class.CInBuffer = type <{ ptr, ptr, ptr, %class.CMyComPtr.3, i64, i32, i8, [3 x i8] }>
%"class.NArchive::NZip::CInArchiveInfo" = type { i64, i64, i64, %class.CBuffer }
%"class.NArchive::NZip::CItem" = type <{ %"class.NArchive::NZip::CLocalItem", %"struct.NArchive::NZip::CVersion", i16, i32, i64, %struct._FILETIME, %struct._FILETIME, %struct._FILETIME, %"struct.NArchive::NZip::CExtraBlock", %class.CBuffer, i8, i8, i8, [5 x i8] }>
%"struct.NArchive::NZip::CUpdateItem" = type { i8, i8, i8, i8, i8, i32, i32, i32, i32, i64, %class.CStringBase.5, %struct._FILETIME, %struct._FILETIME, %struct._FILETIME }
%class.CLocalProgress = type <{ %struct.ICompressProgressInfo, %class.CMyUnknownImp, [4 x i8], %class.CMyComPtr.13, %class.CMyComPtr, i8, [7 x i8], i64, i64, i64, i8, i8, [6 x i8] }>
%struct.CMemLockBlocks = type <{ %class.CMemBlocks, i8, [7 x i8] }>
%class.COutMemStream = type { %struct.IOutStream, %class.CMyUnknownImp, ptr, i64, i64, i8, i8, [6 x i8], %"class.NWindows::NSynchronization::CAutoResetEventWFMO", %"class.NWindows::NSynchronization::CAutoResetEventWFMO", i32, [4 x i8], %struct.CMemLockBlocks, %class.CMyComPtr.1, %class.CMyComPtr.2 }
%class.CMtCompressProgress = type <{ %struct.ICompressProgressInfo, %class.CMyUnknownImp, [4 x i8], ptr, i32, [4 x i8] }>
%"struct.NArchive::NZip::CExtraSubBlock" = type { i16, %class.CBuffer }
%"struct.NArchive::NZip::CUpdateRange" = type { i64, i64 }
%"class.NWindows::NSynchronization::CBaseEventWFMO" = type <{ %"struct.NWindows::NSynchronization::CBaseHandleWFMO", i8, i8, [6 x i8] }>
%class.CLimitedSequentialInStream = type <{ %struct.ISequentialInStream, %class.CMyUnknownImp, [4 x i8], %class.CMyComPtr.3, i64, i64, i8, [7 x i8] }>
%struct.ISequentialInStream = type { %struct.IUnknown }
$__clang_call_terminate = comdat any
$_ZN8NArchive4NZip11COutArchiveD2Ev = comdat any
$_ZN8NArchive4NZip17CMtProgressMixer214QueryInterfaceERK4GUIDPPv = comdat any
$_ZN8NArchive4NZip17CMtProgressMixer26AddRefEv = comdat any
$_ZN8NArchive4NZip17CMtProgressMixer27ReleaseEv = comdat any
$_ZN8NArchive4NZip17CMtProgressMixer2D2Ev = comdat any
$_ZN8NArchive4NZip17CMtProgressMixer2D0Ev = comdat any
$_ZN8NArchive4NZip16CMtProgressMixer14QueryInterfaceERK4GUIDPPv = comdat any
$_ZN8NArchive4NZip16CMtProgressMixer6AddRefEv = comdat any
$_ZN8NArchive4NZip16CMtProgressMixer7ReleaseEv = comdat any
$_ZN8NArchive4NZip16CMtProgressMixerD2Ev = comdat any
$_ZN8NArchive4NZip16CMtProgressMixerD0Ev = comdat any
$_ZN8NArchive4NZip15CCacheOutStream14QueryInterfaceERK4GUIDPPv = comdat any
$_ZN8NArchive4NZip15CCacheOutStream6AddRefEv = comdat any
$_ZN8NArchive4NZip15CCacheOutStream7ReleaseEv = comdat any
$_ZN8NArchive4NZip5CItemD2Ev = comdat any
$_ZN8NArchive4NZip22CCompressionMethodModeaSERKS1_ = comdat any
$_ZN13CObjectVectorIN8NArchive4NZip11CMemBlocks2EE3AddERKS2_ = comdat any
$_ZN8NArchive4NZip11CThreadInfoC2ERKNS0_22CCompressionMethodModeE = comdat any
$_ZN8NArchive4NZip11CThreadInfoD2Ev = comdat any
$_ZN13COutMemStream12SetOutStreamEP10IOutStream = comdat any
$_ZN13COutMemStream17SetRealStreamModeEv = comdat any
$_ZN13COutMemStream16ReleaseOutStreamEv = comdat any
$_ZN8NArchive4NZip8CThreadsD2Ev = comdat any
$_ZN8NArchive4NZip8CMemRefsD2Ev = comdat any
$_ZN18CMemBlockManagerMtD2Ev = comdat any
$_ZN24CMtCompressProgressMixerD2Ev = comdat any
$_ZN13CObjectVectorIN8NArchive4NZip5CItemEED2Ev = comdat any
$_ZN8NWindows16NSynchronization8CSynchroD2Ev = comdat any
$_ZN8NArchive4NZip22CCompressionMethodModeD2Ev = comdat any
$_ZN8NArchive4NZip10CAddCommonD2Ev = comdat any
$_ZN8NArchive4NZip11CExtraBlockD2Ev = comdat any
$_ZN8NArchive4NZip10CLocalItemD2Ev = comdat any
$_ZN13CObjectVectorIN8NArchive4NZip14CExtraSubBlockEED2Ev = comdat any
$_ZN13CObjectVectorIN8NArchive4NZip14CExtraSubBlockEED0Ev = comdat any
$_ZN13CObjectVectorIN8NArchive4NZip14CExtraSubBlockEE6DeleteEii = comdat any
$_ZN13CRecordVectorIPvED0Ev = comdat any
$_ZN13CObjectVectorIN8NArchive4NZip14CExtraSubBlockEEpLERKS3_ = comdat any
$_ZN7CBufferIhED2Ev = comdat any
$_ZN7CBufferIhED0Ev = comdat any
$_ZN13CRecordVectorIhED0Ev = comdat any
$_ZN13CObjectVectorIN8NArchive4NZip5CItemEED0Ev = comdat any
$_ZN13CObjectVectorIN8NArchive4NZip5CItemEE6DeleteEii = comdat any
$_ZN13CRecordVectorIyED0Ev = comdat any
$_ZN8NWindows16NSynchronization14CSemaphoreWFMO19IsSignaledAndUpdateEv = comdat any
$_ZN13CObjectVectorIN8NArchive4NZip11CMemBlocks2EED2Ev = comdat any
$_ZN13CObjectVectorIN8NArchive4NZip11CMemBlocks2EED0Ev = comdat any
$_ZN13CObjectVectorIN8NArchive4NZip11CMemBlocks2EE6DeleteEii = comdat any
$_ZN13CObjectVectorIN8NArchive4NZip11CThreadInfoEED2Ev = comdat any
$_ZN13CObjectVectorIN8NArchive4NZip11CThreadInfoEED0Ev = comdat any
$_ZN13CObjectVectorIN8NArchive4NZip11CThreadInfoEE6DeleteEii = comdat any
$_ZN13CRecordVectorIPN8NWindows16NSynchronization15CBaseHandleWFMOEED0Ev = comdat any
$_ZN13CRecordVectorIiED0Ev = comdat any
$_ZN8NArchive4NZip11CThreadInfoC2ERKS1_ = comdat any
$_ZN8NArchive4NZip10CAddCommonC2ERKS1_ = comdat any
$_ZN8NWindows16NSynchronization14CBaseEventWFMO19IsSignaledAndUpdateEv = comdat any
$_ZN8NArchive4NZip22CCompressionMethodModeC2ERKS1_ = comdat any
$_ZN8NArchive4NZip5CItemaSERKS1_ = comdat any
$_ZN8NArchive4NZip11CExtraBlock22RemoveUnknownSubBlocksEv = comdat any
$_ZN8NArchive4NZip5CItemC2ERKS1_ = comdat any
$_ZTS21ICompressProgressInfo = comdat any
$_ZTS8IUnknown = comdat any
$_ZTI8IUnknown = comdat any
$_ZTI21ICompressProgressInfo = comdat any
$_ZTS13CMyUnknownImp = comdat any
$_ZTI13CMyUnknownImp = comdat any
$_ZTS10IOutStream = comdat any
$_ZTS20ISequentialOutStream = comdat any
$_ZTI20ISequentialOutStream = comdat any
$_ZTI10IOutStream = comdat any
$_ZTV13CObjectVectorIN8NArchive4NZip14CExtraSubBlockEE = comdat any
$_ZTS13CObjectVectorIN8NArchive4NZip14CExtraSubBlockEE = comdat any
$_ZTS13CRecordVectorIPvE = comdat any
$_ZTI13CRecordVectorIPvE = comdat any
$_ZTI13CObjectVectorIN8NArchive4NZip14CExtraSubBlockEE = comdat any
$_ZTV13CRecordVectorIPvE = comdat any
$_ZTV7CBufferIhE = comdat any
$_ZTS7CBufferIhE = comdat any
$_ZTI7CBufferIhE = comdat any
$_ZTV13CRecordVectorIhE = comdat any
$_ZTS13CRecordVectorIhE = comdat any
$_ZTI13CRecordVectorIhE = comdat any
$_ZTV13CObjectVectorIN8NArchive4NZip5CItemEE = comdat any
$_ZTS13CObjectVectorIN8NArchive4NZip5CItemEE = comdat any
$_ZTI13CObjectVectorIN8NArchive4NZip5CItemEE = comdat any
$_ZTV13CRecordVectorIyE = comdat any
$_ZTS13CRecordVectorIyE = comdat any
$_ZTI13CRecordVectorIyE = comdat any
$_ZTVN8NWindows16NSynchronization14CSemaphoreWFMOE = comdat any
$_ZTSN8NWindows16NSynchronization14CSemaphoreWFMOE = comdat any
$_ZTSN8NWindows16NSynchronization15CBaseHandleWFMOE = comdat any
$_ZTIN8NWindows16NSynchronization15CBaseHandleWFMOE = comdat any
$_ZTIN8NWindows16NSynchronization14CSemaphoreWFMOE = comdat any
$_ZTV13CObjectVectorIN8NArchive4NZip11CMemBlocks2EE = comdat any
$_ZTS13CObjectVectorIN8NArchive4NZip11CMemBlocks2EE = comdat any
$_ZTI13CObjectVectorIN8NArchive4NZip11CMemBlocks2EE = comdat any
$_ZTV13CObjectVectorIN8NArchive4NZip11CThreadInfoEE = comdat any
$_ZTS13CObjectVectorIN8NArchive4NZip11CThreadInfoEE = comdat any
$_ZTI13CObjectVectorIN8NArchive4NZip11CThreadInfoEE = comdat any
$_ZTV13CRecordVectorIPN8NWindows16NSynchronization15CBaseHandleWFMOEE = comdat any
$_ZTS13CRecordVectorIPN8NWindows16NSynchronization15CBaseHandleWFMOEE = comdat any
$_ZTI13CRecordVectorIPN8NWindows16NSynchronization15CBaseHandleWFMOEE = comdat any
$_ZTV13CRecordVectorIiE = comdat any
$_ZTS13CRecordVectorIiE = comdat any
$_ZTI13CRecordVectorIiE = comdat any
$_ZTVN8NWindows16NSynchronization19CAutoResetEventWFMOE = comdat any
$_ZTSN8NWindows16NSynchronization19CAutoResetEventWFMOE = comdat any
$_ZTSN8NWindows16NSynchronization14CBaseEventWFMOE = comdat any
$_ZTIN8NWindows16NSynchronization14CBaseEventWFMOE = comdat any
$_ZTIN8NWindows16NSynchronization19CAutoResetEventWFMOE = comdat any
$_ZTVN8NWindows16NSynchronization14CBaseEventWFMOE = comdat any
@IID_ICompressProgressInfo = external global %struct.GUID, align 4
@_ZTVN8NArchive4NZip15CCacheOutStreamE = dso_local unnamed_addr constant { [10 x ptr] } { [10 x ptr] [ptr null, ptr @_ZTIN8NArchive4NZip15CCacheOutStreamE, ptr @_ZN8NArchive4NZip15CCacheOutStream14QueryInterfaceERK4GUIDPPv, ptr @_ZN8NArchive4NZip15CCacheOutStream6AddRefEv, ptr @_ZN8NArchive4NZip15CCacheOutStream7ReleaseEv, ptr @_ZN8NArchive4NZip15CCacheOutStreamD2Ev, ptr @_ZN8NArchive4NZip15CCacheOutStreamD0Ev, ptr @_ZN8NArchive4NZip15CCacheOutStream5WriteEPKvjPj, ptr @_ZN8NArchive4NZip15CCacheOutStream4SeekExjPy, ptr @_ZN8NArchive4NZip15CCacheOutStream7SetSizeEy] }, align 8
@IID_IOutStream = external global %struct.GUID, align 4
@_ZTVN8NArchive4NZip17CMtProgressMixer2E = dso_local unnamed_addr constant { [8 x ptr] } { [8 x ptr] [ptr null, ptr @_ZTIN8NArchive4NZip17CMtProgressMixer2E, ptr @_ZN8NArchive4NZip17CMtProgressMixer214QueryInterfaceERK4GUIDPPv, ptr @_ZN8NArchive4NZip17CMtProgressMixer26AddRefEv, ptr @_ZN8NArchive4NZip17CMtProgressMixer27ReleaseEv, ptr @_ZN8NArchive4NZip17CMtProgressMixer2D2Ev, ptr @_ZN8NArchive4NZip17CMtProgressMixer2D0Ev, ptr @_ZN8NArchive4NZip17CMtProgressMixer212SetRatioInfoEPKyS3_] }, align 8
@_ZTVN10__cxxabiv121__vmi_class_type_infoE = external global ptr
@_ZTSN8NArchive4NZip17CMtProgressMixer2E = dso_local constant [36 x i8] c"N8NArchive4NZip17CMtProgressMixer2E\00", align 1
@_ZTVN10__cxxabiv120__si_class_type_infoE = external global ptr
@_ZTS21ICompressProgressInfo = linkonce_odr dso_local constant [24 x i8] c"21ICompressProgressInfo\00", comdat, align 1
@_ZTVN10__cxxabiv117__class_type_infoE = external global ptr
@_ZTS8IUnknown = linkonce_odr dso_local constant [10 x i8] c"8IUnknown\00", comdat, align 1
@_ZTI8IUnknown = linkonce_odr dso_local constant { ptr, ptr } { ptr getelementptr inbounds (ptr, ptr @_ZTVN10__cxxabiv117__class_type_infoE, i64 2), ptr @_ZTS8IUnknown }, comdat, align 8
@_ZTI21ICompressProgressInfo = linkonce_odr dso_local constant { ptr, ptr, ptr } { ptr getelementptr inbounds (ptr, ptr @_ZTVN10__cxxabiv120__si_class_type_infoE, i64 2), ptr @_ZTS21ICompressProgressInfo, ptr @_ZTI8IUnknown }, comdat, align 8
@_ZTS13CMyUnknownImp = linkonce_odr dso_local constant [16 x i8] c"13CMyUnknownImp\00", comdat, align 1
@_ZTI13CMyUnknownImp = linkonce_odr dso_local constant { ptr, ptr } { ptr getelementptr inbounds (ptr, ptr @_ZTVN10__cxxabiv117__class_type_infoE, i64 2), ptr @_ZTS13CMyUnknownImp }, comdat, align 8
@_ZTIN8NArchive4NZip17CMtProgressMixer2E = dso_local constant { ptr, ptr, i32, i32, ptr, i64, ptr, i64 } { ptr getelementptr inbounds (ptr, ptr @_ZTVN10__cxxabiv121__vmi_class_type_infoE, i64 2), ptr @_ZTSN8NArchive4NZip17CMtProgressMixer2E, i32 0, i32 2, ptr @_ZTI21ICompressProgressInfo, i64 2, ptr @_ZTI13CMyUnknownImp, i64 2050 }, align 8
@_ZTVN8NArchive4NZip16CMtProgressMixerE = dso_local unnamed_addr constant { [8 x ptr] } { [8 x ptr] [ptr null, ptr @_ZTIN8NArchive4NZip16CMtProgressMixerE, ptr @_ZN8NArchive4NZip16CMtProgressMixer14QueryInterfaceERK4GUIDPPv, ptr @_ZN8NArchive4NZip16CMtProgressMixer6AddRefEv, ptr @_ZN8NArchive4NZip16CMtProgressMixer7ReleaseEv, ptr @_ZN8NArchive4NZip16CMtProgressMixerD2Ev, ptr @_ZN8NArchive4NZip16CMtProgressMixerD0Ev, ptr @_ZN8NArchive4NZip16CMtProgressMixer12SetRatioInfoEPKyS3_] }, align 8
@_ZTSN8NArchive4NZip16CMtProgressMixerE = dso_local constant [35 x i8] c"N8NArchive4NZip16CMtProgressMixerE\00", align 1
@_ZTIN8NArchive4NZip16CMtProgressMixerE = dso_local constant { ptr, ptr, i32, i32, ptr, i64, ptr, i64 } { ptr getelementptr inbounds (ptr, ptr @_ZTVN10__cxxabiv121__vmi_class_type_infoE, i64 2), ptr @_ZTSN8NArchive4NZip16CMtProgressMixerE, i32 0, i32 2, ptr @_ZTI21ICompressProgressInfo, i64 2, ptr @_ZTI13CMyUnknownImp, i64 2050 }, align 8
@_ZTSN8NArchive4NZip15CCacheOutStreamE = dso_local constant [34 x i8] c"N8NArchive4NZip15CCacheOutStreamE\00", align 1
@_ZTS10IOutStream = linkonce_odr dso_local constant [13 x i8] c"10IOutStream\00", comdat, align 1
@_ZTS20ISequentialOutStream = linkonce_odr dso_local constant [23 x i8] c"20ISequentialOutStream\00", comdat, align 1
@_ZTI20ISequentialOutStream = linkonce_odr dso_local constant { ptr, ptr, ptr } { ptr getelementptr inbounds (ptr, ptr @_ZTVN10__cxxabiv120__si_class_type_infoE, i64 2), ptr @_ZTS20ISequentialOutStream, ptr @_ZTI8IUnknown }, comdat, align 8
@_ZTI10IOutStream = linkonce_odr dso_local constant { ptr, ptr, ptr } { ptr getelementptr inbounds (ptr, ptr @_ZTVN10__cxxabiv120__si_class_type_infoE, i64 2), ptr @_ZTS10IOutStream, ptr @_ZTI20ISequentialOutStream }, comdat, align 8
@_ZTIN8NArchive4NZip15CCacheOutStreamE = dso_local constant { ptr, ptr, i32, i32, ptr, i64, ptr, i64 } { ptr getelementptr inbounds (ptr, ptr @_ZTVN10__cxxabiv121__vmi_class_type_infoE, i64 2), ptr @_ZTSN8NArchive4NZip15CCacheOutStreamE, i32 0, i32 2, ptr @_ZTI10IOutStream, i64 2, ptr @_ZTI13CMyUnknownImp, i64 2050 }, align 8
@_ZTV13CObjectVectorIN8NArchive4NZip14CExtraSubBlockEE = linkonce_odr dso_local unnamed_addr constant { [5 x ptr] } { [5 x ptr] [ptr null, ptr @_ZTI13CObjectVectorIN8NArchive4NZip14CExtraSubBlockEE, ptr @_ZN13CObjectVectorIN8NArchive4NZip14CExtraSubBlockEED2Ev, ptr @_ZN13CObjectVectorIN8NArchive4NZip14CExtraSubBlockEED0Ev, ptr @_ZN13CObjectVectorIN8NArchive4NZip14CExtraSubBlockEE6DeleteEii] }, comdat, align 8
@_ZTS13CObjectVectorIN8NArchive4NZip14CExtraSubBlockEE = linkonce_odr dso_local constant [50 x i8] c"13CObjectVectorIN8NArchive4NZip14CExtraSubBlockEE\00", comdat, align 1
@_ZTS13CRecordVectorIPvE = linkonce_odr dso_local constant [20 x i8] c"13CRecordVectorIPvE\00", comdat, align 1
@_ZTI17CBaseRecordVector = external constant ptr
@_ZTI13CRecordVectorIPvE = linkonce_odr dso_local constant { ptr, ptr, ptr } { ptr getelementptr inbounds (ptr, ptr @_ZTVN10__cxxabiv120__si_class_type_infoE, i64 2), ptr @_ZTS13CRecordVectorIPvE, ptr @_ZTI17CBaseRecordVector }, comdat, align 8
@_ZTI13CObjectVectorIN8NArchive4NZip14CExtraSubBlockEE = linkonce_odr dso_local constant { ptr, ptr, ptr } { ptr getelementptr inbounds (ptr, ptr @_ZTVN10__cxxabiv120__si_class_type_infoE, i64 2), ptr @_ZTS13CObjectVectorIN8NArchive4NZip14CExtraSubBlockEE, ptr @_ZTI13CRecordVectorIPvE }, comdat, align 8
@_ZTV13CRecordVectorIPvE = linkonce_odr dso_local unnamed_addr constant { [5 x ptr] } { [5 x ptr] [ptr null, ptr @_ZTI13CRecordVectorIPvE, ptr @_ZN17CBaseRecordVectorD2Ev, ptr @_ZN13CRecordVectorIPvED0Ev, ptr @_ZN17CBaseRecordVector6DeleteEii] }, comdat, align 8
@_ZTV7CBufferIhE = linkonce_odr dso_local unnamed_addr constant { [4 x ptr] } { [4 x ptr] [ptr null, ptr @_ZTI7CBufferIhE, ptr @_ZN7CBufferIhED2Ev, ptr @_ZN7CBufferIhED0Ev] }, comdat, align 8
@_ZTS7CBufferIhE = linkonce_odr dso_local constant [12 x i8] c"7CBufferIhE\00", comdat, align 1
@_ZTI7CBufferIhE = linkonce_odr dso_local constant { ptr, ptr } { ptr getelementptr inbounds (ptr, ptr @_ZTVN10__cxxabiv117__class_type_infoE, i64 2), ptr @_ZTS7CBufferIhE }, comdat, align 8
@_ZTV13CRecordVectorIhE = linkonce_odr dso_local unnamed_addr constant { [5 x ptr] } { [5 x ptr] [ptr null, ptr @_ZTI13CRecordVectorIhE, ptr @_ZN17CBaseRecordVectorD2Ev, ptr @_ZN13CRecordVectorIhED0Ev, ptr @_ZN17CBaseRecordVector6DeleteEii] }, comdat, align 8
@_ZTS13CRecordVectorIhE = linkonce_odr dso_local constant [19 x i8] c"13CRecordVectorIhE\00", comdat, align 1
@_ZTI13CRecordVectorIhE = linkonce_odr dso_local constant { ptr, ptr, ptr } { ptr getelementptr inbounds (ptr, ptr @_ZTVN10__cxxabiv120__si_class_type_infoE, i64 2), ptr @_ZTS13CRecordVectorIhE, ptr @_ZTI17CBaseRecordVector }, comdat, align 8
@_ZTV13CObjectVectorIN8NArchive4NZip5CItemEE = linkonce_odr dso_local unnamed_addr constant { [5 x ptr] } { [5 x ptr] [ptr null, ptr @_ZTI13CObjectVectorIN8NArchive4NZip5CItemEE, ptr @_ZN13CObjectVectorIN8NArchive4NZip5CItemEED2Ev, ptr @_ZN13CObjectVectorIN8NArchive4NZip5CItemEED0Ev, ptr @_ZN13CObjectVectorIN8NArchive4NZip5CItemEE6DeleteEii] }, comdat, align 8
@_ZTS13CObjectVectorIN8NArchive4NZip5CItemEE = linkonce_odr dso_local constant [40 x i8] c"13CObjectVectorIN8NArchive4NZip5CItemEE\00", comdat, align 1
@_ZTI13CObjectVectorIN8NArchive4NZip5CItemEE = linkonce_odr dso_local constant { ptr, ptr, ptr } { ptr getelementptr inbounds (ptr, ptr @_ZTVN10__cxxabiv120__si_class_type_infoE, i64 2), ptr @_ZTS13CObjectVectorIN8NArchive4NZip5CItemEE, ptr @_ZTI13CRecordVectorIPvE }, comdat, align 8
@_ZTV13CRecordVectorIyE = linkonce_odr dso_local unnamed_addr constant { [5 x ptr] } { [5 x ptr] [ptr null, ptr @_ZTI13CRecordVectorIyE, ptr @_ZN17CBaseRecordVectorD2Ev, ptr @_ZN13CRecordVectorIyED0Ev, ptr @_ZN17CBaseRecordVector6DeleteEii] }, comdat, align 8
@_ZTS13CRecordVectorIyE = linkonce_odr dso_local constant [19 x i8] c"13CRecordVectorIyE\00", comdat, align 1
@_ZTI13CRecordVectorIyE = linkonce_odr dso_local constant { ptr, ptr, ptr } { ptr getelementptr inbounds (ptr, ptr @_ZTVN10__cxxabiv120__si_class_type_infoE, i64 2), ptr @_ZTS13CRecordVectorIyE, ptr @_ZTI17CBaseRecordVector }, comdat, align 8
@_ZTVN8NWindows16NSynchronization14CSemaphoreWFMOE = linkonce_odr dso_local unnamed_addr constant { [3 x ptr] } { [3 x ptr] [ptr null, ptr @_ZTIN8NWindows16NSynchronization14CSemaphoreWFMOE, ptr @_ZN8NWindows16NSynchronization14CSemaphoreWFMO19IsSignaledAndUpdateEv] }, comdat, align 8
@_ZTSN8NWindows16NSynchronization14CSemaphoreWFMOE = linkonce_odr dso_local constant [46 x i8] c"N8NWindows16NSynchronization14CSemaphoreWFMOE\00", comdat, align 1
@_ZTSN8NWindows16NSynchronization15CBaseHandleWFMOE = linkonce_odr dso_local constant [47 x i8] c"N8NWindows16NSynchronization15CBaseHandleWFMOE\00", comdat, align 1
@_ZTIN8NWindows16NSynchronization15CBaseHandleWFMOE = linkonce_odr dso_local constant { ptr, ptr } { ptr getelementptr inbounds (ptr, ptr @_ZTVN10__cxxabiv117__class_type_infoE, i64 2), ptr @_ZTSN8NWindows16NSynchronization15CBaseHandleWFMOE }, comdat, align 8
@_ZTIN8NWindows16NSynchronization14CSemaphoreWFMOE = linkonce_odr dso_local constant { ptr, ptr, ptr } { ptr getelementptr inbounds (ptr, ptr @_ZTVN10__cxxabiv120__si_class_type_infoE, i64 2), ptr @_ZTSN8NWindows16NSynchronization14CSemaphoreWFMOE, ptr @_ZTIN8NWindows16NSynchronization15CBaseHandleWFMOE }, comdat, align 8
@_ZTV13CObjectVectorIN8NArchive4NZip11CMemBlocks2EE = linkonce_odr dso_local unnamed_addr constant { [5 x ptr] } { [5 x ptr] [ptr null, ptr @_ZTI13CObjectVectorIN8NArchive4NZip11CMemBlocks2EE, ptr @_ZN13CObjectVectorIN8NArchive4NZip11CMemBlocks2EED2Ev, ptr @_ZN13CObjectVectorIN8NArchive4NZip11CMemBlocks2EED0Ev, ptr @_ZN13CObjectVectorIN8NArchive4NZip11CMemBlocks2EE6DeleteEii] }, comdat, align 8
@_ZTS13CObjectVectorIN8NArchive4NZip11CMemBlocks2EE = linkonce_odr dso_local constant [47 x i8] c"13CObjectVectorIN8NArchive4NZip11CMemBlocks2EE\00", comdat, align 1
@_ZTI13CObjectVectorIN8NArchive4NZip11CMemBlocks2EE = linkonce_odr dso_local constant { ptr, ptr, ptr } { ptr getelementptr inbounds (ptr, ptr @_ZTVN10__cxxabiv120__si_class_type_infoE, i64 2), ptr @_ZTS13CObjectVectorIN8NArchive4NZip11CMemBlocks2EE, ptr @_ZTI13CRecordVectorIPvE }, comdat, align 8
@_ZTV13CObjectVectorIN8NArchive4NZip11CThreadInfoEE = linkonce_odr dso_local unnamed_addr constant { [5 x ptr] } { [5 x ptr] [ptr null, ptr @_ZTI13CObjectVectorIN8NArchive4NZip11CThreadInfoEE, ptr @_ZN13CObjectVectorIN8NArchive4NZip11CThreadInfoEED2Ev, ptr @_ZN13CObjectVectorIN8NArchive4NZip11CThreadInfoEED0Ev, ptr @_ZN13CObjectVectorIN8NArchive4NZip11CThreadInfoEE6DeleteEii] }, comdat, align 8
@_ZTS13CObjectVectorIN8NArchive4NZip11CThreadInfoEE = linkonce_odr dso_local constant [47 x i8] c"13CObjectVectorIN8NArchive4NZip11CThreadInfoEE\00", comdat, align 1
@_ZTI13CObjectVectorIN8NArchive4NZip11CThreadInfoEE = linkonce_odr dso_local constant { ptr, ptr, ptr } { ptr getelementptr inbounds (ptr, ptr @_ZTVN10__cxxabiv120__si_class_type_infoE, i64 2), ptr @_ZTS13CObjectVectorIN8NArchive4NZip11CThreadInfoEE, ptr @_ZTI13CRecordVectorIPvE }, comdat, align 8
@_ZTV13CRecordVectorIPN8NWindows16NSynchronization15CBaseHandleWFMOEE = linkonce_odr dso_local unnamed_addr constant { [5 x ptr] } { [5 x ptr] [ptr null, ptr @_ZTI13CRecordVectorIPN8NWindows16NSynchronization15CBaseHandleWFMOEE, ptr @_ZN17CBaseRecordVectorD2Ev, ptr @_ZN13CRecordVectorIPN8NWindows16NSynchronization15CBaseHandleWFMOEED0Ev, ptr @_ZN17CBaseRecordVector6DeleteEii] }, comdat, align 8
@_ZTS13CRecordVectorIPN8NWindows16NSynchronization15CBaseHandleWFMOEE = linkonce_odr dso_local constant [65 x i8] c"13CRecordVectorIPN8NWindows16NSynchronization15CBaseHandleWFMOEE\00", comdat, align 1
@_ZTI13CRecordVectorIPN8NWindows16NSynchronization15CBaseHandleWFMOEE = linkonce_odr dso_local constant { ptr, ptr, ptr } { ptr getelementptr inbounds (ptr, ptr @_ZTVN10__cxxabiv120__si_class_type_infoE, i64 2), ptr @_ZTS13CRecordVectorIPN8NWindows16NSynchronization15CBaseHandleWFMOEE, ptr @_ZTI17CBaseRecordVector }, comdat, align 8
@_ZTV13CRecordVectorIiE = linkonce_odr dso_local unnamed_addr constant { [5 x ptr] } { [5 x ptr] [ptr null, ptr @_ZTI13CRecordVectorIiE, ptr @_ZN17CBaseRecordVectorD2Ev, ptr @_ZN13CRecordVectorIiED0Ev, ptr @_ZN17CBaseRecordVector6DeleteEii] }, comdat, align 8
@_ZTS13CRecordVectorIiE = linkonce_odr dso_local constant [19 x i8] c"13CRecordVectorIiE\00", comdat, align 1
@_ZTI13CRecordVectorIiE = linkonce_odr dso_local constant { ptr, ptr, ptr } { ptr getelementptr inbounds (ptr, ptr @_ZTVN10__cxxabiv120__si_class_type_infoE, i64 2), ptr @_ZTS13CRecordVectorIiE, ptr @_ZTI17CBaseRecordVector }, comdat, align 8
@_ZTVN8NWindows16NSynchronization19CAutoResetEventWFMOE = linkonce_odr dso_local unnamed_addr constant { [3 x ptr] } { [3 x ptr] [ptr null, ptr @_ZTIN8NWindows16NSynchronization19CAutoResetEventWFMOE, ptr @_ZN8NWindows16NSynchronization14CBaseEventWFMO19IsSignaledAndUpdateEv] }, comdat, align 8
@_ZTSN8NWindows16NSynchronization19CAutoResetEventWFMOE = linkonce_odr dso_local constant [51 x i8] c"N8NWindows16NSynchronization19CAutoResetEventWFMOE\00", comdat, align 1
@_ZTSN8NWindows16NSynchronization14CBaseEventWFMOE = linkonce_odr dso_local constant [46 x i8] c"N8NWindows16NSynchronization14CBaseEventWFMOE\00", comdat, align 1
@_ZTIN8NWindows16NSynchronization14CBaseEventWFMOE = linkonce_odr dso_local constant { ptr, ptr, ptr } { ptr getelementptr inbounds (ptr, ptr @_ZTVN10__cxxabiv120__si_class_type_infoE, i64 2), ptr @_ZTSN8NWindows16NSynchronization14CBaseEventWFMOE, ptr @_ZTIN8NWindows16NSynchronization15CBaseHandleWFMOE }, comdat, align 8
@_ZTIN8NWindows16NSynchronization19CAutoResetEventWFMOE = linkonce_odr dso_local constant { ptr, ptr, ptr } { ptr getelementptr inbounds (ptr, ptr @_ZTVN10__cxxabiv120__si_class_type_infoE, i64 2), ptr @_ZTSN8NWindows16NSynchronization19CAutoResetEventWFMOE, ptr @_ZTIN8NWindows16NSynchronization14CBaseEventWFMOE }, comdat, align 8
@_ZTVN8NWindows16NSynchronization14CBaseEventWFMOE = linkonce_odr dso_local unnamed_addr constant { [3 x ptr] } { [3 x ptr] [ptr null, ptr @_ZTIN8NWindows16NSynchronization14CBaseEventWFMOE, ptr @_ZN8NWindows16NSynchronization14CBaseEventWFMO19IsSignaledAndUpdateEv] }, comdat, align 8
@_ZTV13COutMemStream = external unnamed_addr constant { [10 x ptr] }, align 8
@_ZTV19CMtCompressProgress = external unnamed_addr constant { [8 x ptr] }, align 8
@_ZTV26CLimitedSequentialInStream = external unnamed_addr constant { [8 x ptr] }, align 8
@IID_IUnknown = external local_unnamed_addr global %struct.GUID, align 4
@_ZN8NArchive4NZip15CCacheOutStreamD1Ev = dso_local unnamed_addr alias void (ptr), ptr @_ZN8NArchive4NZip15CCacheOutStreamD2Ev
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8NArchive4NZip11CThreadInfo11WaitAndCodeEv(ptr noundef nonnull align 8 dereferenceable(408) %this) local_unnamed_addr #0 align 2 {
entry:
%CompressEvent = getelementptr inbounds %"struct.NArchive::NZip::CThreadInfo", ptr %this, i64 0, i32 1
%call.i19 = tail call i32 @Event_Wait(ptr noundef nonnull %CompressEvent)
%ExitThread = getelementptr inbounds %"struct.NArchive::NZip::CThreadInfo", ptr %this, i64 0, i32 3
%0 = load i8, ptr %ExitThread, align 8, !tbaa !5, !range !35, !noundef !36
%tobool.not20 = icmp eq i8 %0, 0
br i1 %tobool.not20, label %if.end.lr.ph, label %if.then
if.end.lr.ph: ; preds = %entry
%Coder = getelementptr inbounds %"struct.NArchive::NZip::CThreadInfo", ptr %this, i64 0, i32 9
%InStream = getelementptr inbounds %"struct.NArchive::NZip::CThreadInfo", ptr %this, i64 0, i32 8
%OutStream = getelementptr inbounds %"struct.NArchive::NZip::CThreadInfo", ptr %this, i64 0, i32 7
%Progress = getelementptr inbounds %"struct.NArchive::NZip::CThreadInfo", ptr %this, i64 0, i32 5
%CompressingResult = getelementptr inbounds %"struct.NArchive::NZip::CThreadInfo", ptr %this, i64 0, i32 11
%Result = getelementptr inbounds %"struct.NArchive::NZip::CThreadInfo", ptr %this, i64 0, i32 10
%PackSize = getelementptr inbounds %"struct.NArchive::NZip::CThreadInfo", ptr %this, i64 0, i32 11, i32 1
%_sync.i = getelementptr inbounds %"struct.NArchive::NZip::CThreadInfo", ptr %this, i64 0, i32 2, i32 0, i32 0, i32 1
%_state.i = getelementptr inbounds %"struct.NArchive::NZip::CThreadInfo", ptr %this, i64 0, i32 2, i32 0, i32 2
br label %if.end
if.then: ; preds = %if.end17, %entry
ret void
if.end: ; preds = %if.end.lr.ph, %if.end17
%1 = load ptr, ptr %InStream, align 8, !tbaa !37
%2 = load ptr, ptr %OutStream, align 8, !tbaa !38
%3 = load ptr, ptr %Progress, align 8, !tbaa !39
%call5 = tail call noundef i32 @_ZN8NArchive4NZip10CAddCommon8CompressEP19ISequentialInStreamP10IOutStreamP21ICompressProgressInfoRNS0_18CCompressingResultE(ptr noundef nonnull align 8 dereferenceable(176) %Coder, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef nonnull align 8 dereferenceable(24) %CompressingResult)
store i32 %call5, ptr %Result, align 8, !tbaa !40
%cmp = icmp eq i32 %call5, 0
br i1 %cmp, label %land.lhs.true, label %if.end17
land.lhs.true: ; preds = %if.end
%4 = load ptr, ptr %Progress, align 8, !tbaa !39
%tobool9.not = icmp eq ptr %4, null
br i1 %tobool9.not, label %if.end17, label %if.then10
if.then10: ; preds = %land.lhs.true
%vtable = load ptr, ptr %4, align 8, !tbaa !41
%vfn = getelementptr inbounds ptr, ptr %vtable, i64 5
%5 = load ptr, ptr %vfn, align 8
%call15 = tail call noundef i32 %5(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull %CompressingResult, ptr noundef nonnull %PackSize)
store i32 %call15, ptr %Result, align 8, !tbaa !40
br label %if.end17
if.end17: ; preds = %if.then10, %land.lhs.true, %if.end
%6 = load ptr, ptr %_sync.i, align 8, !tbaa !43
%call.i.i = tail call i32 @pthread_mutex_lock(ptr noundef nonnull %6) #16
store i8 1, ptr %_state.i, align 1, !tbaa !44
%7 = load ptr, ptr %_sync.i, align 8, !tbaa !43
%_cond.i.i = getelementptr inbounds %"class.NWindows::NSynchronization::CSynchro", ptr %7, i64 0, i32 1
%call.i3.i = tail call i32 @pthread_cond_broadcast(ptr noundef nonnull %_cond.i.i) #16
%call2.i.i = tail call i32 @pthread_mutex_unlock(ptr noundef nonnull %7) #16
%call.i = tail call i32 @Event_Wait(ptr noundef nonnull %CompressEvent)
%8 = load i8, ptr %ExitThread, align 8, !tbaa !5, !range !35, !noundef !36
%tobool.not = icmp eq i8 %8, 0
br i1 %tobool.not, label %if.end, label %if.then, !llvm.loop !45
}
declare noundef i32 @_ZN8NArchive4NZip10CAddCommon8CompressEP19ISequentialInStreamP10IOutStreamP21ICompressProgressInfoRNS0_18CCompressingResultE(ptr noundef nonnull align 8 dereferenceable(176), ptr noundef, ptr noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1
; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8NArchive4NZip17CMtProgressMixer26CreateEP9IProgressb(ptr noundef nonnull align 8 dereferenceable(120) %this, ptr noundef %progress, i1 noundef zeroext %inSizeIsMain) local_unnamed_addr #0 align 2 {
entry:
%Progress = getelementptr inbounds %"class.NArchive::NZip::CMtProgressMixer2", ptr %this, i64 0, i32 5
%cmp.not.i = icmp eq ptr %progress, null
br i1 %cmp.not.i, label %if.end.i, label %if.then.i
if.then.i: ; preds = %entry
%vtable.i = load ptr, ptr %progress, align 8, !tbaa !41
%vfn.i = getelementptr inbounds ptr, ptr %vtable.i, i64 1
%0 = load ptr, ptr %vfn.i, align 8
%call.i = tail call noundef i32 %0(ptr noundef nonnull align 8 dereferenceable(8) %progress)
br label %if.end.i
if.end.i: ; preds = %if.then.i, %entry
%1 = load ptr, ptr %Progress, align 8, !tbaa !47
%tobool.not.i = icmp eq ptr %1, null
br i1 %tobool.not.i, label %_ZN9CMyComPtrI9IProgressEaSEPS0_.exit, label %if.then2.i
if.then2.i: ; preds = %if.end.i
%vtable4.i = load ptr, ptr %1, align 8, !tbaa !41
%vfn5.i = getelementptr inbounds ptr, ptr %vtable4.i, i64 2
%2 = load ptr, ptr %vfn5.i, align 8
%call6.i = tail call noundef i32 %2(ptr noundef nonnull align 8 dereferenceable(8) %1)
br label %_ZN9CMyComPtrI9IProgressEaSEPS0_.exit
_ZN9CMyComPtrI9IProgressEaSEPS0_.exit: ; preds = %if.end.i, %if.then2.i
%frombool = zext i1 %inSizeIsMain to i8
store ptr %progress, ptr %Progress, align 8, !tbaa !47
%RatioProgress = getelementptr inbounds %"class.NArchive::NZip::CMtProgressMixer2", ptr %this, i64 0, i32 6
%vtable.i11 = load ptr, ptr %progress, align 8, !tbaa !41
%3 = load ptr, ptr %vtable.i11, align 8
%call.i12 = tail call noundef i32 %3(ptr noundef nonnull align 8 dereferenceable(8) %progress, ptr noundef nonnull align 4 dereferenceable(16) @IID_ICompressProgressInfo, ptr noundef nonnull %RatioProgress)
%_inSizeIsMain = getelementptr inbounds %"class.NArchive::NZip::CMtProgressMixer2", ptr %this, i64 0, i32 7
store i8 %frombool, ptr %_inSizeIsMain, align 8, !tbaa !49
%ProgressOffset = getelementptr inbounds %"class.NArchive::NZip::CMtProgressMixer2", ptr %this, i64 0, i32 2
tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %ProgressOffset, i8 0, i64 40, i1 false)
ret void
}
; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN8NArchive4NZip17CMtProgressMixer217SetProgressOffsetEy(ptr noundef nonnull align 8 dereferenceable(120) %this, i64 noundef %progressOffset) local_unnamed_addr #2 align 2 {
entry:
%CriticalSection = getelementptr inbounds %"class.NArchive::NZip::CMtProgressMixer2", ptr %this, i64 0, i32 8
%call.i = tail call i32 @pthread_mutex_lock(ptr noundef nonnull %CriticalSection) #16
%arrayidx = getelementptr inbounds %"class.NArchive::NZip::CMtProgressMixer2", ptr %this, i64 0, i32 4, i64 1
store i64 0, ptr %arrayidx, align 8, !tbaa !56
%arrayidx2 = getelementptr inbounds %"class.NArchive::NZip::CMtProgressMixer2", ptr %this, i64 0, i32 3, i64 1
store i64 0, ptr %arrayidx2, align 8, !tbaa !56
%ProgressOffset = getelementptr inbounds %"class.NArchive::NZip::CMtProgressMixer2", ptr %this, i64 0, i32 2
store i64 %progressOffset, ptr %ProgressOffset, align 8, !tbaa !57
%call.i4 = tail call i32 @pthread_mutex_unlock(ptr noundef nonnull %CriticalSection) #16
ret void
}
; Function Attrs: uwtable
define dso_local noundef i32 @_ZN8NArchive4NZip17CMtProgressMixer212SetRatioInfoEiPKyS3_(ptr noundef nonnull align 8 dereferenceable(120) %this, i32 noundef %index, ptr noundef %inSize, ptr noundef %outSize) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
entry:
%v = alloca i64, align 8
%CriticalSection = getelementptr inbounds %"class.NArchive::NZip::CMtProgressMixer2", ptr %this, i64 0, i32 8
%call.i.i = tail call i32 @pthread_mutex_lock(ptr noundef nonnull %CriticalSection) #16
%cmp = icmp eq i32 %index, 0
br i1 %cmp, label %land.lhs.true, label %if.end10
land.lhs.true: ; preds = %entry
%RatioProgress = getelementptr inbounds %"class.NArchive::NZip::CMtProgressMixer2", ptr %this, i64 0, i32 6
%0 = load ptr, ptr %RatioProgress, align 8, !tbaa !39
%tobool.not = icmp eq ptr %0, null
br i1 %tobool.not, label %if.end10, label %if.then
if.then: ; preds = %land.lhs.true
%vtable = load ptr, ptr %0, align 8, !tbaa !41
%vfn = getelementptr inbounds ptr, ptr %vtable, i64 5
%1 = load ptr, ptr %vfn, align 8
%call7 = invoke noundef i32 %1(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef %inSize, ptr noundef %outSize)
to label %invoke.cont6 unwind label %lpad3
invoke.cont6: ; preds = %if.then
%cmp8.not = icmp eq i32 %call7, 0
br i1 %cmp8.not, label %if.end10, label %cleanup38
lpad3: ; preds = %if.then
%2 = landingpad { ptr, i32 }
cleanup
br label %ehcleanup
if.end10: ; preds = %invoke.cont6, %land.lhs.true, %entry
%cmp11.not = icmp eq ptr %inSize, null
br i1 %cmp11.not, label %if.end13, label %if.then12
if.then12: ; preds = %if.end10
%3 = load i64, ptr %inSize, align 8, !tbaa !56
%idxprom = sext i32 %index to i64
%arrayidx = getelementptr inbounds %"class.NArchive::NZip::CMtProgressMixer2", ptr %this, i64 0, i32 3, i64 %idxprom
store i64 %3, ptr %arrayidx, align 8, !tbaa !56
br label %if.end13
if.end13: ; preds = %if.then12, %if.end10
%cmp14.not = icmp eq ptr %outSize, null
br i1 %cmp14.not, label %if.end18, label %if.then15
if.then15: ; preds = %if.end13
%4 = load i64, ptr %outSize, align 8, !tbaa !56
%idxprom16 = sext i32 %index to i64
%arrayidx17 = getelementptr inbounds %"class.NArchive::NZip::CMtProgressMixer2", ptr %this, i64 0, i32 4, i64 %idxprom16
store i64 %4, ptr %arrayidx17, align 8, !tbaa !56
br label %if.end18
if.end18: ; preds = %if.then15, %if.end13
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %v) #16
%ProgressOffset = getelementptr inbounds %"class.NArchive::NZip::CMtProgressMixer2", ptr %this, i64 0, i32 2
%5 = load i64, ptr %ProgressOffset, align 8, !tbaa !57
%_inSizeIsMain = getelementptr inbounds %"class.NArchive::NZip::CMtProgressMixer2", ptr %this, i64 0, i32 7
%6 = load i8, ptr %_inSizeIsMain, align 8, !tbaa !49, !range !35, !noundef !36
%tobool19.not = icmp eq i8 %6, 0
%OutSizes24 = getelementptr inbounds %"class.NArchive::NZip::CMtProgressMixer2", ptr %this, i64 0, i32 4
%7 = load i64, ptr %OutSizes24, align 8
%arrayidx27 = getelementptr inbounds %"class.NArchive::NZip::CMtProgressMixer2", ptr %this, i64 0, i32 4, i64 1
%InSizes20 = getelementptr inbounds %"class.NArchive::NZip::CMtProgressMixer2", ptr %this, i64 0, i32 3
%8 = load i64, ptr %InSizes20, align 8
%arrayidx23 = getelementptr inbounds %"class.NArchive::NZip::CMtProgressMixer2", ptr %this, i64 0, i32 3, i64 1
%.sink53 = select i1 %tobool19.not, i64 %7, i64 %8
%arrayidx27.val = load i64, ptr %arrayidx27, align 8
%arrayidx23.val = load i64, ptr %arrayidx23, align 8
%9 = select i1 %tobool19.not, i64 %arrayidx27.val, i64 %arrayidx23.val
%add28 = add i64 %9, %.sink53
%add29 = add i64 %add28, %5
store i64 %add29, ptr %v, align 8, !tbaa !56
%Progress = getelementptr inbounds %"class.NArchive::NZip::CMtProgressMixer2", ptr %this, i64 0, i32 5
%10 = load ptr, ptr %Progress, align 8, !tbaa !47
%vtable33 = load ptr, ptr %10, align 8, !tbaa !41
%vfn34 = getelementptr inbounds ptr, ptr %vtable33, i64 6
%11 = load ptr, ptr %vfn34, align 8
%call36 = invoke noundef i32 %11(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull %v)
to label %invoke.cont35 unwind label %lpad30
invoke.cont35: ; preds = %if.end18
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %v) #16
br label %cleanup38
lpad30: ; preds = %if.end18
%12 = landingpad { ptr, i32 }
cleanup
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %v) #16
br label %ehcleanup
cleanup38: ; preds = %invoke.cont6, %invoke.cont35
%retval.1 = phi i32 [ %call36, %invoke.cont35 ], [ %call7, %invoke.cont6 ]
%call.i.i.i = call i32 @pthread_mutex_unlock(ptr noundef nonnull %CriticalSection) #16
ret i32 %retval.1
ehcleanup: ; preds = %lpad30, %lpad3
%.pn = phi { ptr, i32 } [ %12, %lpad30 ], [ %2, %lpad3 ]
%call.i.i.i50 = call i32 @pthread_mutex_unlock(ptr noundef nonnull %CriticalSection) #16
resume { ptr, i32 } %.pn
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #4
declare i32 @__gxx_personality_v0(...)
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #4
; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN8NArchive4NZip17CMtProgressMixer212SetRatioInfoEPKyS3_(ptr noundef nonnull align 8 dereferenceable(120) %this, ptr noundef %inSize, ptr noundef %outSize) unnamed_addr #0 align 2 {
entry:
%call = tail call noundef i32 @_ZN8NArchive4NZip17CMtProgressMixer212SetRatioInfoEiPKyS3_(ptr noundef nonnull align 8 dereferenceable(120) %this, i32 noundef 0, ptr noundef %inSize, ptr noundef %outSize)
ret i32 %call
}
; Function Attrs: uwtable
define dso_local void @_ZN8NArchive4NZip16CMtProgressMixer6CreateEP9IProgressb(ptr nocapture noundef nonnull align 8 dereferenceable(32) %this, ptr noundef %progress, i1 noundef zeroext %inSizeIsMain) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
entry:
%call = tail call noalias noundef nonnull dereferenceable(120) ptr @_Znwm(i64 noundef 120) #17
%0 = getelementptr inbounds i8, ptr %call, i64 8
store i32 0, ptr %0, align 8, !tbaa !58
store ptr getelementptr inbounds ({ [8 x ptr] }, ptr @_ZTVN8NArchive4NZip17CMtProgressMixer2E, i64 0, inrange i32 0, i64 2), ptr %call, align 8, !tbaa !41
%Progress.i = getelementptr inbounds %"class.NArchive::NZip::CMtProgressMixer2", ptr %call, i64 0, i32 5
%CriticalSection.i = getelementptr inbounds %"class.NArchive::NZip::CMtProgressMixer2", ptr %call, i64 0, i32 8
tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %Progress.i, i8 0, i64 16, i1 false)
%call.i9.i = invoke i32 @CriticalSection_Init(ptr noundef nonnull %CriticalSection.i)
to label %invoke.cont unwind label %lpad5.i
lpad5.i: ; preds = %entry
%1 = landingpad { ptr, i32 }
cleanup
%RatioProgress.i = getelementptr inbounds %"class.NArchive::NZip::CMtProgressMixer2", ptr %call, i64 0, i32 6
%2 = load ptr, ptr %RatioProgress.i, align 8, !tbaa !39
%tobool.not.i.i = icmp eq ptr %2, null
br i1 %tobool.not.i.i, label %_ZN9CMyComPtrI21ICompressProgressInfoED2Ev.exit.i, label %if.then.i.i
if.then.i.i: ; preds = %lpad5.i
%vtable.i.i = load ptr, ptr %2, align 8, !tbaa !41
%vfn.i.i = getelementptr inbounds ptr, ptr %vtable.i.i, i64 2
%3 = load ptr, ptr %vfn.i.i, align 8
%call.i.i = invoke noundef i32 %3(ptr noundef nonnull align 8 dereferenceable(8) %2)
to label %_ZN9CMyComPtrI21ICompressProgressInfoED2Ev.exit.i unwind label %terminate.lpad.i.i
terminate.lpad.i.i: ; preds = %if.then.i.i
%4 = landingpad { ptr, i32 }
catch ptr null
%5 = extractvalue { ptr, i32 } %4, 0
tail call void @__clang_call_terminate(ptr %5) #18
unreachable
_ZN9CMyComPtrI21ICompressProgressInfoED2Ev.exit.i: ; preds = %if.then.i.i, %lpad5.i
%6 = load ptr, ptr %Progress.i, align 8, !tbaa !47
%tobool.not.i10.i = icmp eq ptr %6, null
br i1 %tobool.not.i10.i, label %lpad.body, label %if.then.i14.i
if.then.i14.i: ; preds = %_ZN9CMyComPtrI21ICompressProgressInfoED2Ev.exit.i
%vtable.i11.i = load ptr, ptr %6, align 8, !tbaa !41
%vfn.i12.i = getelementptr inbounds ptr, ptr %vtable.i11.i, i64 2
%7 = load ptr, ptr %vfn.i12.i, align 8
%call.i13.i = invoke noundef i32 %7(ptr noundef nonnull align 8 dereferenceable(8) %6)
to label %lpad.body unwind label %terminate.lpad.i15.i
terminate.lpad.i15.i: ; preds = %if.then.i14.i
%8 = landingpad { ptr, i32 }
catch ptr null
%9 = extractvalue { ptr, i32 } %8, 0
tail call void @__clang_call_terminate(ptr %9) #18
unreachable
invoke.cont: ; preds = %entry
%Mixer2 = getelementptr inbounds %"class.NArchive::NZip::CMtProgressMixer", ptr %this, i64 0, i32 2
store ptr %call, ptr %Mixer2, align 8, !tbaa !59
%RatioProgress = getelementptr inbounds %"class.NArchive::NZip::CMtProgressMixer", ptr %this, i64 0, i32 3
%vtable.i = load ptr, ptr %call, align 8, !tbaa !41
%vfn.i = getelementptr inbounds ptr, ptr %vtable.i, i64 1
%10 = load ptr, ptr %vfn.i, align 8
%call.i = tail call noundef i32 %10(ptr noundef nonnull align 8 dereferenceable(8) %call)
%11 = load ptr, ptr %RatioProgress, align 8, !tbaa !39
%tobool.not.i = icmp eq ptr %11, null
br i1 %tobool.not.i, label %_ZN9CMyComPtrI21ICompressProgressInfoEaSEPS0_.exit, label %if.then2.i
if.then2.i: ; preds = %invoke.cont
%vtable4.i = load ptr, ptr %11, align 8, !tbaa !41
%vfn5.i = getelementptr inbounds ptr, ptr %vtable4.i, i64 2
%12 = load ptr, ptr %vfn5.i, align 8
%call6.i = tail call noundef i32 %12(ptr noundef nonnull align 8 dereferenceable(8) %11)
br label %_ZN9CMyComPtrI21ICompressProgressInfoEaSEPS0_.exit
_ZN9CMyComPtrI21ICompressProgressInfoEaSEPS0_.exit: ; preds = %invoke.cont, %if.then2.i
store ptr %call, ptr %RatioProgress, align 8, !tbaa !39
%13 = load ptr, ptr %Mixer2, align 8, !tbaa !59
%Progress.i6 = getelementptr inbounds %"class.NArchive::NZip::CMtProgressMixer2", ptr %13, i64 0, i32 5
%cmp.not.i.i = icmp eq ptr %progress, null
br i1 %cmp.not.i.i, label %if.end.i.i, label %if.then.i.i10
if.then.i.i10: ; preds = %_ZN9CMyComPtrI21ICompressProgressInfoEaSEPS0_.exit
%vtable.i.i7 = load ptr, ptr %progress, align 8, !tbaa !41
%vfn.i.i8 = getelementptr inbounds ptr, ptr %vtable.i.i7, i64 1
%14 = load ptr, ptr %vfn.i.i8, align 8
%call.i.i9 = tail call noundef i32 %14(ptr noundef nonnull align 8 dereferenceable(8) %progress)
br label %if.end.i.i
if.end.i.i: ; preds = %if.then.i.i10, %_ZN9CMyComPtrI21ICompressProgressInfoEaSEPS0_.exit
%15 = load ptr, ptr %Progress.i6, align 8, !tbaa !47
%tobool.not.i.i11 = icmp eq ptr %15, null
br i1 %tobool.not.i.i11, label %_ZN8NArchive4NZip17CMtProgressMixer26CreateEP9IProgressb.exit, label %if.then2.i.i
if.then2.i.i: ; preds = %if.end.i.i
%vtable4.i.i = load ptr, ptr %15, align 8, !tbaa !41
%vfn5.i.i = getelementptr inbounds ptr, ptr %vtable4.i.i, i64 2
%16 = load ptr, ptr %vfn5.i.i, align 8
%call6.i.i = tail call noundef i32 %16(ptr noundef nonnull align 8 dereferenceable(8) %15)
br label %_ZN8NArchive4NZip17CMtProgressMixer26CreateEP9IProgressb.exit
_ZN8NArchive4NZip17CMtProgressMixer26CreateEP9IProgressb.exit: ; preds = %if.end.i.i, %if.then2.i.i
%frombool.i = zext i1 %inSizeIsMain to i8
store ptr %progress, ptr %Progress.i6, align 8, !tbaa !47
%RatioProgress.i12 = getelementptr inbounds %"class.NArchive::NZip::CMtProgressMixer2", ptr %13, i64 0, i32 6
%vtable.i11.i13 = load ptr, ptr %progress, align 8, !tbaa !41
%17 = load ptr, ptr %vtable.i11.i13, align 8
%call.i12.i = tail call noundef i32 %17(ptr noundef nonnull align 8 dereferenceable(8) %progress, ptr noundef nonnull align 4 dereferenceable(16) @IID_ICompressProgressInfo, ptr noundef nonnull %RatioProgress.i12)
%_inSizeIsMain.i = getelementptr inbounds %"class.NArchive::NZip::CMtProgressMixer2", ptr %13, i64 0, i32 7
store i8 %frombool.i, ptr %_inSizeIsMain.i, align 8, !tbaa !49
%ProgressOffset.i = getelementptr inbounds %"class.NArchive::NZip::CMtProgressMixer2", ptr %13, i64 0, i32 2
tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %ProgressOffset.i, i8 0, i64 40, i1 false)
ret void
lpad.body: ; preds = %_ZN9CMyComPtrI21ICompressProgressInfoED2Ev.exit.i, %if.then.i14.i
tail call void @_ZdlPv(ptr noundef nonnull %call) #19
resume { ptr, i32 } %1
}
; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #5
; Function Attrs: nobuiltin nounwind
declare void @_ZdlPv(ptr noundef) local_unnamed_addr #6
; Function Attrs: uwtable
define dso_local noundef i32 @_ZN8NArchive4NZip16CMtProgressMixer12SetRatioInfoEPKyS3_(ptr nocapture noundef nonnull readonly align 8 dereferenceable(32) %this, ptr noundef readonly %inSize, ptr noundef readonly %outSize) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
entry:
%v.i = alloca i64, align 8
%Mixer2 = getelementptr inbounds %"class.NArchive::NZip::CMtProgressMixer", ptr %this, i64 0, i32 2
%0 = load ptr, ptr %Mixer2, align 8, !tbaa !59
%CriticalSection.i = getelementptr inbounds %"class.NArchive::NZip::CMtProgressMixer2", ptr %0, i64 0, i32 8
%call.i.i.i = tail call i32 @pthread_mutex_lock(ptr noundef nonnull %CriticalSection.i) #16
%cmp11.not.i = icmp eq ptr %inSize, null
br i1 %cmp11.not.i, label %if.end13.i, label %if.then12.i
if.then12.i: ; preds = %entry
%1 = load i64, ptr %inSize, align 8, !tbaa !56
%arrayidx.i = getelementptr inbounds %"class.NArchive::NZip::CMtProgressMixer2", ptr %0, i64 0, i32 3, i64 1
store i64 %1, ptr %arrayidx.i, align 8, !tbaa !56
br label %if.end13.i
if.end13.i: ; preds = %if.then12.i, %entry
%cmp14.not.i = icmp eq ptr %outSize, null
br i1 %cmp14.not.i, label %if.end13.i.if.end18.i_crit_edge, label %if.then15.i
if.end13.i.if.end18.i_crit_edge: ; preds = %if.end13.i
%arrayidx27.i.phi.trans.insert = getelementptr inbounds %"class.NArchive::NZip::CMtProgressMixer2", ptr %0, i64 0, i32 4, i64 1
%arrayidx27.val.i.pre = load i64, ptr %arrayidx27.i.phi.trans.insert, align 8
br label %if.end18.i
if.then15.i: ; preds = %if.end13.i
%2 = load i64, ptr %outSize, align 8, !tbaa !56
%arrayidx17.i = getelementptr inbounds %"class.NArchive::NZip::CMtProgressMixer2", ptr %0, i64 0, i32 4, i64 1
store i64 %2, ptr %arrayidx17.i, align 8, !tbaa !56
br label %if.end18.i
if.end18.i: ; preds = %if.end13.i.if.end18.i_crit_edge, %if.then15.i
%arrayidx27.val.i = phi i64 [ %arrayidx27.val.i.pre, %if.end13.i.if.end18.i_crit_edge ], [ %2, %if.then15.i ]
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %v.i) #16
%ProgressOffset.i = getelementptr inbounds %"class.NArchive::NZip::CMtProgressMixer2", ptr %0, i64 0, i32 2
%3 = load i64, ptr %ProgressOffset.i, align 8, !tbaa !57
%_inSizeIsMain.i = getelementptr inbounds %"class.NArchive::NZip::CMtProgressMixer2", ptr %0, i64 0, i32 7
%4 = load i8, ptr %_inSizeIsMain.i, align 8, !tbaa !49, !range !35, !noundef !36
%tobool19.not.i = icmp eq i8 %4, 0
%OutSizes24.i = getelementptr inbounds %"class.NArchive::NZip::CMtProgressMixer2", ptr %0, i64 0, i32 4
%5 = load i64, ptr %OutSizes24.i, align 8
%InSizes20.i = getelementptr inbounds %"class.NArchive::NZip::CMtProgressMixer2", ptr %0, i64 0, i32 3
%6 = load i64, ptr %InSizes20.i, align 8
%arrayidx23.i = getelementptr inbounds %"class.NArchive::NZip::CMtProgressMixer2", ptr %0, i64 0, i32 3, i64 1
%.sink53.i = select i1 %tobool19.not.i, i64 %5, i64 %6
%arrayidx23.val.i = load i64, ptr %arrayidx23.i, align 8
%7 = select i1 %tobool19.not.i, i64 %arrayidx27.val.i, i64 %arrayidx23.val.i
%add28.i = add i64 %.sink53.i, %3
%add29.i = add i64 %add28.i, %7
store i64 %add29.i, ptr %v.i, align 8, !tbaa !56
%Progress.i = getelementptr inbounds %"class.NArchive::NZip::CMtProgressMixer2", ptr %0, i64 0, i32 5
%8 = load ptr, ptr %Progress.i, align 8, !tbaa !47
%vtable33.i = load ptr, ptr %8, align 8, !tbaa !41
%vfn34.i = getelementptr inbounds ptr, ptr %vtable33.i, i64 6
%9 = load ptr, ptr %vfn34.i, align 8
%call36.i = invoke noundef i32 %9(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull %v.i)
to label %_ZN8NArchive4NZip17CMtProgressMixer212SetRatioInfoEiPKyS3_.exit unwind label %lpad30.i
lpad30.i: ; preds = %if.end18.i
%10 = landingpad { ptr, i32 }
cleanup
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %v.i) #16
%call.i.i.i50.i = call i32 @pthread_mutex_unlock(ptr noundef nonnull %CriticalSection.i) #16
resume { ptr, i32 } %10
_ZN8NArchive4NZip17CMtProgressMixer212SetRatioInfoEiPKyS3_.exit: ; preds = %if.end18.i
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %v.i) #16
%call.i.i.i.i = call i32 @pthread_mutex_unlock(ptr noundef nonnull %CriticalSection.i) #16
ret i32 %call36.i
}
; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN8NArchive4NZip15CCacheOutStream8AllocateEv(ptr nocapture noundef nonnull align 8 dereferenceable(80) %this) local_unnamed_addr #0 align 2 {
entry:
%_cache = getelementptr inbounds %"class.NArchive::NZip::CCacheOutStream", ptr %this, i64 0, i32 3
%0 = load ptr, ptr %_cache, align 8, !tbaa !61
%tobool.not = icmp eq ptr %0, null
br i1 %tobool.not, label %if.then, label %if.end
if.then: ; preds = %entry
%call = tail call ptr @MidAlloc(i64 noundef 4194304)
store ptr %call, ptr %_cache, align 8, !tbaa !61
br label %if.end
if.end: ; preds = %if.then, %entry
%1 = phi ptr [ %call, %if.then ], [ %0, %entry ]
%cmp = icmp ne ptr %1, null
ret i1 %cmp
}
declare ptr @MidAlloc(i64 noundef) local_unnamed_addr #1
; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN8NArchive4NZip15CCacheOutStream4InitEP10IOutStream(ptr noundef nonnull align 8 dereferenceable(80) %this, ptr noundef %stream) local_unnamed_addr #0 align 2 {
entry:
%_phyPos = getelementptr inbounds %"class.NArchive::NZip::CCacheOutStream", ptr %this, i64 0, i32 6
store i64 0, ptr %_phyPos, align 8, !tbaa !65
%_virtPos = getelementptr inbounds %"class.NArchive::NZip::CCacheOutStream", ptr %this, i64 0, i32 4
store i64 0, ptr %_virtPos, align 8, !tbaa !66
%_stream = getelementptr inbounds %"class.NArchive::NZip::CCacheOutStream", ptr %this, i64 0, i32 2
%cmp.not.i = icmp eq ptr %stream, null
br i1 %cmp.not.i, label %if.end.i, label %if.then.i
if.then.i: ; preds = %entry
%vtable.i = load ptr, ptr %stream, align 8, !tbaa !41
%vfn.i = getelementptr inbounds ptr, ptr %vtable.i, i64 1
%0 = load ptr, ptr %vfn.i, align 8
%call.i = tail call noundef i32 %0(ptr noundef nonnull align 8 dereferenceable(8) %stream)
br label %if.end.i
if.end.i: ; preds = %if.then.i, %entry
%1 = load ptr, ptr %_stream, align 8, !tbaa !38
%tobool.not.i = icmp eq ptr %1, null
br i1 %tobool.not.i, label %_ZN9CMyComPtrI10IOutStreamEaSEPS0_.exit, label %if.then2.i
if.then2.i: ; preds = %if.end.i
%vtable4.i = load ptr, ptr %1, align 8, !tbaa !41
%vfn5.i = getelementptr inbounds ptr, ptr %vtable4.i, i64 2
%2 = load ptr, ptr %vfn5.i, align 8
%call6.i = tail call noundef i32 %2(ptr noundef nonnull align 8 dereferenceable(8) %1)
br label %_ZN9CMyComPtrI10IOutStreamEaSEPS0_.exit
_ZN9CMyComPtrI10IOutStreamEaSEPS0_.exit: ; preds = %if.end.i, %if.then2.i
store ptr %stream, ptr %_stream, align 8, !tbaa !38
%vtable = load ptr, ptr %stream, align 8, !tbaa !41
%vfn = getelementptr inbounds ptr, ptr %vtable, i64 6
%3 = load ptr, ptr %vfn, align 8
%call5 = tail call noundef i32 %3(ptr noundef nonnull align 8 dereferenceable(8) %stream, i64 noundef 0, i32 noundef 1, ptr noundef nonnull %_virtPos)
%cmp.not.not = icmp eq i32 %call5, 0
br i1 %cmp.not.not, label %cleanup.cont, label %return
cleanup.cont: ; preds = %_ZN9CMyComPtrI10IOutStreamEaSEPS0_.exit
%4 = load ptr, ptr %_stream, align 8, !tbaa !38
%_virtSize = getelementptr inbounds %"class.NArchive::NZip::CCacheOutStream", ptr %this, i64 0, i32 5
%vtable9 = load ptr, ptr %4, align 8, !tbaa !41
%vfn10 = getelementptr inbounds ptr, ptr %vtable9, i64 6
%5 = load ptr, ptr %vfn10, align 8
%call11 = tail call noundef i32 %5(ptr noundef nonnull align 8 dereferenceable(8) %4, i64 noundef 0, i32 noundef 2, ptr noundef nonnull %_virtSize)
%cmp12.not.not = icmp eq i32 %call11, 0
br i1 %cmp12.not.not, label %cleanup.cont17, label %return
cleanup.cont17: ; preds = %cleanup.cont
%6 = load ptr, ptr %_stream, align 8, !tbaa !38
%7 = load i64, ptr %_virtPos, align 8, !tbaa !66
%vtable23 = load ptr, ptr %6, align 8, !tbaa !41
%vfn24 = getelementptr inbounds ptr, ptr %vtable23, i64 6
%8 = load ptr, ptr %vfn24, align 8
%call25 = tail call noundef i32 %8(ptr noundef nonnull align 8 dereferenceable(8) %6, i64 noundef %7, i32 noundef 0, ptr noundef nonnull %_virtPos)
%cmp26.not.not = icmp eq i32 %call25, 0
br i1 %cmp26.not.not, label %cleanup.cont31, label %return
cleanup.cont31: ; preds = %cleanup.cont17
%9 = load <2 x i64>, ptr %_virtPos, align 8, !tbaa !56
store <2 x i64> %9, ptr %_phyPos, align 8, !tbaa !56
%_cachedPos = getelementptr inbounds %"class.NArchive::NZip::CCacheOutStream", ptr %this, i64 0, i32 8
tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %_cachedPos, i8 0, i64 16, i1 false)
br label %return
return: ; preds = %cleanup.cont17, %cleanup.cont, %_ZN9CMyComPtrI10IOutStreamEaSEPS0_.exit, %cleanup.cont31
%retval.3 = phi i32 [ %call5, %_ZN9CMyComPtrI10IOutStreamEaSEPS0_.exit ], [ %call11, %cleanup.cont ], [ %call25, %cleanup.cont17 ], [ 0, %cleanup.cont31 ]
ret i32 %retval.3
}
; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN8NArchive4NZip15CCacheOutStream7MyWriteEm(ptr noundef nonnull align 8 dereferenceable(80) %this, i64 noundef %size) local_unnamed_addr #0 align 2 {
entry:
%_cachedSize = getelementptr inbounds %"class.NArchive::NZip::CCacheOutStream", ptr %this, i64 0, i32 9
%_stream = getelementptr inbounds %"class.NArchive::NZip::CCacheOutStream", ptr %this, i64 0, i32 2
%cmp.not56 = icmp eq i64 %size, 0
br i1 %cmp.not56, label %return, label %land.rhs.lr.ph
land.rhs.lr.ph: ; preds = %entry
%_phyPos = getelementptr inbounds %"class.NArchive::NZip::CCacheOutStream", ptr %this, i64 0, i32 6
%_cachedPos = getelementptr inbounds %"class.NArchive::NZip::CCacheOutStream", ptr %this, i64 0, i32 8
%_cache = getelementptr inbounds %"class.NArchive::NZip::CCacheOutStream", ptr %this, i64 0, i32 3
%_phySize = getelementptr inbounds %"class.NArchive::NZip::CCacheOutStream", ptr %this, i64 0, i32 7
%.pre = load i64, ptr %_cachedSize, align 8, !tbaa !67
br label %land.rhs
land.rhs: ; preds = %land.rhs.lr.ph, %cleanup36
%0 = phi i64 [ %.pre, %land.rhs.lr.ph ], [ %sub34, %cleanup36 ]
%size.addr.057 = phi i64 [ %size, %land.rhs.lr.ph ], [ %sub35, %cleanup36 ]
%cmp2.not = icmp eq i64 %0, 0
br i1 %cmp2.not, label %return, label %while.body
while.body: ; preds = %land.rhs
%1 = load i64, ptr %_phyPos, align 8, !tbaa !65
%2 = load i64, ptr %_cachedPos, align 8, !tbaa !68
%cmp3.not = icmp eq i64 %1, %2
br i1 %cmp3.not, label %if.end9, label %if.then
if.then: ; preds = %while.body
%3 = load ptr, ptr %_stream, align 8, !tbaa !38
%vtable = load ptr, ptr %3, align 8, !tbaa !41
%vfn = getelementptr inbounds ptr, ptr %vtable, i64 6
%4 = load ptr, ptr %vfn, align 8
%call6 = tail call noundef i32 %4(ptr noundef nonnull align 8 dereferenceable(8) %3, i64 noundef %2, i32 noundef 0, ptr noundef nonnull %_phyPos)
%cmp7.not.not = icmp eq i32 %call6, 0
br i1 %cmp7.not.not, label %if.then.if.end9_crit_edge, label %return
if.then.if.end9_crit_edge: ; preds = %if.then
%.pre61 = load i64, ptr %_cachedPos, align 8, !tbaa !68
%.pre62 = load i64, ptr %_cachedSize, align 8, !tbaa !67
br label %if.end9
if.end9: ; preds = %if.then.if.end9_crit_edge, %while.body
%5 = phi i64 [ %.pre62, %if.then.if.end9_crit_edge ], [ %0, %while.body ]
%6 = phi i64 [ %.pre61, %if.then.if.end9_crit_edge ], [ %1, %while.body ]
%and = and i64 %6, 4194303
%sub = sub nuw nsw i64 4194304, %and
%cond.i = tail call i64 @llvm.umin.i64(i64 %sub, i64 %5)
%cond.i52 = tail call i64 @llvm.umin.i64(i64 %cond.i, i64 %size.addr.057)
%7 = load ptr, ptr %_stream, align 8, !tbaa !38
%8 = load ptr, ptr %_cache, align 8, !tbaa !61
%add.ptr = getelementptr inbounds i8, ptr %8, i64 %and
%call17 = tail call noundef i32 @_Z11WriteStreamP20ISequentialOutStreamPKvm(ptr noundef %7, ptr noundef %add.ptr, i64 noundef %cond.i52)
%cmp18.not.not = icmp eq i32 %call17, 0
br i1 %cmp18.not.not, label %cleanup.cont23, label %return
cleanup.cont23: ; preds = %if.end9
%9 = load i64, ptr %_phyPos, align 8, !tbaa !65
%add = add i64 %9, %cond.i52
store i64 %add, ptr %_phyPos, align 8, !tbaa !65
%10 = load i64, ptr %_phySize, align 8, !tbaa !69
%cmp26 = icmp ult i64 %10, %add
br i1 %cmp26, label %if.then27, label %cleanup36
if.then27: ; preds = %cleanup.cont23
store i64 %add, ptr %_phySize, align 8, !tbaa !69
br label %cleanup36
cleanup36: ; preds = %cleanup.cont23, %if.then27
%11 = load i64, ptr %_cachedPos, align 8, !tbaa !68
%add32 = add i64 %11, %cond.i52
store i64 %add32, ptr %_cachedPos, align 8, !tbaa !68
%12 = load i64, ptr %_cachedSize, align 8, !tbaa !67
%sub34 = sub i64 %12, %cond.i52
store i64 %sub34, ptr %_cachedSize, align 8, !tbaa !67
%sub35 = sub i64 %size.addr.057, %cond.i52
%cmp.not = icmp eq i64 %sub35, 0
br i1 %cmp.not, label %return, label %land.rhs
return: ; preds = %cleanup36, %land.rhs, %if.then, %if.end9, %entry
%retval.4 = phi i32 [ 0, %entry ], [ %call17, %if.end9 ], [ %call6, %if.then ], [ 0, %land.rhs ], [ 0, %cleanup36 ]
ret i32 %retval.4
}
declare noundef i32 @_Z11WriteStreamP20ISequentialOutStreamPKvm(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #1
; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN8NArchive4NZip15CCacheOutStream10FlushCacheEv(ptr noundef nonnull align 8 dereferenceable(80) %this) local_unnamed_addr #0 align 2 {
entry:
%_cachedSize = getelementptr inbounds %"class.NArchive::NZip::CCacheOutStream", ptr %this, i64 0, i32 9
%0 = load i64, ptr %_cachedSize, align 8, !tbaa !67
%_stream.i = getelementptr inbounds %"class.NArchive::NZip::CCacheOutStream", ptr %this, i64 0, i32 2
%cmp.not56.i = icmp eq i64 %0, 0
br i1 %cmp.not56.i, label %_ZN8NArchive4NZip15CCacheOutStream7MyWriteEm.exit, label %land.rhs.lr.ph.i
land.rhs.lr.ph.i: ; preds = %entry