; LLVM IR from xhub/reshop :: gui/external/imgui/imgui_draw.ll (ZN10ImDrawList20AddConcavePolyFilledEPK6ImVec2ij)

; 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 %494

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 %397

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 %126

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 = trunc i32 %100 to i16
  %102 = getelementptr inbounds %struct.ImDrawList, ptr %38, i32 0, i32 7
  %103 = load ptr, ptr %102, align 8, !tbaa !37
  %104 = getelementptr inbounds i16, ptr %103, i64 0
  store i16 %101, ptr %104, align 2, !tbaa !38
  %105 = load i32, ptr %16, align 4, !tbaa !9
  %106 = getelementptr inbounds [3 x i32], ptr %11, i64 0, i64 1
  %107 = load i32, ptr %106, align 4, !tbaa !9
  %108 = shl i32 %107, 1
  %109 = add i32 %105, %108
  %110 = trunc i32 %109 to i16
  %111 = getelementptr inbounds %struct.ImDrawList, ptr %38, i32 0, i32 7
  %112 = load ptr, ptr %111, align 8, !tbaa !37
  %113 = getelementptr inbounds i16, ptr %112, i64 1
  store i16 %110, ptr %113, align 2, !tbaa !38
  %114 = load i32, ptr %16, align 4, !tbaa !9
  %115 = getelementptr inbounds [3 x i32], ptr %11, i64 0, i64 2
  %116 = load i32, ptr %115, align 4, !tbaa !9
  %117 = shl i32 %116, 1
  %118 = add i32 %114, %117
  %119 = trunc i32 %118 to i16
  %120 = getelementptr inbounds %struct.ImDrawList, ptr %38, i32 0, i32 7
  %121 = load ptr, ptr %120, align 8, !tbaa !37
  %122 = getelementptr inbounds i16, ptr %121, i64 2
  store i16 %119, ptr %122, align 2, !tbaa !38
  %123 = getelementptr inbounds %struct.ImDrawList, ptr %38, i32 0, i32 7
  %124 = load ptr, ptr %123, align 8, !tbaa !37
  %125 = getelementptr inbounds i16, ptr %124, i64 3
  store ptr %125, ptr %123, align 8, !tbaa !37
  br label %90, !llvm.loop !40

126:                                              ; preds = %90
  %127 = getelementptr inbounds %struct.ImDrawList, ptr %38, i32 0, i32 5
  %128 = load ptr, ptr %127, align 8, !tbaa !11
  %129 = getelementptr inbounds %struct.ImDrawListSharedData, ptr %128, i32 0, i32 10
  %130 = load i32, ptr %7, align 4, !tbaa !9
  call void @_ZN8ImVectorI6ImVec2E15reserve_discardEi(ptr noundef nonnull align 8 dereferenceable(16) %129, i32 noundef %130)
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %131 = getelementptr inbounds %struct.ImDrawList, ptr %38, i32 0, i32 5
  %132 = load ptr, ptr %131, align 8, !tbaa !11
  %133 = getelementptr inbounds %struct.ImDrawListSharedData, ptr %132, i32 0, i32 10
  %134 = getelementptr inbounds %struct.ImVector, ptr %133, i32 0, i32 2
  %135 = load ptr, ptr %134, align 8, !tbaa !31
  store ptr %135, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  %136 = load i32, ptr %7, align 4, !tbaa !9
  %137 = sub nsw i32 %136, 1
  store i32 %137, 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 %138

138:                                              ; preds = %197, %126
  %139 = load i32, ptr %20, align 4, !tbaa !9
  %140 = load i32, ptr %7, align 4, !tbaa !9
  %141 = icmp slt i32 %139, %140
  br i1 %141, label %143, label %142

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

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

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

183:                                              ; preds = %174, %143
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  %184 = load float, ptr %24, align 4, !tbaa !27
  %185 = load ptr, ptr %18, align 8, !tbaa !5
  %186 = load i32, ptr %19, align 4, !tbaa !9
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds %struct.ImVec2, ptr %185, i64 %187
  %189 = getelementptr inbounds %struct.ImVec2, ptr %188, i32 0, i32 0
  store float %184, ptr %189, align 4, !tbaa !42
  %190 = load float, ptr %23, align 4, !tbaa !27
  %191 = fneg float %190
  %192 = load ptr, ptr %18, align 8, !tbaa !5
  %193 = load i32, ptr %19, align 4, !tbaa !9
  %194 = sext i32 %193 to i64
  %195 = getelementptr inbounds %struct.ImVec2, ptr %192, i64 %194
  %196 = getelementptr inbounds %struct.ImVec2, ptr %195, i32 0, i32 1
  store float %191, ptr %196, align 4, !tbaa !43
  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 %197

197:                                              ; preds = %183
  %198 = load i32, ptr %20, align 4, !tbaa !9
  %199 = add nsw i32 %198, 1
  store i32 %199, ptr %20, align 4, !tbaa !9
  store i32 %198, ptr %19, align 4, !tbaa !9
  br label %138, !llvm.loop !44

200:                                              ; preds = %142
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #8
  %201 = load i32, ptr %7, align 4, !tbaa !9
  %202 = sub nsw i32 %201, 1
  store i32 %202, 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 %203

203:                                              ; preds = %387, %200
  %204 = load i32, ptr %28, align 4, !tbaa !9
  %205 = load i32, ptr %7, align 4, !tbaa !9
  %206 = icmp slt i32 %204, %205
  br i1 %206, label %208, label %207

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

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

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

246:                                              ; preds = %241
  store float 1.000000e+02, ptr %34, align 4, !tbaa !27
  br label %247

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

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

387:                                              ; preds = %254
  %388 = load i32, ptr %28, align 4, !tbaa !9
  %389 = add nsw i32 %388, 1
  store i32 %389, ptr %28, align 4, !tbaa !9
  store i32 %388, ptr %27, align 4, !tbaa !9
  br label %203, !llvm.loop !50

390:                                              ; preds = %207
  %391 = load i32, ptr %15, align 4, !tbaa !9
  %392 = trunc i32 %391 to i16
  %393 = zext i16 %392 to i32
  %394 = getelementptr inbounds %struct.ImDrawList, ptr %38, i32 0, i32 4
  %395 = load i32, ptr %394, align 4, !tbaa !30
  %396 = add i32 %395, %393
  store i32 %396, ptr %394, 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 %493

397:                                              ; preds = %46
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #8
  %398 = load i32, ptr %7, align 4, !tbaa !9
  %399 = sub nsw i32 %398, 2
  %400 = mul nsw i32 %399, 3
  store i32 %400, ptr %35, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #8
  %401 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %401, ptr %36, align 4, !tbaa !9
  %402 = load i32, ptr %35, align 4, !tbaa !9
  %403 = load i32, ptr %36, align 4, !tbaa !9
  call void @_ZN10ImDrawList11PrimReserveEii(ptr noundef nonnull align 8 dereferenceable(216) %38, i32 noundef %402, i32 noundef %403)
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #8
  store i32 0, ptr %37, align 4, !tbaa !9
  br label %404

404:                                              ; preds = %430, %397
  %405 = load i32, ptr %37, align 4, !tbaa !9
  %406 = load i32, ptr %36, align 4, !tbaa !9
  %407 = icmp slt i32 %405, %406
  br i1 %407, label %409, label %408

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

