; LLVM IR from zeux/meshoptimizer :: gltf/material.ll (Z17optimizeMaterialsP10cgltf_dataPKcRSt6vectorI9ImageInfoSaIS4_EE)

; 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.cgltf_data = type { i32, ptr, %struct.cgltf_asset, ptr, i64, ptr, i64, ptr, i64, ptr, i64, ptr, i64, ptr, i64, ptr, i64, ptr, i64, ptr, i64, ptr, i64, ptr, i64, ptr, i64, ptr, i64, ptr, ptr, i64, ptr, i64, %struct.cgltf_extras, i64, ptr, ptr, i64, ptr, i64, ptr, i64, ptr, i64, %struct.cgltf_memory_options, %struct.cgltf_file_options }
%struct.cgltf_asset = type { ptr, ptr, ptr, ptr, %struct.cgltf_extras, i64, ptr }
%struct.cgltf_extras = type { i64, i64, ptr }
%struct.cgltf_memory_options = type { ptr, ptr, ptr }
%struct.cgltf_file_options = type { ptr, ptr, ptr }
%struct.cgltf_material = type { ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, %struct.cgltf_pbr_metallic_roughness, %struct.cgltf_pbr_specular_glossiness, %struct.cgltf_clearcoat, %struct.cgltf_ior, %struct.cgltf_specular, %struct.cgltf_sheen, %struct.cgltf_transmission, %struct.cgltf_volume, %struct.cgltf_emissive_strength, %struct.cgltf_iridescence, %struct.cgltf_diffuse_transmission, %struct.cgltf_anisotropy, %struct.cgltf_dispersion, %struct.cgltf_texture_view, %struct.cgltf_texture_view, %struct.cgltf_texture_view, [3 x float], i32, float, i32, i32, %struct.cgltf_extras, i64, ptr }
%struct.cgltf_pbr_metallic_roughness = type { %struct.cgltf_texture_view, %struct.cgltf_texture_view, [4 x float], float, float }
%struct.cgltf_pbr_specular_glossiness = type { %struct.cgltf_texture_view, %struct.cgltf_texture_view, [4 x float], [3 x float], float }
%struct.cgltf_clearcoat = type { %struct.cgltf_texture_view, %struct.cgltf_texture_view, %struct.cgltf_texture_view, float, float }
%struct.cgltf_ior = type { float }
%struct.cgltf_specular = type { %struct.cgltf_texture_view, %struct.cgltf_texture_view, [3 x float], float }
%struct.cgltf_sheen = type { %struct.cgltf_texture_view, [3 x float], %struct.cgltf_texture_view, float }
%struct.cgltf_transmission = type { %struct.cgltf_texture_view, float }
%struct.cgltf_volume = type { %struct.cgltf_texture_view, float, [3 x float], float }
%struct.cgltf_emissive_strength = type { float }
%struct.cgltf_iridescence = type { float, %struct.cgltf_texture_view, float, float, float, %struct.cgltf_texture_view }
%struct.cgltf_diffuse_transmission = type { %struct.cgltf_texture_view, float, [3 x float], %struct.cgltf_texture_view }
%struct.cgltf_anisotropy = type { float, float, %struct.cgltf_texture_view }
%struct.cgltf_dispersion = type { float }
%struct.cgltf_texture_view = type { ptr, i32, float, i32, %struct.cgltf_texture_transform }
%struct.cgltf_texture_transform = type { [2 x float], float, [2 x float], i32, i32 }

; 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: mustprogress uwtable
define dso_local void @_Z17optimizeMaterialsP10cgltf_dataPKcRSt6vectorI9ImageInfoSaIS4_EE(ptr noundef %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(24) %2) #1 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #2
  store i64 0, ptr %7, align 8, !tbaa !9
  br label %10

10:                                               ; preds = %72, %3
  %11 = load i64, ptr %7, align 8, !tbaa !9
  %12 = load ptr, ptr %4, align 8, !tbaa !5
  %13 = getelementptr inbounds %struct.cgltf_data, ptr %12, i32 0, i32 6
  %14 = load i64, ptr %13, align 8, !tbaa !11
  %15 = icmp ult i64 %11, %14
  br i1 %15, label %17, label %16

16:                                               ; preds = %10
  store i32 2, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #2
  br label %75

17:                                               ; preds = %10
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #2
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.cgltf_data, ptr %18, i32 0, i32 5
  %20 = load ptr, ptr %19, align 8, !tbaa !18
  %21 = load i64, ptr %7, align 8, !tbaa !9
  %22 = getelementptr inbounds %struct.cgltf_material, ptr %20, i64 %21
  store ptr %22, ptr %9, align 8, !tbaa !5
  %23 = load ptr, ptr %9, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.cgltf_material, ptr %23, i32 0, i32 31
  %25 = load i32, ptr %24, align 4, !tbaa !19
  %26 = icmp ne i32 %25, 0
  br i1 %26, label %27, label %68

27:                                               ; preds = %17
  %28 = load ptr, ptr %9, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.cgltf_material, ptr %28, i32 0, i32 1
  %30 = load i32, ptr %29, align 8, !tbaa !39
  %31 = icmp ne i32 %30, 0
  br i1 %31, label %32, label %46

32:                                               ; preds = %27
  %33 = load ptr, ptr %9, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.cgltf_material, ptr %33, i32 0, i32 14
  %35 = getelementptr inbounds %struct.cgltf_pbr_metallic_roughness, ptr %34, i32 0, i32 0
  %36 = load ptr, ptr %9, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.cgltf_material, ptr %36, i32 0, i32 14
  %38 = getelementptr inbounds %struct.cgltf_pbr_metallic_roughness, ptr %37, i32 0, i32 2
  %39 = getelementptr inbounds [4 x float], ptr %38, i64 0, i64 3
  %40 = load float, ptr %39, align 4, !tbaa !40
  %41 = load ptr, ptr %4, align 8, !tbaa !5
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  %43 = load ptr, ptr %6, align 8, !tbaa !5
  %44 = call noundef zeroext i1 @_ZL15shouldKeepAlphaRK18cgltf_texture_viewfP10cgltf_dataPKcRSt6vectorI9ImageInfoSaIS7_EE(ptr noundef nonnull align 8 dereferenceable(48) %35, float noundef %40, ptr noundef %41, ptr noundef %42, ptr noundef nonnull align 8 dereferenceable(24) %43)
  br i1 %44, label %45, label %46

45:                                               ; preds = %32
  store i32 4, ptr %8, align 4
  br label %69

46:                                               ; preds = %32, %27
  %47 = load ptr, ptr %9, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.cgltf_material, ptr %47, i32 0, i32 2
  %49 = load i32, ptr %48, align 4, !tbaa !41
  %50 = icmp ne i32 %49, 0
  br i1 %50, label %51, label %65

51:                                               ; preds = %46
  %52 = load ptr, ptr %9, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.cgltf_material, ptr %52, i32 0, i32 15
  %54 = getelementptr inbounds %struct.cgltf_pbr_specular_glossiness, ptr %53, i32 0, i32 0
  %55 = load ptr, ptr %9, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.cgltf_material, ptr %55, i32 0, i32 15
  %57 = getelementptr inbounds %struct.cgltf_pbr_specular_glossiness, ptr %56, i32 0, i32 2
  %58 = getelementptr inbounds [4 x float], ptr %57, i64 0, i64 3
  %59 = load float, ptr %58, align 4, !tbaa !40
  %60 = load ptr, ptr %4, align 8, !tbaa !5
  %61 = load ptr, ptr %5, align 8, !tbaa !5
  %62 = load ptr, ptr %6, align 8, !tbaa !5
  %63 = call noundef zeroext i1 @_ZL15shouldKeepAlphaRK18cgltf_texture_viewfP10cgltf_dataPKcRSt6vectorI9ImageInfoSaIS7_EE(ptr noundef nonnull align 8 dereferenceable(48) %54, float noundef %59, ptr noundef %60, ptr noundef %61, ptr noundef nonnull align 8 dereferenceable(24) %62)
  br i1 %63, label %64, label %65

64:                                               ; preds = %51
  store i32 4, ptr %8, align 4
  br label %69

65:                                               ; preds = %51, %46
  %66 = load ptr, ptr %9, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.cgltf_material, ptr %66, i32 0, i32 31
  store i32 0, ptr %67, align 4, !tbaa !19
  br label %68

68:                                               ; preds = %65, %17
  store i32 0, ptr %8, align 4
  br label %69

69:                                               ; preds = %68, %64, %45
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #2
  %70 = load i32, ptr %8, align 4
  switch i32 %70, label %76 [
    i32 0, label %71
    i32 4, label %72
  ]

71:                                               ; preds = %69
  br label %72

72:                                               ; preds = %71, %69
  %73 = load i64, ptr %7, align 8, !tbaa !9
  %74 = add i64 %73, 1
  store i64 %74, ptr %7, align 8, !tbaa !9
  br label %10, !llvm.loop !42

75:                                               ; preds = %16
  ret void

76:                                               ; preds = %69
  unreachable
}

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL15shouldKeepAlphaRK18cgltf_texture_viewfP10cgltf_dataPKcRSt6vectorI9ImageInfoSaIS7_EE(ptr noundef nonnull align 8 dereferenceable(48), float noundef, ptr noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(24)) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 112}
!12 = !{!"_ZTS10cgltf_data", !13, i64 0, !6, i64 8, !14, i64 16, !6, i64 88, !10, i64 96, !6, i64 104, !10, i64 112, !6, i64 120, !10, i64 128, !6, i64 136, !10, i64 144, !6, i64 152, !10, i64 160, !6, i64 168, !10, i64 176, !6, i64 184, !10, i64 192, !6, i64 200, !10, i64 208, !6, i64 216, !10, i64 224, !6, i64 232, !10, i64 240, !6, i64 248, !10, i64 256, !6, i64 264, !10, i64 272, !6, i64 280, !10, i64 288, !6, i64 296, !6, i64 304, !10, i64 312, !6, i64 320, !10, i64 328, !15, i64 336, !10, i64 360, !6, i64 368, !6, i64 376, !10, i64 384, !6, i64 392, !10, i64 400, !6, i64 408, !10, i64 416, !6, i64 424, !10, i64 432, !16, i64 440, !17, i64 464}
!13 = !{!"_ZTS15cgltf_file_type", !7, i64 0}
!14 = !{!"_ZTS11cgltf_asset", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !15, i64 32, !10, i64 56, !6, i64 64}
!15 = !{!"_ZTS12cgltf_extras", !10, i64 0, !10, i64 8, !6, i64 16}
!16 = !{!"_ZTS20cgltf_memory_options", !6, i64 0, !6, i64 8, !6, i64 16}
!17 = !{!"_ZTS18cgltf_file_options", !6, i64 0, !6, i64 8, !6, i64 16}
!18 = !{!12, !6, i64 104}
!19 = !{!20, !38, i64 1292}
!20 = !{!"_ZTS14cgltf_material", !6, i64 0, !21, i64 8, !21, i64 12, !21, i64 16, !21, i64 20, !21, i64 24, !21, i64 28, !21, i64 32, !21, i64 36, !21, i64 40, !21, i64 44, !21, i64 48, !21, i64 52, !21, i64 56, !22, i64 64, !26, i64 184, !27, i64 312, !28, i64 464, !29, i64 472, !30, i64 584, !31, i64 704, !32, i64 760, !33, i64 832, !34, i64 840, !35, i64 960, !36, i64 1072, !37, i64 1128, !23, i64 1136, !23, i64 1184, !23, i64 1232, !7, i64 1280, !38, i64 1292, !24, i64 1296, !21, i64 1300, !21, i64 1304, !15, i64 1312, !10, i64 1336, !6, i64 1344}
!21 = !{!"int", !7, i64 0}
!22 = !{!"_ZTS28cgltf_pbr_metallic_roughness", !23, i64 0, !23, i64 48, !7, i64 96, !24, i64 112, !24, i64 116}
!23 = !{!"_ZTS18cgltf_texture_view", !6, i64 0, !21, i64 8, !24, i64 12, !21, i64 16, !25, i64 20}
!24 = !{!"float", !7, i64 0}
!25 = !{!"_ZTS23cgltf_texture_transform", !7, i64 0, !24, i64 8, !7, i64 12, !21, i64 20, !21, i64 24}
!26 = !{!"_ZTS29cgltf_pbr_specular_glossiness", !23, i64 0, !23, i64 48, !7, i64 96, !7, i64 112, !24, i64 124}
!27 = !{!"_ZTS15cgltf_clearcoat", !23, i64 0, !23, i64 48, !23, i64 96, !24, i64 144, !24, i64 148}
!28 = !{!"_ZTS9cgltf_ior", !24, i64 0}
!29 = !{!"_ZTS14cgltf_specular", !23, i64 0, !23, i64 48, !7, i64 96, !24, i64 108}
!30 = !{!"_ZTS11cgltf_sheen", !23, i64 0, !7, i64 48, !23, i64 64, !24, i64 112}
!31 = !{!"_ZTS18cgltf_transmission", !23, i64 0, !24, i64 48}
!32 = !{!"_ZTS12cgltf_volume", !23, i64 0, !24, i64 48, !7, i64 52, !24, i64 64}
!33 = !{!"_ZTS23cgltf_emissive_strength", !24, i64 0}
!34 = !{!"_ZTS17cgltf_iridescence", !24, i64 0, !23, i64 8, !24, i64 56, !24, i64 60, !24, i64 64, !23, i64 72}
!35 = !{!"_ZTS26cgltf_diffuse_transmission", !23, i64 0, !24, i64 48, !7, i64 52, !23, i64 64}
!36 = !{!"_ZTS16cgltf_anisotropy", !24, i64 0, !24, i64 4, !23, i64 8}
!37 = !{!"_ZTS16cgltf_dispersion", !24, i64 0}
!38 = !{!"_ZTS16cgltf_alpha_mode", !7, i64 0}
!39 = !{!20, !21, i64 8}
!40 = !{!24, !24, i64 0}
!41 = !{!20, !21, i64 12}
!42 = distinct !{!42, !43}
!43 = !{!"llvm.loop.mustprogress"}


; 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.cgltf_material = type { ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, %struct.cgltf_pbr_metallic_roughness, %struct.cgltf_pbr_specular_glossiness, %struct.cgltf_clearcoat, %struct.cgltf_ior, %struct.cgltf_specular, %struct.cgltf_sheen, %struct.cgltf_transmission, %struct.cgltf_volume, %struct.cgltf_emissive_strength, %struct.cgltf_iridescence, %struct.cgltf_diffuse_transmission, %struct.cgltf_anisotropy, %struct.cgltf_dispersion, %struct.cgltf_texture_view, %struct.cgltf_texture_view, %struct.cgltf_texture_view, [3 x float], i32, float, i32, i32, %struct.cgltf_extras, i64, ptr }
%struct.cgltf_pbr_metallic_roughness = type { %struct.cgltf_texture_view, %struct.cgltf_texture_view, [4 x float], float, float }
%struct.cgltf_pbr_specular_glossiness = type { %struct.cgltf_texture_view, %struct.cgltf_texture_view, [4 x float], [3 x float], float }
%struct.cgltf_clearcoat = type { %struct.cgltf_texture_view, %struct.cgltf_texture_view, %struct.cgltf_texture_view, float, float }
%struct.cgltf_ior = type { float }
%struct.cgltf_specular = type { %struct.cgltf_texture_view, %struct.cgltf_texture_view, [3 x float], float }
%struct.cgltf_sheen = type { %struct.cgltf_texture_view, [3 x float], %struct.cgltf_texture_view, float }
%struct.cgltf_transmission = type { %struct.cgltf_texture_view, float }
%struct.cgltf_volume = type { %struct.cgltf_texture_view, float, [3 x float], float }
%struct.cgltf_emissive_strength = type { float }
%struct.cgltf_iridescence = type { float, %struct.cgltf_texture_view, float, float, float, %struct.cgltf_texture_view }
%struct.cgltf_diffuse_transmission = type { %struct.cgltf_texture_view, float, [3 x float], %struct.cgltf_texture_view }
%struct.cgltf_anisotropy = type { float, float, %struct.cgltf_texture_view }
%struct.cgltf_dispersion = type { float }
%struct.cgltf_texture_view = type { ptr, i32, float, i32, %struct.cgltf_texture_transform }
%struct.cgltf_texture_transform = type { [2 x float], float, [2 x float], i32, i32 }
%struct.cgltf_extras = type { i64, i64, ptr }

; Function Attrs: mustprogress uwtable
define dso_local void @_Z17optimizeMaterialsP10cgltf_dataPKcRSt6vectorI9ImageInfoSaIS4_EE(ptr noundef %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(24) %2) local_unnamed_addr #0 {
  %4 = getelementptr inbounds i8, ptr %0, i64 112
  %5 = load i64, ptr %4, align 8, !tbaa !5
  %.not21 = icmp eq i64 %5, 0
  br i1 %.not21, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %3
  %6 = getelementptr inbounds i8, ptr %0, i64 104
  br label %7

._crit_edge:                                      ; preds = %29, %3
  ret void

7:                                                ; preds = %.lr.ph, %29
  %.020 = phi i64 [ 0, %.lr.ph ], [ %30, %29 ]
  %8 = load ptr, ptr %6, align 8, !tbaa !16
  %9 = getelementptr inbounds %struct.cgltf_material, ptr %8, i64 %.020
  %10 = getelementptr inbounds i8, ptr %9, i64 1292
  %11 = load i32, ptr %10, align 4, !tbaa !17
  %.not = icmp eq i32 %11, 0
  br i1 %.not, label %29, label %12

12:                                               ; preds = %7
  %13 = getelementptr inbounds i8, ptr %9, i64 8
  %14 = load i32, ptr %13, align 8, !tbaa !37
  %.not18 = icmp eq i32 %14, 0
  br i1 %.not18, label %20, label %15

15:                                               ; preds = %12
  %16 = getelementptr inbounds i8, ptr %9, i64 64
  %17 = getelementptr inbounds i8, ptr %9, i64 172
  %18 = load float, ptr %17, align 4, !tbaa !38
  %19 = tail call noundef zeroext i1 @_ZL15shouldKeepAlphaRK18cgltf_texture_viewfP10cgltf_dataPKcRSt6vectorI9ImageInfoSaIS7_EE(ptr noundef nonnull align 8 dereferenceable(48) %16, float noundef %18, ptr noundef nonnull %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(24) %2)
  br i1 %19, label %29, label %20

20:                                               ; preds = %15, %12
  %21 = getelementptr inbounds i8, ptr %9, i64 12
  %22 = load i32, ptr %21, align 4, !tbaa !39
  %.not19 = icmp eq i32 %22, 0
  br i1 %.not19, label %28, label %23

23:                                               ; preds = %20
  %24 = getelementptr inbounds i8, ptr %9, i64 184
  %25 = getelementptr inbounds i8, ptr %9, i64 292
  %26 = load float, ptr %25, align 4, !tbaa !38
  %27 = tail call noundef zeroext i1 @_ZL15shouldKeepAlphaRK18cgltf_texture_viewfP10cgltf_dataPKcRSt6vectorI9ImageInfoSaIS7_EE(ptr noundef nonnull align 8 dereferenceable(48) %24, float noundef %26, ptr noundef nonnull %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(24) %2)
  br i1 %27, label %29, label %28

28:                                               ; preds = %23, %20
  store i32 0, ptr %10, align 4, !tbaa !17
  br label %29

29:                                               ; preds = %7, %28, %23, %15
  %30 = add nuw i64 %.020, 1
  %31 = load i64, ptr %4, align 8, !tbaa !5
  %32 = icmp ult i64 %30, %31
  br i1 %32, label %7, label %._crit_edge, !llvm.loop !40
}

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL15shouldKeepAlphaRK18cgltf_texture_viewfP10cgltf_dataPKcRSt6vectorI9ImageInfoSaIS7_EE(ptr noundef nonnull align 8 dereferenceable(48), float noundef, ptr noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0

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

!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, !13, i64 112}
!6 = !{!"_ZTS10cgltf_data", !7, i64 0, !10, i64 8, !11, i64 16, !10, i64 88, !13, i64 96, !10, i64 104, !13, i64 112, !10, i64 120, !13, i64 128, !10, i64 136, !13, i64 144, !10, i64 152, !13, i64 160, !10, i64 168, !13, i64 176, !10, i64 184, !13, i64 192, !10, i64 200, !13, i64 208, !10, i64 216, !13, i64 224, !10, i64 232, !13, i64 240, !10, i64 248, !13, i64 256, !10, i64 264, !13, i64 272, !10, i64 280, !13, i64 288, !10, i64 296, !10, i64 304, !13, i64 312, !10, i64 320, !13, i64 328, !12, i64 336, !13, i64 360, !10, i64 368, !10, i64 376, !13, i64 384, !10, i64 392, !13, i64 400, !10, i64 408, !13, i64 416, !10, i64 424, !13, i64 432, !14, i64 440, !15, i64 464}
!7 = !{!"_ZTS15cgltf_file_type", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"_ZTS11cgltf_asset", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !12, i64 32, !13, i64 56, !10, i64 64}
!12 = !{!"_ZTS12cgltf_extras", !13, i64 0, !13, i64 8, !10, i64 16}
!13 = !{!"long", !8, i64 0}
!14 = !{!"_ZTS20cgltf_memory_options", !10, i64 0, !10, i64 8, !10, i64 16}
!15 = !{!"_ZTS18cgltf_file_options", !10, i64 0, !10, i64 8, !10, i64 16}
!16 = !{!6, !10, i64 104}
!17 = !{!18, !36, i64 1292}
!18 = !{!"_ZTS14cgltf_material", !10, i64 0, !19, i64 8, !19, i64 12, !19, i64 16, !19, i64 20, !19, i64 24, !19, i64 28, !19, i64 32, !19, i64 36, !19, i64 40, !19, i64 44, !19, i64 48, !19, i64 52, !19, i64 56, !20, i64 64, !24, i64 184, !25, i64 312, !26, i64 464, !27, i64 472, !28, i64 584, !29, i64 704, !30, i64 760, !31, i64 832, !32, i64 840, !33, i64 960, !34, i64 1072, !35, i64 1128, !21, i64 1136, !21, i64 1184, !21, i64 1232, !8, i64 1280, !36, i64 1292, !22, i64 1296, !19, i64 1300, !19, i64 1304, !12, i64 1312, !13, i64 1336, !10, i64 1344}
!19 = !{!"int", !8, i64 0}
!20 = !{!"_ZTS28cgltf_pbr_metallic_roughness", !21, i64 0, !21, i64 48, !8, i64 96, !22, i64 112, !22, i64 116}
!21 = !{!"_ZTS18cgltf_texture_view", !10, i64 0, !19, i64 8, !22, i64 12, !19, i64 16, !23, i64 20}
!22 = !{!"float", !8, i64 0}
!23 = !{!"_ZTS23cgltf_texture_transform", !8, i64 0, !22, i64 8, !8, i64 12, !19, i64 20, !19, i64 24}
!24 = !{!"_ZTS29cgltf_pbr_specular_glossiness", !21, i64 0, !21, i64 48, !8, i64 96, !8, i64 112, !22, i64 124}
!25 = !{!"_ZTS15cgltf_clearcoat", !21, i64 0, !21, i64 48, !21, i64 96, !22, i64 144, !22, i64 148}
!26 = !{!"_ZTS9cgltf_ior", !22, i64 0}
!27 = !{!"_ZTS14cgltf_specular", !21, i64 0, !21, i64 48, !8, i64 96, !22, i64 108}
!28 = !{!"_ZTS11cgltf_sheen", !21, i64 0, !8, i64 48, !21, i64 64, !22, i64 112}
!29 = !{!"_ZTS18cgltf_transmission", !21, i64 0, !22, i64 48}
!30 = !{!"_ZTS12cgltf_volume", !21, i64 0, !22, i64 48, !8, i64 52, !22, i64 64}
!31 = !{!"_ZTS23cgltf_emissive_strength", !22, i64 0}
!32 = !{!"_ZTS17cgltf_iridescence", !22, i64 0, !21, i64 8, !22, i64 56, !22, i64 60, !22, i64 64, !21, i64 72}
!33 = !{!"_ZTS26cgltf_diffuse_transmission", !21, i64 0, !22, i64 48, !8, i64 52, !21, i64 64}
!34 = !{!"_ZTS16cgltf_anisotropy", !22, i64 0, !22, i64 4, !21, i64 8}
!35 = !{!"_ZTS16cgltf_dispersion", !22, i64 0}
!36 = !{!"_ZTS16cgltf_alpha_mode", !8, i64 0}
!37 = !{!18, !19, i64 8}
!38 = !{!22, !22, i64 0}
!39 = !{!18, !19, i64 12}
!40 = distinct !{!40, !41}
!41 = !{!"llvm.loop.mustprogress"}


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