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

; 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_head = type { i32, i32, i32, i32, i16, i16, i64, i64, i16, i16, i16, i16, i16, i16, i16, i16, i16 }

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

; Function Attrs: nounwind uwtable
define dso_local ptr @otfcc_readHead(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 = %170, %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 %177

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 = %162, %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 %167

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, 1751474532
  br i1 %42, label %43, label %161

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 = %157, %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 %158

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, 54
  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 %153

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

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

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

156:                                              ; preds = %154
  br label %157

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

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

160:                                              ; preds = %158
  br label %161

161:                                              ; preds = %160, %39
  br label %162

162:                                              ; preds = %161
  %163 = load i32, ptr %5, align 4, !tbaa !9
  %164 = icmp ne i32 %163, 0
  %165 = xor i1 %164, true
  %166 = zext i1 %165 to i32
  store i32 %166, ptr %5, align 4, !tbaa !9
  br label %35, !llvm.loop !46

167:                                              ; preds = %158, %38
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #5
  %168 = load i32, ptr %8, align 4
  switch i32 %168, label %177 [
    i32 5, label %169
  ]

169:                                              ; preds = %167
  br label %170

170:                                              ; preds = %169
  %171 = load i32, ptr %5, align 4, !tbaa !9
  %172 = icmp ne i32 %171, 0
  %173 = xor i1 %172, true
  %174 = zext i1 %173 to i32
  store i32 %174, ptr %5, align 4, !tbaa !9
  %175 = load i32, ptr %6, align 4, !tbaa !9
  %176 = add nsw i32 %175, 1
  store i32 %176, ptr %6, align 4, !tbaa !9
  br label %14, !llvm.loop !47

177:                                              ; preds = %167, %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
  %178 = load i32, ptr %8, align 4
  switch i32 %178, label %182 [
    i32 2, label %179
    i32 1, label %180
  ]

179:                                              ; preds = %177
  store ptr null, ptr %3, align 8
  br label %180

180:                                              ; preds = %179, %177
  %181 = load ptr, ptr %3, align 8
  ret ptr %181

182:                                              ; preds = %177
  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 i32 @read_32u(ptr noundef) #4

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @read_64u(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, !10, i64 4, !10, i64 8, !10, i64 12, !13, i64 16, !13, i64 18, !27, i64 24, !27, i64 32, !13, i64 40, !13, i64 42, !13, i64 44, !13, i64 46, !13, i64 48, !13, i64 50, !13, i64 52, !13, i64 54, !13, i64 56}
!27 = !{!"long", !7, i64 0}
!28 = !{!26, !10, i64 4}
!29 = !{!26, !10, i64 8}
!30 = !{!26, !10, i64 12}
!31 = !{!26, !13, i64 16}
!32 = !{!26, !13, i64 18}
!33 = !{!26, !27, i64 24}
!34 = !{!26, !27, i64 32}
!35 = !{!26, !13, i64 40}
!36 = !{!26, !13, i64 42}
!37 = !{!26, !13, i64 44}
!38 = !{!26, !13, i64 46}
!39 = !{!26, !13, i64 48}
!40 = !{!26, !13, i64 50}
!41 = !{!26, !13, i64 52}
!42 = !{!26, !13, i64 54}
!43 = !{!26, !13, i64 56}
!44 = distinct !{!44, !45}
!45 = !{!"llvm.loop.mustprogress"}
!46 = distinct !{!46, !45}
!47 = distinct !{!47, !45}


; 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_readHead(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, 1751474532
  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, 54
  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 64, i64 noundef 24)
  %20 = tail call i32 @read_32s(ptr noundef %.sroa.5.0.copyload)
  store i32 %20, ptr %19, align 8, !tbaa !19
  %21 = getelementptr inbounds i8, ptr %.sroa.5.0.copyload, i64 4
  %22 = tail call i32 @read_32u(ptr noundef nonnull %21)
  %23 = getelementptr inbounds i8, ptr %19, i64 4
  store i32 %22, ptr %23, align 4, !tbaa !22
  %24 = getelementptr inbounds i8, ptr %.sroa.5.0.copyload, i64 8
  %25 = tail call i32 @read_32u(ptr noundef nonnull %24)
  %26 = getelementptr inbounds i8, ptr %19, i64 8
  store i32 %25, ptr %26, align 8, !tbaa !23
  %27 = getelementptr inbounds i8, ptr %.sroa.5.0.copyload, i64 12
  %28 = tail call i32 @read_32u(ptr noundef nonnull %27)
  %29 = getelementptr inbounds i8, ptr %19, i64 12
  store i32 %28, ptr %29, align 4, !tbaa !24
  %30 = getelementptr inbounds i8, ptr %.sroa.5.0.copyload, i64 16
  %31 = tail call zeroext i16 @read_16u(ptr noundef nonnull %30)
  %32 = getelementptr inbounds i8, ptr %19, i64 16
  store i16 %31, ptr %32, align 8, !tbaa !25
  %33 = getelementptr inbounds i8, ptr %.sroa.5.0.copyload, i64 18
  %34 = tail call zeroext i16 @read_16u(ptr noundef nonnull %33)
  %35 = getelementptr inbounds i8, ptr %19, i64 18
  store i16 %34, ptr %35, align 2, !tbaa !26
  %36 = getelementptr inbounds i8, ptr %.sroa.5.0.copyload, i64 20
  %37 = tail call i64 @read_64u(ptr noundef nonnull %36)
  %38 = getelementptr inbounds i8, ptr %19, i64 24
  store i64 %37, ptr %38, align 8, !tbaa !27
  %39 = getelementptr inbounds i8, ptr %.sroa.5.0.copyload, i64 28
  %40 = tail call i64 @read_64u(ptr noundef nonnull %39)
  %41 = getelementptr inbounds i8, ptr %19, i64 32
  store i64 %40, ptr %41, align 8, !tbaa !28
  %42 = getelementptr inbounds i8, ptr %.sroa.5.0.copyload, i64 36
  %43 = tail call zeroext i16 @read_16u(ptr noundef nonnull %42)
  %44 = getelementptr inbounds i8, ptr %19, i64 40
  store i16 %43, ptr %44, align 8, !tbaa !29
  %45 = getelementptr inbounds i8, ptr %.sroa.5.0.copyload, i64 38
  %46 = tail call zeroext i16 @read_16u(ptr noundef nonnull %45)
  %47 = getelementptr inbounds i8, ptr %19, i64 42
  store i16 %46, ptr %47, align 2, !tbaa !30
  %48 = getelementptr inbounds i8, ptr %.sroa.5.0.copyload, i64 40
  %49 = tail call zeroext i16 @read_16u(ptr noundef nonnull %48)
  %50 = getelementptr inbounds i8, ptr %19, i64 44
  store i16 %49, ptr %50, align 4, !tbaa !31
  %51 = getelementptr inbounds i8, ptr %.sroa.5.0.copyload, i64 42
  %52 = tail call zeroext i16 @read_16u(ptr noundef nonnull %51)
  %53 = getelementptr inbounds i8, ptr %19, i64 46
  store i16 %52, ptr %53, align 2, !tbaa !32
  %54 = getelementptr inbounds i8, ptr %.sroa.5.0.copyload, i64 44
  %55 = tail call zeroext i16 @read_16u(ptr noundef nonnull %54)
  %56 = getelementptr inbounds i8, ptr %19, i64 48
  store i16 %55, ptr %56, align 8, !tbaa !33
  %57 = getelementptr inbounds i8, ptr %.sroa.5.0.copyload, i64 46
  %58 = tail call zeroext i16 @read_16u(ptr noundef nonnull %57)
  %59 = getelementptr inbounds i8, ptr %19, i64 50
  store i16 %58, ptr %59, align 2, !tbaa !34
  %60 = getelementptr inbounds i8, ptr %.sroa.5.0.copyload, i64 48
  %61 = tail call zeroext i16 @read_16u(ptr noundef nonnull %60)
  %62 = getelementptr inbounds i8, ptr %19, i64 52
  store i16 %61, ptr %62, align 4, !tbaa !35
  %63 = getelementptr inbounds i8, ptr %.sroa.5.0.copyload, i64 50
  %64 = tail call zeroext i16 @read_16u(ptr noundef nonnull %63)
  %65 = getelementptr inbounds i8, ptr %19, i64 54
  store i16 %64, ptr %65, align 2, !tbaa !36
  %66 = getelementptr inbounds i8, ptr %.sroa.5.0.copyload, i64 52
  %67 = tail call zeroext i16 @read_16u(ptr noundef nonnull %66)
  %68 = getelementptr inbounds i8, ptr %19, i64 56
  store i16 %67, ptr %68, align 8, !tbaa !37
  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 !38

.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 i32 @read_32u(ptr noundef) local_unnamed_addr #2

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @read_64u(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, !7, i64 4, !7, i64 8, !7, i64 12, !10, i64 16, !10, i64 18, !21, i64 24, !21, i64 32, !10, i64 40, !10, i64 42, !10, i64 44, !10, i64 46, !10, i64 48, !10, i64 50, !10, i64 52, !10, i64 54, !10, i64 56}
!21 = !{!"long", !8, i64 0}
!22 = !{!20, !7, i64 4}
!23 = !{!20, !7, i64 8}
!24 = !{!20, !7, i64 12}
!25 = !{!20, !10, i64 16}
!26 = !{!20, !10, i64 18}
!27 = !{!20, !21, i64 24}
!28 = !{!20, !21, i64 32}
!29 = !{!20, !10, i64 40}
!30 = !{!20, !10, i64 42}
!31 = !{!20, !10, i64 44}
!32 = !{!20, !10, i64 46}
!33 = !{!20, !10, i64 48}
!34 = !{!20, !10, i64 50}
!35 = !{!20, !10, i64 52}
!36 = !{!20, !10, i64 54}
!37 = !{!20, !10, i64 56}
!38 = distinct !{!38, !39}
!39 = !{!"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