; LLVM IR from aap/librw :: src/ps2/ps2.ll (ZN2rw3ps212instanceXYZWEPjPNS_8GeometryEPNS_4MeshEjj)

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

%"struct.rw::Geometry" = type { %"struct.rw::Object", i32, i16, i32, i32, i32, i32, ptr, ptr, [8 x ptr], ptr, %"struct.rw::MaterialList", ptr, ptr, i32 }
%"struct.rw::Object" = type { i8, i8, i8, i8, ptr }
%"struct.rw::MaterialList" = type { ptr, i32, i32 }
%"struct.rw::MorphTarget" = type { ptr, %"struct.rw::Sphere", ptr, ptr }
%"struct.rw::Sphere" = type { %"struct.rw::V3d", float }
%"struct.rw::V3d" = type { float, float, float }
%"struct.rw::Mesh" = type { ptr, i32, ptr }

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN2rw3ps212instanceXYZWEPjPNS_8GeometryEPNS_4MeshEjj(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4) #1 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i16, align 2
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store i32 %3, ptr %9, align 4, !tbaa !9
  store i32 %4, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2, ptr %11) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #2
  %15 = load ptr, ptr %7, align 8, !tbaa !5
  %16 = getelementptr inbounds %"struct.rw::Geometry", ptr %15, i32 0, i32 10
  %17 = load ptr, ptr %16, align 8, !tbaa !11
  %18 = getelementptr inbounds %"struct.rw::MorphTarget", ptr %17, i64 0
  %19 = getelementptr inbounds %"struct.rw::MorphTarget", ptr %18, i32 0, i32 2
  %20 = load ptr, ptr %19, align 8, !tbaa !16
  store ptr %20, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #2
  %21 = load ptr, ptr %7, align 8, !tbaa !5
  %22 = load ptr, ptr %8, align 8, !tbaa !5
  %23 = call noundef ptr @_ZN2rw3ps217getADCbitsForMeshEPNS_8GeometryEPNS_4MeshE(ptr noundef %21, ptr noundef %22)
  store ptr %23, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #2
  %24 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %24, ptr %14, align 4, !tbaa !9
  br label %25

25:                                               ; preds = %85, %5
  %26 = load i32, ptr %14, align 4, !tbaa !9
  %27 = load i32, ptr %9, align 4, !tbaa !9
  %28 = load i32, ptr %10, align 4, !tbaa !9
  %29 = add i32 %27, %28
  %30 = icmp ult i32 %26, %29
  br i1 %30, label %32, label %31

31:                                               ; preds = %25
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #2
  br label %88

32:                                               ; preds = %25
  %33 = load ptr, ptr %8, align 8, !tbaa !5
  %34 = getelementptr inbounds %"struct.rw::Mesh", ptr %33, i32 0, i32 0
  %35 = load ptr, ptr %34, align 8, !tbaa !21
  %36 = load i32, ptr %14, align 4, !tbaa !9
  %37 = zext i32 %36 to i64
  %38 = getelementptr inbounds i16, ptr %35, i64 %37
  %39 = load i16, ptr %38, align 2, !tbaa !23
  store i16 %39, ptr %11, align 2, !tbaa !23
  %40 = load ptr, ptr %12, align 8, !tbaa !5
  %41 = load i16, ptr %11, align 2, !tbaa !23
  %42 = zext i16 %41 to i32
  %43 = mul nsw i32 %42, 3
  %44 = add nsw i32 %43, 0
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds i32, ptr %40, i64 %45
  %47 = load i32, ptr %46, align 4, !tbaa !9
  %48 = load ptr, ptr %6, align 8, !tbaa !5
  %49 = getelementptr inbounds i32, ptr %48, i32 1
  store ptr %49, ptr %6, align 8, !tbaa !5
  store i32 %47, ptr %48, align 4, !tbaa !9
  %50 = load ptr, ptr %12, align 8, !tbaa !5
  %51 = load i16, ptr %11, align 2, !tbaa !23
  %52 = zext i16 %51 to i32
  %53 = mul nsw i32 %52, 3
  %54 = add nsw i32 %53, 1
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds i32, ptr %50, i64 %55
  %57 = load i32, ptr %56, align 4, !tbaa !9
  %58 = load ptr, ptr %6, align 8, !tbaa !5
  %59 = getelementptr inbounds i32, ptr %58, i32 1
  store ptr %59, ptr %6, align 8, !tbaa !5
  store i32 %57, ptr %58, align 4, !tbaa !9
  %60 = load ptr, ptr %12, align 8, !tbaa !5
  %61 = load i16, ptr %11, align 2, !tbaa !23
  %62 = zext i16 %61 to i32
  %63 = mul nsw i32 %62, 3
  %64 = add nsw i32 %63, 2
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds i32, ptr %60, i64 %65
  %67 = load i32, ptr %66, align 4, !tbaa !9
  %68 = load ptr, ptr %6, align 8, !tbaa !5
  %69 = getelementptr inbounds i32, ptr %68, i32 1
  store ptr %69, ptr %6, align 8, !tbaa !5
  store i32 %67, ptr %68, align 4, !tbaa !9
  %70 = load ptr, ptr %13, align 8, !tbaa !5
  %71 = icmp ne ptr %70, null
  br i1 %71, label %72, label %79

72:                                               ; preds = %32
  %73 = load ptr, ptr %13, align 8, !tbaa !5
  %74 = load i32, ptr %14, align 4, !tbaa !9
  %75 = zext i32 %74 to i64
  %76 = getelementptr inbounds i8, ptr %73, i64 %75
  %77 = load i8, ptr %76, align 1, !tbaa !24
  %78 = icmp ne i8 %77, 0
  br label %79

79:                                               ; preds = %72, %32
  %80 = phi i1 [ false, %32 ], [ %78, %72 ]
  %81 = zext i1 %80 to i64
  %82 = select i1 %80, i32 32768, i32 0
  %83 = load ptr, ptr %6, align 8, !tbaa !5
  %84 = getelementptr inbounds i32, ptr %83, i32 1
  store ptr %84, ptr %6, align 8, !tbaa !5
  store i32 %82, ptr %83, align 4, !tbaa !9
  br label %85

85:                                               ; preds = %79
  %86 = load i32, ptr %14, align 4, !tbaa !9
  %87 = add i32 %86, 1
  store i32 %87, ptr %14, align 4, !tbaa !9
  br label %25, !llvm.loop !25

88:                                               ; preds = %31
  %89 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #2
  call void @llvm.lifetime.end.p0(i64 2, ptr %11) #2
  ret ptr %89
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN2rw3ps217getADCbitsForMeshEPNS_8GeometryEPNS_4MeshE(ptr noundef, ptr noundef) #1

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 120}
!12 = !{!"_ZTSN2rw8GeometryE", !13, i64 0, !10, i64 16, !14, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !6, i64 40, !6, i64 48, !7, i64 56, !6, i64 120, !15, i64 128, !6, i64 144, !6, i64 152, !10, i64 160}
!13 = !{!"_ZTSN2rw6ObjectE", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !6, i64 8}
!14 = !{!"short", !7, i64 0}
!15 = !{!"_ZTSN2rw12MaterialListE", !6, i64 0, !10, i64 8, !10, i64 12}
!16 = !{!17, !6, i64 24}
!17 = !{!"_ZTSN2rw11MorphTargetE", !6, i64 0, !18, i64 8, !6, i64 24, !6, i64 32}
!18 = !{!"_ZTSN2rw6SphereE", !19, i64 0, !20, i64 12}
!19 = !{!"_ZTSN2rw3V3dE", !20, i64 0, !20, i64 4, !20, i64 8}
!20 = !{!"float", !7, i64 0}
!21 = !{!22, !6, i64 0}
!22 = !{!"_ZTSN2rw4MeshE", !6, i64 0, !10, i64 8, !6, i64 16}
!23 = !{!14, !14, i64 0}
!24 = !{!7, !7, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"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"

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN2rw3ps212instanceXYZWEPjPNS_8GeometryEPNS_4MeshEjj(ptr noundef writeonly %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4) local_unnamed_addr #0 {
  %6 = getelementptr inbounds i8, ptr %1, i64 120
  %7 = load ptr, ptr %6, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %7, i64 24
  %9 = load ptr, ptr %8, align 8, !tbaa !14
  %10 = tail call noundef ptr @_ZN2rw3ps217getADCbitsForMeshEPNS_8GeometryEPNS_4MeshE(ptr noundef %1, ptr noundef %2)
  %11 = add i32 %4, %3
  %12 = icmp ugt i32 %11, %3
  br i1 %12, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %5
  %13 = load ptr, ptr %2, align 8, !tbaa !19
  %.not = icmp eq ptr %10, null
  %14 = zext i32 %3 to i64
  %wide.trip.count35 = zext i32 %11 to i64
  br i1 %.not, label %.thread.us.preheader, label %.thread.preheader

.thread.preheader:                                ; preds = %.lr.ph
  %15 = sub nsw i64 %wide.trip.count35, %14
  %xtraiter = and i64 %15, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.thread.prol.loopexit, label %.thread.prol

.thread.prol:                                     ; preds = %.thread.preheader
  %16 = getelementptr inbounds i16, ptr %13, i64 %14
  %17 = load i16, ptr %16, align 2, !tbaa !21
  %18 = zext i16 %17 to i64
  %.idx.prol = mul nuw nsw i64 %18, 12
  %19 = getelementptr inbounds i8, ptr %9, i64 %.idx.prol
  %20 = load i32, ptr %19, align 4, !tbaa !22
  %21 = getelementptr inbounds i8, ptr %0, i64 4
  store i32 %20, ptr %0, align 4, !tbaa !22
  %22 = getelementptr inbounds i8, ptr %19, i64 4
  %23 = load i32, ptr %22, align 4, !tbaa !22
  %24 = getelementptr inbounds i8, ptr %0, i64 8
  store i32 %23, ptr %21, align 4, !tbaa !22
  %25 = getelementptr inbounds i8, ptr %19, i64 8
  %26 = load i32, ptr %25, align 4, !tbaa !22
  %27 = getelementptr inbounds i8, ptr %0, i64 12
  store i32 %26, ptr %24, align 4, !tbaa !22
  %28 = getelementptr inbounds i8, ptr %10, i64 %14
  %29 = load i8, ptr %28, align 1, !tbaa !23
  %.fr.prol = freeze i8 %29
  %.not26.prol = icmp eq i8 %.fr.prol, 0
  %spec.select.prol = select i1 %.not26.prol, i32 0, i32 32768
  %30 = getelementptr inbounds i8, ptr %0, i64 16
  store i32 %spec.select.prol, ptr %27, align 4, !tbaa !22
  %indvars.iv.next.prol = add nuw nsw i64 %14, 1
  br label %.thread.prol.loopexit

.thread.prol.loopexit:                            ; preds = %.thread.prol, %.thread.preheader
  %.lcssa42.unr = phi ptr [ poison, %.thread.preheader ], [ %30, %.thread.prol ]
  %indvars.iv.unr = phi i64 [ %14, %.thread.preheader ], [ %indvars.iv.next.prol, %.thread.prol ]
  %.02327.unr = phi ptr [ %0, %.thread.preheader ], [ %30, %.thread.prol ]
  %31 = add nsw i64 %wide.trip.count35, -1
  %32 = icmp eq i64 %31, %14
  br i1 %32, label %._crit_edge, label %.thread

.thread.us.preheader:                             ; preds = %.lr.ph
  %33 = sub nsw i64 %wide.trip.count35, %14
  %xtraiter43 = and i64 %33, 1
  %lcmp.mod44.not = icmp eq i64 %xtraiter43, 0
  br i1 %lcmp.mod44.not, label %.thread.us.prol.loopexit, label %.thread.us.prol

.thread.us.prol:                                  ; preds = %.thread.us.preheader
  %34 = getelementptr inbounds i16, ptr %13, i64 %14
  %35 = load i16, ptr %34, align 2, !tbaa !21
  %36 = zext i16 %35 to i64
  %.idx.us.prol = mul nuw nsw i64 %36, 12
  %37 = getelementptr inbounds i8, ptr %9, i64 %.idx.us.prol
  %38 = load i32, ptr %37, align 4, !tbaa !22
  %39 = getelementptr inbounds i8, ptr %0, i64 4
  store i32 %38, ptr %0, align 4, !tbaa !22
  %40 = getelementptr inbounds i8, ptr %37, i64 4
  %41 = load i32, ptr %40, align 4, !tbaa !22
  %42 = getelementptr inbounds i8, ptr %0, i64 8
  store i32 %41, ptr %39, align 4, !tbaa !22
  %43 = getelementptr inbounds i8, ptr %37, i64 8
  %44 = load i32, ptr %43, align 4, !tbaa !22
  %45 = getelementptr inbounds i8, ptr %0, i64 12
  store i32 %44, ptr %42, align 4, !tbaa !22
  %46 = getelementptr inbounds i8, ptr %0, i64 16
  store i32 0, ptr %45, align 4, !tbaa !22
  %indvars.iv.next33.prol = add nuw nsw i64 %14, 1
  br label %.thread.us.prol.loopexit

.thread.us.prol.loopexit:                         ; preds = %.thread.us.prol, %.thread.us.preheader
  %.lcssa.unr = phi ptr [ poison, %.thread.us.preheader ], [ %46, %.thread.us.prol ]
  %indvars.iv32.unr = phi i64 [ %14, %.thread.us.preheader ], [ %indvars.iv.next33.prol, %.thread.us.prol ]
  %.02327.us.unr = phi ptr [ %0, %.thread.us.preheader ], [ %46, %.thread.us.prol ]
  %47 = add nsw i64 %wide.trip.count35, -1
  %48 = icmp eq i64 %47, %14
  br i1 %48, label %._crit_edge, label %.thread.us.preheader.new

.thread.us.preheader.new:                         ; preds = %.thread.us.prol.loopexit
  %invariant.gep = getelementptr i8, ptr %13, i64 2
  br label %.thread.us

.thread.us:                                       ; preds = %.thread.us, %.thread.us.preheader.new
  %indvars.iv32 = phi i64 [ %indvars.iv32.unr, %.thread.us.preheader.new ], [ %indvars.iv.next33.1, %.thread.us ]
  %.02327.us = phi ptr [ %.02327.us.unr, %.thread.us.preheader.new ], [ %73, %.thread.us ]
  %49 = getelementptr inbounds i16, ptr %13, i64 %indvars.iv32
  %50 = load i16, ptr %49, align 2, !tbaa !21
  %51 = zext i16 %50 to i64
  %.idx.us = mul nuw nsw i64 %51, 12
  %52 = getelementptr inbounds i8, ptr %9, i64 %.idx.us
  %53 = load i32, ptr %52, align 4, !tbaa !22
  %54 = getelementptr inbounds i8, ptr %.02327.us, i64 4
  store i32 %53, ptr %.02327.us, align 4, !tbaa !22
  %55 = getelementptr inbounds i8, ptr %52, i64 4
  %56 = load i32, ptr %55, align 4, !tbaa !22
  %57 = getelementptr inbounds i8, ptr %.02327.us, i64 8
  store i32 %56, ptr %54, align 4, !tbaa !22
  %58 = getelementptr inbounds i8, ptr %52, i64 8
  %59 = load i32, ptr %58, align 4, !tbaa !22
  %60 = getelementptr inbounds i8, ptr %.02327.us, i64 12
  store i32 %59, ptr %57, align 4, !tbaa !22
  %61 = getelementptr inbounds i8, ptr %.02327.us, i64 16
  store i32 0, ptr %60, align 4, !tbaa !22
  %gep = getelementptr i16, ptr %invariant.gep, i64 %indvars.iv32
  %62 = load i16, ptr %gep, align 2, !tbaa !21
  %63 = zext i16 %62 to i64
  %.idx.us.1 = mul nuw nsw i64 %63, 12
  %64 = getelementptr inbounds i8, ptr %9, i64 %.idx.us.1
  %65 = load i32, ptr %64, align 4, !tbaa !22
  %66 = getelementptr inbounds i8, ptr %.02327.us, i64 20
  store i32 %65, ptr %61, align 4, !tbaa !22
  %67 = getelementptr inbounds i8, ptr %64, i64 4
  %68 = load i32, ptr %67, align 4, !tbaa !22
  %69 = getelementptr inbounds i8, ptr %.02327.us, i64 24
  store i32 %68, ptr %66, align 4, !tbaa !22
  %70 = getelementptr inbounds i8, ptr %64, i64 8
  %71 = load i32, ptr %70, align 4, !tbaa !22
  %72 = getelementptr inbounds i8, ptr %.02327.us, i64 28
  store i32 %71, ptr %69, align 4, !tbaa !22
  %73 = getelementptr inbounds i8, ptr %.02327.us, i64 32
  store i32 0, ptr %72, align 4, !tbaa !22
  %indvars.iv.next33.1 = add nuw nsw i64 %indvars.iv32, 2
  %exitcond36.not.1 = icmp eq i64 %indvars.iv.next33.1, %wide.trip.count35
  br i1 %exitcond36.not.1, label %._crit_edge, label %.thread.us, !llvm.loop !24

._crit_edge:                                      ; preds = %.thread.prol.loopexit, %.thread, %.thread.us.prol.loopexit, %.thread.us, %5
  %.023.lcssa = phi ptr [ %0, %5 ], [ %.lcssa.unr, %.thread.us.prol.loopexit ], [ %73, %.thread.us ], [ %.lcssa42.unr, %.thread.prol.loopexit ], [ %103, %.thread ]
  ret ptr %.023.lcssa

.thread:                                          ; preds = %.thread.prol.loopexit, %.thread
  %indvars.iv = phi i64 [ %indvars.iv.next.1, %.thread ], [ %indvars.iv.unr, %.thread.prol.loopexit ]
  %.02327 = phi ptr [ %103, %.thread ], [ %.02327.unr, %.thread.prol.loopexit ]
  %74 = getelementptr inbounds i16, ptr %13, i64 %indvars.iv
  %75 = load i16, ptr %74, align 2, !tbaa !21
  %76 = zext i16 %75 to i64
  %.idx = mul nuw nsw i64 %76, 12
  %77 = getelementptr inbounds i8, ptr %9, i64 %.idx
  %78 = load i32, ptr %77, align 4, !tbaa !22
  %79 = getelementptr inbounds i8, ptr %.02327, i64 4
  store i32 %78, ptr %.02327, align 4, !tbaa !22
  %80 = getelementptr inbounds i8, ptr %77, i64 4
  %81 = load i32, ptr %80, align 4, !tbaa !22
  %82 = getelementptr inbounds i8, ptr %.02327, i64 8
  store i32 %81, ptr %79, align 4, !tbaa !22
  %83 = getelementptr inbounds i8, ptr %77, i64 8
  %84 = load i32, ptr %83, align 4, !tbaa !22
  %85 = getelementptr inbounds i8, ptr %.02327, i64 12
  store i32 %84, ptr %82, align 4, !tbaa !22
  %86 = getelementptr inbounds i8, ptr %10, i64 %indvars.iv
  %87 = load i8, ptr %86, align 1, !tbaa !23
  %.fr = freeze i8 %87
  %.not26 = icmp eq i8 %.fr, 0
  %spec.select = select i1 %.not26, i32 0, i32 32768
  %88 = getelementptr inbounds i8, ptr %.02327, i64 16
  store i32 %spec.select, ptr %85, align 4, !tbaa !22
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %89 = getelementptr inbounds i16, ptr %13, i64 %indvars.iv.next
  %90 = load i16, ptr %89, align 2, !tbaa !21
  %91 = zext i16 %90 to i64
  %.idx.1 = mul nuw nsw i64 %91, 12
  %92 = getelementptr inbounds i8, ptr %9, i64 %.idx.1
  %93 = load i32, ptr %92, align 4, !tbaa !22
  %94 = getelementptr inbounds i8, ptr %.02327, i64 20
  store i32 %93, ptr %88, align 4, !tbaa !22
  %95 = getelementptr inbounds i8, ptr %92, i64 4
  %96 = load i32, ptr %95, align 4, !tbaa !22
  %97 = getelementptr inbounds i8, ptr %.02327, i64 24
  store i32 %96, ptr %94, align 4, !tbaa !22
  %98 = getelementptr inbounds i8, ptr %92, i64 8
  %99 = load i32, ptr %98, align 4, !tbaa !22
  %100 = getelementptr inbounds i8, ptr %.02327, i64 28
  store i32 %99, ptr %97, align 4, !tbaa !22
  %101 = getelementptr inbounds i8, ptr %10, i64 %indvars.iv.next
  %102 = load i8, ptr %101, align 1, !tbaa !23
  %.fr.1 = freeze i8 %102
  %.not26.1 = icmp eq i8 %.fr.1, 0
  %spec.select.1 = select i1 %.not26.1, i32 0, i32 32768
  %103 = getelementptr inbounds i8, ptr %.02327, i64 32
  store i32 %spec.select.1, ptr %100, align 4, !tbaa !22
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %exitcond.not.1 = icmp eq i64 %indvars.iv.next.1, %wide.trip.count35
  br i1 %exitcond.not.1, label %._crit_edge, label %.thread, !llvm.loop !24
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN2rw3ps217getADCbitsForMeshEPNS_8GeometryEPNS_4MeshE(ptr noundef, ptr noundef) local_unnamed_addr #0

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !10, i64 120}
!6 = !{!"_ZTSN2rw8GeometryE", !7, i64 0, !11, i64 16, !12, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !10, i64 40, !10, i64 48, !8, i64 56, !10, i64 120, !13, i64 128, !10, i64 144, !10, i64 152, !11, i64 160}
!7 = !{!"_ZTSN2rw6ObjectE", !8, i64 0, !8, i64 1, !8, i64 2, !8, i64 3, !10, i64 8}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!"short", !8, i64 0}
!13 = !{!"_ZTSN2rw12MaterialListE", !10, i64 0, !11, i64 8, !11, i64 12}
!14 = !{!15, !10, i64 24}
!15 = !{!"_ZTSN2rw11MorphTargetE", !10, i64 0, !16, i64 8, !10, i64 24, !10, i64 32}
!16 = !{!"_ZTSN2rw6SphereE", !17, i64 0, !18, i64 12}
!17 = !{!"_ZTSN2rw3V3dE", !18, i64 0, !18, i64 4, !18, i64 8}
!18 = !{!"float", !8, i64 0}
!19 = !{!20, !10, i64 0}
!20 = !{!"_ZTSN2rw4MeshE", !10, i64 0, !11, i64 8, !10, i64 16}
!21 = !{!12, !12, i64 0}
!22 = !{!11, !11, i64 0}
!23 = !{!8, !8, i64 0}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass