; LLVM IR from zeux/meshoptimizer :: gltf (write)

; 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_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 }

@.str.11 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [19 x i8], align 1
@_ZL5black = external hidden constant [4 x float], align 16
@.str.20 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [2 x i8], align 1

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

17:                                               ; preds = %6
  %18 = load ptr, ptr %9, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.cgltf_material, ptr %18, i32 0, i32 0
  %20 = load ptr, ptr %19, align 8, !tbaa !9
  %21 = load i8, ptr %20, align 1, !tbaa !31
  %22 = icmp ne i8 %21, 0
  br i1 %22, label %23, label %31

23:                                               ; preds = %17
  %24 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_Z5commaRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %24)
  %25 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %25, ptr noundef @.str.14)
  %26 = load ptr, ptr %7, align 8, !tbaa !5
  %27 = load ptr, ptr %9, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.cgltf_material, ptr %27, i32 0, i32 0
  %29 = load ptr, ptr %28, align 8, !tbaa !9
  call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %26, ptr noundef %29)
  %30 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %30, ptr noundef @.str.15)
  br label %31

31:                                               ; preds = %23, %17, %6
  %32 = load ptr, ptr %9, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.cgltf_material, ptr %32, i32 0, i32 1
  %34 = load i32, ptr %33, align 8, !tbaa !32
  %35 = icmp ne i32 %34, 0
  br i1 %35, label %36, label %43

36:                                               ; preds = %31
  %37 = load ptr, ptr %7, align 8, !tbaa !5
  %38 = load ptr, ptr %8, align 8, !tbaa !5
  %39 = load ptr, ptr %9, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.cgltf_material, ptr %39, i32 0, i32 14
  %41 = load ptr, ptr %11, align 8, !tbaa !5
  %42 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZL22writeMaterialComponentRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK10cgltf_dataRK28cgltf_pbr_metallic_roughnessPK19QuantizationTextureRSt6vectorI11TextureInfoSaISG_EE(ptr noundef nonnull align 8 dereferenceable(32) %37, ptr noundef %38, ptr noundef nonnull align 8 dereferenceable(120) %40, ptr noundef %41, ptr noundef nonnull align 8 dereferenceable(24) %42)
  br label %43

43:                                               ; preds = %36, %31
  %44 = load ptr, ptr %9, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.cgltf_material, ptr %44, i32 0, i32 27
  %46 = getelementptr inbounds %struct.cgltf_texture_view, ptr %45, i32 0, i32 0
  %47 = load ptr, ptr %46, align 8, !tbaa !33
  %48 = icmp ne ptr %47, null
  br i1 %48, label %49, label %58

49:                                               ; preds = %43
  %50 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_Z5commaRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %50)
  %51 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %51, ptr noundef @.str.16)
  %52 = load ptr, ptr %7, align 8, !tbaa !5
  %53 = load ptr, ptr %8, align 8, !tbaa !5
  %54 = load ptr, ptr %9, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.cgltf_material, ptr %54, i32 0, i32 27
  %56 = load ptr, ptr %11, align 8, !tbaa !5
  %57 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZL16writeTextureInfoRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK10cgltf_dataRK18cgltf_texture_viewPK19QuantizationTextureRSt6vectorI11TextureInfoSaISG_EEPKc(ptr noundef nonnull align 8 dereferenceable(32) %52, ptr noundef %53, ptr noundef nonnull align 8 dereferenceable(48) %55, ptr noundef %56, ptr noundef nonnull align 8 dereferenceable(24) %57, ptr noundef @.str.11)
  br label %58

58:                                               ; preds = %49, %43
  %59 = load ptr, ptr %9, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.cgltf_material, ptr %59, i32 0, i32 28
  %61 = getelementptr inbounds %struct.cgltf_texture_view, ptr %60, i32 0, i32 0
  %62 = load ptr, ptr %61, align 8, !tbaa !34
  %63 = icmp ne ptr %62, null
  br i1 %63, label %64, label %73

64:                                               ; preds = %58
  %65 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_Z5commaRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %65)
  %66 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %66, ptr noundef @.str.17)
  %67 = load ptr, ptr %7, align 8, !tbaa !5
  %68 = load ptr, ptr %8, align 8, !tbaa !5
  %69 = load ptr, ptr %9, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.cgltf_material, ptr %69, i32 0, i32 28
  %71 = load ptr, ptr %11, align 8, !tbaa !5
  %72 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZL16writeTextureInfoRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK10cgltf_dataRK18cgltf_texture_viewPK19QuantizationTextureRSt6vectorI11TextureInfoSaISG_EEPKc(ptr noundef nonnull align 8 dereferenceable(32) %67, ptr noundef %68, ptr noundef nonnull align 8 dereferenceable(48) %70, ptr noundef %71, ptr noundef nonnull align 8 dereferenceable(24) %72, ptr noundef @.str.18)
  br label %73

73:                                               ; preds = %64, %58
  %74 = load ptr, ptr %9, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.cgltf_material, ptr %74, i32 0, i32 29
  %76 = getelementptr inbounds %struct.cgltf_texture_view, ptr %75, i32 0, i32 0
  %77 = load ptr, ptr %76, align 8, !tbaa !35
  %78 = icmp ne ptr %77, null
  br i1 %78, label %79, label %88

79:                                               ; preds = %73
  %80 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_Z5commaRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %80)
  %81 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %81, ptr noundef @.str.19)
  %82 = load ptr, ptr %7, align 8, !tbaa !5
  %83 = load ptr, ptr %8, align 8, !tbaa !5
  %84 = load ptr, ptr %9, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.cgltf_material, ptr %84, i32 0, i32 29
  %86 = load ptr, ptr %11, align 8, !tbaa !5
  %87 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZL16writeTextureInfoRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK10cgltf_dataRK18cgltf_texture_viewPK19QuantizationTextureRSt6vectorI11TextureInfoSaISG_EEPKc(ptr noundef nonnull align 8 dereferenceable(32) %82, ptr noundef %83, ptr noundef nonnull align 8 dereferenceable(48) %85, ptr noundef %86, ptr noundef nonnull align 8 dereferenceable(24) %87, ptr noundef null)
  br label %88

88:                                               ; preds = %79, %73
  %89 = load ptr, ptr %9, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.cgltf_material, ptr %89, i32 0, i32 30
  %91 = getelementptr inbounds [3 x float], ptr %90, i64 0, i64 0
  %92 = call i32 @memcmp(ptr noundef %91, ptr noundef @_ZL5black, i64 noundef 12) #4
  %93 = icmp ne i32 %92, 0
  br i1 %93, label %94, label %101

94:                                               ; preds = %88
  %95 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_Z5commaRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %95)
  %96 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %96, ptr noundef @.str.20)
  %97 = load ptr, ptr %7, align 8, !tbaa !5
  %98 = load ptr, ptr %9, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.cgltf_material, ptr %98, i32 0, i32 30
  %100 = getelementptr inbounds [3 x float], ptr %99, i64 0, i64 0
  call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKfm(ptr noundef nonnull align 8 dereferenceable(32) %97, ptr noundef %100, i64 noundef 3)
  br label %101

101:                                              ; preds = %94, %88
  %102 = load ptr, ptr %9, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.cgltf_material, ptr %102, i32 0, i32 31
  %104 = load i32, ptr %103, align 4, !tbaa !36
  %105 = icmp ne i32 %104, 0
  br i1 %105, label %106, label %115

106:                                              ; preds = %101
  %107 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_Z5commaRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %107)
  %108 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %108, ptr noundef @.str.21)
  %109 = load ptr, ptr %7, align 8, !tbaa !5
  %110 = load ptr, ptr %9, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.cgltf_material, ptr %110, i32 0, i32 31
  %112 = load i32, ptr %111, align 4, !tbaa !36
  %113 = call noundef ptr @_ZL9alphaMode16cgltf_alpha_mode(i32 noundef %112)
  call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %109, ptr noundef %113)
  %114 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %114, ptr noundef @.str.15)
  br label %115

115:                                              ; preds = %106, %101
  %116 = load ptr, ptr %9, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.cgltf_material, ptr %116, i32 0, i32 32
  %118 = load float, ptr %117, align 8, !tbaa !37
  %119 = fcmp une float %118, 5.000000e-01
  br i1 %119, label %120, label %127

120:                                              ; preds = %115
  %121 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_Z5commaRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %121)
  %122 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %122, ptr noundef @.str.22)
  %123 = load ptr, ptr %7, align 8, !tbaa !5
  %124 = load ptr, ptr %9, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.cgltf_material, ptr %124, i32 0, i32 32
  %126 = load float, ptr %125, align 8, !tbaa !37
  call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEf(ptr noundef nonnull align 8 dereferenceable(32) %123, float noundef %126)
  br label %127

127:                                              ; preds = %120, %115
  %128 = load ptr, ptr %9, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.cgltf_material, ptr %128, i32 0, i32 33
  %130 = load i32, ptr %129, align 4, !tbaa !38
  %131 = icmp ne i32 %130, 0
  br i1 %131, label %132, label %135

132:                                              ; preds = %127
  %133 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_Z5commaRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %133)
  %134 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %134, ptr noundef @.str.23)
  br label %135

135:                                              ; preds = %132, %127
  %136 = load ptr, ptr %9, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.cgltf_material, ptr %136, i32 0, i32 2
  %138 = load i32, ptr %137, align 4, !tbaa !39
  %139 = icmp ne i32 %138, 0
  br i1 %139, label %200, label %140

140:                                              ; preds = %135
  %141 = load ptr, ptr %9, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.cgltf_material, ptr %141, i32 0, i32 3
  %143 = load i32, ptr %142, align 8, !tbaa !40
  %144 = icmp ne i32 %143, 0
  br i1 %144, label %200, label %145

145:                                              ; preds = %140
  %146 = load ptr, ptr %9, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.cgltf_material, ptr %146, i32 0, i32 4
  %148 = load i32, ptr %147, align 4, !tbaa !41
  %149 = icmp ne i32 %148, 0
  br i1 %149, label %200, label %150

150:                                              ; preds = %145
  %151 = load ptr, ptr %9, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.cgltf_material, ptr %151, i32 0, i32 6
  %153 = load i32, ptr %152, align 4, !tbaa !42
  %154 = icmp ne i32 %153, 0
  br i1 %154, label %200, label %155

155:                                              ; preds = %150
  %156 = load ptr, ptr %9, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.cgltf_material, ptr %156, i32 0, i32 7
  %158 = load i32, ptr %157, align 8, !tbaa !43
  %159 = icmp ne i32 %158, 0
  br i1 %159, label %200, label %160

160:                                              ; preds = %155
  %161 = load ptr, ptr %9, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.cgltf_material, ptr %161, i32 0, i32 8
  %163 = load i32, ptr %162, align 4, !tbaa !44
  %164 = icmp ne i32 %163, 0
  br i1 %164, label %200, label %165

165:                                              ; preds = %160
  %166 = load ptr, ptr %9, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.cgltf_material, ptr %166, i32 0, i32 5
  %168 = load i32, ptr %167, align 8, !tbaa !45
  %169 = icmp ne i32 %168, 0
  br i1 %169, label %200, label %170

170:                                              ; preds = %165
  %171 = load ptr, ptr %9, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.cgltf_material, ptr %171, i32 0, i32 9
  %173 = load i32, ptr %172, align 8, !tbaa !46
  %174 = icmp ne i32 %173, 0
  br i1 %174, label %200, label %175

175:                                              ; preds = %170
  %176 = load ptr, ptr %9, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.cgltf_material, ptr %176, i32 0, i32 10
  %178 = load i32, ptr %177, align 4, !tbaa !47
  %179 = icmp ne i32 %178, 0
  br i1 %179, label %200, label %180

180:                                              ; preds = %175
  %181 = load ptr, ptr %9, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.cgltf_material, ptr %181, i32 0, i32 12
  %183 = load i32, ptr %182, align 4, !tbaa !48
  %184 = icmp ne i32 %183, 0
  br i1 %184, label %200, label %185

185:                                              ; preds = %180
  %186 = load ptr, ptr %9, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.cgltf_material, ptr %186, i32 0, i32 13
  %188 = load i32, ptr %187, align 8, !tbaa !49
  %189 = icmp ne i32 %188, 0
  br i1 %189, label %200, label %190

190:                                              ; preds = %185
  %191 = load ptr, ptr %9, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.cgltf_material, ptr %191, i32 0, i32 11
  %193 = load i32, ptr %192, align 8, !tbaa !50
  %194 = icmp ne i32 %193, 0
  br i1 %194, label %200, label %195

195:                                              ; preds = %190
  %196 = load ptr, ptr %9, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct.cgltf_material, ptr %196, i32 0, i32 34
  %198 = load i32, ptr %197, align 8, !tbaa !51
  %199 = icmp ne i32 %198, 0
  br i1 %199, label %200, label %351

200:                                              ; preds = %195, %190, %185, %180, %175, %170, %165, %160, %155, %150, %145, %140, %135
  %201 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_Z5commaRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %201)
  %202 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %202, ptr noundef @.str.24)
  %203 = load ptr, ptr %9, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.cgltf_material, ptr %203, i32 0, i32 2
  %205 = load i32, ptr %204, align 4, !tbaa !39
  %206 = icmp ne i32 %205, 0
  br i1 %206, label %207, label %214

207:                                              ; preds = %200
  %208 = load ptr, ptr %7, align 8, !tbaa !5
  %209 = load ptr, ptr %8, align 8, !tbaa !5
  %210 = load ptr, ptr %9, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.cgltf_material, ptr %210, i32 0, i32 15
  %212 = load ptr, ptr %11, align 8, !tbaa !5
  %213 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZL22writeMaterialComponentRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK10cgltf_dataRK29cgltf_pbr_specular_glossinessPK19QuantizationTextureRSt6vectorI11TextureInfoSaISG_EE(ptr noundef nonnull align 8 dereferenceable(32) %208, ptr noundef %209, ptr noundef nonnull align 8 dereferenceable(128) %211, ptr noundef %212, ptr noundef nonnull align 8 dereferenceable(24) %213)
  br label %214

214:                                              ; preds = %207, %200
  %215 = load ptr, ptr %9, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct.cgltf_material, ptr %215, i32 0, i32 3
  %217 = load i32, ptr %216, align 8, !tbaa !40
  %218 = icmp ne i32 %217, 0
  br i1 %218, label %219, label %226

219:                                              ; preds = %214
  %220 = load ptr, ptr %7, align 8, !tbaa !5
  %221 = load ptr, ptr %8, align 8, !tbaa !5
  %222 = load ptr, ptr %9, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.cgltf_material, ptr %222, i32 0, i32 16
  %224 = load ptr, ptr %11, align 8, !tbaa !5
  %225 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZL22writeMaterialComponentRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK10cgltf_dataRK15cgltf_clearcoatPK19QuantizationTextureRSt6vectorI11TextureInfoSaISG_EE(ptr noundef nonnull align 8 dereferenceable(32) %220, ptr noundef %221, ptr noundef nonnull align 8 dereferenceable(152) %223, ptr noundef %224, ptr noundef nonnull align 8 dereferenceable(24) %225)
  br label %226

226:                                              ; preds = %219, %214
  %227 = load ptr, ptr %9, align 8, !tbaa !5
  %228 = getelementptr inbounds %struct.cgltf_material, ptr %227, i32 0, i32 4
  %229 = load i32, ptr %228, align 4, !tbaa !41
  %230 = icmp ne i32 %229, 0
  br i1 %230, label %231, label %238

231:                                              ; preds = %226
  %232 = load ptr, ptr %7, align 8, !tbaa !5
  %233 = load ptr, ptr %8, align 8, !tbaa !5
  %234 = load ptr, ptr %9, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct.cgltf_material, ptr %234, i32 0, i32 20
  %236 = load ptr, ptr %11, align 8, !tbaa !5
  %237 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZL22writeMaterialComponentRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK10cgltf_dataRK18cgltf_transmissionPK19QuantizationTextureRSt6vectorI11TextureInfoSaISG_EE(ptr noundef nonnull align 8 dereferenceable(32) %232, ptr noundef %233, ptr noundef nonnull align 8 dereferenceable(56) %235, ptr noundef %236, ptr noundef nonnull align 8 dereferenceable(24) %237)
  br label %238

238:                                              ; preds = %231, %226
  %239 = load ptr, ptr %9, align 8, !tbaa !5
  %240 = getelementptr inbounds %struct.cgltf_material, ptr %239, i32 0, i32 6
  %241 = load i32, ptr %240, align 4, !tbaa !42
  %242 = icmp ne i32 %241, 0
  br i1 %242, label %243, label %248

243:                                              ; preds = %238
  %244 = load ptr, ptr %7, align 8, !tbaa !5
  %245 = load ptr, ptr %8, align 8, !tbaa !5
  %246 = load ptr, ptr %9, align 8, !tbaa !5
  %247 = getelementptr inbounds %struct.cgltf_material, ptr %246, i32 0, i32 17
  call void @_ZL22writeMaterialComponentRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK10cgltf_dataRK9cgltf_ior(ptr noundef nonnull align 8 dereferenceable(32) %244, ptr noundef %245, ptr noundef nonnull align 4 dereferenceable(4) %247)
  br label %248

248:                                              ; preds = %243, %238
  %249 = load ptr, ptr %9, align 8, !tbaa !5
  %250 = getelementptr inbounds %struct.cgltf_material, ptr %249, i32 0, i32 7
  %251 = load i32, ptr %250, align 8, !tbaa !43
  %252 = icmp ne i32 %251, 0
  br i1 %252, label %253, label %260

253:                                              ; preds = %248
  %254 = load ptr, ptr %7, align 8, !tbaa !5
  %255 = load ptr, ptr %8, align 8, !tbaa !5
  %256 = load ptr, ptr %9, align 8, !tbaa !5
  %257 = getelementptr inbounds %struct.cgltf_material, ptr %256, i32 0, i32 18
  %258 = load ptr, ptr %11, align 8, !tbaa !5
  %259 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZL22writeMaterialComponentRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK10cgltf_dataRK14cgltf_specularPK19QuantizationTextureRSt6vectorI11TextureInfoSaISG_EE(ptr noundef nonnull align 8 dereferenceable(32) %254, ptr noundef %255, ptr noundef nonnull align 8 dereferenceable(112) %257, ptr noundef %258, ptr noundef nonnull align 8 dereferenceable(24) %259)
  br label %260

260:                                              ; preds = %253, %248
  %261 = load ptr, ptr %9, align 8, !tbaa !5
  %262 = getelementptr inbounds %struct.cgltf_material, ptr %261, i32 0, i32 8
  %263 = load i32, ptr %262, align 4, !tbaa !44
  %264 = icmp ne i32 %263, 0
  br i1 %264, label %265, label %272

265:                                              ; preds = %260
  %266 = load ptr, ptr %7, align 8, !tbaa !5
  %267 = load ptr, ptr %8, align 8, !tbaa !5
  %268 = load ptr, ptr %9, align 8, !tbaa !5
  %269 = getelementptr inbounds %struct.cgltf_material, ptr %268, i32 0, i32 19
  %270 = load ptr, ptr %11, align 8, !tbaa !5
  %271 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZL22writeMaterialComponentRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK10cgltf_dataRK11cgltf_sheenPK19QuantizationTextureRSt6vectorI11TextureInfoSaISG_EE(ptr noundef nonnull align 8 dereferenceable(32) %266, ptr noundef %267, ptr noundef nonnull align 8 dereferenceable(120) %269, ptr noundef %270, ptr noundef nonnull align 8 dereferenceable(24) %271)
  br label %272

272:                                              ; preds = %265, %260
  %273 = load ptr, ptr %9, align 8, !tbaa !5
  %274 = getelementptr inbounds %struct.cgltf_material, ptr %273, i32 0, i32 5
  %275 = load i32, ptr %274, align 8, !tbaa !45
  %276 = icmp ne i32 %275, 0
  br i1 %276, label %277, label %285

277:                                              ; preds = %272
  %278 = load ptr, ptr %7, align 8, !tbaa !5
  %279 = load ptr, ptr %8, align 8, !tbaa !5
  %280 = load ptr, ptr %9, align 8, !tbaa !5
  %281 = getelementptr inbounds %struct.cgltf_material, ptr %280, i32 0, i32 21
  %282 = load ptr, ptr %10, align 8, !tbaa !5
  %283 = load ptr, ptr %11, align 8, !tbaa !5
  %284 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZL22writeMaterialComponentRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK10cgltf_dataRK12cgltf_volumePK20QuantizationPositionPK19QuantizationTextureRSt6vectorI11TextureInfoSaISJ_EE(ptr noundef nonnull align 8 dereferenceable(32) %278, ptr noundef %279, ptr noundef nonnull align 8 dereferenceable(72) %281, ptr noundef %282, ptr noundef %283, ptr noundef nonnull align 8 dereferenceable(24) %284)
  br label %285

285:                                              ; preds = %277, %272
  %286 = load ptr, ptr %9, align 8, !tbaa !5
  %287 = getelementptr inbounds %struct.cgltf_material, ptr %286, i32 0, i32 9
  %288 = load i32, ptr %287, align 8, !tbaa !46
  %289 = icmp ne i32 %288, 0
  br i1 %289, label %290, label %295

290:                                              ; preds = %285
  %291 = load ptr, ptr %7, align 8, !tbaa !5
  %292 = load ptr, ptr %8, align 8, !tbaa !5
  %293 = load ptr, ptr %9, align 8, !tbaa !5
  %294 = getelementptr inbounds %struct.cgltf_material, ptr %293, i32 0, i32 22
  call void @_ZL22writeMaterialComponentRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK10cgltf_dataRK23cgltf_emissive_strength(ptr noundef nonnull align 8 dereferenceable(32) %291, ptr noundef %292, ptr noundef nonnull align 4 dereferenceable(4) %294)
  br label %295

295:                                              ; preds = %290, %285
  %296 = load ptr, ptr %9, align 8, !tbaa !5
  %297 = getelementptr inbounds %struct.cgltf_material, ptr %296, i32 0, i32 10
  %298 = load i32, ptr %297, align 4, !tbaa !47
  %299 = icmp ne i32 %298, 0
  br i1 %299, label %300, label %307

300:                                              ; preds = %295
  %301 = load ptr, ptr %7, align 8, !tbaa !5
  %302 = load ptr, ptr %8, align 8, !tbaa !5
  %303 = load ptr, ptr %9, align 8, !tbaa !5
  %304 = getelementptr inbounds %struct.cgltf_material, ptr %303, i32 0, i32 23
  %305 = load ptr, ptr %11, align 8, !tbaa !5
  %306 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZL22writeMaterialComponentRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK10cgltf_dataRK17cgltf_iridescencePK19QuantizationTextureRSt6vectorI11TextureInfoSaISG_EE(ptr noundef nonnull align 8 dereferenceable(32) %301, ptr noundef %302, ptr noundef nonnull align 8 dereferenceable(120) %304, ptr noundef %305, ptr noundef nonnull align 8 dereferenceable(24) %306)
  br label %307

307:                                              ; preds = %300, %295
  %308 = load ptr, ptr %9, align 8, !tbaa !5
  %309 = getelementptr inbounds %struct.cgltf_material, ptr %308, i32 0, i32 12
  %310 = load i32, ptr %309, align 4, !tbaa !48
  %311 = icmp ne i32 %310, 0
  br i1 %311, label %312, label %319

312:                                              ; preds = %307
  %313 = load ptr, ptr %7, align 8, !tbaa !5
  %314 = load ptr, ptr %8, align 8, !tbaa !5
  %315 = load ptr, ptr %9, align 8, !tbaa !5
  %316 = getelementptr inbounds %struct.cgltf_material, ptr %315, i32 0, i32 25
  %317 = load ptr, ptr %11, align 8, !tbaa !5
  %318 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZL22writeMaterialComponentRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK10cgltf_dataRK16cgltf_anisotropyPK19QuantizationTextureRSt6vectorI11TextureInfoSaISG_EE(ptr noundef nonnull align 8 dereferenceable(32) %313, ptr noundef %314, ptr noundef nonnull align 8 dereferenceable(56) %316, ptr noundef %317, ptr noundef nonnull align 8 dereferenceable(24) %318)
  br label %319

319:                                              ; preds = %312, %307
  %320 = load ptr, ptr %9, align 8, !tbaa !5
  %321 = getelementptr inbounds %struct.cgltf_material, ptr %320, i32 0, i32 13
  %322 = load i32, ptr %321, align 8, !tbaa !49
  %323 = icmp ne i32 %322, 0
  br i1 %323, label %324, label %329

324:                                              ; preds = %319
  %325 = load ptr, ptr %7, align 8, !tbaa !5
  %326 = load ptr, ptr %8, align 8, !tbaa !5
  %327 = load ptr, ptr %9, align 8, !tbaa !5
  %328 = getelementptr inbounds %struct.cgltf_material, ptr %327, i32 0, i32 26
  call void @_ZL22writeMaterialComponentRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK10cgltf_dataRK16cgltf_dispersion(ptr noundef nonnull align 8 dereferenceable(32) %325, ptr noundef %326, ptr noundef nonnull align 4 dereferenceable(4) %328)
  br label %329

329:                                              ; preds = %324, %319
  %330 = load ptr, ptr %9, align 8, !tbaa !5
  %331 = getelementptr inbounds %struct.cgltf_material, ptr %330, i32 0, i32 11
  %332 = load i32, ptr %331, align 8, !tbaa !50
  %333 = icmp ne i32 %332, 0
  br i1 %333, label %334, label %341

334:                                              ; preds = %329
  %335 = load ptr, ptr %7, align 8, !tbaa !5
  %336 = load ptr, ptr %8, align 8, !tbaa !5
  %337 = load ptr, ptr %9, align 8, !tbaa !5
  %338 = getelementptr inbounds %struct.cgltf_material, ptr %337, i32 0, i32 24
  %339 = load ptr, ptr %11, align 8, !tbaa !5
  %340 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZL22writeMaterialComponentRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK10cgltf_dataRK26cgltf_diffuse_transmissionPK19QuantizationTextureRSt6vectorI11TextureInfoSaISG_EE(ptr noundef nonnull align 8 dereferenceable(32) %335, ptr noundef %336, ptr noundef nonnull align 8 dereferenceable(112) %338, ptr noundef %339, ptr noundef nonnull align 8 dereferenceable(24) %340)
  br label %341

341:                                              ; preds = %334, %329
  %342 = load ptr, ptr %9, align 8, !tbaa !5
  %343 = getelementptr inbounds %struct.cgltf_material, ptr %342, i32 0, i32 34
  %344 = load i32, ptr %343, align 8, !tbaa !51
  %345 = icmp ne i32 %344, 0
  br i1 %345, label %346, label %349

346:                                              ; preds = %341
  %347 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_Z5commaRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %347)
  %348 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %348, ptr noundef @.str.25)
  br label %349

349:                                              ; preds = %346, %341
  %350 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %350, ptr noundef @.str.26)
  br label %351

351:                                              ; preds = %349, %195
  ret void
}

declare void @_Z5commaRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32)) #1

declare void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL22writeMaterialComponentRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK10cgltf_dataRK28cgltf_pbr_metallic_roughnessPK19QuantizationTextureRSt6vectorI11TextureInfoSaISG_EE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 8 dereferenceable(120), ptr noundef, ptr noundef nonnull align 8 dereferenceable(24)) #0

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL16writeTextureInfoRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK10cgltf_dataRK18cgltf_texture_viewPK19QuantizationTextureRSt6vectorI11TextureInfoSaISG_EEPKc(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 8 dereferenceable(48), ptr noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) #0

; Function Attrs: nounwind willreturn memory(read)
declare i32 @memcmp(ptr noundef, ptr noundef, i64 noundef) #2

declare void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKfm(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, i64 noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef ptr @_ZL9alphaMode16cgltf_alpha_mode(i32 noundef) #3

declare void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEf(ptr noundef nonnull align 8 dereferenceable(32), float noundef) #1

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL22writeMaterialComponentRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK10cgltf_dataRK29cgltf_pbr_specular_glossinessPK19QuantizationTextureRSt6vectorI11TextureInfoSaISG_EE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 8 dereferenceable(128), ptr noundef, ptr noundef nonnull align 8 dereferenceable(24)) #0

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL22writeMaterialComponentRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK10cgltf_dataRK15cgltf_clearcoatPK19QuantizationTextureRSt6vectorI11TextureInfoSaISG_EE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 8 dereferenceable(152), ptr noundef, ptr noundef nonnull align 8 dereferenceable(24)) #0

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL22writeMaterialComponentRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK10cgltf_dataRK18cgltf_transmissionPK19QuantizationTextureRSt6vectorI11TextureInfoSaISG_EE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 8 dereferenceable(56), ptr noundef, ptr noundef nonnull align 8 dereferenceable(24)) #0

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL22writeMaterialComponentRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK10cgltf_dataRK9cgltf_ior(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 4 dereferenceable(4)) #0

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL22writeMaterialComponentRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK10cgltf_dataRK14cgltf_specularPK19QuantizationTextureRSt6vectorI11TextureInfoSaISG_EE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 8 dereferenceable(112), ptr noundef, ptr noundef nonnull align 8 dereferenceable(24)) #0

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL22writeMaterialComponentRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK10cgltf_dataRK11cgltf_sheenPK19QuantizationTextureRSt6vectorI11TextureInfoSaISG_EE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 8 dereferenceable(120), ptr noundef, ptr noundef nonnull align 8 dereferenceable(24)) #0

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL22writeMaterialComponentRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK10cgltf_dataRK12cgltf_volumePK20QuantizationPositionPK19QuantizationTextureRSt6vectorI11TextureInfoSaISJ_EE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 8 dereferenceable(72), ptr noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(24)) #0

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL22writeMaterialComponentRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK10cgltf_dataRK23cgltf_emissive_strength(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 4 dereferenceable(4)) #0

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL22writeMaterialComponentRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK10cgltf_dataRK17cgltf_iridescencePK19QuantizationTextureRSt6vectorI11TextureInfoSaISG_EE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 8 dereferenceable(120), ptr noundef, ptr noundef nonnull align 8 dereferenceable(24)) #0

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL22writeMaterialComponentRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK10cgltf_dataRK16cgltf_anisotropyPK19QuantizationTextureRSt6vectorI11TextureInfoSaISG_EE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 8 dereferenceable(56), ptr noundef, ptr noundef nonnull align 8 dereferenceable(24)) #0

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL22writeMaterialComponentRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK10cgltf_dataRK16cgltf_dispersion(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 4 dereferenceable(4)) #0

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL22writeMaterialComponentRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK10cgltf_dataRK26cgltf_diffuse_transmissionPK19QuantizationTextureRSt6vectorI11TextureInfoSaISG_EE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 8 dereferenceable(112), ptr noundef, ptr noundef nonnull align 8 dereferenceable(24)) #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" }
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 = { nounwind willreturn memory(read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 = { nounwind willreturn memory(read) }

!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 0}
!10 = !{!"_ZTS14cgltf_material", !6, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56, !12, i64 64, !16, i64 184, !17, i64 312, !18, i64 464, !19, i64 472, !20, i64 584, !21, i64 704, !22, i64 760, !23, i64 832, !24, i64 840, !25, i64 960, !26, i64 1072, !27, i64 1128, !13, i64 1136, !13, i64 1184, !13, i64 1232, !7, i64 1280, !28, i64 1292, !14, i64 1296, !11, i64 1300, !11, i64 1304, !29, i64 1312, !30, i64 1336, !6, i64 1344}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_ZTS28cgltf_pbr_metallic_roughness", !13, i64 0, !13, i64 48, !7, i64 96, !14, i64 112, !14, i64 116}
!13 = !{!"_ZTS18cgltf_texture_view", !6, i64 0, !11, i64 8, !14, i64 12, !11, i64 16, !15, i64 20}
!14 = !{!"float", !7, i64 0}
!15 = !{!"_ZTS23cgltf_texture_transform", !7, i64 0, !14, i64 8, !7, i64 12, !11, i64 20, !11, i64 24}
!16 = !{!"_ZTS29cgltf_pbr_specular_glossiness", !13, i64 0, !13, i64 48, !7, i64 96, !7, i64 112, !14, i64 124}
!17 = !{!"_ZTS15cgltf_clearcoat", !13, i64 0, !13, i64 48, !13, i64 96, !14, i64 144, !14, i64 148}
!18 = !{!"_ZTS9cgltf_ior", !14, i64 0}
!19 = !{!"_ZTS14cgltf_specular", !13, i64 0, !13, i64 48, !7, i64 96, !14, i64 108}
!20 = !{!"_ZTS11cgltf_sheen", !13, i64 0, !7, i64 48, !13, i64 64, !14, i64 112}
!21 = !{!"_ZTS18cgltf_transmission", !13, i64 0, !14, i64 48}
!22 = !{!"_ZTS12cgltf_volume", !13, i64 0, !14, i64 48, !7, i64 52, !14, i64 64}
!23 = !{!"_ZTS23cgltf_emissive_strength", !14, i64 0}
!24 = !{!"_ZTS17cgltf_iridescence", !14, i64 0, !13, i64 8, !14, i64 56, !14, i64 60, !14, i64 64, !13, i64 72}
!25 = !{!"_ZTS26cgltf_diffuse_transmission", !13, i64 0, !14, i64 48, !7, i64 52, !13, i64 64}
!26 = !{!"_ZTS16cgltf_anisotropy", !14, i64 0, !14, i64 4, !13, i64 8}
!27 = !{!"_ZTS16cgltf_dispersion", !14, i64 0}
!28 = !{!"_ZTS16cgltf_alpha_mode", !7, i64 0}
!29 = !{!"_ZTS12cgltf_extras", !30, i64 0, !30, i64 8, !6, i64 16}
!30 = !{!"long", !7, i64 0}
!31 = !{!7, !7, i64 0}
!32 = !{!10, !11, i64 8}
!33 = !{!10, !6, i64 1136}
!34 = !{!10, !6, i64 1184}
!35 = !{!10, !6, i64 1232}
!36 = !{!10, !28, i64 1292}
!37 = !{!10, !14, i64 1296}
!38 = !{!10, !11, i64 1300}
!39 = !{!10, !11, i64 12}
!40 = !{!10, !11, i64 16}
!41 = !{!10, !11, i64 20}
!42 = !{!10, !11, i64 28}
!43 = !{!10, !11, i64 32}
!44 = !{!10, !11, i64 36}
!45 = !{!10, !11, i64 24}
!46 = !{!10, !11, i64 40}
!47 = !{!10, !11, i64 44}
!48 = !{!10, !11, i64 52}
!49 = !{!10, !11, i64 56}
!50 = !{!10, !11, i64 48}
!51 = !{!10, !11, i64 1304}


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

@.str.11 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [19 x i8], align 1
@_ZL5black = external hidden constant [4 x float], align 16
@.str.20 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z13writeMaterialRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK10cgltf_dataRK14cgltf_materialPK20QuantizationPositionPK19QuantizationTextureRSt6vectorI11TextureInfoSaISJ_EE(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(1352) %2, ptr noundef %3, ptr noundef %4, ptr noundef nonnull align 8 dereferenceable(24) %5) local_unnamed_addr #0 {
  %7 = load ptr, ptr %2, align 8, !tbaa !5
  %.not = icmp eq ptr %7, null
  br i1 %.not, label %12, label %8

8:                                                ; preds = %6
  %9 = load i8, ptr %7, align 1, !tbaa !30
  %.not142 = icmp eq i8 %9, 0
  br i1 %.not142, label %12, label %10

10:                                               ; preds = %8
  tail call void @_Z5commaRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %0)
  tail call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull @.str.14)
  %11 = load ptr, ptr %2, align 8, !tbaa !5
  tail call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef %11)
  tail call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull @.str.15)
  br label %12

12:                                               ; preds = %10, %8, %6
  %13 = getelementptr inbounds i8, ptr %2, i64 8
  %14 = load i32, ptr %13, align 8, !tbaa !31
  %.not143 = icmp eq i32 %14, 0
  br i1 %.not143, label %17, label %15

15:                                               ; preds = %12
  %16 = getelementptr inbounds i8, ptr %2, i64 64
  tail call void @_ZL22writeMaterialComponentRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK10cgltf_dataRK28cgltf_pbr_metallic_roughnessPK19QuantizationTextureRSt6vectorI11TextureInfoSaISG_EE(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(120) %16, ptr noundef %4, ptr noundef nonnull align 8 dereferenceable(24) %5)
  br label %17

17:                                               ; preds = %15, %12
  %18 = getelementptr inbounds i8, ptr %2, i64 1136
  %19 = load ptr, ptr %18, align 8, !tbaa !32
  %.not144 = icmp eq ptr %19, null
  br i1 %.not144, label %21, label %20

20:                                               ; preds = %17
  tail call void @_Z5commaRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %0)
  tail call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull @.str.16)
  tail call void @_ZL16writeTextureInfoRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK10cgltf_dataRK18cgltf_texture_viewPK19QuantizationTextureRSt6vectorI11TextureInfoSaISG_EEPKc(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(48) %18, ptr noundef %4, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull @.str.11)
  br label %21

21:                                               ; preds = %20, %17
  %22 = getelementptr inbounds i8, ptr %2, i64 1184
  %23 = load ptr, ptr %22, align 8, !tbaa !33
  %.not145 = icmp eq ptr %23, null
  br i1 %.not145, label %25, label %24

24:                                               ; preds = %21
  tail call void @_Z5commaRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %0)
  tail call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull @.str.17)
  tail call void @_ZL16writeTextureInfoRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK10cgltf_dataRK18cgltf_texture_viewPK19QuantizationTextureRSt6vectorI11TextureInfoSaISG_EEPKc(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(48) %22, ptr noundef %4, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull @.str.18)
  br label %25

25:                                               ; preds = %24, %21
  %26 = getelementptr inbounds i8, ptr %2, i64 1232
  %27 = load ptr, ptr %26, align 8, !tbaa !34
  %.not146 = icmp eq ptr %27, null
  br i1 %.not146, label %29, label %28

28:                                               ; preds = %25
  tail call void @_Z5commaRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %0)
  tail call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull @.str.19)
  tail call void @_ZL16writeTextureInfoRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK10cgltf_dataRK18cgltf_texture_viewPK19QuantizationTextureRSt6vectorI11TextureInfoSaISG_EEPKc(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(48) %26, ptr noundef %4, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef null)
  br label %29

29:                                               ; preds = %28, %25
  %30 = getelementptr inbounds i8, ptr %2, i64 1280
  %bcmp = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(12) %30, ptr noundef nonnull dereferenceable(12) @_ZL5black, i64 12)
  %.not147 = icmp eq i32 %bcmp, 0
  br i1 %.not147, label %32, label %31

31:                                               ; preds = %29
  tail call void @_Z5commaRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %0)
  tail call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull @.str.20)
  tail call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKfm(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull %30, i64 noundef 3)
  br label %32

32:                                               ; preds = %31, %29
  %33 = getelementptr inbounds i8, ptr %2, i64 1292
  %34 = load i32, ptr %33, align 4, !tbaa !35
  %.not148 = icmp eq i32 %34, 0
  br i1 %.not148, label %38, label %35

35:                                               ; preds = %32
  tail call void @_Z5commaRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %0)
  tail call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull @.str.21)
  %36 = load i32, ptr %33, align 4, !tbaa !35
  %37 = tail call noundef ptr @_ZL9alphaMode16cgltf_alpha_mode(i32 noundef %36)
  tail call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef %37)
  tail call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull @.str.15)
  br label %38

38:                                               ; preds = %35, %32
  %39 = getelementptr inbounds i8, ptr %2, i64 1296
  %40 = load float, ptr %39, align 8, !tbaa !36
  %41 = fcmp une float %40, 5.000000e-01
  br i1 %41, label %42, label %44

42:                                               ; preds = %38
  tail call void @_Z5commaRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %0)
  tail call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull @.str.22)
  %43 = load float, ptr %39, align 8, !tbaa !36
  tail call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEf(ptr noundef nonnull align 8 dereferenceable(32) %0, float noundef %43)
  br label %44

44:                                               ; preds = %42, %38
  %45 = getelementptr inbounds i8, ptr %2, i64 1300
  %46 = load i32, ptr %45, align 4, !tbaa !37
  %.not149 = icmp eq i32 %46, 0
  br i1 %.not149, label %48, label %47

47:                                               ; preds = %44
  tail call void @_Z5commaRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %0)
  tail call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull @.str.23)
  br label %48

48:                                               ; preds = %47, %44
  %49 = getelementptr inbounds i8, ptr %2, i64 12
  %50 = getelementptr inbounds i8, ptr %2, i64 16
  %51 = getelementptr inbounds i8, ptr %2, i64 20
  %52 = getelementptr inbounds i8, ptr %2, i64 28
  %53 = getelementptr inbounds i8, ptr %2, i64 32
  %54 = getelementptr inbounds i8, ptr %2, i64 36
  %55 = getelementptr inbounds i8, ptr %2, i64 24
  %56 = getelementptr inbounds i8, ptr %2, i64 40
  %57 = load <8 x i32>, ptr %49, align 4
  %.fr = freeze <8 x i32> %57
  %58 = getelementptr inbounds i8, ptr %2, i64 44
  %59 = getelementptr inbounds i8, ptr %2, i64 52
  %60 = getelementptr inbounds i8, ptr %2, i64 56
  %61 = getelementptr inbounds i8, ptr %2, i64 48
  %62 = load <4 x i32>, ptr %58, align 4
  %.fr200 = freeze <4 x i32> %62
  %63 = getelementptr inbounds i8, ptr %2, i64 1304
  %64 = load i32, ptr %63, align 8
  %.not162 = icmp eq i32 %64, 0
  %65 = icmp ne <8 x i32> %.fr, zeroinitializer
  %66 = bitcast <8 x i1> %65 to i8
  %67 = icmp eq i8 %66, 0
  %68 = icmp ne <4 x i32> %.fr200, zeroinitializer
  %69 = bitcast <4 x i1> %68 to i4
  %70 = icmp eq i4 %69, 0
  %op.rdx = and i1 %67, %70
  %op.rdx199 = select i1 %op.rdx, i1 %.not162, i1 false
  br i1 %op.rdx199, label %123, label %71

71:                                               ; preds = %48
  tail call void @_Z5commaRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %0)
  tail call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull @.str.24)
  %72 = load i32, ptr %49, align 4, !tbaa !38
  %.not163 = icmp eq i32 %72, 0
  br i1 %.not163, label %75, label %73

73:                                               ; preds = %71
  %74 = getelementptr inbounds i8, ptr %2, i64 184
  tail call void @_ZL22writeMaterialComponentRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK10cgltf_dataRK29cgltf_pbr_specular_glossinessPK19QuantizationTextureRSt6vectorI11TextureInfoSaISG_EE(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(128) %74, ptr noundef %4, ptr noundef nonnull align 8 dereferenceable(24) %5)
  br label %75

75:                                               ; preds = %73, %71
  %76 = load i32, ptr %50, align 8, !tbaa !39
  %.not164 = icmp eq i32 %76, 0
  br i1 %.not164, label %79, label %77

77:                                               ; preds = %75
  %78 = getelementptr inbounds i8, ptr %2, i64 312
  tail call void @_ZL22writeMaterialComponentRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK10cgltf_dataRK15cgltf_clearcoatPK19QuantizationTextureRSt6vectorI11TextureInfoSaISG_EE(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(152) %78, ptr noundef %4, ptr noundef nonnull align 8 dereferenceable(24) %5)
  br label %79

79:                                               ; preds = %77, %75
  %80 = load i32, ptr %51, align 4, !tbaa !40
  %.not165 = icmp eq i32 %80, 0
  br i1 %.not165, label %83, label %81

81:                                               ; preds = %79
  %82 = getelementptr inbounds i8, ptr %2, i64 704
  tail call void @_ZL22writeMaterialComponentRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK10cgltf_dataRK18cgltf_transmissionPK19QuantizationTextureRSt6vectorI11TextureInfoSaISG_EE(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(56) %82, ptr noundef %4, ptr noundef nonnull align 8 dereferenceable(24) %5)
  br label %83

83:                                               ; preds = %81, %79
  %84 = load i32, ptr %52, align 4, !tbaa !41
  %.not166 = icmp eq i32 %84, 0
  br i1 %.not166, label %87, label %85

85:                                               ; preds = %83
  %86 = getelementptr inbounds i8, ptr %2, i64 464
  tail call void @_ZL22writeMaterialComponentRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK10cgltf_dataRK9cgltf_ior(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %86)
  br label %87

87:                                               ; preds = %85, %83
  %88 = load i32, ptr %53, align 8, !tbaa !42
  %.not167 = icmp eq i32 %88, 0
  br i1 %.not167, label %91, label %89

89:                                               ; preds = %87
  %90 = getelementptr inbounds i8, ptr %2, i64 472
  tail call void @_ZL22writeMaterialComponentRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK10cgltf_dataRK14cgltf_specularPK19QuantizationTextureRSt6vectorI11TextureInfoSaISG_EE(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(112) %90, ptr noundef %4, ptr noundef nonnull align 8 dereferenceable(24) %5)
  br label %91

91:                                               ; preds = %89, %87
  %92 = load i32, ptr %54, align 4, !tbaa !43
  %.not168 = icmp eq i32 %92, 0
  br i1 %.not168, label %95, label %93

93:                                               ; preds = %91
  %94 = getelementptr inbounds i8, ptr %2, i64 584
  tail call void @_ZL22writeMaterialComponentRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK10cgltf_dataRK11cgltf_sheenPK19QuantizationTextureRSt6vectorI11TextureInfoSaISG_EE(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(120) %94, ptr noundef %4, ptr noundef nonnull align 8 dereferenceable(24) %5)
  br label %95

95:                                               ; preds = %93, %91
  %96 = load i32, ptr %55, align 8, !tbaa !44
  %.not169 = icmp eq i32 %96, 0
  br i1 %.not169, label %99, label %97

97:                                               ; preds = %95
  %98 = getelementptr inbounds i8, ptr %2, i64 760
  tail call void @_ZL22writeMaterialComponentRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK10cgltf_dataRK12cgltf_volumePK20QuantizationPositionPK19QuantizationTextureRSt6vectorI11TextureInfoSaISJ_EE(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(72) %98, ptr noundef %3, ptr noundef %4, ptr noundef nonnull align 8 dereferenceable(24) %5)
  br label %99

99:                                               ; preds = %97, %95
  %100 = load i32, ptr %56, align 8, !tbaa !45
  %.not170 = icmp eq i32 %100, 0
  br i1 %.not170, label %103, label %101

101:                                              ; preds = %99
  %102 = getelementptr inbounds i8, ptr %2, i64 832
  tail call void @_ZL22writeMaterialComponentRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK10cgltf_dataRK23cgltf_emissive_strength(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %102)
  br label %103

103:                                              ; preds = %101, %99
  %104 = load i32, ptr %58, align 4, !tbaa !46
  %.not171 = icmp eq i32 %104, 0
  br i1 %.not171, label %107, label %105

105:                                              ; preds = %103
  %106 = getelementptr inbounds i8, ptr %2, i64 840
  tail call void @_ZL22writeMaterialComponentRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK10cgltf_dataRK17cgltf_iridescencePK19QuantizationTextureRSt6vectorI11TextureInfoSaISG_EE(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(120) %106, ptr noundef %4, ptr noundef nonnull align 8 dereferenceable(24) %5)
  br label %107

107:                                              ; preds = %105, %103
  %108 = load i32, ptr %59, align 4, !tbaa !47
  %.not172 = icmp eq i32 %108, 0
  br i1 %.not172, label %111, label %109

109:                                              ; preds = %107
  %110 = getelementptr inbounds i8, ptr %2, i64 1072
  tail call void @_ZL22writeMaterialComponentRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK10cgltf_dataRK16cgltf_anisotropyPK19QuantizationTextureRSt6vectorI11TextureInfoSaISG_EE(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(56) %110, ptr noundef %4, ptr noundef nonnull align 8 dereferenceable(24) %5)
  br label %111

111:                                              ; preds = %109, %107
  %112 = load i32, ptr %60, align 8, !tbaa !48
  %.not173 = icmp eq i32 %112, 0
  br i1 %.not173, label %115, label %113

113:                                              ; preds = %111
  %114 = getelementptr inbounds i8, ptr %2, i64 1128
  tail call void @_ZL22writeMaterialComponentRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK10cgltf_dataRK16cgltf_dispersion(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %114)
  br label %115

115:                                              ; preds = %113, %111
  %116 = load i32, ptr %61, align 8, !tbaa !49
  %.not174 = icmp eq i32 %116, 0
  br i1 %.not174, label %119, label %117

117:                                              ; preds = %115
  %118 = getelementptr inbounds i8, ptr %2, i64 960
  tail call void @_ZL22writeMaterialComponentRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK10cgltf_dataRK26cgltf_diffuse_transmissionPK19QuantizationTextureRSt6vectorI11TextureInfoSaISG_EE(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(112) %118, ptr noundef %4, ptr noundef nonnull align 8 dereferenceable(24) %5)
  br label %119

119:                                              ; preds = %117, %115
  %120 = load i32, ptr %63, align 8, !tbaa !50
  %.not175 = icmp eq i32 %120, 0
  br i1 %.not175, label %122, label %121

121:                                              ; preds = %119
  tail call void @_Z5commaRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %0)
  tail call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull @.str.25)
  br label %122

122:                                              ; preds = %121, %119
  tail call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull @.str.26)
  br label %123

123:                                              ; preds = %48, %122
  ret void
}

declare void @_Z5commaRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1

declare void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL22writeMaterialComponentRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK10cgltf_dataRK28cgltf_pbr_metallic_roughnessPK19QuantizationTextureRSt6vectorI11TextureInfoSaISG_EE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 8 dereferenceable(120), ptr noundef, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL16writeTextureInfoRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK10cgltf_dataRK18cgltf_texture_viewPK19QuantizationTextureRSt6vectorI11TextureInfoSaISG_EEPKc(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 8 dereferenceable(48), ptr noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) local_unnamed_addr #0

declare void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKfm(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef ptr @_ZL9alphaMode16cgltf_alpha_mode(i32 noundef) local_unnamed_addr #2

declare void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEf(ptr noundef nonnull align 8 dereferenceable(32), float noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL22writeMaterialComponentRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK10cgltf_dataRK29cgltf_pbr_specular_glossinessPK19QuantizationTextureRSt6vectorI11TextureInfoSaISG_EE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 8 dereferenceable(128), ptr noundef, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL22writeMaterialComponentRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK10cgltf_dataRK15cgltf_clearcoatPK19QuantizationTextureRSt6vectorI11TextureInfoSaISG_EE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 8 dereferenceable(152), ptr noundef, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL22writeMaterialComponentRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK10cgltf_dataRK18cgltf_transmissionPK19QuantizationTextureRSt6vectorI11TextureInfoSaISG_EE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 8 dereferenceable(56), ptr noundef, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL22writeMaterialComponentRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK10cgltf_dataRK9cgltf_ior(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL22writeMaterialComponentRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK10cgltf_dataRK14cgltf_specularPK19QuantizationTextureRSt6vectorI11TextureInfoSaISG_EE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 8 dereferenceable(112), ptr noundef, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL22writeMaterialComponentRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK10cgltf_dataRK11cgltf_sheenPK19QuantizationTextureRSt6vectorI11TextureInfoSaISG_EE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 8 dereferenceable(120), ptr noundef, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL22writeMaterialComponentRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK10cgltf_dataRK12cgltf_volumePK20QuantizationPositionPK19QuantizationTextureRSt6vectorI11TextureInfoSaISJ_EE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 8 dereferenceable(72), ptr noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL22writeMaterialComponentRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK10cgltf_dataRK23cgltf_emissive_strength(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL22writeMaterialComponentRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK10cgltf_dataRK17cgltf_iridescencePK19QuantizationTextureRSt6vectorI11TextureInfoSaISG_EE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 8 dereferenceable(120), ptr noundef, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL22writeMaterialComponentRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK10cgltf_dataRK16cgltf_anisotropyPK19QuantizationTextureRSt6vectorI11TextureInfoSaISG_EE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 8 dereferenceable(56), ptr noundef, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL22writeMaterialComponentRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK10cgltf_dataRK16cgltf_dispersion(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL22writeMaterialComponentRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK10cgltf_dataRK26cgltf_diffuse_transmissionPK19QuantizationTextureRSt6vectorI11TextureInfoSaISG_EE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 8 dereferenceable(112), ptr noundef, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0

; Function Attrs: nofree nounwind willreturn memory(argmem: read)
declare i32 @bcmp(ptr nocapture, ptr nocapture, i64) local_unnamed_addr #3

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 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 #3 = { nofree nounwind willreturn memory(argmem: read) }

!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 0}
!6 = !{!"_ZTS14cgltf_material", !7, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !11, i64 64, !15, i64 184, !16, i64 312, !17, i64 464, !18, i64 472, !19, i64 584, !20, i64 704, !21, i64 760, !22, i64 832, !23, i64 840, !24, i64 960, !25, i64 1072, !26, i64 1128, !12, i64 1136, !12, i64 1184, !12, i64 1232, !8, i64 1280, !27, i64 1292, !13, i64 1296, !10, i64 1300, !10, i64 1304, !28, i64 1312, !29, i64 1336, !7, i64 1344}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"_ZTS28cgltf_pbr_metallic_roughness", !12, i64 0, !12, i64 48, !8, i64 96, !13, i64 112, !13, i64 116}
!12 = !{!"_ZTS18cgltf_texture_view", !7, i64 0, !10, i64 8, !13, i64 12, !10, i64 16, !14, i64 20}
!13 = !{!"float", !8, i64 0}
!14 = !{!"_ZTS23cgltf_texture_transform", !8, i64 0, !13, i64 8, !8, i64 12, !10, i64 20, !10, i64 24}
!15 = !{!"_ZTS29cgltf_pbr_specular_glossiness", !12, i64 0, !12, i64 48, !8, i64 96, !8, i64 112, !13, i64 124}
!16 = !{!"_ZTS15cgltf_clearcoat", !12, i64 0, !12, i64 48, !12, i64 96, !13, i64 144, !13, i64 148}
!17 = !{!"_ZTS9cgltf_ior", !13, i64 0}
!18 = !{!"_ZTS14cgltf_specular", !12, i64 0, !12, i64 48, !8, i64 96, !13, i64 108}
!19 = !{!"_ZTS11cgltf_sheen", !12, i64 0, !8, i64 48, !12, i64 64, !13, i64 112}
!20 = !{!"_ZTS18cgltf_transmission", !12, i64 0, !13, i64 48}
!21 = !{!"_ZTS12cgltf_volume", !12, i64 0, !13, i64 48, !8, i64 52, !13, i64 64}
!22 = !{!"_ZTS23cgltf_emissive_strength", !13, i64 0}
!23 = !{!"_ZTS17cgltf_iridescence", !13, i64 0, !12, i64 8, !13, i64 56, !13, i64 60, !13, i64 64, !12, i64 72}
!24 = !{!"_ZTS26cgltf_diffuse_transmission", !12, i64 0, !13, i64 48, !8, i64 52, !12, i64 64}
!25 = !{!"_ZTS16cgltf_anisotropy", !13, i64 0, !13, i64 4, !12, i64 8}
!26 = !{!"_ZTS16cgltf_dispersion", !13, i64 0}
!27 = !{!"_ZTS16cgltf_alpha_mode", !8, i64 0}
!28 = !{!"_ZTS12cgltf_extras", !29, i64 0, !29, i64 8, !7, i64 16}
!29 = !{!"long", !8, i64 0}
!30 = !{!8, !8, i64 0}
!31 = !{!6, !10, i64 8}
!32 = !{!6, !7, i64 1136}
!33 = !{!6, !7, i64 1184}
!34 = !{!6, !7, i64 1232}
!35 = !{!6, !27, i64 1292}
!36 = !{!6, !13, i64 1296}
!37 = !{!6, !10, i64 1300}
!38 = !{!6, !10, i64 12}
!39 = !{!6, !10, i64 16}
!40 = !{!6, !10, i64 20}
!41 = !{!6, !10, i64 28}
!42 = !{!6, !10, i64 32}
!43 = !{!6, !10, i64 36}
!44 = !{!6, !10, i64 24}
!45 = !{!6, !10, i64 40}
!46 = !{!6, !10, i64 44}
!47 = !{!6, !10, i64 52}
!48 = !{!6, !10, i64 56}
!49 = !{!6, !10, i64 48}
!50 = !{!6, !10, i64 1304}


; Effective O3 passes: EarlyCSEPass,GlobalDCEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass