; LLVM IR from Overload-Technologies/Overload :: Dependencies/assimp/code/PostProcessing (TextureTransform)

; 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.aiUVTransform = type { %class.aiVector2t, %class.aiVector2t, float }
%class.aiVector2t = type { float, float }
%"struct.Assimp::STransformVecInfo" = type { %struct.aiUVTransform, i32, i32, i32, i32, %"class.std::__cxx11::list" }
%"class.std::__cxx11::list" = type { %"class.std::__cxx11::_List_base" }
%"class.std::__cxx11::_List_base" = type { %"struct.std::__cxx11::_List_base<Assimp::TTUpdateInfo, std::allocator<Assimp::TTUpdateInfo>>::_List_impl" }
%"struct.std::__cxx11::_List_base<Assimp::TTUpdateInfo, std::allocator<Assimp::TTUpdateInfo>>::_List_impl" = type { %"struct.std::__detail::_List_node_header" }
%"struct.std::__detail::_List_node_header" = type { %"struct.std::__detail::_List_node_base", i64 }
%"struct.std::__detail::_List_node_base" = type { ptr, ptr }

@.str.1 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [42 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6Assimp20TextureTransformStep21PreProcessUVTransformERNS_17STransformVecInfoE(ptr noundef nonnull align 8 dereferenceable(28) %0, ptr noundef nonnull align 8 dereferenceable(64) %1) #0 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca [512 x i8], align 16
  %7 = alloca float, align 4
  %8 = alloca i32, align 4
  %9 = alloca float, align 4
  %10 = alloca float, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %11 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 512, ptr %6) #6
  call void @llvm.memset.p0.i64(ptr align 16 %6, i8 0, i64 512, i1 false)
  %12 = load ptr, ptr %4, align 8, !tbaa !5
  %13 = getelementptr inbounds %struct.aiUVTransform, ptr %12, i32 0, i32 2
  %14 = load float, ptr %13, align 8, !tbaa !9
  %15 = fcmp une float %14, 0.000000e+00
  br i1 %15, label %16, label %46

16:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.aiUVTransform, ptr %17, i32 0, i32 2
  %19 = load float, ptr %18, align 8, !tbaa !9
  store float %19, ptr %7, align 4, !tbaa !13
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.aiUVTransform, ptr %20, i32 0, i32 2
  %22 = load float, ptr %21, align 8, !tbaa !9
  %23 = fdiv float %22, 0x401921FB60000000
  %24 = fptosi float %23 to i32
  store i32 %24, ptr %5, align 4, !tbaa !14
  %25 = load i32, ptr %5, align 4, !tbaa !14
  %26 = icmp ne i32 %25, 0
  br i1 %26, label %27, label %36

27:                                               ; preds = %16
  %28 = load i32, ptr %5, align 4, !tbaa !14
  %29 = sitofp i32 %28 to float
  %30 = load float, ptr %7, align 4, !tbaa !13
  %31 = fneg float %29
  %32 = call float @llvm.fmuladd.f32(float %31, float 0x400921FB60000000, float %30)
  store float %32, ptr %7, align 4, !tbaa !13
  %33 = call noundef ptr @_ZN6Assimp13DefaultLogger3getEv()
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.aiUVTransform, ptr %34, i32 0, i32 2
  call void @_ZN6Assimp6Logger4infoIJRA29_KcRfRA23_S2_S5_EEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(12) %33, ptr noundef nonnull align 1 dereferenceable(29) @.str.1, ptr noundef nonnull align 4 dereferenceable(4) %35, ptr noundef nonnull align 1 dereferenceable(23) @.str.2, ptr noundef nonnull align 4 dereferenceable(4) %7)
  br label %36

36:                                               ; preds = %27, %16
  %37 = load float, ptr %7, align 4, !tbaa !13
  %38 = fcmp olt float %37, 0.000000e+00
  br i1 %38, label %39, label %42

39:                                               ; preds = %36
  %40 = load float, ptr %7, align 4, !tbaa !13
  %41 = fadd float 0x402921FB60000000, %40
  store float %41, ptr %7, align 4, !tbaa !13
  br label %42

42:                                               ; preds = %39, %36
  %43 = load float, ptr %7, align 4, !tbaa !13
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.aiUVTransform, ptr %44, i32 0, i32 2
  store float %43, ptr %45, align 8, !tbaa !9
  store i32 1, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %235

46:                                               ; preds = %2
  %47 = load ptr, ptr %4, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.aiUVTransform, ptr %47, i32 0, i32 0
  %49 = getelementptr inbounds %class.aiVector2t, ptr %48, i32 0, i32 0
  %50 = load float, ptr %49, align 8, !tbaa !16
  %51 = fptosi float %50 to i32
  store i32 %51, ptr %5, align 4, !tbaa !14
  %52 = load i32, ptr %5, align 4, !tbaa !14
  %53 = icmp ne i32 %52, 0
  br i1 %53, label %54, label %140

54:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store float 0.000000e+00, ptr %9, align 4, !tbaa !13
  %55 = getelementptr inbounds [512 x i8], ptr %6, i64 0, i64 0
  store i8 0, ptr %55, align 16, !tbaa !17
  %56 = load ptr, ptr %4, align 8, !tbaa !5
  %57 = getelementptr inbounds %"struct.Assimp::STransformVecInfo", ptr %56, i32 0, i32 2
  %58 = load i32, ptr %57, align 8, !tbaa !18
  %59 = icmp eq i32 0, %58
  br i1 %59, label %60, label %77

60:                                               ; preds = %54
  %61 = load ptr, ptr %4, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.aiUVTransform, ptr %61, i32 0, i32 0
  %63 = getelementptr inbounds %class.aiVector2t, ptr %62, i32 0, i32 0
  %64 = load float, ptr %63, align 8, !tbaa !16
  %65 = load i32, ptr %5, align 4, !tbaa !14
  %66 = sitofp i32 %65 to float
  %67 = fsub float %64, %66
  store float %67, ptr %9, align 4, !tbaa !13
  %68 = getelementptr inbounds [512 x i8], ptr %6, i64 0, i64 0
  %69 = load ptr, ptr %4, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.aiUVTransform, ptr %69, i32 0, i32 0
  %71 = getelementptr inbounds %class.aiVector2t, ptr %70, i32 0, i32 0
  %72 = load float, ptr %71, align 8, !tbaa !16
  %73 = fpext float %72 to double
  %74 = load float, ptr %9, align 4, !tbaa !13
  %75 = fpext float %74 to double
  %76 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %68, i64 noundef 512, ptr noundef @.str.3, double noundef %73, double noundef %75) #6
  br label %129

77:                                               ; preds = %54
  %78 = load ptr, ptr %4, align 8, !tbaa !5
  %79 = getelementptr inbounds %"struct.Assimp::STransformVecInfo", ptr %78, i32 0, i32 2
  %80 = load i32, ptr %79, align 8, !tbaa !18
  %81 = icmp eq i32 2, %80
  br i1 %81, label %82, label %109

82:                                               ; preds = %77
  %83 = load i32, ptr %5, align 4, !tbaa !14
  %84 = icmp ne i32 1, %83
  br i1 %84, label %85, label %109

85:                                               ; preds = %82
  %86 = load i32, ptr %5, align 4, !tbaa !14
  %87 = srem i32 %86, 2
  %88 = icmp ne i32 %87, 0
  br i1 %88, label %89, label %92

89:                                               ; preds = %85
  %90 = load i32, ptr %5, align 4, !tbaa !14
  %91 = add nsw i32 %90, -1
  store i32 %91, ptr %5, align 4, !tbaa !14
  br label %92

92:                                               ; preds = %89, %85
  %93 = load ptr, ptr %4, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.aiUVTransform, ptr %93, i32 0, i32 0
  %95 = getelementptr inbounds %class.aiVector2t, ptr %94, i32 0, i32 0
  %96 = load float, ptr %95, align 8, !tbaa !16
  %97 = load i32, ptr %5, align 4, !tbaa !14
  %98 = sitofp i32 %97 to float
  %99 = fsub float %96, %98
  store float %99, ptr %9, align 4, !tbaa !13
  %100 = getelementptr inbounds [512 x i8], ptr %6, i64 0, i64 0
  %101 = load ptr, ptr %4, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.aiUVTransform, ptr %101, i32 0, i32 0
  %103 = getelementptr inbounds %class.aiVector2t, ptr %102, i32 0, i32 0
  %104 = load float, ptr %103, align 8, !tbaa !16
  %105 = fpext float %104 to double
  %106 = load float, ptr %9, align 4, !tbaa !13
  %107 = fpext float %106 to double
  %108 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %100, i64 noundef 512, ptr noundef @.str.4, double noundef %105, double noundef %107) #6
  br label %128

109:                                              ; preds = %82, %77
  %110 = load ptr, ptr %4, align 8, !tbaa !5
  %111 = getelementptr inbounds %"struct.Assimp::STransformVecInfo", ptr %110, i32 0, i32 2
  %112 = load i32, ptr %111, align 8, !tbaa !18
  %113 = icmp eq i32 1, %112
  br i1 %113, label %119, label %114

114:                                              ; preds = %109
  %115 = load ptr, ptr %4, align 8, !tbaa !5
  %116 = getelementptr inbounds %"struct.Assimp::STransformVecInfo", ptr %115, i32 0, i32 2
  %117 = load i32, ptr %116, align 8, !tbaa !18
  %118 = icmp eq i32 3, %117
  br i1 %118, label %119, label %127

119:                                              ; preds = %114, %109
  %120 = getelementptr inbounds [512 x i8], ptr %6, i64 0, i64 0
  %121 = load ptr, ptr %4, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.aiUVTransform, ptr %121, i32 0, i32 0
  %123 = getelementptr inbounds %class.aiVector2t, ptr %122, i32 0, i32 0
  %124 = load float, ptr %123, align 8, !tbaa !16
  %125 = fpext float %124 to double
  %126 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %120, i64 noundef 512, ptr noundef @.str.5, double noundef %125) #6
  store float 1.000000e+00, ptr %9, align 4, !tbaa !13
  br label %127

127:                                              ; preds = %119, %114
  br label %128

128:                                              ; preds = %127, %92
  br label %129

129:                                              ; preds = %128, %60
  %130 = getelementptr inbounds [512 x i8], ptr %6, i64 0, i64 0
  %131 = load i8, ptr %130, align 16, !tbaa !17
  %132 = icmp ne i8 %131, 0
  br i1 %132, label %133, label %139

133:                                              ; preds = %129
  %134 = call noundef ptr @_ZN6Assimp13DefaultLogger3getEv()
  call void @_ZN6Assimp6Logger4infoIJRA512_cEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(12) %134, ptr noundef nonnull align 1 dereferenceable(512) %6)
  %135 = load float, ptr %9, align 4, !tbaa !13
  %136 = load ptr, ptr %4, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.aiUVTransform, ptr %136, i32 0, i32 0
  %138 = getelementptr inbounds %class.aiVector2t, ptr %137, i32 0, i32 0
  store float %135, ptr %138, align 8, !tbaa !16
  br label %139

139:                                              ; preds = %133, %129
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %140

140:                                              ; preds = %139, %46
  %141 = load ptr, ptr %4, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.aiUVTransform, ptr %141, i32 0, i32 0
  %143 = getelementptr inbounds %class.aiVector2t, ptr %142, i32 0, i32 1
  %144 = load float, ptr %143, align 4, !tbaa !27
  %145 = fptosi float %144 to i32
  store i32 %145, ptr %5, align 4, !tbaa !14
  %146 = load i32, ptr %5, align 4, !tbaa !14
  %147 = icmp ne i32 %146, 0
  br i1 %147, label %148, label %234

148:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store float 0.000000e+00, ptr %10, align 4, !tbaa !13
  %149 = getelementptr inbounds [512 x i8], ptr %6, i64 0, i64 0
  store i8 0, ptr %149, align 16, !tbaa !17
  %150 = load ptr, ptr %4, align 8, !tbaa !5
  %151 = getelementptr inbounds %"struct.Assimp::STransformVecInfo", ptr %150, i32 0, i32 3
  %152 = load i32, ptr %151, align 4, !tbaa !28
  %153 = icmp eq i32 0, %152
  br i1 %153, label %154, label %171

154:                                              ; preds = %148
  %155 = load ptr, ptr %4, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.aiUVTransform, ptr %155, i32 0, i32 0
  %157 = getelementptr inbounds %class.aiVector2t, ptr %156, i32 0, i32 1
  %158 = load float, ptr %157, align 4, !tbaa !27
  %159 = load i32, ptr %5, align 4, !tbaa !14
  %160 = sitofp i32 %159 to float
  %161 = fsub float %158, %160
  store float %161, ptr %10, align 4, !tbaa !13
  %162 = getelementptr inbounds [512 x i8], ptr %6, i64 0, i64 0
  %163 = load ptr, ptr %4, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.aiUVTransform, ptr %163, i32 0, i32 0
  %165 = getelementptr inbounds %class.aiVector2t, ptr %164, i32 0, i32 1
  %166 = load float, ptr %165, align 4, !tbaa !27
  %167 = fpext float %166 to double
  %168 = load float, ptr %10, align 4, !tbaa !13
  %169 = fpext float %168 to double
  %170 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %162, i64 noundef 512, ptr noundef @.str.6, double noundef %167, double noundef %169) #6
  br label %223

171:                                              ; preds = %148
  %172 = load ptr, ptr %4, align 8, !tbaa !5
  %173 = getelementptr inbounds %"struct.Assimp::STransformVecInfo", ptr %172, i32 0, i32 3
  %174 = load i32, ptr %173, align 4, !tbaa !28
  %175 = icmp eq i32 2, %174
  br i1 %175, label %176, label %203

176:                                              ; preds = %171
  %177 = load i32, ptr %5, align 4, !tbaa !14
  %178 = icmp ne i32 1, %177
  br i1 %178, label %179, label %203

179:                                              ; preds = %176
  %180 = load i32, ptr %5, align 4, !tbaa !14
  %181 = srem i32 %180, 2
  %182 = icmp ne i32 %181, 0
  br i1 %182, label %183, label %186

183:                                              ; preds = %179
  %184 = load i32, ptr %5, align 4, !tbaa !14
  %185 = add nsw i32 %184, -1
  store i32 %185, ptr %5, align 4, !tbaa !14
  br label %186

186:                                              ; preds = %183, %179
  %187 = load ptr, ptr %4, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.aiUVTransform, ptr %187, i32 0, i32 0
  %189 = getelementptr inbounds %class.aiVector2t, ptr %188, i32 0, i32 0
  %190 = load float, ptr %189, align 8, !tbaa !16
  %191 = load i32, ptr %5, align 4, !tbaa !14
  %192 = sitofp i32 %191 to float
  %193 = fsub float %190, %192
  store float %193, ptr %10, align 4, !tbaa !13
  %194 = getelementptr inbounds [512 x i8], ptr %6, i64 0, i64 0
  %195 = load ptr, ptr %4, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.aiUVTransform, ptr %195, i32 0, i32 0
  %197 = getelementptr inbounds %class.aiVector2t, ptr %196, i32 0, i32 1
  %198 = load float, ptr %197, align 4, !tbaa !27
  %199 = fpext float %198 to double
  %200 = load float, ptr %10, align 4, !tbaa !13
  %201 = fpext float %200 to double
  %202 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %194, i64 noundef 512, ptr noundef @.str.7, double noundef %199, double noundef %201) #6
  br label %222

203:                                              ; preds = %176, %171
  %204 = load ptr, ptr %4, align 8, !tbaa !5
  %205 = getelementptr inbounds %"struct.Assimp::STransformVecInfo", ptr %204, i32 0, i32 3
  %206 = load i32, ptr %205, align 4, !tbaa !28
  %207 = icmp eq i32 1, %206
  br i1 %207, label %213, label %208

208:                                              ; preds = %203
  %209 = load ptr, ptr %4, align 8, !tbaa !5
  %210 = getelementptr inbounds %"struct.Assimp::STransformVecInfo", ptr %209, i32 0, i32 3
  %211 = load i32, ptr %210, align 4, !tbaa !28
  %212 = icmp eq i32 3, %211
  br i1 %212, label %213, label %221

213:                                              ; preds = %208, %203
  %214 = getelementptr inbounds [512 x i8], ptr %6, i64 0, i64 0
  %215 = load ptr, ptr %4, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct.aiUVTransform, ptr %215, i32 0, i32 0
  %217 = getelementptr inbounds %class.aiVector2t, ptr %216, i32 0, i32 1
  %218 = load float, ptr %217, align 4, !tbaa !27
  %219 = fpext float %218 to double
  %220 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %214, i64 noundef 512, ptr noundef @.str.8, double noundef %219) #6
  store float 1.000000e+00, ptr %10, align 4, !tbaa !13
  br label %221

221:                                              ; preds = %213, %208
  br label %222

222:                                              ; preds = %221, %186
  br label %223

223:                                              ; preds = %222, %154
  %224 = getelementptr inbounds [512 x i8], ptr %6, i64 0, i64 0
  %225 = load i8, ptr %224, align 16, !tbaa !17
  %226 = icmp ne i8 %225, 0
  br i1 %226, label %227, label %233

227:                                              ; preds = %223
  %228 = call noundef ptr @_ZN6Assimp13DefaultLogger3getEv()
  call void @_ZN6Assimp6Logger4infoIJRA512_cEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(12) %228, ptr noundef nonnull align 1 dereferenceable(512) %6)
  %229 = load float, ptr %10, align 4, !tbaa !13
  %230 = load ptr, ptr %4, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct.aiUVTransform, ptr %230, i32 0, i32 0
  %232 = getelementptr inbounds %class.aiVector2t, ptr %231, i32 0, i32 1
  store float %229, ptr %232, align 4, !tbaa !27
  br label %233

233:                                              ; preds = %227, %223
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %234

234:                                              ; preds = %233, %140
  store i32 0, ptr %8, align 4
  br label %235

235:                                              ; preds = %234, %42
  call void @llvm.lifetime.end.p0(i64 512, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  %236 = load i32, ptr %8, align 4
  switch i32 %236, label %238 [
    i32 0, label %237
    i32 1, label %237
  ]

237:                                              ; preds = %235, %235
  ret void

238:                                              ; preds = %235
  unreachable
}

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #3

declare noundef ptr @_ZN6Assimp13DefaultLogger3getEv() #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Assimp6Logger4infoIJRA29_KcRfRA23_S2_S5_EEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 1 dereferenceable(29), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 1 dereferenceable(23), ptr noundef nonnull align 4 dereferenceable(4)) #0 align 2

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

; Function Attrs: nounwind
declare i32 @snprintf(ptr noundef, i64 noundef, ptr noundef, ...) #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Assimp6Logger4infoIJRA512_cEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 1 dereferenceable(512)) #0 align 2

attributes #0 = { mustprogress 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { "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 "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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++ TBAA"}
!9 = !{!10, !12, i64 16}
!10 = !{!"_ZTS13aiUVTransform", !11, i64 0, !11, i64 8, !12, i64 16}
!11 = !{!"_ZTS10aiVector2tIfE", !12, i64 0, !12, i64 4}
!12 = !{!"float", !7, i64 0}
!13 = !{!12, !12, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = !{!10, !12, i64 0}
!17 = !{!7, !7, i64 0}
!18 = !{!19, !20, i64 24}
!19 = !{!"_ZTSN6Assimp17STransformVecInfoE", !10, i64 0, !15, i64 20, !20, i64 24, !20, i64 28, !15, i64 32, !21, i64 40}
!20 = !{!"_ZTS16aiTextureMapMode", !7, i64 0}
!21 = !{!"_ZTSNSt7__cxx114listIN6Assimp12TTUpdateInfoESaIS2_EEE", !22, i64 0}
!22 = !{!"_ZTSNSt7__cxx1110_List_baseIN6Assimp12TTUpdateInfoESaIS2_EEE", !23, i64 0}
!23 = !{!"_ZTSNSt7__cxx1110_List_baseIN6Assimp12TTUpdateInfoESaIS2_EE10_List_implE", !24, i64 0}
!24 = !{!"_ZTSNSt8__detail17_List_node_headerE", !25, i64 0, !26, i64 16}
!25 = !{!"_ZTSNSt8__detail15_List_node_baseE", !6, i64 0, !6, i64 8}
!26 = !{!"long", !7, i64 0}
!27 = !{!10, !12, i64 4}
!28 = !{!19, !20, i64 28}


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

@.str.1 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [42 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6Assimp20TextureTransformStep21PreProcessUVTransformERNS_17STransformVecInfoE(ptr nocapture noundef nonnull readnone align 8 dereferenceable(28) %0, ptr noundef nonnull align 8 dereferenceable(64) %1) local_unnamed_addr #0 align 2 {
  %3 = alloca [512 x i8], align 16
  %4 = alloca float, align 4
  call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %3) #6
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(512) %3, i8 0, i64 512, i1 false)
  %5 = getelementptr inbounds i8, ptr %1, i64 16
  %6 = load float, ptr %5, align 8, !tbaa !5
  %7 = fcmp une float %6, 0.000000e+00
  br i1 %7, label %8, label %21

8:                                                ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #6
  %9 = fdiv float %6, 0x401921FB60000000
  %10 = fptosi float %9 to i32
  %.not63 = icmp eq i32 %10, 0
  br i1 %.not63, label %16, label %11

11:                                               ; preds = %8
  %12 = sitofp i32 %10 to float
  %13 = fneg float %12
  %14 = tail call float @llvm.fmuladd.f32(float %13, float 0x400921FB60000000, float %6)
  store float %14, ptr %4, align 4, !tbaa !11
  %15 = tail call noundef ptr @_ZN6Assimp13DefaultLogger3getEv()
  call void @_ZN6Assimp6Logger4infoIJRA29_KcRfRA23_S2_S5_EEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(12) %15, ptr noundef nonnull align 1 dereferenceable(29) @.str.1, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 1 dereferenceable(23) @.str.2, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %.pr = load float, ptr %4, align 4, !tbaa !11
  br label %16

16:                                               ; preds = %11, %8
  %17 = phi float [ %.pr, %11 ], [ %6, %8 ]
  %18 = fcmp olt float %17, 0.000000e+00
  %19 = fadd float %17, 0x402921FB60000000
  %20 = select i1 %18, float %19, float %17
  store float %20, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  br label %83

21:                                               ; preds = %2
  %22 = load float, ptr %1, align 8, !tbaa !12
  %23 = fptosi float %22 to i32
  %.not = icmp eq i32 %23, 0
  br i1 %.not, label %51, label %24

24:                                               ; preds = %21
  %25 = getelementptr inbounds i8, ptr %1, i64 24
  %26 = load i32, ptr %25, align 8, !tbaa !13
  %27 = icmp eq i32 %26, 0
  br i1 %27, label %28, label %34

28:                                               ; preds = %24
  %29 = sitofp i32 %23 to float
  %30 = fsub float %22, %29
  %31 = fpext float %22 to double
  %32 = fpext float %30 to double
  %33 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %3, i64 noundef 512, ptr noundef nonnull @.str.3, double noundef %31, double noundef %32) #6
  br label %47

34:                                               ; preds = %24
  %35 = icmp eq i32 %26, 2
  %36 = icmp ne i32 %23, 1
  %or.cond = and i1 %36, %35
  br i1 %or.cond, label %37, label %43

37:                                               ; preds = %34
  %spec.select = and i32 %23, -2
  %38 = sitofp i32 %spec.select to float
  %39 = fsub float %22, %38
  %40 = fpext float %22 to double
  %41 = fpext float %39 to double
  %42 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %3, i64 noundef 512, ptr noundef nonnull @.str.4, double noundef %40, double noundef %41) #6
  br label %47

43:                                               ; preds = %34
  switch i32 %26, label %47 [
    i32 1, label %44
    i32 3, label %44
  ]

44:                                               ; preds = %43, %43
  %45 = fpext float %22 to double
  %46 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %3, i64 noundef 512, ptr noundef nonnull @.str.5, double noundef %45) #6
  br label %47

47:                                               ; preds = %43, %37, %44, %28
  %.050 = phi float [ %30, %28 ], [ %39, %37 ], [ 1.000000e+00, %44 ], [ 0.000000e+00, %43 ]
  %48 = load i8, ptr %3, align 16, !tbaa !24
  %.not59 = icmp eq i8 %48, 0
  br i1 %.not59, label %51, label %49

49:                                               ; preds = %47
  %50 = tail call noundef ptr @_ZN6Assimp13DefaultLogger3getEv()
  call void @_ZN6Assimp6Logger4infoIJRA512_cEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(12) %50, ptr noundef nonnull align 1 dereferenceable(512) %3)
  store float %.050, ptr %1, align 8, !tbaa !12
  br label %51

51:                                               ; preds = %47, %49, %21
  %52 = getelementptr inbounds i8, ptr %1, i64 4
  %53 = load float, ptr %52, align 4, !tbaa !25
  %54 = fptosi float %53 to i32
  %.not60 = icmp eq i32 %54, 0
  br i1 %.not60, label %83, label %55

55:                                               ; preds = %51
  store i8 0, ptr %3, align 16, !tbaa !24
  %56 = getelementptr inbounds i8, ptr %1, i64 28
  %57 = load i32, ptr %56, align 4, !tbaa !26
  %58 = icmp eq i32 %57, 0
  br i1 %58, label %59, label %65

59:                                               ; preds = %55
  %60 = sitofp i32 %54 to float
  %61 = fsub float %53, %60
  %62 = fpext float %53 to double
  %63 = fpext float %61 to double
  %64 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %3, i64 noundef 512, ptr noundef nonnull @.str.6, double noundef %62, double noundef %63) #6
  br label %79

65:                                               ; preds = %55
  %66 = icmp eq i32 %57, 2
  %67 = icmp ne i32 %54, 1
  %or.cond3 = and i1 %67, %66
  br i1 %or.cond3, label %68, label %75

68:                                               ; preds = %65
  %spec.select64 = and i32 %54, -2
  %69 = load float, ptr %1, align 8, !tbaa !12
  %70 = sitofp i32 %spec.select64 to float
  %71 = fsub float %69, %70
  %72 = fpext float %53 to double
  %73 = fpext float %71 to double
  %74 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %3, i64 noundef 512, ptr noundef nonnull @.str.7, double noundef %72, double noundef %73) #6
  br label %79

75:                                               ; preds = %65
  switch i32 %57, label %79 [
    i32 1, label %76
    i32 3, label %76
  ]

76:                                               ; preds = %75, %75
  %77 = fpext float %53 to double
  %78 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %3, i64 noundef 512, ptr noundef nonnull @.str.8, double noundef %77) #6
  br label %79

79:                                               ; preds = %75, %68, %76, %59
  %.0 = phi float [ %61, %59 ], [ %71, %68 ], [ 1.000000e+00, %76 ], [ 0.000000e+00, %75 ]
  %80 = load i8, ptr %3, align 16, !tbaa !24
  %.not62 = icmp eq i8 %80, 0
  br i1 %.not62, label %83, label %81

81:                                               ; preds = %79
  %82 = call noundef ptr @_ZN6Assimp13DefaultLogger3getEv()
  call void @_ZN6Assimp6Logger4infoIJRA512_cEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(12) %82, ptr noundef nonnull align 1 dereferenceable(512) %3)
  store float %.0, ptr %52, align 4, !tbaa !25
  br label %83

83:                                               ; preds = %51, %81, %79, %16
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %3) #6
  ret void
}

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #3

declare noundef ptr @_ZN6Assimp13DefaultLogger3getEv() local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Assimp6Logger4infoIJRA29_KcRfRA23_S2_S5_EEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 1 dereferenceable(29), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 1 dereferenceable(23), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Assimp6Logger4infoIJRA512_cEEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 1 dereferenceable(512)) local_unnamed_addr #0 align 2

attributes #0 = { mustprogress 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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, !8, i64 16}
!6 = !{!"_ZTS13aiUVTransform", !7, i64 0, !7, i64 8, !8, i64 16}
!7 = !{!"_ZTS10aiVector2tIfE", !8, i64 0, !8, i64 4}
!8 = !{!"float", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!8, !8, i64 0}
!12 = !{!6, !8, i64 0}
!13 = !{!14, !16, i64 24}
!14 = !{!"_ZTSN6Assimp17STransformVecInfoE", !6, i64 0, !15, i64 20, !16, i64 24, !16, i64 28, !15, i64 32, !17, i64 40}
!15 = !{!"int", !9, i64 0}
!16 = !{!"_ZTS16aiTextureMapMode", !9, i64 0}
!17 = !{!"_ZTSNSt7__cxx114listIN6Assimp12TTUpdateInfoESaIS2_EEE", !18, i64 0}
!18 = !{!"_ZTSNSt7__cxx1110_List_baseIN6Assimp12TTUpdateInfoESaIS2_EEE", !19, i64 0}
!19 = !{!"_ZTSNSt7__cxx1110_List_baseIN6Assimp12TTUpdateInfoESaIS2_EE10_List_implE", !20, i64 0}
!20 = !{!"_ZTSNSt8__detail17_List_node_headerE", !21, i64 0, !23, i64 16}
!21 = !{!"_ZTSNSt8__detail15_List_node_baseE", !22, i64 0, !22, i64 8}
!22 = !{!"any pointer", !9, i64 0}
!23 = !{!"long", !9, i64 0}
!24 = !{!9, !9, i64 0}
!25 = !{!6, !8, i64 4}
!26 = !{!14, !16, i64 28}


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass