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

; 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"

%class.aiMatrix4x4t = type { float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float }
%struct.aiScene = type { i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, ptr, %struct.aiString, i32, ptr, ptr }
%struct.aiString = type { i32, [1024 x i8] }
%struct.aiAnimation = type { %struct.aiString, double, double, i32, ptr, i32, ptr, i32, ptr }

@.str = external hidden unnamed_addr constant [29 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [127 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [31 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6Assimp21MakeLeftHandedProcess7ExecuteEP7aiScene(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef %1) unnamed_addr #0 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %class.aiMatrix4x4t, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %14 = load ptr, ptr %3, align 8
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.aiScene, ptr %15, i32 0, i32 1
  %17 = load ptr, ptr %16, align 8, !tbaa !9
  %18 = icmp ne ptr %17, null
  br i1 %18, label %20, label %19

19:                                               ; preds = %2
  call void @_ZN6Assimp17aiAssertViolationEPKcS1_i(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 90)
  br label %20

20:                                               ; preds = %19, %2
  %21 = phi i1 [ true, %2 ], [ false, %19 ]
  %22 = call noundef ptr @_ZN6Assimp13DefaultLogger3getEv()
  call void @_ZN6Assimp6Logger5debugEPKc(ptr noundef nonnull align 8 dereferenceable(12) %22, ptr noundef @.str.2)
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.aiScene, ptr %23, i32 0, i32 1
  %25 = load ptr, ptr %24, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 64, ptr %5) #5
  call void @_ZN12aiMatrix4x4tIfEC2Ev(ptr noundef nonnull align 4 dereferenceable(64) %5) #5
  call void @_ZN6Assimp21MakeLeftHandedProcess11ProcessNodeEP6aiNodeRK12aiMatrix4x4tIfE(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef %25, ptr noundef nonnull align 4 dereferenceable(64) %5)
  call void @llvm.lifetime.end.p0(i64 64, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 0, ptr %6, align 4, !tbaa !13
  br label %26

26:                                               ; preds = %41, %20
  %27 = load i32, ptr %6, align 4, !tbaa !13
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.aiScene, ptr %28, i32 0, i32 2
  %30 = load i32, ptr %29, align 8, !tbaa !14
  %31 = icmp ult i32 %27, %30
  br i1 %31, label %33, label %32

32:                                               ; preds = %26
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %44

33:                                               ; preds = %26
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.aiScene, ptr %34, i32 0, i32 3
  %36 = load ptr, ptr %35, align 8, !tbaa !15
  %37 = load i32, ptr %6, align 4, !tbaa !13
  %38 = zext i32 %37 to i64
  %39 = getelementptr inbounds ptr, ptr %36, i64 %38
  %40 = load ptr, ptr %39, align 8, !tbaa !5
  call void @_ZN6Assimp21MakeLeftHandedProcess11ProcessMeshEP6aiMesh(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef %40)
  br label %41

41:                                               ; preds = %33
  %42 = load i32, ptr %6, align 4, !tbaa !13
  %43 = add i32 %42, 1
  store i32 %43, ptr %6, align 4, !tbaa !13
  br label %26, !llvm.loop !16

44:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !13
  br label %45

45:                                               ; preds = %60, %44
  %46 = load i32, ptr %7, align 4, !tbaa !13
  %47 = load ptr, ptr %4, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.aiScene, ptr %47, i32 0, i32 4
  %49 = load i32, ptr %48, align 8, !tbaa !18
  %50 = icmp ult i32 %46, %49
  br i1 %50, label %52, label %51

51:                                               ; preds = %45
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %63

52:                                               ; preds = %45
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.aiScene, ptr %53, i32 0, i32 5
  %55 = load ptr, ptr %54, align 8, !tbaa !19
  %56 = load i32, ptr %7, align 4, !tbaa !13
  %57 = zext i32 %56 to i64
  %58 = getelementptr inbounds ptr, ptr %55, i64 %57
  %59 = load ptr, ptr %58, align 8, !tbaa !5
  call void @_ZN6Assimp21MakeLeftHandedProcess15ProcessMaterialEP10aiMaterial(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef %59)
  br label %60

60:                                               ; preds = %52
  %61 = load i32, ptr %7, align 4, !tbaa !13
  %62 = add i32 %61, 1
  store i32 %62, ptr %7, align 4, !tbaa !13
  br label %45, !llvm.loop !20

63:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !13
  br label %64

64:                                               ; preds = %99, %63
  %65 = load i32, ptr %8, align 4, !tbaa !13
  %66 = load ptr, ptr %4, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.aiScene, ptr %66, i32 0, i32 6
  %68 = load i32, ptr %67, align 8, !tbaa !21
  %69 = icmp ult i32 %65, %68
  br i1 %69, label %71, label %70

70:                                               ; preds = %64
  store i32 8, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %102

71:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %72 = load ptr, ptr %4, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.aiScene, ptr %72, i32 0, i32 7
  %74 = load ptr, ptr %73, align 8, !tbaa !22
  %75 = load i32, ptr %8, align 4, !tbaa !13
  %76 = zext i32 %75 to i64
  %77 = getelementptr inbounds ptr, ptr %74, i64 %76
  %78 = load ptr, ptr %77, align 8, !tbaa !5
  store ptr %78, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !13
  br label %79

79:                                               ; preds = %95, %71
  %80 = load i32, ptr %11, align 4, !tbaa !13
  %81 = load ptr, ptr %10, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.aiAnimation, ptr %81, i32 0, i32 3
  %83 = load i32, ptr %82, align 8, !tbaa !23
  %84 = icmp ult i32 %80, %83
  br i1 %84, label %86, label %85

85:                                               ; preds = %79
  store i32 11, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %98

86:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %87 = load ptr, ptr %10, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.aiAnimation, ptr %87, i32 0, i32 4
  %89 = load ptr, ptr %88, align 8, !tbaa !26
  %90 = load i32, ptr %11, align 4, !tbaa !13
  %91 = zext i32 %90 to i64
  %92 = getelementptr inbounds ptr, ptr %89, i64 %91
  %93 = load ptr, ptr %92, align 8, !tbaa !5
  store ptr %93, ptr %12, align 8, !tbaa !5
  %94 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN6Assimp21MakeLeftHandedProcess16ProcessAnimationEP10aiNodeAnim(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef %94)
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %95

95:                                               ; preds = %86
  %96 = load i32, ptr %11, align 4, !tbaa !13
  %97 = add i32 %96, 1
  store i32 %97, ptr %11, align 4, !tbaa !13
  br label %79, !llvm.loop !27

98:                                               ; preds = %85
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %99

99:                                               ; preds = %98
  %100 = load i32, ptr %8, align 4, !tbaa !13
  %101 = add i32 %100, 1
  store i32 %101, ptr %8, align 4, !tbaa !13
  br label %64, !llvm.loop !28

102:                                              ; preds = %70
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 0, ptr %13, align 4, !tbaa !13
  br label %103

103:                                              ; preds = %118, %102
  %104 = load i32, ptr %13, align 4, !tbaa !13
  %105 = load ptr, ptr %4, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.aiScene, ptr %105, i32 0, i32 12
  %107 = load i32, ptr %106, align 8, !tbaa !29
  %108 = icmp ult i32 %104, %107
  br i1 %108, label %110, label %109

109:                                              ; preds = %103
  store i32 14, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %121

110:                                              ; preds = %103
  %111 = load ptr, ptr %4, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.aiScene, ptr %111, i32 0, i32 13
  %113 = load ptr, ptr %112, align 8, !tbaa !30
  %114 = load i32, ptr %13, align 4, !tbaa !13
  %115 = zext i32 %114 to i64
  %116 = getelementptr inbounds ptr, ptr %113, i64 %115
  %117 = load ptr, ptr %116, align 8, !tbaa !5
  call void @_ZN6Assimp21MakeLeftHandedProcess13ProcessCameraEP8aiCamera(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef %117)
  br label %118

118:                                              ; preds = %110
  %119 = load i32, ptr %13, align 4, !tbaa !13
  %120 = add i32 %119, 1
  store i32 %120, ptr %13, align 4, !tbaa !13
  br label %103, !llvm.loop !31

121:                                              ; preds = %109
  %122 = call noundef ptr @_ZN6Assimp13DefaultLogger3getEv()
  call void @_ZN6Assimp6Logger5debugEPKc(ptr noundef nonnull align 8 dereferenceable(12) %122, ptr noundef @.str.3)
  ret void
}

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

declare noundef ptr @_ZN6Assimp13DefaultLogger3getEv() #1

declare void @_ZN6Assimp6Logger5debugEPKc(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Assimp21MakeLeftHandedProcess11ProcessNodeEP6aiNodeRK12aiMatrix4x4tIfE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, ptr noundef nonnull align 4 dereferenceable(64)) #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN12aiMatrix4x4tIfEC2Ev(ptr noundef nonnull align 4 dereferenceable(64)) unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Assimp21MakeLeftHandedProcess11ProcessMeshEP6aiMesh(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Assimp21MakeLeftHandedProcess15ProcessMaterialEP10aiMaterial(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6Assimp21MakeLeftHandedProcess16ProcessAnimationEP10aiNodeAnim(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Assimp21MakeLeftHandedProcess13ProcessCameraEP8aiCamera(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) #4 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 = { "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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { mustprogress uwtable "min-legal-vector-width"="64" "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++ TBAA"}
!9 = !{!10, !6, i64 8}
!10 = !{!"_ZTS7aiScene", !11, i64 0, !6, i64 8, !11, i64 16, !6, i64 24, !11, i64 32, !6, i64 40, !11, i64 48, !6, i64 56, !11, i64 64, !6, i64 72, !11, i64 80, !6, i64 88, !11, i64 96, !6, i64 104, !6, i64 112, !12, i64 120, !11, i64 1148, !6, i64 1152, !6, i64 1160}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_ZTS8aiString", !11, i64 0, !7, i64 4}
!13 = !{!11, !11, i64 0}
!14 = !{!10, !11, i64 16}
!15 = !{!10, !6, i64 24}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!10, !11, i64 32}
!19 = !{!10, !6, i64 40}
!20 = distinct !{!20, !17}
!21 = !{!10, !11, i64 48}
!22 = !{!10, !6, i64 56}
!23 = !{!24, !11, i64 1048}
!24 = !{!"_ZTS11aiAnimation", !12, i64 0, !25, i64 1032, !25, i64 1040, !11, i64 1048, !6, i64 1056, !11, i64 1064, !6, i64 1072, !11, i64 1080, !6, i64 1088}
!25 = !{!"double", !7, i64 0}
!26 = !{!24, !6, i64 1056}
!27 = distinct !{!27, !17}
!28 = distinct !{!28, !17}
!29 = !{!10, !11, i64 96}
!30 = !{!10, !6, i64 104}
!31 = distinct !{!31, !17}


; 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"

%class.aiMatrix4x4t = type { float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float }

@.str = external hidden unnamed_addr constant [29 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [127 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [31 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6Assimp21MakeLeftHandedProcess7ExecuteEP7aiScene(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr nocapture noundef readonly %1) unnamed_addr #0 align 2 {
  %3 = alloca %class.aiMatrix4x4t, align 4
  %4 = getelementptr inbounds i8, ptr %1, i64 8
  %5 = load ptr, ptr %4, align 8, !tbaa !5
  %.not = icmp eq ptr %5, null
  br i1 %.not, label %6, label %7

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

7:                                                ; preds = %6, %2
  %8 = tail call noundef ptr @_ZN6Assimp13DefaultLogger3getEv()
  tail call void @_ZN6Assimp6Logger5debugEPKc(ptr noundef nonnull align 8 dereferenceable(12) %8, ptr noundef nonnull @.str.2)
  %9 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %3) #5
  call void @_ZN12aiMatrix4x4tIfEC2Ev(ptr noundef nonnull align 4 dereferenceable(64) %3) #5
  call void @_ZN6Assimp21MakeLeftHandedProcess11ProcessNodeEP6aiNodeRK12aiMatrix4x4tIfE(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef %9, ptr noundef nonnull align 4 dereferenceable(64) %3)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %3) #5
  %10 = getelementptr inbounds i8, ptr %1, i64 16
  %11 = load i32, ptr %10, align 8, !tbaa !12
  %.not44 = icmp eq i32 %11, 0
  br i1 %.not44, label %.preheader33, label %.lr.ph

.lr.ph:                                           ; preds = %7
  %12 = getelementptr inbounds i8, ptr %1, i64 24
  br label %16

.preheader33:                                     ; preds = %16, %7
  %13 = getelementptr inbounds i8, ptr %1, i64 32
  %14 = load i32, ptr %13, align 8, !tbaa !13
  %.not45 = icmp eq i32 %14, 0
  br i1 %.not45, label %.preheader32, label %.lr.ph36

.lr.ph36:                                         ; preds = %.preheader33
  %15 = getelementptr inbounds i8, ptr %1, i64 40
  br label %26

16:                                               ; preds = %.lr.ph, %16
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %16 ]
  %17 = load ptr, ptr %12, align 8, !tbaa !14
  %18 = getelementptr inbounds ptr, ptr %17, i64 %indvars.iv
  %19 = load ptr, ptr %18, align 8, !tbaa !15
  call void @_ZN6Assimp21MakeLeftHandedProcess11ProcessMeshEP6aiMesh(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef %19)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %20 = load i32, ptr %10, align 8, !tbaa !12
  %21 = zext i32 %20 to i64
  %22 = icmp ult i64 %indvars.iv.next, %21
  br i1 %22, label %16, label %.preheader33, !llvm.loop !16

.preheader32:                                     ; preds = %26, %.preheader33
  %23 = getelementptr inbounds i8, ptr %1, i64 48
  %24 = load i32, ptr %23, align 8, !tbaa !18
  %.not46 = icmp eq i32 %24, 0
  br i1 %.not46, label %.preheader, label %.lr.ph40

.lr.ph40:                                         ; preds = %.preheader32
  %25 = getelementptr inbounds i8, ptr %1, i64 56
  br label %36

26:                                               ; preds = %.lr.ph36, %26
  %indvars.iv50 = phi i64 [ 0, %.lr.ph36 ], [ %indvars.iv.next51, %26 ]
  %27 = load ptr, ptr %15, align 8, !tbaa !19
  %28 = getelementptr inbounds ptr, ptr %27, i64 %indvars.iv50
  %29 = load ptr, ptr %28, align 8, !tbaa !15
  call void @_ZN6Assimp21MakeLeftHandedProcess15ProcessMaterialEP10aiMaterial(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef %29)
  %indvars.iv.next51 = add nuw nsw i64 %indvars.iv50, 1
  %30 = load i32, ptr %13, align 8, !tbaa !13
  %31 = zext i32 %30 to i64
  %32 = icmp ult i64 %indvars.iv.next51, %31
  br i1 %32, label %26, label %.preheader32, !llvm.loop !20

.preheader:                                       ; preds = %._crit_edge, %.preheader32
  %33 = getelementptr inbounds i8, ptr %1, i64 96
  %34 = load i32, ptr %33, align 8, !tbaa !21
  %.not48 = icmp eq i32 %34, 0
  br i1 %.not48, label %._crit_edge43, label %.lr.ph42

.lr.ph42:                                         ; preds = %.preheader
  %35 = getelementptr inbounds i8, ptr %1, i64 104
  br label %55

36:                                               ; preds = %.lr.ph40, %._crit_edge
  %37 = phi i32 [ %24, %.lr.ph40 ], [ %44, %._crit_edge ]
  %indvars.iv56 = phi i64 [ 0, %.lr.ph40 ], [ %indvars.iv.next57, %._crit_edge ]
  %38 = load ptr, ptr %25, align 8, !tbaa !22
  %39 = getelementptr inbounds ptr, ptr %38, i64 %indvars.iv56
  %40 = load ptr, ptr %39, align 8, !tbaa !15
  %41 = getelementptr inbounds i8, ptr %40, i64 1048
  %42 = load i32, ptr %41, align 8, !tbaa !23
  %.not47 = icmp eq i32 %42, 0
  br i1 %.not47, label %._crit_edge, label %.lr.ph38

.lr.ph38:                                         ; preds = %36
  %43 = getelementptr inbounds i8, ptr %40, i64 1056
  br label %47

._crit_edge.loopexit:                             ; preds = %47
  %.pre = load i32, ptr %23, align 8, !tbaa !18
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %36
  %44 = phi i32 [ %.pre, %._crit_edge.loopexit ], [ %37, %36 ]
  %indvars.iv.next57 = add nuw nsw i64 %indvars.iv56, 1
  %45 = zext i32 %44 to i64
  %46 = icmp ult i64 %indvars.iv.next57, %45
  br i1 %46, label %36, label %.preheader, !llvm.loop !26

47:                                               ; preds = %.lr.ph38, %47
  %indvars.iv53 = phi i64 [ 0, %.lr.ph38 ], [ %indvars.iv.next54, %47 ]
  %48 = load ptr, ptr %43, align 8, !tbaa !27
  %49 = getelementptr inbounds ptr, ptr %48, i64 %indvars.iv53
  %50 = load ptr, ptr %49, align 8, !tbaa !15
  call void @_ZN6Assimp21MakeLeftHandedProcess16ProcessAnimationEP10aiNodeAnim(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef %50)
  %indvars.iv.next54 = add nuw nsw i64 %indvars.iv53, 1
  %51 = load i32, ptr %41, align 8, !tbaa !23
  %52 = zext i32 %51 to i64
  %53 = icmp ult i64 %indvars.iv.next54, %52
  br i1 %53, label %47, label %._crit_edge.loopexit, !llvm.loop !28

._crit_edge43:                                    ; preds = %55, %.preheader
  %54 = call noundef ptr @_ZN6Assimp13DefaultLogger3getEv()
  call void @_ZN6Assimp6Logger5debugEPKc(ptr noundef nonnull align 8 dereferenceable(12) %54, ptr noundef nonnull @.str.3)
  ret void

55:                                               ; preds = %.lr.ph42, %55
  %indvars.iv59 = phi i64 [ 0, %.lr.ph42 ], [ %indvars.iv.next60, %55 ]
  %56 = load ptr, ptr %35, align 8, !tbaa !29
  %57 = getelementptr inbounds ptr, ptr %56, i64 %indvars.iv59
  %58 = load ptr, ptr %57, align 8, !tbaa !15
  call void @_ZN6Assimp21MakeLeftHandedProcess13ProcessCameraEP8aiCamera(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef %58)
  %indvars.iv.next60 = add nuw nsw i64 %indvars.iv59, 1
  %59 = load i32, ptr %33, align 8, !tbaa !21
  %60 = zext i32 %59 to i64
  %61 = icmp ult i64 %indvars.iv.next60, %60
  br i1 %61, label %55, label %._crit_edge43, !llvm.loop !30
}

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

declare noundef ptr @_ZN6Assimp13DefaultLogger3getEv() local_unnamed_addr #1

declare void @_ZN6Assimp6Logger5debugEPKc(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Assimp21MakeLeftHandedProcess11ProcessNodeEP6aiNodeRK12aiMatrix4x4tIfE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, ptr noundef nonnull align 4 dereferenceable(64)) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN12aiMatrix4x4tIfEC2Ev(ptr noundef nonnull align 4 dereferenceable(64)) unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Assimp21MakeLeftHandedProcess11ProcessMeshEP6aiMesh(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Assimp21MakeLeftHandedProcess15ProcessMaterialEP10aiMaterial(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6Assimp21MakeLeftHandedProcess16ProcessAnimationEP10aiNodeAnim(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Assimp21MakeLeftHandedProcess13ProcessCameraEP8aiCamera(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) local_unnamed_addr #4 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 = { "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { mustprogress uwtable "min-legal-vector-width"="64" "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, !10, i64 8}
!6 = !{!"_ZTS7aiScene", !7, i64 0, !10, i64 8, !7, i64 16, !10, i64 24, !7, i64 32, !10, i64 40, !7, i64 48, !10, i64 56, !7, i64 64, !10, i64 72, !7, i64 80, !10, i64 88, !7, i64 96, !10, i64 104, !10, i64 112, !11, i64 120, !7, i64 1148, !10, i64 1152, !10, i64 1160}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"_ZTS8aiString", !7, i64 0, !8, i64 4}
!12 = !{!6, !7, i64 16}
!13 = !{!6, !7, i64 32}
!14 = !{!6, !10, i64 24}
!15 = !{!10, !10, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!6, !7, i64 48}
!19 = !{!6, !10, i64 40}
!20 = distinct !{!20, !17}
!21 = !{!6, !7, i64 96}
!22 = !{!6, !10, i64 56}
!23 = !{!24, !7, i64 1048}
!24 = !{!"_ZTS11aiAnimation", !11, i64 0, !25, i64 1032, !25, i64 1040, !7, i64 1048, !10, i64 1056, !7, i64 1064, !10, i64 1072, !7, i64 1080, !10, i64 1088}
!25 = !{!"double", !8, i64 0}
!26 = distinct !{!26, !17}
!27 = !{!24, !10, i64 1056}
!28 = distinct !{!28, !17}
!29 = !{!6, !10, i64 104}
!30 = distinct !{!30, !17}


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