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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.CF2_HintMaskRec_ = type { ptr, i8, i8, i64, i64, [12 x i8] }
%struct.CF2_HintRec_ = type { i32, i64, i32, i32, i32 }
%struct.CF2_HintMapRec_ = type { ptr, ptr, ptr, i8, i8, i32, i32, i32, [192 x %struct.CF2_HintRec_] }
%struct.CF2_FontRec_ = type { ptr, i32, i8, i8, i32, %struct.CF2_Matrix_, %struct.CF2_Matrix_, %struct.CF2_Matrix_, i32, %struct.CFF_BlendRec_, i32, i32, ptr, i32, i32, i32, %struct.CF2_OutlineRec_, ptr, ptr, i8, i8, i8, [8 x i32], i32, i32, i32, i32, i8, %struct.CF2_BluesRec_, ptr }
%struct.CF2_Matrix_ = type { i32, i32, i32, i32, i32, i32 }
%struct.CFF_BlendRec_ = type { i8, i8, ptr, i32, i32, ptr, i32, ptr }
%struct.CF2_OutlineRec_ = type { %struct.CF2_OutlineCallbacksRec_, ptr }
%struct.CF2_OutlineCallbacksRec_ = type { ptr, ptr, ptr, ptr, i32, ptr, ptr }
%struct.CF2_BluesRec_ = type { i32, i32, i8, i8, i32, i32, i32, i32, %struct.CF2_HintRec_, %struct.CF2_HintRec_, [12 x %struct.CF2_BlueRec_] }
%struct.CF2_BlueRec_ = type { i32, i32, i32, i32, i8 }
%struct.CF2_StemHintRec_ = type { i8, i32, i32, i32, i32 }

; Function Attrs: nounwind uwtable
declare hidden zeroext i8 @cf2_hint_isTop(ptr noundef) #0

; Function Attrs: nounwind uwtable
define hidden void @cf2_hintmap_build(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, i8 noundef zeroext %5) #0 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i8, align 1
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca %struct.CF2_HintMaskRec_, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i8, align 1
  %19 = alloca i32, align 4
  %20 = alloca %struct.CF2_HintRec_, align 8
  %21 = alloca %struct.CF2_HintRec_, align 8
  %22 = alloca %struct.CF2_HintRec_, align 8
  %23 = alloca %struct.CF2_HintRec_, align 8
  %24 = alloca %struct.CF2_HintRec_, align 8
  %25 = alloca %struct.CF2_HintRec_, align 8
  %26 = alloca %struct.CF2_HintRec_, align 8
  %27 = alloca ptr, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store i32 %4, ptr %11, align 4, !tbaa !9
  store i8 %5, ptr %12, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %28 = load ptr, ptr %7, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.CF2_HintMapRec_, ptr %28, i32 0, i32 0
  %30 = load ptr, ptr %29, align 8, !tbaa !12
  store ptr %30, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 48, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #4
  %31 = load i8, ptr %12, align 1, !tbaa !11
  %32 = icmp ne i8 %31, 0
  br i1 %32, label %49, label %33

33:                                               ; preds = %6
  %34 = load ptr, ptr %7, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.CF2_HintMapRec_, ptr %34, i32 0, i32 1
  %36 = load ptr, ptr %35, align 8, !tbaa !14
  %37 = call zeroext i8 @cf2_hintmap_isValid(ptr noundef %36)
  %38 = icmp ne i8 %37, 0
  br i1 %38, label %49, label %39

39:                                               ; preds = %33
  %40 = load ptr, ptr %10, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.CF2_HintMaskRec_, ptr %40, i32 0, i32 0
  %42 = load ptr, ptr %41, align 8, !tbaa !15
  call void @cf2_hintmask_init(ptr noundef %15, ptr noundef %42)
  %43 = load ptr, ptr %7, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.CF2_HintMapRec_, ptr %43, i32 0, i32 1
  %45 = load ptr, ptr %44, align 8, !tbaa !14
  %46 = load ptr, ptr %8, align 8, !tbaa !5
  %47 = load ptr, ptr %9, align 8, !tbaa !5
  %48 = load i32, ptr %11, align 4, !tbaa !9
  call void @cf2_hintmap_build(ptr noundef %45, ptr noundef %46, ptr noundef %47, ptr noundef %15, i32 noundef %48, i8 noundef zeroext 1)
  br label %49

49:                                               ; preds = %39, %33, %6
  %50 = load ptr, ptr %10, align 8, !tbaa !5
  %51 = call zeroext i8 @cf2_hintmask_isValid(ptr noundef %50)
  %52 = icmp ne i8 %51, 0
  br i1 %52, label %76, label %53

53:                                               ; preds = %49
  %54 = load ptr, ptr %10, align 8, !tbaa !5
  %55 = load ptr, ptr %8, align 8, !tbaa !5
  %56 = call i64 @cf2_arrstack_size(ptr noundef %55)
  %57 = load ptr, ptr %9, align 8, !tbaa !5
  %58 = call i64 @cf2_arrstack_size(ptr noundef %57)
  %59 = add i64 %56, %58
  call void @cf2_hintmask_setAll(ptr noundef %54, i64 noundef %59)
  %60 = load ptr, ptr %10, align 8, !tbaa !5
  %61 = call zeroext i8 @cf2_hintmask_isValid(ptr noundef %60)
  %62 = icmp ne i8 %61, 0
  br i1 %62, label %75, label %63

63:                                               ; preds = %53
  %64 = load ptr, ptr %14, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.CF2_FontRec_, ptr %64, i32 0, i32 2
  %66 = load i8, ptr %65, align 4, !tbaa !18
  %67 = icmp ne i8 %66, 0
  br i1 %67, label %68, label %74

68:                                               ; preds = %63
  %69 = load ptr, ptr %10, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.CF2_HintMaskRec_, ptr %69, i32 0, i32 0
  %71 = load ptr, ptr %70, align 8, !tbaa !15
  store i32 0, ptr %71, align 4, !tbaa !9
  %72 = load ptr, ptr %7, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.CF2_HintMapRec_, ptr %72, i32 0, i32 4
  store i8 0, ptr %73, align 1, !tbaa !26
  br label %74

74:                                               ; preds = %68, %63
  store i32 1, ptr %19, align 4
  br label %325

75:                                               ; preds = %53
  br label %76

76:                                               ; preds = %75, %49
  %77 = load ptr, ptr %7, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.CF2_HintMapRec_, ptr %77, i32 0, i32 6
  store i32 0, ptr %78, align 8, !tbaa !27
  %79 = load ptr, ptr %7, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.CF2_HintMapRec_, ptr %79, i32 0, i32 7
  store i32 0, ptr %80, align 4, !tbaa !28
  %81 = load ptr, ptr %10, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %15, ptr align 8 %81, i64 48, i1 false), !tbaa.struct !29
  %82 = call ptr @cf2_hintmask_getMaskPtr(ptr noundef %15)
  store ptr %82, ptr %13, align 8, !tbaa !5
  %83 = load ptr, ptr %8, align 8, !tbaa !5
  %84 = call i64 @cf2_arrstack_size(ptr noundef %83)
  store i64 %84, ptr %16, align 8, !tbaa !30
  %85 = load i64, ptr %16, align 8, !tbaa !30
  %86 = load ptr, ptr %10, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.CF2_HintMaskRec_, ptr %86, i32 0, i32 3
  %88 = load i64, ptr %87, align 8, !tbaa !31
  %89 = icmp ugt i64 %85, %88
  br i1 %89, label %90, label %91

90:                                               ; preds = %76
  store i32 1, ptr %19, align 4
  br label %325

91:                                               ; preds = %76
  %92 = load ptr, ptr %14, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.CF2_FontRec_, ptr %92, i32 0, i32 28
  %94 = getelementptr inbounds %struct.CF2_BluesRec_, ptr %93, i32 0, i32 3
  %95 = load i8, ptr %94, align 1, !tbaa !32
  %96 = icmp ne i8 %95, 0
  br i1 %96, label %97, label %106

97:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 32, ptr %20) #4
  call void @cf2_hint_initZero(ptr noundef %20)
  %98 = load ptr, ptr %7, align 8, !tbaa !5
  %99 = load ptr, ptr %14, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.CF2_FontRec_, ptr %99, i32 0, i32 28
  %101 = getelementptr inbounds %struct.CF2_BluesRec_, ptr %100, i32 0, i32 9
  call void @cf2_hintmap_insertHint(ptr noundef %98, ptr noundef %101, ptr noundef %20)
  %102 = load ptr, ptr %7, align 8, !tbaa !5
  %103 = load ptr, ptr %14, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.CF2_FontRec_, ptr %103, i32 0, i32 28
  %105 = getelementptr inbounds %struct.CF2_BluesRec_, ptr %104, i32 0, i32 8
  call void @cf2_hintmap_insertHint(ptr noundef %102, ptr noundef %20, ptr noundef %105)
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #4
  br label %106

106:                                              ; preds = %97, %91
  store i64 0, ptr %17, align 8, !tbaa !30
  store i8 -128, ptr %18, align 1, !tbaa !11
  br label %107

107:                                              ; preds = %171, %106
  %108 = load i64, ptr %17, align 8, !tbaa !30
  %109 = load i64, ptr %16, align 8, !tbaa !30
  %110 = icmp ult i64 %108, %109
  br i1 %110, label %111, label %174

111:                                              ; preds = %107
  %112 = load i8, ptr %18, align 1, !tbaa !11
  %113 = zext i8 %112 to i32
  %114 = load ptr, ptr %13, align 8, !tbaa !5
  %115 = load i8, ptr %114, align 1, !tbaa !11
  %116 = zext i8 %115 to i32
  %117 = and i32 %113, %116
  %118 = icmp ne i32 %117, 0
  br i1 %118, label %119, label %158

119:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 32, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr %22) #4
  %120 = load ptr, ptr %8, align 8, !tbaa !5
  %121 = load i64, ptr %17, align 8, !tbaa !30
  %122 = load ptr, ptr %14, align 8, !tbaa !5
  %123 = load i32, ptr %11, align 4, !tbaa !9
  %124 = load ptr, ptr %7, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.CF2_HintMapRec_, ptr %124, i32 0, i32 5
  %126 = load i32, ptr %125, align 4, !tbaa !33
  call void @cf2_hint_init(ptr noundef %21, ptr noundef %120, i64 noundef %121, ptr noundef %122, i32 noundef %123, i32 noundef %126, i8 noundef zeroext 1)
  %127 = load ptr, ptr %8, align 8, !tbaa !5
  %128 = load i64, ptr %17, align 8, !tbaa !30
  %129 = load ptr, ptr %14, align 8, !tbaa !5
  %130 = load i32, ptr %11, align 4, !tbaa !9
  %131 = load ptr, ptr %7, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.CF2_HintMapRec_, ptr %131, i32 0, i32 5
  %133 = load i32, ptr %132, align 4, !tbaa !33
  call void @cf2_hint_init(ptr noundef %22, ptr noundef %127, i64 noundef %128, ptr noundef %129, i32 noundef %130, i32 noundef %133, i8 noundef zeroext 0)
  %134 = call zeroext i8 @cf2_hint_isLocked(ptr noundef %21)
  %135 = zext i8 %134 to i32
  %136 = icmp ne i32 %135, 0
  br i1 %136, label %147, label %137

137:                                              ; preds = %119
  %138 = call zeroext i8 @cf2_hint_isLocked(ptr noundef %22)
  %139 = zext i8 %138 to i32
  %140 = icmp ne i32 %139, 0
  br i1 %140, label %147, label %141

141:                                              ; preds = %137
  %142 = load ptr, ptr %14, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.CF2_FontRec_, ptr %142, i32 0, i32 28
  %144 = call zeroext i8 @cf2_blues_capture(ptr noundef %143, ptr noundef %21, ptr noundef %22)
  %145 = zext i8 %144 to i32
  %146 = icmp ne i32 %145, 0
  br i1 %146, label %147, label %157

147:                                              ; preds = %141, %137, %119
  %148 = load ptr, ptr %7, align 8, !tbaa !5
  call void @cf2_hintmap_insertHint(ptr noundef %148, ptr noundef %21, ptr noundef %22)
  %149 = load i8, ptr %18, align 1, !tbaa !11
  %150 = zext i8 %149 to i32
  %151 = xor i32 %150, -1
  %152 = load ptr, ptr %13, align 8, !tbaa !5
  %153 = load i8, ptr %152, align 1, !tbaa !11
  %154 = zext i8 %153 to i32
  %155 = and i32 %154, %151
  %156 = trunc i32 %155 to i8
  store i8 %156, ptr %152, align 1, !tbaa !11
  br label %157

157:                                              ; preds = %147, %141
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #4
  br label %158

158:                                              ; preds = %157, %111
  %159 = load i64, ptr %17, align 8, !tbaa !30
  %160 = and i64 %159, 7
  %161 = icmp eq i64 %160, 7
  br i1 %161, label %162, label %165

162:                                              ; preds = %158
  %163 = load ptr, ptr %13, align 8, !tbaa !5
  %164 = getelementptr inbounds i8, ptr %163, i32 1
  store ptr %164, ptr %13, align 8, !tbaa !5
  store i8 -128, ptr %18, align 1, !tbaa !11
  br label %170

165:                                              ; preds = %158
  %166 = load i8, ptr %18, align 1, !tbaa !11
  %167 = zext i8 %166 to i32
  %168 = ashr i32 %167, 1
  %169 = trunc i32 %168 to i8
  store i8 %169, ptr %18, align 1, !tbaa !11
  br label %170

170:                                              ; preds = %165, %162
  br label %171

171:                                              ; preds = %170
  %172 = load i64, ptr %17, align 8, !tbaa !30
  %173 = add i64 %172, 1
  store i64 %173, ptr %17, align 8, !tbaa !30
  br label %107, !llvm.loop !34

174:                                              ; preds = %107
  %175 = load i8, ptr %12, align 1, !tbaa !11
  %176 = icmp ne i8 %175, 0
  br i1 %176, label %177, label %209

177:                                              ; preds = %174
  %178 = load ptr, ptr %7, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.CF2_HintMapRec_, ptr %178, i32 0, i32 6
  %180 = load i32, ptr %179, align 8, !tbaa !27
  %181 = icmp eq i32 %180, 0
  br i1 %181, label %201, label %182

182:                                              ; preds = %177
  %183 = load ptr, ptr %7, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.CF2_HintMapRec_, ptr %183, i32 0, i32 8
  %185 = getelementptr inbounds [192 x %struct.CF2_HintRec_], ptr %184, i64 0, i64 0
  %186 = getelementptr inbounds %struct.CF2_HintRec_, ptr %185, i32 0, i32 2
  %187 = load i32, ptr %186, align 8, !tbaa !36
  %188 = icmp sgt i32 %187, 0
  br i1 %188, label %201, label %189

189:                                              ; preds = %182
  %190 = load ptr, ptr %7, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.CF2_HintMapRec_, ptr %190, i32 0, i32 8
  %192 = load ptr, ptr %7, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.CF2_HintMapRec_, ptr %192, i32 0, i32 6
  %194 = load i32, ptr %193, align 8, !tbaa !27
  %195 = sub i32 %194, 1
  %196 = zext i32 %195 to i64
  %197 = getelementptr inbounds [192 x %struct.CF2_HintRec_], ptr %191, i64 0, i64 %196
  %198 = getelementptr inbounds %struct.CF2_HintRec_, ptr %197, i32 0, i32 2
  %199 = load i32, ptr %198, align 8, !tbaa !36
  %200 = icmp slt i32 %199, 0
  br i1 %200, label %201, label %208

201:                                              ; preds = %189, %182, %177
  call void @llvm.lifetime.start.p0(i64 32, ptr %23) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr %24) #4
  call void @cf2_hint_initZero(ptr noundef %23)
  %202 = getelementptr inbounds %struct.CF2_HintRec_, ptr %23, i32 0, i32 0
  store i32 49, ptr %202, align 8, !tbaa !37
  %203 = load ptr, ptr %7, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.CF2_HintMapRec_, ptr %203, i32 0, i32 5
  %205 = load i32, ptr %204, align 4, !tbaa !33
  %206 = getelementptr inbounds %struct.CF2_HintRec_, ptr %23, i32 0, i32 4
  store i32 %205, ptr %206, align 8, !tbaa !38
  call void @cf2_hint_initZero(ptr noundef %24)
  %207 = load ptr, ptr %7, align 8, !tbaa !5
  call void @cf2_hintmap_insertHint(ptr noundef %207, ptr noundef %23, ptr noundef %24)
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %23) #4
  br label %208

208:                                              ; preds = %201, %189
  br label %256

209:                                              ; preds = %174
  %210 = call ptr @cf2_hintmask_getMaskPtr(ptr noundef %15)
  store ptr %210, ptr %13, align 8, !tbaa !5
  store i64 0, ptr %17, align 8, !tbaa !30
  store i8 -128, ptr %18, align 1, !tbaa !11
  br label %211

211:                                              ; preds = %252, %209
  %212 = load i64, ptr %17, align 8, !tbaa !30
  %213 = load i64, ptr %16, align 8, !tbaa !30
  %214 = icmp ult i64 %212, %213
  br i1 %214, label %215, label %255

215:                                              ; preds = %211
  %216 = load i8, ptr %18, align 1, !tbaa !11
  %217 = zext i8 %216 to i32
  %218 = load ptr, ptr %13, align 8, !tbaa !5
  %219 = load i8, ptr %218, align 1, !tbaa !11
  %220 = zext i8 %219 to i32
  %221 = and i32 %217, %220
  %222 = icmp ne i32 %221, 0
  br i1 %222, label %223, label %239

223:                                              ; preds = %215
  call void @llvm.lifetime.start.p0(i64 32, ptr %25) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr %26) #4
  %224 = load ptr, ptr %8, align 8, !tbaa !5
  %225 = load i64, ptr %17, align 8, !tbaa !30
  %226 = load ptr, ptr %14, align 8, !tbaa !5
  %227 = load i32, ptr %11, align 4, !tbaa !9
  %228 = load ptr, ptr %7, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct.CF2_HintMapRec_, ptr %228, i32 0, i32 5
  %230 = load i32, ptr %229, align 4, !tbaa !33
  call void @cf2_hint_init(ptr noundef %25, ptr noundef %224, i64 noundef %225, ptr noundef %226, i32 noundef %227, i32 noundef %230, i8 noundef zeroext 1)
  %231 = load ptr, ptr %8, align 8, !tbaa !5
  %232 = load i64, ptr %17, align 8, !tbaa !30
  %233 = load ptr, ptr %14, align 8, !tbaa !5
  %234 = load i32, ptr %11, align 4, !tbaa !9
  %235 = load ptr, ptr %7, align 8, !tbaa !5
  %236 = getelementptr inbounds %struct.CF2_HintMapRec_, ptr %235, i32 0, i32 5
  %237 = load i32, ptr %236, align 4, !tbaa !33
  call void @cf2_hint_init(ptr noundef %26, ptr noundef %231, i64 noundef %232, ptr noundef %233, i32 noundef %234, i32 noundef %237, i8 noundef zeroext 0)
  %238 = load ptr, ptr %7, align 8, !tbaa !5
  call void @cf2_hintmap_insertHint(ptr noundef %238, ptr noundef %25, ptr noundef %26)
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #4
  br label %239

239:                                              ; preds = %223, %215
  %240 = load i64, ptr %17, align 8, !tbaa !30
  %241 = and i64 %240, 7
  %242 = icmp eq i64 %241, 7
  br i1 %242, label %243, label %246

243:                                              ; preds = %239
  %244 = load ptr, ptr %13, align 8, !tbaa !5
  %245 = getelementptr inbounds i8, ptr %244, i32 1
  store ptr %245, ptr %13, align 8, !tbaa !5
  store i8 -128, ptr %18, align 1, !tbaa !11
  br label %251

246:                                              ; preds = %239
  %247 = load i8, ptr %18, align 1, !tbaa !11
  %248 = zext i8 %247 to i32
  %249 = ashr i32 %248, 1
  %250 = trunc i32 %249 to i8
  store i8 %250, ptr %18, align 1, !tbaa !11
  br label %251

251:                                              ; preds = %246, %243
  br label %252

252:                                              ; preds = %251
  %253 = load i64, ptr %17, align 8, !tbaa !30
  %254 = add i64 %253, 1
  store i64 %254, ptr %17, align 8, !tbaa !30
  br label %211, !llvm.loop !39

255:                                              ; preds = %211
  br label %256

256:                                              ; preds = %255, %208
  %257 = load ptr, ptr %7, align 8, !tbaa !5
  call void @cf2_hintmap_dump(ptr noundef %257)
  %258 = load ptr, ptr %7, align 8, !tbaa !5
  call void @cf2_hintmap_adjustHints(ptr noundef %258)
  br label %259

259:                                              ; preds = %256
  br label %260

260:                                              ; preds = %259
  br label %261

261:                                              ; preds = %260
  %262 = load ptr, ptr %7, align 8, !tbaa !5
  call void @cf2_hintmap_dump(ptr noundef %262)
  %263 = load i8, ptr %12, align 1, !tbaa !11
  %264 = icmp ne i8 %263, 0
  br i1 %264, label %321, label %265

265:                                              ; preds = %261
  store i64 0, ptr %17, align 8, !tbaa !30
  br label %266

266:                                              ; preds = %317, %265
  %267 = load i64, ptr %17, align 8, !tbaa !30
  %268 = load ptr, ptr %7, align 8, !tbaa !5
  %269 = getelementptr inbounds %struct.CF2_HintMapRec_, ptr %268, i32 0, i32 6
  %270 = load i32, ptr %269, align 8, !tbaa !27
  %271 = zext i32 %270 to i64
  %272 = icmp ult i64 %267, %271
  br i1 %272, label %273, label %320

273:                                              ; preds = %266
  %274 = load ptr, ptr %7, align 8, !tbaa !5
  %275 = getelementptr inbounds %struct.CF2_HintMapRec_, ptr %274, i32 0, i32 8
  %276 = load i64, ptr %17, align 8, !tbaa !30
  %277 = getelementptr inbounds [192 x %struct.CF2_HintRec_], ptr %275, i64 0, i64 %276
  %278 = call zeroext i8 @cf2_hint_isSynthetic(ptr noundef %277)
  %279 = icmp ne i8 %278, 0
  br i1 %279, label %316, label %280

280:                                              ; preds = %273
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #4
  %281 = load ptr, ptr %8, align 8, !tbaa !5
  %282 = load ptr, ptr %7, align 8, !tbaa !5
  %283 = getelementptr inbounds %struct.CF2_HintMapRec_, ptr %282, i32 0, i32 8
  %284 = load i64, ptr %17, align 8, !tbaa !30
  %285 = getelementptr inbounds [192 x %struct.CF2_HintRec_], ptr %283, i64 0, i64 %284
  %286 = getelementptr inbounds %struct.CF2_HintRec_, ptr %285, i32 0, i32 1
  %287 = load i64, ptr %286, align 8, !tbaa !40
  %288 = call ptr @cf2_arrstack_getPointer(ptr noundef %281, i64 noundef %287)
  store ptr %288, ptr %27, align 8, !tbaa !5
  %289 = load ptr, ptr %7, align 8, !tbaa !5
  %290 = getelementptr inbounds %struct.CF2_HintMapRec_, ptr %289, i32 0, i32 8
  %291 = load i64, ptr %17, align 8, !tbaa !30
  %292 = getelementptr inbounds [192 x %struct.CF2_HintRec_], ptr %290, i64 0, i64 %291
  %293 = call zeroext i8 @cf2_hint_isTop(ptr noundef %292)
  %294 = icmp ne i8 %293, 0
  br i1 %294, label %295, label %304

295:                                              ; preds = %280
  %296 = load ptr, ptr %7, align 8, !tbaa !5
  %297 = getelementptr inbounds %struct.CF2_HintMapRec_, ptr %296, i32 0, i32 8
  %298 = load i64, ptr %17, align 8, !tbaa !30
  %299 = getelementptr inbounds [192 x %struct.CF2_HintRec_], ptr %297, i64 0, i64 %298
  %300 = getelementptr inbounds %struct.CF2_HintRec_, ptr %299, i32 0, i32 3
  %301 = load i32, ptr %300, align 4, !tbaa !41
  %302 = load ptr, ptr %27, align 8, !tbaa !5
  %303 = getelementptr inbounds %struct.CF2_StemHintRec_, ptr %302, i32 0, i32 4
  store i32 %301, ptr %303, align 4, !tbaa !42
  br label %313

304:                                              ; preds = %280
  %305 = load ptr, ptr %7, align 8, !tbaa !5
  %306 = getelementptr inbounds %struct.CF2_HintMapRec_, ptr %305, i32 0, i32 8
  %307 = load i64, ptr %17, align 8, !tbaa !30
  %308 = getelementptr inbounds [192 x %struct.CF2_HintRec_], ptr %306, i64 0, i64 %307
  %309 = getelementptr inbounds %struct.CF2_HintRec_, ptr %308, i32 0, i32 3
  %310 = load i32, ptr %309, align 4, !tbaa !41
  %311 = load ptr, ptr %27, align 8, !tbaa !5
  %312 = getelementptr inbounds %struct.CF2_StemHintRec_, ptr %311, i32 0, i32 3
  store i32 %310, ptr %312, align 4, !tbaa !44
  br label %313

313:                                              ; preds = %304, %295
  %314 = load ptr, ptr %27, align 8, !tbaa !5
  %315 = getelementptr inbounds %struct.CF2_StemHintRec_, ptr %314, i32 0, i32 0
  store i8 1, ptr %315, align 4, !tbaa !45
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #4
  br label %316

316:                                              ; preds = %313, %273
  br label %317

317:                                              ; preds = %316
  %318 = load i64, ptr %17, align 8, !tbaa !30
  %319 = add i64 %318, 1
  store i64 %319, ptr %17, align 8, !tbaa !30
  br label %266, !llvm.loop !46

320:                                              ; preds = %266
  br label %321

321:                                              ; preds = %320, %261
  %322 = load ptr, ptr %7, align 8, !tbaa !5
  %323 = getelementptr inbounds %struct.CF2_HintMapRec_, ptr %322, i32 0, i32 3
  store i8 1, ptr %323, align 8, !tbaa !47
  %324 = load ptr, ptr %10, align 8, !tbaa !5
  call void @cf2_hintmask_setNew(ptr noundef %324, i8 noundef zeroext 0)
  store i32 0, ptr %19, align 4
  br label %325

325:                                              ; preds = %321, %90, %74
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  %326 = load i32, ptr %19, align 4
  switch i32 %326, label %328 [
    i32 0, label %327
    i32 1, label %327
  ]

327:                                              ; preds = %325, %325
  ret void

328:                                              ; preds = %325
  unreachable
}

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

; Function Attrs: nounwind uwtable
declare hidden zeroext i8 @cf2_hintmap_isValid(ptr noundef) #0

declare hidden void @cf2_hintmask_init(ptr noundef, ptr noundef) #2

declare hidden zeroext i8 @cf2_hintmask_isValid(ptr noundef) #2

declare hidden void @cf2_hintmask_setAll(ptr noundef, i64 noundef) #2

declare hidden i64 @cf2_arrstack_size(ptr noundef) #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

declare hidden ptr @cf2_hintmask_getMaskPtr(ptr noundef) #2

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

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

; 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 @cf2_hint_init(ptr noundef, ptr noundef, i64 noundef, ptr noundef, i32 noundef, i32 noundef, i8 noundef zeroext) #0

; Function Attrs: nounwind uwtable
declare hidden zeroext i8 @cf2_hint_isLocked(ptr noundef) #0

declare hidden zeroext i8 @cf2_blues_capture(ptr noundef, ptr noundef, ptr noundef) #2

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

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

; Function Attrs: nounwind uwtable
declare hidden zeroext i8 @cf2_hint_isSynthetic(ptr noundef) #0

declare hidden ptr @cf2_arrstack_getPointer(ptr noundef, i64 noundef) #2

declare hidden void @cf2_hintmask_setNew(ptr noundef, i8 noundef zeroext) #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 = { 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, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !6, i64 0}
!13 = !{!"CF2_HintMapRec_", !6, i64 0, !6, i64 8, !6, i64 16, !7, i64 24, !7, i64 25, !10, i64 28, !10, i64 32, !10, i64 36, !7, i64 40}
!14 = !{!13, !6, i64 8}
!15 = !{!16, !6, i64 0}
!16 = !{!"CF2_HintMaskRec_", !6, i64 0, !7, i64 8, !7, i64 9, !17, i64 16, !17, i64 24, !7, i64 32}
!17 = !{!"long", !7, i64 0}
!18 = !{!19, !7, i64 12}
!19 = !{!"CF2_FontRec_", !6, i64 0, !10, i64 8, !7, i64 12, !7, i64 13, !10, i64 16, !20, i64 20, !20, i64 44, !20, i64 68, !10, i64 92, !21, i64 96, !10, i64 144, !10, i64 148, !6, i64 152, !10, i64 160, !10, i64 164, !10, i64 168, !22, i64 176, !6, i64 240, !6, i64 248, !7, i64 256, !7, i64 257, !7, i64 258, !7, i64 260, !10, i64 292, !10, i64 296, !10, i64 300, !10, i64 304, !7, i64 308, !24, i64 312, !6, i64 648}
!20 = !{!"CF2_Matrix_", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20}
!21 = !{!"CFF_BlendRec_", !7, i64 0, !7, i64 1, !6, i64 8, !10, i64 16, !10, i64 20, !6, i64 24, !10, i64 32, !6, i64 40}
!22 = !{!"CF2_OutlineRec_", !23, i64 0, !6, i64 56}
!23 = !{!"CF2_OutlineCallbacksRec_", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !10, i64 32, !6, i64 40, !6, i64 48}
!24 = !{!"CF2_BluesRec_", !10, i64 0, !10, i64 4, !7, i64 8, !7, i64 9, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !25, i64 32, !25, i64 64, !7, i64 96}
!25 = !{!"CF2_HintRec_", !10, i64 0, !17, i64 8, !10, i64 16, !10, i64 20, !10, i64 24}
!26 = !{!13, !7, i64 25}
!27 = !{!13, !10, i64 32}
!28 = !{!13, !10, i64 36}
!29 = !{i64 0, i64 8, !5, i64 8, i64 1, !11, i64 9, i64 1, !11, i64 16, i64 8, !30, i64 24, i64 8, !30, i64 32, i64 12, !11}
!30 = !{!17, !17, i64 0}
!31 = !{!16, !17, i64 16}
!32 = !{!19, !7, i64 321}
!33 = !{!13, !10, i64 28}
!34 = distinct !{!34, !35}
!35 = !{!"llvm.loop.mustprogress"}
!36 = !{!25, !10, i64 16}
!37 = !{!25, !10, i64 0}
!38 = !{!25, !10, i64 24}
!39 = distinct !{!39, !35}
!40 = !{!25, !17, i64 8}
!41 = !{!25, !10, i64 20}
!42 = !{!43, !10, i64 16}
!43 = !{!"CF2_StemHintRec_", !7, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16}
!44 = !{!43, !10, i64 12}
!45 = !{!43, !7, i64 0}
!46 = distinct !{!46, !35}
!47 = !{!13, !7, i64 24}


; 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.CF2_HintMaskRec_ = type { ptr, i8, i8, i64, i64, [12 x i8] }
%struct.CF2_HintRec_ = type { i32, i64, i32, i32, i32 }

; Function Attrs: nounwind uwtable
declare hidden zeroext i8 @cf2_hint_isTop(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define hidden void @cf2_hintmap_build(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, i8 noundef zeroext %5) local_unnamed_addr #0 {
  %7 = alloca %struct.CF2_HintMaskRec_, align 8
  %8 = alloca %struct.CF2_HintRec_, align 8
  %9 = alloca %struct.CF2_HintRec_, align 8
  %10 = alloca %struct.CF2_HintRec_, align 8
  %11 = alloca %struct.CF2_HintRec_, align 8
  %12 = alloca %struct.CF2_HintRec_, align 8
  %13 = alloca %struct.CF2_HintRec_, align 8
  %14 = alloca %struct.CF2_HintRec_, align 8
  %15 = load ptr, ptr %0, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %7) #4
  %.not = icmp eq i8 %5, 0
  br i1 %.not, label %16, label %23

16:                                               ; preds = %6
  %17 = getelementptr inbounds i8, ptr %0, i64 8
  %18 = load ptr, ptr %17, align 8, !tbaa !11
  %19 = tail call zeroext i8 @cf2_hintmap_isValid(ptr noundef %18)
  %.not106 = icmp eq i8 %19, 0
  br i1 %.not106, label %20, label %23

20:                                               ; preds = %16
  %21 = load ptr, ptr %3, align 8, !tbaa !12
  call void @cf2_hintmask_init(ptr noundef nonnull %7, ptr noundef %21) #4
  %22 = load ptr, ptr %17, align 8, !tbaa !11
  call void @cf2_hintmap_build(ptr noundef %22, ptr noundef %1, ptr noundef %2, ptr noundef nonnull %7, i32 noundef %4, i8 noundef zeroext 1)
  br label %23

23:                                               ; preds = %20, %16, %6
  %24 = call zeroext i8 @cf2_hintmask_isValid(ptr noundef %3) #4
  %.not107 = icmp eq i8 %24, 0
  br i1 %.not107, label %25, label %36

25:                                               ; preds = %23
  %26 = call i64 @cf2_arrstack_size(ptr noundef %1) #4
  %27 = call i64 @cf2_arrstack_size(ptr noundef %2) #4
  %28 = add i64 %27, %26
  call void @cf2_hintmask_setAll(ptr noundef %3, i64 noundef %28) #4
  %29 = call zeroext i8 @cf2_hintmask_isValid(ptr noundef %3) #4
  %.not108 = icmp eq i8 %29, 0
  br i1 %.not108, label %30, label %36

30:                                               ; preds = %25
  %31 = getelementptr inbounds i8, ptr %15, i64 12
  %32 = load i8, ptr %31, align 4, !tbaa !15
  %.not109 = icmp eq i8 %32, 0
  br i1 %.not109, label %130, label %33

33:                                               ; preds = %30
  %34 = load ptr, ptr %3, align 8, !tbaa !12
  store i32 0, ptr %34, align 4, !tbaa !23
  %35 = getelementptr inbounds i8, ptr %0, i64 25
  store i8 0, ptr %35, align 1, !tbaa !24
  br label %130

36:                                               ; preds = %25, %23
  %37 = getelementptr inbounds i8, ptr %0, i64 32
  store i32 0, ptr %37, align 8, !tbaa !25
  %38 = getelementptr inbounds i8, ptr %0, i64 36
  store i32 0, ptr %38, align 4, !tbaa !26
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef nonnull align 8 dereferenceable(48) %3, i64 48, i1 false), !tbaa.struct !27
  %39 = call ptr @cf2_hintmask_getMaskPtr(ptr noundef nonnull %7) #4
  %40 = call i64 @cf2_arrstack_size(ptr noundef %1) #4
  %41 = getelementptr inbounds i8, ptr %3, i64 16
  %42 = load i64, ptr %41, align 8, !tbaa !31
  %43 = icmp ugt i64 %40, %42
  br i1 %43, label %130, label %44

44:                                               ; preds = %36
  %45 = getelementptr inbounds i8, ptr %15, i64 312
  %46 = getelementptr inbounds i8, ptr %15, i64 321
  %47 = load i8, ptr %46, align 1, !tbaa !32
  %.not110 = icmp eq i8 %47, 0
  br i1 %.not110, label %51, label %48

48:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #4
  call void @cf2_hint_initZero(ptr noundef nonnull %8)
  %49 = getelementptr inbounds i8, ptr %15, i64 376
  call void @cf2_hintmap_insertHint(ptr noundef nonnull %0, ptr noundef nonnull %49, ptr noundef nonnull %8)
  %50 = getelementptr inbounds i8, ptr %15, i64 344
  call void @cf2_hintmap_insertHint(ptr noundef nonnull %0, ptr noundef nonnull %8, ptr noundef nonnull %50)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #4
  br label %51

51:                                               ; preds = %48, %44
  %.not129 = icmp eq i64 %40, 0
  br i1 %.not129, label %._crit_edge.thread, label %.lr.ph

.lr.ph:                                           ; preds = %51
  %52 = getelementptr inbounds i8, ptr %0, i64 28
  br label %53

53:                                               ; preds = %.lr.ph, %71
  %.0121 = phi ptr [ %39, %.lr.ph ], [ %.1, %71 ]
  %.097120 = phi i32 [ 128, %.lr.ph ], [ %.198, %71 ]
  %.0101119 = phi i64 [ 0, %.lr.ph ], [ %76, %71 ]
  %54 = load i8, ptr %.0121, align 1, !tbaa !29
  %55 = zext i8 %54 to i32
  %56 = and i32 %.097120, %55
  %.not114 = icmp eq i32 %56, 0
  br i1 %.not114, label %71, label %57

57:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #4
  %58 = load i32, ptr %52, align 4, !tbaa !33
  call void @cf2_hint_init(ptr noundef nonnull %9, ptr noundef %1, i64 noundef %.0101119, ptr noundef %15, i32 noundef %4, i32 noundef %58, i8 noundef zeroext 1)
  %59 = load i32, ptr %52, align 4, !tbaa !33
  call void @cf2_hint_init(ptr noundef nonnull %10, ptr noundef %1, i64 noundef %.0101119, ptr noundef %15, i32 noundef %4, i32 noundef %59, i8 noundef zeroext 0)
  %60 = call zeroext i8 @cf2_hint_isLocked(ptr noundef nonnull %9)
  %.not115 = icmp eq i8 %60, 0
  br i1 %.not115, label %61, label %65

61:                                               ; preds = %57
  %62 = call zeroext i8 @cf2_hint_isLocked(ptr noundef nonnull %10)
  %.not116 = icmp eq i8 %62, 0
  br i1 %.not116, label %63, label %65

63:                                               ; preds = %61
  %64 = call zeroext i8 @cf2_blues_capture(ptr noundef nonnull %45, ptr noundef nonnull %9, ptr noundef nonnull %10) #4
  %.not117 = icmp eq i8 %64, 0
  br i1 %.not117, label %70, label %65

65:                                               ; preds = %63, %61, %57
  call void @cf2_hintmap_insertHint(ptr noundef nonnull %0, ptr noundef nonnull %9, ptr noundef nonnull %10)
  %66 = load i8, ptr %.0121, align 1, !tbaa !29
  %67 = trunc nuw i32 %.097120 to i8
  %68 = xor i8 %67, -1
  %69 = and i8 %66, %68
  store i8 %69, ptr %.0121, align 1, !tbaa !29
  br label %70

70:                                               ; preds = %65, %63
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #4
  br label %71

71:                                               ; preds = %70, %53
  %72 = and i64 %.0101119, 7
  %73 = icmp eq i64 %72, 7
  %74 = lshr i32 %.097120, 1
  %75 = and i32 %74, 127
  %.198 = select i1 %73, i32 128, i32 %75
  %.1.idx = zext i1 %73 to i64
  %.1 = getelementptr inbounds i8, ptr %.0121, i64 %.1.idx
  %76 = add nuw i64 %.0101119, 1
  %exitcond.not = icmp eq i64 %76, %40
  br i1 %exitcond.not, label %._crit_edge, label %53, !llvm.loop !34

._crit_edge:                                      ; preds = %71
  br i1 %.not, label %.lr.ph126, label %78

._crit_edge.thread:                               ; preds = %51
  br i1 %.not, label %.thread, label %78

.thread:                                          ; preds = %._crit_edge.thread
  %77 = call ptr @cf2_hintmask_getMaskPtr(ptr noundef nonnull %7) #4
  br label %.loopexit118

78:                                               ; preds = %._crit_edge.thread, %._crit_edge
  %79 = load i32, ptr %37, align 8, !tbaa !25
  %80 = icmp eq i32 %79, 0
  br i1 %80, label %92, label %81

81:                                               ; preds = %78
  %82 = getelementptr inbounds i8, ptr %0, i64 56
  %83 = load i32, ptr %82, align 8, !tbaa !36
  %84 = icmp sgt i32 %83, 0
  br i1 %84, label %92, label %85

85:                                               ; preds = %81
  %86 = getelementptr inbounds i8, ptr %0, i64 40
  %87 = add i32 %79, -1
  %88 = zext i32 %87 to i64
  %89 = getelementptr inbounds [192 x %struct.CF2_HintRec_], ptr %86, i64 0, i64 %88, i32 2
  %90 = load i32, ptr %89, align 8, !tbaa !36
  %91 = icmp slt i32 %90, 0
  br i1 %91, label %92, label %.loopexit118

92:                                               ; preds = %85, %81, %78
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #4
  call void @cf2_hint_initZero(ptr noundef nonnull %11)
  store i32 49, ptr %11, align 8, !tbaa !37
  %93 = getelementptr inbounds i8, ptr %0, i64 28
  %94 = load i32, ptr %93, align 4, !tbaa !33
  %95 = getelementptr inbounds i8, ptr %11, i64 24
  store i32 %94, ptr %95, align 8, !tbaa !38
  call void @cf2_hint_initZero(ptr noundef nonnull %12)
  call void @cf2_hintmap_insertHint(ptr noundef nonnull %0, ptr noundef nonnull %11, ptr noundef nonnull %12)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #4
  br label %.loopexit118

.lr.ph126:                                        ; preds = %._crit_edge
  %96 = call ptr @cf2_hintmask_getMaskPtr(ptr noundef nonnull %7) #4
  %97 = getelementptr inbounds i8, ptr %0, i64 28
  br label %98

98:                                               ; preds = %.lr.ph126, %105
  %.2124 = phi ptr [ %96, %.lr.ph126 ], [ %.3, %105 ]
  %.299123 = phi i32 [ 128, %.lr.ph126 ], [ %.3100, %105 ]
  %.1102122 = phi i64 [ 0, %.lr.ph126 ], [ %110, %105 ]
  %99 = load i8, ptr %.2124, align 1, !tbaa !29
  %100 = zext i8 %99 to i32
  %101 = and i32 %.299123, %100
  %.not111 = icmp eq i32 %101, 0
  br i1 %.not111, label %105, label %102

102:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %13) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %14) #4
  %103 = load i32, ptr %97, align 4, !tbaa !33
  call void @cf2_hint_init(ptr noundef nonnull %13, ptr noundef %1, i64 noundef %.1102122, ptr noundef %15, i32 noundef %4, i32 noundef %103, i8 noundef zeroext 1)
  %104 = load i32, ptr %97, align 4, !tbaa !33
  call void @cf2_hint_init(ptr noundef nonnull %14, ptr noundef %1, i64 noundef %.1102122, ptr noundef %15, i32 noundef %4, i32 noundef %104, i8 noundef zeroext 0)
  call void @cf2_hintmap_insertHint(ptr noundef nonnull %0, ptr noundef nonnull %13, ptr noundef nonnull %14)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #4
  br label %105

105:                                              ; preds = %102, %98
  %106 = and i64 %.1102122, 7
  %107 = icmp eq i64 %106, 7
  %108 = lshr i32 %.299123, 1
  %109 = and i32 %108, 127
  %.3100 = select i1 %107, i32 128, i32 %109
  %.3.idx = zext i1 %107 to i64
  %.3 = getelementptr inbounds i8, ptr %.2124, i64 %.3.idx
  %110 = add nuw i64 %.1102122, 1
  %exitcond132.not = icmp eq i64 %110, %40
  br i1 %exitcond132.not, label %.loopexit118, label %98, !llvm.loop !39

.loopexit118:                                     ; preds = %105, %.thread, %85, %92
  call void @cf2_hintmap_dump(ptr noundef nonnull %0)
  call void @cf2_hintmap_adjustHints(ptr noundef nonnull %0)
  call void @cf2_hintmap_dump(ptr noundef nonnull %0)
  br i1 %.not, label %.preheader, label %.loopexit

.preheader:                                       ; preds = %.loopexit118
  %111 = load i32, ptr %37, align 8, !tbaa !25
  %.not131 = icmp eq i32 %111, 0
  br i1 %.not131, label %.loopexit, label %.lr.ph128

.lr.ph128:                                        ; preds = %.preheader
  %112 = getelementptr inbounds i8, ptr %0, i64 40
  br label %113

113:                                              ; preds = %.lr.ph128, %124
  %.2103127 = phi i64 [ 0, %.lr.ph128 ], [ %125, %124 ]
  %114 = getelementptr inbounds [192 x %struct.CF2_HintRec_], ptr %112, i64 0, i64 %.2103127
  %115 = call zeroext i8 @cf2_hint_isSynthetic(ptr noundef nonnull %114)
  %.not112 = icmp eq i8 %115, 0
  br i1 %.not112, label %116, label %124

116:                                              ; preds = %113
  %117 = getelementptr inbounds i8, ptr %114, i64 8
  %118 = load i64, ptr %117, align 8, !tbaa !40
  %119 = call ptr @cf2_arrstack_getPointer(ptr noundef %1, i64 noundef %118) #4
  %120 = call zeroext i8 @cf2_hint_isTop(ptr noundef nonnull %114)
  %.not113 = icmp eq i8 %120, 0
  %121 = getelementptr inbounds i8, ptr %114, i64 20
  %122 = load i32, ptr %121, align 4, !tbaa !41
  %. = select i1 %.not113, i64 12, i64 16
  %123 = getelementptr inbounds i8, ptr %119, i64 %.
  store i32 %122, ptr %123, align 4, !tbaa !23
  store i8 1, ptr %119, align 4, !tbaa !42
  br label %124

124:                                              ; preds = %113, %116
  %125 = add nuw nsw i64 %.2103127, 1
  %126 = load i32, ptr %37, align 8, !tbaa !25
  %127 = zext i32 %126 to i64
  %128 = icmp ult i64 %125, %127
  br i1 %128, label %113, label %.loopexit, !llvm.loop !44

.loopexit:                                        ; preds = %124, %.preheader, %.loopexit118
  %129 = getelementptr inbounds i8, ptr %0, i64 24
  store i8 1, ptr %129, align 8, !tbaa !45
  call void @cf2_hintmask_setNew(ptr noundef %3, i8 noundef zeroext 0) #4
  br label %130

130:                                              ; preds = %36, %30, %33, %.loopexit
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %7) #4
  ret void
}

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

; Function Attrs: nounwind uwtable
declare hidden zeroext i8 @cf2_hintmap_isValid(ptr noundef) local_unnamed_addr #0

declare hidden void @cf2_hintmask_init(ptr noundef, ptr noundef) local_unnamed_addr #2

declare hidden zeroext i8 @cf2_hintmask_isValid(ptr noundef) local_unnamed_addr #2

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

declare hidden i64 @cf2_arrstack_size(ptr noundef) local_unnamed_addr #2

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

declare hidden ptr @cf2_hintmask_getMaskPtr(ptr noundef) local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
declare hidden void @cf2_hintmap_insertHint(ptr noundef, ptr noundef, ptr noundef) 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

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

; Function Attrs: nounwind uwtable
declare hidden zeroext i8 @cf2_hint_isLocked(ptr noundef) local_unnamed_addr #0

declare hidden zeroext i8 @cf2_blues_capture(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

; Function Attrs: nounwind uwtable
declare hidden zeroext i8 @cf2_hint_isSynthetic(ptr noundef) local_unnamed_addr #0

declare hidden ptr @cf2_arrstack_getPointer(ptr noundef, i64 noundef) local_unnamed_addr #2

declare hidden void @cf2_hintmask_setNew(ptr noundef, i8 noundef zeroext) local_unnamed_addr #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 = { 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"CF2_HintMapRec_", !7, i64 0, !7, i64 8, !7, i64 16, !8, i64 24, !8, i64 25, !10, i64 28, !10, i64 32, !10, i64 36, !8, i64 40}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!6, !7, i64 8}
!12 = !{!13, !7, i64 0}
!13 = !{!"CF2_HintMaskRec_", !7, i64 0, !8, i64 8, !8, i64 9, !14, i64 16, !14, i64 24, !8, i64 32}
!14 = !{!"long", !8, i64 0}
!15 = !{!16, !8, i64 12}
!16 = !{!"CF2_FontRec_", !7, i64 0, !10, i64 8, !8, i64 12, !8, i64 13, !10, i64 16, !17, i64 20, !17, i64 44, !17, i64 68, !10, i64 92, !18, i64 96, !10, i64 144, !10, i64 148, !7, i64 152, !10, i64 160, !10, i64 164, !10, i64 168, !19, i64 176, !7, i64 240, !7, i64 248, !8, i64 256, !8, i64 257, !8, i64 258, !8, i64 260, !10, i64 292, !10, i64 296, !10, i64 300, !10, i64 304, !8, i64 308, !21, i64 312, !7, i64 648}
!17 = !{!"CF2_Matrix_", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20}
!18 = !{!"CFF_BlendRec_", !8, i64 0, !8, i64 1, !7, i64 8, !10, i64 16, !10, i64 20, !7, i64 24, !10, i64 32, !7, i64 40}
!19 = !{!"CF2_OutlineRec_", !20, i64 0, !7, i64 56}
!20 = !{!"CF2_OutlineCallbacksRec_", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !7, i64 40, !7, i64 48}
!21 = !{!"CF2_BluesRec_", !10, i64 0, !10, i64 4, !8, i64 8, !8, i64 9, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !22, i64 32, !22, i64 64, !8, i64 96}
!22 = !{!"CF2_HintRec_", !10, i64 0, !14, i64 8, !10, i64 16, !10, i64 20, !10, i64 24}
!23 = !{!10, !10, i64 0}
!24 = !{!6, !8, i64 25}
!25 = !{!6, !10, i64 32}
!26 = !{!6, !10, i64 36}
!27 = !{i64 0, i64 8, !28, i64 8, i64 1, !29, i64 9, i64 1, !29, i64 16, i64 8, !30, i64 24, i64 8, !30, i64 32, i64 12, !29}
!28 = !{!7, !7, i64 0}
!29 = !{!8, !8, i64 0}
!30 = !{!14, !14, i64 0}
!31 = !{!13, !14, i64 16}
!32 = !{!16, !8, i64 321}
!33 = !{!6, !10, i64 28}
!34 = distinct !{!34, !35}
!35 = !{!"llvm.loop.mustprogress"}
!36 = !{!22, !10, i64 16}
!37 = !{!22, !10, i64 0}
!38 = !{!22, !10, i64 24}
!39 = distinct !{!39, !35}
!40 = !{!22, !14, i64 8}
!41 = !{!22, !10, i64 20}
!42 = !{!43, !8, i64 0}
!43 = !{!"CF2_StemHintRec_", !8, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16}
!44 = distinct !{!44, !35}
!45 = !{!6, !8, i64 24}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass