; LLVM IR from reworks-org/galaxy :: deps/sfml_deps/freetype-src/src/psaux (pshints)

; 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.FT_Vector_ = type { i64, i64 }
%struct.CF2_GlyphPathRec_ = type { ptr, ptr, %struct.CF2_HintMapRec_, %struct.CF2_HintMapRec_, %struct.CF2_HintMapRec_, %struct.CF2_ArrStackRec_, i32, i32, i32, %struct.FT_Vector_, i8, i8, i8, i8, ptr, ptr, ptr, i32, ptr, i32, i32, i32, i32, %struct.FT_Vector_, %struct.FT_Vector_, %struct.FT_Vector_, %struct.FT_Vector_, %struct.FT_Vector_, i8, i32, %struct.FT_Vector_, %struct.FT_Vector_, %struct.FT_Vector_, %struct.FT_Vector_ }
%struct.CF2_HintMapRec_ = type { ptr, ptr, ptr, i8, i8, i32, i32, i32, [192 x %struct.CF2_HintRec_] }
%struct.CF2_HintRec_ = type { i32, i64, i32, i32, i32 }
%struct.CF2_ArrStackRec_ = type { ptr, ptr, i64, i64, i64, i64, ptr }
%struct.CF2_OutlineCallbacksRec_ = type { ptr, ptr, ptr, ptr, i32, ptr, ptr }

; Function Attrs: nounwind uwtable
declare hidden void @cf2_hintmap_build(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i8 noundef zeroext) #0

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

declare hidden zeroext i8 @cf2_hintmask_isNew(ptr noundef) #3

; Function Attrs: nounwind uwtable
declare hidden void @cf2_glyphpath_computeOffset(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @cf2_glyphpath_pushMove(ptr noundef, i64, i64) #0

; Function Attrs: nounwind uwtable
declare hidden void @cf2_glyphpath_pushPrevElem(ptr noundef, ptr noundef, ptr noundef, i64, i64, i8 noundef zeroext) #0

; Function Attrs: nounwind uwtable
define hidden void @cf2_glyphpath_curveTo(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6) #0 {
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %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 i32, align 4
  %19 = alloca %struct.FT_Vector_, align 8
  %20 = alloca %struct.FT_Vector_, align 8
  %21 = alloca %struct.FT_Vector_, align 8
  %22 = alloca %struct.FT_Vector_, align 8
  store ptr %0, ptr %8, align 8, !tbaa !5
  store i32 %1, ptr %9, align 4, !tbaa !9
  store i32 %2, ptr %10, align 4, !tbaa !9
  store i32 %3, ptr %11, align 4, !tbaa !9
  store i32 %4, ptr %12, align 4, !tbaa !9
  store i32 %5, ptr %13, align 4, !tbaa !9
  store i32 %6, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #4
  %23 = load ptr, ptr %8, align 8, !tbaa !5
  %24 = load ptr, ptr %8, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.CF2_GlyphPathRec_, ptr %24, i32 0, i32 25
  %26 = getelementptr inbounds %struct.FT_Vector_, ptr %25, i32 0, i32 0
  %27 = load i64, ptr %26, align 8, !tbaa !11
  %28 = trunc i64 %27 to i32
  %29 = load ptr, ptr %8, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.CF2_GlyphPathRec_, ptr %29, i32 0, i32 25
  %31 = getelementptr inbounds %struct.FT_Vector_, ptr %30, i32 0, i32 1
  %32 = load i64, ptr %31, align 8, !tbaa !17
  %33 = trunc i64 %32 to i32
  %34 = load i32, ptr %9, align 4, !tbaa !9
  %35 = load i32, ptr %10, align 4, !tbaa !9
  call void @cf2_glyphpath_computeOffset(ptr noundef %23, i32 noundef %28, i32 noundef %33, i32 noundef %34, i32 noundef %35, ptr noundef %15, ptr noundef %16)
  %36 = load ptr, ptr %8, align 8, !tbaa !5
  %37 = load i32, ptr %11, align 4, !tbaa !9
  %38 = load i32, ptr %12, align 4, !tbaa !9
  %39 = load i32, ptr %13, align 4, !tbaa !9
  %40 = load i32, ptr %14, align 4, !tbaa !9
  call void @cf2_glyphpath_computeOffset(ptr noundef %36, i32 noundef %37, i32 noundef %38, i32 noundef %39, i32 noundef %40, ptr noundef %17, ptr noundef %18)
  %41 = load ptr, ptr %8, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.CF2_GlyphPathRec_, ptr %41, i32 0, i32 1
  %43 = load ptr, ptr %42, align 8, !tbaa !18
  %44 = getelementptr inbounds %struct.CF2_OutlineCallbacksRec_, ptr %43, i32 0, i32 4
  %45 = load i32, ptr %44, align 8, !tbaa !19
  %46 = load i32, ptr %9, align 4, !tbaa !9
  %47 = load i32, ptr %10, align 4, !tbaa !9
  %48 = load i32, ptr %11, align 4, !tbaa !9
  %49 = load i32, ptr %12, align 4, !tbaa !9
  %50 = call i32 @cf2_getWindingMomentum(i32 noundef %46, i32 noundef %47, i32 noundef %48, i32 noundef %49)
  %51 = add i32 %45, %50
  %52 = load ptr, ptr %8, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.CF2_GlyphPathRec_, ptr %52, i32 0, i32 1
  %54 = load ptr, ptr %53, align 8, !tbaa !18
  %55 = getelementptr inbounds %struct.CF2_OutlineCallbacksRec_, ptr %54, i32 0, i32 4
  store i32 %51, ptr %55, align 8, !tbaa !19
  %56 = load ptr, ptr %8, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.CF2_GlyphPathRec_, ptr %56, i32 0, i32 25
  %58 = getelementptr inbounds %struct.FT_Vector_, ptr %57, i32 0, i32 0
  %59 = load i64, ptr %58, align 8, !tbaa !11
  %60 = trunc i64 %59 to i32
  %61 = load i32, ptr %15, align 4, !tbaa !9
  %62 = add i32 %60, %61
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds %struct.FT_Vector_, ptr %19, i32 0, i32 0
  store i64 %63, ptr %64, align 8, !tbaa !21
  %65 = load ptr, ptr %8, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.CF2_GlyphPathRec_, ptr %65, i32 0, i32 25
  %67 = getelementptr inbounds %struct.FT_Vector_, ptr %66, i32 0, i32 1
  %68 = load i64, ptr %67, align 8, !tbaa !17
  %69 = trunc i64 %68 to i32
  %70 = load i32, ptr %16, align 4, !tbaa !9
  %71 = add i32 %69, %70
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds %struct.FT_Vector_, ptr %19, i32 0, i32 1
  store i64 %72, ptr %73, align 8, !tbaa !22
  %74 = load i32, ptr %9, align 4, !tbaa !9
  %75 = load i32, ptr %15, align 4, !tbaa !9
  %76 = add i32 %74, %75
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds %struct.FT_Vector_, ptr %20, i32 0, i32 0
  store i64 %77, ptr %78, align 8, !tbaa !21
  %79 = load i32, ptr %10, align 4, !tbaa !9
  %80 = load i32, ptr %16, align 4, !tbaa !9
  %81 = add i32 %79, %80
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds %struct.FT_Vector_, ptr %20, i32 0, i32 1
  store i64 %82, ptr %83, align 8, !tbaa !22
  %84 = load i32, ptr %11, align 4, !tbaa !9
  %85 = load i32, ptr %17, align 4, !tbaa !9
  %86 = add i32 %84, %85
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds %struct.FT_Vector_, ptr %21, i32 0, i32 0
  store i64 %87, ptr %88, align 8, !tbaa !21
  %89 = load i32, ptr %12, align 4, !tbaa !9
  %90 = load i32, ptr %18, align 4, !tbaa !9
  %91 = add i32 %89, %90
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds %struct.FT_Vector_, ptr %21, i32 0, i32 1
  store i64 %92, ptr %93, align 8, !tbaa !22
  %94 = load i32, ptr %13, align 4, !tbaa !9
  %95 = load i32, ptr %17, align 4, !tbaa !9
  %96 = add i32 %94, %95
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds %struct.FT_Vector_, ptr %22, i32 0, i32 0
  store i64 %97, ptr %98, align 8, !tbaa !21
  %99 = load i32, ptr %14, align 4, !tbaa !9
  %100 = load i32, ptr %18, align 4, !tbaa !9
  %101 = add i32 %99, %100
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds %struct.FT_Vector_, ptr %22, i32 0, i32 1
  store i64 %102, ptr %103, align 8, !tbaa !22
  %104 = load ptr, ptr %8, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.CF2_GlyphPathRec_, ptr %104, i32 0, i32 13
  %106 = load i8, ptr %105, align 1, !tbaa !23
  %107 = icmp ne i8 %106, 0
  br i1 %107, label %108, label %120

108:                                              ; preds = %7
  %109 = load ptr, ptr %8, align 8, !tbaa !5
  %110 = getelementptr inbounds { i64, i64 }, ptr %19, i32 0, i32 0
  %111 = load i64, ptr %110, align 8
  %112 = getelementptr inbounds { i64, i64 }, ptr %19, i32 0, i32 1
  %113 = load i64, ptr %112, align 8
  call void @cf2_glyphpath_pushMove(ptr noundef %109, i64 %111, i64 %113)
  %114 = load ptr, ptr %8, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.CF2_GlyphPathRec_, ptr %114, i32 0, i32 13
  store i8 0, ptr %115, align 1, !tbaa !23
  %116 = load ptr, ptr %8, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.CF2_GlyphPathRec_, ptr %116, i32 0, i32 10
  store i8 1, ptr %117, align 8, !tbaa !24
  %118 = load ptr, ptr %8, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.CF2_GlyphPathRec_, ptr %118, i32 0, i32 24
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %119, ptr align 8 %20, i64 16, i1 false), !tbaa.struct !25
  br label %120

120:                                              ; preds = %108, %7
  %121 = load ptr, ptr %8, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.CF2_GlyphPathRec_, ptr %121, i32 0, i32 28
  %123 = load i8, ptr %122, align 8, !tbaa !27
  %124 = icmp ne i8 %123, 0
  br i1 %124, label %125, label %136

125:                                              ; preds = %120
  br label %126

126:                                              ; preds = %125
  br label %127

127:                                              ; preds = %126
  br label %128

128:                                              ; preds = %127
  %129 = load ptr, ptr %8, align 8, !tbaa !5
  %130 = load ptr, ptr %8, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.CF2_GlyphPathRec_, ptr %130, i32 0, i32 2
  %132 = getelementptr inbounds { i64, i64 }, ptr %20, i32 0, i32 0
  %133 = load i64, ptr %132, align 8
  %134 = getelementptr inbounds { i64, i64 }, ptr %20, i32 0, i32 1
  %135 = load i64, ptr %134, align 8
  call void @cf2_glyphpath_pushPrevElem(ptr noundef %129, ptr noundef %131, ptr noundef %19, i64 %133, i64 %135, i8 noundef zeroext 0)
  br label %136

136:                                              ; preds = %128, %120
  %137 = load ptr, ptr %8, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.CF2_GlyphPathRec_, ptr %137, i32 0, i32 28
  store i8 1, ptr %138, align 8, !tbaa !27
  %139 = load ptr, ptr %8, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.CF2_GlyphPathRec_, ptr %139, i32 0, i32 29
  store i32 4, ptr %140, align 4, !tbaa !28
  %141 = load ptr, ptr %8, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.CF2_GlyphPathRec_, ptr %141, i32 0, i32 30
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %142, ptr align 8 %19, i64 16, i1 false), !tbaa.struct !25
  %143 = load ptr, ptr %8, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.CF2_GlyphPathRec_, ptr %143, i32 0, i32 31
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %144, ptr align 8 %20, i64 16, i1 false), !tbaa.struct !25
  %145 = load ptr, ptr %8, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.CF2_GlyphPathRec_, ptr %145, i32 0, i32 32
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %146, ptr align 8 %21, i64 16, i1 false), !tbaa.struct !25
  %147 = load ptr, ptr %8, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.CF2_GlyphPathRec_, ptr %147, i32 0, i32 33
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %148, ptr align 8 %22, i64 16, i1 false), !tbaa.struct !25
  %149 = load ptr, ptr %8, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.CF2_GlyphPathRec_, ptr %149, i32 0, i32 16
  %151 = load ptr, ptr %150, align 8, !tbaa !29
  %152 = call zeroext i8 @cf2_hintmask_isNew(ptr noundef %151)
  %153 = icmp ne i8 %152, 0
  br i1 %153, label %154, label %169

154:                                              ; preds = %136
  %155 = load ptr, ptr %8, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.CF2_GlyphPathRec_, ptr %155, i32 0, i32 2
  %157 = load ptr, ptr %8, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.CF2_GlyphPathRec_, ptr %157, i32 0, i32 14
  %159 = load ptr, ptr %158, align 8, !tbaa !30
  %160 = load ptr, ptr %8, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.CF2_GlyphPathRec_, ptr %160, i32 0, i32 15
  %162 = load ptr, ptr %161, align 8, !tbaa !31
  %163 = load ptr, ptr %8, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.CF2_GlyphPathRec_, ptr %163, i32 0, i32 16
  %165 = load ptr, ptr %164, align 8, !tbaa !29
  %166 = load ptr, ptr %8, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.CF2_GlyphPathRec_, ptr %166, i32 0, i32 17
  %168 = load i32, ptr %167, align 8, !tbaa !32
  call void @cf2_hintmap_build(ptr noundef %156, ptr noundef %159, ptr noundef %162, ptr noundef %165, i32 noundef %168, i8 noundef zeroext 0)
  br label %169

169:                                              ; preds = %154, %136
  %170 = load i32, ptr %13, align 4, !tbaa !9
  %171 = sext i32 %170 to i64
  %172 = load ptr, ptr %8, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.CF2_GlyphPathRec_, ptr %172, i32 0, i32 25
  %174 = getelementptr inbounds %struct.FT_Vector_, ptr %173, i32 0, i32 0
  store i64 %171, ptr %174, align 8, !tbaa !11
  %175 = load i32, ptr %14, align 4, !tbaa !9
  %176 = sext i32 %175 to i64
  %177 = load ptr, ptr %8, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.CF2_GlyphPathRec_, ptr %177, i32 0, i32 25
  %179 = getelementptr inbounds %struct.FT_Vector_, ptr %178, i32 0, i32 1
  store i64 %176, ptr %179, align 8, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  ret void
}

; Function Attrs: nounwind uwtable
declare hidden i32 @cf2_getWindingMomentum(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #0

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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, !15, i64 18752}
!12 = !{!"CF2_GlyphPathRec_", !6, i64 0, !6, i64 8, !13, i64 16, !13, i64 6200, !13, i64 12384, !14, i64 18568, !10, i64 18624, !10, i64 18628, !10, i64 18632, !16, i64 18640, !7, i64 18656, !7, i64 18657, !7, i64 18658, !7, i64 18659, !6, i64 18664, !6, i64 18672, !6, i64 18680, !10, i64 18688, !6, i64 18696, !10, i64 18704, !10, i64 18708, !10, i64 18712, !10, i64 18716, !16, i64 18720, !16, i64 18736, !16, i64 18752, !16, i64 18768, !16, i64 18784, !7, i64 18800, !10, i64 18804, !16, i64 18808, !16, i64 18824, !16, i64 18840, !16, i64 18856}
!13 = !{!"CF2_HintMapRec_", !6, i64 0, !6, i64 8, !6, i64 16, !7, i64 24, !7, i64 25, !10, i64 28, !10, i64 32, !10, i64 36, !7, i64 40}
!14 = !{!"CF2_ArrStackRec_", !6, i64 0, !6, i64 8, !15, i64 16, !15, i64 24, !15, i64 32, !15, i64 40, !6, i64 48}
!15 = !{!"long", !7, i64 0}
!16 = !{!"FT_Vector_", !15, i64 0, !15, i64 8}
!17 = !{!12, !15, i64 18760}
!18 = !{!12, !6, i64 8}
!19 = !{!20, !10, i64 32}
!20 = !{!"CF2_OutlineCallbacksRec_", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !10, i64 32, !6, i64 40, !6, i64 48}
!21 = !{!16, !15, i64 0}
!22 = !{!16, !15, i64 8}
!23 = !{!12, !7, i64 18659}
!24 = !{!12, !7, i64 18656}
!25 = !{i64 0, i64 8, !26, i64 8, i64 8, !26}
!26 = !{!15, !15, i64 0}
!27 = !{!12, !7, i64 18800}
!28 = !{!12, !10, i64 18804}
!29 = !{!12, !6, i64 18680}
!30 = !{!12, !6, i64 18664}
!31 = !{!12, !6, i64 18672}
!32 = !{!12, !10, i64 18688}


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

; Function Attrs: nounwind uwtable
declare hidden void @cf2_hintmap_build(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i8 noundef zeroext) local_unnamed_addr #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #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: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

declare hidden zeroext i8 @cf2_hintmask_isNew(ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare hidden void @cf2_glyphpath_computeOffset(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden void @cf2_glyphpath_pushMove(ptr noundef, i64, i64) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden void @cf2_glyphpath_pushPrevElem(ptr noundef, ptr noundef, ptr noundef, i64, i64, i8 noundef zeroext) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define hidden void @cf2_glyphpath_curveTo(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6) local_unnamed_addr #0 {
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca %struct.FT_Vector_, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #4
  %13 = getelementptr inbounds i8, ptr %0, i64 18752
  %14 = load i64, ptr %13, align 8, !tbaa !5
  %15 = trunc i64 %14 to i32
  %16 = getelementptr inbounds i8, ptr %0, i64 18760
  %17 = load i64, ptr %16, align 8, !tbaa !15
  %18 = trunc i64 %17 to i32
  call void @cf2_glyphpath_computeOffset(ptr noundef %0, i32 noundef %15, i32 noundef %18, i32 noundef %1, i32 noundef %2, ptr noundef nonnull %8, ptr noundef nonnull %9)
  call void @cf2_glyphpath_computeOffset(ptr noundef %0, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, ptr noundef nonnull %10, ptr noundef nonnull %11)
  %19 = getelementptr inbounds i8, ptr %0, i64 8
  %20 = load ptr, ptr %19, align 8, !tbaa !16
  %21 = getelementptr inbounds i8, ptr %20, i64 32
  %22 = load i32, ptr %21, align 8, !tbaa !17
  %23 = call i32 @cf2_getWindingMomentum(i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4)
  %24 = add i32 %23, %22
  %25 = load ptr, ptr %19, align 8, !tbaa !16
  %26 = getelementptr inbounds i8, ptr %25, i64 32
  store i32 %24, ptr %26, align 8, !tbaa !17
  %27 = load i64, ptr %13, align 8, !tbaa !5
  %28 = trunc i64 %27 to i32
  %29 = load i32, ptr %8, align 4, !tbaa !19
  %30 = add i32 %29, %28
  %31 = sext i32 %30 to i64
  store i64 %31, ptr %12, align 8, !tbaa !20
  %32 = load i64, ptr %16, align 8, !tbaa !15
  %33 = trunc i64 %32 to i32
  %34 = load i32, ptr %9, align 4, !tbaa !19
  %35 = add i32 %34, %33
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds i8, ptr %12, i64 8
  store i64 %36, ptr %37, align 8, !tbaa !21
  %38 = add i32 %29, %1
  %39 = sext i32 %38 to i64
  %40 = add i32 %34, %2
  %41 = sext i32 %40 to i64
  %42 = load i32, ptr %10, align 4, !tbaa !19
  %43 = add i32 %42, %3
  %44 = sext i32 %43 to i64
  %45 = load i32, ptr %11, align 4, !tbaa !19
  %46 = add i32 %45, %4
  %47 = sext i32 %46 to i64
  %48 = add i32 %42, %5
  %49 = sext i32 %48 to i64
  %50 = add i32 %45, %6
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds i8, ptr %0, i64 18659
  %53 = load i8, ptr %52, align 1, !tbaa !22
  %.not = icmp eq i8 %53, 0
  br i1 %.not, label %57, label %54

54:                                               ; preds = %7
  call void @cf2_glyphpath_pushMove(ptr noundef nonnull %0, i64 %31, i64 %36)
  store i8 0, ptr %52, align 1, !tbaa !22
  %55 = getelementptr inbounds i8, ptr %0, i64 18656
  store i8 1, ptr %55, align 8, !tbaa !23
  %56 = getelementptr inbounds i8, ptr %0, i64 18736
  store i64 %39, ptr %56, align 8, !tbaa !24
  %.sroa.6.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 18744
  store i64 %41, ptr %.sroa.6.0..sroa_idx, align 8, !tbaa !24
  br label %57

57:                                               ; preds = %54, %7
  %58 = getelementptr inbounds i8, ptr %0, i64 18800
  %59 = load i8, ptr %58, align 8, !tbaa !25
  %.not53 = icmp eq i8 %59, 0
  br i1 %.not53, label %62, label %60

60:                                               ; preds = %57
  %61 = getelementptr inbounds i8, ptr %0, i64 16
  call void @cf2_glyphpath_pushPrevElem(ptr noundef nonnull %0, ptr noundef nonnull %61, ptr noundef nonnull %12, i64 %39, i64 %41, i8 noundef zeroext 0)
  br label %62

62:                                               ; preds = %60, %57
  store i8 1, ptr %58, align 8, !tbaa !25
  %63 = getelementptr inbounds i8, ptr %0, i64 18804
  store i32 4, ptr %63, align 4, !tbaa !26
  %64 = getelementptr inbounds i8, ptr %0, i64 18808
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %64, ptr noundef nonnull align 8 dereferenceable(16) %12, i64 16, i1 false), !tbaa.struct !27
  %65 = getelementptr inbounds i8, ptr %0, i64 18824
  store i64 %39, ptr %65, align 8, !tbaa !24
  %.sroa.6.0..sroa_idx5 = getelementptr inbounds i8, ptr %0, i64 18832
  store i64 %41, ptr %.sroa.6.0..sroa_idx5, align 8, !tbaa !24
  %66 = getelementptr inbounds i8, ptr %0, i64 18840
  store i64 %44, ptr %66, align 8, !tbaa !24
  %.sroa.42.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 18848
  store i64 %47, ptr %.sroa.42.0..sroa_idx, align 8, !tbaa !24
  %67 = getelementptr inbounds i8, ptr %0, i64 18856
  store i64 %49, ptr %67, align 8, !tbaa !24
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 18864
  store i64 %51, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !24
  %68 = getelementptr inbounds i8, ptr %0, i64 18680
  %69 = load ptr, ptr %68, align 8, !tbaa !28
  %70 = call zeroext i8 @cf2_hintmask_isNew(ptr noundef %69) #4
  %.not54 = icmp eq i8 %70, 0
  br i1 %.not54, label %80, label %71

71:                                               ; preds = %62
  %72 = getelementptr inbounds i8, ptr %0, i64 16
  %73 = getelementptr inbounds i8, ptr %0, i64 18664
  %74 = load ptr, ptr %73, align 8, !tbaa !29
  %75 = getelementptr inbounds i8, ptr %0, i64 18672
  %76 = load ptr, ptr %75, align 8, !tbaa !30
  %77 = load ptr, ptr %68, align 8, !tbaa !28
  %78 = getelementptr inbounds i8, ptr %0, i64 18688
  %79 = load i32, ptr %78, align 8, !tbaa !31
  call void @cf2_hintmap_build(ptr noundef nonnull %72, ptr noundef %74, ptr noundef %76, ptr noundef %77, i32 noundef %79, i8 noundef zeroext 0)
  br label %80

80:                                               ; preds = %71, %62
  %81 = sext i32 %5 to i64
  store i64 %81, ptr %13, align 8, !tbaa !5
  %82 = sext i32 %6 to i64
  store i64 %82, ptr %16, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #4
  ret void
}

; Function Attrs: nounwind uwtable
declare hidden i32 @cf2_getWindingMomentum(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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, !13, i64 18752}
!6 = !{!"CF2_GlyphPathRec_", !7, i64 0, !7, i64 8, !10, i64 16, !10, i64 6200, !10, i64 12384, !12, i64 18568, !11, i64 18624, !11, i64 18628, !11, i64 18632, !14, i64 18640, !8, i64 18656, !8, i64 18657, !8, i64 18658, !8, i64 18659, !7, i64 18664, !7, i64 18672, !7, i64 18680, !11, i64 18688, !7, i64 18696, !11, i64 18704, !11, i64 18708, !11, i64 18712, !11, i64 18716, !14, i64 18720, !14, i64 18736, !14, i64 18752, !14, i64 18768, !14, i64 18784, !8, i64 18800, !11, i64 18804, !14, i64 18808, !14, i64 18824, !14, i64 18840, !14, i64 18856}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"CF2_HintMapRec_", !7, i64 0, !7, i64 8, !7, i64 16, !8, i64 24, !8, i64 25, !11, i64 28, !11, i64 32, !11, i64 36, !8, i64 40}
!11 = !{!"int", !8, i64 0}
!12 = !{!"CF2_ArrStackRec_", !7, i64 0, !7, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !13, i64 40, !7, i64 48}
!13 = !{!"long", !8, i64 0}
!14 = !{!"FT_Vector_", !13, i64 0, !13, i64 8}
!15 = !{!6, !13, i64 18760}
!16 = !{!6, !7, i64 8}
!17 = !{!18, !11, i64 32}
!18 = !{!"CF2_OutlineCallbacksRec_", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !11, i64 32, !7, i64 40, !7, i64 48}
!19 = !{!11, !11, i64 0}
!20 = !{!14, !13, i64 0}
!21 = !{!14, !13, i64 8}
!22 = !{!6, !8, i64 18659}
!23 = !{!6, !8, i64 18656}
!24 = !{!13, !13, i64 0}
!25 = !{!6, !8, i64 18800}
!26 = !{!6, !11, i64 18804}
!27 = !{i64 0, i64 8, !24, i64 8, i64 8, !24}
!28 = !{!6, !7, i64 18680}
!29 = !{!6, !7, i64 18664}
!30 = !{!6, !7, i64 18672}
!31 = !{!6, !11, i64 18688}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass