; LLVM IR from jgaeddert/liquid-dsp :: src/framing/src (framegen64)

; 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.framegen64_s = type { ptr, ptr, [64 x { float, float }], [150 x i8], [600 x { float, float }], [630 x { float, float }], i32, float, ptr }

@.str.1 = external hidden unnamed_addr constant [83 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [22 x i8], align 1
@__PRETTY_FUNCTION__.framegen64_execute = external hidden unnamed_addr constant [87 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: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1

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

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

14:                                               ; preds = %38, %4
  %15 = load i32, ptr %9, align 4, !tbaa !9
  %16 = icmp ult i32 %15, 8
  br i1 %16, label %17, label %41

17:                                               ; preds = %14
  %18 = load ptr, ptr %6, align 8, !tbaa !5
  %19 = icmp eq ptr %18, null
  br i1 %19, label %20, label %23

20:                                               ; preds = %17
  %21 = call i32 @rand() #5
  %22 = and i32 %21, 255
  br label %30

23:                                               ; preds = %17
  %24 = load ptr, ptr %6, align 8, !tbaa !5
  %25 = load i32, ptr %9, align 4, !tbaa !9
  %26 = zext i32 %25 to i64
  %27 = getelementptr inbounds i8, ptr %24, i64 %26
  %28 = load i8, ptr %27, align 1, !tbaa !11
  %29 = zext i8 %28 to i32
  br label %30

30:                                               ; preds = %23, %20
  %31 = phi i32 [ %22, %20 ], [ %29, %23 ]
  %32 = trunc i32 %31 to i8
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.framegen64_s, ptr %33, i32 0, i32 3
  %35 = load i32, ptr %9, align 4, !tbaa !9
  %36 = zext i32 %35 to i64
  %37 = getelementptr inbounds [150 x i8], ptr %34, i64 0, i64 %36
  store i8 %32, ptr %37, align 1, !tbaa !11
  br label %38

38:                                               ; preds = %30
  %39 = load i32, ptr %9, align 4, !tbaa !9
  %40 = add i32 %39, 1
  store i32 %40, ptr %9, align 4, !tbaa !9
  br label %14, !llvm.loop !12

41:                                               ; preds = %14
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %42

42:                                               ; preds = %67, %41
  %43 = load i32, ptr %9, align 4, !tbaa !9
  %44 = icmp ult i32 %43, 64
  br i1 %44, label %45, label %70

45:                                               ; preds = %42
  %46 = load ptr, ptr %7, align 8, !tbaa !5
  %47 = icmp eq ptr %46, null
  br i1 %47, label %48, label %51

48:                                               ; preds = %45
  %49 = call i32 @rand() #5
  %50 = and i32 %49, 255
  br label %58

51:                                               ; preds = %45
  %52 = load ptr, ptr %7, align 8, !tbaa !5
  %53 = load i32, ptr %9, align 4, !tbaa !9
  %54 = zext i32 %53 to i64
  %55 = getelementptr inbounds i8, ptr %52, i64 %54
  %56 = load i8, ptr %55, align 1, !tbaa !11
  %57 = zext i8 %56 to i32
  br label %58

58:                                               ; preds = %51, %48
  %59 = phi i32 [ %50, %48 ], [ %57, %51 ]
  %60 = trunc i32 %59 to i8
  %61 = load ptr, ptr %5, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.framegen64_s, ptr %61, i32 0, i32 3
  %63 = load i32, ptr %9, align 4, !tbaa !9
  %64 = add i32 %63, 8
  %65 = zext i32 %64 to i64
  %66 = getelementptr inbounds [150 x i8], ptr %62, i64 0, i64 %65
  store i8 %60, ptr %66, align 1, !tbaa !11
  br label %67

67:                                               ; preds = %58
  %68 = load i32, ptr %9, align 4, !tbaa !9
  %69 = add i32 %68, 1
  store i32 %69, ptr %9, align 4, !tbaa !9
  br label %42, !llvm.loop !14

70:                                               ; preds = %42
  %71 = load ptr, ptr %5, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.framegen64_s, ptr %71, i32 0, i32 0
  %73 = load ptr, ptr %72, align 8, !tbaa !15
  %74 = load ptr, ptr %5, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.framegen64_s, ptr %74, i32 0, i32 3
  %76 = getelementptr inbounds [150 x i8], ptr %75, i64 0, i64 0
  %77 = load ptr, ptr %5, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.framegen64_s, ptr %77, i32 0, i32 4
  %79 = getelementptr inbounds [600 x { float, float }], ptr %78, i64 0, i64 0
  %80 = call i32 @qpacketmodem_encode(ptr noundef %73, ptr noundef %76, ptr noundef %79)
  %81 = load ptr, ptr %5, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.framegen64_s, ptr %81, i32 0, i32 1
  %83 = load ptr, ptr %82, align 8, !tbaa !18
  %84 = load ptr, ptr %5, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.framegen64_s, ptr %84, i32 0, i32 4
  %86 = getelementptr inbounds [600 x { float, float }], ptr %85, i64 0, i64 0
  %87 = load ptr, ptr %5, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.framegen64_s, ptr %87, i32 0, i32 5
  %89 = getelementptr inbounds [630 x { float, float }], ptr %88, i64 0, i64 0
  %90 = call i32 @qpilotgen_execute(ptr noundef %83, ptr noundef %86, ptr noundef %89)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !9
  %91 = load ptr, ptr %5, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.framegen64_s, ptr %91, i32 0, i32 8
  %93 = load ptr, ptr %92, align 8, !tbaa !19
  %94 = call i32 @firinterp_crcf_reset(ptr noundef %93)
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %95

95:                                               ; preds = %121, %70
  %96 = load i32, ptr %9, align 4, !tbaa !9
  %97 = icmp ult i32 %96, 64
  br i1 %97, label %98, label %124

98:                                               ; preds = %95
  %99 = load ptr, ptr %5, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.framegen64_s, ptr %99, i32 0, i32 8
  %101 = load ptr, ptr %100, align 8, !tbaa !19
  %102 = load ptr, ptr %5, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.framegen64_s, ptr %102, i32 0, i32 2
  %104 = load i32, ptr %9, align 4, !tbaa !9
  %105 = zext i32 %104 to i64
  %106 = getelementptr inbounds [64 x { float, float }], ptr %103, i64 0, i64 %105
  %107 = getelementptr inbounds { float, float }, ptr %106, i32 0, i32 0
  %108 = load float, ptr %107, align 8
  %109 = getelementptr inbounds { float, float }, ptr %106, i32 0, i32 1
  %110 = load float, ptr %109, align 4
  %111 = load ptr, ptr %8, align 8, !tbaa !5
  %112 = load i32, ptr %10, align 4, !tbaa !9
  %113 = zext i32 %112 to i64
  %114 = getelementptr inbounds { float, float }, ptr %111, i64 %113
  %115 = getelementptr inbounds { float, float }, ptr %11, i32 0, i32 0
  %116 = getelementptr inbounds { float, float }, ptr %11, i32 0, i32 1
  store float %108, ptr %115, align 4
  store float %110, ptr %116, align 4
  %117 = load <2 x float>, ptr %11, align 4
  %118 = call i32 @firinterp_crcf_execute(ptr noundef %101, <2 x float> noundef %117, ptr noundef %114)
  %119 = load i32, ptr %10, align 4, !tbaa !9
  %120 = add i32 %119, 2
  store i32 %120, ptr %10, align 4, !tbaa !9
  br label %121

121:                                              ; preds = %98
  %122 = load i32, ptr %9, align 4, !tbaa !9
  %123 = add i32 %122, 1
  store i32 %123, ptr %9, align 4, !tbaa !9
  br label %95, !llvm.loop !20

124:                                              ; preds = %95
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %125

125:                                              ; preds = %151, %124
  %126 = load i32, ptr %9, align 4, !tbaa !9
  %127 = icmp ult i32 %126, 630
  br i1 %127, label %128, label %154

128:                                              ; preds = %125
  %129 = load ptr, ptr %5, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.framegen64_s, ptr %129, i32 0, i32 8
  %131 = load ptr, ptr %130, align 8, !tbaa !19
  %132 = load ptr, ptr %5, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.framegen64_s, ptr %132, i32 0, i32 5
  %134 = load i32, ptr %9, align 4, !tbaa !9
  %135 = zext i32 %134 to i64
  %136 = getelementptr inbounds [630 x { float, float }], ptr %133, i64 0, i64 %135
  %137 = getelementptr inbounds { float, float }, ptr %136, i32 0, i32 0
  %138 = load float, ptr %137, align 8
  %139 = getelementptr inbounds { float, float }, ptr %136, i32 0, i32 1
  %140 = load float, ptr %139, align 4
  %141 = load ptr, ptr %8, align 8, !tbaa !5
  %142 = load i32, ptr %10, align 4, !tbaa !9
  %143 = zext i32 %142 to i64
  %144 = getelementptr inbounds { float, float }, ptr %141, i64 %143
  %145 = getelementptr inbounds { float, float }, ptr %12, i32 0, i32 0
  %146 = getelementptr inbounds { float, float }, ptr %12, i32 0, i32 1
  store float %138, ptr %145, align 4
  store float %140, ptr %146, align 4
  %147 = load <2 x float>, ptr %12, align 4
  %148 = call i32 @firinterp_crcf_execute(ptr noundef %131, <2 x float> noundef %147, ptr noundef %144)
  %149 = load i32, ptr %10, align 4, !tbaa !9
  %150 = add i32 %149, 2
  store i32 %150, ptr %10, align 4, !tbaa !9
  br label %151

151:                                              ; preds = %128
  %152 = load i32, ptr %9, align 4, !tbaa !9
  %153 = add i32 %152, 1
  store i32 %153, ptr %9, align 4, !tbaa !9
  br label %125, !llvm.loop !21

154:                                              ; preds = %125
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %155

155:                                              ; preds = %178, %154
  %156 = load i32, ptr %9, align 4, !tbaa !9
  %157 = load ptr, ptr %5, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.framegen64_s, ptr %157, i32 0, i32 6
  %159 = load i32, ptr %158, align 8, !tbaa !22
  %160 = mul i32 2, %159
  %161 = add i32 %160, 2
  %162 = add i32 %161, 10
  %163 = icmp ult i32 %156, %162
  br i1 %163, label %164, label %181

164:                                              ; preds = %155
  %165 = load ptr, ptr %5, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.framegen64_s, ptr %165, i32 0, i32 8
  %167 = load ptr, ptr %166, align 8, !tbaa !19
  %168 = load ptr, ptr %8, align 8, !tbaa !5
  %169 = load i32, ptr %10, align 4, !tbaa !9
  %170 = zext i32 %169 to i64
  %171 = getelementptr inbounds { float, float }, ptr %168, i64 %170
  %172 = getelementptr inbounds { float, float }, ptr %13, i32 0, i32 0
  %173 = getelementptr inbounds { float, float }, ptr %13, i32 0, i32 1
  store float 0.000000e+00, ptr %172, align 4
  store float 0.000000e+00, ptr %173, align 4
  %174 = load <2 x float>, ptr %13, align 4
  %175 = call i32 @firinterp_crcf_execute(ptr noundef %167, <2 x float> noundef %174, ptr noundef %171)
  %176 = load i32, ptr %10, align 4, !tbaa !9
  %177 = add i32 %176, 2
  store i32 %177, ptr %10, align 4, !tbaa !9
  br label %178

178:                                              ; preds = %164
  %179 = load i32, ptr %9, align 4, !tbaa !9
  %180 = add i32 %179, 1
  store i32 %180, ptr %9, align 4, !tbaa !9
  br label %155, !llvm.loop !23

181:                                              ; preds = %155
  %182 = load i32, ptr %10, align 4, !tbaa !9
  %183 = icmp eq i32 %182, 1440
  br i1 %183, label %184, label %185

184:                                              ; preds = %181
  br label %186

185:                                              ; preds = %181
  call void @__assert_fail(ptr noundef @.str.5, ptr noundef @.str.1, i32 noundef 190, ptr noundef @__PRETTY_FUNCTION__.framegen64_execute) #6
  unreachable

186:                                              ; preds = %184
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  ret i32 0
}

; Function Attrs: nounwind
declare i32 @rand() #3

declare i32 @qpacketmodem_encode(ptr noundef, ptr noundef, ptr noundef) #4

declare i32 @qpilotgen_execute(ptr noundef, ptr noundef, ptr noundef) #4

declare i32 @firinterp_crcf_reset(ptr noundef) #4

declare i32 @firinterp_crcf_execute(ptr noundef, <2 x float> noundef, ptr noundef) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nounwind uwtable "min-legal-vector-width"="64" "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 = { "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 }
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 = !{!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 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = !{!16, !6, i64 0}
!16 = !{!"framegen64_s", !6, i64 0, !6, i64 8, !7, i64 16, !7, i64 528, !7, i64 680, !7, i64 5480, !10, i64 10520, !17, i64 10524, !6, i64 10528}
!17 = !{!"float", !7, i64 0}
!18 = !{!16, !6, i64 8}
!19 = !{!16, !6, i64 10528}
!20 = distinct !{!20, !13}
!21 = distinct !{!21, !13}
!22 = !{!16, !10, i64 10520}
!23 = distinct !{!23, !13}


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

@.str.1 = external hidden unnamed_addr constant [83 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [22 x i8], align 1
@__PRETTY_FUNCTION__.framegen64_execute = external hidden unnamed_addr constant [87 x i8], align 1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @framegen64_execute(ptr noundef %0, ptr noundef readonly %1, ptr noundef readonly %2, ptr noundef %3) local_unnamed_addr #1 {
  %5 = ptrtoint ptr %2 to i64
  %6 = ptrtoint ptr %0 to i64
  %7 = icmp eq ptr %1, null
  %8 = getelementptr i8, ptr %0, i64 528
  br i1 %7, label %.split.us.preheader, label %.split.preheader

.split.preheader:                                 ; preds = %4
  %9 = load i8, ptr %1, align 1, !tbaa !5
  store i8 %9, ptr %8, align 1, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %1, i64 1
  %11 = load i8, ptr %10, align 1, !tbaa !5
  %12 = getelementptr i8, ptr %0, i64 529
  store i8 %11, ptr %12, align 1, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %1, i64 2
  %14 = load i8, ptr %13, align 1, !tbaa !5
  %15 = getelementptr i8, ptr %0, i64 530
  store i8 %14, ptr %15, align 1, !tbaa !5
  %16 = getelementptr inbounds i8, ptr %1, i64 3
  %17 = load i8, ptr %16, align 1, !tbaa !5
  %18 = getelementptr i8, ptr %0, i64 531
  store i8 %17, ptr %18, align 1, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %1, i64 4
  %20 = load i8, ptr %19, align 1, !tbaa !5
  %21 = getelementptr i8, ptr %0, i64 532
  store i8 %20, ptr %21, align 1, !tbaa !5
  %22 = getelementptr inbounds i8, ptr %1, i64 5
  %23 = load i8, ptr %22, align 1, !tbaa !5
  %24 = getelementptr i8, ptr %0, i64 533
  store i8 %23, ptr %24, align 1, !tbaa !5
  %25 = getelementptr inbounds i8, ptr %1, i64 6
  %26 = load i8, ptr %25, align 1, !tbaa !5
  %27 = getelementptr i8, ptr %0, i64 534
  store i8 %26, ptr %27, align 1, !tbaa !5
  %28 = getelementptr inbounds i8, ptr %1, i64 7
  %29 = load i8, ptr %28, align 1, !tbaa !5
  br label %.preheader55

.split.us.preheader:                              ; preds = %4
  %30 = tail call i32 @rand() #4
  %31 = trunc i32 %30 to i8
  store i8 %31, ptr %8, align 1, !tbaa !5
  %32 = tail call i32 @rand() #4
  %33 = trunc i32 %32 to i8
  %34 = getelementptr i8, ptr %0, i64 529
  store i8 %33, ptr %34, align 1, !tbaa !5
  %35 = tail call i32 @rand() #4
  %36 = trunc i32 %35 to i8
  %37 = getelementptr i8, ptr %0, i64 530
  store i8 %36, ptr %37, align 1, !tbaa !5
  %38 = tail call i32 @rand() #4
  %39 = trunc i32 %38 to i8
  %40 = getelementptr i8, ptr %0, i64 531
  store i8 %39, ptr %40, align 1, !tbaa !5
  %41 = tail call i32 @rand() #4
  %42 = trunc i32 %41 to i8
  %43 = getelementptr i8, ptr %0, i64 532
  store i8 %42, ptr %43, align 1, !tbaa !5
  %44 = tail call i32 @rand() #4
  %45 = trunc i32 %44 to i8
  %46 = getelementptr i8, ptr %0, i64 533
  store i8 %45, ptr %46, align 1, !tbaa !5
  %47 = tail call i32 @rand() #4
  %48 = trunc i32 %47 to i8
  %49 = getelementptr i8, ptr %0, i64 534
  store i8 %48, ptr %49, align 1, !tbaa !5
  %50 = tail call i32 @rand() #4
  %51 = trunc i32 %50 to i8
  br label %.preheader55

.preheader55:                                     ; preds = %.split.preheader, %.split.us.preheader
  %.sink = phi i8 [ %29, %.split.preheader ], [ %51, %.split.us.preheader ]
  %52 = getelementptr i8, ptr %0, i64 535
  store i8 %.sink, ptr %52, align 1, !tbaa !5
  %53 = icmp eq ptr %2, null
  br i1 %53, label %.preheader55.split58.us, label %vector.memcheck

vector.memcheck:                                  ; preds = %.preheader55
  %54 = add i64 %6, 536
  %55 = sub i64 %54, %5
  %diff.check = icmp ult i64 %55, 32
  br i1 %diff.check, label %.preheader55.split58, label %vector.body

vector.body:                                      ; preds = %vector.memcheck
  %56 = getelementptr inbounds i8, ptr %2, i64 16
  %wide.load = load <16 x i8>, ptr %2, align 1, !tbaa !5
  %wide.load98 = load <16 x i8>, ptr %56, align 1, !tbaa !5
  %57 = getelementptr i8, ptr %0, i64 536
  %58 = getelementptr i8, ptr %0, i64 552
  store <16 x i8> %wide.load, ptr %57, align 1, !tbaa !5
  store <16 x i8> %wide.load98, ptr %58, align 1, !tbaa !5
  %59 = getelementptr inbounds i8, ptr %2, i64 32
  %60 = getelementptr inbounds i8, ptr %2, i64 48
  %wide.load.1 = load <16 x i8>, ptr %59, align 1, !tbaa !5
  %wide.load98.1 = load <16 x i8>, ptr %60, align 1, !tbaa !5
  %61 = getelementptr i8, ptr %0, i64 568
  %62 = getelementptr i8, ptr %0, i64 584
  store <16 x i8> %wide.load.1, ptr %61, align 1, !tbaa !5
  store <16 x i8> %wide.load98.1, ptr %62, align 1, !tbaa !5
  br label %.split60.us

.preheader55.split58.us:                          ; preds = %.preheader55, %.preheader55.split58.us
  %indvars.iv74 = phi i64 [ %indvars.iv.next75, %.preheader55.split58.us ], [ 0, %.preheader55 ]
  %63 = tail call i32 @rand() #4
  %64 = trunc i32 %63 to i8
  %65 = add nuw nsw i64 %indvars.iv74, 8
  %66 = getelementptr inbounds [150 x i8], ptr %8, i64 0, i64 %65
  store i8 %64, ptr %66, align 1, !tbaa !5
  %indvars.iv.next75 = add nuw nsw i64 %indvars.iv74, 1
  %exitcond77.not = icmp eq i64 %indvars.iv.next75, 64
  br i1 %exitcond77.not, label %.split60.us, label %.preheader55.split58.us, !llvm.loop !8

.preheader55.split58:                             ; preds = %vector.memcheck, %.preheader55.split58
  %indvars.iv = phi i64 [ %indvars.iv.next.3, %.preheader55.split58 ], [ 0, %vector.memcheck ]
  %67 = getelementptr inbounds i8, ptr %2, i64 %indvars.iv
  %68 = load i8, ptr %67, align 1, !tbaa !5
  %69 = add nuw nsw i64 %indvars.iv, 8
  %70 = getelementptr inbounds [150 x i8], ptr %8, i64 0, i64 %69
  store i8 %68, ptr %70, align 1, !tbaa !5
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %71 = getelementptr inbounds i8, ptr %2, i64 %indvars.iv.next
  %72 = load i8, ptr %71, align 1, !tbaa !5
  %73 = add nuw nsw i64 %indvars.iv, 9
  %74 = getelementptr inbounds [150 x i8], ptr %8, i64 0, i64 %73
  store i8 %72, ptr %74, align 1, !tbaa !5
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %75 = getelementptr inbounds i8, ptr %2, i64 %indvars.iv.next.1
  %76 = load i8, ptr %75, align 1, !tbaa !5
  %77 = add nuw nsw i64 %indvars.iv, 10
  %78 = getelementptr inbounds [150 x i8], ptr %8, i64 0, i64 %77
  store i8 %76, ptr %78, align 1, !tbaa !5
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %79 = getelementptr inbounds i8, ptr %2, i64 %indvars.iv.next.2
  %80 = load i8, ptr %79, align 1, !tbaa !5
  %81 = add nuw nsw i64 %indvars.iv, 11
  %82 = getelementptr inbounds [150 x i8], ptr %8, i64 0, i64 %81
  store i8 %80, ptr %82, align 1, !tbaa !5
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %exitcond.not.3 = icmp eq i64 %indvars.iv.next.3, 64
  br i1 %exitcond.not.3, label %.split60.us, label %.preheader55.split58, !llvm.loop !10

.split60.us:                                      ; preds = %.preheader55.split58, %.preheader55.split58.us, %vector.body
  %83 = load ptr, ptr %0, align 8, !tbaa !12
  %84 = getelementptr inbounds i8, ptr %0, i64 680
  %85 = tail call i32 @qpacketmodem_encode(ptr noundef %83, ptr noundef nonnull %8, ptr noundef nonnull %84) #4
  %86 = getelementptr inbounds i8, ptr %0, i64 8
  %87 = load ptr, ptr %86, align 8, !tbaa !17
  %88 = getelementptr inbounds i8, ptr %0, i64 5480
  %89 = tail call i32 @qpilotgen_execute(ptr noundef %87, ptr noundef nonnull %84, ptr noundef nonnull %88) #4
  %90 = getelementptr inbounds i8, ptr %0, i64 10528
  %91 = load ptr, ptr %90, align 8, !tbaa !18
  %92 = tail call i32 @firinterp_crcf_reset(ptr noundef %91) #4
  %93 = getelementptr inbounds i8, ptr %0, i64 16
  br label %94

94:                                               ; preds = %.split60.us, %94
  %indvars.iv80 = phi i64 [ 0, %.split60.us ], [ %indvars.iv.next81, %94 ]
  %indvars.iv78 = phi i64 [ 0, %.split60.us ], [ %indvars.iv.next79, %94 ]
  %95 = load ptr, ptr %90, align 8, !tbaa !18
  %96 = getelementptr inbounds [64 x { float, float }], ptr %93, i64 0, i64 %indvars.iv80
  %97 = load <2 x float>, ptr %96, align 8
  %98 = getelementptr inbounds { float, float }, ptr %3, i64 %indvars.iv78
  %99 = tail call i32 @firinterp_crcf_execute(ptr noundef %95, <2 x float> noundef %97, ptr noundef %98) #4
  %indvars.iv.next79 = add nuw nsw i64 %indvars.iv78, 2
  %indvars.iv.next81 = add nuw nsw i64 %indvars.iv80, 1
  %exitcond85.not = icmp eq i64 %indvars.iv.next81, 64
  br i1 %exitcond85.not, label %.preheader54, label %94, !llvm.loop !19

.preheader:                                       ; preds = %.preheader54
  %100 = getelementptr inbounds i8, ptr %0, i64 10520
  %101 = load i32, ptr %100, align 8, !tbaa !20
  %.mask = and i32 %101, 2147483647
  %.not = icmp eq i32 %.mask, 2147483642
  br i1 %.not, label %._crit_edge.thread, label %.lr.ph

.preheader54:                                     ; preds = %94, %.preheader54
  %indvars.iv88 = phi i64 [ %indvars.iv.next89, %.preheader54 ], [ 0, %94 ]
  %indvars.iv86 = phi i64 [ %indvars.iv.next87, %.preheader54 ], [ 128, %94 ]
  %102 = load ptr, ptr %90, align 8, !tbaa !18
  %103 = getelementptr inbounds [630 x { float, float }], ptr %88, i64 0, i64 %indvars.iv88
  %104 = load <2 x float>, ptr %103, align 8
  %105 = getelementptr inbounds { float, float }, ptr %3, i64 %indvars.iv86
  %106 = tail call i32 @firinterp_crcf_execute(ptr noundef %102, <2 x float> noundef %104, ptr noundef nonnull %105) #4
  %indvars.iv.next87 = add nuw nsw i64 %indvars.iv86, 2
  %indvars.iv.next89 = add nuw nsw i64 %indvars.iv88, 1
  %exitcond93.not = icmp eq i64 %indvars.iv.next89, 630
  br i1 %exitcond93.not, label %.preheader, label %.preheader54, !llvm.loop !21

.lr.ph:                                           ; preds = %.preheader, %.lr.ph
  %.266 = phi i32 [ %111, %.lr.ph ], [ 1388, %.preheader ]
  %.465 = phi i32 [ %112, %.lr.ph ], [ 0, %.preheader ]
  %107 = load ptr, ptr %90, align 8, !tbaa !18
  %108 = zext i32 %.266 to i64
  %109 = getelementptr inbounds { float, float }, ptr %3, i64 %108
  %110 = tail call i32 @firinterp_crcf_execute(ptr noundef %107, <2 x float> noundef zeroinitializer, ptr noundef %109) #4
  %111 = add i32 %.266, 2
  %112 = add nuw i32 %.465, 1
  %113 = load i32, ptr %100, align 8, !tbaa !20
  %114 = shl i32 %113, 1
  %115 = add i32 %114, 12
  %116 = icmp ult i32 %112, %115
  br i1 %116, label %.lr.ph, label %._crit_edge, !llvm.loop !22

._crit_edge:                                      ; preds = %.lr.ph
  %117 = icmp eq i32 %111, 1440
  br i1 %117, label %118, label %._crit_edge.thread

._crit_edge.thread:                               ; preds = %.preheader, %._crit_edge
  tail call void @__assert_fail(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.1, i32 noundef 190, ptr noundef nonnull @__PRETTY_FUNCTION__.framegen64_execute) #5
  unreachable

118:                                              ; preds = %._crit_edge
  ret i32 0
}

; Function Attrs: nounwind
declare i32 @rand() local_unnamed_addr #2

declare i32 @qpacketmodem_encode(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare i32 @qpilotgen_execute(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare i32 @firinterp_crcf_reset(ptr noundef) local_unnamed_addr #3

declare i32 @firinterp_crcf_execute(ptr noundef, <2 x float> noundef, ptr noundef) local_unnamed_addr #3

attributes #0 = { 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 #1 = { nounwind uwtable "min-legal-vector-width"="64" "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 = { 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 = { "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 }
attributes #5 = { 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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
!10 = distinct !{!10, !9, !11}
!11 = !{!"llvm.loop.isvectorized", i32 1}
!12 = !{!13, !14, i64 0}
!13 = !{!"framegen64_s", !14, i64 0, !14, i64 8, !6, i64 16, !6, i64 528, !6, i64 680, !6, i64 5480, !15, i64 10520, !16, i64 10524, !14, i64 10528}
!14 = !{!"any pointer", !6, i64 0}
!15 = !{!"int", !6, i64 0}
!16 = !{!"float", !6, i64 0}
!17 = !{!13, !14, i64 8}
!18 = !{!13, !14, i64 10528}
!19 = distinct !{!19, !9}
!20 = !{!13, !15, i64 10520}
!21 = distinct !{!21, !9}
!22 = distinct !{!22, !9}


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