; LLVM IR from hans-ob1/neural_cam_ros :: src/detector (data)

; 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.image = type { i32, i32, i32, ptr }
%struct.data = type { i32, i32, %struct.matrix, %struct.matrix, i32, ptr, ptr }
%struct.matrix = type { i32, i32, ptr }
%struct.load_args = type { i32, ptr, ptr, i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, float, float, float, float, float, float, ptr, ptr, ptr, i32, ptr }

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

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

; Function Attrs: 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) #1

declare void @load_image_color(ptr dead_on_unwind writable sret(%struct.image) align 8, ptr noundef, i32 noundef, i32 noundef) #2

; Function Attrs: nounwind
declare void @free(ptr noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local void @load_data_region(ptr dead_on_unwind noalias writable sret(%struct.data) align 8, i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, float noundef, float noundef, float noundef, float noundef) #4

declare void @resize_image(ptr dead_on_unwind writable sret(%struct.image) align 8, ptr noundef byval(%struct.image) align 8, i32 noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @load_data_compare(ptr dead_on_unwind noalias writable sret(%struct.data) align 8, i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #4

; Function Attrs: nounwind uwtable
declare dso_local void @load_data_swag(ptr dead_on_unwind noalias writable sret(%struct.data) align 8, ptr noundef, i32 noundef, i32 noundef, float noundef) #4

; Function Attrs: nounwind uwtable
declare dso_local void @load_data_detection(ptr dead_on_unwind noalias writable sret(%struct.data) align 8, i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, float noundef, float noundef, float noundef, float noundef) #4

; Function Attrs: nounwind uwtable
define dso_local ptr @load_thread(ptr noundef %0) #4 {
  %2 = alloca ptr, align 8
  %3 = alloca %struct.load_args, align 8
  %4 = alloca %struct.data, align 8
  %5 = alloca %struct.data, align 8
  %6 = alloca %struct.data, align 8
  %7 = alloca %struct.data, align 8
  %8 = alloca %struct.data, align 8
  %9 = alloca %struct.data, align 8
  %10 = alloca %struct.data, align 8
  %11 = alloca %struct.data, align 8
  %12 = alloca %struct.image, align 8
  %13 = alloca %struct.image, align 8
  %14 = alloca %struct.data, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 160, ptr %3) #5
  %15 = load ptr, ptr %2, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %3, ptr align 8 %15, i64 160, i1 false), !tbaa.struct !9
  %16 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 23
  %17 = load float, ptr %16, align 4, !tbaa !14
  %18 = fcmp oeq float %17, 0.000000e+00
  br i1 %18, label %19, label %21

19:                                               ; preds = %1
  %20 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 23
  store float 1.000000e+00, ptr %20, align 4, !tbaa !14
  br label %21

21:                                               ; preds = %19, %1
  %22 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 22
  %23 = load float, ptr %22, align 8, !tbaa !16
  %24 = fcmp oeq float %23, 0.000000e+00
  br i1 %24, label %25, label %27

25:                                               ; preds = %21
  %26 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 22
  store float 1.000000e+00, ptr %26, align 8, !tbaa !16
  br label %27

27:                                               ; preds = %25, %21
  %28 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 21
  %29 = load float, ptr %28, align 4, !tbaa !17
  %30 = fcmp oeq float %29, 0.000000e+00
  br i1 %30, label %31, label %33

31:                                               ; preds = %27
  %32 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 21
  store float 1.000000e+00, ptr %32, align 4, !tbaa !17
  br label %33

33:                                               ; preds = %31, %27
  %34 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 28
  %35 = load i32, ptr %34, align 8, !tbaa !18
  %36 = icmp eq i32 %35, 9
  br i1 %36, label %37, label %54

37:                                               ; preds = %33
  %38 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 25
  %39 = load ptr, ptr %38, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 64, ptr %4) #5
  %40 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 1
  %41 = load ptr, ptr %40, align 8, !tbaa !20
  %42 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 3
  %43 = load i32, ptr %42, align 8, !tbaa !21
  %44 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 4
  %45 = load i32, ptr %44, align 4, !tbaa !22
  %46 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 5
  %47 = load ptr, ptr %46, align 8, !tbaa !23
  %48 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 16
  %49 = load i32, ptr %48, align 8, !tbaa !24
  %50 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 7
  %51 = load i32, ptr %50, align 4, !tbaa !25
  %52 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 6
  %53 = load i32, ptr %52, align 8, !tbaa !26
  call void @load_data_old(ptr dead_on_unwind writable sret(%struct.data) align 8 %4, ptr noundef %41, i32 noundef %43, i32 noundef %45, ptr noundef %47, i32 noundef %49, i32 noundef %51, i32 noundef %53)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %39, ptr align 8 %4, i64 64, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.end.p0(i64 64, ptr %4) #5
  br label %278

54:                                               ; preds = %33
  %55 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 28
  %56 = load i32, ptr %55, align 8, !tbaa !18
  %57 = icmp eq i32 %56, 0
  br i1 %57, label %58, label %89

58:                                               ; preds = %54
  %59 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 25
  %60 = load ptr, ptr %59, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 64, ptr %5) #5
  %61 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 1
  %62 = load ptr, ptr %61, align 8, !tbaa !20
  %63 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 3
  %64 = load i32, ptr %63, align 8, !tbaa !21
  %65 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 4
  %66 = load i32, ptr %65, align 4, !tbaa !22
  %67 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 5
  %68 = load ptr, ptr %67, align 8, !tbaa !23
  %69 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 16
  %70 = load i32, ptr %69, align 8, !tbaa !24
  %71 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 29
  %72 = load ptr, ptr %71, align 8, !tbaa !28
  %73 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 13
  %74 = load i32, ptr %73, align 4, !tbaa !29
  %75 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 14
  %76 = load i32, ptr %75, align 8, !tbaa !30
  %77 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 15
  %78 = load i32, ptr %77, align 4, !tbaa !31
  %79 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 20
  %80 = load float, ptr %79, align 8, !tbaa !32
  %81 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 21
  %82 = load float, ptr %81, align 4, !tbaa !17
  %83 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 24
  %84 = load float, ptr %83, align 8, !tbaa !33
  %85 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 22
  %86 = load float, ptr %85, align 8, !tbaa !16
  %87 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 23
  %88 = load float, ptr %87, align 4, !tbaa !14
  call void @load_data_augment(ptr dead_on_unwind writable sret(%struct.data) align 8 %5, ptr noundef %62, i32 noundef %64, i32 noundef %66, ptr noundef %68, i32 noundef %70, ptr noundef %72, i32 noundef %74, i32 noundef %76, i32 noundef %78, float noundef %80, float noundef %82, float noundef %84, float noundef %86, float noundef %88)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %60, ptr align 8 %5, i64 64, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.end.p0(i64 64, ptr %5) #5
  br label %277

89:                                               ; preds = %54
  %90 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 28
  %91 = load i32, ptr %90, align 8, !tbaa !18
  %92 = icmp eq i32 %91, 12
  br i1 %92, label %93, label %108

93:                                               ; preds = %89
  %94 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 25
  %95 = load ptr, ptr %94, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 64, ptr %6) #5
  %96 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 1
  %97 = load ptr, ptr %96, align 8, !tbaa !20
  %98 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 3
  %99 = load i32, ptr %98, align 8, !tbaa !21
  %100 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 4
  %101 = load i32, ptr %100, align 4, !tbaa !22
  %102 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 7
  %103 = load i32, ptr %102, align 4, !tbaa !25
  %104 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 6
  %105 = load i32, ptr %104, align 8, !tbaa !26
  %106 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 18
  %107 = load i32, ptr %106, align 8, !tbaa !34
  call void @load_data_super(ptr dead_on_unwind writable sret(%struct.data) align 8 %6, ptr noundef %97, i32 noundef %99, i32 noundef %101, i32 noundef %103, i32 noundef %105, i32 noundef %107)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %95, ptr align 8 %6, i64 64, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.end.p0(i64 64, ptr %6) #5
  br label %276

108:                                              ; preds = %89
  %109 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 28
  %110 = load i32, ptr %109, align 8, !tbaa !18
  %111 = icmp eq i32 %110, 6
  br i1 %111, label %112, label %129

112:                                              ; preds = %108
  %113 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 25
  %114 = load ptr, ptr %113, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 64, ptr %7) #5
  %115 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 1
  %116 = load ptr, ptr %115, align 8, !tbaa !20
  %117 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 3
  %118 = load i32, ptr %117, align 8, !tbaa !21
  %119 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 4
  %120 = load i32, ptr %119, align 4, !tbaa !22
  %121 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 7
  %122 = load i32, ptr %121, align 4, !tbaa !25
  %123 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 6
  %124 = load i32, ptr %123, align 8, !tbaa !26
  %125 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 8
  %126 = load i32, ptr %125, align 8, !tbaa !35
  %127 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 9
  %128 = load i32, ptr %127, align 4, !tbaa !36
  call void @load_data_writing(ptr dead_on_unwind writable sret(%struct.data) align 8 %7, ptr noundef %116, i32 noundef %118, i32 noundef %120, i32 noundef %122, i32 noundef %124, i32 noundef %126, i32 noundef %128)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %114, ptr align 8 %7, i64 64, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.end.p0(i64 64, ptr %7) #5
  br label %275

129:                                              ; preds = %108
  %130 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 28
  %131 = load i32, ptr %130, align 8, !tbaa !18
  %132 = icmp eq i32 %131, 3
  br i1 %132, label %133, label %158

133:                                              ; preds = %129
  %134 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 25
  %135 = load ptr, ptr %134, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 64, ptr %8) #5
  %136 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 3
  %137 = load i32, ptr %136, align 8, !tbaa !21
  %138 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 1
  %139 = load ptr, ptr %138, align 8, !tbaa !20
  %140 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 4
  %141 = load i32, ptr %140, align 4, !tbaa !22
  %142 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 7
  %143 = load i32, ptr %142, align 4, !tbaa !25
  %144 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 6
  %145 = load i32, ptr %144, align 8, !tbaa !26
  %146 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 12
  %147 = load i32, ptr %146, align 8, !tbaa !37
  %148 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 16
  %149 = load i32, ptr %148, align 8, !tbaa !24
  %150 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 19
  %151 = load float, ptr %150, align 4, !tbaa !38
  %152 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 24
  %153 = load float, ptr %152, align 8, !tbaa !33
  %154 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 22
  %155 = load float, ptr %154, align 8, !tbaa !16
  %156 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 23
  %157 = load float, ptr %156, align 4, !tbaa !14
  call void @load_data_region(ptr dead_on_unwind writable sret(%struct.data) align 8 %8, i32 noundef %137, ptr noundef %139, i32 noundef %141, i32 noundef %143, i32 noundef %145, i32 noundef %147, i32 noundef %149, float noundef %151, float noundef %153, float noundef %155, float noundef %157)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %135, ptr align 8 %8, i64 64, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.end.p0(i64 64, ptr %8) #5
  br label %274

158:                                              ; preds = %129
  %159 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 28
  %160 = load i32, ptr %159, align 8, !tbaa !18
  %161 = icmp eq i32 %160, 1
  br i1 %161, label %162, label %187

162:                                              ; preds = %158
  %163 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 25
  %164 = load ptr, ptr %163, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 64, ptr %9) #5
  %165 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 3
  %166 = load i32, ptr %165, align 8, !tbaa !21
  %167 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 1
  %168 = load ptr, ptr %167, align 8, !tbaa !20
  %169 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 4
  %170 = load i32, ptr %169, align 4, !tbaa !22
  %171 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 7
  %172 = load i32, ptr %171, align 4, !tbaa !25
  %173 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 6
  %174 = load i32, ptr %173, align 8, !tbaa !26
  %175 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 12
  %176 = load i32, ptr %175, align 8, !tbaa !37
  %177 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 16
  %178 = load i32, ptr %177, align 8, !tbaa !24
  %179 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 19
  %180 = load float, ptr %179, align 4, !tbaa !38
  %181 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 24
  %182 = load float, ptr %181, align 8, !tbaa !33
  %183 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 22
  %184 = load float, ptr %183, align 8, !tbaa !16
  %185 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 23
  %186 = load float, ptr %185, align 4, !tbaa !14
  call void @load_data_detection(ptr dead_on_unwind writable sret(%struct.data) align 8 %9, i32 noundef %166, ptr noundef %168, i32 noundef %170, i32 noundef %172, i32 noundef %174, i32 noundef %176, i32 noundef %178, float noundef %180, float noundef %182, float noundef %184, float noundef %186)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %164, ptr align 8 %9, i64 64, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.end.p0(i64 64, ptr %9) #5
  br label %273

187:                                              ; preds = %158
  %188 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 28
  %189 = load i32, ptr %188, align 8, !tbaa !18
  %190 = icmp eq i32 %189, 7
  br i1 %190, label %191, label %202

191:                                              ; preds = %187
  %192 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 25
  %193 = load ptr, ptr %192, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 64, ptr %10) #5
  %194 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 1
  %195 = load ptr, ptr %194, align 8, !tbaa !20
  %196 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 3
  %197 = load i32, ptr %196, align 8, !tbaa !21
  %198 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 16
  %199 = load i32, ptr %198, align 8, !tbaa !24
  %200 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 19
  %201 = load float, ptr %200, align 4, !tbaa !38
  call void @load_data_swag(ptr dead_on_unwind writable sret(%struct.data) align 8 %10, ptr noundef %195, i32 noundef %197, i32 noundef %199, float noundef %201)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %193, ptr align 8 %10, i64 64, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.end.p0(i64 64, ptr %10) #5
  br label %272

202:                                              ; preds = %187
  %203 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 28
  %204 = load i32, ptr %203, align 8, !tbaa !18
  %205 = icmp eq i32 %204, 5
  br i1 %205, label %206, label %221

206:                                              ; preds = %202
  %207 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 25
  %208 = load ptr, ptr %207, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 64, ptr %11) #5
  %209 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 3
  %210 = load i32, ptr %209, align 8, !tbaa !21
  %211 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 1
  %212 = load ptr, ptr %211, align 8, !tbaa !20
  %213 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 4
  %214 = load i32, ptr %213, align 4, !tbaa !22
  %215 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 16
  %216 = load i32, ptr %215, align 8, !tbaa !24
  %217 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 7
  %218 = load i32, ptr %217, align 4, !tbaa !25
  %219 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 6
  %220 = load i32, ptr %219, align 8, !tbaa !26
  call void @load_data_compare(ptr dead_on_unwind writable sret(%struct.data) align 8 %11, i32 noundef %210, ptr noundef %212, i32 noundef %214, i32 noundef %216, i32 noundef %218, i32 noundef %220)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %208, ptr align 8 %11, i64 64, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.end.p0(i64 64, ptr %11) #5
  br label %271

221:                                              ; preds = %202
  %222 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 28
  %223 = load i32, ptr %222, align 8, !tbaa !18
  %224 = icmp eq i32 %223, 4
  br i1 %224, label %225, label %238

225:                                              ; preds = %221
  %226 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 26
  %227 = load ptr, ptr %226, align 8, !tbaa !39
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #5
  %228 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 2
  %229 = load ptr, ptr %228, align 8, !tbaa !40
  call void @load_image_color(ptr dead_on_unwind writable sret(%struct.image) align 8 %12, ptr noundef %229, i32 noundef 0, i32 noundef 0)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %227, ptr align 8 %12, i64 24, i1 false), !tbaa.struct !41
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #5
  %230 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 27
  %231 = load ptr, ptr %230, align 8, !tbaa !42
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #5
  %232 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 26
  %233 = load ptr, ptr %232, align 8, !tbaa !39
  %234 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 7
  %235 = load i32, ptr %234, align 4, !tbaa !25
  %236 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 6
  %237 = load i32, ptr %236, align 8, !tbaa !26
  call void @resize_image(ptr dead_on_unwind writable sret(%struct.image) align 8 %13, ptr noundef byval(%struct.image) align 8 %233, i32 noundef %235, i32 noundef %237)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %231, ptr align 8 %13, i64 24, i1 false), !tbaa.struct !41
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #5
  br label %270

238:                                              ; preds = %221
  %239 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 28
  %240 = load i32, ptr %239, align 8, !tbaa !18
  %241 = icmp eq i32 %240, 8
  br i1 %241, label %242, label %269

242:                                              ; preds = %238
  %243 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 25
  %244 = load ptr, ptr %243, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 64, ptr %14) #5
  %245 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 1
  %246 = load ptr, ptr %245, align 8, !tbaa !20
  %247 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 3
  %248 = load i32, ptr %247, align 8, !tbaa !21
  %249 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 4
  %250 = load i32, ptr %249, align 4, !tbaa !22
  %251 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 16
  %252 = load i32, ptr %251, align 8, !tbaa !24
  %253 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 13
  %254 = load i32, ptr %253, align 4, !tbaa !29
  %255 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 14
  %256 = load i32, ptr %255, align 8, !tbaa !30
  %257 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 15
  %258 = load i32, ptr %257, align 4, !tbaa !31
  %259 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 20
  %260 = load float, ptr %259, align 8, !tbaa !32
  %261 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 21
  %262 = load float, ptr %261, align 4, !tbaa !17
  %263 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 24
  %264 = load float, ptr %263, align 8, !tbaa !33
  %265 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 22
  %266 = load float, ptr %265, align 8, !tbaa !16
  %267 = getelementptr inbounds %struct.load_args, ptr %3, i32 0, i32 23
  %268 = load float, ptr %267, align 4, !tbaa !14
  call void @load_data_tag(ptr dead_on_unwind writable sret(%struct.data) align 8 %14, ptr noundef %246, i32 noundef %248, i32 noundef %250, i32 noundef %252, i32 noundef %254, i32 noundef %256, i32 noundef %258, float noundef %260, float noundef %262, float noundef %264, float noundef %266, float noundef %268)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %244, ptr align 8 %14, i64 64, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.end.p0(i64 64, ptr %14) #5
  br label %269

269:                                              ; preds = %242, %238
  br label %270

270:                                              ; preds = %269, %225
  br label %271

271:                                              ; preds = %270, %206
  br label %272

272:                                              ; preds = %271, %191
  br label %273

273:                                              ; preds = %272, %162
  br label %274

274:                                              ; preds = %273, %133
  br label %275

275:                                              ; preds = %274, %112
  br label %276

276:                                              ; preds = %275, %93
  br label %277

277:                                              ; preds = %276, %58
  br label %278

278:                                              ; preds = %277, %37
  %279 = load ptr, ptr %2, align 8, !tbaa !5
  call void @free(ptr noundef %279) #5
  call void @llvm.lifetime.end.p0(i64 160, ptr %3) #5
  ret ptr null
}

; Function Attrs: nounwind uwtable
declare dso_local void @load_data_old(ptr dead_on_unwind noalias writable sret(%struct.data) align 8, ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) #4

; Function Attrs: nounwind uwtable
declare dso_local void @load_data_augment(ptr dead_on_unwind noalias writable sret(%struct.data) align 8, ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, float noundef, float noundef, float noundef, float noundef, float noundef) #4

; Function Attrs: nounwind uwtable
declare dso_local void @load_data_super(ptr dead_on_unwind noalias writable sret(%struct.data) align 8, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #4

; Function Attrs: nounwind uwtable
declare dso_local void @load_data_writing(ptr dead_on_unwind noalias writable sret(%struct.data) align 8, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #4

; Function Attrs: nounwind uwtable
declare dso_local void @load_data_tag(ptr dead_on_unwind noalias writable sret(%struct.data) align 8, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, float noundef, float noundef, float noundef, float noundef, float noundef) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind 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 #5 = { 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 = !{i64 0, i64 4, !10, i64 8, i64 8, !5, i64 16, i64 8, !5, i64 24, i64 4, !10, i64 28, i64 4, !10, i64 32, i64 8, !5, i64 40, i64 4, !10, i64 44, i64 4, !10, i64 48, i64 4, !10, i64 52, i64 4, !10, i64 56, i64 4, !10, i64 60, i64 4, !10, i64 64, i64 4, !10, i64 68, i64 4, !10, i64 72, i64 4, !10, i64 76, i64 4, !10, i64 80, i64 4, !10, i64 84, i64 4, !10, i64 88, i64 4, !10, i64 92, i64 4, !12, i64 96, i64 4, !12, i64 100, i64 4, !12, i64 104, i64 4, !12, i64 108, i64 4, !12, i64 112, i64 4, !12, i64 120, i64 8, !5, i64 128, i64 8, !5, i64 136, i64 8, !5, i64 144, i64 4, !10, i64 152, i64 8, !5}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"float", !7, i64 0}
!14 = !{!15, !13, i64 108}
!15 = !{!"load_args", !11, i64 0, !6, i64 8, !6, i64 16, !11, i64 24, !11, i64 28, !6, i64 32, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !11, i64 64, !11, i64 68, !11, i64 72, !11, i64 76, !11, i64 80, !11, i64 84, !11, i64 88, !13, i64 92, !13, i64 96, !13, i64 100, !13, i64 104, !13, i64 108, !13, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !11, i64 144, !6, i64 152}
!16 = !{!15, !13, i64 104}
!17 = !{!15, !13, i64 100}
!18 = !{!15, !11, i64 144}
!19 = !{!15, !6, i64 120}
!20 = !{!15, !6, i64 8}
!21 = !{!15, !11, i64 24}
!22 = !{!15, !11, i64 28}
!23 = !{!15, !6, i64 32}
!24 = !{!15, !11, i64 80}
!25 = !{!15, !11, i64 44}
!26 = !{!15, !11, i64 40}
!27 = !{i64 0, i64 4, !10, i64 4, i64 4, !10, i64 8, i64 4, !10, i64 12, i64 4, !10, i64 16, i64 8, !5, i64 24, i64 4, !10, i64 28, i64 4, !10, i64 32, i64 8, !5, i64 40, i64 4, !10, i64 48, i64 8, !5, i64 56, i64 8, !5}
!28 = !{!15, !6, i64 152}
!29 = !{!15, !11, i64 68}
!30 = !{!15, !11, i64 72}
!31 = !{!15, !11, i64 76}
!32 = !{!15, !13, i64 96}
!33 = !{!15, !13, i64 112}
!34 = !{!15, !11, i64 88}
!35 = !{!15, !11, i64 48}
!36 = !{!15, !11, i64 52}
!37 = !{!15, !11, i64 64}
!38 = !{!15, !13, i64 92}
!39 = !{!15, !6, i64 128}
!40 = !{!15, !6, i64 16}
!41 = !{i64 0, i64 4, !10, i64 4, i64 4, !10, i64 8, i64 4, !10, i64 16, i64 8, !5}
!42 = !{!15, !6, i64 136}


; 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.image = type { i32, i32, i32, ptr }
%struct.data = type { i32, i32, %struct.matrix, %struct.matrix, i32, ptr, ptr }
%struct.matrix = type { i32, i32, ptr }

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

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

; Function Attrs: 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) #1

declare void @load_image_color(ptr dead_on_unwind writable sret(%struct.image) align 8, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare dso_local void @load_data_region(ptr dead_on_unwind noalias writable sret(%struct.data) align 8, i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, float noundef, float noundef, float noundef, float noundef) local_unnamed_addr #4

declare void @resize_image(ptr dead_on_unwind writable sret(%struct.image) align 8, ptr noundef byval(%struct.image) align 8, i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @load_data_compare(ptr dead_on_unwind noalias writable sret(%struct.data) align 8, i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
declare dso_local void @load_data_swag(ptr dead_on_unwind noalias writable sret(%struct.data) align 8, ptr noundef, i32 noundef, i32 noundef, float noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
declare dso_local void @load_data_detection(ptr dead_on_unwind noalias writable sret(%struct.data) align 8, i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, float noundef, float noundef, float noundef, float noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
define dso_local noalias noundef ptr @load_thread(ptr nocapture noundef %0) local_unnamed_addr #4 {
  %2 = alloca %struct.data, align 8
  %3 = alloca %struct.data, align 8
  %4 = alloca %struct.data, align 8
  %5 = alloca %struct.data, align 8
  %6 = alloca %struct.data, align 8
  %7 = alloca %struct.data, align 8
  %8 = alloca %struct.data, align 8
  %9 = alloca %struct.data, align 8
  %10 = alloca %struct.image, align 8
  %11 = alloca %struct.image, align 8
  %12 = alloca %struct.data, align 8
  %.sroa.3.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 8
  %.sroa.3.0.copyload = load ptr, ptr %.sroa.3.0..sroa_idx, align 8, !tbaa !5
  %.sroa.13.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 24
  %.sroa.13.0.copyload = load i32, ptr %.sroa.13.0..sroa_idx, align 8, !tbaa !9
  %.sroa.22.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 28
  %.sroa.22.0.copyload = load i32, ptr %.sroa.22.0..sroa_idx, align 4, !tbaa !9
  %.sroa.30.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 32
  %.sroa.30.0.copyload = load ptr, ptr %.sroa.30.0..sroa_idx, align 8, !tbaa !5
  %.sroa.32.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 40
  %.sroa.32.0.copyload = load i32, ptr %.sroa.32.0..sroa_idx, align 8, !tbaa !9
  %.sroa.39.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 44
  %.sroa.39.0.copyload = load i32, ptr %.sroa.39.0..sroa_idx, align 4, !tbaa !9
  %.sroa.4837.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 64
  %.sroa.4837.0.copyload = load i32, ptr %.sroa.4837.0..sroa_idx, align 8, !tbaa !9
  %.sroa.50.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 68
  %.sroa.50.0.copyload = load i32, ptr %.sroa.50.0..sroa_idx, align 4, !tbaa !9
  %.sroa.52.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 72
  %.sroa.52.0.copyload = load i32, ptr %.sroa.52.0..sroa_idx, align 8, !tbaa !9
  %.sroa.54.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 76
  %.sroa.54.0.copyload = load i32, ptr %.sroa.54.0..sroa_idx, align 4, !tbaa !9
  %.sroa.56.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 80
  %.sroa.56.0.copyload = load i32, ptr %.sroa.56.0..sroa_idx, align 8, !tbaa !9
  %.sroa.64.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 92
  %.sroa.64.0.copyload = load float, ptr %.sroa.64.0..sroa_idx, align 4, !tbaa !11
  %.sroa.67.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 96
  %.sroa.67.0.copyload = load float, ptr %.sroa.67.0..sroa_idx, align 8, !tbaa !11
  %.sroa.69.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 100
  %.sroa.69.0.copyload = load float, ptr %.sroa.69.0..sroa_idx, align 4, !tbaa !11
  %.sroa.73.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 104
  %.sroa.73.0.copyload = load float, ptr %.sroa.73.0..sroa_idx, align 8, !tbaa !11
  %.sroa.79.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 108
  %.sroa.79.0.copyload = load float, ptr %.sroa.79.0..sroa_idx, align 4, !tbaa !11
  %.sroa.85.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 112
  %.sroa.85.0.copyload = load float, ptr %.sroa.85.0..sroa_idx, align 8, !tbaa !11
  %.sroa.8965.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 120
  %.sroa.8965.0.copyload = load ptr, ptr %.sroa.8965.0..sroa_idx, align 8, !tbaa !5
  %.sroa.101.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 144
  %.sroa.101.0.copyload = load i32, ptr %.sroa.101.0..sroa_idx, align 8, !tbaa !9
  %13 = fcmp oeq float %.sroa.79.0.copyload, 0.000000e+00
  %.sroa.79.0 = select i1 %13, float 1.000000e+00, float %.sroa.79.0.copyload
  %14 = fcmp oeq float %.sroa.73.0.copyload, 0.000000e+00
  %.sroa.73.0 = select i1 %14, float 1.000000e+00, float %.sroa.73.0.copyload
  %15 = fcmp oeq float %.sroa.69.0.copyload, 0.000000e+00
  %.sroa.69.0 = select i1 %15, float 1.000000e+00, float %.sroa.69.0.copyload
  switch i32 %.sroa.101.0.copyload, label %26 [
    i32 9, label %16
    i32 0, label %17
    i32 12, label %18
    i32 6, label %19
    i32 3, label %20
    i32 1, label %21
    i32 7, label %22
    i32 5, label %23
    i32 4, label %24
    i32 8, label %25
  ]

16:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %2) #5
  call void @load_data_old(ptr dead_on_unwind nonnull writable sret(%struct.data) align 8 %2, ptr noundef %.sroa.3.0.copyload, i32 noundef %.sroa.13.0.copyload, i32 noundef %.sroa.22.0.copyload, ptr noundef %.sroa.30.0.copyload, i32 noundef %.sroa.56.0.copyload, i32 noundef %.sroa.39.0.copyload, i32 noundef %.sroa.32.0.copyload)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %.sroa.8965.0.copyload, ptr noundef nonnull align 8 dereferenceable(64) %2, i64 64, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %2) #5
  br label %26

17:                                               ; preds = %1
  %.sroa.11184.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 152
  %.sroa.11184.0.copyload = load ptr, ptr %.sroa.11184.0..sroa_idx, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %3) #5
  call void @load_data_augment(ptr dead_on_unwind nonnull writable sret(%struct.data) align 8 %3, ptr noundef %.sroa.3.0.copyload, i32 noundef %.sroa.13.0.copyload, i32 noundef %.sroa.22.0.copyload, ptr noundef %.sroa.30.0.copyload, i32 noundef %.sroa.56.0.copyload, ptr noundef %.sroa.11184.0.copyload, i32 noundef %.sroa.50.0.copyload, i32 noundef %.sroa.52.0.copyload, i32 noundef %.sroa.54.0.copyload, float noundef %.sroa.67.0.copyload, float noundef %.sroa.69.0, float noundef %.sroa.85.0.copyload, float noundef %.sroa.73.0, float noundef %.sroa.79.0)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %.sroa.8965.0.copyload, ptr noundef nonnull align 8 dereferenceable(64) %3, i64 64, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %3) #5
  br label %26

18:                                               ; preds = %1
  %.sroa.6348.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 88
  %.sroa.6348.0.copyload = load i32, ptr %.sroa.6348.0..sroa_idx, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %4) #5
  call void @load_data_super(ptr dead_on_unwind nonnull writable sret(%struct.data) align 8 %4, ptr noundef %.sroa.3.0.copyload, i32 noundef %.sroa.13.0.copyload, i32 noundef %.sroa.22.0.copyload, i32 noundef %.sroa.39.0.copyload, i32 noundef %.sroa.32.0.copyload, i32 noundef %.sroa.6348.0.copyload)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %.sroa.8965.0.copyload, ptr noundef nonnull align 8 dereferenceable(64) %4, i64 64, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %4) #5
  br label %26

19:                                               ; preds = %1
  %.sroa.47.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 52
  %.sroa.47.0.copyload = load i32, ptr %.sroa.47.0..sroa_idx, align 4, !tbaa !9
  %.sroa.46.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 48
  %.sroa.46.0.copyload = load i32, ptr %.sroa.46.0..sroa_idx, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %5) #5
  call void @load_data_writing(ptr dead_on_unwind nonnull writable sret(%struct.data) align 8 %5, ptr noundef %.sroa.3.0.copyload, i32 noundef %.sroa.13.0.copyload, i32 noundef %.sroa.22.0.copyload, i32 noundef %.sroa.39.0.copyload, i32 noundef %.sroa.32.0.copyload, i32 noundef %.sroa.46.0.copyload, i32 noundef %.sroa.47.0.copyload)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %.sroa.8965.0.copyload, ptr noundef nonnull align 8 dereferenceable(64) %5, i64 64, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %5) #5
  br label %26

20:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %6) #5
  call void @load_data_region(ptr dead_on_unwind nonnull writable sret(%struct.data) align 8 %6, i32 noundef %.sroa.13.0.copyload, ptr noundef %.sroa.3.0.copyload, i32 noundef %.sroa.22.0.copyload, i32 noundef %.sroa.39.0.copyload, i32 noundef %.sroa.32.0.copyload, i32 noundef %.sroa.4837.0.copyload, i32 noundef %.sroa.56.0.copyload, float noundef %.sroa.64.0.copyload, float noundef %.sroa.85.0.copyload, float noundef %.sroa.73.0, float noundef %.sroa.79.0)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %.sroa.8965.0.copyload, ptr noundef nonnull align 8 dereferenceable(64) %6, i64 64, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %6) #5
  br label %26

21:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %7) #5
  call void @load_data_detection(ptr dead_on_unwind nonnull writable sret(%struct.data) align 8 %7, i32 noundef %.sroa.13.0.copyload, ptr noundef %.sroa.3.0.copyload, i32 noundef %.sroa.22.0.copyload, i32 noundef %.sroa.39.0.copyload, i32 noundef %.sroa.32.0.copyload, i32 noundef %.sroa.4837.0.copyload, i32 noundef %.sroa.56.0.copyload, float noundef %.sroa.64.0.copyload, float noundef %.sroa.85.0.copyload, float noundef %.sroa.73.0, float noundef %.sroa.79.0)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %.sroa.8965.0.copyload, ptr noundef nonnull align 8 dereferenceable(64) %7, i64 64, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %7) #5
  br label %26

22:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %8) #5
  call void @load_data_swag(ptr dead_on_unwind nonnull writable sret(%struct.data) align 8 %8, ptr noundef %.sroa.3.0.copyload, i32 noundef %.sroa.13.0.copyload, i32 noundef %.sroa.56.0.copyload, float noundef %.sroa.64.0.copyload)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %.sroa.8965.0.copyload, ptr noundef nonnull align 8 dereferenceable(64) %8, i64 64, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %8) #5
  br label %26

23:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %9) #5
  call void @load_data_compare(ptr dead_on_unwind nonnull writable sret(%struct.data) align 8 %9, i32 noundef %.sroa.13.0.copyload, ptr noundef %.sroa.3.0.copyload, i32 noundef %.sroa.22.0.copyload, i32 noundef %.sroa.56.0.copyload, i32 noundef %.sroa.39.0.copyload, i32 noundef %.sroa.32.0.copyload)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %.sroa.8965.0.copyload, ptr noundef nonnull align 8 dereferenceable(64) %9, i64 64, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #5
  br label %26

24:                                               ; preds = %1
  %.sroa.100.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 136
  %.sroa.100.0.copyload = load ptr, ptr %.sroa.100.0..sroa_idx, align 8, !tbaa !5
  %.sroa.98.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 128
  %.sroa.98.0.copyload = load ptr, ptr %.sroa.98.0..sroa_idx, align 8, !tbaa !5
  %.sroa.12.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 16
  %.sroa.12.0.copyload = load ptr, ptr %.sroa.12.0..sroa_idx, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #5
  call void @load_image_color(ptr dead_on_unwind nonnull writable sret(%struct.image) align 8 %10, ptr noundef %.sroa.12.0.copyload, i32 noundef 0, i32 noundef 0) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %.sroa.98.0.copyload, ptr noundef nonnull align 8 dereferenceable(24) %10, i64 24, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #5
  call void @resize_image(ptr dead_on_unwind nonnull writable sret(%struct.image) align 8 %11, ptr noundef byval(%struct.image) align 8 %.sroa.98.0.copyload, i32 noundef %.sroa.39.0.copyload, i32 noundef %.sroa.32.0.copyload) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %.sroa.100.0.copyload, ptr noundef nonnull align 8 dereferenceable(24) %11, i64 24, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #5
  br label %26

25:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %12) #5
  call void @load_data_tag(ptr dead_on_unwind nonnull writable sret(%struct.data) align 8 %12, ptr noundef %.sroa.3.0.copyload, i32 noundef %.sroa.13.0.copyload, i32 noundef %.sroa.22.0.copyload, i32 noundef %.sroa.56.0.copyload, i32 noundef %.sroa.50.0.copyload, i32 noundef %.sroa.52.0.copyload, i32 noundef %.sroa.54.0.copyload, float noundef %.sroa.67.0.copyload, float noundef %.sroa.69.0, float noundef %.sroa.85.0.copyload, float noundef %.sroa.73.0, float noundef %.sroa.79.0)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %.sroa.8965.0.copyload, ptr noundef nonnull align 8 dereferenceable(64) %12, i64 64, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %12) #5
  br label %26

26:                                               ; preds = %1, %17, %19, %21, %23, %25, %24, %22, %20, %18, %16
  call void @free(ptr noundef nonnull %0) #5
  ret ptr null
}

; Function Attrs: nounwind uwtable
declare dso_local void @load_data_old(ptr dead_on_unwind noalias writable sret(%struct.data) align 8, ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
declare dso_local void @load_data_augment(ptr dead_on_unwind noalias writable sret(%struct.data) align 8, ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, float noundef, float noundef, float noundef, float noundef, float noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
declare dso_local void @load_data_super(ptr dead_on_unwind noalias writable sret(%struct.data) align 8, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
declare dso_local void @load_data_writing(ptr dead_on_unwind noalias writable sret(%struct.data) align 8, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
declare dso_local void @load_data_tag(ptr dead_on_unwind noalias writable sret(%struct.data) align 8, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, float noundef, float noundef, float noundef, float noundef, float noundef) local_unnamed_addr #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind 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 #5 = { 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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{i64 0, i64 4, !9, i64 4, i64 4, !9, i64 8, i64 4, !9, i64 12, i64 4, !9, i64 16, i64 8, !5, i64 24, i64 4, !9, i64 28, i64 4, !9, i64 32, i64 8, !5, i64 40, i64 4, !9, i64 48, i64 8, !5, i64 56, i64 8, !5}
!14 = !{i64 0, i64 4, !9, i64 4, i64 4, !9, i64 8, i64 4, !9, i64 16, i64 8, !5}


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