; LLVM IR from TheNachoBIT/GeoFenix-Engine :: Libraries/SOIL2/include (SOIL2)

; 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.PKMHeader = type { [6 x i8], i16, i8, i8, i8, i8, i8, i8, i8, i8 }

@result_string_pointer = external dso_local global ptr, align 8
@soilGlCompressedTexImage2D = external hidden global ptr, align 8
@.str.60 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.64 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [32 x i8], align 1

; 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

declare void @glGetIntegerv(i32 noundef, ptr noundef) #1

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local i32 @SOIL_direct_load_ETC1_from_memory(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #3 {
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i64, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !9
  store i32 %2, ptr %8, align 4, !tbaa !9
  store i32 %3, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 0, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %20 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %20, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  store i32 3553, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %21 = load i32, ptr %7, align 4, !tbaa !9
  %22 = sub nsw i32 %21, 16
  %23 = sext i32 %22 to i64
  store i64 %23, ptr %15, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  %24 = load ptr, ptr %6, align 8, !tbaa !5
  %25 = getelementptr inbounds i8, ptr %24, i64 16
  store ptr %25, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  %26 = call i32 @query_ETC1_capability()
  %27 = icmp ne i32 %26, 1
  br i1 %27, label %28, label %29

28:                                               ; preds = %4
  store ptr @.str.64, ptr @result_string_pointer, align 8, !tbaa !5
  store i32 0, ptr %5, align 4
  store i32 1, ptr %18, align 4
  br label %124

29:                                               ; preds = %4
  %30 = load ptr, ptr %11, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.PKMHeader, ptr %30, i32 0, i32 0
  %32 = getelementptr inbounds [6 x i8], ptr %31, i64 0, i64 0
  %33 = call i32 @strcmp(ptr noundef %32, ptr noundef @.str.65) #5
  %34 = icmp ne i32 0, %33
  br i1 %34, label %35, label %36

35:                                               ; preds = %29
  store ptr @.str.66, ptr @result_string_pointer, align 8, !tbaa !5
  store i32 0, ptr %5, align 4
  store i32 1, ptr %18, align 4
  br label %124

36:                                               ; preds = %29
  %37 = load ptr, ptr %11, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.PKMHeader, ptr %37, i32 0, i32 6
  %39 = load i8, ptr %38, align 2, !tbaa !13
  %40 = zext i8 %39 to i32
  %41 = shl i32 %40, 8
  %42 = load ptr, ptr %11, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.PKMHeader, ptr %42, i32 0, i32 7
  %44 = load i8, ptr %43, align 1, !tbaa !16
  %45 = zext i8 %44 to i32
  %46 = or i32 %41, %45
  store i32 %46, ptr %13, align 4, !tbaa !9
  %47 = load ptr, ptr %11, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.PKMHeader, ptr %47, i32 0, i32 8
  %49 = load i8, ptr %48, align 2, !tbaa !17
  %50 = zext i8 %49 to i32
  %51 = shl i32 %50, 8
  %52 = load ptr, ptr %11, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.PKMHeader, ptr %52, i32 0, i32 9
  %54 = load i8, ptr %53, align 1, !tbaa !18
  %55 = zext i8 %54 to i32
  %56 = or i32 %51, %55
  store i32 %56, ptr %14, align 4, !tbaa !9
  %57 = load i32, ptr %13, align 4, !tbaa !9
  %58 = add i32 %57, 3
  %59 = and i32 %58, -4
  %60 = load i32, ptr %14, align 4, !tbaa !9
  %61 = add i32 %60, 3
  %62 = and i32 %61, -4
  %63 = mul i32 %59, %62
  %64 = lshr i32 %63, 1
  %65 = zext i32 %64 to i64
  store i64 %65, ptr %15, align 8, !tbaa !11
  %66 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %66, ptr %10, align 4, !tbaa !9
  %67 = load i32, ptr %10, align 4, !tbaa !9
  %68 = icmp eq i32 %67, 0
  br i1 %68, label %69, label %70

69:                                               ; preds = %36
  call void @glGenTextures(i32 noundef 1, ptr noundef %10)
  br label %70

70:                                               ; preds = %69, %36
  %71 = load i32, ptr %12, align 4, !tbaa !9
  %72 = load i32, ptr %10, align 4, !tbaa !9
  call void @glBindTexture(i32 noundef %71, i32 noundef %72)
  %73 = call i32 @glGetError()
  %74 = icmp ne i32 %73, 0
  br i1 %74, label %75, label %76

75:                                               ; preds = %70
  store ptr @.str.60, ptr @result_string_pointer, align 8, !tbaa !5
  store i32 0, ptr %5, align 4
  store i32 1, ptr %18, align 4
  br label %124

76:                                               ; preds = %70
  call void @glGetIntegerv(i32 noundef 3317, ptr noundef %17)
  %77 = load i32, ptr %17, align 4, !tbaa !9
  %78 = icmp ne i32 1, %77
  br i1 %78, label %79, label %80

79:                                               ; preds = %76
  call void @glPixelStorei(i32 noundef 3317, i32 noundef 1)
  br label %80

80:                                               ; preds = %79, %76
  %81 = load ptr, ptr @soilGlCompressedTexImage2D, align 8, !tbaa !5
  %82 = load i32, ptr %12, align 4, !tbaa !9
  %83 = load i32, ptr %13, align 4, !tbaa !9
  %84 = load i32, ptr %14, align 4, !tbaa !9
  %85 = load i64, ptr %15, align 8, !tbaa !11
  %86 = trunc i64 %85 to i32
  %87 = load ptr, ptr %16, align 8, !tbaa !5
  call void %81(i32 noundef %82, i32 noundef 0, i32 noundef 36196, i32 noundef %83, i32 noundef %84, i32 noundef 0, i32 noundef %86, ptr noundef %87)
  %88 = call i32 @glGetError()
  %89 = icmp ne i32 %88, 0
  br i1 %89, label %90, label %96

90:                                               ; preds = %80
  store ptr @.str.62, ptr @result_string_pointer, align 8, !tbaa !5
  %91 = load i32, ptr %17, align 4, !tbaa !9
  %92 = icmp ne i32 1, %91
  br i1 %92, label %93, label %95

93:                                               ; preds = %90
  %94 = load i32, ptr %17, align 4, !tbaa !9
  call void @glPixelStorei(i32 noundef 3317, i32 noundef %94)
  br label %95

95:                                               ; preds = %93, %90
  store i32 0, ptr %5, align 4
  store i32 1, ptr %18, align 4
  br label %124

96:                                               ; preds = %80
  %97 = load i32, ptr %17, align 4, !tbaa !9
  %98 = icmp ne i32 1, %97
  br i1 %98, label %99, label %101

99:                                               ; preds = %96
  %100 = load i32, ptr %17, align 4, !tbaa !9
  call void @glPixelStorei(i32 noundef 3317, i32 noundef %100)
  br label %101

101:                                              ; preds = %99, %96
  %102 = load i32, ptr %10, align 4, !tbaa !9
  %103 = icmp ne i32 %102, 0
  br i1 %103, label %104, label %122

104:                                              ; preds = %101
  %105 = load i32, ptr %12, align 4, !tbaa !9
  call void @glTexParameteri(i32 noundef %105, i32 noundef 10240, i32 noundef 9729)
  %106 = load i32, ptr %12, align 4, !tbaa !9
  call void @glTexParameteri(i32 noundef %106, i32 noundef 10241, i32 noundef 9729)
  %107 = load i32, ptr %9, align 4, !tbaa !9
  %108 = and i32 %107, 4
  %109 = icmp ne i32 %108, 0
  br i1 %109, label %110, label %114

110:                                              ; preds = %104
  %111 = load i32, ptr %12, align 4, !tbaa !9
  call void @glTexParameteri(i32 noundef %111, i32 noundef 10242, i32 noundef 10497)
  %112 = load i32, ptr %12, align 4, !tbaa !9
  call void @glTexParameteri(i32 noundef %112, i32 noundef 10243, i32 noundef 10497)
  %113 = load i32, ptr %12, align 4, !tbaa !9
  call void @glTexParameteri(i32 noundef %113, i32 noundef 32882, i32 noundef 10497)
  br label %121

114:                                              ; preds = %104
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  store i32 33071, ptr %19, align 4, !tbaa !9
  %115 = load i32, ptr %12, align 4, !tbaa !9
  %116 = load i32, ptr %19, align 4, !tbaa !9
  call void @glTexParameteri(i32 noundef %115, i32 noundef 10242, i32 noundef %116)
  %117 = load i32, ptr %12, align 4, !tbaa !9
  %118 = load i32, ptr %19, align 4, !tbaa !9
  call void @glTexParameteri(i32 noundef %117, i32 noundef 10243, i32 noundef %118)
  %119 = load i32, ptr %12, align 4, !tbaa !9
  %120 = load i32, ptr %19, align 4, !tbaa !9
  call void @glTexParameteri(i32 noundef %119, i32 noundef 32882, i32 noundef %120)
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  br label %121

121:                                              ; preds = %114, %110
  br label %122

122:                                              ; preds = %121, %101
  %123 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %123, ptr %5, align 4
  store i32 1, ptr %18, align 4
  br label %124

124:                                              ; preds = %122, %95, %75, %35, %28
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  %125 = load i32, ptr %5, align 4
  ret i32 %125
}

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

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

declare void @glPixelStorei(i32 noundef, i32 noundef) #1

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

declare i32 @glGetError() #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @query_ETC1_capability() #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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" }
attributes #2 = { nounwind willreturn memory(read) "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 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 }
attributes #5 = { nounwind willreturn memory(read) }

!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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !7, i64 12}
!14 = !{!"", !7, i64 0, !15, i64 6, !7, i64 8, !7, i64 9, !7, i64 10, !7, i64 11, !7, i64 12, !7, i64 13, !7, i64 14, !7, i64 15}
!15 = !{!"short", !7, i64 0}
!16 = !{!14, !7, i64 13}
!17 = !{!14, !7, i64 14}
!18 = !{!14, !7, i64 15}


; 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"

@result_string_pointer = external dso_local local_unnamed_addr global ptr, align 8
@soilGlCompressedTexImage2D = external hidden local_unnamed_addr global ptr, align 8
@.str.60 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.64 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [32 x i8], align 1

; 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

declare void @glGetIntegerv(i32 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local i32 @SOIL_direct_load_ETC1_from_memory(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #3 {
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #4
  %7 = getelementptr inbounds i8, ptr %0, i64 16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #4
  %8 = tail call i32 @query_ETC1_capability()
  %.not = icmp eq i32 %8, 1
  br i1 %.not, label %10, label %9

9:                                                ; preds = %4
  store ptr @.str.64, ptr @result_string_pointer, align 8, !tbaa !5
  br label %59

10:                                               ; preds = %4
  %11 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str.65) #5
  %.not31 = icmp eq i32 %11, 0
  br i1 %.not31, label %13, label %12

12:                                               ; preds = %10
  store ptr @.str.66, ptr @result_string_pointer, align 8, !tbaa !5
  br label %59

13:                                               ; preds = %10
  %14 = getelementptr inbounds i8, ptr %0, i64 12
  %15 = load i8, ptr %14, align 2, !tbaa !9
  %16 = zext i8 %15 to i32
  %17 = shl nuw nsw i32 %16, 8
  %18 = getelementptr inbounds i8, ptr %0, i64 13
  %19 = load i8, ptr %18, align 1, !tbaa !12
  %20 = zext i8 %19 to i32
  %21 = or disjoint i32 %17, %20
  %22 = getelementptr inbounds i8, ptr %0, i64 14
  %23 = load i8, ptr %22, align 2, !tbaa !13
  %24 = zext i8 %23 to i32
  %25 = shl nuw nsw i32 %24, 8
  %26 = getelementptr inbounds i8, ptr %0, i64 15
  %27 = load i8, ptr %26, align 1, !tbaa !14
  %28 = zext i8 %27 to i32
  %29 = or disjoint i32 %25, %28
  %30 = add nuw nsw i32 %21, 3
  %31 = and i32 %30, 131068
  %32 = add nuw nsw i32 %29, 3
  %33 = and i32 %32, 131068
  %34 = mul i32 %33, %31
  %35 = lshr exact i32 %34, 1
  store i32 %2, ptr %5, align 4, !tbaa !15
  %36 = icmp eq i32 %2, 0
  br i1 %36, label %37, label %38

37:                                               ; preds = %13
  call void @glGenTextures(i32 noundef 1, ptr noundef nonnull %5) #4
  %.pre = load i32, ptr %5, align 4, !tbaa !15
  br label %38

38:                                               ; preds = %37, %13
  %39 = phi i32 [ %.pre, %37 ], [ %2, %13 ]
  call void @glBindTexture(i32 noundef 3553, i32 noundef %39) #4
  %40 = call i32 @glGetError() #4
  %.not32 = icmp eq i32 %40, 0
  br i1 %.not32, label %42, label %41

41:                                               ; preds = %38
  store ptr @.str.60, ptr @result_string_pointer, align 8, !tbaa !5
  br label %59

42:                                               ; preds = %38
  call void @glGetIntegerv(i32 noundef 3317, ptr noundef nonnull %6) #4
  %43 = load i32, ptr %6, align 4, !tbaa !15
  %.not33 = icmp eq i32 %43, 1
  br i1 %.not33, label %45, label %44

44:                                               ; preds = %42
  call void @glPixelStorei(i32 noundef 3317, i32 noundef 1) #4
  br label %45

45:                                               ; preds = %44, %42
  %46 = load ptr, ptr @soilGlCompressedTexImage2D, align 8, !tbaa !5
  call void %46(i32 noundef 3553, i32 noundef 0, i32 noundef 36196, i32 noundef %21, i32 noundef %29, i32 noundef 0, i32 noundef %35, ptr noundef nonnull %7) #4
  %47 = call i32 @glGetError() #4
  %.not34 = icmp eq i32 %47, 0
  br i1 %.not34, label %51, label %48

48:                                               ; preds = %45
  store ptr @.str.62, ptr @result_string_pointer, align 8, !tbaa !5
  %49 = load i32, ptr %6, align 4, !tbaa !15
  %.not38 = icmp eq i32 %49, 1
  br i1 %.not38, label %59, label %50

50:                                               ; preds = %48
  call void @glPixelStorei(i32 noundef 3317, i32 noundef %49) #4
  br label %59

51:                                               ; preds = %45
  %52 = load i32, ptr %6, align 4, !tbaa !15
  %.not35 = icmp eq i32 %52, 1
  br i1 %.not35, label %54, label %53

53:                                               ; preds = %51
  call void @glPixelStorei(i32 noundef 3317, i32 noundef %52) #4
  br label %54

54:                                               ; preds = %53, %51
  %55 = load i32, ptr %5, align 4, !tbaa !15
  %.not36 = icmp eq i32 %55, 0
  br i1 %.not36, label %57, label %.sink.split

.sink.split:                                      ; preds = %54
  call void @glTexParameteri(i32 noundef 3553, i32 noundef 10240, i32 noundef 9729) #4
  call void @glTexParameteri(i32 noundef 3553, i32 noundef 10241, i32 noundef 9729) #4
  %56 = and i32 %3, 4
  %.not37 = icmp eq i32 %56, 0
  %. = select i1 %.not37, i32 33071, i32 10497
  call void @glTexParameteri(i32 noundef 3553, i32 noundef 10242, i32 noundef %.) #4
  call void @glTexParameteri(i32 noundef 3553, i32 noundef 10243, i32 noundef %.) #4
  call void @glTexParameteri(i32 noundef 3553, i32 noundef 32882, i32 noundef %.) #4
  br label %57

57:                                               ; preds = %.sink.split, %54
  %58 = load i32, ptr %5, align 4, !tbaa !15
  br label %59

59:                                               ; preds = %48, %50, %57, %41, %12, %9
  %.0 = phi i32 [ 0, %9 ], [ 0, %12 ], [ 0, %41 ], [ %58, %57 ], [ 0, %50 ], [ 0, %48 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #4
  ret i32 %.0
}

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

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

declare void @glPixelStorei(i32 noundef, i32 noundef) local_unnamed_addr #1

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

declare i32 @glGetError() local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @query_ETC1_capability() local_unnamed_addr #3

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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" }
attributes #2 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 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 }
attributes #5 = { nounwind willreturn memory(read) }

!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/C++ TBAA"}
!9 = !{!10, !7, i64 12}
!10 = !{!"", !7, i64 0, !11, i64 6, !7, i64 8, !7, i64 9, !7, i64 10, !7, i64 11, !7, i64 12, !7, i64 13, !7, i64 14, !7, i64 15}
!11 = !{!"short", !7, i64 0}
!12 = !{!10, !7, i64 13}
!13 = !{!10, !7, i64 14}
!14 = !{!10, !7, i64 15}
!15 = !{!16, !16, i64 0}
!16 = !{!"int", !7, i64 0}


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