; 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
declare hidden i64 @ft_pos_abs(i64 noundef) #1

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

53:                                               ; preds = %4
  %54 = load ptr, ptr %6, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.XCG_FT_StrokerRec_, ptr %54, i32 0, i32 2
  %56 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %55, i32 0, i32 0
  %57 = load i64, ptr %56, align 8, !tbaa !12
  %58 = load ptr, ptr %7, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %58, i32 0, i32 0
  %60 = load i64, ptr %59, align 8, !tbaa !16
  %61 = sub nsw i64 %57, %60
  %62 = icmp slt i64 %61, 2
  br i1 %62, label %63, label %159

63:                                               ; preds = %53
  %64 = load ptr, ptr %6, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.XCG_FT_StrokerRec_, ptr %64, i32 0, i32 2
  %66 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %65, i32 0, i32 1
  %67 = load i64, ptr %66, align 8, !tbaa !17
  %68 = load ptr, ptr %7, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %68, i32 0, i32 1
  %70 = load i64, ptr %69, align 8, !tbaa !18
  %71 = sub nsw i64 %67, %70
  %72 = icmp sgt i64 %71, -2
  br i1 %72, label %73, label %159

73:                                               ; preds = %63
  %74 = load ptr, ptr %6, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.XCG_FT_StrokerRec_, ptr %74, i32 0, i32 2
  %76 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %75, i32 0, i32 1
  %77 = load i64, ptr %76, align 8, !tbaa !17
  %78 = load ptr, ptr %7, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %78, i32 0, i32 1
  %80 = load i64, ptr %79, align 8, !tbaa !18
  %81 = sub nsw i64 %77, %80
  %82 = icmp slt i64 %81, 2
  br i1 %82, label %83, label %159

83:                                               ; preds = %73
  %84 = load ptr, ptr %7, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %84, i32 0, i32 0
  %86 = load i64, ptr %85, align 8, !tbaa !16
  %87 = load ptr, ptr %8, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %87, i32 0, i32 0
  %89 = load i64, ptr %88, align 8, !tbaa !16
  %90 = sub nsw i64 %86, %89
  %91 = icmp sgt i64 %90, -2
  br i1 %91, label %92, label %159

92:                                               ; preds = %83
  %93 = load ptr, ptr %7, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %93, i32 0, i32 0
  %95 = load i64, ptr %94, align 8, !tbaa !16
  %96 = load ptr, ptr %8, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %96, i32 0, i32 0
  %98 = load i64, ptr %97, align 8, !tbaa !16
  %99 = sub nsw i64 %95, %98
  %100 = icmp slt i64 %99, 2
  br i1 %100, label %101, label %159

101:                                              ; preds = %92
  %102 = load ptr, ptr %7, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %102, i32 0, i32 1
  %104 = load i64, ptr %103, align 8, !tbaa !18
  %105 = load ptr, ptr %8, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %105, i32 0, i32 1
  %107 = load i64, ptr %106, align 8, !tbaa !18
  %108 = sub nsw i64 %104, %107
  %109 = icmp sgt i64 %108, -2
  br i1 %109, label %110, label %159

110:                                              ; preds = %101
  %111 = load ptr, ptr %7, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %111, i32 0, i32 1
  %113 = load i64, ptr %112, align 8, !tbaa !18
  %114 = load ptr, ptr %8, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %114, i32 0, i32 1
  %116 = load i64, ptr %115, align 8, !tbaa !18
  %117 = sub nsw i64 %113, %116
  %118 = icmp slt i64 %117, 2
  br i1 %118, label %119, label %159

119:                                              ; preds = %110
  %120 = load ptr, ptr %8, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %120, i32 0, i32 0
  %122 = load i64, ptr %121, align 8, !tbaa !16
  %123 = load ptr, ptr %9, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %123, i32 0, i32 0
  %125 = load i64, ptr %124, align 8, !tbaa !16
  %126 = sub nsw i64 %122, %125
  %127 = icmp sgt i64 %126, -2
  br i1 %127, label %128, label %159

128:                                              ; preds = %119
  %129 = load ptr, ptr %8, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %129, i32 0, i32 0
  %131 = load i64, ptr %130, align 8, !tbaa !16
  %132 = load ptr, ptr %9, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %132, i32 0, i32 0
  %134 = load i64, ptr %133, align 8, !tbaa !16
  %135 = sub nsw i64 %131, %134
  %136 = icmp slt i64 %135, 2
  br i1 %136, label %137, label %159

137:                                              ; preds = %128
  %138 = load ptr, ptr %8, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %138, i32 0, i32 1
  %140 = load i64, ptr %139, align 8, !tbaa !18
  %141 = load ptr, ptr %9, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %141, i32 0, i32 1
  %143 = load i64, ptr %142, align 8, !tbaa !18
  %144 = sub nsw i64 %140, %143
  %145 = icmp sgt i64 %144, -2
  br i1 %145, label %146, label %159

146:                                              ; preds = %137
  %147 = load ptr, ptr %8, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %147, i32 0, i32 1
  %149 = load i64, ptr %148, align 8, !tbaa !18
  %150 = load ptr, ptr %9, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %150, i32 0, i32 1
  %152 = load i64, ptr %151, align 8, !tbaa !18
  %153 = sub nsw i64 %149, %152
  %154 = icmp slt i64 %153, 2
  br i1 %154, label %155, label %159

155:                                              ; preds = %146
  %156 = load ptr, ptr %6, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.XCG_FT_StrokerRec_, ptr %156, i32 0, i32 2
  %158 = load ptr, ptr %9, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %157, ptr align 8 %158, i64 16, i1 false), !tbaa.struct !19
  br label %531

159:                                              ; preds = %146, %137, %128, %119, %110, %101, %92, %83, %73, %63, %53, %4
  %160 = getelementptr inbounds [37 x %struct.XCG_FT_Vector_], ptr %11, i64 0, i64 0
  store ptr %160, ptr %12, align 8, !tbaa !5
  %161 = load ptr, ptr %12, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %161, i64 0
  %163 = load ptr, ptr %9, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %162, ptr align 8 %163, i64 16, i1 false), !tbaa.struct !19
  %164 = load ptr, ptr %12, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %164, i64 1
  %166 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %165, ptr align 8 %166, i64 16, i1 false), !tbaa.struct !19
  %167 = load ptr, ptr %12, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %167, i64 2
  %169 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %168, ptr align 8 %169, i64 16, i1 false), !tbaa.struct !19
  %170 = load ptr, ptr %12, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %170, i64 3
  %172 = load ptr, ptr %6, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.XCG_FT_StrokerRec_, ptr %172, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %171, ptr align 8 %173, i64 16, i1 false), !tbaa.struct !19
  br label %174

174:                                              ; preds = %524, %522, %159
  %175 = load ptr, ptr %12, align 8, !tbaa !5
  %176 = getelementptr inbounds [37 x %struct.XCG_FT_Vector_], ptr %11, i64 0, i64 0
  %177 = icmp uge ptr %175, %176
  br i1 %177, label %178, label %525

178:                                              ; preds = %174
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  %179 = load ptr, ptr %6, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.XCG_FT_StrokerRec_, ptr %179, i32 0, i32 0
  %181 = load i64, ptr %180, align 8, !tbaa !21
  store i64 %181, ptr %16, align 8, !tbaa !20
  store i64 %181, ptr %17, align 8, !tbaa !20
  store i64 %181, ptr %15, align 8, !tbaa !20
  %182 = load ptr, ptr %12, align 8, !tbaa !5
  %183 = load ptr, ptr %13, align 8, !tbaa !5
  %184 = icmp ult ptr %182, %183
  br i1 %184, label %185, label %202

185:                                              ; preds = %178
  %186 = load ptr, ptr %12, align 8, !tbaa !5
  %187 = call zeroext i8 @ft_cubic_is_small_enough(ptr noundef %186, ptr noundef %15, ptr noundef %16, ptr noundef %17)
  %188 = icmp ne i8 %187, 0
  br i1 %188, label %202, label %189

189:                                              ; preds = %185
  %190 = load ptr, ptr %6, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.XCG_FT_StrokerRec_, ptr %190, i32 0, i32 4
  %192 = load i8, ptr %191, align 8, !tbaa !22
  %193 = icmp ne i8 %192, 0
  br i1 %193, label %194, label %198

194:                                              ; preds = %189
  %195 = load i64, ptr %15, align 8, !tbaa !20
  %196 = load ptr, ptr %6, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct.XCG_FT_StrokerRec_, ptr %196, i32 0, i32 0
  store i64 %195, ptr %197, align 8, !tbaa !21
  br label %198

198:                                              ; preds = %194, %189
  %199 = load ptr, ptr %12, align 8, !tbaa !5
  call void @ft_cubic_split(ptr noundef %199)
  %200 = load ptr, ptr %12, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %200, i64 3
  store ptr %201, ptr %12, align 8, !tbaa !5
  store i32 3, ptr %18, align 4
  br label %522, !llvm.loop !23

202:                                              ; preds = %185, %178
  %203 = load i8, ptr %14, align 1, !tbaa !11
  %204 = icmp ne i8 %203, 0
  br i1 %204, label %205, label %221

205:                                              ; preds = %202
  store i8 0, ptr %14, align 1, !tbaa !11
  %206 = load ptr, ptr %6, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.XCG_FT_StrokerRec_, ptr %206, i32 0, i32 4
  %208 = load i8, ptr %207, align 8, !tbaa !22
  %209 = icmp ne i8 %208, 0
  br i1 %209, label %210, label %214

210:                                              ; preds = %205
  %211 = load ptr, ptr %6, align 8, !tbaa !5
  %212 = load i64, ptr %15, align 8, !tbaa !20
  %213 = call i32 @ft_stroker_subpath_start(ptr noundef %211, i64 noundef %212, i64 noundef 0)
  store i32 %213, ptr %10, align 4, !tbaa !9
  br label %220

214:                                              ; preds = %205
  %215 = load i64, ptr %15, align 8, !tbaa !20
  %216 = load ptr, ptr %6, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.XCG_FT_StrokerRec_, ptr %216, i32 0, i32 1
  store i64 %215, ptr %217, align 8, !tbaa !25
  %218 = load ptr, ptr %6, align 8, !tbaa !5
  %219 = call i32 @ft_stroker_process_corner(ptr noundef %218, i64 noundef 0)
  store i32 %219, ptr %10, align 4, !tbaa !9
  br label %220

220:                                              ; preds = %214, %210
  br label %247

221:                                              ; preds = %202
  %222 = load ptr, ptr %6, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.XCG_FT_StrokerRec_, ptr %222, i32 0, i32 0
  %224 = load i64, ptr %223, align 8, !tbaa !21
  %225 = load i64, ptr %15, align 8, !tbaa !20
  %226 = call i64 @XCG_FT_Angle_Diff(i64 noundef %224, i64 noundef %225)
  %227 = call i64 @ft_pos_abs(i64 noundef %226)
  %228 = icmp sgt i64 %227, 368640
  br i1 %228, label %229, label %246

229:                                              ; preds = %221
  %230 = load ptr, ptr %6, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct.XCG_FT_StrokerRec_, ptr %230, i32 0, i32 2
  %232 = load ptr, ptr %12, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %232, i64 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %231, ptr align 8 %233, i64 16, i1 false), !tbaa.struct !19
  %234 = load i64, ptr %15, align 8, !tbaa !20
  %235 = load ptr, ptr %6, align 8, !tbaa !5
  %236 = getelementptr inbounds %struct.XCG_FT_StrokerRec_, ptr %235, i32 0, i32 1
  store i64 %234, ptr %236, align 8, !tbaa !25
  %237 = load ptr, ptr %6, align 8, !tbaa !5
  %238 = getelementptr inbounds %struct.XCG_FT_StrokerRec_, ptr %237, i32 0, i32 11
  store i32 0, ptr %238, align 8, !tbaa !26
  %239 = load ptr, ptr %6, align 8, !tbaa !5
  %240 = call i32 @ft_stroker_process_corner(ptr noundef %239, i64 noundef 0)
  store i32 %240, ptr %10, align 4, !tbaa !9
  %241 = load ptr, ptr %6, align 8, !tbaa !5
  %242 = getelementptr inbounds %struct.XCG_FT_StrokerRec_, ptr %241, i32 0, i32 12
  %243 = load i32, ptr %242, align 4, !tbaa !27
  %244 = load ptr, ptr %6, align 8, !tbaa !5
  %245 = getelementptr inbounds %struct.XCG_FT_StrokerRec_, ptr %244, i32 0, i32 11
  store i32 %243, ptr %245, align 8, !tbaa !26
  br label %246

246:                                              ; preds = %229, %221
  br label %247

247:                                              ; preds = %246, %220
  %248 = load i32, ptr %10, align 4, !tbaa !9
  %249 = icmp ne i32 %248, 0
  br i1 %249, label %250, label %251

250:                                              ; preds = %247
  store i32 2, ptr %18, align 4
  br label %522

251:                                              ; preds = %247
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #3
  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 8, ptr %24) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #3
  store i64 0, ptr %27, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #3
  %252 = load i64, ptr %15, align 8, !tbaa !20
  %253 = load i64, ptr %16, align 8, !tbaa !20
  %254 = call i64 @XCG_FT_Angle_Diff(i64 noundef %252, i64 noundef %253)
  %255 = sdiv i64 %254, 2
  store i64 %255, ptr %22, align 8, !tbaa !20
  %256 = load i64, ptr %16, align 8, !tbaa !20
  %257 = load i64, ptr %17, align 8, !tbaa !20
  %258 = call i64 @XCG_FT_Angle_Diff(i64 noundef %256, i64 noundef %257)
  %259 = sdiv i64 %258, 2
  store i64 %259, ptr %24, align 8, !tbaa !20
  %260 = load i64, ptr %15, align 8, !tbaa !20
  %261 = load i64, ptr %16, align 8, !tbaa !20
  %262 = call i64 @ft_angle_mean(i64 noundef %260, i64 noundef %261)
  store i64 %262, ptr %23, align 8, !tbaa !20
  %263 = load i64, ptr %16, align 8, !tbaa !20
  %264 = load i64, ptr %17, align 8, !tbaa !20
  %265 = call i64 @ft_angle_mean(i64 noundef %263, i64 noundef %264)
  store i64 %265, ptr %25, align 8, !tbaa !20
  %266 = load ptr, ptr %6, align 8, !tbaa !5
  %267 = getelementptr inbounds %struct.XCG_FT_StrokerRec_, ptr %266, i32 0, i32 14
  %268 = load i64, ptr %267, align 8, !tbaa !28
  %269 = load i64, ptr %22, align 8, !tbaa !20
  %270 = call i64 @XCG_FT_Cos(i64 noundef %269)
  %271 = call i64 @XCG_FT_DivFix(i64 noundef %268, i64 noundef %270)
  store i64 %271, ptr %28, align 8, !tbaa !20
  %272 = load ptr, ptr %6, align 8, !tbaa !5
  %273 = getelementptr inbounds %struct.XCG_FT_StrokerRec_, ptr %272, i32 0, i32 14
  %274 = load i64, ptr %273, align 8, !tbaa !28
  %275 = load i64, ptr %24, align 8, !tbaa !20
  %276 = call i64 @XCG_FT_Cos(i64 noundef %275)
  %277 = call i64 @XCG_FT_DivFix(i64 noundef %274, i64 noundef %276)
  store i64 %277, ptr %29, align 8, !tbaa !20
  %278 = load ptr, ptr %6, align 8, !tbaa !5
  %279 = getelementptr inbounds %struct.XCG_FT_StrokerRec_, ptr %278, i32 0, i32 9
  %280 = load i8, ptr %279, align 8, !tbaa !29
  %281 = icmp ne i8 %280, 0
  br i1 %281, label %282, label %302

282:                                              ; preds = %251
  %283 = load ptr, ptr %12, align 8, !tbaa !5
  %284 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %283, i64 0
  %285 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %284, i32 0, i32 0
  %286 = load i64, ptr %285, align 8, !tbaa !16
  %287 = load ptr, ptr %12, align 8, !tbaa !5
  %288 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %287, i64 3
  %289 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %288, i32 0, i32 0
  %290 = load i64, ptr %289, align 8, !tbaa !16
  %291 = sub nsw i64 %286, %290
  %292 = load ptr, ptr %12, align 8, !tbaa !5
  %293 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %292, i64 0
  %294 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %293, i32 0, i32 1
  %295 = load i64, ptr %294, align 8, !tbaa !18
  %296 = load ptr, ptr %12, align 8, !tbaa !5
  %297 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %296, i64 3
  %298 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %297, i32 0, i32 1
  %299 = load i64, ptr %298, align 8, !tbaa !18
  %300 = sub nsw i64 %295, %299
  %301 = call i64 @XCG_FT_Atan2(i64 noundef %291, i64 noundef %300)
  store i64 %301, ptr %27, align 8, !tbaa !20
  br label %302

302:                                              ; preds = %282, %251
  %303 = load ptr, ptr %6, align 8, !tbaa !5
  %304 = getelementptr inbounds %struct.XCG_FT_StrokerRec_, ptr %303, i32 0, i32 15
  %305 = getelementptr inbounds [2 x %struct.XCG_FT_StrokeBorderRec_], ptr %304, i64 0, i64 0
  store ptr %305, ptr %30, align 8, !tbaa !5
  store i32 0, ptr %31, align 4, !tbaa !9
  br label %306

306:                                              ; preds = %508, %302
  %307 = load i32, ptr %31, align 4, !tbaa !9
  %308 = icmp sle i32 %307, 1
  br i1 %308, label %309, label %513

309:                                              ; preds = %306
  %310 = load i32, ptr %31, align 4, !tbaa !9
  %311 = sext i32 %310 to i64
  %312 = mul nsw i64 %311, 11796480
  %313 = sub nsw i64 5898240, %312
  store i64 %313, ptr %26, align 8, !tbaa !20
  %314 = load i64, ptr %28, align 8, !tbaa !20
  %315 = load i64, ptr %23, align 8, !tbaa !20
  %316 = load i64, ptr %26, align 8, !tbaa !20
  %317 = add nsw i64 %315, %316
  call void @XCG_FT_Vector_From_Polar(ptr noundef %19, i64 noundef %314, i64 noundef %317)
  %318 = load ptr, ptr %12, align 8, !tbaa !5
  %319 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %318, i64 2
  %320 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %319, i32 0, i32 0
  %321 = load i64, ptr %320, align 8, !tbaa !16
  %322 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %19, i32 0, i32 0
  %323 = load i64, ptr %322, align 8, !tbaa !16
  %324 = add nsw i64 %323, %321
  store i64 %324, ptr %322, align 8, !tbaa !16
  %325 = load ptr, ptr %12, align 8, !tbaa !5
  %326 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %325, i64 2
  %327 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %326, i32 0, i32 1
  %328 = load i64, ptr %327, align 8, !tbaa !18
  %329 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %19, i32 0, i32 1
  %330 = load i64, ptr %329, align 8, !tbaa !18
  %331 = add nsw i64 %330, %328
  store i64 %331, ptr %329, align 8, !tbaa !18
  %332 = load i64, ptr %29, align 8, !tbaa !20
  %333 = load i64, ptr %25, align 8, !tbaa !20
  %334 = load i64, ptr %26, align 8, !tbaa !20
  %335 = add nsw i64 %333, %334
  call void @XCG_FT_Vector_From_Polar(ptr noundef %20, i64 noundef %332, i64 noundef %335)
  %336 = load ptr, ptr %12, align 8, !tbaa !5
  %337 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %336, i64 1
  %338 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %337, i32 0, i32 0
  %339 = load i64, ptr %338, align 8, !tbaa !16
  %340 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %20, i32 0, i32 0
  %341 = load i64, ptr %340, align 8, !tbaa !16
  %342 = add nsw i64 %341, %339
  store i64 %342, ptr %340, align 8, !tbaa !16
  %343 = load ptr, ptr %12, align 8, !tbaa !5
  %344 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %343, i64 1
  %345 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %344, i32 0, i32 1
  %346 = load i64, ptr %345, align 8, !tbaa !18
  %347 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %20, i32 0, i32 1
  %348 = load i64, ptr %347, align 8, !tbaa !18
  %349 = add nsw i64 %348, %346
  store i64 %349, ptr %347, align 8, !tbaa !18
  %350 = load ptr, ptr %6, align 8, !tbaa !5
  %351 = getelementptr inbounds %struct.XCG_FT_StrokerRec_, ptr %350, i32 0, i32 14
  %352 = load i64, ptr %351, align 8, !tbaa !28
  %353 = load i64, ptr %17, align 8, !tbaa !20
  %354 = load i64, ptr %26, align 8, !tbaa !20
  %355 = add nsw i64 %353, %354
  call void @XCG_FT_Vector_From_Polar(ptr noundef %21, i64 noundef %352, i64 noundef %355)
  %356 = load ptr, ptr %12, align 8, !tbaa !5
  %357 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %356, i64 0
  %358 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %357, i32 0, i32 0
  %359 = load i64, ptr %358, align 8, !tbaa !16
  %360 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %21, i32 0, i32 0
  %361 = load i64, ptr %360, align 8, !tbaa !16
  %362 = add nsw i64 %361, %359
  store i64 %362, ptr %360, align 8, !tbaa !16
  %363 = load ptr, ptr %12, align 8, !tbaa !5
  %364 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %363, i64 0
  %365 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %364, i32 0, i32 1
  %366 = load i64, ptr %365, align 8, !tbaa !18
  %367 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %21, i32 0, i32 1
  %368 = load i64, ptr %367, align 8, !tbaa !18
  %369 = add nsw i64 %368, %366
  store i64 %369, ptr %367, align 8, !tbaa !18
  %370 = load ptr, ptr %6, align 8, !tbaa !5
  %371 = getelementptr inbounds %struct.XCG_FT_StrokerRec_, ptr %370, i32 0, i32 9
  %372 = load i8, ptr %371, align 8, !tbaa !29
  %373 = icmp ne i8 %372, 0
  br i1 %373, label %374, label %501

374:                                              ; preds = %309
  call void @llvm.lifetime.start.p0(i64 16, ptr %32) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #3
  %375 = load ptr, ptr %30, align 8, !tbaa !5
  %376 = getelementptr inbounds %struct.XCG_FT_StrokeBorderRec_, ptr %375, i32 0, i32 2
  %377 = load ptr, ptr %376, align 8, !tbaa !30
  %378 = load ptr, ptr %30, align 8, !tbaa !5
  %379 = getelementptr inbounds %struct.XCG_FT_StrokeBorderRec_, ptr %378, i32 0, i32 0
  %380 = load i32, ptr %379, align 8, !tbaa !32
  %381 = sub i32 %380, 1
  %382 = zext i32 %381 to i64
  %383 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %377, i64 %382
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %32, ptr align 8 %383, i64 16, i1 false), !tbaa.struct !19
  %384 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %21, i32 0, i32 0
  %385 = load i64, ptr %384, align 8, !tbaa !16
  %386 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %32, i32 0, i32 0
  %387 = load i64, ptr %386, align 8, !tbaa !16
  %388 = sub nsw i64 %385, %387
  %389 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %21, i32 0, i32 1
  %390 = load i64, ptr %389, align 8, !tbaa !18
  %391 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %32, i32 0, i32 1
  %392 = load i64, ptr %391, align 8, !tbaa !18
  %393 = sub nsw i64 %390, %392
  %394 = call i64 @XCG_FT_Atan2(i64 noundef %388, i64 noundef %393)
  store i64 %394, ptr %33, align 8, !tbaa !20
  %395 = load i64, ptr %27, align 8, !tbaa !20
  %396 = load i64, ptr %33, align 8, !tbaa !20
  %397 = call i64 @XCG_FT_Angle_Diff(i64 noundef %395, i64 noundef %396)
  %398 = call i64 @ft_pos_abs(i64 noundef %397)
  %399 = icmp sgt i64 %398, 5898240
  br i1 %399, label %400, label %497

400:                                              ; preds = %374
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %36) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %37) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #3
  %401 = load ptr, ptr %12, align 8, !tbaa !5
  %402 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %401, i64 3
  %403 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %402, i32 0, i32 0
  %404 = load i64, ptr %403, align 8, !tbaa !16
  %405 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %32, i32 0, i32 0
  %406 = load i64, ptr %405, align 8, !tbaa !16
  %407 = sub nsw i64 %404, %406
  %408 = load ptr, ptr %12, align 8, !tbaa !5
  %409 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %408, i64 3
  %410 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %409, i32 0, i32 1
  %411 = load i64, ptr %410, align 8, !tbaa !18
  %412 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %32, i32 0, i32 1
  %413 = load i64, ptr %412, align 8, !tbaa !18
  %414 = sub nsw i64 %411, %413
  %415 = call i64 @XCG_FT_Atan2(i64 noundef %407, i64 noundef %414)
  store i64 %415, ptr %34, align 8, !tbaa !20
  %416 = load ptr, ptr %12, align 8, !tbaa !5
  %417 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %416, i64 0
  %418 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %417, i32 0, i32 0
  %419 = load i64, ptr %418, align 8, !tbaa !16
  %420 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %21, i32 0, i32 0
  %421 = load i64, ptr %420, align 8, !tbaa !16
  %422 = sub nsw i64 %419, %421
  %423 = load ptr, ptr %12, align 8, !tbaa !5
  %424 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %423, i64 0
  %425 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %424, i32 0, i32 1
  %426 = load i64, ptr %425, align 8, !tbaa !18
  %427 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %21, i32 0, i32 1
  %428 = load i64, ptr %427, align 8, !tbaa !18
  %429 = sub nsw i64 %426, %428
  %430 = call i64 @XCG_FT_Atan2(i64 noundef %422, i64 noundef %429)
  store i64 %430, ptr %35, align 8, !tbaa !20
  %431 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %21, i32 0, i32 0
  %432 = load i64, ptr %431, align 8, !tbaa !16
  %433 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %32, i32 0, i32 0
  %434 = load i64, ptr %433, align 8, !tbaa !16
  %435 = sub nsw i64 %432, %434
  %436 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %36, i32 0, i32 0
  store i64 %435, ptr %436, align 8, !tbaa !16
  %437 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %21, i32 0, i32 1
  %438 = load i64, ptr %437, align 8, !tbaa !18
  %439 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %32, i32 0, i32 1
  %440 = load i64, ptr %439, align 8, !tbaa !18
  %441 = sub nsw i64 %438, %440
  %442 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %36, i32 0, i32 1
  store i64 %441, ptr %442, align 8, !tbaa !18
  %443 = call i64 @XCG_FT_Vector_Length(ptr noundef %36)
  store i64 %443, ptr %38, align 8, !tbaa !20
  %444 = load i64, ptr %33, align 8, !tbaa !20
  %445 = load i64, ptr %35, align 8, !tbaa !20
  %446 = sub nsw i64 %444, %445
  %447 = call i64 @XCG_FT_Sin(i64 noundef %446)
  %448 = call i64 @ft_pos_abs(i64 noundef %447)
  store i64 %448, ptr %39, align 8, !tbaa !20
  %449 = load i64, ptr %34, align 8, !tbaa !20
  %450 = load i64, ptr %35, align 8, !tbaa !20
  %451 = sub nsw i64 %449, %450
  %452 = call i64 @XCG_FT_Sin(i64 noundef %451)
  %453 = call i64 @ft_pos_abs(i64 noundef %452)
  store i64 %453, ptr %40, align 8, !tbaa !20
  %454 = load i64, ptr %38, align 8, !tbaa !20
  %455 = load i64, ptr %39, align 8, !tbaa !20
  %456 = load i64, ptr %40, align 8, !tbaa !20
  %457 = call i64 @XCG_FT_MulDiv(i64 noundef %454, i64 noundef %455, i64 noundef %456)
  store i64 %457, ptr %41, align 8, !tbaa !20
  %458 = load i64, ptr %41, align 8, !tbaa !20
  %459 = load i64, ptr %34, align 8, !tbaa !20
  call void @XCG_FT_Vector_From_Polar(ptr noundef %37, i64 noundef %458, i64 noundef %459)
  %460 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %32, i32 0, i32 0
  %461 = load i64, ptr %460, align 8, !tbaa !16
  %462 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %37, i32 0, i32 0
  %463 = load i64, ptr %462, align 8, !tbaa !16
  %464 = add nsw i64 %463, %461
  store i64 %464, ptr %462, align 8, !tbaa !16
  %465 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %32, i32 0, i32 1
  %466 = load i64, ptr %465, align 8, !tbaa !18
  %467 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %37, i32 0, i32 1
  %468 = load i64, ptr %467, align 8, !tbaa !18
  %469 = add nsw i64 %468, %466
  store i64 %469, ptr %467, align 8, !tbaa !18
  %470 = load ptr, ptr %30, align 8, !tbaa !5
  %471 = getelementptr inbounds %struct.XCG_FT_StrokeBorderRec_, ptr %470, i32 0, i32 4
  store i8 0, ptr %471, align 8, !tbaa !33
  %472 = load ptr, ptr %30, align 8, !tbaa !5
  %473 = call i32 @ft_stroke_border_lineto(ptr noundef %472, ptr noundef %37, i8 noundef zeroext 0)
  store i32 %473, ptr %10, align 4, !tbaa !9
  %474 = load i32, ptr %10, align 4, !tbaa !9
  %475 = icmp ne i32 %474, 0
  br i1 %475, label %476, label %477

476:                                              ; preds = %400
  store i32 2, ptr %18, align 4
  br label %496

477:                                              ; preds = %400
  %478 = load ptr, ptr %30, align 8, !tbaa !5
  %479 = call i32 @ft_stroke_border_lineto(ptr noundef %478, ptr noundef %21, i8 noundef zeroext 0)
  store i32 %479, ptr %10, align 4, !tbaa !9
  %480 = load i32, ptr %10, align 4, !tbaa !9
  %481 = icmp ne i32 %480, 0
  br i1 %481, label %482, label %483

482:                                              ; preds = %477
  store i32 2, ptr %18, align 4
  br label %496

483:                                              ; preds = %477
  %484 = load ptr, ptr %30, align 8, !tbaa !5
  %485 = call i32 @ft_stroke_border_cubicto(ptr noundef %484, ptr noundef %20, ptr noundef %19, ptr noundef %32)
  store i32 %485, ptr %10, align 4, !tbaa !9
  %486 = load i32, ptr %10, align 4, !tbaa !9
  %487 = icmp ne i32 %486, 0
  br i1 %487, label %488, label %489

488:                                              ; preds = %483
  store i32 2, ptr %18, align 4
  br label %496

489:                                              ; preds = %483
  %490 = load ptr, ptr %30, align 8, !tbaa !5
  %491 = call i32 @ft_stroke_border_lineto(ptr noundef %490, ptr noundef %21, i8 noundef zeroext 0)
  store i32 %491, ptr %10, align 4, !tbaa !9
  %492 = load i32, ptr %10, align 4, !tbaa !9
  %493 = icmp ne i32 %492, 0
  br i1 %493, label %494, label %495

494:                                              ; preds = %489
  store i32 2, ptr %18, align 4
  br label %496

495:                                              ; preds = %489
  store i32 7, ptr %18, align 4
  br label %496

496:                                              ; preds = %495, %494, %488, %482, %476
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %37) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %36) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #3
  br label %498

497:                                              ; preds = %374
  store i32 0, ptr %18, align 4
  br label %498

498:                                              ; preds = %497, %496
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #3
  %499 = load i32, ptr %18, align 4
  switch i32 %499, label %514 [
    i32 0, label %500
    i32 7, label %508
  ]

500:                                              ; preds = %498
  br label %501

501:                                              ; preds = %500, %309
  %502 = load ptr, ptr %30, align 8, !tbaa !5
  %503 = call i32 @ft_stroke_border_cubicto(ptr noundef %502, ptr noundef %19, ptr noundef %20, ptr noundef %21)
  store i32 %503, ptr %10, align 4, !tbaa !9
  %504 = load i32, ptr %10, align 4, !tbaa !9
  %505 = icmp ne i32 %504, 0
  br i1 %505, label %506, label %507

506:                                              ; preds = %501
  store i32 2, ptr %18, align 4
  br label %514

507:                                              ; preds = %501
  br label %508

508:                                              ; preds = %507, %498
  %509 = load i32, ptr %31, align 4, !tbaa !9
  %510 = add nsw i32 %509, 1
  store i32 %510, ptr %31, align 4, !tbaa !9
  %511 = load ptr, ptr %30, align 8, !tbaa !5
  %512 = getelementptr inbounds %struct.XCG_FT_StrokeBorderRec_, ptr %511, i32 1
  store ptr %512, ptr %30, align 8, !tbaa !5
  br label %306, !llvm.loop !34

513:                                              ; preds = %306
  store i32 0, ptr %18, align 4
  br label %514

514:                                              ; preds = %513, %506, %498
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #3
  call void @llvm.lifetime.end.p0(i64 8, 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
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 8, 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 16, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #3
  %515 = load i32, ptr %18, align 4
  switch i32 %515, label %522 [
    i32 0, label %516
  ]

516:                                              ; preds = %514
  %517 = load ptr, ptr %12, align 8, !tbaa !5
  %518 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %517, i64 -3
  store ptr %518, ptr %12, align 8, !tbaa !5
  %519 = load i64, ptr %17, align 8, !tbaa !20
  %520 = load ptr, ptr %6, align 8, !tbaa !5
  %521 = getelementptr inbounds %struct.XCG_FT_StrokerRec_, ptr %520, i32 0, i32 0
  store i64 %519, ptr %521, align 8, !tbaa !21
  store i32 0, ptr %18, align 4
  br label %522

522:                                              ; preds = %516, %514, %250, %198
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  %523 = load i32, ptr %18, align 4
  switch i32 %523, label %533 [
    i32 0, label %524
    i32 3, label %174
    i32 2, label %531
  ]

524:                                              ; preds = %522
  br label %174, !llvm.loop !23

525:                                              ; preds = %174
  %526 = load ptr, ptr %6, align 8, !tbaa !5
  %527 = getelementptr inbounds %struct.XCG_FT_StrokerRec_, ptr %526, i32 0, i32 2
  %528 = load ptr, ptr %9, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %527, ptr align 8 %528, i64 16, i1 false), !tbaa.struct !19
  %529 = load ptr, ptr %6, align 8, !tbaa !5
  %530 = getelementptr inbounds %struct.XCG_FT_StrokerRec_, ptr %529, i32 0, i32 3
  store i64 0, ptr %530, align 8, !tbaa !35
  br label %531

531:                                              ; preds = %525, %522, %155
  %532 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %532, ptr %5, align 4
  store i32 1, ptr %18, align 4
  br label %533

533:                                              ; preds = %531, %522
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 592, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  %534 = load i32, ptr %5, align 4
  ret i32 %534
}

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

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

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

; Function Attrs: nounwind uwtable
declare hidden i32 @ft_stroke_border_cubicto(ptr noundef, 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
declare hidden i64 @ft_pos_abs(i64 noundef) local_unnamed_addr #1

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

20:                                               ; preds = %4
  %21 = getelementptr inbounds i8, ptr %0, i64 24
  %22 = load i64, ptr %21, align 8, !tbaa !13
  %23 = getelementptr inbounds i8, ptr %1, i64 8
  %24 = load i64, ptr %23, align 8, !tbaa !14
  %25 = add i64 %22, 1
  %26 = sub i64 %25, %24
  %or.cond163 = icmp ult i64 %26, 3
  br i1 %or.cond163, label %27, label %46

27:                                               ; preds = %20
  %28 = load i64, ptr %2, align 8, !tbaa !12
  %29 = add i64 %17, 1
  %30 = sub i64 %29, %28
  %or.cond164 = icmp ult i64 %30, 3
  br i1 %or.cond164, label %31, label %46

31:                                               ; preds = %27
  %32 = getelementptr inbounds i8, ptr %2, i64 8
  %33 = load i64, ptr %32, align 8, !tbaa !14
  %34 = add i64 %24, 1
  %35 = sub i64 %34, %33
  %or.cond165 = icmp ult i64 %35, 3
  br i1 %or.cond165, label %36, label %46

36:                                               ; preds = %31
  %37 = load i64, ptr %3, align 8, !tbaa !12
  %38 = add i64 %28, 1
  %39 = sub i64 %38, %37
  %or.cond166 = icmp ult i64 %39, 3
  br i1 %or.cond166, label %40, label %46

40:                                               ; preds = %36
  %41 = getelementptr inbounds i8, ptr %3, i64 8
  %42 = load i64, ptr %41, align 8, !tbaa !14
  %43 = add i64 %33, 1
  %44 = sub i64 %43, %42
  %or.cond167 = icmp ult i64 %44, 3
  br i1 %or.cond167, label %45, label %46

45:                                               ; preds = %40
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(16) %3, i64 16, i1 false), !tbaa.struct !15
  br label %278

46:                                               ; preds = %40, %36, %31, %27, %20, %4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) %3, i64 16, i1 false), !tbaa.struct !15
  %47 = getelementptr inbounds i8, ptr %5, i64 16
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %47, ptr noundef nonnull align 8 dereferenceable(16) %2, i64 16, i1 false), !tbaa.struct !15
  %48 = getelementptr inbounds i8, ptr %5, i64 32
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %48, ptr noundef nonnull align 8 dereferenceable(16) %1, i64 16, i1 false), !tbaa.struct !15
  %49 = getelementptr inbounds i8, ptr %5, i64 48
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %49, ptr noundef nonnull align 8 dereferenceable(16) %15, i64 16, i1 false), !tbaa.struct !15
  %50 = getelementptr inbounds i8, ptr %0, i64 40
  %51 = getelementptr inbounds i8, ptr %0, i64 8
  %52 = getelementptr inbounds i8, ptr %0, i64 88
  %53 = getelementptr inbounds i8, ptr %0, i64 92
  %54 = getelementptr inbounds i8, ptr %0, i64 104
  %55 = getelementptr inbounds i8, ptr %0, i64 80
  %56 = getelementptr inbounds i8, ptr %0, i64 112
  %57 = getelementptr inbounds i8, ptr %11, i64 8
  %58 = getelementptr inbounds i8, ptr %12, i64 8
  %59 = getelementptr inbounds i8, ptr %0, i64 120
  %60 = getelementptr inbounds i8, ptr %0, i64 136
  %61 = getelementptr inbounds i8, ptr %0, i64 152
  %62 = getelementptr inbounds i8, ptr %0, i64 160
  %63 = getelementptr inbounds i8, ptr %0, i64 176
  br label %64

64:                                               ; preds = %46, %275
  %.0124.ptr196 = phi ptr [ %5, %46 ], [ %.0124.ptr, %275 ]
  %.0124.idx195 = phi i64 [ 0, %46 ], [ %.1125.idx, %275 ]
  %.0126194 = phi i8 [ 1, %46 ], [ %.2128, %275 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #3
  %65 = load i64, ptr %0, align 8, !tbaa !17
  store i64 %65, ptr %7, align 8, !tbaa !16
  store i64 %65, ptr %8, align 8, !tbaa !16
  store i64 %65, ptr %6, align 8, !tbaa !16
  %66 = icmp ult i64 %.0124.idx195, 512
  br i1 %66, label %67, label %74

67:                                               ; preds = %64
  %68 = call zeroext i8 @ft_cubic_is_small_enough(ptr noundef nonnull %.0124.ptr196, ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef nonnull %8)
  %.not151 = icmp eq i8 %68, 0
  br i1 %.not151, label %69, label %74

69:                                               ; preds = %67
  %70 = load i8, ptr %50, align 8, !tbaa !18
  %.not152 = icmp eq i8 %70, 0
  br i1 %.not152, label %73, label %71

71:                                               ; preds = %69
  %72 = load i64, ptr %6, align 8, !tbaa !16
  store i64 %72, ptr %0, align 8, !tbaa !17
  br label %73

73:                                               ; preds = %71, %69
  call void @ft_cubic_split(ptr noundef nonnull %.0124.ptr196)
  %.0124.add = add nuw nsw i64 %.0124.idx195, 48
  br label %275, !llvm.loop !19

74:                                               ; preds = %67, %64
  %.not153 = icmp eq i8 %.0126194, 0
  br i1 %.not153, label %82, label %75

75:                                               ; preds = %74
  %76 = load i8, ptr %50, align 8, !tbaa !18
  %.not154 = icmp eq i8 %76, 0
  %77 = load i64, ptr %6, align 8, !tbaa !16
  br i1 %.not154, label %80, label %78

78:                                               ; preds = %75
  %79 = call i32 @ft_stroker_subpath_start(ptr noundef nonnull %0, i64 noundef %77, i64 noundef 0)
  br label %93

80:                                               ; preds = %75
  store i64 %77, ptr %51, align 8, !tbaa !21
  %81 = call i32 @ft_stroker_process_corner(ptr noundef nonnull %0, i64 noundef 0)
  br label %93

82:                                               ; preds = %74
  %83 = load i64, ptr %0, align 8, !tbaa !17
  %84 = load i64, ptr %6, align 8, !tbaa !16
  %85 = call i64 @XCG_FT_Angle_Diff(i64 noundef %83, i64 noundef %84)
  %86 = call i64 @ft_pos_abs(i64 noundef %85)
  %87 = icmp sgt i64 %86, 368640
  br i1 %87, label %88, label %.thread201

88:                                               ; preds = %82
  %89 = getelementptr inbounds i8, ptr %.0124.ptr196, i64 48
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(16) %89, i64 16, i1 false), !tbaa.struct !15
  %90 = load i64, ptr %6, align 8, !tbaa !16
  store i64 %90, ptr %51, align 8, !tbaa !21
  store i32 0, ptr %52, align 8, !tbaa !22
  %91 = call i32 @ft_stroker_process_corner(ptr noundef nonnull %0, i64 noundef 0)
  %92 = load i32, ptr %53, align 4, !tbaa !23
  store i32 %92, ptr %52, align 8, !tbaa !22
  br label %93

93:                                               ; preds = %88, %78, %80
  %.1 = phi i32 [ %79, %78 ], [ %81, %80 ], [ %91, %88 ]
  %.not155 = icmp eq i32 %.1, 0
  br i1 %.not155, label %.thread201, label %.thread180

.thread201:                                       ; preds = %82, %93
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #3
  %94 = load i64, ptr %6, align 8, !tbaa !16
  %95 = load i64, ptr %7, align 8, !tbaa !16
  %96 = call i64 @XCG_FT_Angle_Diff(i64 noundef %94, i64 noundef %95)
  %97 = sdiv i64 %96, 2
  %98 = load i64, ptr %7, align 8, !tbaa !16
  %99 = load i64, ptr %8, align 8, !tbaa !16
  %100 = call i64 @XCG_FT_Angle_Diff(i64 noundef %98, i64 noundef %99)
  %101 = sdiv i64 %100, 2
  %102 = load i64, ptr %6, align 8, !tbaa !16
  %103 = load i64, ptr %7, align 8, !tbaa !16
  %104 = call i64 @ft_angle_mean(i64 noundef %102, i64 noundef %103)
  %105 = load i64, ptr %7, align 8, !tbaa !16
  %106 = load i64, ptr %8, align 8, !tbaa !16
  %107 = call i64 @ft_angle_mean(i64 noundef %105, i64 noundef %106)
  %108 = load i64, ptr %54, align 8, !tbaa !24
  %109 = call i64 @XCG_FT_Cos(i64 noundef %97)
  %110 = call i64 @XCG_FT_DivFix(i64 noundef %108, i64 noundef %109)
  %111 = load i64, ptr %54, align 8, !tbaa !24
  %112 = call i64 @XCG_FT_Cos(i64 noundef %101)
  %113 = call i64 @XCG_FT_DivFix(i64 noundef %111, i64 noundef %112)
  %114 = load i8, ptr %55, align 8, !tbaa !25
  %.not156 = icmp eq i8 %114, 0
  br i1 %.not156, label %126, label %115

115:                                              ; preds = %.thread201
  %116 = load i64, ptr %.0124.ptr196, align 8, !tbaa !12
  %117 = getelementptr inbounds i8, ptr %.0124.ptr196, i64 48
  %118 = load i64, ptr %117, align 8, !tbaa !12
  %119 = sub nsw i64 %116, %118
  %120 = getelementptr inbounds i8, ptr %.0124.ptr196, i64 8
  %121 = load i64, ptr %120, align 8, !tbaa !14
  %122 = getelementptr inbounds i8, ptr %.0124.ptr196, i64 56
  %123 = load i64, ptr %122, align 8, !tbaa !14
  %124 = sub nsw i64 %121, %123
  %125 = call i64 @XCG_FT_Atan2(i64 noundef %119, i64 noundef %124)
  br label %126

126:                                              ; preds = %115, %.thread201
  %.0133 = phi i64 [ %125, %115 ], [ 0, %.thread201 ]
  %127 = getelementptr inbounds i8, ptr %.0124.ptr196, i64 32
  %128 = getelementptr inbounds i8, ptr %.0124.ptr196, i64 16
  %129 = getelementptr inbounds i8, ptr %.0124.ptr196, i64 8
  %130 = getelementptr inbounds i8, ptr %.0124.ptr196, i64 48
  %131 = getelementptr inbounds i8, ptr %.0124.ptr196, i64 56
  %132 = add nsw i64 %104, 5898240
  call void @XCG_FT_Vector_From_Polar(ptr noundef nonnull %9, i64 noundef %110, i64 noundef %132)
  %133 = load <2 x i64>, ptr %127, align 8, !tbaa !16
  %134 = load <2 x i64>, ptr %9, align 16, !tbaa !16
  %135 = add nsw <2 x i64> %134, %133
  store <2 x i64> %135, ptr %9, align 16, !tbaa !16
  %136 = add nsw i64 %107, 5898240
  call void @XCG_FT_Vector_From_Polar(ptr noundef nonnull %10, i64 noundef %113, i64 noundef %136)
  %137 = load <2 x i64>, ptr %128, align 8, !tbaa !16
  %138 = load <2 x i64>, ptr %10, align 16, !tbaa !16
  %139 = add nsw <2 x i64> %138, %137
  store <2 x i64> %139, ptr %10, align 16, !tbaa !16
  %140 = load i64, ptr %54, align 8, !tbaa !24
  %141 = load i64, ptr %8, align 8, !tbaa !16
  %142 = add nsw i64 %141, 5898240
  call void @XCG_FT_Vector_From_Polar(ptr noundef nonnull %11, i64 noundef %140, i64 noundef %142)
  %143 = load <2 x i64>, ptr %.0124.ptr196, align 8, !tbaa !16
  %144 = load <2 x i64>, ptr %11, align 16, !tbaa !16
  %145 = add nsw <2 x i64> %144, %143
  store <2 x i64> %145, ptr %11, align 16, !tbaa !16
  %146 = load i8, ptr %55, align 8, !tbaa !25
  %.not157 = icmp eq i8 %146, 0
  br i1 %.not157, label %200, label %147

147:                                              ; preds = %126
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #3
  %148 = load ptr, ptr %59, align 8, !tbaa !26
  %149 = load i32, ptr %56, align 8, !tbaa !29
  %150 = add i32 %149, -1
  %151 = zext i32 %150 to i64
  %152 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %148, i64 %151
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(16) %152, i64 16, i1 false), !tbaa.struct !15
  %153 = load i64, ptr %12, align 16, !tbaa !12
  %154 = extractelement <2 x i64> %145, i64 0
  %155 = sub nsw i64 %154, %153
  %156 = load i64, ptr %58, align 8, !tbaa !14
  %157 = extractelement <2 x i64> %145, i64 1
  %158 = sub nsw i64 %157, %156
  %159 = call i64 @XCG_FT_Atan2(i64 noundef %155, i64 noundef %158)
  %160 = call i64 @XCG_FT_Angle_Diff(i64 noundef %.0133, i64 noundef %159)
  %161 = call i64 @ft_pos_abs(i64 noundef %160)
  %162 = icmp sgt i64 %161, 5898240
  br i1 %162, label %163, label %.thread

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

163:                                              ; preds = %147
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #3
  %164 = load i64, ptr %130, align 8, !tbaa !12
  %165 = load i64, ptr %12, align 16, !tbaa !12
  %166 = sub nsw i64 %164, %165
  %167 = load i64, ptr %131, align 8, !tbaa !14
  %168 = load i64, ptr %58, align 8, !tbaa !14
  %169 = sub nsw i64 %167, %168
  %170 = call i64 @XCG_FT_Atan2(i64 noundef %166, i64 noundef %169)
  %171 = load i64, ptr %.0124.ptr196, align 8, !tbaa !12
  %172 = load i64, ptr %11, align 16, !tbaa !12
  %173 = sub nsw i64 %171, %172
  %174 = load i64, ptr %129, align 8, !tbaa !14
  %175 = load i64, ptr %57, align 8, !tbaa !14
  %176 = sub nsw i64 %174, %175
  %177 = call i64 @XCG_FT_Atan2(i64 noundef %173, i64 noundef %176)
  %178 = load <2 x i64>, ptr %11, align 16, !tbaa !16
  %179 = load <2 x i64>, ptr %12, align 16, !tbaa !16
  %180 = sub nsw <2 x i64> %178, %179
  store <2 x i64> %180, ptr %13, align 16, !tbaa !16
  %181 = call i64 @XCG_FT_Vector_Length(ptr noundef nonnull %13)
  %182 = sub nsw i64 %159, %177
  %183 = call i64 @XCG_FT_Sin(i64 noundef %182)
  %184 = call i64 @ft_pos_abs(i64 noundef %183)
  %185 = sub nsw i64 %170, %177
  %186 = call i64 @XCG_FT_Sin(i64 noundef %185)
  %187 = call i64 @ft_pos_abs(i64 noundef %186)
  %188 = call i64 @XCG_FT_MulDiv(i64 noundef %181, i64 noundef %184, i64 noundef %187)
  call void @XCG_FT_Vector_From_Polar(ptr noundef nonnull %14, i64 noundef %188, i64 noundef %170)
  %189 = load <2 x i64>, ptr %12, align 16, !tbaa !16
  %190 = load <2 x i64>, ptr %14, align 16, !tbaa !16
  %191 = add nsw <2 x i64> %190, %189
  store <2 x i64> %191, ptr %14, align 16, !tbaa !16
  store i8 0, ptr %60, align 8, !tbaa !30
  %192 = call i32 @ft_stroke_border_lineto(ptr noundef nonnull %56, ptr noundef nonnull %14, i8 noundef zeroext 0)
  %.not158 = icmp eq i32 %192, 0
  br i1 %.not158, label %193, label %.thread171

193:                                              ; preds = %163
  %194 = call i32 @ft_stroke_border_lineto(ptr noundef nonnull %56, ptr noundef nonnull %11, i8 noundef zeroext 0)
  %.not159 = icmp eq i32 %194, 0
  br i1 %.not159, label %195, label %.thread171

195:                                              ; preds = %193
  %196 = call i32 @ft_stroke_border_cubicto(ptr noundef nonnull %56, ptr noundef nonnull %10, ptr noundef nonnull %9, ptr noundef nonnull %12)
  %.not160 = icmp eq i32 %196, 0
  br i1 %.not160, label %197, label %.thread171

197:                                              ; preds = %195
  %198 = call i32 @ft_stroke_border_lineto(ptr noundef nonnull %56, ptr noundef nonnull %11, i8 noundef zeroext 0)
  %.not161 = icmp eq i32 %198, 0
  br i1 %.not161, label %199, label %.thread171

.thread171:                                       ; preds = %268, %266, %264, %234, %163, %193, %195, %197
  %.3.ph = phi i32 [ %198, %197 ], [ %196, %195 ], [ %194, %193 ], [ %192, %163 ], [ %263, %234 ], [ %265, %264 ], [ %267, %266 ], [ %269, %268 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #3
  br label %.thread175

199:                                              ; preds = %197
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #3
  br label %202

200:                                              ; preds = %.thread, %126
  %201 = call i32 @ft_stroke_border_cubicto(ptr noundef nonnull %56, ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef nonnull %11)
  %.not162 = icmp eq i32 %201, 0
  br i1 %.not162, label %202, label %.thread175

202:                                              ; preds = %199, %200
  %203 = add nsw i64 %104, -5898240
  call void @XCG_FT_Vector_From_Polar(ptr noundef nonnull %9, i64 noundef %110, i64 noundef %203)
  %204 = load <2 x i64>, ptr %127, align 8, !tbaa !16
  %205 = load <2 x i64>, ptr %9, align 16, !tbaa !16
  %206 = add nsw <2 x i64> %205, %204
  store <2 x i64> %206, ptr %9, align 16, !tbaa !16
  %207 = add nsw i64 %107, -5898240
  call void @XCG_FT_Vector_From_Polar(ptr noundef nonnull %10, i64 noundef %113, i64 noundef %207)
  %208 = load <2 x i64>, ptr %128, align 8, !tbaa !16
  %209 = load <2 x i64>, ptr %10, align 16, !tbaa !16
  %210 = add nsw <2 x i64> %209, %208
  store <2 x i64> %210, ptr %10, align 16, !tbaa !16
  %211 = load i64, ptr %54, align 8, !tbaa !24
  %212 = load i64, ptr %8, align 8, !tbaa !16
  %213 = add nsw i64 %212, -5898240
  call void @XCG_FT_Vector_From_Polar(ptr noundef nonnull %11, i64 noundef %211, i64 noundef %213)
  %214 = load <2 x i64>, ptr %.0124.ptr196, align 8, !tbaa !16
  %215 = load <2 x i64>, ptr %11, align 16, !tbaa !16
  %216 = add nsw <2 x i64> %215, %214
  store <2 x i64> %216, ptr %11, align 16, !tbaa !16
  %217 = load i8, ptr %55, align 8, !tbaa !25
  %.not157.1 = icmp eq i8 %217, 0
  br i1 %.not157.1, label %271, label %218

218:                                              ; preds = %202
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #3
  %219 = load ptr, ptr %62, align 8, !tbaa !26
  %220 = load i32, ptr %61, align 8, !tbaa !29
  %221 = add i32 %220, -1
  %222 = zext i32 %221 to i64
  %223 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %219, i64 %222
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(16) %223, i64 16, i1 false), !tbaa.struct !15
  %224 = load i64, ptr %12, align 16, !tbaa !12
  %225 = extractelement <2 x i64> %216, i64 0
  %226 = sub nsw i64 %225, %224
  %227 = load i64, ptr %58, align 8, !tbaa !14
  %228 = extractelement <2 x i64> %216, i64 1
  %229 = sub nsw i64 %228, %227
  %230 = call i64 @XCG_FT_Atan2(i64 noundef %226, i64 noundef %229)
  %231 = call i64 @XCG_FT_Angle_Diff(i64 noundef %.0133, i64 noundef %230)
  %232 = call i64 @ft_pos_abs(i64 noundef %231)
  %233 = icmp sgt i64 %232, 5898240
  br i1 %233, label %234, label %.thread.1

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

234:                                              ; preds = %218
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #3
  %235 = load i64, ptr %130, align 8, !tbaa !12
  %236 = load i64, ptr %12, align 16, !tbaa !12
  %237 = sub nsw i64 %235, %236
  %238 = load i64, ptr %131, align 8, !tbaa !14
  %239 = load i64, ptr %58, align 8, !tbaa !14
  %240 = sub nsw i64 %238, %239
  %241 = call i64 @XCG_FT_Atan2(i64 noundef %237, i64 noundef %240)
  %242 = load i64, ptr %.0124.ptr196, align 8, !tbaa !12
  %243 = load i64, ptr %11, align 16, !tbaa !12
  %244 = sub nsw i64 %242, %243
  %245 = load i64, ptr %129, align 8, !tbaa !14
  %246 = load i64, ptr %57, align 8, !tbaa !14
  %247 = sub nsw i64 %245, %246
  %248 = call i64 @XCG_FT_Atan2(i64 noundef %244, i64 noundef %247)
  %249 = load <2 x i64>, ptr %11, align 16, !tbaa !16
  %250 = load <2 x i64>, ptr %12, align 16, !tbaa !16
  %251 = sub nsw <2 x i64> %249, %250
  store <2 x i64> %251, ptr %13, align 16, !tbaa !16
  %252 = call i64 @XCG_FT_Vector_Length(ptr noundef nonnull %13)
  %253 = sub nsw i64 %230, %248
  %254 = call i64 @XCG_FT_Sin(i64 noundef %253)
  %255 = call i64 @ft_pos_abs(i64 noundef %254)
  %256 = sub nsw i64 %241, %248
  %257 = call i64 @XCG_FT_Sin(i64 noundef %256)
  %258 = call i64 @ft_pos_abs(i64 noundef %257)
  %259 = call i64 @XCG_FT_MulDiv(i64 noundef %252, i64 noundef %255, i64 noundef %258)
  call void @XCG_FT_Vector_From_Polar(ptr noundef nonnull %14, i64 noundef %259, i64 noundef %241)
  %260 = load <2 x i64>, ptr %12, align 16, !tbaa !16
  %261 = load <2 x i64>, ptr %14, align 16, !tbaa !16
  %262 = add nsw <2 x i64> %261, %260
  store <2 x i64> %262, ptr %14, align 16, !tbaa !16
  store i8 0, ptr %63, align 8, !tbaa !30
  %263 = call i32 @ft_stroke_border_lineto(ptr noundef nonnull %61, ptr noundef nonnull %14, i8 noundef zeroext 0)
  %.not158.1 = icmp eq i32 %263, 0
  br i1 %.not158.1, label %264, label %.thread171

264:                                              ; preds = %234
  %265 = call i32 @ft_stroke_border_lineto(ptr noundef nonnull %61, ptr noundef nonnull %11, i8 noundef zeroext 0)
  %.not159.1 = icmp eq i32 %265, 0
  br i1 %.not159.1, label %266, label %.thread171

266:                                              ; preds = %264
  %267 = call i32 @ft_stroke_border_cubicto(ptr noundef nonnull %61, ptr noundef nonnull %10, ptr noundef nonnull %9, ptr noundef nonnull %12)
  %.not160.1 = icmp eq i32 %267, 0
  br i1 %.not160.1, label %268, label %.thread171

268:                                              ; preds = %266
  %269 = call i32 @ft_stroke_border_lineto(ptr noundef nonnull %61, ptr noundef nonnull %11, i8 noundef zeroext 0)
  %.not161.1 = icmp eq i32 %269, 0
  br i1 %.not161.1, label %270, label %.thread171

270:                                              ; preds = %268
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #3
  br label %273

271:                                              ; preds = %.thread.1, %202
  %272 = call i32 @ft_stroke_border_cubicto(ptr noundef nonnull %61, ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef nonnull %11)
  %.not162.1 = icmp eq i32 %272, 0
  br i1 %.not162.1, label %273, label %.thread175

273:                                              ; preds = %271, %270
  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
  %.0124.add149 = add nsw i64 %.0124.idx195, -48
  %274 = load i64, ptr %8, align 8, !tbaa !16
  store i64 %274, ptr %0, align 8, !tbaa !17
  br label %275

.thread175:                                       ; preds = %200, %271, %.thread171
  %.6.ph = phi i32 [ %.3.ph, %.thread171 ], [ %201, %200 ], [ %272, %271 ]
  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 %.thread180

.thread180:                                       ; preds = %93, %.thread175
  %.7.ph = phi i32 [ %.6.ph, %.thread175 ], [ %.1, %93 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #3
  br label %278

275:                                              ; preds = %273, %73
  %.2128 = phi i8 [ 0, %273 ], [ %.0126194, %73 ]
  %.1125.idx = phi i64 [ %.0124.add149, %273 ], [ %.0124.add, %73 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #3
  %.0124.ptr = getelementptr inbounds i8, ptr %5, i64 %.1125.idx
  %.not = icmp slt i64 %.1125.idx, 0
  br i1 %.not, label %276, label %64

276:                                              ; preds = %275
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(16) %3, i64 16, i1 false), !tbaa.struct !15
  %277 = getelementptr inbounds i8, ptr %0, i64 32
  store i64 0, ptr %277, align 8, !tbaa !31
  br label %278

278:                                              ; preds = %.thread180, %45, %276
  %.0 = phi i32 [ 0, %45 ], [ 0, %276 ], [ %.7.ph, %.thread180 ]
  call void @llvm.lifetime.end.p0(i64 592, ptr nonnull %5) #3
  ret i32 %.0
}

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

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

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

; Function Attrs: nounwind uwtable
declare hidden i32 @ft_stroke_border_cubicto(ptr noundef, 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: ADCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass