; LLVM IR from alibaba/GCanvas :: core/src/platform/Android (GFreeTypeWrap)

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

%struct.FT_Matrix_ = type { i64, i64, i64, i64 }
%struct.FT_Open_Args_ = type { i32, ptr, i64, ptr, ptr, ptr, i32, ptr }
%struct.FT_FaceRec_ = type { i64, i64, i64, i64, i64, ptr, ptr, i32, ptr, i32, ptr, %struct.FT_Generic_, %struct.FT_BBox_, i16, i16, i16, i16, i16, i16, i16, i16, ptr, ptr, ptr, ptr, ptr, ptr, %struct.FT_ListRec_, %struct.FT_Generic_, ptr, ptr }
%struct.FT_BBox_ = type { i64, i64, i64, i64 }
%struct.FT_ListRec_ = type { ptr, ptr }
%struct.FT_Generic_ = type { ptr, ptr }

@.str.90 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.91 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.92 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.93 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.94 = external hidden unnamed_addr constant [26 x i8], align 1

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN7gcanvas12GFT_LoadFaceEP14FT_LibraryRec_PP11FT_FaceRec_PKcff(ptr noundef %0, ptr noundef %1, ptr noundef %2, float noundef %3, float noundef %4) #1 {
  %6 = alloca i1, align 1
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca float, align 4
  %11 = alloca float, align 4
  %12 = alloca i64, align 8
  %13 = alloca %struct.FT_Matrix_, align 8
  %14 = alloca i32, align 4
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca ptr, align 8
  %19 = alloca %struct.FT_Open_Args_, align 8
  %20 = alloca i32, align 4
  %21 = alloca ptr, align 8
  %22 = alloca i8, align 1
  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 float %3, ptr %10, align 4, !tbaa !9
  store float %4, ptr %11, align 4, !tbaa !9
  %23 = load ptr, ptr %7, align 8, !tbaa !5
  %24 = icmp eq ptr %23, null
  br i1 %24, label %25, label %27

25:                                               ; preds = %5
  %26 = call i32 (ptr, ...) @printf(ptr noundef @.str.90)
  store i1 false, ptr %6, align 1
  br label %130

27:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  store i64 64, ptr %12, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #5
  %28 = getelementptr inbounds %struct.FT_Matrix_, ptr %13, i32 0, i32 0
  %29 = load i64, ptr %12, align 8, !tbaa !11
  %30 = uitofp i64 %29 to double
  %31 = fdiv double 1.000000e+00, %30
  %32 = fmul double %31, 6.553600e+04
  %33 = fptosi double %32 to i32
  %34 = sext i32 %33 to i64
  store i64 %34, ptr %28, align 8, !tbaa !13
  %35 = getelementptr inbounds %struct.FT_Matrix_, ptr %13, i32 0, i32 1
  store i64 0, ptr %35, align 8, !tbaa !15
  %36 = getelementptr inbounds %struct.FT_Matrix_, ptr %13, i32 0, i32 2
  store i64 0, ptr %36, align 8, !tbaa !16
  %37 = getelementptr inbounds %struct.FT_Matrix_, ptr %13, i32 0, i32 3
  store i64 65536, ptr %37, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  store i64 0, ptr %15, align 8, !tbaa !11
  %38 = load ptr, ptr %9, align 8, !tbaa !5
  %39 = call noundef ptr @strstr(ptr noundef %38, ptr noundef @.str.91) #6
  %40 = icmp ne ptr %39, null
  br i1 %40, label %41, label %90

41:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %19) #5
  call void @llvm.memset.p0.i64(ptr align 8 %19, i8 0, i64 64, i1 false)
  %42 = getelementptr inbounds %struct.FT_Open_Args_, ptr %19, i32 0, i32 0
  store i32 4, ptr %42, align 8, !tbaa !18
  %43 = load ptr, ptr %9, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.FT_Open_Args_, ptr %19, i32 0, i32 3
  store ptr %43, ptr %44, align 8, !tbaa !21
  %45 = load ptr, ptr %7, align 8, !tbaa !5
  %46 = call i32 @FT_Open_Face(ptr noundef %45, ptr noundef %19, i64 noundef -1, ptr noundef %18)
  store i32 %46, ptr %14, align 4, !tbaa !22
  %47 = load i32, ptr %14, align 4, !tbaa !22
  %48 = icmp ne i32 %47, 0
  br i1 %48, label %49, label %50

49:                                               ; preds = %41
  store i1 false, ptr %6, align 1
  store i32 1, ptr %20, align 4
  br label %87

50:                                               ; preds = %41
  %51 = load ptr, ptr %18, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.FT_FaceRec_, ptr %51, i32 0, i32 0
  %53 = load i64, ptr %52, align 8, !tbaa !23
  store i64 %53, ptr %17, align 8, !tbaa !11
  store i64 0, ptr %16, align 8, !tbaa !11
  br label %54

54:                                               ; preds = %81, %50
  %55 = load i64, ptr %16, align 8, !tbaa !11
  %56 = load i64, ptr %17, align 8, !tbaa !11
  %57 = icmp slt i64 %55, %56
  br i1 %57, label %58, label %84

58:                                               ; preds = %54
  %59 = load ptr, ptr %18, align 8, !tbaa !5
  %60 = call i32 @FT_Done_Face(ptr noundef %59)
  %61 = load ptr, ptr %7, align 8, !tbaa !5
  %62 = load i64, ptr %16, align 8, !tbaa !11
  %63 = call i32 @FT_Open_Face(ptr noundef %61, ptr noundef %19, i64 noundef %62, ptr noundef %18)
  store i32 %63, ptr %14, align 4, !tbaa !22
  %64 = load i32, ptr %14, align 4, !tbaa !22
  %65 = icmp ne i32 %64, 0
  br i1 %65, label %66, label %67

66:                                               ; preds = %58
  store i1 false, ptr %6, align 1
  store i32 1, ptr %20, align 4
  br label %87

67:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %68 = load ptr, ptr %18, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.FT_FaceRec_, ptr %68, i32 0, i32 5
  %70 = load ptr, ptr %69, align 8, !tbaa !29
  store ptr %70, ptr %21, align 8, !tbaa !5
  %71 = load ptr, ptr %21, align 8, !tbaa !5
  %72 = call noundef ptr @strstr(ptr noundef %71, ptr noundef @.str.92) #6
  %73 = icmp ne ptr %72, null
  br i1 %73, label %74, label %76

74:                                               ; preds = %67
  %75 = load i64, ptr %16, align 8, !tbaa !11
  store i64 %75, ptr %15, align 8, !tbaa !11
  store i32 2, ptr %20, align 4
  br label %77

76:                                               ; preds = %67
  store i32 0, ptr %20, align 4
  br label %77

77:                                               ; preds = %76, %74
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  %78 = load i32, ptr %20, align 4
  switch i32 %78, label %132 [
    i32 0, label %79
    i32 2, label %84
  ]

79:                                               ; preds = %77
  br label %80

80:                                               ; preds = %79
  br label %81

81:                                               ; preds = %80
  %82 = load i64, ptr %16, align 8, !tbaa !11
  %83 = add nsw i64 %82, 1
  store i64 %83, ptr %16, align 8, !tbaa !11
  br label %54, !llvm.loop !30

84:                                               ; preds = %77, %54
  %85 = load ptr, ptr %18, align 8, !tbaa !5
  %86 = call i32 @FT_Done_Face(ptr noundef %85)
  store i32 0, ptr %20, align 4
  br label %87

87:                                               ; preds = %84, %66, %49
  call void @llvm.lifetime.end.p0(i64 64, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  %88 = load i32, ptr %20, align 4
  switch i32 %88, label %129 [
    i32 0, label %89
  ]

89:                                               ; preds = %87
  br label %90

90:                                               ; preds = %89, %27
  %91 = load ptr, ptr %7, align 8, !tbaa !5
  %92 = load ptr, ptr %9, align 8, !tbaa !5
  %93 = load i64, ptr %15, align 8, !tbaa !11
  %94 = load ptr, ptr %8, align 8, !tbaa !5
  %95 = call i32 @FT_New_Face(ptr noundef %91, ptr noundef %92, i64 noundef %93, ptr noundef %94)
  store i32 %95, ptr %14, align 4, !tbaa !22
  %96 = load i32, ptr %14, align 4, !tbaa !22
  %97 = icmp ne i32 %96, 0
  br i1 %97, label %98, label %100

98:                                               ; preds = %90
  %99 = call i32 (ptr, ...) @printf(ptr noundef @.str.93)
  store i1 false, ptr %6, align 1
  store i32 1, ptr %20, align 4
  br label %129

100:                                              ; preds = %90
  %101 = load ptr, ptr %8, align 8, !tbaa !5
  %102 = load ptr, ptr %101, align 8, !tbaa !5
  %103 = call i32 @FT_Select_Charmap(ptr noundef %102, i32 noundef 1970170211)
  store i32 %103, ptr %14, align 4, !tbaa !22
  %104 = load i32, ptr %14, align 4, !tbaa !22
  %105 = icmp ne i32 %104, 0
  br i1 %105, label %106, label %108

106:                                              ; preds = %100
  %107 = call i32 (ptr, ...) @printf(ptr noundef @.str.94)
  store i1 false, ptr %6, align 1
  store i32 1, ptr %20, align 4
  br label %129

108:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #5
  %109 = load float, ptr %10, align 4, !tbaa !9
  %110 = fcmp ogt float %109, 0.000000e+00
  br i1 %110, label %111, label %125

111:                                              ; preds = %108
  %112 = load float, ptr %11, align 4, !tbaa !9
  %113 = fcmp ogt float %112, 0.000000e+00
  br i1 %113, label %114, label %125

114:                                              ; preds = %111
  %115 = load ptr, ptr %8, align 8, !tbaa !5
  %116 = load ptr, ptr %115, align 8, !tbaa !5
  %117 = load float, ptr %10, align 4, !tbaa !9
  %118 = load float, ptr %11, align 4, !tbaa !9
  %119 = call noundef zeroext i1 @_ZN7gcanvas19GFT_SetFaceCharSizeEP11FT_FaceRec_ff(ptr noundef %116, float noundef %117, float noundef %118)
  %120 = zext i1 %119 to i8
  store i8 %120, ptr %22, align 1, !tbaa !32
  %121 = load i8, ptr %22, align 1, !tbaa !32, !range !34, !noundef !35
  %122 = trunc i8 %121 to i1
  br i1 %122, label %124, label %123

123:                                              ; preds = %114
  store i1 false, ptr %6, align 1
  store i32 1, ptr %20, align 4
  br label %128

124:                                              ; preds = %114
  br label %125

125:                                              ; preds = %124, %111, %108
  %126 = load ptr, ptr %8, align 8, !tbaa !5
  %127 = load ptr, ptr %126, align 8, !tbaa !5
  call void @FT_Set_Transform(ptr noundef %127, ptr noundef %13, ptr noundef null)
  store i1 true, ptr %6, align 1
  store i32 1, ptr %20, align 4
  br label %128

128:                                              ; preds = %125, %123
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #5
  br label %129

129:                                              ; preds = %128, %106, %98, %87
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %130

130:                                              ; preds = %129, %25
  %131 = load i1, ptr %6, align 1
  ret i1 %131

132:                                              ; preds = %77
  unreachable
}

declare i32 @printf(ptr noundef, ...) #2

; Function Attrs: nounwind willreturn memory(read)
declare noundef ptr @strstr(ptr noundef, ptr noundef) #3

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

declare i32 @FT_Open_Face(ptr noundef, ptr noundef, i64 noundef, ptr noundef) #2

declare i32 @FT_Done_Face(ptr noundef) #2

declare i32 @FT_New_Face(ptr noundef, ptr noundef, i64 noundef, ptr noundef) #2

declare i32 @FT_Select_Charmap(ptr noundef, i32 noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN7gcanvas19GFT_SetFaceCharSizeEP11FT_FaceRec_ff(ptr noundef, float noundef, float noundef) #1

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind willreturn memory(read) "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 }
attributes #6 = { nounwind willreturn memory(read) }

!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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"_ZTS10FT_Matrix_", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24}
!15 = !{!14, !12, i64 8}
!16 = !{!14, !12, i64 16}
!17 = !{!14, !12, i64 24}
!18 = !{!19, !20, i64 0}
!19 = !{!"_ZTS13FT_Open_Args_", !20, i64 0, !6, i64 8, !12, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !20, i64 48, !6, i64 56}
!20 = !{!"int", !7, i64 0}
!21 = !{!19, !6, i64 24}
!22 = !{!20, !20, i64 0}
!23 = !{!24, !12, i64 0}
!24 = !{!"_ZTS11FT_FaceRec_", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !6, i64 40, !6, i64 48, !20, i64 56, !6, i64 64, !20, i64 72, !6, i64 80, !25, i64 88, !26, i64 104, !27, i64 136, !27, i64 138, !27, i64 140, !27, i64 142, !27, i64 144, !27, i64 146, !27, i64 148, !27, i64 150, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !28, i64 200, !25, i64 216, !6, i64 232, !6, i64 240}
!25 = !{!"_ZTS11FT_Generic_", !6, i64 0, !6, i64 8}
!26 = !{!"_ZTS8FT_BBox_", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24}
!27 = !{!"short", !7, i64 0}
!28 = !{!"_ZTS11FT_ListRec_", !6, i64 0, !6, i64 8}
!29 = !{!24, !6, i64 40}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}
!32 = !{!33, !33, i64 0}
!33 = !{!"bool", !7, i64 0}
!34 = !{i8 0, i8 2}
!35 = !{}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.FT_Matrix_ = type { i64, i64, i64, i64 }
%struct.FT_Open_Args_ = type { i32, ptr, i64, ptr, ptr, ptr, i32, ptr }

@.str.90 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.91 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.92 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.93 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.94 = external hidden unnamed_addr constant [26 x i8], align 1

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN7gcanvas12GFT_LoadFaceEP14FT_LibraryRec_PP11FT_FaceRec_PKcff(ptr noundef %0, ptr noundef %1, ptr noundef %2, float noundef %3, float noundef %4) local_unnamed_addr #1 {
  %6 = alloca %struct.FT_Matrix_, align 8
  %7 = alloca ptr, align 8
  %8 = alloca %struct.FT_Open_Args_, align 8
  %9 = icmp eq ptr %0, null
  br i1 %9, label %10, label %12

10:                                               ; preds = %5
  %11 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.90)
  br label %53

12:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #6
  store i64 1024, ptr %6, align 8, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %6, i64 8
  %14 = getelementptr inbounds i8, ptr %6, i64 24
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %13, i8 0, i64 16, i1 false)
  store i64 65536, ptr %14, align 8, !tbaa !10
  %15 = tail call noundef ptr @strstr(ptr noundef nonnull dereferenceable(1) %2, ptr noundef nonnull dereferenceable(1) @.str.91) #7
  %.not = icmp eq ptr %15, null
  br i1 %.not, label %35, label %16

16:                                               ; preds = %12
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %8) #6
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %8, i8 0, i64 64, i1 false)
  store i32 4, ptr %8, align 8, !tbaa !11
  %17 = getelementptr inbounds i8, ptr %8, i64 24
  store ptr %2, ptr %17, align 8, !tbaa !15
  %18 = call i32 @FT_Open_Face(ptr noundef nonnull %0, ptr noundef nonnull %8, i64 noundef -1, ptr noundef nonnull %7)
  %.not40 = icmp eq i32 %18, 0
  br i1 %.not40, label %19, label %.thread

19:                                               ; preds = %16
  %20 = load ptr, ptr %7, align 8, !tbaa !16
  %21 = load i64, ptr %20, align 8, !tbaa !17
  %22 = icmp sgt i64 %21, 0
  br i1 %22, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %19, %31
  %23 = phi ptr [ %27, %31 ], [ %20, %19 ]
  %.03747 = phi i64 [ %32, %31 ], [ 0, %19 ]
  %24 = call i32 @FT_Done_Face(ptr noundef nonnull %23)
  %25 = call i32 @FT_Open_Face(ptr noundef nonnull %0, ptr noundef nonnull %8, i64 noundef %.03747, ptr noundef nonnull %7)
  %.not41 = icmp eq i32 %25, 0
  br i1 %.not41, label %26, label %.thread

26:                                               ; preds = %.lr.ph
  %27 = load ptr, ptr %7, align 8, !tbaa !16
  %28 = getelementptr inbounds i8, ptr %27, i64 40
  %29 = load ptr, ptr %28, align 8, !tbaa !23
  %30 = call noundef ptr @strstr(ptr noundef nonnull dereferenceable(1) %29, ptr noundef nonnull dereferenceable(1) @.str.92) #7
  %.not42 = icmp eq ptr %30, null
  br i1 %.not42, label %31, label %._crit_edge

31:                                               ; preds = %26
  %32 = add nuw nsw i64 %.03747, 1
  %exitcond.not = icmp eq i64 %32, %21
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !24

.thread:                                          ; preds = %.lr.ph, %16
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  br label %52

._crit_edge:                                      ; preds = %26, %31, %19
  %33 = phi ptr [ %20, %19 ], [ %27, %31 ], [ %27, %26 ]
  %.235 = phi i64 [ 0, %19 ], [ %.03747, %26 ], [ 0, %31 ]
  %34 = call i32 @FT_Done_Face(ptr noundef nonnull %33)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  br label %35

35:                                               ; preds = %._crit_edge, %12
  %.4 = phi i64 [ %.235, %._crit_edge ], [ 0, %12 ]
  %36 = call i32 @FT_New_Face(ptr noundef nonnull %0, ptr noundef %2, i64 noundef %.4, ptr noundef %1)
  %.not43 = icmp eq i32 %36, 0
  br i1 %.not43, label %39, label %37

37:                                               ; preds = %35
  %38 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.93)
  br label %52

39:                                               ; preds = %35
  %40 = load ptr, ptr %1, align 8, !tbaa !16
  %41 = call i32 @FT_Select_Charmap(ptr noundef %40, i32 noundef 1970170211)
  %.not44 = icmp eq i32 %41, 0
  br i1 %.not44, label %44, label %42

42:                                               ; preds = %39
  %43 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.94)
  br label %52

44:                                               ; preds = %39
  %45 = fcmp ogt float %3, 0.000000e+00
  %46 = fcmp ogt float %4, 0.000000e+00
  %or.cond = and i1 %45, %46
  br i1 %or.cond, label %47, label %50

47:                                               ; preds = %44
  %48 = load ptr, ptr %1, align 8, !tbaa !16
  %49 = call noundef zeroext i1 @_ZN7gcanvas19GFT_SetFaceCharSizeEP11FT_FaceRec_ff(ptr noundef %48, float noundef %3, float noundef %4)
  br i1 %49, label %50, label %52

50:                                               ; preds = %47, %44
  %51 = load ptr, ptr %1, align 8, !tbaa !16
  call void @FT_Set_Transform(ptr noundef %51, ptr noundef nonnull %6, ptr noundef null)
  br label %52

52:                                               ; preds = %.thread, %50, %47, %42, %37
  %.2 = phi i1 [ false, %37 ], [ false, %42 ], [ true, %50 ], [ false, %47 ], [ false, %.thread ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #6
  br label %53

53:                                               ; preds = %52, %10
  %.3 = phi i1 [ false, %10 ], [ %.2, %52 ]
  ret i1 %.3
}

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare noundef ptr @strstr(ptr noundef, ptr nocapture noundef) local_unnamed_addr #3

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

declare i32 @FT_Open_Face(ptr noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #5

declare i32 @FT_Done_Face(ptr noundef) local_unnamed_addr #5

declare i32 @FT_New_Face(ptr noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #5

declare i32 @FT_Select_Charmap(ptr noundef, i32 noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN7gcanvas19GFT_SetFaceCharSizeEP11FT_FaceRec_ff(ptr noundef, float noundef, float noundef) local_unnamed_addr #1

declare void @FT_Set_Transform(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #5

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { "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 #6 = { nounwind }
attributes #7 = { nounwind willreturn memory(read) }

!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 = !{!"_ZTS10FT_Matrix_", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!6, !7, i64 24}
!11 = !{!12, !13, i64 0}
!12 = !{!"_ZTS13FT_Open_Args_", !13, i64 0, !14, i64 8, !7, i64 16, !14, i64 24, !14, i64 32, !14, i64 40, !13, i64 48, !14, i64 56}
!13 = !{!"int", !8, i64 0}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!12, !14, i64 24}
!16 = !{!14, !14, i64 0}
!17 = !{!18, !7, i64 0}
!18 = !{!"_ZTS11FT_FaceRec_", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !14, i64 40, !14, i64 48, !13, i64 56, !14, i64 64, !13, i64 72, !14, i64 80, !19, i64 88, !20, i64 104, !21, i64 136, !21, i64 138, !21, i64 140, !21, i64 142, !21, i64 144, !21, i64 146, !21, i64 148, !21, i64 150, !14, i64 152, !14, i64 160, !14, i64 168, !14, i64 176, !14, i64 184, !14, i64 192, !22, i64 200, !19, i64 216, !14, i64 232, !14, i64 240}
!19 = !{!"_ZTS11FT_Generic_", !14, i64 0, !14, i64 8}
!20 = !{!"_ZTS8FT_BBox_", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24}
!21 = !{!"short", !8, i64 0}
!22 = !{!"_ZTS11FT_ListRec_", !14, i64 0, !14, i64 8}
!23 = !{!18, !14, i64 40}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,SROAPass,SimplifyCFGPass,TailCallElimPass