; LLVM IR from Razakhel/RaZ :: extern/fastgltf/src (fastgltf)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::basic_string_view" = type { i64, ptr }
%"class.simdjson::dom::object" = type { %"class.simdjson::internal::tape_ref" }
%"class.simdjson::internal::tape_ref" = type { ptr, i64 }
%"struct.simdjson::simdjson_result" = type { %"struct.simdjson::internal::simdjson_result_base.base", [4 x i8] }
%"struct.simdjson::internal::simdjson_result_base.base" = type { %"struct.std::pair.base" }
%"struct.std::pair.base" = type <{ %"class.simdjson::dom::object", i32 }>
%"struct.simdjson::simdjson_result.0" = type { %"struct.simdjson::internal::simdjson_result_base.base.5", [4 x i8] }
%"struct.simdjson::internal::simdjson_result_base.base.5" = type { %"struct.std::pair.base.4" }
%"struct.std::pair.base.4" = type <{ %"class.simdjson::dom::element", i32 }>
%"class.simdjson::dom::element" = type { %"class.simdjson::internal::tape_ref" }
%"struct.simdjson::simdjson_result.7" = type { %"struct.simdjson::internal::simdjson_result_base.base.12", [4 x i8] }
%"struct.simdjson::internal::simdjson_result_base.base.12" = type { %"struct.std::pair.base.11" }
%"struct.std::pair.base.11" = type <{ i64, i32 }>
%"struct.simdjson::simdjson_result.16" = type { %"struct.simdjson::internal::simdjson_result_base.base.21", [4 x i8] }
%"struct.simdjson::internal::simdjson_result_base.base.21" = type { %"struct.std::pair.base.20" }
%"struct.std::pair.base.20" = type <{ double, i32 }>
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.15" }
%"struct.std::_Head_base.15" = type { ptr }
%"class.simdjson::dom::array" = type { %"class.simdjson::internal::tape_ref" }
%"struct.simdjson::simdjson_result.23" = type { %"struct.simdjson::internal::simdjson_result_base.base.28", [4 x i8] }
%"struct.simdjson::internal::simdjson_result_base.base.28" = type { %"struct.std::pair.base.27" }
%"struct.std::pair.base.27" = type <{ %"class.simdjson::dom::array", i32 }>
%"struct.fastgltf::TextureInfo" = type { i64, i64, %"class.std::unique_ptr" }
%"struct.fastgltf::NormalTextureInfo" = type <{ %"struct.fastgltf::TextureInfo", float, [4 x i8] }>
%"struct.fastgltf::OcclusionTextureInfo" = type <{ %"struct.fastgltf::TextureInfo", float, [4 x i8] }>
%"struct.fastgltf::TextureTransform" = type { float, %"class.fastgltf::math::vec", %"class.fastgltf::math::vec", %"class.fastgltf::OptionalWithFlagValue" }
%"class.fastgltf::math::vec" = type { %"struct.std::array" }
%"struct.std::array" = type { [2 x float] }
%"class.fastgltf::OptionalWithFlagValue" = type { %union.anon }
%union.anon = type { i64 }

@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [11 x i8], align 1
@_ZN8fastgltf10extensionsL21KHR_texture_transformE = external hidden constant %"class.std::basic_string_view", align 8
@.str.6 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [7 x i8], align 1

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) #2

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef i64 @_ZN8fastgltf16parseTextureInfoERN8simdjson3dom6objectESt17basic_string_viewIcSt11char_traitsIcEEPNS_11TextureInfoENS_10ExtensionsENS_15TextureInfoTypeE(ptr noundef nonnull align 8 dereferenceable(16) %0, i64 %1, ptr %2, ptr noundef %3, i64 noundef %4, i8 noundef zeroext %5) #3 personality ptr @__gxx_personality_v0 {
  %7 = alloca i64, align 8
  %8 = alloca %"class.std::basic_string_view", align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca i8, align 1
  %13 = alloca %"class.simdjson::dom::object", align 8
  %14 = alloca i32, align 4
  %15 = alloca %"struct.simdjson::simdjson_result", align 8
  %16 = alloca %"struct.simdjson::simdjson_result.0", align 8
  %17 = alloca %"class.std::basic_string_view", align 8
  %18 = alloca i32, align 4
  %19 = alloca i64, align 8
  %20 = alloca %"struct.simdjson::simdjson_result.7", align 8
  %21 = alloca %"struct.simdjson::simdjson_result.0", align 8
  %22 = alloca { i64, i32 }, align 8
  %23 = alloca i32, align 4
  %24 = alloca %"struct.simdjson::simdjson_result.7", align 8
  %25 = alloca %"struct.simdjson::simdjson_result.0", align 8
  %26 = alloca { i64, i32 }, align 8
  %27 = alloca double, align 8
  %28 = alloca i32, align 4
  %29 = alloca %"struct.simdjson::simdjson_result.16", align 8
  %30 = alloca %"struct.simdjson::simdjson_result.0", align 8
  %31 = alloca { double, i32 }, align 8
  %32 = alloca double, align 8
  %33 = alloca i32, align 4
  %34 = alloca %"struct.simdjson::simdjson_result.16", align 8
  %35 = alloca %"struct.simdjson::simdjson_result.0", align 8
  %36 = alloca { double, i32 }, align 8
  %37 = alloca %"class.simdjson::dom::object", align 8
  %38 = alloca %"struct.simdjson::simdjson_result", align 8
  %39 = alloca %"struct.simdjson::simdjson_result.0", align 8
  %40 = alloca %"class.simdjson::dom::object", align 8
  %41 = alloca %"struct.simdjson::simdjson_result", align 8
  %42 = alloca %"struct.simdjson::simdjson_result.0", align 8
  %43 = alloca %"class.std::basic_string_view", align 8
  %44 = alloca %"class.std::unique_ptr", align 8
  %45 = alloca %"struct.simdjson::simdjson_result.7", align 8
  %46 = alloca %"struct.simdjson::simdjson_result.0", align 8
  %47 = alloca { i64, i32 }, align 8
  %48 = alloca double, align 8
  %49 = alloca %"struct.simdjson::simdjson_result.16", align 8
  %50 = alloca %"struct.simdjson::simdjson_result.0", align 8
  %51 = alloca { double, i32 }, align 8
  %52 = alloca %"class.simdjson::dom::array", align 8
  %53 = alloca %"struct.simdjson::simdjson_result.23", align 8
  %54 = alloca %"struct.simdjson::simdjson_result.0", align 8
  %55 = alloca i32, align 4
  %56 = alloca double, align 8
  %57 = alloca %"struct.simdjson::simdjson_result.16", align 8
  %58 = alloca %"struct.simdjson::simdjson_result.0", align 8
  %59 = alloca { double, i32 }, align 8
  %60 = alloca %"struct.simdjson::simdjson_result.23", align 8
  %61 = alloca %"struct.simdjson::simdjson_result.0", align 8
  %62 = alloca i32, align 4
  %63 = alloca double, align 8
  %64 = alloca %"struct.simdjson::simdjson_result.16", align 8
  %65 = alloca %"struct.simdjson::simdjson_result.0", align 8
  %66 = alloca { double, i32 }, align 8
  %67 = getelementptr inbounds { i64, ptr }, ptr %8, i32 0, i32 0
  store i64 %1, ptr %67, align 8
  %68 = getelementptr inbounds { i64, ptr }, ptr %8, i32 0, i32 1
  store ptr %2, ptr %68, align 8
  store ptr %0, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store i64 %4, ptr %11, align 8, !tbaa !9
  store i8 %5, ptr %12, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #8
  call void @_ZN8simdjson3dom6objectC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #8
  %69 = load ptr, ptr %9, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %17, ptr align 8 %8, i64 16, i1 false), !tbaa.struct !13
  %70 = getelementptr inbounds { i64, ptr }, ptr %17, i32 0, i32 0
  %71 = load i64, ptr %70, align 8
  %72 = getelementptr inbounds { i64, ptr }, ptr %17, i32 0, i32 1
  %73 = load ptr, ptr %72, align 8
  call void @_ZNK8simdjson3dom6objectixESt17basic_string_viewIcSt11char_traitsIcEE(ptr dead_on_unwind writable sret(%"struct.simdjson::simdjson_result.0") align 8 %16, ptr noundef nonnull align 8 dereferenceable(16) %69, i64 %71, ptr %73) #8
  call void @_ZNK8simdjson15simdjson_resultINS_3dom7elementEE10get_objectEv(ptr dead_on_unwind writable sret(%"struct.simdjson::simdjson_result") align 8 %15, ptr noundef nonnull align 8 dereferenceable(20) %16) #8
  %74 = call noundef i32 @_ZNO8simdjson8internal20simdjson_result_baseINS_3dom6objectEE3getERS3_(ptr noundef nonnull align 8 dereferenceable(20) %15, ptr noundef nonnull align 8 dereferenceable(16) %13) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #8
  store i32 %74, ptr %14, align 4, !tbaa !16
  %75 = load i32, ptr %14, align 4, !tbaa !16
  %76 = icmp eq i32 %75, 20
  br i1 %76, label %77, label %78

77:                                               ; preds = %6
  store i64 8, ptr %7, align 8
  store i32 1, ptr %18, align 4
  br label %85

78:                                               ; preds = %6
  %79 = load i32, ptr %14, align 4, !tbaa !16
  %80 = icmp ne i32 %79, 0
  %81 = call i1 @llvm.expect.i1(i1 %80, i1 false)
  br i1 %81, label %82, label %83

82:                                               ; preds = %78
  store i64 5, ptr %7, align 8
  store i32 1, ptr %18, align 4
  br label %85

83:                                               ; preds = %78
  br label %84

84:                                               ; preds = %83
  store i32 0, ptr %18, align 4
  br label %85

