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

; 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.otfcc_Packet = type { i32, i16, i16, i16, i16, ptr }
%struct.otfcc_PacketPiece = type { i32, i32, i32, i32, ptr }
%struct.otfcc_Options = type { i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, ptr, ptr }
%struct.otfcc_ILogger = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.table_hhea = type { i32, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, [4 x i16], i16, i16 }

@.str = external hidden unnamed_addr constant [25 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local ptr @otfcc_readHhea(ptr noundef byval(%struct.otfcc_Packet) align 8 %0, ptr noundef %1) #0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %struct.otfcc_PacketPiece, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 1, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 0, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 1, ptr %7, align 4, !tbaa !9
  br label %14

14:                                               ; preds = %174, %2
  %15 = load i32, ptr %7, align 4, !tbaa !9
  %16 = icmp ne i32 %15, 0
  br i1 %16, label %17, label %26

17:                                               ; preds = %14
  %18 = load i32, ptr %5, align 4, !tbaa !9
  %19 = icmp ne i32 %18, 0
  br i1 %19, label %20, label %26

20:                                               ; preds = %17
  %21 = load i32, ptr %6, align 4, !tbaa !9
  %22 = getelementptr inbounds %struct.otfcc_Packet, ptr %0, i32 0, i32 1
  %23 = load i16, ptr %22, align 4, !tbaa !11
  %24 = zext i16 %23 to i32
  %25 = icmp slt i32 %21, %24
  br label %26

26:                                               ; preds = %20, %17, %14
  %27 = phi i1 [ false, %17 ], [ false, %14 ], [ %25, %20 ]
  br i1 %27, label %29, label %28

28:                                               ; preds = %26
  store i32 2, ptr %8, align 4
  br label %181

29:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #5
  %30 = getelementptr inbounds %struct.otfcc_Packet, ptr %0, i32 0, i32 5
  %31 = load ptr, ptr %30, align 8, !tbaa !14
  %32 = load i32, ptr %6, align 4, !tbaa !9
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds %struct.otfcc_PacketPiece, ptr %31, i64 %33
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %9, ptr align 8 %34, i64 24, i1 false), !tbaa.struct !15
  br label %35

35:                                               ; preds = %166, %29
  %36 = load i32, ptr %5, align 4, !tbaa !9
  %37 = icmp ne i32 %36, 0
  br i1 %37, label %39, label %38

38:                                               ; preds = %35
  store i32 5, ptr %8, align 4
  br label %171

39:                                               ; preds = %35
  %40 = getelementptr inbounds %struct.otfcc_PacketPiece, ptr %9, i32 0, i32 0
  %41 = load i32, ptr %40, align 8, !tbaa !16
  %42 = icmp eq i32 %41, 1751672161
  br i1 %42, label %43, label %165

43:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 1, ptr %10, align 4, !tbaa !9
  br label %44

44:                                               ; preds = %161, %43
  %45 = load i32, ptr %10, align 4, !tbaa !9
  %46 = icmp ne i32 %45, 0
  br i1 %46, label %48, label %47

47:                                               ; preds = %44
  store i32 8, ptr %8, align 4
  br label %162

48:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %49 = getelementptr inbounds %struct.otfcc_PacketPiece, ptr %9, i32 0, i32 4
  %50 = load ptr, ptr %49, align 8, !tbaa !18
  store ptr %50, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %51 = getelementptr inbounds %struct.otfcc_PacketPiece, ptr %9, i32 0, i32 3
  %52 = load i32, ptr %51, align 4, !tbaa !19
  store i32 %52, ptr %12, align 4, !tbaa !9
  %53 = load i32, ptr %12, align 4, !tbaa !9
  %54 = icmp ult i32 %53, 36
  br i1 %54, label %55, label %66

55:                                               ; preds = %48
  %56 = load ptr, ptr %4, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.otfcc_Options, ptr %56, i32 0, i32 24
  %58 = load ptr, ptr %57, align 8, !tbaa !20
  %59 = getelementptr inbounds %struct.otfcc_ILogger, ptr %58, i32 0, i32 6
  %60 = load ptr, ptr %59, align 8, !tbaa !23
  %61 = load ptr, ptr %4, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.otfcc_Options, ptr %61, i32 0, i32 24
  %63 = load ptr, ptr %62, align 8, !tbaa !20
  %64 = call ptr @sdsempty()
  %65 = call ptr (ptr, ptr, ...) @sdscatprintf(ptr noundef %64, ptr noundef @.str)
  call void %60(ptr noundef %63, i8 noundef zeroext 1, i32 noundef 1, ptr noundef %65)
  br label %157

66:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %67 = call ptr @__caryll_allocate_clean(i64 noundef 36, i64 noundef 23)
  store ptr %67, ptr %13, align 8, !tbaa !5
  %68 = load ptr, ptr %11, align 8, !tbaa !5
  %69 = call i32 @read_32s(ptr noundef %68)
  %70 = load ptr, ptr %13, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.table_hhea, ptr %70, i32 0, i32 0
  store i32 %69, ptr %71, align 4, !tbaa !25
  %72 = load ptr, ptr %11, align 8, !tbaa !5
  %73 = getelementptr inbounds i8, ptr %72, i64 4
  %74 = call zeroext i16 @read_16u(ptr noundef %73)
  %75 = load ptr, ptr %13, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.table_hhea, ptr %75, i32 0, i32 1
  store i16 %74, ptr %76, align 4, !tbaa !27
  %77 = load ptr, ptr %11, align 8, !tbaa !5
  %78 = getelementptr inbounds i8, ptr %77, i64 6
  %79 = call zeroext i16 @read_16u(ptr noundef %78)
  %80 = load ptr, ptr %13, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.table_hhea, ptr %80, i32 0, i32 2
  store i16 %79, ptr %81, align 2, !tbaa !28
  %82 = load ptr, ptr %11, align 8, !tbaa !5
  %83 = getelementptr inbounds i8, ptr %82, i64 8
  %84 = call zeroext i16 @read_16u(ptr noundef %83)
  %85 = load ptr, ptr %13, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.table_hhea, ptr %85, i32 0, i32 3
  store i16 %84, ptr %86, align 4, !tbaa !29
  %87 = load ptr, ptr %11, align 8, !tbaa !5
  %88 = getelementptr inbounds i8, ptr %87, i64 10
  %89 = call zeroext i16 @read_16u(ptr noundef %88)
  %90 = load ptr, ptr %13, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.table_hhea, ptr %90, i32 0, i32 4
  store i16 %89, ptr %91, align 2, !tbaa !30
  %92 = load ptr, ptr %11, align 8, !tbaa !5
  %93 = getelementptr inbounds i8, ptr %92, i64 12
  %94 = call zeroext i16 @read_16u(ptr noundef %93)
  %95 = load ptr, ptr %13, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.table_hhea, ptr %95, i32 0, i32 5
  store i16 %94, ptr %96, align 4, !tbaa !31
  %97 = load ptr, ptr %11, align 8, !tbaa !5
  %98 = getelementptr inbounds i8, ptr %97, i64 14
  %99 = call zeroext i16 @read_16u(ptr noundef %98)
  %100 = load ptr, ptr %13, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.table_hhea, ptr %100, i32 0, i32 6
  store i16 %99, ptr %101, align 2, !tbaa !32
  %102 = load ptr, ptr %11, align 8, !tbaa !5
  %103 = getelementptr inbounds i8, ptr %102, i64 16
  %104 = call zeroext i16 @read_16u(ptr noundef %103)
  %105 = load ptr, ptr %13, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.table_hhea, ptr %105, i32 0, i32 7
  store i16 %104, ptr %106, align 4, !tbaa !33
  %107 = load ptr, ptr %11, align 8, !tbaa !5
  %108 = getelementptr inbounds i8, ptr %107, i64 18
  %109 = call zeroext i16 @read_16u(ptr noundef %108)
  %110 = load ptr, ptr %13, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.table_hhea, ptr %110, i32 0, i32 8
  store i16 %109, ptr %111, align 2, !tbaa !34
  %112 = load ptr, ptr %11, align 8, !tbaa !5
  %113 = getelementptr inbounds i8, ptr %112, i64 20
  %114 = call zeroext i16 @read_16u(ptr noundef %113)
  %115 = load ptr, ptr %13, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.table_hhea, ptr %115, i32 0, i32 9
  store i16 %114, ptr %116, align 4, !tbaa !35
  %117 = load ptr, ptr %11, align 8, !tbaa !5
  %118 = getelementptr inbounds i8, ptr %117, i64 22
  %119 = call zeroext i16 @read_16u(ptr noundef %118)
  %120 = load ptr, ptr %13, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.table_hhea, ptr %120, i32 0, i32 10
  store i16 %119, ptr %121, align 2, !tbaa !36
  %122 = load ptr, ptr %11, align 8, !tbaa !5
  %123 = getelementptr inbounds i8, ptr %122, i64 24
  %124 = call zeroext i16 @read_16u(ptr noundef %123)
  %125 = load ptr, ptr %13, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.table_hhea, ptr %125, i32 0, i32 11
  %127 = getelementptr inbounds [4 x i16], ptr %126, i64 0, i64 0
  store i16 %124, ptr %127, align 4, !tbaa !37
  %128 = load ptr, ptr %11, align 8, !tbaa !5
  %129 = getelementptr inbounds i8, ptr %128, i64 26
  %130 = call zeroext i16 @read_16u(ptr noundef %129)
  %131 = load ptr, ptr %13, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.table_hhea, ptr %131, i32 0, i32 11
  %133 = getelementptr inbounds [4 x i16], ptr %132, i64 0, i64 1
  store i16 %130, ptr %133, align 2, !tbaa !37
  %134 = load ptr, ptr %11, align 8, !tbaa !5
  %135 = getelementptr inbounds i8, ptr %134, i64 28
  %136 = call zeroext i16 @read_16u(ptr noundef %135)
  %137 = load ptr, ptr %13, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.table_hhea, ptr %137, i32 0, i32 11
  %139 = getelementptr inbounds [4 x i16], ptr %138, i64 0, i64 2
  store i16 %136, ptr %139, align 4, !tbaa !37
  %140 = load ptr, ptr %11, align 8, !tbaa !5
  %141 = getelementptr inbounds i8, ptr %140, i64 30
  %142 = call zeroext i16 @read_16u(ptr noundef %141)
  %143 = load ptr, ptr %13, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.table_hhea, ptr %143, i32 0, i32 11
  %145 = getelementptr inbounds [4 x i16], ptr %144, i64 0, i64 3
  store i16 %142, ptr %145, align 2, !tbaa !37
  %146 = load ptr, ptr %11, align 8, !tbaa !5
  %147 = getelementptr inbounds i8, ptr %146, i64 32
  %148 = call zeroext i16 @read_16u(ptr noundef %147)
  %149 = load ptr, ptr %13, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.table_hhea, ptr %149, i32 0, i32 12
  store i16 %148, ptr %150, align 4, !tbaa !38
  %151 = load ptr, ptr %11, align 8, !tbaa !5
  %152 = getelementptr inbounds i8, ptr %151, i64 34
  %153 = call zeroext i16 @read_16u(ptr noundef %152)
  %154 = load ptr, ptr %13, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.table_hhea, ptr %154, i32 0, i32 13
  store i16 %153, ptr %155, align 2, !tbaa !39
  %156 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %156, ptr %3, align 8
  store i32 1, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  br label %158

157:                                              ; preds = %55
  store i32 0, ptr %8, align 4
  br label %158

158:                                              ; preds = %157, %66
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  %159 = load i32, ptr %8, align 4
  switch i32 %159, label %162 [
    i32 0, label %160
  ]

160:                                              ; preds = %158
  br label %161

161:                                              ; preds = %160
  store i32 0, ptr %10, align 4, !tbaa !9
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %44, !llvm.loop !40

162:                                              ; preds = %158, %47
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  %163 = load i32, ptr %8, align 4
  switch i32 %163, label %171 [
    i32 8, label %164
  ]

164:                                              ; preds = %162
  br label %165

165:                                              ; preds = %164, %39
  br label %166

166:                                              ; preds = %165
  %167 = load i32, ptr %5, align 4, !tbaa !9
  %168 = icmp ne i32 %167, 0
  %169 = xor i1 %168, true
  %170 = zext i1 %169 to i32
  store i32 %170, ptr %5, align 4, !tbaa !9
  br label %35, !llvm.loop !42

171:                                              ; preds = %162, %38
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #5
  %172 = load i32, ptr %8, align 4
  switch i32 %172, label %181 [
    i32 5, label %173
  ]

173:                                              ; preds = %171
  br label %174

174:                                              ; preds = %173
  %175 = load i32, ptr %5, align 4, !tbaa !9
  %176 = icmp ne i32 %175, 0
  %177 = xor i1 %176, true
  %178 = zext i1 %177 to i32
  store i32 %178, ptr %5, align 4, !tbaa !9
  %179 = load i32, ptr %6, align 4, !tbaa !9
  %180 = add nsw i32 %179, 1
  store i32 %180, ptr %6, align 4, !tbaa !9
  br label %14, !llvm.loop !43

181:                                              ; preds = %171, %28
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  %182 = load i32, ptr %8, align 4
  switch i32 %182, label %186 [
    i32 2, label %183
    i32 1, label %184
  ]

183:                                              ; preds = %181
  store ptr null, ptr %3, align 8
  br label %184

184:                                              ; preds = %183, %181
  %185 = load ptr, ptr %3, align 8
  ret ptr %185

186:                                              ; preds = %181
  unreachable
}

; 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 @sdscatprintf(ptr noundef, ptr noundef, ...) #3

declare ptr @sdsempty() #3

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @read_32s(ptr noundef) #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i16 @read_16u(ptr noundef) #4

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

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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !13, i64 4}
!12 = !{!"", !10, i64 0, !13, i64 4, !13, i64 6, !13, i64 8, !13, i64 10, !6, i64 16}
!13 = !{!"short", !7, i64 0}
!14 = !{!12, !6, i64 16}
!15 = !{i64 0, i64 4, !9, i64 4, i64 4, !9, i64 8, i64 4, !9, i64 12, i64 4, !9, i64 16, i64 8, !5}
!16 = !{!17, !10, i64 0}
!17 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !6, i64 16}
!18 = !{!17, !6, i64 16}
!19 = !{!17, !10, i64 12}
!20 = !{!21, !6, i64 32}
!21 = !{!"", !22, i64 0, !22, i64 1, !22, i64 2, !22, i64 3, !22, i64 4, !22, i64 5, !22, i64 6, !22, i64 7, !22, i64 8, !22, i64 9, !22, i64 10, !22, i64 11, !22, i64 12, !22, i64 13, !22, i64 14, !22, i64 15, !22, i64 16, !22, i64 17, !22, i64 18, !22, i64 19, !22, i64 20, !22, i64 21, !22, i64 22, !6, i64 24, !6, i64 32}
!22 = !{!"_Bool", !7, i64 0}
!23 = !{!24, !6, i64 48}
!24 = !{!"otfcc_ILogger", !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}
!25 = !{!26, !10, i64 0}
!26 = !{!"", !10, i64 0, !13, i64 4, !13, i64 6, !13, i64 8, !13, i64 10, !13, i64 12, !13, i64 14, !13, i64 16, !13, i64 18, !13, i64 20, !13, i64 22, !7, i64 24, !13, i64 32, !13, i64 34}
!27 = !{!26, !13, i64 4}
!28 = !{!26, !13, i64 6}
!29 = !{!26, !13, i64 8}
!30 = !{!26, !13, i64 10}
!31 = !{!26, !13, i64 12}
!32 = !{!26, !13, i64 14}
!33 = !{!26, !13, i64 16}
!34 = !{!26, !13, i64 18}
!35 = !{!26, !13, i64 20}
!36 = !{!26, !13, i64 22}
!37 = !{!13, !13, i64 0}
!38 = !{!26, !13, i64 32}
!39 = !{!26, !13, i64 34}
!40 = distinct !{!40, !41}
!41 = !{!"llvm.loop.mustprogress"}
!42 = distinct !{!42, !41}
!43 = distinct !{!43, !41}


; 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.otfcc_Packet = type { i32, i16, i16, i16, i16, ptr }
%struct.otfcc_PacketPiece = type { i32, i32, i32, i32, ptr }

@.str = external hidden unnamed_addr constant [25 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local ptr @otfcc_readHhea(ptr nocapture noundef readonly byval(%struct.otfcc_Packet) align 8 %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
  %3 = getelementptr inbounds i8, ptr %0, i64 4
  %4 = load i16, ptr %3, align 4
  %5 = icmp eq i16 %4, 0
  br i1 %5, label %.critedge, label %.lr.ph

.lr.ph:                                           ; preds = %2
  %6 = getelementptr inbounds i8, ptr %0, i64 16
  %7 = load ptr, ptr %6, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %1, i64 32
  %9 = zext i16 %4 to i64
  br label %10

10:                                               ; preds = %.lr.ph, %.split90
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %.split90 ]
  %11 = getelementptr inbounds %struct.otfcc_PacketPiece, ptr %7, i64 %indvars.iv
  %.sroa.0.0.copyload = load i32, ptr %11, align 8, !tbaa !12
  %12 = icmp eq i32 %.sroa.0.0.copyload, 1751672161
  br i1 %12, label %.split.us, label %.split90

.split.us:                                        ; preds = %10
  %.sroa.439.0..sroa_idx = getelementptr inbounds i8, ptr %11, i64 12
  %.sroa.439.0.copyload = load i32, ptr %.sroa.439.0..sroa_idx, align 4, !tbaa !12
  %13 = icmp ult i32 %.sroa.439.0.copyload, 36
  br i1 %13, label %.split90.thread, label %.split92.us

.split90.thread:                                  ; preds = %.split.us
  %14 = load ptr, ptr %8, align 8, !tbaa !13
  %15 = getelementptr inbounds i8, ptr %14, i64 48
  %16 = load ptr, ptr %15, align 8, !tbaa !16
  %17 = tail call ptr @sdsempty() #3
  %18 = tail call ptr (ptr, ptr, ...) @sdscatprintf(ptr noundef %17, ptr noundef nonnull @.str) #3
  tail call void %16(ptr noundef %14, i8 noundef zeroext 1, i32 noundef 1, ptr noundef %18) #3
  br label %.critedge

.split92.us:                                      ; preds = %.split.us
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %11, i64 16
  %.sroa.5.0.copyload = load ptr, ptr %.sroa.5.0..sroa_idx, align 8, !tbaa !18
  %19 = tail call ptr @__caryll_allocate_clean(i64 noundef 36, i64 noundef 23)
  %20 = tail call i32 @read_32s(ptr noundef %.sroa.5.0.copyload)
  store i32 %20, ptr %19, align 4, !tbaa !19
  %21 = getelementptr inbounds i8, ptr %.sroa.5.0.copyload, i64 4
  %22 = tail call zeroext i16 @read_16u(ptr noundef nonnull %21)
  %23 = getelementptr inbounds i8, ptr %19, i64 4
  store i16 %22, ptr %23, align 4, !tbaa !21
  %24 = getelementptr inbounds i8, ptr %.sroa.5.0.copyload, i64 6
  %25 = tail call zeroext i16 @read_16u(ptr noundef nonnull %24)
  %26 = getelementptr inbounds i8, ptr %19, i64 6
  store i16 %25, ptr %26, align 2, !tbaa !22
  %27 = getelementptr inbounds i8, ptr %.sroa.5.0.copyload, i64 8
  %28 = tail call zeroext i16 @read_16u(ptr noundef nonnull %27)
  %29 = getelementptr inbounds i8, ptr %19, i64 8
  store i16 %28, ptr %29, align 4, !tbaa !23
  %30 = getelementptr inbounds i8, ptr %.sroa.5.0.copyload, i64 10
  %31 = tail call zeroext i16 @read_16u(ptr noundef nonnull %30)
  %32 = getelementptr inbounds i8, ptr %19, i64 10
  store i16 %31, ptr %32, align 2, !tbaa !24
  %33 = getelementptr inbounds i8, ptr %.sroa.5.0.copyload, i64 12
  %34 = tail call zeroext i16 @read_16u(ptr noundef nonnull %33)
  %35 = getelementptr inbounds i8, ptr %19, i64 12
  store i16 %34, ptr %35, align 4, !tbaa !25
  %36 = getelementptr inbounds i8, ptr %.sroa.5.0.copyload, i64 14
  %37 = tail call zeroext i16 @read_16u(ptr noundef nonnull %36)
  %38 = getelementptr inbounds i8, ptr %19, i64 14
  store i16 %37, ptr %38, align 2, !tbaa !26
  %39 = getelementptr inbounds i8, ptr %.sroa.5.0.copyload, i64 16
  %40 = tail call zeroext i16 @read_16u(ptr noundef nonnull %39)
  %41 = getelementptr inbounds i8, ptr %19, i64 16
  store i16 %40, ptr %41, align 4, !tbaa !27
  %42 = getelementptr inbounds i8, ptr %.sroa.5.0.copyload, i64 18
  %43 = tail call zeroext i16 @read_16u(ptr noundef nonnull %42)
  %44 = getelementptr inbounds i8, ptr %19, i64 18
  store i16 %43, ptr %44, align 2, !tbaa !28
  %45 = getelementptr inbounds i8, ptr %.sroa.5.0.copyload, i64 20
  %46 = tail call zeroext i16 @read_16u(ptr noundef nonnull %45)
  %47 = getelementptr inbounds i8, ptr %19, i64 20
  store i16 %46, ptr %47, align 4, !tbaa !29
  %48 = getelementptr inbounds i8, ptr %.sroa.5.0.copyload, i64 22
  %49 = tail call zeroext i16 @read_16u(ptr noundef nonnull %48)
  %50 = getelementptr inbounds i8, ptr %19, i64 22
  store i16 %49, ptr %50, align 2, !tbaa !30
  %51 = getelementptr inbounds i8, ptr %.sroa.5.0.copyload, i64 24
  %52 = tail call zeroext i16 @read_16u(ptr noundef nonnull %51)
  %53 = getelementptr inbounds i8, ptr %19, i64 24
  store i16 %52, ptr %53, align 4, !tbaa !31
  %54 = getelementptr inbounds i8, ptr %.sroa.5.0.copyload, i64 26
  %55 = tail call zeroext i16 @read_16u(ptr noundef nonnull %54)
  %56 = getelementptr inbounds i8, ptr %19, i64 26
  store i16 %55, ptr %56, align 2, !tbaa !31
  %57 = getelementptr inbounds i8, ptr %.sroa.5.0.copyload, i64 28
  %58 = tail call zeroext i16 @read_16u(ptr noundef nonnull %57)
  %59 = getelementptr inbounds i8, ptr %19, i64 28
  store i16 %58, ptr %59, align 4, !tbaa !31
  %60 = getelementptr inbounds i8, ptr %.sroa.5.0.copyload, i64 30
  %61 = tail call zeroext i16 @read_16u(ptr noundef nonnull %60)
  %62 = getelementptr inbounds i8, ptr %19, i64 30
  store i16 %61, ptr %62, align 2, !tbaa !31
  %63 = getelementptr inbounds i8, ptr %.sroa.5.0.copyload, i64 32
  %64 = tail call zeroext i16 @read_16u(ptr noundef nonnull %63)
  %65 = getelementptr inbounds i8, ptr %19, i64 32
  store i16 %64, ptr %65, align 4, !tbaa !32
  %66 = getelementptr inbounds i8, ptr %.sroa.5.0.copyload, i64 34
  %67 = tail call zeroext i16 @read_16u(ptr noundef nonnull %66)
  %68 = getelementptr inbounds i8, ptr %19, i64 34
  store i16 %67, ptr %68, align 2, !tbaa !33
  br label %.critedge

.split90:                                         ; preds = %10
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %.not = icmp ult i64 %indvars.iv.next, %9
  br i1 %.not, label %10, label %.critedge, !llvm.loop !34

.critedge:                                        ; preds = %.split90, %.split90.thread, %2, %.split92.us
  %spec.select = phi ptr [ %19, %.split92.us ], [ null, %2 ], [ null, %.split90.thread ], [ null, %.split90 ]
  ret ptr %spec.select
}

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

declare ptr @sdsempty() local_unnamed_addr #1

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @read_32s(ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i16 @read_16u(ptr noundef) 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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, !11, i64 16}
!6 = !{!"", !7, i64 0, !10, i64 4, !10, i64 6, !10, i64 8, !10, i64 10, !11, i64 16}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"short", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!7, !7, i64 0}
!13 = !{!14, !11, i64 32}
!14 = !{!"", !15, i64 0, !15, i64 1, !15, i64 2, !15, i64 3, !15, i64 4, !15, i64 5, !15, i64 6, !15, i64 7, !15, i64 8, !15, i64 9, !15, i64 10, !15, i64 11, !15, i64 12, !15, i64 13, !15, i64 14, !15, i64 15, !15, i64 16, !15, i64 17, !15, i64 18, !15, i64 19, !15, i64 20, !15, i64 21, !15, i64 22, !11, i64 24, !11, i64 32}
!15 = !{!"_Bool", !8, i64 0}
!16 = !{!17, !11, i64 48}
!17 = !{!"otfcc_ILogger", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !11, i64 88}
!18 = !{!11, !11, i64 0}
!19 = !{!20, !7, i64 0}
!20 = !{!"", !7, i64 0, !10, i64 4, !10, i64 6, !10, i64 8, !10, i64 10, !10, i64 12, !10, i64 14, !10, i64 16, !10, i64 18, !10, i64 20, !10, i64 22, !8, i64 24, !10, i64 32, !10, i64 34}
!21 = !{!20, !10, i64 4}
!22 = !{!20, !10, i64 6}
!23 = !{!20, !10, i64 8}
!24 = !{!20, !10, i64 10}
!25 = !{!20, !10, i64 12}
!26 = !{!20, !10, i64 14}
!27 = !{!20, !10, i64 16}
!28 = !{!20, !10, i64 18}
!29 = !{!20, !10, i64 20}
!30 = !{!20, !10, i64 22}
!31 = !{!10, !10, i64 0}
!32 = !{!20, !10, i64 32}
!33 = !{!20, !10, i64 34}
!34 = distinct !{!34, !35}
!35 = !{!"llvm.loop.mustprogress"}


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