; 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.FONSparams = type { i32, i32, i8, ptr, ptr, ptr, ptr, ptr, ptr }
%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: nounwind uwtable
define dso_local ptr @nvgCreateInternal(ptr noundef %0) #0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca %struct.FONSparams, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 64, ptr %4) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  %8 = call noalias ptr @malloc(i64 noundef 8792) #8
  store ptr %8, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  %9 = load ptr, ptr %5, align 8, !tbaa !5
  %10 = icmp eq ptr %9, null
  br i1 %10, label %11, label %12

11:                                               ; preds = %1
  br label %110

12:                                               ; preds = %1
  %13 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.memset.p0.i64(ptr align 8 %13, i8 0, i64 8792, i1 false)
  %14 = load ptr, ptr %5, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.NVGcontext, ptr %14, i32 0, i32 0
  %16 = load ptr, ptr %3, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %15, ptr align 8 %16, i64 112, i1 false), !tbaa.struct !9
  store i32 0, ptr %6, align 4, !tbaa !10
  br label %17

17:                                               ; preds = %26, %12
  %18 = load i32, ptr %6, align 4, !tbaa !10
  %19 = icmp slt i32 %18, 4
  br i1 %19, label %20, label %29

20:                                               ; preds = %17
  %21 = load ptr, ptr %5, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.NVGcontext, ptr %21, i32 0, i32 14
  %23 = load i32, ptr %6, align 4, !tbaa !10
  %24 = sext i32 %23 to i64
  %25 = getelementptr inbounds [4 x i32], ptr %22, i64 0, i64 %24
  store i32 0, ptr %25, align 4, !tbaa !10
  br label %26

26:                                               ; preds = %20
  %27 = load i32, ptr %6, align 4, !tbaa !10
  %28 = add nsw i32 %27, 1
  store i32 %28, ptr %6, align 4, !tbaa !10
  br label %17, !llvm.loop !12

29:                                               ; preds = %17
  %30 = call noalias ptr @malloc(i64 noundef 1024) #8
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.NVGcontext, ptr %31, i32 0, i32 1
  store ptr %30, ptr %32, align 8, !tbaa !14
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.NVGcontext, ptr %33, i32 0, i32 1
  %35 = load ptr, ptr %34, align 8, !tbaa !14
  %36 = icmp ne ptr %35, null
  br i1 %36, label %38, label %37

37:                                               ; preds = %29
  br label %110

38:                                               ; preds = %29
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.NVGcontext, ptr %39, i32 0, i32 3
  store i32 0, ptr %40, align 4, !tbaa !18
  %41 = load ptr, ptr %5, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.NVGcontext, ptr %41, i32 0, i32 2
  store i32 256, ptr %42, align 8, !tbaa !19
  %43 = call ptr @nvg__allocPathCache()
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.NVGcontext, ptr %44, i32 0, i32 8
  store ptr %43, ptr %45, align 8, !tbaa !20
  %46 = load ptr, ptr %5, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.NVGcontext, ptr %46, i32 0, i32 8
  %48 = load ptr, ptr %47, align 8, !tbaa !20
  %49 = icmp eq ptr %48, null
  br i1 %49, label %50, label %51

50:                                               ; preds = %38
  br label %110

51:                                               ; preds = %38
  %52 = load ptr, ptr %5, align 8, !tbaa !5
  call void @nvgSave(ptr noundef %52)
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  call void @nvgReset(ptr noundef %53)
  %54 = load ptr, ptr %5, align 8, !tbaa !5
  call void @nvg__setDevicePixelRatio(ptr noundef %54, float noundef 1.000000e+00)
  %55 = load ptr, ptr %5, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.NVGcontext, ptr %55, i32 0, i32 0
  %57 = getelementptr inbounds %struct.NVGparams, ptr %56, i32 0, i32 2
  %58 = load ptr, ptr %57, align 8, !tbaa !21
  %59 = load ptr, ptr %5, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.NVGcontext, ptr %59, i32 0, i32 0
  %61 = getelementptr inbounds %struct.NVGparams, ptr %60, i32 0, i32 0
  %62 = load ptr, ptr %61, align 8, !tbaa !22
  %63 = call i32 %58(ptr noundef %62)
  %64 = icmp eq i32 %63, 0
  br i1 %64, label %65, label %66

65:                                               ; preds = %51
  br label %110

66:                                               ; preds = %51
  call void @llvm.memset.p0.i64(ptr align 8 %4, i8 0, i64 64, i1 false)
  %67 = getelementptr inbounds %struct.FONSparams, ptr %4, i32 0, i32 0
  store i32 512, ptr %67, align 8, !tbaa !23
  %68 = getelementptr inbounds %struct.FONSparams, ptr %4, i32 0, i32 1
  store i32 512, ptr %68, align 4, !tbaa !25
  %69 = getelementptr inbounds %struct.FONSparams, ptr %4, i32 0, i32 2
  store i8 1, ptr %69, align 8, !tbaa !26
  %70 = getelementptr inbounds %struct.FONSparams, ptr %4, i32 0, i32 4
  store ptr null, ptr %70, align 8, !tbaa !27
  %71 = getelementptr inbounds %struct.FONSparams, ptr %4, i32 0, i32 6
  store ptr null, ptr %71, align 8, !tbaa !28
  %72 = getelementptr inbounds %struct.FONSparams, ptr %4, i32 0, i32 7
  store ptr null, ptr %72, align 8, !tbaa !29
  %73 = getelementptr inbounds %struct.FONSparams, ptr %4, i32 0, i32 8
  store ptr null, ptr %73, align 8, !tbaa !30
  %74 = getelementptr inbounds %struct.FONSparams, ptr %4, i32 0, i32 3
  store ptr null, ptr %74, align 8, !tbaa !31
  %75 = call ptr @fonsCreateInternal(ptr noundef %4)
  %76 = load ptr, ptr %5, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.NVGcontext, ptr %76, i32 0, i32 13
  store ptr %75, ptr %77, align 8, !tbaa !32
  %78 = load ptr, ptr %5, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.NVGcontext, ptr %78, i32 0, i32 13
  %80 = load ptr, ptr %79, align 8, !tbaa !32
  %81 = icmp eq ptr %80, null
  br i1 %81, label %82, label %83

82:                                               ; preds = %66
  br label %110

83:                                               ; preds = %66
  %84 = load ptr, ptr %5, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.NVGcontext, ptr %84, i32 0, i32 0
  %86 = getelementptr inbounds %struct.NVGparams, ptr %85, i32 0, i32 3
  %87 = load ptr, ptr %86, align 8, !tbaa !33
  %88 = load ptr, ptr %5, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.NVGcontext, ptr %88, i32 0, i32 0
  %90 = getelementptr inbounds %struct.NVGparams, ptr %89, i32 0, i32 0
  %91 = load ptr, ptr %90, align 8, !tbaa !22
  %92 = getelementptr inbounds %struct.FONSparams, ptr %4, i32 0, i32 0
  %93 = load i32, ptr %92, align 8, !tbaa !23
  %94 = getelementptr inbounds %struct.FONSparams, ptr %4, i32 0, i32 1
  %95 = load i32, ptr %94, align 4, !tbaa !25
  %96 = call i32 %87(ptr noundef %91, i32 noundef 1, i32 noundef %93, i32 noundef %95, i32 noundef 0, ptr noundef null)
  %97 = load ptr, ptr %5, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.NVGcontext, ptr %97, i32 0, i32 14
  %99 = getelementptr inbounds [4 x i32], ptr %98, i64 0, i64 0
  store i32 %96, ptr %99, align 8, !tbaa !10
  %100 = load ptr, ptr %5, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.NVGcontext, ptr %100, i32 0, i32 14
  %102 = getelementptr inbounds [4 x i32], ptr %101, i64 0, i64 0
  %103 = load i32, ptr %102, align 8, !tbaa !10
  %104 = icmp eq i32 %103, 0
  br i1 %104, label %105, label %106

105:                                              ; preds = %83
  br label %110

106:                                              ; preds = %83
  %107 = load ptr, ptr %5, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.NVGcontext, ptr %107, i32 0, i32 15
  store i32 0, ptr %108, align 8, !tbaa !34
  %109 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %109, ptr %2, align 8
  store i32 1, ptr %7, align 4
  br label %112

110:                                              ; preds = %105, %82, %65, %50, %37, %11
  %111 = load ptr, ptr %5, align 8, !tbaa !5
  call void @nvgDeleteInternal(ptr noundef %111)
  store ptr null, ptr %2, align 8
  store i32 1, ptr %7, align 4
  br label %112

112:                                              ; preds = %110, %106
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %4) #7
  %113 = load ptr, ptr %2, align 8
  ret ptr %113
}

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

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #2

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

; Function Attrs: nounwind uwtable
declare hidden ptr @nvg__allocPathCache() #0

; Function Attrs: nounwind uwtable
declare dso_local void @nvgSave(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @nvgReset(ptr noundef) #5

; Function Attrs: nounwind uwtable
declare hidden void @nvg__setDevicePixelRatio(ptr noundef, float noundef) #0

declare ptr @fonsCreateInternal(ptr noundef) #6

; Function Attrs: nounwind uwtable
declare dso_local void @nvgDeleteInternal(ptr noundef) #0

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nounwind allocsize(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 #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nounwind uwtable "min-legal-vector-width"="64" "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 #6 = { "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 #7 = { nounwind }
attributes #8 = { nounwind allocsize(0) }

!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 = !{i64 0, i64 8, !5, i64 8, i64 4, !10, i64 16, i64 8, !5, i64 24, i64 8, !5, i64 32, i64 8, !5, i64 40, i64 8, !5, i64 48, i64 8, !5, i64 56, i64 8, !5, i64 64, i64 8, !5, i64 72, i64 8, !5, i64 80, i64 8, !5, i64 88, i64 8, !5, i64 96, i64 8, !5, i64 104, i64 8, !5}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!15, !6, i64 112}
!15 = !{!"NVGcontext", !16, i64 0, !6, i64 112, !11, i64 120, !11, i64 124, !17, i64 128, !17, i64 132, !7, i64 136, !11, i64 8712, !6, i64 8720, !17, i64 8728, !17, i64 8732, !17, i64 8736, !17, i64 8740, !6, i64 8744, !7, i64 8752, !11, i64 8768, !11, i64 8772, !11, i64 8776, !11, i64 8780, !11, i64 8784}
!16 = !{!"NVGparams", !6, i64 0, !11, 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}
!17 = !{!"float", !7, i64 0}
!18 = !{!15, !11, i64 124}
!19 = !{!15, !11, i64 120}
!20 = !{!15, !6, i64 8720}
!21 = !{!15, !6, i64 16}
!22 = !{!15, !6, i64 0}
!23 = !{!24, !11, i64 0}
!24 = !{!"FONSparams", !11, i64 0, !11, i64 4, !7, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56}
!25 = !{!24, !11, i64 4}
!26 = !{!24, !7, i64 8}
!27 = !{!24, !6, i64 24}
!28 = !{!24, !6, i64 40}
!29 = !{!24, !6, i64 48}
!30 = !{!24, !6, i64 56}
!31 = !{!24, !6, i64 16}
!32 = !{!15, !6, i64 8744}
!33 = !{!15, !6, i64 24}
!34 = !{!15, !11, i64 8768}


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

%struct.FONSparams = type { i32, i32, i8, ptr, ptr, ptr, ptr, ptr, ptr }

; Function Attrs: nounwind uwtable
define dso_local noundef ptr @nvgCreateInternal(ptr nocapture noundef readonly %0) local_unnamed_addr #0 {
  %2 = alloca %struct.FONSparams, align 8
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %2) #7
  %3 = tail call noalias dereferenceable_or_null(8792) ptr @malloc(i64 noundef 8792) #8
  %4 = icmp eq ptr %3, null
  br i1 %4, label %41, label %5

5:                                                ; preds = %1
  %6 = getelementptr i8, ptr %3, i64 120
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(8672) %6, i8 0, i64 8672, i1 false)
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(112) %3, ptr noundef nonnull align 8 dereferenceable(112) %0, i64 112, i1 false), !tbaa.struct !5
  %7 = getelementptr inbounds i8, ptr %3, i64 8752
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %7, i8 0, i64 16, i1 false), !tbaa !10
  %8 = tail call noalias dereferenceable_or_null(1024) ptr @malloc(i64 noundef 1024) #8
  %9 = getelementptr inbounds i8, ptr %3, i64 112
  store ptr %8, ptr %9, align 8, !tbaa !12
  %.not = icmp eq ptr %8, null
  br i1 %.not, label %41, label %10

10:                                               ; preds = %5
  %11 = getelementptr inbounds i8, ptr %3, i64 124
  store i32 0, ptr %11, align 4, !tbaa !16
  %12 = getelementptr inbounds i8, ptr %3, i64 120
  store i32 256, ptr %12, align 8, !tbaa !17
  %13 = tail call ptr @nvg__allocPathCache()
  %14 = getelementptr inbounds i8, ptr %3, i64 8720
  store ptr %13, ptr %14, align 8, !tbaa !18
  %15 = icmp eq ptr %13, null
  br i1 %15, label %41, label %16

16:                                               ; preds = %10
  tail call void @nvgSave(ptr noundef nonnull %3)
  tail call void @nvgReset(ptr noundef nonnull %3)
  tail call void @nvg__setDevicePixelRatio(ptr noundef nonnull %3, float noundef 1.000000e+00)
  %17 = getelementptr inbounds i8, ptr %3, i64 16
  %18 = load ptr, ptr %17, align 8, !tbaa !19
  %19 = load ptr, ptr %3, align 8, !tbaa !20
  %20 = tail call i32 %18(ptr noundef %19) #7
  %21 = icmp eq i32 %20, 0
  br i1 %21, label %41, label %22

22:                                               ; preds = %16
  %23 = getelementptr inbounds i8, ptr %2, i64 8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %23, i8 0, i64 32, i1 false)
  store i32 512, ptr %2, align 8, !tbaa !21
  %24 = getelementptr inbounds i8, ptr %2, i64 4
  store i32 512, ptr %24, align 4, !tbaa !23
  %25 = getelementptr inbounds i8, ptr %2, i64 8
  store i8 1, ptr %25, align 8, !tbaa !24
  %26 = getelementptr inbounds i8, ptr %2, i64 40
  %27 = getelementptr inbounds i8, ptr %2, i64 16
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %27, i8 0, i64 16, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %26, i8 0, i64 24, i1 false)
  %28 = call ptr @fonsCreateInternal(ptr noundef nonnull %2) #7
  %29 = getelementptr inbounds i8, ptr %3, i64 8744
  store ptr %28, ptr %29, align 8, !tbaa !25
  %30 = icmp eq ptr %28, null
  br i1 %30, label %41, label %31

31:                                               ; preds = %22
  %32 = getelementptr inbounds i8, ptr %3, i64 24
  %33 = load ptr, ptr %32, align 8, !tbaa !26
  %34 = load ptr, ptr %3, align 8, !tbaa !20
  %35 = load i32, ptr %2, align 8, !tbaa !21
  %36 = load i32, ptr %24, align 4, !tbaa !23
  %37 = call i32 %33(ptr noundef %34, i32 noundef 1, i32 noundef %35, i32 noundef %36, i32 noundef 0, ptr noundef null) #7
  store i32 %37, ptr %7, align 8, !tbaa !10
  %38 = icmp eq i32 %37, 0
  br i1 %38, label %41, label %39

39:                                               ; preds = %31
  %40 = getelementptr inbounds i8, ptr %3, i64 8768
  store i32 0, ptr %40, align 8, !tbaa !27
  br label %42

41:                                               ; preds = %31, %22, %16, %10, %5, %1
  call void @nvgDeleteInternal(ptr noundef %3)
  br label %42

42:                                               ; preds = %41, %39
  %.028 = phi ptr [ null, %41 ], [ %3, %39 ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %2) #7
  ret ptr %.028
}

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

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

; Function Attrs: nounwind uwtable
declare hidden ptr @nvg__allocPathCache() local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @nvgSave(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @nvgReset(ptr noundef) local_unnamed_addr #5

; Function Attrs: nounwind uwtable
declare hidden void @nvg__setDevicePixelRatio(ptr noundef, float noundef) local_unnamed_addr #0

declare ptr @fonsCreateInternal(ptr noundef) local_unnamed_addr #6

; Function Attrs: nounwind uwtable
declare dso_local void @nvgDeleteInternal(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) #1

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nounwind uwtable "min-legal-vector-width"="64" "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 #6 = { "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 #7 = { nounwind }
attributes #8 = { nounwind allocsize(0) }

!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 = !{i64 0, i64 8, !6, i64 8, i64 4, !10, i64 16, i64 8, !6, i64 24, i64 8, !6, i64 32, i64 8, !6, i64 40, i64 8, !6, i64 48, i64 8, !6, i64 56, i64 8, !6, i64 64, i64 8, !6, i64 72, i64 8, !6, i64 80, i64 8, !6, i64 88, i64 8, !6, i64 96, i64 8, !6, i64 104, i64 8, !6}
!6 = !{!7, !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!13, !7, i64 112}
!13 = !{!"NVGcontext", !14, i64 0, !7, i64 112, !11, i64 120, !11, i64 124, !15, i64 128, !15, i64 132, !8, i64 136, !11, i64 8712, !7, i64 8720, !15, i64 8728, !15, i64 8732, !15, i64 8736, !15, i64 8740, !7, i64 8744, !8, i64 8752, !11, i64 8768, !11, i64 8772, !11, i64 8776, !11, i64 8780, !11, i64 8784}
!14 = !{!"NVGparams", !7, i64 0, !11, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96, !7, i64 104}
!15 = !{!"float", !8, i64 0}
!16 = !{!13, !11, i64 124}
!17 = !{!13, !11, i64 120}
!18 = !{!13, !7, i64 8720}
!19 = !{!13, !7, i64 16}
!20 = !{!13, !7, i64 0}
!21 = !{!22, !11, i64 0}
!22 = !{!"FONSparams", !11, i64 0, !11, i64 4, !8, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56}
!23 = !{!22, !11, i64 4}
!24 = !{!22, !8, i64 8}
!25 = !{!13, !7, i64 8744}
!26 = !{!13, !7, i64 24}
!27 = !{!13, !11, i64 8768}


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopIdiomRecognizePass,LoopRotatePass,MemCpyOptPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass