; LLVM IR from caryll/otfcc :: lib/otf-reader (unconsolidate)

; 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.GlyphHash = type { [20 x i8] }
%struct.SHA1_CTX = type { [64 x i8], i32, i64, [5 x i32], [4 x i32] }
%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.glyf_Contour = type { i64, i64, ptr }
%struct.glyf_Point = type { %struct.VQ, %struct.VQ, i8 }
%struct.glyf_ComponentReference = type { %struct.VQ, %struct.VQ, i8, i8, %struct.otfcc_Handle, double, double, double, double, i32, i16, i16 }
%struct.table_glyf = type { i64, i64, ptr }
%struct.glyf_PostscriptStemDef = type { double, double, i16 }
%struct.glyf_PostscriptHintMask = type { i16, i16, [256 x i8], [256 x i8] }
%struct.caryll_Buffer = type { i64, i64, i64, ptr }

; Function Attrs: nounwind uwtable
define dso_local void @nameGlyphByHash(ptr dead_on_unwind noalias writable sret(%struct.GlyphHash) align 1 %0, ptr noundef %1, ptr noundef %2) #0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i16, align 2
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i16, align 2
  %11 = alloca i16, align 2
  %12 = alloca ptr, align 8
  %13 = alloca %struct.GlyphHash, align 1
  %14 = alloca i16, align 2
  %15 = alloca i16, align 2
  %16 = alloca i16, align 2
  %17 = alloca i16, align 2
  %18 = alloca i16, align 2
  %19 = alloca i16, align 2
  %20 = alloca i16, align 2
  %21 = alloca i16, align 2
  %22 = alloca %struct.SHA1_CTX, align 8
  %23 = alloca [20 x i8], align 16
  %24 = alloca i16, align 2
  store ptr %1, ptr %4, align 8, !tbaa !5
  store ptr %2, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  %25 = call ptr (...) @bufnew()
  store ptr %25, ptr %6, align 8, !tbaa !5
  %26 = load ptr, ptr %6, align 8, !tbaa !5
  call void @bufwrite8(ptr noundef %26, i8 noundef zeroext 72)
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.glyf_Glyph, ptr %28, i32 0, i32 2
  call void @hashVQ(ptr noundef %27, ptr noundef byval(%struct.VQ) align 8 %29)
  %30 = load ptr, ptr %6, align 8, !tbaa !5
  call void @bufwrite8(ptr noundef %30, i8 noundef zeroext 104)
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.glyf_Glyph, ptr %32, i32 0, i32 1
  call void @hashVQ(ptr noundef %31, ptr noundef byval(%struct.VQ) align 8 %33)
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  call void @bufwrite8(ptr noundef %34, i8 noundef zeroext 86)
  %35 = load ptr, ptr %6, align 8, !tbaa !5
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.glyf_Glyph, ptr %36, i32 0, i32 4
  call void @hashVQ(ptr noundef %35, ptr noundef byval(%struct.VQ) align 8 %37)
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  call void @bufwrite8(ptr noundef %38, i8 noundef zeroext 118)
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  %40 = load ptr, ptr %4, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.glyf_Glyph, ptr %40, i32 0, i32 3
  call void @hashVQ(ptr noundef %39, ptr noundef byval(%struct.VQ) align 8 %41)
  %42 = load ptr, ptr %6, align 8, !tbaa !5
  call void @bufwrite8(ptr noundef %42, i8 noundef zeroext 67)
  %43 = load ptr, ptr %6, align 8, !tbaa !5
  call void @bufwrite8(ptr noundef %43, i8 noundef zeroext 40)
  call void @llvm.lifetime.start.p0(i64 2, ptr %7) #3
  store i16 0, ptr %7, align 2, !tbaa !9
  br label %44

44:                                               ; preds = %106, %3
  %45 = load i16, ptr %7, align 2, !tbaa !9
  %46 = zext i16 %45 to i64
  %47 = load ptr, ptr %4, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.glyf_Glyph, ptr %47, i32 0, i32 5
  %49 = getelementptr inbounds %struct.glyf_ContourList, ptr %48, i32 0, i32 0
  %50 = load i64, ptr %49, align 8, !tbaa !11
  %51 = icmp ult i64 %46, %50
  br i1 %51, label %53, label %52

52:                                               ; preds = %44
  store i32 2, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 2, ptr %7) #3
  br label %109

53:                                               ; preds = %44
  %54 = load ptr, ptr %6, align 8, !tbaa !5
  call void @bufwrite8(ptr noundef %54, i8 noundef zeroext 40)
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  %55 = load ptr, ptr %4, 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 2
  %58 = load ptr, ptr %57, align 8, !tbaa !20
  %59 = load i16, ptr %7, align 2, !tbaa !9
  %60 = zext i16 %59 to i64
  %61 = getelementptr inbounds %struct.glyf_Contour, ptr %58, i64 %60
  store ptr %61, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 2, ptr %10) #3
  store i16 0, ptr %10, align 2, !tbaa !9
  br label %62

62:                                               ; preds = %101, %53
  %63 = load i16, ptr %10, align 2, !tbaa !9
  %64 = zext i16 %63 to i64
  %65 = load ptr, ptr %9, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.glyf_Contour, ptr %65, i32 0, i32 0
  %67 = load i64, ptr %66, align 8, !tbaa !21
  %68 = icmp ult i64 %64, %67
  br i1 %68, label %70, label %69

69:                                               ; preds = %62
  store i32 5, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 2, ptr %10) #3
  br label %104

70:                                               ; preds = %62
  %71 = load ptr, ptr %6, align 8, !tbaa !5
  %72 = load ptr, ptr %9, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.glyf_Contour, ptr %72, i32 0, i32 2
  %74 = load ptr, ptr %73, align 8, !tbaa !22
  %75 = load i16, ptr %10, align 2, !tbaa !9
  %76 = zext i16 %75 to i64
  %77 = getelementptr inbounds %struct.glyf_Point, ptr %74, i64 %76
  %78 = getelementptr inbounds %struct.glyf_Point, ptr %77, i32 0, i32 0
  call void @hashVQ(ptr noundef %71, ptr noundef byval(%struct.VQ) align 8 %78)
  %79 = load ptr, ptr %6, align 8, !tbaa !5
  %80 = load ptr, ptr %9, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.glyf_Contour, ptr %80, i32 0, i32 2
  %82 = load ptr, ptr %81, align 8, !tbaa !22
  %83 = load i16, ptr %10, align 2, !tbaa !9
  %84 = zext i16 %83 to i64
  %85 = getelementptr inbounds %struct.glyf_Point, ptr %82, i64 %84
  %86 = getelementptr inbounds %struct.glyf_Point, ptr %85, i32 0, i32 1
  call void @hashVQ(ptr noundef %79, ptr noundef byval(%struct.VQ) align 8 %86)
  %87 = load ptr, ptr %6, align 8, !tbaa !5
  %88 = load ptr, ptr %9, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.glyf_Contour, ptr %88, i32 0, i32 2
  %90 = load ptr, ptr %89, align 8, !tbaa !22
  %91 = load i16, ptr %10, align 2, !tbaa !9
  %92 = zext i16 %91 to i64
  %93 = getelementptr inbounds %struct.glyf_Point, ptr %90, i64 %92
  %94 = getelementptr inbounds %struct.glyf_Point, ptr %93, i32 0, i32 2
  %95 = load i8, ptr %94, align 8, !tbaa !23
  %96 = sext i8 %95 to i32
  %97 = icmp ne i32 %96, 0
  %98 = zext i1 %97 to i64
  %99 = select i1 %97, i32 1, i32 0
  %100 = trunc i32 %99 to i8
  call void @bufwrite8(ptr noundef %87, i8 noundef zeroext %100)
  br label %101

101:                                              ; preds = %70
  %102 = load i16, ptr %10, align 2, !tbaa !9
  %103 = add i16 %102, 1
  store i16 %103, ptr %10, align 2, !tbaa !9
  br label %62, !llvm.loop !25

104:                                              ; preds = %69
  %105 = load ptr, ptr %6, align 8, !tbaa !5
  call void @bufwrite8(ptr noundef %105, i8 noundef zeroext 41)
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  br label %106

106:                                              ; preds = %104
  %107 = load i16, ptr %7, align 2, !tbaa !9
  %108 = add i16 %107, 1
  store i16 %108, ptr %7, align 2, !tbaa !9
  br label %44, !llvm.loop !27

109:                                              ; preds = %52
  %110 = load ptr, ptr %6, align 8, !tbaa !5
  call void @bufwrite8(ptr noundef %110, i8 noundef zeroext 41)
  %111 = load ptr, ptr %6, align 8, !tbaa !5
  call void @bufwrite8(ptr noundef %111, i8 noundef zeroext 82)
  %112 = load ptr, ptr %6, align 8, !tbaa !5
  call void @bufwrite8(ptr noundef %112, i8 noundef zeroext 40)
  call void @llvm.lifetime.start.p0(i64 2, ptr %11) #3
  store i16 0, ptr %11, align 2, !tbaa !9
  br label %113

113:                                              ; preds = %174, %109
  %114 = load i16, ptr %11, align 2, !tbaa !9
  %115 = zext i16 %114 to i64
  %116 = load ptr, ptr %4, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.glyf_Glyph, ptr %116, i32 0, i32 6
  %118 = getelementptr inbounds %struct.glyf_ReferenceList, ptr %117, i32 0, i32 0
  %119 = load i64, ptr %118, align 8, !tbaa !28
  %120 = icmp ult i64 %115, %119
  br i1 %120, label %122, label %121

121:                                              ; preds = %113
  store i32 8, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 2, ptr %11) #3
  br label %177

122:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  %123 = load ptr, ptr %4, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.glyf_Glyph, ptr %123, i32 0, i32 6
  %125 = getelementptr inbounds %struct.glyf_ReferenceList, ptr %124, i32 0, i32 2
  %126 = load ptr, ptr %125, align 8, !tbaa !29
  %127 = load i16, ptr %11, align 2, !tbaa !9
  %128 = zext i16 %127 to i64
  %129 = getelementptr inbounds %struct.glyf_ComponentReference, ptr %126, i64 %128
  store ptr %129, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 20, ptr %13) #3
  %130 = load ptr, ptr %5, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.table_glyf, ptr %130, i32 0, i32 2
  %132 = load ptr, ptr %131, align 8, !tbaa !22
  %133 = load ptr, ptr %12, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.glyf_ComponentReference, ptr %133, i32 0, i32 4
  %135 = getelementptr inbounds %struct.otfcc_Handle, ptr %134, i32 0, i32 1
  %136 = load i16, ptr %135, align 4, !tbaa !30
  %137 = zext i16 %136 to i64
  %138 = getelementptr inbounds ptr, ptr %132, i64 %137
  %139 = load ptr, ptr %138, align 8, !tbaa !5
  %140 = load ptr, ptr %5, align 8, !tbaa !5
  call void @nameGlyphByHash(ptr dead_on_unwind writable sret(%struct.GlyphHash) align 1 %13, ptr noundef %139, ptr noundef %140)
  %141 = load ptr, ptr %6, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.GlyphHash, ptr %13, i32 0, i32 0
  %143 = getelementptr inbounds [20 x i8], ptr %142, i64 0, i64 0
  call void @bufwrite_bytes(ptr noundef %141, i64 noundef 20, ptr noundef %143)
  %144 = load ptr, ptr %6, align 8, !tbaa !5
  %145 = load ptr, ptr %12, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.glyf_ComponentReference, ptr %145, i32 0, i32 0
  call void @hashVQ(ptr noundef %144, ptr noundef byval(%struct.VQ) align 8 %146)
  %147 = load ptr, ptr %6, align 8, !tbaa !5
  %148 = load ptr, ptr %12, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.glyf_ComponentReference, ptr %148, i32 0, i32 1
  call void @hashVQ(ptr noundef %147, ptr noundef byval(%struct.VQ) align 8 %149)
  %150 = load ptr, ptr %6, align 8, !tbaa !5
  %151 = load ptr, ptr %12, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.glyf_ComponentReference, ptr %151, i32 0, i32 5
  %153 = load double, ptr %152, align 8, !tbaa !33
  %154 = call signext i16 @otfcc_to_f2dot14(double noundef %153)
  %155 = sext i16 %154 to i32
  call void @bufwrite32b(ptr noundef %150, i32 noundef %155)
  %156 = load ptr, ptr %6, align 8, !tbaa !5
  %157 = load ptr, ptr %12, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.glyf_ComponentReference, ptr %157, i32 0, i32 6
  %159 = load double, ptr %158, align 8, !tbaa !34
  %160 = call signext i16 @otfcc_to_f2dot14(double noundef %159)
  %161 = sext i16 %160 to i32
  call void @bufwrite32b(ptr noundef %156, i32 noundef %161)
  %162 = load ptr, ptr %6, align 8, !tbaa !5
  %163 = load ptr, ptr %12, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.glyf_ComponentReference, ptr %163, i32 0, i32 7
  %165 = load double, ptr %164, align 8, !tbaa !35
  %166 = call signext i16 @otfcc_to_f2dot14(double noundef %165)
  %167 = sext i16 %166 to i32
  call void @bufwrite32b(ptr noundef %162, i32 noundef %167)
  %168 = load ptr, ptr %6, align 8, !tbaa !5
  %169 = load ptr, ptr %12, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.glyf_ComponentReference, ptr %169, i32 0, i32 8
  %171 = load double, ptr %170, align 8, !tbaa !36
  %172 = call signext i16 @otfcc_to_f2dot14(double noundef %171)
  %173 = sext i16 %172 to i32
  call void @bufwrite32b(ptr noundef %168, i32 noundef %173)
  call void @llvm.lifetime.end.p0(i64 20, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  br label %174

174:                                              ; preds = %122
  %175 = load i16, ptr %11, align 2, !tbaa !9
  %176 = add i16 %175, 1
  store i16 %176, ptr %11, align 2, !tbaa !9
  br label %113, !llvm.loop !37

177:                                              ; preds = %121
  %178 = load ptr, ptr %6, align 8, !tbaa !5
  call void @bufwrite8(ptr noundef %178, i8 noundef zeroext 41)
  %179 = load ptr, ptr %6, align 8, !tbaa !5
  call void @bufwrite8(ptr noundef %179, i8 noundef zeroext 115)
  %180 = load ptr, ptr %6, align 8, !tbaa !5
  call void @bufwrite8(ptr noundef %180, i8 noundef zeroext 72)
  %181 = load ptr, ptr %6, align 8, !tbaa !5
  call void @bufwrite8(ptr noundef %181, i8 noundef zeroext 40)
  call void @llvm.lifetime.start.p0(i64 2, ptr %14) #3
  store i16 0, ptr %14, align 2, !tbaa !9
  br label %182

182:                                              ; preds = %214, %177
  %183 = load i16, ptr %14, align 2, !tbaa !9
  %184 = zext i16 %183 to i64
  %185 = load ptr, ptr %4, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.glyf_Glyph, ptr %185, i32 0, i32 7
  %187 = getelementptr inbounds %struct.glyf_StemDefList, ptr %186, i32 0, i32 0
  %188 = load i64, ptr %187, align 8, !tbaa !38
  %189 = icmp ult i64 %184, %188
  br i1 %189, label %191, label %190

190:                                              ; preds = %182
  store i32 11, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 2, ptr %14) #3
  br label %217

191:                                              ; preds = %182
  %192 = load ptr, ptr %6, align 8, !tbaa !5
  %193 = load ptr, ptr %4, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.glyf_Glyph, ptr %193, i32 0, i32 7
  %195 = getelementptr inbounds %struct.glyf_StemDefList, ptr %194, i32 0, i32 2
  %196 = load ptr, ptr %195, align 8, !tbaa !39
  %197 = load i16, ptr %14, align 2, !tbaa !9
  %198 = zext i16 %197 to i64
  %199 = getelementptr inbounds %struct.glyf_PostscriptStemDef, ptr %196, i64 %198
  %200 = getelementptr inbounds %struct.glyf_PostscriptStemDef, ptr %199, i32 0, i32 0
  %201 = load double, ptr %200, align 8, !tbaa !40
  %202 = call i32 @otfcc_to_fixed(double noundef %201)
  call void @bufwrite32b(ptr noundef %192, i32 noundef %202)
  %203 = load ptr, ptr %6, align 8, !tbaa !5
  %204 = load ptr, ptr %4, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.glyf_Glyph, ptr %204, i32 0, i32 7
  %206 = getelementptr inbounds %struct.glyf_StemDefList, ptr %205, i32 0, i32 2
  %207 = load ptr, ptr %206, align 8, !tbaa !39
  %208 = load i16, ptr %14, align 2, !tbaa !9
  %209 = zext i16 %208 to i64
  %210 = getelementptr inbounds %struct.glyf_PostscriptStemDef, ptr %207, i64 %209
  %211 = getelementptr inbounds %struct.glyf_PostscriptStemDef, ptr %210, i32 0, i32 1
  %212 = load double, ptr %211, align 8, !tbaa !42
  %213 = call i32 @otfcc_to_fixed(double noundef %212)
  call void @bufwrite32b(ptr noundef %203, i32 noundef %213)
  br label %214

214:                                              ; preds = %191
  %215 = load i16, ptr %14, align 2, !tbaa !9
  %216 = add i16 %215, 1
  store i16 %216, ptr %14, align 2, !tbaa !9
  br label %182, !llvm.loop !43

217:                                              ; preds = %190
  %218 = load ptr, ptr %6, align 8, !tbaa !5
  call void @bufwrite8(ptr noundef %218, i8 noundef zeroext 41)
  %219 = load ptr, ptr %6, align 8, !tbaa !5
  call void @bufwrite8(ptr noundef %219, i8 noundef zeroext 115)
  %220 = load ptr, ptr %6, align 8, !tbaa !5
  call void @bufwrite8(ptr noundef %220, i8 noundef zeroext 86)
  %221 = load ptr, ptr %6, align 8, !tbaa !5
  call void @bufwrite8(ptr noundef %221, i8 noundef zeroext 40)
  call void @llvm.lifetime.start.p0(i64 2, ptr %15) #3
  store i16 0, ptr %15, align 2, !tbaa !9
  br label %222

222:                                              ; preds = %254, %217
  %223 = load i16, ptr %15, align 2, !tbaa !9
  %224 = zext i16 %223 to i64
  %225 = load ptr, ptr %4, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct.glyf_Glyph, ptr %225, i32 0, i32 8
  %227 = getelementptr inbounds %struct.glyf_StemDefList, ptr %226, i32 0, i32 0
  %228 = load i64, ptr %227, align 8, !tbaa !44
  %229 = icmp ult i64 %224, %228
  br i1 %229, label %231, label %230

230:                                              ; preds = %222
  store i32 14, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 2, ptr %15) #3
  br label %257

231:                                              ; preds = %222
  %232 = load ptr, ptr %6, align 8, !tbaa !5
  %233 = load ptr, ptr %4, align 8, !tbaa !5
  %234 = getelementptr inbounds %struct.glyf_Glyph, ptr %233, i32 0, i32 8
  %235 = getelementptr inbounds %struct.glyf_StemDefList, ptr %234, i32 0, i32 2
  %236 = load ptr, ptr %235, align 8, !tbaa !45
  %237 = load i16, ptr %15, align 2, !tbaa !9
  %238 = zext i16 %237 to i64
  %239 = getelementptr inbounds %struct.glyf_PostscriptStemDef, ptr %236, i64 %238
  %240 = getelementptr inbounds %struct.glyf_PostscriptStemDef, ptr %239, i32 0, i32 0
  %241 = load double, ptr %240, align 8, !tbaa !40
  %242 = call i32 @otfcc_to_fixed(double noundef %241)
  call void @bufwrite32b(ptr noundef %232, i32 noundef %242)
  %243 = load ptr, ptr %6, align 8, !tbaa !5
  %244 = load ptr, ptr %4, align 8, !tbaa !5
  %245 = getelementptr inbounds %struct.glyf_Glyph, ptr %244, i32 0, i32 8
  %246 = getelementptr inbounds %struct.glyf_StemDefList, ptr %245, i32 0, i32 2
  %247 = load ptr, ptr %246, align 8, !tbaa !45
  %248 = load i16, ptr %15, align 2, !tbaa !9
  %249 = zext i16 %248 to i64
  %250 = getelementptr inbounds %struct.glyf_PostscriptStemDef, ptr %247, i64 %249
  %251 = getelementptr inbounds %struct.glyf_PostscriptStemDef, ptr %250, i32 0, i32 1
  %252 = load double, ptr %251, align 8, !tbaa !42
  %253 = call i32 @otfcc_to_fixed(double noundef %252)
  call void @bufwrite32b(ptr noundef %243, i32 noundef %253)
  br label %254

254:                                              ; preds = %231
  %255 = load i16, ptr %15, align 2, !tbaa !9
  %256 = add i16 %255, 1
  store i16 %256, ptr %15, align 2, !tbaa !9
  br label %222, !llvm.loop !46

257:                                              ; preds = %230
  %258 = load ptr, ptr %6, align 8, !tbaa !5
  call void @bufwrite8(ptr noundef %258, i8 noundef zeroext 41)
  %259 = load ptr, ptr %6, align 8, !tbaa !5
  call void @bufwrite8(ptr noundef %259, i8 noundef zeroext 109)
  %260 = load ptr, ptr %6, align 8, !tbaa !5
  call void @bufwrite8(ptr noundef %260, i8 noundef zeroext 72)
  %261 = load ptr, ptr %6, align 8, !tbaa !5
  call void @bufwrite8(ptr noundef %261, i8 noundef zeroext 40)
  call void @llvm.lifetime.start.p0(i64 2, ptr %16) #3
  store i16 0, ptr %16, align 2, !tbaa !9
  br label %262

262:                                              ; preds = %350, %257
  %263 = load i16, ptr %16, align 2, !tbaa !9
  %264 = zext i16 %263 to i64
  %265 = load ptr, ptr %4, align 8, !tbaa !5
  %266 = getelementptr inbounds %struct.glyf_Glyph, ptr %265, i32 0, i32 9
  %267 = getelementptr inbounds %struct.glyf_MaskList, ptr %266, i32 0, i32 0
  %268 = load i64, ptr %267, align 8, !tbaa !47
  %269 = icmp ult i64 %264, %268
  br i1 %269, label %271, label %270

270:                                              ; preds = %262
  store i32 17, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 2, ptr %16) #3
  br label %353

271:                                              ; preds = %262
  %272 = load ptr, ptr %6, align 8, !tbaa !5
  %273 = load ptr, ptr %4, align 8, !tbaa !5
  %274 = getelementptr inbounds %struct.glyf_Glyph, ptr %273, i32 0, i32 9
  %275 = getelementptr inbounds %struct.glyf_MaskList, ptr %274, i32 0, i32 2
  %276 = load ptr, ptr %275, align 8, !tbaa !48
  %277 = load i16, ptr %16, align 2, !tbaa !9
  %278 = zext i16 %277 to i64
  %279 = getelementptr inbounds %struct.glyf_PostscriptHintMask, ptr %276, i64 %278
  %280 = getelementptr inbounds %struct.glyf_PostscriptHintMask, ptr %279, i32 0, i32 1
  %281 = load i16, ptr %280, align 2, !tbaa !49
  call void @bufwrite16b(ptr noundef %272, i16 noundef zeroext %281)
  %282 = load ptr, ptr %6, align 8, !tbaa !5
  %283 = load ptr, ptr %4, align 8, !tbaa !5
  %284 = getelementptr inbounds %struct.glyf_Glyph, ptr %283, i32 0, i32 9
  %285 = getelementptr inbounds %struct.glyf_MaskList, ptr %284, i32 0, i32 2
  %286 = load ptr, ptr %285, align 8, !tbaa !48
  %287 = load i16, ptr %16, align 2, !tbaa !9
  %288 = zext i16 %287 to i64
  %289 = getelementptr inbounds %struct.glyf_PostscriptHintMask, ptr %286, i64 %288
  %290 = getelementptr inbounds %struct.glyf_PostscriptHintMask, ptr %289, i32 0, i32 0
  %291 = load i16, ptr %290, align 2, !tbaa !51
  call void @bufwrite16b(ptr noundef %282, i16 noundef zeroext %291)
  call void @llvm.lifetime.start.p0(i64 2, ptr %17) #3
  store i16 0, ptr %17, align 2, !tbaa !9
  br label %292

292:                                              ; preds = %317, %271
  %293 = load i16, ptr %17, align 2, !tbaa !9
  %294 = zext i16 %293 to i64
  %295 = load ptr, ptr %4, align 8, !tbaa !5
  %296 = getelementptr inbounds %struct.glyf_Glyph, ptr %295, i32 0, i32 7
  %297 = getelementptr inbounds %struct.glyf_StemDefList, ptr %296, i32 0, i32 0
  %298 = load i64, ptr %297, align 8, !tbaa !38
  %299 = icmp ult i64 %294, %298
  br i1 %299, label %301, label %300

300:                                              ; preds = %292
  store i32 20, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 2, ptr %17) #3
  br label %320

301:                                              ; preds = %292
  %302 = load ptr, ptr %6, align 8, !tbaa !5
  %303 = load ptr, ptr %4, align 8, !tbaa !5
  %304 = getelementptr inbounds %struct.glyf_Glyph, ptr %303, i32 0, i32 9
  %305 = getelementptr inbounds %struct.glyf_MaskList, ptr %304, i32 0, i32 2
  %306 = load ptr, ptr %305, align 8, !tbaa !48
  %307 = load i16, ptr %16, align 2, !tbaa !9
  %308 = zext i16 %307 to i64
  %309 = getelementptr inbounds %struct.glyf_PostscriptHintMask, ptr %306, i64 %308
  %310 = getelementptr inbounds %struct.glyf_PostscriptHintMask, ptr %309, i32 0, i32 2
  %311 = load i16, ptr %17, align 2, !tbaa !9
  %312 = zext i16 %311 to i64
  %313 = getelementptr inbounds [256 x i8], ptr %310, i64 0, i64 %312
  %314 = load i8, ptr %313, align 1, !tbaa !52, !range !53, !noundef !54
  %315 = trunc i8 %314 to i1
  %316 = zext i1 %315 to i8
  call void @bufwrite8(ptr noundef %302, i8 noundef zeroext %316)
  br label %317

317:                                              ; preds = %301
  %318 = load i16, ptr %17, align 2, !tbaa !9
  %319 = add i16 %318, 1
  store i16 %319, ptr %17, align 2, !tbaa !9
  br label %292, !llvm.loop !55

320:                                              ; preds = %300
  call void @llvm.lifetime.start.p0(i64 2, ptr %18) #3
  store i16 0, ptr %18, align 2, !tbaa !9
  br label %321

321:                                              ; preds = %346, %320
  %322 = load i16, ptr %18, align 2, !tbaa !9
  %323 = zext i16 %322 to i64
  %324 = load ptr, ptr %4, align 8, !tbaa !5
  %325 = getelementptr inbounds %struct.glyf_Glyph, ptr %324, i32 0, i32 8
  %326 = getelementptr inbounds %struct.glyf_StemDefList, ptr %325, i32 0, i32 0
  %327 = load i64, ptr %326, align 8, !tbaa !44
  %328 = icmp ult i64 %323, %327
  br i1 %328, label %330, label %329

329:                                              ; preds = %321
  store i32 23, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 2, ptr %18) #3
  br label %349

330:                                              ; preds = %321
  %331 = load ptr, ptr %6, align 8, !tbaa !5
  %332 = load ptr, ptr %4, align 8, !tbaa !5
  %333 = getelementptr inbounds %struct.glyf_Glyph, ptr %332, i32 0, i32 9
  %334 = getelementptr inbounds %struct.glyf_MaskList, ptr %333, i32 0, i32 2
  %335 = load ptr, ptr %334, align 8, !tbaa !48
  %336 = load i16, ptr %16, align 2, !tbaa !9
  %337 = zext i16 %336 to i64
  %338 = getelementptr inbounds %struct.glyf_PostscriptHintMask, ptr %335, i64 %337
  %339 = getelementptr inbounds %struct.glyf_PostscriptHintMask, ptr %338, i32 0, i32 3
  %340 = load i16, ptr %18, align 2, !tbaa !9
  %341 = zext i16 %340 to i64
  %342 = getelementptr inbounds [256 x i8], ptr %339, i64 0, i64 %341
  %343 = load i8, ptr %342, align 1, !tbaa !52, !range !53, !noundef !54
  %344 = trunc i8 %343 to i1
  %345 = zext i1 %344 to i8
  call void @bufwrite8(ptr noundef %331, i8 noundef zeroext %345)
  br label %346

346:                                              ; preds = %330
  %347 = load i16, ptr %18, align 2, !tbaa !9
  %348 = add i16 %347, 1
  store i16 %348, ptr %18, align 2, !tbaa !9
  br label %321, !llvm.loop !56

349:                                              ; preds = %329
  br label %350

350:                                              ; preds = %349
  %351 = load i16, ptr %16, align 2, !tbaa !9
  %352 = add i16 %351, 1
  store i16 %352, ptr %16, align 2, !tbaa !9
  br label %262, !llvm.loop !57

353:                                              ; preds = %270
  %354 = load ptr, ptr %6, align 8, !tbaa !5
  call void @bufwrite8(ptr noundef %354, i8 noundef zeroext 41)
  %355 = load ptr, ptr %6, align 8, !tbaa !5
  call void @bufwrite8(ptr noundef %355, i8 noundef zeroext 109)
  %356 = load ptr, ptr %6, align 8, !tbaa !5
  call void @bufwrite8(ptr noundef %356, i8 noundef zeroext 67)
  %357 = load ptr, ptr %6, align 8, !tbaa !5
  call void @bufwrite8(ptr noundef %357, i8 noundef zeroext 40)
  call void @llvm.lifetime.start.p0(i64 2, ptr %19) #3
  store i16 0, ptr %19, align 2, !tbaa !9
  br label %358

358:                                              ; preds = %446, %353
  %359 = load i16, ptr %19, align 2, !tbaa !9
  %360 = zext i16 %359 to i64
  %361 = load ptr, ptr %4, align 8, !tbaa !5
  %362 = getelementptr inbounds %struct.glyf_Glyph, ptr %361, i32 0, i32 10
  %363 = getelementptr inbounds %struct.glyf_MaskList, ptr %362, i32 0, i32 0
  %364 = load i64, ptr %363, align 8, !tbaa !58
  %365 = icmp ult i64 %360, %364
  br i1 %365, label %367, label %366

366:                                              ; preds = %358
  store i32 26, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 2, ptr %19) #3
  br label %449

367:                                              ; preds = %358
  %368 = load ptr, ptr %6, align 8, !tbaa !5
  %369 = load ptr, ptr %4, align 8, !tbaa !5
  %370 = getelementptr inbounds %struct.glyf_Glyph, ptr %369, i32 0, i32 10
  %371 = getelementptr inbounds %struct.glyf_MaskList, ptr %370, i32 0, i32 2
  %372 = load ptr, ptr %371, align 8, !tbaa !59
  %373 = load i16, ptr %19, align 2, !tbaa !9
  %374 = zext i16 %373 to i64
  %375 = getelementptr inbounds %struct.glyf_PostscriptHintMask, ptr %372, i64 %374
  %376 = getelementptr inbounds %struct.glyf_PostscriptHintMask, ptr %375, i32 0, i32 1
  %377 = load i16, ptr %376, align 2, !tbaa !49
  call void @bufwrite16b(ptr noundef %368, i16 noundef zeroext %377)
  %378 = load ptr, ptr %6, align 8, !tbaa !5
  %379 = load ptr, ptr %4, align 8, !tbaa !5
  %380 = getelementptr inbounds %struct.glyf_Glyph, ptr %379, i32 0, i32 10
  %381 = getelementptr inbounds %struct.glyf_MaskList, ptr %380, i32 0, i32 2
  %382 = load ptr, ptr %381, align 8, !tbaa !59
  %383 = load i16, ptr %19, align 2, !tbaa !9
  %384 = zext i16 %383 to i64
  %385 = getelementptr inbounds %struct.glyf_PostscriptHintMask, ptr %382, i64 %384
  %386 = getelementptr inbounds %struct.glyf_PostscriptHintMask, ptr %385, i32 0, i32 0
  %387 = load i16, ptr %386, align 2, !tbaa !51
  call void @bufwrite16b(ptr noundef %378, i16 noundef zeroext %387)
  call void @llvm.lifetime.start.p0(i64 2, ptr %20) #3
  store i16 0, ptr %20, align 2, !tbaa !9
  br label %388

388:                                              ; preds = %413, %367
  %389 = load i16, ptr %20, align 2, !tbaa !9
  %390 = zext i16 %389 to i64
  %391 = load ptr, ptr %4, align 8, !tbaa !5
  %392 = getelementptr inbounds %struct.glyf_Glyph, ptr %391, i32 0, i32 7
  %393 = getelementptr inbounds %struct.glyf_StemDefList, ptr %392, i32 0, i32 0
  %394 = load i64, ptr %393, align 8, !tbaa !38
  %395 = icmp ult i64 %390, %394
  br i1 %395, label %397, label %396

396:                                              ; preds = %388
  store i32 29, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 2, ptr %20) #3
  br label %416

397:                                              ; preds = %388
  %398 = load ptr, ptr %6, align 8, !tbaa !5
  %399 = load ptr, ptr %4, align 8, !tbaa !5
  %400 = getelementptr inbounds %struct.glyf_Glyph, ptr %399, i32 0, i32 10
  %401 = getelementptr inbounds %struct.glyf_MaskList, ptr %400, i32 0, i32 2
  %402 = load ptr, ptr %401, align 8, !tbaa !59
  %403 = load i16, ptr %19, align 2, !tbaa !9
  %404 = zext i16 %403 to i64
  %405 = getelementptr inbounds %struct.glyf_PostscriptHintMask, ptr %402, i64 %404
  %406 = getelementptr inbounds %struct.glyf_PostscriptHintMask, ptr %405, i32 0, i32 2
  %407 = load i16, ptr %20, align 2, !tbaa !9
  %408 = zext i16 %407 to i64
  %409 = getelementptr inbounds [256 x i8], ptr %406, i64 0, i64 %408
  %410 = load i8, ptr %409, align 1, !tbaa !52, !range !53, !noundef !54
  %411 = trunc i8 %410 to i1
  %412 = zext i1 %411 to i8
  call void @bufwrite8(ptr noundef %398, i8 noundef zeroext %412)
  br label %413

413:                                              ; preds = %397
  %414 = load i16, ptr %20, align 2, !tbaa !9
  %415 = add i16 %414, 1
  store i16 %415, ptr %20, align 2, !tbaa !9
  br label %388, !llvm.loop !60

416:                                              ; preds = %396
  call void @llvm.lifetime.start.p0(i64 2, ptr %21) #3
  store i16 0, ptr %21, align 2, !tbaa !9
  br label %417

417:                                              ; preds = %442, %416
  %418 = load i16, ptr %21, align 2, !tbaa !9
  %419 = zext i16 %418 to i64
  %420 = load ptr, ptr %4, align 8, !tbaa !5
  %421 = getelementptr inbounds %struct.glyf_Glyph, ptr %420, i32 0, i32 8
  %422 = getelementptr inbounds %struct.glyf_StemDefList, ptr %421, i32 0, i32 0
  %423 = load i64, ptr %422, align 8, !tbaa !44
  %424 = icmp ult i64 %419, %423
  br i1 %424, label %426, label %425

425:                                              ; preds = %417
  store i32 32, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 2, ptr %21) #3
  br label %445

426:                                              ; preds = %417
  %427 = load ptr, ptr %6, align 8, !tbaa !5
  %428 = load ptr, ptr %4, align 8, !tbaa !5
  %429 = getelementptr inbounds %struct.glyf_Glyph, ptr %428, i32 0, i32 10
  %430 = getelementptr inbounds %struct.glyf_MaskList, ptr %429, i32 0, i32 2
  %431 = load ptr, ptr %430, align 8, !tbaa !59
  %432 = load i16, ptr %19, align 2, !tbaa !9
  %433 = zext i16 %432 to i64
  %434 = getelementptr inbounds %struct.glyf_PostscriptHintMask, ptr %431, i64 %433
  %435 = getelementptr inbounds %struct.glyf_PostscriptHintMask, ptr %434, i32 0, i32 3
  %436 = load i16, ptr %21, align 2, !tbaa !9
  %437 = zext i16 %436 to i64
  %438 = getelementptr inbounds [256 x i8], ptr %435, i64 0, i64 %437
  %439 = load i8, ptr %438, align 1, !tbaa !52, !range !53, !noundef !54
  %440 = trunc i8 %439 to i1
  %441 = zext i1 %440 to i8
  call void @bufwrite8(ptr noundef %427, i8 noundef zeroext %441)
  br label %442

442:                                              ; preds = %426
  %443 = load i16, ptr %21, align 2, !tbaa !9
  %444 = add i16 %443, 1
  store i16 %444, ptr %21, align 2, !tbaa !9
  br label %417, !llvm.loop !61

445:                                              ; preds = %425
  br label %446

446:                                              ; preds = %445
  %447 = load i16, ptr %19, align 2, !tbaa !9
  %448 = add i16 %447, 1
  store i16 %448, ptr %19, align 2, !tbaa !9
  br label %358, !llvm.loop !62

449:                                              ; preds = %366
  %450 = load ptr, ptr %6, align 8, !tbaa !5
  call void @bufwrite8(ptr noundef %450, i8 noundef zeroext 41)
  %451 = load ptr, ptr %6, align 8, !tbaa !5
  call void @bufwrite8(ptr noundef %451, i8 noundef zeroext 73)
  %452 = load ptr, ptr %6, align 8, !tbaa !5
  %453 = load ptr, ptr %4, align 8, !tbaa !5
  %454 = getelementptr inbounds %struct.glyf_Glyph, ptr %453, i32 0, i32 11
  %455 = load i16, ptr %454, align 8, !tbaa !63
  %456 = zext i16 %455 to i32
  call void @bufwrite32b(ptr noundef %452, i32 noundef %456)
  %457 = load ptr, ptr %6, align 8, !tbaa !5
  %458 = load ptr, ptr %4, align 8, !tbaa !5
  %459 = getelementptr inbounds %struct.glyf_Glyph, ptr %458, i32 0, i32 11
  %460 = load i16, ptr %459, align 8, !tbaa !63
  %461 = zext i16 %460 to i64
  %462 = load ptr, ptr %4, align 8, !tbaa !5
  %463 = getelementptr inbounds %struct.glyf_Glyph, ptr %462, i32 0, i32 12
  %464 = load ptr, ptr %463, align 8, !tbaa !64
  call void @bufwrite_bytes(ptr noundef %457, i64 noundef %461, ptr noundef %464)
  call void @llvm.lifetime.start.p0(i64 120, ptr %22) #3
  call void @llvm.lifetime.start.p0(i64 20, ptr %23) #3
  call void @sha1_init(ptr noundef %22)
  %465 = load ptr, ptr %6, align 8, !tbaa !5
  %466 = getelementptr inbounds %struct.caryll_Buffer, ptr %465, i32 0, i32 3
  %467 = load ptr, ptr %466, align 8, !tbaa !65
  %468 = load ptr, ptr %6, align 8, !tbaa !5
  %469 = call i64 @buflen(ptr noundef %468)
  call void @sha1_update(ptr noundef %22, ptr noundef %467, i64 noundef %469)
  %470 = getelementptr inbounds [20 x i8], ptr %23, i64 0, i64 0
  call void @sha1_final(ptr noundef %22, ptr noundef %470)
  call void @llvm.lifetime.start.p0(i64 2, ptr %24) #3
  store i16 0, ptr %24, align 2, !tbaa !9
  br label %471

471:                                              ; preds = %485, %449
  %472 = load i16, ptr %24, align 2, !tbaa !9
  %473 = zext i16 %472 to i32
  %474 = icmp slt i32 %473, 20
  br i1 %474, label %476, label %475

475:                                              ; preds = %471
  store i32 35, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 2, ptr %24) #3
  br label %488

476:                                              ; preds = %471
  %477 = load i16, ptr %24, align 2, !tbaa !9
  %478 = zext i16 %477 to i64
  %479 = getelementptr inbounds [20 x i8], ptr %23, i64 0, i64 %478
  %480 = load i8, ptr %479, align 1, !tbaa !67
  %481 = getelementptr inbounds %struct.GlyphHash, ptr %0, i32 0, i32 0
  %482 = load i16, ptr %24, align 2, !tbaa !9
  %483 = zext i16 %482 to i64
  %484 = getelementptr inbounds [20 x i8], ptr %481, i64 0, i64 %483
  store i8 %480, ptr %484, align 1, !tbaa !67
  br label %485

485:                                              ; preds = %476
  %486 = load i16, ptr %24, align 2, !tbaa !9
  %487 = add i16 %486, 1
  store i16 %487, ptr %24, align 2, !tbaa !9
  br label %471, !llvm.loop !68

488:                                              ; preds = %475
  %489 = load ptr, ptr %6, align 8, !tbaa !5
  call void @buffree(ptr noundef %489)
  store i32 1, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 20, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 120, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  ret void
}

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

declare ptr @bufnew(...) #2

declare void @bufwrite8(ptr noundef, i8 noundef zeroext) #2

; Function Attrs: nounwind uwtable
declare hidden void @hashVQ(ptr noundef, ptr noundef byval(%struct.VQ) align 8) #0

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

declare void @bufwrite_bytes(ptr noundef, i64 noundef, ptr noundef) #2

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

declare signext i16 @otfcc_to_f2dot14(double noundef) #2

declare i32 @otfcc_to_fixed(double noundef) #2

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

declare void @sha1_init(ptr noundef) #2

declare void @sha1_update(ptr noundef, ptr noundef, i64 noundef) #2

declare i64 @buflen(ptr noundef) #2

declare void @sha1_final(ptr noundef, ptr noundef) #2

declare void @buffree(ptr noundef) #2

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 = { "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 = !{!"short", !7, i64 0}
!11 = !{!12, !16, i64 136}
!12 = !{!"", !6, i64 0, !13, i64 8, !13, i64 40, !13, i64 72, !13, i64 104, !15, i64 136, !15, i64 160, !15, i64 184, !15, i64 208, !15, i64 232, !15, i64 256, !10, i64 280, !6, i64 288, !7, i64 296, !17, i64 304, !10, i64 320, !19, i64 328}
!13 = !{!"", !14, i64 0, !15, i64 8}
!14 = !{!"double", !7, i64 0}
!15 = !{!"", !16, i64 0, !16, i64 8, !6, i64 16}
!16 = !{!"long", !7, i64 0}
!17 = !{!"otfcc_Handle", !18, i64 0, !10, i64 4, !6, i64 8}
!18 = !{!"int", !7, i64 0}
!19 = !{!"", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !10, i64 32, !10, i64 34, !10, i64 36, !10, i64 38, !10, i64 40}
!20 = !{!12, !6, i64 152}
!21 = !{!15, !16, i64 0}
!22 = !{!15, !6, i64 16}
!23 = !{!24, !7, i64 64}
!24 = !{!"", !13, i64 0, !13, i64 32, !7, i64 64}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = distinct !{!27, !26}
!28 = !{!12, !16, i64 160}
!29 = !{!12, !6, i64 176}
!30 = !{!31, !10, i64 76}
!31 = !{!"", !13, i64 0, !13, i64 32, !32, i64 64, !32, i64 65, !17, i64 72, !14, i64 88, !14, i64 96, !14, i64 104, !14, i64 112, !18, i64 120, !10, i64 124, !10, i64 126}
!32 = !{!"_Bool", !7, i64 0}
!33 = !{!31, !14, i64 88}
!34 = !{!31, !14, i64 96}
!35 = !{!31, !14, i64 104}
!36 = !{!31, !14, i64 112}
!37 = distinct !{!37, !26}
!38 = !{!12, !16, i64 184}
!39 = !{!12, !6, i64 200}
!40 = !{!41, !14, i64 0}
!41 = !{!"", !14, i64 0, !14, i64 8, !10, i64 16}
!42 = !{!41, !14, i64 8}
!43 = distinct !{!43, !26}
!44 = !{!12, !16, i64 208}
!45 = !{!12, !6, i64 224}
!46 = distinct !{!46, !26}
!47 = !{!12, !16, i64 232}
!48 = !{!12, !6, i64 248}
!49 = !{!50, !10, i64 2}
!50 = !{!"", !10, i64 0, !10, i64 2, !7, i64 4, !7, i64 260}
!51 = !{!50, !10, i64 0}
!52 = !{!32, !32, i64 0}
!53 = !{i8 0, i8 2}
!54 = !{}
!55 = distinct !{!55, !26}
!56 = distinct !{!56, !26}
!57 = distinct !{!57, !26}
!58 = !{!12, !16, i64 256}
!59 = !{!12, !6, i64 272}
!60 = distinct !{!60, !26}
!61 = distinct !{!61, !26}
!62 = distinct !{!62, !26}
!63 = !{!12, !10, i64 280}
!64 = !{!12, !6, i64 288}
!65 = !{!66, !6, i64 24}
!66 = !{!"caryll_Buffer", !16, i64 0, !16, i64 8, !16, i64 16, !6, i64 24}
!67 = !{!7, !7, i64 0}
!68 = distinct !{!68, !26}


; 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.GlyphHash = type { [20 x i8] }
%struct.SHA1_CTX = type { [64 x i8], i32, i64, [5 x i32], [4 x i32] }
%struct.VQ = type { double, %struct.vq_SegList }
%struct.vq_SegList = type { i64, i64, ptr }
%struct.glyf_Contour = type { i64, i64, ptr }
%struct.glyf_Point = type { %struct.VQ, %struct.VQ, i8 }
%struct.glyf_ComponentReference = type { %struct.VQ, %struct.VQ, i8, i8, %struct.otfcc_Handle, double, double, double, double, i32, i16, i16 }
%struct.otfcc_Handle = type { i32, i16, ptr }
%struct.glyf_PostscriptStemDef = type { double, double, i16 }
%struct.glyf_PostscriptHintMask = type { i16, i16, [256 x i8], [256 x i8] }

; Function Attrs: nounwind uwtable
define dso_local void @nameGlyphByHash(ptr dead_on_unwind noalias nocapture writable writeonly sret(%struct.GlyphHash) align 1 %0, ptr noundef %1, ptr nocapture noundef readonly %2) local_unnamed_addr #0 {
  %4 = alloca %struct.GlyphHash, align 1
  %5 = alloca %struct.SHA1_CTX, align 8
  %6 = alloca [20 x i8], align 16
  %7 = tail call ptr (...) @bufnew() #4
  tail call void @bufwrite8(ptr noundef %7, i8 noundef zeroext 72) #4
  %8 = getelementptr inbounds i8, ptr %1, i64 40
  tail call void @hashVQ(ptr noundef %7, ptr noundef nonnull byval(%struct.VQ) align 8 %8)
  tail call void @bufwrite8(ptr noundef %7, i8 noundef zeroext 104) #4
  %9 = getelementptr inbounds i8, ptr %1, i64 8
  tail call void @hashVQ(ptr noundef %7, ptr noundef nonnull byval(%struct.VQ) align 8 %9)
  tail call void @bufwrite8(ptr noundef %7, i8 noundef zeroext 86) #4
  %10 = getelementptr inbounds i8, ptr %1, i64 104
  tail call void @hashVQ(ptr noundef %7, ptr noundef nonnull byval(%struct.VQ) align 8 %10)
  tail call void @bufwrite8(ptr noundef %7, i8 noundef zeroext 118) #4
  %11 = getelementptr inbounds i8, ptr %1, i64 72
  tail call void @hashVQ(ptr noundef %7, ptr noundef nonnull byval(%struct.VQ) align 8 %11)
  tail call void @bufwrite8(ptr noundef %7, i8 noundef zeroext 67) #4
  tail call void @bufwrite8(ptr noundef %7, i8 noundef zeroext 40) #4
  %12 = getelementptr inbounds i8, ptr %1, i64 136
  %13 = load i64, ptr %12, align 8, !tbaa !5
  %.not212 = icmp eq i64 %13, 0
  br i1 %.not212, label %._crit_edge178, label %.lr.ph177

.lr.ph177:                                        ; preds = %3
  %14 = getelementptr inbounds i8, ptr %1, i64 152
  br label %19

._crit_edge178:                                   ; preds = %._crit_edge, %3
  tail call void @bufwrite8(ptr noundef %7, i8 noundef zeroext 41) #4
  tail call void @bufwrite8(ptr noundef %7, i8 noundef zeroext 82) #4
  tail call void @bufwrite8(ptr noundef %7, i8 noundef zeroext 40) #4
  %15 = getelementptr inbounds i8, ptr %1, i64 160
  %16 = load i64, ptr %15, align 8, !tbaa !18
  %.not214 = icmp eq i64 %16, 0
  br i1 %.not214, label %._crit_edge182, label %.lr.ph181

.lr.ph181:                                        ; preds = %._crit_edge178
  %17 = getelementptr inbounds i8, ptr %1, i64 176
  %18 = getelementptr inbounds i8, ptr %2, i64 16
  br label %46

19:                                               ; preds = %.lr.ph177, %._crit_edge
  %20 = phi i64 [ 0, %.lr.ph177 ], [ %26, %._crit_edge ]
  %.0158175 = phi i16 [ 0, %.lr.ph177 ], [ %25, %._crit_edge ]
  tail call void @bufwrite8(ptr noundef %7, i8 noundef zeroext 40) #4
  %21 = load ptr, ptr %14, align 8, !tbaa !19
  %22 = getelementptr inbounds %struct.glyf_Contour, ptr %21, i64 %20
  %23 = load i64, ptr %22, align 8, !tbaa !20
  %.not213 = icmp eq i64 %23, 0
  br i1 %.not213, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %19
  %24 = getelementptr inbounds i8, ptr %22, i64 16
  br label %29

._crit_edge:                                      ; preds = %29, %19
  tail call void @bufwrite8(ptr noundef %7, i8 noundef zeroext 41) #4
  %25 = add i16 %.0158175, 1
  %26 = zext i16 %25 to i64
  %27 = load i64, ptr %12, align 8, !tbaa !5
  %28 = icmp ugt i64 %27, %26
  br i1 %28, label %19, label %._crit_edge178, !llvm.loop !21

29:                                               ; preds = %.lr.ph, %29
  %30 = phi i64 [ 0, %.lr.ph ], [ %40, %29 ]
  %.0160174 = phi i16 [ 0, %.lr.ph ], [ %39, %29 ]
  %31 = load ptr, ptr %24, align 8, !tbaa !23
  %32 = getelementptr inbounds %struct.glyf_Point, ptr %31, i64 %30
  tail call void @hashVQ(ptr noundef %7, ptr noundef byval(%struct.VQ) align 8 %32)
  %33 = load ptr, ptr %24, align 8, !tbaa !23
  %34 = getelementptr inbounds %struct.glyf_Point, ptr %33, i64 %30, i32 1
  tail call void @hashVQ(ptr noundef %7, ptr noundef nonnull byval(%struct.VQ) align 8 %34)
  %35 = load ptr, ptr %24, align 8, !tbaa !23
  %36 = getelementptr inbounds %struct.glyf_Point, ptr %35, i64 %30, i32 2
  %37 = load i8, ptr %36, align 8, !tbaa !24
  %.not = icmp ne i8 %37, 0
  %38 = zext i1 %.not to i8
  tail call void @bufwrite8(ptr noundef %7, i8 noundef zeroext %38) #4
  %39 = add i16 %.0160174, 1
  %40 = zext i16 %39 to i64
  %41 = load i64, ptr %22, align 8, !tbaa !20
  %42 = icmp ugt i64 %41, %40
  br i1 %42, label %29, label %._crit_edge, !llvm.loop !26

._crit_edge182:                                   ; preds = %46, %._crit_edge178
  call void @bufwrite8(ptr noundef %7, i8 noundef zeroext 41) #4
  call void @bufwrite8(ptr noundef %7, i8 noundef zeroext 115) #4
  call void @bufwrite8(ptr noundef %7, i8 noundef zeroext 72) #4
  call void @bufwrite8(ptr noundef %7, i8 noundef zeroext 40) #4
  %43 = getelementptr inbounds i8, ptr %1, i64 184
  %44 = load i64, ptr %43, align 8, !tbaa !27
  %.not215 = icmp eq i64 %44, 0
  br i1 %.not215, label %._crit_edge186, label %.lr.ph185

.lr.ph185:                                        ; preds = %._crit_edge182
  %45 = getelementptr inbounds i8, ptr %1, i64 200
  br label %80

46:                                               ; preds = %.lr.ph181, %46
  %47 = phi i64 [ 0, %.lr.ph181 ], [ %74, %46 ]
  %.0159179 = phi i16 [ 0, %.lr.ph181 ], [ %73, %46 ]
  %48 = load ptr, ptr %17, align 8, !tbaa !28
  %49 = getelementptr inbounds %struct.glyf_ComponentReference, ptr %48, i64 %47
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %4) #4
  %50 = load ptr, ptr %18, align 8, !tbaa !23
  %51 = getelementptr inbounds i8, ptr %49, i64 76
  %52 = load i16, ptr %51, align 4, !tbaa !29
  %53 = zext i16 %52 to i64
  %54 = getelementptr inbounds ptr, ptr %50, i64 %53
  %55 = load ptr, ptr %54, align 8, !tbaa !32
  call void @nameGlyphByHash(ptr dead_on_unwind nonnull writable sret(%struct.GlyphHash) align 1 %4, ptr noundef %55, ptr noundef %2)
  call void @bufwrite_bytes(ptr noundef %7, i64 noundef 20, ptr noundef nonnull %4) #4
  call void @hashVQ(ptr noundef %7, ptr noundef byval(%struct.VQ) align 8 %49)
  %56 = getelementptr inbounds i8, ptr %49, i64 32
  call void @hashVQ(ptr noundef %7, ptr noundef nonnull byval(%struct.VQ) align 8 %56)
  %57 = getelementptr inbounds i8, ptr %49, i64 88
  %58 = load double, ptr %57, align 8, !tbaa !33
  %59 = call signext i16 @otfcc_to_f2dot14(double noundef %58) #4
  %60 = sext i16 %59 to i32
  call void @bufwrite32b(ptr noundef %7, i32 noundef %60) #4
  %61 = getelementptr inbounds i8, ptr %49, i64 96
  %62 = load double, ptr %61, align 8, !tbaa !34
  %63 = call signext i16 @otfcc_to_f2dot14(double noundef %62) #4
  %64 = sext i16 %63 to i32
  call void @bufwrite32b(ptr noundef %7, i32 noundef %64) #4
  %65 = getelementptr inbounds i8, ptr %49, i64 104
  %66 = load double, ptr %65, align 8, !tbaa !35
  %67 = call signext i16 @otfcc_to_f2dot14(double noundef %66) #4
  %68 = sext i16 %67 to i32
  call void @bufwrite32b(ptr noundef %7, i32 noundef %68) #4
  %69 = getelementptr inbounds i8, ptr %49, i64 112
  %70 = load double, ptr %69, align 8, !tbaa !36
  %71 = call signext i16 @otfcc_to_f2dot14(double noundef %70) #4
  %72 = sext i16 %71 to i32
  call void @bufwrite32b(ptr noundef %7, i32 noundef %72) #4
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %4) #4
  %73 = add i16 %.0159179, 1
  %74 = zext i16 %73 to i64
  %75 = load i64, ptr %15, align 8, !tbaa !18
  %76 = icmp ugt i64 %75, %74
  br i1 %76, label %46, label %._crit_edge182, !llvm.loop !37

._crit_edge186:                                   ; preds = %80, %._crit_edge182
  call void @bufwrite8(ptr noundef %7, i8 noundef zeroext 41) #4
  call void @bufwrite8(ptr noundef %7, i8 noundef zeroext 115) #4
  call void @bufwrite8(ptr noundef %7, i8 noundef zeroext 86) #4
  call void @bufwrite8(ptr noundef %7, i8 noundef zeroext 40) #4
  %77 = getelementptr inbounds i8, ptr %1, i64 208
  %78 = load i64, ptr %77, align 8, !tbaa !38
  %.not216 = icmp eq i64 %78, 0
  br i1 %.not216, label %._crit_edge190, label %.lr.ph189

.lr.ph189:                                        ; preds = %._crit_edge186
  %79 = getelementptr inbounds i8, ptr %1, i64 224
  br label %97

80:                                               ; preds = %.lr.ph185, %80
  %81 = phi i64 [ 0, %.lr.ph185 ], [ %91, %80 ]
  %.0157183 = phi i16 [ 0, %.lr.ph185 ], [ %90, %80 ]
  %82 = load ptr, ptr %45, align 8, !tbaa !39
  %83 = getelementptr inbounds %struct.glyf_PostscriptStemDef, ptr %82, i64 %81
  %84 = load double, ptr %83, align 8, !tbaa !40
  %85 = call i32 @otfcc_to_fixed(double noundef %84) #4
  call void @bufwrite32b(ptr noundef %7, i32 noundef %85) #4
  %86 = load ptr, ptr %45, align 8, !tbaa !39
  %87 = getelementptr inbounds %struct.glyf_PostscriptStemDef, ptr %86, i64 %81, i32 1
  %88 = load double, ptr %87, align 8, !tbaa !42
  %89 = call i32 @otfcc_to_fixed(double noundef %88) #4
  call void @bufwrite32b(ptr noundef %7, i32 noundef %89) #4
  %90 = add i16 %.0157183, 1
  %91 = zext i16 %90 to i64
  %92 = load i64, ptr %43, align 8, !tbaa !27
  %93 = icmp ugt i64 %92, %91
  br i1 %93, label %80, label %._crit_edge186, !llvm.loop !43

._crit_edge190:                                   ; preds = %97, %._crit_edge186
  call void @bufwrite8(ptr noundef %7, i8 noundef zeroext 41) #4
  call void @bufwrite8(ptr noundef %7, i8 noundef zeroext 109) #4
  call void @bufwrite8(ptr noundef %7, i8 noundef zeroext 72) #4
  call void @bufwrite8(ptr noundef %7, i8 noundef zeroext 40) #4
  %94 = getelementptr inbounds i8, ptr %1, i64 232
  %95 = load i64, ptr %94, align 8, !tbaa !44
  %.not217 = icmp eq i64 %95, 0
  br i1 %.not217, label %._crit_edge200, label %.lr.ph199

.lr.ph199:                                        ; preds = %._crit_edge190
  %96 = getelementptr inbounds i8, ptr %1, i64 248
  br label %114

97:                                               ; preds = %.lr.ph189, %97
  %98 = phi i64 [ 0, %.lr.ph189 ], [ %108, %97 ]
  %.0156187 = phi i16 [ 0, %.lr.ph189 ], [ %107, %97 ]
  %99 = load ptr, ptr %79, align 8, !tbaa !45
  %100 = getelementptr inbounds %struct.glyf_PostscriptStemDef, ptr %99, i64 %98
  %101 = load double, ptr %100, align 8, !tbaa !40
  %102 = call i32 @otfcc_to_fixed(double noundef %101) #4
  call void @bufwrite32b(ptr noundef %7, i32 noundef %102) #4
  %103 = load ptr, ptr %79, align 8, !tbaa !45
  %104 = getelementptr inbounds %struct.glyf_PostscriptStemDef, ptr %103, i64 %98, i32 1
  %105 = load double, ptr %104, align 8, !tbaa !42
  %106 = call i32 @otfcc_to_fixed(double noundef %105) #4
  call void @bufwrite32b(ptr noundef %7, i32 noundef %106) #4
  %107 = add i16 %.0156187, 1
  %108 = zext i16 %107 to i64
  %109 = load i64, ptr %77, align 8, !tbaa !38
  %110 = icmp ugt i64 %109, %108
  br i1 %110, label %97, label %._crit_edge190, !llvm.loop !46

._crit_edge200:                                   ; preds = %._crit_edge196, %._crit_edge190
  call void @bufwrite8(ptr noundef %7, i8 noundef zeroext 41) #4
  call void @bufwrite8(ptr noundef %7, i8 noundef zeroext 109) #4
  call void @bufwrite8(ptr noundef %7, i8 noundef zeroext 67) #4
  call void @bufwrite8(ptr noundef %7, i8 noundef zeroext 40) #4
  %111 = getelementptr inbounds i8, ptr %1, i64 256
  %112 = load i64, ptr %111, align 8, !tbaa !47
  %.not220 = icmp eq i64 %112, 0
  br i1 %.not220, label %._crit_edge210, label %.lr.ph209

.lr.ph209:                                        ; preds = %._crit_edge200
  %113 = getelementptr inbounds i8, ptr %1, i64 272
  br label %154

114:                                              ; preds = %.lr.ph199, %._crit_edge196
  %115 = phi i64 [ 0, %.lr.ph199 ], [ %133, %._crit_edge196 ]
  %.0155197 = phi i16 [ 0, %.lr.ph199 ], [ %132, %._crit_edge196 ]
  %116 = load ptr, ptr %96, align 8, !tbaa !48
  %117 = getelementptr inbounds %struct.glyf_PostscriptHintMask, ptr %116, i64 %115, i32 1
  %118 = load i16, ptr %117, align 2, !tbaa !49
  call void @bufwrite16b(ptr noundef %7, i16 noundef zeroext %118) #4
  %119 = load ptr, ptr %96, align 8, !tbaa !48
  %120 = getelementptr inbounds %struct.glyf_PostscriptHintMask, ptr %119, i64 %115
  %121 = load i16, ptr %120, align 2, !tbaa !51
  call void @bufwrite16b(ptr noundef %7, i16 noundef zeroext %121) #4
  %122 = load i64, ptr %43, align 8, !tbaa !27
  %.not218 = icmp eq i64 %122, 0
  br i1 %.not218, label %.preheader172, label %.lr.ph193

.preheader172:                                    ; preds = %.lr.ph193, %114
  %123 = load i64, ptr %77, align 8, !tbaa !38
  %.not219 = icmp eq i64 %123, 0
  br i1 %.not219, label %._crit_edge196, label %.lr.ph195

.lr.ph193:                                        ; preds = %114, %.lr.ph193
  %124 = phi i64 [ %129, %.lr.ph193 ], [ 0, %114 ]
  %.0154191 = phi i16 [ %128, %.lr.ph193 ], [ 0, %114 ]
  %125 = load ptr, ptr %96, align 8, !tbaa !48
  %126 = getelementptr inbounds %struct.glyf_PostscriptHintMask, ptr %125, i64 %115, i32 2, i64 %124
  %127 = load i8, ptr %126, align 1, !tbaa !52, !range !53, !noundef !54
  call void @bufwrite8(ptr noundef %7, i8 noundef zeroext %127) #4
  %128 = add i16 %.0154191, 1
  %129 = zext i16 %128 to i64
  %130 = load i64, ptr %43, align 8, !tbaa !27
  %131 = icmp ugt i64 %130, %129
  br i1 %131, label %.lr.ph193, label %.preheader172, !llvm.loop !55

._crit_edge196:                                   ; preds = %.lr.ph195, %.preheader172
  %132 = add i16 %.0155197, 1
  %133 = zext i16 %132 to i64
  %134 = load i64, ptr %94, align 8, !tbaa !44
  %135 = icmp ugt i64 %134, %133
  br i1 %135, label %114, label %._crit_edge200, !llvm.loop !56

.lr.ph195:                                        ; preds = %.preheader172, %.lr.ph195
  %136 = phi i64 [ %141, %.lr.ph195 ], [ 0, %.preheader172 ]
  %.0153194 = phi i16 [ %140, %.lr.ph195 ], [ 0, %.preheader172 ]
  %137 = load ptr, ptr %96, align 8, !tbaa !48
  %138 = getelementptr inbounds %struct.glyf_PostscriptHintMask, ptr %137, i64 %115, i32 3, i64 %136
  %139 = load i8, ptr %138, align 1, !tbaa !52, !range !53, !noundef !54
  call void @bufwrite8(ptr noundef %7, i8 noundef zeroext %139) #4
  %140 = add i16 %.0153194, 1
  %141 = zext i16 %140 to i64
  %142 = load i64, ptr %77, align 8, !tbaa !38
  %143 = icmp ugt i64 %142, %141
  br i1 %143, label %.lr.ph195, label %._crit_edge196, !llvm.loop !57

._crit_edge210:                                   ; preds = %._crit_edge206, %._crit_edge200
  call void @bufwrite8(ptr noundef %7, i8 noundef zeroext 41) #4
  call void @bufwrite8(ptr noundef %7, i8 noundef zeroext 73) #4
  %144 = getelementptr inbounds i8, ptr %1, i64 280
  %145 = load i16, ptr %144, align 8, !tbaa !58
  %146 = zext i16 %145 to i32
  call void @bufwrite32b(ptr noundef %7, i32 noundef %146) #4
  %147 = load i16, ptr %144, align 8, !tbaa !58
  %148 = zext i16 %147 to i64
  %149 = getelementptr inbounds i8, ptr %1, i64 288
  %150 = load ptr, ptr %149, align 8, !tbaa !59
  call void @bufwrite_bytes(ptr noundef %7, i64 noundef %148, ptr noundef %150) #4
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %5) #4
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %6) #4
  call void @sha1_init(ptr noundef nonnull %5) #4
  %151 = getelementptr inbounds i8, ptr %7, i64 24
  %152 = load ptr, ptr %151, align 8, !tbaa !60
  %153 = call i64 @buflen(ptr noundef %7) #4
  call void @sha1_update(ptr noundef nonnull %5, ptr noundef %152, i64 noundef %153) #4
  call void @sha1_final(ptr noundef nonnull %5, ptr noundef nonnull %6) #4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(20) %0, ptr noundef nonnull align 16 dereferenceable(20) %6, i64 20, i1 false), !tbaa !62
  call void @buffree(ptr noundef %7) #4
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %5) #4
  ret void

154:                                              ; preds = %.lr.ph209, %._crit_edge206
  %155 = phi i64 [ 0, %.lr.ph209 ], [ %173, %._crit_edge206 ]
  %.0152207 = phi i16 [ 0, %.lr.ph209 ], [ %172, %._crit_edge206 ]
  %156 = load ptr, ptr %113, align 8, !tbaa !63
  %157 = getelementptr inbounds %struct.glyf_PostscriptHintMask, ptr %156, i64 %155, i32 1
  %158 = load i16, ptr %157, align 2, !tbaa !49
  call void @bufwrite16b(ptr noundef %7, i16 noundef zeroext %158) #4
  %159 = load ptr, ptr %113, align 8, !tbaa !63
  %160 = getelementptr inbounds %struct.glyf_PostscriptHintMask, ptr %159, i64 %155
  %161 = load i16, ptr %160, align 2, !tbaa !51
  call void @bufwrite16b(ptr noundef %7, i16 noundef zeroext %161) #4
  %162 = load i64, ptr %43, align 8, !tbaa !27
  %.not221 = icmp eq i64 %162, 0
  br i1 %.not221, label %.preheader, label %.lr.ph203

.preheader:                                       ; preds = %.lr.ph203, %154
  %163 = load i64, ptr %77, align 8, !tbaa !38
  %.not222 = icmp eq i64 %163, 0
  br i1 %.not222, label %._crit_edge206, label %.lr.ph205

.lr.ph203:                                        ; preds = %154, %.lr.ph203
  %164 = phi i64 [ %169, %.lr.ph203 ], [ 0, %154 ]
  %.0151201 = phi i16 [ %168, %.lr.ph203 ], [ 0, %154 ]
  %165 = load ptr, ptr %113, align 8, !tbaa !63
  %166 = getelementptr inbounds %struct.glyf_PostscriptHintMask, ptr %165, i64 %155, i32 2, i64 %164
  %167 = load i8, ptr %166, align 1, !tbaa !52, !range !53, !noundef !54
  call void @bufwrite8(ptr noundef %7, i8 noundef zeroext %167) #4
  %168 = add i16 %.0151201, 1
  %169 = zext i16 %168 to i64
  %170 = load i64, ptr %43, align 8, !tbaa !27
  %171 = icmp ugt i64 %170, %169
  br i1 %171, label %.lr.ph203, label %.preheader, !llvm.loop !64

._crit_edge206:                                   ; preds = %.lr.ph205, %.preheader
  %172 = add i16 %.0152207, 1
  %173 = zext i16 %172 to i64
  %174 = load i64, ptr %111, align 8, !tbaa !47
  %175 = icmp ugt i64 %174, %173
  br i1 %175, label %154, label %._crit_edge210, !llvm.loop !65

.lr.ph205:                                        ; preds = %.preheader, %.lr.ph205
  %176 = phi i64 [ %181, %.lr.ph205 ], [ 0, %.preheader ]
  %.0150204 = phi i16 [ %180, %.lr.ph205 ], [ 0, %.preheader ]
  %177 = load ptr, ptr %113, align 8, !tbaa !63
  %178 = getelementptr inbounds %struct.glyf_PostscriptHintMask, ptr %177, i64 %155, i32 3, i64 %176
  %179 = load i8, ptr %178, align 1, !tbaa !52, !range !53, !noundef !54
  call void @bufwrite8(ptr noundef %7, i8 noundef zeroext %179) #4
  %180 = add i16 %.0150204, 1
  %181 = zext i16 %180 to i64
  %182 = load i64, ptr %77, align 8, !tbaa !38
  %183 = icmp ugt i64 %182, %181
  br i1 %183, label %.lr.ph205, label %._crit_edge206, !llvm.loop !66
}

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

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

declare void @bufwrite8(ptr noundef, i8 noundef zeroext) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare hidden void @hashVQ(ptr noundef, ptr noundef byval(%struct.VQ) align 8) local_unnamed_addr #0

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

declare void @bufwrite_bytes(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

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

declare signext i16 @otfcc_to_f2dot14(double noundef) local_unnamed_addr #2

declare i32 @otfcc_to_fixed(double noundef) local_unnamed_addr #2

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

declare void @sha1_init(ptr noundef) local_unnamed_addr #2

declare void @sha1_update(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #2

declare i64 @buflen(ptr noundef) local_unnamed_addr #2

declare void @sha1_final(ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @buffree(ptr noundef) local_unnamed_addr #2

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

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 = { "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, !13, i64 136}
!6 = !{!"", !7, i64 0, !10, i64 8, !10, i64 40, !10, i64 72, !10, i64 104, !12, i64 136, !12, i64 160, !12, i64 184, !12, i64 208, !12, i64 232, !12, i64 256, !14, i64 280, !7, i64 288, !8, i64 296, !15, i64 304, !14, i64 320, !17, i64 328}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"", !11, i64 0, !12, i64 8}
!11 = !{!"double", !8, i64 0}
!12 = !{!"", !13, i64 0, !13, i64 8, !7, i64 16}
!13 = !{!"long", !8, i64 0}
!14 = !{!"short", !8, i64 0}
!15 = !{!"otfcc_Handle", !16, i64 0, !14, i64 4, !7, i64 8}
!16 = !{!"int", !8, i64 0}
!17 = !{!"", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !14, i64 32, !14, i64 34, !14, i64 36, !14, i64 38, !14, i64 40}
!18 = !{!6, !13, i64 160}
!19 = !{!6, !7, i64 152}
!20 = !{!12, !13, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!12, !7, i64 16}
!24 = !{!25, !8, i64 64}
!25 = !{!"", !10, i64 0, !10, i64 32, !8, i64 64}
!26 = distinct !{!26, !22}
!27 = !{!6, !13, i64 184}
!28 = !{!6, !7, i64 176}
!29 = !{!30, !14, i64 76}
!30 = !{!"", !10, i64 0, !10, i64 32, !31, i64 64, !31, i64 65, !15, i64 72, !11, i64 88, !11, i64 96, !11, i64 104, !11, i64 112, !16, i64 120, !14, i64 124, !14, i64 126}
!31 = !{!"_Bool", !8, i64 0}
!32 = !{!7, !7, i64 0}
!33 = !{!30, !11, i64 88}
!34 = !{!30, !11, i64 96}
!35 = !{!30, !11, i64 104}
!36 = !{!30, !11, i64 112}
!37 = distinct !{!37, !22}
!38 = !{!6, !13, i64 208}
!39 = !{!6, !7, i64 200}
!40 = !{!41, !11, i64 0}
!41 = !{!"", !11, i64 0, !11, i64 8, !14, i64 16}
!42 = !{!41, !11, i64 8}
!43 = distinct !{!43, !22}
!44 = !{!6, !13, i64 232}
!45 = !{!6, !7, i64 224}
!46 = distinct !{!46, !22}
!47 = !{!6, !13, i64 256}
!48 = !{!6, !7, i64 248}
!49 = !{!50, !14, i64 2}
!50 = !{!"", !14, i64 0, !14, i64 2, !8, i64 4, !8, i64 260}
!51 = !{!50, !14, i64 0}
!52 = !{!31, !31, i64 0}
!53 = !{i8 0, i8 2}
!54 = !{}
!55 = distinct !{!55, !22}
!56 = distinct !{!56, !22}
!57 = distinct !{!57, !22}
!58 = !{!6, !14, i64 280}
!59 = !{!6, !7, i64 288}
!60 = !{!61, !7, i64 24}
!61 = !{!"caryll_Buffer", !13, i64 0, !13, i64 8, !13, i64 16, !7, i64 24}
!62 = !{!8, !8, i64 0}
!63 = !{!6, !7, i64 272}
!64 = distinct !{!64, !22}
!65 = distinct !{!65, !22}
!66 = distinct !{!66, !22}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass