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

; 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._PARTITION_CONFIGURATION_TYPE = type { i32, ptr, i32, i32, i32, i32, i32, i32, i32, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, ptr, i32, ptr, ptr }
%struct._PROCESS_ATTRIBUTE_TYPE = type { ptr, ptr, i32, i32, i64, i64, i32 }
%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._PROCESS_CONFIGURATION_TYPE = type { ptr, ptr, i32, 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

; Function Attrs: nounwind uwtable
declare dso_local void @GET_PROCESS_ID(ptr noundef, ptr noundef, ptr noundef) #2

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

19:                                               ; preds = %3
  %20 = load ptr, ptr %6, align 8, !tbaa !5
  store i32 6, ptr %20, align 4, !tbaa !17
  call void @EXIT_CORE()
  store i32 1, ptr %11, align 4
  br label %266

21:                                               ; preds = %3
  %22 = load ptr, ptr %7, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %22, i32 0, i32 8
  %24 = load ptr, ptr %23, align 8, !tbaa !9
  %25 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %24, i32 0, i32 4
  %26 = load i32, ptr %25, align 4, !tbaa !18
  %27 = icmp eq i32 %26, 4
  br i1 %27, label %28, label %30

28:                                               ; preds = %21
  %29 = load ptr, ptr %6, align 8, !tbaa !5
  store i32 6, ptr %29, align 4, !tbaa !17
  call void @EXIT_CORE()
  store i32 1, ptr %11, align 4
  br label %266

30:                                               ; preds = %21
  %31 = load ptr, ptr %7, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %31, i32 0, i32 8
  %33 = load ptr, ptr %32, align 8, !tbaa !9
  %34 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %33, i32 0, i32 10
  %35 = load i32, ptr %34, align 8, !tbaa !22
  store i32 %35, ptr %8, align 4, !tbaa !17
  %36 = load i32, ptr %8, align 4, !tbaa !17
  %37 = load ptr, ptr %7, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %37, i32 0, i32 8
  %39 = load ptr, ptr %38, align 8, !tbaa !9
  %40 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %39, i32 0, i32 2
  %41 = load ptr, ptr %40, align 8, !tbaa !23
  %42 = getelementptr inbounds %struct._PARTITION_CONFIGURATION_TYPE, ptr %41, i32 0, i32 2
  %43 = load i32, ptr %42, align 8, !tbaa !24
  %44 = icmp uge i32 %36, %43
  br i1 %44, label %45, label %47

45:                                               ; preds = %30
  %46 = load ptr, ptr %6, align 8, !tbaa !5
  store i32 5, ptr %46, align 4, !tbaa !17
  call void @EXIT_CORE()
  store i32 1, ptr %11, align 4
  br label %266

47:                                               ; preds = %30
  %48 = load ptr, ptr %4, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct._PROCESS_ATTRIBUTE_TYPE, ptr %48, i32 0, i32 0
  %50 = load ptr, ptr %49, align 8, !tbaa !26
  %51 = load ptr, ptr %6, align 8, !tbaa !5
  call void @GET_PROCESS_ID(ptr noundef %50, ptr noundef %8, ptr noundef %51)
  %52 = load ptr, ptr %6, align 8, !tbaa !5
  %53 = load i32, ptr %52, align 4, !tbaa !17
  %54 = icmp eq i32 %53, 1
  br i1 %54, label %55, label %57

55:                                               ; preds = %47
  %56 = load ptr, ptr %6, align 8, !tbaa !5
  store i32 2, ptr %56, align 4, !tbaa !17
  call void @EXIT_CORE()
  store i32 1, ptr %11, align 4
  br label %266

57:                                               ; preds = %47
  %58 = load ptr, ptr %4, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct._PROCESS_ATTRIBUTE_TYPE, ptr %58, i32 0, i32 3
  %60 = load i32, ptr %59, align 4, !tbaa !28
  %61 = icmp ult i32 %60, 1
  br i1 %61, label %67, label %62

62:                                               ; preds = %57
  %63 = load ptr, ptr %4, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct._PROCESS_ATTRIBUTE_TYPE, ptr %63, i32 0, i32 3
  %65 = load i32, ptr %64, align 4, !tbaa !28
  %66 = icmp ugt i32 %65, 63
  br i1 %66, label %67, label %69

67:                                               ; preds = %62, %57
  %68 = load ptr, ptr %6, align 8, !tbaa !5
  store i32 4, ptr %68, align 4, !tbaa !17
  call void @EXIT_CORE()
  store i32 1, ptr %11, align 4
  br label %266

69:                                               ; preds = %62
  %70 = load ptr, ptr %4, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct._PROCESS_ATTRIBUTE_TYPE, ptr %70, i32 0, i32 4
  %72 = load i64, ptr %71, align 8, !tbaa !29
  %73 = srem i64 %72, 1000000
  %74 = icmp ne i64 %73, 0
  br i1 %74, label %75, label %77

75:                                               ; preds = %69
  %76 = load ptr, ptr %6, align 8, !tbaa !5
  store i32 5, ptr %76, align 4, !tbaa !17
  call void @EXIT_CORE()
  store i32 1, ptr %11, align 4
  br label %266

77:                                               ; preds = %69
  %78 = load ptr, ptr %4, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct._PROCESS_ATTRIBUTE_TYPE, ptr %78, i32 0, i32 5
  %80 = load i64, ptr %79, align 8, !tbaa !30
  %81 = icmp ne i64 %80, -1
  br i1 %81, label %82, label %91

82:                                               ; preds = %77
  %83 = load ptr, ptr %4, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct._PROCESS_ATTRIBUTE_TYPE, ptr %83, i32 0, i32 5
  %85 = load i64, ptr %84, align 8, !tbaa !30
  %86 = srem i64 %85, 1000000
  %87 = icmp ne i64 %86, 0
  br i1 %87, label %88, label %90

88:                                               ; preds = %82
  %89 = load ptr, ptr %6, align 8, !tbaa !5
  store i32 4, ptr %89, align 4, !tbaa !17
  call void @EXIT_CORE()
  store i32 1, ptr %11, align 4
  br label %266

90:                                               ; preds = %82
  br label %91

91:                                               ; preds = %90, %77
  %92 = load ptr, ptr %7, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %92, i32 0, i32 8
  %94 = load ptr, ptr %93, align 8, !tbaa !9
  %95 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %94, i32 0, i32 11
  %96 = load ptr, ptr %95, align 8, !tbaa !31
  %97 = load i32, ptr %8, align 4, !tbaa !17
  %98 = zext i32 %97 to i64
  %99 = getelementptr inbounds %struct._PROCESS_INFORMATION_TYPE, ptr %96, i64 %98
  store ptr %99, ptr %9, align 8, !tbaa !5
  %100 = load ptr, ptr %7, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %100, i32 0, i32 8
  %102 = load ptr, ptr %101, align 8, !tbaa !9
  %103 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %102, i32 0, i32 2
  %104 = load ptr, ptr %103, align 8, !tbaa !23
  %105 = load ptr, ptr %4, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct._PROCESS_ATTRIBUTE_TYPE, ptr %105, i32 0, i32 0
  %107 = load ptr, ptr %106, align 8, !tbaa !26
  %108 = call ptr @CONFIGURATION_GETPROCESSCONFIGURATION(ptr noundef %104, ptr noundef %107)
  store ptr %108, ptr %10, align 8, !tbaa !5
  %109 = load ptr, ptr %10, align 8, !tbaa !5
  %110 = icmp eq ptr %109, null
  br i1 %110, label %111, label %113

111:                                              ; preds = %91
  %112 = load ptr, ptr %6, align 8, !tbaa !5
  store i32 5, ptr %112, align 4, !tbaa !17
  call void @EXIT_CORE()
  store i32 1, ptr %11, align 4
  br label %266

113:                                              ; preds = %91
  %114 = load ptr, ptr %10, align 8, !tbaa !5
  %115 = load ptr, ptr %9, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct._PROCESS_INFORMATION_TYPE, ptr %115, i32 0, i32 1
  store ptr %114, ptr %116, align 8, !tbaa !32
  %117 = load ptr, ptr %7, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %117, i32 0, i32 8
  %119 = load ptr, ptr %118, align 8, !tbaa !9
  %120 = load ptr, ptr %9, align 8, !tbaa !5
  %121 = call zeroext i8 @PORT_HOOK_BEFORE_CREATE_PROCESS(ptr noundef %119, ptr noundef %120)
  %122 = icmp ne i8 %121, 0
  br i1 %122, label %125, label %123

123:                                              ; preds = %113
  %124 = load ptr, ptr %6, align 8, !tbaa !5
  store i32 5, ptr %124, align 4, !tbaa !17
  call void @EXIT_CORE()
  store i32 1, ptr %11, align 4
  br label %266

125:                                              ; preds = %113
  %126 = load ptr, ptr %7, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %126, i32 0, i32 1
  %128 = load ptr, ptr %9, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct._PROCESS_INFORMATION_TYPE, ptr %128, i32 0, i32 10
  %130 = getelementptr inbounds %struct._CONTEXT_TYPE, ptr %129, i32 0, i32 3
  call void @HEAP_ALLOCATE(ptr noundef %127, ptr noundef %130, i32 noundef 352, i8 noundef zeroext 0)
  %131 = load ptr, ptr %9, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct._PROCESS_INFORMATION_TYPE, ptr %131, i32 0, i32 10
  %133 = getelementptr inbounds %struct._CONTEXT_TYPE, ptr %132, i32 0, i32 3
  %134 = load ptr, ptr %133, align 8, !tbaa !34
  %135 = icmp eq ptr %134, null
  br i1 %135, label %136, label %138

136:                                              ; preds = %125
  %137 = load ptr, ptr %6, align 8, !tbaa !5
  store i32 5, ptr %137, align 4, !tbaa !17
  call void @EXIT_CORE()
  store i32 1, ptr %11, align 4
  br label %266

138:                                              ; preds = %125
  %139 = load ptr, ptr %7, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %139, i32 0, i32 8
  %141 = load ptr, ptr %140, align 8, !tbaa !9
  %142 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %141, i32 0, i32 0
  %143 = load i8, ptr %142, align 8, !tbaa !35
  %144 = icmp ne i8 %143, 0
  br i1 %144, label %151, label %145

145:                                              ; preds = %138
  %146 = load ptr, ptr %9, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct._PROCESS_INFORMATION_TYPE, ptr %146, i32 0, i32 10
  call void @PORT_INITIALIZECONTEXT(ptr noundef %147)
  %148 = load ptr, ptr %9, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct._PROCESS_INFORMATION_TYPE, ptr %148, i32 0, i32 10
  %150 = getelementptr inbounds %struct._CONTEXT_TYPE, ptr %149, i32 0, i32 10
  store i32 8, ptr %150, align 8, !tbaa !36
  br label %151

151:                                              ; preds = %145, %138
  %152 = load ptr, ptr %10, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct._PROCESS_CONFIGURATION_TYPE, ptr %152, i32 0, i32 1
  %154 = load ptr, ptr %153, align 8, !tbaa !37
  %155 = icmp eq ptr %154, null
  br i1 %155, label %161, label %156

156:                                              ; preds = %151
  %157 = load ptr, ptr %10, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct._PROCESS_CONFIGURATION_TYPE, ptr %157, i32 0, i32 2
  %159 = load i32, ptr %158, align 8, !tbaa !39
  %160 = icmp eq i32 %159, 0
  br i1 %160, label %161, label %163

161:                                              ; preds = %156, %151
  %162 = load ptr, ptr %6, align 8, !tbaa !5
  store i32 5, ptr %162, align 4, !tbaa !17
  call void @EXIT_CORE()
  store i32 1, ptr %11, align 4
  br label %266

163:                                              ; preds = %156
  %164 = load ptr, ptr %4, align 8, !tbaa !5
  %165 = load ptr, ptr %9, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct._PROCESS_INFORMATION_TYPE, ptr %165, i32 0, i32 0
  store ptr %164, ptr %166, align 8, !tbaa !40
  %167 = load ptr, ptr %7, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %167, i32 0, i32 8
  %169 = load ptr, ptr %168, align 8, !tbaa !9
  %170 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %169, i32 0, i32 10
  %171 = load i32, ptr %170, align 8, !tbaa !22
  %172 = load ptr, ptr %9, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct._PROCESS_INFORMATION_TYPE, ptr %172, i32 0, i32 2
  store i32 %171, ptr %173, align 8, !tbaa !41
  %174 = load ptr, ptr %9, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct._PROCESS_INFORMATION_TYPE, ptr %174, i32 0, i32 4
  store i32 1, ptr %175, align 8, !tbaa !42
  %176 = load ptr, ptr %9, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct._PROCESS_INFORMATION_TYPE, ptr %176, i32 0, i32 10
  %178 = getelementptr inbounds %struct._CONTEXT_TYPE, ptr %177, i32 0, i32 0
  %179 = load i32, ptr %178, align 8, !tbaa !43
  %180 = icmp eq i32 %179, 0
  br i1 %180, label %181, label %189

181:                                              ; preds = %163
  %182 = load ptr, ptr %7, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %182, i32 0, i32 2
  %184 = load i32, ptr %183, align 8, !tbaa !44
  %185 = add i32 %184, 1
  store i32 %185, ptr %183, align 8, !tbaa !44
  %186 = load ptr, ptr %9, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct._PROCESS_INFORMATION_TYPE, ptr %186, i32 0, i32 10
  %188 = getelementptr inbounds %struct._CONTEXT_TYPE, ptr %187, i32 0, i32 0
  store i32 %184, ptr %188, align 8, !tbaa !43
  br label %189

189:                                              ; preds = %181, %163
  %190 = load ptr, ptr %10, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct._PROCESS_CONFIGURATION_TYPE, ptr %190, i32 0, i32 1
  %192 = load ptr, ptr %191, align 8, !tbaa !37
  %193 = load ptr, ptr %9, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct._PROCESS_INFORMATION_TYPE, ptr %193, i32 0, i32 10
  %195 = getelementptr inbounds %struct._CONTEXT_TYPE, ptr %194, i32 0, i32 1
  store ptr %192, ptr %195, align 8, !tbaa !45
  %196 = load ptr, ptr %9, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct._PROCESS_INFORMATION_TYPE, ptr %196, i32 0, i32 10
  %198 = getelementptr inbounds %struct._CONTEXT_TYPE, ptr %197, i32 0, i32 1
  %199 = load ptr, ptr %198, align 8, !tbaa !45
  %200 = ptrtoint ptr %199 to i32
  %201 = load ptr, ptr %10, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct._PROCESS_CONFIGURATION_TYPE, ptr %201, i32 0, i32 2
  %203 = load i32, ptr %202, align 8, !tbaa !39
  %204 = add i32 %200, %203
  %205 = zext i32 %204 to i64
  %206 = inttoptr i64 %205 to ptr
  %207 = load ptr, ptr %9, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct._PROCESS_INFORMATION_TYPE, ptr %207, i32 0, i32 10
  %209 = getelementptr inbounds %struct._CONTEXT_TYPE, ptr %208, i32 0, i32 2
  store ptr %206, ptr %209, align 8, !tbaa !46
  %210 = load ptr, ptr %9, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct._PROCESS_INFORMATION_TYPE, ptr %210, i32 0, i32 10
  %212 = getelementptr inbounds %struct._CONTEXT_TYPE, ptr %211, i32 0, i32 4
  store i32 0, ptr %212, align 8, !tbaa !47
  %213 = load ptr, ptr %7, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %213, i32 0, i32 8
  %215 = load ptr, ptr %214, align 8, !tbaa !9
  %216 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %215, i32 0, i32 9
  %217 = getelementptr inbounds %struct._CONTEXT_TYPE, ptr %216, i32 0, i32 5
  %218 = load i8, ptr %217, align 4, !tbaa !48
  %219 = load ptr, ptr %9, align 8, !tbaa !5
  %220 = getelementptr inbounds %struct._PROCESS_INFORMATION_TYPE, ptr %219, i32 0, i32 10
  %221 = getelementptr inbounds %struct._CONTEXT_TYPE, ptr %220, i32 0, i32 5
  store i8 %218, ptr %221, align 4, !tbaa !49
  %222 = load ptr, ptr %4, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct._PROCESS_ATTRIBUTE_TYPE, ptr %222, i32 0, i32 1
  %224 = load ptr, ptr %223, align 8, !tbaa !50
  %225 = load ptr, ptr %9, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct._PROCESS_INFORMATION_TYPE, ptr %225, i32 0, i32 10
  %227 = getelementptr inbounds %struct._CONTEXT_TYPE, ptr %226, i32 0, i32 6
  store ptr %224, ptr %227, align 8, !tbaa !51
  %228 = load ptr, ptr %9, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct._PROCESS_INFORMATION_TYPE, ptr %228, i32 0, i32 10
  %230 = getelementptr inbounds %struct._CONTEXT_TYPE, ptr %229, i32 0, i32 7
  store ptr @RETURNPOINT_PROCESS, ptr %230, align 8, !tbaa !52
  %231 = load ptr, ptr %9, align 8, !tbaa !5
  %232 = getelementptr inbounds %struct._PROCESS_INFORMATION_TYPE, ptr %231, i32 0, i32 10
  %233 = getelementptr inbounds %struct._CONTEXT_TYPE, ptr %232, i32 0, i32 8
  store i32 0, ptr %233, align 8, !tbaa !53
  %234 = load ptr, ptr %9, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct._PROCESS_INFORMATION_TYPE, ptr %234, i32 0, i32 10
  %236 = getelementptr inbounds %struct._CONTEXT_TYPE, ptr %235, i32 0, i32 9
  store i32 0, ptr %236, align 4, !tbaa !54
  %237 = load ptr, ptr %9, align 8, !tbaa !5
  %238 = getelementptr inbounds %struct._PROCESS_INFORMATION_TYPE, ptr %237, i32 0, i32 10
  %239 = getelementptr inbounds %struct._CONTEXT_TYPE, ptr %238, i32 0, i32 0
  %240 = load i32, ptr %239, align 8, !tbaa !43
  %241 = load ptr, ptr %7, align 8, !tbaa !5
  %242 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %241, i32 0, i32 3
  %243 = load i32, ptr %242, align 4, !tbaa !55
  %244 = icmp ugt i32 %240, %243
  br i1 %244, label %245, label %247

245:                                              ; preds = %189
  %246 = load ptr, ptr %6, align 8, !tbaa !5
  store i32 5, ptr %246, align 4, !tbaa !17
  call void @EXIT_CORE()
  store i32 1, ptr %11, align 4
  br label %266

247:                                              ; preds = %189
  %248 = load ptr, ptr %7, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %248, i32 0, i32 8
  %250 = load ptr, ptr %249, align 8, !tbaa !9
  %251 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %250, i32 0, i32 10
  %252 = load i32, ptr %251, align 8, !tbaa !22
  %253 = add i32 %252, 1
  store i32 %253, ptr %251, align 8, !tbaa !22
  %254 = load ptr, ptr %7, align 8, !tbaa !5
  %255 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %254, i32 0, i32 8
  %256 = load ptr, ptr %255, align 8, !tbaa !9
  %257 = load ptr, ptr %9, align 8, !tbaa !5
  %258 = call zeroext i8 @PORT_HOOK_AFTER_CREATE_PROCESS(ptr noundef %256, ptr noundef %257)
  %259 = icmp ne i8 %258, 0
  br i1 %259, label %262, label %260

260:                                              ; preds = %247
  %261 = load ptr, ptr %6, align 8, !tbaa !5
  store i32 5, ptr %261, align 4, !tbaa !17
  call void @EXIT_CORE()
  store i32 1, ptr %11, align 4
  br label %266

262:                                              ; preds = %247
  %263 = load i32, ptr %8, align 4, !tbaa !17
  %264 = load ptr, ptr %5, align 8, !tbaa !5
  store i32 %263, ptr %264, align 4, !tbaa !17
  %265 = load ptr, ptr %6, align 8, !tbaa !5
  store i32 1, ptr %265, align 4, !tbaa !17
  call void @EXIT_CORE()
  store i32 0, ptr %11, align 4
  br label %266

266:                                              ; preds = %262, %260, %245, %161, %136, %123, %111, %88, %75, %67, %55, %45, %28, %19
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  %267 = load i32, ptr %11, align 4
  switch i32 %267, label %269 [
    i32 0, label %268
    i32 1, label %268
  ]

268:                                              ; preds = %266, %266
  ret void

269:                                              ; preds = %266
  unreachable
}

declare ptr @CONFIGURATION_GETPROCESSCONFIGURATION(ptr noundef, ptr noundef) #1

declare zeroext i8 @PORT_HOOK_BEFORE_CREATE_PROCESS(ptr noundef, ptr noundef) #1

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

declare void @PORT_INITIALIZECONTEXT(ptr noundef) #1

declare void @RETURNPOINT_PROCESS() #1

declare zeroext i8 @PORT_HOOK_AFTER_CREATE_PROCESS(ptr noundef, ptr noundef) #1

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


; 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._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 global [2 x %struct._MODULE_INFORMATION_TYPE], align 16

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

declare void @ENTER_CORE() local_unnamed_addr #1

declare i32 @PORT_GETCORE() local_unnamed_addr #1

declare void @EXIT_CORE() local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
declare dso_local void @GET_PROCESS_ID(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

11:                                               ; preds = %3
  store i32 6, ptr %2, align 4, !tbaa !16
  tail call void @EXIT_CORE() #3
  br label %125

12:                                               ; preds = %3
  %13 = getelementptr inbounds i8, ptr %9, i64 28
  %14 = load i32, ptr %13, align 4, !tbaa !17
  %15 = icmp eq i32 %14, 4
  br i1 %15, label %16, label %17

16:                                               ; preds = %12
  store i32 6, ptr %2, align 4, !tbaa !16
  tail call void @EXIT_CORE() #3
  br label %125

17:                                               ; preds = %12
  %18 = getelementptr inbounds i8, ptr %9, i64 144
  %19 = load i32, ptr %18, align 8, !tbaa !21
  store i32 %19, ptr %4, align 4, !tbaa !16
  %20 = getelementptr inbounds i8, ptr %9, i64 16
  %21 = load ptr, ptr %20, align 8, !tbaa !22
  %22 = getelementptr inbounds i8, ptr %21, i64 16
  %23 = load i32, ptr %22, align 8, !tbaa !23
  %.not = icmp ult i32 %19, %23
  br i1 %.not, label %25, label %24

24:                                               ; preds = %17
  store i32 5, ptr %2, align 4, !tbaa !16
  tail call void @EXIT_CORE() #3
  br label %125

25:                                               ; preds = %17
  %26 = load ptr, ptr %0, align 8, !tbaa !25
  call void @GET_PROCESS_ID(ptr noundef %26, ptr noundef nonnull %4, ptr noundef %2)
  %27 = load i32, ptr %2, align 4, !tbaa !16
  %28 = icmp eq i32 %27, 1
  br i1 %28, label %29, label %30

29:                                               ; preds = %25
  store i32 2, ptr %2, align 4, !tbaa !16
  call void @EXIT_CORE() #3
  br label %125

30:                                               ; preds = %25
  %31 = getelementptr inbounds i8, ptr %0, i64 20
  %32 = load i32, ptr %31, align 4, !tbaa !27
  %33 = add i32 %32, -64
  %or.cond = icmp ult i32 %33, -63
  br i1 %or.cond, label %34, label %35

34:                                               ; preds = %30
  store i32 4, ptr %2, align 4, !tbaa !16
  call void @EXIT_CORE() #3
  br label %125

35:                                               ; preds = %30
  %36 = getelementptr inbounds i8, ptr %0, i64 24
  %37 = load i64, ptr %36, align 8, !tbaa !28
  %38 = srem i64 %37, 1000000
  %.not72 = icmp eq i64 %38, 0
  br i1 %.not72, label %40, label %39

39:                                               ; preds = %35
  store i32 5, ptr %2, align 4, !tbaa !16
  call void @EXIT_CORE() #3
  br label %125

40:                                               ; preds = %35
  %41 = getelementptr inbounds i8, ptr %0, i64 32
  %42 = load i64, ptr %41, align 8, !tbaa !29
  %.not73 = icmp eq i64 %42, -1
  %43 = srem i64 %42, 1000000
  %.not74 = icmp eq i64 %43, 0
  %or.cond78 = or i1 %.not73, %.not74
  br i1 %or.cond78, label %45, label %44

44:                                               ; preds = %40
  store i32 4, ptr %2, align 4, !tbaa !16
  call void @EXIT_CORE() #3
  br label %125

45:                                               ; preds = %40
  %46 = load ptr, ptr %8, align 8, !tbaa !5
  %47 = getelementptr inbounds i8, ptr %46, i64 152
  %48 = load ptr, ptr %47, align 8, !tbaa !30
  %49 = load i32, ptr %4, align 4, !tbaa !16
  %50 = zext i32 %49 to i64
  %51 = getelementptr inbounds %struct._PROCESS_INFORMATION_TYPE, ptr %48, i64 %50
  %52 = getelementptr inbounds i8, ptr %46, i64 16
  %53 = load ptr, ptr %52, align 8, !tbaa !22
  %54 = load ptr, ptr %0, align 8, !tbaa !25
  %55 = call ptr @CONFIGURATION_GETPROCESSCONFIGURATION(ptr noundef %53, ptr noundef %54) #3
  %56 = icmp eq ptr %55, null
  br i1 %56, label %57, label %58

57:                                               ; preds = %45
  store i32 5, ptr %2, align 4, !tbaa !16
  call void @EXIT_CORE() #3
  br label %125

58:                                               ; preds = %45
  %59 = getelementptr inbounds i8, ptr %51, i64 8
  store ptr %55, ptr %59, align 8, !tbaa !31
  %60 = load ptr, ptr %8, align 8, !tbaa !5
  %61 = call zeroext i8 @PORT_HOOK_BEFORE_CREATE_PROCESS(ptr noundef %60, ptr noundef %51) #3
  %.not75 = icmp eq i8 %61, 0
  br i1 %.not75, label %62, label %63

62:                                               ; preds = %58
  store i32 5, ptr %2, align 4, !tbaa !16
  call void @EXIT_CORE() #3
  br label %125

63:                                               ; preds = %58
  %64 = getelementptr inbounds i8, ptr %7, i64 8
  %65 = getelementptr inbounds i8, ptr %51, i64 72
  %66 = getelementptr inbounds i8, ptr %51, i64 96
  call void @HEAP_ALLOCATE(ptr noundef nonnull %64, ptr noundef nonnull %66, i32 noundef 352, i8 noundef zeroext 0) #3
  %67 = load ptr, ptr %66, align 8, !tbaa !33
  %68 = icmp eq ptr %67, null
  br i1 %68, label %69, label %70

69:                                               ; preds = %63
  store i32 5, ptr %2, align 4, !tbaa !16
  call void @EXIT_CORE() #3
  br label %125

70:                                               ; preds = %63
  %71 = load ptr, ptr %8, align 8, !tbaa !5
  %72 = load i8, ptr %71, align 8, !tbaa !34
  %.not76 = icmp eq i8 %72, 0
  br i1 %.not76, label %73, label %75

73:                                               ; preds = %70
  call void @PORT_INITIALIZECONTEXT(ptr noundef nonnull %65) #3
  %74 = getelementptr inbounds i8, ptr %51, i64 136
  store i32 8, ptr %74, align 8, !tbaa !35
  br label %75

75:                                               ; preds = %73, %70
  %76 = getelementptr inbounds i8, ptr %55, i64 8
  %77 = load ptr, ptr %76, align 8, !tbaa !36
  %78 = icmp eq ptr %77, null
  br i1 %78, label %83, label %79

79:                                               ; preds = %75
  %80 = getelementptr inbounds i8, ptr %55, i64 16
  %81 = load i32, ptr %80, align 8, !tbaa !38
  %82 = icmp eq i32 %81, 0
  br i1 %82, label %83, label %84

83:                                               ; preds = %79, %75
  store i32 5, ptr %2, align 4, !tbaa !16
  call void @EXIT_CORE() #3
  br label %125

84:                                               ; preds = %79
  store ptr %0, ptr %51, align 8, !tbaa !39
  %85 = load ptr, ptr %8, align 8, !tbaa !5
  %86 = getelementptr inbounds i8, ptr %85, i64 144
  %87 = load i32, ptr %86, align 8, !tbaa !21
  %88 = getelementptr inbounds i8, ptr %51, i64 16
  store i32 %87, ptr %88, align 8, !tbaa !40
  %89 = getelementptr inbounds i8, ptr %51, i64 24
  store i32 1, ptr %89, align 8, !tbaa !41
  %90 = load i32, ptr %65, align 8, !tbaa !42
  %91 = icmp eq i32 %90, 0
  br i1 %91, label %92, label %96

92:                                               ; preds = %84
  %93 = getelementptr inbounds i8, ptr %7, i64 32
  %94 = load i32, ptr %93, align 8, !tbaa !43
  %95 = add i32 %94, 1
  store i32 %95, ptr %93, align 8, !tbaa !43
  store i32 %94, ptr %65, align 8, !tbaa !42
  br label %96

96:                                               ; preds = %92, %84
  %97 = phi i32 [ %94, %92 ], [ %90, %84 ]
  %98 = getelementptr inbounds i8, ptr %51, i64 80
  store ptr %77, ptr %98, align 8, !tbaa !44
  %99 = ptrtoint ptr %77 to i64
  %100 = trunc i64 %99 to i32
  %101 = add i32 %81, %100
  %102 = zext i32 %101 to i64
  %103 = inttoptr i64 %102 to ptr
  %104 = getelementptr inbounds i8, ptr %51, i64 88
  store ptr %103, ptr %104, align 8, !tbaa !45
  %105 = getelementptr inbounds i8, ptr %51, i64 104
  store i32 0, ptr %105, align 8, !tbaa !46
  %106 = getelementptr inbounds i8, ptr %85, i64 108
  %107 = load i8, ptr %106, align 4, !tbaa !47
  %108 = getelementptr inbounds i8, ptr %51, i64 108
  store i8 %107, ptr %108, align 4, !tbaa !48
  %109 = getelementptr inbounds i8, ptr %0, i64 8
  %110 = load ptr, ptr %109, align 8, !tbaa !49
  %111 = getelementptr inbounds i8, ptr %51, i64 112
  store ptr %110, ptr %111, align 8, !tbaa !50
  %112 = getelementptr inbounds i8, ptr %51, i64 120
  store ptr @RETURNPOINT_PROCESS, ptr %112, align 8, !tbaa !51
  %113 = getelementptr inbounds i8, ptr %51, i64 128
  store i32 0, ptr %113, align 8, !tbaa !52
  %114 = getelementptr inbounds i8, ptr %51, i64 132
  store i32 0, ptr %114, align 4, !tbaa !53
  %115 = getelementptr inbounds i8, ptr %7, i64 36
  %116 = load i32, ptr %115, align 4, !tbaa !54
  %117 = icmp ugt i32 %97, %116
  br i1 %117, label %118, label %119

118:                                              ; preds = %96
  store i32 5, ptr %2, align 4, !tbaa !16
  call void @EXIT_CORE() #3
  br label %125

119:                                              ; preds = %96
  %120 = add i32 %87, 1
  store i32 %120, ptr %86, align 8, !tbaa !21
  %121 = call zeroext i8 @PORT_HOOK_AFTER_CREATE_PROCESS(ptr noundef nonnull %85, ptr noundef nonnull %51) #3
  %.not77 = icmp eq i8 %121, 0
  br i1 %.not77, label %122, label %123

122:                                              ; preds = %119
  store i32 5, ptr %2, align 4, !tbaa !16
  call void @EXIT_CORE() #3
  br label %125

123:                                              ; preds = %119
  %124 = load i32, ptr %4, align 4, !tbaa !16
  store i32 %124, ptr %1, align 4, !tbaa !16
  store i32 1, ptr %2, align 4, !tbaa !16
  call void @EXIT_CORE() #3
  br label %125

125:                                              ; preds = %123, %122, %118, %83, %69, %62, %57, %44, %39, %34, %29, %24, %16, %11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #3
  ret void
}

declare ptr @CONFIGURATION_GETPROCESSCONFIGURATION(ptr noundef, ptr noundef) local_unnamed_addr #1

declare zeroext i8 @PORT_HOOK_BEFORE_CREATE_PROCESS(ptr noundef, ptr noundef) local_unnamed_addr #1

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

declare void @PORT_INITIALIZECONTEXT(ptr noundef) local_unnamed_addr #1

declare void @RETURNPOINT_PROCESS() #1

declare zeroext i8 @PORT_HOOK_AFTER_CREATE_PROCESS(ptr noundef, ptr noundef) local_unnamed_addr #1

attributes #0 = { mustprogress 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, !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, !11, i64 28}
!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 144}
!22 = !{!18, !7, i64 16}
!23 = !{!24, !11, i64 16}
!24 = !{!"_PARTITION_CONFIGURATION_TYPE", !11, i64 0, !7, i64 8, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !7, i64 48, !11, i64 56, !7, i64 64, !11, i64 72, !7, i64 80, !11, i64 88, !7, i64 96, !11, i64 104, !7, i64 112, !11, i64 120, !7, i64 128, !11, i64 136, !7, i64 144, !11, i64 152, !7, i64 160, !7, i64 168, !11, i64 176, !7, i64 184, !7, i64 192}
!25 = !{!26, !7, i64 0}
!26 = !{!"_PROCESS_ATTRIBUTE_TYPE", !7, i64 0, !7, i64 8, !11, i64 16, !11, i64 20, !14, i64 24, !14, i64 32, !11, i64 40}
!27 = !{!26, !11, i64 20}
!28 = !{!26, !14, i64 24}
!29 = !{!26, !14, i64 32}
!30 = !{!18, !7, i64 152}
!31 = !{!32, !7, i64 8}
!32 = !{!"_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}
!33 = !{!32, !7, i64 96}
!34 = !{!18, !8, i64 0}
!35 = !{!32, !11, i64 136}
!36 = !{!37, !7, i64 8}
!37 = !{!"_PROCESS_CONFIGURATION_TYPE", !7, i64 0, !7, i64 8, !11, i64 16, !7, i64 24}
!38 = !{!37, !11, i64 16}
!39 = !{!32, !7, i64 0}
!40 = !{!32, !11, i64 16}
!41 = !{!32, !11, i64 24}
!42 = !{!32, !11, i64 72}
!43 = !{!6, !11, i64 32}
!44 = !{!32, !7, i64 80}
!45 = !{!32, !7, i64 88}
!46 = !{!32, !11, i64 104}
!47 = !{!18, !8, i64 108}
!48 = !{!32, !8, i64 108}
!49 = !{!26, !7, i64 8}
!50 = !{!32, !7, i64 112}
!51 = !{!32, !7, i64 120}
!52 = !{!32, !11, i64 128}
!53 = !{!32, !11, i64 132}
!54 = !{!6, !11, i64 36}


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