; LLVM IR from caryll/otfcc :: lib/table/glyf (build)

; 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.table_GlyfAndLocaBuffers = type { ptr, ptr }
%struct.table_glyf = type { i64, i64, ptr }
%struct.caryll_Buffer = type { i64, i64, i64, ptr }
%struct.glyf_Glyph = type { ptr, %struct.VQ, %struct.VQ, %struct.VQ, %struct.VQ, %struct.glyf_ContourList, %struct.glyf_ReferenceList, %struct.glyf_StemDefList, %struct.glyf_StemDefList, %struct.glyf_MaskList, %struct.glyf_MaskList, i16, ptr, i8, %struct.otfcc_Handle, i16, %struct.glyf_GlyphStat }
%struct.VQ = type { double, %struct.vq_SegList }
%struct.vq_SegList = type { i64, i64, ptr }
%struct.glyf_ContourList = type { i64, i64, ptr }
%struct.glyf_ReferenceList = type { i64, i64, ptr }
%struct.glyf_StemDefList = type { i64, i64, ptr }
%struct.glyf_MaskList = type { i64, i64, ptr }
%struct.otfcc_Handle = type { i32, i16, ptr }
%struct.glyf_GlyphStat = type { double, double, double, double, i16, i16, i16, i16, i16 }
%struct.table_head = type { i32, i32, i32, i32, i16, i16, i64, i64, i16, i16, i16, i16, i16, i16, i16, i16, i16 }

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

declare ptr @bufnew(...) #1

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

declare void @buffree(ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local { ptr, ptr } @otfcc_buildGlyf(ptr noundef %0, ptr noundef %1, ptr noundef %2) #2 {
  %4 = alloca %struct.table_GlyfAndLocaBuffers, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i16, align 2
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %15 = call ptr (...) @bufnew()
  store ptr %15, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %16 = call ptr (...) @bufnew()
  store ptr %16, ptr %9, align 8, !tbaa !5
  %17 = load ptr, ptr %5, align 8, !tbaa !5
  %18 = icmp ne ptr %17, null
  br i1 %18, label %19, label %137

19:                                               ; preds = %3
  %20 = load ptr, ptr %6, align 8, !tbaa !5
  %21 = icmp ne ptr %20, null
  br i1 %21, label %22, label %137

22:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %23 = call ptr (...) @bufnew()
  store ptr %23, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.table_glyf, ptr %24, i32 0, i32 0
  %26 = load i64, ptr %25, align 8, !tbaa !9
  %27 = add i64 %26, 1
  %28 = mul i64 4, %27
  %29 = call ptr @__caryll_allocate_clean(i64 noundef %28, i64 noundef 189)
  store ptr %29, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 2, ptr %12) #5
  store i16 0, ptr %12, align 2, !tbaa !12
  br label %30

30:                                               ; preds = %77, %22
  %31 = load i16, ptr %12, align 2, !tbaa !12
  %32 = zext i16 %31 to i64
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.table_glyf, ptr %33, i32 0, i32 0
  %35 = load i64, ptr %34, align 8, !tbaa !9
  %36 = icmp ult i64 %32, %35
  br i1 %36, label %38, label %37

37:                                               ; preds = %30
  call void @llvm.lifetime.end.p0(i64 2, ptr %12) #5
  br label %80

38:                                               ; preds = %30
  %39 = load ptr, ptr %8, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.caryll_Buffer, ptr %39, i32 0, i32 0
  %41 = load i64, ptr %40, align 8, !tbaa !14
  %42 = trunc i64 %41 to i32
  %43 = load ptr, ptr %11, align 8, !tbaa !5
  %44 = load i16, ptr %12, align 2, !tbaa !12
  %45 = zext i16 %44 to i64
  %46 = getelementptr inbounds i32, ptr %43, i64 %45
  store i32 %42, ptr %46, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %47 = load ptr, ptr %5, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.table_glyf, ptr %47, i32 0, i32 2
  %49 = load ptr, ptr %48, align 8, !tbaa !18
  %50 = load i16, ptr %12, align 2, !tbaa !12
  %51 = zext i16 %50 to i64
  %52 = getelementptr inbounds ptr, ptr %49, i64 %51
  %53 = load ptr, ptr %52, align 8, !tbaa !5
  store ptr %53, ptr %13, align 8, !tbaa !5
  %54 = load ptr, ptr %10, align 8, !tbaa !5
  call void @bufclear(ptr noundef %54)
  %55 = load ptr, ptr %13, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.glyf_Glyph, ptr %55, i32 0, i32 5
  %57 = getelementptr inbounds %struct.glyf_ContourList, ptr %56, i32 0, i32 0
  %58 = load i64, ptr %57, align 8, !tbaa !19
  %59 = icmp ugt i64 %58, 0
  br i1 %59, label %60, label %63

60:                                               ; preds = %38
  %61 = load ptr, ptr %13, align 8, !tbaa !5
  %62 = load ptr, ptr %10, align 8, !tbaa !5
  call void @glyf_build_simple(ptr noundef %61, ptr noundef %62)
  br label %73

63:                                               ; preds = %38
  %64 = load ptr, ptr %13, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.glyf_Glyph, ptr %64, i32 0, i32 6
  %66 = getelementptr inbounds %struct.glyf_ReferenceList, ptr %65, i32 0, i32 0
  %67 = load i64, ptr %66, align 8, !tbaa !25
  %68 = icmp ugt i64 %67, 0
  br i1 %68, label %69, label %72

69:                                               ; preds = %63
  %70 = load ptr, ptr %13, align 8, !tbaa !5
  %71 = load ptr, ptr %10, align 8, !tbaa !5
  call void @glyf_build_composite(ptr noundef %70, ptr noundef %71)
  br label %72

72:                                               ; preds = %69, %63
  br label %73

73:                                               ; preds = %72, %60
  %74 = load ptr, ptr %10, align 8, !tbaa !5
  call void @buflongalign(ptr noundef %74)
  %75 = load ptr, ptr %8, align 8, !tbaa !5
  %76 = load ptr, ptr %10, align 8, !tbaa !5
  call void @bufwrite_buf(ptr noundef %75, ptr noundef %76)
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  br label %77

77:                                               ; preds = %73
  %78 = load i16, ptr %12, align 2, !tbaa !12
  %79 = add i16 %78, 1
  store i16 %79, ptr %12, align 2, !tbaa !12
  br label %30, !llvm.loop !26

80:                                               ; preds = %37
  %81 = load ptr, ptr %8, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.caryll_Buffer, ptr %81, i32 0, i32 0
  %83 = load i64, ptr %82, align 8, !tbaa !14
  %84 = trunc i64 %83 to i32
  %85 = load ptr, ptr %11, align 8, !tbaa !5
  %86 = load ptr, ptr %5, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.table_glyf, ptr %86, i32 0, i32 0
  %88 = load i64, ptr %87, align 8, !tbaa !9
  %89 = getelementptr inbounds i32, ptr %85, i64 %88
  store i32 %84, ptr %89, align 4, !tbaa !16
  %90 = load ptr, ptr %8, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.caryll_Buffer, ptr %90, i32 0, i32 0
  %92 = load i64, ptr %91, align 8, !tbaa !14
  %93 = icmp uge i64 %92, 131072
  br i1 %93, label %94, label %97

94:                                               ; preds = %80
  %95 = load ptr, ptr %6, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.table_head, ptr %95, i32 0, i32 15
  store i16 1, ptr %96, align 2, !tbaa !28
  br label %100

97:                                               ; preds = %80
  %98 = load ptr, ptr %6, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.table_head, ptr %98, i32 0, i32 15
  store i16 0, ptr %99, align 2, !tbaa !28
  br label %100

100:                                              ; preds = %97, %94
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 0, ptr %14, align 4, !tbaa !16
  br label %101

101:                                              ; preds = %131, %100
  %102 = load i32, ptr %14, align 4, !tbaa !16
  %103 = zext i32 %102 to i64
  %104 = load ptr, ptr %5, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.table_glyf, ptr %104, i32 0, i32 0
  %106 = load i64, ptr %105, align 8, !tbaa !9
  %107 = icmp ule i64 %103, %106
  br i1 %107, label %109, label %108

108:                                              ; preds = %101
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %134

109:                                              ; preds = %101
  %110 = load ptr, ptr %6, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.table_head, ptr %110, i32 0, i32 15
  %112 = load i16, ptr %111, align 2, !tbaa !28
  %113 = icmp ne i16 %112, 0
  br i1 %113, label %114, label %121

114:                                              ; preds = %109
  %115 = load ptr, ptr %9, align 8, !tbaa !5
  %116 = load ptr, ptr %11, align 8, !tbaa !5
  %117 = load i32, ptr %14, align 4, !tbaa !16
  %118 = zext i32 %117 to i64
  %119 = getelementptr inbounds i32, ptr %116, i64 %118
  %120 = load i32, ptr %119, align 4, !tbaa !16
  call void @bufwrite32b(ptr noundef %115, i32 noundef %120)
  br label %130

121:                                              ; preds = %109
  %122 = load ptr, ptr %9, align 8, !tbaa !5
  %123 = load ptr, ptr %11, align 8, !tbaa !5
  %124 = load i32, ptr %14, align 4, !tbaa !16
  %125 = zext i32 %124 to i64
  %126 = getelementptr inbounds i32, ptr %123, i64 %125
  %127 = load i32, ptr %126, align 4, !tbaa !16
  %128 = lshr i32 %127, 1
  %129 = trunc i32 %128 to i16
  call void @bufwrite16b(ptr noundef %122, i16 noundef zeroext %129)
  br label %130

130:                                              ; preds = %121, %114
  br label %131

131:                                              ; preds = %130
  %132 = load i32, ptr %14, align 4, !tbaa !16
  %133 = add i32 %132, 1
  store i32 %133, ptr %14, align 4, !tbaa !16
  br label %101, !llvm.loop !30

134:                                              ; preds = %108
  %135 = load ptr, ptr %10, align 8, !tbaa !5
  call void @buffree(ptr noundef %135)
  %136 = load ptr, ptr %11, align 8, !tbaa !5
  call void @free(ptr noundef %136) #5
  store ptr null, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %137

137:                                              ; preds = %134, %19, %3
  %138 = getelementptr inbounds %struct.table_GlyfAndLocaBuffers, ptr %4, i32 0, i32 0
  %139 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %139, ptr %138, align 8, !tbaa !31
  %140 = getelementptr inbounds %struct.table_GlyfAndLocaBuffers, ptr %4, i32 0, i32 1
  %141 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %141, ptr %140, align 8, !tbaa !33
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  %142 = load { ptr, ptr }, ptr %4, align 8
  ret { ptr, ptr } %142
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @__caryll_allocate_clean(i64 noundef, i64 noundef) #3

declare void @bufclear(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare hidden void @glyf_build_simple(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare hidden void @glyf_build_composite(ptr noundef, ptr noundef) #2

declare void @buflongalign(ptr noundef) #1

declare void @bufwrite_buf(ptr noundef, ptr noundef) #1

declare void @bufwrite32b(ptr noundef, i32 noundef) #1

declare void @bufwrite16b(ptr noundef, i16 noundef zeroext) #1

; Function Attrs: nounwind
declare void @free(ptr noundef) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { 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 = { inlinehint 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 #4 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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, !11, i64 0}
!10 = !{!"", !11, i64 0, !11, i64 8, !6, i64 16}
!11 = !{!"long", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"short", !7, i64 0}
!14 = !{!15, !11, i64 0}
!15 = !{!"caryll_Buffer", !11, i64 0, !11, i64 8, !11, i64 16, !6, i64 24}
!16 = !{!17, !17, i64 0}
!17 = !{!"int", !7, i64 0}
!18 = !{!10, !6, i64 16}
!19 = !{!20, !11, i64 136}
!20 = !{!"", !6, i64 0, !21, i64 8, !21, i64 40, !21, i64 72, !21, i64 104, !10, i64 136, !10, i64 160, !10, i64 184, !10, i64 208, !10, i64 232, !10, i64 256, !13, i64 280, !6, i64 288, !7, i64 296, !23, i64 304, !13, i64 320, !24, i64 328}
!21 = !{!"", !22, i64 0, !10, i64 8}
!22 = !{!"double", !7, i64 0}
!23 = !{!"otfcc_Handle", !17, i64 0, !13, i64 4, !6, i64 8}
!24 = !{!"", !22, i64 0, !22, i64 8, !22, i64 16, !22, i64 24, !13, i64 32, !13, i64 34, !13, i64 36, !13, i64 38, !13, i64 40}
!25 = !{!20, !11, i64 160}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = !{!29, !13, i64 54}
!29 = !{!"", !17, i64 0, !17, i64 4, !17, i64 8, !17, i64 12, !13, i64 16, !13, i64 18, !11, i64 24, !11, i64 32, !13, i64 40, !13, i64 42, !13, i64 44, !13, i64 46, !13, i64 48, !13, i64 50, !13, i64 52, !13, i64 54, !13, i64 56}
!30 = distinct !{!30, !27}
!31 = !{!32, !6, i64 0}
!32 = !{!"", !6, i64 0, !6, i64 8}
!33 = !{!32, !6, i64 8}


; 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"

declare ptr @bufnew(...) local_unnamed_addr #0

declare void @buffree(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local { ptr, ptr } @otfcc_buildGlyf(ptr noundef readonly %0, ptr noundef %1, ptr nocapture noundef readnone %2) local_unnamed_addr #1 {
  %4 = tail call ptr (...) @bufnew() #4
  %5 = tail call ptr (...) @bufnew() #4
  %6 = icmp ne ptr %0, null
  %7 = icmp ne ptr %1, null
  %or.cond = and i1 %6, %7
  br i1 %or.cond, label %8, label %55

8:                                                ; preds = %3
  %9 = tail call ptr (...) @bufnew() #4
  %10 = load i64, ptr %0, align 8, !tbaa !5
  %11 = shl i64 %10, 2
  %12 = add i64 %11, 4
  %13 = tail call ptr @__caryll_allocate_clean(i64 noundef %12, i64 noundef 189)
  %14 = load i64, ptr %0, align 8, !tbaa !5
  %.not52 = icmp eq i64 %14, 0
  br i1 %.not52, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %8
  %15 = getelementptr inbounds i8, ptr %0, i64 16
  br label %21

._crit_edge:                                      ; preds = %36, %8
  %.lcssa = phi i64 [ 0, %8 ], [ %39, %36 ]
  %16 = load i64, ptr %4, align 8, !tbaa !11
  %17 = trunc i64 %16 to i32
  %18 = getelementptr inbounds i32, ptr %13, i64 %.lcssa
  store i32 %17, ptr %18, align 4, !tbaa !13
  %19 = icmp ugt i64 %16, 131071
  %spec.select = zext i1 %19 to i16
  %20 = getelementptr inbounds i8, ptr %1, i64 54
  store i16 %spec.select, ptr %20, align 2
  br label %42

21:                                               ; preds = %.lr.ph, %36
  %22 = phi i64 [ 0, %.lr.ph ], [ %38, %36 ]
  %.04150 = phi i16 [ 0, %.lr.ph ], [ %37, %36 ]
  %23 = load i64, ptr %4, align 8, !tbaa !11
  %24 = trunc i64 %23 to i32
  %25 = getelementptr inbounds i32, ptr %13, i64 %22
  store i32 %24, ptr %25, align 4, !tbaa !13
  %26 = load ptr, ptr %15, align 8, !tbaa !15
  %27 = getelementptr inbounds ptr, ptr %26, i64 %22
  %28 = load ptr, ptr %27, align 8, !tbaa !16
  tail call void @bufclear(ptr noundef %9) #4
  %29 = getelementptr inbounds i8, ptr %28, i64 136
  %30 = load i64, ptr %29, align 8, !tbaa !17
  %.not48 = icmp eq i64 %30, 0
  br i1 %.not48, label %32, label %31

31:                                               ; preds = %21
  tail call void @glyf_build_simple(ptr noundef nonnull %28, ptr noundef %9)
  br label %36

32:                                               ; preds = %21
  %33 = getelementptr inbounds i8, ptr %28, i64 160
  %34 = load i64, ptr %33, align 8, !tbaa !24
  %.not49 = icmp eq i64 %34, 0
  br i1 %.not49, label %36, label %35

35:                                               ; preds = %32
  tail call void @glyf_build_composite(ptr noundef nonnull %28, ptr noundef %9)
  br label %36

36:                                               ; preds = %32, %35, %31
  tail call void @buflongalign(ptr noundef %9) #4
  tail call void @bufwrite_buf(ptr noundef nonnull %4, ptr noundef %9) #4
  %37 = add i16 %.04150, 1
  %38 = zext i16 %37 to i64
  %39 = load i64, ptr %0, align 8, !tbaa !5
  %40 = icmp ugt i64 %39, %38
  br i1 %40, label %21, label %._crit_edge, !llvm.loop !25

41:                                               ; preds = %51
  tail call void @buffree(ptr noundef %9) #4
  tail call void @free(ptr noundef nonnull %13) #4
  br label %55

thread-pre-split:                                 ; preds = %51
  %.pr = load i16, ptr %20, align 2, !tbaa !27
  br label %42

42:                                               ; preds = %thread-pre-split, %._crit_edge
  %43 = phi i16 [ %.pr, %thread-pre-split ], [ %spec.select, %._crit_edge ]
  %44 = phi i64 [ %53, %thread-pre-split ], [ 0, %._crit_edge ]
  %.051 = phi i32 [ %52, %thread-pre-split ], [ 0, %._crit_edge ]
  %.not47 = icmp eq i16 %43, 0
  %45 = getelementptr inbounds i32, ptr %13, i64 %44
  %46 = load i32, ptr %45, align 4, !tbaa !13
  br i1 %.not47, label %48, label %47

47:                                               ; preds = %42
  tail call void @bufwrite32b(ptr noundef %5, i32 noundef %46) #4
  br label %51

48:                                               ; preds = %42
  %49 = lshr i32 %46, 1
  %50 = trunc i32 %49 to i16
  tail call void @bufwrite16b(ptr noundef %5, i16 noundef zeroext %50) #4
  br label %51

51:                                               ; preds = %47, %48
  %52 = add i32 %.051, 1
  %53 = zext i32 %52 to i64
  %54 = load i64, ptr %0, align 8, !tbaa !5
  %.not = icmp ult i64 %54, %53
  br i1 %.not, label %41, label %thread-pre-split, !llvm.loop !29

55:                                               ; preds = %41, %3
  %.fca.0.insert = insertvalue { ptr, ptr } poison, ptr %4, 0
  %.fca.1.insert = insertvalue { ptr, ptr } %.fca.0.insert, ptr %5, 1
  ret { ptr, ptr } %.fca.1.insert
}

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

declare void @bufclear(ptr noundef) local_unnamed_addr #0

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

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

declare void @buflongalign(ptr noundef) local_unnamed_addr #0

declare void @bufwrite_buf(ptr noundef, ptr noundef) local_unnamed_addr #0

declare void @bufwrite32b(ptr noundef, i32 noundef) local_unnamed_addr #0

declare void @bufwrite16b(ptr noundef, i16 noundef zeroext) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #3

attributes #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 = { 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 = { inlinehint 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 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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, !7, i64 0}
!6 = !{!"", !7, i64 0, !7, i64 8, !10, i64 16}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!12, !7, i64 0}
!12 = !{!"caryll_Buffer", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !8, i64 0}
!15 = !{!6, !10, i64 16}
!16 = !{!10, !10, i64 0}
!17 = !{!18, !7, i64 136}
!18 = !{!"", !10, i64 0, !19, i64 8, !19, i64 40, !19, i64 72, !19, i64 104, !6, i64 136, !6, i64 160, !6, i64 184, !6, i64 208, !6, i64 232, !6, i64 256, !21, i64 280, !10, i64 288, !8, i64 296, !22, i64 304, !21, i64 320, !23, i64 328}
!19 = !{!"", !20, i64 0, !6, i64 8}
!20 = !{!"double", !8, i64 0}
!21 = !{!"short", !8, i64 0}
!22 = !{!"otfcc_Handle", !14, i64 0, !21, i64 4, !10, i64 8}
!23 = !{!"", !20, i64 0, !20, i64 8, !20, i64 16, !20, i64 24, !21, i64 32, !21, i64 34, !21, i64 36, !21, i64 38, !21, i64 40}
!24 = !{!18, !7, i64 160}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!28, !21, i64 54}
!28 = !{!"", !14, i64 0, !14, i64 4, !14, i64 8, !14, i64 12, !21, i64 16, !21, i64 18, !7, i64 24, !7, i64 32, !21, i64 40, !21, i64 42, !21, i64 44, !21, i64 46, !21, i64 48, !21, i64 50, !21, i64 52, !21, i64 54, !21, i64 56}
!29 = distinct !{!29, !26}


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