; LLVM IR from csabahruska/bullet :: cbits (Bullet)

; 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.btMatrix3x3 = type { [3 x %class.btVector3] }
%class.btVector3 = type { [4 x float] }
%class.btTransform = type { %class.btMatrix3x3, %class.btVector3 }

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN9btVector3C2ERKfS1_S1_(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11btMatrix3x3C2ERKfS1_S1_S1_S1_S1_S1_S1_S1_(ptr noundef nonnull align 4 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(16) ptr @_ZNK11btMatrix3x36getRowEi(ptr noundef nonnull align 4 dereferenceable(48), i32 noundef) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN11btTransformC2ERK11btMatrix3x3RK9btVector3(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(16)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(48) ptr @_ZN11btTransform8getBasisEv(ptr noundef nonnull align 4 dereferenceable(64)) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(16) ptr @_ZN11btTransform9getOriginEv(ptr noundef nonnull align 4 dereferenceable(64)) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @btCollisionWorld_debugDrawObject(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca %class.btMatrix3x3, align 4
  %11 = alloca %class.btVector3, align 4
  %12 = alloca %class.btTransform, align 4
  %13 = alloca ptr, align 8
  %14 = alloca %class.btVector3, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %15 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %15, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 48, ptr %10) #4
  %16 = load ptr, ptr %6, align 8, !tbaa !5
  %17 = getelementptr inbounds float, ptr %16, i64 0
  %18 = load ptr, ptr %6, align 8, !tbaa !5
  %19 = getelementptr inbounds float, ptr %18, i64 1
  %20 = load ptr, ptr %6, align 8, !tbaa !5
  %21 = getelementptr inbounds float, ptr %20, i64 2
  %22 = load ptr, ptr %6, align 8, !tbaa !5
  %23 = getelementptr inbounds float, ptr %22, i64 3
  %24 = load ptr, ptr %6, align 8, !tbaa !5
  %25 = getelementptr inbounds float, ptr %24, i64 4
  %26 = load ptr, ptr %6, align 8, !tbaa !5
  %27 = getelementptr inbounds float, ptr %26, i64 5
  %28 = load ptr, ptr %6, align 8, !tbaa !5
  %29 = getelementptr inbounds float, ptr %28, i64 6
  %30 = load ptr, ptr %6, align 8, !tbaa !5
  %31 = getelementptr inbounds float, ptr %30, i64 7
  %32 = load ptr, ptr %6, align 8, !tbaa !5
  %33 = getelementptr inbounds float, ptr %32, i64 8
  call void @_ZN11btMatrix3x3C2ERKfS1_S1_S1_S1_S1_S1_S1_S1_(ptr noundef nonnull align 4 dereferenceable(48) %10, ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef nonnull align 4 dereferenceable(4) %21, ptr noundef nonnull align 4 dereferenceable(4) %23, ptr noundef nonnull align 4 dereferenceable(4) %25, ptr noundef nonnull align 4 dereferenceable(4) %27, ptr noundef nonnull align 4 dereferenceable(4) %29, ptr noundef nonnull align 4 dereferenceable(4) %31, ptr noundef nonnull align 4 dereferenceable(4) %33)
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #4
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  %35 = getelementptr inbounds float, ptr %34, i64 9
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  %37 = getelementptr inbounds float, ptr %36, i64 10
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  %39 = getelementptr inbounds float, ptr %38, i64 11
  call void @_ZN9btVector3C2ERKfS1_S1_(ptr noundef nonnull align 4 dereferenceable(16) %11, ptr noundef nonnull align 4 dereferenceable(4) %35, ptr noundef nonnull align 4 dereferenceable(4) %37, ptr noundef nonnull align 4 dereferenceable(4) %39)
  call void @llvm.lifetime.start.p0(i64 64, ptr %12) #4
  call void @_ZN11btTransformC2ERK11btMatrix3x3RK9btVector3(ptr noundef nonnull align 4 dereferenceable(64) %12, ptr noundef nonnull align 4 dereferenceable(48) %10, ptr noundef nonnull align 4 dereferenceable(16) %11)
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %40 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %40, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #4
  %41 = load ptr, ptr %8, align 8, !tbaa !5
  %42 = getelementptr inbounds float, ptr %41, i64 0
  %43 = load ptr, ptr %8, align 8, !tbaa !5
  %44 = getelementptr inbounds float, ptr %43, i64 1
  %45 = load ptr, ptr %8, align 8, !tbaa !5
  %46 = getelementptr inbounds float, ptr %45, i64 2
  call void @_ZN9btVector3C2ERKfS1_S1_(ptr noundef nonnull align 4 dereferenceable(16) %14, ptr noundef nonnull align 4 dereferenceable(4) %42, ptr noundef nonnull align 4 dereferenceable(4) %44, ptr noundef nonnull align 4 dereferenceable(4) %46)
  %47 = load ptr, ptr %9, align 8, !tbaa !5
  %48 = load ptr, ptr %13, align 8, !tbaa !5
  %49 = load ptr, ptr %47, align 8, !tbaa !9
  %50 = getelementptr inbounds ptr, ptr %49, i64 6
  %51 = load ptr, ptr %50, align 8
  call void %51(ptr noundef nonnull align 8 dereferenceable(129) %47, ptr noundef nonnull align 4 dereferenceable(64) %12, ptr noundef %48, ptr noundef nonnull align 4 dereferenceable(16) %14)
  %52 = call noundef nonnull align 4 dereferenceable(48) ptr @_ZN11btTransform8getBasisEv(ptr noundef nonnull align 4 dereferenceable(64) %12)
  %53 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK11btMatrix3x36getRowEi(ptr noundef nonnull align 4 dereferenceable(48) %52, i32 noundef 0)
  %54 = getelementptr inbounds %class.btVector3, ptr %53, i32 0, i32 0
  %55 = getelementptr inbounds [4 x float], ptr %54, i64 0, i64 0
  %56 = load float, ptr %55, align 4, !tbaa !11
  %57 = load ptr, ptr %6, align 8, !tbaa !5
  %58 = getelementptr inbounds float, ptr %57, i64 0
  store float %56, ptr %58, align 4, !tbaa !11
  %59 = call noundef nonnull align 4 dereferenceable(48) ptr @_ZN11btTransform8getBasisEv(ptr noundef nonnull align 4 dereferenceable(64) %12)
  %60 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK11btMatrix3x36getRowEi(ptr noundef nonnull align 4 dereferenceable(48) %59, i32 noundef 0)
  %61 = getelementptr inbounds %class.btVector3, ptr %60, i32 0, i32 0
  %62 = getelementptr inbounds [4 x float], ptr %61, i64 0, i64 1
  %63 = load float, ptr %62, align 4, !tbaa !11
  %64 = load ptr, ptr %6, align 8, !tbaa !5
  %65 = getelementptr inbounds float, ptr %64, i64 1
  store float %63, ptr %65, align 4, !tbaa !11
  %66 = call noundef nonnull align 4 dereferenceable(48) ptr @_ZN11btTransform8getBasisEv(ptr noundef nonnull align 4 dereferenceable(64) %12)
  %67 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK11btMatrix3x36getRowEi(ptr noundef nonnull align 4 dereferenceable(48) %66, i32 noundef 0)
  %68 = getelementptr inbounds %class.btVector3, ptr %67, i32 0, i32 0
  %69 = getelementptr inbounds [4 x float], ptr %68, i64 0, i64 2
  %70 = load float, ptr %69, align 4, !tbaa !11
  %71 = load ptr, ptr %6, align 8, !tbaa !5
  %72 = getelementptr inbounds float, ptr %71, i64 2
  store float %70, ptr %72, align 4, !tbaa !11
  %73 = call noundef nonnull align 4 dereferenceable(48) ptr @_ZN11btTransform8getBasisEv(ptr noundef nonnull align 4 dereferenceable(64) %12)
  %74 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK11btMatrix3x36getRowEi(ptr noundef nonnull align 4 dereferenceable(48) %73, i32 noundef 1)
  %75 = getelementptr inbounds %class.btVector3, ptr %74, i32 0, i32 0
  %76 = getelementptr inbounds [4 x float], ptr %75, i64 0, i64 0
  %77 = load float, ptr %76, align 4, !tbaa !11
  %78 = load ptr, ptr %6, align 8, !tbaa !5
  %79 = getelementptr inbounds float, ptr %78, i64 3
  store float %77, ptr %79, align 4, !tbaa !11
  %80 = call noundef nonnull align 4 dereferenceable(48) ptr @_ZN11btTransform8getBasisEv(ptr noundef nonnull align 4 dereferenceable(64) %12)
  %81 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK11btMatrix3x36getRowEi(ptr noundef nonnull align 4 dereferenceable(48) %80, i32 noundef 1)
  %82 = getelementptr inbounds %class.btVector3, ptr %81, i32 0, i32 0
  %83 = getelementptr inbounds [4 x float], ptr %82, i64 0, i64 1
  %84 = load float, ptr %83, align 4, !tbaa !11
  %85 = load ptr, ptr %6, align 8, !tbaa !5
  %86 = getelementptr inbounds float, ptr %85, i64 4
  store float %84, ptr %86, align 4, !tbaa !11
  %87 = call noundef nonnull align 4 dereferenceable(48) ptr @_ZN11btTransform8getBasisEv(ptr noundef nonnull align 4 dereferenceable(64) %12)
  %88 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK11btMatrix3x36getRowEi(ptr noundef nonnull align 4 dereferenceable(48) %87, i32 noundef 1)
  %89 = getelementptr inbounds %class.btVector3, ptr %88, i32 0, i32 0
  %90 = getelementptr inbounds [4 x float], ptr %89, i64 0, i64 2
  %91 = load float, ptr %90, align 4, !tbaa !11
  %92 = load ptr, ptr %6, align 8, !tbaa !5
  %93 = getelementptr inbounds float, ptr %92, i64 5
  store float %91, ptr %93, align 4, !tbaa !11
  %94 = call noundef nonnull align 4 dereferenceable(48) ptr @_ZN11btTransform8getBasisEv(ptr noundef nonnull align 4 dereferenceable(64) %12)
  %95 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK11btMatrix3x36getRowEi(ptr noundef nonnull align 4 dereferenceable(48) %94, i32 noundef 2)
  %96 = getelementptr inbounds %class.btVector3, ptr %95, i32 0, i32 0
  %97 = getelementptr inbounds [4 x float], ptr %96, i64 0, i64 0
  %98 = load float, ptr %97, align 4, !tbaa !11
  %99 = load ptr, ptr %6, align 8, !tbaa !5
  %100 = getelementptr inbounds float, ptr %99, i64 6
  store float %98, ptr %100, align 4, !tbaa !11
  %101 = call noundef nonnull align 4 dereferenceable(48) ptr @_ZN11btTransform8getBasisEv(ptr noundef nonnull align 4 dereferenceable(64) %12)
  %102 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK11btMatrix3x36getRowEi(ptr noundef nonnull align 4 dereferenceable(48) %101, i32 noundef 2)
  %103 = getelementptr inbounds %class.btVector3, ptr %102, i32 0, i32 0
  %104 = getelementptr inbounds [4 x float], ptr %103, i64 0, i64 1
  %105 = load float, ptr %104, align 4, !tbaa !11
  %106 = load ptr, ptr %6, align 8, !tbaa !5
  %107 = getelementptr inbounds float, ptr %106, i64 7
  store float %105, ptr %107, align 4, !tbaa !11
  %108 = call noundef nonnull align 4 dereferenceable(48) ptr @_ZN11btTransform8getBasisEv(ptr noundef nonnull align 4 dereferenceable(64) %12)
  %109 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK11btMatrix3x36getRowEi(ptr noundef nonnull align 4 dereferenceable(48) %108, i32 noundef 2)
  %110 = getelementptr inbounds %class.btVector3, ptr %109, i32 0, i32 0
  %111 = getelementptr inbounds [4 x float], ptr %110, i64 0, i64 2
  %112 = load float, ptr %111, align 4, !tbaa !11
  %113 = load ptr, ptr %6, align 8, !tbaa !5
  %114 = getelementptr inbounds float, ptr %113, i64 8
  store float %112, ptr %114, align 4, !tbaa !11
  %115 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN11btTransform9getOriginEv(ptr noundef nonnull align 4 dereferenceable(64) %12)
  %116 = getelementptr inbounds %class.btVector3, ptr %115, i32 0, i32 0
  %117 = getelementptr inbounds [4 x float], ptr %116, i64 0, i64 0
  %118 = load float, ptr %117, align 4, !tbaa !11
  %119 = load ptr, ptr %6, align 8, !tbaa !5
  %120 = getelementptr inbounds float, ptr %119, i64 9
  store float %118, ptr %120, align 4, !tbaa !11
  %121 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN11btTransform9getOriginEv(ptr noundef nonnull align 4 dereferenceable(64) %12)
  %122 = getelementptr inbounds %class.btVector3, ptr %121, i32 0, i32 0
  %123 = getelementptr inbounds [4 x float], ptr %122, i64 0, i64 1
  %124 = load float, ptr %123, align 4, !tbaa !11
  %125 = load ptr, ptr %6, align 8, !tbaa !5
  %126 = getelementptr inbounds float, ptr %125, i64 10
  store float %124, ptr %126, align 4, !tbaa !11
  %127 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN11btTransform9getOriginEv(ptr noundef nonnull align 4 dereferenceable(64) %12)
  %128 = getelementptr inbounds %class.btVector3, ptr %127, i32 0, i32 0
  %129 = getelementptr inbounds [4 x float], ptr %128, i64 0, i64 2
  %130 = load float, ptr %129, align 4, !tbaa !11
  %131 = load ptr, ptr %6, align 8, !tbaa !5
  %132 = getelementptr inbounds float, ptr %131, i64 11
  store float %130, ptr %132, align 4, !tbaa !11
  %133 = getelementptr inbounds %class.btVector3, ptr %14, i32 0, i32 0
  %134 = getelementptr inbounds [4 x float], ptr %133, i64 0, i64 0
  %135 = load float, ptr %134, align 4, !tbaa !11
  %136 = load ptr, ptr %8, align 8, !tbaa !5
  %137 = getelementptr inbounds float, ptr %136, i64 0
  store float %135, ptr %137, align 4, !tbaa !11
  %138 = getelementptr inbounds %class.btVector3, ptr %14, i32 0, i32 0
  %139 = getelementptr inbounds [4 x float], ptr %138, i64 0, i64 1
  %140 = load float, ptr %139, align 4, !tbaa !11
  %141 = load ptr, ptr %8, align 8, !tbaa !5
  %142 = getelementptr inbounds float, ptr %141, i64 1
  store float %140, ptr %142, align 4, !tbaa !11
  %143 = getelementptr inbounds %class.btVector3, ptr %14, i32 0, i32 0
  %144 = getelementptr inbounds [4 x float], ptr %143, i64 0, i64 2
  %145 = load float, ptr %144, align 4, !tbaa !11
  %146 = load ptr, ptr %8, align 8, !tbaa !5
  %147 = getelementptr inbounds float, ptr %146, i64 2
  store float %145, ptr %147, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { 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 #4 = { 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 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}


; 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.btMatrix3x3 = type { [3 x %class.btVector3] }
%class.btVector3 = type { [4 x float] }
%class.btTransform = type { %class.btMatrix3x3, %class.btVector3 }

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN9btVector3C2ERKfS1_S1_(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11btMatrix3x3C2ERKfS1_S1_S1_S1_S1_S1_S1_S1_(ptr noundef nonnull align 4 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(16) ptr @_ZNK11btMatrix3x36getRowEi(ptr noundef nonnull align 4 dereferenceable(48), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN11btTransformC2ERK11btMatrix3x3RK9btVector3(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(16)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(48) ptr @_ZN11btTransform8getBasisEv(ptr noundef nonnull align 4 dereferenceable(64)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(16) ptr @_ZN11btTransform9getOriginEv(ptr noundef nonnull align 4 dereferenceable(64)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @btCollisionWorld_debugDrawObject(ptr noundef %0, ptr noundef nonnull %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #2 {
  %5 = alloca %class.btMatrix3x3, align 4
  %6 = alloca %class.btVector3, align 4
  %7 = alloca %class.btTransform, align 4
  %8 = alloca %class.btVector3, align 8
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %5) #4
  %9 = getelementptr inbounds i8, ptr %1, i64 4
  %10 = getelementptr inbounds i8, ptr %1, i64 8
  %11 = getelementptr inbounds i8, ptr %1, i64 12
  %12 = getelementptr inbounds i8, ptr %1, i64 16
  %13 = getelementptr inbounds i8, ptr %1, i64 20
  %14 = getelementptr inbounds i8, ptr %1, i64 24
  %15 = getelementptr inbounds i8, ptr %1, i64 28
  %16 = getelementptr inbounds i8, ptr %1, i64 32
  call void @_ZN11btMatrix3x3C2ERKfS1_S1_S1_S1_S1_S1_S1_S1_(ptr noundef nonnull align 4 dereferenceable(48) %5, ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %16)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #4
  %17 = getelementptr inbounds i8, ptr %1, i64 36
  %18 = getelementptr inbounds i8, ptr %1, i64 40
  %19 = getelementptr inbounds i8, ptr %1, i64 44
  call void @_ZN9btVector3C2ERKfS1_S1_(ptr noundef nonnull align 4 dereferenceable(16) %6, ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull align 4 dereferenceable(4) %19)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %7) #4
  call void @_ZN11btTransformC2ERK11btMatrix3x3RK9btVector3(ptr noundef nonnull align 4 dereferenceable(64) %7, ptr noundef nonnull align 4 dereferenceable(48) %5, ptr noundef nonnull align 4 dereferenceable(16) %6)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #4
  %20 = getelementptr inbounds i8, ptr %3, i64 4
  %21 = getelementptr inbounds i8, ptr %3, i64 8
  call void @_ZN9btVector3C2ERKfS1_S1_(ptr noundef nonnull align 4 dereferenceable(16) %8, ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %20, ptr noundef nonnull align 4 dereferenceable(4) %21)
  %22 = load ptr, ptr %0, align 8, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %22, i64 48
  %24 = load ptr, ptr %23, align 8
  call void %24(ptr noundef nonnull align 8 dereferenceable(129) %0, ptr noundef nonnull align 4 dereferenceable(64) %7, ptr noundef %2, ptr noundef nonnull align 4 dereferenceable(16) %8)
  %25 = call noundef nonnull align 4 dereferenceable(48) ptr @_ZN11btTransform8getBasisEv(ptr noundef nonnull align 4 dereferenceable(64) %7)
  %26 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK11btMatrix3x36getRowEi(ptr noundef nonnull align 4 dereferenceable(48) %25, i32 noundef 0)
  %27 = load float, ptr %26, align 4, !tbaa !8
  store float %27, ptr %1, align 4, !tbaa !8
  %28 = call noundef nonnull align 4 dereferenceable(48) ptr @_ZN11btTransform8getBasisEv(ptr noundef nonnull align 4 dereferenceable(64) %7)
  %29 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK11btMatrix3x36getRowEi(ptr noundef nonnull align 4 dereferenceable(48) %28, i32 noundef 0)
  %30 = getelementptr inbounds i8, ptr %29, i64 4
  %31 = load float, ptr %30, align 4, !tbaa !8
  store float %31, ptr %9, align 4, !tbaa !8
  %32 = call noundef nonnull align 4 dereferenceable(48) ptr @_ZN11btTransform8getBasisEv(ptr noundef nonnull align 4 dereferenceable(64) %7)
  %33 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK11btMatrix3x36getRowEi(ptr noundef nonnull align 4 dereferenceable(48) %32, i32 noundef 0)
  %34 = getelementptr inbounds i8, ptr %33, i64 8
  %35 = load float, ptr %34, align 4, !tbaa !8
  store float %35, ptr %10, align 4, !tbaa !8
  %36 = call noundef nonnull align 4 dereferenceable(48) ptr @_ZN11btTransform8getBasisEv(ptr noundef nonnull align 4 dereferenceable(64) %7)
  %37 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK11btMatrix3x36getRowEi(ptr noundef nonnull align 4 dereferenceable(48) %36, i32 noundef 1)
  %38 = load float, ptr %37, align 4, !tbaa !8
  store float %38, ptr %11, align 4, !tbaa !8
  %39 = call noundef nonnull align 4 dereferenceable(48) ptr @_ZN11btTransform8getBasisEv(ptr noundef nonnull align 4 dereferenceable(64) %7)
  %40 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK11btMatrix3x36getRowEi(ptr noundef nonnull align 4 dereferenceable(48) %39, i32 noundef 1)
  %41 = getelementptr inbounds i8, ptr %40, i64 4
  %42 = load float, ptr %41, align 4, !tbaa !8
  store float %42, ptr %12, align 4, !tbaa !8
  %43 = call noundef nonnull align 4 dereferenceable(48) ptr @_ZN11btTransform8getBasisEv(ptr noundef nonnull align 4 dereferenceable(64) %7)
  %44 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK11btMatrix3x36getRowEi(ptr noundef nonnull align 4 dereferenceable(48) %43, i32 noundef 1)
  %45 = getelementptr inbounds i8, ptr %44, i64 8
  %46 = load float, ptr %45, align 4, !tbaa !8
  store float %46, ptr %13, align 4, !tbaa !8
  %47 = call noundef nonnull align 4 dereferenceable(48) ptr @_ZN11btTransform8getBasisEv(ptr noundef nonnull align 4 dereferenceable(64) %7)
  %48 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK11btMatrix3x36getRowEi(ptr noundef nonnull align 4 dereferenceable(48) %47, i32 noundef 2)
  %49 = load float, ptr %48, align 4, !tbaa !8
  store float %49, ptr %14, align 4, !tbaa !8
  %50 = call noundef nonnull align 4 dereferenceable(48) ptr @_ZN11btTransform8getBasisEv(ptr noundef nonnull align 4 dereferenceable(64) %7)
  %51 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK11btMatrix3x36getRowEi(ptr noundef nonnull align 4 dereferenceable(48) %50, i32 noundef 2)
  %52 = getelementptr inbounds i8, ptr %51, i64 4
  %53 = load float, ptr %52, align 4, !tbaa !8
  store float %53, ptr %15, align 4, !tbaa !8
  %54 = call noundef nonnull align 4 dereferenceable(48) ptr @_ZN11btTransform8getBasisEv(ptr noundef nonnull align 4 dereferenceable(64) %7)
  %55 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK11btMatrix3x36getRowEi(ptr noundef nonnull align 4 dereferenceable(48) %54, i32 noundef 2)
  %56 = getelementptr inbounds i8, ptr %55, i64 8
  %57 = load float, ptr %56, align 4, !tbaa !8
  store float %57, ptr %16, align 4, !tbaa !8
  %58 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN11btTransform9getOriginEv(ptr noundef nonnull align 4 dereferenceable(64) %7)
  %59 = load float, ptr %58, align 4, !tbaa !8
  store float %59, ptr %17, align 4, !tbaa !8
  %60 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN11btTransform9getOriginEv(ptr noundef nonnull align 4 dereferenceable(64) %7)
  %61 = getelementptr inbounds i8, ptr %60, i64 4
  %62 = load float, ptr %61, align 4, !tbaa !8
  store float %62, ptr %18, align 4, !tbaa !8
  %63 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN11btTransform9getOriginEv(ptr noundef nonnull align 4 dereferenceable(64) %7)
  %64 = getelementptr inbounds i8, ptr %63, i64 8
  %65 = load float, ptr %64, align 4, !tbaa !8
  store float %65, ptr %19, align 4, !tbaa !8
  %66 = load <2 x float>, ptr %8, align 8, !tbaa !8
  store <2 x float> %66, ptr %3, align 4, !tbaa !8
  %67 = getelementptr inbounds i8, ptr %8, i64 8
  %68 = load float, ptr %67, align 8, !tbaa !8
  store float %68, ptr %21, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #4
  ret void
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { 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 #4 = { 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"float", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass