; LLVM IR from goldest-star/seawave-animation :: src/vcl/shape/hierarchy_mesh/hierarchy_mesh_drawable/hierarchy_mesh_drawable_disp_2374c0ae (c6e918bc)

; 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::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator" = type { i8 }
%"struct.vcl::mat" = type { float, float, float, float, float, float, float, float, float }
%"struct.vcl::buffer_stack" = type { float, float, float }
%"class.vcl::hierarchy_mesh_drawable_display_skeleton" = type { float, i8, i32, i32, %"struct.vcl::segment_drawable_immediate_mode", %"struct.vcl::mesh_drawable" }
%"struct.vcl::segment_drawable_immediate_mode" = type <{ %struct.anon, %"struct.vcl::segments_gpu", i8, [3 x i8] }>
%struct.anon = type { %"struct.vcl::buffer_stack", %"struct.vcl::buffer_stack", %"struct.vcl::buffer_stack" }
%"struct.vcl::segments_gpu" = type { i32, i32, i32 }
%"struct.vcl::mesh_drawable" = type { %"struct.vcl::mesh_drawable_gpu_data", %"struct.vcl::mesh_drawable_uniform", i32, i32 }
%"struct.vcl::mesh_drawable_gpu_data" = type { i32, i32, i32, i32, i32, i32, i32 }
%"struct.vcl::mesh_drawable_uniform" = type { %"struct.vcl::affine_transform", %"struct.vcl::buffer_stack", %"struct.vcl::shading_mesh", float }
%"struct.vcl::affine_transform" = type { %"struct.vcl::buffer_stack", %"struct.vcl::mat", float, %"struct.vcl::buffer_stack" }
%"struct.vcl::shading_mesh" = type { float, float, float, i32 }
%"struct.vcl::hierarchy_mesh_drawable" = type { %"class.std::map", %"class.std::vector.24" }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, int>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, int>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, int>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, int>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::vector.24" = type { %"struct.std::_Vector_base.25" }
%"struct.std::_Vector_base.25" = type { %"struct.std::_Vector_base<vcl::hierarchy_mesh_drawable_node, std::allocator<vcl::hierarchy_mesh_drawable_node>>::_Vector_impl" }
%"struct.std::_Vector_base<vcl::hierarchy_mesh_drawable_node, std::allocator<vcl::hierarchy_mesh_drawable_node>>::_Vector_impl" = type { %"struct.std::_Vector_base<vcl::hierarchy_mesh_drawable_node, std::allocator<vcl::hierarchy_mesh_drawable_node>>::_Vector_impl_data" }
%"struct.std::_Vector_base<vcl::hierarchy_mesh_drawable_node, std::allocator<vcl::hierarchy_mesh_drawable_node>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.vcl::hierarchy_mesh_drawable_node" = type { %"struct.vcl::mesh_drawable", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"struct.vcl::affine_transform", %"struct.vcl::affine_transform" }

@.str.2 = external hidden unnamed_addr constant [203 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [54 x i8], align 1
@__PRETTY_FUNCTION__._ZN3vcl40hierarchy_mesh_drawable_display_skeleton4drawERKNS_23hierarchy_mesh_drawableERKNS_12camera_sceneE = external hidden unnamed_addr constant [112 x i8], align 1

; Function Attrs: noreturn
declare void @_ZN3vcl10call_errorENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_S5_S5_iRKS5_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(32)) #0

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

declare i32 @__gxx_personality_v0(...)

declare void @_ZN3vcl9backtraceB5cxx11Ei(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, i32 noundef) #4

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3vcl40hierarchy_mesh_drawable_display_skeleton4drawERKNS_23hierarchy_mesh_drawableERKNS_12camera_sceneE(ptr noundef nonnull align 4 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(72) %1, ptr noundef nonnull align 4 dereferenceable(80) %2) #6 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = alloca %"class.std::allocator", align 1
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.std::__cxx11::basic_string", align 8
  %12 = alloca %"class.std::allocator", align 1
  %13 = alloca %"class.std::__cxx11::basic_string", align 8
  %14 = alloca %"class.std::allocator", align 1
  %15 = alloca %"class.std::__cxx11::basic_string", align 8
  %16 = alloca %"class.std::allocator", align 1
  %17 = alloca %"class.std::__cxx11::basic_string", align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca %"struct.vcl::mat", align 4
  %23 = alloca %"struct.vcl::buffer_stack", align 4
  %24 = alloca { <2 x float>, float }, align 8
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca %"struct.vcl::buffer_stack", align 4
  %28 = alloca { <2 x float>, float }, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %29 = load ptr, ptr %4, align 8
  %30 = getelementptr inbounds %"class.vcl::hierarchy_mesh_drawable_display_skeleton", ptr %29, i32 0, i32 1
  %31 = load i8, ptr %30, align 4, !tbaa !9, !range !24, !noundef !25
  %32 = trunc i8 %31 to i1
  %33 = zext i1 %32 to i32
  %34 = icmp eq i32 %33, 1
  %35 = zext i1 %34 to i32
  %36 = icmp eq i32 %35, 0
  br i1 %36, label %37, label %73

37:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef @.str.3, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %38 unwind label %44

38:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef @.str.4, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %39 unwind label %48

39:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef @.str.2, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %40 unwind label %52

40:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef @__PRETTY_FUNCTION__._ZN3vcl40hierarchy_mesh_drawable_display_skeleton4drawERKNS_23hierarchy_mesh_drawableERKNS_12camera_sceneE, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %41 unwind label %56

41:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #7
  invoke void @_ZN3vcl9backtraceB5cxx11Ei(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %17, i32 noundef 1)
          to label %42 unwind label %60

42:                                               ; preds = %41
  invoke void @_ZN3vcl10call_errorENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_S5_S5_iRKS5_(ptr noundef %7, ptr noundef %11, ptr noundef %13, ptr noundef %15, i32 noundef 36, ptr noundef nonnull align 8 dereferenceable(32) %17) #8
          to label %43 unwind label %64

43:                                               ; preds = %42
  unreachable

44:                                               ; preds = %37
  %45 = landingpad { ptr, i32 }
          cleanup
  %46 = extractvalue { ptr, i32 } %45, 0
  store ptr %46, ptr %9, align 8
  %47 = extractvalue { ptr, i32 } %45, 1
  store i32 %47, ptr %10, align 4
  br label %72

48:                                               ; preds = %38
  %49 = landingpad { ptr, i32 }
          cleanup
  %50 = extractvalue { ptr, i32 } %49, 0
  store ptr %50, ptr %9, align 8
  %51 = extractvalue { ptr, i32 } %49, 1
  store i32 %51, ptr %10, align 4
  br label %71

52:                                               ; preds = %39
  %53 = landingpad { ptr, i32 }
          cleanup
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %9, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %10, align 4
  br label %70

56:                                               ; preds = %40
  %57 = landingpad { ptr, i32 }
          cleanup
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %9, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %10, align 4
  br label %69

60:                                               ; preds = %41
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %9, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %10, align 4
  br label %68

64:                                               ; preds = %42
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %9, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %10, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #7
  br label %68

68:                                               ; preds = %64, %60
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #7
  br label %69

69:                                               ; preds = %68, %56
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #7
  br label %70

70:                                               ; preds = %69, %52
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #7
  br label %71

71:                                               ; preds = %70, %48
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #7
  br label %72

72:                                               ; preds = %71, %44
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #7
  br label %154

73:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %74 = load ptr, ptr %5, align 8, !tbaa !5
  %75 = getelementptr inbounds %"struct.vcl::hierarchy_mesh_drawable", ptr %74, i32 0, i32 1
  %76 = call noundef i64 @_ZNKSt6vectorIN3vcl28hierarchy_mesh_drawable_nodeESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %75) #7
  store i64 %76, ptr %18, align 8, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  store i64 0, ptr %19, align 8, !tbaa !26
  br label %77

77:                                               ; preds = %150, %73
  %78 = load i64, ptr %19, align 8, !tbaa !26
  %79 = load i64, ptr %18, align 8, !tbaa !26
  %80 = icmp ult i64 %78, %79
  br i1 %80, label %82, label %81

81:                                               ; preds = %77
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  br label %153

82:                                               ; preds = %77
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %83 = load ptr, ptr %5, align 8, !tbaa !5
  %84 = getelementptr inbounds %"struct.vcl::hierarchy_mesh_drawable", ptr %83, i32 0, i32 1
  %85 = load i64, ptr %19, align 8, !tbaa !26
  %86 = call noundef nonnull align 8 dereferenceable(328) ptr @_ZNKSt6vectorIN3vcl28hierarchy_mesh_drawable_nodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %84, i64 noundef %85) #7
  store ptr %86, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  %87 = load ptr, ptr %20, align 8, !tbaa !5
  %88 = getelementptr inbounds %"struct.vcl::hierarchy_mesh_drawable_node", ptr %87, i32 0, i32 4
  store ptr %88, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 36, ptr %22) #7
  %89 = load ptr, ptr %21, align 8, !tbaa !5
  %90 = getelementptr inbounds %"struct.vcl::affine_transform", ptr %89, i32 0, i32 1
  %91 = load ptr, ptr %20, align 8, !tbaa !5
  %92 = getelementptr inbounds %"struct.vcl::hierarchy_mesh_drawable_node", ptr %91, i32 0, i32 0
  %93 = getelementptr inbounds %"struct.vcl::mesh_drawable", ptr %92, i32 0, i32 1
  %94 = getelementptr inbounds %"struct.vcl::mesh_drawable_uniform", ptr %93, i32 0, i32 0
  %95 = getelementptr inbounds %"struct.vcl::affine_transform", ptr %94, i32 0, i32 1
  call void @_ZN3vclmlILm3ELm3ELm3EEENS_3matIXT_EXT1_EEERKNS1_IXT_EXT0_EEERKNS1_IXT0_EXT1_EEE(ptr dead_on_unwind writable sret(%"struct.vcl::mat") align 4 %22, ptr noundef nonnull align 4 dereferenceable(36) %90, ptr noundef nonnull align 4 dereferenceable(36) %95)
  call void @llvm.lifetime.start.p0(i64 12, ptr %23) #7
  %96 = load ptr, ptr %21, align 8, !tbaa !5
  %97 = getelementptr inbounds %"struct.vcl::affine_transform", ptr %96, i32 0, i32 0
  %98 = load ptr, ptr %20, align 8, !tbaa !5
  %99 = getelementptr inbounds %"struct.vcl::hierarchy_mesh_drawable_node", ptr %98, i32 0, i32 0
  %100 = getelementptr inbounds %"struct.vcl::mesh_drawable", ptr %99, i32 0, i32 1
  %101 = getelementptr inbounds %"struct.vcl::mesh_drawable_uniform", ptr %100, i32 0, i32 0
  %102 = getelementptr inbounds %"struct.vcl::affine_transform", ptr %101, i32 0, i32 0
  %103 = call { <2 x float>, float } @_ZN3vclplIfLm3EEENS_12buffer_stackIT_XT0_EEERKS3_S5_(ptr noundef nonnull align 4 dereferenceable(12) %97, ptr noundef nonnull align 4 dereferenceable(12) %102)
  store { <2 x float>, float } %103, ptr %24, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 8 %24, i64 12, i1 false)
  %104 = getelementptr inbounds %"class.vcl::hierarchy_mesh_drawable_display_skeleton", ptr %29, i32 0, i32 0
  %105 = load float, ptr %104, align 4, !tbaa !28
  %106 = getelementptr inbounds %"class.vcl::hierarchy_mesh_drawable_display_skeleton", ptr %29, i32 0, i32 5
  %107 = getelementptr inbounds %"struct.vcl::mesh_drawable", ptr %106, i32 0, i32 1
  %108 = getelementptr inbounds %"struct.vcl::mesh_drawable_uniform", ptr %107, i32 0, i32 0
  %109 = getelementptr inbounds %"struct.vcl::affine_transform", ptr %108, i32 0, i32 2
  store float %105, ptr %109, align 4, !tbaa !29
  %110 = getelementptr inbounds %"class.vcl::hierarchy_mesh_drawable_display_skeleton", ptr %29, i32 0, i32 5
  %111 = getelementptr inbounds %"struct.vcl::mesh_drawable", ptr %110, i32 0, i32 1
  %112 = getelementptr inbounds %"struct.vcl::mesh_drawable_uniform", ptr %111, i32 0, i32 0
  %113 = getelementptr inbounds %"struct.vcl::affine_transform", ptr %112, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %113, ptr align 4 %23, i64 12, i1 false), !tbaa.struct !30
  %114 = getelementptr inbounds %"class.vcl::hierarchy_mesh_drawable_display_skeleton", ptr %29, i32 0, i32 5
  %115 = getelementptr inbounds %"struct.vcl::mesh_drawable", ptr %114, i32 0, i32 1
  %116 = getelementptr inbounds %"struct.vcl::mesh_drawable_uniform", ptr %115, i32 0, i32 0
  %117 = getelementptr inbounds %"struct.vcl::affine_transform", ptr %116, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %117, ptr align 4 %22, i64 36, i1 false), !tbaa.struct !32
  %118 = getelementptr inbounds %"class.vcl::hierarchy_mesh_drawable_display_skeleton", ptr %29, i32 0, i32 5
  %119 = load ptr, ptr %6, align 8, !tbaa !5
  %120 = getelementptr inbounds %"class.vcl::hierarchy_mesh_drawable_display_skeleton", ptr %29, i32 0, i32 3
  %121 = load i32, ptr %120, align 4, !tbaa !33
  call void @_ZN3vcl4drawERKNS_13mesh_drawableERKNS_12camera_sceneEj(ptr noundef nonnull align 4 dereferenceable(132) %118, ptr noundef nonnull align 4 dereferenceable(80) %119, i32 noundef %121)
  %122 = load i64, ptr %19, align 8, !tbaa !26
  %123 = icmp ugt i64 %122, 0
  br i1 %123, label %124, label %149

124:                                              ; preds = %82
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  %125 = load ptr, ptr %5, align 8, !tbaa !5
  %126 = load ptr, ptr %20, align 8, !tbaa !5
  %127 = getelementptr inbounds %"struct.vcl::hierarchy_mesh_drawable_node", ptr %126, i32 0, i32 2
  %128 = call noundef nonnull align 8 dereferenceable(328) ptr @_ZNK3vcl23hierarchy_mesh_drawableixERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(72) %125, ptr noundef nonnull align 8 dereferenceable(32) %127)
  store ptr %128, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  %129 = load ptr, ptr %25, align 8, !tbaa !5
  %130 = getelementptr inbounds %"struct.vcl::hierarchy_mesh_drawable_node", ptr %129, i32 0, i32 4
  store ptr %130, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %27) #7
  %131 = load ptr, ptr %26, align 8, !tbaa !5
  %132 = getelementptr inbounds %"struct.vcl::affine_transform", ptr %131, i32 0, i32 0
  %133 = load ptr, ptr %25, align 8, !tbaa !5
  %134 = getelementptr inbounds %"struct.vcl::hierarchy_mesh_drawable_node", ptr %133, i32 0, i32 0
  %135 = getelementptr inbounds %"struct.vcl::mesh_drawable", ptr %134, i32 0, i32 1
  %136 = getelementptr inbounds %"struct.vcl::mesh_drawable_uniform", ptr %135, i32 0, i32 0
  %137 = getelementptr inbounds %"struct.vcl::affine_transform", ptr %136, i32 0, i32 0
  %138 = call { <2 x float>, float } @_ZN3vclplIfLm3EEENS_12buffer_stackIT_XT0_EEERKS3_S5_(ptr noundef nonnull align 4 dereferenceable(12) %132, ptr noundef nonnull align 4 dereferenceable(12) %137)
  store { <2 x float>, float } %138, ptr %28, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %27, ptr align 8 %28, i64 12, i1 false)
  %139 = getelementptr inbounds %"class.vcl::hierarchy_mesh_drawable_display_skeleton", ptr %29, i32 0, i32 4
  %140 = getelementptr inbounds %"struct.vcl::segment_drawable_immediate_mode", ptr %139, i32 0, i32 0
  %141 = getelementptr inbounds %struct.anon, ptr %140, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %141, ptr align 4 %27, i64 12, i1 false), !tbaa.struct !30
  %142 = getelementptr inbounds %"class.vcl::hierarchy_mesh_drawable_display_skeleton", ptr %29, i32 0, i32 4
  %143 = getelementptr inbounds %"struct.vcl::segment_drawable_immediate_mode", ptr %142, i32 0, i32 0
  %144 = getelementptr inbounds %struct.anon, ptr %143, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %144, ptr align 4 %23, i64 12, i1 false), !tbaa.struct !30
  %145 = getelementptr inbounds %"class.vcl::hierarchy_mesh_drawable_display_skeleton", ptr %29, i32 0, i32 4
  %146 = getelementptr inbounds %"class.vcl::hierarchy_mesh_drawable_display_skeleton", ptr %29, i32 0, i32 2
  %147 = load i32, ptr %146, align 4, !tbaa !34
  %148 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN3vcl31segment_drawable_immediate_mode4drawEjRKNS_12camera_sceneE(ptr noundef nonnull align 4 dereferenceable(49) %145, i32 noundef %147, ptr noundef nonnull align 4 dereferenceable(80) %148)
  call void @llvm.lifetime.end.p0(i64 12, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  br label %149

149:                                              ; preds = %124, %82
  call void @llvm.lifetime.end.p0(i64 12, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 36, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  br label %150

150:                                              ; preds = %149
  %151 = load i64, ptr %19, align 8, !tbaa !26
  %152 = add i64 %151, 1
  store i64 %152, ptr %19, align 8, !tbaa !26
  br label %77, !llvm.loop !35

153:                                              ; preds = %81
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  ret void

154:                                              ; preds = %72
  %155 = load ptr, ptr %9, align 8
  %156 = load i32, ptr %10, align 4
  %157 = insertvalue { ptr, i32 } poison, ptr %155, 0
  %158 = insertvalue { ptr, i32 } %157, i32 %156, 1
  resume { ptr, i32 } %158
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(328) ptr @_ZNKSt6vectorIN3vcl28hierarchy_mesh_drawable_nodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3vclmlILm3ELm3ELm3EEENS_3matIXT_EXT1_EEERKNS1_IXT_EXT0_EEERKNS1_IXT0_EXT1_EEE(ptr dead_on_unwind noalias writable sret(%"struct.vcl::mat") align 4, ptr noundef nonnull align 4 dereferenceable(36), ptr noundef nonnull align 4 dereferenceable(36)) #3

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

declare void @_ZN3vcl4drawERKNS_13mesh_drawableERKNS_12camera_sceneEj(ptr noundef nonnull align 4 dereferenceable(132), ptr noundef nonnull align 4 dereferenceable(80), i32 noundef) #4

declare noundef nonnull align 8 dereferenceable(328) ptr @_ZNK3vcl23hierarchy_mesh_drawableixERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(72), ptr noundef nonnull align 8 dereferenceable(32)) #4

declare void @_ZN3vcl31segment_drawable_immediate_mode4drawEjRKNS_12camera_sceneE(ptr noundef nonnull align 4 dereferenceable(49), i32 noundef, ptr noundef nonnull align 4 dereferenceable(80)) #4

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

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

!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, !12, i64 4}
!10 = !{!"_ZTSN3vcl40hierarchy_mesh_drawable_display_skeletonE", !11, i64 0, !12, i64 4, !13, i64 8, !13, i64 12, !14, i64 16, !18, i64 68}
!11 = !{!"float", !7, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!"_ZTSN3vcl31segment_drawable_immediate_modeE", !15, i64 0, !17, i64 36, !12, i64 48}
!15 = !{!"_ZTSN3vcl31segment_drawable_immediate_modeUt_E", !16, i64 0, !16, i64 12, !16, i64 24}
!16 = !{!"_ZTSN3vcl12buffer_stackIfLm3EEE", !11, i64 0, !11, i64 4, !11, i64 8}
!17 = !{!"_ZTSN3vcl12segments_gpuE", !13, i64 0, !13, i64 4, !13, i64 8}
!18 = !{!"_ZTSN3vcl13mesh_drawableE", !19, i64 0, !20, i64 28, !13, i64 124, !13, i64 128}
!19 = !{!"_ZTSN3vcl22mesh_drawable_gpu_dataE", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !13, i64 24}
!20 = !{!"_ZTSN3vcl21mesh_drawable_uniformE", !21, i64 0, !16, i64 64, !23, i64 76, !11, i64 92}
!21 = !{!"_ZTSN3vcl16affine_transformE", !16, i64 0, !22, i64 12, !11, i64 48, !16, i64 52}
!22 = !{!"_ZTSN3vcl3matILm3ELm3EEE", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32}
!23 = !{!"_ZTSN3vcl12shading_meshE", !11, i64 0, !11, i64 4, !11, i64 8, !13, i64 12}
!24 = !{i8 0, i8 2}
!25 = !{}
!26 = !{!27, !27, i64 0}
!27 = !{!"long", !7, i64 0}
!28 = !{!10, !11, i64 0}
!29 = !{!10, !11, i64 144}
!30 = !{i64 0, i64 4, !31, i64 4, i64 4, !31, i64 8, i64 4, !31}
!31 = !{!11, !11, i64 0}
!32 = !{i64 0, i64 4, !31, i64 4, i64 4, !31, i64 8, i64 4, !31, i64 12, i64 4, !31, i64 16, i64 4, !31, i64 20, i64 4, !31, i64 24, i64 4, !31, i64 28, i64 4, !31, i64 32, i64 4, !31}
!33 = !{!10, !13, i64 12}
!34 = !{!10, !13, i64 8}
!35 = distinct !{!35, !36}
!36 = !{!"llvm.loop.mustprogress"}


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

%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator" = type { i8 }
%"struct.vcl::mat" = type { float, float, float, float, float, float, float, float, float }

@.str.2 = external hidden unnamed_addr constant [203 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [54 x i8], align 1
@__PRETTY_FUNCTION__._ZN3vcl40hierarchy_mesh_drawable_display_skeleton4drawERKNS_23hierarchy_mesh_drawableERKNS_12camera_sceneE = external hidden unnamed_addr constant [112 x i8], align 1

; Function Attrs: noreturn
declare void @_ZN3vcl10call_errorENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_S5_S5_iRKS5_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

declare i32 @__gxx_personality_v0(...)

declare void @_ZN3vcl9backtraceB5cxx11Ei(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, i32 noundef) local_unnamed_addr #4

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

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

; Function Attrs: mustprogress 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) #5

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3vcl40hierarchy_mesh_drawable_display_skeleton4drawERKNS_23hierarchy_mesh_drawableERKNS_12camera_sceneE(ptr noundef nonnull align 4 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(72) %1, ptr noundef nonnull align 4 dereferenceable(80) %2) local_unnamed_addr #6 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca %"class.std::allocator", align 1
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca %"class.std::allocator", align 1
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %"class.std::allocator", align 1
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = alloca %"class.std::allocator", align 1
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca %"struct.vcl::mat", align 4
  %14 = getelementptr inbounds i8, ptr %0, i64 4
  %15 = load i8, ptr %14, align 4, !tbaa !5, !range !22, !noundef !23
  %16 = icmp eq i8 %15, 0
  br i1 %16, label %17, label %41

17:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull @.str.3, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %18 unwind label %24

18:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull @.str.4, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %19 unwind label %26

19:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull @.str.2, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %20 unwind label %28

20:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN3vcl40hierarchy_mesh_drawable_display_skeleton4drawERKNS_23hierarchy_mesh_drawableERKNS_12camera_sceneE, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %21 unwind label %30

21:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #7
  invoke void @_ZN3vcl9backtraceB5cxx11Ei(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %12, i32 noundef 1)
          to label %22 unwind label %32

22:                                               ; preds = %21
  invoke void @_ZN3vcl10call_errorENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_S5_S5_iRKS5_(ptr noundef nonnull %4, ptr noundef nonnull %6, ptr noundef nonnull %8, ptr noundef nonnull %10, i32 noundef 36, ptr noundef nonnull align 8 dereferenceable(32) %12) #8
          to label %23 unwind label %34

23:                                               ; preds = %22
  unreachable

24:                                               ; preds = %17
  %25 = landingpad { ptr, i32 }
          cleanup
  br label %40

26:                                               ; preds = %18
  %27 = landingpad { ptr, i32 }
          cleanup
  br label %39

28:                                               ; preds = %19
  %29 = landingpad { ptr, i32 }
          cleanup
  br label %38

30:                                               ; preds = %20
  %31 = landingpad { ptr, i32 }
          cleanup
  br label %37

32:                                               ; preds = %21
  %33 = landingpad { ptr, i32 }
          cleanup
  br label %36

34:                                               ; preds = %22
  %35 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #7
  br label %36

36:                                               ; preds = %34, %32
  %.pn = phi { ptr, i32 } [ %35, %34 ], [ %33, %32 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #7
  br label %37

37:                                               ; preds = %36, %30
  %.pn.pn = phi { ptr, i32 } [ %.pn, %36 ], [ %31, %30 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  br label %38

38:                                               ; preds = %37, %28
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %37 ], [ %29, %28 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #7
  br label %39

39:                                               ; preds = %38, %26
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %38 ], [ %27, %26 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #7
  br label %40

40:                                               ; preds = %39, %24
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %39 ], [ %25, %24 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #7
  resume { ptr, i32 } %.pn.pn.pn.pn.pn

41:                                               ; preds = %3
  %42 = getelementptr inbounds i8, ptr %1, i64 48
  %43 = tail call noundef i64 @_ZNKSt6vectorIN3vcl28hierarchy_mesh_drawable_nodeESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %42) #7
  %.not42 = icmp eq i64 %43, 0
  br i1 %.not42, label %._crit_edge, label %44

44:                                               ; preds = %41
  %45 = getelementptr inbounds i8, ptr %0, i64 68
  %46 = getelementptr inbounds i8, ptr %0, i64 96
  %47 = getelementptr inbounds i8, ptr %0, i64 144
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 104
  %48 = getelementptr inbounds i8, ptr %0, i64 108
  %49 = getelementptr inbounds i8, ptr %0, i64 12
  %50 = getelementptr inbounds i8, ptr %0, i64 16
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 24
  %51 = getelementptr inbounds i8, ptr %0, i64 28
  %.sroa.5.0..sroa_idx10 = getelementptr inbounds i8, ptr %0, i64 36
  %52 = getelementptr inbounds i8, ptr %0, i64 8
  %53 = tail call noundef nonnull align 8 dereferenceable(328) ptr @_ZNKSt6vectorIN3vcl28hierarchy_mesh_drawable_nodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %42, i64 noundef 0) #7
  %54 = getelementptr inbounds i8, ptr %53, i64 264
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %13) #7
  %55 = getelementptr inbounds i8, ptr %53, i64 276
  %56 = getelementptr inbounds i8, ptr %53, i64 28
  %57 = getelementptr inbounds i8, ptr %53, i64 40
  call void @_ZN3vclmlILm3ELm3ELm3EEENS_3matIXT_EXT1_EEERKNS1_IXT_EXT0_EEERKNS1_IXT0_EXT1_EEE(ptr dead_on_unwind nonnull writable sret(%"struct.vcl::mat") align 4 %13, ptr noundef nonnull align 4 dereferenceable(36) %55, ptr noundef nonnull align 4 dereferenceable(36) %57)
  %58 = call { <2 x float>, float } @_ZN3vclplIfLm3EEENS_12buffer_stackIT_XT0_EEERKS3_S5_(ptr noundef nonnull align 4 dereferenceable(12) %54, ptr noundef nonnull align 4 dereferenceable(12) %56)
  %.fca.0.extract4.peel = extractvalue { <2 x float>, float } %58, 0
  %.fca.1.extract5.peel = extractvalue { <2 x float>, float } %58, 1
  %59 = load float, ptr %0, align 4, !tbaa !24
  store float %59, ptr %47, align 4, !tbaa !25
  store <2 x float> %.fca.0.extract4.peel, ptr %46, align 4
  store float %.fca.1.extract5.peel, ptr %.sroa.5.0..sroa_idx, align 4, !tbaa !26
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(36) %48, ptr noundef nonnull align 4 dereferenceable(36) %13, i64 36, i1 false), !tbaa.struct !27
  %60 = load i32, ptr %49, align 4, !tbaa !28
  call void @_ZN3vcl4drawERKNS_13mesh_drawableERKNS_12camera_sceneEj(ptr noundef nonnull align 4 dereferenceable(132) %45, ptr noundef nonnull align 4 dereferenceable(80) %2, i32 noundef %60)
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %13) #7
  %exitcond.peel.not = icmp eq i64 %43, 1
  br i1 %exitcond.peel.not, label %._crit_edge, label %.peel.next

._crit_edge:                                      ; preds = %.peel.next, %44, %41
  ret void

.peel.next:                                       ; preds = %44, %.peel.next
  %.03541 = phi i64 [ %75, %.peel.next ], [ 1, %44 ]
  %61 = call noundef nonnull align 8 dereferenceable(328) ptr @_ZNKSt6vectorIN3vcl28hierarchy_mesh_drawable_nodeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %42, i64 noundef %.03541) #7
  %62 = getelementptr inbounds i8, ptr %61, i64 264
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %13) #7
  %63 = getelementptr inbounds i8, ptr %61, i64 276
  %64 = getelementptr inbounds i8, ptr %61, i64 28
  %65 = getelementptr inbounds i8, ptr %61, i64 40
  call void @_ZN3vclmlILm3ELm3ELm3EEENS_3matIXT_EXT1_EEERKNS1_IXT_EXT0_EEERKNS1_IXT0_EXT1_EEE(ptr dead_on_unwind nonnull writable sret(%"struct.vcl::mat") align 4 %13, ptr noundef nonnull align 4 dereferenceable(36) %63, ptr noundef nonnull align 4 dereferenceable(36) %65)
  %66 = call { <2 x float>, float } @_ZN3vclplIfLm3EEENS_12buffer_stackIT_XT0_EEERKS3_S5_(ptr noundef nonnull align 4 dereferenceable(12) %62, ptr noundef nonnull align 4 dereferenceable(12) %64)
  %.fca.0.extract4 = extractvalue { <2 x float>, float } %66, 0
  %.fca.1.extract5 = extractvalue { <2 x float>, float } %66, 1
  %67 = load float, ptr %0, align 4, !tbaa !24
  store float %67, ptr %47, align 4, !tbaa !25
  store <2 x float> %.fca.0.extract4, ptr %46, align 4
  store float %.fca.1.extract5, ptr %.sroa.5.0..sroa_idx, align 4, !tbaa !26
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(36) %48, ptr noundef nonnull align 4 dereferenceable(36) %13, i64 36, i1 false), !tbaa.struct !27
  %68 = load i32, ptr %49, align 4, !tbaa !28
  call void @_ZN3vcl4drawERKNS_13mesh_drawableERKNS_12camera_sceneEj(ptr noundef nonnull align 4 dereferenceable(132) %45, ptr noundef nonnull align 4 dereferenceable(80) %2, i32 noundef %68)
  %69 = getelementptr inbounds i8, ptr %61, i64 168
  %70 = call noundef nonnull align 8 dereferenceable(328) ptr @_ZNK3vcl23hierarchy_mesh_drawableixERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(72) %1, ptr noundef nonnull align 8 dereferenceable(32) %69)
  %71 = getelementptr inbounds i8, ptr %70, i64 264
  %72 = getelementptr inbounds i8, ptr %70, i64 28
  %73 = call { <2 x float>, float } @_ZN3vclplIfLm3EEENS_12buffer_stackIT_XT0_EEERKS3_S5_(ptr noundef nonnull align 4 dereferenceable(12) %71, ptr noundef nonnull align 4 dereferenceable(12) %72)
  %.fca.0.extract = extractvalue { <2 x float>, float } %73, 0
  %.fca.1.extract = extractvalue { <2 x float>, float } %73, 1
  store <2 x float> %.fca.0.extract, ptr %50, align 4
  store float %.fca.1.extract, ptr %.sroa.4.0..sroa_idx, align 4, !tbaa !26
  store <2 x float> %.fca.0.extract4, ptr %51, align 4
  store float %.fca.1.extract5, ptr %.sroa.5.0..sroa_idx10, align 4, !tbaa !26
  %74 = load i32, ptr %52, align 4, !tbaa !29
  call void @_ZN3vcl31segment_drawable_immediate_mode4drawEjRKNS_12camera_sceneE(ptr noundef nonnull align 4 dereferenceable(49) %50, i32 noundef %74, ptr noundef nonnull align 4 dereferenceable(80) %2)
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %13) #7
  %75 = add nuw i64 %.03541, 1
  %exitcond.not = icmp eq i64 %75, %43
  br i1 %exitcond.not, label %._crit_edge, label %.peel.next, !llvm.loop !30
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3vclmlILm3ELm3ELm3EEENS_3matIXT_EXT1_EEERKNS1_IXT_EXT0_EEERKNS1_IXT0_EXT1_EEE(ptr dead_on_unwind noalias writable sret(%"struct.vcl::mat") align 4, ptr noundef nonnull align 4 dereferenceable(36), ptr noundef nonnull align 4 dereferenceable(36)) local_unnamed_addr #3

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

declare void @_ZN3vcl4drawERKNS_13mesh_drawableERKNS_12camera_sceneEj(ptr noundef nonnull align 4 dereferenceable(132), ptr noundef nonnull align 4 dereferenceable(80), i32 noundef) local_unnamed_addr #4

declare noundef nonnull align 8 dereferenceable(328) ptr @_ZNK3vcl23hierarchy_mesh_drawableixERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(72), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4

declare void @_ZN3vcl31segment_drawable_immediate_mode4drawEjRKNS_12camera_sceneE(ptr noundef nonnull align 4 dereferenceable(49), i32 noundef, ptr noundef nonnull align 4 dereferenceable(80)) local_unnamed_addr #4

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !10, i64 4}
!6 = !{!"_ZTSN3vcl40hierarchy_mesh_drawable_display_skeletonE", !7, i64 0, !10, i64 4, !11, i64 8, !11, i64 12, !12, i64 16, !16, i64 68}
!7 = !{!"float", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!"_ZTSN3vcl31segment_drawable_immediate_modeE", !13, i64 0, !15, i64 36, !10, i64 48}
!13 = !{!"_ZTSN3vcl31segment_drawable_immediate_modeUt_E", !14, i64 0, !14, i64 12, !14, i64 24}
!14 = !{!"_ZTSN3vcl12buffer_stackIfLm3EEE", !7, i64 0, !7, i64 4, !7, i64 8}
!15 = !{!"_ZTSN3vcl12segments_gpuE", !11, i64 0, !11, i64 4, !11, i64 8}
!16 = !{!"_ZTSN3vcl13mesh_drawableE", !17, i64 0, !18, i64 28, !11, i64 124, !11, i64 128}
!17 = !{!"_ZTSN3vcl22mesh_drawable_gpu_dataE", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24}
!18 = !{!"_ZTSN3vcl21mesh_drawable_uniformE", !19, i64 0, !14, i64 64, !21, i64 76, !7, i64 92}
!19 = !{!"_ZTSN3vcl16affine_transformE", !14, i64 0, !20, i64 12, !7, i64 48, !14, i64 52}
!20 = !{!"_ZTSN3vcl3matILm3ELm3EEE", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32}
!21 = !{!"_ZTSN3vcl12shading_meshE", !7, i64 0, !7, i64 4, !7, i64 8, !11, i64 12}
!22 = !{i8 0, i8 2}
!23 = !{}
!24 = !{!6, !7, i64 0}
!25 = !{!6, !7, i64 144}
!26 = !{!7, !7, i64 0}
!27 = !{i64 0, i64 4, !26, i64 4, i64 4, !26, i64 8, i64 4, !26, i64 12, i64 4, !26, i64 16, i64 4, !26, i64 20, i64 4, !26, i64 24, i64 4, !26, i64 28, i64 4, !26, i64 32, i64 4, !26}
!28 = !{!6, !11, i64 12}
!29 = !{!6, !11, i64 8}
!30 = distinct !{!30, !31, !32}
!31 = !{!"llvm.loop.mustprogress"}
!32 = !{!"llvm.loop.peeled.count", i32 1}


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