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

; 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.aiVectorKey = type { double, %class.aiVector3t, i32 }
%class.aiVector3t = type { float, float, float }
%struct.aiQuatKey = type <{ double, %class.aiQuaterniont, i32, [4 x i8] }>
%class.aiQuaterniont = type { float, float, float, float }
%struct.aiNodeAnim = type { %struct.aiString, i32, ptr, i32, ptr, i32, ptr, i32, i32 }
%struct.aiString = type { i32, [1024 x i8] }
%"class.Assimp::FindInvalidDataProcess" = type <{ %"class.Assimp::BaseProcess", float, i8, [3 x i8] }>
%"class.Assimp::BaseProcess" = type { ptr, ptr, ptr }

@.str.7 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [131 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [42 x i8], align 1

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

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) #1

declare noundef ptr @_ZN6Assimp13DefaultLogger3getEv() #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6Assimp22FindInvalidDataProcess23ProcessAnimationChannelEP10aiNodeAnim(ptr noundef nonnull align 8 dereferenceable(29) %0, ptr noundef %1) #3 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca %struct.aiVectorKey, align 8
  %7 = alloca %struct.aiQuatKey, align 8
  %8 = alloca %struct.aiVectorKey, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %9 = load ptr, ptr %3, align 8
  %10 = load ptr, ptr %4, align 8, !tbaa !5
  %11 = icmp ne ptr null, %10
  br i1 %11, label %13, label %12

12:                                               ; preds = %2
  call void @_ZN6Assimp17aiAssertViolationEPKcS1_i(ptr noundef @.str.7, ptr noundef @.str.8, i32 noundef 274)
  br label %13

13:                                               ; preds = %12, %2
  %14 = phi i1 [ true, %2 ], [ false, %12 ]
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.aiNodeAnim, ptr %15, i32 0, i32 1
  %17 = load i32, ptr %16, align 4, !tbaa !9
  %18 = icmp eq i32 %17, 0
  br i1 %18, label %19, label %31

19:                                               ; preds = %13
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.aiNodeAnim, ptr %20, i32 0, i32 3
  %22 = load i32, ptr %21, align 8, !tbaa !14
  %23 = icmp eq i32 %22, 0
  br i1 %23, label %24, label %31

24:                                               ; preds = %19
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.aiNodeAnim, ptr %25, i32 0, i32 5
  %27 = load i32, ptr %26, align 8, !tbaa !15
  %28 = icmp eq i32 %27, 0
  br i1 %28, label %29, label %31

29:                                               ; preds = %24
  %30 = call noundef ptr @_ZN6Assimp13DefaultLogger3getEv()
  call void @_ZN6Assimp6Logger5errorEPKc(ptr noundef nonnull align 8 dereferenceable(12) %30, ptr noundef @.str.9)
  br label %160

31:                                               ; preds = %24, %19, %13
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #8
  store i32 0, ptr %5, align 4, !tbaa !16
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.aiNodeAnim, ptr %32, i32 0, i32 1
  %34 = load i32, ptr %33, align 4, !tbaa !9
  %35 = icmp ugt i32 %34, 1
  br i1 %35, label %36, label %72

36:                                               ; preds = %31
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.aiNodeAnim, ptr %37, i32 0, i32 2
  %39 = load ptr, ptr %38, align 8, !tbaa !17
  %40 = load ptr, ptr %4, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.aiNodeAnim, ptr %40, i32 0, i32 1
  %42 = load i32, ptr %41, align 4, !tbaa !9
  %43 = getelementptr inbounds %"class.Assimp::FindInvalidDataProcess", ptr %9, i32 0, i32 1
  %44 = load float, ptr %43, align 8, !tbaa !18
  %45 = call noundef zeroext i1 @_Z12AllIdenticalI11aiVectorKeyEbPT_jf(ptr noundef %39, i32 noundef %42, float noundef %44)
  br i1 %45, label %46, label %72

46:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 24, ptr %6) #8
  %47 = load ptr, ptr %4, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.aiNodeAnim, ptr %47, i32 0, i32 2
  %49 = load ptr, ptr %48, align 8, !tbaa !17
  %50 = getelementptr inbounds %struct.aiVectorKey, ptr %49, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %6, ptr align 8 %50, i64 24, i1 false), !tbaa.struct !23
  %51 = load ptr, ptr %4, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.aiNodeAnim, ptr %51, i32 0, i32 2
  %53 = load ptr, ptr %52, align 8, !tbaa !17
  %54 = icmp eq ptr %53, null
  br i1 %54, label %56, label %55

55:                                               ; preds = %46
  call void @_ZdaPv(ptr noundef %53) #9
  br label %56

56:                                               ; preds = %55, %46
  %57 = load ptr, ptr %4, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.aiNodeAnim, ptr %57, i32 0, i32 1
  store i32 1, ptr %58, align 4, !tbaa !9
  %59 = call noalias noundef nonnull ptr @_Znam(i64 noundef 24) #10
  %60 = getelementptr inbounds %struct.aiVectorKey, ptr %59, i64 1
  br label %61

61:                                               ; preds = %61, %56
  %62 = phi ptr [ %59, %56 ], [ %63, %61 ]
  call void @_ZN11aiVectorKeyC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %62) #8
  %63 = getelementptr inbounds %struct.aiVectorKey, ptr %62, i64 1
  %64 = icmp eq ptr %63, %60
  br i1 %64, label %65, label %61

65:                                               ; preds = %61
  %66 = load ptr, ptr %4, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.aiNodeAnim, ptr %66, i32 0, i32 2
  store ptr %59, ptr %67, align 8, !tbaa !17
  %68 = load ptr, ptr %4, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.aiNodeAnim, ptr %68, i32 0, i32 2
  %70 = load ptr, ptr %69, align 8, !tbaa !17
  %71 = getelementptr inbounds %struct.aiVectorKey, ptr %70, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %71, ptr align 8 %6, i64 24, i1 false), !tbaa.struct !23
  store i32 1, ptr %5, align 4, !tbaa !16
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #8
  br label %72

72:                                               ; preds = %65, %36, %31
  %73 = load ptr, ptr %4, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.aiNodeAnim, ptr %73, i32 0, i32 3
  %75 = load i32, ptr %74, align 8, !tbaa !14
  %76 = icmp ugt i32 %75, 1
  br i1 %76, label %77, label %113

77:                                               ; preds = %72
  %78 = load ptr, ptr %4, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.aiNodeAnim, ptr %78, i32 0, i32 4
  %80 = load ptr, ptr %79, align 8, !tbaa !29
  %81 = load ptr, ptr %4, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.aiNodeAnim, ptr %81, i32 0, i32 3
  %83 = load i32, ptr %82, align 8, !tbaa !14
  %84 = getelementptr inbounds %"class.Assimp::FindInvalidDataProcess", ptr %9, i32 0, i32 1
  %85 = load float, ptr %84, align 8, !tbaa !18
  %86 = call noundef zeroext i1 @_Z12AllIdenticalI9aiQuatKeyEbPT_jf(ptr noundef %80, i32 noundef %83, float noundef %85)
  br i1 %86, label %87, label %113

87:                                               ; preds = %77
  call void @llvm.lifetime.start.p0(i64 32, ptr %7) #8
  %88 = load ptr, ptr %4, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.aiNodeAnim, ptr %88, i32 0, i32 4
  %90 = load ptr, ptr %89, align 8, !tbaa !29
  %91 = getelementptr inbounds %struct.aiQuatKey, ptr %90, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %7, ptr align 8 %91, i64 32, i1 false), !tbaa.struct !30
  %92 = load ptr, ptr %4, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.aiNodeAnim, ptr %92, i32 0, i32 4
  %94 = load ptr, ptr %93, align 8, !tbaa !29
  %95 = icmp eq ptr %94, null
  br i1 %95, label %97, label %96

96:                                               ; preds = %87
  call void @_ZdaPv(ptr noundef %94) #9
  br label %97

97:                                               ; preds = %96, %87
  %98 = load ptr, ptr %4, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.aiNodeAnim, ptr %98, i32 0, i32 3
  store i32 1, ptr %99, align 8, !tbaa !14
  %100 = call noalias noundef nonnull ptr @_Znam(i64 noundef 32) #10
  %101 = getelementptr inbounds %struct.aiQuatKey, ptr %100, i64 1
  br label %102

102:                                              ; preds = %102, %97
  %103 = phi ptr [ %100, %97 ], [ %104, %102 ]
  call void @_ZN9aiQuatKeyC2Ev(ptr noundef nonnull align 8 dereferenceable(28) %103) #8
  %104 = getelementptr inbounds %struct.aiQuatKey, ptr %103, i64 1
  %105 = icmp eq ptr %104, %101
  br i1 %105, label %106, label %102

106:                                              ; preds = %102
  %107 = load ptr, ptr %4, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.aiNodeAnim, ptr %107, i32 0, i32 4
  store ptr %100, ptr %108, align 8, !tbaa !29
  %109 = load ptr, ptr %4, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.aiNodeAnim, ptr %109, i32 0, i32 4
  %111 = load ptr, ptr %110, align 8, !tbaa !29
  %112 = getelementptr inbounds %struct.aiQuatKey, ptr %111, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %112, ptr align 8 %7, i64 28, i1 false), !tbaa.struct !30
  store i32 1, ptr %5, align 4, !tbaa !16
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #8
  br label %113

113:                                              ; preds = %106, %77, %72
  %114 = load ptr, ptr %4, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.aiNodeAnim, ptr %114, i32 0, i32 5
  %116 = load i32, ptr %115, align 8, !tbaa !15
  %117 = icmp ugt i32 %116, 1
  br i1 %117, label %118, label %154

118:                                              ; preds = %113
  %119 = load ptr, ptr %4, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.aiNodeAnim, ptr %119, i32 0, i32 6
  %121 = load ptr, ptr %120, align 8, !tbaa !31
  %122 = load ptr, ptr %4, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.aiNodeAnim, ptr %122, i32 0, i32 5
  %124 = load i32, ptr %123, align 8, !tbaa !15
  %125 = getelementptr inbounds %"class.Assimp::FindInvalidDataProcess", ptr %9, i32 0, i32 1
  %126 = load float, ptr %125, align 8, !tbaa !18
  %127 = call noundef zeroext i1 @_Z12AllIdenticalI11aiVectorKeyEbPT_jf(ptr noundef %121, i32 noundef %124, float noundef %126)
  br i1 %127, label %128, label %154

128:                                              ; preds = %118
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #8
  %129 = load ptr, ptr %4, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.aiNodeAnim, ptr %129, i32 0, i32 6
  %131 = load ptr, ptr %130, align 8, !tbaa !31
  %132 = getelementptr inbounds %struct.aiVectorKey, ptr %131, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %8, ptr align 8 %132, i64 24, i1 false), !tbaa.struct !23
  %133 = load ptr, ptr %4, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.aiNodeAnim, ptr %133, i32 0, i32 6
  %135 = load ptr, ptr %134, align 8, !tbaa !31
  %136 = icmp eq ptr %135, null
  br i1 %136, label %138, label %137

137:                                              ; preds = %128
  call void @_ZdaPv(ptr noundef %135) #9
  br label %138

138:                                              ; preds = %137, %128
  %139 = load ptr, ptr %4, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.aiNodeAnim, ptr %139, i32 0, i32 5
  store i32 1, ptr %140, align 8, !tbaa !15
  %141 = call noalias noundef nonnull ptr @_Znam(i64 noundef 24) #10
  %142 = getelementptr inbounds %struct.aiVectorKey, ptr %141, i64 1
  br label %143

143:                                              ; preds = %143, %138
  %144 = phi ptr [ %141, %138 ], [ %145, %143 ]
  call void @_ZN11aiVectorKeyC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %144) #8
  %145 = getelementptr inbounds %struct.aiVectorKey, ptr %144, i64 1
  %146 = icmp eq ptr %145, %142
  br i1 %146, label %147, label %143

147:                                              ; preds = %143
  %148 = load ptr, ptr %4, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.aiNodeAnim, ptr %148, i32 0, i32 6
  store ptr %141, ptr %149, align 8, !tbaa !31
  %150 = load ptr, ptr %4, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.aiNodeAnim, ptr %150, i32 0, i32 6
  %152 = load ptr, ptr %151, align 8, !tbaa !31
  %153 = getelementptr inbounds %struct.aiVectorKey, ptr %152, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %153, ptr align 8 %8, i64 24, i1 false), !tbaa.struct !23
  store i32 1, ptr %5, align 4, !tbaa !16
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #8
  br label %154

154:                                              ; preds = %147, %118, %113
  %155 = load i32, ptr %5, align 4, !tbaa !16
  %156 = icmp eq i32 1, %155
  br i1 %156, label %157, label %159

157:                                              ; preds = %154
  %158 = call noundef ptr @_ZN6Assimp13DefaultLogger3getEv()
  call void @_ZN6Assimp6Logger4warnEPKc(ptr noundef nonnull align 8 dereferenceable(12) %158, ptr noundef @.str.10)
  br label %159

159:                                              ; preds = %157, %154
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  br label %160

160:                                              ; preds = %159, %29
  ret void
}

declare void @_ZN6Assimp17aiAssertViolationEPKcS1_i(ptr noundef, ptr noundef, i32 noundef) #2

declare void @_ZN6Assimp6Logger5errorEPKc(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z12AllIdenticalI11aiVectorKeyEbPT_jf(ptr noundef, i32 noundef, float noundef) #4

; 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) #5

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11aiVectorKeyC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #7 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z12AllIdenticalI9aiQuatKeyEbPT_jf(ptr noundef, i32 noundef, float noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN9aiQuatKeyC2Ev(ptr noundef nonnull align 8 dereferenceable(28)) unnamed_addr #7 align 2

declare void @_ZN6Assimp6Logger4warnEPKc(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { inlinehint 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 #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { nobuiltin allocsize(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 #7 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nounwind }
attributes #9 = { builtin nounwind }
attributes #10 = { builtin allocsize(0) }

!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 1028}
!10 = !{!"_ZTS10aiNodeAnim", !11, i64 0, !12, i64 1028, !6, i64 1032, !12, i64 1040, !6, i64 1048, !12, i64 1056, !6, i64 1064, !13, i64 1072, !13, i64 1076}
!11 = !{!"_ZTS8aiString", !12, i64 0, !7, i64 4}
!12 = !{!"int", !7, i64 0}
!13 = !{!"_ZTS15aiAnimBehaviour", !7, i64 0}
!14 = !{!10, !12, i64 1040}
!15 = !{!10, !12, i64 1056}
!16 = !{!12, !12, i64 0}
!17 = !{!10, !6, i64 1032}
!18 = !{!19, !21, i64 24}
!19 = !{!"_ZTSN6Assimp22FindInvalidDataProcessE", !20, i64 0, !21, i64 24, !22, i64 28}
!20 = !{!"_ZTSN6Assimp11BaseProcessE", !6, i64 8, !6, i64 16}
!21 = !{!"float", !7, i64 0}
!22 = !{!"bool", !7, i64 0}
!23 = !{i64 0, i64 8, !24, i64 8, i64 4, !26, i64 12, i64 4, !26, i64 16, i64 4, !26, i64 20, i64 4, !27}
!24 = !{!25, !25, i64 0}
!25 = !{!"double", !7, i64 0}
!26 = !{!21, !21, i64 0}
!27 = !{!28, !28, i64 0}
!28 = !{!"_ZTS19aiAnimInterpolation", !7, i64 0}
!29 = !{!10, !6, i64 1048}
!30 = !{i64 0, i64 8, !24, i64 8, i64 4, !26, i64 12, i64 4, !26, i64 16, i64 4, !26, i64 20, i64 4, !26, i64 24, i64 4, !27}
!31 = !{!10, !6, i64 1064}


; 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.aiVectorKey = type { double, %class.aiVector3t, i32 }
%class.aiVector3t = type { float, float, float }
%struct.aiQuatKey = type <{ double, %class.aiQuaterniont, i32, [4 x i8] }>
%class.aiQuaterniont = type { float, float, float, float }

@.str.7 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [131 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [42 x i8], align 1

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

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) local_unnamed_addr #1

declare noundef ptr @_ZN6Assimp13DefaultLogger3getEv() local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6Assimp22FindInvalidDataProcess23ProcessAnimationChannelEP10aiNodeAnim(ptr nocapture noundef nonnull readonly align 8 dereferenceable(29) %0, ptr noundef %1) local_unnamed_addr #3 align 2 {
  %3 = alloca %struct.aiVectorKey, align 8
  %4 = alloca %struct.aiQuatKey, align 8
  %5 = alloca %struct.aiVectorKey, align 8
  %.not = icmp eq ptr %1, null
  br i1 %.not, label %6, label %7

6:                                                ; preds = %2
  tail call void @_ZN6Assimp17aiAssertViolationEPKcS1_i(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.8, i32 noundef 274)
  br label %7

7:                                                ; preds = %6, %2
  %8 = getelementptr inbounds i8, ptr %1, i64 1028
  %9 = load i32, ptr %8, align 4, !tbaa !5
  switch i32 %9, label %20 [
    i32 0, label %10
    i32 1, label %.thread
  ]

10:                                               ; preds = %7
  %11 = getelementptr inbounds i8, ptr %1, i64 1040
  %12 = load i32, ptr %11, align 8, !tbaa !13
  %13 = icmp eq i32 %12, 0
  br i1 %13, label %14, label %.thread

14:                                               ; preds = %10
  %15 = getelementptr inbounds i8, ptr %1, i64 1056
  %16 = load i32, ptr %15, align 8, !tbaa !14
  %17 = icmp eq i32 %16, 0
  br i1 %17, label %18, label %.thread

18:                                               ; preds = %14
  %19 = tail call noundef ptr @_ZN6Assimp13DefaultLogger3getEv()
  tail call void @_ZN6Assimp6Logger5errorEPKc(ptr noundef nonnull align 8 dereferenceable(12) %19, ptr noundef nonnull @.str.9)
  br label %57

20:                                               ; preds = %7
  %21 = getelementptr inbounds i8, ptr %1, i64 1032
  %22 = load ptr, ptr %21, align 8, !tbaa !15
  %23 = getelementptr inbounds i8, ptr %0, i64 24
  %24 = load float, ptr %23, align 8, !tbaa !16
  %25 = tail call noundef zeroext i1 @_Z12AllIdenticalI11aiVectorKeyEbPT_jf(ptr noundef %22, i32 noundef %9, float noundef %24)
  br i1 %25, label %26, label %.thread

26:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3)
  %27 = load ptr, ptr %21, align 8, !tbaa !15
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %27, i64 24, i1 false), !tbaa.struct !21
  tail call void @_ZdaPv(ptr noundef %27) #8
  store i32 1, ptr %8, align 4, !tbaa !5
  %28 = tail call noalias noundef nonnull dereferenceable(24) ptr @_Znam(i64 noundef 24) #9
  tail call void @_ZN11aiVectorKeyC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #10
  store ptr %28, ptr %21, align 8, !tbaa !15
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %28, ptr noundef nonnull align 8 dereferenceable(24) %3, i64 24, i1 false), !tbaa.struct !21
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3)
  br label %.thread

.thread:                                          ; preds = %7, %10, %14, %26, %20
  %.0 = phi i32 [ 1, %26 ], [ 0, %20 ], [ 0, %14 ], [ 0, %10 ], [ 0, %7 ]
  %29 = getelementptr inbounds i8, ptr %1, i64 1040
  %30 = load i32, ptr %29, align 8, !tbaa !13
  %31 = icmp ugt i32 %30, 1
  br i1 %31, label %32, label %41

32:                                               ; preds = %.thread
  %33 = getelementptr inbounds i8, ptr %1, i64 1048
  %34 = load ptr, ptr %33, align 8, !tbaa !27
  %35 = getelementptr inbounds i8, ptr %0, i64 24
  %36 = load float, ptr %35, align 8, !tbaa !16
  %37 = tail call noundef zeroext i1 @_Z12AllIdenticalI9aiQuatKeyEbPT_jf(ptr noundef %34, i32 noundef %30, float noundef %36)
  br i1 %37, label %38, label %41

38:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4)
  %39 = load ptr, ptr %33, align 8, !tbaa !27
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(32) %39, i64 32, i1 false), !tbaa.struct !28
  tail call void @_ZdaPv(ptr noundef %39) #8
  store i32 1, ptr %29, align 8, !tbaa !13
  %40 = tail call noalias noundef nonnull dereferenceable(32) ptr @_Znam(i64 noundef 32) #9
  tail call void @_ZN9aiQuatKeyC2Ev(ptr noundef nonnull align 8 dereferenceable(28) %40) #10
  store ptr %40, ptr %33, align 8, !tbaa !27
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(28) %40, ptr noundef nonnull align 8 dereferenceable(28) %4, i64 28, i1 false), !tbaa.struct !28
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4)
  br label %41

41:                                               ; preds = %38, %32, %.thread
  %.1 = phi i32 [ 1, %38 ], [ %.0, %32 ], [ %.0, %.thread ]
  %42 = getelementptr inbounds i8, ptr %1, i64 1056
  %43 = load i32, ptr %42, align 8, !tbaa !14
  %44 = icmp ugt i32 %43, 1
  br i1 %44, label %45, label %53

45:                                               ; preds = %41
  %46 = getelementptr inbounds i8, ptr %1, i64 1064
  %47 = load ptr, ptr %46, align 8, !tbaa !29
  %48 = getelementptr inbounds i8, ptr %0, i64 24
  %49 = load float, ptr %48, align 8, !tbaa !16
  %50 = tail call noundef zeroext i1 @_Z12AllIdenticalI11aiVectorKeyEbPT_jf(ptr noundef %47, i32 noundef %43, float noundef %49)
  br i1 %50, label %.thread35, label %53

.thread35:                                        ; preds = %45
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5)
  %51 = load ptr, ptr %46, align 8, !tbaa !29
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %51, i64 24, i1 false), !tbaa.struct !21
  tail call void @_ZdaPv(ptr noundef %51) #8
  store i32 1, ptr %42, align 8, !tbaa !14
  %52 = tail call noalias noundef nonnull dereferenceable(24) ptr @_Znam(i64 noundef 24) #9
  tail call void @_ZN11aiVectorKeyC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %52) #10
  store ptr %52, ptr %46, align 8, !tbaa !29
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %52, ptr noundef nonnull align 8 dereferenceable(24) %5, i64 24, i1 false), !tbaa.struct !21
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5)
  br label %55

53:                                               ; preds = %45, %41
  %54 = icmp eq i32 %.1, 1
  br i1 %54, label %55, label %57

55:                                               ; preds = %.thread35, %53
  %56 = tail call noundef ptr @_ZN6Assimp13DefaultLogger3getEv()
  tail call void @_ZN6Assimp6Logger4warnEPKc(ptr noundef nonnull align 8 dereferenceable(12) %56, ptr noundef nonnull @.str.10)
  br label %57

57:                                               ; preds = %53, %55, %18
  ret void
}

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

declare void @_ZN6Assimp6Logger5errorEPKc(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z12AllIdenticalI11aiVectorKeyEbPT_jf(ptr noundef, i32 noundef, float noundef) local_unnamed_addr #4

; 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) #5

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11aiVectorKeyC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #7 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z12AllIdenticalI9aiQuatKeyEbPT_jf(ptr noundef, i32 noundef, float noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN9aiQuatKeyC2Ev(ptr noundef nonnull align 8 dereferenceable(28)) unnamed_addr #7 align 2

declare void @_ZN6Assimp6Logger4warnEPKc(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef) local_unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { inlinehint 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 #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { nobuiltin allocsize(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 #7 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { builtin nounwind }
attributes #9 = { builtin allocsize(0) }
attributes #10 = { 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 1028}
!6 = !{!"_ZTS10aiNodeAnim", !7, i64 0, !8, i64 1028, !11, i64 1032, !8, i64 1040, !11, i64 1048, !8, i64 1056, !11, i64 1064, !12, i64 1072, !12, i64 1076}
!7 = !{!"_ZTS8aiString", !8, i64 0, !9, i64 4}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!"_ZTS15aiAnimBehaviour", !9, i64 0}
!13 = !{!6, !8, i64 1040}
!14 = !{!6, !8, i64 1056}
!15 = !{!6, !11, i64 1032}
!16 = !{!17, !19, i64 24}
!17 = !{!"_ZTSN6Assimp22FindInvalidDataProcessE", !18, i64 0, !19, i64 24, !20, i64 28}
!18 = !{!"_ZTSN6Assimp11BaseProcessE", !11, i64 8, !11, i64 16}
!19 = !{!"float", !9, i64 0}
!20 = !{!"bool", !9, i64 0}
!21 = !{i64 0, i64 8, !22, i64 8, i64 4, !24, i64 12, i64 4, !24, i64 16, i64 4, !24, i64 20, i64 4, !25}
!22 = !{!23, !23, i64 0}
!23 = !{!"double", !9, i64 0}
!24 = !{!19, !19, i64 0}
!25 = !{!26, !26, i64 0}
!26 = !{!"_ZTS19aiAnimInterpolation", !9, i64 0}
!27 = !{!6, !11, i64 1048}
!28 = !{i64 0, i64 8, !22, i64 8, i64 4, !24, i64 12, i64 4, !24, i64 16, i64 4, !24, i64 20, i64 4, !24, i64 24, i64 4, !25}
!29 = !{!6, !11, i64 1064}


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