; LLVM IR from jingweizhanghuai/Morn :: src/ptc (morn_message)

; 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.HandleProcVariate = type { [256 x i8], [256 x i8], i32, i32, i32, i32, ptr, ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [78 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [16 x i8], align 1
@__FUNCTION__.m_ProcVariate = external hidden unnamed_addr constant [14 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [18 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: nounwind
declare i32 @flock(i32 noundef, i32 noundef) #1

; Function Attrs: nounwind
declare i64 @lseek(i32 noundef, i64 noundef, i32 noundef) #1

declare void @m_Exception(i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ...) #2

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

declare i64 @read(i32 noundef, ptr noundef, i64 noundef) #2

declare i64 @write(i32 noundef, ptr noundef, i64 noundef) #2

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #3

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

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

declare i32 @mHandleValid(ptr noundef) #2

; Function Attrs: nounwind
declare i32 @getpid() #1

declare i32 @mThreadOrder(...) #2

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

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

; Function Attrs: nounwind
declare i32 @umask(i32 noundef) #1

; Function Attrs: nounwind
declare i32 @sprintf(ptr noundef, ptr noundef, ...) #1

; Function Attrs: nounwind
declare i32 @access(ptr noundef, i32 noundef) #1

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

; Function Attrs: nounwind
declare ptr @mmap(ptr noundef, i64 noundef, i32 noundef, i32 noundef, i32 noundef, i64 noundef) #1

; Function Attrs: nounwind
declare i32 @kill(i32 noundef, i32 noundef) #1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

; Function Attrs: nounwind uwtable
declare dso_local void @endProcVariate(ptr noundef) #5

; Function Attrs: nounwind uwtable
define dso_local ptr @m_ProcVariate(ptr noundef %0, i32 noundef %1, i32 noundef %2) #5 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca ptr, align 8
  %38 = alloca ptr, align 8
  %39 = alloca i16, align 2
  %40 = alloca i16, align 2
  %41 = alloca i16, align 2
  %42 = alloca i32, align 4
  %43 = alloca ptr, align 8
  %44 = alloca i32, align 4
  %45 = alloca ptr, align 8
  %46 = alloca ptr, align 8
  %47 = alloca ptr, align 8
  %48 = alloca i32, align 4
  %49 = alloca i32, align 4
  %50 = alloca i32, align 4
  %51 = alloca i32, align 4
  %52 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store i32 %2, ptr %7, align 4, !tbaa !9
  br label %53

53:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  %54 = load ptr, ptr %5, align 8, !tbaa !5
  %55 = icmp eq ptr %54, null
  br i1 %55, label %62, label %56

56:                                               ; preds = %53
  %57 = load i32, ptr %6, align 4, !tbaa !9
  %58 = icmp sle i32 %57, 0
  br i1 %58, label %62, label %59

59:                                               ; preds = %56
  %60 = load i32, ptr %6, align 4, !tbaa !9
  %61 = icmp sgt i32 %60, 128
  br label %62

62:                                               ; preds = %59, %56, %53
  %63 = phi i1 [ true, %56 ], [ true, %53 ], [ %61, %59 ]
  %64 = zext i1 %63 to i32
  store i32 %64, ptr %8, align 4, !tbaa !9
  %65 = load i32, ptr %8, align 4, !tbaa !9
  %66 = icmp ne i32 %65, 0
  br i1 %66, label %67, label %69

67:                                               ; preds = %62
  %68 = load i32, ptr %8, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %68, i32 noundef -1, ptr noundef @.str, i32 noundef 631, ptr noundef @__FUNCTION__.m_ProcVariate, ptr noundef @.str.5)
  br label %69

69:                                               ; preds = %67, %62
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %70

70:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %71 = call ptr @mMornObject(ptr noundef @.str.17, i32 noundef -1)
  %72 = call ptr @GetHandle(ptr noundef %71, i32 noundef 560, i32 noundef 1166183535, ptr noundef @endProcVariate)
  store ptr %72, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %73 = load ptr, ptr %9, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.MHandle, ptr %73, i32 0, i32 3
  %75 = load ptr, ptr %74, align 8, !tbaa !11
  store ptr %75, ptr %10, align 8, !tbaa !5
  %76 = load ptr, ptr %9, align 8, !tbaa !5
  %77 = call i32 @mHandleValid(ptr noundef %76)
  %78 = icmp ne i32 %77, 0
  br i1 %78, label %494, label %79

79:                                               ; preds = %70
  br label %80

80:                                               ; preds = %79
  %81 = call ptr @mMornObject(ptr noundef @.str.17, i32 noundef -1)
  call void @m_PropertyFunction(ptr noundef %81, ptr noundef @.str.6, ptr noundef @mornObjectRemove, ptr noundef @.str.17)
  br label %82

82:                                               ; preds = %80
  br label %83

83:                                               ; preds = %82
  %84 = call i32 @getpid() #7
  %85 = mul nsw i32 %84, 1000
  %86 = call i32 (...) @mThreadOrder()
  %87 = add nsw i32 %85, %86
  %88 = load ptr, ptr %10, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.HandleProcVariate, ptr %88, i32 0, i32 2
  store i32 %87, ptr %89, align 8, !tbaa !13
  %90 = call i32 @umask(i32 noundef 0) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  store ptr @.str.18, ptr %11, align 8, !tbaa !5
  %91 = load ptr, ptr %10, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.HandleProcVariate, ptr %91, i32 0, i32 0
  %93 = getelementptr inbounds [256 x i8], ptr %92, i64 0, i64 0
  %94 = load ptr, ptr %11, align 8, !tbaa !5
  %95 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %93, ptr noundef @.str.19, ptr noundef %94) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  %96 = load ptr, ptr %10, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.HandleProcVariate, ptr %96, i32 0, i32 0
  %98 = getelementptr inbounds [256 x i8], ptr %97, i64 0, i64 0
  %99 = call i32 @access(ptr noundef %98, i32 noundef 0) #7
  store i32 %99, ptr %12, align 4, !tbaa !9
  %100 = load ptr, ptr %10, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.HandleProcVariate, ptr %100, i32 0, i32 0
  %102 = getelementptr inbounds [256 x i8], ptr %101, i64 0, i64 0
  %103 = call i32 (ptr, i32, ...) @open(ptr noundef %102, i32 noundef 66, i32 noundef 438)
  %104 = load ptr, ptr %10, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.HandleProcVariate, ptr %104, i32 0, i32 3
  store i32 %103, ptr %105, align 4, !tbaa !15
  %106 = load i32, ptr %12, align 4, !tbaa !9
  %107 = icmp sge i32 %106, 0
  br i1 %107, label %108, label %190

108:                                              ; preds = %83
  br label %109

109:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  %110 = load ptr, ptr %10, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.HandleProcVariate, ptr %110, i32 0, i32 3
  %112 = load i32, ptr %111, align 4, !tbaa !15
  %113 = call i64 @lseek(i32 noundef %112, i64 noundef 1, i32 noundef 2) #7
  %114 = icmp slt i64 %113, 65536
  %115 = zext i1 %114 to i32
  store i32 %115, ptr %13, align 4, !tbaa !9
  %116 = load i32, ptr %13, align 4, !tbaa !9
  %117 = icmp ne i32 %116, 0
  br i1 %117, label %118, label %123

118:                                              ; preds = %109
  %119 = load i32, ptr %13, align 4, !tbaa !9
  %120 = load ptr, ptr %10, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.HandleProcVariate, ptr %120, i32 0, i32 0
  %122 = getelementptr inbounds [256 x i8], ptr %121, i64 0, i64 0
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %119, i32 noundef -1, ptr noundef @.str, i32 noundef 652, ptr noundef @__FUNCTION__.m_ProcVariate, ptr noundef @.str.20, ptr noundef %122)
  br label %123

123:                                              ; preds = %118, %109
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %124

124:                                              ; preds = %123
  br label %125

125:                                              ; preds = %124
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  br label %126

126:                                              ; preds = %125
  br label %127

127:                                              ; preds = %126
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  %128 = load ptr, ptr %10, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.HandleProcVariate, ptr %128, i32 0, i32 3
  %130 = load i32, ptr %129, align 4, !tbaa !15
  %131 = call i64 @lseek(i32 noundef %130, i64 noundef 8, i32 noundef 0) #7
  %132 = icmp ne i64 %131, 8
  %133 = zext i1 %132 to i32
  store i32 %133, ptr %15, align 4, !tbaa !9
  %134 = load i32, ptr %15, align 4, !tbaa !9
  %135 = icmp ne i32 %134, 0
  br i1 %135, label %136, label %138

136:                                              ; preds = %127
  %137 = load i32, ptr %15, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %137, i32 noundef -1, ptr noundef @.str, i32 noundef 653, ptr noundef @__FUNCTION__.m_ProcVariate, ptr noundef @.str.1)
  br label %138

138:                                              ; preds = %136, %127
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %139

139:                                              ; preds = %138
  br label %140

140:                                              ; preds = %139
  br label %141

141:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  %142 = load ptr, ptr %10, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.HandleProcVariate, ptr %142, i32 0, i32 3
  %144 = load i32, ptr %143, align 4, !tbaa !15
  %145 = call i64 @read(i32 noundef %144, ptr noundef %14, i64 noundef 4)
  %146 = icmp ne i64 %145, 4
  %147 = zext i1 %146 to i32
  store i32 %147, ptr %16, align 4, !tbaa !9
  %148 = load i32, ptr %16, align 4, !tbaa !9
  %149 = icmp ne i32 %148, 0
  br i1 %149, label %150, label %152

150:                                              ; preds = %141
  %151 = load i32, ptr %16, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %151, i32 noundef -1, ptr noundef @.str, i32 noundef 653, ptr noundef @__FUNCTION__.m_ProcVariate, ptr noundef @.str.2)
  br label %152

152:                                              ; preds = %150, %141
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %153

153:                                              ; preds = %152
  br label %154

154:                                              ; preds = %153
  br label %155

155:                                              ; preds = %154
  br label %156

156:                                              ; preds = %155
  %157 = load i32, ptr %14, align 4, !tbaa !9
  %158 = add nsw i32 %157, 1
  store i32 %158, ptr %14, align 4, !tbaa !9
  br label %159

159:                                              ; preds = %156
  br label %160

160:                                              ; preds = %159
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  %161 = load ptr, ptr %10, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.HandleProcVariate, ptr %161, i32 0, i32 3
  %163 = load i32, ptr %162, align 4, !tbaa !15
  %164 = call i64 @lseek(i32 noundef %163, i64 noundef 8, i32 noundef 0) #7
  %165 = icmp ne i64 %164, 8
  %166 = zext i1 %165 to i32
  store i32 %166, ptr %17, align 4, !tbaa !9
  %167 = load i32, ptr %17, align 4, !tbaa !9
  %168 = icmp ne i32 %167, 0
  br i1 %168, label %169, label %171

169:                                              ; preds = %160
  %170 = load i32, ptr %17, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %170, i32 noundef -1, ptr noundef @.str, i32 noundef 654, ptr noundef @__FUNCTION__.m_ProcVariate, ptr noundef @.str.1)
  br label %171

171:                                              ; preds = %169, %160
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %172

172:                                              ; preds = %171
  br label %173

173:                                              ; preds = %172
  br label %174

174:                                              ; preds = %173
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  %175 = load ptr, ptr %10, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.HandleProcVariate, ptr %175, i32 0, i32 3
  %177 = load i32, ptr %176, align 4, !tbaa !15
  %178 = call i64 @write(i32 noundef %177, ptr noundef %14, i64 noundef 4)
  %179 = icmp ne i64 %178, 4
  %180 = zext i1 %179 to i32
  store i32 %180, ptr %18, align 4, !tbaa !9
  %181 = load i32, ptr %18, align 4, !tbaa !9
  %182 = icmp ne i32 %181, 0
  br i1 %182, label %183, label %185

183:                                              ; preds = %174
  %184 = load i32, ptr %18, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %184, i32 noundef -1, ptr noundef @.str, i32 noundef 654, ptr noundef @__FUNCTION__.m_ProcVariate, ptr noundef @.str.3)
  br label %185

185:                                              ; preds = %183, %174
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %186

186:                                              ; preds = %185
  br label %187

187:                                              ; preds = %186
  br label %188

188:                                              ; preds = %187
  br label %189

189:                                              ; preds = %188
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %284

190:                                              ; preds = %83
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  store i32 0, ptr %19, align 4, !tbaa !9
  br label %191

191:                                              ; preds = %190
  br label %192

192:                                              ; preds = %191
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  %193 = load ptr, ptr %10, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.HandleProcVariate, ptr %193, i32 0, i32 3
  %195 = load i32, ptr %194, align 4, !tbaa !15
  %196 = call i64 @lseek(i32 noundef %195, i64 noundef 65532, i32 noundef 0) #7
  %197 = icmp ne i64 %196, 65532
  %198 = zext i1 %197 to i32
  store i32 %198, ptr %20, align 4, !tbaa !9
  %199 = load i32, ptr %20, align 4, !tbaa !9
  %200 = icmp ne i32 %199, 0
  br i1 %200, label %201, label %203

201:                                              ; preds = %192
  %202 = load i32, ptr %20, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %202, i32 noundef -1, ptr noundef @.str, i32 noundef 659, ptr noundef @__FUNCTION__.m_ProcVariate, ptr noundef @.str.1)
  br label %203

203:                                              ; preds = %201, %192
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %204

204:                                              ; preds = %203
  br label %205

205:                                              ; preds = %204
  br label %206

206:                                              ; preds = %205
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  %207 = load ptr, ptr %10, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct.HandleProcVariate, ptr %207, i32 0, i32 3
  %209 = load i32, ptr %208, align 4, !tbaa !15
  %210 = call i64 @write(i32 noundef %209, ptr noundef %19, i64 noundef 4)
  %211 = icmp ne i64 %210, 4
  %212 = zext i1 %211 to i32
  store i32 %212, ptr %21, align 4, !tbaa !9
  %213 = load i32, ptr %21, align 4, !tbaa !9
  %214 = icmp ne i32 %213, 0
  br i1 %214, label %215, label %217

215:                                              ; preds = %206
  %216 = load i32, ptr %21, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %216, i32 noundef -1, ptr noundef @.str, i32 noundef 659, ptr noundef @__FUNCTION__.m_ProcVariate, ptr noundef @.str.3)
  br label %217

217:                                              ; preds = %215, %206
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  br label %218

218:                                              ; preds = %217
  br label %219

219:                                              ; preds = %218
  br label %220

220:                                              ; preds = %219
  br label %221

221:                                              ; preds = %220
  store i32 8, ptr %19, align 4, !tbaa !9
  br label %222

222:                                              ; preds = %221
  br label %223

223:                                              ; preds = %222
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  %224 = load ptr, ptr %10, align 8, !tbaa !5
  %225 = getelementptr inbounds %struct.HandleProcVariate, ptr %224, i32 0, i32 3
  %226 = load i32, ptr %225, align 4, !tbaa !15
  %227 = call i64 @lseek(i32 noundef %226, i64 noundef 0, i32 noundef 0) #7
  %228 = icmp ne i64 %227, 0
  %229 = zext i1 %228 to i32
  store i32 %229, ptr %22, align 4, !tbaa !9
  %230 = load i32, ptr %22, align 4, !tbaa !9
  %231 = icmp ne i32 %230, 0
  br i1 %231, label %232, label %234

232:                                              ; preds = %223
  %233 = load i32, ptr %22, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %233, i32 noundef -1, ptr noundef @.str, i32 noundef 660, ptr noundef @__FUNCTION__.m_ProcVariate, ptr noundef @.str.1)
  br label %234

234:                                              ; preds = %232, %223
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  br label %235

235:                                              ; preds = %234
  br label %236

236:                                              ; preds = %235
  br label %237

237:                                              ; preds = %236
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  %238 = load ptr, ptr %10, align 8, !tbaa !5
  %239 = getelementptr inbounds %struct.HandleProcVariate, ptr %238, i32 0, i32 3
  %240 = load i32, ptr %239, align 4, !tbaa !15
  %241 = call i64 @write(i32 noundef %240, ptr noundef %19, i64 noundef 4)
  %242 = icmp ne i64 %241, 4
  %243 = zext i1 %242 to i32
  store i32 %243, ptr %23, align 4, !tbaa !9
  %244 = load i32, ptr %23, align 4, !tbaa !9
  %245 = icmp ne i32 %244, 0
  br i1 %245, label %246, label %248

246:                                              ; preds = %237
  %247 = load i32, ptr %23, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %247, i32 noundef -1, ptr noundef @.str, i32 noundef 660, ptr noundef @__FUNCTION__.m_ProcVariate, ptr noundef @.str.3)
  br label %248

248:                                              ; preds = %246, %237
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  br label %249

249:                                              ; preds = %248
  br label %250

250:                                              ; preds = %249
  br label %251

251:                                              ; preds = %250
  br label %252

252:                                              ; preds = %251
  store i32 0, ptr %19, align 4, !tbaa !9
  br label %253

253:                                              ; preds = %252
  br label %254

254:                                              ; preds = %253
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  %255 = load ptr, ptr %10, align 8, !tbaa !5
  %256 = getelementptr inbounds %struct.HandleProcVariate, ptr %255, i32 0, i32 3
  %257 = load i32, ptr %256, align 4, !tbaa !15
  %258 = call i64 @lseek(i32 noundef %257, i64 noundef 4, i32 noundef 0) #7
  %259 = icmp ne i64 %258, 4
  %260 = zext i1 %259 to i32
  store i32 %260, ptr %24, align 4, !tbaa !9
  %261 = load i32, ptr %24, align 4, !tbaa !9
  %262 = icmp ne i32 %261, 0
  br i1 %262, label %263, label %265

263:                                              ; preds = %254
  %264 = load i32, ptr %24, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %264, i32 noundef -1, ptr noundef @.str, i32 noundef 661, ptr noundef @__FUNCTION__.m_ProcVariate, ptr noundef @.str.1)
  br label %265

265:                                              ; preds = %263, %254
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  br label %266

266:                                              ; preds = %265
  br label %267

267:                                              ; preds = %266
  br label %268

268:                                              ; preds = %267
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #7
  %269 = load ptr, ptr %10, align 8, !tbaa !5
  %270 = getelementptr inbounds %struct.HandleProcVariate, ptr %269, i32 0, i32 3
  %271 = load i32, ptr %270, align 4, !tbaa !15
  %272 = call i64 @write(i32 noundef %271, ptr noundef %19, i64 noundef 4)
  %273 = icmp ne i64 %272, 4
  %274 = zext i1 %273 to i32
  store i32 %274, ptr %25, align 4, !tbaa !9
  %275 = load i32, ptr %25, align 4, !tbaa !9
  %276 = icmp ne i32 %275, 0
  br i1 %276, label %277, label %279

277:                                              ; preds = %268
  %278 = load i32, ptr %25, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %278, i32 noundef -1, ptr noundef @.str, i32 noundef 661, ptr noundef @__FUNCTION__.m_ProcVariate, ptr noundef @.str.3)
  br label %279

279:                                              ; preds = %277, %268
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  br label %280

280:                                              ; preds = %279
  br label %281

281:                                              ; preds = %280
  br label %282

282:                                              ; preds = %281
  br label %283

283:                                              ; preds = %282
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %284

284:                                              ; preds = %283, %189
  br label %285

285:                                              ; preds = %284
  %286 = load ptr, ptr %10, align 8, !tbaa !5
  %287 = getelementptr inbounds %struct.HandleProcVariate, ptr %286, i32 0, i32 3
  %288 = load i32, ptr %287, align 4, !tbaa !15
  %289 = call ptr @mmap(ptr noundef null, i64 noundef 65536, i32 noundef 3, i32 noundef 1, i32 noundef %288, i64 noundef 0) #7
  %290 = load ptr, ptr %10, align 8, !tbaa !5
  %291 = getelementptr inbounds %struct.HandleProcVariate, ptr %290, i32 0, i32 6
  store ptr %289, ptr %291, align 8, !tbaa !16
  br label %292

292:                                              ; preds = %285
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  %293 = load ptr, ptr %10, align 8, !tbaa !5
  %294 = getelementptr inbounds %struct.HandleProcVariate, ptr %293, i32 0, i32 6
  %295 = load ptr, ptr %294, align 8, !tbaa !16
  %296 = icmp eq ptr %295, null
  %297 = zext i1 %296 to i32
  store i32 %297, ptr %26, align 4, !tbaa !9
  %298 = load i32, ptr %26, align 4, !tbaa !9
  %299 = icmp ne i32 %298, 0
  br i1 %299, label %300, label %302

300:                                              ; preds = %292
  %301 = load i32, ptr %26, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %301, i32 noundef -1, ptr noundef @.str, i32 noundef 663, ptr noundef @__FUNCTION__.m_ProcVariate, ptr noundef @.str.10)
  br label %302

302:                                              ; preds = %300, %292
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  br label %303

303:                                              ; preds = %302
  br label %304

304:                                              ; preds = %303
  br label %305

305:                                              ; preds = %304
  br label %306

306:                                              ; preds = %305
  %307 = load ptr, ptr %10, align 8, !tbaa !5
  %308 = getelementptr inbounds %struct.HandleProcVariate, ptr %307, i32 0, i32 5
  store i32 8, ptr %308, align 4, !tbaa !17
  %309 = load ptr, ptr %10, align 8, !tbaa !5
  %310 = getelementptr inbounds %struct.HandleProcVariate, ptr %309, i32 0, i32 1
  %311 = getelementptr inbounds [256 x i8], ptr %310, i64 0, i64 0
  %312 = load ptr, ptr %11, align 8, !tbaa !5
  %313 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %311, ptr noundef @.str.21, ptr noundef %312) #7
  %314 = load ptr, ptr %10, align 8, !tbaa !5
  %315 = getelementptr inbounds %struct.HandleProcVariate, ptr %314, i32 0, i32 1
  %316 = getelementptr inbounds [256 x i8], ptr %315, i64 0, i64 0
  %317 = call i32 @access(ptr noundef %316, i32 noundef 0) #7
  store i32 %317, ptr %12, align 4, !tbaa !9
  %318 = load ptr, ptr %10, align 8, !tbaa !5
  %319 = getelementptr inbounds %struct.HandleProcVariate, ptr %318, i32 0, i32 1
  %320 = getelementptr inbounds [256 x i8], ptr %319, i64 0, i64 0
  %321 = call i32 (ptr, i32, ...) @open(ptr noundef %320, i32 noundef 66, i32 noundef 438)
  %322 = load ptr, ptr %10, align 8, !tbaa !5
  %323 = getelementptr inbounds %struct.HandleProcVariate, ptr %322, i32 0, i32 4
  store i32 %321, ptr %323, align 8, !tbaa !18
  %324 = load i32, ptr %12, align 4, !tbaa !9
  %325 = icmp sge i32 %324, 0
  br i1 %325, label %326, label %344

326:                                              ; preds = %306
  br label %327

327:                                              ; preds = %326
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #7
  %328 = load ptr, ptr %10, align 8, !tbaa !5
  %329 = getelementptr inbounds %struct.HandleProcVariate, ptr %328, i32 0, i32 4
  %330 = load i32, ptr %329, align 8, !tbaa !18
  %331 = call i64 @lseek(i32 noundef %330, i64 noundef 1, i32 noundef 2) #7
  %332 = icmp slt i64 %331, 65536
  %333 = zext i1 %332 to i32
  store i32 %333, ptr %27, align 4, !tbaa !9
  %334 = load i32, ptr %27, align 4, !tbaa !9
  %335 = icmp ne i32 %334, 0
  br i1 %335, label %336, label %341

336:                                              ; preds = %327
  %337 = load i32, ptr %27, align 4, !tbaa !9
  %338 = load ptr, ptr %10, align 8, !tbaa !5
  %339 = getelementptr inbounds %struct.HandleProcVariate, ptr %338, i32 0, i32 1
  %340 = getelementptr inbounds [256 x i8], ptr %339, i64 0, i64 0
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %337, i32 noundef -1, ptr noundef @.str, i32 noundef 671, ptr noundef @__FUNCTION__.m_ProcVariate, ptr noundef @.str.20, ptr noundef %340)
  br label %341

341:                                              ; preds = %336, %327
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  br label %342

342:                                              ; preds = %341
  br label %343

343:                                              ; preds = %342
  br label %438

344:                                              ; preds = %306
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #7
  store i32 0, ptr %28, align 4, !tbaa !9
  br label %345

345:                                              ; preds = %344
  br label %346

346:                                              ; preds = %345
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #7
  %347 = load ptr, ptr %10, align 8, !tbaa !5
  %348 = getelementptr inbounds %struct.HandleProcVariate, ptr %347, i32 0, i32 4
  %349 = load i32, ptr %348, align 8, !tbaa !18
  %350 = call i64 @lseek(i32 noundef %349, i64 noundef 65532, i32 noundef 0) #7
  %351 = icmp ne i64 %350, 65532
  %352 = zext i1 %351 to i32
  store i32 %352, ptr %29, align 4, !tbaa !9
  %353 = load i32, ptr %29, align 4, !tbaa !9
  %354 = icmp ne i32 %353, 0
  br i1 %354, label %355, label %357

355:                                              ; preds = %346
  %356 = load i32, ptr %29, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %356, i32 noundef -1, ptr noundef @.str, i32 noundef 675, ptr noundef @__FUNCTION__.m_ProcVariate, ptr noundef @.str.1)
  br label %357

357:                                              ; preds = %355, %346
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  br label %358

358:                                              ; preds = %357
  br label %359

359:                                              ; preds = %358
  br label %360

360:                                              ; preds = %359
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #7
  %361 = load ptr, ptr %10, align 8, !tbaa !5
  %362 = getelementptr inbounds %struct.HandleProcVariate, ptr %361, i32 0, i32 4
  %363 = load i32, ptr %362, align 8, !tbaa !18
  %364 = call i64 @write(i32 noundef %363, ptr noundef %28, i64 noundef 4)
  %365 = icmp ne i64 %364, 4
  %366 = zext i1 %365 to i32
  store i32 %366, ptr %30, align 4, !tbaa !9
  %367 = load i32, ptr %30, align 4, !tbaa !9
  %368 = icmp ne i32 %367, 0
  br i1 %368, label %369, label %371

369:                                              ; preds = %360
  %370 = load i32, ptr %30, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %370, i32 noundef -1, ptr noundef @.str, i32 noundef 675, ptr noundef @__FUNCTION__.m_ProcVariate, ptr noundef @.str.3)
  br label %371

371:                                              ; preds = %369, %360
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  br label %372

372:                                              ; preds = %371
  br label %373

373:                                              ; preds = %372
  br label %374

374:                                              ; preds = %373
  br label %375

375:                                              ; preds = %374
  store i32 8, ptr %28, align 4, !tbaa !9
  br label %376

376:                                              ; preds = %375
  br label %377

377:                                              ; preds = %376
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #7
  %378 = load ptr, ptr %10, align 8, !tbaa !5
  %379 = getelementptr inbounds %struct.HandleProcVariate, ptr %378, i32 0, i32 4
  %380 = load i32, ptr %379, align 8, !tbaa !18
  %381 = call i64 @lseek(i32 noundef %380, i64 noundef 0, i32 noundef 0) #7
  %382 = icmp ne i64 %381, 0
  %383 = zext i1 %382 to i32
  store i32 %383, ptr %31, align 4, !tbaa !9
  %384 = load i32, ptr %31, align 4, !tbaa !9
  %385 = icmp ne i32 %384, 0
  br i1 %385, label %386, label %388

386:                                              ; preds = %377
  %387 = load i32, ptr %31, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %387, i32 noundef -1, ptr noundef @.str, i32 noundef 676, ptr noundef @__FUNCTION__.m_ProcVariate, ptr noundef @.str.1)
  br label %388

388:                                              ; preds = %386, %377
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #7
  br label %389

389:                                              ; preds = %388
  br label %390

390:                                              ; preds = %389
  br label %391

391:                                              ; preds = %390
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #7
  %392 = load ptr, ptr %10, align 8, !tbaa !5
  %393 = getelementptr inbounds %struct.HandleProcVariate, ptr %392, i32 0, i32 4
  %394 = load i32, ptr %393, align 8, !tbaa !18
  %395 = call i64 @write(i32 noundef %394, ptr noundef %28, i64 noundef 4)
  %396 = icmp ne i64 %395, 4
  %397 = zext i1 %396 to i32
  store i32 %397, ptr %32, align 4, !tbaa !9
  %398 = load i32, ptr %32, align 4, !tbaa !9
  %399 = icmp ne i32 %398, 0
  br i1 %399, label %400, label %402

400:                                              ; preds = %391
  %401 = load i32, ptr %32, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %401, i32 noundef -1, ptr noundef @.str, i32 noundef 676, ptr noundef @__FUNCTION__.m_ProcVariate, ptr noundef @.str.3)
  br label %402

402:                                              ; preds = %400, %391
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #7
  br label %403

403:                                              ; preds = %402
  br label %404

404:                                              ; preds = %403
  br label %405

405:                                              ; preds = %404
  br label %406

406:                                              ; preds = %405
  store i32 0, ptr %28, align 4, !tbaa !9
  br label %407

407:                                              ; preds = %406
  br label %408

408:                                              ; preds = %407
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #7
  %409 = load ptr, ptr %10, align 8, !tbaa !5
  %410 = getelementptr inbounds %struct.HandleProcVariate, ptr %409, i32 0, i32 4
  %411 = load i32, ptr %410, align 8, !tbaa !18
  %412 = call i64 @lseek(i32 noundef %411, i64 noundef 4, i32 noundef 0) #7
  %413 = icmp ne i64 %412, 4
  %414 = zext i1 %413 to i32
  store i32 %414, ptr %33, align 4, !tbaa !9
  %415 = load i32, ptr %33, align 4, !tbaa !9
  %416 = icmp ne i32 %415, 0
  br i1 %416, label %417, label %419

417:                                              ; preds = %408
  %418 = load i32, ptr %33, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %418, i32 noundef -1, ptr noundef @.str, i32 noundef 677, ptr noundef @__FUNCTION__.m_ProcVariate, ptr noundef @.str.1)
  br label %419

419:                                              ; preds = %417, %408
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #7
  br label %420

420:                                              ; preds = %419
  br label %421

421:                                              ; preds = %420
  br label %422

422:                                              ; preds = %421
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #7
  %423 = load ptr, ptr %10, align 8, !tbaa !5
  %424 = getelementptr inbounds %struct.HandleProcVariate, ptr %423, i32 0, i32 4
  %425 = load i32, ptr %424, align 8, !tbaa !18
  %426 = call i64 @write(i32 noundef %425, ptr noundef %28, i64 noundef 4)
  %427 = icmp ne i64 %426, 4
  %428 = zext i1 %427 to i32
  store i32 %428, ptr %34, align 4, !tbaa !9
  %429 = load i32, ptr %34, align 4, !tbaa !9
  %430 = icmp ne i32 %429, 0
  br i1 %430, label %431, label %433

431:                                              ; preds = %422
  %432 = load i32, ptr %34, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %432, i32 noundef -1, ptr noundef @.str, i32 noundef 677, ptr noundef @__FUNCTION__.m_ProcVariate, ptr noundef @.str.3)
  br label %433

433:                                              ; preds = %431, %422
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #7
  br label %434

434:                                              ; preds = %433
  br label %435

435:                                              ; preds = %434
  br label %436

436:                                              ; preds = %435
  br label %437

437:                                              ; preds = %436
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  br label %438

438:                                              ; preds = %437, %343
  br label %439

439:                                              ; preds = %438
  %440 = load ptr, ptr %10, align 8, !tbaa !5
  %441 = getelementptr inbounds %struct.HandleProcVariate, ptr %440, i32 0, i32 4
  %442 = load i32, ptr %441, align 8, !tbaa !18
  %443 = call ptr @mmap(ptr noundef null, i64 noundef 65536, i32 noundef 3, i32 noundef 1, i32 noundef %442, i64 noundef 0) #7
  %444 = load ptr, ptr %10, align 8, !tbaa !5
  %445 = getelementptr inbounds %struct.HandleProcVariate, ptr %444, i32 0, i32 7
  store ptr %443, ptr %445, align 8, !tbaa !19
  br label %446

446:                                              ; preds = %439
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #7
  %447 = load ptr, ptr %10, align 8, !tbaa !5
  %448 = getelementptr inbounds %struct.HandleProcVariate, ptr %447, i32 0, i32 7
  %449 = load ptr, ptr %448, align 8, !tbaa !19
  %450 = icmp eq ptr %449, null
  %451 = zext i1 %450 to i32
  store i32 %451, ptr %35, align 4, !tbaa !9
  %452 = load i32, ptr %35, align 4, !tbaa !9
  %453 = icmp ne i32 %452, 0
  br i1 %453, label %454, label %456

454:                                              ; preds = %446
  %455 = load i32, ptr %35, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %455, i32 noundef -1, ptr noundef @.str, i32 noundef 679, ptr noundef @__FUNCTION__.m_ProcVariate, ptr noundef @.str.10)
  br label %456

456:                                              ; preds = %454, %446
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #7
  br label %457

457:                                              ; preds = %456
  br label %458

458:                                              ; preds = %457
  br label %459

459:                                              ; preds = %458
  br label %460

460:                                              ; preds = %459
  br label %461

461:                                              ; preds = %460
  %462 = load ptr, ptr %10, align 8, !tbaa !5
  %463 = getelementptr inbounds %struct.HandleProcVariate, ptr %462, i32 0, i32 4
  %464 = load i32, ptr %463, align 8, !tbaa !18
  %465 = call ptr @mmap(ptr noundef null, i64 noundef 65536, i32 noundef 1, i32 noundef 1, i32 noundef %464, i64 noundef 0) #7
  %466 = load ptr, ptr %10, align 8, !tbaa !5
  %467 = getelementptr inbounds %struct.HandleProcVariate, ptr %466, i32 0, i32 8
  store ptr %465, ptr %467, align 8, !tbaa !20
  br label %468

468:                                              ; preds = %461
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #7
  %469 = load ptr, ptr %10, align 8, !tbaa !5
  %470 = getelementptr inbounds %struct.HandleProcVariate, ptr %469, i32 0, i32 8
  %471 = load ptr, ptr %470, align 8, !tbaa !20
  %472 = icmp eq ptr %471, null
  %473 = zext i1 %472 to i32
  store i32 %473, ptr %36, align 4, !tbaa !9
  %474 = load i32, ptr %36, align 4, !tbaa !9
  %475 = icmp ne i32 %474, 0
  br i1 %475, label %476, label %478

476:                                              ; preds = %468
  %477 = load i32, ptr %36, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %477, i32 noundef -1, ptr noundef @.str, i32 noundef 680, ptr noundef @__FUNCTION__.m_ProcVariate, ptr noundef @.str.10)
  br label %478

478:                                              ; preds = %476, %468
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #7
  br label %479

479:                                              ; preds = %478
  br label %480

480:                                              ; preds = %479
  br label %481

481:                                              ; preds = %480
  br label %482

482:                                              ; preds = %481
  %483 = load ptr, ptr %10, align 8, !tbaa !5
  %484 = getelementptr inbounds %struct.HandleProcVariate, ptr %483, i32 0, i32 9
  %485 = load ptr, ptr %484, align 8, !tbaa !21
  %486 = icmp eq ptr %485, null
  br i1 %486, label %487, label %491

487:                                              ; preds = %482
  %488 = call ptr (...) @mMapCreate()
  %489 = load ptr, ptr %10, align 8, !tbaa !5
  %490 = getelementptr inbounds %struct.HandleProcVariate, ptr %489, i32 0, i32 9
  store ptr %488, ptr %490, align 8, !tbaa !21
  br label %491

491:                                              ; preds = %487, %482
  %492 = load ptr, ptr %9, align 8, !tbaa !5
  %493 = getelementptr inbounds %struct.MHandle, ptr %492, i32 0, i32 1
  store volatile i32 1, ptr %493, align 4, !tbaa !22
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  br label %494

494:                                              ; preds = %491, %70
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #7
  %495 = load i32, ptr %7, align 4, !tbaa !9
  %496 = icmp eq i32 %495, -1
  br i1 %496, label %497, label %501

497:                                              ; preds = %494
  %498 = load ptr, ptr %10, align 8, !tbaa !5
  %499 = getelementptr inbounds %struct.HandleProcVariate, ptr %498, i32 0, i32 7
  %500 = load ptr, ptr %499, align 8, !tbaa !19
  br label %505

501:                                              ; preds = %494
  %502 = load ptr, ptr %10, align 8, !tbaa !5
  %503 = getelementptr inbounds %struct.HandleProcVariate, ptr %502, i32 0, i32 8
  %504 = load ptr, ptr %503, align 8, !tbaa !20
  br label %505

505:                                              ; preds = %501, %497
  %506 = phi ptr [ %500, %497 ], [ %504, %501 ]
  store ptr %506, ptr %37, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #7
  store ptr null, ptr %38, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 2, ptr %39) #7
  store i16 0, ptr %39, align 2, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 2, ptr %40) #7
  call void @llvm.lifetime.start.p0(i64 2, ptr %41) #7
  %507 = load ptr, ptr %10, align 8, !tbaa !5
  %508 = getelementptr inbounds %struct.HandleProcVariate, ptr %507, i32 0, i32 9
  %509 = load ptr, ptr %508, align 8, !tbaa !21
  %510 = load ptr, ptr %5, align 8, !tbaa !5
  %511 = call ptr @m_MapRead(ptr noundef %509, ptr noundef %510, i32 noundef -1, ptr noundef %39, ptr noundef null)
  %512 = load i16, ptr %39, align 2, !tbaa !23
  %513 = icmp ne i16 %512, 0
  br i1 %513, label %514, label %520

514:                                              ; preds = %505
  %515 = load ptr, ptr %37, align 8, !tbaa !5
  %516 = load i16, ptr %39, align 2, !tbaa !23
  %517 = zext i16 %516 to i32
  %518 = sext i32 %517 to i64
  %519 = getelementptr inbounds i8, ptr %515, i64 %518
  store ptr %519, ptr %4, align 8
  store i32 1, ptr %42, align 4
  br label %799

520:                                              ; preds = %505
  %521 = load ptr, ptr %10, align 8, !tbaa !5
  %522 = getelementptr inbounds %struct.HandleProcVariate, ptr %521, i32 0, i32 3
  %523 = load i32, ptr %522, align 4, !tbaa !15
  %524 = call i32 @flock(i32 noundef %523, i32 noundef 2) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #7
  %525 = load ptr, ptr %10, align 8, !tbaa !5
  %526 = getelementptr inbounds %struct.HandleProcVariate, ptr %525, i32 0, i32 6
  %527 = load ptr, ptr %526, align 8, !tbaa !16
  store ptr %527, ptr %43, align 8, !tbaa !5
  br label %528

528:                                              ; preds = %541, %520
  %529 = load ptr, ptr %43, align 8, !tbaa !5
  %530 = getelementptr inbounds i32, ptr %529, i64 1
  %531 = load i32, ptr %530, align 4, !tbaa !9
  %532 = icmp ne i32 %531, 0
  br i1 %532, label %533, label %542

533:                                              ; preds = %528
  %534 = load ptr, ptr %43, align 8, !tbaa !5
  %535 = getelementptr inbounds i32, ptr %534, i64 1
  %536 = load i32, ptr %535, align 4, !tbaa !9
  %537 = sdiv i32 %536, 1000
  %538 = call i32 @kill(i32 noundef %537, i32 noundef 0) #7
  %539 = icmp eq i32 %538, 0
  br i1 %539, label %541, label %540

540:                                              ; preds = %533
  br label %542

541:                                              ; preds = %533
  br label %528, !llvm.loop !25

542:                                              ; preds = %540, %528
  %543 = call i32 @getpid() #7
  %544 = mul nsw i32 %543, 1000
  %545 = load ptr, ptr %43, align 8, !tbaa !5
  %546 = getelementptr inbounds i32, ptr %545, i64 1
  store i32 %544, ptr %546, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #7
  %547 = load ptr, ptr %43, align 8, !tbaa !5
  %548 = getelementptr inbounds i32, ptr %547, i64 0
  %549 = load i32, ptr %548, align 4, !tbaa !9
  store i32 %549, ptr %44, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #7
  %550 = load ptr, ptr %10, align 8, !tbaa !5
  %551 = getelementptr inbounds %struct.HandleProcVariate, ptr %550, i32 0, i32 6
  %552 = load ptr, ptr %551, align 8, !tbaa !16
  %553 = getelementptr inbounds i8, ptr %552, i64 8
  %554 = load ptr, ptr %10, align 8, !tbaa !5
  %555 = getelementptr inbounds %struct.HandleProcVariate, ptr %554, i32 0, i32 5
  %556 = load i32, ptr %555, align 4, !tbaa !17
  %557 = sext i32 %556 to i64
  %558 = getelementptr inbounds i8, ptr %553, i64 %557
  store ptr %558, ptr %45, align 8, !tbaa !5
  br label %559

559:                                              ; preds = %656, %542
  %560 = load ptr, ptr %10, align 8, !tbaa !5
  %561 = getelementptr inbounds %struct.HandleProcVariate, ptr %560, i32 0, i32 5
  %562 = load i32, ptr %561, align 4, !tbaa !17
  %563 = load i32, ptr %44, align 4, !tbaa !9
  %564 = icmp slt i32 %562, %563
  br i1 %564, label %565, label %657

565:                                              ; preds = %559
  %566 = load ptr, ptr %45, align 8, !tbaa !5
  %567 = load i16, ptr %566, align 2, !tbaa !23
  store i16 %567, ptr %39, align 2, !tbaa !23
  %568 = load ptr, ptr %45, align 8, !tbaa !5
  %569 = getelementptr inbounds i8, ptr %568, i64 2
  %570 = load i16, ptr %569, align 2, !tbaa !23
  store i16 %570, ptr %40, align 2, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #7
  %571 = load ptr, ptr %45, align 8, !tbaa !5
  %572 = getelementptr inbounds i8, ptr %571, i64 4
  store ptr %572, ptr %46, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #7
  %573 = load ptr, ptr %45, align 8, !tbaa !5
  %574 = getelementptr inbounds i8, ptr %573, i64 8
  store ptr %574, ptr %47, align 8, !tbaa !5
  %575 = load ptr, ptr %37, align 8, !tbaa !5
  %576 = load i16, ptr %39, align 2, !tbaa !23
  %577 = zext i16 %576 to i32
  %578 = sext i32 %577 to i64
  %579 = getelementptr inbounds i8, ptr %575, i64 %578
  store ptr %579, ptr %38, align 8, !tbaa !5
  %580 = load ptr, ptr %10, align 8, !tbaa !5
  %581 = getelementptr inbounds %struct.HandleProcVariate, ptr %580, i32 0, i32 9
  %582 = load ptr, ptr %581, align 8, !tbaa !21
  %583 = load ptr, ptr %47, align 8, !tbaa !5
  %584 = call ptr @m_MapWrite(ptr noundef %582, ptr noundef %583, i32 noundef -1, ptr noundef %39, i32 noundef 2)
  %585 = load i16, ptr %40, align 2, !tbaa !23
  %586 = zext i16 %585 to i32
  %587 = add nsw i32 8, %586
  %588 = load ptr, ptr %10, align 8, !tbaa !5
  %589 = getelementptr inbounds %struct.HandleProcVariate, ptr %588, i32 0, i32 5
  %590 = load i32, ptr %589, align 4, !tbaa !17
  %591 = add nsw i32 %590, %587
  store i32 %591, ptr %589, align 4, !tbaa !17
  %592 = load ptr, ptr %10, align 8, !tbaa !5
  %593 = getelementptr inbounds %struct.HandleProcVariate, ptr %592, i32 0, i32 6
  %594 = load ptr, ptr %593, align 8, !tbaa !16
  %595 = getelementptr inbounds i8, ptr %594, i64 8
  %596 = load ptr, ptr %10, align 8, !tbaa !5
  %597 = getelementptr inbounds %struct.HandleProcVariate, ptr %596, i32 0, i32 5
  %598 = load i32, ptr %597, align 4, !tbaa !17
  %599 = sext i32 %598 to i64
  %600 = getelementptr inbounds i8, ptr %595, i64 %599
  store ptr %600, ptr %45, align 8, !tbaa !5
  %601 = load ptr, ptr %5, align 8, !tbaa !5
  %602 = load ptr, ptr %47, align 8, !tbaa !5
  %603 = call i32 @strcmp(ptr noundef %601, ptr noundef %602) #8
  %604 = icmp eq i32 %603, 0
  br i1 %604, label %605, label %653

605:                                              ; preds = %565
  %606 = load i32, ptr %7, align 4, !tbaa !9
  %607 = icmp eq i32 %606, -1
  br i1 %607, label %608, label %645

608:                                              ; preds = %605
  %609 = load ptr, ptr %46, align 8, !tbaa !5
  %610 = load i32, ptr %609, align 4, !tbaa !9
  %611 = icmp eq i32 %610, 0
  br i1 %611, label %612, label %617

612:                                              ; preds = %608
  %613 = load ptr, ptr %10, align 8, !tbaa !5
  %614 = getelementptr inbounds %struct.HandleProcVariate, ptr %613, i32 0, i32 2
  %615 = load i32, ptr %614, align 8, !tbaa !13
  %616 = load ptr, ptr %46, align 8, !tbaa !5
  store i32 %615, ptr %616, align 4, !tbaa !9
  br label %644

617:                                              ; preds = %608
  %618 = load ptr, ptr %46, align 8, !tbaa !5
  %619 = load i32, ptr %618, align 4, !tbaa !9
  %620 = load ptr, ptr %10, align 8, !tbaa !5
  %621 = getelementptr inbounds %struct.HandleProcVariate, ptr %620, i32 0, i32 2
  %622 = load i32, ptr %621, align 8, !tbaa !13
  %623 = icmp ne i32 %619, %622
  br i1 %623, label %624, label %643

624:                                              ; preds = %617
  br label %625

625:                                              ; preds = %624
  call void @llvm.lifetime.start.p0(i64 4, ptr %48) #7
  %626 = load ptr, ptr %46, align 8, !tbaa !5
  %627 = load i32, ptr %626, align 4, !tbaa !9
  %628 = sdiv i32 %627, 1000
  %629 = call i32 @kill(i32 noundef %628, i32 noundef 0) #7
  %630 = icmp eq i32 %629, 0
  %631 = zext i1 %630 to i32
  store i32 %631, ptr %48, align 4, !tbaa !9
  %632 = load i32, ptr %48, align 4, !tbaa !9
  %633 = icmp ne i32 %632, 0
  br i1 %633, label %634, label %636

634:                                              ; preds = %625
  %635 = load i32, ptr %48, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %635, i32 noundef -1, ptr noundef @.str, i32 noundef 719, ptr noundef @__FUNCTION__.m_ProcVariate, ptr noundef @.str.22)
  br label %636

636:                                              ; preds = %634, %625
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #7
  br label %637

637:                                              ; preds = %636
  br label %638

638:                                              ; preds = %637
  %639 = load ptr, ptr %10, align 8, !tbaa !5
  %640 = getelementptr inbounds %struct.HandleProcVariate, ptr %639, i32 0, i32 2
  %641 = load i32, ptr %640, align 8, !tbaa !13
  %642 = load ptr, ptr %46, align 8, !tbaa !5
  store i32 %641, ptr %642, align 4, !tbaa !9
  br label %643

643:                                              ; preds = %638, %617
  br label %644

644:                                              ; preds = %643, %612
  br label %645

645:                                              ; preds = %644, %605
  %646 = load ptr, ptr %10, align 8, !tbaa !5
  %647 = getelementptr inbounds %struct.HandleProcVariate, ptr %646, i32 0, i32 3
  %648 = load i32, ptr %647, align 4, !tbaa !15
  %649 = call i32 @flock(i32 noundef %648, i32 noundef 8) #7
  %650 = load ptr, ptr %43, align 8, !tbaa !5
  %651 = getelementptr inbounds i32, ptr %650, i64 1
  store i32 0, ptr %651, align 4, !tbaa !9
  %652 = load ptr, ptr %38, align 8, !tbaa !5
  store ptr %652, ptr %4, align 8
  store i32 1, ptr %42, align 4
  br label %654

653:                                              ; preds = %565
  store i32 0, ptr %42, align 4
  br label %654

654:                                              ; preds = %653, %645
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #7
  %655 = load i32, ptr %42, align 4
  switch i32 %655, label %798 [
    i32 0, label %656
  ]

656:                                              ; preds = %654
  br label %559, !llvm.loop !27

657:                                              ; preds = %559
  %658 = load ptr, ptr %5, align 8, !tbaa !5
  %659 = call i64 @strlen(ptr noundef %658) #8
  %660 = add i64 %659, 1
  %661 = add i64 %660, 3
  %662 = udiv i64 %661, 4
  %663 = trunc i64 %662 to i16
  store i16 %663, ptr %40, align 2, !tbaa !23
  %664 = load i16, ptr %40, align 2, !tbaa !23
  %665 = zext i16 %664 to i32
  %666 = mul nsw i32 %665, 4
  %667 = trunc i32 %666 to i16
  store i16 %667, ptr %40, align 2, !tbaa !23
  br label %668

668:                                              ; preds = %657
  call void @llvm.lifetime.start.p0(i64 4, ptr %49) #7
  %669 = load i16, ptr %40, align 2, !tbaa !23
  %670 = zext i16 %669 to i32
  %671 = icmp sgt i32 %670, 128
  %672 = zext i1 %671 to i32
  store i32 %672, ptr %49, align 4, !tbaa !9
  %673 = load i32, ptr %49, align 4, !tbaa !9
  %674 = icmp ne i32 %673, 0
  br i1 %674, label %675, label %677

675:                                              ; preds = %668
  %676 = load i32, ptr %49, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %676, i32 noundef -1, ptr noundef @.str, i32 noundef 730, ptr noundef @__FUNCTION__.m_ProcVariate, ptr noundef @.str.5)
  br label %677

677:                                              ; preds = %675, %668
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #7
  br label %678

678:                                              ; preds = %677
  br label %679

679:                                              ; preds = %678
  %680 = load i32, ptr %6, align 4, !tbaa !9
  %681 = add nsw i32 %680, 7
  %682 = sdiv i32 %681, 8
  %683 = trunc i32 %682 to i16
  store i16 %683, ptr %41, align 2, !tbaa !23
  %684 = load i16, ptr %41, align 2, !tbaa !23
  %685 = zext i16 %684 to i32
  %686 = mul nsw i32 %685, 8
  %687 = trunc i32 %686 to i16
  store i16 %687, ptr %41, align 2, !tbaa !23
  %688 = load ptr, ptr %10, align 8, !tbaa !5
  %689 = getelementptr inbounds %struct.HandleProcVariate, ptr %688, i32 0, i32 4
  %690 = load i32, ptr %689, align 8, !tbaa !18
  %691 = call i32 @flock(i32 noundef %690, i32 noundef 2) #7
  %692 = load i16, ptr %40, align 2, !tbaa !23
  %693 = zext i16 %692 to i32
  %694 = add nsw i32 8, %693
  %695 = load ptr, ptr %10, align 8, !tbaa !5
  %696 = getelementptr inbounds %struct.HandleProcVariate, ptr %695, i32 0, i32 5
  %697 = load i32, ptr %696, align 4, !tbaa !17
  %698 = add nsw i32 %697, %694
  store i32 %698, ptr %696, align 4, !tbaa !17
  br label %699

699:                                              ; preds = %679
  call void @llvm.lifetime.start.p0(i64 4, ptr %50) #7
  %700 = load ptr, ptr %10, align 8, !tbaa !5
  %701 = getelementptr inbounds %struct.HandleProcVariate, ptr %700, i32 0, i32 5
  %702 = load i32, ptr %701, align 4, !tbaa !17
  %703 = icmp sgt i32 %702, 65536
  %704 = zext i1 %703 to i32
  store i32 %704, ptr %50, align 4, !tbaa !9
  %705 = load i32, ptr %50, align 4, !tbaa !9
  %706 = icmp ne i32 %705, 0
  br i1 %706, label %707, label %709

707:                                              ; preds = %699
  %708 = load i32, ptr %50, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %708, i32 noundef -1, ptr noundef @.str, i32 noundef 737, ptr noundef @__FUNCTION__.m_ProcVariate, ptr noundef @.str.23)
  br label %709

709:                                              ; preds = %707, %699
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #7
  br label %710

710:                                              ; preds = %709
  br label %711

711:                                              ; preds = %710
  call void @llvm.lifetime.start.p0(i64 4, ptr %51) #7
  %712 = load ptr, ptr %10, align 8, !tbaa !5
  %713 = getelementptr inbounds %struct.HandleProcVariate, ptr %712, i32 0, i32 7
  %714 = load ptr, ptr %713, align 8, !tbaa !19
  %715 = load i32, ptr %714, align 4, !tbaa !9
  store i32 %715, ptr %51, align 4, !tbaa !9
  br label %716

716:                                              ; preds = %711
  call void @llvm.lifetime.start.p0(i64 4, ptr %52) #7
  %717 = load i32, ptr %51, align 4, !tbaa !9
  %718 = load i16, ptr %41, align 2, !tbaa !23
  %719 = zext i16 %718 to i32
  %720 = add nsw i32 %717, %719
  %721 = icmp sgt i32 %720, 65536
  %722 = zext i1 %721 to i32
  store i32 %722, ptr %52, align 4, !tbaa !9
  %723 = load i32, ptr %52, align 4, !tbaa !9
  %724 = icmp ne i32 %723, 0
  br i1 %724, label %725, label %727

725:                                              ; preds = %716
  %726 = load i32, ptr %52, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %726, i32 noundef -1, ptr noundef @.str, i32 noundef 740, ptr noundef @__FUNCTION__.m_ProcVariate, ptr noundef @.str.23)
  br label %727

727:                                              ; preds = %725, %716
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #7
  br label %728

728:                                              ; preds = %727
  br label %729

729:                                              ; preds = %728
  %730 = load i32, ptr %51, align 4, !tbaa !9
  %731 = trunc i32 %730 to i16
  %732 = load ptr, ptr %45, align 8, !tbaa !5
  store i16 %731, ptr %732, align 2, !tbaa !23
  %733 = load i16, ptr %40, align 2, !tbaa !23
  %734 = load ptr, ptr %45, align 8, !tbaa !5
  %735 = getelementptr inbounds i8, ptr %734, i64 2
  store i16 %733, ptr %735, align 2, !tbaa !23
  %736 = load i32, ptr %7, align 4, !tbaa !9
  %737 = icmp eq i32 %736, -1
  br i1 %737, label %738, label %742

738:                                              ; preds = %729
  %739 = load ptr, ptr %10, align 8, !tbaa !5
  %740 = getelementptr inbounds %struct.HandleProcVariate, ptr %739, i32 0, i32 2
  %741 = load i32, ptr %740, align 8, !tbaa !13
  br label %743

742:                                              ; preds = %729
  br label %743

743:                                              ; preds = %742, %738
  %744 = phi i32 [ %741, %738 ], [ 0, %742 ]
  %745 = load ptr, ptr %45, align 8, !tbaa !5
  %746 = getelementptr inbounds i8, ptr %745, i64 4
  store i32 %744, ptr %746, align 4, !tbaa !9
  %747 = load ptr, ptr %45, align 8, !tbaa !5
  %748 = getelementptr inbounds i8, ptr %747, i64 8
  %749 = load ptr, ptr %5, align 8, !tbaa !5
  %750 = load i16, ptr %40, align 2, !tbaa !23
  %751 = zext i16 %750 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %748, ptr align 1 %749, i64 %751, i1 false)
  %752 = load i32, ptr %51, align 4, !tbaa !9
  %753 = trunc i32 %752 to i16
  store i16 %753, ptr %39, align 2, !tbaa !23
  %754 = load ptr, ptr %37, align 8, !tbaa !5
  %755 = load i16, ptr %39, align 2, !tbaa !23
  %756 = zext i16 %755 to i32
  %757 = sext i32 %756 to i64
  %758 = getelementptr inbounds i8, ptr %754, i64 %757
  store ptr %758, ptr %38, align 8, !tbaa !5
  %759 = load ptr, ptr %10, align 8, !tbaa !5
  %760 = getelementptr inbounds %struct.HandleProcVariate, ptr %759, i32 0, i32 7
  %761 = load ptr, ptr %760, align 8, !tbaa !19
  %762 = load i16, ptr %39, align 2, !tbaa !23
  %763 = zext i16 %762 to i32
  %764 = sext i32 %763 to i64
  %765 = getelementptr inbounds i8, ptr %761, i64 %764
  %766 = load i16, ptr %41, align 2, !tbaa !23
  %767 = zext i16 %766 to i64
  call void @llvm.memset.p0.i64(ptr align 1 %765, i8 0, i64 %767, i1 false)
  %768 = load i16, ptr %41, align 2, !tbaa !23
  %769 = zext i16 %768 to i32
  %770 = load i32, ptr %51, align 4, !tbaa !9
  %771 = add nsw i32 %770, %769
  store i32 %771, ptr %51, align 4, !tbaa !9
  %772 = load ptr, ptr %10, align 8, !tbaa !5
  %773 = getelementptr inbounds %struct.HandleProcVariate, ptr %772, i32 0, i32 5
  %774 = load i32, ptr %773, align 4, !tbaa !17
  %775 = load ptr, ptr %43, align 8, !tbaa !5
  %776 = getelementptr inbounds i32, ptr %775, i64 0
  store i32 %774, ptr %776, align 4, !tbaa !9
  %777 = load i32, ptr %51, align 4, !tbaa !9
  %778 = load ptr, ptr %10, align 8, !tbaa !5
  %779 = getelementptr inbounds %struct.HandleProcVariate, ptr %778, i32 0, i32 7
  %780 = load ptr, ptr %779, align 8, !tbaa !19
  store i32 %777, ptr %780, align 4, !tbaa !9
  %781 = load ptr, ptr %10, align 8, !tbaa !5
  %782 = getelementptr inbounds %struct.HandleProcVariate, ptr %781, i32 0, i32 4
  %783 = load i32, ptr %782, align 8, !tbaa !18
  %784 = call i32 @flock(i32 noundef %783, i32 noundef 8) #7
  %785 = load ptr, ptr %10, align 8, !tbaa !5
  %786 = getelementptr inbounds %struct.HandleProcVariate, ptr %785, i32 0, i32 3
  %787 = load i32, ptr %786, align 4, !tbaa !15
  %788 = call i32 @flock(i32 noundef %787, i32 noundef 8) #7
  %789 = load ptr, ptr %43, align 8, !tbaa !5
  %790 = getelementptr inbounds i32, ptr %789, i64 1
  store i32 0, ptr %790, align 4, !tbaa !9
  %791 = load ptr, ptr %10, align 8, !tbaa !5
  %792 = getelementptr inbounds %struct.HandleProcVariate, ptr %791, i32 0, i32 9
  %793 = load ptr, ptr %792, align 8, !tbaa !21
  %794 = load ptr, ptr %45, align 8, !tbaa !5
  %795 = getelementptr inbounds i8, ptr %794, i64 8
  %796 = call ptr @m_MapWrite(ptr noundef %793, ptr noundef %795, i32 noundef -1, ptr noundef %39, i32 noundef 2)
  %797 = load ptr, ptr %38, align 8, !tbaa !5
  store ptr %797, ptr %4, align 8
  store i32 1, ptr %42, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #7
  br label %798

798:                                              ; preds = %743, %654
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #7
  br label %799

799:                                              ; preds = %798, %514
  call void @llvm.lifetime.end.p0(i64 2, ptr %41) #7
  call void @llvm.lifetime.end.p0(i64 2, ptr %40) #7
  call void @llvm.lifetime.end.p0(i64 2, ptr %39) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  %800 = load ptr, ptr %4, align 8
  ret ptr %800
}

declare ptr @mMapCreate(...) #2

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #6

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 #6 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #7 = { nounwind }
attributes #8 = { 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 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 16}
!12 = !{!"MHandle", !10, i64 0, !10, i64 4, !6, i64 8, !6, i64 16}
!13 = !{!14, !10, i64 512}
!14 = !{!"HandleProcVariate", !7, i64 0, !7, i64 256, !10, i64 512, !10, i64 516, !10, i64 520, !10, i64 524, !6, i64 528, !6, i64 536, !6, i64 544, !6, i64 552}
!15 = !{!14, !10, i64 516}
!16 = !{!14, !6, i64 528}
!17 = !{!14, !10, i64 524}
!18 = !{!14, !10, i64 520}
!19 = !{!14, !6, i64 536}
!20 = !{!14, !6, i64 544}
!21 = !{!14, !6, i64 552}
!22 = !{!12, !10, i64 4}
!23 = !{!24, !24, i64 0}
!24 = !{!"short", !7, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = distinct !{!27, !26}


; 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 [78 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [16 x i8], align 1
@__FUNCTION__.m_ProcVariate = external hidden unnamed_addr constant [14 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [18 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: nounwind
declare i32 @flock(i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind
declare i64 @lseek(i32 noundef, i64 noundef, i32 noundef) local_unnamed_addr #1

declare void @m_Exception(i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ...) local_unnamed_addr #2

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

; Function Attrs: nofree
declare noundef i64 @read(i32 noundef, ptr nocapture noundef, i64 noundef) local_unnamed_addr #3

; Function Attrs: nofree
declare noundef i64 @write(i32 noundef, ptr nocapture noundef readonly, i64 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #4

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

declare i32 @mHandleValid(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind
declare i32 @getpid() local_unnamed_addr #1

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

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

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

; Function Attrs: nounwind
declare i32 @umask(i32 noundef) local_unnamed_addr #1

; Function Attrs: nofree nounwind
declare noundef i32 @sprintf(ptr noalias nocapture noundef writeonly, ptr nocapture noundef readonly, ...) local_unnamed_addr #5

; Function Attrs: nofree nounwind
declare noundef i32 @access(ptr nocapture noundef readonly, i32 noundef) local_unnamed_addr #5

; Function Attrs: nofree
declare noundef i32 @open(ptr nocapture noundef readonly, i32 noundef, ...) local_unnamed_addr #3

; Function Attrs: nounwind
declare ptr @mmap(ptr noundef, i64 noundef, i32 noundef, i32 noundef, i32 noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: nounwind
declare i32 @kill(i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #6

; Function Attrs: nounwind uwtable
declare dso_local void @endProcVariate(ptr noundef) #7

; Function Attrs: nounwind uwtable
define dso_local ptr @m_ProcVariate(ptr noundef %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #7 {
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i16, align 2
  %8 = icmp eq ptr %0, null
  %9 = add i32 %1, -129
  %10 = icmp ult i32 %9, -128
  %spec.select = or i1 %8, %10
  br i1 %spec.select, label %11, label %12

11:                                               ; preds = %3
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str, i32 noundef 631, ptr noundef nonnull @__FUNCTION__.m_ProcVariate, ptr noundef nonnull @.str.5) #9
  br label %12

12:                                               ; preds = %11, %3
  %13 = tail call ptr @mMornObject(ptr noundef nonnull @.str.17, i32 noundef -1) #9
  %14 = tail call ptr @GetHandle(ptr noundef %13, i32 noundef 560, i32 noundef 1166183535, ptr noundef nonnull @endProcVariate) #9
  %15 = getelementptr inbounds i8, ptr %14, i64 16
  %16 = load ptr, ptr %15, align 8, !tbaa !5
  %17 = tail call i32 @mHandleValid(ptr noundef %14) #9
  %.not = icmp eq i32 %17, 0
  br i1 %.not, label %18, label %._crit_edge

._crit_edge:                                      ; preds = %12
  %.phi.trans.insert = getelementptr inbounds i8, ptr %16, i64 552
  %.pre = load ptr, ptr %.phi.trans.insert, align 8, !tbaa !11
  br label %141

18:                                               ; preds = %12
  %19 = tail call ptr @mMornObject(ptr noundef nonnull @.str.17, i32 noundef -1) #9
  tail call void @m_PropertyFunction(ptr noundef %19, ptr noundef nonnull @.str.6, ptr noundef nonnull @mornObjectRemove, ptr noundef nonnull @.str.17) #9
  %20 = tail call i32 @getpid() #9
  %21 = mul nsw i32 %20, 1000
  %22 = tail call i32 (...) @mThreadOrder() #9
  %23 = add nsw i32 %21, %22
  %24 = getelementptr inbounds i8, ptr %16, i64 512
  store i32 %23, ptr %24, align 8, !tbaa !13
  %25 = tail call i32 @umask(i32 noundef 0) #9
  %26 = tail call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %16, ptr noundef nonnull dereferenceable(1) @.str.19, ptr noundef nonnull @.str.18) #9
  %27 = tail call i32 @access(ptr noundef %16, i32 noundef 0) #9
  %28 = tail call i32 (ptr, i32, ...) @open(ptr noundef %16, i32 noundef 66, i32 noundef 438) #9
  %29 = getelementptr inbounds i8, ptr %16, i64 516
  store i32 %28, ptr %29, align 4, !tbaa !14
  %30 = icmp sgt i32 %27, -1
  br i1 %30, label %31, label %54

31:                                               ; preds = %18
  %32 = tail call i64 @lseek(i32 noundef %28, i64 noundef 1, i32 noundef 2) #9
  %33 = icmp slt i64 %32, 65536
  br i1 %33, label %34, label %35

34:                                               ; preds = %31
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str, i32 noundef 652, ptr noundef nonnull @__FUNCTION__.m_ProcVariate, ptr noundef nonnull @.str.20, ptr noundef nonnull %16) #9
  br label %35

35:                                               ; preds = %34, %31
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #9
  %36 = load i32, ptr %29, align 4, !tbaa !14
  %37 = tail call i64 @lseek(i32 noundef %36, i64 noundef 8, i32 noundef 0) #9
  %.not201 = icmp eq i64 %37, 8
  br i1 %.not201, label %39, label %38

38:                                               ; preds = %35
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str, i32 noundef 653, ptr noundef nonnull @__FUNCTION__.m_ProcVariate, ptr noundef nonnull @.str.1) #9
  br label %39

39:                                               ; preds = %38, %35
  %40 = load i32, ptr %29, align 4, !tbaa !14
  %41 = call i64 @read(i32 noundef %40, ptr noundef nonnull %4, i64 noundef 4) #9
  %.not202 = icmp eq i64 %41, 4
  br i1 %.not202, label %43, label %42

42:                                               ; preds = %39
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str, i32 noundef 653, ptr noundef nonnull @__FUNCTION__.m_ProcVariate, ptr noundef nonnull @.str.2) #9
  br label %43

43:                                               ; preds = %42, %39
  %44 = load i32, ptr %4, align 4, !tbaa !15
  %45 = add nsw i32 %44, 1
  store i32 %45, ptr %4, align 4, !tbaa !15
  %46 = load i32, ptr %29, align 4, !tbaa !14
  %47 = tail call i64 @lseek(i32 noundef %46, i64 noundef 8, i32 noundef 0) #9
  %.not203 = icmp eq i64 %47, 8
  br i1 %.not203, label %49, label %48

48:                                               ; preds = %43
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str, i32 noundef 654, ptr noundef nonnull @__FUNCTION__.m_ProcVariate, ptr noundef nonnull @.str.1) #9
  br label %49

49:                                               ; preds = %48, %43
  %50 = load i32, ptr %29, align 4, !tbaa !14
  %51 = call i64 @write(i32 noundef %50, ptr noundef nonnull %4, i64 noundef 4) #9
  %.not204 = icmp eq i64 %51, 4
  br i1 %.not204, label %53, label %52

52:                                               ; preds = %49
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str, i32 noundef 654, ptr noundef nonnull @__FUNCTION__.m_ProcVariate, ptr noundef nonnull @.str.3) #9
  br label %53

53:                                               ; preds = %52, %49
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #9
  br label %78

54:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #9
  store i32 0, ptr %5, align 4, !tbaa !15
  %55 = tail call i64 @lseek(i32 noundef %28, i64 noundef 65532, i32 noundef 0) #9
  %.not195 = icmp eq i64 %55, 65532
  br i1 %.not195, label %57, label %56

56:                                               ; preds = %54
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str, i32 noundef 659, ptr noundef nonnull @__FUNCTION__.m_ProcVariate, ptr noundef nonnull @.str.1) #9
  br label %57

57:                                               ; preds = %56, %54
  %58 = load i32, ptr %29, align 4, !tbaa !14
  %59 = call i64 @write(i32 noundef %58, ptr noundef nonnull %5, i64 noundef 4) #9
  %.not196 = icmp eq i64 %59, 4
  br i1 %.not196, label %61, label %60

60:                                               ; preds = %57
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str, i32 noundef 659, ptr noundef nonnull @__FUNCTION__.m_ProcVariate, ptr noundef nonnull @.str.3) #9
  br label %61

61:                                               ; preds = %60, %57
  store i32 8, ptr %5, align 4, !tbaa !15
  %62 = load i32, ptr %29, align 4, !tbaa !14
  %63 = tail call i64 @lseek(i32 noundef %62, i64 noundef 0, i32 noundef 0) #9
  %.not197 = icmp eq i64 %63, 0
  br i1 %.not197, label %65, label %64

64:                                               ; preds = %61
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str, i32 noundef 660, ptr noundef nonnull @__FUNCTION__.m_ProcVariate, ptr noundef nonnull @.str.1) #9
  br label %65

65:                                               ; preds = %64, %61
  %66 = load i32, ptr %29, align 4, !tbaa !14
  %67 = call i64 @write(i32 noundef %66, ptr noundef nonnull %5, i64 noundef 4) #9
  %.not198 = icmp eq i64 %67, 4
  br i1 %.not198, label %69, label %68

68:                                               ; preds = %65
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str, i32 noundef 660, ptr noundef nonnull @__FUNCTION__.m_ProcVariate, ptr noundef nonnull @.str.3) #9
  br label %69

69:                                               ; preds = %68, %65
  store i32 0, ptr %5, align 4, !tbaa !15
  %70 = load i32, ptr %29, align 4, !tbaa !14
  %71 = tail call i64 @lseek(i32 noundef %70, i64 noundef 4, i32 noundef 0) #9
  %.not199 = icmp eq i64 %71, 4
  br i1 %.not199, label %73, label %72

72:                                               ; preds = %69
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str, i32 noundef 661, ptr noundef nonnull @__FUNCTION__.m_ProcVariate, ptr noundef nonnull @.str.1) #9
  br label %73

73:                                               ; preds = %72, %69
  %74 = load i32, ptr %29, align 4, !tbaa !14
  %75 = call i64 @write(i32 noundef %74, ptr noundef nonnull %5, i64 noundef 4) #9
  %.not200 = icmp eq i64 %75, 4
  br i1 %.not200, label %77, label %76

76:                                               ; preds = %73
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str, i32 noundef 661, ptr noundef nonnull @__FUNCTION__.m_ProcVariate, ptr noundef nonnull @.str.3) #9
  br label %77

77:                                               ; preds = %76, %73
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #9
  br label %78

78:                                               ; preds = %53, %77
  %79 = load i32, ptr %29, align 4, !tbaa !14
  %80 = tail call ptr @mmap(ptr noundef null, i64 noundef 65536, i32 noundef 3, i32 noundef 1, i32 noundef %79, i64 noundef 0) #9
  %81 = getelementptr inbounds i8, ptr %16, i64 528
  store ptr %80, ptr %81, align 8, !tbaa !16
  %82 = icmp eq ptr %80, null
  br i1 %82, label %83, label %84

83:                                               ; preds = %78
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str, i32 noundef 663, ptr noundef nonnull @__FUNCTION__.m_ProcVariate, ptr noundef nonnull @.str.10) #9
  br label %84

84:                                               ; preds = %83, %78
  %85 = getelementptr inbounds i8, ptr %16, i64 524
  store i32 8, ptr %85, align 4, !tbaa !17
  %86 = getelementptr inbounds i8, ptr %16, i64 256
  %87 = tail call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %86, ptr noundef nonnull dereferenceable(1) @.str.21, ptr noundef nonnull @.str.18) #9
  %88 = tail call i32 @access(ptr noundef nonnull %86, i32 noundef 0) #9
  %89 = tail call i32 (ptr, i32, ...) @open(ptr noundef nonnull %86, i32 noundef 66, i32 noundef 438) #9
  %90 = getelementptr inbounds i8, ptr %16, i64 520
  store i32 %89, ptr %90, align 8, !tbaa !18
  %91 = icmp sgt i32 %88, -1
  br i1 %91, label %92, label %96

92:                                               ; preds = %84
  %93 = tail call i64 @lseek(i32 noundef %89, i64 noundef 1, i32 noundef 2) #9
  %94 = icmp slt i64 %93, 65536
  br i1 %94, label %95, label %120

95:                                               ; preds = %92
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str, i32 noundef 671, ptr noundef nonnull @__FUNCTION__.m_ProcVariate, ptr noundef nonnull @.str.20, ptr noundef nonnull %86) #9
  br label %120

96:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #9
  store i32 0, ptr %6, align 4, !tbaa !15
  %97 = tail call i64 @lseek(i32 noundef %89, i64 noundef 65532, i32 noundef 0) #9
  %.not205 = icmp eq i64 %97, 65532
  br i1 %.not205, label %99, label %98

98:                                               ; preds = %96
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str, i32 noundef 675, ptr noundef nonnull @__FUNCTION__.m_ProcVariate, ptr noundef nonnull @.str.1) #9
  br label %99

99:                                               ; preds = %98, %96
  %100 = load i32, ptr %90, align 8, !tbaa !18
  %101 = call i64 @write(i32 noundef %100, ptr noundef nonnull %6, i64 noundef 4) #9
  %.not206 = icmp eq i64 %101, 4
  br i1 %.not206, label %103, label %102

102:                                              ; preds = %99
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str, i32 noundef 675, ptr noundef nonnull @__FUNCTION__.m_ProcVariate, ptr noundef nonnull @.str.3) #9
  br label %103

103:                                              ; preds = %102, %99
  store i32 8, ptr %6, align 4, !tbaa !15
  %104 = load i32, ptr %90, align 8, !tbaa !18
  %105 = tail call i64 @lseek(i32 noundef %104, i64 noundef 0, i32 noundef 0) #9
  %.not207 = icmp eq i64 %105, 0
  br i1 %.not207, label %107, label %106

106:                                              ; preds = %103
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str, i32 noundef 676, ptr noundef nonnull @__FUNCTION__.m_ProcVariate, ptr noundef nonnull @.str.1) #9
  br label %107

107:                                              ; preds = %106, %103
  %108 = load i32, ptr %90, align 8, !tbaa !18
  %109 = call i64 @write(i32 noundef %108, ptr noundef nonnull %6, i64 noundef 4) #9
  %.not208 = icmp eq i64 %109, 4
  br i1 %.not208, label %111, label %110

110:                                              ; preds = %107
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str, i32 noundef 676, ptr noundef nonnull @__FUNCTION__.m_ProcVariate, ptr noundef nonnull @.str.3) #9
  br label %111

111:                                              ; preds = %110, %107
  store i32 0, ptr %6, align 4, !tbaa !15
  %112 = load i32, ptr %90, align 8, !tbaa !18
  %113 = tail call i64 @lseek(i32 noundef %112, i64 noundef 4, i32 noundef 0) #9
  %.not209 = icmp eq i64 %113, 4
  br i1 %.not209, label %115, label %114

114:                                              ; preds = %111
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str, i32 noundef 677, ptr noundef nonnull @__FUNCTION__.m_ProcVariate, ptr noundef nonnull @.str.1) #9
  br label %115

115:                                              ; preds = %114, %111
  %116 = load i32, ptr %90, align 8, !tbaa !18
  %117 = call i64 @write(i32 noundef %116, ptr noundef nonnull %6, i64 noundef 4) #9
  %.not210 = icmp eq i64 %117, 4
  br i1 %.not210, label %119, label %118

118:                                              ; preds = %115
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str, i32 noundef 677, ptr noundef nonnull @__FUNCTION__.m_ProcVariate, ptr noundef nonnull @.str.3) #9
  br label %119

119:                                              ; preds = %118, %115
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #9
  br label %120

120:                                              ; preds = %92, %95, %119
  %121 = load i32, ptr %90, align 8, !tbaa !18
  %122 = tail call ptr @mmap(ptr noundef null, i64 noundef 65536, i32 noundef 3, i32 noundef 1, i32 noundef %121, i64 noundef 0) #9
  %123 = getelementptr inbounds i8, ptr %16, i64 536
  store ptr %122, ptr %123, align 8, !tbaa !19
  %124 = icmp eq ptr %122, null
  br i1 %124, label %125, label %126

125:                                              ; preds = %120
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str, i32 noundef 679, ptr noundef nonnull @__FUNCTION__.m_ProcVariate, ptr noundef nonnull @.str.10) #9
  br label %126

126:                                              ; preds = %125, %120
  %127 = load i32, ptr %90, align 8, !tbaa !18
  %128 = tail call ptr @mmap(ptr noundef null, i64 noundef 65536, i32 noundef 1, i32 noundef 1, i32 noundef %127, i64 noundef 0) #9
  %129 = getelementptr inbounds i8, ptr %16, i64 544
  store ptr %128, ptr %129, align 8, !tbaa !20
  %130 = icmp eq ptr %128, null
  br i1 %130, label %131, label %132

131:                                              ; preds = %126
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str, i32 noundef 680, ptr noundef nonnull @__FUNCTION__.m_ProcVariate, ptr noundef nonnull @.str.10) #9
  br label %132

132:                                              ; preds = %131, %126
  %133 = getelementptr inbounds i8, ptr %16, i64 552
  %134 = load ptr, ptr %133, align 8, !tbaa !11
  %135 = icmp eq ptr %134, null
  br i1 %135, label %136, label %138

136:                                              ; preds = %132
  %137 = tail call ptr (...) @mMapCreate() #9
  store ptr %137, ptr %133, align 8, !tbaa !11
  br label %138

138:                                              ; preds = %136, %132
  %139 = phi ptr [ %137, %136 ], [ %134, %132 ]
  %140 = getelementptr inbounds i8, ptr %14, i64 4
  store volatile i32 1, ptr %140, align 4, !tbaa !21
  br label %141

141:                                              ; preds = %._crit_edge, %138
  %142 = phi ptr [ %.pre, %._crit_edge ], [ %139, %138 ]
  %143 = icmp eq i32 %2, -1
  %144 = getelementptr inbounds i8, ptr %16, i64 536
  %145 = getelementptr inbounds i8, ptr %16, i64 544
  %.in = select i1 %143, ptr %144, ptr %145
  %146 = load ptr, ptr %.in, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %7) #9
  store i16 0, ptr %7, align 2, !tbaa !23
  %147 = getelementptr inbounds i8, ptr %16, i64 552
  %148 = call ptr @m_MapRead(ptr noundef %142, ptr noundef %0, i32 noundef -1, ptr noundef nonnull %7, ptr noundef null) #9
  %149 = load i16, ptr %7, align 2, !tbaa !23
  %.not190 = icmp eq i16 %149, 0
  br i1 %.not190, label %153, label %150

150:                                              ; preds = %141
  %151 = zext i16 %149 to i64
  %152 = getelementptr inbounds i8, ptr %146, i64 %151
  br label %266

153:                                              ; preds = %141
  %154 = getelementptr inbounds i8, ptr %16, i64 516
  %155 = load i32, ptr %154, align 4, !tbaa !14
  %156 = call i32 @flock(i32 noundef %155, i32 noundef 2) #9
  %157 = getelementptr inbounds i8, ptr %16, i64 528
  %158 = load ptr, ptr %157, align 8, !tbaa !16
  %159 = getelementptr inbounds i8, ptr %158, i64 4
  br label %160

160:                                              ; preds = %162, %153
  %161 = load i32, ptr %159, align 4, !tbaa !15
  %.not191 = icmp eq i32 %161, 0
  br i1 %.not191, label %166, label %162

162:                                              ; preds = %160
  %163 = sdiv i32 %161, 1000
  %164 = call i32 @kill(i32 noundef %163, i32 noundef 0) #9
  %165 = icmp eq i32 %164, 0
  br i1 %165, label %160, label %166, !llvm.loop !25

166:                                              ; preds = %162, %160
  %167 = call i32 @getpid() #9
  %168 = mul nsw i32 %167, 1000
  store i32 %168, ptr %159, align 4, !tbaa !15
  %169 = load i32, ptr %158, align 4, !tbaa !15
  %170 = load ptr, ptr %157, align 8, !tbaa !16
  %171 = getelementptr inbounds i8, ptr %170, i64 8
  %172 = getelementptr inbounds i8, ptr %16, i64 524
  %173 = load i32, ptr %172, align 4, !tbaa !17
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds i8, ptr %171, i64 %174
  br label %176

176:                                              ; preds = %179, %166
  %177 = phi i32 [ %173, %166 ], [ %189, %179 ]
  %.0185 = phi ptr [ %175, %166 ], [ %193, %179 ]
  %178 = icmp slt i32 %177, %169
  br i1 %178, label %179, label %214

179:                                              ; preds = %176
  %180 = load i16, ptr %.0185, align 2, !tbaa !23
  store i16 %180, ptr %7, align 2, !tbaa !23
  %181 = getelementptr inbounds i8, ptr %.0185, i64 2
  %182 = load i16, ptr %181, align 2, !tbaa !23
  %183 = getelementptr inbounds i8, ptr %.0185, i64 8
  %184 = load ptr, ptr %147, align 8, !tbaa !11
  %185 = call ptr @m_MapWrite(ptr noundef %184, ptr noundef nonnull %183, i32 noundef -1, ptr noundef nonnull %7, i32 noundef 2) #9
  %186 = zext i16 %182 to i32
  %187 = add nuw nsw i32 %186, 8
  %188 = load i32, ptr %172, align 4, !tbaa !17
  %189 = add nsw i32 %187, %188
  store i32 %189, ptr %172, align 4, !tbaa !17
  %190 = load ptr, ptr %157, align 8, !tbaa !16
  %191 = getelementptr inbounds i8, ptr %190, i64 8
  %192 = sext i32 %189 to i64
  %193 = getelementptr inbounds i8, ptr %191, i64 %192
  %194 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) %183) #10
  %.not193 = icmp eq i32 %194, 0
  br i1 %.not193, label %195, label %176, !llvm.loop !27

195:                                              ; preds = %179
  %196 = getelementptr inbounds i8, ptr %.0185, i64 4
  %197 = zext i16 %180 to i64
  %198 = getelementptr inbounds i8, ptr %146, i64 %197
  br i1 %143, label %199, label %.thread

199:                                              ; preds = %195
  %200 = load i32, ptr %196, align 4, !tbaa !15
  %201 = icmp eq i32 %200, 0
  %202 = getelementptr inbounds i8, ptr %16, i64 512
  %203 = load i32, ptr %202, align 8, !tbaa !13
  br i1 %201, label %.thread.sink.split, label %204

204:                                              ; preds = %199
  %.not192 = icmp eq i32 %200, %203
  br i1 %.not192, label %.thread, label %205

205:                                              ; preds = %204
  %206 = sdiv i32 %200, 1000
  %207 = call i32 @kill(i32 noundef %206, i32 noundef 0) #9
  %208 = icmp eq i32 %207, 0
  br i1 %208, label %209, label %210

209:                                              ; preds = %205
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str, i32 noundef 719, ptr noundef nonnull @__FUNCTION__.m_ProcVariate, ptr noundef nonnull @.str.22) #9
  br label %210

210:                                              ; preds = %209, %205
  %211 = load i32, ptr %202, align 8, !tbaa !13
  br label %.thread.sink.split

.thread.sink.split:                               ; preds = %199, %210
  %.sink = phi i32 [ %211, %210 ], [ %203, %199 ]
  store i32 %.sink, ptr %196, align 4, !tbaa !15
  br label %.thread

.thread:                                          ; preds = %.thread.sink.split, %195, %204
  %212 = load i32, ptr %154, align 4, !tbaa !14
  %213 = call i32 @flock(i32 noundef %212, i32 noundef 8) #9
  store i32 0, ptr %159, align 4, !tbaa !15
  br label %266

214:                                              ; preds = %176
  %215 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %0) #10
  %216 = trunc i64 %215 to i16
  %217 = and i16 %216, -4
  %218 = add i16 %217, 4
  %219 = zext i16 %218 to i32
  %220 = icmp ugt i16 %218, 128
  br i1 %220, label %221, label %222

221:                                              ; preds = %214
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str, i32 noundef 730, ptr noundef nonnull @__FUNCTION__.m_ProcVariate, ptr noundef nonnull @.str.5) #9
  br label %222

222:                                              ; preds = %221, %214
  %223 = add nsw i32 %1, 7
  %224 = sdiv i32 %223, 8
  %.tr = trunc i32 %224 to i16
  %225 = shl i16 %.tr, 3
  %226 = getelementptr inbounds i8, ptr %16, i64 520
  %227 = load i32, ptr %226, align 8, !tbaa !18
  %228 = call i32 @flock(i32 noundef %227, i32 noundef 2) #9
  %229 = add nuw nsw i32 %219, 8
  %230 = load i32, ptr %172, align 4, !tbaa !17
  %231 = add nsw i32 %229, %230
  store i32 %231, ptr %172, align 4, !tbaa !17
  %232 = icmp sgt i32 %231, 65536
  br i1 %232, label %233, label %234

233:                                              ; preds = %222
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str, i32 noundef 737, ptr noundef nonnull @__FUNCTION__.m_ProcVariate, ptr noundef nonnull @.str.23) #9
  br label %234

234:                                              ; preds = %233, %222
  %235 = load ptr, ptr %144, align 8, !tbaa !19
  %236 = load i32, ptr %235, align 4, !tbaa !15
  %237 = zext i16 %225 to i32
  %238 = add nsw i32 %236, %237
  %239 = icmp sgt i32 %238, 65536
  br i1 %239, label %240, label %241

240:                                              ; preds = %234
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str, i32 noundef 740, ptr noundef nonnull @__FUNCTION__.m_ProcVariate, ptr noundef nonnull @.str.23) #9
  br label %241

241:                                              ; preds = %240, %234
  %242 = trunc i32 %236 to i16
  store i16 %242, ptr %.0185, align 2, !tbaa !23
  %243 = getelementptr inbounds i8, ptr %.0185, i64 2
  store i16 %218, ptr %243, align 2, !tbaa !23
  br i1 %143, label %244, label %247

244:                                              ; preds = %241
  %245 = getelementptr inbounds i8, ptr %16, i64 512
  %246 = load i32, ptr %245, align 8, !tbaa !13
  br label %247

247:                                              ; preds = %241, %244
  %248 = phi i32 [ %246, %244 ], [ 0, %241 ]
  %249 = getelementptr inbounds i8, ptr %.0185, i64 4
  store i32 %248, ptr %249, align 4, !tbaa !15
  %250 = getelementptr inbounds i8, ptr %.0185, i64 8
  %251 = zext i16 %218 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 1 %250, ptr align 1 %0, i64 %251, i1 false)
  store i16 %242, ptr %7, align 2, !tbaa !23
  %252 = and i32 %236, 65535
  %253 = zext nneg i32 %252 to i64
  %254 = getelementptr inbounds i8, ptr %146, i64 %253
  %255 = load ptr, ptr %144, align 8, !tbaa !19
  %256 = getelementptr inbounds i8, ptr %255, i64 %253
  %257 = zext i16 %225 to i64
  call void @llvm.memset.p0.i64(ptr align 1 %256, i8 0, i64 %257, i1 false)
  %258 = load i32, ptr %172, align 4, !tbaa !17
  store i32 %258, ptr %158, align 4, !tbaa !15
  %259 = load ptr, ptr %144, align 8, !tbaa !19
  store i32 %238, ptr %259, align 4, !tbaa !15
  %260 = load i32, ptr %226, align 8, !tbaa !18
  %261 = call i32 @flock(i32 noundef %260, i32 noundef 8) #9
  %262 = load i32, ptr %154, align 4, !tbaa !14
  %263 = call i32 @flock(i32 noundef %262, i32 noundef 8) #9
  store i32 0, ptr %159, align 4, !tbaa !15
  %264 = load ptr, ptr %147, align 8, !tbaa !11
  %265 = call ptr @m_MapWrite(ptr noundef %264, ptr noundef nonnull %250, i32 noundef -1, ptr noundef nonnull %7, i32 noundef 2) #9
  br label %266

266:                                              ; preds = %.thread, %247, %150
  %.3 = phi ptr [ %152, %150 ], [ %254, %247 ], [ %198, %.thread ]
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %7) #9
  ret ptr %.3
}

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

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

declare ptr @m_MapWrite(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 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 #4

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #8

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { nofree "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 = { 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 #5 = { 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 #6 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { 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 #8 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #9 = { nounwind }
attributes #10 = { 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 = !{!12, !10, i64 552}
!12 = !{!"HandleProcVariate", !8, i64 0, !8, i64 256, !7, i64 512, !7, i64 516, !7, i64 520, !7, i64 524, !10, i64 528, !10, i64 536, !10, i64 544, !10, i64 552}
!13 = !{!12, !7, i64 512}
!14 = !{!12, !7, i64 516}
!15 = !{!7, !7, i64 0}
!16 = !{!12, !10, i64 528}
!17 = !{!12, !7, i64 524}
!18 = !{!12, !7, i64 520}
!19 = !{!12, !10, i64 536}
!20 = !{!12, !10, i64 544}
!21 = !{!6, !7, i64 4}
!22 = !{!10, !10, i64 0}
!23 = !{!24, !24, i64 0}
!24 = !{!"short", !8, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = distinct !{!27, !26}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass