; LLVM IR from Dragons-Lake/REI :: sources/REI_Integration/3rdParty/nanovg (nanovg)

; 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.NVGcontext = type { %struct.NVGparams, ptr, i32, i32, float, float, [32 x %struct.NVGstate], i32, ptr, float, float, float, float, ptr, [4 x i32], i32, i32, i32, i32, i32 }
%struct.NVGparams = type { ptr, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.NVGstate = type { %struct.NVGcompositeOperationState, %struct.NVGpaint, %struct.NVGpaint, float, float, i32, i32, float, [6 x float], %struct.NVGscissor, float, float, float, float, i32, i32 }
%struct.NVGcompositeOperationState = type { i32, i32, i32, i32 }
%struct.NVGpaint = type { [6 x float], [2 x float], float, float, %struct.NVGcolor, %struct.NVGcolor, i32 }
%struct.NVGcolor = type { %union.anon }
%union.anon = type { [4 x float] }
%struct.NVGscissor = type { [6 x float], [2 x float] }

; 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: nounwind uwtable
declare dso_local void @nvgDeleteImage(ptr noundef, i32 noundef) #1

; Function Attrs: nounwind uwtable
define dso_local void @nvgEndFrame(ptr noundef %0) #1 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #2
  %12 = load ptr, ptr %2, align 8, !tbaa !5
  %13 = call ptr @nvg__getState(ptr noundef %12)
  store ptr %13, ptr %3, align 8, !tbaa !5
  %14 = load ptr, ptr %2, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.NVGcontext, ptr %14, i32 0, i32 0
  %16 = getelementptr inbounds %struct.NVGparams, ptr %15, i32 0, i32 9
  %17 = load ptr, ptr %16, align 8, !tbaa !9
  %18 = load ptr, ptr %2, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.NVGcontext, ptr %18, i32 0, i32 0
  %20 = getelementptr inbounds %struct.NVGparams, ptr %19, i32 0, i32 0
  %21 = load ptr, ptr %20, align 8, !tbaa !14
  %22 = load ptr, ptr %3, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.NVGstate, ptr %22, i32 0, i32 0
  %24 = getelementptr inbounds { i64, i64 }, ptr %23, i32 0, i32 0
  %25 = load i64, ptr %24, align 4
  %26 = getelementptr inbounds { i64, i64 }, ptr %23, i32 0, i32 1
  %27 = load i64, ptr %26, align 4
  call void %17(ptr noundef %21, i64 %25, i64 %27)
  %28 = load ptr, ptr %2, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.NVGcontext, ptr %28, i32 0, i32 15
  %30 = load i32, ptr %29, align 8, !tbaa !15
  %31 = icmp ne i32 %30, 0
  br i1 %31, label %32, label %136

32:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #2
  %33 = load ptr, ptr %2, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.NVGcontext, ptr %33, i32 0, i32 14
  %35 = load ptr, ptr %2, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.NVGcontext, ptr %35, i32 0, i32 15
  %37 = load i32, ptr %36, align 8, !tbaa !15
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds [4 x i32], ptr %34, i64 0, i64 %38
  %40 = load i32, ptr %39, align 4, !tbaa !16
  store i32 %40, ptr %4, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #2
  %41 = load i32, ptr %4, align 4, !tbaa !16
  %42 = icmp eq i32 %41, 0
  br i1 %42, label %43, label %44

43:                                               ; preds = %32
  store i32 1, ptr %9, align 4
  br label %133

44:                                               ; preds = %32
  %45 = load ptr, ptr %2, align 8, !tbaa !5
  %46 = load i32, ptr %4, align 4, !tbaa !16
  call void @nvgImageSize(ptr noundef %45, i32 noundef %46, ptr noundef %7, ptr noundef %8)
  store i32 0, ptr %6, align 4, !tbaa !16
  store i32 0, ptr %5, align 4, !tbaa !16
  br label %47

47:                                               ; preds = %99, %44
  %48 = load i32, ptr %5, align 4, !tbaa !16
  %49 = load ptr, ptr %2, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.NVGcontext, ptr %49, i32 0, i32 15
  %51 = load i32, ptr %50, align 8, !tbaa !15
  %52 = icmp slt i32 %48, %51
  br i1 %52, label %53, label %102

53:                                               ; preds = %47
  %54 = load ptr, ptr %2, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.NVGcontext, ptr %54, i32 0, i32 14
  %56 = load i32, ptr %5, align 4, !tbaa !16
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [4 x i32], ptr %55, i64 0, i64 %57
  %59 = load i32, ptr %58, align 4, !tbaa !16
  %60 = icmp ne i32 %59, 0
  br i1 %60, label %61, label %98

61:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #2
  %62 = load ptr, ptr %2, align 8, !tbaa !5
  %63 = load ptr, ptr %2, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.NVGcontext, ptr %63, i32 0, i32 14
  %65 = load i32, ptr %5, align 4, !tbaa !16
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [4 x i32], ptr %64, i64 0, i64 %66
  %68 = load i32, ptr %67, align 4, !tbaa !16
  call void @nvgImageSize(ptr noundef %62, i32 noundef %68, ptr noundef %10, ptr noundef %11)
  %69 = load i32, ptr %10, align 4, !tbaa !16
  %70 = load i32, ptr %7, align 4, !tbaa !16
  %71 = icmp slt i32 %69, %70
  br i1 %71, label %76, label %72

72:                                               ; preds = %61
  %73 = load i32, ptr %11, align 4, !tbaa !16
  %74 = load i32, ptr %8, align 4, !tbaa !16
  %75 = icmp slt i32 %73, %74
  br i1 %75, label %76, label %84

76:                                               ; preds = %72, %61
  %77 = load ptr, ptr %2, align 8, !tbaa !5
  %78 = load ptr, ptr %2, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.NVGcontext, ptr %78, i32 0, i32 14
  %80 = load i32, ptr %5, align 4, !tbaa !16
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds [4 x i32], ptr %79, i64 0, i64 %81
  %83 = load i32, ptr %82, align 4, !tbaa !16
  call void @nvgDeleteImage(ptr noundef %77, i32 noundef %83)
  br label %97

84:                                               ; preds = %72
  %85 = load ptr, ptr %2, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.NVGcontext, ptr %85, i32 0, i32 14
  %87 = load i32, ptr %5, align 4, !tbaa !16
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds [4 x i32], ptr %86, i64 0, i64 %88
  %90 = load i32, ptr %89, align 4, !tbaa !16
  %91 = load ptr, ptr %2, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.NVGcontext, ptr %91, i32 0, i32 14
  %93 = load i32, ptr %6, align 4, !tbaa !16
  %94 = add nsw i32 %93, 1
  store i32 %94, ptr %6, align 4, !tbaa !16
  %95 = sext i32 %93 to i64
  %96 = getelementptr inbounds [4 x i32], ptr %92, i64 0, i64 %95
  store i32 %90, ptr %96, align 4, !tbaa !16
  br label %97

97:                                               ; preds = %84, %76
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #2
  br label %98

98:                                               ; preds = %97, %53
  br label %99

99:                                               ; preds = %98
  %100 = load i32, ptr %5, align 4, !tbaa !16
  %101 = add nsw i32 %100, 1
  store i32 %101, ptr %5, align 4, !tbaa !16
  br label %47, !llvm.loop !17

102:                                              ; preds = %47
  %103 = load ptr, ptr %2, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.NVGcontext, ptr %103, i32 0, i32 14
  %105 = getelementptr inbounds [4 x i32], ptr %104, i64 0, i64 0
  %106 = load i32, ptr %105, align 8, !tbaa !16
  %107 = load ptr, ptr %2, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.NVGcontext, ptr %107, i32 0, i32 14
  %109 = load i32, ptr %6, align 4, !tbaa !16
  %110 = add nsw i32 %109, 1
  store i32 %110, ptr %6, align 4, !tbaa !16
  %111 = sext i32 %109 to i64
  %112 = getelementptr inbounds [4 x i32], ptr %108, i64 0, i64 %111
  store i32 %106, ptr %112, align 4, !tbaa !16
  %113 = load i32, ptr %4, align 4, !tbaa !16
  %114 = load ptr, ptr %2, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.NVGcontext, ptr %114, i32 0, i32 14
  %116 = getelementptr inbounds [4 x i32], ptr %115, i64 0, i64 0
  store i32 %113, ptr %116, align 8, !tbaa !16
  %117 = load ptr, ptr %2, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.NVGcontext, ptr %117, i32 0, i32 15
  store i32 0, ptr %118, align 8, !tbaa !15
  %119 = load i32, ptr %6, align 4, !tbaa !16
  store i32 %119, ptr %5, align 4, !tbaa !16
  br label %120

120:                                              ; preds = %129, %102
  %121 = load i32, ptr %5, align 4, !tbaa !16
  %122 = icmp slt i32 %121, 4
  br i1 %122, label %123, label %132

123:                                              ; preds = %120
  %124 = load ptr, ptr %2, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.NVGcontext, ptr %124, i32 0, i32 14
  %126 = load i32, ptr %5, align 4, !tbaa !16
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds [4 x i32], ptr %125, i64 0, i64 %127
  store i32 0, ptr %128, align 4, !tbaa !16
  br label %129

129:                                              ; preds = %123
  %130 = load i32, ptr %5, align 4, !tbaa !16
  %131 = add nsw i32 %130, 1
  store i32 %131, ptr %5, align 4, !tbaa !16
  br label %120, !llvm.loop !19

132:                                              ; preds = %120
  store i32 0, ptr %9, align 4
  br label %133

133:                                              ; preds = %132, %43
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #2
  %134 = load i32, ptr %9, align 4
  switch i32 %134, label %137 [
    i32 0, label %135
  ]

135:                                              ; preds = %133
  br label %136

136:                                              ; preds = %135, %1
  store i32 0, ptr %9, align 4
  br label %137

137:                                              ; preds = %136, %133
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #2
  %138 = load i32, ptr %9, align 4
  switch i32 %138, label %140 [
    i32 0, label %139
    i32 1, label %139
  ]

139:                                              ; preds = %137, %137
  ret void

140:                                              ; preds = %137
  unreachable
}

; Function Attrs: nounwind uwtable
declare hidden ptr @nvg__getState(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @nvgImageSize(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { 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/C++ TBAA"}
!9 = !{!10, !6, i64 72}
!10 = !{!"NVGcontext", !11, i64 0, !6, i64 112, !12, i64 120, !12, i64 124, !13, i64 128, !13, i64 132, !7, i64 136, !12, i64 8712, !6, i64 8720, !13, i64 8728, !13, i64 8732, !13, i64 8736, !13, i64 8740, !6, i64 8744, !7, i64 8752, !12, i64 8768, !12, i64 8772, !12, i64 8776, !12, i64 8780, !12, i64 8784}
!11 = !{!"NVGparams", !6, i64 0, !12, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104}
!12 = !{!"int", !7, i64 0}
!13 = !{!"float", !7, i64 0}
!14 = !{!10, !6, i64 0}
!15 = !{!10, !12, i64 8768}
!16 = !{!12, !12, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}


; 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 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: nounwind uwtable
declare dso_local void @nvgDeleteImage(ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @nvgEndFrame(ptr noundef %0) local_unnamed_addr #1 {
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = tail call ptr @nvg__getState(ptr noundef %0)
  %7 = getelementptr inbounds i8, ptr %0, i64 72
  %8 = load ptr, ptr %7, align 8, !tbaa !5
  %9 = load ptr, ptr %0, align 8, !tbaa !13
  %10 = load i64, ptr %6, align 4
  %11 = getelementptr inbounds i8, ptr %6, i64 8
  %12 = load i64, ptr %11, align 4
  tail call void %8(ptr noundef %9, i64 %10, i64 %12) #3
  %13 = getelementptr inbounds i8, ptr %0, i64 8768
  %14 = load i32, ptr %13, align 8, !tbaa !14
  %.not = icmp eq i32 %14, 0
  br i1 %.not, label %57, label %15

15:                                               ; preds = %1
  %16 = getelementptr inbounds i8, ptr %0, i64 8752
  %17 = sext i32 %14 to i64
  %18 = getelementptr inbounds [4 x i32], ptr %16, i64 0, i64 %17
  %19 = load i32, ptr %18, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #3
  %.not42 = icmp eq i32 %19, 0
  br i1 %.not42, label %.critedge, label %20

20:                                               ; preds = %15
  call void @nvgImageSize(ptr noundef nonnull %0, i32 noundef %19, ptr noundef nonnull %2, ptr noundef nonnull %3)
  %21 = load i32, ptr %13, align 8, !tbaa !14
  %22 = icmp sgt i32 %21, 0
  br i1 %22, label %.lr.ph, label %._crit_edge.thread

._crit_edge.thread:                               ; preds = %20
  store i32 %19, ptr %16, align 8, !tbaa !15
  store i32 0, ptr %13, align 8, !tbaa !14
  br label %.lr.ph47.preheader

.lr.ph:                                           ; preds = %20, %42
  %23 = phi i32 [ %43, %42 ], [ %21, %20 ]
  %indvars.iv = phi i64 [ %indvars.iv.next, %42 ], [ 0, %20 ]
  %.03644 = phi i32 [ %.2, %42 ], [ 0, %20 ]
  %24 = getelementptr inbounds [4 x i32], ptr %16, i64 0, i64 %indvars.iv
  %25 = load i32, ptr %24, align 4, !tbaa !15
  %.not41 = icmp eq i32 %25, 0
  br i1 %.not41, label %42, label %26

26:                                               ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #3
  call void @nvgImageSize(ptr noundef nonnull %0, i32 noundef %25, ptr noundef nonnull %4, ptr noundef nonnull %5)
  %27 = load i32, ptr %4, align 4, !tbaa !15
  %28 = load i32, ptr %2, align 4, !tbaa !15
  %29 = icmp slt i32 %27, %28
  br i1 %29, label %34, label %30

30:                                               ; preds = %26
  %31 = load i32, ptr %5, align 4, !tbaa !15
  %32 = load i32, ptr %3, align 4, !tbaa !15
  %33 = icmp slt i32 %31, %32
  br i1 %33, label %34, label %36

34:                                               ; preds = %30, %26
  %35 = load i32, ptr %24, align 4, !tbaa !15
  call void @nvgDeleteImage(ptr noundef nonnull %0, i32 noundef %35)
  br label %41

36:                                               ; preds = %30
  %37 = load i32, ptr %24, align 4, !tbaa !15
  %38 = add nsw i32 %.03644, 1
  %39 = sext i32 %.03644 to i64
  %40 = getelementptr inbounds [4 x i32], ptr %16, i64 0, i64 %39
  store i32 %37, ptr %40, align 4, !tbaa !15
  br label %41

41:                                               ; preds = %36, %34
  %.1 = phi i32 [ %.03644, %34 ], [ %38, %36 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #3
  %.pre = load i32, ptr %13, align 8, !tbaa !14
  br label %42

42:                                               ; preds = %.lr.ph, %41
  %43 = phi i32 [ %.pre, %41 ], [ %23, %.lr.ph ]
  %.2 = phi i32 [ %.1, %41 ], [ %.03644, %.lr.ph ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %44 = sext i32 %43 to i64
  %45 = icmp slt i64 %indvars.iv.next, %44
  br i1 %45, label %.lr.ph, label %._crit_edge, !llvm.loop !16

._crit_edge:                                      ; preds = %42
  %46 = load i32, ptr %16, align 8, !tbaa !15
  %47 = sext i32 %.2 to i64
  %48 = getelementptr inbounds [4 x i32], ptr %16, i64 0, i64 %47
  store i32 %46, ptr %48, align 4, !tbaa !15
  store i32 %19, ptr %16, align 8, !tbaa !15
  store i32 0, ptr %13, align 8, !tbaa !14
  %49 = icmp slt i32 %.2, 3
  br i1 %49, label %.lr.ph47.preheader, label %._crit_edge48

.lr.ph47.preheader:                               ; preds = %._crit_edge.thread, %._crit_edge
  %50 = phi i64 [ 0, %._crit_edge.thread ], [ %47, %._crit_edge ]
  %.036.lcssa54 = phi i32 [ 0, %._crit_edge.thread ], [ %.2, %._crit_edge ]
  %51 = shl nsw i64 %50, 2
  %52 = getelementptr i8, ptr %0, i64 %51
  %scevgep = getelementptr i8, ptr %52, i64 8756
  %53 = sub i32 2, %.036.lcssa54
  %54 = zext i32 %53 to i64
  %55 = shl nuw nsw i64 %54, 2
  %56 = add nuw nsw i64 %55, 4
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(1) %scevgep, i8 0, i64 %56, i1 false), !tbaa !15
  br label %._crit_edge48

._crit_edge48:                                    ; preds = %.lr.ph47.preheader, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #3
  br label %57

.critedge:                                        ; preds = %15
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #3
  br label %57

57:                                               ; preds = %._crit_edge48, %1, %.critedge
  ret void
}

; Function Attrs: nounwind uwtable
declare hidden ptr @nvg__getState(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @nvgImageSize(ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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, !8, i64 72}
!6 = !{!"NVGcontext", !7, i64 0, !8, i64 112, !11, i64 120, !11, i64 124, !12, i64 128, !12, i64 132, !9, i64 136, !11, i64 8712, !8, i64 8720, !12, i64 8728, !12, i64 8732, !12, i64 8736, !12, i64 8740, !8, i64 8744, !9, i64 8752, !11, i64 8768, !11, i64 8772, !11, i64 8776, !11, i64 8780, !11, i64 8784}
!7 = !{!"NVGparams", !8, i64 0, !11, i64 8, !8, i64 16, !8, i64 24, !8, i64 32, !8, i64 40, !8, i64 48, !8, i64 56, !8, i64 64, !8, i64 72, !8, i64 80, !8, i64 88, !8, i64 96, !8, i64 104}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!"float", !9, i64 0}
!13 = !{!6, !8, i64 0}
!14 = !{!6, !11, i64 8768}
!15 = !{!11, !11, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopIdiomRecognizePass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass