; LLVM IR from christoskaramou/PhasmaEngine :: PhasmaEditor/Include/imgui (imgui_draw)

; 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.ImVec2 = type { float, float }
%struct.ImTriangulator = type { i32, ptr, %struct.ImTriangulatorNodeSpan, %struct.ImTriangulatorNodeSpan }
%struct.ImTriangulatorNodeSpan = type <{ ptr, i32, [4 x i8] }>
%struct.ImDrawList = type { %struct.ImVector.0, %struct.ImVector.1, %struct.ImVector.2, i32, i32, ptr, ptr, ptr, %struct.ImVector, %struct.ImDrawCmdHeader, %struct.ImDrawListSplitter, %struct.ImVector.4, %struct.ImVector.5, %struct.ImVector.6, float, ptr }
%struct.ImVector.0 = type { i32, i32, ptr }
%struct.ImVector.1 = type { i32, i32, ptr }
%struct.ImVector.2 = type { i32, i32, ptr }
%struct.ImVector = type { i32, i32, ptr }
%struct.ImDrawCmdHeader = type <{ %struct.ImVec4, i64, i32, [4 x i8] }>
%struct.ImVec4 = type { float, float, float, float }
%struct.ImDrawListSplitter = type { i32, i32, %struct.ImVector.3 }
%struct.ImVector.3 = type { i32, i32, ptr }
%struct.ImVector.4 = type { i32, i32, ptr }
%struct.ImVector.5 = type { i32, i32, ptr }
%struct.ImVector.6 = type { i32, i32, ptr }
%struct.ImDrawListSharedData = type <{ %struct.ImVec2, ptr, ptr, float, float, float, float, %struct.ImVec4, i32, [4 x i8], %struct.ImVector, [48 x %struct.ImVec2], float, [64 x i8], [4 x i8] }>
%struct.ImDrawVert = type { %struct.ImVec2, %struct.ImVec2, i32 }

; 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10ImDrawList11PrimReserveEii(ptr noundef nonnull align 8 dereferenceable(216), i32 noundef, i32 noundef) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8ImVectorI6ImVec2E15reserve_discardEi(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) #3 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #4

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef float @_ZL7ImRsqrtf(float noundef) #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN14ImTriangulator4InitEPK6ImVec2iPv(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef, i32 noundef, ptr noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN14ImTriangulator15GetNextTriangleEPj(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10ImDrawList20AddConcavePolyFilledEPK6ImVec2ij(ptr noundef nonnull align 8 dereferenceable(216) %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) #2 align 2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %struct.ImVec2, align 4
  %10 = alloca %struct.ImTriangulator, align 8
  %11 = alloca [3 x i32], align 4
  %12 = alloca float, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca float, align 4
  %24 = alloca float, align 4
  %25 = alloca float, align 4
  %26 = alloca float, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca ptr, align 8
  %30 = alloca ptr, align 8
  %31 = alloca float, align 4
  %32 = alloca float, align 4
  %33 = alloca float, align 4
  %34 = alloca float, align 4
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !9
  store i32 %3, ptr %8, align 4, !tbaa !9
  %38 = load ptr, ptr %5, align 8
  %39 = load i32, ptr %7, align 4, !tbaa !9
  %40 = icmp slt i32 %39, 3
  br i1 %40, label %45, label %41

41:                                               ; preds = %4
  %42 = load i32, ptr %8, align 4, !tbaa !9
  %43 = and i32 %42, -16777216
  %44 = icmp eq i32 %43, 0
  br i1 %44, label %45, label %46

45:                                               ; preds = %41, %4
  br label %478

46:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  %47 = getelementptr inbounds %struct.ImDrawList, ptr %38, i32 0, i32 5
  %48 = load ptr, ptr %47, align 8, !tbaa !11
  %49 = getelementptr inbounds %struct.ImDrawListSharedData, ptr %48, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %9, ptr align 8 %49, i64 8, i1 false), !tbaa.struct !26
  call void @llvm.lifetime.start.p0(i64 48, ptr %10) #8
  call void @_ZN14ImTriangulatorC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %10) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %11) #8
  %50 = getelementptr inbounds %struct.ImDrawList, ptr %38, i32 0, i32 3
  %51 = load i32, ptr %50, align 8, !tbaa !28
  %52 = and i32 %51, 4
  %53 = icmp ne i32 %52, 0
  br i1 %53, label %54, label %386

54:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  %55 = getelementptr inbounds %struct.ImDrawList, ptr %38, i32 0, i32 14
  %56 = load float, ptr %55, align 8, !tbaa !29
  store float %56, ptr %12, align 4, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  %57 = load i32, ptr %8, align 4, !tbaa !9
  %58 = and i32 %57, 16777215
  store i32 %58, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  %59 = load i32, ptr %7, align 4, !tbaa !9
  %60 = sub nsw i32 %59, 2
  %61 = mul nsw i32 %60, 3
  %62 = load i32, ptr %7, align 4, !tbaa !9
  %63 = mul nsw i32 %62, 6
  %64 = add nsw i32 %61, %63
  store i32 %64, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  %65 = load i32, ptr %7, align 4, !tbaa !9
  %66 = mul nsw i32 %65, 2
  store i32 %66, ptr %15, align 4, !tbaa !9
  %67 = load i32, ptr %14, align 4, !tbaa !9
  %68 = load i32, ptr %15, align 4, !tbaa !9
  call void @_ZN10ImDrawList11PrimReserveEii(ptr noundef nonnull align 8 dereferenceable(216) %38, i32 noundef %67, i32 noundef %68)
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  %69 = getelementptr inbounds %struct.ImDrawList, ptr %38, i32 0, i32 4
  %70 = load i32, ptr %69, align 4, !tbaa !30
  store i32 %70, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  %71 = getelementptr inbounds %struct.ImDrawList, ptr %38, i32 0, i32 4
  %72 = load i32, ptr %71, align 4, !tbaa !30
  %73 = add i32 %72, 1
  store i32 %73, ptr %17, align 4, !tbaa !9
  %74 = getelementptr inbounds %struct.ImDrawList, ptr %38, i32 0, i32 5
  %75 = load ptr, ptr %74, align 8, !tbaa !11
  %76 = getelementptr inbounds %struct.ImDrawListSharedData, ptr %75, i32 0, i32 10
  %77 = load i32, ptr %7, align 4, !tbaa !9
  %78 = call noundef i32 @_ZN14ImTriangulator25EstimateScratchBufferSizeEi(i32 noundef %77)
  %79 = sext i32 %78 to i64
  %80 = add i64 %79, 8
  %81 = udiv i64 %80, 8
  %82 = trunc i64 %81 to i32
  call void @_ZN8ImVectorI6ImVec2E15reserve_discardEi(ptr noundef nonnull align 8 dereferenceable(16) %76, i32 noundef %82)
  %83 = load ptr, ptr %6, align 8, !tbaa !5
  %84 = load i32, ptr %7, align 4, !tbaa !9
  %85 = getelementptr inbounds %struct.ImDrawList, ptr %38, i32 0, i32 5
  %86 = load ptr, ptr %85, align 8, !tbaa !11
  %87 = getelementptr inbounds %struct.ImDrawListSharedData, ptr %86, i32 0, i32 10
  %88 = getelementptr inbounds %struct.ImVector, ptr %87, i32 0, i32 2
  %89 = load ptr, ptr %88, align 8, !tbaa !31
  call void @_ZN14ImTriangulator4InitEPK6ImVec2iPv(ptr noundef nonnull align 8 dereferenceable(48) %10, ptr noundef %83, i32 noundef %84, ptr noundef %89)
  br label %90

90:                                               ; preds = %94, %54
  %91 = getelementptr inbounds %struct.ImTriangulator, ptr %10, i32 0, i32 0
  %92 = load i32, ptr %91, align 8, !tbaa !34
  %93 = icmp sgt i32 %92, 0
  br i1 %93, label %94, label %123

94:                                               ; preds = %90
  %95 = getelementptr inbounds [3 x i32], ptr %11, i64 0, i64 0
  call void @_ZN14ImTriangulator15GetNextTriangleEPj(ptr noundef nonnull align 8 dereferenceable(48) %10, ptr noundef %95)
  %96 = load i32, ptr %16, align 4, !tbaa !9
  %97 = getelementptr inbounds [3 x i32], ptr %11, i64 0, i64 0
  %98 = load i32, ptr %97, align 4, !tbaa !9
  %99 = shl i32 %98, 1
  %100 = add i32 %96, %99
  %101 = getelementptr inbounds %struct.ImDrawList, ptr %38, i32 0, i32 7
  %102 = load ptr, ptr %101, align 8, !tbaa !37
  %103 = getelementptr inbounds i32, ptr %102, i64 0
  store i32 %100, ptr %103, align 4, !tbaa !9
  %104 = load i32, ptr %16, align 4, !tbaa !9
  %105 = getelementptr inbounds [3 x i32], ptr %11, i64 0, i64 1
  %106 = load i32, ptr %105, align 4, !tbaa !9
  %107 = shl i32 %106, 1
  %108 = add i32 %104, %107
  %109 = getelementptr inbounds %struct.ImDrawList, ptr %38, i32 0, i32 7
  %110 = load ptr, ptr %109, align 8, !tbaa !37
  %111 = getelementptr inbounds i32, ptr %110, i64 1
  store i32 %108, ptr %111, align 4, !tbaa !9
  %112 = load i32, ptr %16, align 4, !tbaa !9
  %113 = getelementptr inbounds [3 x i32], ptr %11, i64 0, i64 2
  %114 = load i32, ptr %113, align 4, !tbaa !9
  %115 = shl i32 %114, 1
  %116 = add i32 %112, %115
  %117 = getelementptr inbounds %struct.ImDrawList, ptr %38, i32 0, i32 7
  %118 = load ptr, ptr %117, align 8, !tbaa !37
  %119 = getelementptr inbounds i32, ptr %118, i64 2
  store i32 %116, ptr %119, align 4, !tbaa !9
  %120 = getelementptr inbounds %struct.ImDrawList, ptr %38, i32 0, i32 7
  %121 = load ptr, ptr %120, align 8, !tbaa !37
  %122 = getelementptr inbounds i32, ptr %121, i64 3
  store ptr %122, ptr %120, align 8, !tbaa !37
  br label %90, !llvm.loop !38

123:                                              ; preds = %90
  %124 = getelementptr inbounds %struct.ImDrawList, ptr %38, i32 0, i32 5
  %125 = load ptr, ptr %124, align 8, !tbaa !11
  %126 = getelementptr inbounds %struct.ImDrawListSharedData, ptr %125, i32 0, i32 10
  %127 = load i32, ptr %7, align 4, !tbaa !9
  call void @_ZN8ImVectorI6ImVec2E15reserve_discardEi(ptr noundef nonnull align 8 dereferenceable(16) %126, i32 noundef %127)
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %128 = getelementptr inbounds %struct.ImDrawList, ptr %38, i32 0, i32 5
  %129 = load ptr, ptr %128, align 8, !tbaa !11
  %130 = getelementptr inbounds %struct.ImDrawListSharedData, ptr %129, i32 0, i32 10
  %131 = getelementptr inbounds %struct.ImVector, ptr %130, i32 0, i32 2
  %132 = load ptr, ptr %131, align 8, !tbaa !31
  store ptr %132, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  %133 = load i32, ptr %7, align 4, !tbaa !9
  %134 = sub nsw i32 %133, 1
  store i32 %134, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  store i32 0, ptr %20, align 4, !tbaa !9
  br label %135

135:                                              ; preds = %194, %123
  %136 = load i32, ptr %20, align 4, !tbaa !9
  %137 = load i32, ptr %7, align 4, !tbaa !9
  %138 = icmp slt i32 %136, %137
  br i1 %138, label %140, label %139

139:                                              ; preds = %135
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  br label %197

140:                                              ; preds = %135
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  %141 = load ptr, ptr %6, align 8, !tbaa !5
  %142 = load i32, ptr %19, align 4, !tbaa !9
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds %struct.ImVec2, ptr %141, i64 %143
  store ptr %144, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  %145 = load ptr, ptr %6, align 8, !tbaa !5
  %146 = load i32, ptr %20, align 4, !tbaa !9
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds %struct.ImVec2, ptr %145, i64 %147
  store ptr %148, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #8
  %149 = load ptr, ptr %22, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.ImVec2, ptr %149, i32 0, i32 0
  %151 = load float, ptr %150, align 4, !tbaa !40
  %152 = load ptr, ptr %21, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.ImVec2, ptr %152, i32 0, i32 0
  %154 = load float, ptr %153, align 4, !tbaa !40
  %155 = fsub float %151, %154
  store float %155, ptr %23, align 4, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #8
  %156 = load ptr, ptr %22, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.ImVec2, ptr %156, i32 0, i32 1
  %158 = load float, ptr %157, align 4, !tbaa !41
  %159 = load ptr, ptr %21, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.ImVec2, ptr %159, i32 0, i32 1
  %161 = load float, ptr %160, align 4, !tbaa !41
  %162 = fsub float %158, %161
  store float %162, ptr %24, align 4, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  %163 = load float, ptr %23, align 4, !tbaa !27
  %164 = load float, ptr %23, align 4, !tbaa !27
  %165 = load float, ptr %24, align 4, !tbaa !27
  %166 = load float, ptr %24, align 4, !tbaa !27
  %167 = fmul float %165, %166
  %168 = call float @llvm.fmuladd.f32(float %163, float %164, float %167)
  store float %168, ptr %25, align 4, !tbaa !27
  %169 = load float, ptr %25, align 4, !tbaa !27
  %170 = fcmp ogt float %169, 0.000000e+00
  br i1 %170, label %171, label %180

171:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  %172 = load float, ptr %25, align 4, !tbaa !27
  %173 = call noundef float @_ZL7ImRsqrtf(float noundef %172)
  store float %173, ptr %26, align 4, !tbaa !27
  %174 = load float, ptr %26, align 4, !tbaa !27
  %175 = load float, ptr %23, align 4, !tbaa !27
  %176 = fmul float %175, %174
  store float %176, ptr %23, align 4, !tbaa !27
  %177 = load float, ptr %26, align 4, !tbaa !27
  %178 = load float, ptr %24, align 4, !tbaa !27
  %179 = fmul float %178, %177
  store float %179, ptr %24, align 4, !tbaa !27
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  br label %180

180:                                              ; preds = %171, %140
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  %181 = load float, ptr %24, align 4, !tbaa !27
  %182 = load ptr, ptr %18, align 8, !tbaa !5
  %183 = load i32, ptr %19, align 4, !tbaa !9
  %184 = sext i32 %183 to i64
  %185 = getelementptr inbounds %struct.ImVec2, ptr %182, i64 %184
  %186 = getelementptr inbounds %struct.ImVec2, ptr %185, i32 0, i32 0
  store float %181, ptr %186, align 4, !tbaa !40
  %187 = load float, ptr %23, align 4, !tbaa !27
  %188 = fneg float %187
  %189 = load ptr, ptr %18, align 8, !tbaa !5
  %190 = load i32, ptr %19, align 4, !tbaa !9
  %191 = sext i32 %190 to i64
  %192 = getelementptr inbounds %struct.ImVec2, ptr %189, i64 %191
  %193 = getelementptr inbounds %struct.ImVec2, ptr %192, i32 0, i32 1
  store float %188, ptr %193, align 4, !tbaa !41
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  br label %194

194:                                              ; preds = %180
  %195 = load i32, ptr %20, align 4, !tbaa !9
  %196 = add nsw i32 %195, 1
  store i32 %196, ptr %20, align 4, !tbaa !9
  store i32 %195, ptr %19, align 4, !tbaa !9
  br label %135, !llvm.loop !42

197:                                              ; preds = %139
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #8
  %198 = load i32, ptr %7, align 4, !tbaa !9
  %199 = sub nsw i32 %198, 1
  store i32 %199, ptr %27, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #8
  store i32 0, ptr %28, align 4, !tbaa !9
  br label %200

200:                                              ; preds = %378, %197
  %201 = load i32, ptr %28, align 4, !tbaa !9
  %202 = load i32, ptr %7, align 4, !tbaa !9
  %203 = icmp slt i32 %201, %202
  br i1 %203, label %205, label %204

204:                                              ; preds = %200
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  br label %381

205:                                              ; preds = %200
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #8
  %206 = load ptr, ptr %18, align 8, !tbaa !5
  %207 = load i32, ptr %27, align 4, !tbaa !9
  %208 = sext i32 %207 to i64
  %209 = getelementptr inbounds %struct.ImVec2, ptr %206, i64 %208
  store ptr %209, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #8
  %210 = load ptr, ptr %18, align 8, !tbaa !5
  %211 = load i32, ptr %28, align 4, !tbaa !9
  %212 = sext i32 %211 to i64
  %213 = getelementptr inbounds %struct.ImVec2, ptr %210, i64 %212
  store ptr %213, ptr %30, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #8
  %214 = load ptr, ptr %29, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.ImVec2, ptr %214, i32 0, i32 0
  %216 = load float, ptr %215, align 4, !tbaa !40
  %217 = load ptr, ptr %30, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.ImVec2, ptr %217, i32 0, i32 0
  %219 = load float, ptr %218, align 4, !tbaa !40
  %220 = fadd float %216, %219
  %221 = fmul float %220, 5.000000e-01
  store float %221, ptr %31, align 4, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #8
  %222 = load ptr, ptr %29, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.ImVec2, ptr %222, i32 0, i32 1
  %224 = load float, ptr %223, align 4, !tbaa !41
  %225 = load ptr, ptr %30, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct.ImVec2, ptr %225, i32 0, i32 1
  %227 = load float, ptr %226, align 4, !tbaa !41
  %228 = fadd float %224, %227
  %229 = fmul float %228, 5.000000e-01
  store float %229, ptr %32, align 4, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #8
  %230 = load float, ptr %31, align 4, !tbaa !27
  %231 = load float, ptr %31, align 4, !tbaa !27
  %232 = load float, ptr %32, align 4, !tbaa !27
  %233 = load float, ptr %32, align 4, !tbaa !27
  %234 = fmul float %232, %233
  %235 = call float @llvm.fmuladd.f32(float %230, float %231, float %234)
  store float %235, ptr %33, align 4, !tbaa !27
  %236 = load float, ptr %33, align 4, !tbaa !27
  %237 = fcmp ogt float %236, 0x3EB0C6F7A0000000
  br i1 %237, label %238, label %251

238:                                              ; preds = %205
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #8
  %239 = load float, ptr %33, align 4, !tbaa !27
  %240 = fdiv float 1.000000e+00, %239
  store float %240, ptr %34, align 4, !tbaa !27
  %241 = load float, ptr %34, align 4, !tbaa !27
  %242 = fcmp ogt float %241, 1.000000e+02
  br i1 %242, label %243, label %244

243:                                              ; preds = %238
  store float 1.000000e+02, ptr %34, align 4, !tbaa !27
  br label %244

244:                                              ; preds = %243, %238
  %245 = load float, ptr %34, align 4, !tbaa !27
  %246 = load float, ptr %31, align 4, !tbaa !27
  %247 = fmul float %246, %245
  store float %247, ptr %31, align 4, !tbaa !27
  %248 = load float, ptr %34, align 4, !tbaa !27
  %249 = load float, ptr %32, align 4, !tbaa !27
  %250 = fmul float %249, %248
  store float %250, ptr %32, align 4, !tbaa !27
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #8
  br label %251

251:                                              ; preds = %244, %205
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #8
  %252 = load float, ptr %12, align 4, !tbaa !27
  %253 = fmul float %252, 5.000000e-01
  %254 = load float, ptr %31, align 4, !tbaa !27
  %255 = fmul float %254, %253
  store float %255, ptr %31, align 4, !tbaa !27
  %256 = load float, ptr %12, align 4, !tbaa !27
  %257 = fmul float %256, 5.000000e-01
  %258 = load float, ptr %32, align 4, !tbaa !27
  %259 = fmul float %258, %257
  store float %259, ptr %32, align 4, !tbaa !27
  %260 = load ptr, ptr %6, align 8, !tbaa !5
  %261 = load i32, ptr %28, align 4, !tbaa !9
  %262 = sext i32 %261 to i64
  %263 = getelementptr inbounds %struct.ImVec2, ptr %260, i64 %262
  %264 = getelementptr inbounds %struct.ImVec2, ptr %263, i32 0, i32 0
  %265 = load float, ptr %264, align 4, !tbaa !40
  %266 = load float, ptr %31, align 4, !tbaa !27
  %267 = fsub float %265, %266
  %268 = getelementptr inbounds %struct.ImDrawList, ptr %38, i32 0, i32 6
  %269 = load ptr, ptr %268, align 8, !tbaa !43
  %270 = getelementptr inbounds %struct.ImDrawVert, ptr %269, i64 0
  %271 = getelementptr inbounds %struct.ImDrawVert, ptr %270, i32 0, i32 0
  %272 = getelementptr inbounds %struct.ImVec2, ptr %271, i32 0, i32 0
  store float %267, ptr %272, align 4, !tbaa !44
  %273 = load ptr, ptr %6, align 8, !tbaa !5
  %274 = load i32, ptr %28, align 4, !tbaa !9
  %275 = sext i32 %274 to i64
  %276 = getelementptr inbounds %struct.ImVec2, ptr %273, i64 %275
  %277 = getelementptr inbounds %struct.ImVec2, ptr %276, i32 0, i32 1
  %278 = load float, ptr %277, align 4, !tbaa !41
  %279 = load float, ptr %32, align 4, !tbaa !27
  %280 = fsub float %278, %279
  %281 = getelementptr inbounds %struct.ImDrawList, ptr %38, i32 0, i32 6
  %282 = load ptr, ptr %281, align 8, !tbaa !43
  %283 = getelementptr inbounds %struct.ImDrawVert, ptr %282, i64 0
  %284 = getelementptr inbounds %struct.ImDrawVert, ptr %283, i32 0, i32 0
  %285 = getelementptr inbounds %struct.ImVec2, ptr %284, i32 0, i32 1
  store float %280, ptr %285, align 4, !tbaa !46
  %286 = getelementptr inbounds %struct.ImDrawList, ptr %38, i32 0, i32 6
  %287 = load ptr, ptr %286, align 8, !tbaa !43
  %288 = getelementptr inbounds %struct.ImDrawVert, ptr %287, i64 0
  %289 = getelementptr inbounds %struct.ImDrawVert, ptr %288, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %289, ptr align 4 %9, i64 8, i1 false), !tbaa.struct !26
  %290 = load i32, ptr %8, align 4, !tbaa !9
  %291 = getelementptr inbounds %struct.ImDrawList, ptr %38, i32 0, i32 6
  %292 = load ptr, ptr %291, align 8, !tbaa !43
  %293 = getelementptr inbounds %struct.ImDrawVert, ptr %292, i64 0
  %294 = getelementptr inbounds %struct.ImDrawVert, ptr %293, i32 0, i32 2
  store i32 %290, ptr %294, align 4, !tbaa !47
  %295 = load ptr, ptr %6, align 8, !tbaa !5
  %296 = load i32, ptr %28, align 4, !tbaa !9
  %297 = sext i32 %296 to i64
  %298 = getelementptr inbounds %struct.ImVec2, ptr %295, i64 %297
  %299 = getelementptr inbounds %struct.ImVec2, ptr %298, i32 0, i32 0
  %300 = load float, ptr %299, align 4, !tbaa !40
  %301 = load float, ptr %31, align 4, !tbaa !27
  %302 = fadd float %300, %301
  %303 = getelementptr inbounds %struct.ImDrawList, ptr %38, i32 0, i32 6
  %304 = load ptr, ptr %303, align 8, !tbaa !43
  %305 = getelementptr inbounds %struct.ImDrawVert, ptr %304, i64 1
  %306 = getelementptr inbounds %struct.ImDrawVert, ptr %305, i32 0, i32 0
  %307 = getelementptr inbounds %struct.ImVec2, ptr %306, i32 0, i32 0
  store float %302, ptr %307, align 4, !tbaa !44
  %308 = load ptr, ptr %6, align 8, !tbaa !5
  %309 = load i32, ptr %28, align 4, !tbaa !9
  %310 = sext i32 %309 to i64
  %311 = getelementptr inbounds %struct.ImVec2, ptr %308, i64 %310
  %312 = getelementptr inbounds %struct.ImVec2, ptr %311, i32 0, i32 1
  %313 = load float, ptr %312, align 4, !tbaa !41
  %314 = load float, ptr %32, align 4, !tbaa !27
  %315 = fadd float %313, %314
  %316 = getelementptr inbounds %struct.ImDrawList, ptr %38, i32 0, i32 6
  %317 = load ptr, ptr %316, align 8, !tbaa !43
  %318 = getelementptr inbounds %struct.ImDrawVert, ptr %317, i64 1
  %319 = getelementptr inbounds %struct.ImDrawVert, ptr %318, i32 0, i32 0
  %320 = getelementptr inbounds %struct.ImVec2, ptr %319, i32 0, i32 1
  store float %315, ptr %320, align 4, !tbaa !46
  %321 = getelementptr inbounds %struct.ImDrawList, ptr %38, i32 0, i32 6
  %322 = load ptr, ptr %321, align 8, !tbaa !43
  %323 = getelementptr inbounds %struct.ImDrawVert, ptr %322, i64 1
  %324 = getelementptr inbounds %struct.ImDrawVert, ptr %323, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %324, ptr align 4 %9, i64 8, i1 false), !tbaa.struct !26
  %325 = load i32, ptr %13, align 4, !tbaa !9
  %326 = getelementptr inbounds %struct.ImDrawList, ptr %38, i32 0, i32 6
  %327 = load ptr, ptr %326, align 8, !tbaa !43
  %328 = getelementptr inbounds %struct.ImDrawVert, ptr %327, i64 1
  %329 = getelementptr inbounds %struct.ImDrawVert, ptr %328, i32 0, i32 2
  store i32 %325, ptr %329, align 4, !tbaa !47
  %330 = getelementptr inbounds %struct.ImDrawList, ptr %38, i32 0, i32 6
  %331 = load ptr, ptr %330, align 8, !tbaa !43
  %332 = getelementptr inbounds %struct.ImDrawVert, ptr %331, i64 2
  store ptr %332, ptr %330, align 8, !tbaa !43
  %333 = load i32, ptr %16, align 4, !tbaa !9
  %334 = load i32, ptr %28, align 4, !tbaa !9
  %335 = shl i32 %334, 1
  %336 = add i32 %333, %335
  %337 = getelementptr inbounds %struct.ImDrawList, ptr %38, i32 0, i32 7
  %338 = load ptr, ptr %337, align 8, !tbaa !37
  %339 = getelementptr inbounds i32, ptr %338, i64 0
  store i32 %336, ptr %339, align 4, !tbaa !9
  %340 = load i32, ptr %16, align 4, !tbaa !9
  %341 = load i32, ptr %27, align 4, !tbaa !9
  %342 = shl i32 %341, 1
  %343 = add i32 %340, %342
  %344 = getelementptr inbounds %struct.ImDrawList, ptr %38, i32 0, i32 7
  %345 = load ptr, ptr %344, align 8, !tbaa !37
  %346 = getelementptr inbounds i32, ptr %345, i64 1
  store i32 %343, ptr %346, align 4, !tbaa !9
  %347 = load i32, ptr %17, align 4, !tbaa !9
  %348 = load i32, ptr %27, align 4, !tbaa !9
  %349 = shl i32 %348, 1
  %350 = add i32 %347, %349
  %351 = getelementptr inbounds %struct.ImDrawList, ptr %38, i32 0, i32 7
  %352 = load ptr, ptr %351, align 8, !tbaa !37
  %353 = getelementptr inbounds i32, ptr %352, i64 2
  store i32 %350, ptr %353, align 4, !tbaa !9
  %354 = load i32, ptr %17, align 4, !tbaa !9
  %355 = load i32, ptr %27, align 4, !tbaa !9
  %356 = shl i32 %355, 1
  %357 = add i32 %354, %356
  %358 = getelementptr inbounds %struct.ImDrawList, ptr %38, i32 0, i32 7
  %359 = load ptr, ptr %358, align 8, !tbaa !37
  %360 = getelementptr inbounds i32, ptr %359, i64 3
  store i32 %357, ptr %360, align 4, !tbaa !9
  %361 = load i32, ptr %17, align 4, !tbaa !9
  %362 = load i32, ptr %28, align 4, !tbaa !9
  %363 = shl i32 %362, 1
  %364 = add i32 %361, %363
  %365 = getelementptr inbounds %struct.ImDrawList, ptr %38, i32 0, i32 7
  %366 = load ptr, ptr %365, align 8, !tbaa !37
  %367 = getelementptr inbounds i32, ptr %366, i64 4
  store i32 %364, ptr %367, align 4, !tbaa !9
  %368 = load i32, ptr %16, align 4, !tbaa !9
  %369 = load i32, ptr %28, align 4, !tbaa !9
  %370 = shl i32 %369, 1
  %371 = add i32 %368, %370
  %372 = getelementptr inbounds %struct.ImDrawList, ptr %38, i32 0, i32 7
  %373 = load ptr, ptr %372, align 8, !tbaa !37
  %374 = getelementptr inbounds i32, ptr %373, i64 5
  store i32 %371, ptr %374, align 4, !tbaa !9
  %375 = getelementptr inbounds %struct.ImDrawList, ptr %38, i32 0, i32 7
  %376 = load ptr, ptr %375, align 8, !tbaa !37
  %377 = getelementptr inbounds i32, ptr %376, i64 6
  store ptr %377, ptr %375, align 8, !tbaa !37
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  br label %378

378:                                              ; preds = %251
  %379 = load i32, ptr %28, align 4, !tbaa !9
  %380 = add nsw i32 %379, 1
  store i32 %380, ptr %28, align 4, !tbaa !9
  store i32 %379, ptr %27, align 4, !tbaa !9
  br label %200, !llvm.loop !48

381:                                              ; preds = %204
  %382 = load i32, ptr %15, align 4, !tbaa !9
  %383 = getelementptr inbounds %struct.ImDrawList, ptr %38, i32 0, i32 4
  %384 = load i32, ptr %383, align 4, !tbaa !30
  %385 = add i32 %384, %382
  store i32 %385, ptr %383, align 4, !tbaa !30
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  br label %477

386:                                              ; preds = %46
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #8
  %387 = load i32, ptr %7, align 4, !tbaa !9
  %388 = sub nsw i32 %387, 2
  %389 = mul nsw i32 %388, 3
  store i32 %389, ptr %35, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #8
  %390 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %390, ptr %36, align 4, !tbaa !9
  %391 = load i32, ptr %35, align 4, !tbaa !9
  %392 = load i32, ptr %36, align 4, !tbaa !9
  call void @_ZN10ImDrawList11PrimReserveEii(ptr noundef nonnull align 8 dereferenceable(216) %38, i32 noundef %391, i32 noundef %392)
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #8
  store i32 0, ptr %37, align 4, !tbaa !9
  br label %393

393:                                              ; preds = %419, %386
  %394 = load i32, ptr %37, align 4, !tbaa !9
  %395 = load i32, ptr %36, align 4, !tbaa !9
  %396 = icmp slt i32 %394, %395
  br i1 %396, label %398, label %397

397:                                              ; preds = %393
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #8
  br label %422

398:                                              ; preds = %393
  %399 = load ptr, ptr %6, align 8, !tbaa !5
  %400 = load i32, ptr %37, align 4, !tbaa !9
  %401 = sext i32 %400 to i64
  %402 = getelementptr inbounds %struct.ImVec2, ptr %399, i64 %401
  %403 = getelementptr inbounds %struct.ImDrawList, ptr %38, i32 0, i32 6
  %404 = load ptr, ptr %403, align 8, !tbaa !43
  %405 = getelementptr inbounds %struct.ImDrawVert, ptr %404, i64 0
  %406 = getelementptr inbounds %struct.ImDrawVert, ptr %405, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %406, ptr align 4 %402, i64 8, i1 false), !tbaa.struct !26
  %407 = getelementptr inbounds %struct.ImDrawList, ptr %38, i32 0, i32 6
  %408 = load ptr, ptr %407, align 8, !tbaa !43
  %409 = getelementptr inbounds %struct.ImDrawVert, ptr %408, i64 0
  %410 = getelementptr inbounds %struct.ImDrawVert, ptr %409, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %410, ptr align 4 %9, i64 8, i1 false), !tbaa.struct !26
  %411 = load i32, ptr %8, align 4, !tbaa !9
  %412 = getelementptr inbounds %struct.ImDrawList, ptr %38, i32 0, i32 6
  %413 = load ptr, ptr %412, align 8, !tbaa !43
  %414 = getelementptr inbounds %struct.ImDrawVert, ptr %413, i64 0
  %415 = getelementptr inbounds %struct.ImDrawVert, ptr %414, i32 0, i32 2
  store i32 %411, ptr %415, align 4, !tbaa !47
  %416 = getelementptr inbounds %struct.ImDrawList, ptr %38, i32 0, i32 6
  %417 = load ptr, ptr %416, align 8, !tbaa !43
  %418 = getelementptr inbounds %struct.ImDrawVert, ptr %417, i32 1
  store ptr %418, ptr %416, align 8, !tbaa !43
  br label %419

419:                                              ; preds = %398
  %420 = load i32, ptr %37, align 4, !tbaa !9
  %421 = add nsw i32 %420, 1
  store i32 %421, ptr %37, align 4, !tbaa !9
  br label %393, !llvm.loop !49

422:                                              ; preds = %397
  %423 = getelementptr inbounds %struct.ImDrawList, ptr %38, i32 0, i32 5
  %424 = load ptr, ptr %423, align 8, !tbaa !11
  %425 = getelementptr inbounds %struct.ImDrawListSharedData, ptr %424, i32 0, i32 10
  %426 = load i32, ptr %7, align 4, !tbaa !9
  %427 = call noundef i32 @_ZN14ImTriangulator25EstimateScratchBufferSizeEi(i32 noundef %426)
  %428 = sext i32 %427 to i64
  %429 = add i64 %428, 8
  %430 = udiv i64 %429, 8
  %431 = trunc i64 %430 to i32
  call void @_ZN8ImVectorI6ImVec2E15reserve_discardEi(ptr noundef nonnull align 8 dereferenceable(16) %425, i32 noundef %431)
  %432 = load ptr, ptr %6, align 8, !tbaa !5
  %433 = load i32, ptr %7, align 4, !tbaa !9
  %434 = getelementptr inbounds %struct.ImDrawList, ptr %38, i32 0, i32 5
  %435 = load ptr, ptr %434, align 8, !tbaa !11
  %436 = getelementptr inbounds %struct.ImDrawListSharedData, ptr %435, i32 0, i32 10
  %437 = getelementptr inbounds %struct.ImVector, ptr %436, i32 0, i32 2
  %438 = load ptr, ptr %437, align 8, !tbaa !31
  call void @_ZN14ImTriangulator4InitEPK6ImVec2iPv(ptr noundef nonnull align 8 dereferenceable(48) %10, ptr noundef %432, i32 noundef %433, ptr noundef %438)
  br label %439

439:                                              ; preds = %443, %422
  %440 = getelementptr inbounds %struct.ImTriangulator, ptr %10, i32 0, i32 0
  %441 = load i32, ptr %440, align 8, !tbaa !34
  %442 = icmp sgt i32 %441, 0
  br i1 %442, label %443, label %472

443:                                              ; preds = %439
  %444 = getelementptr inbounds [3 x i32], ptr %11, i64 0, i64 0
  call void @_ZN14ImTriangulator15GetNextTriangleEPj(ptr noundef nonnull align 8 dereferenceable(48) %10, ptr noundef %444)
  %445 = getelementptr inbounds %struct.ImDrawList, ptr %38, i32 0, i32 4
  %446 = load i32, ptr %445, align 4, !tbaa !30
  %447 = getelementptr inbounds [3 x i32], ptr %11, i64 0, i64 0
  %448 = load i32, ptr %447, align 4, !tbaa !9
  %449 = add i32 %446, %448
  %450 = getelementptr inbounds %struct.ImDrawList, ptr %38, i32 0, i32 7
  %451 = load ptr, ptr %450, align 8, !tbaa !37
  %452 = getelementptr inbounds i32, ptr %451, i64 0
  store i32 %449, ptr %452, align 4, !tbaa !9
  %453 = getelementptr inbounds %struct.ImDrawList, ptr %38, i32 0, i32 4
  %454 = load i32, ptr %453, align 4, !tbaa !30
  %455 = getelementptr inbounds [3 x i32], ptr %11, i64 0, i64 1
  %456 = load i32, ptr %455, align 4, !tbaa !9
  %457 = add i32 %454, %456
  %458 = getelementptr inbounds %struct.ImDrawList, ptr %38, i32 0, i32 7
  %459 = load ptr, ptr %458, align 8, !tbaa !37
  %460 = getelementptr inbounds i32, ptr %459, i64 1
  store i32 %457, ptr %460, align 4, !tbaa !9
  %461 = getelementptr inbounds %struct.ImDrawList, ptr %38, i32 0, i32 4
  %462 = load i32, ptr %461, align 4, !tbaa !30
  %463 = getelementptr inbounds [3 x i32], ptr %11, i64 0, i64 2
  %464 = load i32, ptr %463, align 4, !tbaa !9
  %465 = add i32 %462, %464
  %466 = getelementptr inbounds %struct.ImDrawList, ptr %38, i32 0, i32 7
  %467 = load ptr, ptr %466, align 8, !tbaa !37
  %468 = getelementptr inbounds i32, ptr %467, i64 2
  store i32 %465, ptr %468, align 4, !tbaa !9
  %469 = getelementptr inbounds %struct.ImDrawList, ptr %38, i32 0, i32 7
  %470 = load ptr, ptr %469, align 8, !tbaa !37
  %471 = getelementptr inbounds i32, ptr %470, i64 3
  store ptr %471, ptr %469, align 8, !tbaa !37
  br label %439, !llvm.loop !50

472:                                              ; preds = %439
  %473 = load i32, ptr %36, align 4, !tbaa !9
  %474 = getelementptr inbounds %struct.ImDrawList, ptr %38, i32 0, i32 4
  %475 = load i32, ptr %474, align 4, !tbaa !30
  %476 = add i32 %475, %473
  store i32 %476, ptr %474, align 4, !tbaa !30
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #8
  br label %477

477:                                              ; preds = %472, %381
  call void @llvm.lifetime.end.p0(i64 12, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  br label %478

478:                                              ; preds = %477, %45
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN14ImTriangulatorC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN14ImTriangulator25EstimateScratchBufferSizeEi(i32 noundef) #7 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { inlinehint 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 #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="128" "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 = { 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 #7 = { 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 #8 = { 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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 56}
!12 = !{!"_ZTS10ImDrawList", !13, i64 0, !14, i64 16, !15, i64 32, !10, i64 48, !10, i64 52, !6, i64 56, !6, i64 64, !6, i64 72, !16, i64 80, !17, i64 96, !21, i64 128, !23, i64 152, !24, i64 168, !25, i64 184, !19, i64 200, !6, i64 208}
!13 = !{!"_ZTS8ImVectorI9ImDrawCmdE", !10, i64 0, !10, i64 4, !6, i64 8}
!14 = !{!"_ZTS8ImVectorIjE", !10, i64 0, !10, i64 4, !6, i64 8}
!15 = !{!"_ZTS8ImVectorI10ImDrawVertE", !10, i64 0, !10, i64 4, !6, i64 8}
!16 = !{!"_ZTS8ImVectorI6ImVec2E", !10, i64 0, !10, i64 4, !6, i64 8}
!17 = !{!"_ZTS15ImDrawCmdHeader", !18, i64 0, !20, i64 16, !10, i64 24}
!18 = !{!"_ZTS6ImVec4", !19, i64 0, !19, i64 4, !19, i64 8, !19, i64 12}
!19 = !{!"float", !7, i64 0}
!20 = !{!"long long", !7, i64 0}
!21 = !{!"_ZTS18ImDrawListSplitter", !10, i64 0, !10, i64 4, !22, i64 8}
!22 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !10, i64 0, !10, i64 4, !6, i64 8}
!23 = !{!"_ZTS8ImVectorI6ImVec4E", !10, i64 0, !10, i64 4, !6, i64 8}
!24 = !{!"_ZTS8ImVectorIyE", !10, i64 0, !10, i64 4, !6, i64 8}
!25 = !{!"_ZTS8ImVectorIhE", !10, i64 0, !10, i64 4, !6, i64 8}
!26 = !{i64 0, i64 4, !27, i64 4, i64 4, !27}
!27 = !{!19, !19, i64 0}
!28 = !{!12, !10, i64 48}
!29 = !{!12, !19, i64 200}
!30 = !{!12, !10, i64 52}
!31 = !{!32, !6, i64 72}
!32 = !{!"_ZTS20ImDrawListSharedData", !33, i64 0, !6, i64 8, !6, i64 16, !19, i64 24, !19, i64 28, !19, i64 32, !19, i64 36, !18, i64 40, !10, i64 56, !16, i64 64, !7, i64 80, !19, i64 464, !7, i64 468}
!33 = !{!"_ZTS6ImVec2", !19, i64 0, !19, i64 4}
!34 = !{!35, !10, i64 0}
!35 = !{!"_ZTS14ImTriangulator", !10, i64 0, !6, i64 8, !36, i64 16, !36, i64 32}
!36 = !{!"_ZTS22ImTriangulatorNodeSpan", !6, i64 0, !10, i64 8}
!37 = !{!12, !6, i64 72}
!38 = distinct !{!38, !39}
!39 = !{!"llvm.loop.mustprogress"}
!40 = !{!33, !19, i64 0}
!41 = !{!33, !19, i64 4}
!42 = distinct !{!42, !39}
!43 = !{!12, !6, i64 64}
!44 = !{!45, !19, i64 0}
!45 = !{!"_ZTS10ImDrawVert", !33, i64 0, !33, i64 8, !10, i64 16}
!46 = !{!45, !19, i64 4}
!47 = !{!45, !10, i64 16}
!48 = distinct !{!48, !39}
!49 = distinct !{!49, !39}
!50 = distinct !{!50, !39}


; 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.ImTriangulator = type { i32, ptr, %struct.ImTriangulatorNodeSpan, %struct.ImTriangulatorNodeSpan }
%struct.ImTriangulatorNodeSpan = type <{ ptr, i32, [4 x i8] }>
%struct.ImVec2 = type { float, float }

; 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: mustprogress uwtable
declare dso_local void @_ZN10ImDrawList11PrimReserveEii(ptr noundef nonnull align 8 dereferenceable(216), i32 noundef, i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8ImVectorI6ImVec2E15reserve_discardEi(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #3

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef float @_ZL7ImRsqrtf(float noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN14ImTriangulator4InitEPK6ImVec2iPv(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN14ImTriangulator15GetNextTriangleEPj(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10ImDrawList20AddConcavePolyFilledEPK6ImVec2ij(ptr noundef nonnull align 8 dereferenceable(216) %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #1 align 2 {
  %5 = alloca %struct.ImTriangulator, align 8
  %6 = alloca [3 x i32], align 4
  %7 = icmp slt i32 %2, 3
  %8 = icmp ult i32 %3, 16777216
  %or.cond = or i1 %7, %8
  br i1 %or.cond, label %204, label %9

9:                                                ; preds = %4
  %10 = getelementptr inbounds i8, ptr %0, i64 56
  %11 = load ptr, ptr %10, align 8, !tbaa !5
  %12 = load i64, ptr %11, align 8
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %5) #7
  call void @_ZN14ImTriangulatorC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #7
  %13 = getelementptr inbounds i8, ptr %0, i64 48
  %14 = load i32, ptr %13, align 8, !tbaa !24
  %15 = and i32 %14, 4
  %.not = icmp eq i32 %15, 0
  br i1 %.not, label %.lr.ph136, label %16

16:                                               ; preds = %9
  %17 = getelementptr inbounds i8, ptr %0, i64 200
  %18 = load float, ptr %17, align 8, !tbaa !25
  %19 = and i32 %3, 16777215
  %reass.mul = mul i32 %2, 9
  %20 = add i32 %reass.mul, -6
  %21 = shl nuw nsw i32 %2, 1
  call void @_ZN10ImDrawList11PrimReserveEii(ptr noundef nonnull align 8 dereferenceable(216) %0, i32 noundef %20, i32 noundef %21)
  %22 = getelementptr inbounds i8, ptr %0, i64 52
  %23 = load i32, ptr %22, align 4, !tbaa !26
  %24 = add i32 %23, 1
  %25 = load ptr, ptr %10, align 8, !tbaa !5
  %26 = getelementptr inbounds i8, ptr %25, i64 64
  %27 = call noundef i32 @_ZN14ImTriangulator25EstimateScratchBufferSizeEi(i32 noundef %2)
  %28 = sext i32 %27 to i64
  %29 = add nsw i64 %28, 8
  %30 = lshr i64 %29, 3
  %31 = trunc i64 %30 to i32
  call void @_ZN8ImVectorI6ImVec2E15reserve_discardEi(ptr noundef nonnull align 8 dereferenceable(16) %26, i32 noundef %31)
  %32 = load ptr, ptr %10, align 8, !tbaa !5
  %33 = getelementptr inbounds i8, ptr %32, i64 72
  %34 = load ptr, ptr %33, align 8, !tbaa !27
  call void @_ZN14ImTriangulator4InitEPK6ImVec2iPv(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef %1, i32 noundef %2, ptr noundef %34)
  %35 = load i32, ptr %5, align 8, !tbaa !30
  %36 = icmp sgt i32 %35, 0
  br i1 %36, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %16
  %37 = getelementptr inbounds i8, ptr %0, i64 72
  %38 = getelementptr inbounds i8, ptr %6, i64 4
  %39 = getelementptr inbounds i8, ptr %6, i64 8
  br label %40

40:                                               ; preds = %.lr.ph, %40
  call void @_ZN14ImTriangulator15GetNextTriangleEPj(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull %6)
  %41 = load i32, ptr %6, align 4, !tbaa !33
  %42 = shl i32 %41, 1
  %43 = add i32 %42, %23
  %44 = load ptr, ptr %37, align 8, !tbaa !34
  store i32 %43, ptr %44, align 4, !tbaa !33
  %45 = load i32, ptr %38, align 4, !tbaa !33
  %46 = shl i32 %45, 1
  %47 = add i32 %46, %23
  %48 = getelementptr inbounds i8, ptr %44, i64 4
  store i32 %47, ptr %48, align 4, !tbaa !33
  %49 = load i32, ptr %39, align 4, !tbaa !33
  %50 = shl i32 %49, 1
  %51 = add i32 %50, %23
  %52 = getelementptr inbounds i8, ptr %44, i64 8
  store i32 %51, ptr %52, align 4, !tbaa !33
  %53 = getelementptr inbounds i8, ptr %44, i64 12
  store ptr %53, ptr %37, align 8, !tbaa !34
  %54 = load i32, ptr %5, align 8, !tbaa !30
  %55 = icmp sgt i32 %54, 0
  br i1 %55, label %40, label %._crit_edge, !llvm.loop !35

._crit_edge:                                      ; preds = %40, %16
  %56 = load ptr, ptr %10, align 8, !tbaa !5
  %57 = getelementptr inbounds i8, ptr %56, i64 64
  call void @_ZN8ImVectorI6ImVec2E15reserve_discardEi(ptr noundef nonnull align 8 dereferenceable(16) %57, i32 noundef %2)
  %58 = load ptr, ptr %10, align 8, !tbaa !5
  %59 = getelementptr inbounds i8, ptr %58, i64 72
  %60 = load ptr, ptr %59, align 8, !tbaa !27
  %61 = add nsw i32 %2, -1
  %62 = icmp sgt i32 %2, 0
  br i1 %62, label %.lr.ph129.preheader, label %._crit_edge133

.lr.ph129.preheader:                              ; preds = %._crit_edge
  %wide.trip.count = zext nneg i32 %2 to i64
  br label %.lr.ph129

.preheader:                                       ; preds = %84
  br i1 %62, label %.lr.ph132, label %._crit_edge133

.lr.ph132:                                        ; preds = %.preheader
  %63 = fmul float %18, 5.000000e-01
  %64 = getelementptr inbounds i8, ptr %0, i64 64
  %65 = getelementptr inbounds i8, ptr %0, i64 72
  %wide.trip.count145 = zext nneg i32 %2 to i64
  %66 = insertelement <2 x float> poison, float %63, i64 0
  %67 = shufflevector <2 x float> %66, <2 x float> poison, <2 x i32> zeroinitializer
  br label %92

.lr.ph129:                                        ; preds = %.lr.ph129.preheader, %84
  %indvars.iv = phi i64 [ 0, %.lr.ph129.preheader ], [ %indvars.iv.next, %84 ]
  %.0111127 = phi i32 [ %61, %.lr.ph129.preheader ], [ %91, %84 ]
  %68 = sext i32 %.0111127 to i64
  %69 = getelementptr inbounds %struct.ImVec2, ptr %1, i64 %68
  %70 = getelementptr inbounds %struct.ImVec2, ptr %1, i64 %indvars.iv
  %71 = load <2 x float>, ptr %70, align 4, !tbaa !37
  %72 = load <2 x float>, ptr %69, align 4, !tbaa !37
  %73 = fsub <2 x float> %71, %72
  %74 = fmul <2 x float> %73, %73
  %75 = extractelement <2 x float> %74, i64 1
  %76 = extractelement <2 x float> %73, i64 0
  %77 = call float @llvm.fmuladd.f32(float %76, float %76, float %75)
  %78 = fcmp ogt float %77, 0.000000e+00
  br i1 %78, label %79, label %84

79:                                               ; preds = %.lr.ph129
  %80 = call noundef float @_ZL7ImRsqrtf(float noundef %77)
  %81 = insertelement <2 x float> poison, float %80, i64 0
  %82 = shufflevector <2 x float> %81, <2 x float> poison, <2 x i32> zeroinitializer
  %83 = fmul <2 x float> %73, %82
  br label %84

84:                                               ; preds = %79, %.lr.ph129
  %85 = phi <2 x float> [ %83, %79 ], [ %73, %.lr.ph129 ]
  %86 = getelementptr inbounds %struct.ImVec2, ptr %60, i64 %68
  %87 = extractelement <2 x float> %85, i64 1
  store float %87, ptr %86, align 4, !tbaa !38
  %88 = extractelement <2 x float> %85, i64 0
  %89 = fneg float %88
  %90 = getelementptr inbounds i8, ptr %86, i64 4
  store float %89, ptr %90, align 4, !tbaa !39
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %91 = trunc nuw nsw i64 %indvars.iv to i32
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.preheader, label %.lr.ph129, !llvm.loop !40

92:                                               ; preds = %.lr.ph132, %111
  %indvars.iv142 = phi i64 [ 0, %.lr.ph132 ], [ %indvars.iv.next143, %111 ]
  %.0118131 = phi i32 [ %61, %.lr.ph132 ], [ %141, %111 ]
  %93 = sext i32 %.0118131 to i64
  %94 = getelementptr inbounds %struct.ImVec2, ptr %60, i64 %93
  %95 = getelementptr inbounds %struct.ImVec2, ptr %60, i64 %indvars.iv142
  %96 = load <2 x float>, ptr %94, align 4, !tbaa !37
  %97 = load <2 x float>, ptr %95, align 4, !tbaa !37
  %98 = fadd <2 x float> %96, %97
  %99 = fmul <2 x float> %98, <float 5.000000e-01, float 5.000000e-01>
  %100 = fmul <2 x float> %99, %99
  %101 = extractelement <2 x float> %100, i64 1
  %102 = extractelement <2 x float> %99, i64 0
  %103 = call float @llvm.fmuladd.f32(float %102, float %102, float %101)
  %104 = fcmp ogt float %103, 0x3EB0C6F7A0000000
  br i1 %104, label %105, label %111

105:                                              ; preds = %92
  %106 = fdiv float 1.000000e+00, %103
  %107 = fcmp ogt float %106, 1.000000e+02
  %.0113 = select i1 %107, float 1.000000e+02, float %106
  %108 = insertelement <2 x float> poison, float %.0113, i64 0
  %109 = shufflevector <2 x float> %108, <2 x float> poison, <2 x i32> zeroinitializer
  %110 = fmul <2 x float> %99, %109
  br label %111

111:                                              ; preds = %105, %92
  %112 = phi <2 x float> [ %110, %105 ], [ %99, %92 ]
  %113 = fmul <2 x float> %67, %112
  %114 = getelementptr inbounds %struct.ImVec2, ptr %1, i64 %indvars.iv142
  %115 = load ptr, ptr %64, align 8, !tbaa !41
  %116 = load <2 x float>, ptr %114, align 4, !tbaa !37
  %117 = fsub <2 x float> %116, %113
  store <2 x float> %117, ptr %115, align 4, !tbaa !37
  %118 = getelementptr inbounds i8, ptr %115, i64 8
  store i64 %12, ptr %118, align 4
  %119 = load ptr, ptr %64, align 8, !tbaa !41
  %120 = getelementptr inbounds i8, ptr %119, i64 16
  store i32 %3, ptr %120, align 4, !tbaa !42
  %121 = getelementptr inbounds i8, ptr %119, i64 20
  %122 = load <2 x float>, ptr %114, align 4, !tbaa !37
  %123 = fadd <2 x float> %113, %122
  store <2 x float> %123, ptr %121, align 4, !tbaa !37
  %124 = getelementptr inbounds i8, ptr %119, i64 28
  store i64 %12, ptr %124, align 4
  %125 = load ptr, ptr %64, align 8, !tbaa !41
  %126 = getelementptr inbounds i8, ptr %125, i64 36
  store i32 %19, ptr %126, align 4, !tbaa !42
  %127 = getelementptr inbounds i8, ptr %125, i64 40
  store ptr %127, ptr %64, align 8, !tbaa !41
  %indvars.iv142.tr = trunc i64 %indvars.iv142 to i32
  %128 = shl i32 %indvars.iv142.tr, 1
  %129 = add i32 %128, %23
  %130 = load ptr, ptr %65, align 8, !tbaa !34
  store i32 %129, ptr %130, align 4, !tbaa !33
  %131 = shl i32 %.0118131, 1
  %132 = add i32 %131, %23
  %133 = getelementptr inbounds i8, ptr %130, i64 4
  store i32 %132, ptr %133, align 4, !tbaa !33
  %134 = add i32 %131, %24
  %135 = getelementptr inbounds i8, ptr %130, i64 8
  store i32 %134, ptr %135, align 4, !tbaa !33
  %136 = getelementptr inbounds i8, ptr %130, i64 12
  store i32 %134, ptr %136, align 4, !tbaa !33
  %137 = add i32 %128, %24
  %138 = getelementptr inbounds i8, ptr %130, i64 16
  store i32 %137, ptr %138, align 4, !tbaa !33
  %139 = getelementptr inbounds i8, ptr %130, i64 20
  store i32 %129, ptr %139, align 4, !tbaa !33
  %140 = getelementptr inbounds i8, ptr %130, i64 24
  store ptr %140, ptr %65, align 8, !tbaa !34
  %indvars.iv.next143 = add nuw nsw i64 %indvars.iv142, 1
  %141 = trunc nuw nsw i64 %indvars.iv142 to i32
  %exitcond146.not = icmp eq i64 %indvars.iv.next143, %wide.trip.count145
  br i1 %exitcond146.not, label %._crit_edge133, label %92, !llvm.loop !44

.lr.ph136:                                        ; preds = %9
  %142 = mul i32 %2, 3
  %143 = add i32 %142, -6
  call void @_ZN10ImDrawList11PrimReserveEii(ptr noundef nonnull align 8 dereferenceable(216) %0, i32 noundef %143, i32 noundef %2)
  %144 = getelementptr inbounds i8, ptr %0, i64 64
  %wide.trip.count150 = zext nneg i32 %2 to i64
  %.pre = load ptr, ptr %144, align 8, !tbaa !41
  %xtraiter = and i64 %wide.trip.count150, 1
  %145 = icmp eq i32 %2, 1
  br i1 %145, label %._crit_edge137.unr-lcssa, label %.lr.ph136.new

.lr.ph136.new:                                    ; preds = %.lr.ph136
  %unroll_iter = and i64 %wide.trip.count150, 2147483646
  br label %169

._crit_edge137.unr-lcssa:                         ; preds = %169, %.lr.ph136
  %.unr = phi ptr [ %.pre, %.lr.ph136 ], [ %184, %169 ]
  %indvars.iv147.unr = phi i64 [ 0, %.lr.ph136 ], [ %indvars.iv.next148.1, %169 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge137, label %._crit_edge137.epilog-lcssa

._crit_edge137.epilog-lcssa:                      ; preds = %._crit_edge137.unr-lcssa
  %146 = getelementptr inbounds %struct.ImVec2, ptr %1, i64 %indvars.iv147.unr
  %147 = load i64, ptr %146, align 4
  store i64 %147, ptr %.unr, align 4
  %148 = load ptr, ptr %144, align 8, !tbaa !41
  %149 = getelementptr inbounds i8, ptr %148, i64 8
  store i64 %12, ptr %149, align 4
  %150 = load ptr, ptr %144, align 8, !tbaa !41
  %151 = getelementptr inbounds i8, ptr %150, i64 16
  store i32 %3, ptr %151, align 4, !tbaa !42
  %152 = getelementptr inbounds i8, ptr %150, i64 20
  store ptr %152, ptr %144, align 8, !tbaa !41
  br label %._crit_edge137

._crit_edge137:                                   ; preds = %._crit_edge137.unr-lcssa, %._crit_edge137.epilog-lcssa
  %153 = load ptr, ptr %10, align 8, !tbaa !5
  %154 = getelementptr inbounds i8, ptr %153, i64 64
  %155 = call noundef i32 @_ZN14ImTriangulator25EstimateScratchBufferSizeEi(i32 noundef %2)
  %156 = sext i32 %155 to i64
  %157 = add nsw i64 %156, 8
  %158 = lshr i64 %157, 3
  %159 = trunc i64 %158 to i32
  call void @_ZN8ImVectorI6ImVec2E15reserve_discardEi(ptr noundef nonnull align 8 dereferenceable(16) %154, i32 noundef %159)
  %160 = load ptr, ptr %10, align 8, !tbaa !5
  %161 = getelementptr inbounds i8, ptr %160, i64 72
  %162 = load ptr, ptr %161, align 8, !tbaa !27
  call void @_ZN14ImTriangulator4InitEPK6ImVec2iPv(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull %1, i32 noundef %2, ptr noundef %162)
  %163 = load i32, ptr %5, align 8, !tbaa !30
  %164 = icmp sgt i32 %163, 0
  br i1 %164, label %.lr.ph139, label %._crit_edge140

.lr.ph139:                                        ; preds = %._crit_edge137
  %165 = getelementptr inbounds i8, ptr %0, i64 52
  %166 = getelementptr inbounds i8, ptr %0, i64 72
  %167 = getelementptr inbounds i8, ptr %6, i64 4
  %168 = getelementptr inbounds i8, ptr %6, i64 8
  br label %185

169:                                              ; preds = %169, %.lr.ph136.new
  %170 = phi ptr [ %.pre, %.lr.ph136.new ], [ %184, %169 ]
  %indvars.iv147 = phi i64 [ 0, %.lr.ph136.new ], [ %indvars.iv.next148.1, %169 ]
  %niter = phi i64 [ 0, %.lr.ph136.new ], [ %niter.next.1, %169 ]
  %171 = getelementptr inbounds %struct.ImVec2, ptr %1, i64 %indvars.iv147
  %172 = load i64, ptr %171, align 4
  store i64 %172, ptr %170, align 4
  %173 = load ptr, ptr %144, align 8, !tbaa !41
  %174 = getelementptr inbounds i8, ptr %173, i64 8
  store i64 %12, ptr %174, align 4
  %175 = load ptr, ptr %144, align 8, !tbaa !41
  %176 = getelementptr inbounds i8, ptr %175, i64 16
  store i32 %3, ptr %176, align 4, !tbaa !42
  %177 = getelementptr inbounds i8, ptr %175, i64 20
  store ptr %177, ptr %144, align 8, !tbaa !41
  %indvars.iv.next148 = or disjoint i64 %indvars.iv147, 1
  %178 = getelementptr inbounds %struct.ImVec2, ptr %1, i64 %indvars.iv.next148
  %179 = load i64, ptr %178, align 4
  store i64 %179, ptr %177, align 4
  %180 = load ptr, ptr %144, align 8, !tbaa !41
  %181 = getelementptr inbounds i8, ptr %180, i64 8
  store i64 %12, ptr %181, align 4
  %182 = load ptr, ptr %144, align 8, !tbaa !41
  %183 = getelementptr inbounds i8, ptr %182, i64 16
  store i32 %3, ptr %183, align 4, !tbaa !42
  %184 = getelementptr inbounds i8, ptr %182, i64 20
  store ptr %184, ptr %144, align 8, !tbaa !41
  %indvars.iv.next148.1 = add nuw nsw i64 %indvars.iv147, 2
  %niter.next.1 = add nuw nsw i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge137.unr-lcssa, label %169, !llvm.loop !45

185:                                              ; preds = %.lr.ph139, %185
  call void @_ZN14ImTriangulator15GetNextTriangleEPj(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull %6)
  %186 = load i32, ptr %165, align 4, !tbaa !26
  %187 = load i32, ptr %6, align 4, !tbaa !33
  %188 = add i32 %187, %186
  %189 = load ptr, ptr %166, align 8, !tbaa !34
  store i32 %188, ptr %189, align 4, !tbaa !33
  %190 = load i32, ptr %165, align 4, !tbaa !26
  %191 = load i32, ptr %167, align 4, !tbaa !33
  %192 = add i32 %191, %190
  %193 = getelementptr inbounds i8, ptr %189, i64 4
  store i32 %192, ptr %193, align 4, !tbaa !33
  %194 = load i32, ptr %165, align 4, !tbaa !26
  %195 = load i32, ptr %168, align 4, !tbaa !33
  %196 = add i32 %195, %194
  %197 = getelementptr inbounds i8, ptr %189, i64 8
  store i32 %196, ptr %197, align 4, !tbaa !33
  %198 = getelementptr inbounds i8, ptr %189, i64 12
  store ptr %198, ptr %166, align 8, !tbaa !34
  %199 = load i32, ptr %5, align 8, !tbaa !30
  %200 = icmp sgt i32 %199, 0
  br i1 %200, label %185, label %._crit_edge140, !llvm.loop !46

._crit_edge140:                                   ; preds = %185, %._crit_edge137
  %201 = getelementptr inbounds i8, ptr %0, i64 52
  br label %._crit_edge133

._crit_edge133:                                   ; preds = %111, %.preheader, %._crit_edge, %._crit_edge140
  %.sink = phi ptr [ %201, %._crit_edge140 ], [ %22, %._crit_edge ], [ %22, %.preheader ], [ %22, %111 ]
  %.sink154 = phi i32 [ %2, %._crit_edge140 ], [ %21, %._crit_edge ], [ %21, %.preheader ], [ %21, %111 ]
  %202 = load i32, ptr %.sink, align 4, !tbaa !26
  %203 = add i32 %202, %.sink154
  store i32 %203, ptr %.sink, align 4, !tbaa !26
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #7
  br label %204

204:                                              ; preds = %4, %._crit_edge133
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN14ImTriangulatorC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN14ImTriangulator25EstimateScratchBufferSizeEi(i32 noundef) local_unnamed_addr #6 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { inlinehint 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 #3 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { inlinehint mustprogress uwtable "min-legal-vector-width"="128" "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 #5 = { 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 #6 = { 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 #7 = { 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, !11, i64 56}
!6 = !{!"_ZTS10ImDrawList", !7, i64 0, !12, i64 16, !13, i64 32, !8, i64 48, !8, i64 52, !11, i64 56, !11, i64 64, !11, i64 72, !14, i64 80, !15, i64 96, !19, i64 128, !21, i64 152, !22, i64 168, !23, i64 184, !17, i64 200, !11, i64 208}
!7 = !{!"_ZTS8ImVectorI9ImDrawCmdE", !8, i64 0, !8, i64 4, !11, i64 8}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!"_ZTS8ImVectorIjE", !8, i64 0, !8, i64 4, !11, i64 8}
!13 = !{!"_ZTS8ImVectorI10ImDrawVertE", !8, i64 0, !8, i64 4, !11, i64 8}
!14 = !{!"_ZTS8ImVectorI6ImVec2E", !8, i64 0, !8, i64 4, !11, i64 8}
!15 = !{!"_ZTS15ImDrawCmdHeader", !16, i64 0, !18, i64 16, !8, i64 24}
!16 = !{!"_ZTS6ImVec4", !17, i64 0, !17, i64 4, !17, i64 8, !17, i64 12}
!17 = !{!"float", !9, i64 0}
!18 = !{!"long long", !9, i64 0}
!19 = !{!"_ZTS18ImDrawListSplitter", !8, i64 0, !8, i64 4, !20, i64 8}
!20 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !8, i64 0, !8, i64 4, !11, i64 8}
!21 = !{!"_ZTS8ImVectorI6ImVec4E", !8, i64 0, !8, i64 4, !11, i64 8}
!22 = !{!"_ZTS8ImVectorIyE", !8, i64 0, !8, i64 4, !11, i64 8}
!23 = !{!"_ZTS8ImVectorIhE", !8, i64 0, !8, i64 4, !11, i64 8}
!24 = !{!6, !8, i64 48}
!25 = !{!6, !17, i64 200}
!26 = !{!6, !8, i64 52}
!27 = !{!28, !11, i64 72}
!28 = !{!"_ZTS20ImDrawListSharedData", !29, i64 0, !11, i64 8, !11, i64 16, !17, i64 24, !17, i64 28, !17, i64 32, !17, i64 36, !16, i64 40, !8, i64 56, !14, i64 64, !9, i64 80, !17, i64 464, !9, i64 468}
!29 = !{!"_ZTS6ImVec2", !17, i64 0, !17, i64 4}
!30 = !{!31, !8, i64 0}
!31 = !{!"_ZTS14ImTriangulator", !8, i64 0, !11, i64 8, !32, i64 16, !32, i64 32}
!32 = !{!"_ZTS22ImTriangulatorNodeSpan", !11, i64 0, !8, i64 8}
!33 = !{!8, !8, i64 0}
!34 = !{!6, !11, i64 72}
!35 = distinct !{!35, !36}
!36 = !{!"llvm.loop.mustprogress"}
!37 = !{!17, !17, i64 0}
!38 = !{!29, !17, i64 0}
!39 = !{!29, !17, i64 4}
!40 = distinct !{!40, !36}
!41 = !{!6, !11, i64 64}
!42 = !{!43, !8, i64 16}
!43 = !{!"_ZTS10ImDrawVert", !29, i64 0, !29, i64 8, !8, i64 16}
!44 = distinct !{!44, !36}
!45 = distinct !{!45, !36}
!46 = distinct !{!46, !36}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,VectorCombinePass