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

; 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.aiVector3t = type { float, float, float }
%class.aiMatrix4x4t = type { float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float }
%struct.aiMesh = type { i32, i32, i32, ptr, ptr, ptr, ptr, [8 x ptr], [8 x ptr], [8 x i32], ptr, i32, ptr, i32, %struct.aiString, i32, ptr, i32, %struct.aiAABB, ptr }
%struct.aiString = type { i32, [1024 x i8] }
%struct.aiAABB = type { %class.aiVector3t, %class.aiVector3t }

@_ZN12_GLOBAL__N_111base_axis_yE = external hidden global %class.aiVector3t, align 4
@_ZN12_GLOBAL__N_111base_axis_xE = external hidden global %class.aiVector3t, align 4
@_ZN12_GLOBAL__N_111base_axis_zE = external hidden global %class.aiVector3t, align 4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN10aiVector3tIfEC2Efff(ptr noundef nonnull align 4 dereferenceable(12), float noundef, float noundef, float noundef) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z13RemoveUVSeamsP6aiMeshP10aiVector3tIfE(ptr noundef, ptr noundef) #0

; 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6Assimp23ComputeUVMappingProcess20ComputeSphereMappingEP6aiMeshRK10aiVector3tIfEPS4_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef %3) #2 align 2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %class.aiVector3t, align 4
  %10 = alloca %class.aiVector3t, align 4
  %11 = alloca %class.aiVector3t, align 4
  %12 = alloca i32, align 4
  %13 = alloca %class.aiVector3t, align 4
  %14 = alloca %class.aiVector3t, align 4
  %15 = alloca { <2 x float>, float }, align 8
  %16 = alloca %class.aiVector3t, align 4
  %17 = alloca i32, align 4
  %18 = alloca %class.aiVector3t, align 4
  %19 = alloca %class.aiVector3t, align 4
  %20 = alloca { <2 x float>, float }, align 8
  %21 = alloca %class.aiVector3t, align 4
  %22 = alloca i32, align 4
  %23 = alloca %class.aiVector3t, align 4
  %24 = alloca %class.aiVector3t, align 4
  %25 = alloca { <2 x float>, float }, align 8
  %26 = alloca %class.aiVector3t, align 4
  %27 = alloca %class.aiMatrix4x4t, align 4
  %28 = alloca i32, align 4
  %29 = alloca %class.aiVector3t, align 4
  %30 = alloca %class.aiVector3t, align 4
  %31 = alloca %class.aiVector3t, align 4
  %32 = alloca { <2 x float>, float }, align 8
  %33 = alloca { <2 x float>, float }, align 8
  %34 = alloca %class.aiVector3t, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  %35 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr %9) #8
  call void @_ZN10aiVector3tIfEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %9) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %10) #8
  call void @_ZN10aiVector3tIfEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %10) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %11) #8
  call void @_ZN10aiVector3tIfEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %11) #8
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN6Assimp14FindMeshCenterEP6aiMeshR10aiVector3tIfES4_S4_(ptr noundef %36, ptr noundef nonnull align 4 dereferenceable(12) %9, ptr noundef nonnull align 4 dereferenceable(12) %10, ptr noundef nonnull align 4 dereferenceable(12) %11)
  %37 = load ptr, ptr %7, align 8, !tbaa !5
  %38 = call noundef float @_ZmlIfET_RK10aiVector3tIS0_ES4_(ptr noundef nonnull align 4 dereferenceable(12) %37, ptr noundef nonnull align 4 dereferenceable(12) @_ZN12_GLOBAL__N_111base_axis_xE)
  %39 = fcmp oge float %38, 0x3FEE666660000000
  br i1 %39, label %40, label %77

40:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %41

41:                                               ; preds = %73, %40
  %42 = load i32, ptr %12, align 4, !tbaa !9
  %43 = load ptr, ptr %6, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.aiMesh, ptr %43, i32 0, i32 1
  %45 = load i32, ptr %44, align 4, !tbaa !11
  %46 = icmp ult i32 %42, %45
  br i1 %46, label %48, label %47

47:                                               ; preds = %41
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  br label %76

48:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 12, ptr %13) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %14) #8
  %49 = load ptr, ptr %6, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.aiMesh, ptr %49, i32 0, i32 3
  %51 = load ptr, ptr %50, align 8, !tbaa !18
  %52 = load i32, ptr %12, align 4, !tbaa !9
  %53 = zext i32 %52 to i64
  %54 = getelementptr inbounds %class.aiVector3t, ptr %51, i64 %53
  %55 = call { <2 x float>, float } @_ZmiIfE10aiVector3tIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(12) %54, ptr noundef nonnull align 4 dereferenceable(12) %9)
  store { <2 x float>, float } %55, ptr %15, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %14, ptr align 8 %15, i64 12, i1 false)
  %56 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN10aiVector3tIfE9NormalizeEv(ptr noundef nonnull align 4 dereferenceable(12) %14)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %13, ptr align 4 %56, i64 12, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 12, ptr %14) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %16) #8
  %57 = getelementptr inbounds %class.aiVector3t, ptr %13, i32 0, i32 2
  %58 = load float, ptr %57, align 4, !tbaa !21
  %59 = getelementptr inbounds %class.aiVector3t, ptr %13, i32 0, i32 1
  %60 = load float, ptr %59, align 4, !tbaa !22
  %61 = call noundef float @_ZSt5atan2ff(float noundef %58, float noundef %60)
  %62 = fadd float %61, 0x400921FB60000000
  %63 = fdiv float %62, 0x401921FB60000000
  %64 = getelementptr inbounds %class.aiVector3t, ptr %13, i32 0, i32 0
  %65 = load float, ptr %64, align 4, !tbaa !23
  %66 = call noundef float @_ZSt4asinf(float noundef %65)
  %67 = fadd float %66, 0x3FF921FB60000000
  %68 = fdiv float %67, 0x400921FB60000000
  call void @_ZN10aiVector3tIfEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %16, float noundef %63, float noundef %68, float noundef 0.000000e+00)
  %69 = load ptr, ptr %8, align 8, !tbaa !5
  %70 = load i32, ptr %12, align 4, !tbaa !9
  %71 = zext i32 %70 to i64
  %72 = getelementptr inbounds %class.aiVector3t, ptr %69, i64 %71
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %72, ptr align 4 %16, i64 12, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 12, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %13) #8
  br label %73

73:                                               ; preds = %48
  %74 = load i32, ptr %12, align 4, !tbaa !9
  %75 = add i32 %74, 1
  store i32 %75, ptr %12, align 4, !tbaa !9
  br label %41, !llvm.loop !24

76:                                               ; preds = %47
  br label %201

77:                                               ; preds = %4
  %78 = load ptr, ptr %7, align 8, !tbaa !5
  %79 = call noundef float @_ZmlIfET_RK10aiVector3tIS0_ES4_(ptr noundef nonnull align 4 dereferenceable(12) %78, ptr noundef nonnull align 4 dereferenceable(12) @_ZN12_GLOBAL__N_111base_axis_yE)
  %80 = fcmp oge float %79, 0x3FEE666660000000
  br i1 %80, label %81, label %118

81:                                               ; preds = %77
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %82

82:                                               ; preds = %114, %81
  %83 = load i32, ptr %17, align 4, !tbaa !9
  %84 = load ptr, ptr %6, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.aiMesh, ptr %84, i32 0, i32 1
  %86 = load i32, ptr %85, align 4, !tbaa !11
  %87 = icmp ult i32 %83, %86
  br i1 %87, label %89, label %88

88:                                               ; preds = %82
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  br label %117

89:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 12, ptr %18) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %19) #8
  %90 = load ptr, ptr %6, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.aiMesh, ptr %90, i32 0, i32 3
  %92 = load ptr, ptr %91, align 8, !tbaa !18
  %93 = load i32, ptr %17, align 4, !tbaa !9
  %94 = zext i32 %93 to i64
  %95 = getelementptr inbounds %class.aiVector3t, ptr %92, i64 %94
  %96 = call { <2 x float>, float } @_ZmiIfE10aiVector3tIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(12) %95, ptr noundef nonnull align 4 dereferenceable(12) %9)
  store { <2 x float>, float } %96, ptr %20, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %19, ptr align 8 %20, i64 12, i1 false)
  %97 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN10aiVector3tIfE9NormalizeEv(ptr noundef nonnull align 4 dereferenceable(12) %19)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %18, ptr align 4 %97, i64 12, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 12, ptr %19) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %21) #8
  %98 = getelementptr inbounds %class.aiVector3t, ptr %18, i32 0, i32 0
  %99 = load float, ptr %98, align 4, !tbaa !23
  %100 = getelementptr inbounds %class.aiVector3t, ptr %18, i32 0, i32 2
  %101 = load float, ptr %100, align 4, !tbaa !21
  %102 = call noundef float @_ZSt5atan2ff(float noundef %99, float noundef %101)
  %103 = fadd float %102, 0x400921FB60000000
  %104 = fdiv float %103, 0x401921FB60000000
  %105 = getelementptr inbounds %class.aiVector3t, ptr %18, i32 0, i32 1
  %106 = load float, ptr %105, align 4, !tbaa !22
  %107 = call noundef float @_ZSt4asinf(float noundef %106)
  %108 = fadd float %107, 0x3FF921FB60000000
  %109 = fdiv float %108, 0x400921FB60000000
  call void @_ZN10aiVector3tIfEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %21, float noundef %104, float noundef %109, float noundef 0.000000e+00)
  %110 = load ptr, ptr %8, align 8, !tbaa !5
  %111 = load i32, ptr %17, align 4, !tbaa !9
  %112 = zext i32 %111 to i64
  %113 = getelementptr inbounds %class.aiVector3t, ptr %110, i64 %112
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %113, ptr align 4 %21, i64 12, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 12, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %18) #8
  br label %114

114:                                              ; preds = %89
  %115 = load i32, ptr %17, align 4, !tbaa !9
  %116 = add i32 %115, 1
  store i32 %116, ptr %17, align 4, !tbaa !9
  br label %82, !llvm.loop !26

117:                                              ; preds = %88
  br label %200

118:                                              ; preds = %77
  %119 = load ptr, ptr %7, align 8, !tbaa !5
  %120 = call noundef float @_ZmlIfET_RK10aiVector3tIS0_ES4_(ptr noundef nonnull align 4 dereferenceable(12) %119, ptr noundef nonnull align 4 dereferenceable(12) @_ZN12_GLOBAL__N_111base_axis_zE)
  %121 = fcmp oge float %120, 0x3FEE666660000000
  br i1 %121, label %122, label %159

122:                                              ; preds = %118
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  store i32 0, ptr %22, align 4, !tbaa !9
  br label %123

123:                                              ; preds = %155, %122
  %124 = load i32, ptr %22, align 4, !tbaa !9
  %125 = load ptr, ptr %6, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.aiMesh, ptr %125, i32 0, i32 1
  %127 = load i32, ptr %126, align 4, !tbaa !11
  %128 = icmp ult i32 %124, %127
  br i1 %128, label %130, label %129

129:                                              ; preds = %123
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  br label %158

130:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 12, ptr %23) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %24) #8
  %131 = load ptr, ptr %6, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.aiMesh, ptr %131, i32 0, i32 3
  %133 = load ptr, ptr %132, align 8, !tbaa !18
  %134 = load i32, ptr %22, align 4, !tbaa !9
  %135 = zext i32 %134 to i64
  %136 = getelementptr inbounds %class.aiVector3t, ptr %133, i64 %135
  %137 = call { <2 x float>, float } @_ZmiIfE10aiVector3tIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(12) %136, ptr noundef nonnull align 4 dereferenceable(12) %9)
  store { <2 x float>, float } %137, ptr %25, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %24, ptr align 8 %25, i64 12, i1 false)
  %138 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN10aiVector3tIfE9NormalizeEv(ptr noundef nonnull align 4 dereferenceable(12) %24)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 4 %138, i64 12, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 12, ptr %24) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %26) #8
  %139 = getelementptr inbounds %class.aiVector3t, ptr %23, i32 0, i32 1
  %140 = load float, ptr %139, align 4, !tbaa !22
  %141 = getelementptr inbounds %class.aiVector3t, ptr %23, i32 0, i32 0
  %142 = load float, ptr %141, align 4, !tbaa !23
  %143 = call noundef float @_ZSt5atan2ff(float noundef %140, float noundef %142)
  %144 = fadd float %143, 0x400921FB60000000
  %145 = fdiv float %144, 0x401921FB60000000
  %146 = getelementptr inbounds %class.aiVector3t, ptr %23, i32 0, i32 2
  %147 = load float, ptr %146, align 4, !tbaa !21
  %148 = call noundef float @_ZSt4asinf(float noundef %147)
  %149 = fadd float %148, 0x3FF921FB60000000
  %150 = fdiv float %149, 0x400921FB60000000
  call void @_ZN10aiVector3tIfEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %26, float noundef %145, float noundef %150, float noundef 0.000000e+00)
  %151 = load ptr, ptr %8, align 8, !tbaa !5
  %152 = load i32, ptr %22, align 4, !tbaa !9
  %153 = zext i32 %152 to i64
  %154 = getelementptr inbounds %class.aiVector3t, ptr %151, i64 %153
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %154, ptr align 4 %26, i64 12, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 12, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %23) #8
  br label %155

155:                                              ; preds = %130
  %156 = load i32, ptr %22, align 4, !tbaa !9
  %157 = add i32 %156, 1
  store i32 %157, ptr %22, align 4, !tbaa !9
  br label %123, !llvm.loop !27

158:                                              ; preds = %129
  br label %199

159:                                              ; preds = %118
  call void @llvm.lifetime.start.p0(i64 64, ptr %27) #8
  call void @_ZN12aiMatrix4x4tIfEC2Ev(ptr noundef nonnull align 4 dereferenceable(64) %27) #8
  %160 = load ptr, ptr %7, align 8, !tbaa !5
  %161 = call noundef nonnull align 4 dereferenceable(64) ptr @_ZN12aiMatrix4x4tIfE12FromToMatrixERK10aiVector3tIfES4_RS0_(ptr noundef nonnull align 4 dereferenceable(12) %160, ptr noundef nonnull align 4 dereferenceable(12) @_ZN12_GLOBAL__N_111base_axis_yE, ptr noundef nonnull align 4 dereferenceable(64) %27)
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #8
  store i32 0, ptr %28, align 4, !tbaa !9
  br label %162

162:                                              ; preds = %195, %159
  %163 = load i32, ptr %28, align 4, !tbaa !9
  %164 = load ptr, ptr %6, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.aiMesh, ptr %164, i32 0, i32 1
  %166 = load i32, ptr %165, align 4, !tbaa !11
  %167 = icmp ult i32 %163, %166
  br i1 %167, label %169, label %168

168:                                              ; preds = %162
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  br label %198

169:                                              ; preds = %162
  call void @llvm.lifetime.start.p0(i64 12, ptr %29) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %30) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %31) #8
  %170 = load ptr, ptr %6, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.aiMesh, ptr %170, i32 0, i32 3
  %172 = load ptr, ptr %171, align 8, !tbaa !18
  %173 = load i32, ptr %28, align 4, !tbaa !9
  %174 = zext i32 %173 to i64
  %175 = getelementptr inbounds %class.aiVector3t, ptr %172, i64 %174
  %176 = call { <2 x float>, float } @_ZmlIfE10aiVector3tIT_ERK12aiMatrix4x4tIS1_ERKS2_(ptr noundef nonnull align 4 dereferenceable(64) %27, ptr noundef nonnull align 4 dereferenceable(12) %175)
  store { <2 x float>, float } %176, ptr %32, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %31, ptr align 8 %32, i64 12, i1 false)
  %177 = call { <2 x float>, float } @_ZmiIfE10aiVector3tIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(12) %31, ptr noundef nonnull align 4 dereferenceable(12) %9)
  store { <2 x float>, float } %177, ptr %33, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %30, ptr align 8 %33, i64 12, i1 false)
  %178 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN10aiVector3tIfE9NormalizeEv(ptr noundef nonnull align 4 dereferenceable(12) %30)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %29, ptr align 4 %178, i64 12, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 12, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %30) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %34) #8
  %179 = getelementptr inbounds %class.aiVector3t, ptr %29, i32 0, i32 1
  %180 = load float, ptr %179, align 4, !tbaa !22
  %181 = getelementptr inbounds %class.aiVector3t, ptr %29, i32 0, i32 0
  %182 = load float, ptr %181, align 4, !tbaa !23
  %183 = call noundef float @_ZSt5atan2ff(float noundef %180, float noundef %182)
  %184 = fadd float %183, 0x400921FB60000000
  %185 = fdiv float %184, 0x401921FB60000000
  %186 = getelementptr inbounds %class.aiVector3t, ptr %29, i32 0, i32 2
  %187 = load float, ptr %186, align 4, !tbaa !21
  %188 = call noundef float @_ZSt4asinf(float noundef %187)
  %189 = fadd float %188, 0x3FF921FB60000000
  %190 = fdiv float %189, 0x400921FB60000000
  call void @_ZN10aiVector3tIfEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %34, float noundef %185, float noundef %190, float noundef 0.000000e+00)
  %191 = load ptr, ptr %8, align 8, !tbaa !5
  %192 = load i32, ptr %28, align 4, !tbaa !9
  %193 = zext i32 %192 to i64
  %194 = getelementptr inbounds %class.aiVector3t, ptr %191, i64 %193
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %194, ptr align 4 %34, i64 12, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 12, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %29) #8
  br label %195

195:                                              ; preds = %169
  %196 = load i32, ptr %28, align 4, !tbaa !9
  %197 = add i32 %196, 1
  store i32 %197, ptr %28, align 4, !tbaa !9
  br label %162, !llvm.loop !28

198:                                              ; preds = %168
  call void @llvm.lifetime.end.p0(i64 64, ptr %27) #8
  br label %199

199:                                              ; preds = %198, %158
  br label %200

200:                                              ; preds = %199, %117
  br label %201

201:                                              ; preds = %200, %76
  %202 = load ptr, ptr %6, align 8, !tbaa !5
  %203 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_Z13RemoveUVSeamsP6aiMeshP10aiVector3tIfE(ptr noundef %202, ptr noundef %203)
  call void @llvm.lifetime.end.p0(i64 12, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %9) #8
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN10aiVector3tIfEC2Ev(ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #0 align 2

declare void @_ZN6Assimp14FindMeshCenterEP6aiMeshR10aiVector3tIfES4_S4_(ptr noundef, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZmlIfET_RK10aiVector3tIS0_ES4_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { <2 x float>, float } @_ZmiIfE10aiVector3tIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #5

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZN10aiVector3tIfE9NormalizeEv(ptr noundef nonnull align 4 dereferenceable(12)) #7 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt5atan2ff(float noundef, float noundef) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt4asinf(float noundef) #4

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(64) ptr @_ZN12aiMatrix4x4tIfE12FromToMatrixERK10aiVector3tIfES4_RS0_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(64)) #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local { <2 x float>, float } @_ZmlIfE10aiVector3tIT_ERK12aiMatrix4x4tIS1_ERKS2_(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(12)) #4

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { "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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #6 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { 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 #8 = { 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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 4}
!12 = !{!"_ZTS6aiMesh", !10, i64 0, !10, i64 4, !10, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !7, i64 48, !7, i64 112, !7, i64 176, !6, i64 208, !10, i64 216, !6, i64 224, !10, i64 232, !13, i64 236, !10, i64 1264, !6, i64 1272, !14, i64 1280, !15, i64 1284, !6, i64 1312}
!13 = !{!"_ZTS8aiString", !10, i64 0, !7, i64 4}
!14 = !{!"_ZTS16aiMorphingMethod", !7, i64 0}
!15 = !{!"_ZTS6aiAABB", !16, i64 0, !16, i64 12}
!16 = !{!"_ZTS10aiVector3tIfE", !17, i64 0, !17, i64 4, !17, i64 8}
!17 = !{!"float", !7, i64 0}
!18 = !{!12, !6, i64 16}
!19 = !{i64 0, i64 4, !20, i64 4, i64 4, !20, i64 8, i64 4, !20}
!20 = !{!17, !17, i64 0}
!21 = !{!16, !17, i64 8}
!22 = !{!16, !17, i64 4}
!23 = !{!16, !17, i64 0}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = distinct !{!26, !25}
!27 = distinct !{!27, !25}
!28 = distinct !{!28, !25}


; 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.aiVector3t = type { float, float, float }
%class.aiMatrix4x4t = type { float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float }

@_ZN12_GLOBAL__N_111base_axis_yE = external hidden global %class.aiVector3t, align 4
@_ZN12_GLOBAL__N_111base_axis_xE = external hidden global %class.aiVector3t, align 4
@_ZN12_GLOBAL__N_111base_axis_zE = external hidden global %class.aiVector3t, align 4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN10aiVector3tIfEC2Efff(ptr noundef nonnull align 4 dereferenceable(12), float noundef, float noundef, float noundef) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z13RemoveUVSeamsP6aiMeshP10aiVector3tIfE(ptr noundef, ptr noundef) local_unnamed_addr #0

; 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6Assimp23ComputeUVMappingProcess20ComputeSphereMappingEP6aiMeshRK10aiVector3tIfEPS4_(ptr nocapture noundef nonnull readnone align 8 dereferenceable(24) %0, ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef %3) local_unnamed_addr #2 align 2 {
  %5 = alloca %class.aiVector3t, align 4
  %6 = alloca %class.aiVector3t, align 4
  %7 = alloca %class.aiVector3t, align 4
  %8 = alloca %class.aiVector3t, align 8
  %9 = alloca %class.aiVector3t, align 4
  %10 = alloca %class.aiVector3t, align 8
  %11 = alloca %class.aiVector3t, align 4
  %12 = alloca %class.aiVector3t, align 8
  %13 = alloca %class.aiVector3t, align 4
  %14 = alloca %class.aiMatrix4x4t, align 4
  %15 = alloca %class.aiVector3t, align 8
  %16 = alloca %class.aiVector3t, align 8
  %17 = alloca %class.aiVector3t, align 4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #8
  call void @_ZN10aiVector3tIfEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %5) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #8
  call void @_ZN10aiVector3tIfEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %6) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #8
  call void @_ZN10aiVector3tIfEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %7) #8
  call void @_ZN6Assimp14FindMeshCenterEP6aiMeshR10aiVector3tIfES4_S4_(ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(12) %5, ptr noundef nonnull align 4 dereferenceable(12) %6, ptr noundef nonnull align 4 dereferenceable(12) %7)
  %18 = call noundef float @_ZmlIfET_RK10aiVector3tIS0_ES4_(ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(12) @_ZN12_GLOBAL__N_111base_axis_xE)
  %19 = fcmp ult float %18, 0x3FEE666660000000
  br i1 %19, label %38, label %.preheader66

.preheader66:                                     ; preds = %4
  %20 = getelementptr inbounds i8, ptr %1, i64 4
  %21 = load i32, ptr %20, align 4, !tbaa !5
  %.not = icmp eq i32 %21, 0
  br i1 %.not, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader66
  %22 = getelementptr inbounds i8, ptr %1, i64 16
  %.sroa.234.0..sroa_idx = getelementptr inbounds i8, ptr %8, i64 8
  br label %23

23:                                               ; preds = %.lr.ph, %23
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %23 ]
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %8) #8
  %24 = load ptr, ptr %22, align 8, !tbaa !16
  %25 = getelementptr inbounds %class.aiVector3t, ptr %24, i64 %indvars.iv
  %26 = call { <2 x float>, float } @_ZmiIfE10aiVector3tIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(12) %25, ptr noundef nonnull align 4 dereferenceable(12) %5)
  %.fca.0.extract31 = extractvalue { <2 x float>, float } %26, 0
  %.fca.1.extract32 = extractvalue { <2 x float>, float } %26, 1
  store <2 x float> %.fca.0.extract31, ptr %8, align 8
  store float %.fca.1.extract32, ptr %.sroa.234.0..sroa_idx, align 8
  %27 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN10aiVector3tIfE9NormalizeEv(ptr noundef nonnull align 4 dereferenceable(12) %8)
  %.sroa.035.0.copyload = load float, ptr %27, align 4, !tbaa !17
  %.sroa.436.0..sroa_idx = getelementptr inbounds i8, ptr %27, i64 4
  %.sroa.436.0.copyload = load float, ptr %.sroa.436.0..sroa_idx, align 4, !tbaa !17
  %.sroa.537.0..sroa_idx = getelementptr inbounds i8, ptr %27, i64 8
  %.sroa.537.0.copyload = load float, ptr %.sroa.537.0..sroa_idx, align 4, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #8
  %28 = call noundef float @_ZSt5atan2ff(float noundef %.sroa.537.0.copyload, float noundef %.sroa.436.0.copyload)
  %29 = fadd float %28, 0x400921FB60000000
  %30 = fdiv float %29, 0x401921FB60000000
  %31 = call noundef float @_ZSt4asinf(float noundef %.sroa.035.0.copyload)
  %32 = fadd float %31, 0x3FF921FB60000000
  %33 = fdiv float %32, 0x400921FB60000000
  call void @_ZN10aiVector3tIfEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %9, float noundef %30, float noundef %33, float noundef 0.000000e+00)
  %34 = getelementptr inbounds %class.aiVector3t, ptr %3, i64 %indvars.iv
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %34, ptr noundef nonnull align 4 dereferenceable(12) %9, i64 12, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %35 = load i32, ptr %20, align 4, !tbaa !5
  %36 = zext i32 %35 to i64
  %37 = icmp ult i64 %indvars.iv.next, %36
  br i1 %37, label %23, label %.loopexit, !llvm.loop !19

38:                                               ; preds = %4
  %39 = call noundef float @_ZmlIfET_RK10aiVector3tIS0_ES4_(ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(12) @_ZN12_GLOBAL__N_111base_axis_yE)
  %40 = fcmp ult float %39, 0x3FEE666660000000
  br i1 %40, label %59, label %.preheader64

.preheader64:                                     ; preds = %38
  %41 = getelementptr inbounds i8, ptr %1, i64 4
  %42 = load i32, ptr %41, align 4, !tbaa !5
  %.not75 = icmp eq i32 %42, 0
  br i1 %.not75, label %.loopexit, label %.lr.ph70

.lr.ph70:                                         ; preds = %.preheader64
  %43 = getelementptr inbounds i8, ptr %1, i64 16
  %.sroa.223.0..sroa_idx = getelementptr inbounds i8, ptr %10, i64 8
  br label %44

44:                                               ; preds = %.lr.ph70, %44
  %indvars.iv81 = phi i64 [ 0, %.lr.ph70 ], [ %indvars.iv.next82, %44 ]
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %10) #8
  %45 = load ptr, ptr %43, align 8, !tbaa !16
  %46 = getelementptr inbounds %class.aiVector3t, ptr %45, i64 %indvars.iv81
  %47 = call { <2 x float>, float } @_ZmiIfE10aiVector3tIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(12) %46, ptr noundef nonnull align 4 dereferenceable(12) %5)
  %.fca.0.extract20 = extractvalue { <2 x float>, float } %47, 0
  %.fca.1.extract21 = extractvalue { <2 x float>, float } %47, 1
  store <2 x float> %.fca.0.extract20, ptr %10, align 8
  store float %.fca.1.extract21, ptr %.sroa.223.0..sroa_idx, align 8
  %48 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN10aiVector3tIfE9NormalizeEv(ptr noundef nonnull align 4 dereferenceable(12) %10)
  %.sroa.024.0.copyload = load float, ptr %48, align 4, !tbaa !17
  %.sroa.425.0..sroa_idx = getelementptr inbounds i8, ptr %48, i64 4
  %.sroa.425.0.copyload = load float, ptr %.sroa.425.0..sroa_idx, align 4, !tbaa !17
  %.sroa.526.0..sroa_idx = getelementptr inbounds i8, ptr %48, i64 8
  %.sroa.526.0.copyload = load float, ptr %.sroa.526.0..sroa_idx, align 4, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %10) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %11) #8
  %49 = call noundef float @_ZSt5atan2ff(float noundef %.sroa.024.0.copyload, float noundef %.sroa.526.0.copyload)
  %50 = fadd float %49, 0x400921FB60000000
  %51 = fdiv float %50, 0x401921FB60000000
  %52 = call noundef float @_ZSt4asinf(float noundef %.sroa.425.0.copyload)
  %53 = fadd float %52, 0x3FF921FB60000000
  %54 = fdiv float %53, 0x400921FB60000000
  call void @_ZN10aiVector3tIfEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %11, float noundef %51, float noundef %54, float noundef 0.000000e+00)
  %55 = getelementptr inbounds %class.aiVector3t, ptr %3, i64 %indvars.iv81
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %55, ptr noundef nonnull align 4 dereferenceable(12) %11, i64 12, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #8
  %indvars.iv.next82 = add nuw nsw i64 %indvars.iv81, 1
  %56 = load i32, ptr %41, align 4, !tbaa !5
  %57 = zext i32 %56 to i64
  %58 = icmp ult i64 %indvars.iv.next82, %57
  br i1 %58, label %44, label %.loopexit, !llvm.loop !21

59:                                               ; preds = %38
  %60 = call noundef float @_ZmlIfET_RK10aiVector3tIS0_ES4_(ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(12) @_ZN12_GLOBAL__N_111base_axis_zE)
  %61 = fcmp ult float %60, 0x3FEE666660000000
  br i1 %61, label %80, label %.preheader

.preheader:                                       ; preds = %59
  %62 = getelementptr inbounds i8, ptr %1, i64 4
  %63 = load i32, ptr %62, align 4, !tbaa !5
  %.not76 = icmp eq i32 %63, 0
  br i1 %.not76, label %.loopexit, label %.lr.ph72

.lr.ph72:                                         ; preds = %.preheader
  %64 = getelementptr inbounds i8, ptr %1, i64 16
  %.sroa.212.0..sroa_idx = getelementptr inbounds i8, ptr %12, i64 8
  br label %65

65:                                               ; preds = %.lr.ph72, %65
  %indvars.iv84 = phi i64 [ 0, %.lr.ph72 ], [ %indvars.iv.next85, %65 ]
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %12) #8
  %66 = load ptr, ptr %64, align 8, !tbaa !16
  %67 = getelementptr inbounds %class.aiVector3t, ptr %66, i64 %indvars.iv84
  %68 = call { <2 x float>, float } @_ZmiIfE10aiVector3tIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(12) %67, ptr noundef nonnull align 4 dereferenceable(12) %5)
  %.fca.0.extract9 = extractvalue { <2 x float>, float } %68, 0
  %.fca.1.extract10 = extractvalue { <2 x float>, float } %68, 1
  store <2 x float> %.fca.0.extract9, ptr %12, align 8
  store float %.fca.1.extract10, ptr %.sroa.212.0..sroa_idx, align 8
  %69 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN10aiVector3tIfE9NormalizeEv(ptr noundef nonnull align 4 dereferenceable(12) %12)
  %.sroa.013.0.copyload = load float, ptr %69, align 4, !tbaa !17
  %.sroa.414.0..sroa_idx = getelementptr inbounds i8, ptr %69, i64 4
  %.sroa.414.0.copyload = load float, ptr %.sroa.414.0..sroa_idx, align 4, !tbaa !17
  %.sroa.515.0..sroa_idx = getelementptr inbounds i8, ptr %69, i64 8
  %.sroa.515.0.copyload = load float, ptr %.sroa.515.0..sroa_idx, align 4, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %12) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %13) #8
  %70 = call noundef float @_ZSt5atan2ff(float noundef %.sroa.414.0.copyload, float noundef %.sroa.013.0.copyload)
  %71 = fadd float %70, 0x400921FB60000000
  %72 = fdiv float %71, 0x401921FB60000000
  %73 = call noundef float @_ZSt4asinf(float noundef %.sroa.515.0.copyload)
  %74 = fadd float %73, 0x3FF921FB60000000
  %75 = fdiv float %74, 0x400921FB60000000
  call void @_ZN10aiVector3tIfEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %13, float noundef %72, float noundef %75, float noundef 0.000000e+00)
  %76 = getelementptr inbounds %class.aiVector3t, ptr %3, i64 %indvars.iv84
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %76, ptr noundef nonnull align 4 dereferenceable(12) %13, i64 12, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %13) #8
  %indvars.iv.next85 = add nuw nsw i64 %indvars.iv84, 1
  %77 = load i32, ptr %62, align 4, !tbaa !5
  %78 = zext i32 %77 to i64
  %79 = icmp ult i64 %indvars.iv.next85, %78
  br i1 %79, label %65, label %.loopexit, !llvm.loop !22

80:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %14) #8
  call void @_ZN12aiMatrix4x4tIfEC2Ev(ptr noundef nonnull align 4 dereferenceable(64) %14) #8
  %81 = call noundef nonnull align 4 dereferenceable(64) ptr @_ZN12aiMatrix4x4tIfE12FromToMatrixERK10aiVector3tIfES4_RS0_(ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(12) @_ZN12_GLOBAL__N_111base_axis_yE, ptr noundef nonnull align 4 dereferenceable(64) %14)
  %82 = getelementptr inbounds i8, ptr %1, i64 4
  %83 = load i32, ptr %82, align 4, !tbaa !5
  %.not77 = icmp eq i32 %83, 0
  br i1 %.not77, label %._crit_edge, label %.lr.ph74

.lr.ph74:                                         ; preds = %80
  %84 = getelementptr inbounds i8, ptr %1, i64 16
  %.sroa.24.0..sroa_idx = getelementptr inbounds i8, ptr %16, i64 8
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %15, i64 8
  br label %85

._crit_edge:                                      ; preds = %85, %80
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %14) #8
  br label %.loopexit

85:                                               ; preds = %.lr.ph74, %85
  %indvars.iv87 = phi i64 [ 0, %.lr.ph74 ], [ %indvars.iv.next88, %85 ]
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %15) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %16) #8
  %86 = load ptr, ptr %84, align 8, !tbaa !16
  %87 = getelementptr inbounds %class.aiVector3t, ptr %86, i64 %indvars.iv87
  %88 = call { <2 x float>, float } @_ZmlIfE10aiVector3tIT_ERK12aiMatrix4x4tIS1_ERKS2_(ptr noundef nonnull align 4 dereferenceable(64) %14, ptr noundef nonnull align 4 dereferenceable(12) %87)
  %.fca.0.extract1 = extractvalue { <2 x float>, float } %88, 0
  %.fca.1.extract2 = extractvalue { <2 x float>, float } %88, 1
  store <2 x float> %.fca.0.extract1, ptr %16, align 8
  store float %.fca.1.extract2, ptr %.sroa.24.0..sroa_idx, align 8
  %89 = call { <2 x float>, float } @_ZmiIfE10aiVector3tIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(12) %16, ptr noundef nonnull align 4 dereferenceable(12) %5)
  %.fca.0.extract = extractvalue { <2 x float>, float } %89, 0
  %.fca.1.extract = extractvalue { <2 x float>, float } %89, 1
  store <2 x float> %.fca.0.extract, ptr %15, align 8
  store float %.fca.1.extract, ptr %.sroa.2.0..sroa_idx, align 8
  %90 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN10aiVector3tIfE9NormalizeEv(ptr noundef nonnull align 4 dereferenceable(12) %15)
  %.sroa.05.0.copyload = load float, ptr %90, align 4, !tbaa !17
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %90, i64 4
  %.sroa.4.0.copyload = load float, ptr %.sroa.4.0..sroa_idx, align 4, !tbaa !17
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %90, i64 8
  %.sroa.5.0.copyload = load float, ptr %.sroa.5.0..sroa_idx, align 4, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %16) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %15) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %17) #8
  %91 = call noundef float @_ZSt5atan2ff(float noundef %.sroa.4.0.copyload, float noundef %.sroa.05.0.copyload)
  %92 = fadd float %91, 0x400921FB60000000
  %93 = fdiv float %92, 0x401921FB60000000
  %94 = call noundef float @_ZSt4asinf(float noundef %.sroa.5.0.copyload)
  %95 = fadd float %94, 0x3FF921FB60000000
  %96 = fdiv float %95, 0x400921FB60000000
  call void @_ZN10aiVector3tIfEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %17, float noundef %93, float noundef %96, float noundef 0.000000e+00)
  %97 = getelementptr inbounds %class.aiVector3t, ptr %3, i64 %indvars.iv87
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %97, ptr noundef nonnull align 4 dereferenceable(12) %17, i64 12, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %17) #8
  %indvars.iv.next88 = add nuw nsw i64 %indvars.iv87, 1
  %98 = load i32, ptr %82, align 4, !tbaa !5
  %99 = zext i32 %98 to i64
  %100 = icmp ult i64 %indvars.iv.next88, %99
  br i1 %100, label %85, label %._crit_edge, !llvm.loop !23

.loopexit:                                        ; preds = %23, %44, %65, %.preheader66, %.preheader64, %.preheader, %._crit_edge
  call void @_Z13RemoveUVSeamsP6aiMeshP10aiVector3tIfE(ptr noundef nonnull %1, ptr noundef %3)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #8
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN10aiVector3tIfEC2Ev(ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #0 align 2

declare void @_ZN6Assimp14FindMeshCenterEP6aiMeshR10aiVector3tIfES4_S4_(ptr noundef, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZmlIfET_RK10aiVector3tIS0_ES4_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { <2 x float>, float } @_ZmiIfE10aiVector3tIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #5

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZN10aiVector3tIfE9NormalizeEv(ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #7 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt5atan2ff(float noundef, float noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt4asinf(float noundef) local_unnamed_addr #4

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(64) ptr @_ZN12aiMatrix4x4tIfE12FromToMatrixERK10aiVector3tIfES4_RS0_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(64)) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local { <2 x float>, float } @_ZmlIfE10aiVector3tIT_ERK12aiMatrix4x4tIS1_ERKS2_(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #4

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 4}
!6 = !{!"_ZTS6aiMesh", !7, i64 0, !7, i64 4, !7, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !8, i64 48, !8, i64 112, !8, i64 176, !10, i64 208, !7, i64 216, !10, i64 224, !7, i64 232, !11, i64 236, !7, i64 1264, !10, i64 1272, !12, i64 1280, !13, i64 1284, !10, i64 1312}
!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 = !{!"_ZTS16aiMorphingMethod", !8, i64 0}
!13 = !{!"_ZTS6aiAABB", !14, i64 0, !14, i64 12}
!14 = !{!"_ZTS10aiVector3tIfE", !15, i64 0, !15, i64 4, !15, i64 8}
!15 = !{!"float", !8, i64 0}
!16 = !{!6, !10, i64 16}
!17 = !{!15, !15, i64 0}
!18 = !{i64 0, i64 4, !17, i64 4, i64 4, !17, i64 8, i64 4, !17}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = distinct !{!22, !20}
!23 = distinct !{!23, !20}


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