; LLVM IR from openxrlab/xrsfm :: 3rdparty/SiftGPU/SiftMatch.ll (ZN11SiftMatchGL17AllocateSiftMatchEv)

; 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.SiftMatchGPU = type <{ ptr, i32, i32, ptr, i32, [4 x i8] }>
%class.SiftMatchGL = type { %class.SiftMatchGPU.base, [4 x i8], [2 x %class.GLTexImage], [2 x %class.GLTexImage], %class.GLTexImage, [2 x %class.GLTexImage], ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [2 x i32], [2 x i32], [2 x i32], i32, i32, i32, i32, i32, %"class.std::vector" }
%class.SiftMatchGPU.base = type <{ ptr, i32, i32, ptr, i32 }>
%class.GLTexImage = type <{ ptr, i32, i32, i32, i32, i32, i32, i32, [4 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@_ZN11GlobalParam12_texMaxDimGLE = external global i32, align 4
@_ZN11GlobalParam15_SupportNVFloatE = external global i32, align 4
@_ZN11GlobalParam17_SupportTextureRGE = external global i32, align 4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11SiftMatchGL17AllocateSiftMatchEv(ptr noundef nonnull align 8 dereferenceable(464) %0) #0 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %6 = load ptr, ptr %2, align 8
  %7 = getelementptr inbounds %class.SiftMatchGPU, ptr %6, i32 0, i32 4
  %8 = load i32, ptr %7, align 8, !tbaa !9
  %9 = load i32, ptr @_ZN11GlobalParam12_texMaxDimGLE, align 4, !tbaa !12
  %10 = icmp sgt i32 %8, %9
  br i1 %10, label %11, label %14

11:                                               ; preds = %1
  %12 = load i32, ptr @_ZN11GlobalParam12_texMaxDimGLE, align 4, !tbaa !12
  %13 = getelementptr inbounds %class.SiftMatchGPU, ptr %6, i32 0, i32 4
  store i32 %12, ptr %13, align 8, !tbaa !9
  br label %14

14:                                               ; preds = %11, %1
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #3
  %15 = getelementptr inbounds %class.SiftMatchGPU, ptr %6, i32 0, i32 4
  %16 = load i32, ptr %15, align 8, !tbaa !9
  %17 = getelementptr inbounds %class.SiftMatchGL, ptr %6, i32 0, i32 27
  %18 = load i32, ptr %17, align 8, !tbaa !13
  %19 = sdiv i32 %16, %18
  store i32 %19, ptr %3, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #3
  %20 = load i32, ptr @_ZN11GlobalParam12_texMaxDimGLE, align 4, !tbaa !12
  %21 = load i32, ptr %3, align 4, !tbaa !12
  %22 = add nsw i32 %20, %21
  %23 = sub nsw i32 %22, 1
  %24 = load i32, ptr @_ZN11GlobalParam12_texMaxDimGLE, align 4, !tbaa !12
  %25 = sdiv i32 %23, %24
  store i32 %25, ptr %4, align 4, !tbaa !12
  %26 = load i32, ptr %4, align 4, !tbaa !12
  %27 = icmp sgt i32 %26, 1
  br i1 %27, label %28, label %37

28:                                               ; preds = %14
  %29 = load i32, ptr %4, align 4, !tbaa !12
  %30 = getelementptr inbounds %class.SiftMatchGL, ptr %6, i32 0, i32 26
  %31 = load i32, ptr %30, align 4, !tbaa !20
  %32 = mul nsw i32 %31, %29
  store i32 %32, ptr %30, align 4, !tbaa !20
  %33 = load i32, ptr %4, align 4, !tbaa !12
  %34 = getelementptr inbounds %class.SiftMatchGL, ptr %6, i32 0, i32 27
  %35 = load i32, ptr %34, align 8, !tbaa !13
  %36 = mul nsw i32 %35, %33
  store i32 %36, ptr %34, align 8, !tbaa !13
  br label %37

37:                                               ; preds = %28, %14
  %38 = getelementptr inbounds %class.SiftMatchGL, ptr %6, i32 0, i32 3
  %39 = getelementptr inbounds [2 x %class.GLTexImage], ptr %38, i64 0, i64 0
  %40 = getelementptr inbounds %class.SiftMatchGL, ptr %6, i32 0, i32 27
  %41 = load i32, ptr %40, align 8, !tbaa !13
  %42 = getelementptr inbounds %class.SiftMatchGL, ptr %6, i32 0, i32 28
  %43 = load i32, ptr %42, align 4, !tbaa !21
  %44 = mul nsw i32 %41, %43
  %45 = getelementptr inbounds %class.SiftMatchGPU, ptr %6, i32 0, i32 4
  %46 = load i32, ptr %45, align 8, !tbaa !9
  %47 = getelementptr inbounds %class.SiftMatchGL, ptr %6, i32 0, i32 27
  %48 = load i32, ptr %47, align 8, !tbaa !13
  %49 = sdiv i32 %46, %48
  call void @_ZN10GLTexImage11InitTextureEiiij(ptr noundef nonnull align 8 dereferenceable(36) %39, i32 noundef %44, i32 noundef %49, i32 noundef 0, i32 noundef 32856)
  %50 = getelementptr inbounds %class.SiftMatchGL, ptr %6, i32 0, i32 3
  %51 = getelementptr inbounds [2 x %class.GLTexImage], ptr %50, i64 0, i64 1
  %52 = getelementptr inbounds %class.SiftMatchGL, ptr %6, i32 0, i32 27
  %53 = load i32, ptr %52, align 8, !tbaa !13
  %54 = getelementptr inbounds %class.SiftMatchGL, ptr %6, i32 0, i32 28
  %55 = load i32, ptr %54, align 4, !tbaa !21
  %56 = mul nsw i32 %53, %55
  %57 = getelementptr inbounds %class.SiftMatchGPU, ptr %6, i32 0, i32 4
  %58 = load i32, ptr %57, align 8, !tbaa !9
  %59 = getelementptr inbounds %class.SiftMatchGL, ptr %6, i32 0, i32 27
  %60 = load i32, ptr %59, align 8, !tbaa !13
  %61 = sdiv i32 %58, %60
  call void @_ZN10GLTexImage11InitTextureEiiij(ptr noundef nonnull align 8 dereferenceable(36) %51, i32 noundef %56, i32 noundef %61, i32 noundef 0, i32 noundef 32856)
  %62 = getelementptr inbounds %class.SiftMatchGL, ptr %6, i32 0, i32 2
  %63 = getelementptr inbounds [2 x %class.GLTexImage], ptr %62, i64 0, i64 0
  %64 = getelementptr inbounds %class.SiftMatchGL, ptr %6, i32 0, i32 27
  %65 = load i32, ptr %64, align 8, !tbaa !13
  %66 = getelementptr inbounds %class.SiftMatchGPU, ptr %6, i32 0, i32 4
  %67 = load i32, ptr %66, align 8, !tbaa !9
  %68 = getelementptr inbounds %class.SiftMatchGL, ptr %6, i32 0, i32 27
  %69 = load i32, ptr %68, align 8, !tbaa !13
  %70 = sdiv i32 %67, %69
  %71 = load ptr, ptr %63, align 8, !tbaa !22
  %72 = getelementptr inbounds ptr, ptr %71, i64 6
  %73 = load ptr, ptr %72, align 8
  call void %73(ptr noundef nonnull align 8 dereferenceable(36) %63, i32 noundef %65, i32 noundef %70, i32 noundef 0)
  %74 = getelementptr inbounds %class.SiftMatchGL, ptr %6, i32 0, i32 2
  %75 = getelementptr inbounds [2 x %class.GLTexImage], ptr %74, i64 0, i64 1
  %76 = getelementptr inbounds %class.SiftMatchGL, ptr %6, i32 0, i32 27
  %77 = load i32, ptr %76, align 8, !tbaa !13
  %78 = getelementptr inbounds %class.SiftMatchGPU, ptr %6, i32 0, i32 4
  %79 = load i32, ptr %78, align 8, !tbaa !9
  %80 = getelementptr inbounds %class.SiftMatchGL, ptr %6, i32 0, i32 27
  %81 = load i32, ptr %80, align 8, !tbaa !13
  %82 = sdiv i32 %79, %81
  %83 = load ptr, ptr %75, align 8, !tbaa !22
  %84 = getelementptr inbounds ptr, ptr %83, i64 6
  %85 = load ptr, ptr %84, align 8
  call void %85(ptr noundef nonnull align 8 dereferenceable(36) %75, i32 noundef %77, i32 noundef %82, i32 noundef 0)
  %86 = load i32, ptr @_ZN11GlobalParam15_SupportNVFloatE, align 4, !tbaa !12
  %87 = icmp ne i32 %86, 0
  br i1 %87, label %91, label %88

88:                                               ; preds = %37
  %89 = load i32, ptr @_ZN11GlobalParam17_SupportTextureRGE, align 4, !tbaa !12
  %90 = icmp ne i32 %89, 0
  br i1 %90, label %91, label %114

91:                                               ; preds = %88, %37
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  %92 = load i32, ptr @_ZN11GlobalParam15_SupportNVFloatE, align 4, !tbaa !12
  %93 = icmp ne i32 %92, 0
  %94 = zext i1 %93 to i64
  %95 = select i1 %93, i32 34944, i32 33326
  store i32 %95, ptr %5, align 4, !tbaa !12
  %96 = getelementptr inbounds %class.SiftMatchGL, ptr %6, i32 0, i32 4
  %97 = getelementptr inbounds %class.SiftMatchGPU, ptr %6, i32 0, i32 4
  %98 = load i32, ptr %97, align 8, !tbaa !9
  %99 = getelementptr inbounds %class.SiftMatchGPU, ptr %6, i32 0, i32 4
  %100 = load i32, ptr %99, align 8, !tbaa !9
  %101 = load i32, ptr %5, align 4, !tbaa !12
  call void @_ZN10GLTexImage11InitTextureEiiij(ptr noundef nonnull align 8 dereferenceable(36) %96, i32 noundef %98, i32 noundef %100, i32 noundef 0, i32 noundef %101)
  %102 = getelementptr inbounds %class.SiftMatchGL, ptr %6, i32 0, i32 5
  %103 = getelementptr inbounds [2 x %class.GLTexImage], ptr %102, i64 0, i64 0
  %104 = getelementptr inbounds %class.SiftMatchGPU, ptr %6, i32 0, i32 4
  %105 = load i32, ptr %104, align 8, !tbaa !9
  %106 = sdiv i32 %105, 16
  %107 = load i32, ptr %5, align 4, !tbaa !12
  call void @_ZN10GLTexImage11InitTextureEiiij(ptr noundef nonnull align 8 dereferenceable(36) %103, i32 noundef 16, i32 noundef %106, i32 noundef 0, i32 noundef %107)
  %108 = getelementptr inbounds %class.SiftMatchGL, ptr %6, i32 0, i32 5
  %109 = getelementptr inbounds [2 x %class.GLTexImage], ptr %108, i64 0, i64 1
  %110 = getelementptr inbounds %class.SiftMatchGPU, ptr %6, i32 0, i32 4
  %111 = load i32, ptr %110, align 8, !tbaa !9
  %112 = sdiv i32 %111, 16
  %113 = load i32, ptr %5, align 4, !tbaa !12
  call void @_ZN10GLTexImage11InitTextureEiiij(ptr noundef nonnull align 8 dereferenceable(36) %109, i32 noundef 16, i32 noundef %112, i32 noundef 0, i32 noundef %113)
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  br label %136

114:                                              ; preds = %88
  %115 = getelementptr inbounds %class.SiftMatchGL, ptr %6, i32 0, i32 4
  %116 = getelementptr inbounds %class.SiftMatchGPU, ptr %6, i32 0, i32 4
  %117 = load i32, ptr %116, align 8, !tbaa !9
  %118 = getelementptr inbounds %class.SiftMatchGPU, ptr %6, i32 0, i32 4
  %119 = load i32, ptr %118, align 8, !tbaa !9
  call void @_ZN10GLTexImage11InitTextureEiii(ptr noundef nonnull align 8 dereferenceable(36) %115, i32 noundef %117, i32 noundef %119, i32 noundef 0)
  %120 = getelementptr inbounds %class.SiftMatchGL, ptr %6, i32 0, i32 5
  %121 = getelementptr inbounds [2 x %class.GLTexImage], ptr %120, i64 0, i64 0
  %122 = getelementptr inbounds %class.SiftMatchGPU, ptr %6, i32 0, i32 4
  %123 = load i32, ptr %122, align 8, !tbaa !9
  %124 = sdiv i32 %123, 16
  %125 = load ptr, ptr %121, align 8, !tbaa !22
  %126 = getelementptr inbounds ptr, ptr %125, i64 6
  %127 = load ptr, ptr %126, align 8
  call void %127(ptr noundef nonnull align 8 dereferenceable(36) %121, i32 noundef 16, i32 noundef %124, i32 noundef 0)
  %128 = getelementptr inbounds %class.SiftMatchGL, ptr %6, i32 0, i32 5
  %129 = getelementptr inbounds [2 x %class.GLTexImage], ptr %128, i64 0, i64 1
  %130 = getelementptr inbounds %class.SiftMatchGPU, ptr %6, i32 0, i32 4
  %131 = load i32, ptr %130, align 8, !tbaa !9
  %132 = sdiv i32 %131, 16
  %133 = load ptr, ptr %129, align 8, !tbaa !22
  %134 = getelementptr inbounds ptr, ptr %133, i64 6
  %135 = load ptr, ptr %134, align 8
  call void %135(ptr noundef nonnull align 8 dereferenceable(36) %129, i32 noundef 16, i32 noundef %132, i32 noundef 0)
  br label %136

136:                                              ; preds = %114, %91
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #3
  ret void
}

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

declare void @_ZN10GLTexImage11InitTextureEiiij(ptr noundef nonnull align 8 dereferenceable(36), i32 noundef, i32 noundef, i32 noundef, i32 noundef) #2

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

declare void @_ZN10GLTexImage11InitTextureEiii(ptr noundef nonnull align 8 dereferenceable(36), i32 noundef, i32 noundef, i32 noundef) unnamed_addr #2

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" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 = { 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 24}
!10 = !{!"_ZTS12SiftMatchGPU", !11, i64 8, !11, i64 12, !6, i64 16, !11, i64 24}
!11 = !{!"int", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!14, !11, i64 424}
!14 = !{!"_ZTS11SiftMatchGL", !10, i64 0, !7, i64 32, !7, i64 112, !15, i64 192, !7, i64 232, !6, i64 312, !6, i64 320, !6, i64 328, !6, i64 336, !11, i64 344, !11, i64 348, !11, i64 352, !11, i64 356, !11, i64 360, !11, i64 364, !11, i64 368, !11, i64 372, !11, i64 376, !11, i64 380, !11, i64 384, !11, i64 388, !7, i64 392, !7, i64 400, !7, i64 408, !11, i64 416, !11, i64 420, !11, i64 424, !11, i64 428, !11, i64 432, !16, i64 440}
!15 = !{!"_ZTS10GLTexImage", !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32}
!16 = !{!"_ZTSSt6vectorIfSaIfEE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIfSaIfEE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!20 = !{!14, !11, i64 420}
!21 = !{!14, !11, i64 428}
!22 = !{!23, !23, i64 0}
!23 = !{!"vtable pointer", !8, 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"

@_ZN11GlobalParam12_texMaxDimGLE = external local_unnamed_addr global i32, align 4
@_ZN11GlobalParam15_SupportNVFloatE = external local_unnamed_addr global i32, align 4
@_ZN11GlobalParam17_SupportTextureRGE = external local_unnamed_addr global i32, align 4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11SiftMatchGL17AllocateSiftMatchEv(ptr noundef nonnull align 8 dereferenceable(464) %0) local_unnamed_addr #0 align 2 {
  %2 = getelementptr inbounds i8, ptr %0, i64 24
  %3 = load i32, ptr %2, align 8, !tbaa !5
  %4 = load i32, ptr @_ZN11GlobalParam12_texMaxDimGLE, align 4, !tbaa !11
  %5 = icmp sgt i32 %3, %4
  br i1 %5, label %6, label %7

6:                                                ; preds = %1
  store i32 %4, ptr %2, align 8, !tbaa !5
  br label %7

7:                                                ; preds = %6, %1
  %8 = phi i32 [ %4, %6 ], [ %3, %1 ]
  %9 = getelementptr inbounds i8, ptr %0, i64 424
  %10 = load i32, ptr %9, align 8, !tbaa !12
  %11 = sdiv i32 %8, %10
  %12 = add i32 %4, -1
  %13 = add i32 %12, %11
  %14 = sdiv i32 %13, %4
  %15 = icmp sgt i32 %14, 1
  br i1 %15, label %16, label %21

16:                                               ; preds = %7
  %17 = getelementptr inbounds i8, ptr %0, i64 420
  %18 = load i32, ptr %17, align 4, !tbaa !19
  %19 = mul nsw i32 %18, %14
  store i32 %19, ptr %17, align 4, !tbaa !19
  %20 = mul nsw i32 %14, %10
  store i32 %20, ptr %9, align 8, !tbaa !12
  %.pre = sdiv i32 %8, %20
  br label %21

21:                                               ; preds = %16, %7
  %.pre-phi = phi i32 [ %.pre, %16 ], [ %11, %7 ]
  %22 = phi i32 [ %20, %16 ], [ %10, %7 ]
  %23 = getelementptr inbounds i8, ptr %0, i64 112
  %24 = getelementptr inbounds i8, ptr %0, i64 428
  %25 = load i32, ptr %24, align 4, !tbaa !20
  %26 = mul nsw i32 %25, %22
  tail call void @_ZN10GLTexImage11InitTextureEiiij(ptr noundef nonnull align 8 dereferenceable(36) %23, i32 noundef %26, i32 noundef %.pre-phi, i32 noundef 0, i32 noundef 32856)
  %27 = getelementptr inbounds i8, ptr %0, i64 152
  %28 = load i32, ptr %9, align 8, !tbaa !12
  %29 = load i32, ptr %24, align 4, !tbaa !20
  %30 = mul nsw i32 %29, %28
  %31 = load i32, ptr %2, align 8, !tbaa !5
  %32 = sdiv i32 %31, %28
  tail call void @_ZN10GLTexImage11InitTextureEiiij(ptr noundef nonnull align 8 dereferenceable(36) %27, i32 noundef %30, i32 noundef %32, i32 noundef 0, i32 noundef 32856)
  %33 = getelementptr inbounds i8, ptr %0, i64 32
  %34 = load i32, ptr %9, align 8, !tbaa !12
  %35 = load i32, ptr %2, align 8, !tbaa !5
  %36 = sdiv i32 %35, %34
  %37 = load ptr, ptr %33, align 8, !tbaa !21
  %38 = getelementptr inbounds i8, ptr %37, i64 48
  %39 = load ptr, ptr %38, align 8
  tail call void %39(ptr noundef nonnull align 8 dereferenceable(36) %33, i32 noundef %34, i32 noundef %36, i32 noundef 0)
  %40 = getelementptr inbounds i8, ptr %0, i64 72
  %41 = load i32, ptr %9, align 8, !tbaa !12
  %42 = load i32, ptr %2, align 8, !tbaa !5
  %43 = sdiv i32 %42, %41
  %44 = load ptr, ptr %40, align 8, !tbaa !21
  %45 = getelementptr inbounds i8, ptr %44, i64 48
  %46 = load ptr, ptr %45, align 8
  tail call void %46(ptr noundef nonnull align 8 dereferenceable(36) %40, i32 noundef %41, i32 noundef %43, i32 noundef 0)
  %47 = load i32, ptr @_ZN11GlobalParam15_SupportNVFloatE, align 4, !tbaa !11
  %48 = icmp ne i32 %47, 0
  %49 = load i32, ptr @_ZN11GlobalParam17_SupportTextureRGE, align 4
  %50 = icmp ne i32 %49, 0
  %or.cond = select i1 %48, i1 true, i1 %50
  br i1 %or.cond, label %51, label %61

51:                                               ; preds = %21
  %52 = select i1 %48, i32 34944, i32 33326
  %53 = getelementptr inbounds i8, ptr %0, i64 192
  %54 = load i32, ptr %2, align 8, !tbaa !5
  tail call void @_ZN10GLTexImage11InitTextureEiiij(ptr noundef nonnull align 8 dereferenceable(36) %53, i32 noundef %54, i32 noundef %54, i32 noundef 0, i32 noundef %52)
  %55 = getelementptr inbounds i8, ptr %0, i64 232
  %56 = load i32, ptr %2, align 8, !tbaa !5
  %57 = sdiv i32 %56, 16
  tail call void @_ZN10GLTexImage11InitTextureEiiij(ptr noundef nonnull align 8 dereferenceable(36) %55, i32 noundef 16, i32 noundef %57, i32 noundef 0, i32 noundef %52)
  %58 = getelementptr inbounds i8, ptr %0, i64 272
  %59 = load i32, ptr %2, align 8, !tbaa !5
  %60 = sdiv i32 %59, 16
  tail call void @_ZN10GLTexImage11InitTextureEiiij(ptr noundef nonnull align 8 dereferenceable(36) %58, i32 noundef 16, i32 noundef %60, i32 noundef 0, i32 noundef %52)
  br label %76

61:                                               ; preds = %21
  %62 = getelementptr inbounds i8, ptr %0, i64 192
  %63 = load i32, ptr %2, align 8, !tbaa !5
  tail call void @_ZN10GLTexImage11InitTextureEiii(ptr noundef nonnull align 8 dereferenceable(36) %62, i32 noundef %63, i32 noundef %63, i32 noundef 0)
  %64 = getelementptr inbounds i8, ptr %0, i64 232
  %65 = load i32, ptr %2, align 8, !tbaa !5
  %66 = sdiv i32 %65, 16
  %67 = load ptr, ptr %64, align 8, !tbaa !21
  %68 = getelementptr inbounds i8, ptr %67, i64 48
  %69 = load ptr, ptr %68, align 8
  tail call void %69(ptr noundef nonnull align 8 dereferenceable(36) %64, i32 noundef 16, i32 noundef %66, i32 noundef 0)
  %70 = getelementptr inbounds i8, ptr %0, i64 272
  %71 = load i32, ptr %2, align 8, !tbaa !5
  %72 = sdiv i32 %71, 16
  %73 = load ptr, ptr %70, align 8, !tbaa !21
  %74 = getelementptr inbounds i8, ptr %73, i64 48
  %75 = load ptr, ptr %74, align 8
  tail call void %75(ptr noundef nonnull align 8 dereferenceable(36) %70, i32 noundef 16, i32 noundef %72, i32 noundef 0)
  br label %76

76:                                               ; preds = %61, %51
  ret void
}

declare void @_ZN10GLTexImage11InitTextureEiiij(ptr noundef nonnull align 8 dereferenceable(36), i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

declare void @_ZN10GLTexImage11InitTextureEiii(ptr noundef nonnull align 8 dereferenceable(36), i32 noundef, i32 noundef, i32 noundef) unnamed_addr #1

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" }
attributes #1 = { "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, !7, i64 24}
!6 = !{!"_ZTS12SiftMatchGPU", !7, i64 8, !7, i64 12, !10, i64 16, !7, i64 24}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !7, i64 424}
!13 = !{!"_ZTS11SiftMatchGL", !6, i64 0, !8, i64 32, !8, i64 112, !14, i64 192, !8, i64 232, !10, i64 312, !10, i64 320, !10, i64 328, !10, i64 336, !7, i64 344, !7, i64 348, !7, i64 352, !7, i64 356, !7, i64 360, !7, i64 364, !7, i64 368, !7, i64 372, !7, i64 376, !7, i64 380, !7, i64 384, !7, i64 388, !8, i64 392, !8, i64 400, !8, i64 408, !7, i64 416, !7, i64 420, !7, i64 424, !7, i64 428, !7, i64 432, !15, i64 440}
!14 = !{!"_ZTS10GLTexImage", !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32}
!15 = !{!"_ZTSSt6vectorIfSaIfEE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIfSaIfEE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!19 = !{!13, !7, i64 420}
!20 = !{!13, !7, i64 428}
!21 = !{!22, !22, i64 0}
!22 = !{!"vtable pointer", !9, i64 0}


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