; LLVM IR from lfarcaro/ARINC653_ARMV7A_Z7000 :: ARINC653_ARMV7A_Z7000.sw/ARINC653_ARMV7A_Z7000/src/ARINC653 (BUFFER)

; 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._MODULE_INFORMATION_TYPE = type { ptr, %struct._heapRECORD, i32, i32, i32, %struct._CONTEXT_TYPE, i32, ptr, ptr, %struct._HEALTHMONITORINGCALLBACK_INFORMATION_TYPE, i64, i64, i64, %struct._priorityqueueRECORD }
%struct._heapRECORD = type { ptr, i32, i32, i32 }
%struct._CONTEXT_TYPE = type { i32, ptr, ptr, ptr, i32, i8, ptr, ptr, i32, i32, i32, i32 }
%struct._HEALTHMONITORINGCALLBACK_INFORMATION_TYPE = type { i8, ptr, i32, %struct._CONTEXT_TYPE, i8, i8, i8, i8, i32, i32 }
%struct._priorityqueueRECORD = type { ptr, i32, i8, i8 }
%struct._PARTITION_INFORMATION_TYPE = type { i8, ptr, ptr, i32, i32, i32, i32, i8, %struct._heapRECORD, %struct._CONTEXT_TYPE, i32, ptr, ptr, %struct._ERRORHANDLER_INFORMATION_TYPE, %struct._HEALTHMONITORINGCALLBACK_INFORMATION_TYPE, i32, %struct._priorityqueueENTRY, %struct._priorityqueueRECORD, %struct._priorityqueueRECORD, %struct._priorityqueueRECORD, i32, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr }
%struct._ERRORHANDLER_INFORMATION_TYPE = type { i8, ptr, i32, %struct._CONTEXT_TYPE, i8, i8, i8, i8, i32 }
%struct._priorityqueueENTRY = type { i64, i64, ptr, ptr, ptr }
%struct._BUFFER_INFORMATION_TYPE = type { i32, ptr, i32, i32, i32, i32, i32, ptr, ptr, %struct._priorityqueueRECORD }
%struct._PROCESS_INFORMATION_TYPE = type { ptr, ptr, i32, i32, i32, i64, i64, i64, i64, i64, %struct._CONTEXT_TYPE, %struct._priorityqueueENTRY, %struct._priorityqueueENTRY, %struct._priorityqueueENTRY, %struct._priorityqueueENTRY, i8, i8, ptr, i32, ptr, ptr }

@CORE_MODULE_INFORMATION = external global [2 x %struct._MODULE_INFORMATION_TYPE], align 16

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

declare void @ENTER_CORE() #1

declare i32 @PORT_GETCORE() #1

declare void @EXIT_CORE() #1

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

declare void @SIGNAL_RESOURCE(i32 noundef, ptr noundef, i8 noundef zeroext, ptr noundef) #1

declare void @WAIT_RESOURCE(i32 noundef, i32 noundef, ptr noundef, i64 noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local void @RECEIVE_BUFFER(i32 noundef %0, i64 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #2 {
  %6 = alloca i32, align 4
  %7 = alloca i64, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  store i32 %0, ptr %6, align 4, !tbaa !5
  store i64 %1, ptr %7, align 8, !tbaa !9
  store ptr %2, ptr %8, align 8, !tbaa !11
  store ptr %3, ptr %9, align 8, !tbaa !11
  store ptr %4, ptr %10, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  call void @ENTER_CORE()
  %19 = call i32 @PORT_GETCORE()
  %20 = zext i32 %19 to i64
  %21 = getelementptr inbounds [2 x %struct._MODULE_INFORMATION_TYPE], ptr @CORE_MODULE_INFORMATION, i64 0, i64 %20
  store ptr %21, ptr %11, align 8, !tbaa !11
  %22 = load ptr, ptr %11, align 8, !tbaa !11
  %23 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %22, i32 0, i32 8
  %24 = load ptr, ptr %23, align 8, !tbaa !13
  %25 = icmp eq ptr %24, null
  br i1 %25, label %26, label %28

26:                                               ; preds = %5
  %27 = load ptr, ptr %10, align 8, !tbaa !11
  store i32 6, ptr %27, align 4, !tbaa !5
  call void @EXIT_CORE()
  store i32 1, ptr %18, align 4
  br label %257

28:                                               ; preds = %5
  %29 = load ptr, ptr %11, align 8, !tbaa !11
  %30 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %29, i32 0, i32 8
  %31 = load ptr, ptr %30, align 8, !tbaa !13
  %32 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %31, i32 0, i32 12
  %33 = load ptr, ptr %32, align 8, !tbaa !19
  %34 = icmp eq ptr %33, null
  br i1 %34, label %35, label %37

35:                                               ; preds = %28
  %36 = load ptr, ptr %10, align 8, !tbaa !11
  store i32 6, ptr %36, align 4, !tbaa !5
  call void @EXIT_CORE()
  store i32 1, ptr %18, align 4
  br label %257

37:                                               ; preds = %28
  %38 = load i64, ptr %7, align 8, !tbaa !9
  %39 = icmp slt i64 %38, 0
  br i1 %39, label %40, label %45

40:                                               ; preds = %37
  %41 = load i64, ptr %7, align 8, !tbaa !9
  %42 = icmp ne i64 %41, -1
  br i1 %42, label %43, label %45

43:                                               ; preds = %40
  %44 = load ptr, ptr %10, align 8, !tbaa !11
  store i32 4, ptr %44, align 4, !tbaa !5
  call void @EXIT_CORE()
  store i32 1, ptr %18, align 4
  br label %257

45:                                               ; preds = %40, %37
  %46 = load i32, ptr %6, align 4, !tbaa !5
  %47 = load ptr, ptr %11, align 8, !tbaa !11
  %48 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %47, i32 0, i32 8
  %49 = load ptr, ptr %48, align 8, !tbaa !13
  %50 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %49, i32 0, i32 27
  %51 = load i32, ptr %50, align 8, !tbaa !23
  %52 = icmp uge i32 %46, %51
  br i1 %52, label %53, label %55

53:                                               ; preds = %45
  %54 = load ptr, ptr %10, align 8, !tbaa !11
  store i32 4, ptr %54, align 4, !tbaa !5
  call void @EXIT_CORE()
  store i32 1, ptr %18, align 4
  br label %257

55:                                               ; preds = %45
  %56 = load ptr, ptr %11, align 8, !tbaa !11
  %57 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %56, i32 0, i32 8
  %58 = load ptr, ptr %57, align 8, !tbaa !13
  %59 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %58, i32 0, i32 28
  %60 = load ptr, ptr %59, align 8, !tbaa !24
  %61 = load i32, ptr %6, align 4, !tbaa !5
  %62 = zext i32 %61 to i64
  %63 = getelementptr inbounds %struct._BUFFER_INFORMATION_TYPE, ptr %60, i64 %62
  store ptr %63, ptr %12, align 8, !tbaa !11
  %64 = load ptr, ptr %12, align 8, !tbaa !11
  %65 = getelementptr inbounds %struct._BUFFER_INFORMATION_TYPE, ptr %64, i32 0, i32 5
  %66 = load i32, ptr %65, align 4, !tbaa !25
  %67 = icmp ugt i32 %66, 0
  br i1 %67, label %68, label %226

68:                                               ; preds = %55
  %69 = load ptr, ptr %12, align 8, !tbaa !11
  %70 = getelementptr inbounds %struct._BUFFER_INFORMATION_TYPE, ptr %69, i32 0, i32 8
  %71 = load ptr, ptr %70, align 8, !tbaa !27
  %72 = load ptr, ptr %12, align 8, !tbaa !11
  %73 = getelementptr inbounds %struct._BUFFER_INFORMATION_TYPE, ptr %72, i32 0, i32 6
  %74 = load i32, ptr %73, align 8, !tbaa !28
  %75 = zext i32 %74 to i64
  %76 = getelementptr inbounds i32, ptr %71, i64 %75
  %77 = load i32, ptr %76, align 4, !tbaa !5
  %78 = load ptr, ptr %9, align 8, !tbaa !11
  store i32 %77, ptr %78, align 4, !tbaa !5
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %79

79:                                               ; preds = %104, %68
  %80 = load i32, ptr %14, align 4, !tbaa !5
  %81 = load ptr, ptr %9, align 8, !tbaa !11
  %82 = load i32, ptr %81, align 4, !tbaa !5
  %83 = icmp ult i32 %80, %82
  br i1 %83, label %84, label %107

84:                                               ; preds = %79
  %85 = load ptr, ptr %12, align 8, !tbaa !11
  %86 = getelementptr inbounds %struct._BUFFER_INFORMATION_TYPE, ptr %85, i32 0, i32 7
  %87 = load ptr, ptr %86, align 8, !tbaa !29
  %88 = load ptr, ptr %12, align 8, !tbaa !11
  %89 = getelementptr inbounds %struct._BUFFER_INFORMATION_TYPE, ptr %88, i32 0, i32 6
  %90 = load i32, ptr %89, align 8, !tbaa !28
  %91 = load ptr, ptr %12, align 8, !tbaa !11
  %92 = getelementptr inbounds %struct._BUFFER_INFORMATION_TYPE, ptr %91, i32 0, i32 2
  %93 = load i32, ptr %92, align 8, !tbaa !30
  %94 = mul i32 %90, %93
  %95 = load i32, ptr %14, align 4, !tbaa !5
  %96 = add i32 %94, %95
  %97 = zext i32 %96 to i64
  %98 = getelementptr inbounds i8, ptr %87, i64 %97
  %99 = load i8, ptr %98, align 1, !tbaa !31
  %100 = load ptr, ptr %8, align 8, !tbaa !11
  %101 = load i32, ptr %14, align 4, !tbaa !5
  %102 = zext i32 %101 to i64
  %103 = getelementptr inbounds i8, ptr %100, i64 %102
  store i8 %99, ptr %103, align 1, !tbaa !31
  br label %104

104:                                              ; preds = %84
  %105 = load i32, ptr %14, align 4, !tbaa !5
  %106 = add i32 %105, 1
  store i32 %106, ptr %14, align 4, !tbaa !5
  br label %79, !llvm.loop !32

107:                                              ; preds = %79
  %108 = load ptr, ptr %12, align 8, !tbaa !11
  %109 = getelementptr inbounds %struct._BUFFER_INFORMATION_TYPE, ptr %108, i32 0, i32 5
  %110 = load i32, ptr %109, align 4, !tbaa !25
  %111 = add i32 %110, -1
  store i32 %111, ptr %109, align 4, !tbaa !25
  %112 = load ptr, ptr %12, align 8, !tbaa !11
  %113 = getelementptr inbounds %struct._BUFFER_INFORMATION_TYPE, ptr %112, i32 0, i32 6
  %114 = load i32, ptr %113, align 8, !tbaa !28
  %115 = add i32 %114, 1
  store i32 %115, ptr %113, align 8, !tbaa !28
  %116 = load ptr, ptr %12, align 8, !tbaa !11
  %117 = getelementptr inbounds %struct._BUFFER_INFORMATION_TYPE, ptr %116, i32 0, i32 6
  %118 = load i32, ptr %117, align 8, !tbaa !28
  %119 = load ptr, ptr %12, align 8, !tbaa !11
  %120 = getelementptr inbounds %struct._BUFFER_INFORMATION_TYPE, ptr %119, i32 0, i32 3
  %121 = load i32, ptr %120, align 4, !tbaa !34
  %122 = icmp uge i32 %118, %121
  br i1 %122, label %123, label %131

123:                                              ; preds = %107
  %124 = load ptr, ptr %12, align 8, !tbaa !11
  %125 = getelementptr inbounds %struct._BUFFER_INFORMATION_TYPE, ptr %124, i32 0, i32 3
  %126 = load i32, ptr %125, align 4, !tbaa !34
  %127 = load ptr, ptr %12, align 8, !tbaa !11
  %128 = getelementptr inbounds %struct._BUFFER_INFORMATION_TYPE, ptr %127, i32 0, i32 6
  %129 = load i32, ptr %128, align 8, !tbaa !28
  %130 = sub i32 %129, %126
  store i32 %130, ptr %128, align 8, !tbaa !28
  br label %131

131:                                              ; preds = %123, %107
  %132 = load ptr, ptr %12, align 8, !tbaa !11
  %133 = getelementptr inbounds %struct._BUFFER_INFORMATION_TYPE, ptr %132, i32 0, i32 9
  %134 = getelementptr inbounds %struct._priorityqueueRECORD, ptr %133, i32 0, i32 1
  %135 = load i32, ptr %134, align 8, !tbaa !35
  %136 = icmp eq i32 %135, 0
  br i1 %136, label %224, label %137

137:                                              ; preds = %131
  %138 = load ptr, ptr %12, align 8, !tbaa !11
  %139 = getelementptr inbounds %struct._BUFFER_INFORMATION_TYPE, ptr %138, i32 0, i32 9
  %140 = getelementptr inbounds %struct._priorityqueueRECORD, ptr %139, i32 0, i32 0
  %141 = load ptr, ptr %140, align 8, !tbaa !36
  store ptr %141, ptr %15, align 8, !tbaa !11
  %142 = load ptr, ptr %15, align 8, !tbaa !11
  %143 = getelementptr inbounds %struct._priorityqueueENTRY, ptr %142, i32 0, i32 1
  %144 = load i64, ptr %143, align 8, !tbaa !37
  %145 = trunc i64 %144 to i32
  store i32 %145, ptr %16, align 4, !tbaa !5
  %146 = load ptr, ptr %11, align 8, !tbaa !11
  %147 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %146, i32 0, i32 8
  %148 = load ptr, ptr %147, align 8, !tbaa !13
  %149 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %148, i32 0, i32 11
  %150 = load ptr, ptr %149, align 8, !tbaa !38
  %151 = load i32, ptr %16, align 4, !tbaa !5
  %152 = zext i32 %151 to i64
  %153 = getelementptr inbounds %struct._PROCESS_INFORMATION_TYPE, ptr %150, i64 %152
  store ptr %153, ptr %17, align 8, !tbaa !11
  %154 = load ptr, ptr %12, align 8, !tbaa !11
  %155 = getelementptr inbounds %struct._BUFFER_INFORMATION_TYPE, ptr %154, i32 0, i32 6
  %156 = load i32, ptr %155, align 8, !tbaa !28
  %157 = load ptr, ptr %12, align 8, !tbaa !11
  %158 = getelementptr inbounds %struct._BUFFER_INFORMATION_TYPE, ptr %157, i32 0, i32 5
  %159 = load i32, ptr %158, align 4, !tbaa !25
  %160 = add i32 %156, %159
  store i32 %160, ptr %13, align 4, !tbaa !5
  %161 = load i32, ptr %13, align 4, !tbaa !5
  %162 = load ptr, ptr %12, align 8, !tbaa !11
  %163 = getelementptr inbounds %struct._BUFFER_INFORMATION_TYPE, ptr %162, i32 0, i32 3
  %164 = load i32, ptr %163, align 4, !tbaa !34
  %165 = icmp uge i32 %161, %164
  br i1 %165, label %166, label %172

166:                                              ; preds = %137
  %167 = load ptr, ptr %12, align 8, !tbaa !11
  %168 = getelementptr inbounds %struct._BUFFER_INFORMATION_TYPE, ptr %167, i32 0, i32 3
  %169 = load i32, ptr %168, align 4, !tbaa !34
  %170 = load i32, ptr %13, align 4, !tbaa !5
  %171 = sub i32 %170, %169
  store i32 %171, ptr %13, align 4, !tbaa !5
  br label %172

172:                                              ; preds = %166, %137
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %173

173:                                              ; preds = %199, %172
  %174 = load i32, ptr %14, align 4, !tbaa !5
  %175 = load ptr, ptr %17, align 8, !tbaa !11
  %176 = getelementptr inbounds %struct._PROCESS_INFORMATION_TYPE, ptr %175, i32 0, i32 18
  %177 = load i32, ptr %176, align 8, !tbaa !39
  %178 = icmp ult i32 %174, %177
  br i1 %178, label %179, label %202

179:                                              ; preds = %173
  %180 = load ptr, ptr %17, align 8, !tbaa !11
  %181 = getelementptr inbounds %struct._PROCESS_INFORMATION_TYPE, ptr %180, i32 0, i32 17
  %182 = load ptr, ptr %181, align 8, !tbaa !41
  %183 = load i32, ptr %14, align 4, !tbaa !5
  %184 = zext i32 %183 to i64
  %185 = getelementptr inbounds i8, ptr %182, i64 %184
  %186 = load i8, ptr %185, align 1, !tbaa !31
  %187 = load ptr, ptr %12, align 8, !tbaa !11
  %188 = getelementptr inbounds %struct._BUFFER_INFORMATION_TYPE, ptr %187, i32 0, i32 7
  %189 = load ptr, ptr %188, align 8, !tbaa !29
  %190 = load i32, ptr %13, align 4, !tbaa !5
  %191 = load ptr, ptr %12, align 8, !tbaa !11
  %192 = getelementptr inbounds %struct._BUFFER_INFORMATION_TYPE, ptr %191, i32 0, i32 2
  %193 = load i32, ptr %192, align 8, !tbaa !30
  %194 = mul i32 %190, %193
  %195 = load i32, ptr %14, align 4, !tbaa !5
  %196 = add i32 %194, %195
  %197 = zext i32 %196 to i64
  %198 = getelementptr inbounds i8, ptr %189, i64 %197
  store i8 %186, ptr %198, align 1, !tbaa !31
  br label %199

199:                                              ; preds = %179
  %200 = load i32, ptr %14, align 4, !tbaa !5
  %201 = add i32 %200, 1
  store i32 %201, ptr %14, align 4, !tbaa !5
  br label %173, !llvm.loop !42

202:                                              ; preds = %173
  %203 = load ptr, ptr %17, align 8, !tbaa !11
  %204 = getelementptr inbounds %struct._PROCESS_INFORMATION_TYPE, ptr %203, i32 0, i32 18
  %205 = load i32, ptr %204, align 8, !tbaa !39
  %206 = load ptr, ptr %12, align 8, !tbaa !11
  %207 = getelementptr inbounds %struct._BUFFER_INFORMATION_TYPE, ptr %206, i32 0, i32 8
  %208 = load ptr, ptr %207, align 8, !tbaa !27
  %209 = load i32, ptr %13, align 4, !tbaa !5
  %210 = zext i32 %209 to i64
  %211 = getelementptr inbounds i32, ptr %208, i64 %210
  store i32 %205, ptr %211, align 4, !tbaa !5
  %212 = load ptr, ptr %12, align 8, !tbaa !11
  %213 = getelementptr inbounds %struct._BUFFER_INFORMATION_TYPE, ptr %212, i32 0, i32 5
  %214 = load i32, ptr %213, align 4, !tbaa !25
  %215 = add i32 %214, 1
  store i32 %215, ptr %213, align 4, !tbaa !25
  %216 = load ptr, ptr %11, align 8, !tbaa !11
  %217 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %216, i32 0, i32 8
  %218 = load ptr, ptr %217, align 8, !tbaa !13
  %219 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %218, i32 0, i32 3
  %220 = load i32, ptr %219, align 8, !tbaa !43
  %221 = load ptr, ptr %12, align 8, !tbaa !11
  %222 = getelementptr inbounds %struct._BUFFER_INFORMATION_TYPE, ptr %221, i32 0, i32 9
  %223 = load ptr, ptr %10, align 8, !tbaa !11
  call void @SIGNAL_RESOURCE(i32 noundef %220, ptr noundef %222, i8 noundef zeroext 1, ptr noundef %223)
  br label %224

224:                                              ; preds = %202, %131
  %225 = load ptr, ptr %10, align 8, !tbaa !11
  store i32 1, ptr %225, align 4, !tbaa !5
  call void @EXIT_CORE()
  store i32 1, ptr %18, align 4
  br label %257

226:                                              ; preds = %55
  %227 = load ptr, ptr %8, align 8, !tbaa !11
  %228 = load ptr, ptr %11, align 8, !tbaa !11
  %229 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %228, i32 0, i32 8
  %230 = load ptr, ptr %229, align 8, !tbaa !13
  %231 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %230, i32 0, i32 12
  %232 = load ptr, ptr %231, align 8, !tbaa !19
  %233 = getelementptr inbounds %struct._PROCESS_INFORMATION_TYPE, ptr %232, i32 0, i32 19
  store ptr %227, ptr %233, align 8, !tbaa !44
  %234 = load ptr, ptr %9, align 8, !tbaa !11
  %235 = load ptr, ptr %11, align 8, !tbaa !11
  %236 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %235, i32 0, i32 8
  %237 = load ptr, ptr %236, align 8, !tbaa !13
  %238 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %237, i32 0, i32 12
  %239 = load ptr, ptr %238, align 8, !tbaa !19
  %240 = getelementptr inbounds %struct._PROCESS_INFORMATION_TYPE, ptr %239, i32 0, i32 20
  store ptr %234, ptr %240, align 8, !tbaa !45
  %241 = load ptr, ptr %11, align 8, !tbaa !11
  %242 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %241, i32 0, i32 8
  %243 = load ptr, ptr %242, align 8, !tbaa !13
  %244 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %243, i32 0, i32 3
  %245 = load i32, ptr %244, align 8, !tbaa !43
  %246 = load ptr, ptr %11, align 8, !tbaa !11
  %247 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %246, i32 0, i32 8
  %248 = load ptr, ptr %247, align 8, !tbaa !13
  %249 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %248, i32 0, i32 12
  %250 = load ptr, ptr %249, align 8, !tbaa !19
  %251 = getelementptr inbounds %struct._PROCESS_INFORMATION_TYPE, ptr %250, i32 0, i32 2
  %252 = load i32, ptr %251, align 8, !tbaa !46
  %253 = load ptr, ptr %12, align 8, !tbaa !11
  %254 = getelementptr inbounds %struct._BUFFER_INFORMATION_TYPE, ptr %253, i32 0, i32 9
  %255 = load i64, ptr %7, align 8, !tbaa !9
  %256 = load ptr, ptr %10, align 8, !tbaa !11
  call void @WAIT_RESOURCE(i32 noundef %245, i32 noundef %252, ptr noundef %254, i64 noundef %255, ptr noundef %256)
  call void @EXIT_CORE()
  store i32 0, ptr %18, align 4
  br label %257

257:                                              ; preds = %226, %224, %53, %43, %35, %26
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  %258 = load i32, ptr %18, align 4
  switch i32 %258, label %260 [
    i32 0, label %259
    i32 1, label %259
  ]

259:                                              ; preds = %257, %257
  ret void

260:                                              ; preds = %257
  unreachable
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { 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 #3 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !12, i64 136}
!14 = !{!"_MODULE_INFORMATION_TYPE", !12, i64 0, !15, i64 8, !6, i64 32, !6, i64 36, !6, i64 40, !16, i64 48, !6, i64 120, !12, i64 128, !12, i64 136, !17, i64 144, !10, i64 256, !10, i64 264, !10, i64 272, !18, i64 280}
!15 = !{!"_heapRECORD", !12, i64 0, !6, i64 8, !6, i64 12, !6, i64 16}
!16 = !{!"_CONTEXT_TYPE", !6, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !6, i64 32, !7, i64 36, !12, i64 40, !12, i64 48, !6, i64 56, !6, i64 60, !6, i64 64, !6, i64 68}
!17 = !{!"_HEALTHMONITORINGCALLBACK_INFORMATION_TYPE", !7, i64 0, !12, i64 8, !6, i64 16, !16, i64 24, !7, i64 96, !7, i64 97, !7, i64 98, !7, i64 99, !6, i64 100, !6, i64 104}
!18 = !{!"_priorityqueueRECORD", !12, i64 0, !6, i64 8, !7, i64 12, !7, i64 13}
!19 = !{!20, !12, i64 160}
!20 = !{!"_PARTITION_INFORMATION_TYPE", !7, i64 0, !12, i64 8, !12, i64 16, !6, i64 24, !6, i64 28, !6, i64 32, !6, i64 36, !7, i64 40, !15, i64 48, !16, i64 72, !6, i64 144, !12, i64 152, !12, i64 160, !21, i64 168, !17, i64 272, !6, i64 384, !22, i64 392, !18, i64 432, !18, i64 448, !18, i64 464, !6, i64 480, !6, i64 484, !12, i64 488, !6, i64 496, !12, i64 504, !6, i64 512, !12, i64 520, !6, i64 528, !12, i64 536, !6, i64 544, !12, i64 552, !6, i64 560, !12, i64 568, !6, i64 576, !12, i64 584}
!21 = !{!"_ERRORHANDLER_INFORMATION_TYPE", !7, i64 0, !12, i64 8, !6, i64 16, !16, i64 24, !7, i64 96, !7, i64 97, !7, i64 98, !7, i64 99, !6, i64 100}
!22 = !{!"_priorityqueueENTRY", !10, i64 0, !10, i64 8, !12, i64 16, !12, i64 24, !12, i64 32}
!23 = !{!20, !6, i64 528}
!24 = !{!20, !12, i64 536}
!25 = !{!26, !6, i64 28}
!26 = !{!"_BUFFER_INFORMATION_TYPE", !6, i64 0, !12, i64 8, !6, i64 16, !6, i64 20, !6, i64 24, !6, i64 28, !6, i64 32, !12, i64 40, !12, i64 48, !18, i64 56}
!27 = !{!26, !12, i64 48}
!28 = !{!26, !6, i64 32}
!29 = !{!26, !12, i64 40}
!30 = !{!26, !6, i64 16}
!31 = !{!7, !7, i64 0}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.mustprogress"}
!34 = !{!26, !6, i64 20}
!35 = !{!26, !6, i64 64}
!36 = !{!26, !12, i64 56}
!37 = !{!22, !10, i64 8}
!38 = !{!20, !12, i64 152}
!39 = !{!40, !6, i64 320}
!40 = !{!"_PROCESS_INFORMATION_TYPE", !12, i64 0, !12, i64 8, !6, i64 16, !6, i64 20, !6, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !16, i64 72, !22, i64 144, !22, i64 184, !22, i64 224, !22, i64 264, !7, i64 304, !7, i64 305, !12, i64 312, !6, i64 320, !12, i64 328, !12, i64 336}
!41 = !{!40, !12, i64 312}
!42 = distinct !{!42, !33}
!43 = !{!20, !6, i64 24}
!44 = !{!40, !12, i64 328}
!45 = !{!40, !12, i64 336}
!46 = !{!40, !6, i64 16}


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

%struct._MODULE_INFORMATION_TYPE = type { ptr, %struct._heapRECORD, i32, i32, i32, %struct._CONTEXT_TYPE, i32, ptr, ptr, %struct._HEALTHMONITORINGCALLBACK_INFORMATION_TYPE, i64, i64, i64, %struct._priorityqueueRECORD }
%struct._heapRECORD = type { ptr, i32, i32, i32 }
%struct._CONTEXT_TYPE = type { i32, ptr, ptr, ptr, i32, i8, ptr, ptr, i32, i32, i32, i32 }
%struct._HEALTHMONITORINGCALLBACK_INFORMATION_TYPE = type { i8, ptr, i32, %struct._CONTEXT_TYPE, i8, i8, i8, i8, i32, i32 }
%struct._priorityqueueRECORD = type { ptr, i32, i8, i8 }
%struct._BUFFER_INFORMATION_TYPE = type { i32, ptr, i32, i32, i32, i32, i32, ptr, ptr, %struct._priorityqueueRECORD }
%struct._PROCESS_INFORMATION_TYPE = type { ptr, ptr, i32, i32, i32, i64, i64, i64, i64, i64, %struct._CONTEXT_TYPE, %struct._priorityqueueENTRY, %struct._priorityqueueENTRY, %struct._priorityqueueENTRY, %struct._priorityqueueENTRY, i8, i8, ptr, i32, ptr, ptr }
%struct._priorityqueueENTRY = type { i64, i64, ptr, ptr, ptr }

@CORE_MODULE_INFORMATION = external local_unnamed_addr global [2 x %struct._MODULE_INFORMATION_TYPE], align 16

declare void @ENTER_CORE() local_unnamed_addr #0

declare i32 @PORT_GETCORE() local_unnamed_addr #0

declare void @EXIT_CORE() local_unnamed_addr #0

declare void @SIGNAL_RESOURCE(i32 noundef, ptr noundef, i8 noundef zeroext, ptr noundef) local_unnamed_addr #0

declare void @WAIT_RESOURCE(i32 noundef, i32 noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local void @RECEIVE_BUFFER(i32 noundef %0, i64 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) local_unnamed_addr #1 {
  tail call void @ENTER_CORE() #2
  %6 = tail call i32 @PORT_GETCORE() #2
  %7 = zext i32 %6 to i64
  %8 = getelementptr inbounds [2 x %struct._MODULE_INFORMATION_TYPE], ptr @CORE_MODULE_INFORMATION, i64 0, i64 %7, i32 8
  %9 = load ptr, ptr %8, align 8, !tbaa !5
  %10 = icmp eq ptr %9, null
  br i1 %10, label %11, label %12

11:                                               ; preds = %5
  store i32 6, ptr %4, align 4, !tbaa !16
  br label %115

12:                                               ; preds = %5
  %13 = getelementptr inbounds i8, ptr %9, i64 160
  %14 = load ptr, ptr %13, align 8, !tbaa !17
  %15 = icmp eq ptr %14, null
  br i1 %15, label %16, label %17

16:                                               ; preds = %12
  store i32 6, ptr %4, align 4, !tbaa !16
  br label %115

17:                                               ; preds = %12
  %or.cond = icmp slt i64 %1, -1
  br i1 %or.cond, label %18, label %19

18:                                               ; preds = %17
  store i32 4, ptr %4, align 4, !tbaa !16
  br label %115

19:                                               ; preds = %17
  %20 = getelementptr inbounds i8, ptr %9, i64 528
  %21 = load i32, ptr %20, align 8, !tbaa !21
  %.not = icmp ugt i32 %21, %0
  br i1 %.not, label %23, label %22

22:                                               ; preds = %19
  store i32 4, ptr %4, align 4, !tbaa !16
  br label %115

23:                                               ; preds = %19
  %24 = getelementptr inbounds i8, ptr %9, i64 536
  %25 = load ptr, ptr %24, align 8, !tbaa !22
  %26 = zext i32 %0 to i64
  %27 = getelementptr inbounds %struct._BUFFER_INFORMATION_TYPE, ptr %25, i64 %26
  %28 = getelementptr inbounds i8, ptr %27, i64 28
  %29 = load i32, ptr %28, align 4, !tbaa !23
  %.not78 = icmp eq i32 %29, 0
  br i1 %.not78, label %107, label %30

30:                                               ; preds = %23
  %31 = getelementptr inbounds i8, ptr %27, i64 48
  %32 = load ptr, ptr %31, align 8, !tbaa !25
  %33 = getelementptr inbounds i8, ptr %27, i64 32
  %34 = load i32, ptr %33, align 8, !tbaa !26
  %35 = zext i32 %34 to i64
  %36 = getelementptr inbounds i32, ptr %32, i64 %35
  %37 = load i32, ptr %36, align 4, !tbaa !16
  store i32 %37, ptr %3, align 4, !tbaa !16
  %.not86 = icmp eq i32 %37, 0
  br i1 %.not86, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %30
  %38 = getelementptr inbounds i8, ptr %27, i64 40
  %39 = getelementptr inbounds i8, ptr %27, i64 16
  br label %40

40:                                               ; preds = %.lr.ph, %40
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %40 ]
  %41 = load ptr, ptr %38, align 8, !tbaa !27
  %42 = load i32, ptr %33, align 8, !tbaa !26
  %43 = load i32, ptr %39, align 8, !tbaa !28
  %44 = mul i32 %43, %42
  %45 = trunc nuw i64 %indvars.iv to i32
  %46 = add i32 %44, %45
  %47 = zext i32 %46 to i64
  %48 = getelementptr inbounds i8, ptr %41, i64 %47
  %49 = load i8, ptr %48, align 1, !tbaa !29
  %50 = getelementptr inbounds i8, ptr %2, i64 %indvars.iv
  store i8 %49, ptr %50, align 1, !tbaa !29
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %51 = load i32, ptr %3, align 4, !tbaa !16
  %52 = zext i32 %51 to i64
  %53 = icmp ult i64 %indvars.iv.next, %52
  br i1 %53, label %40, label %._crit_edge, !llvm.loop !30

._crit_edge:                                      ; preds = %40, %30
  %54 = load i32, ptr %28, align 4, !tbaa !23
  %55 = add i32 %54, -1
  store i32 %55, ptr %28, align 4, !tbaa !23
  %56 = load i32, ptr %33, align 8, !tbaa !26
  %57 = add i32 %56, 1
  store i32 %57, ptr %33, align 8, !tbaa !26
  %58 = getelementptr inbounds i8, ptr %27, i64 20
  %59 = load i32, ptr %58, align 4, !tbaa !32
  %.not79 = icmp ult i32 %57, %59
  br i1 %.not79, label %62, label %60

60:                                               ; preds = %._crit_edge
  %61 = sub i32 %57, %59
  store i32 %61, ptr %33, align 8, !tbaa !26
  br label %62

62:                                               ; preds = %60, %._crit_edge
  %63 = phi i32 [ %61, %60 ], [ %57, %._crit_edge ]
  %64 = getelementptr inbounds i8, ptr %27, i64 56
  %65 = getelementptr inbounds i8, ptr %27, i64 64
  %66 = load i32, ptr %65, align 8, !tbaa !33
  %67 = icmp eq i32 %66, 0
  br i1 %67, label %106, label %68

68:                                               ; preds = %62
  %69 = load ptr, ptr %64, align 8, !tbaa !34
  %70 = getelementptr inbounds i8, ptr %69, i64 8
  %71 = load i64, ptr %70, align 8, !tbaa !35
  %72 = load ptr, ptr %8, align 8, !tbaa !5
  %73 = getelementptr inbounds i8, ptr %72, i64 152
  %74 = load ptr, ptr %73, align 8, !tbaa !36
  %75 = and i64 %71, 4294967295
  %76 = getelementptr inbounds %struct._PROCESS_INFORMATION_TYPE, ptr %74, i64 %75
  %77 = add i32 %63, %55
  %.not80 = icmp ult i32 %77, %59
  %78 = select i1 %.not80, i32 0, i32 %59
  %spec.select = sub i32 %77, %78
  %79 = getelementptr inbounds i8, ptr %76, i64 320
  %80 = load i32, ptr %79, align 8, !tbaa !37
  %.not87 = icmp eq i32 %80, 0
  br i1 %.not87, label %._crit_edge85, label %.lr.ph84

.lr.ph84:                                         ; preds = %68
  %81 = getelementptr inbounds i8, ptr %76, i64 312
  %82 = getelementptr inbounds i8, ptr %27, i64 40
  %83 = getelementptr inbounds i8, ptr %27, i64 16
  br label %84

84:                                               ; preds = %.lr.ph84, %84
  %indvars.iv90 = phi i64 [ 0, %.lr.ph84 ], [ %indvars.iv.next91, %84 ]
  %85 = load ptr, ptr %81, align 8, !tbaa !39
  %86 = getelementptr inbounds i8, ptr %85, i64 %indvars.iv90
  %87 = load i8, ptr %86, align 1, !tbaa !29
  %88 = load ptr, ptr %82, align 8, !tbaa !27
  %89 = load i32, ptr %83, align 8, !tbaa !28
  %90 = mul i32 %89, %spec.select
  %91 = trunc nuw i64 %indvars.iv90 to i32
  %92 = add i32 %90, %91
  %93 = zext i32 %92 to i64
  %94 = getelementptr inbounds i8, ptr %88, i64 %93
  store i8 %87, ptr %94, align 1, !tbaa !29
  %indvars.iv.next91 = add nuw nsw i64 %indvars.iv90, 1
  %95 = load i32, ptr %79, align 8, !tbaa !37
  %96 = zext i32 %95 to i64
  %97 = icmp ult i64 %indvars.iv.next91, %96
  br i1 %97, label %84, label %._crit_edge85.loopexit, !llvm.loop !40

._crit_edge85.loopexit:                           ; preds = %84
  %.pre = load ptr, ptr %8, align 8, !tbaa !5
  br label %._crit_edge85

._crit_edge85:                                    ; preds = %._crit_edge85.loopexit, %68
  %98 = phi ptr [ %72, %68 ], [ %.pre, %._crit_edge85.loopexit ]
  %.lcssa = phi i32 [ 0, %68 ], [ %95, %._crit_edge85.loopexit ]
  %99 = load ptr, ptr %31, align 8, !tbaa !25
  %100 = zext i32 %spec.select to i64
  %101 = getelementptr inbounds i32, ptr %99, i64 %100
  store i32 %.lcssa, ptr %101, align 4, !tbaa !16
  %102 = load i32, ptr %28, align 4, !tbaa !23
  %103 = add i32 %102, 1
  store i32 %103, ptr %28, align 4, !tbaa !23
  %104 = getelementptr inbounds i8, ptr %98, i64 24
  %105 = load i32, ptr %104, align 8, !tbaa !41
  tail call void @SIGNAL_RESOURCE(i32 noundef %105, ptr noundef nonnull %64, i8 noundef zeroext 1, ptr noundef %4) #2
  br label %106

106:                                              ; preds = %._crit_edge85, %62
  store i32 1, ptr %4, align 4, !tbaa !16
  br label %115

107:                                              ; preds = %23
  %108 = getelementptr inbounds i8, ptr %14, i64 328
  store ptr %2, ptr %108, align 8, !tbaa !42
  %109 = getelementptr inbounds i8, ptr %14, i64 336
  store ptr %3, ptr %109, align 8, !tbaa !43
  %110 = getelementptr inbounds i8, ptr %9, i64 24
  %111 = load i32, ptr %110, align 8, !tbaa !41
  %112 = getelementptr inbounds i8, ptr %14, i64 16
  %113 = load i32, ptr %112, align 8, !tbaa !44
  %114 = getelementptr inbounds i8, ptr %27, i64 56
  tail call void @WAIT_RESOURCE(i32 noundef %111, i32 noundef %113, ptr noundef nonnull %114, i64 noundef %1, ptr noundef %4) #2
  br label %115

115:                                              ; preds = %107, %106, %22, %18, %16, %11
  tail call void @EXIT_CORE() #2
  ret void
}

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }

!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, !7, i64 136}
!6 = !{!"_MODULE_INFORMATION_TYPE", !7, i64 0, !10, i64 8, !11, i64 32, !11, i64 36, !11, i64 40, !12, i64 48, !11, i64 120, !7, i64 128, !7, i64 136, !13, i64 144, !14, i64 256, !14, i64 264, !14, i64 272, !15, i64 280}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"_heapRECORD", !7, i64 0, !11, i64 8, !11, i64 12, !11, i64 16}
!11 = !{!"int", !8, i64 0}
!12 = !{!"_CONTEXT_TYPE", !11, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !11, i64 32, !8, i64 36, !7, i64 40, !7, i64 48, !11, i64 56, !11, i64 60, !11, i64 64, !11, i64 68}
!13 = !{!"_HEALTHMONITORINGCALLBACK_INFORMATION_TYPE", !8, i64 0, !7, i64 8, !11, i64 16, !12, i64 24, !8, i64 96, !8, i64 97, !8, i64 98, !8, i64 99, !11, i64 100, !11, i64 104}
!14 = !{!"long long", !8, i64 0}
!15 = !{!"_priorityqueueRECORD", !7, i64 0, !11, i64 8, !8, i64 12, !8, i64 13}
!16 = !{!11, !11, i64 0}
!17 = !{!18, !7, i64 160}
!18 = !{!"_PARTITION_INFORMATION_TYPE", !8, i64 0, !7, i64 8, !7, i64 16, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !8, i64 40, !10, i64 48, !12, i64 72, !11, i64 144, !7, i64 152, !7, i64 160, !19, i64 168, !13, i64 272, !11, i64 384, !20, i64 392, !15, i64 432, !15, i64 448, !15, i64 464, !11, i64 480, !11, i64 484, !7, i64 488, !11, i64 496, !7, i64 504, !11, i64 512, !7, i64 520, !11, i64 528, !7, i64 536, !11, i64 544, !7, i64 552, !11, i64 560, !7, i64 568, !11, i64 576, !7, i64 584}
!19 = !{!"_ERRORHANDLER_INFORMATION_TYPE", !8, i64 0, !7, i64 8, !11, i64 16, !12, i64 24, !8, i64 96, !8, i64 97, !8, i64 98, !8, i64 99, !11, i64 100}
!20 = !{!"_priorityqueueENTRY", !14, i64 0, !14, i64 8, !7, i64 16, !7, i64 24, !7, i64 32}
!21 = !{!18, !11, i64 528}
!22 = !{!18, !7, i64 536}
!23 = !{!24, !11, i64 28}
!24 = !{!"_BUFFER_INFORMATION_TYPE", !11, i64 0, !7, i64 8, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !7, i64 40, !7, i64 48, !15, i64 56}
!25 = !{!24, !7, i64 48}
!26 = !{!24, !11, i64 32}
!27 = !{!24, !7, i64 40}
!28 = !{!24, !11, i64 16}
!29 = !{!8, !8, i64 0}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}
!32 = !{!24, !11, i64 20}
!33 = !{!24, !11, i64 64}
!34 = !{!24, !7, i64 56}
!35 = !{!20, !14, i64 8}
!36 = !{!18, !7, i64 152}
!37 = !{!38, !11, i64 320}
!38 = !{!"_PROCESS_INFORMATION_TYPE", !7, i64 0, !7, i64 8, !11, i64 16, !11, i64 20, !11, i64 24, !14, i64 32, !14, i64 40, !14, i64 48, !14, i64 56, !14, i64 64, !12, i64 72, !20, i64 144, !20, i64 184, !20, i64 224, !20, i64 264, !8, i64 304, !8, i64 305, !7, i64 312, !11, i64 320, !7, i64 328, !7, i64 336}
!39 = !{!38, !7, i64 312}
!40 = distinct !{!40, !31}
!41 = !{!18, !11, i64 24}
!42 = !{!38, !7, i64 328}
!43 = !{!38, !7, i64 336}
!44 = !{!38, !11, i64 16}


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