; LLVM IR from xboot/libcg :: src (xft)

; 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.XCG_FT_Vector_ = type { i64, i64 }
%struct.XCG_FT_StrokerRec_ = type { i64, i64, %struct.XCG_FT_Vector_, i64, i8, i8, i64, %struct.XCG_FT_Vector_, i64, i8, i32, i32, i32, i64, i64, [2 x %struct.XCG_FT_StrokeBorderRec_] }
%struct.XCG_FT_StrokeBorderRec_ = type { i32, i32, ptr, ptr, i8, i32, i8 }

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

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

; Function Attrs: nounwind uwtable
declare dso_local i64 @XCG_FT_MulDiv(i64 noundef, i64 noundef, i64 noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local i64 @XCG_FT_DivFix(i64 noundef, i64 noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local i64 @XCG_FT_Cos(i64 noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local i64 @XCG_FT_Sin(i64 noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local i64 @XCG_FT_Atan2(i64 noundef, i64 noundef) #1

; 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) #2

; Function Attrs: nounwind uwtable
declare dso_local i64 @XCG_FT_Vector_Length(ptr noundef) #1

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

; Function Attrs: nounwind uwtable
declare dso_local i64 @XCG_FT_Angle_Diff(i64 noundef, i64 noundef) #1

; Function Attrs: nounwind uwtable
declare hidden i32 @ft_stroker_subpath_start(ptr noundef, i64 noundef, i64 noundef) #1

; Function Attrs: nounwind uwtable
declare hidden i32 @ft_stroker_process_corner(ptr noundef, i64 noundef) #1

; Function Attrs: nounwind uwtable
declare hidden i32 @ft_stroke_border_lineto(ptr noundef, ptr noundef, i8 noundef zeroext) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @XCG_FT_Stroker_ConicTo(ptr noundef %0, ptr noundef %1, ptr noundef %2) #1 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca [34 x %struct.XCG_FT_Vector_], align 16
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i8, align 1
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i32, align 4
  %16 = alloca %struct.XCG_FT_Vector_, align 8
  %17 = alloca %struct.XCG_FT_Vector_, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  %23 = alloca ptr, align 8
  %24 = alloca i32, align 4
  %25 = alloca %struct.XCG_FT_Vector_, align 8
  %26 = alloca i64, align 8
  %27 = alloca i64, align 8
  %28 = alloca i64, align 8
  %29 = alloca %struct.XCG_FT_Vector_, align 8
  %30 = alloca %struct.XCG_FT_Vector_, align 8
  %31 = alloca i64, align 8
  %32 = alloca i64, align 8
  %33 = alloca i64, align 8
  %34 = alloca i64, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  store i32 0, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 544, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  %35 = getelementptr inbounds [34 x %struct.XCG_FT_Vector_], ptr %9, i64 0, i64 0
  %36 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %35, i64 30
  store ptr %36, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #3
  store i8 1, ptr %12, align 1, !tbaa !11
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.XCG_FT_StrokerRec_, ptr %37, i32 0, i32 2
  %39 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %38, i32 0, i32 0
  %40 = load i64, ptr %39, align 8, !tbaa !12
  %41 = load ptr, ptr %6, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %41, i32 0, i32 0
  %43 = load i64, ptr %42, align 8, !tbaa !16
  %44 = sub nsw i64 %40, %43
  %45 = icmp sgt i64 %44, -2
  br i1 %45, label %46, label %116

46:                                               ; preds = %3
  %47 = load ptr, ptr %5, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.XCG_FT_StrokerRec_, ptr %47, i32 0, i32 2
  %49 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %48, i32 0, i32 0
  %50 = load i64, ptr %49, align 8, !tbaa !12
  %51 = load ptr, ptr %6, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %51, i32 0, i32 0
  %53 = load i64, ptr %52, align 8, !tbaa !16
  %54 = sub nsw i64 %50, %53
  %55 = icmp slt i64 %54, 2
  br i1 %55, label %56, label %116

56:                                               ; preds = %46
  %57 = load ptr, ptr %5, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.XCG_FT_StrokerRec_, ptr %57, i32 0, i32 2
  %59 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %58, i32 0, i32 1
  %60 = load i64, ptr %59, align 8, !tbaa !17
  %61 = load ptr, ptr %6, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %61, i32 0, i32 1
  %63 = load i64, ptr %62, align 8, !tbaa !18
  %64 = sub nsw i64 %60, %63
  %65 = icmp sgt i64 %64, -2
  br i1 %65, label %66, label %116

66:                                               ; preds = %56
  %67 = load ptr, ptr %5, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.XCG_FT_StrokerRec_, ptr %67, i32 0, i32 2
  %69 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %68, i32 0, i32 1
  %70 = load i64, ptr %69, align 8, !tbaa !17
  %71 = load ptr, ptr %6, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %71, i32 0, i32 1
  %73 = load i64, ptr %72, align 8, !tbaa !18
  %74 = sub nsw i64 %70, %73
  %75 = icmp slt i64 %74, 2
  br i1 %75, label %76, label %116

76:                                               ; preds = %66
  %77 = load ptr, ptr %6, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %77, i32 0, i32 0
  %79 = load i64, ptr %78, align 8, !tbaa !16
  %80 = load ptr, ptr %7, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %80, i32 0, i32 0
  %82 = load i64, ptr %81, align 8, !tbaa !16
  %83 = sub nsw i64 %79, %82
  %84 = icmp sgt i64 %83, -2
  br i1 %84, label %85, label %116

85:                                               ; preds = %76
  %86 = load ptr, ptr %6, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %86, i32 0, i32 0
  %88 = load i64, ptr %87, align 8, !tbaa !16
  %89 = load ptr, ptr %7, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %89, i32 0, i32 0
  %91 = load i64, ptr %90, align 8, !tbaa !16
  %92 = sub nsw i64 %88, %91
  %93 = icmp slt i64 %92, 2
  br i1 %93, label %94, label %116

94:                                               ; preds = %85
  %95 = load ptr, ptr %6, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %95, i32 0, i32 1
  %97 = load i64, ptr %96, align 8, !tbaa !18
  %98 = load ptr, ptr %7, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %98, i32 0, i32 1
  %100 = load i64, ptr %99, align 8, !tbaa !18
  %101 = sub nsw i64 %97, %100
  %102 = icmp sgt i64 %101, -2
  br i1 %102, label %103, label %116

103:                                              ; preds = %94
  %104 = load ptr, ptr %6, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %104, i32 0, i32 1
  %106 = load i64, ptr %105, align 8, !tbaa !18
  %107 = load ptr, ptr %7, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %107, i32 0, i32 1
  %109 = load i64, ptr %108, align 8, !tbaa !18
  %110 = sub nsw i64 %106, %109
  %111 = icmp slt i64 %110, 2
  br i1 %111, label %112, label %116

112:                                              ; preds = %103
  %113 = load ptr, ptr %5, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.XCG_FT_StrokerRec_, ptr %113, i32 0, i32 2
  %115 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %114, ptr align 8 %115, i64 16, i1 false), !tbaa.struct !19
  br label %454

116:                                              ; preds = %103, %94, %85, %76, %66, %56, %46, %3
  %117 = getelementptr inbounds [34 x %struct.XCG_FT_Vector_], ptr %9, i64 0, i64 0
  store ptr %117, ptr %10, align 8, !tbaa !5
  %118 = load ptr, ptr %10, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %118, i64 0
  %120 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %119, ptr align 8 %120, i64 16, i1 false), !tbaa.struct !19
  %121 = load ptr, ptr %10, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %121, i64 1
  %123 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %122, ptr align 8 %123, i64 16, i1 false), !tbaa.struct !19
  %124 = load ptr, ptr %10, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %124, i64 2
  %126 = load ptr, ptr %5, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.XCG_FT_StrokerRec_, ptr %126, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %125, ptr align 8 %127, i64 16, i1 false), !tbaa.struct !19
  br label %128

128:                                              ; preds = %447, %445, %116
  %129 = load ptr, ptr %10, align 8, !tbaa !5
  %130 = getelementptr inbounds [34 x %struct.XCG_FT_Vector_], ptr %9, i64 0, i64 0
  %131 = icmp uge ptr %129, %130
  br i1 %131, label %132, label %448

132:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  %133 = load ptr, ptr %5, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.XCG_FT_StrokerRec_, ptr %133, i32 0, i32 0
  %135 = load i64, ptr %134, align 8, !tbaa !21
  store i64 %135, ptr %14, align 8, !tbaa !20
  store i64 %135, ptr %13, align 8, !tbaa !20
  %136 = load ptr, ptr %10, align 8, !tbaa !5
  %137 = load ptr, ptr %11, align 8, !tbaa !5
  %138 = icmp ult ptr %136, %137
  br i1 %138, label %139, label %156

139:                                              ; preds = %132
  %140 = load ptr, ptr %10, align 8, !tbaa !5
  %141 = call zeroext i8 @ft_conic_is_small_enough(ptr noundef %140, ptr noundef %13, ptr noundef %14)
  %142 = icmp ne i8 %141, 0
  br i1 %142, label %156, label %143

143:                                              ; preds = %139
  %144 = load ptr, ptr %5, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.XCG_FT_StrokerRec_, ptr %144, i32 0, i32 4
  %146 = load i8, ptr %145, align 8, !tbaa !22
  %147 = icmp ne i8 %146, 0
  br i1 %147, label %148, label %152

148:                                              ; preds = %143
  %149 = load i64, ptr %13, align 8, !tbaa !20
  %150 = load ptr, ptr %5, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.XCG_FT_StrokerRec_, ptr %150, i32 0, i32 0
  store i64 %149, ptr %151, align 8, !tbaa !21
  br label %152

152:                                              ; preds = %148, %143
  %153 = load ptr, ptr %10, align 8, !tbaa !5
  call void @ft_conic_split(ptr noundef %153)
  %154 = load ptr, ptr %10, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %154, i64 2
  store ptr %155, ptr %10, align 8, !tbaa !5
  store i32 3, ptr %15, align 4
  br label %445, !llvm.loop !23

156:                                              ; preds = %139, %132
  %157 = load i8, ptr %12, align 1, !tbaa !11
  %158 = icmp ne i8 %157, 0
  br i1 %158, label %159, label %175

159:                                              ; preds = %156
  store i8 0, ptr %12, align 1, !tbaa !11
  %160 = load ptr, ptr %5, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.XCG_FT_StrokerRec_, ptr %160, i32 0, i32 4
  %162 = load i8, ptr %161, align 8, !tbaa !22
  %163 = icmp ne i8 %162, 0
  br i1 %163, label %164, label %168

164:                                              ; preds = %159
  %165 = load ptr, ptr %5, align 8, !tbaa !5
  %166 = load i64, ptr %13, align 8, !tbaa !20
  %167 = call i32 @ft_stroker_subpath_start(ptr noundef %165, i64 noundef %166, i64 noundef 0)
  store i32 %167, ptr %8, align 4, !tbaa !9
  br label %174

168:                                              ; preds = %159
  %169 = load i64, ptr %13, align 8, !tbaa !20
  %170 = load ptr, ptr %5, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.XCG_FT_StrokerRec_, ptr %170, i32 0, i32 1
  store i64 %169, ptr %171, align 8, !tbaa !25
  %172 = load ptr, ptr %5, align 8, !tbaa !5
  %173 = call i32 @ft_stroker_process_corner(ptr noundef %172, i64 noundef 0)
  store i32 %173, ptr %8, align 4, !tbaa !9
  br label %174

174:                                              ; preds = %168, %164
  br label %201

175:                                              ; preds = %156
  %176 = load ptr, ptr %5, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.XCG_FT_StrokerRec_, ptr %176, i32 0, i32 0
  %178 = load i64, ptr %177, align 8, !tbaa !21
  %179 = load i64, ptr %13, align 8, !tbaa !20
  %180 = call i64 @XCG_FT_Angle_Diff(i64 noundef %178, i64 noundef %179)
  %181 = call i64 @ft_pos_abs(i64 noundef %180)
  %182 = icmp sgt i64 %181, 491520
  br i1 %182, label %183, label %200

183:                                              ; preds = %175
  %184 = load ptr, ptr %5, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.XCG_FT_StrokerRec_, ptr %184, i32 0, i32 2
  %186 = load ptr, ptr %10, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %186, i64 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %185, ptr align 8 %187, i64 16, i1 false), !tbaa.struct !19
  %188 = load i64, ptr %13, align 8, !tbaa !20
  %189 = load ptr, ptr %5, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.XCG_FT_StrokerRec_, ptr %189, i32 0, i32 1
  store i64 %188, ptr %190, align 8, !tbaa !25
  %191 = load ptr, ptr %5, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.XCG_FT_StrokerRec_, ptr %191, i32 0, i32 11
  store i32 0, ptr %192, align 8, !tbaa !26
  %193 = load ptr, ptr %5, align 8, !tbaa !5
  %194 = call i32 @ft_stroker_process_corner(ptr noundef %193, i64 noundef 0)
  store i32 %194, ptr %8, align 4, !tbaa !9
  %195 = load ptr, ptr %5, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.XCG_FT_StrokerRec_, ptr %195, i32 0, i32 12
  %197 = load i32, ptr %196, align 4, !tbaa !27
  %198 = load ptr, ptr %5, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.XCG_FT_StrokerRec_, ptr %198, i32 0, i32 11
  store i32 %197, ptr %199, align 8, !tbaa !26
  br label %200

200:                                              ; preds = %183, %175
  br label %201

201:                                              ; preds = %200, %174
  %202 = load i32, ptr %8, align 4, !tbaa !9
  %203 = icmp ne i32 %202, 0
  br i1 %203, label %204, label %205

204:                                              ; preds = %201
  store i32 2, ptr %15, align 4
  br label %445

205:                                              ; preds = %201
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #3
  store i64 0, ptr %21, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #3
  %206 = load i64, ptr %13, align 8, !tbaa !20
  %207 = load i64, ptr %14, align 8, !tbaa !20
  %208 = call i64 @XCG_FT_Angle_Diff(i64 noundef %206, i64 noundef %207)
  %209 = sdiv i64 %208, 2
  store i64 %209, ptr %18, align 8, !tbaa !20
  %210 = load i64, ptr %13, align 8, !tbaa !20
  %211 = load i64, ptr %18, align 8, !tbaa !20
  %212 = add nsw i64 %210, %211
  store i64 %212, ptr %19, align 8, !tbaa !20
  %213 = load ptr, ptr %5, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct.XCG_FT_StrokerRec_, ptr %213, i32 0, i32 14
  %215 = load i64, ptr %214, align 8, !tbaa !28
  %216 = load i64, ptr %18, align 8, !tbaa !20
  %217 = call i64 @XCG_FT_Cos(i64 noundef %216)
  %218 = call i64 @XCG_FT_DivFix(i64 noundef %215, i64 noundef %217)
  store i64 %218, ptr %22, align 8, !tbaa !20
  %219 = load ptr, ptr %5, align 8, !tbaa !5
  %220 = getelementptr inbounds %struct.XCG_FT_StrokerRec_, ptr %219, i32 0, i32 9
  %221 = load i8, ptr %220, align 8, !tbaa !29
  %222 = icmp ne i8 %221, 0
  br i1 %222, label %223, label %243

223:                                              ; preds = %205
  %224 = load ptr, ptr %10, align 8, !tbaa !5
  %225 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %224, i64 0
  %226 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %225, i32 0, i32 0
  %227 = load i64, ptr %226, align 8, !tbaa !16
  %228 = load ptr, ptr %10, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %228, i64 2
  %230 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %229, i32 0, i32 0
  %231 = load i64, ptr %230, align 8, !tbaa !16
  %232 = sub nsw i64 %227, %231
  %233 = load ptr, ptr %10, align 8, !tbaa !5
  %234 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %233, i64 0
  %235 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %234, i32 0, i32 1
  %236 = load i64, ptr %235, align 8, !tbaa !18
  %237 = load ptr, ptr %10, align 8, !tbaa !5
  %238 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %237, i64 2
  %239 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %238, i32 0, i32 1
  %240 = load i64, ptr %239, align 8, !tbaa !18
  %241 = sub nsw i64 %236, %240
  %242 = call i64 @XCG_FT_Atan2(i64 noundef %232, i64 noundef %241)
  store i64 %242, ptr %21, align 8, !tbaa !20
  br label %243

243:                                              ; preds = %223, %205
  %244 = load ptr, ptr %5, align 8, !tbaa !5
  %245 = getelementptr inbounds %struct.XCG_FT_StrokerRec_, ptr %244, i32 0, i32 15
  %246 = getelementptr inbounds [2 x %struct.XCG_FT_StrokeBorderRec_], ptr %245, i64 0, i64 0
  store ptr %246, ptr %23, align 8, !tbaa !5
  store i32 0, ptr %24, align 4, !tbaa !9
  br label %247

247:                                              ; preds = %431, %243
  %248 = load i32, ptr %24, align 4, !tbaa !9
  %249 = icmp sle i32 %248, 1
  br i1 %249, label %250, label %436

250:                                              ; preds = %247
  %251 = load i32, ptr %24, align 4, !tbaa !9
  %252 = sext i32 %251 to i64
  %253 = mul nsw i64 %252, 11796480
  %254 = sub nsw i64 5898240, %253
  store i64 %254, ptr %20, align 8, !tbaa !20
  %255 = load i64, ptr %22, align 8, !tbaa !20
  %256 = load i64, ptr %19, align 8, !tbaa !20
  %257 = load i64, ptr %20, align 8, !tbaa !20
  %258 = add nsw i64 %256, %257
  call void @XCG_FT_Vector_From_Polar(ptr noundef %16, i64 noundef %255, i64 noundef %258)
  %259 = load ptr, ptr %10, align 8, !tbaa !5
  %260 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %259, i64 1
  %261 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %260, i32 0, i32 0
  %262 = load i64, ptr %261, align 8, !tbaa !16
  %263 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %16, i32 0, i32 0
  %264 = load i64, ptr %263, align 8, !tbaa !16
  %265 = add nsw i64 %264, %262
  store i64 %265, ptr %263, align 8, !tbaa !16
  %266 = load ptr, ptr %10, align 8, !tbaa !5
  %267 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %266, i64 1
  %268 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %267, i32 0, i32 1
  %269 = load i64, ptr %268, align 8, !tbaa !18
  %270 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %16, i32 0, i32 1
  %271 = load i64, ptr %270, align 8, !tbaa !18
  %272 = add nsw i64 %271, %269
  store i64 %272, ptr %270, align 8, !tbaa !18
  %273 = load ptr, ptr %5, align 8, !tbaa !5
  %274 = getelementptr inbounds %struct.XCG_FT_StrokerRec_, ptr %273, i32 0, i32 14
  %275 = load i64, ptr %274, align 8, !tbaa !28
  %276 = load i64, ptr %14, align 8, !tbaa !20
  %277 = load i64, ptr %20, align 8, !tbaa !20
  %278 = add nsw i64 %276, %277
  call void @XCG_FT_Vector_From_Polar(ptr noundef %17, i64 noundef %275, i64 noundef %278)
  %279 = load ptr, ptr %10, align 8, !tbaa !5
  %280 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %279, i64 0
  %281 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %280, i32 0, i32 0
  %282 = load i64, ptr %281, align 8, !tbaa !16
  %283 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %17, i32 0, i32 0
  %284 = load i64, ptr %283, align 8, !tbaa !16
  %285 = add nsw i64 %284, %282
  store i64 %285, ptr %283, align 8, !tbaa !16
  %286 = load ptr, ptr %10, align 8, !tbaa !5
  %287 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %286, i64 0
  %288 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %287, i32 0, i32 1
  %289 = load i64, ptr %288, align 8, !tbaa !18
  %290 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %17, i32 0, i32 1
  %291 = load i64, ptr %290, align 8, !tbaa !18
  %292 = add nsw i64 %291, %289
  store i64 %292, ptr %290, align 8, !tbaa !18
  %293 = load ptr, ptr %5, align 8, !tbaa !5
  %294 = getelementptr inbounds %struct.XCG_FT_StrokerRec_, ptr %293, i32 0, i32 9
  %295 = load i8, ptr %294, align 8, !tbaa !29
  %296 = icmp ne i8 %295, 0
  br i1 %296, label %297, label %424

297:                                              ; preds = %250
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #3
  %298 = load ptr, ptr %23, align 8, !tbaa !5
  %299 = getelementptr inbounds %struct.XCG_FT_StrokeBorderRec_, ptr %298, i32 0, i32 2
  %300 = load ptr, ptr %299, align 8, !tbaa !30
  %301 = load ptr, ptr %23, align 8, !tbaa !5
  %302 = getelementptr inbounds %struct.XCG_FT_StrokeBorderRec_, ptr %301, i32 0, i32 0
  %303 = load i32, ptr %302, align 8, !tbaa !32
  %304 = sub i32 %303, 1
  %305 = zext i32 %304 to i64
  %306 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %300, i64 %305
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %25, ptr align 8 %306, i64 16, i1 false), !tbaa.struct !19
  %307 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %17, i32 0, i32 0
  %308 = load i64, ptr %307, align 8, !tbaa !16
  %309 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %25, i32 0, i32 0
  %310 = load i64, ptr %309, align 8, !tbaa !16
  %311 = sub nsw i64 %308, %310
  %312 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %17, i32 0, i32 1
  %313 = load i64, ptr %312, align 8, !tbaa !18
  %314 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %25, i32 0, i32 1
  %315 = load i64, ptr %314, align 8, !tbaa !18
  %316 = sub nsw i64 %313, %315
  %317 = call i64 @XCG_FT_Atan2(i64 noundef %311, i64 noundef %316)
  store i64 %317, ptr %26, align 8, !tbaa !20
  %318 = load i64, ptr %21, align 8, !tbaa !20
  %319 = load i64, ptr %26, align 8, !tbaa !20
  %320 = call i64 @XCG_FT_Angle_Diff(i64 noundef %318, i64 noundef %319)
  %321 = call i64 @ft_pos_abs(i64 noundef %320)
  %322 = icmp sgt i64 %321, 5898240
  br i1 %322, label %323, label %420

323:                                              ; preds = %297
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %29) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #3
  %324 = load ptr, ptr %10, align 8, !tbaa !5
  %325 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %324, i64 2
  %326 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %325, i32 0, i32 0
  %327 = load i64, ptr %326, align 8, !tbaa !16
  %328 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %25, i32 0, i32 0
  %329 = load i64, ptr %328, align 8, !tbaa !16
  %330 = sub nsw i64 %327, %329
  %331 = load ptr, ptr %10, align 8, !tbaa !5
  %332 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %331, i64 2
  %333 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %332, i32 0, i32 1
  %334 = load i64, ptr %333, align 8, !tbaa !18
  %335 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %25, i32 0, i32 1
  %336 = load i64, ptr %335, align 8, !tbaa !18
  %337 = sub nsw i64 %334, %336
  %338 = call i64 @XCG_FT_Atan2(i64 noundef %330, i64 noundef %337)
  store i64 %338, ptr %27, align 8, !tbaa !20
  %339 = load ptr, ptr %10, align 8, !tbaa !5
  %340 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %339, i64 0
  %341 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %340, i32 0, i32 0
  %342 = load i64, ptr %341, align 8, !tbaa !16
  %343 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %17, i32 0, i32 0
  %344 = load i64, ptr %343, align 8, !tbaa !16
  %345 = sub nsw i64 %342, %344
  %346 = load ptr, ptr %10, align 8, !tbaa !5
  %347 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %346, i64 0
  %348 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %347, i32 0, i32 1
  %349 = load i64, ptr %348, align 8, !tbaa !18
  %350 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %17, i32 0, i32 1
  %351 = load i64, ptr %350, align 8, !tbaa !18
  %352 = sub nsw i64 %349, %351
  %353 = call i64 @XCG_FT_Atan2(i64 noundef %345, i64 noundef %352)
  store i64 %353, ptr %28, align 8, !tbaa !20
  %354 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %17, i32 0, i32 0
  %355 = load i64, ptr %354, align 8, !tbaa !16
  %356 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %25, i32 0, i32 0
  %357 = load i64, ptr %356, align 8, !tbaa !16
  %358 = sub nsw i64 %355, %357
  %359 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %29, i32 0, i32 0
  store i64 %358, ptr %359, align 8, !tbaa !16
  %360 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %17, i32 0, i32 1
  %361 = load i64, ptr %360, align 8, !tbaa !18
  %362 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %25, i32 0, i32 1
  %363 = load i64, ptr %362, align 8, !tbaa !18
  %364 = sub nsw i64 %361, %363
  %365 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %29, i32 0, i32 1
  store i64 %364, ptr %365, align 8, !tbaa !18
  %366 = call i64 @XCG_FT_Vector_Length(ptr noundef %29)
  store i64 %366, ptr %31, align 8, !tbaa !20
  %367 = load i64, ptr %26, align 8, !tbaa !20
  %368 = load i64, ptr %28, align 8, !tbaa !20
  %369 = sub nsw i64 %367, %368
  %370 = call i64 @XCG_FT_Sin(i64 noundef %369)
  %371 = call i64 @ft_pos_abs(i64 noundef %370)
  store i64 %371, ptr %32, align 8, !tbaa !20
  %372 = load i64, ptr %27, align 8, !tbaa !20
  %373 = load i64, ptr %28, align 8, !tbaa !20
  %374 = sub nsw i64 %372, %373
  %375 = call i64 @XCG_FT_Sin(i64 noundef %374)
  %376 = call i64 @ft_pos_abs(i64 noundef %375)
  store i64 %376, ptr %33, align 8, !tbaa !20
  %377 = load i64, ptr %31, align 8, !tbaa !20
  %378 = load i64, ptr %32, align 8, !tbaa !20
  %379 = load i64, ptr %33, align 8, !tbaa !20
  %380 = call i64 @XCG_FT_MulDiv(i64 noundef %377, i64 noundef %378, i64 noundef %379)
  store i64 %380, ptr %34, align 8, !tbaa !20
  %381 = load i64, ptr %34, align 8, !tbaa !20
  %382 = load i64, ptr %27, align 8, !tbaa !20
  call void @XCG_FT_Vector_From_Polar(ptr noundef %30, i64 noundef %381, i64 noundef %382)
  %383 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %25, i32 0, i32 0
  %384 = load i64, ptr %383, align 8, !tbaa !16
  %385 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %30, i32 0, i32 0
  %386 = load i64, ptr %385, align 8, !tbaa !16
  %387 = add nsw i64 %386, %384
  store i64 %387, ptr %385, align 8, !tbaa !16
  %388 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %25, i32 0, i32 1
  %389 = load i64, ptr %388, align 8, !tbaa !18
  %390 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %30, i32 0, i32 1
  %391 = load i64, ptr %390, align 8, !tbaa !18
  %392 = add nsw i64 %391, %389
  store i64 %392, ptr %390, align 8, !tbaa !18
  %393 = load ptr, ptr %23, align 8, !tbaa !5
  %394 = getelementptr inbounds %struct.XCG_FT_StrokeBorderRec_, ptr %393, i32 0, i32 4
  store i8 0, ptr %394, align 8, !tbaa !33
  %395 = load ptr, ptr %23, align 8, !tbaa !5
  %396 = call i32 @ft_stroke_border_lineto(ptr noundef %395, ptr noundef %30, i8 noundef zeroext 0)
  store i32 %396, ptr %8, align 4, !tbaa !9
  %397 = load i32, ptr %8, align 4, !tbaa !9
  %398 = icmp ne i32 %397, 0
  br i1 %398, label %399, label %400

399:                                              ; preds = %323
  store i32 2, ptr %15, align 4
  br label %419

400:                                              ; preds = %323
  %401 = load ptr, ptr %23, align 8, !tbaa !5
  %402 = call i32 @ft_stroke_border_lineto(ptr noundef %401, ptr noundef %17, i8 noundef zeroext 0)
  store i32 %402, ptr %8, align 4, !tbaa !9
  %403 = load i32, ptr %8, align 4, !tbaa !9
  %404 = icmp ne i32 %403, 0
  br i1 %404, label %405, label %406

405:                                              ; preds = %400
  store i32 2, ptr %15, align 4
  br label %419

406:                                              ; preds = %400
  %407 = load ptr, ptr %23, align 8, !tbaa !5
  %408 = call i32 @ft_stroke_border_conicto(ptr noundef %407, ptr noundef %16, ptr noundef %25)
  store i32 %408, ptr %8, align 4, !tbaa !9
  %409 = load i32, ptr %8, align 4, !tbaa !9
  %410 = icmp ne i32 %409, 0
  br i1 %410, label %411, label %412

411:                                              ; preds = %406
  store i32 2, ptr %15, align 4
  br label %419

412:                                              ; preds = %406
  %413 = load ptr, ptr %23, align 8, !tbaa !5
  %414 = call i32 @ft_stroke_border_lineto(ptr noundef %413, ptr noundef %17, i8 noundef zeroext 0)
  store i32 %414, ptr %8, align 4, !tbaa !9
  %415 = load i32, ptr %8, align 4, !tbaa !9
  %416 = icmp ne i32 %415, 0
  br i1 %416, label %417, label %418

417:                                              ; preds = %412
  store i32 2, ptr %15, align 4
  br label %419

418:                                              ; preds = %412
  store i32 7, ptr %15, align 4
  br label %419

419:                                              ; preds = %418, %417, %411, %405, %399
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #3
  br label %421

420:                                              ; preds = %297
  store i32 0, ptr %15, align 4
  br label %421

421:                                              ; preds = %420, %419
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #3
  %422 = load i32, ptr %15, align 4
  switch i32 %422, label %437 [
    i32 0, label %423
    i32 7, label %431
  ]

423:                                              ; preds = %421
  br label %424

424:                                              ; preds = %423, %250
  %425 = load ptr, ptr %23, align 8, !tbaa !5
  %426 = call i32 @ft_stroke_border_conicto(ptr noundef %425, ptr noundef %16, ptr noundef %17)
  store i32 %426, ptr %8, align 4, !tbaa !9
  %427 = load i32, ptr %8, align 4, !tbaa !9
  %428 = icmp ne i32 %427, 0
  br i1 %428, label %429, label %430

429:                                              ; preds = %424
  store i32 2, ptr %15, align 4
  br label %437

430:                                              ; preds = %424
  br label %431

431:                                              ; preds = %430, %421
  %432 = load i32, ptr %24, align 4, !tbaa !9
  %433 = add nsw i32 %432, 1
  store i32 %433, ptr %24, align 4, !tbaa !9
  %434 = load ptr, ptr %23, align 8, !tbaa !5
  %435 = getelementptr inbounds %struct.XCG_FT_StrokeBorderRec_, ptr %434, i32 1
  store ptr %435, ptr %23, align 8, !tbaa !5
  br label %247, !llvm.loop !34

436:                                              ; preds = %247
  store i32 0, ptr %15, align 4
  br label %437

437:                                              ; preds = %436, %429, %421
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #3
  %438 = load i32, ptr %15, align 4
  switch i32 %438, label %445 [
    i32 0, label %439
  ]

439:                                              ; preds = %437
  %440 = load ptr, ptr %10, align 8, !tbaa !5
  %441 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %440, i64 -2
  store ptr %441, ptr %10, align 8, !tbaa !5
  %442 = load i64, ptr %14, align 8, !tbaa !20
  %443 = load ptr, ptr %5, align 8, !tbaa !5
  %444 = getelementptr inbounds %struct.XCG_FT_StrokerRec_, ptr %443, i32 0, i32 0
  store i64 %442, ptr %444, align 8, !tbaa !21
  store i32 0, ptr %15, align 4
  br label %445

445:                                              ; preds = %439, %437, %204, %152
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  %446 = load i32, ptr %15, align 4
  switch i32 %446, label %456 [
    i32 0, label %447
    i32 3, label %128
    i32 2, label %454
  ]

447:                                              ; preds = %445
  br label %128, !llvm.loop !23

448:                                              ; preds = %128
  %449 = load ptr, ptr %5, align 8, !tbaa !5
  %450 = getelementptr inbounds %struct.XCG_FT_StrokerRec_, ptr %449, i32 0, i32 2
  %451 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %450, ptr align 8 %451, i64 16, i1 false), !tbaa.struct !19
  %452 = load ptr, ptr %5, align 8, !tbaa !5
  %453 = getelementptr inbounds %struct.XCG_FT_StrokerRec_, ptr %452, i32 0, i32 3
  store i64 0, ptr %453, align 8, !tbaa !35
  br label %454

454:                                              ; preds = %448, %445, %112
  %455 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %455, ptr %4, align 4
  store i32 1, ptr %15, align 4
  br label %456

456:                                              ; preds = %454, %445
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 544, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  %457 = load i32, ptr %4, align 4
  ret i32 %457
}

; Function Attrs: nounwind uwtable
declare hidden zeroext i8 @ft_conic_is_small_enough(ptr noundef, ptr noundef, ptr noundef) #1

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

; Function Attrs: nounwind uwtable
declare hidden i64 @ft_pos_abs(i64 noundef) #1

; Function Attrs: nounwind uwtable
declare hidden i32 @ft_stroke_border_conicto(ptr noundef, ptr noundef, ptr noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !14, i64 16}
!13 = !{!"XCG_FT_StrokerRec_", !14, i64 0, !14, i64 8, !15, i64 16, !14, i64 32, !7, i64 40, !7, i64 41, !14, i64 48, !15, i64 56, !14, i64 72, !7, i64 80, !10, i64 84, !10, i64 88, !10, i64 92, !14, i64 96, !14, i64 104, !7, i64 112}
!14 = !{!"long", !7, i64 0}
!15 = !{!"XCG_FT_Vector_", !14, i64 0, !14, i64 8}
!16 = !{!15, !14, i64 0}
!17 = !{!13, !14, i64 24}
!18 = !{!15, !14, i64 8}
!19 = !{i64 0, i64 8, !20, i64 8, i64 8, !20}
!20 = !{!14, !14, i64 0}
!21 = !{!13, !14, i64 0}
!22 = !{!13, !7, i64 40}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!13, !14, i64 8}
!26 = !{!13, !10, i64 88}
!27 = !{!13, !10, i64 92}
!28 = !{!13, !14, i64 104}
!29 = !{!13, !7, i64 80}
!30 = !{!31, !6, i64 8}
!31 = !{!"XCG_FT_StrokeBorderRec_", !10, i64 0, !10, i64 4, !6, i64 8, !6, i64 16, !7, i64 24, !10, i64 28, !7, i64 32}
!32 = !{!31, !10, i64 0}
!33 = !{!31, !7, i64 24}
!34 = distinct !{!34, !24}
!35 = !{!13, !14, i64 32}


; 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.XCG_FT_Vector_ = type { i64, i64 }

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

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

; Function Attrs: nounwind uwtable
declare dso_local i64 @XCG_FT_MulDiv(i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local i64 @XCG_FT_DivFix(i64 noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local i64 @XCG_FT_Cos(i64 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local i64 @XCG_FT_Sin(i64 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local i64 @XCG_FT_Atan2(i64 noundef, i64 noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
declare dso_local i64 @XCG_FT_Vector_Length(ptr noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
declare dso_local i64 @XCG_FT_Angle_Diff(i64 noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden i32 @ft_stroker_subpath_start(ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden i32 @ft_stroker_process_corner(ptr noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden i32 @ft_stroke_border_lineto(ptr noundef, ptr noundef, i8 noundef zeroext) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local i32 @XCG_FT_Stroker_ConicTo(ptr noundef %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2) local_unnamed_addr #1 {
  %4 = alloca [34 x %struct.XCG_FT_Vector_], align 16
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca %struct.XCG_FT_Vector_, align 16
  %8 = alloca %struct.XCG_FT_Vector_, align 16
  %9 = alloca %struct.XCG_FT_Vector_, align 16
  %10 = alloca %struct.XCG_FT_Vector_, align 16
  %11 = alloca %struct.XCG_FT_Vector_, align 16
  call void @llvm.lifetime.start.p0(i64 544, ptr nonnull %4) #3
  %12 = getelementptr inbounds i8, ptr %0, i64 16
  %13 = load i64, ptr %12, align 8, !tbaa !5
  %14 = load i64, ptr %1, align 8, !tbaa !12
  %15 = add i64 %13, 1
  %16 = sub i64 %15, %14
  %or.cond = icmp ult i64 %16, 3
  br i1 %or.cond, label %17, label %34

17:                                               ; preds = %3
  %18 = getelementptr inbounds i8, ptr %0, i64 24
  %19 = load i64, ptr %18, align 8, !tbaa !13
  %20 = getelementptr inbounds i8, ptr %1, i64 8
  %21 = load i64, ptr %20, align 8, !tbaa !14
  %22 = add i64 %19, 1
  %23 = sub i64 %22, %21
  %or.cond145 = icmp ult i64 %23, 3
  br i1 %or.cond145, label %24, label %34

24:                                               ; preds = %17
  %25 = load i64, ptr %2, align 8, !tbaa !12
  %26 = add i64 %14, 1
  %27 = sub i64 %26, %25
  %or.cond146 = icmp ult i64 %27, 3
  br i1 %or.cond146, label %28, label %34

28:                                               ; preds = %24
  %29 = getelementptr inbounds i8, ptr %2, i64 8
  %30 = load i64, ptr %29, align 8, !tbaa !14
  %31 = add i64 %21, 1
  %32 = sub i64 %31, %30
  %or.cond147 = icmp ult i64 %32, 3
  br i1 %or.cond147, label %33, label %34

33:                                               ; preds = %28
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(16) %2, i64 16, i1 false), !tbaa.struct !15
  br label %245

34:                                               ; preds = %28, %24, %17, %3
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(16) %2, i64 16, i1 false), !tbaa.struct !15
  %35 = getelementptr inbounds i8, ptr %4, i64 16
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %35, ptr noundef nonnull align 8 dereferenceable(16) %1, i64 16, i1 false), !tbaa.struct !15
  %36 = getelementptr inbounds i8, ptr %4, i64 32
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %36, ptr noundef nonnull align 8 dereferenceable(16) %12, i64 16, i1 false), !tbaa.struct !15
  %37 = getelementptr inbounds i8, ptr %0, i64 40
  %38 = getelementptr inbounds i8, ptr %0, i64 8
  %39 = getelementptr inbounds i8, ptr %0, i64 88
  %40 = getelementptr inbounds i8, ptr %0, i64 92
  %41 = getelementptr inbounds i8, ptr %0, i64 104
  %42 = getelementptr inbounds i8, ptr %0, i64 80
  %43 = getelementptr inbounds i8, ptr %0, i64 112
  %44 = getelementptr inbounds i8, ptr %8, i64 8
  %45 = getelementptr inbounds i8, ptr %9, i64 8
  %46 = getelementptr inbounds i8, ptr %0, i64 120
  %47 = getelementptr inbounds i8, ptr %0, i64 136
  %48 = getelementptr inbounds i8, ptr %0, i64 152
  %49 = getelementptr inbounds i8, ptr %0, i64 160
  %50 = getelementptr inbounds i8, ptr %0, i64 176
  br label %51

51:                                               ; preds = %34, %242
  %.0108.ptr174 = phi ptr [ %4, %34 ], [ %.0108.ptr, %242 ]
  %.0108.idx173 = phi i64 [ 0, %34 ], [ %.1109.idx, %242 ]
  %.0110172 = phi i8 [ 1, %34 ], [ %.2112, %242 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #3
  %52 = load i64, ptr %0, align 8, !tbaa !17
  store i64 %52, ptr %6, align 8, !tbaa !16
  store i64 %52, ptr %5, align 8, !tbaa !16
  %53 = icmp ult i64 %.0108.idx173, 480
  br i1 %53, label %54, label %61

54:                                               ; preds = %51
  %55 = call zeroext i8 @ft_conic_is_small_enough(ptr noundef nonnull %.0108.ptr174, ptr noundef nonnull %5, ptr noundef nonnull %6)
  %.not133 = icmp eq i8 %55, 0
  br i1 %.not133, label %56, label %61

56:                                               ; preds = %54
  %57 = load i8, ptr %37, align 8, !tbaa !18
  %.not134 = icmp eq i8 %57, 0
  br i1 %.not134, label %60, label %58

58:                                               ; preds = %56
  %59 = load i64, ptr %5, align 8, !tbaa !16
  store i64 %59, ptr %0, align 8, !tbaa !17
  br label %60

60:                                               ; preds = %58, %56
  call void @ft_conic_split(ptr noundef nonnull %.0108.ptr174)
  %.0108.add = add nuw nsw i64 %.0108.idx173, 32
  br label %242, !llvm.loop !19

61:                                               ; preds = %54, %51
  %.not135 = icmp eq i8 %.0110172, 0
  br i1 %.not135, label %69, label %62

62:                                               ; preds = %61
  %63 = load i8, ptr %37, align 8, !tbaa !18
  %.not136 = icmp eq i8 %63, 0
  %64 = load i64, ptr %5, align 8, !tbaa !16
  br i1 %.not136, label %67, label %65

65:                                               ; preds = %62
  %66 = call i32 @ft_stroker_subpath_start(ptr noundef nonnull %0, i64 noundef %64, i64 noundef 0)
  br label %80

67:                                               ; preds = %62
  store i64 %64, ptr %38, align 8, !tbaa !21
  %68 = call i32 @ft_stroker_process_corner(ptr noundef nonnull %0, i64 noundef 0)
  br label %80

69:                                               ; preds = %61
  %70 = load i64, ptr %0, align 8, !tbaa !17
  %71 = load i64, ptr %5, align 8, !tbaa !16
  %72 = call i64 @XCG_FT_Angle_Diff(i64 noundef %70, i64 noundef %71)
  %73 = call i64 @ft_pos_abs(i64 noundef %72)
  %74 = icmp sgt i64 %73, 491520
  br i1 %74, label %75, label %.thread179

75:                                               ; preds = %69
  %76 = getelementptr inbounds i8, ptr %.0108.ptr174, i64 32
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(16) %76, i64 16, i1 false), !tbaa.struct !15
  %77 = load i64, ptr %5, align 8, !tbaa !16
  store i64 %77, ptr %38, align 8, !tbaa !21
  store i32 0, ptr %39, align 8, !tbaa !22
  %78 = call i32 @ft_stroker_process_corner(ptr noundef nonnull %0, i64 noundef 0)
  %79 = load i32, ptr %40, align 4, !tbaa !23
  store i32 %79, ptr %39, align 8, !tbaa !22
  br label %80

80:                                               ; preds = %75, %65, %67
  %.1 = phi i32 [ %66, %65 ], [ %68, %67 ], [ %78, %75 ]
  %.not137 = icmp eq i32 %.1, 0
  br i1 %.not137, label %.thread179, label %.thread160

.thread179:                                       ; preds = %69, %80
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #3
  %81 = load i64, ptr %5, align 8, !tbaa !16
  %82 = load i64, ptr %6, align 8, !tbaa !16
  %83 = call i64 @XCG_FT_Angle_Diff(i64 noundef %81, i64 noundef %82)
  %84 = sdiv i64 %83, 2
  %85 = load i64, ptr %5, align 8, !tbaa !16
  %86 = add nsw i64 %85, %84
  %87 = load i64, ptr %41, align 8, !tbaa !24
  %88 = call i64 @XCG_FT_Cos(i64 noundef %84)
  %89 = call i64 @XCG_FT_DivFix(i64 noundef %87, i64 noundef %88)
  %90 = load i8, ptr %42, align 8, !tbaa !25
  %.not138 = icmp eq i8 %90, 0
  br i1 %.not138, label %102, label %91

91:                                               ; preds = %.thread179
  %92 = load i64, ptr %.0108.ptr174, align 8, !tbaa !12
  %93 = getelementptr inbounds i8, ptr %.0108.ptr174, i64 32
  %94 = load i64, ptr %93, align 8, !tbaa !12
  %95 = sub nsw i64 %92, %94
  %96 = getelementptr inbounds i8, ptr %.0108.ptr174, i64 8
  %97 = load i64, ptr %96, align 8, !tbaa !14
  %98 = getelementptr inbounds i8, ptr %.0108.ptr174, i64 40
  %99 = load i64, ptr %98, align 8, !tbaa !14
  %100 = sub nsw i64 %97, %99
  %101 = call i64 @XCG_FT_Atan2(i64 noundef %95, i64 noundef %100)
  br label %102

102:                                              ; preds = %91, %.thread179
  %.0117 = phi i64 [ %101, %91 ], [ 0, %.thread179 ]
  %103 = getelementptr inbounds i8, ptr %.0108.ptr174, i64 16
  %104 = getelementptr inbounds i8, ptr %.0108.ptr174, i64 8
  %105 = getelementptr inbounds i8, ptr %.0108.ptr174, i64 32
  %106 = getelementptr inbounds i8, ptr %.0108.ptr174, i64 40
  %107 = add nsw i64 %86, 5898240
  call void @XCG_FT_Vector_From_Polar(ptr noundef nonnull %7, i64 noundef %89, i64 noundef %107)
  %108 = load <2 x i64>, ptr %103, align 8, !tbaa !16
  %109 = load <2 x i64>, ptr %7, align 16, !tbaa !16
  %110 = add nsw <2 x i64> %109, %108
  store <2 x i64> %110, ptr %7, align 16, !tbaa !16
  %111 = load i64, ptr %41, align 8, !tbaa !24
  %112 = load i64, ptr %6, align 8, !tbaa !16
  %113 = add nsw i64 %112, 5898240
  call void @XCG_FT_Vector_From_Polar(ptr noundef nonnull %8, i64 noundef %111, i64 noundef %113)
  %114 = load <2 x i64>, ptr %.0108.ptr174, align 8, !tbaa !16
  %115 = load <2 x i64>, ptr %8, align 16, !tbaa !16
  %116 = add nsw <2 x i64> %115, %114
  store <2 x i64> %116, ptr %8, align 16, !tbaa !16
  %117 = load i8, ptr %42, align 8, !tbaa !25
  %.not139 = icmp eq i8 %117, 0
  br i1 %.not139, label %171, label %118

118:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #3
  %119 = load ptr, ptr %46, align 8, !tbaa !26
  %120 = load i32, ptr %43, align 8, !tbaa !29
  %121 = add i32 %120, -1
  %122 = zext i32 %121 to i64
  %123 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %119, i64 %122
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %123, i64 16, i1 false), !tbaa.struct !15
  %124 = load i64, ptr %9, align 16, !tbaa !12
  %125 = extractelement <2 x i64> %116, i64 0
  %126 = sub nsw i64 %125, %124
  %127 = load i64, ptr %45, align 8, !tbaa !14
  %128 = extractelement <2 x i64> %116, i64 1
  %129 = sub nsw i64 %128, %127
  %130 = call i64 @XCG_FT_Atan2(i64 noundef %126, i64 noundef %129)
  %131 = call i64 @XCG_FT_Angle_Diff(i64 noundef %.0117, i64 noundef %130)
  %132 = call i64 @ft_pos_abs(i64 noundef %131)
  %133 = icmp sgt i64 %132, 5898240
  br i1 %133, label %134, label %.thread

.thread:                                          ; preds = %118
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #3
  br label %171

134:                                              ; preds = %118
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #3
  %135 = load i64, ptr %105, align 8, !tbaa !12
  %136 = load i64, ptr %9, align 16, !tbaa !12
  %137 = sub nsw i64 %135, %136
  %138 = load i64, ptr %106, align 8, !tbaa !14
  %139 = load i64, ptr %45, align 8, !tbaa !14
  %140 = sub nsw i64 %138, %139
  %141 = call i64 @XCG_FT_Atan2(i64 noundef %137, i64 noundef %140)
  %142 = load i64, ptr %.0108.ptr174, align 8, !tbaa !12
  %143 = load i64, ptr %8, align 16, !tbaa !12
  %144 = sub nsw i64 %142, %143
  %145 = load i64, ptr %104, align 8, !tbaa !14
  %146 = load i64, ptr %44, align 8, !tbaa !14
  %147 = sub nsw i64 %145, %146
  %148 = call i64 @XCG_FT_Atan2(i64 noundef %144, i64 noundef %147)
  %149 = load <2 x i64>, ptr %8, align 16, !tbaa !16
  %150 = load <2 x i64>, ptr %9, align 16, !tbaa !16
  %151 = sub nsw <2 x i64> %149, %150
  store <2 x i64> %151, ptr %10, align 16, !tbaa !16
  %152 = call i64 @XCG_FT_Vector_Length(ptr noundef nonnull %10)
  %153 = sub nsw i64 %130, %148
  %154 = call i64 @XCG_FT_Sin(i64 noundef %153)
  %155 = call i64 @ft_pos_abs(i64 noundef %154)
  %156 = sub nsw i64 %141, %148
  %157 = call i64 @XCG_FT_Sin(i64 noundef %156)
  %158 = call i64 @ft_pos_abs(i64 noundef %157)
  %159 = call i64 @XCG_FT_MulDiv(i64 noundef %152, i64 noundef %155, i64 noundef %158)
  call void @XCG_FT_Vector_From_Polar(ptr noundef nonnull %11, i64 noundef %159, i64 noundef %141)
  %160 = load <2 x i64>, ptr %9, align 16, !tbaa !16
  %161 = load <2 x i64>, ptr %11, align 16, !tbaa !16
  %162 = add nsw <2 x i64> %161, %160
  store <2 x i64> %162, ptr %11, align 16, !tbaa !16
  store i8 0, ptr %47, align 8, !tbaa !30
  %163 = call i32 @ft_stroke_border_lineto(ptr noundef nonnull %43, ptr noundef nonnull %11, i8 noundef zeroext 0)
  %.not140 = icmp eq i32 %163, 0
  br i1 %.not140, label %164, label %.thread151

164:                                              ; preds = %134
  %165 = call i32 @ft_stroke_border_lineto(ptr noundef nonnull %43, ptr noundef nonnull %8, i8 noundef zeroext 0)
  %.not141 = icmp eq i32 %165, 0
  br i1 %.not141, label %166, label %.thread151

166:                                              ; preds = %164
  %167 = call i32 @ft_stroke_border_conicto(ptr noundef nonnull %43, ptr noundef nonnull %7, ptr noundef nonnull %9)
  %.not142 = icmp eq i32 %167, 0
  br i1 %.not142, label %168, label %.thread151

168:                                              ; preds = %166
  %169 = call i32 @ft_stroke_border_lineto(ptr noundef nonnull %43, ptr noundef nonnull %8, i8 noundef zeroext 0)
  %.not143 = icmp eq i32 %169, 0
  br i1 %.not143, label %170, label %.thread151

.thread151:                                       ; preds = %235, %233, %231, %201, %134, %164, %166, %168
  %.3.ph = phi i32 [ %169, %168 ], [ %167, %166 ], [ %165, %164 ], [ %163, %134 ], [ %230, %201 ], [ %232, %231 ], [ %234, %233 ], [ %236, %235 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #3
  br label %.thread155

170:                                              ; preds = %168
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #3
  br label %173

171:                                              ; preds = %.thread, %102
  %172 = call i32 @ft_stroke_border_conicto(ptr noundef nonnull %43, ptr noundef nonnull %7, ptr noundef nonnull %8)
  %.not144 = icmp eq i32 %172, 0
  br i1 %.not144, label %173, label %.thread155

173:                                              ; preds = %170, %171
  %174 = add nsw i64 %86, -5898240
  call void @XCG_FT_Vector_From_Polar(ptr noundef nonnull %7, i64 noundef %89, i64 noundef %174)
  %175 = load <2 x i64>, ptr %103, align 8, !tbaa !16
  %176 = load <2 x i64>, ptr %7, align 16, !tbaa !16
  %177 = add nsw <2 x i64> %176, %175
  store <2 x i64> %177, ptr %7, align 16, !tbaa !16
  %178 = load i64, ptr %41, align 8, !tbaa !24
  %179 = load i64, ptr %6, align 8, !tbaa !16
  %180 = add nsw i64 %179, -5898240
  call void @XCG_FT_Vector_From_Polar(ptr noundef nonnull %8, i64 noundef %178, i64 noundef %180)
  %181 = load <2 x i64>, ptr %.0108.ptr174, align 8, !tbaa !16
  %182 = load <2 x i64>, ptr %8, align 16, !tbaa !16
  %183 = add nsw <2 x i64> %182, %181
  store <2 x i64> %183, ptr %8, align 16, !tbaa !16
  %184 = load i8, ptr %42, align 8, !tbaa !25
  %.not139.1 = icmp eq i8 %184, 0
  br i1 %.not139.1, label %238, label %185

185:                                              ; preds = %173
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #3
  %186 = load ptr, ptr %49, align 8, !tbaa !26
  %187 = load i32, ptr %48, align 8, !tbaa !29
  %188 = add i32 %187, -1
  %189 = zext i32 %188 to i64
  %190 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %186, i64 %189
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %190, i64 16, i1 false), !tbaa.struct !15
  %191 = load i64, ptr %9, align 16, !tbaa !12
  %192 = extractelement <2 x i64> %183, i64 0
  %193 = sub nsw i64 %192, %191
  %194 = load i64, ptr %45, align 8, !tbaa !14
  %195 = extractelement <2 x i64> %183, i64 1
  %196 = sub nsw i64 %195, %194
  %197 = call i64 @XCG_FT_Atan2(i64 noundef %193, i64 noundef %196)
  %198 = call i64 @XCG_FT_Angle_Diff(i64 noundef %.0117, i64 noundef %197)
  %199 = call i64 @ft_pos_abs(i64 noundef %198)
  %200 = icmp sgt i64 %199, 5898240
  br i1 %200, label %201, label %.thread.1

.thread.1:                                        ; preds = %185
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #3
  br label %238

201:                                              ; preds = %185
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #3
  %202 = load i64, ptr %105, align 8, !tbaa !12
  %203 = load i64, ptr %9, align 16, !tbaa !12
  %204 = sub nsw i64 %202, %203
  %205 = load i64, ptr %106, align 8, !tbaa !14
  %206 = load i64, ptr %45, align 8, !tbaa !14
  %207 = sub nsw i64 %205, %206
  %208 = call i64 @XCG_FT_Atan2(i64 noundef %204, i64 noundef %207)
  %209 = load i64, ptr %.0108.ptr174, align 8, !tbaa !12
  %210 = load i64, ptr %8, align 16, !tbaa !12
  %211 = sub nsw i64 %209, %210
  %212 = load i64, ptr %104, align 8, !tbaa !14
  %213 = load i64, ptr %44, align 8, !tbaa !14
  %214 = sub nsw i64 %212, %213
  %215 = call i64 @XCG_FT_Atan2(i64 noundef %211, i64 noundef %214)
  %216 = load <2 x i64>, ptr %8, align 16, !tbaa !16
  %217 = load <2 x i64>, ptr %9, align 16, !tbaa !16
  %218 = sub nsw <2 x i64> %216, %217
  store <2 x i64> %218, ptr %10, align 16, !tbaa !16
  %219 = call i64 @XCG_FT_Vector_Length(ptr noundef nonnull %10)
  %220 = sub nsw i64 %197, %215
  %221 = call i64 @XCG_FT_Sin(i64 noundef %220)
  %222 = call i64 @ft_pos_abs(i64 noundef %221)
  %223 = sub nsw i64 %208, %215
  %224 = call i64 @XCG_FT_Sin(i64 noundef %223)
  %225 = call i64 @ft_pos_abs(i64 noundef %224)
  %226 = call i64 @XCG_FT_MulDiv(i64 noundef %219, i64 noundef %222, i64 noundef %225)
  call void @XCG_FT_Vector_From_Polar(ptr noundef nonnull %11, i64 noundef %226, i64 noundef %208)
  %227 = load <2 x i64>, ptr %9, align 16, !tbaa !16
  %228 = load <2 x i64>, ptr %11, align 16, !tbaa !16
  %229 = add nsw <2 x i64> %228, %227
  store <2 x i64> %229, ptr %11, align 16, !tbaa !16
  store i8 0, ptr %50, align 8, !tbaa !30
  %230 = call i32 @ft_stroke_border_lineto(ptr noundef nonnull %48, ptr noundef nonnull %11, i8 noundef zeroext 0)
  %.not140.1 = icmp eq i32 %230, 0
  br i1 %.not140.1, label %231, label %.thread151

231:                                              ; preds = %201
  %232 = call i32 @ft_stroke_border_lineto(ptr noundef nonnull %48, ptr noundef nonnull %8, i8 noundef zeroext 0)
  %.not141.1 = icmp eq i32 %232, 0
  br i1 %.not141.1, label %233, label %.thread151

233:                                              ; preds = %231
  %234 = call i32 @ft_stroke_border_conicto(ptr noundef nonnull %48, ptr noundef nonnull %7, ptr noundef nonnull %9)
  %.not142.1 = icmp eq i32 %234, 0
  br i1 %.not142.1, label %235, label %.thread151

235:                                              ; preds = %233
  %236 = call i32 @ft_stroke_border_lineto(ptr noundef nonnull %48, ptr noundef nonnull %8, i8 noundef zeroext 0)
  %.not143.1 = icmp eq i32 %236, 0
  br i1 %.not143.1, label %237, label %.thread151

237:                                              ; preds = %235
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #3
  br label %240

238:                                              ; preds = %.thread.1, %173
  %239 = call i32 @ft_stroke_border_conicto(ptr noundef nonnull %48, ptr noundef nonnull %7, ptr noundef nonnull %8)
  %.not144.1 = icmp eq i32 %239, 0
  br i1 %.not144.1, label %240, label %.thread155

240:                                              ; preds = %238, %237
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #3
  %.0108.add131 = add nsw i64 %.0108.idx173, -32
  %241 = load i64, ptr %6, align 8, !tbaa !16
  store i64 %241, ptr %0, align 8, !tbaa !17
  br label %242

.thread155:                                       ; preds = %171, %238, %.thread151
  %.6.ph = phi i32 [ %.3.ph, %.thread151 ], [ %239, %238 ], [ %172, %171 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #3
  br label %.thread160

.thread160:                                       ; preds = %80, %.thread155
  %.7.ph = phi i32 [ %.6.ph, %.thread155 ], [ %.1, %80 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
  br label %245

242:                                              ; preds = %240, %60
  %.2112 = phi i8 [ 0, %240 ], [ %.0110172, %60 ]
  %.1109.idx = phi i64 [ %.0108.add131, %240 ], [ %.0108.add, %60 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
  %.0108.ptr = getelementptr inbounds i8, ptr %4, i64 %.1109.idx
  %.not = icmp slt i64 %.1109.idx, 0
  br i1 %.not, label %243, label %51

243:                                              ; preds = %242
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(16) %2, i64 16, i1 false), !tbaa.struct !15
  %244 = getelementptr inbounds i8, ptr %0, i64 32
  store i64 0, ptr %244, align 8, !tbaa !31
  br label %245

245:                                              ; preds = %.thread160, %33, %243
  %.0 = phi i32 [ 0, %33 ], [ 0, %243 ], [ %.7.ph, %.thread160 ]
  call void @llvm.lifetime.end.p0(i64 544, ptr nonnull %4) #3
  ret i32 %.0
}

; Function Attrs: nounwind uwtable
declare hidden zeroext i8 @ft_conic_is_small_enough(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
declare hidden i64 @ft_pos_abs(i64 noundef) local_unnamed_addr #1

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 16}
!6 = !{!"XCG_FT_StrokerRec_", !7, i64 0, !7, i64 8, !10, i64 16, !7, i64 32, !8, i64 40, !8, i64 41, !7, i64 48, !10, i64 56, !7, i64 72, !8, i64 80, !11, i64 84, !11, i64 88, !11, i64 92, !7, i64 96, !7, i64 104, !8, i64 112}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"XCG_FT_Vector_", !7, i64 0, !7, i64 8}
!11 = !{!"int", !8, i64 0}
!12 = !{!10, !7, i64 0}
!13 = !{!6, !7, i64 24}
!14 = !{!10, !7, i64 8}
!15 = !{i64 0, i64 8, !16, i64 8, i64 8, !16}
!16 = !{!7, !7, i64 0}
!17 = !{!6, !7, i64 0}
!18 = !{!6, !8, i64 40}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!6, !7, i64 8}
!22 = !{!6, !11, i64 88}
!23 = !{!6, !11, i64 92}
!24 = !{!6, !7, i64 104}
!25 = !{!6, !8, i64 80}
!26 = !{!27, !28, i64 8}
!27 = !{!"XCG_FT_StrokeBorderRec_", !11, i64 0, !11, i64 4, !28, i64 8, !28, i64 16, !8, i64 24, !11, i64 28, !8, i64 32}
!28 = !{!"any pointer", !8, i64 0}
!29 = !{!27, !11, i64 0}
!30 = !{!27, !8, i64 24}
!31 = !{!6, !7, i64 32}


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