; LLVM IR from jingweizhanghuai/Morn :: src/util (morn_CRC)

; 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.MHandle = type { i32, i32, ptr, ptr }
%struct.HandleCRC = type { i32, i32, i32, i32, i32, i32, i32, ptr, [256 x i32] }

@.str = external hidden unnamed_addr constant [4 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [8 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @endCRC(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @CRCTable(ptr noundef) #1

declare ptr @GetHandle(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #2

declare ptr @mMornObject(ptr noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
define dso_local void @CRCType(ptr noundef %0) #1 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  %7 = call ptr @mMornObject(ptr noundef @.str, i32 noundef -1)
  %8 = call ptr @GetHandle(ptr noundef %7, i32 noundef 1064, i32 noundef -782128077, ptr noundef @endCRC)
  store ptr %8, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  %9 = load ptr, ptr %3, align 8, !tbaa !5
  %10 = getelementptr inbounds %struct.MHandle, ptr %9, i32 0, i32 3
  %11 = load ptr, ptr %10, align 8, !tbaa !9
  store ptr %11, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  %12 = load ptr, ptr %2, align 8, !tbaa !5
  %13 = call i32 @strcmp(ptr noundef %12, ptr noundef @.str.5) #5
  %14 = icmp eq i32 %13, 0
  br i1 %14, label %15, label %24

15:                                               ; preds = %1
  store i32 79764919, ptr %5, align 4, !tbaa !12
  %16 = load ptr, ptr %4, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.HandleCRC, ptr %16, i32 0, i32 0
  store i32 32, ptr %17, align 8, !tbaa !13
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.HandleCRC, ptr %18, i32 0, i32 3
  store i32 -1, ptr %19, align 4, !tbaa !15
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.HandleCRC, ptr %20, i32 0, i32 4
  store i32 -1, ptr %21, align 8, !tbaa !16
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.HandleCRC, ptr %22, i32 0, i32 5
  store i32 1234, ptr %23, align 4, !tbaa !17
  br label %221

24:                                               ; preds = %1
  %25 = load ptr, ptr %2, align 8, !tbaa !5
  %26 = call i32 @strcmp(ptr noundef %25, ptr noundef @.str.6) #5
  %27 = icmp eq i32 %26, 0
  br i1 %27, label %28, label %37

28:                                               ; preds = %24
  store i32 79764919, ptr %5, align 4, !tbaa !12
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.HandleCRC, ptr %29, i32 0, i32 0
  store i32 32, ptr %30, align 8, !tbaa !13
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.HandleCRC, ptr %31, i32 0, i32 3
  store i32 -1, ptr %32, align 4, !tbaa !15
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.HandleCRC, ptr %33, i32 0, i32 4
  store i32 0, ptr %34, align 8, !tbaa !16
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.HandleCRC, ptr %35, i32 0, i32 5
  store i32 4321, ptr %36, align 4, !tbaa !17
  br label %220

37:                                               ; preds = %24
  %38 = load ptr, ptr %2, align 8, !tbaa !5
  %39 = call i32 @strcmp(ptr noundef %38, ptr noundef @.str.7) #5
  %40 = icmp eq i32 %39, 0
  br i1 %40, label %41, label %50

41:                                               ; preds = %37
  store i32 4129, ptr %5, align 4, !tbaa !12
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.HandleCRC, ptr %42, i32 0, i32 0
  store i32 16, ptr %43, align 8, !tbaa !13
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.HandleCRC, ptr %44, i32 0, i32 3
  store i32 65535, ptr %45, align 4, !tbaa !15
  %46 = load ptr, ptr %4, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.HandleCRC, ptr %46, i32 0, i32 4
  store i32 65535, ptr %47, align 8, !tbaa !16
  %48 = load ptr, ptr %4, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.HandleCRC, ptr %48, i32 0, i32 5
  store i32 1234, ptr %49, align 4, !tbaa !17
  br label %219

50:                                               ; preds = %37
  %51 = load ptr, ptr %2, align 8, !tbaa !5
  %52 = call i32 @strcmp(ptr noundef %51, ptr noundef @.str.8) #5
  %53 = icmp eq i32 %52, 0
  br i1 %53, label %54, label %63

54:                                               ; preds = %50
  store i32 4129, ptr %5, align 4, !tbaa !12
  %55 = load ptr, ptr %4, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.HandleCRC, ptr %55, i32 0, i32 0
  store i32 16, ptr %56, align 8, !tbaa !13
  %57 = load ptr, ptr %4, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.HandleCRC, ptr %57, i32 0, i32 3
  store i32 0, ptr %58, align 4, !tbaa !15
  %59 = load ptr, ptr %4, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.HandleCRC, ptr %59, i32 0, i32 4
  store i32 0, ptr %60, align 8, !tbaa !16
  %61 = load ptr, ptr %4, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.HandleCRC, ptr %61, i32 0, i32 5
  store i32 1234, ptr %62, align 4, !tbaa !17
  br label %218

63:                                               ; preds = %50
  %64 = load ptr, ptr %2, align 8, !tbaa !5
  %65 = call i32 @strcmp(ptr noundef %64, ptr noundef @.str.9) #5
  %66 = icmp eq i32 %65, 0
  br i1 %66, label %67, label %76

67:                                               ; preds = %63
  store i32 4129, ptr %5, align 4, !tbaa !12
  %68 = load ptr, ptr %4, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.HandleCRC, ptr %68, i32 0, i32 0
  store i32 16, ptr %69, align 8, !tbaa !13
  %70 = load ptr, ptr %4, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.HandleCRC, ptr %70, i32 0, i32 3
  store i32 65535, ptr %71, align 4, !tbaa !15
  %72 = load ptr, ptr %4, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.HandleCRC, ptr %72, i32 0, i32 4
  store i32 0, ptr %73, align 8, !tbaa !16
  %74 = load ptr, ptr %4, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.HandleCRC, ptr %74, i32 0, i32 5
  store i32 4321, ptr %75, align 4, !tbaa !17
  br label %217

76:                                               ; preds = %63
  %77 = load ptr, ptr %2, align 8, !tbaa !5
  %78 = call i32 @strcmp(ptr noundef %77, ptr noundef @.str.10) #5
  %79 = icmp eq i32 %78, 0
  br i1 %79, label %80, label %89

80:                                               ; preds = %76
  store i32 4129, ptr %5, align 4, !tbaa !12
  %81 = load ptr, ptr %4, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.HandleCRC, ptr %81, i32 0, i32 0
  store i32 16, ptr %82, align 8, !tbaa !13
  %83 = load ptr, ptr %4, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.HandleCRC, ptr %83, i32 0, i32 3
  store i32 0, ptr %84, align 4, !tbaa !15
  %85 = load ptr, ptr %4, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.HandleCRC, ptr %85, i32 0, i32 4
  store i32 0, ptr %86, align 8, !tbaa !16
  %87 = load ptr, ptr %4, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.HandleCRC, ptr %87, i32 0, i32 5
  store i32 4321, ptr %88, align 4, !tbaa !17
  br label %216

89:                                               ; preds = %76
  %90 = load ptr, ptr %2, align 8, !tbaa !5
  %91 = call i32 @strcmp(ptr noundef %90, ptr noundef @.str.11) #5
  %92 = icmp eq i32 %91, 0
  br i1 %92, label %93, label %102

93:                                               ; preds = %89
  store i32 32773, ptr %5, align 4, !tbaa !12
  %94 = load ptr, ptr %4, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.HandleCRC, ptr %94, i32 0, i32 0
  store i32 16, ptr %95, align 8, !tbaa !13
  %96 = load ptr, ptr %4, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.HandleCRC, ptr %96, i32 0, i32 3
  store i32 0, ptr %97, align 4, !tbaa !15
  %98 = load ptr, ptr %4, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.HandleCRC, ptr %98, i32 0, i32 4
  store i32 0, ptr %99, align 8, !tbaa !16
  %100 = load ptr, ptr %4, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.HandleCRC, ptr %100, i32 0, i32 5
  store i32 1234, ptr %101, align 4, !tbaa !17
  br label %215

102:                                              ; preds = %89
  %103 = load ptr, ptr %2, align 8, !tbaa !5
  %104 = call i32 @strcmp(ptr noundef %103, ptr noundef @.str.12) #5
  %105 = icmp eq i32 %104, 0
  br i1 %105, label %106, label %115

106:                                              ; preds = %102
  store i32 32773, ptr %5, align 4, !tbaa !12
  %107 = load ptr, ptr %4, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.HandleCRC, ptr %107, i32 0, i32 0
  store i32 16, ptr %108, align 8, !tbaa !13
  %109 = load ptr, ptr %4, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.HandleCRC, ptr %109, i32 0, i32 3
  store i32 0, ptr %110, align 4, !tbaa !15
  %111 = load ptr, ptr %4, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.HandleCRC, ptr %111, i32 0, i32 4
  store i32 65535, ptr %112, align 8, !tbaa !16
  %113 = load ptr, ptr %4, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.HandleCRC, ptr %113, i32 0, i32 5
  store i32 1234, ptr %114, align 4, !tbaa !17
  br label %214

115:                                              ; preds = %102
  %116 = load ptr, ptr %2, align 8, !tbaa !5
  %117 = call i32 @strcmp(ptr noundef %116, ptr noundef @.str.13) #5
  %118 = icmp eq i32 %117, 0
  br i1 %118, label %119, label %128

119:                                              ; preds = %115
  store i32 32773, ptr %5, align 4, !tbaa !12
  %120 = load ptr, ptr %4, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.HandleCRC, ptr %120, i32 0, i32 0
  store i32 16, ptr %121, align 8, !tbaa !13
  %122 = load ptr, ptr %4, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.HandleCRC, ptr %122, i32 0, i32 3
  store i32 65535, ptr %123, align 4, !tbaa !15
  %124 = load ptr, ptr %4, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.HandleCRC, ptr %124, i32 0, i32 4
  store i32 65535, ptr %125, align 8, !tbaa !16
  %126 = load ptr, ptr %4, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.HandleCRC, ptr %126, i32 0, i32 5
  store i32 1234, ptr %127, align 4, !tbaa !17
  br label %213

128:                                              ; preds = %115
  %129 = load ptr, ptr %2, align 8, !tbaa !5
  %130 = call i32 @strcmp(ptr noundef %129, ptr noundef @.str.14) #5
  %131 = icmp eq i32 %130, 0
  br i1 %131, label %132, label %141

132:                                              ; preds = %128
  store i32 32773, ptr %5, align 4, !tbaa !12
  %133 = load ptr, ptr %4, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.HandleCRC, ptr %133, i32 0, i32 0
  store i32 16, ptr %134, align 8, !tbaa !13
  %135 = load ptr, ptr %4, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.HandleCRC, ptr %135, i32 0, i32 3
  store i32 65535, ptr %136, align 4, !tbaa !15
  %137 = load ptr, ptr %4, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.HandleCRC, ptr %137, i32 0, i32 4
  store i32 0, ptr %138, align 8, !tbaa !16
  %139 = load ptr, ptr %4, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.HandleCRC, ptr %139, i32 0, i32 5
  store i32 1234, ptr %140, align 4, !tbaa !17
  br label %212

141:                                              ; preds = %128
  %142 = load ptr, ptr %2, align 8, !tbaa !5
  %143 = call i32 @strcmp(ptr noundef %142, ptr noundef @.str.15) #5
  %144 = icmp eq i32 %143, 0
  br i1 %144, label %145, label %154

145:                                              ; preds = %141
  store i32 15717, ptr %5, align 4, !tbaa !12
  %146 = load ptr, ptr %4, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.HandleCRC, ptr %146, i32 0, i32 0
  store i32 16, ptr %147, align 8, !tbaa !13
  %148 = load ptr, ptr %4, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.HandleCRC, ptr %148, i32 0, i32 3
  store i32 0, ptr %149, align 4, !tbaa !15
  %150 = load ptr, ptr %4, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.HandleCRC, ptr %150, i32 0, i32 4
  store i32 65535, ptr %151, align 8, !tbaa !16
  %152 = load ptr, ptr %4, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.HandleCRC, ptr %152, i32 0, i32 5
  store i32 1234, ptr %153, align 4, !tbaa !17
  br label %211

154:                                              ; preds = %141
  %155 = load ptr, ptr %2, align 8, !tbaa !5
  %156 = call i32 @strcmp(ptr noundef %155, ptr noundef @.str.16) #5
  %157 = icmp eq i32 %156, 0
  br i1 %157, label %158, label %167

158:                                              ; preds = %154
  store i32 7, ptr %5, align 4, !tbaa !12
  %159 = load ptr, ptr %4, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.HandleCRC, ptr %159, i32 0, i32 0
  store i32 8, ptr %160, align 8, !tbaa !13
  %161 = load ptr, ptr %4, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.HandleCRC, ptr %161, i32 0, i32 3
  store i32 0, ptr %162, align 4, !tbaa !15
  %163 = load ptr, ptr %4, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.HandleCRC, ptr %163, i32 0, i32 4
  store i32 0, ptr %164, align 8, !tbaa !16
  %165 = load ptr, ptr %4, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.HandleCRC, ptr %165, i32 0, i32 5
  store i32 4321, ptr %166, align 4, !tbaa !17
  br label %210

167:                                              ; preds = %154
  %168 = load ptr, ptr %2, align 8, !tbaa !5
  %169 = call i32 @strcmp(ptr noundef %168, ptr noundef @.str.17) #5
  %170 = icmp eq i32 %169, 0
  br i1 %170, label %171, label %180

171:                                              ; preds = %167
  store i32 7, ptr %5, align 4, !tbaa !12
  %172 = load ptr, ptr %4, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.HandleCRC, ptr %172, i32 0, i32 0
  store i32 8, ptr %173, align 8, !tbaa !13
  %174 = load ptr, ptr %4, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.HandleCRC, ptr %174, i32 0, i32 3
  store i32 0, ptr %175, align 4, !tbaa !15
  %176 = load ptr, ptr %4, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.HandleCRC, ptr %176, i32 0, i32 4
  store i32 85, ptr %177, align 8, !tbaa !16
  %178 = load ptr, ptr %4, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.HandleCRC, ptr %178, i32 0, i32 5
  store i32 4321, ptr %179, align 4, !tbaa !17
  br label %209

180:                                              ; preds = %167
  %181 = load ptr, ptr %2, align 8, !tbaa !5
  %182 = call i32 @strcmp(ptr noundef %181, ptr noundef @.str.18) #5
  %183 = icmp eq i32 %182, 0
  br i1 %183, label %184, label %193

184:                                              ; preds = %180
  store i32 7, ptr %5, align 4, !tbaa !12
  %185 = load ptr, ptr %4, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.HandleCRC, ptr %185, i32 0, i32 0
  store i32 8, ptr %186, align 8, !tbaa !13
  %187 = load ptr, ptr %4, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.HandleCRC, ptr %187, i32 0, i32 3
  store i32 255, ptr %188, align 4, !tbaa !15
  %189 = load ptr, ptr %4, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.HandleCRC, ptr %189, i32 0, i32 4
  store i32 0, ptr %190, align 8, !tbaa !16
  %191 = load ptr, ptr %4, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.HandleCRC, ptr %191, i32 0, i32 5
  store i32 1234, ptr %192, align 4, !tbaa !17
  br label %208

193:                                              ; preds = %180
  %194 = load ptr, ptr %2, align 8, !tbaa !5
  %195 = call i32 @strcmp(ptr noundef %194, ptr noundef @.str.19) #5
  %196 = icmp eq i32 %195, 0
  br i1 %196, label %197, label %206

197:                                              ; preds = %193
  store i32 49, ptr %5, align 4, !tbaa !12
  %198 = load ptr, ptr %4, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.HandleCRC, ptr %198, i32 0, i32 0
  store i32 8, ptr %199, align 8, !tbaa !13
  %200 = load ptr, ptr %4, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.HandleCRC, ptr %200, i32 0, i32 3
  store i32 0, ptr %201, align 4, !tbaa !15
  %202 = load ptr, ptr %4, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.HandleCRC, ptr %202, i32 0, i32 4
  store i32 0, ptr %203, align 8, !tbaa !16
  %204 = load ptr, ptr %4, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.HandleCRC, ptr %204, i32 0, i32 5
  store i32 1234, ptr %205, align 4, !tbaa !17
  br label %207

206:                                              ; preds = %193
  store i32 1, ptr %6, align 4
  br label %222

207:                                              ; preds = %197
  br label %208

208:                                              ; preds = %207, %184
  br label %209

209:                                              ; preds = %208, %171
  br label %210

210:                                              ; preds = %209, %158
  br label %211

211:                                              ; preds = %210, %145
  br label %212

212:                                              ; preds = %211, %132
  br label %213

213:                                              ; preds = %212, %119
  br label %214

214:                                              ; preds = %213, %106
  br label %215

215:                                              ; preds = %214, %93
  br label %216

216:                                              ; preds = %215, %80
  br label %217

217:                                              ; preds = %216, %67
  br label %218

218:                                              ; preds = %217, %54
  br label %219

219:                                              ; preds = %218, %41
  br label %220

220:                                              ; preds = %219, %28
  br label %221

221:                                              ; preds = %220, %15
  call void @CRCTable(ptr noundef %5)
  store i32 0, ptr %6, align 4
  br label %222

222:                                              ; preds = %221, %206
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  %223 = load i32, ptr %6, align 4
  switch i32 %223, label %225 [
    i32 0, label %224
    i32 1, label %224
  ]

224:                                              ; preds = %222, %222
  ret void

225:                                              ; preds = %222
  unreachable
}

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 16}
!10 = !{!"MHandle", !11, i64 0, !11, i64 4, !6, i64 8, !6, i64 16}
!11 = !{!"int", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!14, !11, i64 0}
!14 = !{!"HandleCRC", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !6, i64 32, !7, i64 40}
!15 = !{!14, !11, i64 12}
!16 = !{!14, !11, i64 16}
!17 = !{!14, !11, i64 20}


; 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"

@.str = external hidden unnamed_addr constant [4 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [8 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @endCRC(ptr noundef) #1

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

declare ptr @GetHandle(ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

declare ptr @mMornObject(ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local void @CRCType(ptr nocapture noundef readonly %0) local_unnamed_addr #1 {
  %2 = alloca i32, align 4
  %3 = tail call ptr @mMornObject(ptr noundef nonnull @.str, i32 noundef -1) #4
  %4 = tail call ptr @GetHandle(ptr noundef %3, i32 noundef 1064, i32 noundef -782128077, ptr noundef nonnull @endCRC) #4
  %5 = getelementptr inbounds i8, ptr %4, i64 16
  %6 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #4
  %7 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str.5) #5
  %8 = icmp eq i32 %7, 0
  br i1 %8, label %9, label %10

9:                                                ; preds = %1
  store i32 79764919, ptr %2, align 4, !tbaa !11
  br label %66

10:                                               ; preds = %1
  %11 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str.6) #5
  %12 = icmp eq i32 %11, 0
  br i1 %12, label %13, label %14

13:                                               ; preds = %10
  store i32 79764919, ptr %2, align 4, !tbaa !11
  br label %66

14:                                               ; preds = %10
  %15 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str.7) #5
  %16 = icmp eq i32 %15, 0
  br i1 %16, label %17, label %18

17:                                               ; preds = %14
  store i32 4129, ptr %2, align 4, !tbaa !11
  br label %66

18:                                               ; preds = %14
  %19 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str.8) #5
  %20 = icmp eq i32 %19, 0
  br i1 %20, label %21, label %22

21:                                               ; preds = %18
  store i32 4129, ptr %2, align 4, !tbaa !11
  br label %66

22:                                               ; preds = %18
  %23 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str.9) #5
  %24 = icmp eq i32 %23, 0
  br i1 %24, label %25, label %26

25:                                               ; preds = %22
  store i32 4129, ptr %2, align 4, !tbaa !11
  br label %66

26:                                               ; preds = %22
  %27 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str.10) #5
  %28 = icmp eq i32 %27, 0
  br i1 %28, label %29, label %30

29:                                               ; preds = %26
  store i32 4129, ptr %2, align 4, !tbaa !11
  br label %66

30:                                               ; preds = %26
  %31 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str.11) #5
  %32 = icmp eq i32 %31, 0
  br i1 %32, label %33, label %34

33:                                               ; preds = %30
  store i32 32773, ptr %2, align 4, !tbaa !11
  br label %66

34:                                               ; preds = %30
  %35 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str.12) #5
  %36 = icmp eq i32 %35, 0
  br i1 %36, label %37, label %38

37:                                               ; preds = %34
  store i32 32773, ptr %2, align 4, !tbaa !11
  br label %66

38:                                               ; preds = %34
  %39 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str.13) #5
  %40 = icmp eq i32 %39, 0
  br i1 %40, label %41, label %42

41:                                               ; preds = %38
  store i32 32773, ptr %2, align 4, !tbaa !11
  br label %66

42:                                               ; preds = %38
  %43 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str.14) #5
  %44 = icmp eq i32 %43, 0
  br i1 %44, label %45, label %46

45:                                               ; preds = %42
  store i32 32773, ptr %2, align 4, !tbaa !11
  br label %66

46:                                               ; preds = %42
  %47 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str.15) #5
  %48 = icmp eq i32 %47, 0
  br i1 %48, label %49, label %50

49:                                               ; preds = %46
  store i32 15717, ptr %2, align 4, !tbaa !11
  br label %66

50:                                               ; preds = %46
  %51 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str.16) #5
  %52 = icmp eq i32 %51, 0
  br i1 %52, label %53, label %54

53:                                               ; preds = %50
  store i32 7, ptr %2, align 4, !tbaa !11
  br label %66

54:                                               ; preds = %50
  %55 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str.17) #5
  %56 = icmp eq i32 %55, 0
  br i1 %56, label %57, label %58

57:                                               ; preds = %54
  store i32 7, ptr %2, align 4, !tbaa !11
  br label %66

58:                                               ; preds = %54
  %59 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str.18) #5
  %60 = icmp eq i32 %59, 0
  br i1 %60, label %61, label %62

61:                                               ; preds = %58
  store i32 7, ptr %2, align 4, !tbaa !11
  br label %66

62:                                               ; preds = %58
  %63 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str.19) #5
  %64 = icmp eq i32 %63, 0
  br i1 %64, label %65, label %70

65:                                               ; preds = %62
  store i32 49, ptr %2, align 4, !tbaa !11
  br label %66

66:                                               ; preds = %13, %21, %29, %37, %45, %53, %61, %65, %57, %49, %41, %33, %25, %17, %9
  %.sink81 = phi i32 [ 32, %13 ], [ 16, %21 ], [ 16, %29 ], [ 16, %37 ], [ 16, %45 ], [ 8, %53 ], [ 8, %61 ], [ 8, %65 ], [ 8, %57 ], [ 16, %49 ], [ 16, %41 ], [ 16, %33 ], [ 16, %25 ], [ 16, %17 ], [ 32, %9 ]
  %.sink = phi i32 [ 4321, %13 ], [ 1234, %21 ], [ 4321, %29 ], [ 1234, %37 ], [ 1234, %45 ], [ 4321, %53 ], [ 1234, %61 ], [ 1234, %65 ], [ 4321, %57 ], [ 1234, %49 ], [ 1234, %41 ], [ 1234, %33 ], [ 4321, %25 ], [ 1234, %17 ], [ 1234, %9 ]
  %67 = phi <2 x i32> [ <i32 -1, i32 0>, %13 ], [ zeroinitializer, %21 ], [ zeroinitializer, %29 ], [ <i32 0, i32 65535>, %37 ], [ <i32 65535, i32 0>, %45 ], [ zeroinitializer, %53 ], [ <i32 255, i32 0>, %61 ], [ zeroinitializer, %65 ], [ <i32 0, i32 85>, %57 ], [ <i32 0, i32 65535>, %49 ], [ <i32 65535, i32 65535>, %41 ], [ zeroinitializer, %33 ], [ <i32 65535, i32 0>, %25 ], [ <i32 65535, i32 65535>, %17 ], [ <i32 -1, i32 -1>, %9 ]
  store i32 %.sink81, ptr %6, align 8, !tbaa !12
  %68 = getelementptr inbounds i8, ptr %6, i64 12
  store <2 x i32> %67, ptr %68, align 4, !tbaa !11
  %69 = getelementptr inbounds i8, ptr %6, i64 20
  store i32 %.sink, ptr %69, align 4, !tbaa !14
  call void @CRCTable(ptr noundef nonnull %2)
  br label %70

70:                                               ; preds = %62, %66
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #4
  ret void
}

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { 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, !10, i64 16}
!6 = !{!"MHandle", !7, i64 0, !7, i64 4, !10, i64 8, !10, i64 16}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !7, i64 0}
!13 = !{!"HandleCRC", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !10, i64 32, !8, i64 40}
!14 = !{!13, !7, i64 20}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass