; LLVM IR from DanEngelbrecht/longtail :: cmd (main)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.Longtail_FrameBufferAPI = type { %struct.Longtail_API, ptr, ptr, ptr }
%struct.Longtail_API = type { ptr }

@FrameBufferAPI = external dso_local global ptr, align 8
@.str.34 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.119 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.120 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.121 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.122 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.123 = external hidden unnamed_addr constant [77 x i8], align 1
@.str.124 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.125 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.126 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.127 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.128 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.129 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.130 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.131 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.132 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.133 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.134 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.135 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.136 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.137 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.138 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.139 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.140 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.141 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.142 = external hidden unnamed_addr constant [138 x i8], align 1
@.str.143 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.144 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.145 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.146 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.147 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.148 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.149 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.150 = external hidden unnamed_addr constant [84 x i8], align 1
@.str.151 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.152 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.153 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.154 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.155 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.156 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.157 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.158 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.159 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.160 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.161 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.162 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.163 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.164 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.165 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.166 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.167 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.168 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.169 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.170 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.171 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.172 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.173 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.174 = external hidden unnamed_addr constant [13 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @kgflags_string(ptr noundef, ptr noundef, ptr noundef, i1 noundef zeroext, ptr noundef) #0

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nounwind uwtable
declare dso_local void @kgflags_bool(ptr noundef, i1 noundef zeroext, ptr noundef, i1 noundef zeroext, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @kgflags_int(ptr noundef, i32 noundef, ptr noundef, i1 noundef zeroext, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local zeroext i1 @kgflags_parse(i32 noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @kgflags_print_errors() #0

; Function Attrs: nounwind uwtable
declare dso_local void @kgflags_print_usage() #0

; Function Attrs: nounwind uwtable
declare dso_local void @kgflags_set_custom_description(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @kgflags_get_non_flag_args_count() #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @kgflags_get_non_flag_arg(i32 noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @DisposeMonitor() #0

declare void @Longtail_Free(ptr noundef) #2

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local i32 @ParseCompressionType(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @ParseHashingType(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden ptr @NormalizePath(ptr noundef) #0

declare void @Longtail_DisposeAPI(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @SetLogLevel(ptr noundef) #0

declare i32 @printf(ptr noundef, ...) #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @ValidateVersionIndex(ptr noundef, ptr noundef, i32 noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @VersionIndex_ls(ptr noundef, ptr noundef, i32 noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @VersionIndex_cp(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #0

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i8, align 1
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i8, align 1
  %22 = alloca i8, align 1
  %23 = alloca i8, align 1
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca ptr, align 8
  %27 = alloca ptr, align 8
  %28 = alloca ptr, align 8
  %29 = alloca ptr, align 8
  %30 = alloca ptr, align 8
  %31 = alloca ptr, align 8
  %32 = alloca ptr, align 8
  %33 = alloca ptr, align 8
  %34 = alloca ptr, align 8
  %35 = alloca i8, align 1
  %36 = alloca i8, align 1
  %37 = alloca i8, align 1
  %38 = alloca i8, align 1
  %39 = alloca ptr, align 8
  %40 = alloca ptr, align 8
  %41 = alloca ptr, align 8
  %42 = alloca ptr, align 8
  %43 = alloca ptr, align 8
  %44 = alloca ptr, align 8
  %45 = alloca ptr, align 8
  %46 = alloca i8, align 1
  %47 = alloca ptr, align 8
  %48 = alloca ptr, align 8
  %49 = alloca i8, align 1
  %50 = alloca ptr, align 8
  %51 = alloca ptr, align 8
  %52 = alloca ptr, align 8
  %53 = alloca ptr, align 8
  %54 = alloca ptr, align 8
  %55 = alloca ptr, align 8
  %56 = alloca i8, align 1
  %57 = alloca ptr, align 8
  %58 = alloca ptr, align 8
  %59 = alloca ptr, align 8
  %60 = alloca ptr, align 8
  %61 = alloca ptr, align 8
  %62 = alloca ptr, align 8
  %63 = alloca ptr, align 8
  %64 = alloca ptr, align 8
  %65 = alloca ptr, align 8
  %66 = alloca ptr, align 8
  %67 = alloca i32, align 4
  %68 = alloca i32, align 4
  %69 = alloca i32, align 4
  %70 = alloca i32, align 4
  %71 = alloca i8, align 1
  %72 = alloca i8, align 1
  %73 = alloca i32, align 4
  %74 = alloca i32, align 4
  %75 = alloca ptr, align 8
  %76 = alloca ptr, align 8
  %77 = alloca ptr, align 8
  %78 = alloca ptr, align 8
  %79 = alloca ptr, align 8
  %80 = alloca i8, align 1
  %81 = alloca i8, align 1
  %82 = alloca i8, align 1
  %83 = alloca i8, align 1
  %84 = alloca ptr, align 8
  %85 = alloca ptr, align 8
  %86 = alloca ptr, align 8
  %87 = alloca ptr, align 8
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @Longtail_SetAssert(ptr noundef @AssertFailure)
  call void @Longtail_SetLog(ptr noundef @LogStdErr, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  store ptr null, ptr %6, align 8, !tbaa !9
  call void @kgflags_string(ptr noundef @.str.119, ptr noundef @.str.34, ptr noundef @.str.120, i1 noundef zeroext false, ptr noundef %6)
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #4
  store i8 0, ptr %7, align 1, !tbaa !11
  call void @kgflags_bool(ptr noundef @.str.121, i1 noundef zeroext false, ptr noundef @.str.122, i1 noundef zeroext false, ptr noundef %7)
  %88 = load i32, ptr %4, align 4, !tbaa !5
  %89 = icmp slt i32 %88, 2
  br i1 %89, label %90, label %91

90:                                               ; preds = %2
  call void @kgflags_set_custom_description(ptr noundef @.str.123)
  call void @kgflags_print_usage()
  store i32 1, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %566

91:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %92 = load ptr, ptr %5, align 8, !tbaa !9
  %93 = getelementptr inbounds ptr, ptr %92, i64 1
  %94 = load ptr, ptr %93, align 8, !tbaa !9
  store ptr %94, ptr %9, align 8, !tbaa !9
  %95 = load ptr, ptr %9, align 8, !tbaa !9
  %96 = call i32 @strcmp(ptr noundef %95, ptr noundef @.str.124) #5
  %97 = icmp ne i32 %96, 0
  br i1 %97, label %98, label %123

98:                                               ; preds = %91
  %99 = load ptr, ptr %9, align 8, !tbaa !9
  %100 = call i32 @strcmp(ptr noundef %99, ptr noundef @.str.125) #5
  %101 = icmp ne i32 %100, 0
  br i1 %101, label %102, label %123

102:                                              ; preds = %98
  %103 = load ptr, ptr %9, align 8, !tbaa !9
  %104 = call i32 @strcmp(ptr noundef %103, ptr noundef @.str.126) #5
  %105 = icmp ne i32 %104, 0
  br i1 %105, label %106, label %123

106:                                              ; preds = %102
  %107 = load ptr, ptr %9, align 8, !tbaa !9
  %108 = call i32 @strcmp(ptr noundef %107, ptr noundef @.str.127) #5
  %109 = icmp ne i32 %108, 0
  br i1 %109, label %110, label %123

110:                                              ; preds = %106
  %111 = load ptr, ptr %9, align 8, !tbaa !9
  %112 = call i32 @strcmp(ptr noundef %111, ptr noundef @.str.128) #5
  %113 = icmp ne i32 %112, 0
  br i1 %113, label %114, label %123

114:                                              ; preds = %110
  %115 = load ptr, ptr %9, align 8, !tbaa !9
  %116 = call i32 @strcmp(ptr noundef %115, ptr noundef @.str.129) #5
  %117 = icmp ne i32 %116, 0
  br i1 %117, label %118, label %123

118:                                              ; preds = %114
  %119 = load ptr, ptr %9, align 8, !tbaa !9
  %120 = call i32 @strcmp(ptr noundef %119, ptr noundef @.str.130) #5
  %121 = icmp ne i32 %120, 0
  br i1 %121, label %122, label %123

122:                                              ; preds = %118
  call void @kgflags_set_custom_description(ptr noundef @.str.123)
  call void @kgflags_print_usage()
  store i32 1, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %565

123:                                              ; preds = %118, %114, %110, %106, %102, %98, %91
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 0, ptr %10, align 4, !tbaa !5
  %124 = load ptr, ptr %9, align 8, !tbaa !9
  %125 = call i32 @strcmp(ptr noundef %124, ptr noundef @.str.124) #5
  %126 = icmp eq i32 %125, 0
  br i1 %126, label %127, label %216

127:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  store ptr null, ptr %11, align 8, !tbaa !9
  call void @kgflags_string(ptr noundef @.str.131, ptr noundef null, ptr noundef @.str.132, i1 noundef zeroext true, ptr noundef %11)
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  store ptr null, ptr %12, align 8, !tbaa !9
  call void @kgflags_string(ptr noundef @.str.133, ptr noundef @.str.49, ptr noundef @.str.134, i1 noundef zeroext false, ptr noundef %12)
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  store ptr null, ptr %13, align 8, !tbaa !9
  call void @kgflags_string(ptr noundef @.str.135, ptr noundef null, ptr noundef @.str.136, i1 noundef zeroext true, ptr noundef %13)
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  store ptr null, ptr %14, align 8, !tbaa !9
  call void @kgflags_string(ptr noundef @.str.137, ptr noundef null, ptr noundef @.str.138, i1 noundef zeroext false, ptr noundef %14)
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  store ptr null, ptr %15, align 8, !tbaa !9
  call void @kgflags_string(ptr noundef @.str.139, ptr noundef null, ptr noundef @.str.140, i1 noundef zeroext true, ptr noundef %15)
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  store ptr null, ptr %16, align 8, !tbaa !9
  call void @kgflags_string(ptr noundef @.str.141, ptr noundef @.str.44, ptr noundef @.str.142, i1 noundef zeroext false, ptr noundef %16)
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  store i32 8, ptr %17, align 4, !tbaa !5
  call void @kgflags_int(ptr noundef @.str.143, i32 noundef 32768, ptr noundef @.str.144, i1 noundef zeroext false, ptr noundef %17)
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  store i32 0, ptr %18, align 4, !tbaa !5
  call void @kgflags_int(ptr noundef @.str.145, i32 noundef 8388608, ptr noundef @.str.146, i1 noundef zeroext false, ptr noundef %18)
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  store i32 0, ptr %19, align 4, !tbaa !5
  call void @kgflags_int(ptr noundef @.str.147, i32 noundef 1024, ptr noundef @.str.148, i1 noundef zeroext false, ptr noundef %19)
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  store i32 8, ptr %20, align 4, !tbaa !5
  call void @kgflags_int(ptr noundef @.str.149, i32 noundef 0, ptr noundef @.str.150, i1 noundef zeroext false, ptr noundef %20)
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #4
  store i8 0, ptr %21, align 1, !tbaa !11
  call void @kgflags_bool(ptr noundef @.str.151, i1 noundef zeroext false, ptr noundef @.str.152, i1 noundef zeroext false, ptr noundef %21)
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #4
  store i8 0, ptr %22, align 1, !tbaa !11
  call void @kgflags_bool(ptr noundef @.str.153, i1 noundef zeroext false, ptr noundef @.str.154, i1 noundef zeroext false, ptr noundef %22)
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #4
  store i8 0, ptr %23, align 1, !tbaa !11
  call void @kgflags_bool(ptr noundef @.str.155, i1 noundef zeroext false, ptr noundef @.str.156, i1 noundef zeroext false, ptr noundef %23)
  %128 = load i32, ptr %4, align 4, !tbaa !5
  %129 = load ptr, ptr %5, align 8, !tbaa !9
  %130 = call zeroext i1 @kgflags_parse(i32 noundef %128, ptr noundef %129)
  br i1 %130, label %132, label %131

131:                                              ; preds = %127
  call void @kgflags_print_errors()
  call void @kgflags_print_usage()
  store i32 1, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %213

132:                                              ; preds = %127
  %133 = load ptr, ptr %6, align 8, !tbaa !9
  %134 = call i32 @SetLogLevel(ptr noundef %133)
  %135 = icmp ne i32 %134, 0
  br i1 %135, label %136, label %137

136:                                              ; preds = %132
  store i32 1, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %213

137:                                              ; preds = %132
  %138 = load i8, ptr %7, align 1, !tbaa !11, !range !13, !noundef !14
  %139 = trunc i8 %138 to i1
  br i1 %139, label %140, label %141

140:                                              ; preds = %137
  call void (...) @Longtail_MemTracer_Init()
  call void @Longtail_SetReAllocAndFree(ptr noundef @Longtail_MemTracer_ReAlloc, ptr noundef @Longtail_MemTracer_Free)
  br label %141

141:                                              ; preds = %140, %137
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #4
  %142 = load ptr, ptr %16, align 8, !tbaa !9
  %143 = call i32 @ParseCompressionType(ptr noundef %142)
  store i32 %143, ptr %24, align 4, !tbaa !5
  %144 = load i32, ptr %24, align 4, !tbaa !5
  %145 = icmp eq i32 %144, -1
  br i1 %145, label %146, label %149

146:                                              ; preds = %141
  %147 = load ptr, ptr %16, align 8, !tbaa !9
  %148 = call i32 (ptr, ...) @printf(ptr noundef @.str.157, ptr noundef %147)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %212

149:                                              ; preds = %141
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #4
  %150 = load ptr, ptr %12, align 8, !tbaa !9
  %151 = call i32 @ParseHashingType(ptr noundef %150)
  store i32 %151, ptr %25, align 4, !tbaa !5
  %152 = load i32, ptr %25, align 4, !tbaa !5
  %153 = icmp eq i32 %152, -1
  br i1 %153, label %154, label %157

154:                                              ; preds = %149
  %155 = load ptr, ptr %12, align 8, !tbaa !9
  %156 = call i32 (ptr, ...) @printf(ptr noundef @.str.158, ptr noundef %155)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %211

157:                                              ; preds = %149
  %158 = load i8, ptr %23, align 1, !tbaa !11, !range !13, !noundef !14
  %159 = trunc i8 %158 to i1
  br i1 %159, label %160, label %162

160:                                              ; preds = %157
  %161 = call ptr (...) @Longtail_CreateMiniFBFrameBufferAPI()
  store ptr %161, ptr @FrameBufferAPI, align 8, !tbaa !9
  br label %162

162:                                              ; preds = %160, %157
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #4
  %163 = load ptr, ptr %13, align 8, !tbaa !9
  %164 = call ptr @NormalizePath(ptr noundef %163)
  store ptr %164, ptr %26, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #4
  %165 = load ptr, ptr %14, align 8, !tbaa !9
  %166 = icmp ne ptr %165, null
  br i1 %166, label %167, label %170

167:                                              ; preds = %162
  %168 = load ptr, ptr %14, align 8, !tbaa !9
  %169 = call ptr @NormalizePath(ptr noundef %168)
  br label %171

170:                                              ; preds = %162
  br label %171

171:                                              ; preds = %170, %167
  %172 = phi ptr [ %169, %167 ], [ null, %170 ]
  store ptr %172, ptr %27, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #4
  %173 = load ptr, ptr %15, align 8, !tbaa !9
  %174 = call ptr @NormalizePath(ptr noundef %173)
  store ptr %174, ptr %28, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #4
  %175 = load ptr, ptr %11, align 8, !tbaa !9
  %176 = load ptr, ptr %26, align 8, !tbaa !9
  %177 = load ptr, ptr %27, align 8, !tbaa !9
  %178 = load ptr, ptr %28, align 8, !tbaa !9
  %179 = load i32, ptr %17, align 4, !tbaa !5
  %180 = load i32, ptr %18, align 4, !tbaa !5
  %181 = load i32, ptr %19, align 4, !tbaa !5
  %182 = load i32, ptr %20, align 4, !tbaa !5
  %183 = load i32, ptr %25, align 4, !tbaa !5
  %184 = load i32, ptr %24, align 4, !tbaa !5
  %185 = load i8, ptr %21, align 1, !tbaa !11, !range !13, !noundef !14
  %186 = trunc i8 %185 to i1
  %187 = zext i1 %186 to i32
  %188 = load i8, ptr %22, align 1, !tbaa !11, !range !13, !noundef !14
  %189 = trunc i8 %188 to i1
  %190 = zext i1 %189 to i32
  %191 = load i8, ptr %23, align 1, !tbaa !11, !range !13, !noundef !14
  %192 = trunc i8 %191 to i1
  %193 = zext i1 %192 to i32
  %194 = call ptr @UpSyncThreaded(ptr noundef %175, ptr noundef %176, ptr noundef %177, ptr noundef %178, i32 noundef %179, i32 noundef %180, i32 noundef %181, i32 noundef %182, i32 noundef %183, i32 noundef %184, i32 noundef %187, i32 noundef %190, i32 noundef %193)
  store ptr %194, ptr %29, align 8, !tbaa !9
  br label %195

195:                                              ; preds = %199, %171
  %196 = load ptr, ptr %29, align 8, !tbaa !9
  %197 = call i32 @TryEndAsyncThread(ptr noundef %196)
  %198 = icmp ne i32 %197, 0
  br i1 %198, label %199, label %201

199:                                              ; preds = %195
  %200 = call i32 @UpdateProgressWindow()
  br label %195, !llvm.loop !15

201:                                              ; preds = %195
  call void @DisposeMonitor()
  %202 = load ptr, ptr %26, align 8, !tbaa !9
  call void @Longtail_Free(ptr noundef %202)
  %203 = load ptr, ptr %27, align 8, !tbaa !9
  call void @Longtail_Free(ptr noundef %203)
  %204 = load ptr, ptr %28, align 8, !tbaa !9
  call void @Longtail_Free(ptr noundef %204)
  %205 = load ptr, ptr @FrameBufferAPI, align 8, !tbaa !9
  %206 = icmp ne ptr %205, null
  br i1 %206, label %207, label %210

207:                                              ; preds = %201
  %208 = load ptr, ptr @FrameBufferAPI, align 8, !tbaa !9
  %209 = getelementptr inbounds %struct.Longtail_FrameBufferAPI, ptr %208, i32 0, i32 0
  call void @Longtail_DisposeAPI(ptr noundef %209)
  br label %210

210:                                              ; preds = %207, %201
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
  store i32 0, ptr %8, align 4
  br label %211

211:                                              ; preds = %210, %154
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #4
  br label %212

212:                                              ; preds = %211, %146
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  br label %213

213:                                              ; preds = %212, %136, %131
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  %214 = load i32, ptr %8, align 4
  switch i32 %214, label %564 [
    i32 0, label %215
  ]

215:                                              ; preds = %213
  br label %491

216:                                              ; preds = %123
  %217 = load ptr, ptr %9, align 8, !tbaa !9
  %218 = call i32 @strcmp(ptr noundef %217, ptr noundef @.str.125) #5
  %219 = icmp eq i32 %218, 0
  br i1 %219, label %220, label %298

220:                                              ; preds = %216
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #4
  store ptr null, ptr %30, align 8, !tbaa !9
  call void @kgflags_string(ptr noundef @.str.131, ptr noundef null, ptr noundef @.str.132, i1 noundef zeroext true, ptr noundef %30)
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #4
  store ptr null, ptr %31, align 8, !tbaa !9
  call void @kgflags_string(ptr noundef @.str.159, ptr noundef null, ptr noundef @.str.160, i1 noundef zeroext false, ptr noundef %31)
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #4
  store ptr null, ptr %32, align 8, !tbaa !9
  call void @kgflags_string(ptr noundef @.str.139, ptr noundef null, ptr noundef @.str.161, i1 noundef zeroext true, ptr noundef %32)
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #4
  store ptr null, ptr %33, align 8, !tbaa !9
  call void @kgflags_string(ptr noundef @.str.162, ptr noundef null, ptr noundef @.str.163, i1 noundef zeroext false, ptr noundef %33)
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #4
  store ptr null, ptr %34, align 8, !tbaa !9
  call void @kgflags_string(ptr noundef @.str.135, ptr noundef null, ptr noundef @.str.164, i1 noundef zeroext true, ptr noundef %34)
  call void @llvm.lifetime.start.p0(i64 1, ptr %35) #4
  store i8 0, ptr %35, align 1, !tbaa !11
  call void @kgflags_bool(ptr noundef @.str.165, i1 noundef zeroext true, ptr noundef @.str.166, i1 noundef zeroext false, ptr noundef %35)
  call void @llvm.lifetime.start.p0(i64 1, ptr %36) #4
  store i8 0, ptr %36, align 1, !tbaa !11
  call void @kgflags_bool(ptr noundef @.str.151, i1 noundef zeroext false, ptr noundef @.str.152, i1 noundef zeroext false, ptr noundef %36)
  call void @llvm.lifetime.start.p0(i64 1, ptr %37) #4
  store i8 0, ptr %37, align 1, !tbaa !11
  call void @kgflags_bool(ptr noundef @.str.153, i1 noundef zeroext false, ptr noundef @.str.154, i1 noundef zeroext false, ptr noundef %37)
  call void @llvm.lifetime.start.p0(i64 1, ptr %38) #4
  store i8 0, ptr %38, align 1, !tbaa !11
  call void @kgflags_bool(ptr noundef @.str.155, i1 noundef zeroext false, ptr noundef @.str.156, i1 noundef zeroext false, ptr noundef %38)
  %221 = load i32, ptr %4, align 4, !tbaa !5
  %222 = load ptr, ptr %5, align 8, !tbaa !9
  %223 = call zeroext i1 @kgflags_parse(i32 noundef %221, ptr noundef %222)
  br i1 %223, label %225, label %224

224:                                              ; preds = %220
  call void @kgflags_print_errors()
  call void @kgflags_print_usage()
  store i32 1, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %295

225:                                              ; preds = %220
  %226 = load ptr, ptr %6, align 8, !tbaa !9
  %227 = call i32 @SetLogLevel(ptr noundef %226)
  %228 = icmp ne i32 %227, 0
  br i1 %228, label %229, label %230

229:                                              ; preds = %225
  store i32 1, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %295

230:                                              ; preds = %225
  %231 = load i8, ptr %7, align 1, !tbaa !11, !range !13, !noundef !14
  %232 = trunc i8 %231 to i1
  br i1 %232, label %233, label %234

233:                                              ; preds = %230
  call void (...) @Longtail_MemTracer_Init()
  call void @Longtail_SetReAllocAndFree(ptr noundef @Longtail_MemTracer_ReAlloc, ptr noundef @Longtail_MemTracer_Free)
  br label %234

234:                                              ; preds = %233, %230
  %235 = load i8, ptr %38, align 1, !tbaa !11, !range !13, !noundef !14
  %236 = trunc i8 %235 to i1
  br i1 %236, label %237, label %239

237:                                              ; preds = %234
  %238 = call ptr (...) @Longtail_CreateMiniFBFrameBufferAPI()
  store ptr %238, ptr @FrameBufferAPI, align 8, !tbaa !9
  br label %239

239:                                              ; preds = %237, %234
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #4
  %240 = load ptr, ptr %31, align 8, !tbaa !9
  %241 = icmp ne ptr %240, null
  br i1 %241, label %242, label %245

242:                                              ; preds = %239
  %243 = load ptr, ptr %31, align 8, !tbaa !9
  %244 = call ptr @NormalizePath(ptr noundef %243)
  br label %246

245:                                              ; preds = %239
  br label %246

246:                                              ; preds = %245, %242
  %247 = phi ptr [ %244, %242 ], [ null, %245 ]
  store ptr %247, ptr %39, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #4
  %248 = load ptr, ptr %32, align 8, !tbaa !9
  %249 = call ptr @NormalizePath(ptr noundef %248)
  store ptr %249, ptr %40, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #4
  %250 = load ptr, ptr %33, align 8, !tbaa !9
  %251 = icmp ne ptr %250, null
  br i1 %251, label %252, label %255

252:                                              ; preds = %246
  %253 = load ptr, ptr %33, align 8, !tbaa !9
  %254 = call ptr @NormalizePath(ptr noundef %253)
  br label %256

255:                                              ; preds = %246
  br label %256

256:                                              ; preds = %255, %252
  %257 = phi ptr [ %254, %252 ], [ null, %255 ]
  store ptr %257, ptr %41, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #4
  %258 = load ptr, ptr %34, align 8, !tbaa !9
  %259 = call ptr @NormalizePath(ptr noundef %258)
  store ptr %259, ptr %42, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #4
  %260 = load ptr, ptr %30, align 8, !tbaa !9
  %261 = load ptr, ptr %39, align 8, !tbaa !9
  %262 = load ptr, ptr %42, align 8, !tbaa !9
  %263 = load ptr, ptr %40, align 8, !tbaa !9
  %264 = load ptr, ptr %41, align 8, !tbaa !9
  %265 = load i8, ptr %35, align 1, !tbaa !11, !range !13, !noundef !14
  %266 = trunc i8 %265 to i1
  %267 = zext i1 %266 to i32
  %268 = load i8, ptr %36, align 1, !tbaa !11, !range !13, !noundef !14
  %269 = trunc i8 %268 to i1
  %270 = zext i1 %269 to i32
  %271 = load i8, ptr %37, align 1, !tbaa !11, !range !13, !noundef !14
  %272 = trunc i8 %271 to i1
  %273 = zext i1 %272 to i32
  %274 = load i8, ptr %38, align 1, !tbaa !11, !range !13, !noundef !14
  %275 = trunc i8 %274 to i1
  %276 = zext i1 %275 to i32
  %277 = call ptr @DownSyncThreaded(ptr noundef %260, ptr noundef %261, ptr noundef %262, ptr noundef %263, ptr noundef %264, i32 noundef %267, i32 noundef %270, i32 noundef %273, i32 noundef %276)
  store ptr %277, ptr %43, align 8, !tbaa !9
  br label %278

278:                                              ; preds = %282, %256
  %279 = load ptr, ptr %43, align 8, !tbaa !9
  %280 = call i32 @TryEndAsyncThread(ptr noundef %279)
  %281 = icmp ne i32 %280, 0
  br i1 %281, label %282, label %284

282:                                              ; preds = %278
  %283 = call i32 @UpdateProgressWindow()
  br label %278, !llvm.loop !17

284:                                              ; preds = %278
  call void @DisposeMonitor()
  %285 = load ptr, ptr %42, align 8, !tbaa !9
  call void @Longtail_Free(ptr noundef %285)
  %286 = load ptr, ptr %41, align 8, !tbaa !9
  call void @Longtail_Free(ptr noundef %286)
  %287 = load ptr, ptr %40, align 8, !tbaa !9
  call void @Longtail_Free(ptr noundef %287)
  %288 = load ptr, ptr %39, align 8, !tbaa !9
  call void @Longtail_Free(ptr noundef %288)
  %289 = load ptr, ptr @FrameBufferAPI, align 8, !tbaa !9
  %290 = icmp ne ptr %289, null
  br i1 %290, label %291, label %294

291:                                              ; preds = %284
  %292 = load ptr, ptr @FrameBufferAPI, align 8, !tbaa !9
  %293 = getelementptr inbounds %struct.Longtail_FrameBufferAPI, ptr %292, i32 0, i32 0
  call void @Longtail_DisposeAPI(ptr noundef %293)
  br label %294

294:                                              ; preds = %291, %284
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #4
  store i32 0, ptr %8, align 4
  br label %295

295:                                              ; preds = %294, %229, %224
  call void @llvm.lifetime.end.p0(i64 1, ptr %38) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %37) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %36) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %35) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #4
  %296 = load i32, ptr %8, align 4
  switch i32 %296, label %564 [
    i32 0, label %297
  ]

297:                                              ; preds = %295
  br label %490

298:                                              ; preds = %216
  %299 = load ptr, ptr %9, align 8, !tbaa !9
  %300 = call i32 @strcmp(ptr noundef %299, ptr noundef @.str.126) #5
  %301 = icmp eq i32 %300, 0
  br i1 %301, label %302, label %329

302:                                              ; preds = %298
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #4
  store ptr null, ptr %44, align 8, !tbaa !9
  call void @kgflags_string(ptr noundef @.str.131, ptr noundef null, ptr noundef @.str.132, i1 noundef zeroext true, ptr noundef %44)
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #4
  store ptr null, ptr %45, align 8, !tbaa !9
  call void @kgflags_string(ptr noundef @.str.167, ptr noundef null, ptr noundef @.str.168, i1 noundef zeroext true, ptr noundef %45)
  call void @llvm.lifetime.start.p0(i64 1, ptr %46) #4
  store i8 0, ptr %46, align 1, !tbaa !11
  call void @kgflags_bool(ptr noundef @.str.153, i1 noundef zeroext false, ptr noundef @.str.154, i1 noundef zeroext false, ptr noundef %46)
  %303 = load i32, ptr %4, align 4, !tbaa !5
  %304 = load ptr, ptr %5, align 8, !tbaa !9
  %305 = call zeroext i1 @kgflags_parse(i32 noundef %303, ptr noundef %304)
  br i1 %305, label %307, label %306

306:                                              ; preds = %302
  call void @kgflags_print_errors()
  call void @kgflags_print_usage()
  store i32 1, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %326

307:                                              ; preds = %302
  %308 = load ptr, ptr %6, align 8, !tbaa !9
  %309 = call i32 @SetLogLevel(ptr noundef %308)
  %310 = icmp ne i32 %309, 0
  br i1 %310, label %311, label %312

311:                                              ; preds = %307
  store i32 1, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %326

312:                                              ; preds = %307
  %313 = load i8, ptr %7, align 1, !tbaa !11, !range !13, !noundef !14
  %314 = trunc i8 %313 to i1
  br i1 %314, label %315, label %316

315:                                              ; preds = %312
  call void (...) @Longtail_MemTracer_Init()
  call void @Longtail_SetReAllocAndFree(ptr noundef @Longtail_MemTracer_ReAlloc, ptr noundef @Longtail_MemTracer_Free)
  br label %316

316:                                              ; preds = %315, %312
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #4
  %317 = load ptr, ptr %45, align 8, !tbaa !9
  %318 = call ptr @NormalizePath(ptr noundef %317)
  store ptr %318, ptr %47, align 8, !tbaa !9
  %319 = load ptr, ptr %44, align 8, !tbaa !9
  %320 = load ptr, ptr %47, align 8, !tbaa !9
  %321 = load i8, ptr %46, align 1, !tbaa !11, !range !13, !noundef !14
  %322 = trunc i8 %321 to i1
  %323 = zext i1 %322 to i32
  %324 = call i32 @ValidateVersionIndex(ptr noundef %319, ptr noundef %320, i32 noundef %323)
  store i32 %324, ptr %10, align 4, !tbaa !5
  %325 = load ptr, ptr %47, align 8, !tbaa !9
  call void @Longtail_Free(ptr noundef %325)
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #4
  store i32 0, ptr %8, align 4
  br label %326

326:                                              ; preds = %316, %311, %306
  call void @llvm.lifetime.end.p0(i64 1, ptr %46) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #4
  %327 = load i32, ptr %8, align 4
  switch i32 %327, label %564 [
    i32 0, label %328
  ]

328:                                              ; preds = %326
  br label %489

329:                                              ; preds = %298
  %330 = load ptr, ptr %9, align 8, !tbaa !9
  %331 = call i32 @strcmp(ptr noundef %330, ptr noundef @.str.127) #5
  %332 = icmp eq i32 %331, 0
  br i1 %332, label %333, label %361

333:                                              ; preds = %329
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #4
  store ptr null, ptr %48, align 8, !tbaa !9
  call void @kgflags_string(ptr noundef @.str.167, ptr noundef null, ptr noundef @.str.169, i1 noundef zeroext true, ptr noundef %48)
  call void @llvm.lifetime.start.p0(i64 1, ptr %49) #4
  store i8 0, ptr %49, align 1, !tbaa !11
  call void @kgflags_bool(ptr noundef @.str.153, i1 noundef zeroext false, ptr noundef @.str.154, i1 noundef zeroext false, ptr noundef %49)
  %334 = load i32, ptr %4, align 4, !tbaa !5
  %335 = load ptr, ptr %5, align 8, !tbaa !9
  %336 = call zeroext i1 @kgflags_parse(i32 noundef %334, ptr noundef %335)
  br i1 %336, label %338, label %337

337:                                              ; preds = %333
  call void @kgflags_print_errors()
  call void @kgflags_print_usage()
  store i32 1, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %358

338:                                              ; preds = %333
  %339 = load i8, ptr %7, align 1, !tbaa !11, !range !13, !noundef !14
  %340 = trunc i8 %339 to i1
  br i1 %340, label %341, label %342

341:                                              ; preds = %338
  call void (...) @Longtail_MemTracer_Init()
  call void @Longtail_SetReAllocAndFree(ptr noundef @Longtail_MemTracer_ReAlloc, ptr noundef @Longtail_MemTracer_Free)
  br label %342

342:                                              ; preds = %341, %338
  %343 = call i32 @kgflags_get_non_flag_args_count()
  %344 = icmp slt i32 %343, 2
  br i1 %344, label %345, label %346

345:                                              ; preds = %342
  call void @kgflags_set_custom_description(ptr noundef @.str.170)
  call void @kgflags_print_errors()
  call void @kgflags_print_usage()
  store i32 1, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %358

346:                                              ; preds = %342
  call void @llvm.lifetime.start.p0(i64 8, ptr %50) #4
  %347 = call ptr @kgflags_get_non_flag_arg(i32 noundef 1)
  store ptr %347, ptr %50, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %51) #4
  %348 = load ptr, ptr %48, align 8, !tbaa !9
  %349 = call ptr @NormalizePath(ptr noundef %348)
  store ptr %349, ptr %51, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %52) #4
  %350 = load ptr, ptr %50, align 8, !tbaa !9
  %351 = call ptr @NormalizePath(ptr noundef %350)
  store ptr %351, ptr %52, align 8, !tbaa !9
  %352 = load ptr, ptr %51, align 8, !tbaa !9
  %353 = load ptr, ptr %52, align 8, !tbaa !9
  %354 = load i8, ptr %49, align 1, !tbaa !11, !range !13, !noundef !14
  %355 = trunc i8 %354 to i1
  %356 = zext i1 %355 to i32
  %357 = call i32 @VersionIndex_ls(ptr noundef %352, ptr noundef %353, i32 noundef %356)
  store i32 %357, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #4
  store i32 0, ptr %8, align 4
  br label %358

358:                                              ; preds = %346, %345, %337
  call void @llvm.lifetime.end.p0(i64 1, ptr %49) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #4
  %359 = load i32, ptr %8, align 4
  switch i32 %359, label %564 [
    i32 0, label %360
  ]

360:                                              ; preds = %358
  br label %488

361:                                              ; preds = %329
  %362 = load ptr, ptr %9, align 8, !tbaa !9
  %363 = call i32 @strcmp(ptr noundef %362, ptr noundef @.str.128) #5
  %364 = icmp eq i32 %363, 0
  br i1 %364, label %365, label %407

365:                                              ; preds = %361
  call void @llvm.lifetime.start.p0(i64 8, ptr %53) #4
  store ptr null, ptr %53, align 8, !tbaa !9
  call void @kgflags_string(ptr noundef @.str.131, ptr noundef null, ptr noundef @.str.132, i1 noundef zeroext true, ptr noundef %53)
  call void @llvm.lifetime.start.p0(i64 8, ptr %54) #4
  store ptr null, ptr %54, align 8, !tbaa !9
  call void @kgflags_string(ptr noundef @.str.159, ptr noundef null, ptr noundef @.str.160, i1 noundef zeroext false, ptr noundef %54)
  call void @llvm.lifetime.start.p0(i64 8, ptr %55) #4
  store ptr null, ptr %55, align 8, !tbaa !9
  call void @kgflags_string(ptr noundef @.str.167, ptr noundef null, ptr noundef @.str.169, i1 noundef zeroext true, ptr noundef %55)
  call void @llvm.lifetime.start.p0(i64 1, ptr %56) #4
  store i8 0, ptr %56, align 1, !tbaa !11
  call void @kgflags_bool(ptr noundef @.str.153, i1 noundef zeroext false, ptr noundef @.str.154, i1 noundef zeroext false, ptr noundef %56)
  %366 = load i32, ptr %4, align 4, !tbaa !5
  %367 = load ptr, ptr %5, align 8, !tbaa !9
  %368 = call zeroext i1 @kgflags_parse(i32 noundef %366, ptr noundef %367)
  br i1 %368, label %370, label %369

369:                                              ; preds = %365
  call void @kgflags_print_errors()
  call void @kgflags_print_usage()
  store i32 1, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %404

370:                                              ; preds = %365
  %371 = call i32 @kgflags_get_non_flag_args_count()
  %372 = icmp slt i32 %371, 3
  br i1 %372, label %373, label %374

373:                                              ; preds = %370
  call void @kgflags_set_custom_description(ptr noundef @.str.171)
  call void @kgflags_print_errors()
  call void @kgflags_print_usage()
  store i32 1, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %404

374:                                              ; preds = %370
  %375 = load i8, ptr %7, align 1, !tbaa !11, !range !13, !noundef !14
  %376 = trunc i8 %375 to i1
  br i1 %376, label %377, label %378

377:                                              ; preds = %374
  call void (...) @Longtail_MemTracer_Init()
  call void @Longtail_SetReAllocAndFree(ptr noundef @Longtail_MemTracer_ReAlloc, ptr noundef @Longtail_MemTracer_Free)
  br label %378

378:                                              ; preds = %377, %374
  call void @llvm.lifetime.start.p0(i64 8, ptr %57) #4
  %379 = call ptr @kgflags_get_non_flag_arg(i32 noundef 1)
  store ptr %379, ptr %57, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %58) #4
  %380 = call ptr @kgflags_get_non_flag_arg(i32 noundef 2)
  store ptr %380, ptr %58, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %59) #4
  %381 = load ptr, ptr %54, align 8, !tbaa !9
  %382 = icmp ne ptr %381, null
  br i1 %382, label %383, label %386

383:                                              ; preds = %378
  %384 = load ptr, ptr %54, align 8, !tbaa !9
  %385 = call ptr @NormalizePath(ptr noundef %384)
  br label %387

386:                                              ; preds = %378
  br label %387

387:                                              ; preds = %386, %383
  %388 = phi ptr [ %385, %383 ], [ null, %386 ]
  store ptr %388, ptr %59, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %60) #4
  %389 = load ptr, ptr %55, align 8, !tbaa !9
  %390 = call ptr @NormalizePath(ptr noundef %389)
  store ptr %390, ptr %60, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %61) #4
  %391 = load ptr, ptr %57, align 8, !tbaa !9
  %392 = call ptr @NormalizePath(ptr noundef %391)
  store ptr %392, ptr %61, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %62) #4
  %393 = load ptr, ptr %58, align 8, !tbaa !9
  %394 = call ptr @NormalizePath(ptr noundef %393)
  store ptr %394, ptr %62, align 8, !tbaa !9
  %395 = load ptr, ptr %53, align 8, !tbaa !9
  %396 = load ptr, ptr %60, align 8, !tbaa !9
  %397 = load ptr, ptr %59, align 8, !tbaa !9
  %398 = load ptr, ptr %61, align 8, !tbaa !9
  %399 = load ptr, ptr %62, align 8, !tbaa !9
  %400 = load i8, ptr %56, align 1, !tbaa !11, !range !13, !noundef !14
  %401 = trunc i8 %400 to i1
  %402 = zext i1 %401 to i32
  %403 = call i32 @VersionIndex_cp(ptr noundef %395, ptr noundef %396, ptr noundef %397, ptr noundef %398, ptr noundef %399, i32 noundef %402)
  store i32 %403, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %62) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %61) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %60) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %59) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %58) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #4
  store i32 0, ptr %8, align 4
  br label %404

404:                                              ; preds = %387, %373, %369
  call void @llvm.lifetime.end.p0(i64 1, ptr %56) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %54) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #4
  %405 = load i32, ptr %8, align 4
  switch i32 %405, label %564 [
    i32 0, label %406
  ]

406:                                              ; preds = %404
  br label %487

407:                                              ; preds = %361
  %408 = load ptr, ptr %9, align 8, !tbaa !9
  %409 = call i32 @strcmp(ptr noundef %408, ptr noundef @.str.129) #5
  %410 = icmp eq i32 %409, 0
  br i1 %410, label %411, label %486

411:                                              ; preds = %407
  call void @llvm.lifetime.start.p0(i64 8, ptr %63) #4
  store ptr null, ptr %63, align 8, !tbaa !9
  call void @kgflags_string(ptr noundef @.str.133, ptr noundef @.str.49, ptr noundef @.str.134, i1 noundef zeroext false, ptr noundef %63)
  call void @llvm.lifetime.start.p0(i64 8, ptr %64) #4
  store ptr null, ptr %64, align 8, !tbaa !9
  call void @kgflags_string(ptr noundef @.str.135, ptr noundef null, ptr noundef @.str.136, i1 noundef zeroext true, ptr noundef %64)
  call void @llvm.lifetime.start.p0(i64 8, ptr %65) #4
  store ptr null, ptr %65, align 8, !tbaa !9
  call void @kgflags_string(ptr noundef @.str.139, ptr noundef null, ptr noundef @.str.140, i1 noundef zeroext true, ptr noundef %65)
  call void @llvm.lifetime.start.p0(i64 8, ptr %66) #4
  store ptr null, ptr %66, align 8, !tbaa !9
  call void @kgflags_string(ptr noundef @.str.141, ptr noundef @.str.44, ptr noundef @.str.142, i1 noundef zeroext false, ptr noundef %66)
  call void @llvm.lifetime.start.p0(i64 4, ptr %67) #4
  store i32 8, ptr %67, align 4, !tbaa !5
  call void @kgflags_int(ptr noundef @.str.143, i32 noundef 32768, ptr noundef @.str.144, i1 noundef zeroext false, ptr noundef %67)
  call void @llvm.lifetime.start.p0(i64 4, ptr %68) #4
  store i32 0, ptr %68, align 4, !tbaa !5
  call void @kgflags_int(ptr noundef @.str.145, i32 noundef 8388608, ptr noundef @.str.146, i1 noundef zeroext false, ptr noundef %68)
  call void @llvm.lifetime.start.p0(i64 4, ptr %69) #4
  store i32 0, ptr %69, align 4, !tbaa !5
  call void @kgflags_int(ptr noundef @.str.147, i32 noundef 1024, ptr noundef @.str.148, i1 noundef zeroext false, ptr noundef %69)
  call void @llvm.lifetime.start.p0(i64 4, ptr %70) #4
  store i32 8, ptr %70, align 4, !tbaa !5
  call void @kgflags_int(ptr noundef @.str.149, i32 noundef 0, ptr noundef @.str.150, i1 noundef zeroext false, ptr noundef %70)
  call void @llvm.lifetime.start.p0(i64 1, ptr %71) #4
  store i8 0, ptr %71, align 1, !tbaa !11
  call void @kgflags_bool(ptr noundef @.str.151, i1 noundef zeroext false, ptr noundef @.str.152, i1 noundef zeroext false, ptr noundef %71)
  call void @llvm.lifetime.start.p0(i64 1, ptr %72) #4
  store i8 0, ptr %72, align 1, !tbaa !11
  call void @kgflags_bool(ptr noundef @.str.155, i1 noundef zeroext false, ptr noundef @.str.156, i1 noundef zeroext false, ptr noundef %72)
  %412 = load i32, ptr %4, align 4, !tbaa !5
  %413 = load ptr, ptr %5, align 8, !tbaa !9
  %414 = call zeroext i1 @kgflags_parse(i32 noundef %412, ptr noundef %413)
  br i1 %414, label %416, label %415

415:                                              ; preds = %411
  call void @kgflags_print_errors()
  call void @kgflags_print_usage()
  store i32 1, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %483

416:                                              ; preds = %411
  %417 = load ptr, ptr %6, align 8, !tbaa !9
  %418 = call i32 @SetLogLevel(ptr noundef %417)
  %419 = icmp ne i32 %418, 0
  br i1 %419, label %420, label %421

420:                                              ; preds = %416
  store i32 1, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %483

421:                                              ; preds = %416
  %422 = load i8, ptr %7, align 1, !tbaa !11, !range !13, !noundef !14
  %423 = trunc i8 %422 to i1
  br i1 %423, label %424, label %425

424:                                              ; preds = %421
  call void (...) @Longtail_MemTracer_Init()
  call void @Longtail_SetReAllocAndFree(ptr noundef @Longtail_MemTracer_ReAlloc, ptr noundef @Longtail_MemTracer_Free)
  br label %425

425:                                              ; preds = %424, %421
  call void @llvm.lifetime.start.p0(i64 4, ptr %73) #4
  %426 = load ptr, ptr %66, align 8, !tbaa !9
  %427 = call i32 @ParseCompressionType(ptr noundef %426)
  store i32 %427, ptr %73, align 4, !tbaa !5
  %428 = load i32, ptr %73, align 4, !tbaa !5
  %429 = icmp eq i32 %428, -1
  br i1 %429, label %430, label %433

430:                                              ; preds = %425
  %431 = load ptr, ptr %66, align 8, !tbaa !9
  %432 = call i32 (ptr, ...) @printf(ptr noundef @.str.157, ptr noundef %431)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %482

433:                                              ; preds = %425
  call void @llvm.lifetime.start.p0(i64 4, ptr %74) #4
  %434 = load ptr, ptr %63, align 8, !tbaa !9
  %435 = call i32 @ParseHashingType(ptr noundef %434)
  store i32 %435, ptr %74, align 4, !tbaa !5
  %436 = load i32, ptr %74, align 4, !tbaa !5
  %437 = icmp eq i32 %436, -1
  br i1 %437, label %438, label %441

438:                                              ; preds = %433
  %439 = load ptr, ptr %63, align 8, !tbaa !9
  %440 = call i32 (ptr, ...) @printf(ptr noundef @.str.158, ptr noundef %439)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %481

441:                                              ; preds = %433
  %442 = load i8, ptr %72, align 1, !tbaa !11, !range !13, !noundef !14
  %443 = trunc i8 %442 to i1
  br i1 %443, label %444, label %446

444:                                              ; preds = %441
  %445 = call ptr (...) @Longtail_CreateMiniFBFrameBufferAPI()
  store ptr %445, ptr @FrameBufferAPI, align 8, !tbaa !9
  br label %446

446:                                              ; preds = %444, %441
  call void @llvm.lifetime.start.p0(i64 8, ptr %75) #4
  %447 = load ptr, ptr %64, align 8, !tbaa !9
  %448 = call ptr @NormalizePath(ptr noundef %447)
  store ptr %448, ptr %75, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %76) #4
  %449 = load ptr, ptr %65, align 8, !tbaa !9
  %450 = call ptr @NormalizePath(ptr noundef %449)
  store ptr %450, ptr %76, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %77) #4
  %451 = load ptr, ptr %75, align 8, !tbaa !9
  %452 = load ptr, ptr %76, align 8, !tbaa !9
  %453 = load i32, ptr %67, align 4, !tbaa !5
  %454 = load i32, ptr %68, align 4, !tbaa !5
  %455 = load i32, ptr %69, align 4, !tbaa !5
  %456 = load i32, ptr %70, align 4, !tbaa !5
  %457 = load i32, ptr %74, align 4, !tbaa !5
  %458 = load i32, ptr %73, align 4, !tbaa !5
  %459 = load i8, ptr %71, align 1, !tbaa !11, !range !13, !noundef !14
  %460 = trunc i8 %459 to i1
  %461 = zext i1 %460 to i32
  %462 = load i8, ptr %72, align 1, !tbaa !11, !range !13, !noundef !14
  %463 = trunc i8 %462 to i1
  %464 = zext i1 %463 to i32
  %465 = call ptr @PackThreaded(ptr noundef %451, ptr noundef %452, i32 noundef %453, i32 noundef %454, i32 noundef %455, i32 noundef %456, i32 noundef %457, i32 noundef %458, i32 noundef %461, i32 noundef %464)
  store ptr %465, ptr %77, align 8, !tbaa !9
  br label %466

466:                                              ; preds = %470, %446
  %467 = load ptr, ptr %77, align 8, !tbaa !9
  %468 = call i32 @TryEndAsyncThread(ptr noundef %467)
  %469 = icmp ne i32 %468, 0
  br i1 %469, label %470, label %472

470:                                              ; preds = %466
  %471 = call i32 @UpdateProgressWindow()
  br label %466, !llvm.loop !18

472:                                              ; preds = %466
  call void @DisposeMonitor()
  %473 = load ptr, ptr %75, align 8, !tbaa !9
  call void @Longtail_Free(ptr noundef %473)
  %474 = load ptr, ptr %76, align 8, !tbaa !9
  call void @Longtail_Free(ptr noundef %474)
  %475 = load ptr, ptr @FrameBufferAPI, align 8, !tbaa !9
  %476 = icmp ne ptr %475, null
  br i1 %476, label %477, label %480

477:                                              ; preds = %472
  %478 = load ptr, ptr @FrameBufferAPI, align 8, !tbaa !9
  %479 = getelementptr inbounds %struct.Longtail_FrameBufferAPI, ptr %478, i32 0, i32 0
  call void @Longtail_DisposeAPI(ptr noundef %479)
  br label %480

480:                                              ; preds = %477, %472
  call void @llvm.lifetime.end.p0(i64 8, ptr %77) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %76) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %75) #4
  store i32 0, ptr %8, align 4
  br label %481

481:                                              ; preds = %480, %438
  call void @llvm.lifetime.end.p0(i64 4, ptr %74) #4
  br label %482

482:                                              ; preds = %481, %430
  call void @llvm.lifetime.end.p0(i64 4, ptr %73) #4
  br label %483

483:                                              ; preds = %482, %420, %415
  call void @llvm.lifetime.end.p0(i64 1, ptr %72) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %71) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %70) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %69) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %68) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %67) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %66) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %65) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %64) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %63) #4
  %484 = load i32, ptr %8, align 4
  switch i32 %484, label %564 [
    i32 0, label %485
  ]

485:                                              ; preds = %483
  br label %486

486:                                              ; preds = %485, %407
  br label %487

487:                                              ; preds = %486, %406
  br label %488

488:                                              ; preds = %487, %360
  br label %489

489:                                              ; preds = %488, %328
  br label %490

490:                                              ; preds = %489, %297
  br label %491

491:                                              ; preds = %490, %215
  %492 = load ptr, ptr %9, align 8, !tbaa !9
  %493 = call i32 @strcmp(ptr noundef %492, ptr noundef @.str.130) #5
  %494 = icmp eq i32 %493, 0
  br i1 %494, label %495, label %552

495:                                              ; preds = %491
  call void @llvm.lifetime.start.p0(i64 8, ptr %78) #4
  store ptr null, ptr %78, align 8, !tbaa !9
  call void @kgflags_string(ptr noundef @.str.135, ptr noundef null, ptr noundef @.str.136, i1 noundef zeroext true, ptr noundef %78)
  call void @llvm.lifetime.start.p0(i64 8, ptr %79) #4
  store ptr null, ptr %79, align 8, !tbaa !9
  call void @kgflags_string(ptr noundef @.str.139, ptr noundef null, ptr noundef @.str.140, i1 noundef zeroext true, ptr noundef %79)
  call void @llvm.lifetime.start.p0(i64 1, ptr %80) #4
  store i8 0, ptr %80, align 1, !tbaa !11
  call void @kgflags_bool(ptr noundef @.str.165, i1 noundef zeroext true, ptr noundef @.str.166, i1 noundef zeroext false, ptr noundef %80)
  call void @llvm.lifetime.start.p0(i64 1, ptr %81) #4
  store i8 0, ptr %81, align 1, !tbaa !11
  call void @kgflags_bool(ptr noundef @.str.151, i1 noundef zeroext false, ptr noundef @.str.152, i1 noundef zeroext false, ptr noundef %81)
  call void @llvm.lifetime.start.p0(i64 1, ptr %82) #4
  store i8 0, ptr %82, align 1, !tbaa !11
  call void @kgflags_bool(ptr noundef @.str.172, i1 noundef zeroext false, ptr noundef @.str.173, i1 noundef zeroext false, ptr noundef %82)
  call void @llvm.lifetime.start.p0(i64 1, ptr %83) #4
  store i8 0, ptr %83, align 1, !tbaa !11
  call void @kgflags_bool(ptr noundef @.str.155, i1 noundef zeroext false, ptr noundef @.str.156, i1 noundef zeroext false, ptr noundef %83)
  %496 = load i32, ptr %4, align 4, !tbaa !5
  %497 = load ptr, ptr %5, align 8, !tbaa !9
  %498 = call zeroext i1 @kgflags_parse(i32 noundef %496, ptr noundef %497)
  br i1 %498, label %500, label %499

499:                                              ; preds = %495
  call void @kgflags_print_errors()
  call void @kgflags_print_usage()
  store i32 1, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %549

500:                                              ; preds = %495
  %501 = load ptr, ptr %6, align 8, !tbaa !9
  %502 = call i32 @SetLogLevel(ptr noundef %501)
  %503 = icmp ne i32 %502, 0
  br i1 %503, label %504, label %505

504:                                              ; preds = %500
  store i32 1, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %549

505:                                              ; preds = %500
  %506 = load i8, ptr %7, align 1, !tbaa !11, !range !13, !noundef !14
  %507 = trunc i8 %506 to i1
  br i1 %507, label %508, label %509

508:                                              ; preds = %505
  call void (...) @Longtail_MemTracer_Init()
  call void @Longtail_SetReAllocAndFree(ptr noundef @Longtail_MemTracer_ReAlloc, ptr noundef @Longtail_MemTracer_Free)
  br label %509

509:                                              ; preds = %508, %505
  %510 = load i8, ptr %83, align 1, !tbaa !11, !range !13, !noundef !14
  %511 = trunc i8 %510 to i1
  br i1 %511, label %512, label %514

512:                                              ; preds = %509
  %513 = call ptr (...) @Longtail_CreateMiniFBFrameBufferAPI()
  store ptr %513, ptr @FrameBufferAPI, align 8, !tbaa !9
  br label %514

514:                                              ; preds = %512, %509
  call void @llvm.lifetime.start.p0(i64 8, ptr %84) #4
  %515 = load ptr, ptr %78, align 8, !tbaa !9
  %516 = call ptr @NormalizePath(ptr noundef %515)
  store ptr %516, ptr %84, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %85) #4
  %517 = load ptr, ptr %79, align 8, !tbaa !9
  %518 = call ptr @NormalizePath(ptr noundef %517)
  store ptr %518, ptr %85, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %86) #4
  %519 = load ptr, ptr %84, align 8, !tbaa !9
  %520 = load ptr, ptr %85, align 8, !tbaa !9
  %521 = load i8, ptr %80, align 1, !tbaa !11, !range !13, !noundef !14
  %522 = trunc i8 %521 to i1
  %523 = zext i1 %522 to i32
  %524 = load i8, ptr %81, align 1, !tbaa !11, !range !13, !noundef !14
  %525 = trunc i8 %524 to i1
  %526 = zext i1 %525 to i32
  %527 = load i8, ptr %82, align 1, !tbaa !11, !range !13, !noundef !14
  %528 = trunc i8 %527 to i1
  %529 = zext i1 %528 to i32
  %530 = load i8, ptr %83, align 1, !tbaa !11, !range !13, !noundef !14
  %531 = trunc i8 %530 to i1
  %532 = zext i1 %531 to i32
  %533 = call ptr @UnpackThreaded(ptr noundef %519, ptr noundef %520, i32 noundef %523, i32 noundef %526, i32 noundef %529, i32 noundef %532)
  store ptr %533, ptr %86, align 8, !tbaa !9
  br label %534

534:                                              ; preds = %538, %514
  %535 = load ptr, ptr %86, align 8, !tbaa !9
  %536 = call i32 @TryEndAsyncThread(ptr noundef %535)
  %537 = icmp ne i32 %536, 0
  br i1 %537, label %538, label %540

538:                                              ; preds = %534
  %539 = call i32 @UpdateProgressWindow()
  br label %534, !llvm.loop !19

540:                                              ; preds = %534
  call void @DisposeMonitor()
  %541 = load ptr, ptr %84, align 8, !tbaa !9
  call void @Longtail_Free(ptr noundef %541)
  %542 = load ptr, ptr %85, align 8, !tbaa !9
  call void @Longtail_Free(ptr noundef %542)
  %543 = load ptr, ptr @FrameBufferAPI, align 8, !tbaa !9
  %544 = icmp ne ptr %543, null
  br i1 %544, label %545, label %548

545:                                              ; preds = %540
  %546 = load ptr, ptr @FrameBufferAPI, align 8, !tbaa !9
  %547 = getelementptr inbounds %struct.Longtail_FrameBufferAPI, ptr %546, i32 0, i32 0
  call void @Longtail_DisposeAPI(ptr noundef %547)
  br label %548

548:                                              ; preds = %545, %540
  call void @llvm.lifetime.end.p0(i64 8, ptr %86) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %85) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %84) #4
  store i32 0, ptr %8, align 4
  br label %549

549:                                              ; preds = %548, %504, %499
  call void @llvm.lifetime.end.p0(i64 1, ptr %83) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %82) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %81) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %80) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %79) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %78) #4
  %550 = load i32, ptr %8, align 4
  switch i32 %550, label %564 [
    i32 0, label %551
  ]

551:                                              ; preds = %549
  br label %552

552:                                              ; preds = %551, %491
  %553 = load i8, ptr %7, align 1, !tbaa !11, !range !13, !noundef !14
  %554 = trunc i8 %553 to i1
  br i1 %554, label %555, label %562

555:                                              ; preds = %552
  %556 = call i32 @Longtail_MemTracer_DumpStats(ptr noundef @.str.174)
  call void @llvm.lifetime.start.p0(i64 8, ptr %87) #4
  %557 = call i32 (...) @Longtail_GetMemTracerSummary()
  %558 = call ptr @Longtail_MemTracer_GetStats(i32 noundef %557)
  store ptr %558, ptr %87, align 8, !tbaa !9
  %559 = load ptr, ptr %87, align 8, !tbaa !9
  %560 = call i32 (ptr, ...) @printf(ptr noundef @.str.53, ptr noundef %559)
  %561 = load ptr, ptr %87, align 8, !tbaa !9
  call void @Longtail_Free(ptr noundef %561)
  call void (...) @Longtail_MemTracer_Dispose()
  call void @llvm.lifetime.end.p0(i64 8, ptr %87) #4
  br label %562

562:                                              ; preds = %555, %552
  %563 = load i32, ptr %10, align 4, !tbaa !5
  store i32 %563, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %564

564:                                              ; preds = %562, %549, %483, %404, %358, %326, %295, %213
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %565

565:                                              ; preds = %564, %122
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  br label %566

566:                                              ; preds = %565, %90
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  %567 = load i32, ptr %3, align 4
  ret i32 %567
}

declare void @Longtail_SetAssert(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare hidden void @AssertFailure(ptr noundef, ptr noundef, i32 noundef) #0

declare void @Longtail_SetLog(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare hidden void @LogStdErr(ptr noundef, ptr noundef) #0

declare void @Longtail_MemTracer_Init(...) #2

declare void @Longtail_SetReAllocAndFree(ptr noundef, ptr noundef) #2

declare ptr @Longtail_MemTracer_ReAlloc(ptr noundef, ptr noundef, i64 noundef) #2

declare void @Longtail_MemTracer_Free(ptr noundef) #2

declare ptr @Longtail_CreateMiniFBFrameBufferAPI(...) #2

; Function Attrs: nounwind uwtable
declare hidden ptr @UpSyncThreaded(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #0

; Function Attrs: nounwind uwtable
declare hidden i32 @TryEndAsyncThread(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden ptr @DownSyncThreaded(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #0

; Function Attrs: nounwind uwtable
declare hidden ptr @PackThreaded(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #0

; Function Attrs: nounwind uwtable
declare hidden ptr @UnpackThreaded(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #0

declare i32 @Longtail_MemTracer_DumpStats(ptr noundef) #2

declare ptr @Longtail_MemTracer_GetStats(i32 noundef) #2

declare i32 @Longtail_GetMemTracerSummary(...) #2

declare void @Longtail_MemTracer_Dispose(...) #2

; Function Attrs: nounwind uwtable
declare hidden i32 @UpdateProgressWindow() #0

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind willreturn memory(read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
attributes #5 = { nounwind willreturn memory(read) }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_Bool", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}
!19 = distinct !{!19, !16}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@FrameBufferAPI = external dso_local local_unnamed_addr global ptr, align 8
@.str.34 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.119 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.120 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.121 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.122 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.123 = external hidden unnamed_addr constant [77 x i8], align 1
@.str.124 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.125 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.126 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.127 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.128 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.129 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.130 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.131 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.132 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.133 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.134 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.135 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.136 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.137 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.138 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.139 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.140 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.141 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.142 = external hidden unnamed_addr constant [138 x i8], align 1
@.str.143 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.144 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.145 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.146 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.147 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.148 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.149 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.150 = external hidden unnamed_addr constant [84 x i8], align 1
@.str.151 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.152 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.153 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.154 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.155 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.156 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.157 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.158 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.159 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.160 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.161 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.162 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.163 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.164 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.165 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.166 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.167 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.168 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.169 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.170 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.171 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.172 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.173 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.174 = external hidden unnamed_addr constant [13 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @kgflags_string(ptr noundef, ptr noundef, ptr noundef, i1 noundef zeroext, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nounwind uwtable
declare dso_local void @kgflags_bool(ptr noundef, i1 noundef zeroext, ptr noundef, i1 noundef zeroext, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @kgflags_int(ptr noundef, i32 noundef, ptr noundef, i1 noundef zeroext, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local zeroext i1 @kgflags_parse(i32 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @kgflags_print_errors() local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @kgflags_print_usage() local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @kgflags_set_custom_description(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @kgflags_get_non_flag_args_count() local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @kgflags_get_non_flag_arg(i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @DisposeMonitor() local_unnamed_addr #0

declare void @Longtail_Free(ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare dso_local i32 @ParseCompressionType(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @ParseHashingType(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden ptr @NormalizePath(ptr noundef) local_unnamed_addr #0

declare void @Longtail_DisposeAPI(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @SetLogLevel(ptr noundef) local_unnamed_addr #0

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
declare dso_local i32 @ValidateVersionIndex(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @VersionIndex_ls(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @VersionIndex_cp(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  %3 = alloca ptr, align 8
  %4 = alloca i8, align 1
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i8, align 1
  %16 = alloca i8, align 1
  %17 = alloca i8, align 1
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca i8, align 1
  %24 = alloca i8, align 1
  %25 = alloca i8, align 1
  %26 = alloca i8, align 1
  %27 = alloca ptr, align 8
  %28 = alloca ptr, align 8
  %29 = alloca i8, align 1
  %30 = alloca ptr, align 8
  %31 = alloca i8, align 1
  %32 = alloca ptr, align 8
  %33 = alloca ptr, align 8
  %34 = alloca ptr, align 8
  %35 = alloca i8, align 1
  %36 = alloca ptr, align 8
  %37 = alloca ptr, align 8
  %38 = alloca ptr, align 8
  %39 = alloca ptr, align 8
  %40 = alloca i32, align 4
  %41 = alloca i32, align 4
  %42 = alloca i32, align 4
  %43 = alloca i32, align 4
  %44 = alloca i8, align 1
  %45 = alloca i8, align 1
  %46 = alloca ptr, align 8
  %47 = alloca ptr, align 8
  %48 = alloca i8, align 1
  %49 = alloca i8, align 1
  %50 = alloca i8, align 1
  %51 = alloca i8, align 1
  tail call void @Longtail_SetAssert(ptr noundef nonnull @AssertFailure) #5
  tail call void @Longtail_SetLog(ptr noundef nonnull @LogStdErr, ptr noundef null) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  store ptr null, ptr %3, align 8, !tbaa !5
  call void @kgflags_string(ptr noundef nonnull @.str.119, ptr noundef nonnull @.str.34, ptr noundef nonnull @.str.120, i1 noundef zeroext false, ptr noundef nonnull %3)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #5
  store i8 0, ptr %4, align 1, !tbaa !9
  call void @kgflags_bool(ptr noundef nonnull @.str.121, i1 noundef zeroext false, ptr noundef nonnull @.str.122, i1 noundef zeroext false, ptr noundef nonnull %4)
  %52 = icmp slt i32 %0, 2
  br i1 %52, label %53, label %54

53:                                               ; preds = %2
  call void @kgflags_set_custom_description(ptr noundef nonnull @.str.123)
  call void @kgflags_print_usage()
  br label %342

54:                                               ; preds = %2
  %55 = getelementptr inbounds i8, ptr %1, i64 8
  %56 = load ptr, ptr %55, align 8, !tbaa !5
  %57 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %56, ptr noundef nonnull dereferenceable(1) @.str.124) #6
  %.not = icmp eq i32 %57, 0
  br i1 %.not, label %71, label %58

58:                                               ; preds = %54
  %59 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %56, ptr noundef nonnull dereferenceable(1) @.str.125) #6
  %.not119 = icmp eq i32 %59, 0
  br i1 %.not119, label %128, label %60

60:                                               ; preds = %58
  %61 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %56, ptr noundef nonnull dereferenceable(1) @.str.126) #6
  %.not120 = icmp eq i32 %61, 0
  br i1 %.not120, label %174, label %62

62:                                               ; preds = %60
  %63 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %56, ptr noundef nonnull dereferenceable(1) @.str.127) #6
  %.not121 = icmp eq i32 %63, 0
  br i1 %.not121, label %174, label %64

64:                                               ; preds = %62
  %65 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %56, ptr noundef nonnull dereferenceable(1) @.str.128) #6
  %.not122 = icmp eq i32 %65, 0
  br i1 %.not122, label %174, label %66

66:                                               ; preds = %64
  %67 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %56, ptr noundef nonnull dereferenceable(1) @.str.129) #6
  %.not123 = icmp eq i32 %67, 0
  br i1 %.not123, label %174, label %68

68:                                               ; preds = %66
  %69 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %56, ptr noundef nonnull dereferenceable(1) @.str.130) #6
  %.not124 = icmp eq i32 %69, 0
  br i1 %.not124, label %174, label %70

70:                                               ; preds = %68
  call void @kgflags_set_custom_description(ptr noundef nonnull @.str.123)
  call void @kgflags_print_usage()
  br label %342

71:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  store ptr null, ptr %5, align 8, !tbaa !5
  call void @kgflags_string(ptr noundef nonnull @.str.131, ptr noundef null, ptr noundef nonnull @.str.132, i1 noundef zeroext true, ptr noundef nonnull %5)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  store ptr null, ptr %6, align 8, !tbaa !5
  call void @kgflags_string(ptr noundef nonnull @.str.133, ptr noundef nonnull @.str.49, ptr noundef nonnull @.str.134, i1 noundef zeroext false, ptr noundef nonnull %6)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  store ptr null, ptr %7, align 8, !tbaa !5
  call void @kgflags_string(ptr noundef nonnull @.str.135, ptr noundef null, ptr noundef nonnull @.str.136, i1 noundef zeroext true, ptr noundef nonnull %7)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  store ptr null, ptr %8, align 8, !tbaa !5
  call void @kgflags_string(ptr noundef nonnull @.str.137, ptr noundef null, ptr noundef nonnull @.str.138, i1 noundef zeroext false, ptr noundef nonnull %8)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  store ptr null, ptr %9, align 8, !tbaa !5
  call void @kgflags_string(ptr noundef nonnull @.str.139, ptr noundef null, ptr noundef nonnull @.str.140, i1 noundef zeroext true, ptr noundef nonnull %9)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  store ptr null, ptr %10, align 8, !tbaa !5
  call void @kgflags_string(ptr noundef nonnull @.str.141, ptr noundef nonnull @.str.44, ptr noundef nonnull @.str.142, i1 noundef zeroext false, ptr noundef nonnull %10)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #5
  store i32 8, ptr %11, align 4, !tbaa !11
  call void @kgflags_int(ptr noundef nonnull @.str.143, i32 noundef 32768, ptr noundef nonnull @.str.144, i1 noundef zeroext false, ptr noundef nonnull %11)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #5
  store i32 0, ptr %12, align 4, !tbaa !11
  call void @kgflags_int(ptr noundef nonnull @.str.145, i32 noundef 8388608, ptr noundef nonnull @.str.146, i1 noundef zeroext false, ptr noundef nonnull %12)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #5
  store i32 0, ptr %13, align 4, !tbaa !11
  call void @kgflags_int(ptr noundef nonnull @.str.147, i32 noundef 1024, ptr noundef nonnull @.str.148, i1 noundef zeroext false, ptr noundef nonnull %13)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #5
  store i32 8, ptr %14, align 4, !tbaa !11
  call void @kgflags_int(ptr noundef nonnull @.str.149, i32 noundef 0, ptr noundef nonnull @.str.150, i1 noundef zeroext false, ptr noundef nonnull %14)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %15) #5
  store i8 0, ptr %15, align 1, !tbaa !9
  call void @kgflags_bool(ptr noundef nonnull @.str.151, i1 noundef zeroext false, ptr noundef nonnull @.str.152, i1 noundef zeroext false, ptr noundef nonnull %15)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %16) #5
  store i8 0, ptr %16, align 1, !tbaa !9
  call void @kgflags_bool(ptr noundef nonnull @.str.153, i1 noundef zeroext false, ptr noundef nonnull @.str.154, i1 noundef zeroext false, ptr noundef nonnull %16)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %17) #5
  store i8 0, ptr %17, align 1, !tbaa !9
  call void @kgflags_bool(ptr noundef nonnull @.str.155, i1 noundef zeroext false, ptr noundef nonnull @.str.156, i1 noundef zeroext false, ptr noundef nonnull %17)
  %72 = call zeroext i1 @kgflags_parse(i32 noundef %0, ptr noundef nonnull %1)
  br i1 %72, label %74, label %73

73:                                               ; preds = %71
  call void @kgflags_print_errors()
  call void @kgflags_print_usage()
  br label %.thread143

74:                                               ; preds = %71
  %75 = load ptr, ptr %3, align 8, !tbaa !5
  %76 = call i32 @SetLogLevel(ptr noundef %75)
  %.not135 = icmp eq i32 %76, 0
  br i1 %.not135, label %77, label %.thread143

77:                                               ; preds = %74
  %78 = load i8, ptr %4, align 1, !tbaa !9, !range !13, !noundef !14
  %79 = trunc nuw i8 %78 to i1
  br i1 %79, label %80, label %81

80:                                               ; preds = %77
  call void (...) @Longtail_MemTracer_Init() #5
  call void @Longtail_SetReAllocAndFree(ptr noundef nonnull @Longtail_MemTracer_ReAlloc, ptr noundef nonnull @Longtail_MemTracer_Free) #5
  br label %81

81:                                               ; preds = %80, %77
  %82 = load ptr, ptr %10, align 8, !tbaa !5
  %83 = call i32 @ParseCompressionType(ptr noundef %82)
  %84 = icmp eq i32 %83, -1
  br i1 %84, label %85, label %88

85:                                               ; preds = %81
  %86 = load ptr, ptr %10, align 8, !tbaa !5
  %87 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.157, ptr noundef %86)
  br label %.thread143

88:                                               ; preds = %81
  %89 = load ptr, ptr %6, align 8, !tbaa !5
  %90 = call i32 @ParseHashingType(ptr noundef %89)
  %91 = icmp eq i32 %90, -1
  br i1 %91, label %92, label %95

92:                                               ; preds = %88
  %93 = load ptr, ptr %6, align 8, !tbaa !5
  %94 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.158, ptr noundef %93)
  br label %.thread143

95:                                               ; preds = %88
  %96 = load i8, ptr %17, align 1, !tbaa !9, !range !13, !noundef !14
  %97 = trunc nuw i8 %96 to i1
  br i1 %97, label %98, label %100

98:                                               ; preds = %95
  %99 = call ptr (...) @Longtail_CreateMiniFBFrameBufferAPI() #5
  store ptr %99, ptr @FrameBufferAPI, align 8, !tbaa !5
  br label %100

100:                                              ; preds = %98, %95
  %101 = load ptr, ptr %7, align 8, !tbaa !5
  %102 = call ptr @NormalizePath(ptr noundef %101)
  %103 = load ptr, ptr %8, align 8, !tbaa !5
  %.not136 = icmp eq ptr %103, null
  br i1 %.not136, label %106, label %104

104:                                              ; preds = %100
  %105 = call ptr @NormalizePath(ptr noundef nonnull %103)
  br label %106

106:                                              ; preds = %100, %104
  %107 = phi ptr [ %105, %104 ], [ null, %100 ]
  %108 = load ptr, ptr %9, align 8, !tbaa !5
  %109 = call ptr @NormalizePath(ptr noundef %108)
  %110 = load ptr, ptr %5, align 8, !tbaa !5
  %111 = load i32, ptr %11, align 4, !tbaa !11
  %112 = load i32, ptr %12, align 4, !tbaa !11
  %113 = load i32, ptr %13, align 4, !tbaa !11
  %114 = load i32, ptr %14, align 4, !tbaa !11
  %115 = load i8, ptr %15, align 1, !tbaa !9, !range !13, !noundef !14
  %116 = zext nneg i8 %115 to i32
  %117 = load i8, ptr %16, align 1, !tbaa !9, !range !13, !noundef !14
  %118 = zext nneg i8 %117 to i32
  %119 = load i8, ptr %17, align 1, !tbaa !9, !range !13, !noundef !14
  %120 = zext nneg i8 %119 to i32
  %121 = call ptr @UpSyncThreaded(ptr noundef %110, ptr noundef %102, ptr noundef %107, ptr noundef %109, i32 noundef %111, i32 noundef %112, i32 noundef %113, i32 noundef %114, i32 noundef %90, i32 noundef %83, i32 noundef %116, i32 noundef %118, i32 noundef %120)
  %122 = call i32 @TryEndAsyncThread(ptr noundef %121)
  %.not137178 = icmp eq i32 %122, 0
  br i1 %.not137178, label %._crit_edge181, label %.lr.ph180

.lr.ph180:                                        ; preds = %106, %.lr.ph180
  %123 = call i32 @UpdateProgressWindow()
  %124 = call i32 @TryEndAsyncThread(ptr noundef %121)
  %.not137 = icmp eq i32 %124, 0
  br i1 %.not137, label %._crit_edge181, label %.lr.ph180, !llvm.loop !15

._crit_edge181:                                   ; preds = %.lr.ph180, %106
  call void @DisposeMonitor()
  call void @Longtail_Free(ptr noundef %102) #5
  call void @Longtail_Free(ptr noundef %107) #5
  call void @Longtail_Free(ptr noundef %109) #5
  %125 = load ptr, ptr @FrameBufferAPI, align 8, !tbaa !5
  %.not138 = icmp eq ptr %125, null
  br i1 %.not138, label %127, label %126

126:                                              ; preds = %._crit_edge181
  call void @Longtail_DisposeAPI(ptr noundef nonnull %125) #5
  br label %127

.thread143:                                       ; preds = %73, %74, %85, %92
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  br label %342

127:                                              ; preds = %._crit_edge181, %126
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  br label %296

128:                                              ; preds = %58
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #5
  store ptr null, ptr %18, align 8, !tbaa !5
  call void @kgflags_string(ptr noundef nonnull @.str.131, ptr noundef null, ptr noundef nonnull @.str.132, i1 noundef zeroext true, ptr noundef nonnull %18)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #5
  store ptr null, ptr %19, align 8, !tbaa !5
  call void @kgflags_string(ptr noundef nonnull @.str.159, ptr noundef null, ptr noundef nonnull @.str.160, i1 noundef zeroext false, ptr noundef nonnull %19)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #5
  store ptr null, ptr %20, align 8, !tbaa !5
  call void @kgflags_string(ptr noundef nonnull @.str.139, ptr noundef null, ptr noundef nonnull @.str.161, i1 noundef zeroext true, ptr noundef nonnull %20)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #5
  store ptr null, ptr %21, align 8, !tbaa !5
  call void @kgflags_string(ptr noundef nonnull @.str.162, ptr noundef null, ptr noundef nonnull @.str.163, i1 noundef zeroext false, ptr noundef nonnull %21)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #5
  store ptr null, ptr %22, align 8, !tbaa !5
  call void @kgflags_string(ptr noundef nonnull @.str.135, ptr noundef null, ptr noundef nonnull @.str.164, i1 noundef zeroext true, ptr noundef nonnull %22)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %23) #5
  store i8 0, ptr %23, align 1, !tbaa !9
  call void @kgflags_bool(ptr noundef nonnull @.str.165, i1 noundef zeroext true, ptr noundef nonnull @.str.166, i1 noundef zeroext false, ptr noundef nonnull %23)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %24) #5
  store i8 0, ptr %24, align 1, !tbaa !9
  call void @kgflags_bool(ptr noundef nonnull @.str.151, i1 noundef zeroext false, ptr noundef nonnull @.str.152, i1 noundef zeroext false, ptr noundef nonnull %24)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %25) #5
  store i8 0, ptr %25, align 1, !tbaa !9
  call void @kgflags_bool(ptr noundef nonnull @.str.153, i1 noundef zeroext false, ptr noundef nonnull @.str.154, i1 noundef zeroext false, ptr noundef nonnull %25)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %26) #5
  store i8 0, ptr %26, align 1, !tbaa !9
  call void @kgflags_bool(ptr noundef nonnull @.str.155, i1 noundef zeroext false, ptr noundef nonnull @.str.156, i1 noundef zeroext false, ptr noundef nonnull %26)
  %129 = call zeroext i1 @kgflags_parse(i32 noundef %0, ptr noundef nonnull %1)
  br i1 %129, label %131, label %130

130:                                              ; preds = %128
  call void @kgflags_print_errors()
  call void @kgflags_print_usage()
  br label %173

131:                                              ; preds = %128
  %132 = load ptr, ptr %3, align 8, !tbaa !5
  %133 = call i32 @SetLogLevel(ptr noundef %132)
  %.not130 = icmp eq i32 %133, 0
  br i1 %.not130, label %134, label %173

134:                                              ; preds = %131
  %135 = load i8, ptr %4, align 1, !tbaa !9, !range !13, !noundef !14
  %136 = trunc nuw i8 %135 to i1
  br i1 %136, label %137, label %138

137:                                              ; preds = %134
  call void (...) @Longtail_MemTracer_Init() #5
  call void @Longtail_SetReAllocAndFree(ptr noundef nonnull @Longtail_MemTracer_ReAlloc, ptr noundef nonnull @Longtail_MemTracer_Free) #5
  br label %138

138:                                              ; preds = %137, %134
  %139 = load i8, ptr %26, align 1, !tbaa !9, !range !13, !noundef !14
  %140 = trunc nuw i8 %139 to i1
  br i1 %140, label %141, label %143

141:                                              ; preds = %138
  %142 = call ptr (...) @Longtail_CreateMiniFBFrameBufferAPI() #5
  store ptr %142, ptr @FrameBufferAPI, align 8, !tbaa !5
  br label %143

143:                                              ; preds = %141, %138
  %144 = load ptr, ptr %19, align 8, !tbaa !5
  %.not131 = icmp eq ptr %144, null
  br i1 %.not131, label %147, label %145

145:                                              ; preds = %143
  %146 = call ptr @NormalizePath(ptr noundef nonnull %144)
  br label %147

147:                                              ; preds = %143, %145
  %148 = phi ptr [ %146, %145 ], [ null, %143 ]
  %149 = load ptr, ptr %20, align 8, !tbaa !5
  %150 = call ptr @NormalizePath(ptr noundef %149)
  %151 = load ptr, ptr %21, align 8, !tbaa !5
  %.not132 = icmp eq ptr %151, null
  br i1 %.not132, label %154, label %152

152:                                              ; preds = %147
  %153 = call ptr @NormalizePath(ptr noundef nonnull %151)
  br label %154

154:                                              ; preds = %147, %152
  %155 = phi ptr [ %153, %152 ], [ null, %147 ]
  %156 = load ptr, ptr %22, align 8, !tbaa !5
  %157 = call ptr @NormalizePath(ptr noundef %156)
  %158 = load ptr, ptr %18, align 8, !tbaa !5
  %159 = load i8, ptr %23, align 1, !tbaa !9, !range !13, !noundef !14
  %160 = zext nneg i8 %159 to i32
  %161 = load i8, ptr %24, align 1, !tbaa !9, !range !13, !noundef !14
  %162 = zext nneg i8 %161 to i32
  %163 = load i8, ptr %25, align 1, !tbaa !9, !range !13, !noundef !14
  %164 = zext nneg i8 %163 to i32
  %165 = load i8, ptr %26, align 1, !tbaa !9, !range !13, !noundef !14
  %166 = zext nneg i8 %165 to i32
  %167 = call ptr @DownSyncThreaded(ptr noundef %158, ptr noundef %148, ptr noundef %157, ptr noundef %150, ptr noundef %155, i32 noundef %160, i32 noundef %162, i32 noundef %164, i32 noundef %166)
  %168 = call i32 @TryEndAsyncThread(ptr noundef %167)
  %.not133174 = icmp eq i32 %168, 0
  br i1 %.not133174, label %._crit_edge177, label %.lr.ph176

.lr.ph176:                                        ; preds = %154, %.lr.ph176
  %169 = call i32 @UpdateProgressWindow()
  %170 = call i32 @TryEndAsyncThread(ptr noundef %167)
  %.not133 = icmp eq i32 %170, 0
  br i1 %.not133, label %._crit_edge177, label %.lr.ph176, !llvm.loop !17

._crit_edge177:                                   ; preds = %.lr.ph176, %154
  call void @DisposeMonitor()
  call void @Longtail_Free(ptr noundef %157) #5
  call void @Longtail_Free(ptr noundef %155) #5
  call void @Longtail_Free(ptr noundef %150) #5
  call void @Longtail_Free(ptr noundef %148) #5
  %171 = load ptr, ptr @FrameBufferAPI, align 8, !tbaa !5
  %.not134 = icmp eq ptr %171, null
  br i1 %.not134, label %.thread147, label %172

172:                                              ; preds = %._crit_edge177
  call void @Longtail_DisposeAPI(ptr noundef nonnull %171) #5
  br label %.thread147

.thread147:                                       ; preds = %172, %._crit_edge177
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %26) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %25) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %24) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #5
  br label %296

173:                                              ; preds = %131, %130
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %26) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %25) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %24) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #5
  br label %342

174:                                              ; preds = %68, %66, %64, %62, %60
  %175 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %56, ptr noundef nonnull dereferenceable(1) @.str.126) #6
  %176 = icmp eq i32 %175, 0
  br i1 %176, label %177, label %194

177:                                              ; preds = %174
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %27) #5
  store ptr null, ptr %27, align 8, !tbaa !5
  call void @kgflags_string(ptr noundef nonnull @.str.131, ptr noundef null, ptr noundef nonnull @.str.132, i1 noundef zeroext true, ptr noundef nonnull %27)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %28) #5
  store ptr null, ptr %28, align 8, !tbaa !5
  call void @kgflags_string(ptr noundef nonnull @.str.167, ptr noundef null, ptr noundef nonnull @.str.168, i1 noundef zeroext true, ptr noundef nonnull %28)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %29) #5
  store i8 0, ptr %29, align 1, !tbaa !9
  call void @kgflags_bool(ptr noundef nonnull @.str.153, i1 noundef zeroext false, ptr noundef nonnull @.str.154, i1 noundef zeroext false, ptr noundef nonnull %29)
  %178 = call zeroext i1 @kgflags_parse(i32 noundef %0, ptr noundef nonnull %1)
  br i1 %178, label %180, label %179

179:                                              ; preds = %177
  call void @kgflags_print_errors()
  call void @kgflags_print_usage()
  br label %.thread151

180:                                              ; preds = %177
  %181 = load ptr, ptr %3, align 8, !tbaa !5
  %182 = call i32 @SetLogLevel(ptr noundef %181)
  %.not129 = icmp eq i32 %182, 0
  br i1 %.not129, label %183, label %.thread151

183:                                              ; preds = %180
  %184 = load i8, ptr %4, align 1, !tbaa !9, !range !13, !noundef !14
  %185 = trunc nuw i8 %184 to i1
  br i1 %185, label %186, label %187

186:                                              ; preds = %183
  call void (...) @Longtail_MemTracer_Init() #5
  call void @Longtail_SetReAllocAndFree(ptr noundef nonnull @Longtail_MemTracer_ReAlloc, ptr noundef nonnull @Longtail_MemTracer_Free) #5
  br label %187

.thread151:                                       ; preds = %179, %180
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %29) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %28) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %27) #5
  br label %342

187:                                              ; preds = %183, %186
  %188 = load ptr, ptr %28, align 8, !tbaa !5
  %189 = call ptr @NormalizePath(ptr noundef %188)
  %190 = load ptr, ptr %27, align 8, !tbaa !5
  %191 = load i8, ptr %29, align 1, !tbaa !9, !range !13, !noundef !14
  %192 = zext nneg i8 %191 to i32
  %193 = call i32 @ValidateVersionIndex(ptr noundef %190, ptr noundef %189, i32 noundef %192)
  call void @Longtail_Free(ptr noundef %189) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %29) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %28) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %27) #5
  br label %296

194:                                              ; preds = %174
  %195 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %56, ptr noundef nonnull dereferenceable(1) @.str.127) #6
  %196 = icmp eq i32 %195, 0
  br i1 %196, label %197, label %215

197:                                              ; preds = %194
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %30) #5
  store ptr null, ptr %30, align 8, !tbaa !5
  call void @kgflags_string(ptr noundef nonnull @.str.167, ptr noundef null, ptr noundef nonnull @.str.169, i1 noundef zeroext true, ptr noundef nonnull %30)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %31) #5
  store i8 0, ptr %31, align 1, !tbaa !9
  call void @kgflags_bool(ptr noundef nonnull @.str.153, i1 noundef zeroext false, ptr noundef nonnull @.str.154, i1 noundef zeroext false, ptr noundef nonnull %31)
  %198 = call zeroext i1 @kgflags_parse(i32 noundef %0, ptr noundef nonnull %1)
  br i1 %198, label %199, label %.thread156

199:                                              ; preds = %197
  %200 = load i8, ptr %4, align 1, !tbaa !9, !range !13, !noundef !14
  %201 = trunc nuw i8 %200 to i1
  br i1 %201, label %202, label %203

202:                                              ; preds = %199
  call void (...) @Longtail_MemTracer_Init() #5
  call void @Longtail_SetReAllocAndFree(ptr noundef nonnull @Longtail_MemTracer_ReAlloc, ptr noundef nonnull @Longtail_MemTracer_Free) #5
  br label %203

203:                                              ; preds = %202, %199
  %204 = call i32 @kgflags_get_non_flag_args_count()
  %205 = icmp slt i32 %204, 2
  br i1 %205, label %206, label %207

206:                                              ; preds = %203
  call void @kgflags_set_custom_description(ptr noundef nonnull @.str.170)
  br label %.thread156

.thread156:                                       ; preds = %197, %206
  call void @kgflags_print_errors()
  call void @kgflags_print_usage()
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %31) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %30) #5
  br label %342

207:                                              ; preds = %203
  %208 = call ptr @kgflags_get_non_flag_arg(i32 noundef 1)
  %209 = load ptr, ptr %30, align 8, !tbaa !5
  %210 = call ptr @NormalizePath(ptr noundef %209)
  %211 = call ptr @NormalizePath(ptr noundef %208)
  %212 = load i8, ptr %31, align 1, !tbaa !9, !range !13, !noundef !14
  %213 = zext nneg i8 %212 to i32
  %214 = call i32 @VersionIndex_ls(ptr noundef %210, ptr noundef %211, i32 noundef %213)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %31) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %30) #5
  br label %296

215:                                              ; preds = %194
  %216 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %56, ptr noundef nonnull dereferenceable(1) @.str.128) #6
  %217 = icmp eq i32 %216, 0
  br i1 %217, label %218, label %244

218:                                              ; preds = %215
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %32) #5
  store ptr null, ptr %32, align 8, !tbaa !5
  call void @kgflags_string(ptr noundef nonnull @.str.131, ptr noundef null, ptr noundef nonnull @.str.132, i1 noundef zeroext true, ptr noundef nonnull %32)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %33) #5
  store ptr null, ptr %33, align 8, !tbaa !5
  call void @kgflags_string(ptr noundef nonnull @.str.159, ptr noundef null, ptr noundef nonnull @.str.160, i1 noundef zeroext false, ptr noundef nonnull %33)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %34) #5
  store ptr null, ptr %34, align 8, !tbaa !5
  call void @kgflags_string(ptr noundef nonnull @.str.167, ptr noundef null, ptr noundef nonnull @.str.169, i1 noundef zeroext true, ptr noundef nonnull %34)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %35) #5
  store i8 0, ptr %35, align 1, !tbaa !9
  call void @kgflags_bool(ptr noundef nonnull @.str.153, i1 noundef zeroext false, ptr noundef nonnull @.str.154, i1 noundef zeroext false, ptr noundef nonnull %35)
  %219 = call zeroext i1 @kgflags_parse(i32 noundef %0, ptr noundef nonnull %1)
  br i1 %219, label %220, label %.thread161

220:                                              ; preds = %218
  %221 = call i32 @kgflags_get_non_flag_args_count()
  %222 = icmp slt i32 %221, 3
  br i1 %222, label %223, label %224

223:                                              ; preds = %220
  call void @kgflags_set_custom_description(ptr noundef nonnull @.str.171)
  br label %.thread161

224:                                              ; preds = %220
  %225 = load i8, ptr %4, align 1, !tbaa !9, !range !13, !noundef !14
  %226 = trunc nuw i8 %225 to i1
  br i1 %226, label %227, label %228

227:                                              ; preds = %224
  call void (...) @Longtail_MemTracer_Init() #5
  call void @Longtail_SetReAllocAndFree(ptr noundef nonnull @Longtail_MemTracer_ReAlloc, ptr noundef nonnull @Longtail_MemTracer_Free) #5
  br label %228

228:                                              ; preds = %227, %224
  %229 = call ptr @kgflags_get_non_flag_arg(i32 noundef 1)
  %230 = call ptr @kgflags_get_non_flag_arg(i32 noundef 2)
  %231 = load ptr, ptr %33, align 8, !tbaa !5
  %.not128 = icmp eq ptr %231, null
  br i1 %.not128, label %234, label %232

232:                                              ; preds = %228
  %233 = call ptr @NormalizePath(ptr noundef nonnull %231)
  br label %234

.thread161:                                       ; preds = %218, %223
  call void @kgflags_print_errors()
  call void @kgflags_print_usage()
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %35) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %34) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %33) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %32) #5
  br label %342

234:                                              ; preds = %232, %228
  %235 = phi ptr [ %233, %232 ], [ null, %228 ]
  %236 = load ptr, ptr %34, align 8, !tbaa !5
  %237 = call ptr @NormalizePath(ptr noundef %236)
  %238 = call ptr @NormalizePath(ptr noundef %229)
  %239 = call ptr @NormalizePath(ptr noundef %230)
  %240 = load ptr, ptr %32, align 8, !tbaa !5
  %241 = load i8, ptr %35, align 1, !tbaa !9, !range !13, !noundef !14
  %242 = zext nneg i8 %241 to i32
  %243 = call i32 @VersionIndex_cp(ptr noundef %240, ptr noundef %237, ptr noundef %235, ptr noundef %238, ptr noundef %239, i32 noundef %242)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %35) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %34) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %33) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %32) #5
  br label %296

244:                                              ; preds = %215
  %245 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %56, ptr noundef nonnull dereferenceable(1) @.str.129) #6
  %246 = icmp eq i32 %245, 0
  br i1 %246, label %247, label %296

247:                                              ; preds = %244
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %36) #5
  store ptr null, ptr %36, align 8, !tbaa !5
  call void @kgflags_string(ptr noundef nonnull @.str.133, ptr noundef nonnull @.str.49, ptr noundef nonnull @.str.134, i1 noundef zeroext false, ptr noundef nonnull %36)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %37) #5
  store ptr null, ptr %37, align 8, !tbaa !5
  call void @kgflags_string(ptr noundef nonnull @.str.135, ptr noundef null, ptr noundef nonnull @.str.136, i1 noundef zeroext true, ptr noundef nonnull %37)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %38) #5
  store ptr null, ptr %38, align 8, !tbaa !5
  call void @kgflags_string(ptr noundef nonnull @.str.139, ptr noundef null, ptr noundef nonnull @.str.140, i1 noundef zeroext true, ptr noundef nonnull %38)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %39) #5
  store ptr null, ptr %39, align 8, !tbaa !5
  call void @kgflags_string(ptr noundef nonnull @.str.141, ptr noundef nonnull @.str.44, ptr noundef nonnull @.str.142, i1 noundef zeroext false, ptr noundef nonnull %39)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %40) #5
  store i32 8, ptr %40, align 4, !tbaa !11
  call void @kgflags_int(ptr noundef nonnull @.str.143, i32 noundef 32768, ptr noundef nonnull @.str.144, i1 noundef zeroext false, ptr noundef nonnull %40)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %41) #5
  store i32 0, ptr %41, align 4, !tbaa !11
  call void @kgflags_int(ptr noundef nonnull @.str.145, i32 noundef 8388608, ptr noundef nonnull @.str.146, i1 noundef zeroext false, ptr noundef nonnull %41)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %42) #5
  store i32 0, ptr %42, align 4, !tbaa !11
  call void @kgflags_int(ptr noundef nonnull @.str.147, i32 noundef 1024, ptr noundef nonnull @.str.148, i1 noundef zeroext false, ptr noundef nonnull %42)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %43) #5
  store i32 8, ptr %43, align 4, !tbaa !11
  call void @kgflags_int(ptr noundef nonnull @.str.149, i32 noundef 0, ptr noundef nonnull @.str.150, i1 noundef zeroext false, ptr noundef nonnull %43)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %44) #5
  store i8 0, ptr %44, align 1, !tbaa !9
  call void @kgflags_bool(ptr noundef nonnull @.str.151, i1 noundef zeroext false, ptr noundef nonnull @.str.152, i1 noundef zeroext false, ptr noundef nonnull %44)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %45) #5
  store i8 0, ptr %45, align 1, !tbaa !9
  call void @kgflags_bool(ptr noundef nonnull @.str.155, i1 noundef zeroext false, ptr noundef nonnull @.str.156, i1 noundef zeroext false, ptr noundef nonnull %45)
  %248 = call zeroext i1 @kgflags_parse(i32 noundef %0, ptr noundef nonnull %1)
  br i1 %248, label %250, label %249

249:                                              ; preds = %247
  call void @kgflags_print_errors()
  call void @kgflags_print_usage()
  br label %.thread166

250:                                              ; preds = %247
  %251 = load ptr, ptr %3, align 8, !tbaa !5
  %252 = call i32 @SetLogLevel(ptr noundef %251)
  %.not125 = icmp eq i32 %252, 0
  br i1 %.not125, label %253, label %.thread166

253:                                              ; preds = %250
  %254 = load i8, ptr %4, align 1, !tbaa !9, !range !13, !noundef !14
  %255 = trunc nuw i8 %254 to i1
  br i1 %255, label %256, label %257

256:                                              ; preds = %253
  call void (...) @Longtail_MemTracer_Init() #5
  call void @Longtail_SetReAllocAndFree(ptr noundef nonnull @Longtail_MemTracer_ReAlloc, ptr noundef nonnull @Longtail_MemTracer_Free) #5
  br label %257

257:                                              ; preds = %256, %253
  %258 = load ptr, ptr %39, align 8, !tbaa !5
  %259 = call i32 @ParseCompressionType(ptr noundef %258)
  %260 = icmp eq i32 %259, -1
  br i1 %260, label %261, label %264

261:                                              ; preds = %257
  %262 = load ptr, ptr %39, align 8, !tbaa !5
  %263 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.157, ptr noundef %262)
  br label %.thread166

264:                                              ; preds = %257
  %265 = load ptr, ptr %36, align 8, !tbaa !5
  %266 = call i32 @ParseHashingType(ptr noundef %265)
  %267 = icmp eq i32 %266, -1
  br i1 %267, label %268, label %271

268:                                              ; preds = %264
  %269 = load ptr, ptr %36, align 8, !tbaa !5
  %270 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.158, ptr noundef %269)
  br label %.thread166

271:                                              ; preds = %264
  %272 = load i8, ptr %45, align 1, !tbaa !9, !range !13, !noundef !14
  %273 = trunc nuw i8 %272 to i1
  br i1 %273, label %274, label %276

274:                                              ; preds = %271
  %275 = call ptr (...) @Longtail_CreateMiniFBFrameBufferAPI() #5
  store ptr %275, ptr @FrameBufferAPI, align 8, !tbaa !5
  br label %276

276:                                              ; preds = %274, %271
  %277 = load ptr, ptr %37, align 8, !tbaa !5
  %278 = call ptr @NormalizePath(ptr noundef %277)
  %279 = load ptr, ptr %38, align 8, !tbaa !5
  %280 = call ptr @NormalizePath(ptr noundef %279)
  %281 = load i32, ptr %40, align 4, !tbaa !11
  %282 = load i32, ptr %41, align 4, !tbaa !11
  %283 = load i32, ptr %42, align 4, !tbaa !11
  %284 = load i32, ptr %43, align 4, !tbaa !11
  %285 = load i8, ptr %44, align 1, !tbaa !9, !range !13, !noundef !14
  %286 = zext nneg i8 %285 to i32
  %287 = load i8, ptr %45, align 1, !tbaa !9, !range !13, !noundef !14
  %288 = zext nneg i8 %287 to i32
  %289 = call ptr @PackThreaded(ptr noundef %278, ptr noundef %280, i32 noundef %281, i32 noundef %282, i32 noundef %283, i32 noundef %284, i32 noundef %266, i32 noundef %259, i32 noundef %286, i32 noundef %288)
  %290 = call i32 @TryEndAsyncThread(ptr noundef %289)
  %.not126173 = icmp eq i32 %290, 0
  br i1 %.not126173, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %276, %.lr.ph
  %291 = call i32 @UpdateProgressWindow()
  %292 = call i32 @TryEndAsyncThread(ptr noundef %289)
  %.not126 = icmp eq i32 %292, 0
  br i1 %.not126, label %._crit_edge, label %.lr.ph, !llvm.loop !18

._crit_edge:                                      ; preds = %.lr.ph, %276
  call void @DisposeMonitor()
  call void @Longtail_Free(ptr noundef %278) #5
  call void @Longtail_Free(ptr noundef %280) #5
  %293 = load ptr, ptr @FrameBufferAPI, align 8, !tbaa !5
  %.not127 = icmp eq ptr %293, null
  br i1 %.not127, label %295, label %294

294:                                              ; preds = %._crit_edge
  call void @Longtail_DisposeAPI(ptr noundef nonnull %293) #5
  br label %295

.thread166:                                       ; preds = %249, %250, %261, %268
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %45) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %44) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %43) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %42) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %41) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %40) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %39) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %38) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %37) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %36) #5
  br label %342

295:                                              ; preds = %._crit_edge, %294
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %45) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %44) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %43) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %42) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %41) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %40) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %39) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %38) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %37) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %36) #5
  br label %296

296:                                              ; preds = %295, %234, %207, %187, %.thread147, %127, %244
  %.3105 = phi i32 [ 0, %127 ], [ %193, %187 ], [ %214, %207 ], [ %243, %234 ], [ 0, %295 ], [ 0, %244 ], [ 0, %.thread147 ]
  %297 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %56, ptr noundef nonnull dereferenceable(1) @.str.130) #6
  %298 = icmp eq i32 %297, 0
  br i1 %298, label %299, label %334

299:                                              ; preds = %296
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %46) #5
  store ptr null, ptr %46, align 8, !tbaa !5
  call void @kgflags_string(ptr noundef nonnull @.str.135, ptr noundef null, ptr noundef nonnull @.str.136, i1 noundef zeroext true, ptr noundef nonnull %46)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %47) #5
  store ptr null, ptr %47, align 8, !tbaa !5
  call void @kgflags_string(ptr noundef nonnull @.str.139, ptr noundef null, ptr noundef nonnull @.str.140, i1 noundef zeroext true, ptr noundef nonnull %47)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %48) #5
  store i8 0, ptr %48, align 1, !tbaa !9
  call void @kgflags_bool(ptr noundef nonnull @.str.165, i1 noundef zeroext true, ptr noundef nonnull @.str.166, i1 noundef zeroext false, ptr noundef nonnull %48)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %49) #5
  store i8 0, ptr %49, align 1, !tbaa !9
  call void @kgflags_bool(ptr noundef nonnull @.str.151, i1 noundef zeroext false, ptr noundef nonnull @.str.152, i1 noundef zeroext false, ptr noundef nonnull %49)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %50) #5
  store i8 0, ptr %50, align 1, !tbaa !9
  call void @kgflags_bool(ptr noundef nonnull @.str.172, i1 noundef zeroext false, ptr noundef nonnull @.str.173, i1 noundef zeroext false, ptr noundef nonnull %50)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %51) #5
  store i8 0, ptr %51, align 1, !tbaa !9
  call void @kgflags_bool(ptr noundef nonnull @.str.155, i1 noundef zeroext false, ptr noundef nonnull @.str.156, i1 noundef zeroext false, ptr noundef nonnull %51)
  %300 = call zeroext i1 @kgflags_parse(i32 noundef %0, ptr noundef %1)
  br i1 %300, label %302, label %301

301:                                              ; preds = %299
  call void @kgflags_print_errors()
  call void @kgflags_print_usage()
  br label %333

302:                                              ; preds = %299
  %303 = load ptr, ptr %3, align 8, !tbaa !5
  %304 = call i32 @SetLogLevel(ptr noundef %303)
  %.not139 = icmp eq i32 %304, 0
  br i1 %.not139, label %305, label %333

305:                                              ; preds = %302
  %306 = load i8, ptr %4, align 1, !tbaa !9, !range !13, !noundef !14
  %307 = trunc nuw i8 %306 to i1
  br i1 %307, label %308, label %309

308:                                              ; preds = %305
  call void (...) @Longtail_MemTracer_Init() #5
  call void @Longtail_SetReAllocAndFree(ptr noundef nonnull @Longtail_MemTracer_ReAlloc, ptr noundef nonnull @Longtail_MemTracer_Free) #5
  br label %309

309:                                              ; preds = %308, %305
  %310 = load i8, ptr %51, align 1, !tbaa !9, !range !13, !noundef !14
  %311 = trunc nuw i8 %310 to i1
  br i1 %311, label %312, label %314

312:                                              ; preds = %309
  %313 = call ptr (...) @Longtail_CreateMiniFBFrameBufferAPI() #5
  store ptr %313, ptr @FrameBufferAPI, align 8, !tbaa !5
  br label %314

314:                                              ; preds = %312, %309
  %315 = load ptr, ptr %46, align 8, !tbaa !5
  %316 = call ptr @NormalizePath(ptr noundef %315)
  %317 = load ptr, ptr %47, align 8, !tbaa !5
  %318 = call ptr @NormalizePath(ptr noundef %317)
  %319 = load i8, ptr %48, align 1, !tbaa !9, !range !13, !noundef !14
  %320 = zext nneg i8 %319 to i32
  %321 = load i8, ptr %49, align 1, !tbaa !9, !range !13, !noundef !14
  %322 = zext nneg i8 %321 to i32
  %323 = load i8, ptr %50, align 1, !tbaa !9, !range !13, !noundef !14
  %324 = zext nneg i8 %323 to i32
  %325 = load i8, ptr %51, align 1, !tbaa !9, !range !13, !noundef !14
  %326 = zext nneg i8 %325 to i32
  %327 = call ptr @UnpackThreaded(ptr noundef %316, ptr noundef %318, i32 noundef %320, i32 noundef %322, i32 noundef %324, i32 noundef %326)
  %328 = call i32 @TryEndAsyncThread(ptr noundef %327)
  %.not140182 = icmp eq i32 %328, 0
  br i1 %.not140182, label %._crit_edge185, label %.lr.ph184

.lr.ph184:                                        ; preds = %314, %.lr.ph184
  %329 = call i32 @UpdateProgressWindow()
  %330 = call i32 @TryEndAsyncThread(ptr noundef %327)
  %.not140 = icmp eq i32 %330, 0
  br i1 %.not140, label %._crit_edge185, label %.lr.ph184, !llvm.loop !19

._crit_edge185:                                   ; preds = %.lr.ph184, %314
  call void @DisposeMonitor()
  call void @Longtail_Free(ptr noundef %316) #5
  call void @Longtail_Free(ptr noundef %318) #5
  %331 = load ptr, ptr @FrameBufferAPI, align 8, !tbaa !5
  %.not141 = icmp eq ptr %331, null
  br i1 %.not141, label %.thread170, label %332

332:                                              ; preds = %._crit_edge185
  call void @Longtail_DisposeAPI(ptr noundef nonnull %331) #5
  br label %.thread170

.thread170:                                       ; preds = %332, %._crit_edge185
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %51) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %50) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %49) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %48) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %47) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %46) #5
  br label %334

333:                                              ; preds = %302, %301
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %51) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %50) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %49) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %48) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %47) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %46) #5
  br label %342

334:                                              ; preds = %.thread170, %296
  %335 = load i8, ptr %4, align 1, !tbaa !9, !range !13, !noundef !14
  %336 = trunc nuw i8 %335 to i1
  br i1 %336, label %337, label %342

337:                                              ; preds = %334
  %338 = call i32 @Longtail_MemTracer_DumpStats(ptr noundef nonnull @.str.174) #5
  %339 = call i32 (...) @Longtail_GetMemTracerSummary() #5
  %340 = call ptr @Longtail_MemTracer_GetStats(i32 noundef %339) #5
  %341 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.53, ptr noundef %340)
  call void @Longtail_Free(ptr noundef %340) #5
  call void (...) @Longtail_MemTracer_Dispose() #5
  br label %342

342:                                              ; preds = %333, %.thread166, %.thread161, %.thread156, %.thread151, %173, %.thread143, %70, %334, %337, %53
  %.14 = phi i32 [ 1, %53 ], [ 1, %70 ], [ 1, %333 ], [ 1, %173 ], [ %.3105, %337 ], [ %.3105, %334 ], [ 1, %.thread143 ], [ 1, %.thread151 ], [ 1, %.thread156 ], [ 1, %.thread161 ], [ 1, %.thread166 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  ret i32 %.14
}

declare void @Longtail_SetAssert(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare hidden void @AssertFailure(ptr noundef, ptr noundef, i32 noundef) #0

declare void @Longtail_SetLog(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare hidden void @LogStdErr(ptr noundef, ptr noundef) #0

declare void @Longtail_MemTracer_Init(...) local_unnamed_addr #2

declare void @Longtail_SetReAllocAndFree(ptr noundef, ptr noundef) local_unnamed_addr #2

declare ptr @Longtail_MemTracer_ReAlloc(ptr noundef, ptr noundef, i64 noundef) #2

declare void @Longtail_MemTracer_Free(ptr noundef) #2

declare ptr @Longtail_CreateMiniFBFrameBufferAPI(...) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare hidden ptr @UpSyncThreaded(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden i32 @TryEndAsyncThread(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden ptr @DownSyncThreaded(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden ptr @PackThreaded(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden ptr @UnpackThreaded(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

declare i32 @Longtail_MemTracer_DumpStats(ptr noundef) local_unnamed_addr #2

declare ptr @Longtail_MemTracer_GetStats(i32 noundef) local_unnamed_addr #2

declare i32 @Longtail_GetMemTracerSummary(...) local_unnamed_addr #2

declare void @Longtail_MemTracer_Dispose(...) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare hidden i32 @UpdateProgressWindow() local_unnamed_addr #0

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nofree nounwind willreturn memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }
attributes #6 = { nounwind willreturn memory(read) }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"_Bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}
!19 = distinct !{!19, !16}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass