; LLVM IR from sylefeb/Silixel :: src/fstapi (fstapi)

; 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.fstWriterContext = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, i64, ptr, ptr, ptr, i32, ptr, i32, i32, i32, i8, i64, i64, i32, i32, i64, i64, i32, i32, i32, i64, i32, double, ptr, ptr, i32, i64, i8, i8, i8, i8, i8, i64, i64, i64, i64, i64, i32, ptr, i32, i8, ptr, ptr, ptr, ptr, i32 }

@stderr = external global ptr, align 8
@.str.15 = external hidden unnamed_addr constant [69 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(none)
declare i64 @llvm.expect.i64(i64, i64) #2

; Function Attrs: nounwind uwtable
define dso_local void @fstWriterEmitValueChange(ptr noundef %0, i32 noundef %1, ptr noundef %2) #3 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  %12 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %12, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  %13 = load ptr, ptr %4, align 8, !tbaa !5
  %14 = icmp ne ptr %13, null
  br i1 %14, label %15, label %21

15:                                               ; preds = %3
  %16 = load i32, ptr %5, align 4, !tbaa !9
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.fstWriterContext, ptr %17, i32 0, i32 13
  %19 = load i32, ptr %18, align 8, !tbaa !11
  %20 = icmp ule i32 %16, %19
  br label %21

21:                                               ; preds = %15, %3
  %22 = phi i1 [ false, %3 ], [ %20, %15 ]
  %23 = xor i1 %22, true
  %24 = xor i1 %23, true
  %25 = zext i1 %24 to i32
  %26 = sext i32 %25 to i64
  %27 = call i64 @llvm.expect.i64(i64 %26, i64 1)
  %28 = icmp ne i64 %27, 0
  br i1 %28, label %29, label %181

29:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.fstWriterContext, ptr %30, i32 0, i32 8
  %32 = load ptr, ptr %31, align 8, !tbaa !15
  %33 = icmp ne ptr %32, null
  %34 = xor i1 %33, true
  %35 = xor i1 %34, true
  %36 = xor i1 %35, true
  %37 = zext i1 %36 to i32
  %38 = sext i32 %37 to i64
  %39 = call i64 @llvm.expect.i64(i64 %38, i64 0)
  %40 = icmp ne i64 %39, 0
  br i1 %40, label %41, label %48

41:                                               ; preds = %29
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.fstWriterContext, ptr %42, i32 0, i32 16
  %44 = load i8, ptr %43, align 4
  %45 = and i8 %44, -2
  %46 = or i8 %45, 1
  store i8 %46, ptr %43, align 4
  %47 = load ptr, ptr %4, align 8, !tbaa !5
  call void @fstWriterCreateMmaps(ptr noundef %47)
  br label %48

48:                                               ; preds = %41, %29
  %49 = load i32, ptr %5, align 4, !tbaa !9
  %50 = add i32 %49, -1
  store i32 %50, ptr %5, align 4, !tbaa !9
  %51 = load ptr, ptr %4, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.fstWriterContext, ptr %51, i32 0, i32 8
  %53 = load ptr, ptr %52, align 8, !tbaa !15
  %54 = load i32, ptr %5, align 4, !tbaa !9
  %55 = mul i32 4, %54
  %56 = zext i32 %55 to i64
  %57 = getelementptr inbounds i32, ptr %53, i64 %56
  store ptr %57, ptr %11, align 8, !tbaa !5
  %58 = load ptr, ptr %11, align 8, !tbaa !5
  %59 = getelementptr inbounds i32, ptr %58, i64 1
  %60 = load i32, ptr %59, align 4, !tbaa !9
  store i32 %60, ptr %9, align 4, !tbaa !9
  %61 = load i32, ptr %9, align 4, !tbaa !9
  %62 = icmp ne i32 %61, 0
  %63 = xor i1 %62, true
  %64 = xor i1 %63, true
  %65 = zext i1 %64 to i32
  %66 = sext i32 %65 to i64
  %67 = call i64 @llvm.expect.i64(i64 %66, i64 1)
  %68 = icmp ne i64 %67, 0
  br i1 %68, label %69, label %180

69:                                               ; preds = %48
  %70 = load ptr, ptr %4, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.fstWriterContext, ptr %70, i32 0, i32 16
  %72 = load i8, ptr %71, align 4
  %73 = lshr i8 %72, 1
  %74 = and i8 %73, 1
  %75 = zext i8 %74 to i32
  %76 = icmp ne i32 %75, 0
  %77 = xor i1 %76, true
  %78 = xor i1 %77, true
  %79 = xor i1 %78, true
  %80 = zext i1 %79 to i32
  %81 = sext i32 %80 to i64
  %82 = call i64 @llvm.expect.i64(i64 %81, i64 1)
  %83 = icmp ne i64 %82, 0
  br i1 %83, label %84, label %166

84:                                               ; preds = %69
  %85 = load ptr, ptr %4, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.fstWriterContext, ptr %85, i32 0, i32 23
  %87 = load i32, ptr %86, align 8, !tbaa !16
  store i32 %87, ptr %10, align 4, !tbaa !9
  %88 = load i32, ptr %10, align 4, !tbaa !9
  %89 = load i32, ptr %9, align 4, !tbaa !9
  %90 = add i32 %88, %89
  %91 = add i32 %90, 10
  %92 = load ptr, ptr %4, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.fstWriterContext, ptr %92, i32 0, i32 24
  %94 = load i32, ptr %93, align 4, !tbaa !17
  %95 = icmp ugt i32 %91, %94
  %96 = xor i1 %95, true
  %97 = xor i1 %96, true
  %98 = zext i1 %97 to i32
  %99 = sext i32 %98 to i64
  %100 = call i64 @llvm.expect.i64(i64 %99, i64 0)
  %101 = icmp ne i64 %100, 0
  br i1 %101, label %102, label %140

102:                                              ; preds = %84
  %103 = load ptr, ptr %4, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.fstWriterContext, ptr %103, i32 0, i32 41
  %105 = load i64, ptr %104, align 8, !tbaa !18
  %106 = load i32, ptr %9, align 4, !tbaa !9
  %107 = sext i32 %106 to i64
  %108 = add i64 %105, %107
  %109 = load ptr, ptr %4, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.fstWriterContext, ptr %109, i32 0, i32 24
  %111 = load i32, ptr %110, align 4, !tbaa !17
  %112 = zext i32 %111 to i64
  %113 = add i64 %112, %108
  %114 = trunc i64 %113 to i32
  store i32 %114, ptr %110, align 4, !tbaa !17
  %115 = load ptr, ptr %4, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.fstWriterContext, ptr %115, i32 0, i32 6
  %117 = load ptr, ptr %116, align 8, !tbaa !19
  %118 = load ptr, ptr %4, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.fstWriterContext, ptr %118, i32 0, i32 24
  %120 = load i32, ptr %119, align 4, !tbaa !17
  %121 = zext i32 %120 to i64
  %122 = call ptr @realloc(ptr noundef %117, i64 noundef %121) #8
  %123 = load ptr, ptr %4, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.fstWriterContext, ptr %123, i32 0, i32 6
  store ptr %122, ptr %124, align 8, !tbaa !19
  %125 = load ptr, ptr %4, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.fstWriterContext, ptr %125, i32 0, i32 6
  %127 = load ptr, ptr %126, align 8, !tbaa !19
  %128 = icmp ne ptr %127, null
  %129 = xor i1 %128, true
  %130 = xor i1 %129, true
  %131 = xor i1 %130, true
  %132 = zext i1 %131 to i32
  %133 = sext i32 %132 to i64
  %134 = call i64 @llvm.expect.i64(i64 %133, i64 0)
  %135 = icmp ne i64 %134, 0
  br i1 %135, label %136, label %139

136:                                              ; preds = %102
  %137 = load ptr, ptr @stderr, align 8, !tbaa !5
  %138 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %137, ptr noundef @.str.15) #7
  call void @exit(i32 noundef 255) #9
  unreachable

139:                                              ; preds = %102
  br label %140

140:                                              ; preds = %139, %84
  %141 = load ptr, ptr %4, align 8, !tbaa !5
  %142 = load ptr, ptr %11, align 8, !tbaa !5
  %143 = getelementptr inbounds i32, ptr %142, i64 2
  %144 = load ptr, ptr %4, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.fstWriterContext, ptr %144, i32 0, i32 20
  %146 = load i32, ptr %145, align 4, !tbaa !20
  %147 = load ptr, ptr %11, align 8, !tbaa !5
  %148 = getelementptr inbounds i32, ptr %147, i64 3
  %149 = load i32, ptr %148, align 4, !tbaa !9
  %150 = sub i32 %146, %149
  %151 = load ptr, ptr %7, align 8, !tbaa !5
  %152 = load i32, ptr %9, align 4, !tbaa !9
  %153 = call i32 @fstWriterUint32WithVarint32(ptr noundef %141, ptr noundef %143, i32 noundef %150, ptr noundef %151, i32 noundef %152)
  %154 = load ptr, ptr %4, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.fstWriterContext, ptr %154, i32 0, i32 23
  %156 = load i32, ptr %155, align 8, !tbaa !16
  %157 = add i32 %156, %153
  store i32 %157, ptr %155, align 8, !tbaa !16
  %158 = load ptr, ptr %4, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.fstWriterContext, ptr %158, i32 0, i32 20
  %160 = load i32, ptr %159, align 4, !tbaa !20
  %161 = load ptr, ptr %11, align 8, !tbaa !5
  %162 = getelementptr inbounds i32, ptr %161, i64 3
  store i32 %160, ptr %162, align 4, !tbaa !9
  %163 = load i32, ptr %10, align 4, !tbaa !9
  %164 = load ptr, ptr %11, align 8, !tbaa !5
  %165 = getelementptr inbounds i32, ptr %164, i64 2
  store i32 %163, ptr %165, align 4, !tbaa !9
  br label %179

166:                                              ; preds = %69
  %167 = load ptr, ptr %11, align 8, !tbaa !5
  %168 = getelementptr inbounds i32, ptr %167, i64 0
  %169 = load i32, ptr %168, align 4, !tbaa !9
  store i32 %169, ptr %8, align 4, !tbaa !9
  %170 = load ptr, ptr %4, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.fstWriterContext, ptr %170, i32 0, i32 9
  %172 = load ptr, ptr %171, align 8, !tbaa !21
  %173 = load i32, ptr %8, align 4, !tbaa !9
  %174 = zext i32 %173 to i64
  %175 = getelementptr inbounds i8, ptr %172, i64 %174
  %176 = load ptr, ptr %7, align 8, !tbaa !5
  %177 = load i32, ptr %9, align 4, !tbaa !9
  %178 = sext i32 %177 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %175, ptr align 1 %176, i64 %178, i1 false)
  br label %179

179:                                              ; preds = %166, %140
  br label %180

180:                                              ; preds = %179, %48
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  br label %181

181:                                              ; preds = %180, %21
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  ret void
}

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #4

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #5

; Function Attrs: nounwind allocsize(1)
declare ptr @realloc(ptr noundef, i64 noundef) #6

; Function Attrs: nounwind uwtable
declare hidden void @fstWriterCreateMmaps(ptr noundef) #3

; Function Attrs: nounwind uwtable
declare hidden i32 @fstWriterUint32WithVarint32(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(none) }
attributes #3 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { noreturn 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 #6 = { nounwind allocsize(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 #7 = { nounwind }
attributes #8 = { nounwind allocsize(1) }
attributes #9 = { noreturn 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, !10, i64 104}
!12 = !{!"fstWriterContext", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !13, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !10, i64 88, !6, i64 96, !10, i64 104, !10, i64 108, !10, i64 112, !10, i64 116, !10, i64 116, !10, i64 116, !10, i64 116, !13, i64 120, !13, i64 128, !10, i64 136, !10, i64 140, !13, i64 144, !13, i64 152, !10, i64 160, !10, i64 164, !10, i64 168, !13, i64 176, !10, i64 184, !14, i64 192, !6, i64 200, !6, i64 208, !10, i64 216, !13, i64 224, !7, i64 232, !10, i64 233, !10, i64 233, !10, i64 233, !10, i64 233, !10, i64 233, !10, i64 233, !10, i64 233, !10, i64 233, !7, i64 234, !7, i64 235, !10, i64 236, !13, i64 240, !13, i64 248, !13, i64 256, !13, i64 264, !13, i64 272, !10, i64 280, !6, i64 288, !10, i64 296, !10, i64 300, !6, i64 304, !6, i64 312, !6, i64 320, !6, i64 328, !10, i64 336}
!13 = !{!"long", !7, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{!12, !6, i64 64}
!16 = !{!12, !10, i64 160}
!17 = !{!12, !10, i64 164}
!18 = !{!12, !13, i64 264}
!19 = !{!12, !6, i64 48}
!20 = !{!12, !10, i64 140}
!21 = !{!12, !6, i64 72}


; 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"

@stderr = external local_unnamed_addr global ptr, align 8
@.str.15 = external hidden unnamed_addr constant [69 x i8], align 1

; 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) #0

; Function Attrs: nounwind uwtable
define dso_local void @fstWriterEmitValueChange(ptr noundef %0, i32 noundef %1, ptr noundef %2) local_unnamed_addr #1 {
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %.critedge, label %4, !prof !5

4:                                                ; preds = %3
  %5 = getelementptr inbounds i8, ptr %0, i64 104
  %6 = load i32, ptr %5, align 8, !tbaa !6
  %.not45 = icmp ult i32 %6, %1
  br i1 %.not45, label %.critedge, label %7, !prof !5

7:                                                ; preds = %4
  %8 = getelementptr inbounds i8, ptr %0, i64 64
  %9 = load ptr, ptr %8, align 8, !tbaa !14
  %.not41 = icmp eq ptr %9, null
  br i1 %.not41, label %10, label %14, !prof !5

10:                                               ; preds = %7
  %11 = getelementptr inbounds i8, ptr %0, i64 116
  %12 = load i8, ptr %11, align 4
  %13 = or i8 %12, 1
  store i8 %13, ptr %11, align 4
  tail call void @fstWriterCreateMmaps(ptr noundef nonnull %0)
  %.pre = load ptr, ptr %8, align 8, !tbaa !14
  br label %14

14:                                               ; preds = %10, %7
  %15 = phi ptr [ %.pre, %10 ], [ %9, %7 ]
  %16 = shl i32 %1, 2
  %17 = add i32 %16, -4
  %18 = zext i32 %17 to i64
  %19 = getelementptr inbounds i32, ptr %15, i64 %18
  %20 = getelementptr inbounds i8, ptr %19, i64 4
  %21 = load i32, ptr %20, align 4, !tbaa !15
  %.not42 = icmp eq i32 %21, 0
  br i1 %.not42, label %.critedge, label %22, !prof !5

22:                                               ; preds = %14
  %23 = getelementptr inbounds i8, ptr %0, i64 116
  %24 = load i8, ptr %23, align 4
  %25 = and i8 %24, 2
  %.not43 = icmp eq i8 %25, 0
  br i1 %.not43, label %26, label %58, !prof !16

26:                                               ; preds = %22
  %27 = getelementptr inbounds i8, ptr %0, i64 160
  %28 = load i32, ptr %27, align 8, !tbaa !17
  %29 = add i32 %21, 10
  %30 = add i32 %29, %28
  %31 = getelementptr inbounds i8, ptr %0, i64 164
  %32 = load i32, ptr %31, align 4, !tbaa !18
  %33 = icmp ugt i32 %30, %32
  br i1 %33, label %34, label %47, !prof !5

34:                                               ; preds = %26
  %35 = getelementptr inbounds i8, ptr %0, i64 264
  %36 = load i64, ptr %35, align 8, !tbaa !19
  %37 = trunc i64 %36 to i32
  %38 = add i32 %32, %21
  %39 = add i32 %38, %37
  store i32 %39, ptr %31, align 4, !tbaa !18
  %40 = getelementptr inbounds i8, ptr %0, i64 48
  %41 = load ptr, ptr %40, align 8, !tbaa !20
  %42 = zext i32 %39 to i64
  %43 = tail call ptr @realloc(ptr noundef %41, i64 noundef %42) #5
  store ptr %43, ptr %40, align 8, !tbaa !20
  %.not44 = icmp eq ptr %43, null
  br i1 %.not44, label %44, label %47, !prof !5

44:                                               ; preds = %34
  %45 = load ptr, ptr @stderr, align 8, !tbaa !21
  %46 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %45, ptr noundef nonnull @.str.15) #6
  tail call void @exit(i32 noundef 255) #7
  unreachable

47:                                               ; preds = %34, %26
  %48 = getelementptr inbounds i8, ptr %19, i64 8
  %49 = getelementptr inbounds i8, ptr %0, i64 140
  %50 = load i32, ptr %49, align 4, !tbaa !22
  %51 = getelementptr inbounds i8, ptr %19, i64 12
  %52 = load i32, ptr %51, align 4, !tbaa !15
  %53 = sub i32 %50, %52
  %54 = tail call i32 @fstWriterUint32WithVarint32(ptr noundef nonnull %0, ptr noundef nonnull %48, i32 noundef %53, ptr noundef %2, i32 noundef %21)
  %55 = load i32, ptr %27, align 8, !tbaa !17
  %56 = add i32 %55, %54
  store i32 %56, ptr %27, align 8, !tbaa !17
  %57 = load i32, ptr %49, align 4, !tbaa !22
  store i32 %57, ptr %51, align 4, !tbaa !15
  store i32 %28, ptr %48, align 4, !tbaa !15
  br label %.critedge

58:                                               ; preds = %22
  %59 = load i32, ptr %19, align 4, !tbaa !15
  %60 = getelementptr inbounds i8, ptr %0, i64 72
  %61 = load ptr, ptr %60, align 8, !tbaa !23
  %62 = zext i32 %59 to i64
  %63 = getelementptr inbounds i8, ptr %61, i64 %62
  %64 = sext i32 %21 to i64
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 1 %63, ptr align 1 %2, i64 %64, i1 false)
  br label %.critedge

.critedge:                                        ; preds = %3, %14, %58, %47, %4
  ret void
}

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind willreturn allockind("realloc") allocsize(1) memory(argmem: readwrite, inaccessiblemem: readwrite)
declare noalias noundef ptr @realloc(ptr allocptr nocapture noundef, i64 noundef) local_unnamed_addr #4

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

; Function Attrs: nounwind uwtable
declare hidden i32 @fstWriterUint32WithVarint32(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

attributes #0 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { noreturn 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 #4 = { mustprogress nounwind willreturn allockind("realloc") allocsize(1) memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 allocsize(1) }
attributes #6 = { cold nounwind }
attributes #7 = { noreturn 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 = !{!"branch_weights", !"expected", i32 1, i32 2000}
!6 = !{!7, !12, i64 104}
!7 = !{!"fstWriterContext", !8, i64 0, !8, i64 8, !8, i64 16, !8, i64 24, !8, i64 32, !8, i64 40, !8, i64 48, !11, i64 56, !8, i64 64, !8, i64 72, !8, i64 80, !12, i64 88, !8, i64 96, !12, i64 104, !12, i64 108, !12, i64 112, !12, i64 116, !12, i64 116, !12, i64 116, !12, i64 116, !11, i64 120, !11, i64 128, !12, i64 136, !12, i64 140, !11, i64 144, !11, i64 152, !12, i64 160, !12, i64 164, !12, i64 168, !11, i64 176, !12, i64 184, !13, i64 192, !8, i64 200, !8, i64 208, !12, i64 216, !11, i64 224, !9, i64 232, !12, i64 233, !12, i64 233, !12, i64 233, !12, i64 233, !12, i64 233, !12, i64 233, !12, i64 233, !12, i64 233, !9, i64 234, !9, i64 235, !12, i64 236, !11, i64 240, !11, i64 248, !11, i64 256, !11, i64 264, !11, i64 272, !12, i64 280, !8, i64 288, !12, i64 296, !12, i64 300, !8, i64 304, !8, i64 312, !8, i64 320, !8, i64 328, !12, i64 336}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"long", !9, i64 0}
!12 = !{!"int", !9, i64 0}
!13 = !{!"double", !9, i64 0}
!14 = !{!7, !8, i64 64}
!15 = !{!12, !12, i64 0}
!16 = !{!"branch_weights", !"expected", i32 2000, i32 1}
!17 = !{!7, !12, i64 160}
!18 = !{!7, !12, i64 164}
!19 = !{!7, !11, i64 264}
!20 = !{!7, !8, i64 48}
!21 = !{!8, !8, i64 0}
!22 = !{!7, !12, i64 140}
!23 = !{!7, !8, i64 72}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,LowerExpectIntrinsicPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass