; LLVM IR from niessner/Matterport :: code/gaps/pkgs/R3Graphics/R2Texture.ll (ZNK9R2Texture4LoadEv)

; 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.R2Texture = type <{ ptr, i32, [4 x i8], ptr, ptr, ptr, i32, i32, i32, i32, i32, [4 x i8], %class.RNFlags, i32, [4 x i8] }>
%class.RNFlags = type { i64 }

@.str = external hidden unnamed_addr constant [41 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [93 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [22 x i8], align 1

declare void @_Z7RNAbortPKcz(ptr noundef, ...) #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK9R2Texture4LoadEv(ptr noundef nonnull align 8 dereferenceable(76) %0) #1 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %5 = load ptr, ptr %2, align 8
  %6 = getelementptr inbounds %class.R2Texture, ptr %5, i32 0, i32 13
  %7 = load i32, ptr %6, align 8, !tbaa !9
  %8 = icmp sge i32 %7, 0
  br i1 %8, label %9, label %10

9:                                                ; preds = %1
  br label %99

10:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  call void @glGenTextures(i32 noundef 1, ptr noundef %3)
  %11 = load i32, ptr %3, align 4, !tbaa !17
  %12 = getelementptr inbounds %class.R2Texture, ptr %5, i32 0, i32 13
  store i32 %11, ptr %12, align 8, !tbaa !9
  %13 = getelementptr inbounds %class.R2Texture, ptr %5, i32 0, i32 13
  %14 = load i32, ptr %13, align 8, !tbaa !9
  %15 = icmp sgt i32 %14, 0
  br i1 %15, label %17, label %16

16:                                               ; preds = %10
  call void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef @.str, ptr noundef @.str.3, i32 noundef 226, ptr noundef @.str.2)
  br label %17

17:                                               ; preds = %16, %10
  %18 = getelementptr inbounds %class.R2Texture, ptr %5, i32 0, i32 13
  %19 = load i32, ptr %18, align 8, !tbaa !9
  call void @glBindTexture(i32 noundef 3553, i32 noundef %19)
  %20 = getelementptr inbounds %class.R2Texture, ptr %5, i32 0, i32 6
  %21 = load i32, ptr %20, align 8, !tbaa !18
  call void @glTexParameteri(i32 noundef 3553, i32 noundef 10242, i32 noundef %21)
  %22 = getelementptr inbounds %class.R2Texture, ptr %5, i32 0, i32 7
  %23 = load i32, ptr %22, align 4, !tbaa !19
  call void @glTexParameteri(i32 noundef 3553, i32 noundef 10243, i32 noundef %23)
  %24 = getelementptr inbounds %class.R2Texture, ptr %5, i32 0, i32 8
  %25 = load i32, ptr %24, align 8, !tbaa !20
  call void @glTexParameteri(i32 noundef 3553, i32 noundef 10241, i32 noundef %25)
  %26 = getelementptr inbounds %class.R2Texture, ptr %5, i32 0, i32 9
  %27 = load i32, ptr %26, align 4, !tbaa !21
  call void @glTexParameteri(i32 noundef 3553, i32 noundef 10240, i32 noundef %27)
  %28 = getelementptr inbounds %class.R2Texture, ptr %5, i32 0, i32 10
  %29 = load i32, ptr %28, align 8, !tbaa !22
  call void @glTexEnvi(i32 noundef 8960, i32 noundef 8704, i32 noundef %29)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  store i32 6407, ptr %4, align 4, !tbaa !17
  %30 = getelementptr inbounds %class.R2Texture, ptr %5, i32 0, i32 5
  %31 = load ptr, ptr %30, align 8, !tbaa !23
  %32 = call noundef i32 @_ZNK7R2Image5DepthEv(ptr noundef nonnull align 8 dereferenceable(24) %31)
  %33 = icmp eq i32 %32, 1
  br i1 %33, label %34, label %35

34:                                               ; preds = %17
  store i32 6409, ptr %4, align 4, !tbaa !17
  br label %57

35:                                               ; preds = %17
  %36 = getelementptr inbounds %class.R2Texture, ptr %5, i32 0, i32 5
  %37 = load ptr, ptr %36, align 8, !tbaa !23
  %38 = call noundef i32 @_ZNK7R2Image5DepthEv(ptr noundef nonnull align 8 dereferenceable(24) %37)
  %39 = icmp eq i32 %38, 2
  br i1 %39, label %40, label %41

40:                                               ; preds = %35
  store i32 6410, ptr %4, align 4, !tbaa !17
  br label %56

41:                                               ; preds = %35
  %42 = getelementptr inbounds %class.R2Texture, ptr %5, i32 0, i32 5
  %43 = load ptr, ptr %42, align 8, !tbaa !23
  %44 = call noundef i32 @_ZNK7R2Image5DepthEv(ptr noundef nonnull align 8 dereferenceable(24) %43)
  %45 = icmp eq i32 %44, 3
  br i1 %45, label %46, label %47

46:                                               ; preds = %41
  store i32 6407, ptr %4, align 4, !tbaa !17
  br label %55

47:                                               ; preds = %41
  %48 = getelementptr inbounds %class.R2Texture, ptr %5, i32 0, i32 5
  %49 = load ptr, ptr %48, align 8, !tbaa !23
  %50 = call noundef i32 @_ZNK7R2Image5DepthEv(ptr noundef nonnull align 8 dereferenceable(24) %49)
  %51 = icmp eq i32 %50, 4
  br i1 %51, label %52, label %53

52:                                               ; preds = %47
  store i32 6408, ptr %4, align 4, !tbaa !17
  br label %54

53:                                               ; preds = %47
  call void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef @.str.4)
  br label %54

54:                                               ; preds = %53, %52
  br label %55

55:                                               ; preds = %54, %46
  br label %56

56:                                               ; preds = %55, %40
  br label %57

57:                                               ; preds = %56, %34
  %58 = getelementptr inbounds %class.R2Texture, ptr %5, i32 0, i32 8
  %59 = load i32, ptr %58, align 8, !tbaa !20
  %60 = icmp eq i32 %59, 9984
  br i1 %60, label %73, label %61

61:                                               ; preds = %57
  %62 = getelementptr inbounds %class.R2Texture, ptr %5, i32 0, i32 8
  %63 = load i32, ptr %62, align 8, !tbaa !20
  %64 = icmp eq i32 %63, 9986
  br i1 %64, label %73, label %65

65:                                               ; preds = %61
  %66 = getelementptr inbounds %class.R2Texture, ptr %5, i32 0, i32 8
  %67 = load i32, ptr %66, align 8, !tbaa !20
  %68 = icmp eq i32 %67, 9985
  br i1 %68, label %73, label %69

69:                                               ; preds = %65
  %70 = getelementptr inbounds %class.R2Texture, ptr %5, i32 0, i32 8
  %71 = load i32, ptr %70, align 8, !tbaa !20
  %72 = icmp eq i32 %71, 9987
  br i1 %72, label %73, label %86

73:                                               ; preds = %69, %65, %61, %57
  %74 = load i32, ptr %4, align 4, !tbaa !17
  %75 = getelementptr inbounds %class.R2Texture, ptr %5, i32 0, i32 5
  %76 = load ptr, ptr %75, align 8, !tbaa !23
  %77 = call noundef i32 @_ZNK7R2Image5WidthEv(ptr noundef nonnull align 8 dereferenceable(24) %76)
  %78 = getelementptr inbounds %class.R2Texture, ptr %5, i32 0, i32 5
  %79 = load ptr, ptr %78, align 8, !tbaa !23
  %80 = call noundef i32 @_ZNK7R2Image6HeightEv(ptr noundef nonnull align 8 dereferenceable(24) %79)
  %81 = load i32, ptr %4, align 4, !tbaa !17
  %82 = getelementptr inbounds %class.R2Texture, ptr %5, i32 0, i32 5
  %83 = load ptr, ptr %82, align 8, !tbaa !23
  %84 = call noundef ptr @_ZNK7R2Image6PixelsEv(ptr noundef nonnull align 8 dereferenceable(24) %83)
  %85 = call i32 @gluBuild2DMipmaps(i32 noundef 3553, i32 noundef %74, i32 noundef %77, i32 noundef %80, i32 noundef %81, i32 noundef 5121, ptr noundef %84)
  br label %98

86:                                               ; preds = %69
  %87 = load i32, ptr %4, align 4, !tbaa !17
  %88 = getelementptr inbounds %class.R2Texture, ptr %5, i32 0, i32 5
  %89 = load ptr, ptr %88, align 8, !tbaa !23
  %90 = call noundef i32 @_ZNK7R2Image5WidthEv(ptr noundef nonnull align 8 dereferenceable(24) %89)
  %91 = getelementptr inbounds %class.R2Texture, ptr %5, i32 0, i32 5
  %92 = load ptr, ptr %91, align 8, !tbaa !23
  %93 = call noundef i32 @_ZNK7R2Image6HeightEv(ptr noundef nonnull align 8 dereferenceable(24) %92)
  %94 = load i32, ptr %4, align 4, !tbaa !17
  %95 = getelementptr inbounds %class.R2Texture, ptr %5, i32 0, i32 5
  %96 = load ptr, ptr %95, align 8, !tbaa !23
  %97 = call noundef ptr @_ZNK7R2Image6PixelsEv(ptr noundef nonnull align 8 dereferenceable(24) %96)
  call void @glTexImage2D(i32 noundef 3553, i32 noundef 0, i32 noundef %87, i32 noundef %90, i32 noundef %93, i32 noundef 0, i32 noundef %94, i32 noundef 5121, ptr noundef %97)
  br label %98

98:                                               ; preds = %86, %73
  call void @glBindTexture(i32 noundef 3553, i32 noundef 0)
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  br label %99

99:                                               ; preds = %98, %9
  ret void
}

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

declare void @glGenTextures(i32 noundef, ptr noundef) #0

declare void @glBindTexture(i32 noundef, i32 noundef) #0

declare void @glTexParameteri(i32 noundef, i32 noundef, i32 noundef) #0

declare void @glTexEnvi(i32 noundef, i32 noundef, i32 noundef) #0

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

declare i32 @gluBuild2DMipmaps(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) #0

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

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

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

declare void @glTexImage2D(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) #0

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

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #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, !11, i64 72}
!10 = !{!"_ZTS9R2Texture", !6, i64 0, !11, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !12, i64 40, !12, i64 44, !13, i64 48, !13, i64 52, !14, i64 56, !15, i64 64, !11, i64 72}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_ZTS13R2TextureWrap", !7, i64 0}
!13 = !{!"_ZTS15R2TextureFilter", !7, i64 0}
!14 = !{!"_ZTS14R2TextureBlend", !7, i64 0}
!15 = !{!"_ZTS7RNFlags", !16, i64 0}
!16 = !{!"long", !7, i64 0}
!17 = !{!11, !11, i64 0}
!18 = !{!10, !12, i64 40}
!19 = !{!10, !12, i64 44}
!20 = !{!10, !13, i64 48}
!21 = !{!10, !13, i64 52}
!22 = !{!10, !14, i64 56}
!23 = !{!10, !6, i64 32}


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

@.str = external hidden unnamed_addr constant [41 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [93 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [22 x i8], align 1

declare void @_Z7RNAbortPKcz(ptr noundef, ...) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK9R2Texture4LoadEv(ptr nocapture noundef nonnull align 8 dereferenceable(76) %0) local_unnamed_addr #1 align 2 {
  %2 = alloca i32, align 4
  %3 = getelementptr inbounds i8, ptr %0, i64 72
  %4 = load i32, ptr %3, align 8, !tbaa !5
  %5 = icmp sgt i32 %4, -1
  br i1 %5, label %52, label %6

6:                                                ; preds = %1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #4
  call void @glGenTextures(i32 noundef 1, ptr noundef nonnull %2)
  %7 = load i32, ptr %2, align 4, !tbaa !16
  store i32 %7, ptr %3, align 8, !tbaa !5
  %8 = icmp sgt i32 %7, 0
  br i1 %8, label %10, label %9

9:                                                ; preds = %6
  call void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef nonnull @.str, ptr noundef nonnull @.str.3, i32 noundef 226, ptr noundef nonnull @.str.2)
  %.pre = load i32, ptr %3, align 8, !tbaa !5
  br label %10

10:                                               ; preds = %9, %6
  %11 = phi i32 [ %.pre, %9 ], [ %7, %6 ]
  call void @glBindTexture(i32 noundef 3553, i32 noundef %11)
  %12 = getelementptr inbounds i8, ptr %0, i64 40
  %13 = load i32, ptr %12, align 8, !tbaa !17
  call void @glTexParameteri(i32 noundef 3553, i32 noundef 10242, i32 noundef %13)
  %14 = getelementptr inbounds i8, ptr %0, i64 44
  %15 = load i32, ptr %14, align 4, !tbaa !18
  call void @glTexParameteri(i32 noundef 3553, i32 noundef 10243, i32 noundef %15)
  %16 = getelementptr inbounds i8, ptr %0, i64 48
  %17 = load i32, ptr %16, align 8, !tbaa !19
  call void @glTexParameteri(i32 noundef 3553, i32 noundef 10241, i32 noundef %17)
  %18 = getelementptr inbounds i8, ptr %0, i64 52
  %19 = load i32, ptr %18, align 4, !tbaa !20
  call void @glTexParameteri(i32 noundef 3553, i32 noundef 10240, i32 noundef %19)
  %20 = getelementptr inbounds i8, ptr %0, i64 56
  %21 = load i32, ptr %20, align 8, !tbaa !21
  call void @glTexEnvi(i32 noundef 8960, i32 noundef 8704, i32 noundef %21)
  %22 = getelementptr inbounds i8, ptr %0, i64 32
  %23 = load ptr, ptr %22, align 8, !tbaa !22
  %24 = call noundef i32 @_ZNK7R2Image5DepthEv(ptr noundef nonnull align 8 dereferenceable(24) %23)
  %25 = icmp eq i32 %24, 1
  br i1 %25, label %39, label %26

26:                                               ; preds = %10
  %27 = load ptr, ptr %22, align 8, !tbaa !22
  %28 = call noundef i32 @_ZNK7R2Image5DepthEv(ptr noundef nonnull align 8 dereferenceable(24) %27)
  %29 = icmp eq i32 %28, 2
  br i1 %29, label %39, label %30

30:                                               ; preds = %26
  %31 = load ptr, ptr %22, align 8, !tbaa !22
  %32 = call noundef i32 @_ZNK7R2Image5DepthEv(ptr noundef nonnull align 8 dereferenceable(24) %31)
  %33 = icmp eq i32 %32, 3
  br i1 %33, label %39, label %34

34:                                               ; preds = %30
  %35 = load ptr, ptr %22, align 8, !tbaa !22
  %36 = call noundef i32 @_ZNK7R2Image5DepthEv(ptr noundef nonnull align 8 dereferenceable(24) %35)
  %37 = icmp eq i32 %36, 4
  br i1 %37, label %39, label %38

38:                                               ; preds = %34
  call void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef nonnull @.str.4)
  br label %39

39:                                               ; preds = %34, %30, %26, %10, %38
  %.0 = phi i32 [ 6407, %38 ], [ 6409, %10 ], [ 6410, %26 ], [ 6407, %30 ], [ 6408, %34 ]
  %40 = load i32, ptr %16, align 8, !tbaa !19
  %41 = and i32 %40, -4
  %switch = icmp eq i32 %41, 9984
  %42 = load ptr, ptr %22, align 8, !tbaa !22
  %43 = call noundef i32 @_ZNK7R2Image5WidthEv(ptr noundef nonnull align 8 dereferenceable(24) %42)
  %44 = load ptr, ptr %22, align 8, !tbaa !22
  %45 = call noundef i32 @_ZNK7R2Image6HeightEv(ptr noundef nonnull align 8 dereferenceable(24) %44)
  %46 = load ptr, ptr %22, align 8, !tbaa !22
  %47 = call noundef ptr @_ZNK7R2Image6PixelsEv(ptr noundef nonnull align 8 dereferenceable(24) %46)
  br i1 %switch, label %48, label %50

48:                                               ; preds = %39
  %49 = call i32 @gluBuild2DMipmaps(i32 noundef 3553, i32 noundef %.0, i32 noundef %43, i32 noundef %45, i32 noundef %.0, i32 noundef 5121, ptr noundef %47)
  br label %51

50:                                               ; preds = %39
  call void @glTexImage2D(i32 noundef 3553, i32 noundef 0, i32 noundef %.0, i32 noundef %43, i32 noundef %45, i32 noundef 0, i32 noundef %.0, i32 noundef 5121, ptr noundef %47)
  br label %51

51:                                               ; preds = %50, %48
  call void @glBindTexture(i32 noundef 3553, i32 noundef 0)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #4
  br label %52

52:                                               ; preds = %1, %51
  ret void
}

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

declare void @glGenTextures(i32 noundef, ptr noundef) local_unnamed_addr #0

declare void @glBindTexture(i32 noundef, i32 noundef) local_unnamed_addr #0

declare void @glTexParameteri(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

declare void @glTexEnvi(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK7R2Image5DepthEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

declare i32 @gluBuild2DMipmaps(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK7R2Image5WidthEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK7R2Image6HeightEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

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

declare void @glTexImage2D(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

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

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #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, !10, i64 72}
!6 = !{!"_ZTS9R2Texture", !7, i64 0, !10, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !11, i64 40, !11, i64 44, !12, i64 48, !12, i64 52, !13, i64 56, !14, i64 64, !10, i64 72}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"_ZTS13R2TextureWrap", !8, i64 0}
!12 = !{!"_ZTS15R2TextureFilter", !8, i64 0}
!13 = !{!"_ZTS14R2TextureBlend", !8, i64 0}
!14 = !{!"_ZTS7RNFlags", !15, i64 0}
!15 = !{!"long", !8, i64 0}
!16 = !{!10, !10, i64 0}
!17 = !{!6, !11, i64 40}
!18 = !{!6, !11, i64 44}
!19 = !{!6, !12, i64 48}
!20 = !{!6, !12, i64 52}
!21 = !{!6, !13, i64 56}
!22 = !{!6, !7, i64 32}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass