; 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.17 = external hidden unnamed_addr constant [74 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: nocallback nofree nosync nounwind willreturn memory(none)
declare i64 @llvm.expect.i64(i64, i64) #1

; Function Attrs: nounwind uwtable
declare dso_local void @fstWriterEmitValueChange(ptr noundef, i32 noundef, ptr noundef) #2

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @fstWriterEmitValueChange64(ptr noundef, i32 noundef, i32 noundef, i64 noundef) #2

; Function Attrs: nounwind uwtable
define dso_local void @fstWriterEmitValueChangeVec64(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3) #2 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store i32 %2, ptr %7, align 4, !tbaa !9
  store ptr %3, ptr %8, align 8, !tbaa !5
  %15 = load i32, ptr %7, align 4, !tbaa !9
  %16 = icmp ule i32 %15, 64
  %17 = xor i1 %16, true
  %18 = xor i1 %17, true
  %19 = zext i1 %18 to i32
  %20 = sext i32 %19 to i64
  %21 = call i64 @llvm.expect.i64(i64 %20, i64 0)
  %22 = icmp ne i64 %21, 0
  br i1 %22, label %23, label %30

23:                                               ; preds = %4
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  %25 = load i32, ptr %6, align 4, !tbaa !9
  %26 = load i32, ptr %7, align 4, !tbaa !9
  %27 = load ptr, ptr %8, align 8, !tbaa !5
  %28 = getelementptr inbounds i64, ptr %27, i64 0
  %29 = load i64, ptr %28, align 8, !tbaa !11
  call void @fstWriterEmitValueChange64(ptr noundef %24, i32 noundef %25, i32 noundef %26, i64 noundef %29)
  br label %185

30:                                               ; preds = %4
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  %32 = icmp ne ptr %31, null
  %33 = xor i1 %32, true
  %34 = xor i1 %33, true
  %35 = zext i1 %34 to i32
  %36 = sext i32 %35 to i64
  %37 = call i64 @llvm.expect.i64(i64 %36, i64 1)
  %38 = icmp ne i64 %37, 0
  br i1 %38, label %39, label %184

39:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %40 = load i32, ptr %7, align 4, !tbaa !9
  %41 = udiv i32 %40, 64
  store i32 %41, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %42 = load i32, ptr %7, align 4, !tbaa !9
  %43 = and i32 %42, 63
  store i32 %43, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %44 = load i32, ptr %7, align 4, !tbaa !9
  %45 = load ptr, ptr %5, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.fstWriterContext, ptr %45, i32 0, i32 11
  %47 = load i32, ptr %46, align 8, !tbaa !13
  %48 = icmp ugt i32 %44, %47
  %49 = xor i1 %48, true
  %50 = xor i1 %49, true
  %51 = zext i1 %50 to i32
  %52 = sext i32 %51 to i64
  %53 = call i64 @llvm.expect.i64(i64 %52, i64 0)
  %54 = icmp ne i64 %53, 0
  br i1 %54, label %55, label %86

55:                                               ; preds = %39
  %56 = load i32, ptr %7, align 4, !tbaa !9
  %57 = mul i32 %56, 2
  %58 = add i32 %57, 1
  %59 = load ptr, ptr %5, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.fstWriterContext, ptr %59, i32 0, i32 11
  store i32 %58, ptr %60, align 8, !tbaa !13
  %61 = load ptr, ptr %5, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.fstWriterContext, ptr %61, i32 0, i32 10
  %63 = load ptr, ptr %62, align 8, !tbaa !16
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.fstWriterContext, ptr %64, i32 0, i32 11
  %66 = load i32, ptr %65, align 8, !tbaa !13
  %67 = zext i32 %66 to i64
  %68 = call ptr @realloc(ptr noundef %63, i64 noundef %67) #7
  %69 = load ptr, ptr %5, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.fstWriterContext, ptr %69, i32 0, i32 10
  store ptr %68, ptr %70, align 8, !tbaa !16
  %71 = load ptr, ptr %5, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.fstWriterContext, ptr %71, i32 0, i32 10
  %73 = load ptr, ptr %72, align 8, !tbaa !16
  %74 = icmp ne ptr %73, null
  %75 = xor i1 %74, true
  %76 = xor i1 %75, true
  %77 = xor i1 %76, true
  %78 = zext i1 %77 to i32
  %79 = sext i32 %78 to i64
  %80 = call i64 @llvm.expect.i64(i64 %79, i64 0)
  %81 = icmp ne i64 %80, 0
  br i1 %81, label %82, label %85

82:                                               ; preds = %55
  %83 = load ptr, ptr @stderr, align 8, !tbaa !5
  %84 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %83, ptr noundef @.str.17) #6
  call void @exit(i32 noundef 255) #8
  unreachable

85:                                               ; preds = %55
  br label %86

86:                                               ; preds = %85, %39
  %87 = load ptr, ptr %5, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.fstWriterContext, ptr %87, i32 0, i32 10
  %89 = load ptr, ptr %88, align 8, !tbaa !16
  store ptr %89, ptr %14, align 8, !tbaa !5
  %90 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %90, ptr %12, align 4, !tbaa !9
  %91 = load ptr, ptr %8, align 8, !tbaa !5
  %92 = load i32, ptr %12, align 4, !tbaa !9
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds i64, ptr %91, i64 %93
  %95 = load i64, ptr %94, align 8, !tbaa !11
  %96 = trunc i64 %95 to i32
  store i32 %96, ptr %13, align 4, !tbaa !9
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %97

97:                                               ; preds = %113, %86
  %98 = load i32, ptr %11, align 4, !tbaa !9
  %99 = load i32, ptr %10, align 4, !tbaa !9
  %100 = icmp slt i32 %98, %99
  br i1 %100, label %101, label %116

101:                                              ; preds = %97
  %102 = load i32, ptr %13, align 4, !tbaa !9
  %103 = load i32, ptr %10, align 4, !tbaa !9
  %104 = load i32, ptr %11, align 4, !tbaa !9
  %105 = sub nsw i32 %103, %104
  %106 = sub nsw i32 %105, 1
  %107 = lshr i32 %102, %106
  %108 = and i32 %107, 1
  %109 = add i32 48, %108
  %110 = trunc i32 %109 to i8
  %111 = load ptr, ptr %14, align 8, !tbaa !5
  %112 = getelementptr inbounds i8, ptr %111, i32 1
  store ptr %112, ptr %14, align 8, !tbaa !5
  store i8 %110, ptr %111, align 1, !tbaa !17
  br label %113

113:                                              ; preds = %101
  %114 = load i32, ptr %11, align 4, !tbaa !9
  %115 = add nsw i32 %114, 1
  store i32 %115, ptr %11, align 4, !tbaa !9
  br label %97, !llvm.loop !18

116:                                              ; preds = %97
  %117 = load i32, ptr %9, align 4, !tbaa !9
  %118 = sub nsw i32 %117, 1
  store i32 %118, ptr %12, align 4, !tbaa !9
  br label %119

119:                                              ; preds = %175, %116
  %120 = load i32, ptr %12, align 4, !tbaa !9
  %121 = icmp sge i32 %120, 0
  br i1 %121, label %122, label %178

122:                                              ; preds = %119
  %123 = load ptr, ptr %8, align 8, !tbaa !5
  %124 = load i32, ptr %12, align 4, !tbaa !9
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds i64, ptr %123, i64 %125
  %127 = load i64, ptr %126, align 8, !tbaa !11
  %128 = trunc i64 %127 to i32
  store i32 %128, ptr %13, align 4, !tbaa !9
  store i32 60, ptr %11, align 4, !tbaa !9
  br label %129

129:                                              ; preds = %171, %122
  %130 = load i32, ptr %11, align 4, !tbaa !9
  %131 = icmp sge i32 %130, 0
  br i1 %131, label %132, label %174

132:                                              ; preds = %129
  %133 = load i32, ptr %13, align 4, !tbaa !9
  %134 = load i32, ptr %11, align 4, !tbaa !9
  %135 = add nsw i32 %134, 3
  %136 = lshr i32 %133, %135
  %137 = and i32 %136, 1
  %138 = add i32 48, %137
  %139 = trunc i32 %138 to i8
  %140 = load ptr, ptr %14, align 8, !tbaa !5
  %141 = getelementptr inbounds i8, ptr %140, i64 0
  store i8 %139, ptr %141, align 1, !tbaa !17
  %142 = load i32, ptr %13, align 4, !tbaa !9
  %143 = load i32, ptr %11, align 4, !tbaa !9
  %144 = add nsw i32 %143, 2
  %145 = lshr i32 %142, %144
  %146 = and i32 %145, 1
  %147 = add i32 48, %146
  %148 = trunc i32 %147 to i8
  %149 = load ptr, ptr %14, align 8, !tbaa !5
  %150 = getelementptr inbounds i8, ptr %149, i64 1
  store i8 %148, ptr %150, align 1, !tbaa !17
  %151 = load i32, ptr %13, align 4, !tbaa !9
  %152 = load i32, ptr %11, align 4, !tbaa !9
  %153 = add nsw i32 %152, 1
  %154 = lshr i32 %151, %153
  %155 = and i32 %154, 1
  %156 = add i32 48, %155
  %157 = trunc i32 %156 to i8
  %158 = load ptr, ptr %14, align 8, !tbaa !5
  %159 = getelementptr inbounds i8, ptr %158, i64 2
  store i8 %157, ptr %159, align 1, !tbaa !17
  %160 = load i32, ptr %13, align 4, !tbaa !9
  %161 = load i32, ptr %11, align 4, !tbaa !9
  %162 = add nsw i32 %161, 0
  %163 = lshr i32 %160, %162
  %164 = and i32 %163, 1
  %165 = add i32 48, %164
  %166 = trunc i32 %165 to i8
  %167 = load ptr, ptr %14, align 8, !tbaa !5
  %168 = getelementptr inbounds i8, ptr %167, i64 3
  store i8 %166, ptr %168, align 1, !tbaa !17
  %169 = load ptr, ptr %14, align 8, !tbaa !5
  %170 = getelementptr inbounds i8, ptr %169, i64 4
  store ptr %170, ptr %14, align 8, !tbaa !5
  br label %171

171:                                              ; preds = %132
  %172 = load i32, ptr %11, align 4, !tbaa !9
  %173 = sub nsw i32 %172, 4
  store i32 %173, ptr %11, align 4, !tbaa !9
  br label %129, !llvm.loop !20

174:                                              ; preds = %129
  br label %175

175:                                              ; preds = %174
  %176 = load i32, ptr %12, align 4, !tbaa !9
  %177 = add nsw i32 %176, -1
  store i32 %177, ptr %12, align 4, !tbaa !9
  br label %119, !llvm.loop !21

178:                                              ; preds = %119
  %179 = load ptr, ptr %5, align 8, !tbaa !5
  %180 = load i32, ptr %6, align 4, !tbaa !9
  %181 = load ptr, ptr %5, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.fstWriterContext, ptr %181, i32 0, i32 10
  %183 = load ptr, ptr %182, align 8, !tbaa !16
  call void @fstWriterEmitValueChange(ptr noundef %179, i32 noundef %180, ptr noundef %183)
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %184

184:                                              ; preds = %178, %30
  br label %185

185:                                              ; preds = %184, %23
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(none) }
attributes #2 = { 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 "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 = { 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 #5 = { 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 #6 = { nounwind }
attributes #7 = { nounwind allocsize(1) }
attributes #8 = { 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, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !10, i64 88}
!14 = !{!"fstWriterContext", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !12, 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, !12, i64 120, !12, i64 128, !10, i64 136, !10, i64 140, !12, i64 144, !12, i64 152, !10, i64 160, !10, i64 164, !10, i64 168, !12, i64 176, !10, i64 184, !15, i64 192, !6, i64 200, !6, i64 208, !10, i64 216, !12, 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, !12, i64 240, !12, i64 248, !12, i64 256, !12, i64 264, !12, 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}
!15 = !{!"double", !7, i64 0}
!16 = !{!14, !6, i64 80}
!17 = !{!7, !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}
!21 = distinct !{!21, !19}


; 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.17 = external hidden unnamed_addr constant [74 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @fstWriterEmitValueChange(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

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

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

; 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 #3

; Function Attrs: nounwind uwtable
declare dso_local void @fstWriterEmitValueChange64(ptr noundef, i32 noundef, i32 noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local void @fstWriterEmitValueChangeVec64(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr nocapture noundef readonly %3) local_unnamed_addr #0 {
  %5 = icmp ult i32 %2, 65
  br i1 %5, label %6, label %8, !prof !5

6:                                                ; preds = %4
  %7 = load i64, ptr %3, align 8, !tbaa !6
  tail call void @fstWriterEmitValueChange64(ptr noundef %0, i32 noundef %1, i32 noundef %2, i64 noundef %7)
  br label %91

8:                                                ; preds = %4
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %91, label %9, !prof !5

9:                                                ; preds = %8
  %10 = lshr i32 %2, 6
  %11 = and i32 %2, 63
  %12 = getelementptr inbounds i8, ptr %0, i64 88
  %13 = load i32, ptr %12, align 8, !tbaa !10
  %14 = icmp ult i32 %13, %2
  br i1 %14, label %15, label %._crit_edge68, !prof !5

._crit_edge68:                                    ; preds = %9
  %.phi.trans.insert = getelementptr inbounds i8, ptr %0, i64 80
  %.pre = load ptr, ptr %.phi.trans.insert, align 8, !tbaa !15
  br label %25

15:                                               ; preds = %9
  %16 = shl i32 %2, 1
  %17 = or disjoint i32 %16, 1
  store i32 %17, ptr %12, align 8, !tbaa !10
  %18 = getelementptr inbounds i8, ptr %0, i64 80
  %19 = load ptr, ptr %18, align 8, !tbaa !15
  %20 = zext i32 %17 to i64
  %21 = tail call ptr @realloc(ptr noundef %19, i64 noundef %20) #4
  store ptr %21, ptr %18, align 8, !tbaa !15
  %.not56 = icmp eq ptr %21, null
  br i1 %.not56, label %22, label %25, !prof !5

22:                                               ; preds = %15
  %23 = load ptr, ptr @stderr, align 8, !tbaa !16
  %24 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %23, ptr noundef nonnull @.str.17) #5
  tail call void @exit(i32 noundef 255) #6
  unreachable

25:                                               ; preds = %._crit_edge68, %15
  %26 = phi ptr [ %.pre, %._crit_edge68 ], [ %21, %15 ]
  %27 = getelementptr inbounds i8, ptr %0, i64 80
  %28 = zext nneg i32 %10 to i64
  %29 = getelementptr inbounds i64, ptr %3, i64 %28
  %30 = load i64, ptr %29, align 8, !tbaa !6
  %31 = trunc i64 %30 to i32
  %.not65 = icmp eq i32 %11, 0
  br i1 %.not65, label %.lr.ph64.preheader, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %25
  %32 = and i32 %2, 63
  %33 = zext nneg i32 %32 to i64
  %min.iters.check = icmp ult i32 %32, 16
  br i1 %min.iters.check, label %.lr.ph.preheader76, label %vector.ph

.lr.ph.preheader76:                               ; preds = %middle.block, %.lr.ph.preheader
  %.058.ph = phi ptr [ %26, %.lr.ph.preheader ], [ %ind.end, %middle.block ]
  %.05057.ph = phi i32 [ 0, %.lr.ph.preheader ], [ %ind.end72, %middle.block ]
  br label %.lr.ph

vector.ph:                                        ; preds = %.lr.ph.preheader
  %n.vec = and i64 %33, 48
  %ind.end = getelementptr i8, ptr %26, i64 %n.vec
  %ind.end72 = trunc nuw nsw i64 %n.vec to i32
  %broadcast.splatinsert = insertelement <16 x i32> poison, i32 %11, i64 0
  %broadcast.splat = shufflevector <16 x i32> %broadcast.splatinsert, <16 x i32> poison, <16 x i32> zeroinitializer
  %broadcast.splatinsert74 = insertelement <16 x i32> poison, i32 %31, i64 0
  %broadcast.splat75 = shufflevector <16 x i32> %broadcast.splatinsert74, <16 x i32> poison, <16 x i32> zeroinitializer
  %34 = add nsw <16 x i32> %broadcast.splat, <i32 -1, i32 -2, i32 -3, i32 -4, i32 -5, i32 -6, i32 -7, i32 -8, i32 -9, i32 -10, i32 -11, i32 -12, i32 -13, i32 -14, i32 -15, i32 -16>
  %35 = lshr <16 x i32> %broadcast.splat75, %34
  %36 = trunc <16 x i32> %35 to <16 x i8>
  %37 = and <16 x i8> %36, <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>
  %38 = or disjoint <16 x i8> %37, <i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48>
  store <16 x i8> %38, ptr %26, align 1, !tbaa !17
  %39 = icmp eq i64 %n.vec, 16
  br i1 %39, label %middle.block, label %vector.body.1, !llvm.loop !18

vector.body.1:                                    ; preds = %vector.ph
  %next.gep.1 = getelementptr i8, ptr %26, i64 16
  %40 = add nsw <16 x i32> %broadcast.splat, <i32 -17, i32 -18, i32 -19, i32 -20, i32 -21, i32 -22, i32 -23, i32 -24, i32 -25, i32 -26, i32 -27, i32 -28, i32 -29, i32 -30, i32 -31, i32 -32>
  %41 = lshr <16 x i32> %broadcast.splat75, %40
  %42 = trunc <16 x i32> %41 to <16 x i8>
  %43 = and <16 x i8> %42, <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>
  %44 = or disjoint <16 x i8> %43, <i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48>
  store <16 x i8> %44, ptr %next.gep.1, align 1, !tbaa !17
  %45 = icmp eq i64 %n.vec, 32
  br i1 %45, label %middle.block, label %vector.body.2, !llvm.loop !18

vector.body.2:                                    ; preds = %vector.body.1
  %next.gep.2 = getelementptr i8, ptr %26, i64 32
  %46 = add nsw <16 x i32> %broadcast.splat, <i32 -33, i32 -34, i32 -35, i32 -36, i32 -37, i32 -38, i32 -39, i32 -40, i32 -41, i32 -42, i32 -43, i32 -44, i32 -45, i32 -46, i32 -47, i32 -48>
  %47 = lshr <16 x i32> %broadcast.splat75, %46
  %48 = trunc <16 x i32> %47 to <16 x i8>
  %49 = and <16 x i8> %48, <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>
  %50 = or disjoint <16 x i8> %49, <i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48>
  store <16 x i8> %50, ptr %next.gep.2, align 1, !tbaa !17
  br label %middle.block

middle.block:                                     ; preds = %vector.body.2, %vector.body.1, %vector.ph
  %cmp.n = icmp eq i64 %n.vec, %33
  br i1 %cmp.n, label %.lr.ph64.preheader, label %.lr.ph.preheader76

.lr.ph64.preheader:                               ; preds = %.lr.ph, %middle.block, %25
  %.0.lcssa = phi ptr [ %26, %25 ], [ %ind.end, %middle.block ], [ %59, %.lr.ph ]
  %51 = lshr i32 %2, 6
  %52 = zext nneg i32 %51 to i64
  br label %.lr.ph64

.lr.ph:                                           ; preds = %.lr.ph.preheader76, %.lr.ph
  %.058 = phi ptr [ %59, %.lr.ph ], [ %.058.ph, %.lr.ph.preheader76 ]
  %.05057 = phi i32 [ %60, %.lr.ph ], [ %.05057.ph, %.lr.ph.preheader76 ]
  %53 = xor i32 %.05057, -1
  %54 = add nsw i32 %11, %53
  %55 = lshr i32 %31, %54
  %56 = trunc i32 %55 to i8
  %57 = and i8 %56, 1
  %58 = or disjoint i8 %57, 48
  %59 = getelementptr inbounds i8, ptr %.058, i64 1
  store i8 %58, ptr %.058, align 1, !tbaa !17
  %60 = add nuw nsw i32 %.05057, 1
  %exitcond.not = icmp eq i32 %60, %11
  br i1 %exitcond.not, label %.lr.ph64.preheader, label %.lr.ph, !llvm.loop !22

.loopexit:                                        ; preds = %65
  %61 = icmp sgt i64 %indvars.iv, 1
  br i1 %61, label %.lr.ph64, label %._crit_edge, !llvm.loop !23

.lr.ph64:                                         ; preds = %.lr.ph64.preheader, %.loopexit
  %indvars.iv = phi i64 [ %52, %.lr.ph64.preheader ], [ %indvars.iv.next, %.loopexit ]
  %.162 = phi ptr [ %.0.lcssa, %.lr.ph64.preheader ], [ %88, %.loopexit ]
  %indvars.iv.next = add nsw i64 %indvars.iv, -1
  %62 = getelementptr inbounds i64, ptr %3, i64 %indvars.iv.next
  %63 = load i64, ptr %62, align 8, !tbaa !6
  %64 = trunc i64 %63 to i32
  br label %65

65:                                               ; preds = %.lr.ph64, %65
  %.260 = phi ptr [ %.162, %.lr.ph64 ], [ %88, %65 ]
  %.15159 = phi i32 [ 60, %.lr.ph64 ], [ %89, %65 ]
  %66 = or disjoint i32 %.15159, 3
  %67 = lshr i32 %64, %66
  %68 = trunc i32 %67 to i8
  %69 = and i8 %68, 1
  %70 = or disjoint i8 %69, 48
  store i8 %70, ptr %.260, align 1, !tbaa !17
  %71 = or disjoint i32 %.15159, 2
  %72 = lshr i32 %64, %71
  %73 = trunc i32 %72 to i8
  %74 = and i8 %73, 1
  %75 = or disjoint i8 %74, 48
  %76 = getelementptr inbounds i8, ptr %.260, i64 1
  store i8 %75, ptr %76, align 1, !tbaa !17
  %77 = or disjoint i32 %.15159, 1
  %78 = lshr i32 %64, %77
  %79 = trunc i32 %78 to i8
  %80 = and i8 %79, 1
  %81 = or disjoint i8 %80, 48
  %82 = getelementptr inbounds i8, ptr %.260, i64 2
  store i8 %81, ptr %82, align 1, !tbaa !17
  %83 = lshr i32 %64, %.15159
  %84 = trunc i32 %83 to i8
  %85 = and i8 %84, 1
  %86 = or disjoint i8 %85, 48
  %87 = getelementptr inbounds i8, ptr %.260, i64 3
  store i8 %86, ptr %87, align 1, !tbaa !17
  %88 = getelementptr inbounds i8, ptr %.260, i64 4
  %89 = add nsw i32 %.15159, -4
  %.not69 = icmp eq i32 %.15159, 0
  br i1 %.not69, label %.loopexit, label %65, !llvm.loop !24

._crit_edge:                                      ; preds = %.loopexit
  %90 = load ptr, ptr %27, align 8, !tbaa !15
  tail call void @fstWriterEmitValueChange(ptr noundef nonnull %0, i32 noundef %1, ptr noundef %90)
  br label %91

91:                                               ; preds = %8, %._crit_edge, %6
  ret void
}

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 = { 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 #2 = { 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 #3 = { 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 #4 = { nounwind allocsize(1) }
attributes #5 = { cold nounwind }
attributes #6 = { 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, !7, i64 0}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !13, i64 88}
!11 = !{!"fstWriterContext", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !7, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !13, i64 88, !12, i64 96, !13, i64 104, !13, i64 108, !13, i64 112, !13, i64 116, !13, i64 116, !13, i64 116, !13, i64 116, !7, i64 120, !7, i64 128, !13, i64 136, !13, i64 140, !7, i64 144, !7, i64 152, !13, i64 160, !13, i64 164, !13, i64 168, !7, i64 176, !13, i64 184, !14, i64 192, !12, i64 200, !12, i64 208, !13, i64 216, !7, i64 224, !8, i64 232, !13, i64 233, !13, i64 233, !13, i64 233, !13, i64 233, !13, i64 233, !13, i64 233, !13, i64 233, !13, i64 233, !8, i64 234, !8, i64 235, !13, i64 236, !7, i64 240, !7, i64 248, !7, i64 256, !7, i64 264, !7, i64 272, !13, i64 280, !12, i64 288, !13, i64 296, !13, i64 300, !12, i64 304, !12, i64 312, !12, i64 320, !12, i64 328, !13, i64 336}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!"int", !8, i64 0}
!14 = !{!"double", !8, i64 0}
!15 = !{!11, !12, i64 80}
!16 = !{!12, !12, i64 0}
!17 = !{!8, !8, i64 0}
!18 = distinct !{!18, !19, !20, !21}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!"llvm.loop.isvectorized", i32 1}
!21 = !{!"llvm.loop.unroll.runtime.disable"}
!22 = distinct !{!22, !19, !21, !20}
!23 = distinct !{!23, !19}
!24 = distinct !{!24, !19}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,LowerExpectIntrinsicPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass