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

; 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.__caryll_elementinterface_table_CFF = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.__caryll_elementinterface_cff_Dict = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.__caryll_vectorinterface_table_glyf = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.otfcc_Packet = type { i32, i16, i16, i16, i16, ptr }
%struct.table_CFFAndGlyf = type { ptr, ptr }
%struct.cff_extract_context = type { i32, ptr, ptr, ptr, i64 }
%struct.otfcc_PacketPiece = type { i32, i32, i32, i32, ptr }
%struct.cff_File = type { ptr, i32, i16, %struct.cff_Header, %struct.cff_Index, %struct.cff_Index, %struct.cff_Index, %struct.cff_Index, %struct.cff_Encoding, %struct.cff_Charset, %struct.cff_FDSelect, %struct.cff_Index, %struct.cff_Index, %struct.cff_Index }
%struct.cff_Header = type { i8, i8, i8, i8 }
%struct.cff_Encoding = type { i32, %union.anon }
%union.anon = type { %struct.cff_EncodingFormat0 }
%struct.cff_EncodingFormat0 = type { i8, i8, ptr }
%struct.cff_Charset = type { i32, i32, %union.anon.0 }
%union.anon.0 = type { %struct.cff_CharsetFormat0 }
%struct.cff_CharsetFormat0 = type { i8, ptr }
%struct.cff_FDSelect = type { i32, i32, %union.anon.1 }
%union.anon.1 = type { %struct.cff_FDSelectFormat3 }
%struct.cff_FDSelectFormat3 = type { i8, i16, ptr, i16 }
%struct.cff_Index = type { i32, i32, i8, ptr, ptr }
%struct._table_CFF = type { ptr, i8, ptr, ptr, ptr, ptr, ptr, ptr, i8, double, double, double, double, double, double, double, double, ptr, ptr, ptr, ptr, i32, double, double, i32, i32, i16, ptr }
%struct.cff_PrivateDict = type { i32, ptr, i32, ptr, i32, ptr, i32, ptr, double, double, double, double, double, i32, ptr, i32, ptr, i8, i32, double, double, double, double }
%struct.table_glyf = type { i64, i64, ptr }

@table_iCFF = external dso_local constant %struct.__caryll_elementinterface_table_CFF, align 8
@cff_iDict = external constant %struct.__caryll_elementinterface_cff_Dict, align 8
@.str = external hidden unnamed_addr constant [11 x i8], align 1
@table_iGlyf = external constant %struct.__caryll_vectorinterface_table_glyf, align 8

; Function Attrs: nounwind uwtable
define dso_local { ptr, ptr } @otfcc_readCFFAndGlyfTables(ptr noundef byval(%struct.otfcc_Packet) align 8 %0, ptr noundef %1, ptr noundef %2) #0 {
  %4 = alloca %struct.table_CFFAndGlyf, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %struct.cff_extract_context, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca %struct.otfcc_PacketPiece, align 8
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca i16, align 2
  %18 = alloca ptr, align 8
  %19 = alloca i16, align 2
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.table_CFFAndGlyf, ptr %4, i32 0, i32 0
  store ptr null, ptr %20, align 8, !tbaa !9
  %21 = getelementptr inbounds %struct.table_CFFAndGlyf, ptr %4, i32 0, i32 1
  store ptr null, ptr %21, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 40, ptr %7) #5
  %22 = getelementptr inbounds %struct.cff_extract_context, ptr %7, i32 0, i32 0
  store i32 -1, ptr %22, align 8, !tbaa !12
  %23 = getelementptr inbounds %struct.cff_extract_context, ptr %7, i32 0, i32 1
  store ptr null, ptr %23, align 8, !tbaa !16
  %24 = getelementptr inbounds %struct.cff_extract_context, ptr %7, i32 0, i32 2
  store ptr null, ptr %24, align 8, !tbaa !17
  %25 = getelementptr inbounds %struct.cff_extract_context, ptr %7, i32 0, i32 3
  store ptr null, ptr %25, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 1, ptr %8, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 1, ptr %10, align 4, !tbaa !19
  br label %26

26:                                               ; preds = %280, %3
  %27 = load i32, ptr %10, align 4, !tbaa !19
  %28 = icmp ne i32 %27, 0
  br i1 %28, label %29, label %38

29:                                               ; preds = %26
  %30 = load i32, ptr %8, align 4, !tbaa !19
  %31 = icmp ne i32 %30, 0
  br i1 %31, label %32, label %38

32:                                               ; preds = %29
  %33 = load i32, ptr %9, align 4, !tbaa !19
  %34 = getelementptr inbounds %struct.otfcc_Packet, ptr %0, i32 0, i32 1
  %35 = load i16, ptr %34, align 4, !tbaa !20
  %36 = zext i16 %35 to i32
  %37 = icmp slt i32 %33, %36
  br label %38

38:                                               ; preds = %32, %29, %26
  %39 = phi i1 [ false, %29 ], [ false, %26 ], [ %37, %32 ]
  br i1 %39, label %41, label %40

40:                                               ; preds = %38
  store i32 2, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %287

41:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #5
  %42 = getelementptr inbounds %struct.otfcc_Packet, ptr %0, i32 0, i32 5
  %43 = load ptr, ptr %42, align 8, !tbaa !23
  %44 = load i32, ptr %9, align 4, !tbaa !19
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds %struct.otfcc_PacketPiece, ptr %43, i64 %45
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %12, ptr align 8 %46, i64 24, i1 false), !tbaa.struct !24
  br label %47

47:                                               ; preds = %274, %41
  %48 = load i32, ptr %8, align 4, !tbaa !19
  %49 = icmp ne i32 %48, 0
  br i1 %49, label %51, label %50

50:                                               ; preds = %47
  store i32 5, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #5
  br label %279

51:                                               ; preds = %47
  %52 = getelementptr inbounds %struct.otfcc_PacketPiece, ptr %12, i32 0, i32 0
  %53 = load i32, ptr %52, align 8, !tbaa !25
  %54 = icmp eq i32 %53, 1128678944
  br i1 %54, label %55, label %273

55:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 1, ptr %13, align 4, !tbaa !19
  br label %56

56:                                               ; preds = %271, %55
  %57 = load i32, ptr %13, align 4, !tbaa !19
  %58 = icmp ne i32 %57, 0
  br i1 %58, label %60, label %59

59:                                               ; preds = %56
  store i32 8, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %272

60:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %61 = getelementptr inbounds %struct.otfcc_PacketPiece, ptr %12, i32 0, i32 4
  %62 = load ptr, ptr %61, align 8, !tbaa !27
  store ptr %62, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %63 = getelementptr inbounds %struct.otfcc_PacketPiece, ptr %12, i32 0, i32 3
  %64 = load i32, ptr %63, align 4, !tbaa !28
  store i32 %64, ptr %15, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %65 = load ptr, ptr %14, align 8, !tbaa !5
  %66 = load i32, ptr %15, align 4, !tbaa !19
  %67 = load ptr, ptr %5, align 8, !tbaa !5
  %68 = call ptr @cff_openStream(ptr noundef %65, i32 noundef %66, ptr noundef %67)
  store ptr %68, ptr %16, align 8, !tbaa !5
  %69 = load ptr, ptr %16, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.cff_extract_context, ptr %7, i32 0, i32 3
  store ptr %69, ptr %70, align 8, !tbaa !18
  %71 = load ptr, ptr getelementptr inbounds (%struct.__caryll_elementinterface_table_CFF, ptr @table_iCFF, i32 0, i32 6), align 8, !tbaa !29
  %72 = call ptr (...) %71()
  %73 = getelementptr inbounds %struct.cff_extract_context, ptr %7, i32 0, i32 1
  store ptr %72, ptr %73, align 8, !tbaa !16
  %74 = load ptr, ptr getelementptr inbounds (%struct.__caryll_elementinterface_cff_Dict, ptr @cff_iDict, i32 0, i32 9), align 8, !tbaa !31
  %75 = load ptr, ptr %16, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.cff_File, ptr %75, i32 0, i32 5
  %77 = getelementptr inbounds %struct.cff_Index, ptr %76, i32 0, i32 4
  %78 = load ptr, ptr %77, align 8, !tbaa !33
  %79 = load ptr, ptr %16, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.cff_File, ptr %79, i32 0, i32 5
  %81 = getelementptr inbounds %struct.cff_Index, ptr %80, i32 0, i32 3
  %82 = load ptr, ptr %81, align 8, !tbaa !39
  %83 = getelementptr inbounds i32, ptr %82, i64 1
  %84 = load i32, ptr %83, align 4, !tbaa !19
  %85 = load ptr, ptr %16, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.cff_File, ptr %85, i32 0, i32 5
  %87 = getelementptr inbounds %struct.cff_Index, ptr %86, i32 0, i32 3
  %88 = load ptr, ptr %87, align 8, !tbaa !39
  %89 = getelementptr inbounds i32, ptr %88, i64 0
  %90 = load i32, ptr %89, align 4, !tbaa !19
  %91 = sub i32 %84, %90
  call void %74(ptr noundef %78, i32 noundef %91, ptr noundef %7, ptr noundef @callback_extract_fd)
  %92 = getelementptr inbounds %struct.cff_extract_context, ptr %7, i32 0, i32 1
  %93 = load ptr, ptr %92, align 8, !tbaa !16
  %94 = getelementptr inbounds %struct._table_CFF, ptr %93, i32 0, i32 0
  %95 = load ptr, ptr %94, align 8, !tbaa !40
  %96 = icmp ne ptr %95, null
  br i1 %96, label %104, label %97

97:                                               ; preds = %60
  %98 = load ptr, ptr %16, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.cff_File, ptr %98, i32 0, i32 4
  %100 = call ptr @sdsget_cff_sid(i16 noundef zeroext 391, ptr noundef byval(%struct.cff_Index) align 8 %99)
  %101 = getelementptr inbounds %struct.cff_extract_context, ptr %7, i32 0, i32 1
  %102 = load ptr, ptr %101, align 8, !tbaa !16
  %103 = getelementptr inbounds %struct._table_CFF, ptr %102, i32 0, i32 0
  store ptr %100, ptr %103, align 8, !tbaa !40
  br label %104

104:                                              ; preds = %97, %60
  %105 = load ptr, ptr %16, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.cff_File, ptr %105, i32 0, i32 12
  %107 = getelementptr inbounds %struct.cff_Index, ptr %106, i32 0, i32 1
  %108 = load i32, ptr %107, align 4, !tbaa !44
  %109 = icmp ne i32 %108, 0
  br i1 %109, label %110, label %217

110:                                              ; preds = %104
  %111 = load ptr, ptr %16, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.cff_File, ptr %111, i32 0, i32 12
  %113 = getelementptr inbounds %struct.cff_Index, ptr %112, i32 0, i32 1
  %114 = load i32, ptr %113, align 4, !tbaa !44
  %115 = trunc i32 %114 to i16
  %116 = getelementptr inbounds %struct.cff_extract_context, ptr %7, i32 0, i32 1
  %117 = load ptr, ptr %116, align 8, !tbaa !16
  %118 = getelementptr inbounds %struct._table_CFF, ptr %117, i32 0, i32 26
  store i16 %115, ptr %118, align 8, !tbaa !45
  %119 = getelementptr inbounds %struct.cff_extract_context, ptr %7, i32 0, i32 1
  %120 = load ptr, ptr %119, align 8, !tbaa !16
  %121 = getelementptr inbounds %struct._table_CFF, ptr %120, i32 0, i32 26
  %122 = load i16, ptr %121, align 8, !tbaa !45
  %123 = zext i16 %122 to i64
  %124 = mul i64 8, %123
  %125 = call ptr @__caryll_allocate_clean(i64 noundef %124, i64 noundef 637)
  %126 = getelementptr inbounds %struct.cff_extract_context, ptr %7, i32 0, i32 1
  %127 = load ptr, ptr %126, align 8, !tbaa !16
  %128 = getelementptr inbounds %struct._table_CFF, ptr %127, i32 0, i32 27
  store ptr %125, ptr %128, align 8, !tbaa !46
  call void @llvm.lifetime.start.p0(i64 2, ptr %17) #5
  store i16 0, ptr %17, align 2, !tbaa !47
  br label %129

129:                                              ; preds = %213, %110
  %130 = load i16, ptr %17, align 2, !tbaa !47
  %131 = zext i16 %130 to i32
  %132 = getelementptr inbounds %struct.cff_extract_context, ptr %7, i32 0, i32 1
  %133 = load ptr, ptr %132, align 8, !tbaa !16
  %134 = getelementptr inbounds %struct._table_CFF, ptr %133, i32 0, i32 26
  %135 = load i16, ptr %134, align 8, !tbaa !45
  %136 = zext i16 %135 to i32
  %137 = icmp slt i32 %131, %136
  br i1 %137, label %139, label %138

138:                                              ; preds = %129
  store i32 11, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 2, ptr %17) #5
  br label %216

139:                                              ; preds = %129
  %140 = load ptr, ptr getelementptr inbounds (%struct.__caryll_elementinterface_table_CFF, ptr @table_iCFF, i32 0, i32 6), align 8, !tbaa !29
  %141 = call ptr (...) %140()
  %142 = getelementptr inbounds %struct.cff_extract_context, ptr %7, i32 0, i32 1
  %143 = load ptr, ptr %142, align 8, !tbaa !16
  %144 = getelementptr inbounds %struct._table_CFF, ptr %143, i32 0, i32 27
  %145 = load ptr, ptr %144, align 8, !tbaa !46
  %146 = load i16, ptr %17, align 2, !tbaa !47
  %147 = zext i16 %146 to i64
  %148 = getelementptr inbounds ptr, ptr %145, i64 %147
  store ptr %141, ptr %148, align 8, !tbaa !5
  %149 = load i16, ptr %17, align 2, !tbaa !47
  %150 = zext i16 %149 to i32
  %151 = getelementptr inbounds %struct.cff_extract_context, ptr %7, i32 0, i32 0
  store i32 %150, ptr %151, align 8, !tbaa !12
  %152 = load ptr, ptr getelementptr inbounds (%struct.__caryll_elementinterface_cff_Dict, ptr @cff_iDict, i32 0, i32 9), align 8, !tbaa !31
  %153 = load ptr, ptr %16, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.cff_File, ptr %153, i32 0, i32 12
  %155 = getelementptr inbounds %struct.cff_Index, ptr %154, i32 0, i32 4
  %156 = load ptr, ptr %155, align 8, !tbaa !48
  %157 = load ptr, ptr %16, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.cff_File, ptr %157, i32 0, i32 12
  %159 = getelementptr inbounds %struct.cff_Index, ptr %158, i32 0, i32 3
  %160 = load ptr, ptr %159, align 8, !tbaa !49
  %161 = load i16, ptr %17, align 2, !tbaa !47
  %162 = zext i16 %161 to i64
  %163 = getelementptr inbounds i32, ptr %160, i64 %162
  %164 = load i32, ptr %163, align 4, !tbaa !19
  %165 = zext i32 %164 to i64
  %166 = getelementptr inbounds i8, ptr %156, i64 %165
  %167 = getelementptr inbounds i8, ptr %166, i64 -1
  %168 = load ptr, ptr %16, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.cff_File, ptr %168, i32 0, i32 12
  %170 = getelementptr inbounds %struct.cff_Index, ptr %169, i32 0, i32 3
  %171 = load ptr, ptr %170, align 8, !tbaa !49
  %172 = load i16, ptr %17, align 2, !tbaa !47
  %173 = zext i16 %172 to i32
  %174 = add nsw i32 %173, 1
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds i32, ptr %171, i64 %175
  %177 = load i32, ptr %176, align 4, !tbaa !19
  %178 = load ptr, ptr %16, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.cff_File, ptr %178, i32 0, i32 12
  %180 = getelementptr inbounds %struct.cff_Index, ptr %179, i32 0, i32 3
  %181 = load ptr, ptr %180, align 8, !tbaa !49
  %182 = load i16, ptr %17, align 2, !tbaa !47
  %183 = zext i16 %182 to i64
  %184 = getelementptr inbounds i32, ptr %181, i64 %183
  %185 = load i32, ptr %184, align 4, !tbaa !19
  %186 = sub i32 %177, %185
  call void %152(ptr noundef %167, i32 noundef %186, ptr noundef %7, ptr noundef @callback_extract_fd)
  %187 = getelementptr inbounds %struct.cff_extract_context, ptr %7, i32 0, i32 1
  %188 = load ptr, ptr %187, align 8, !tbaa !16
  %189 = getelementptr inbounds %struct._table_CFF, ptr %188, i32 0, i32 27
  %190 = load ptr, ptr %189, align 8, !tbaa !46
  %191 = load i16, ptr %17, align 2, !tbaa !47
  %192 = zext i16 %191 to i64
  %193 = getelementptr inbounds ptr, ptr %190, i64 %192
  %194 = load ptr, ptr %193, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct._table_CFF, ptr %194, i32 0, i32 0
  %196 = load ptr, ptr %195, align 8, !tbaa !40
  %197 = icmp ne ptr %196, null
  br i1 %197, label %212, label %198

198:                                              ; preds = %139
  %199 = call ptr @sdsempty()
  %200 = load i16, ptr %17, align 2, !tbaa !47
  %201 = zext i16 %200 to i32
  %202 = call ptr (ptr, ptr, ...) @sdscatprintf(ptr noundef %199, ptr noundef @.str, i32 noundef %201)
  %203 = getelementptr inbounds %struct.cff_extract_context, ptr %7, i32 0, i32 1
  %204 = load ptr, ptr %203, align 8, !tbaa !16
  %205 = getelementptr inbounds %struct._table_CFF, ptr %204, i32 0, i32 27
  %206 = load ptr, ptr %205, align 8, !tbaa !46
  %207 = load i16, ptr %17, align 2, !tbaa !47
  %208 = zext i16 %207 to i64
  %209 = getelementptr inbounds ptr, ptr %206, i64 %208
  %210 = load ptr, ptr %209, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct._table_CFF, ptr %210, i32 0, i32 0
  store ptr %202, ptr %211, align 8, !tbaa !40
  br label %212

212:                                              ; preds = %198, %139
  br label %213

213:                                              ; preds = %212
  %214 = load i16, ptr %17, align 2, !tbaa !47
  %215 = add i16 %214, 1
  store i16 %215, ptr %17, align 2, !tbaa !47
  br label %129, !llvm.loop !50

216:                                              ; preds = %138
  br label %217

217:                                              ; preds = %216, %104
  %218 = getelementptr inbounds %struct.cff_extract_context, ptr %7, i32 0, i32 1
  %219 = load ptr, ptr %218, align 8, !tbaa !16
  %220 = getelementptr inbounds %struct.table_CFFAndGlyf, ptr %4, i32 0, i32 0
  store ptr %219, ptr %220, align 8, !tbaa !9
  %221 = getelementptr inbounds %struct.cff_extract_context, ptr %7, i32 0, i32 4
  store i64 1311768467139281697, ptr %221, align 8, !tbaa !52
  %222 = getelementptr inbounds %struct.cff_extract_context, ptr %7, i32 0, i32 1
  %223 = load ptr, ptr %222, align 8, !tbaa !16
  %224 = getelementptr inbounds %struct._table_CFF, ptr %223, i32 0, i32 17
  %225 = load ptr, ptr %224, align 8, !tbaa !53
  %226 = icmp ne ptr %225, null
  br i1 %226, label %227, label %237

227:                                              ; preds = %217
  %228 = getelementptr inbounds %struct.cff_extract_context, ptr %7, i32 0, i32 1
  %229 = load ptr, ptr %228, align 8, !tbaa !16
  %230 = getelementptr inbounds %struct._table_CFF, ptr %229, i32 0, i32 17
  %231 = load ptr, ptr %230, align 8, !tbaa !53
  %232 = getelementptr inbounds %struct.cff_PrivateDict, ptr %231, i32 0, i32 20
  %233 = load double, ptr %232, align 8, !tbaa !54
  %234 = fptoui double %233 to i64
  %235 = xor i64 %234, 1311768467139281697
  %236 = getelementptr inbounds %struct.cff_extract_context, ptr %7, i32 0, i32 4
  store i64 %235, ptr %236, align 8, !tbaa !52
  br label %237

237:                                              ; preds = %227, %217
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %238 = load ptr, ptr getelementptr inbounds (%struct.__caryll_vectorinterface_table_glyf, ptr @table_iGlyf, i32 0, i32 10), align 8, !tbaa !56
  %239 = load ptr, ptr %16, align 8, !tbaa !5
  %240 = getelementptr inbounds %struct.cff_File, ptr %239, i32 0, i32 11
  %241 = getelementptr inbounds %struct.cff_Index, ptr %240, i32 0, i32 1
  %242 = load i32, ptr %241, align 4, !tbaa !58
  %243 = zext i32 %242 to i64
  %244 = call ptr %238(i64 noundef %243)
  store ptr %244, ptr %18, align 8, !tbaa !5
  %245 = load ptr, ptr %18, align 8, !tbaa !5
  %246 = getelementptr inbounds %struct.cff_extract_context, ptr %7, i32 0, i32 2
  store ptr %245, ptr %246, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 2, ptr %19) #5
  store i16 0, ptr %19, align 2, !tbaa !47
  br label %247

247:                                              ; preds = %258, %237
  %248 = load i16, ptr %19, align 2, !tbaa !47
  %249 = zext i16 %248 to i64
  %250 = load ptr, ptr %18, align 8, !tbaa !5
  %251 = getelementptr inbounds %struct.table_glyf, ptr %250, i32 0, i32 0
  %252 = load i64, ptr %251, align 8, !tbaa !59
  %253 = icmp ult i64 %249, %252
  br i1 %253, label %255, label %254

254:                                              ; preds = %247
  store i32 14, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 2, ptr %19) #5
  br label %261

255:                                              ; preds = %247
  %256 = load i16, ptr %19, align 2, !tbaa !47
  %257 = load ptr, ptr %5, align 8, !tbaa !5
  call void @buildOutline(i16 noundef zeroext %256, ptr noundef %7, ptr noundef %257)
  br label %258

258:                                              ; preds = %255
  %259 = load i16, ptr %19, align 2, !tbaa !47
  %260 = add i16 %259, 1
  store i16 %260, ptr %19, align 2, !tbaa !47
  br label %247, !llvm.loop !61

261:                                              ; preds = %254
  %262 = getelementptr inbounds %struct.cff_extract_context, ptr %7, i32 0, i32 1
  %263 = load ptr, ptr %262, align 8, !tbaa !16
  %264 = getelementptr inbounds %struct.cff_extract_context, ptr %7, i32 0, i32 2
  %265 = load ptr, ptr %264, align 8, !tbaa !17
  %266 = load ptr, ptr %6, align 8, !tbaa !5
  call void @applyCffMatrix(ptr noundef %263, ptr noundef %265, ptr noundef %266)
  call void @nameGlyphsAccordingToCFF(ptr noundef %7)
  %267 = getelementptr inbounds %struct.cff_extract_context, ptr %7, i32 0, i32 2
  %268 = load ptr, ptr %267, align 8, !tbaa !17
  %269 = getelementptr inbounds %struct.table_CFFAndGlyf, ptr %4, i32 0, i32 1
  store ptr %268, ptr %269, align 8, !tbaa !11
  %270 = load ptr, ptr %16, align 8, !tbaa !5
  call void @cff_close(ptr noundef %270)
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %271

271:                                              ; preds = %261
  store i32 0, ptr %13, align 4, !tbaa !19
  store i32 0, ptr %10, align 4, !tbaa !19
  br label %56, !llvm.loop !62

272:                                              ; preds = %59
  br label %273

273:                                              ; preds = %272, %51
  br label %274

274:                                              ; preds = %273
  %275 = load i32, ptr %8, align 4, !tbaa !19
  %276 = icmp ne i32 %275, 0
  %277 = xor i1 %276, true
  %278 = zext i1 %277 to i32
  store i32 %278, ptr %8, align 4, !tbaa !19
  br label %47, !llvm.loop !63

279:                                              ; preds = %50
  br label %280

280:                                              ; preds = %279
  %281 = load i32, ptr %8, align 4, !tbaa !19
  %282 = icmp ne i32 %281, 0
  %283 = xor i1 %282, true
  %284 = zext i1 %283 to i32
  store i32 %284, ptr %8, align 4, !tbaa !19
  %285 = load i32, ptr %9, align 4, !tbaa !19
  %286 = add nsw i32 %285, 1
  store i32 %286, ptr %9, align 4, !tbaa !19
  br label %26, !llvm.loop !64

287:                                              ; preds = %40
  store i32 1, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 40, ptr %7) #5
  %288 = load { ptr, ptr }, ptr %4, align 8
  ret { ptr, ptr } %288
}

; 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

declare ptr @cff_openStream(ptr noundef, i32 noundef, ptr noundef) #3

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

declare ptr @sdsget_cff_sid(i16 noundef zeroext, ptr noundef byval(%struct.cff_Index) align 8) #3

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

declare ptr @sdscatprintf(ptr noundef, ptr noundef, ...) #3

declare ptr @sdsempty() #3

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

; Function Attrs: nounwind uwtable
declare hidden void @buildOutline(i16 noundef zeroext, ptr noundef, ptr noundef) #0

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

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

declare void @cff_close(ptr noundef) #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 = { 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 = { 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 #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, !6, i64 0}
!10 = !{!"", !6, i64 0, !6, i64 8}
!11 = !{!10, !6, i64 8}
!12 = !{!13, !14, i64 0}
!13 = !{!"", !14, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !15, i64 32}
!14 = !{!"int", !7, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!13, !6, i64 8}
!17 = !{!13, !6, i64 16}
!18 = !{!13, !6, i64 24}
!19 = !{!14, !14, i64 0}
!20 = !{!21, !22, i64 4}
!21 = !{!"", !14, i64 0, !22, i64 4, !22, i64 6, !22, i64 8, !22, i64 10, !6, i64 16}
!22 = !{!"short", !7, i64 0}
!23 = !{!21, !6, i64 16}
!24 = !{i64 0, i64 4, !19, i64 4, i64 4, !19, i64 8, i64 4, !19, i64 12, i64 4, !19, i64 16, i64 8, !5}
!25 = !{!26, !14, i64 0}
!26 = !{!"", !14, i64 0, !14, i64 4, !14, i64 8, !14, i64 12, !6, i64 16}
!27 = !{!26, !6, i64 16}
!28 = !{!26, !14, i64 12}
!29 = !{!30, !6, i64 48}
!30 = !{!"__caryll_elementinterface_table_CFF", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56}
!31 = !{!32, !6, i64 72}
!32 = !{!"__caryll_elementinterface_cff_Dict", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88}
!33 = !{!34, !6, i64 80}
!34 = !{!"", !6, i64 0, !14, i64 8, !22, i64 12, !35, i64 14, !36, i64 24, !36, i64 56, !36, i64 88, !36, i64 120, !37, i64 152, !38, i64 176, !38, i64 200, !36, i64 232, !36, i64 264, !36, i64 296}
!35 = !{!"", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3}
!36 = !{!"", !14, i64 0, !14, i64 4, !7, i64 8, !6, i64 16, !6, i64 24}
!37 = !{!"", !14, i64 0, !7, i64 8}
!38 = !{!"", !14, i64 0, !14, i64 4, !7, i64 8}
!39 = !{!34, !6, i64 72}
!40 = !{!41, !6, i64 0}
!41 = !{!"_table_CFF", !6, i64 0, !42, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !42, i64 64, !43, i64 72, !43, i64 80, !43, i64 88, !43, i64 96, !43, i64 104, !43, i64 112, !43, i64 120, !43, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !14, i64 168, !43, i64 176, !43, i64 184, !14, i64 192, !14, i64 196, !22, i64 200, !6, i64 208}
!42 = !{!"_Bool", !7, i64 0}
!43 = !{!"double", !7, i64 0}
!44 = !{!34, !14, i64 268}
!45 = !{!41, !22, i64 200}
!46 = !{!41, !6, i64 208}
!47 = !{!22, !22, i64 0}
!48 = !{!34, !6, i64 288}
!49 = !{!34, !6, i64 280}
!50 = distinct !{!50, !51}
!51 = !{!"llvm.loop.mustprogress"}
!52 = !{!13, !15, i64 32}
!53 = !{!41, !6, i64 136}
!54 = !{!55, !43, i64 152}
!55 = !{!"", !14, i64 0, !6, i64 8, !14, i64 16, !6, i64 24, !14, i64 32, !6, i64 40, !14, i64 48, !6, i64 56, !43, i64 64, !43, i64 72, !43, i64 80, !43, i64 88, !43, i64 96, !14, i64 104, !6, i64 112, !14, i64 120, !6, i64 128, !42, i64 136, !14, i64 140, !43, i64 144, !43, i64 152, !43, i64 160, !43, i64 168}
!56 = !{!57, !6, i64 80}
!57 = !{!"__caryll_vectorinterface_table_glyf", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144}
!58 = !{!34, !14, i64 236}
!59 = !{!60, !15, i64 0}
!60 = !{!"", !15, i64 0, !15, i64 8, !6, i64 16}
!61 = distinct !{!61, !51}
!62 = distinct !{!62, !51}
!63 = distinct !{!63, !51}
!64 = distinct !{!64, !51}


; 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.__caryll_elementinterface_table_CFF = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.__caryll_elementinterface_cff_Dict = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.__caryll_vectorinterface_table_glyf = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.otfcc_Packet = type { i32, i16, i16, i16, i16, ptr }
%struct.cff_extract_context = type { i32, ptr, ptr, ptr, i64 }
%struct.otfcc_PacketPiece = type { i32, i32, i32, i32, ptr }
%struct.cff_Index = type { i32, i32, i8, ptr, ptr }

@table_iCFF = external dso_local local_unnamed_addr constant %struct.__caryll_elementinterface_table_CFF, align 8
@cff_iDict = external local_unnamed_addr constant %struct.__caryll_elementinterface_cff_Dict, align 8
@.str = external hidden unnamed_addr constant [11 x i8], align 1
@table_iGlyf = external local_unnamed_addr constant %struct.__caryll_vectorinterface_table_glyf, align 8

; Function Attrs: nounwind uwtable
define dso_local { ptr, ptr } @otfcc_readCFFAndGlyfTables(ptr nocapture noundef readonly byval(%struct.otfcc_Packet) align 8 %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #0 {
  %4 = alloca %struct.cff_extract_context, align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %4) #5
  store i32 -1, ptr %4, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %4, i64 8
  %6 = getelementptr inbounds i8, ptr %4, i64 16
  %7 = getelementptr inbounds i8, ptr %4, i64 24
  %8 = getelementptr inbounds i8, ptr %0, i64 4
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %5, i8 0, i64 24, i1 false)
  %9 = load i16, ptr %8, align 4
  %.not77 = icmp eq i16 %9, 0
  br i1 %.not77, label %.critedge, label %.lr.ph

.lr.ph:                                           ; preds = %3
  %10 = getelementptr inbounds i8, ptr %0, i64 16
  %11 = load ptr, ptr %10, align 8, !tbaa !12
  %12 = load ptr, ptr getelementptr inbounds (i8, ptr @table_iCFF, i64 48), align 8
  %13 = load ptr, ptr getelementptr inbounds (i8, ptr @cff_iDict, i64 72), align 8
  %14 = getelementptr inbounds i8, ptr %4, i64 32
  %15 = load ptr, ptr getelementptr inbounds (i8, ptr @table_iGlyf, i64 80), align 8
  %16 = zext i16 %9 to i64
  br label %17

.critedge:                                        ; preds = %.split, %3
  %.sroa.043.0.lcssa = phi ptr [ null, %3 ], [ %.us-phi71, %.split ]
  %.sroa.3.0.lcssa = phi ptr [ null, %3 ], [ %.us-phi72, %.split ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #5
  %.fca.0.insert = insertvalue { ptr, ptr } poison, ptr %.sroa.043.0.lcssa, 0
  %.fca.1.insert = insertvalue { ptr, ptr } %.fca.0.insert, ptr %.sroa.3.0.lcssa, 1
  ret { ptr, ptr } %.fca.1.insert

17:                                               ; preds = %.lr.ph, %.split
  %indvars.iv80 = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next81, %.split ]
  %.sroa.3.075 = phi ptr [ null, %.lr.ph ], [ %.us-phi72, %.split ]
  %.sroa.043.074 = phi ptr [ null, %.lr.ph ], [ %.us-phi71, %.split ]
  %18 = getelementptr inbounds %struct.otfcc_PacketPiece, ptr %11, i64 %indvars.iv80
  %.sroa.0.0.copyload = load i32, ptr %18, align 8, !tbaa !15
  %19 = icmp ne i32 %.sroa.0.0.copyload, 1128678944
  br i1 %19, label %.split, label %.preheader.us

.preheader.us:                                    ; preds = %17
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %18, i64 16
  %.sroa.5.0.copyload = load ptr, ptr %.sroa.5.0..sroa_idx, align 8, !tbaa !16
  %.sroa.431.0..sroa_idx = getelementptr inbounds i8, ptr %18, i64 12
  %.sroa.431.0.copyload = load i32, ptr %.sroa.431.0..sroa_idx, align 4, !tbaa !15
  %20 = call ptr @cff_openStream(ptr noundef %.sroa.5.0.copyload, i32 noundef %.sroa.431.0.copyload, ptr noundef %1) #5
  store ptr %20, ptr %7, align 8, !tbaa !17
  %21 = call ptr (...) %12() #5
  store ptr %21, ptr %5, align 8, !tbaa !18
  %22 = getelementptr inbounds i8, ptr %20, i64 80
  %23 = load ptr, ptr %22, align 8, !tbaa !19
  %24 = getelementptr inbounds i8, ptr %20, i64 72
  %25 = load ptr, ptr %24, align 8, !tbaa !25
  %26 = getelementptr inbounds i8, ptr %25, i64 4
  %27 = load i32, ptr %26, align 4, !tbaa !15
  %28 = load i32, ptr %25, align 4, !tbaa !15
  %29 = sub i32 %27, %28
  call void %13(ptr noundef %23, i32 noundef %29, ptr noundef nonnull %4, ptr noundef nonnull @callback_extract_fd) #5
  %30 = load ptr, ptr %5, align 8, !tbaa !18
  %31 = load ptr, ptr %30, align 8, !tbaa !26
  %.not55.us = icmp eq ptr %31, null
  br i1 %.not55.us, label %32, label %36

32:                                               ; preds = %.preheader.us
  %33 = getelementptr inbounds i8, ptr %20, i64 24
  %34 = call ptr @sdsget_cff_sid(i16 noundef zeroext 391, ptr noundef nonnull byval(%struct.cff_Index) align 8 %33) #5
  %35 = load ptr, ptr %5, align 8, !tbaa !18
  store ptr %34, ptr %35, align 8, !tbaa !26
  br label %36

36:                                               ; preds = %32, %.preheader.us
  %37 = phi ptr [ %35, %32 ], [ %30, %.preheader.us ]
  %38 = getelementptr inbounds i8, ptr %20, i64 268
  %39 = load i32, ptr %38, align 4, !tbaa !30
  %.not56.us = icmp eq i32 %39, 0
  br i1 %.not56.us, label %.loopexit.us, label %40

40:                                               ; preds = %36
  %41 = trunc i32 %39 to i16
  %42 = getelementptr inbounds i8, ptr %37, i64 200
  store i16 %41, ptr %42, align 8, !tbaa !31
  %.mask.us = shl i32 %39, 3
  %43 = and i32 %.mask.us, 524280
  %44 = zext nneg i32 %43 to i64
  %45 = call ptr @__caryll_allocate_clean(i64 noundef %44, i64 noundef 637)
  %46 = load ptr, ptr %5, align 8, !tbaa !18
  %47 = getelementptr inbounds i8, ptr %46, i64 208
  store ptr %45, ptr %47, align 8, !tbaa !32
  %48 = getelementptr inbounds i8, ptr %46, i64 200
  %49 = load i16, ptr %48, align 8, !tbaa !31
  %.not78 = icmp eq i16 %49, 0
  br i1 %.not78, label %.loopexit.us, label %.lr.ph.us

50:                                               ; preds = %.lr.ph.us, %81
  %indvars.iv = phi i64 [ 0, %.lr.ph.us ], [ %indvars.iv.next, %81 ]
  %51 = phi i32 [ 0, %.lr.ph.us ], [ %83, %81 ]
  %52 = call ptr (...) %12() #5
  %53 = load ptr, ptr %5, align 8, !tbaa !18
  %54 = getelementptr inbounds i8, ptr %53, i64 208
  %55 = load ptr, ptr %54, align 8, !tbaa !32
  %56 = getelementptr inbounds ptr, ptr %55, i64 %indvars.iv
  store ptr %52, ptr %56, align 8, !tbaa !16
  store i32 %51, ptr %4, align 8, !tbaa !5
  %57 = load ptr, ptr %109, align 8, !tbaa !33
  %58 = load ptr, ptr %110, align 8, !tbaa !34
  %59 = getelementptr inbounds i32, ptr %58, i64 %indvars.iv
  %60 = load i32, ptr %59, align 4, !tbaa !15
  %61 = zext i32 %60 to i64
  %62 = getelementptr inbounds i8, ptr %57, i64 %61
  %63 = getelementptr inbounds i8, ptr %62, i64 -1
  %64 = getelementptr inbounds i8, ptr %59, i64 4
  %65 = load i32, ptr %64, align 4, !tbaa !15
  %66 = sub i32 %65, %60
  call void %13(ptr noundef nonnull %63, i32 noundef %66, ptr noundef nonnull %4, ptr noundef nonnull @callback_extract_fd) #5
  %67 = load ptr, ptr %5, align 8, !tbaa !18
  %68 = getelementptr inbounds i8, ptr %67, i64 208
  %69 = load ptr, ptr %68, align 8, !tbaa !32
  %70 = getelementptr inbounds ptr, ptr %69, i64 %indvars.iv
  %71 = load ptr, ptr %70, align 8, !tbaa !16
  %72 = load ptr, ptr %71, align 8, !tbaa !26
  %.not58.us = icmp eq ptr %72, null
  br i1 %.not58.us, label %73, label %81

73:                                               ; preds = %50
  %74 = call ptr @sdsempty() #5
  %75 = call ptr (ptr, ptr, ...) @sdscatprintf(ptr noundef %74, ptr noundef nonnull @.str, i32 noundef %51) #5
  %76 = load ptr, ptr %5, align 8, !tbaa !18
  %77 = getelementptr inbounds i8, ptr %76, i64 208
  %78 = load ptr, ptr %77, align 8, !tbaa !32
  %79 = getelementptr inbounds ptr, ptr %78, i64 %indvars.iv
  %80 = load ptr, ptr %79, align 8, !tbaa !16
  store ptr %75, ptr %80, align 8, !tbaa !26
  br label %81

81:                                               ; preds = %73, %50
  %82 = phi ptr [ %76, %73 ], [ %67, %50 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %83 = trunc nuw i64 %indvars.iv.next to i32
  %84 = getelementptr inbounds i8, ptr %82, i64 200
  %85 = load i16, ptr %84, align 8, !tbaa !31
  %86 = zext i16 %85 to i64
  %87 = icmp ult i64 %indvars.iv.next, %86
  br i1 %87, label %50, label %.loopexit.us, !llvm.loop !35

.loopexit.us:                                     ; preds = %81, %40, %36
  %88 = phi ptr [ %46, %40 ], [ %37, %36 ], [ %82, %81 ]
  store i64 1311768467139281697, ptr %14, align 8, !tbaa !37
  %89 = getelementptr inbounds i8, ptr %88, i64 136
  %90 = load ptr, ptr %89, align 8, !tbaa !38
  %.not57.us = icmp eq ptr %90, null
  br i1 %.not57.us, label %96, label %91

91:                                               ; preds = %.loopexit.us
  %92 = getelementptr inbounds i8, ptr %90, i64 152
  %93 = load double, ptr %92, align 8, !tbaa !39
  %94 = fptoui double %93 to i64
  %95 = xor i64 %94, 1311768467139281697
  store i64 %95, ptr %14, align 8, !tbaa !37
  br label %96

96:                                               ; preds = %91, %.loopexit.us
  %97 = getelementptr inbounds i8, ptr %20, i64 236
  %98 = load i32, ptr %97, align 4, !tbaa !41
  %99 = zext i32 %98 to i64
  %100 = call ptr %15(i64 noundef %99) #5
  store ptr %100, ptr %6, align 8, !tbaa !42
  %101 = load i64, ptr %100, align 8, !tbaa !43
  %.not79 = icmp eq i64 %101, 0
  br i1 %.not79, label %.loopexit62.us, label %.lr.ph65.us

.loopexit62.us.loopexit:                          ; preds = %.lr.ph65.us
  %.pre = load ptr, ptr %6, align 8, !tbaa !42
  br label %.loopexit62.us

.loopexit62.us:                                   ; preds = %.loopexit62.us.loopexit, %96
  %102 = phi ptr [ %.pre, %.loopexit62.us.loopexit ], [ %100, %96 ]
  %103 = load ptr, ptr %5, align 8, !tbaa !18
  call void @applyCffMatrix(ptr noundef %103, ptr noundef %102, ptr noundef %2)
  call void @nameGlyphsAccordingToCFF(ptr noundef nonnull %4)
  %104 = load ptr, ptr %6, align 8, !tbaa !42
  call void @cff_close(ptr noundef %20) #5
  br label %.split

.lr.ph65.us:                                      ; preds = %96, %.lr.ph65.us
  %.064.us = phi i16 [ %105, %.lr.ph65.us ], [ 0, %96 ]
  call void @buildOutline(i16 noundef zeroext %.064.us, ptr noundef nonnull %4, ptr noundef %1)
  %105 = add i16 %.064.us, 1
  %106 = zext i16 %105 to i64
  %107 = load i64, ptr %100, align 8, !tbaa !43
  %108 = icmp ugt i64 %107, %106
  br i1 %108, label %.lr.ph65.us, label %.loopexit62.us.loopexit, !llvm.loop !45

.lr.ph.us:                                        ; preds = %40
  %109 = getelementptr inbounds i8, ptr %20, i64 288
  %110 = getelementptr inbounds i8, ptr %20, i64 280
  br label %50

.split:                                           ; preds = %17, %.loopexit62.us
  %.us-phi71 = phi ptr [ %88, %.loopexit62.us ], [ %.sroa.043.074, %17 ]
  %.us-phi72 = phi ptr [ %104, %.loopexit62.us ], [ %.sroa.3.075, %17 ]
  %indvars.iv.next81 = add nuw nsw i64 %indvars.iv80, 1
  %111 = icmp ult i64 %indvars.iv.next81, %16
  %or.cond = select i1 %19, i1 %111, i1 false
  br i1 %or.cond, label %17, label %.critedge, !llvm.loop !46
}

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

declare ptr @cff_openStream(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

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

declare ptr @sdsget_cff_sid(i16 noundef zeroext, ptr noundef byval(%struct.cff_Index) align 8) local_unnamed_addr #2

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

declare ptr @sdscatprintf(ptr noundef, ptr noundef, ...) local_unnamed_addr #2

declare ptr @sdsempty() local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
declare hidden void @buildOutline(i16 noundef zeroext, ptr noundef, ptr noundef) local_unnamed_addr #0

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

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

declare void @cff_close(ptr noundef) local_unnamed_addr #2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

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 = { 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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, !7, i64 0}
!6 = !{!"", !7, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !11, i64 32}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"long", !8, i64 0}
!12 = !{!13, !10, i64 16}
!13 = !{!"", !7, i64 0, !14, i64 4, !14, i64 6, !14, i64 8, !14, i64 10, !10, i64 16}
!14 = !{!"short", !8, i64 0}
!15 = !{!7, !7, i64 0}
!16 = !{!10, !10, i64 0}
!17 = !{!6, !10, i64 24}
!18 = !{!6, !10, i64 8}
!19 = !{!20, !10, i64 80}
!20 = !{!"", !10, i64 0, !7, i64 8, !14, i64 12, !21, i64 14, !22, i64 24, !22, i64 56, !22, i64 88, !22, i64 120, !23, i64 152, !24, i64 176, !24, i64 200, !22, i64 232, !22, i64 264, !22, i64 296}
!21 = !{!"", !8, i64 0, !8, i64 1, !8, i64 2, !8, i64 3}
!22 = !{!"", !7, i64 0, !7, i64 4, !8, i64 8, !10, i64 16, !10, i64 24}
!23 = !{!"", !7, i64 0, !8, i64 8}
!24 = !{!"", !7, i64 0, !7, i64 4, !8, i64 8}
!25 = !{!20, !10, i64 72}
!26 = !{!27, !10, i64 0}
!27 = !{!"_table_CFF", !10, i64 0, !28, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !28, i64 64, !29, i64 72, !29, i64 80, !29, i64 88, !29, i64 96, !29, i64 104, !29, i64 112, !29, i64 120, !29, i64 128, !10, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !7, i64 168, !29, i64 176, !29, i64 184, !7, i64 192, !7, i64 196, !14, i64 200, !10, i64 208}
!28 = !{!"_Bool", !8, i64 0}
!29 = !{!"double", !8, i64 0}
!30 = !{!20, !7, i64 268}
!31 = !{!27, !14, i64 200}
!32 = !{!27, !10, i64 208}
!33 = !{!20, !10, i64 288}
!34 = !{!20, !10, i64 280}
!35 = distinct !{!35, !36}
!36 = !{!"llvm.loop.mustprogress"}
!37 = !{!6, !11, i64 32}
!38 = !{!27, !10, i64 136}
!39 = !{!40, !29, i64 152}
!40 = !{!"", !7, i64 0, !10, i64 8, !7, i64 16, !10, i64 24, !7, i64 32, !10, i64 40, !7, i64 48, !10, i64 56, !29, i64 64, !29, i64 72, !29, i64 80, !29, i64 88, !29, i64 96, !7, i64 104, !10, i64 112, !7, i64 120, !10, i64 128, !28, i64 136, !7, i64 140, !29, i64 144, !29, i64 152, !29, i64 160, !29, i64 168}
!41 = !{!20, !7, i64 236}
!42 = !{!6, !10, i64 16}
!43 = !{!44, !11, i64 0}
!44 = !{!"", !11, i64 0, !11, i64 8, !10, i64 16}
!45 = distinct !{!45, !36}
!46 = distinct !{!46, !36}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,PostOrderFunctionAttrsPass,SCCPPass,SROAPass,SimplifyCFGPass