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

; 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.dsssframegen_s = type { i32, i32, float, ptr, [2 x { float, float }], %struct.dsssframegenprops_s, %struct.dsssframegenprops_s, ptr, ptr, ptr, ptr, i32, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, i32, i32, i32, { float, float }, i32, i32, i32 }
%struct.dsssframegenprops_s = type { i32, i32, i32 }

; Function Attrs: nounwind uwtable
define dso_local ptr @dsssframegen_create(ptr noundef %0) #0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  %7 = call noalias ptr @calloc(i64 noundef 1, i64 noundef 200) #7
  store ptr %7, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  %8 = load ptr, ptr %3, align 8, !tbaa !5
  %9 = getelementptr inbounds %struct.dsssframegen_s, ptr %8, i32 0, i32 0
  store i32 2, ptr %9, align 8, !tbaa !9
  %10 = load ptr, ptr %3, align 8, !tbaa !5
  %11 = getelementptr inbounds %struct.dsssframegen_s, ptr %10, i32 0, i32 1
  store i32 7, ptr %11, align 4, !tbaa !14
  %12 = load ptr, ptr %3, align 8, !tbaa !5
  %13 = getelementptr inbounds %struct.dsssframegen_s, ptr %12, i32 0, i32 2
  store float 2.500000e-01, ptr %13, align 8, !tbaa !15
  %14 = load ptr, ptr %3, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.dsssframegen_s, ptr %14, i32 0, i32 0
  %16 = load i32, ptr %15, align 8, !tbaa !9
  %17 = load ptr, ptr %3, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.dsssframegen_s, ptr %17, i32 0, i32 1
  %19 = load i32, ptr %18, align 4, !tbaa !14
  %20 = load ptr, ptr %3, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.dsssframegen_s, ptr %20, i32 0, i32 2
  %22 = load float, ptr %21, align 8, !tbaa !15
  %23 = call ptr @firinterp_crcf_create_prototype(i32 noundef 7, i32 noundef %16, i32 noundef %19, float noundef %22, float noundef 0.000000e+00)
  %24 = load ptr, ptr %3, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.dsssframegen_s, ptr %24, i32 0, i32 3
  store ptr %23, ptr %25, align 8, !tbaa !16
  %26 = call noalias ptr @malloc(i64 noundef 512) #8
  %27 = load ptr, ptr %3, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.dsssframegen_s, ptr %27, i32 0, i32 7
  store ptr %26, ptr %28, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %29 = call ptr @msequence_create(i32 noundef 7, i32 noundef 137, i32 noundef 1)
  store ptr %29, ptr %5, align 8, !tbaa !5
  store i32 0, ptr %4, align 4, !tbaa !18
  br label %30

30:                                               ; preds = %73, %1
  %31 = load i32, ptr %4, align 4, !tbaa !18
  %32 = icmp ult i32 %31, 64
  br i1 %32, label %33, label %76

33:                                               ; preds = %30
  %34 = load ptr, ptr %5, align 8, !tbaa !5
  %35 = call i32 @msequence_advance(ptr noundef %34)
  %36 = icmp ne i32 %35, 0
  %37 = zext i1 %36 to i64
  %38 = select i1 %36, double 0x3FE6A09E667F3BCD, double 0xBFE6A09E667F3BCD
  %39 = fptrunc double %38 to float
  %40 = load ptr, ptr %3, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.dsssframegen_s, ptr %40, i32 0, i32 7
  %42 = load ptr, ptr %41, align 8, !tbaa !17
  %43 = load i32, ptr %4, align 4, !tbaa !18
  %44 = zext i32 %43 to i64
  %45 = getelementptr inbounds { float, float }, ptr %42, i64 %44
  %46 = getelementptr inbounds { float, float }, ptr %45, i32 0, i32 0
  %47 = getelementptr inbounds { float, float }, ptr %45, i32 0, i32 1
  store float %39, ptr %46, align 4
  store float 0.000000e+00, ptr %47, align 4
  %48 = load ptr, ptr %5, align 8, !tbaa !5
  %49 = call i32 @msequence_advance(ptr noundef %48)
  %50 = icmp ne i32 %49, 0
  %51 = zext i1 %50 to i64
  %52 = select i1 %50, double 0x3FE6A09E667F3BCD, double 0xBFE6A09E667F3BCD
  %53 = fmul double %52, 0.000000e+00
  %54 = fmul double %52, 1.000000e+00
  %55 = load ptr, ptr %3, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.dsssframegen_s, ptr %55, i32 0, i32 7
  %57 = load ptr, ptr %56, align 8, !tbaa !17
  %58 = load i32, ptr %4, align 4, !tbaa !18
  %59 = zext i32 %58 to i64
  %60 = getelementptr inbounds { float, float }, ptr %57, i64 %59
  %61 = getelementptr inbounds { float, float }, ptr %60, i32 0, i32 0
  %62 = load float, ptr %61, align 4
  %63 = getelementptr inbounds { float, float }, ptr %60, i32 0, i32 1
  %64 = load float, ptr %63, align 4
  %65 = fpext float %62 to double
  %66 = fpext float %64 to double
  %67 = fadd double %65, %53
  %68 = fadd double %66, %54
  %69 = fptrunc double %67 to float
  %70 = fptrunc double %68 to float
  %71 = getelementptr inbounds { float, float }, ptr %60, i32 0, i32 0
  %72 = getelementptr inbounds { float, float }, ptr %60, i32 0, i32 1
  store float %69, ptr %71, align 4
  store float %70, ptr %72, align 4
  br label %73

73:                                               ; preds = %33
  %74 = load i32, ptr %4, align 4, !tbaa !18
  %75 = add i32 %74, 1
  store i32 %75, ptr %4, align 4, !tbaa !18
  br label %30, !llvm.loop !19

76:                                               ; preds = %30
  %77 = load ptr, ptr %5, align 8, !tbaa !5
  %78 = call i32 @msequence_destroy(ptr noundef %77)
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %79 = call noalias ptr @malloc(i64 noundef 512) #8
  store ptr %79, ptr %6, align 8, !tbaa !5
  %80 = call ptr @msequence_create(i32 noundef 7, i32 noundef 203, i32 noundef 83)
  store ptr %80, ptr %5, align 8, !tbaa !5
  store i32 0, ptr %4, align 4, !tbaa !18
  br label %81

81:                                               ; preds = %120, %76
  %82 = load i32, ptr %4, align 4, !tbaa !18
  %83 = icmp ult i32 %82, 64
  br i1 %83, label %84, label %123

84:                                               ; preds = %81
  %85 = load ptr, ptr %5, align 8, !tbaa !5
  %86 = call i32 @msequence_advance(ptr noundef %85)
  %87 = icmp ne i32 %86, 0
  %88 = zext i1 %87 to i64
  %89 = select i1 %87, double 0x3FE6A09E667F3BCD, double 0xBFE6A09E667F3BCD
  %90 = fptrunc double %89 to float
  %91 = load ptr, ptr %6, align 8, !tbaa !5
  %92 = load i32, ptr %4, align 4, !tbaa !18
  %93 = zext i32 %92 to i64
  %94 = getelementptr inbounds { float, float }, ptr %91, i64 %93
  %95 = getelementptr inbounds { float, float }, ptr %94, i32 0, i32 0
  %96 = getelementptr inbounds { float, float }, ptr %94, i32 0, i32 1
  store float %90, ptr %95, align 4
  store float 0.000000e+00, ptr %96, align 4
  %97 = load ptr, ptr %5, align 8, !tbaa !5
  %98 = call i32 @msequence_advance(ptr noundef %97)
  %99 = icmp ne i32 %98, 0
  %100 = zext i1 %99 to i64
  %101 = select i1 %99, double 0x3FE6A09E667F3BCD, double 0xBFE6A09E667F3BCD
  %102 = fmul double %101, 0.000000e+00
  %103 = fmul double %101, 1.000000e+00
  %104 = load ptr, ptr %6, align 8, !tbaa !5
  %105 = load i32, ptr %4, align 4, !tbaa !18
  %106 = zext i32 %105 to i64
  %107 = getelementptr inbounds { float, float }, ptr %104, i64 %106
  %108 = getelementptr inbounds { float, float }, ptr %107, i32 0, i32 0
  %109 = load float, ptr %108, align 4
  %110 = getelementptr inbounds { float, float }, ptr %107, i32 0, i32 1
  %111 = load float, ptr %110, align 4
  %112 = fpext float %109 to double
  %113 = fpext float %111 to double
  %114 = fadd double %112, %102
  %115 = fadd double %113, %103
  %116 = fptrunc double %114 to float
  %117 = fptrunc double %115 to float
  %118 = getelementptr inbounds { float, float }, ptr %107, i32 0, i32 0
  %119 = getelementptr inbounds { float, float }, ptr %107, i32 0, i32 1
  store float %116, ptr %118, align 4
  store float %117, ptr %119, align 4
  br label %120

120:                                              ; preds = %84
  %121 = load i32, ptr %4, align 4, !tbaa !18
  %122 = add i32 %121, 1
  store i32 %122, ptr %4, align 4, !tbaa !18
  br label %81, !llvm.loop !21

123:                                              ; preds = %81
  %124 = load ptr, ptr %6, align 8, !tbaa !5
  %125 = call ptr @synth_crcf_create(ptr noundef %124, i32 noundef 64)
  %126 = load ptr, ptr %3, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.dsssframegen_s, ptr %126, i32 0, i32 8
  store ptr %125, ptr %127, align 8, !tbaa !22
  %128 = load ptr, ptr %6, align 8, !tbaa !5
  %129 = call ptr @synth_crcf_create(ptr noundef %128, i32 noundef 64)
  %130 = load ptr, ptr %3, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.dsssframegen_s, ptr %130, i32 0, i32 9
  store ptr %129, ptr %131, align 8, !tbaa !23
  %132 = load ptr, ptr %6, align 8, !tbaa !5
  call void @free(ptr noundef %132) #6
  %133 = load ptr, ptr %5, align 8, !tbaa !5
  %134 = call i32 @msequence_destroy(ptr noundef %133)
  %135 = load ptr, ptr %3, align 8, !tbaa !5
  %136 = call i32 @dsssframegen_reset(ptr noundef %135)
  %137 = load ptr, ptr %3, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.dsssframegen_s, ptr %137, i32 0, i32 10
  store ptr null, ptr %138, align 8, !tbaa !24
  %139 = load ptr, ptr %3, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.dsssframegen_s, ptr %139, i32 0, i32 11
  store i32 8, ptr %140, align 8, !tbaa !25
  %141 = load ptr, ptr %3, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.dsssframegen_s, ptr %141, i32 0, i32 11
  %143 = load i32, ptr %142, align 8, !tbaa !25
  %144 = add i32 5, %143
  %145 = load ptr, ptr %3, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.dsssframegen_s, ptr %145, i32 0, i32 12
  store i32 %144, ptr %146, align 4, !tbaa !26
  %147 = load ptr, ptr %3, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.dsssframegen_s, ptr %147, i32 0, i32 15
  store ptr null, ptr %148, align 8, !tbaa !27
  %149 = call ptr (...) @qpacketmodem_create()
  %150 = load ptr, ptr %3, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.dsssframegen_s, ptr %150, i32 0, i32 13
  store ptr %149, ptr %151, align 8, !tbaa !28
  %152 = call ptr (...) @qpacketmodem_create()
  %153 = load ptr, ptr %3, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.dsssframegen_s, ptr %153, i32 0, i32 17
  store ptr %152, ptr %154, align 8, !tbaa !29
  %155 = load ptr, ptr %3, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.dsssframegen_s, ptr %155, i32 0, i32 16
  store i32 0, ptr %156, align 8, !tbaa !30
  %157 = load ptr, ptr %3, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.dsssframegen_s, ptr %157, i32 0, i32 18
  store i32 0, ptr %158, align 8, !tbaa !31
  %159 = load ptr, ptr %3, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.dsssframegen_s, ptr %159, i32 0, i32 19
  store ptr null, ptr %160, align 8, !tbaa !32
  %161 = load ptr, ptr %3, align 8, !tbaa !5
  %162 = load ptr, ptr %2, align 8, !tbaa !5
  %163 = call i32 @dsssframegen_setprops(ptr noundef %161, ptr noundef %162)
  %164 = load ptr, ptr %3, align 8, !tbaa !5
  %165 = call i32 @dsssframegen_set_header_props(ptr noundef %164, ptr noundef null)
  %166 = load ptr, ptr %3, align 8, !tbaa !5
  %167 = load ptr, ptr %3, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.dsssframegen_s, ptr %167, i32 0, i32 11
  %169 = load i32, ptr %168, align 8, !tbaa !25
  %170 = call i32 @dsssframegen_set_header_len(ptr noundef %166, i32 noundef %169)
  %171 = load ptr, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  ret ptr %171
}

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

; Function Attrs: nounwind allocsize(0,1)
declare noalias ptr @calloc(i64 noundef, i64 noundef) #2

declare ptr @firinterp_crcf_create_prototype(i32 noundef, i32 noundef, i32 noundef, float noundef, float noundef) #3

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #4

declare ptr @msequence_create(i32 noundef, i32 noundef, i32 noundef) #3

declare i32 @msequence_advance(ptr noundef) #3

declare i32 @msequence_destroy(ptr noundef) #3

declare ptr @synth_crcf_create(ptr noundef, i32 noundef) #3

; Function Attrs: nounwind
declare void @free(ptr noundef) #5

; Function Attrs: nounwind uwtable
declare dso_local i32 @dsssframegen_reset(ptr noundef) #0

declare ptr @qpacketmodem_create(...) #3

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

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

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

; 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 = { nounwind allocsize(0,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 #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 allocsize(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 "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(0,1) }
attributes #8 = { nounwind allocsize(0) }

!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, !11, i64 0}
!10 = !{!"dsssframegen_s", !11, i64 0, !11, i64 4, !12, i64 8, !6, i64 16, !7, i64 24, !13, i64 40, !13, i64 52, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !11, i64 96, !11, i64 100, !6, i64 104, !11, i64 112, !6, i64 120, !11, i64 128, !6, i64 136, !11, i64 144, !6, i64 152, !11, i64 160, !11, i64 164, !11, i64 168, !11, i64 172, !7, i64 176, !11, i64 184, !11, i64 188, !11, i64 192}
!11 = !{!"int", !7, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8}
!14 = !{!10, !11, i64 4}
!15 = !{!10, !12, i64 8}
!16 = !{!10, !6, i64 16}
!17 = !{!10, !6, i64 64}
!18 = !{!11, !11, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = !{!10, !6, i64 72}
!23 = !{!10, !6, i64 80}
!24 = !{!10, !6, i64 88}
!25 = !{!10, !11, i64 96}
!26 = !{!10, !11, i64 100}
!27 = !{!10, !6, i64 120}
!28 = !{!10, !6, i64 104}
!29 = !{!10, !6, i64 136}
!30 = !{!10, !11, i64 128}
!31 = !{!10, !11, i64 144}
!32 = !{!10, !6, i64 152}


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

; Function Attrs: nounwind uwtable
define dso_local noundef ptr @dsssframegen_create(ptr noundef %0) local_unnamed_addr #0 {
  %2 = tail call noalias dereferenceable_or_null(200) ptr @calloc(i64 noundef 1, i64 noundef 200) #6
  store i32 2, ptr %2, align 8, !tbaa !5
  %3 = getelementptr inbounds i8, ptr %2, i64 4
  store i32 7, ptr %3, align 4, !tbaa !13
  %4 = getelementptr inbounds i8, ptr %2, i64 8
  store float 2.500000e-01, ptr %4, align 8, !tbaa !14
  %5 = tail call ptr @firinterp_crcf_create_prototype(i32 noundef 7, i32 noundef 2, i32 noundef 7, float noundef 2.500000e-01, float noundef 0.000000e+00) #7
  %6 = getelementptr inbounds i8, ptr %2, i64 16
  store ptr %5, ptr %6, align 8, !tbaa !15
  %7 = tail call noalias dereferenceable_or_null(512) ptr @malloc(i64 noundef 512) #8
  %8 = getelementptr inbounds i8, ptr %2, i64 64
  store ptr %7, ptr %8, align 8, !tbaa !16
  %9 = tail call ptr @msequence_create(i32 noundef 7, i32 noundef 137, i32 noundef 1) #7
  br label %10

10:                                               ; preds = %1, %10
  %indvars.iv = phi i64 [ 0, %1 ], [ %indvars.iv.next, %10 ]
  %11 = tail call i32 @msequence_advance(ptr noundef %9) #7
  %.not48 = icmp eq i32 %11, 0
  %12 = select i1 %.not48, float 0xBFE6A09E60000000, float 0x3FE6A09E60000000
  %13 = getelementptr inbounds { float, float }, ptr %7, i64 %indvars.iv
  %14 = getelementptr inbounds i8, ptr %13, i64 4
  store float %12, ptr %13, align 4
  store float 0.000000e+00, ptr %14, align 4
  %15 = tail call i32 @msequence_advance(ptr noundef %9) #7
  %.not49 = icmp eq i32 %15, 0
  %16 = select i1 %.not49, double 0xBFE6A09E667F3BCD, double 0x3FE6A09E667F3BCD
  %17 = tail call double @llvm.copysign.f64(double 0.000000e+00, double %16)
  %18 = load <2 x float>, ptr %13, align 4
  %19 = fpext <2 x float> %18 to <2 x double>
  %20 = insertelement <2 x double> poison, double %17, i64 0
  %21 = insertelement <2 x double> %20, double %16, i64 1
  %22 = fadd <2 x double> %21, %19
  %23 = fptrunc <2 x double> %22 to <2 x float>
  store <2 x float> %23, ptr %13, align 4
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 64
  br i1 %exitcond.not, label %24, label %10, !llvm.loop !17

24:                                               ; preds = %10
  %25 = tail call i32 @msequence_destroy(ptr noundef %9) #7
  %26 = tail call noalias dereferenceable_or_null(512) ptr @malloc(i64 noundef 512) #8
  %27 = tail call ptr @msequence_create(i32 noundef 7, i32 noundef 203, i32 noundef 83) #7
  br label %28

28:                                               ; preds = %24, %28
  %indvars.iv53 = phi i64 [ 0, %24 ], [ %indvars.iv.next54, %28 ]
  %29 = tail call i32 @msequence_advance(ptr noundef %27) #7
  %.not = icmp eq i32 %29, 0
  %30 = getelementptr inbounds { float, float }, ptr %26, i64 %indvars.iv53
  %31 = tail call i32 @msequence_advance(ptr noundef %27) #7
  %.not47 = icmp eq i32 %31, 0
  %32 = select i1 %.not47, double 0xBFE6A09E667F3BCD, double 0x3FE6A09E667F3BCD
  %33 = tail call double @llvm.copysign.f64(double 0.000000e+00, double %32)
  %34 = select i1 %.not, double 0xBFE6A09E60000000, double 0x3FE6A09E60000000
  %35 = fadd double %33, %34
  %36 = insertelement <2 x double> poison, double %35, i64 0
  %37 = insertelement <2 x double> %36, double %32, i64 1
  %38 = fptrunc <2 x double> %37 to <2 x float>
  store <2 x float> %38, ptr %30, align 4
  %indvars.iv.next54 = add nuw nsw i64 %indvars.iv53, 1
  %exitcond56.not = icmp eq i64 %indvars.iv.next54, 64
  br i1 %exitcond56.not, label %39, label %28, !llvm.loop !19

39:                                               ; preds = %28
  %40 = tail call ptr @synth_crcf_create(ptr noundef nonnull %26, i32 noundef 64) #7
  %41 = getelementptr inbounds i8, ptr %2, i64 72
  store ptr %40, ptr %41, align 8, !tbaa !20
  %42 = tail call ptr @synth_crcf_create(ptr noundef nonnull %26, i32 noundef 64) #7
  %43 = getelementptr inbounds i8, ptr %2, i64 80
  store ptr %42, ptr %43, align 8, !tbaa !21
  tail call void @free(ptr noundef nonnull %26) #7
  %44 = tail call i32 @msequence_destroy(ptr noundef %27) #7
  %45 = tail call i32 @dsssframegen_reset(ptr noundef nonnull %2)
  %46 = getelementptr inbounds i8, ptr %2, i64 88
  store ptr null, ptr %46, align 8, !tbaa !22
  %47 = getelementptr inbounds i8, ptr %2, i64 96
  store i32 8, ptr %47, align 8, !tbaa !23
  %48 = getelementptr inbounds i8, ptr %2, i64 100
  store i32 13, ptr %48, align 4, !tbaa !24
  %49 = getelementptr inbounds i8, ptr %2, i64 120
  store ptr null, ptr %49, align 8, !tbaa !25
  %50 = tail call ptr (...) @qpacketmodem_create() #7
  %51 = getelementptr inbounds i8, ptr %2, i64 104
  store ptr %50, ptr %51, align 8, !tbaa !26
  %52 = tail call ptr (...) @qpacketmodem_create() #7
  %53 = getelementptr inbounds i8, ptr %2, i64 136
  store ptr %52, ptr %53, align 8, !tbaa !27
  %54 = getelementptr inbounds i8, ptr %2, i64 128
  store i32 0, ptr %54, align 8, !tbaa !28
  %55 = getelementptr inbounds i8, ptr %2, i64 144
  store i32 0, ptr %55, align 8, !tbaa !29
  %56 = getelementptr inbounds i8, ptr %2, i64 152
  store ptr null, ptr %56, align 8, !tbaa !30
  %57 = tail call i32 @dsssframegen_setprops(ptr noundef nonnull %2, ptr noundef %0)
  %58 = tail call i32 @dsssframegen_set_header_props(ptr noundef nonnull %2, ptr noundef null)
  %59 = load i32, ptr %47, align 8, !tbaa !23
  %60 = tail call i32 @dsssframegen_set_header_len(ptr noundef nonnull %2, i32 noundef %59)
  ret ptr %2
}

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @calloc(i64 noundef, i64 noundef) local_unnamed_addr #1

declare ptr @firinterp_crcf_create_prototype(i32 noundef, i32 noundef, i32 noundef, float noundef, float noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #3

declare ptr @msequence_create(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

declare i32 @msequence_advance(ptr noundef) local_unnamed_addr #2

declare i32 @msequence_destroy(ptr noundef) local_unnamed_addr #2

declare ptr @synth_crcf_create(ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #4

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

declare ptr @qpacketmodem_create(...) local_unnamed_addr #2

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.copysign.f64(double, double) #5

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 = { mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(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 #2 = { "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 nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(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 = { mustprogress nounwind willreturn allockind("free") 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nounwind allocsize(0,1) }
attributes #7 = { nounwind }
attributes #8 = { nounwind allocsize(0) }

!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, !7, i64 0}
!6 = !{!"dsssframegen_s", !7, i64 0, !7, i64 4, !10, i64 8, !11, i64 16, !8, i64 24, !12, i64 40, !12, i64 52, !11, i64 64, !11, i64 72, !11, i64 80, !11, i64 88, !7, i64 96, !7, i64 100, !11, i64 104, !7, i64 112, !11, i64 120, !7, i64 128, !11, i64 136, !7, i64 144, !11, i64 152, !7, i64 160, !7, i64 164, !7, i64 168, !7, i64 172, !8, i64 176, !7, i64 184, !7, i64 188, !7, i64 192}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"float", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!"", !7, i64 0, !7, i64 4, !7, i64 8}
!13 = !{!6, !7, i64 4}
!14 = !{!6, !10, i64 8}
!15 = !{!6, !11, i64 16}
!16 = !{!6, !11, i64 64}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = !{!6, !11, i64 72}
!21 = !{!6, !11, i64 80}
!22 = !{!6, !11, i64 88}
!23 = !{!6, !7, i64 96}
!24 = !{!6, !7, i64 100}
!25 = !{!6, !11, i64 120}
!26 = !{!6, !11, i64 104}
!27 = !{!6, !11, i64 136}
!28 = !{!6, !7, i64 128}
!29 = !{!6, !7, i64 144}
!30 = !{!6, !11, i64 152}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass