; 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_Outline_ = type { i32, i32, ptr, ptr, ptr, ptr, i32 }
%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: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

; Function Attrs: nounwind uwtable
declare dso_local void @XCG_FT_Stroker_Rewind(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @XCG_FT_Stroker_LineTo(ptr noundef, ptr noundef) #2

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @XCG_FT_Stroker_ConicTo(ptr noundef, ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @XCG_FT_Stroker_CubicTo(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @XCG_FT_Stroker_BeginSubPath(ptr noundef, ptr noundef, i8 noundef zeroext) #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @XCG_FT_Stroker_EndSubPath(ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local i32 @XCG_FT_Stroker_ParseOutline(ptr noundef %0, ptr noundef %1) #2 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %struct.XCG_FT_Vector_, align 8
  %7 = alloca %struct.XCG_FT_Vector_, align 8
  %8 = alloca %struct.XCG_FT_Vector_, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca %struct.XCG_FT_Vector_, align 8
  %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 %struct.XCG_FT_Vector_, align 8
  %23 = alloca %struct.XCG_FT_Vector_, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 8, 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
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #3
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  %25 = icmp ne ptr %24, null
  br i1 %25, label %26, label %29

26:                                               ; preds = %2
  %27 = load ptr, ptr %4, align 8, !tbaa !5
  %28 = icmp ne ptr %27, null
  br i1 %28, label %30, label %29

29:                                               ; preds = %26, %2
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %16, align 4
  br label %316

30:                                               ; preds = %26
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  call void @XCG_FT_Stroker_Rewind(ptr noundef %31)
  store i32 0, ptr %14, align 4, !tbaa !9
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %32

32:                                               ; preds = %309, %30
  %33 = load i32, ptr %13, align 4, !tbaa !9
  %34 = load ptr, ptr %5, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.XCG_FT_Outline_, ptr %34, i32 0, i32 0
  %36 = load i32, ptr %35, align 8, !tbaa !11
  %37 = icmp slt i32 %33, %36
  br i1 %37, label %38, label %312

38:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #3
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.XCG_FT_Outline_, ptr %39, i32 0, i32 4
  %41 = load ptr, ptr %40, align 8, !tbaa !13
  %42 = load i32, ptr %13, align 4, !tbaa !9
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds i32, ptr %41, i64 %43
  %45 = load i32, ptr %44, align 4, !tbaa !9
  store i32 %45, ptr %17, align 4, !tbaa !9
  %46 = load ptr, ptr %5, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.XCG_FT_Outline_, ptr %46, i32 0, i32 2
  %48 = load ptr, ptr %47, align 8, !tbaa !14
  %49 = load i32, ptr %17, align 4, !tbaa !9
  %50 = zext i32 %49 to i64
  %51 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %48, i64 %50
  store ptr %51, ptr %10, align 8, !tbaa !5
  %52 = load i32, ptr %17, align 4, !tbaa !9
  %53 = load i32, ptr %14, align 4, !tbaa !9
  %54 = icmp ule i32 %52, %53
  br i1 %54, label %55, label %58

55:                                               ; preds = %38
  %56 = load i32, ptr %17, align 4, !tbaa !9
  %57 = add i32 %56, 1
  store i32 %57, ptr %14, align 4, !tbaa !9
  store i32 4, ptr %16, align 4
  br label %306

58:                                               ; preds = %38
  %59 = load ptr, ptr %5, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.XCG_FT_Outline_, ptr %59, i32 0, i32 2
  %61 = load ptr, ptr %60, align 8, !tbaa !14
  %62 = load i32, ptr %14, align 4, !tbaa !9
  %63 = zext i32 %62 to i64
  %64 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %61, i64 %63
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %8, ptr align 8 %64, i64 16, i1 false), !tbaa.struct !15
  %65 = load ptr, ptr %5, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.XCG_FT_Outline_, ptr %65, i32 0, i32 2
  %67 = load ptr, ptr %66, align 8, !tbaa !14
  %68 = load i32, ptr %17, align 4, !tbaa !9
  %69 = zext i32 %68 to i64
  %70 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %67, i64 %69
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %6, ptr align 8 %70, i64 16, i1 false), !tbaa.struct !15
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %7, ptr align 8 %8, i64 16, i1 false), !tbaa.struct !15
  %71 = load ptr, ptr %5, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.XCG_FT_Outline_, ptr %71, i32 0, i32 2
  %73 = load ptr, ptr %72, align 8, !tbaa !14
  %74 = load i32, ptr %14, align 4, !tbaa !9
  %75 = zext i32 %74 to i64
  %76 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %73, i64 %75
  store ptr %76, ptr %9, align 8, !tbaa !5
  %77 = load ptr, ptr %5, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.XCG_FT_Outline_, ptr %77, i32 0, i32 3
  %79 = load ptr, ptr %78, align 8, !tbaa !18
  %80 = load i32, ptr %14, align 4, !tbaa !9
  %81 = zext i32 %80 to i64
  %82 = getelementptr inbounds i8, ptr %79, i64 %81
  store ptr %82, ptr %11, align 8, !tbaa !5
  %83 = load ptr, ptr %11, align 8, !tbaa !5
  %84 = getelementptr inbounds i8, ptr %83, i64 0
  %85 = load i8, ptr %84, align 1, !tbaa !19
  %86 = sext i8 %85 to i32
  %87 = and i32 %86, 3
  store i32 %87, ptr %15, align 4, !tbaa !9
  %88 = load i32, ptr %15, align 4, !tbaa !9
  %89 = icmp eq i32 %88, 2
  br i1 %89, label %90, label %91

90:                                               ; preds = %58
  store i32 5, ptr %16, align 4
  br label %306

91:                                               ; preds = %58
  %92 = load i32, ptr %15, align 4, !tbaa !9
  %93 = icmp eq i32 %92, 0
  br i1 %93, label %94, label %128

94:                                               ; preds = %91
  %95 = load ptr, ptr %5, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.XCG_FT_Outline_, ptr %95, i32 0, i32 3
  %97 = load ptr, ptr %96, align 8, !tbaa !18
  %98 = load i32, ptr %17, align 4, !tbaa !9
  %99 = zext i32 %98 to i64
  %100 = getelementptr inbounds i8, ptr %97, i64 %99
  %101 = load i8, ptr %100, align 1, !tbaa !19
  %102 = sext i8 %101 to i32
  %103 = and i32 %102, 3
  %104 = icmp eq i32 %103, 1
  br i1 %104, label %105, label %108

105:                                              ; preds = %94
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %8, ptr align 8 %6, i64 16, i1 false), !tbaa.struct !15
  %106 = load ptr, ptr %10, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %106, i32 -1
  store ptr %107, ptr %10, align 8, !tbaa !5
  br label %123

108:                                              ; preds = %94
  %109 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %8, i32 0, i32 0
  %110 = load i64, ptr %109, align 8, !tbaa !20
  %111 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %6, i32 0, i32 0
  %112 = load i64, ptr %111, align 8, !tbaa !20
  %113 = add nsw i64 %110, %112
  %114 = sdiv i64 %113, 2
  %115 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %8, i32 0, i32 0
  store i64 %114, ptr %115, align 8, !tbaa !20
  %116 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %8, i32 0, i32 1
  %117 = load i64, ptr %116, align 8, !tbaa !22
  %118 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %6, i32 0, i32 1
  %119 = load i64, ptr %118, align 8, !tbaa !22
  %120 = add nsw i64 %117, %119
  %121 = sdiv i64 %120, 2
  %122 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %8, i32 0, i32 1
  store i64 %121, ptr %122, align 8, !tbaa !22
  br label %123

123:                                              ; preds = %108, %105
  %124 = load ptr, ptr %9, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %124, i32 -1
  store ptr %125, ptr %9, align 8, !tbaa !5
  %126 = load ptr, ptr %11, align 8, !tbaa !5
  %127 = getelementptr inbounds i8, ptr %126, i32 -1
  store ptr %127, ptr %11, align 8, !tbaa !5
  br label %128

128:                                              ; preds = %123, %91
  %129 = load ptr, ptr %4, align 8, !tbaa !5
  %130 = load ptr, ptr %5, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.XCG_FT_Outline_, ptr %130, i32 0, i32 5
  %132 = load ptr, ptr %131, align 8, !tbaa !23
  %133 = load i32, ptr %13, align 4, !tbaa !9
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds i8, ptr %132, i64 %134
  %136 = load i8, ptr %135, align 1, !tbaa !19
  %137 = call i32 @XCG_FT_Stroker_BeginSubPath(ptr noundef %129, ptr noundef %8, i8 noundef zeroext %136)
  store i32 %137, ptr %12, align 4, !tbaa !9
  %138 = load i32, ptr %12, align 4, !tbaa !9
  %139 = icmp ne i32 %138, 0
  br i1 %139, label %140, label %141

140:                                              ; preds = %128
  store i32 6, ptr %16, align 4
  br label %306

141:                                              ; preds = %128
  br label %142

142:                                              ; preds = %276, %233, %172, %141
  %143 = load ptr, ptr %9, align 8, !tbaa !5
  %144 = load ptr, ptr %10, align 8, !tbaa !5
  %145 = icmp ult ptr %143, %144
  br i1 %145, label %146, label %278

146:                                              ; preds = %142
  %147 = load ptr, ptr %9, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %147, i32 1
  store ptr %148, ptr %9, align 8, !tbaa !5
  %149 = load ptr, ptr %11, align 8, !tbaa !5
  %150 = getelementptr inbounds i8, ptr %149, i32 1
  store ptr %150, ptr %11, align 8, !tbaa !5
  %151 = load ptr, ptr %11, align 8, !tbaa !5
  %152 = getelementptr inbounds i8, ptr %151, i64 0
  %153 = load i8, ptr %152, align 1, !tbaa !19
  %154 = sext i8 %153 to i32
  %155 = and i32 %154, 3
  store i32 %155, ptr %15, align 4, !tbaa !9
  %156 = load i32, ptr %15, align 4, !tbaa !9
  switch i32 %156, label %238 [
    i32 1, label %157
    i32 0, label %174
  ]

157:                                              ; preds = %146
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #3
  %158 = load ptr, ptr %9, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %158, i32 0, i32 0
  %160 = load i64, ptr %159, align 8, !tbaa !20
  %161 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %18, i32 0, i32 0
  store i64 %160, ptr %161, align 8, !tbaa !20
  %162 = load ptr, ptr %9, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %162, i32 0, i32 1
  %164 = load i64, ptr %163, align 8, !tbaa !22
  %165 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %18, i32 0, i32 1
  store i64 %164, ptr %165, align 8, !tbaa !22
  %166 = load ptr, ptr %4, align 8, !tbaa !5
  %167 = call i32 @XCG_FT_Stroker_LineTo(ptr noundef %166, ptr noundef %18)
  store i32 %167, ptr %12, align 4, !tbaa !9
  %168 = load i32, ptr %12, align 4, !tbaa !9
  %169 = icmp ne i32 %168, 0
  br i1 %169, label %170, label %171

170:                                              ; preds = %157
  store i32 6, ptr %16, align 4
  br label %172

171:                                              ; preds = %157
  store i32 7, ptr %16, align 4
  br label %172, !llvm.loop !24

172:                                              ; preds = %171, %170
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #3
  %173 = load i32, ptr %16, align 4
  switch i32 %173, label %306 [
    i32 7, label %142
  ]

174:                                              ; preds = %146
  %175 = load ptr, ptr %9, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %175, i32 0, i32 0
  %177 = load i64, ptr %176, align 8, !tbaa !20
  %178 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %7, i32 0, i32 0
  store i64 %177, ptr %178, align 8, !tbaa !20
  %179 = load ptr, ptr %9, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %179, i32 0, i32 1
  %181 = load i64, ptr %180, align 8, !tbaa !22
  %182 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %7, i32 0, i32 1
  store i64 %181, ptr %182, align 8, !tbaa !22
  br label %183

183:                                              ; preds = %233, %174
  %184 = load ptr, ptr %9, align 8, !tbaa !5
  %185 = load ptr, ptr %10, align 8, !tbaa !5
  %186 = icmp ult ptr %184, %185
  br i1 %186, label %187, label %235

187:                                              ; preds = %183
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #3
  %188 = load ptr, ptr %9, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %188, i32 1
  store ptr %189, ptr %9, align 8, !tbaa !5
  %190 = load ptr, ptr %11, align 8, !tbaa !5
  %191 = getelementptr inbounds i8, ptr %190, i32 1
  store ptr %191, ptr %11, align 8, !tbaa !5
  %192 = load ptr, ptr %11, align 8, !tbaa !5
  %193 = getelementptr inbounds i8, ptr %192, i64 0
  %194 = load i8, ptr %193, align 1, !tbaa !19
  %195 = sext i8 %194 to i32
  %196 = and i32 %195, 3
  store i32 %196, ptr %15, align 4, !tbaa !9
  %197 = load ptr, ptr %9, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %197, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %19, ptr align 8 %198, i64 16, i1 false), !tbaa.struct !15
  %199 = load i32, ptr %15, align 4, !tbaa !9
  %200 = icmp eq i32 %199, 1
  br i1 %200, label %201, label %208

201:                                              ; preds = %187
  %202 = load ptr, ptr %4, align 8, !tbaa !5
  %203 = call i32 @XCG_FT_Stroker_ConicTo(ptr noundef %202, ptr noundef %7, ptr noundef %19)
  store i32 %203, ptr %12, align 4, !tbaa !9
  %204 = load i32, ptr %12, align 4, !tbaa !9
  %205 = icmp ne i32 %204, 0
  br i1 %205, label %206, label %207

206:                                              ; preds = %201
  store i32 6, ptr %16, align 4
  br label %233

207:                                              ; preds = %201
  store i32 7, ptr %16, align 4
  br label %233, !llvm.loop !24

208:                                              ; preds = %187
  %209 = load i32, ptr %15, align 4, !tbaa !9
  %210 = icmp ne i32 %209, 0
  br i1 %210, label %211, label %212

211:                                              ; preds = %208
  store i32 5, ptr %16, align 4
  br label %233

212:                                              ; preds = %208
  %213 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %7, i32 0, i32 0
  %214 = load i64, ptr %213, align 8, !tbaa !20
  %215 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %19, i32 0, i32 0
  %216 = load i64, ptr %215, align 8, !tbaa !20
  %217 = add nsw i64 %214, %216
  %218 = sdiv i64 %217, 2
  %219 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %20, i32 0, i32 0
  store i64 %218, ptr %219, align 8, !tbaa !20
  %220 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %7, i32 0, i32 1
  %221 = load i64, ptr %220, align 8, !tbaa !22
  %222 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %19, i32 0, i32 1
  %223 = load i64, ptr %222, align 8, !tbaa !22
  %224 = add nsw i64 %221, %223
  %225 = sdiv i64 %224, 2
  %226 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %20, i32 0, i32 1
  store i64 %225, ptr %226, align 8, !tbaa !22
  %227 = load ptr, ptr %4, align 8, !tbaa !5
  %228 = call i32 @XCG_FT_Stroker_ConicTo(ptr noundef %227, ptr noundef %7, ptr noundef %20)
  store i32 %228, ptr %12, align 4, !tbaa !9
  %229 = load i32, ptr %12, align 4, !tbaa !9
  %230 = icmp ne i32 %229, 0
  br i1 %230, label %231, label %232

231:                                              ; preds = %212
  store i32 6, ptr %16, align 4
  br label %233

232:                                              ; preds = %212
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %7, ptr align 8 %19, i64 16, i1 false), !tbaa.struct !15
  store i32 10, ptr %16, align 4
  br label %233

233:                                              ; preds = %232, %231, %211, %207, %206
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #3
  %234 = load i32, ptr %16, align 4
  switch i32 %234, label %306 [
    i32 7, label %142
    i32 10, label %183
  ]

235:                                              ; preds = %183
  %236 = load ptr, ptr %4, align 8, !tbaa !5
  %237 = call i32 @XCG_FT_Stroker_ConicTo(ptr noundef %236, ptr noundef %7, ptr noundef %8)
  store i32 %237, ptr %12, align 4, !tbaa !9
  br label %279

238:                                              ; preds = %146
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #3
  %239 = load ptr, ptr %9, align 8, !tbaa !5
  %240 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %239, i64 1
  %241 = load ptr, ptr %10, align 8, !tbaa !5
  %242 = icmp ugt ptr %240, %241
  br i1 %242, label %250, label %243

243:                                              ; preds = %238
  %244 = load ptr, ptr %11, align 8, !tbaa !5
  %245 = getelementptr inbounds i8, ptr %244, i64 1
  %246 = load i8, ptr %245, align 1, !tbaa !19
  %247 = sext i8 %246 to i32
  %248 = and i32 %247, 3
  %249 = icmp ne i32 %248, 2
  br i1 %249, label %250, label %251

250:                                              ; preds = %243, %238
  store i32 5, ptr %16, align 4
  br label %276

251:                                              ; preds = %243
  %252 = load ptr, ptr %9, align 8, !tbaa !5
  %253 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %252, i64 2
  store ptr %253, ptr %9, align 8, !tbaa !5
  %254 = load ptr, ptr %11, align 8, !tbaa !5
  %255 = getelementptr inbounds i8, ptr %254, i64 2
  store ptr %255, ptr %11, align 8, !tbaa !5
  %256 = load ptr, ptr %9, align 8, !tbaa !5
  %257 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %256, i64 -2
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %21, ptr align 8 %257, i64 16, i1 false), !tbaa.struct !15
  %258 = load ptr, ptr %9, align 8, !tbaa !5
  %259 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %258, i64 -1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %22, ptr align 8 %259, i64 16, i1 false), !tbaa.struct !15
  %260 = load ptr, ptr %9, align 8, !tbaa !5
  %261 = load ptr, ptr %10, align 8, !tbaa !5
  %262 = icmp ule ptr %260, %261
  br i1 %262, label %263, label %273

263:                                              ; preds = %251
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #3
  %264 = load ptr, ptr %9, align 8, !tbaa !5
  %265 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %264, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %23, ptr align 8 %265, i64 16, i1 false), !tbaa.struct !15
  %266 = load ptr, ptr %4, align 8, !tbaa !5
  %267 = call i32 @XCG_FT_Stroker_CubicTo(ptr noundef %266, ptr noundef %21, ptr noundef %22, ptr noundef %23)
  store i32 %267, ptr %12, align 4, !tbaa !9
  %268 = load i32, ptr %12, align 4, !tbaa !9
  %269 = icmp ne i32 %268, 0
  br i1 %269, label %270, label %271

270:                                              ; preds = %263
  store i32 6, ptr %16, align 4
  br label %272

271:                                              ; preds = %263
  store i32 7, ptr %16, align 4
  br label %272, !llvm.loop !24

272:                                              ; preds = %271, %270
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #3
  br label %276

273:                                              ; preds = %251
  %274 = load ptr, ptr %4, align 8, !tbaa !5
  %275 = call i32 @XCG_FT_Stroker_CubicTo(ptr noundef %274, ptr noundef %21, ptr noundef %22, ptr noundef %8)
  store i32 %275, ptr %12, align 4, !tbaa !9
  store i32 11, ptr %16, align 4
  br label %276

276:                                              ; preds = %273, %272, %250
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #3
  %277 = load i32, ptr %16, align 4
  switch i32 %277, label %306 [
    i32 7, label %142
    i32 11, label %279
  ]

278:                                              ; preds = %142
  br label %279

279:                                              ; preds = %278, %276, %235
  %280 = load i32, ptr %12, align 4, !tbaa !9
  %281 = icmp ne i32 %280, 0
  br i1 %281, label %282, label %283

282:                                              ; preds = %279
  store i32 6, ptr %16, align 4
  br label %306

283:                                              ; preds = %279
  %284 = load ptr, ptr %4, align 8, !tbaa !5
  %285 = getelementptr inbounds %struct.XCG_FT_StrokerRec_, ptr %284, i32 0, i32 4
  %286 = load i8, ptr %285, align 8, !tbaa !26
  %287 = icmp ne i8 %286, 0
  br i1 %287, label %288, label %297

288:                                              ; preds = %283
  %289 = load ptr, ptr %4, align 8, !tbaa !5
  %290 = getelementptr inbounds %struct.XCG_FT_StrokerRec_, ptr %289, i32 0, i32 5
  store i8 1, ptr %290, align 1, !tbaa !28
  %291 = load ptr, ptr %4, align 8, !tbaa !5
  %292 = call i32 @ft_stroker_subpath_start(ptr noundef %291, i64 noundef 0, i64 noundef 0)
  store i32 %292, ptr %12, align 4, !tbaa !9
  %293 = load i32, ptr %12, align 4, !tbaa !9
  %294 = icmp ne i32 %293, 0
  br i1 %294, label %295, label %296

295:                                              ; preds = %288
  store i32 6, ptr %16, align 4
  br label %306

296:                                              ; preds = %288
  br label %297

297:                                              ; preds = %296, %283
  %298 = load ptr, ptr %4, align 8, !tbaa !5
  %299 = call i32 @XCG_FT_Stroker_EndSubPath(ptr noundef %298)
  store i32 %299, ptr %12, align 4, !tbaa !9
  %300 = load i32, ptr %12, align 4, !tbaa !9
  %301 = icmp ne i32 %300, 0
  br i1 %301, label %302, label %303

302:                                              ; preds = %297
  store i32 6, ptr %16, align 4
  br label %306

303:                                              ; preds = %297
  %304 = load i32, ptr %17, align 4, !tbaa !9
  %305 = add i32 %304, 1
  store i32 %305, ptr %14, align 4, !tbaa !9
  store i32 0, ptr %16, align 4
  br label %306

306:                                              ; preds = %303, %302, %295, %282, %276, %233, %172, %140, %90, %55
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  %307 = load i32, ptr %16, align 4
  switch i32 %307, label %316 [
    i32 0, label %308
    i32 4, label %309
    i32 6, label %313
    i32 5, label %315
  ]

308:                                              ; preds = %306
  br label %309

309:                                              ; preds = %308, %306
  %310 = load i32, ptr %13, align 4, !tbaa !9
  %311 = add nsw i32 %310, 1
  store i32 %311, ptr %13, align 4, !tbaa !9
  br label %32, !llvm.loop !29

312:                                              ; preds = %32
  store i32 0, ptr %3, align 4
  store i32 1, ptr %16, align 4
  br label %316

313:                                              ; preds = %306
  %314 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %314, ptr %3, align 4
  store i32 1, ptr %16, align 4
  br label %316

315:                                              ; preds = %306
  store i32 -2, ptr %3, align 4
  store i32 1, ptr %16, align 4
  br label %316

316:                                              ; preds = %315, %313, %312, %306, %29
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 4, 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 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #3
  %317 = load i32, ptr %3, align 4
  ret i32 %317
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #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 = !{!12, !10, i64 0}
!12 = !{!"XCG_FT_Outline_", !10, i64 0, !10, i64 4, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !10, i64 40}
!13 = !{!12, !6, i64 24}
!14 = !{!12, !6, i64 8}
!15 = !{i64 0, i64 8, !16, i64 8, i64 8, !16}
!16 = !{!17, !17, i64 0}
!17 = !{!"long", !7, i64 0}
!18 = !{!12, !6, i64 16}
!19 = !{!7, !7, i64 0}
!20 = !{!21, !17, i64 0}
!21 = !{!"XCG_FT_Vector_", !17, i64 0, !17, i64 8}
!22 = !{!21, !17, i64 8}
!23 = !{!12, !6, i64 32}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = !{!27, !7, i64 40}
!27 = !{!"XCG_FT_StrokerRec_", !17, i64 0, !17, i64 8, !21, i64 16, !17, i64 32, !7, i64 40, !7, i64 41, !17, i64 48, !21, i64 56, !17, i64 72, !7, i64 80, !10, i64 84, !10, i64 88, !10, i64 92, !17, i64 96, !17, i64 104, !7, i64 112}
!28 = !{!27, !7, i64 41}
!29 = distinct !{!29, !25}


; 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: 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) #1

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @XCG_FT_Stroker_LineTo(ptr noundef, ptr noundef) local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @XCG_FT_Stroker_ConicTo(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @XCG_FT_Stroker_CubicTo(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @XCG_FT_Stroker_BeginSubPath(ptr noundef, ptr noundef, i8 noundef zeroext) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @XCG_FT_Stroker_EndSubPath(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local i32 @XCG_FT_Stroker_ParseOutline(ptr noundef %0, ptr noundef readonly %1) local_unnamed_addr #2 {
  %3 = alloca %struct.XCG_FT_Vector_, align 16
  %4 = alloca %struct.XCG_FT_Vector_, align 16
  %5 = alloca %struct.XCG_FT_Vector_, align 16
  %6 = alloca %struct.XCG_FT_Vector_, align 16
  %7 = alloca %struct.XCG_FT_Vector_, align 16
  %8 = alloca %struct.XCG_FT_Vector_, align 8
  %9 = alloca %struct.XCG_FT_Vector_, align 8
  %10 = alloca %struct.XCG_FT_Vector_, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #4
  %11 = icmp ne ptr %1, null
  %12 = icmp ne ptr %0, null
  %or.cond = and i1 %12, %11
  br i1 %or.cond, label %13, label %.thread156

13:                                               ; preds = %2
  tail call void @XCG_FT_Stroker_Rewind(ptr noundef nonnull %0)
  %14 = load i32, ptr %1, align 8, !tbaa !5
  %15 = icmp sgt i32 %14, 0
  br i1 %15, label %.lr.ph184, label %.thread156

.lr.ph184:                                        ; preds = %13
  %16 = getelementptr inbounds i8, ptr %1, i64 24
  %17 = getelementptr inbounds i8, ptr %1, i64 8
  %18 = getelementptr inbounds i8, ptr %1, i64 16
  %19 = getelementptr inbounds i8, ptr %4, i64 8
  %20 = getelementptr inbounds i8, ptr %1, i64 32
  %21 = getelementptr inbounds i8, ptr %0, i64 40
  %22 = getelementptr inbounds i8, ptr %0, i64 41
  br label %23

23:                                               ; preds = %.lr.ph184, %.thread162
  %24 = phi i32 [ %14, %.lr.ph184 ], [ %106, %.thread162 ]
  %indvars.iv = phi i64 [ 0, %.lr.ph184 ], [ %indvars.iv.next, %.thread162 ]
  %.089183 = phi i32 [ 0, %.lr.ph184 ], [ %.190167, %.thread162 ]
  %25 = load ptr, ptr %16, align 8, !tbaa !11
  %26 = getelementptr inbounds i32, ptr %25, i64 %indvars.iv
  %27 = load i32, ptr %26, align 4, !tbaa !12
  %28 = load ptr, ptr %17, align 8, !tbaa !13
  %29 = zext i32 %27 to i64
  %30 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %28, i64 %29
  %.not = icmp ugt i32 %27, %.089183
  br i1 %.not, label %31, label %.thread162

31:                                               ; preds = %23
  %32 = zext i32 %.089183 to i64
  %33 = getelementptr inbounds %struct.XCG_FT_Vector_, ptr %28, i64 %32
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(16) %33, i64 16, i1 false), !tbaa.struct !14
  %34 = load <2 x i64>, ptr %30, align 8, !tbaa !15
  call void @llvm.memmove.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %3, ptr noundef nonnull align 8 dereferenceable(16) %33, i64 16, i1 false)
  %35 = load ptr, ptr %18, align 8, !tbaa !17
  %36 = getelementptr inbounds i8, ptr %35, i64 %32
  %37 = load i8, ptr %36, align 1, !tbaa !18
  %38 = and i8 %37, 3
  switch i8 %38, label %55 [
    i8 2, label %.thread168
    i8 0, label %39
  ]

39:                                               ; preds = %31
  %40 = getelementptr inbounds i8, ptr %35, i64 %29
  %41 = load i8, ptr %40, align 1, !tbaa !18
  %42 = and i8 %41, 3
  %43 = icmp eq i8 %42, 1
  br i1 %43, label %44, label %48

44:                                               ; preds = %39
  %45 = extractelement <2 x i64> %34, i64 0
  store i64 %45, ptr %4, align 16, !tbaa !15
  %46 = extractelement <2 x i64> %34, i64 1
  store i64 %46, ptr %19, align 8, !tbaa !15
  %47 = getelementptr inbounds i8, ptr %30, i64 -16
  br label %52

48:                                               ; preds = %39
  %49 = load <2 x i64>, ptr %4, align 16, !tbaa !15
  %50 = add nsw <2 x i64> %49, %34
  %51 = sdiv <2 x i64> %50, <i64 2, i64 2>
  store <2 x i64> %51, ptr %4, align 16, !tbaa !15
  br label %52

52:                                               ; preds = %48, %44
  %.0101 = phi ptr [ %47, %44 ], [ %30, %48 ]
  %53 = getelementptr inbounds i8, ptr %33, i64 -16
  %54 = getelementptr inbounds i8, ptr %36, i64 -1
  br label %55

55:                                               ; preds = %31, %52
  %.0103 = phi ptr [ %53, %52 ], [ %33, %31 ]
  %.1102 = phi ptr [ %.0101, %52 ], [ %30, %31 ]
  %.097 = phi ptr [ %54, %52 ], [ %36, %31 ]
  %56 = load ptr, ptr %20, align 8, !tbaa !19
  %57 = getelementptr inbounds i8, ptr %56, i64 %indvars.iv
  %58 = load i8, ptr %57, align 1, !tbaa !18
  %59 = call i32 @XCG_FT_Stroker_BeginSubPath(ptr noundef nonnull %0, ptr noundef nonnull %4, i8 noundef zeroext %58)
  %.not124 = icmp eq i32 %59, 0
  br i1 %.not124, label %.preheader, label %.thread156

.preheader:                                       ; preds = %55
  %60 = icmp ult ptr %.0103, %.1102
  br i1 %60, label %.lr.ph, label %.thread152

.lr.ph:                                           ; preds = %.preheader, %.backedge
  %.198181 = phi ptr [ %.198.be, %.backedge ], [ %.097, %.preheader ]
  %.1104180 = phi ptr [ %.1104.be, %.backedge ], [ %.0103, %.preheader ]
  %61 = getelementptr inbounds i8, ptr %.1104180, i64 16
  %62 = getelementptr inbounds i8, ptr %.198181, i64 1
  %63 = load i8, ptr %62, align 1, !tbaa !18
  %64 = and i8 %63, 3
  switch i8 %64, label %86 [
    i8 1, label %65
    i8 0, label %69
  ]

65:                                               ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #4
  %66 = load <2 x i64>, ptr %61, align 8, !tbaa !15
  store <2 x i64> %66, ptr %5, align 16, !tbaa !15
  %67 = call i32 @XCG_FT_Stroker_LineTo(ptr noundef nonnull %0, ptr noundef nonnull %5)
  %.not128 = icmp eq i32 %67, 0
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #4
  br i1 %.not128, label %.backedge, label %.thread156

.backedge:                                        ; preds = %select.unfold.thread, %65, %99
  %.1104.be = phi ptr [ %94, %99 ], [ %61, %65 ], [ %72, %select.unfold.thread ]
  %.198.be = phi ptr [ %95, %99 ], [ %62, %65 ], [ %73, %select.unfold.thread ]
  %68 = icmp ult ptr %.1104.be, %.1102
  br i1 %68, label %.lr.ph, label %.thread152

69:                                               ; preds = %.lr.ph
  %70 = load <2 x i64>, ptr %61, align 8, !tbaa !15
  store <2 x i64> %70, ptr %3, align 16, !tbaa !15
  %71 = icmp ult ptr %61, %.1102
  br i1 %71, label %.lr.ph216, label %._crit_edge

.lr.ph216:                                        ; preds = %69, %select.unfold
  %.299215 = phi ptr [ %73, %select.unfold ], [ %62, %69 ]
  %.2105214 = phi ptr [ %72, %select.unfold ], [ %61, %69 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #4
  %72 = getelementptr inbounds i8, ptr %.2105214, i64 16
  %73 = getelementptr inbounds i8, ptr %.299215, i64 1
  %74 = load i8, ptr %73, align 1, !tbaa !18
  %75 = and i8 %74, 3
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %72, i64 16, i1 false), !tbaa.struct !14
  switch i8 %75, label %.thread [
    i8 1, label %76
    i8 0, label %78
  ]

76:                                               ; preds = %.lr.ph216
  %77 = call i32 @XCG_FT_Stroker_ConicTo(ptr noundef nonnull %0, ptr noundef nonnull %3, ptr noundef nonnull %6)
  %.not127 = icmp eq i32 %77, 0
  br i1 %.not127, label %select.unfold.thread, label %.thread, !llvm.loop !20

select.unfold.thread:                             ; preds = %76
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #4
  br label %.backedge

78:                                               ; preds = %.lr.ph216
  %79 = load <2 x i64>, ptr %3, align 16, !tbaa !15
  %80 = load <2 x i64>, ptr %6, align 16, !tbaa !15
  %81 = add nsw <2 x i64> %80, %79
  %82 = sdiv <2 x i64> %81, <i64 2, i64 2>
  store <2 x i64> %82, ptr %7, align 16, !tbaa !15
  %83 = call i32 @XCG_FT_Stroker_ConicTo(ptr noundef nonnull %0, ptr noundef nonnull %3, ptr noundef nonnull %7)
  %.not126 = icmp eq i32 %83, 0
  br i1 %.not126, label %select.unfold, label %.thread

.thread:                                          ; preds = %76, %.lr.ph216, %78
  %.395.ph = phi i32 [ 0, %.lr.ph216 ], [ %83, %78 ], [ %77, %76 ]
  %.1.ph = phi i32 [ 5, %.lr.ph216 ], [ 6, %78 ], [ 6, %76 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #4
  br label %.loopexit

select.unfold:                                    ; preds = %78
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %3, ptr noundef nonnull align 16 dereferenceable(16) %6, i64 16, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #4
  %84 = icmp ult ptr %72, %.1102
  br i1 %84, label %.lr.ph216, label %._crit_edge

._crit_edge:                                      ; preds = %69, %select.unfold
  %85 = call i32 @XCG_FT_Stroker_ConicTo(ptr noundef nonnull %0, ptr noundef nonnull %3, ptr noundef nonnull %4)
  br label %100

86:                                               ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #4
  %87 = getelementptr inbounds i8, ptr %.1104180, i64 32
  %88 = icmp ugt ptr %87, %.1102
  br i1 %88, label %.thread142, label %89

89:                                               ; preds = %86
  %90 = getelementptr inbounds i8, ptr %.198181, i64 2
  %91 = load i8, ptr %90, align 1, !tbaa !18
  %92 = and i8 %91, 3
  %.not129 = icmp eq i8 %92, 2
  br i1 %.not129, label %93, label %.thread142

93:                                               ; preds = %89
  %94 = getelementptr inbounds i8, ptr %.1104180, i64 48
  %95 = getelementptr inbounds i8, ptr %.198181, i64 3
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(16) %61, i64 16, i1 false), !tbaa.struct !14
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %87, i64 16, i1 false), !tbaa.struct !14
  %.not130 = icmp ugt ptr %94, %.1102
  br i1 %.not130, label %.thread147, label %96

96:                                               ; preds = %93
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(16) %94, i64 16, i1 false), !tbaa.struct !14
  %97 = call i32 @XCG_FT_Stroker_CubicTo(ptr noundef nonnull %0, ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef nonnull %10)
  %.not131 = icmp eq i32 %97, 0
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #4
  br i1 %.not131, label %99, label %.thread142

.thread147:                                       ; preds = %93
  %98 = call i32 @XCG_FT_Stroker_CubicTo(ptr noundef nonnull %0, ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef nonnull %4)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #4
  br label %100

.thread142:                                       ; preds = %96, %89, %86
  %.496.ph = phi i32 [ 0, %86 ], [ 0, %89 ], [ %97, %96 ]
  %.3.ph = phi i32 [ 5, %86 ], [ 5, %89 ], [ 6, %96 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #4
  br label %.loopexit

99:                                               ; preds = %96
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #4
  br label %.backedge

100:                                              ; preds = %.thread147, %._crit_edge
  %.5 = phi i32 [ %85, %._crit_edge ], [ %98, %.thread147 ]
  %.not132 = icmp eq i32 %.5, 0
  br i1 %.not132, label %.thread152, label %.thread156

.thread152:                                       ; preds = %.backedge, %.preheader, %100
  %101 = load i8, ptr %21, align 8, !tbaa !22
  %.not133 = icmp eq i8 %101, 0
  br i1 %.not133, label %104, label %102

102:                                              ; preds = %.thread152
  store i8 1, ptr %22, align 1, !tbaa !25
  %103 = call i32 @ft_stroker_subpath_start(ptr noundef nonnull %0, i64 noundef 0, i64 noundef 0)
  %.not134 = icmp eq i32 %103, 0
  br i1 %.not134, label %104, label %.thread156

104:                                              ; preds = %102, %.thread152
  %105 = call i32 @XCG_FT_Stroker_EndSubPath(ptr noundef nonnull %0)
  %.not135 = icmp eq i32 %105, 0
  br i1 %.not135, label %..thread162_crit_edge, label %.thread156

..thread162_crit_edge:                            ; preds = %104
  %.pre = load i32, ptr %1, align 8, !tbaa !5
  br label %.thread162

.loopexit:                                        ; preds = %.thread142, %.thread
  %.6 = phi i32 [ %.395.ph, %.thread ], [ %.496.ph, %.thread142 ]
  %.4 = phi i32 [ %.1.ph, %.thread ], [ %.3.ph, %.thread142 ]
  %cond = icmp eq i32 %.4, 5
  br i1 %cond, label %.thread168, label %.thread156

.thread162:                                       ; preds = %..thread162_crit_edge, %23
  %106 = phi i32 [ %.pre, %..thread162_crit_edge ], [ %24, %23 ]
  %.190167 = add i32 %27, 1
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %107 = sext i32 %106 to i64
  %108 = icmp slt i64 %indvars.iv.next, %107
  br i1 %108, label %23, label %.thread156, !llvm.loop !26

.thread168:                                       ; preds = %31, %.loopexit
  br label %.thread156

.thread156:                                       ; preds = %.thread162, %55, %100, %102, %104, %65, %13, %.loopexit, %2, %.thread168
  %.0 = phi i32 [ -2, %.thread168 ], [ -1, %2 ], [ %.6, %.loopexit ], [ 0, %13 ], [ %67, %65 ], [ 0, %.thread162 ], [ %59, %55 ], [ %.5, %100 ], [ %103, %102 ], [ %105, %104 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #4
  ret i32 %.0
}

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 0}
!6 = !{!"XCG_FT_Outline_", !7, i64 0, !7, i64 4, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !7, i64 40}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !10, i64 24}
!12 = !{!7, !7, i64 0}
!13 = !{!6, !10, i64 8}
!14 = !{i64 0, i64 8, !15, i64 8, i64 8, !15}
!15 = !{!16, !16, i64 0}
!16 = !{!"long", !8, i64 0}
!17 = !{!6, !10, i64 16}
!18 = !{!8, !8, i64 0}
!19 = !{!6, !10, i64 32}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!23, !8, i64 40}
!23 = !{!"XCG_FT_StrokerRec_", !16, i64 0, !16, i64 8, !24, i64 16, !16, i64 32, !8, i64 40, !8, i64 41, !16, i64 48, !24, i64 56, !16, i64 72, !8, i64 80, !7, i64 84, !7, i64 88, !7, i64 92, !16, i64 96, !16, i64 104, !8, i64 112}
!24 = !{!"XCG_FT_Vector_", !16, i64 0, !16, i64 8}
!25 = !{!23, !8, i64 41}
!26 = distinct !{!26, !21}


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