85:                                               ; preds = %84, %82, %77
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  %86 = load i32, ptr %18, align 4
  switch i32 %86, label %293 [
    i32 0, label %87
  ]

87:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #8
  call void @_ZNK8simdjson3dom6objectixEPKc(ptr dead_on_unwind writable sret(%"struct.simdjson::simdjson_result.0") align 8 %21, ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef @.str.1) #8
  %88 = call { i64, i32 } @_ZNK8simdjson15simdjson_resultINS_3dom7elementEE10get_uint64Ev(ptr noundef nonnull align 8 dereferenceable(20) %21) #8
  store { i64, i32 } %88, ptr %22, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %20, ptr align 8 %22, i64 12, i1 false)
  %89 = call noundef i32 @_ZNO8simdjson15simdjson_resultImE3getERm(ptr noundef nonnull align 8 dereferenceable(12) %20, ptr noundef nonnull align 8 dereferenceable(8) %19) #8
  %90 = icmp eq i32 %89, 0
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #8
  %91 = call i1 @llvm.expect.i1(i1 %90, i1 true)
  br i1 %91, label %92, label %96

92:                                               ; preds = %87
  %93 = load i64, ptr %19, align 8, !tbaa !14
  %94 = load ptr, ptr %10, align 8, !tbaa !5
  %95 = getelementptr inbounds %"struct.fastgltf::TextureInfo", ptr %94, i32 0, i32 0
  store i64 %93, ptr %95, align 8, !tbaa !18
  br label %97

96:                                               ; preds = %87
  store i64 5, ptr %7, align 8
  store i32 1, ptr %18, align 4
  br label %292

97:                                               ; preds = %92
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %25) #8
  call void @_ZNK8simdjson3dom6objectixEPKc(ptr dead_on_unwind writable sret(%"struct.simdjson::simdjson_result.0") align 8 %25, ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef @.str.2) #8
  %98 = call { i64, i32 } @_ZNK8simdjson15simdjson_resultINS_3dom7elementEE10get_uint64Ev(ptr noundef nonnull align 8 dereferenceable(20) %25) #8
  store { i64, i32 } %98, ptr %26, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %24, ptr align 8 %26, i64 12, i1 false)
  %99 = call noundef i32 @_ZNO8simdjson15simdjson_resultImE3getERm(ptr noundef nonnull align 8 dereferenceable(12) %24, ptr noundef nonnull align 8 dereferenceable(8) %19) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #8
  store i32 %99, ptr %23, align 4, !tbaa !16
  %100 = load i32, ptr %23, align 4, !tbaa !16
  %101 = icmp eq i32 %100, 0
  %102 = call i1 @llvm.expect.i1(i1 %101, i1 true)
  br i1 %102, label %103, label %107

103:                                              ; preds = %97
  %104 = load i64, ptr %19, align 8, !tbaa !14
  %105 = load ptr, ptr %10, align 8, !tbaa !5
  %106 = getelementptr inbounds %"struct.fastgltf::TextureInfo", ptr %105, i32 0, i32 1
  store i64 %104, ptr %106, align 8, !tbaa !26
  br label %113

107:                                              ; preds = %97
  %108 = load i32, ptr %23, align 4, !tbaa !16
  %109 = icmp ne i32 %108, 20
  %110 = call i1 @llvm.expect.i1(i1 %109, i1 false)
  br i1 %110, label %111, label %112

111:                                              ; preds = %107
  store i64 4, ptr %7, align 8
  store i32 1, ptr %18, align 4
  br label %114

112:                                              ; preds = %107
  br label %113

113:                                              ; preds = %112, %103
  store i32 0, ptr %18, align 4
  br label %114

114:                                              ; preds = %113, %111
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  %115 = load i32, ptr %18, align 4
  switch i32 %115, label %292 [
    i32 0, label %116
  ]

116:                                              ; preds = %114
  %117 = load i8, ptr %12, align 1, !tbaa !11
  %118 = icmp eq i8 %117, 1
  br i1 %118, label %119, label %143

119:                                              ; preds = %116
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %29) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %30) #8
  call void @_ZNK8simdjson3dom6objectixEPKc(ptr dead_on_unwind writable sret(%"struct.simdjson::simdjson_result.0") align 8 %30, ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef @.str.3) #8
  %120 = call { double, i32 } @_ZNK8simdjson15simdjson_resultINS_3dom7elementEE10get_doubleEv(ptr noundef nonnull align 8 dereferenceable(20) %30) #8
  store { double, i32 } %120, ptr %31, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %29, ptr align 8 %31, i64 12, i1 false)
  %121 = call noundef i32 @_ZNO8simdjson15simdjson_resultIdE3getERd(ptr noundef nonnull align 8 dereferenceable(12) %29, ptr noundef nonnull align 8 dereferenceable(8) %27) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #8
  store i32 %121, ptr %28, align 4, !tbaa !16
  %122 = load i32, ptr %28, align 4, !tbaa !16
  %123 = icmp eq i32 %122, 0
  %124 = call i1 @llvm.expect.i1(i1 %123, i1 true)
  br i1 %124, label %125, label %130

125:                                              ; preds = %119
  %126 = load double, ptr %27, align 8, !tbaa !27
  %127 = fptrunc double %126 to float
  %128 = load ptr, ptr %10, align 8, !tbaa !5
  %129 = getelementptr inbounds %"struct.fastgltf::NormalTextureInfo", ptr %128, i32 0, i32 1
  store float %127, ptr %129, align 8, !tbaa !29
  br label %136

130:                                              ; preds = %119
  %131 = load i32, ptr %28, align 4, !tbaa !16
  %132 = icmp ne i32 %131, 20
  %133 = call i1 @llvm.expect.i1(i1 %132, i1 false)
  br i1 %133, label %134, label %135

134:                                              ; preds = %130
  store i64 5, ptr %7, align 8
  store i32 1, ptr %18, align 4
  br label %137

135:                                              ; preds = %130
  br label %136

136:                                              ; preds = %135, %125
  store i32 0, ptr %18, align 4
  br label %137

137:                                              ; preds = %136, %134
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  %138 = load i32, ptr %18, align 4
  switch i32 %138, label %140 [
    i32 0, label %139
  ]

139:                                              ; preds = %137
  store i32 0, ptr %18, align 4
  br label %140

140:                                              ; preds = %139, %137
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  %141 = load i32, ptr %18, align 4
  switch i32 %141, label %292 [
    i32 0, label %142
  ]

142:                                              ; preds = %140
  br label %171

143:                                              ; preds = %116
  %144 = load i8, ptr %12, align 1, !tbaa !11
  %145 = icmp eq i8 %144, 2
  br i1 %145, label %146, label %170

146:                                              ; preds = %143
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %34) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %35) #8
  call void @_ZNK8simdjson3dom6objectixEPKc(ptr dead_on_unwind writable sret(%"struct.simdjson::simdjson_result.0") align 8 %35, ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef @.str.4) #8
  %147 = call { double, i32 } @_ZNK8simdjson15simdjson_resultINS_3dom7elementEE10get_doubleEv(ptr noundef nonnull align 8 dereferenceable(20) %35) #8
  store { double, i32 } %147, ptr %36, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %34, ptr align 8 %36, i64 12, i1 false)
  %148 = call noundef i32 @_ZNO8simdjson15simdjson_resultIdE3getERd(ptr noundef nonnull align 8 dereferenceable(12) %34, ptr noundef nonnull align 8 dereferenceable(8) %32) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %35) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #8
  store i32 %148, ptr %33, align 4, !tbaa !16
  %149 = load i32, ptr %33, align 4, !tbaa !16
  %150 = icmp eq i32 %149, 0
  %151 = call i1 @llvm.expect.i1(i1 %150, i1 true)
  br i1 %151, label %152, label %157

152:                                              ; preds = %146
  %153 = load double, ptr %32, align 8, !tbaa !27
  %154 = fptrunc double %153 to float
  %155 = load ptr, ptr %10, align 8, !tbaa !5
  %156 = getelementptr inbounds %"struct.fastgltf::OcclusionTextureInfo", ptr %155, i32 0, i32 1
  store float %154, ptr %156, align 8, !tbaa !32
  br label %163

157:                                              ; preds = %146
  %158 = load i32, ptr %33, align 4, !tbaa !16
  %159 = icmp ne i32 %158, 20
  %160 = call i1 @llvm.expect.i1(i1 %159, i1 false)
  br i1 %160, label %161, label %162

161:                                              ; preds = %157
  store i64 5, ptr %7, align 8
  store i32 1, ptr %18, align 4
  br label %164

162:                                              ; preds = %157
  br label %163

163:                                              ; preds = %162, %152
  store i32 0, ptr %18, align 4
  br label %164

164:                                              ; preds = %163, %161
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #8
  %165 = load i32, ptr %18, align 4
  switch i32 %165, label %167 [
    i32 0, label %166
  ]

166:                                              ; preds = %164
  store i32 0, ptr %18, align 4
  br label %167

167:                                              ; preds = %166, %164
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  %168 = load i32, ptr %18, align 4
  switch i32 %168, label %292 [
    i32 0, label %169
  ]

169:                                              ; preds = %167
  br label %170

170:                                              ; preds = %169, %143
  br label %171

171:                                              ; preds = %170, %142
  call void @llvm.lifetime.start.p0(i64 16, ptr %37) #8
  call void @_ZN8simdjson3dom6objectC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %37) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %38) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %39) #8
  call void @_ZNK8simdjson3dom6objectixEPKc(ptr dead_on_unwind writable sret(%"struct.simdjson::simdjson_result.0") align 8 %39, ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef @.str.5) #8
  call void @_ZNK8simdjson15simdjson_resultINS_3dom7elementEE10get_objectEv(ptr dead_on_unwind writable sret(%"struct.simdjson::simdjson_result") align 8 %38, ptr noundef nonnull align 8 dereferenceable(20) %39) #8
  %172 = call noundef i32 @_ZNO8simdjson8internal20simdjson_result_baseINS_3dom6objectEE3getERS3_(ptr noundef nonnull align 8 dereferenceable(20) %38, ptr noundef nonnull align 8 dereferenceable(16) %37) #8
  %173 = icmp eq i32 %172, 0
  call void @llvm.lifetime.end.p0(i64 24, ptr %39) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %38) #8
  %174 = call i1 @llvm.expect.i1(i1 %173, i1 true)
  br i1 %174, label %175, label %290

175:                                              ; preds = %171
  call void @llvm.lifetime.start.p0(i64 16, ptr %40) #8
  call void @_ZN8simdjson3dom6objectC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %40) #8
  %176 = load i64, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %41) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %42) #8
  %177 = invoke noundef zeroext i1 @_ZN8fastgltf6hasBitINS_10ExtensionsES1_EEbT_T0_(i64 noundef %176, i64 noundef 2)
          to label %178 unwind label %295

178:                                              ; preds = %175
  br i1 %177, label %179, label %186

179:                                              ; preds = %178
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %43, ptr align 8 @_ZN8fastgltf10extensionsL21KHR_texture_transformE, i64 16, i1 false), !tbaa.struct !13
  %180 = getelementptr inbounds { i64, ptr }, ptr %43, i32 0, i32 0
  %181 = load i64, ptr %180, align 8
  %182 = getelementptr inbounds { i64, ptr }, ptr %43, i32 0, i32 1
  %183 = load ptr, ptr %182, align 8
  call void @_ZNK8simdjson3dom6objectixESt17basic_string_viewIcSt11char_traitsIcEE(ptr dead_on_unwind writable sret(%"struct.simdjson::simdjson_result.0") align 8 %42, ptr noundef nonnull align 8 dereferenceable(16) %37, i64 %181, ptr %183) #8
  call void @_ZNK8simdjson15simdjson_resultINS_3dom7elementEE10get_objectEv(ptr dead_on_unwind writable sret(%"struct.simdjson::simdjson_result") align 8 %41, ptr noundef nonnull align 8 dereferenceable(20) %42) #8
  %184 = call noundef i32 @_ZNO8simdjson8internal20simdjson_result_baseINS_3dom6objectEE3getERS3_(ptr noundef nonnull align 8 dereferenceable(20) %41, ptr noundef nonnull align 8 dereferenceable(16) %40) #8
  %185 = icmp eq i32 %184, 0
  br label %186

186:                                              ; preds = %179, %178
  %187 = phi i1 [ false, %178 ], [ %185, %179 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr %42) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %41) #8
  %188 = call i1 @llvm.expect.i1(i1 %187, i1 true)
  br i1 %188, label %189, label %286

189:                                              ; preds = %186
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #8
  invoke void @_ZSt11make_uniqueIN8fastgltf16TextureTransformEJEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind writable sret(%"class.std::unique_ptr") align 8 %44)
          to label %190 unwind label %295

190:                                              ; preds = %189
  %191 = call noundef ptr @_ZNKSt10unique_ptrIN8fastgltf16TextureTransformESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %44) #8
  %192 = getelementptr inbounds %"struct.fastgltf::TextureTransform", ptr %191, i32 0, i32 0
  store float 0.000000e+00, ptr %192, align 8, !tbaa !34
  call void @llvm.lifetime.start.p0(i64 16, ptr %45) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %46) #8
  call void @_ZNK8simdjson3dom6objectixEPKc(ptr dead_on_unwind writable sret(%"struct.simdjson::simdjson_result.0") align 8 %46, ptr noundef nonnull align 8 dereferenceable(16) %40, ptr noundef @.str.2) #8
  %193 = call { i64, i32 } @_ZNK8simdjson15simdjson_resultINS_3dom7elementEE10get_uint64Ev(ptr noundef nonnull align 8 dereferenceable(20) %46) #8
  store { i64, i32 } %193, ptr %47, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %45, ptr align 8 %47, i64 12, i1 false)
  %194 = call noundef i32 @_ZNO8simdjson15simdjson_resultImE3getERm(ptr noundef nonnull align 8 dereferenceable(12) %45, ptr noundef nonnull align 8 dereferenceable(8) %19) #8
  %195 = icmp eq i32 %194, 0
  call void @llvm.lifetime.end.p0(i64 24, ptr %46) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %45) #8
  %196 = call i1 @llvm.expect.i1(i1 %195, i1 true)
  br i1 %196, label %197, label %201

197:                                              ; preds = %190
  %198 = call noundef ptr @_ZNKSt10unique_ptrIN8fastgltf16TextureTransformESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %44) #8
  %199 = getelementptr inbounds %"struct.fastgltf::TextureTransform", ptr %198, i32 0, i32 3
  %200 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8fastgltf21OptionalWithFlagValueImEaSIRmTnNSt9enable_ifIXsr3stdE18is_constructible_vImOT_EEiE4typeELi0EEERS1_S6_(ptr noundef nonnull align 8 dereferenceable(8) %199, ptr noundef nonnull align 8 dereferenceable(8) %19) #8
  br label %201

201:                                              ; preds = %197, %190
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #8
  store double 0.000000e+00, ptr %48, align 8, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 16, ptr %49) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %50) #8
  call void @_ZNK8simdjson3dom6objectixEPKc(ptr dead_on_unwind writable sret(%"struct.simdjson::simdjson_result.0") align 8 %50, ptr noundef nonnull align 8 dereferenceable(16) %40, ptr noundef @.str.6) #8
  %202 = call { double, i32 } @_ZNK8simdjson15simdjson_resultINS_3dom7elementEE10get_doubleEv(ptr noundef nonnull align 8 dereferenceable(20) %50) #8
  store { double, i32 } %202, ptr %51, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %49, ptr align 8 %51, i64 12, i1 false)
  %203 = call noundef i32 @_ZNO8simdjson15simdjson_resultIdE3getERd(ptr noundef nonnull align 8 dereferenceable(12) %49, ptr noundef nonnull align 8 dereferenceable(8) %48) #8
  %204 = icmp eq i32 %203, 0
  call void @llvm.lifetime.end.p0(i64 24, ptr %50) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %49) #8
  %205 = call i1 @llvm.expect.i1(i1 %204, i1 true)
  br i1 %205, label %206, label %211

206:                                              ; preds = %201
  %207 = load double, ptr %48, align 8, !tbaa !27
  %208 = fptrunc double %207 to float
  %209 = call noundef ptr @_ZNKSt10unique_ptrIN8fastgltf16TextureTransformESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %44) #8
  %210 = getelementptr inbounds %"struct.fastgltf::TextureTransform", ptr %209, i32 0, i32 0
  store float %208, ptr %210, align 8, !tbaa !34
  br label %211

211:                                              ; preds = %206, %201
  call void @llvm.lifetime.start.p0(i64 16, ptr %52) #8
  call void @_ZN8simdjson3dom5arrayC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %52) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %53) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %54) #8
  call void @_ZNK8simdjson3dom6objectixEPKc(ptr dead_on_unwind writable sret(%"struct.simdjson::simdjson_result.0") align 8 %54, ptr noundef nonnull align 8 dereferenceable(16) %40, ptr noundef @.str.7) #8
  call void @_ZNK8simdjson15simdjson_resultINS_3dom7elementEE9get_arrayEv(ptr dead_on_unwind writable sret(%"struct.simdjson::simdjson_result.23") align 8 %53, ptr noundef nonnull align 8 dereferenceable(20) %54) #8
  %212 = call noundef i32 @_ZNO8simdjson8internal20simdjson_result_baseINS_3dom5arrayEE3getERS3_(ptr noundef nonnull align 8 dereferenceable(20) %53, ptr noundef nonnull align 8 dereferenceable(16) %52) #8
  %213 = icmp eq i32 %212, 0
  call void @llvm.lifetime.end.p0(i64 24, ptr %54) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %53) #8
  %214 = call i1 @llvm.expect.i1(i1 %213, i1 true)
  br i1 %214, label %215, label %245

215:                                              ; preds = %211
  call void @llvm.lifetime.start.p0(i64 4, ptr %55) #8
  store i32 0, ptr %55, align 4, !tbaa !39
  br label %216

216:                                              ; preds = %239, %215
  %217 = load i32, ptr %55, align 4, !tbaa !39
  %218 = icmp ult i32 %217, 2
  br i1 %218, label %220, label %219

219:                                              ; preds = %216
  store i32 2, ptr %18, align 4
  br label %242

220:                                              ; preds = %216
  call void @llvm.lifetime.start.p0(i64 8, ptr %56) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %57) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %58) #8
  %221 = load i32, ptr %55, align 4, !tbaa !39
  %222 = zext i32 %221 to i64
  call void @_ZNK8simdjson3dom5array2atEm(ptr dead_on_unwind writable sret(%"struct.simdjson::simdjson_result.0") align 8 %58, ptr noundef nonnull align 8 dereferenceable(16) %52, i64 noundef %222) #8
  %223 = call { double, i32 } @_ZNK8simdjson15simdjson_resultINS_3dom7elementEE10get_doubleEv(ptr noundef nonnull align 8 dereferenceable(20) %58) #8
  store { double, i32 } %223, ptr %59, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %57, ptr align 8 %59, i64 12, i1 false)
  %224 = call noundef i32 @_ZNO8simdjson15simdjson_resultIdE3getERd(ptr noundef nonnull align 8 dereferenceable(12) %57, ptr noundef nonnull align 8 dereferenceable(8) %56) #8
  %225 = icmp ne i32 %224, 0
  call void @llvm.lifetime.end.p0(i64 24, ptr %58) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %57) #8
  %226 = call i1 @llvm.expect.i1(i1 %225, i1 false)
  br i1 %226, label %227, label %228

227:                                              ; preds = %220
  store i64 5, ptr %7, align 8
  store i32 1, ptr %18, align 4
  br label %236

228:                                              ; preds = %220
  %229 = load double, ptr %56, align 8, !tbaa !27
  %230 = fptrunc double %229 to float
  %231 = call noundef ptr @_ZNKSt10unique_ptrIN8fastgltf16TextureTransformESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %44) #8
  %232 = getelementptr inbounds %"struct.fastgltf::TextureTransform", ptr %231, i32 0, i32 1
  %233 = load i32, ptr %55, align 4, !tbaa !39
  %234 = zext i32 %233 to i64
  %235 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8fastgltf4math3vecIfLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %232, i64 noundef %234) #8
  store float %230, ptr %235, align 4, !tbaa !41
  store i32 0, ptr %18, align 4
  br label %236

236:                                              ; preds = %228, %227
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #8
  %237 = load i32, ptr %18, align 4
  switch i32 %237, label %242 [
    i32 0, label %238
  ]

238:                                              ; preds = %236
  br label %239

239:                                              ; preds = %238
  %240 = load i32, ptr %55, align 4, !tbaa !39
  %241 = add i32 %240, 1
  store i32 %241, ptr %55, align 4, !tbaa !39
  br label %216, !llvm.loop !42

242:                                              ; preds = %236, %219
  call void @llvm.lifetime.end.p0(i64 4, ptr %55) #8
  %243 = load i32, ptr %18, align 4
  switch i32 %243, label %283 [
    i32 2, label %244
  ]

244:                                              ; preds = %242
  br label %245

245:                                              ; preds = %244, %211
  call void @llvm.lifetime.start.p0(i64 24, ptr %60) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %61) #8
  call void @_ZNK8simdjson3dom6objectixEPKc(ptr dead_on_unwind writable sret(%"struct.simdjson::simdjson_result.0") align 8 %61, ptr noundef nonnull align 8 dereferenceable(16) %40, ptr noundef @.str.3) #8
  call void @_ZNK8simdjson15simdjson_resultINS_3dom7elementEE9get_arrayEv(ptr dead_on_unwind writable sret(%"struct.simdjson::simdjson_result.23") align 8 %60, ptr noundef nonnull align 8 dereferenceable(20) %61) #8
  %246 = call noundef i32 @_ZNO8simdjson8internal20simdjson_result_baseINS_3dom5arrayEE3getERS3_(ptr noundef nonnull align 8 dereferenceable(20) %60, ptr noundef nonnull align 8 dereferenceable(16) %52) #8
  %247 = icmp eq i32 %246, 0
  call void @llvm.lifetime.end.p0(i64 24, ptr %61) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %60) #8
  %248 = call i1 @llvm.expect.i1(i1 %247, i1 true)
  br i1 %248, label %249, label %279

249:                                              ; preds = %245
  call void @llvm.lifetime.start.p0(i64 4, ptr %62) #8
  store i32 0, ptr %62, align 4, !tbaa !39
  br label %250

250:                                              ; preds = %273, %249
  %251 = load i32, ptr %62, align 4, !tbaa !39
  %252 = icmp ult i32 %251, 2
  br i1 %252, label %254, label %253

253:                                              ; preds = %250
  store i32 5, ptr %18, align 4
  br label %276

254:                                              ; preds = %250
  call void @llvm.lifetime.start.p0(i64 8, ptr %63) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %64) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %65) #8
  %255 = load i32, ptr %62, align 4, !tbaa !39
  %256 = zext i32 %255 to i64
  call void @_ZNK8simdjson3dom5array2atEm(ptr dead_on_unwind writable sret(%"struct.simdjson::simdjson_result.0") align 8 %65, ptr noundef nonnull align 8 dereferenceable(16) %52, i64 noundef %256) #8
  %257 = call { double, i32 } @_ZNK8simdjson15simdjson_resultINS_3dom7elementEE10get_doubleEv(ptr noundef nonnull align 8 dereferenceable(20) %65) #8
  store { double, i32 } %257, ptr %66, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %64, ptr align 8 %66, i64 12, i1 false)
  %258 = call noundef i32 @_ZNO8simdjson15simdjson_resultIdE3getERd(ptr noundef nonnull align 8 dereferenceable(12) %64, ptr noundef nonnull align 8 dereferenceable(8) %63) #8
  %259 = icmp ne i32 %258, 0
  call void @llvm.lifetime.end.p0(i64 24, ptr %65) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %64) #8
  %260 = call i1 @llvm.expect.i1(i1 %259, i1 false)
  br i1 %260, label %261, label %262

261:                                              ; preds = %254
  store i64 5, ptr %7, align 8
  store i32 1, ptr %18, align 4
  br label %270

262:                                              ; preds = %254
  %263 = load double, ptr %63, align 8, !tbaa !27
  %264 = fptrunc double %263 to float
  %265 = call noundef ptr @_ZNKSt10unique_ptrIN8fastgltf16TextureTransformESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %44) #8
  %266 = getelementptr inbounds %"struct.fastgltf::TextureTransform", ptr %265, i32 0, i32 2
  %267 = load i32, ptr %62, align 4, !tbaa !39
  %268 = zext i32 %267 to i64
  %269 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8fastgltf4math3vecIfLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %266, i64 noundef %268) #8
  store float %264, ptr %269, align 4, !tbaa !41
  store i32 0, ptr %18, align 4
  br label %270

270:                                              ; preds = %262, %261
  call void @llvm.lifetime.end.p0(i64 8, ptr %63) #8
  %271 = load i32, ptr %18, align 4
  switch i32 %271, label %276 [
    i32 0, label %272
  ]

272:                                              ; preds = %270
  br label %273

273:                                              ; preds = %272
  %274 = load i32, ptr %62, align 4, !tbaa !39
  %275 = add i32 %274, 1
  store i32 %275, ptr %62, align 4, !tbaa !39
  br label %250, !llvm.loop !44

276:                                              ; preds = %270, %253
  call void @llvm.lifetime.end.p0(i64 4, ptr %62) #8
  %277 = load i32, ptr %18, align 4
  switch i32 %277, label %283 [
    i32 5, label %278
  ]

278:                                              ; preds = %276
  br label %279

279:                                              ; preds = %278, %245
  %280 = load ptr, ptr %10, align 8, !tbaa !5
  %281 = getelementptr inbounds %"struct.fastgltf::TextureInfo", ptr %280, i32 0, i32 2
  %282 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN8fastgltf16TextureTransformESt14default_deleteIS1_EEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(8) %281, ptr noundef nonnull align 8 dereferenceable(8) %44) #8
  store i32 0, ptr %18, align 4
  br label %283

283:                                              ; preds = %279, %276, %242
  call void @llvm.lifetime.end.p0(i64 16, ptr %52) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #8
  call void @_ZNSt10unique_ptrIN8fastgltf16TextureTransformESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %44) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #8
  %284 = load i32, ptr %18, align 4
  switch i32 %284, label %287 [
    i32 0, label %285
  ]

285:                                              ; preds = %283
  br label %286

286:                                              ; preds = %285, %186
  store i32 0, ptr %18, align 4
  br label %287

287:                                              ; preds = %286, %283
  call void @llvm.lifetime.end.p0(i64 16, ptr %40) #8
  %288 = load i32, ptr %18, align 4
  switch i32 %288, label %291 [
    i32 0, label %289
  ]

289:                                              ; preds = %287
  br label %290

290:                                              ; preds = %289, %171
  store i64 0, ptr %7, align 8
  store i32 1, ptr %18, align 4
  br label %291

291:                                              ; preds = %290, %287
  call void @llvm.lifetime.end.p0(i64 16, ptr %37) #8
  br label %292

292:                                              ; preds = %291, %167, %140, %114, %96
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  br label %293

293:                                              ; preds = %292, %85
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #8
  %294 = load i64, ptr %7, align 8
  ret i64 %294

295:                                              ; preds = %189, %175
  %296 = landingpad { ptr, i32 }
          catch ptr null
  %297 = extractvalue { ptr, i32 } %296, 0
  call void @__clang_call_terminate(ptr %297) #9
  unreachable
}

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN8simdjson3dom6objectC2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNK8simdjson3dom6objectixESt17basic_string_viewIcSt11char_traitsIcEE(ptr dead_on_unwind noalias writable sret(%"struct.simdjson::simdjson_result.0") align 8, ptr noundef nonnull align 8 dereferenceable(16), i64, ptr) #5 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZNK8simdjson15simdjson_resultINS_3dom7elementEE10get_objectEv(ptr dead_on_unwind noalias writable sret(%"struct.simdjson::simdjson_result") align 8, ptr noundef nonnull align 8 dereferenceable(20)) #4 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNO8simdjson8internal20simdjson_result_baseINS_3dom6objectEE3getERS3_(ptr noundef nonnull align 8 dereferenceable(20), ptr noundef nonnull align 8 dereferenceable(16)) #4 align 2

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(none)
declare i1 @llvm.expect.i1(i1, i1) #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNK8simdjson3dom6objectixEPKc(ptr dead_on_unwind noalias writable sret(%"struct.simdjson::simdjson_result.0") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) #5 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local { i64, i32 } @_ZNK8simdjson15simdjson_resultINS_3dom7elementEE10get_uint64Ev(ptr noundef nonnull align 8 dereferenceable(20)) #4 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNO8simdjson15simdjson_resultImE3getERm(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(8)) #4 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local { double, i32 } @_ZNK8simdjson15simdjson_resultINS_3dom7elementEE10get_doubleEv(ptr noundef nonnull align 8 dereferenceable(20)) #4 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNO8simdjson15simdjson_resultIdE3getERd(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(8)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN8fastgltf6hasBitINS_10ExtensionsES1_EEbT_T0_(i64 noundef, i64 noundef) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_uniqueIN8fastgltf16TextureTransformEJEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr") align 8) #7

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

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN8simdjson3dom5arrayC2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #4 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZNK8simdjson15simdjson_resultINS_3dom7elementEE9get_arrayEv(ptr dead_on_unwind noalias writable sret(%"struct.simdjson::simdjson_result.23") align 8, ptr noundef nonnull align 8 dereferenceable(20)) #4 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNO8simdjson8internal20simdjson_result_baseINS_3dom5arrayEE3getERS3_(ptr noundef nonnull align 8 dereferenceable(20), ptr noundef nonnull align 8 dereferenceable(16)) #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNK8simdjson3dom5array2atEm(ptr dead_on_unwind noalias writable sret(%"struct.simdjson::simdjson_result.0") align 8, ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN8fastgltf4math3vecIfLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8), i64 noundef) #3 align 2

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { noinline noreturn nounwind uwtable "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 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress 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 #6 = { nocallback nofree nosync nounwind willreturn memory(none) }
attributes #7 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nounwind }
attributes #9 = { noreturn 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 = !{!"_ZTSN8fastgltf10ExtensionsE", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_ZTSN8fastgltf15TextureInfoTypeE", !7, i64 0}
!13 = !{i64 0, i64 8, !14, i64 8, i64 8, !5}
!14 = !{!15, !15, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"_ZTSN8simdjson10error_codeE", !7, i64 0}
!18 = !{!19, !15, i64 0}
!19 = !{!"_ZTSN8fastgltf11TextureInfoE", !15, i64 0, !15, i64 8, !20, i64 16}
!20 = !{!"_ZTSSt10unique_ptrIN8fastgltf16TextureTransformESt14default_deleteIS1_EE", !21, i64 0}
!21 = !{!"_ZTSSt15__uniq_ptr_dataIN8fastgltf16TextureTransformESt14default_deleteIS1_ELb1ELb1EE", !22, i64 0}
!22 = !{!"_ZTSSt15__uniq_ptr_implIN8fastgltf16TextureTransformESt14default_deleteIS1_EE", !23, i64 0}
!23 = !{!"_ZTSSt5tupleIJPN8fastgltf16TextureTransformESt14default_deleteIS1_EEE", !24, i64 0}
!24 = !{!"_ZTSSt11_Tuple_implILm0EJPN8fastgltf16TextureTransformESt14default_deleteIS1_EEE", !25, i64 0}
!25 = !{!"_ZTSSt10_Head_baseILm0EPN8fastgltf16TextureTransformELb0EE", !6, i64 0}
!26 = !{!19, !15, i64 8}
!27 = !{!28, !28, i64 0}
!28 = !{!"double", !7, i64 0}
!29 = !{!30, !31, i64 24}
!30 = !{!"_ZTSN8fastgltf17NormalTextureInfoE", !19, i64 0, !31, i64 24}
!31 = !{!"float", !7, i64 0}
!32 = !{!33, !31, i64 24}
!33 = !{!"_ZTSN8fastgltf20OcclusionTextureInfoE", !19, i64 0, !31, i64 24}
!34 = !{!35, !31, i64 0}
!35 = !{!"_ZTSN8fastgltf16TextureTransformE", !31, i64 0, !36, i64 4, !36, i64 12, !38, i64 24}
!36 = !{!"_ZTSN8fastgltf4math3vecIfLm2EEE", !37, i64 0}
!37 = !{!"_ZTSSt5arrayIfLm2EE", !7, i64 0}
!38 = !{!"_ZTSN8fastgltf21OptionalWithFlagValueImEE", !7, i64 0}
!39 = !{!40, !40, i64 0}
!40 = !{!"int", !7, i64 0}
!41 = !{!31, !31, i64 0}
!42 = distinct !{!42, !43}
!43 = !{!"llvm.loop.mustprogress"}
!44 = distinct !{!44, !43}


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

%"class.std::basic_string_view" = type { i64, ptr }
%"class.simdjson::dom::object" = type { %"class.simdjson::internal::tape_ref" }
%"class.simdjson::internal::tape_ref" = type { ptr, i64 }
%"struct.simdjson::simdjson_result" = type { %"struct.simdjson::internal::simdjson_result_base.base", [4 x i8] }
%"struct.simdjson::internal::simdjson_result_base.base" = type { %"struct.std::pair.base" }
%"struct.std::pair.base" = type <{ %"class.simdjson::dom::object", i32 }>
%"struct.simdjson::simdjson_result.0" = type { %"struct.simdjson::internal::simdjson_result_base.base.5", [4 x i8] }
%"struct.simdjson::internal::simdjson_result_base.base.5" = type { %"struct.std::pair.base.4" }
%"struct.std::pair.base.4" = type <{ %"class.simdjson::dom::element", i32 }>
%"class.simdjson::dom::element" = type { %"class.simdjson::internal::tape_ref" }
%"struct.simdjson::simdjson_result.7" = type { %"struct.simdjson::internal::simdjson_result_base.base.12", [4 x i8] }
%"struct.simdjson::internal::simdjson_result_base.base.12" = type { %"struct.std::pair.base.11" }
%"struct.std::pair.base.11" = type <{ i64, i32 }>
%"struct.simdjson::simdjson_result.16" = type { %"struct.simdjson::internal::simdjson_result_base.base.21", [4 x i8] }
%"struct.simdjson::internal::simdjson_result_base.base.21" = type { %"struct.std::pair.base.20" }
%"struct.std::pair.base.20" = type <{ double, i32 }>
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.15" }
%"struct.std::_Head_base.15" = type { ptr }
%"class.simdjson::dom::array" = type { %"class.simdjson::internal::tape_ref" }
%"struct.simdjson::simdjson_result.23" = type { %"struct.simdjson::internal::simdjson_result_base.base.28", [4 x i8] }
%"struct.simdjson::internal::simdjson_result_base.base.28" = type { %"struct.std::pair.base.27" }
%"struct.std::pair.base.27" = type <{ %"class.simdjson::dom::array", i32 }>

@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [11 x i8], align 1
@_ZN8fastgltf10extensionsL21KHR_texture_transformE = external hidden local_unnamed_addr constant %"class.std::basic_string_view", align 8
@.str.6 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [7 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef i64 @_ZN8fastgltf16parseTextureInfoERN8simdjson3dom6objectESt17basic_string_viewIcSt11char_traitsIcEEPNS_11TextureInfoENS_10ExtensionsENS_15TextureInfoTypeE(ptr noundef nonnull align 8 dereferenceable(16) %0, i64 %1, ptr %2, ptr noundef %3, i64 noundef %4, i8 noundef zeroext %5) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %7 = alloca %"class.simdjson::dom::object", align 8
  %8 = alloca %"struct.simdjson::simdjson_result", align 8
  %9 = alloca %"struct.simdjson::simdjson_result.0", align 8
  %10 = alloca i64, align 8
  %11 = alloca %"struct.simdjson::simdjson_result.7", align 8
  %12 = alloca %"struct.simdjson::simdjson_result.0", align 8
  %13 = alloca %"struct.simdjson::simdjson_result.7", align 8
  %14 = alloca %"struct.simdjson::simdjson_result.0", align 8
  %15 = alloca double, align 8
  %16 = alloca %"struct.simdjson::simdjson_result.16", align 8
  %17 = alloca %"struct.simdjson::simdjson_result.0", align 8
  %18 = alloca double, align 8
  %19 = alloca %"struct.simdjson::simdjson_result.16", align 8
  %20 = alloca %"struct.simdjson::simdjson_result.0", align 8
  %21 = alloca %"class.simdjson::dom::object", align 8
  %22 = alloca %"struct.simdjson::simdjson_result", align 8
  %23 = alloca %"struct.simdjson::simdjson_result.0", align 8
  %24 = alloca %"class.simdjson::dom::object", align 8
  %25 = alloca %"struct.simdjson::simdjson_result", align 8
  %26 = alloca %"struct.simdjson::simdjson_result.0", align 8
  %27 = alloca %"class.std::unique_ptr", align 8
  %28 = alloca %"struct.simdjson::simdjson_result.7", align 8
  %29 = alloca %"struct.simdjson::simdjson_result.0", align 8
  %30 = alloca double, align 8
  %31 = alloca %"struct.simdjson::simdjson_result.16", align 8
  %32 = alloca %"struct.simdjson::simdjson_result.0", align 8
  %33 = alloca %"class.simdjson::dom::array", align 8
  %34 = alloca %"struct.simdjson::simdjson_result.23", align 8
  %35 = alloca %"struct.simdjson::simdjson_result.0", align 8
  %36 = alloca double, align 8
  %37 = alloca %"struct.simdjson::simdjson_result.16", align 8
  %38 = alloca %"struct.simdjson::simdjson_result.0", align 8
  %39 = alloca %"struct.simdjson::simdjson_result.23", align 8
  %40 = alloca %"struct.simdjson::simdjson_result.0", align 8
  %41 = alloca double, align 8
  %42 = alloca %"struct.simdjson::simdjson_result.16", align 8
  %43 = alloca %"struct.simdjson::simdjson_result.0", align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #6
  call void @_ZN8simdjson3dom6objectC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #6
  call void @_ZNK8simdjson3dom6objectixESt17basic_string_viewIcSt11char_traitsIcEE(ptr dead_on_unwind nonnull writable sret(%"struct.simdjson::simdjson_result.0") align 8 %9, ptr noundef nonnull align 8 dereferenceable(16) %0, i64 %1, ptr %2) #6
  call void @_ZNK8simdjson15simdjson_resultINS_3dom7elementEE10get_objectEv(ptr dead_on_unwind nonnull writable sret(%"struct.simdjson::simdjson_result") align 8 %8, ptr noundef nonnull align 8 dereferenceable(20) %9) #6
  %44 = call noundef i32 @_ZNO8simdjson8internal20simdjson_result_baseINS_3dom6objectEE3getERS3_(ptr noundef nonnull align 8 dereferenceable(20) %8, ptr noundef nonnull align 8 dereferenceable(16) %7) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #6
  switch i32 %44, label %45 [
    i32 20, label %.thread
    i32 0, label %46
  ], !prof !5

45:                                               ; preds = %6
  br label %.thread

46:                                               ; preds = %6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #6
  call void @_ZNK8simdjson3dom6objectixEPKc(ptr dead_on_unwind nonnull writable sret(%"struct.simdjson::simdjson_result.0") align 8 %12, ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull @.str.1) #6
  %47 = call { i64, i32 } @_ZNK8simdjson15simdjson_resultINS_3dom7elementEE10get_uint64Ev(ptr noundef nonnull align 8 dereferenceable(20) %12) #6
  %.fca.0.extract52 = extractvalue { i64, i32 } %47, 0
  %.fca.1.extract53 = extractvalue { i64, i32 } %47, 1
  store i64 %.fca.0.extract52, ptr %11, align 8
  %.sroa.255.0..sroa_idx = getelementptr inbounds i8, ptr %11, i64 8
  store i32 %.fca.1.extract53, ptr %.sroa.255.0..sroa_idx, align 8
  %48 = call noundef i32 @_ZNO8simdjson15simdjson_resultImE3getERm(ptr noundef nonnull align 8 dereferenceable(12) %11, ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  %49 = icmp eq i32 %48, 0
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #6
  br i1 %49, label %50, label %140, !prof !6

50:                                               ; preds = %46
  %51 = load i64, ptr %10, align 8, !tbaa !7
  store i64 %51, ptr %3, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #6
  call void @_ZNK8simdjson3dom6objectixEPKc(ptr dead_on_unwind nonnull writable sret(%"struct.simdjson::simdjson_result.0") align 8 %14, ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull @.str.2) #6
  %52 = call { i64, i32 } @_ZNK8simdjson15simdjson_resultINS_3dom7elementEE10get_uint64Ev(ptr noundef nonnull align 8 dereferenceable(20) %14) #6
  %.fca.0.extract46 = extractvalue { i64, i32 } %52, 0
  %.fca.1.extract47 = extractvalue { i64, i32 } %52, 1
  store i64 %.fca.0.extract46, ptr %13, align 8
  %.sroa.249.0..sroa_idx = getelementptr inbounds i8, ptr %13, i64 8
  store i32 %.fca.1.extract47, ptr %.sroa.249.0..sroa_idx, align 8
  %53 = call noundef i32 @_ZNO8simdjson15simdjson_resultImE3getERm(ptr noundef nonnull align 8 dereferenceable(12) %13, ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #6
  switch i32 %53, label %140 [
    i32 0, label %54
    i32 20, label %57
  ], !prof !20

54:                                               ; preds = %50
  %55 = load i64, ptr %10, align 8, !tbaa !7
  %56 = getelementptr inbounds i8, ptr %3, i64 8
  store i64 %55, ptr %56, align 8, !tbaa !21
  br label %57

57:                                               ; preds = %54, %50
  switch i8 %5, label %74 [
    i8 1, label %58
    i8 2, label %66
  ]

58:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %17) #6
  call void @_ZNK8simdjson3dom6objectixEPKc(ptr dead_on_unwind nonnull writable sret(%"struct.simdjson::simdjson_result.0") align 8 %17, ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull @.str.3) #6
  %59 = call { double, i32 } @_ZNK8simdjson15simdjson_resultINS_3dom7elementEE10get_doubleEv(ptr noundef nonnull align 8 dereferenceable(20) %17) #6
  %.fca.0.extract40 = extractvalue { double, i32 } %59, 0
  %.fca.1.extract41 = extractvalue { double, i32 } %59, 1
  store double %.fca.0.extract40, ptr %16, align 8
  %.sroa.243.0..sroa_idx = getelementptr inbounds i8, ptr %16, i64 8
  store i32 %.fca.1.extract41, ptr %.sroa.243.0..sroa_idx, align 8
  %60 = call noundef i32 @_ZNO8simdjson15simdjson_resultIdE3getERd(ptr noundef nonnull align 8 dereferenceable(12) %16, ptr noundef nonnull align 8 dereferenceable(8) %15) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #6
  switch i32 %60, label %65 [
    i32 0, label %61
    i32 20, label %.thread111
  ], !prof !20

61:                                               ; preds = %58
  %62 = load double, ptr %15, align 8, !tbaa !22
  %63 = fptrunc double %62 to float
  %64 = getelementptr inbounds i8, ptr %3, i64 24
  store float %63, ptr %64, align 8, !tbaa !24
  br label %.thread111

.thread111:                                       ; preds = %61, %58
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #6
  br label %74

65:                                               ; preds = %58
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #6
  br label %140

66:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %20) #6
  call void @_ZNK8simdjson3dom6objectixEPKc(ptr dead_on_unwind nonnull writable sret(%"struct.simdjson::simdjson_result.0") align 8 %20, ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull @.str.4) #6
  %67 = call { double, i32 } @_ZNK8simdjson15simdjson_resultINS_3dom7elementEE10get_doubleEv(ptr noundef nonnull align 8 dereferenceable(20) %20) #6
  %.fca.0.extract34 = extractvalue { double, i32 } %67, 0
  %.fca.1.extract35 = extractvalue { double, i32 } %67, 1
  store double %.fca.0.extract34, ptr %19, align 8
  %.sroa.237.0..sroa_idx = getelementptr inbounds i8, ptr %19, i64 8
  store i32 %.fca.1.extract35, ptr %.sroa.237.0..sroa_idx, align 8
  %68 = call noundef i32 @_ZNO8simdjson15simdjson_resultIdE3getERd(ptr noundef nonnull align 8 dereferenceable(12) %19, ptr noundef nonnull align 8 dereferenceable(8) %18) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %20) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #6
  switch i32 %68, label %73 [
    i32 0, label %69
    i32 20, label %.thread114
  ], !prof !20

69:                                               ; preds = %66
  %70 = load double, ptr %18, align 8, !tbaa !22
  %71 = fptrunc double %70 to float
  %72 = getelementptr inbounds i8, ptr %3, i64 24
  store float %71, ptr %72, align 8, !tbaa !27
  br label %.thread114

.thread114:                                       ; preds = %69, %66
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #6
  br label %74

73:                                               ; preds = %66
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #6
  br label %140

74:                                               ; preds = %.thread114, %.thread111, %57
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %21) #6
  call void @_ZN8simdjson3dom6objectC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %22) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %23) #6
  call void @_ZNK8simdjson3dom6objectixEPKc(ptr dead_on_unwind nonnull writable sret(%"struct.simdjson::simdjson_result.0") align 8 %23, ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull @.str.5) #6
  call void @_ZNK8simdjson15simdjson_resultINS_3dom7elementEE10get_objectEv(ptr dead_on_unwind nonnull writable sret(%"struct.simdjson::simdjson_result") align 8 %22, ptr noundef nonnull align 8 dereferenceable(20) %23) #6
  %75 = call noundef i32 @_ZNO8simdjson8internal20simdjson_result_baseINS_3dom6objectEE3getERS3_(ptr noundef nonnull align 8 dereferenceable(20) %22, ptr noundef nonnull align 8 dereferenceable(16) %21) #6
  %76 = icmp eq i32 %75, 0
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %23) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %22) #6
  br i1 %76, label %77, label %139, !prof !6

77:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %24) #6
  call void @_ZN8simdjson3dom6objectC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %24) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %25) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %26) #6
  %78 = call noundef zeroext i1 @_ZN8fastgltf6hasBitINS_10ExtensionsES1_EEbT_T0_(i64 noundef %4, i64 noundef 2)
  br i1 %78, label %79, label %.critedge, !prof !6

79:                                               ; preds = %77
  %.sroa.032.0.copyload = load i64, ptr @_ZN8fastgltf10extensionsL21KHR_texture_transformE, align 8, !tbaa !7
  %.sroa.233.0.copyload = load ptr, ptr getelementptr inbounds (i8, ptr @_ZN8fastgltf10extensionsL21KHR_texture_transformE, i64 8), align 8, !tbaa !29
  call void @_ZNK8simdjson3dom6objectixESt17basic_string_viewIcSt11char_traitsIcEE(ptr dead_on_unwind nonnull writable sret(%"struct.simdjson::simdjson_result.0") align 8 %26, ptr noundef nonnull align 8 dereferenceable(16) %21, i64 %.sroa.032.0.copyload, ptr %.sroa.233.0.copyload) #6
  call void @_ZNK8simdjson15simdjson_resultINS_3dom7elementEE10get_objectEv(ptr dead_on_unwind nonnull writable sret(%"struct.simdjson::simdjson_result") align 8 %25, ptr noundef nonnull align 8 dereferenceable(20) %26) #6
  %80 = call noundef i32 @_ZNO8simdjson8internal20simdjson_result_baseINS_3dom6objectEE3getERS3_(ptr noundef nonnull align 8 dereferenceable(20) %25, ptr noundef nonnull align 8 dereferenceable(16) %24) #6
  %81 = icmp eq i32 %80, 0
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %26) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %25) #6
  br i1 %81, label %82, label %.thread128, !prof !6

82:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %27) #6
  invoke void @_ZSt11make_uniqueIN8fastgltf16TextureTransformEJEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind nonnull writable sret(%"class.std::unique_ptr") align 8 %27)
          to label %83 unwind label %141

83:                                               ; preds = %82
  %84 = call noundef ptr @_ZNKSt10unique_ptrIN8fastgltf16TextureTransformESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %27) #6
  store float 0.000000e+00, ptr %84, align 8, !tbaa !30
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %28) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %29) #6
  call void @_ZNK8simdjson3dom6objectixEPKc(ptr dead_on_unwind nonnull writable sret(%"struct.simdjson::simdjson_result.0") align 8 %29, ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef nonnull @.str.2) #6
  %85 = call { i64, i32 } @_ZNK8simdjson15simdjson_resultINS_3dom7elementEE10get_uint64Ev(ptr noundef nonnull align 8 dereferenceable(20) %29) #6
  %.fca.0.extract28 = extractvalue { i64, i32 } %85, 0
  %.fca.1.extract29 = extractvalue { i64, i32 } %85, 1
  store i64 %.fca.0.extract28, ptr %28, align 8
  %.sroa.231.0..sroa_idx = getelementptr inbounds i8, ptr %28, i64 8
  store i32 %.fca.1.extract29, ptr %.sroa.231.0..sroa_idx, align 8
  %86 = call noundef i32 @_ZNO8simdjson15simdjson_resultImE3getERm(ptr noundef nonnull align 8 dereferenceable(12) %28, ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  %87 = icmp eq i32 %86, 0
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %29) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %28) #6
  br i1 %87, label %88, label %92, !prof !6

88:                                               ; preds = %83
  %89 = call noundef ptr @_ZNKSt10unique_ptrIN8fastgltf16TextureTransformESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %27) #6
  %90 = getelementptr inbounds i8, ptr %89, i64 24
  %91 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8fastgltf21OptionalWithFlagValueImEaSIRmTnNSt9enable_ifIXsr3stdE18is_constructible_vImOT_EEiE4typeELi0EEERS1_S6_(ptr noundef nonnull align 8 dereferenceable(8) %90, ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  br label %92

92:                                               ; preds = %88, %83
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %30) #6
  store double 0.000000e+00, ptr %30, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %31) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %32) #6
  call void @_ZNK8simdjson3dom6objectixEPKc(ptr dead_on_unwind nonnull writable sret(%"struct.simdjson::simdjson_result.0") align 8 %32, ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef nonnull @.str.6) #6
  %93 = call { double, i32 } @_ZNK8simdjson15simdjson_resultINS_3dom7elementEE10get_doubleEv(ptr noundef nonnull align 8 dereferenceable(20) %32) #6
  %.fca.0.extract24 = extractvalue { double, i32 } %93, 0
  %.fca.1.extract25 = extractvalue { double, i32 } %93, 1
  store double %.fca.0.extract24, ptr %31, align 8
  %.sroa.227.0..sroa_idx = getelementptr inbounds i8, ptr %31, i64 8
  store i32 %.fca.1.extract25, ptr %.sroa.227.0..sroa_idx, align 8
  %94 = call noundef i32 @_ZNO8simdjson15simdjson_resultIdE3getERd(ptr noundef nonnull align 8 dereferenceable(12) %31, ptr noundef nonnull align 8 dereferenceable(8) %30) #6
  %95 = icmp eq i32 %94, 0
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %32) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %31) #6
  br i1 %95, label %96, label %100, !prof !6

96:                                               ; preds = %92
  %97 = load double, ptr %30, align 8, !tbaa !22
  %98 = fptrunc double %97 to float
  %99 = call noundef ptr @_ZNKSt10unique_ptrIN8fastgltf16TextureTransformESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %27) #6
  store float %98, ptr %99, align 8, !tbaa !30
  br label %100

100:                                              ; preds = %96, %92
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %33) #6
  call void @_ZN8simdjson3dom5arrayC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %33) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %34) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %35) #6
  call void @_ZNK8simdjson3dom6objectixEPKc(ptr dead_on_unwind nonnull writable sret(%"struct.simdjson::simdjson_result.0") align 8 %35, ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef nonnull @.str.7) #6
  call void @_ZNK8simdjson15simdjson_resultINS_3dom7elementEE9get_arrayEv(ptr dead_on_unwind nonnull writable sret(%"struct.simdjson::simdjson_result.23") align 8 %34, ptr noundef nonnull align 8 dereferenceable(20) %35) #6
  %101 = call noundef i32 @_ZNO8simdjson8internal20simdjson_result_baseINS_3dom5arrayEE3getERS3_(ptr noundef nonnull align 8 dereferenceable(20) %34, ptr noundef nonnull align 8 dereferenceable(16) %33) #6
  %102 = icmp eq i32 %101, 0
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %35) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %34) #6
  br i1 %102, label %.preheader135, label %.thread120, !prof !6

.preheader135:                                    ; preds = %100
  %.sroa.219.0..sroa_idx = getelementptr inbounds i8, ptr %37, i64 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %36) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %37) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %38) #6
  call void @_ZNK8simdjson3dom5array2atEm(ptr dead_on_unwind nonnull writable sret(%"struct.simdjson::simdjson_result.0") align 8 %38, ptr noundef nonnull align 8 dereferenceable(16) %33, i64 noundef 0) #6
  %103 = call { double, i32 } @_ZNK8simdjson15simdjson_resultINS_3dom7elementEE10get_doubleEv(ptr noundef nonnull align 8 dereferenceable(20) %38) #6
  %.fca.0.extract16 = extractvalue { double, i32 } %103, 0
  %.fca.1.extract17 = extractvalue { double, i32 } %103, 1
  store double %.fca.0.extract16, ptr %37, align 8
  store i32 %.fca.1.extract17, ptr %.sroa.219.0..sroa_idx, align 8
  %104 = call noundef i32 @_ZNO8simdjson15simdjson_resultIdE3getERd(ptr noundef nonnull align 8 dereferenceable(12) %37, ptr noundef nonnull align 8 dereferenceable(8) %36) #6
  %.not103 = icmp eq i32 %104, 0
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %38) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %37) #6
  br i1 %.not103, label %105, label %118, !prof !6

105:                                              ; preds = %.preheader135
  %106 = load double, ptr %36, align 8, !tbaa !22
  %107 = fptrunc double %106 to float
  %108 = call noundef ptr @_ZNKSt10unique_ptrIN8fastgltf16TextureTransformESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %27) #6
  %109 = getelementptr inbounds i8, ptr %108, i64 4
  %110 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8fastgltf4math3vecIfLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %109, i64 noundef 0) #6
  store float %107, ptr %110, align 4, !tbaa !35
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %36) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %36) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %37) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %38) #6
  call void @_ZNK8simdjson3dom5array2atEm(ptr dead_on_unwind nonnull writable sret(%"struct.simdjson::simdjson_result.0") align 8 %38, ptr noundef nonnull align 8 dereferenceable(16) %33, i64 noundef 1) #6
  %111 = call { double, i32 } @_ZNK8simdjson15simdjson_resultINS_3dom7elementEE10get_doubleEv(ptr noundef nonnull align 8 dereferenceable(20) %38) #6
  %.fca.0.extract16.1 = extractvalue { double, i32 } %111, 0
  %.fca.1.extract17.1 = extractvalue { double, i32 } %111, 1
  store double %.fca.0.extract16.1, ptr %37, align 8
  store i32 %.fca.1.extract17.1, ptr %.sroa.219.0..sroa_idx, align 8
  %112 = call noundef i32 @_ZNO8simdjson15simdjson_resultIdE3getERd(ptr noundef nonnull align 8 dereferenceable(12) %37, ptr noundef nonnull align 8 dereferenceable(8) %36) #6
  %.not103.1 = icmp eq i32 %112, 0
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %38) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %37) #6
  br i1 %.not103.1, label %.thread120.loopexit, label %118, !prof !6

.thread120.loopexit:                              ; preds = %105
  %113 = load double, ptr %36, align 8, !tbaa !22
  %114 = fptrunc double %113 to float
  %115 = call noundef ptr @_ZNKSt10unique_ptrIN8fastgltf16TextureTransformESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %27) #6
  %116 = getelementptr inbounds i8, ptr %115, i64 4
  %117 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8fastgltf4math3vecIfLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %116, i64 noundef 1) #6
  store float %114, ptr %117, align 4, !tbaa !35
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %36) #6
  br label %.thread120

118:                                              ; preds = %105, %.preheader135
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %36) #6
  br label %.thread132

.thread120:                                       ; preds = %.thread120.loopexit, %100
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %39) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %40) #6
  call void @_ZNK8simdjson3dom6objectixEPKc(ptr dead_on_unwind nonnull writable sret(%"struct.simdjson::simdjson_result.0") align 8 %40, ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef nonnull @.str.3) #6
  call void @_ZNK8simdjson15simdjson_resultINS_3dom7elementEE9get_arrayEv(ptr dead_on_unwind nonnull writable sret(%"struct.simdjson::simdjson_result.23") align 8 %39, ptr noundef nonnull align 8 dereferenceable(20) %40) #6
  %119 = call noundef i32 @_ZNO8simdjson8internal20simdjson_result_baseINS_3dom5arrayEE3getERS3_(ptr noundef nonnull align 8 dereferenceable(20) %39, ptr noundef nonnull align 8 dereferenceable(16) %33) #6
  %120 = icmp eq i32 %119, 0
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %40) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %39) #6
  br i1 %120, label %.preheader, label %.thread125, !prof !6

.preheader:                                       ; preds = %.thread120
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %42, i64 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %41) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %42) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %43) #6
  call void @_ZNK8simdjson3dom5array2atEm(ptr dead_on_unwind nonnull writable sret(%"struct.simdjson::simdjson_result.0") align 8 %43, ptr noundef nonnull align 8 dereferenceable(16) %33, i64 noundef 0) #6
  %121 = call { double, i32 } @_ZNK8simdjson15simdjson_resultINS_3dom7elementEE10get_doubleEv(ptr noundef nonnull align 8 dereferenceable(20) %43) #6
  %.fca.0.extract = extractvalue { double, i32 } %121, 0
  %.fca.1.extract = extractvalue { double, i32 } %121, 1
  store double %.fca.0.extract, ptr %42, align 8
  store i32 %.fca.1.extract, ptr %.sroa.2.0..sroa_idx, align 8
  %122 = call noundef i32 @_ZNO8simdjson15simdjson_resultIdE3getERd(ptr noundef nonnull align 8 dereferenceable(12) %42, ptr noundef nonnull align 8 dereferenceable(8) %41) #6
  %.not104 = icmp eq i32 %122, 0
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %43) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %42) #6
  br i1 %.not104, label %123, label %136, !prof !6

123:                                              ; preds = %.preheader
  %124 = load double, ptr %41, align 8, !tbaa !22
  %125 = fptrunc double %124 to float
  %126 = call noundef ptr @_ZNKSt10unique_ptrIN8fastgltf16TextureTransformESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %27) #6
  %127 = getelementptr inbounds i8, ptr %126, i64 12
  %128 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8fastgltf4math3vecIfLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %127, i64 noundef 0) #6
  store float %125, ptr %128, align 4, !tbaa !35
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %41) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %41) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %42) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %43) #6
  call void @_ZNK8simdjson3dom5array2atEm(ptr dead_on_unwind nonnull writable sret(%"struct.simdjson::simdjson_result.0") align 8 %43, ptr noundef nonnull align 8 dereferenceable(16) %33, i64 noundef 1) #6
  %129 = call { double, i32 } @_ZNK8simdjson15simdjson_resultINS_3dom7elementEE10get_doubleEv(ptr noundef nonnull align 8 dereferenceable(20) %43) #6
  %.fca.0.extract.1 = extractvalue { double, i32 } %129, 0
  %.fca.1.extract.1 = extractvalue { double, i32 } %129, 1
  store double %.fca.0.extract.1, ptr %42, align 8
  store i32 %.fca.1.extract.1, ptr %.sroa.2.0..sroa_idx, align 8
  %130 = call noundef i32 @_ZNO8simdjson15simdjson_resultIdE3getERd(ptr noundef nonnull align 8 dereferenceable(12) %42, ptr noundef nonnull align 8 dereferenceable(8) %41) #6
  %.not104.1 = icmp eq i32 %130, 0
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %43) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %42) #6
  br i1 %.not104.1, label %.thread125.loopexit, label %136, !prof !6

.thread125.loopexit:                              ; preds = %123
  %131 = load double, ptr %41, align 8, !tbaa !22
  %132 = fptrunc double %131 to float
  %133 = call noundef ptr @_ZNKSt10unique_ptrIN8fastgltf16TextureTransformESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %27) #6
  %134 = getelementptr inbounds i8, ptr %133, i64 12
  %135 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8fastgltf4math3vecIfLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %134, i64 noundef 1) #6
  store float %132, ptr %135, align 4, !tbaa !35
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %41) #6
  br label %.thread125

136:                                              ; preds = %123, %.preheader
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %41) #6
  br label %.thread132

.critedge:                                        ; preds = %77
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %26) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %25) #6
  br label %.thread128

.thread128:                                       ; preds = %.critedge, %79
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %24) #6
  br label %139

.thread132:                                       ; preds = %136, %118
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %33) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %30) #6
  call void @_ZNSt10unique_ptrIN8fastgltf16TextureTransformESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %27) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %27) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %24) #6
  br label %139

.thread125:                                       ; preds = %.thread125.loopexit, %.thread120
  %137 = getelementptr inbounds i8, ptr %3, i64 16
  %138 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN8fastgltf16TextureTransformESt14default_deleteIS1_EEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(8) %137, ptr noundef nonnull align 8 dereferenceable(8) %27) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %33) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %30) #6
  call void @_ZNSt10unique_ptrIN8fastgltf16TextureTransformESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %27) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %27) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %24) #6
  br label %139

139:                                              ; preds = %74, %.thread128, %.thread125, %.thread132
  %.16 = phi i64 [ 5, %.thread132 ], [ 0, %.thread125 ], [ 0, %.thread128 ], [ 0, %74 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #6
  br label %140

140:                                              ; preds = %73, %65, %50, %46, %139
  %.17 = phi i64 [ %.16, %139 ], [ 5, %65 ], [ 5, %73 ], [ 5, %46 ], [ 4, %50 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  br label %.thread

.thread:                                          ; preds = %6, %45, %140
  %.18 = phi i64 [ %.17, %140 ], [ 8, %6 ], [ 5, %45 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #6
  ret i64 %.18

141:                                              ; preds = %82
  %142 = landingpad { ptr, i32 }
          catch ptr null
  %143 = extractvalue { ptr, i32 } %142, 0
  call void @__clang_call_terminate(ptr %143) #7
  unreachable
}

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN8simdjson3dom6objectC2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNK8simdjson3dom6objectixESt17basic_string_viewIcSt11char_traitsIcEE(ptr dead_on_unwind noalias writable sret(%"struct.simdjson::simdjson_result.0") align 8, ptr noundef nonnull align 8 dereferenceable(16), i64, ptr) local_unnamed_addr #4 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZNK8simdjson15simdjson_resultINS_3dom7elementEE10get_objectEv(ptr dead_on_unwind noalias writable sret(%"struct.simdjson::simdjson_result") align 8, ptr noundef nonnull align 8 dereferenceable(20)) local_unnamed_addr #3 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNO8simdjson8internal20simdjson_result_baseINS_3dom6objectEE3getERS3_(ptr noundef nonnull align 8 dereferenceable(20), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNK8simdjson3dom6objectixEPKc(ptr dead_on_unwind noalias writable sret(%"struct.simdjson::simdjson_result.0") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) local_unnamed_addr #4 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local { i64, i32 } @_ZNK8simdjson15simdjson_resultINS_3dom7elementEE10get_uint64Ev(ptr noundef nonnull align 8 dereferenceable(20)) local_unnamed_addr #3 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNO8simdjson15simdjson_resultImE3getERm(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local { double, i32 } @_ZNK8simdjson15simdjson_resultINS_3dom7elementEE10get_doubleEv(ptr noundef nonnull align 8 dereferenceable(20)) local_unnamed_addr #3 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNO8simdjson15simdjson_resultIdE3getERd(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN8fastgltf6hasBitINS_10ExtensionsES1_EEbT_T0_(i64 noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_uniqueIN8fastgltf16TextureTransformEJEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr") align 8) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt10unique_ptrIN8fastgltf16TextureTransformESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN8simdjson3dom5arrayC2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZNK8simdjson15simdjson_resultINS_3dom7elementEE9get_arrayEv(ptr dead_on_unwind noalias writable sret(%"struct.simdjson::simdjson_result.23") align 8, ptr noundef nonnull align 8 dereferenceable(20)) local_unnamed_addr #3 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNO8simdjson8internal20simdjson_result_baseINS_3dom5arrayEE3getERS3_(ptr noundef nonnull align 8 dereferenceable(20), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNK8simdjson3dom5array2atEm(ptr dead_on_unwind noalias writable sret(%"struct.simdjson::simdjson_result.0") align 8, ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN8fastgltf4math3vecIfLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8), i64 noundef) local_unnamed_addr #2 align 2

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noinline noreturn nounwind uwtable "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 = { alwaysinline 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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
attributes #7 = { noreturn 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 = !{!"branch_weights", i32 1, i32 2001, i32 2000}
!6 = !{!"branch_weights", !"expected", i32 2000, i32 1}
!7 = !{!8, !8, i64 0}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!12, !8, i64 0}
!12 = !{!"_ZTSN8fastgltf11TextureInfoE", !8, i64 0, !8, i64 8, !13, i64 16}
!13 = !{!"_ZTSSt10unique_ptrIN8fastgltf16TextureTransformESt14default_deleteIS1_EE", !14, i64 0}
!14 = !{!"_ZTSSt15__uniq_ptr_dataIN8fastgltf16TextureTransformESt14default_deleteIS1_ELb1ELb1EE", !15, i64 0}
!15 = !{!"_ZTSSt15__uniq_ptr_implIN8fastgltf16TextureTransformESt14default_deleteIS1_EE", !16, i64 0}
!16 = !{!"_ZTSSt5tupleIJPN8fastgltf16TextureTransformESt14default_deleteIS1_EEE", !17, i64 0}
!17 = !{!"_ZTSSt11_Tuple_implILm0EJPN8fastgltf16TextureTransformESt14default_deleteIS1_EEE", !18, i64 0}
!18 = !{!"_ZTSSt10_Head_baseILm0EPN8fastgltf16TextureTransformELb0EE", !19, i64 0}
!19 = !{!"any pointer", !9, i64 0}
!20 = !{!"branch_weights", i32 1, i32 4002000, i32 2000}
!21 = !{!12, !8, i64 8}
!22 = !{!23, !23, i64 0}
!23 = !{!"double", !9, i64 0}
!24 = !{!25, !26, i64 24}
!25 = !{!"_ZTSN8fastgltf17NormalTextureInfoE", !12, i64 0, !26, i64 24}
!26 = !{!"float", !9, i64 0}
!27 = !{!28, !26, i64 24}
!28 = !{!"_ZTSN8fastgltf20OcclusionTextureInfoE", !12, i64 0, !26, i64 24}
!29 = !{!19, !19, i64 0}
!30 = !{!31, !26, i64 0}
!31 = !{!"_ZTSN8fastgltf16TextureTransformE", !26, i64 0, !32, i64 4, !32, i64 12, !34, i64 24}
!32 = !{!"_ZTSN8fastgltf4math3vecIfLm2EEE", !33, i64 0}
!33 = !{!"_ZTSSt5arrayIfLm2EE", !9, i64 0}
!34 = !{!"_ZTSN8fastgltf21OptionalWithFlagValueImEE", !9, i64 0}
!35 = !{!26, !26, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LowerExpectIntrinsicPass,SROAPass,SimplifyCFGPass