409:                                              ; preds = %404
  %410 = load ptr, ptr %6, align 8, !tbaa !5
  %411 = load i32, ptr %37, align 4, !tbaa !9
  %412 = sext i32 %411 to i64
  %413 = getelementptr inbounds %struct.ImVec2, ptr %410, i64 %412
  %414 = getelementptr inbounds %struct.ImDrawList, ptr %38, i32 0, i32 6
  %415 = load ptr, ptr %414, align 8, !tbaa !45
  %416 = getelementptr inbounds %struct.ImDrawVert, ptr %415, i64 0
  %417 = getelementptr inbounds %struct.ImDrawVert, ptr %416, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %417, ptr align 4 %413, i64 8, i1 false), !tbaa.struct !26
  %418 = getelementptr inbounds %struct.ImDrawList, ptr %38, i32 0, i32 6
  %419 = load ptr, ptr %418, align 8, !tbaa !45
  %420 = getelementptr inbounds %struct.ImDrawVert, ptr %419, i64 0
  %421 = getelementptr inbounds %struct.ImDrawVert, ptr %420, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %421, ptr align 4 %9, i64 8, i1 false), !tbaa.struct !26
  %422 = load i32, ptr %8, align 4, !tbaa !9
  %423 = getelementptr inbounds %struct.ImDrawList, ptr %38, i32 0, i32 6
  %424 = load ptr, ptr %423, align 8, !tbaa !45
  %425 = getelementptr inbounds %struct.ImDrawVert, ptr %424, i64 0
  %426 = getelementptr inbounds %struct.ImDrawVert, ptr %425, i32 0, i32 2
  store i32 %422, ptr %426, align 4, !tbaa !49
  %427 = getelementptr inbounds %struct.ImDrawList, ptr %38, i32 0, i32 6
  %428 = load ptr, ptr %427, align 8, !tbaa !45
  %429 = getelementptr inbounds %struct.ImDrawVert, ptr %428, i32 1
  store ptr %429, ptr %427, align 8, !tbaa !45
  br label %430

430:                                              ; preds = %409
  %431 = load i32, ptr %37, align 4, !tbaa !9
  %432 = add nsw i32 %431, 1
  store i32 %432, ptr %37, align 4, !tbaa !9
  br label %404, !llvm.loop !51

433:                                              ; preds = %408
  %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 = load i32, ptr %7, align 4, !tbaa !9
  %438 = call noundef i32 @_ZN14ImTriangulator25EstimateScratchBufferSizeEi(i32 noundef %437)
  %439 = sext i32 %438 to i64
  %440 = add i64 %439, 8
  %441 = udiv i64 %440, 8
  %442 = trunc i64 %441 to i32
  call void @_ZN8ImVectorI6ImVec2E15reserve_discardEi(ptr noundef nonnull align 8 dereferenceable(16) %436, i32 noundef %442)
  %443 = load ptr, ptr %6, align 8, !tbaa !5
  %444 = load i32, ptr %7, align 4, !tbaa !9
  %445 = getelementptr inbounds %struct.ImDrawList, ptr %38, i32 0, i32 5
  %446 = load ptr, ptr %445, align 8, !tbaa !11
  %447 = getelementptr inbounds %struct.ImDrawListSharedData, ptr %446, i32 0, i32 10
  %448 = getelementptr inbounds %struct.ImVector, ptr %447, i32 0, i32 2
  %449 = load ptr, ptr %448, align 8, !tbaa !31
  call void @_ZN14ImTriangulator4InitEPK6ImVec2iPv(ptr noundef nonnull align 8 dereferenceable(48) %10, ptr noundef %443, i32 noundef %444, ptr noundef %449)
  br label %450

450:                                              ; preds = %454, %433
  %451 = getelementptr inbounds %struct.ImTriangulator, ptr %10, i32 0, i32 0
  %452 = load i32, ptr %451, align 8, !tbaa !34
  %453 = icmp sgt i32 %452, 0
  br i1 %453, label %454, label %486

454:                                              ; preds = %450
  %455 = getelementptr inbounds [3 x i32], ptr %11, i64 0, i64 0
  call void @_ZN14ImTriangulator15GetNextTriangleEPj(ptr noundef nonnull align 8 dereferenceable(48) %10, ptr noundef %455)
  %456 = getelementptr inbounds %struct.ImDrawList, ptr %38, i32 0, i32 4
  %457 = load i32, ptr %456, align 4, !tbaa !30
  %458 = getelementptr inbounds [3 x i32], ptr %11, i64 0, i64 0
  %459 = load i32, ptr %458, align 4, !tbaa !9
  %460 = add i32 %457, %459
  %461 = trunc i32 %460 to i16
  %462 = getelementptr inbounds %struct.ImDrawList, ptr %38, i32 0, i32 7
  %463 = load ptr, ptr %462, align 8, !tbaa !37
  %464 = getelementptr inbounds i16, ptr %463, i64 0
  store i16 %461, ptr %464, align 2, !tbaa !38
  %465 = getelementptr inbounds %struct.ImDrawList, ptr %38, i32 0, i32 4
  %466 = load i32, ptr %465, align 4, !tbaa !30
  %467 = getelementptr inbounds [3 x i32], ptr %11, i64 0, i64 1
  %468 = load i32, ptr %467, align 4, !tbaa !9
  %469 = add i32 %466, %468
  %470 = trunc i32 %469 to i16
  %471 = getelementptr inbounds %struct.ImDrawList, ptr %38, i32 0, i32 7
  %472 = load ptr, ptr %471, align 8, !tbaa !37
  %473 = getelementptr inbounds i16, ptr %472, i64 1
  store i16 %470, ptr %473, align 2, !tbaa !38
  %474 = getelementptr inbounds %struct.ImDrawList, ptr %38, i32 0, i32 4
  %475 = load i32, ptr %474, align 4, !tbaa !30
  %476 = getelementptr inbounds [3 x i32], ptr %11, i64 0, i64 2
  %477 = load i32, ptr %476, align 4, !tbaa !9
  %478 = add i32 %475, %477
  %479 = trunc i32 %478 to i16
  %480 = getelementptr inbounds %struct.ImDrawList, ptr %38, i32 0, i32 7
  %481 = load ptr, ptr %480, align 8, !tbaa !37
  %482 = getelementptr inbounds i16, ptr %481, i64 2
  store i16 %479, ptr %482, align 2, !tbaa !38
  %483 = getelementptr inbounds %struct.ImDrawList, ptr %38, i32 0, i32 7
  %484 = load ptr, ptr %483, align 8, !tbaa !37
  %485 = getelementptr inbounds i16, ptr %484, i64 3
  store ptr %485, ptr %483, align 8, !tbaa !37
  br label %450, !llvm.loop !52

486:                                              ; preds = %450
  %487 = load i32, ptr %36, align 4, !tbaa !9
  %488 = trunc i32 %487 to i16
  %489 = zext i16 %488 to i32
  %490 = getelementptr inbounds %struct.ImDrawList, ptr %38, i32 0, i32 4
  %491 = load i32, ptr %490, align 4, !tbaa !30
  %492 = add i32 %491, %489
  store i32 %492, ptr %490, 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 %493

493:                                              ; preds = %486, %390
  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 %494

494:                                              ; preds = %493, %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 = !{!"_ZTS8ImVectorItE", !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 = !{!39, !39, i64 0}
!39 = !{!"short", !7, i64 0}
!40 = distinct !{!40, !41}
!41 = !{!"llvm.loop.mustprogress"}
!42 = !{!33, !19, i64 0}
!43 = !{!33, !19, i64 4}
!44 = distinct !{!44, !41}
!45 = !{!12, !6, i64 64}
!46 = !{!47, !19, i64 0}
!47 = !{!"_ZTS10ImDrawVert", !33, i64 0, !33, i64 8, !10, i64 16}
!48 = !{!47, !19, i64 4}
!49 = !{!47, !10, i64 16}
!50 = distinct !{!50, !41}
!51 = distinct !{!51, !41}
!52 = distinct !{!52, !41}


; 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 8
  %7 = icmp slt i32 %2, 3
  %8 = icmp ult i32 %3, 16777216
  %or.cond = or i1 %7, %8
  br i1 %or.cond, label %210, 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 8
  %39 = insertelement <2 x i32> poison, i32 %23, i64 0
  %40 = shufflevector <2 x i32> %39, <2 x i32> poison, <2 x i32> zeroinitializer
  br label %41

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

._crit_edge:                                      ; preds = %41, %16
  %55 = load ptr, ptr %10, align 8, !tbaa !5
  %56 = getelementptr inbounds i8, ptr %55, i64 64
  call void @_ZN8ImVectorI6ImVec2E15reserve_discardEi(ptr noundef nonnull align 8 dereferenceable(16) %56, i32 noundef %2)
  %57 = load ptr, ptr %10, align 8, !tbaa !5
  %58 = getelementptr inbounds i8, ptr %57, i64 72
  %59 = load ptr, ptr %58, align 8, !tbaa !27
  %60 = add nsw i32 %2, -1
  %61 = icmp sgt i32 %2, 0
  br i1 %61, 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 = %83
  br i1 %61, label %.lr.ph132, label %._crit_edge133

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

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

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

83:                                               ; preds = %78, %.lr.ph129
  %84 = phi <2 x float> [ %82, %78 ], [ %72, %.lr.ph129 ]
  %85 = getelementptr inbounds %struct.ImVec2, ptr %59, i64 %67
  %86 = extractelement <2 x float> %84, i64 1
  store float %86, ptr %85, align 4, !tbaa !40
  %87 = extractelement <2 x float> %84, i64 0
  %88 = fneg float %87
  %89 = getelementptr inbounds i8, ptr %85, i64 4
  store float %88, ptr %89, align 4, !tbaa !41
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %90 = 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 !42

._crit_edge133:                                   ; preds = %113, %._crit_edge, %.preheader
  %91 = and i32 %21, 65534
  %92 = load i32, ptr %22, align 4, !tbaa !26
  %93 = add i32 %92, %91
  store i32 %93, ptr %22, align 4, !tbaa !26
  br label %209

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

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

113:                                              ; preds = %107, %94
  %114 = phi <2 x float> [ %112, %107 ], [ %101, %94 ]
  %115 = fmul <2 x float> %66, %114
  %116 = getelementptr inbounds %struct.ImVec2, ptr %1, i64 %indvars.iv142
  %117 = load ptr, ptr %63, align 8, !tbaa !43
  %118 = load <2 x float>, ptr %116, align 4, !tbaa !39
  %119 = fsub <2 x float> %118, %115
  store <2 x float> %119, ptr %117, align 4, !tbaa !39
  %120 = getelementptr inbounds i8, ptr %117, i64 8
  store i64 %12, ptr %120, align 4
  %121 = load ptr, ptr %63, align 8, !tbaa !43
  %122 = getelementptr inbounds i8, ptr %121, i64 16
  store i32 %3, ptr %122, align 4, !tbaa !44
  %123 = getelementptr inbounds i8, ptr %121, i64 20
  %124 = load <2 x float>, ptr %116, align 4, !tbaa !39
  %125 = fadd <2 x float> %115, %124
  store <2 x float> %125, ptr %123, align 4, !tbaa !39
  %126 = getelementptr inbounds i8, ptr %121, i64 28
  store i64 %12, ptr %126, align 4
  %127 = load ptr, ptr %63, align 8, !tbaa !43
  %128 = getelementptr inbounds i8, ptr %127, i64 36
  store i32 %19, ptr %128, align 4, !tbaa !44
  %129 = getelementptr inbounds i8, ptr %127, i64 40
  store ptr %129, ptr %63, align 8, !tbaa !43
  %indvars.iv142.tr = trunc i64 %indvars.iv142 to i32
  %130 = shl i32 %indvars.iv142.tr, 1
  %131 = add i32 %130, %23
  %132 = trunc i32 %131 to i16
  %133 = load ptr, ptr %64, align 8, !tbaa !33
  store i16 %132, ptr %133, align 2, !tbaa !35
  %134 = shl i32 %.0118131, 1
  %135 = add i32 %134, %23
  %136 = trunc i32 %135 to i16
  %137 = getelementptr inbounds i8, ptr %133, i64 2
  store i16 %136, ptr %137, align 2, !tbaa !35
  %138 = add i32 %134, %24
  %139 = trunc i32 %138 to i16
  %140 = getelementptr inbounds i8, ptr %133, i64 4
  store i16 %139, ptr %140, align 2, !tbaa !35
  %141 = getelementptr inbounds i8, ptr %133, i64 6
  store i16 %139, ptr %141, align 2, !tbaa !35
  %142 = add i32 %130, %24
  %143 = trunc i32 %142 to i16
  %144 = getelementptr inbounds i8, ptr %133, i64 8
  store i16 %143, ptr %144, align 2, !tbaa !35
  %145 = getelementptr inbounds i8, ptr %133, i64 10
  store i16 %132, ptr %145, align 2, !tbaa !35
  %146 = getelementptr inbounds i8, ptr %133, i64 12
  store ptr %146, ptr %64, align 8, !tbaa !33
  %indvars.iv.next143 = add nuw nsw i64 %indvars.iv142, 1
  %147 = 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 %94, !llvm.loop !46

.lr.ph136:                                        ; preds = %9
  %148 = mul i32 %2, 3
  %149 = add i32 %148, -6
  call void @_ZN10ImDrawList11PrimReserveEii(ptr noundef nonnull align 8 dereferenceable(216) %0, i32 noundef %149, i32 noundef %2)
  %150 = getelementptr inbounds i8, ptr %0, i64 64
  %wide.trip.count150 = zext nneg i32 %2 to i64
  %.pre = load ptr, ptr %150, align 8, !tbaa !43
  %xtraiter = and i64 %wide.trip.count150, 1
  %151 = icmp eq i32 %2, 1
  br i1 %151, 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 %174

._crit_edge137.unr-lcssa:                         ; preds = %174, %.lr.ph136
  %.unr = phi ptr [ %.pre, %.lr.ph136 ], [ %189, %174 ]
  %indvars.iv147.unr = phi i64 [ 0, %.lr.ph136 ], [ %indvars.iv.next148.1, %174 ]
  %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
  %152 = getelementptr inbounds %struct.ImVec2, ptr %1, i64 %indvars.iv147.unr
  %153 = load i64, ptr %152, align 4
  store i64 %153, ptr %.unr, align 4
  %154 = load ptr, ptr %150, align 8, !tbaa !43
  %155 = getelementptr inbounds i8, ptr %154, i64 8
  store i64 %12, ptr %155, align 4
  %156 = load ptr, ptr %150, align 8, !tbaa !43
  %157 = getelementptr inbounds i8, ptr %156, i64 16
  store i32 %3, ptr %157, align 4, !tbaa !44
  %158 = getelementptr inbounds i8, ptr %156, i64 20
  store ptr %158, ptr %150, align 8, !tbaa !43
  br label %._crit_edge137

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

._crit_edge137.._crit_edge140_crit_edge:          ; preds = %._crit_edge137
  %.pre152 = load i32, ptr %171, align 4, !tbaa !26
  br label %._crit_edge140

.lr.ph139:                                        ; preds = %._crit_edge137
  %172 = getelementptr inbounds i8, ptr %0, i64 72
  %173 = getelementptr inbounds i8, ptr %6, i64 8
  br label %190

174:                                              ; preds = %174, %.lr.ph136.new
  %175 = phi ptr [ %.pre, %.lr.ph136.new ], [ %189, %174 ]
  %indvars.iv147 = phi i64 [ 0, %.lr.ph136.new ], [ %indvars.iv.next148.1, %174 ]
  %niter = phi i64 [ 0, %.lr.ph136.new ], [ %niter.next.1, %174 ]
  %176 = getelementptr inbounds %struct.ImVec2, ptr %1, i64 %indvars.iv147
  %177 = load i64, ptr %176, align 4
  store i64 %177, ptr %175, align 4
  %178 = load ptr, ptr %150, align 8, !tbaa !43
  %179 = getelementptr inbounds i8, ptr %178, i64 8
  store i64 %12, ptr %179, align 4
  %180 = load ptr, ptr %150, align 8, !tbaa !43
  %181 = getelementptr inbounds i8, ptr %180, i64 16
  store i32 %3, ptr %181, align 4, !tbaa !44
  %182 = getelementptr inbounds i8, ptr %180, i64 20
  store ptr %182, ptr %150, align 8, !tbaa !43
  %indvars.iv.next148 = or disjoint i64 %indvars.iv147, 1
  %183 = getelementptr inbounds %struct.ImVec2, ptr %1, i64 %indvars.iv.next148
  %184 = load i64, ptr %183, align 4
  store i64 %184, ptr %182, align 4
  %185 = load ptr, ptr %150, align 8, !tbaa !43
  %186 = getelementptr inbounds i8, ptr %185, i64 8
  store i64 %12, ptr %186, align 4
  %187 = load ptr, ptr %150, align 8, !tbaa !43
  %188 = getelementptr inbounds i8, ptr %187, i64 16
  store i32 %3, ptr %188, align 4, !tbaa !44
  %189 = getelementptr inbounds i8, ptr %187, i64 20
  store ptr %189, ptr %150, align 8, !tbaa !43
  %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 %174, !llvm.loop !47

190:                                              ; preds = %.lr.ph139, %190
  call void @_ZN14ImTriangulator15GetNextTriangleEPj(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull %6)
  %191 = load i32, ptr %171, align 4, !tbaa !26
  %192 = load ptr, ptr %172, align 8, !tbaa !33
  %193 = load <2 x i32>, ptr %6, align 8, !tbaa !34
  %194 = insertelement <2 x i32> poison, i32 %191, i64 0
  %195 = shufflevector <2 x i32> %194, <2 x i32> poison, <2 x i32> zeroinitializer
  %196 = add <2 x i32> %193, %195
  %197 = trunc <2 x i32> %196 to <2 x i16>
  store <2 x i16> %197, ptr %192, align 2, !tbaa !35
  %198 = load i32, ptr %173, align 8, !tbaa !34
  %199 = add i32 %198, %191
  %200 = trunc i32 %199 to i16
  %201 = getelementptr inbounds i8, ptr %192, i64 4
  store i16 %200, ptr %201, align 2, !tbaa !35
  %202 = getelementptr inbounds i8, ptr %192, i64 6
  store ptr %202, ptr %172, align 8, !tbaa !33
  %203 = load i32, ptr %5, align 8, !tbaa !30
  %204 = icmp sgt i32 %203, 0
  br i1 %204, label %190, label %._crit_edge140, !llvm.loop !48

._crit_edge140:                                   ; preds = %190, %._crit_edge137.._crit_edge140_crit_edge
  %205 = phi i32 [ %.pre152, %._crit_edge137.._crit_edge140_crit_edge ], [ %191, %190 ]
  %206 = and i32 %2, 65535
  %207 = getelementptr inbounds i8, ptr %0, i64 52
  %208 = add i32 %205, %206
  store i32 %208, ptr %207, align 4, !tbaa !26
  br label %209

209:                                              ; preds = %._crit_edge140, %._crit_edge133
  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 %210

210:                                              ; preds = %4, %209
  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 = !{!"_ZTS8ImVectorItE", !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 = !{!6, !11, i64 72}
!34 = !{!8, !8, i64 0}
!35 = !{!36, !36, i64 0}
!36 = !{!"short", !9, i64 0}
!37 = distinct !{!37, !38}
!38 = !{!"llvm.loop.mustprogress"}
!39 = !{!17, !17, i64 0}
!40 = !{!29, !17, i64 0}
!41 = !{!29, !17, i64 4}
!42 = distinct !{!42, !38}
!43 = !{!6, !11, i64 64}
!44 = !{!45, !8, i64 16}
!45 = !{!"_ZTS10ImDrawVert", !29, i64 0, !29, i64 8, !8, i64 16}
!46 = distinct !{!46, !38}
!47 = distinct !{!47, !38}
!48 = distinct !{!48, !38}


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