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

; 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.dsssframesync_s = type { ptr, ptr, %struct.framesyncstats_s, %struct.framedatastats_s, i32, i32, float, ptr, float, float, float, float, ptr, ptr, ptr, i32, i32, i32, ptr, ptr, ptr, ptr, i32, %struct.flexframegenprops_s, ptr, i32, ptr, i32, i32, ptr, i32, i32, ptr, i32, ptr, i32, ptr, i32, i32, i32, i32 }
%struct.framesyncstats_s = type { float, float, float, ptr, i32, i32, i32, i32, i32, i32 }
%struct.framedatastats_s = type { i32, i32, i32, i64 }
%struct.flexframegenprops_s = type { i32, i32, i32, i32 }

@.str = external hidden unnamed_addr constant [86 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [74 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [70 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

declare i32 @liquid_error_fl(i32 noundef, ptr noundef, i32 noundef, ptr noundef, ...) #1

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

declare i32 @qpacketmodem_configure(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @dsssframesync_configure_payload(ptr noundef %0) #3 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  %11 = load ptr, ptr %3, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.dsssframesync_s, ptr %11, i32 0, i32 26
  %13 = load ptr, ptr %12, align 8, !tbaa !9
  %14 = load ptr, ptr %3, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.dsssframesync_s, ptr %14, i32 0, i32 29
  %16 = load ptr, ptr %15, align 8, !tbaa !17
  %17 = call i32 @qpacketmodem_decode_soft_payload(ptr noundef %13, ptr noundef %16)
  %18 = load ptr, ptr %3, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.dsssframesync_s, ptr %18, i32 0, i32 30
  store i32 %17, ptr %19, align 8, !tbaa !18
  %20 = load ptr, ptr %3, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.dsssframesync_s, ptr %20, i32 0, i32 30
  %22 = load i32, ptr %21, align 8, !tbaa !18
  %23 = icmp ne i32 %22, 0
  br i1 %23, label %25, label %24

24:                                               ; preds = %1
  store i32 0, ptr %2, align 4
  br label %162

25:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  %26 = load ptr, ptr %3, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.dsssframesync_s, ptr %26, i32 0, i32 27
  %28 = load i32, ptr %27, align 8, !tbaa !19
  store i32 %28, ptr %4, align 4, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  %29 = load ptr, ptr %3, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.dsssframesync_s, ptr %29, i32 0, i32 29
  %31 = load ptr, ptr %30, align 8, !tbaa !17
  %32 = load i32, ptr %4, align 4, !tbaa !20
  %33 = add i32 %32, 0
  %34 = zext i32 %33 to i64
  %35 = getelementptr inbounds i8, ptr %31, i64 %34
  %36 = load i8, ptr %35, align 1, !tbaa !21
  %37 = zext i8 %36 to i32
  store i32 %37, ptr %5, align 4, !tbaa !20
  %38 = load i32, ptr %5, align 4, !tbaa !20
  %39 = icmp ne i32 %38, 102
  br i1 %39, label %40, label %45

40:                                               ; preds = %25
  %41 = load ptr, ptr %3, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.dsssframesync_s, ptr %41, i32 0, i32 30
  store i32 0, ptr %42, align 8, !tbaa !18
  %43 = load i32, ptr %5, align 4, !tbaa !20
  %44 = call i32 (i32, ptr, i32, ptr, ...) @liquid_error_fl(i32 noundef 6, ptr noundef @.str, i32 noundef 471, ptr noundef @.str.6, i32 noundef %43, i32 noundef 102)
  store i32 %44, ptr %2, align 4
  store i32 1, ptr %6, align 4
  br label %161

45:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  %46 = load ptr, ptr %3, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.dsssframesync_s, ptr %46, i32 0, i32 29
  %48 = load ptr, ptr %47, align 8, !tbaa !17
  %49 = load i32, ptr %4, align 4, !tbaa !20
  %50 = add i32 %49, 1
  %51 = zext i32 %50 to i64
  %52 = getelementptr inbounds i8, ptr %48, i64 %51
  %53 = load i8, ptr %52, align 1, !tbaa !21
  %54 = zext i8 %53 to i32
  %55 = shl i32 %54, 8
  %56 = load ptr, ptr %3, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.dsssframesync_s, ptr %56, i32 0, i32 29
  %58 = load ptr, ptr %57, align 8, !tbaa !17
  %59 = load i32, ptr %4, align 4, !tbaa !20
  %60 = add i32 %59, 2
  %61 = zext i32 %60 to i64
  %62 = getelementptr inbounds i8, ptr %58, i64 %61
  %63 = load i8, ptr %62, align 1, !tbaa !21
  %64 = zext i8 %63 to i32
  %65 = or i32 %55, %64
  store i32 %65, ptr %7, align 4, !tbaa !20
  %66 = load i32, ptr %7, align 4, !tbaa !20
  %67 = load ptr, ptr %3, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.dsssframesync_s, ptr %67, i32 0, i32 35
  store i32 %66, ptr %68, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  %69 = load ptr, ptr %3, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.dsssframesync_s, ptr %69, i32 0, i32 29
  %71 = load ptr, ptr %70, align 8, !tbaa !17
  %72 = load i32, ptr %4, align 4, !tbaa !20
  %73 = add i32 %72, 3
  %74 = zext i32 %73 to i64
  %75 = getelementptr inbounds i8, ptr %71, i64 %74
  %76 = load i8, ptr %75, align 1, !tbaa !21
  %77 = zext i8 %76 to i32
  %78 = ashr i32 %77, 5
  %79 = and i32 %78, 7
  store i32 %79, ptr %8, align 4, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %80 = load ptr, ptr %3, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.dsssframesync_s, ptr %80, i32 0, i32 29
  %82 = load ptr, ptr %81, align 8, !tbaa !17
  %83 = load i32, ptr %4, align 4, !tbaa !20
  %84 = add i32 %83, 3
  %85 = zext i32 %84 to i64
  %86 = getelementptr inbounds i8, ptr %82, i64 %85
  %87 = load i8, ptr %86, align 1, !tbaa !21
  %88 = zext i8 %87 to i32
  %89 = and i32 %88, 31
  store i32 %89, ptr %9, align 4, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  %90 = load ptr, ptr %3, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.dsssframesync_s, ptr %90, i32 0, i32 29
  %92 = load ptr, ptr %91, align 8, !tbaa !17
  %93 = load i32, ptr %4, align 4, !tbaa !20
  %94 = add i32 %93, 4
  %95 = zext i32 %94 to i64
  %96 = getelementptr inbounds i8, ptr %92, i64 %95
  %97 = load i8, ptr %96, align 1, !tbaa !21
  %98 = zext i8 %97 to i32
  %99 = and i32 %98, 31
  store i32 %99, ptr %10, align 4, !tbaa !20
  %100 = load i32, ptr %8, align 4, !tbaa !20
  %101 = icmp eq i32 %100, 0
  br i1 %101, label %105, label %102

102:                                              ; preds = %45
  %103 = load i32, ptr %8, align 4, !tbaa !20
  %104 = icmp uge i32 %103, 7
  br i1 %104, label %105, label %109

105:                                              ; preds = %102, %45
  %106 = load ptr, ptr %3, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.dsssframesync_s, ptr %106, i32 0, i32 30
  store i32 0, ptr %107, align 8, !tbaa !18
  %108 = call i32 (i32, ptr, i32, ptr, ...) @liquid_error_fl(i32 noundef 6, ptr noundef @.str, i32 noundef 483, ptr noundef @.str.7)
  store i32 %108, ptr %2, align 4
  store i32 1, ptr %6, align 4
  br label %160

109:                                              ; preds = %102
  %110 = load i32, ptr %9, align 4, !tbaa !20
  %111 = icmp eq i32 %110, 0
  br i1 %111, label %115, label %112

112:                                              ; preds = %109
  %113 = load i32, ptr %9, align 4, !tbaa !20
  %114 = icmp uge i32 %113, 28
  br i1 %114, label %115, label %119

115:                                              ; preds = %112, %109
  %116 = load ptr, ptr %3, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.dsssframesync_s, ptr %116, i32 0, i32 30
  store i32 0, ptr %117, align 8, !tbaa !18
  %118 = call i32 (i32, ptr, i32, ptr, ...) @liquid_error_fl(i32 noundef 6, ptr noundef @.str, i32 noundef 486, ptr noundef @.str.8)
  store i32 %118, ptr %2, align 4
  store i32 1, ptr %6, align 4
  br label %160

119:                                              ; preds = %112
  %120 = load i32, ptr %10, align 4, !tbaa !20
  %121 = icmp eq i32 %120, 0
  br i1 %121, label %125, label %122

122:                                              ; preds = %119
  %123 = load i32, ptr %10, align 4, !tbaa !20
  %124 = icmp uge i32 %123, 28
  br i1 %124, label %125, label %129

125:                                              ; preds = %122, %119
  %126 = load ptr, ptr %3, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.dsssframesync_s, ptr %126, i32 0, i32 30
  store i32 0, ptr %127, align 8, !tbaa !18
  %128 = call i32 (i32, ptr, i32, ptr, ...) @liquid_error_fl(i32 noundef 6, ptr noundef @.str, i32 noundef 490, ptr noundef @.str.9)
  store i32 %128, ptr %2, align 4
  store i32 1, ptr %6, align 4
  br label %160

129:                                              ; preds = %122
  br label %130

130:                                              ; preds = %129
  br label %131

131:                                              ; preds = %130
  %132 = load ptr, ptr %3, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.dsssframesync_s, ptr %132, i32 0, i32 36
  %134 = load ptr, ptr %133, align 8, !tbaa !23
  %135 = load ptr, ptr %3, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.dsssframesync_s, ptr %135, i32 0, i32 35
  %137 = load i32, ptr %136, align 8, !tbaa !22
  %138 = zext i32 %137 to i64
  %139 = mul i64 %138, 1
  %140 = call ptr @realloc(ptr noundef %134, i64 noundef %139) #5
  %141 = load ptr, ptr %3, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.dsssframesync_s, ptr %141, i32 0, i32 36
  store ptr %140, ptr %142, align 8, !tbaa !23
  %143 = load ptr, ptr %3, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.dsssframesync_s, ptr %143, i32 0, i32 34
  %145 = load ptr, ptr %144, align 8, !tbaa !24
  %146 = load ptr, ptr %3, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.dsssframesync_s, ptr %146, i32 0, i32 35
  %148 = load i32, ptr %147, align 8, !tbaa !22
  %149 = load i32, ptr %8, align 4, !tbaa !20
  %150 = load i32, ptr %9, align 4, !tbaa !20
  %151 = load i32, ptr %10, align 4, !tbaa !20
  %152 = call i32 @qpacketmodem_configure(ptr noundef %145, i32 noundef %148, i32 noundef %149, i32 noundef %150, i32 noundef %151, i32 noundef 39)
  %153 = load ptr, ptr %3, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.dsssframesync_s, ptr %153, i32 0, i32 21
  %155 = load ptr, ptr %154, align 8, !tbaa !25
  %156 = load ptr, ptr %3, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.dsssframesync_s, ptr %156, i32 0, i32 20
  %158 = load ptr, ptr %157, align 8, !tbaa !26
  %159 = call float @synth_crcf_get_frequency(ptr noundef %158)
  call void @synth_crcf_set_frequency(ptr noundef %155, float noundef %159)
  store i32 0, ptr %2, align 4
  store i32 1, ptr %6, align 4
  br label %160

160:                                              ; preds = %131, %125, %115, %105
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %161

161:                                              ; preds = %160, %40
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  br label %162

162:                                              ; preds = %161, %24
  %163 = load i32, ptr %2, align 4
  ret i32 %163
}

declare i32 @qpacketmodem_decode_soft_payload(ptr noundef, ptr noundef) #1

declare void @synth_crcf_set_frequency(ptr noundef, float noundef) #1

declare float @synth_crcf_get_frequency(ptr noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #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 }
attributes #5 = { nounwind allocsize(1) }

!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, !6, i64 240}
!10 = !{!"dsssframesync_s", !6, i64 0, !6, i64 8, !11, i64 16, !14, i64 64, !13, i64 88, !13, i64 92, !12, i64 96, !6, i64 104, !12, i64 112, !12, i64 116, !12, i64 120, !12, i64 124, !6, i64 128, !6, i64 136, !6, i64 144, !13, i64 152, !13, i64 156, !13, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !13, i64 200, !16, i64 204, !6, i64 224, !13, i64 232, !6, i64 240, !13, i64 248, !13, i64 252, !6, i64 256, !13, i64 264, !13, i64 268, !6, i64 272, !13, i64 280, !6, i64 288, !13, i64 296, !6, i64 304, !13, i64 312, !13, i64 316, !13, i64 320, !13, i64 324}
!11 = !{!"", !12, i64 0, !12, i64 4, !12, i64 8, !6, i64 16, !13, i64 24, !13, i64 28, !13, i64 32, !13, i64 36, !13, i64 40, !13, i64 44}
!12 = !{!"float", !7, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!"", !13, i64 0, !13, i64 4, !13, i64 8, !15, i64 16}
!15 = !{!"long", !7, i64 0}
!16 = !{!"", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12}
!17 = !{!10, !6, i64 256}
!18 = !{!10, !13, i64 264}
!19 = !{!10, !13, i64 248}
!20 = !{!13, !13, i64 0}
!21 = !{!7, !7, i64 0}
!22 = !{!10, !13, i64 296}
!23 = !{!10, !6, i64 304}
!24 = !{!10, !6, i64 288}
!25 = !{!10, !6, i64 192}
!26 = !{!10, !6, i64 184}


; 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 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [74 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [70 x i8], align 1

declare i32 @liquid_error_fl(i32 noundef, ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #0

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

declare i32 @qpacketmodem_configure(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local i32 @dsssframesync_configure_payload(ptr nocapture noundef %0) local_unnamed_addr #2 {
  %2 = getelementptr inbounds i8, ptr %0, i64 240
  %3 = load ptr, ptr %2, align 8, !tbaa !5
  %4 = getelementptr inbounds i8, ptr %0, i64 256
  %5 = load ptr, ptr %4, align 8, !tbaa !16
  %6 = tail call i32 @qpacketmodem_decode_soft_payload(ptr noundef %3, ptr noundef %5) #3
  %7 = getelementptr inbounds i8, ptr %0, i64 264
  store i32 %6, ptr %7, align 8, !tbaa !17
  %.not = icmp eq i32 %6, 0
  br i1 %.not, label %71, label %8

8:                                                ; preds = %1
  %9 = getelementptr inbounds i8, ptr %0, i64 248
  %10 = load i32, ptr %9, align 8, !tbaa !18
  %11 = load ptr, ptr %4, align 8, !tbaa !16
  %12 = zext i32 %10 to i64
  %13 = getelementptr inbounds i8, ptr %11, i64 %12
  %14 = load i8, ptr %13, align 1, !tbaa !19
  %.not50 = icmp eq i8 %14, 102
  br i1 %.not50, label %18, label %15

15:                                               ; preds = %8
  %16 = zext i8 %14 to i32
  store i32 0, ptr %7, align 8, !tbaa !17
  %17 = tail call i32 (i32, ptr, i32, ptr, ...) @liquid_error_fl(i32 noundef 6, ptr noundef nonnull @.str, i32 noundef 471, ptr noundef nonnull @.str.6, i32 noundef %16, i32 noundef 102) #3
  br label %71

18:                                               ; preds = %8
  %19 = add i32 %10, 1
  %20 = zext i32 %19 to i64
  %21 = getelementptr inbounds i8, ptr %11, i64 %20
  %22 = load i8, ptr %21, align 1, !tbaa !19
  %23 = zext i8 %22 to i32
  %24 = shl nuw nsw i32 %23, 8
  %25 = add i32 %10, 2
  %26 = zext i32 %25 to i64
  %27 = getelementptr inbounds i8, ptr %11, i64 %26
  %28 = load i8, ptr %27, align 1, !tbaa !19
  %29 = zext i8 %28 to i32
  %30 = or disjoint i32 %24, %29
  %31 = getelementptr inbounds i8, ptr %0, i64 296
  store i32 %30, ptr %31, align 8, !tbaa !20
  %32 = add i32 %10, 3
  %33 = zext i32 %32 to i64
  %34 = getelementptr inbounds i8, ptr %11, i64 %33
  %35 = load i8, ptr %34, align 1, !tbaa !19
  %36 = zext i8 %35 to i32
  %37 = lshr i32 %36, 5
  %38 = and i32 %36, 31
  %39 = add i32 %10, 4
  %40 = zext i32 %39 to i64
  %41 = getelementptr inbounds i8, ptr %11, i64 %40
  %42 = load i8, ptr %41, align 1, !tbaa !19
  %43 = and i8 %42, 31
  %44 = zext nneg i8 %43 to i32
  %45 = icmp ult i8 %35, 32
  %46 = icmp eq i32 %37, 7
  %or.cond = or i1 %45, %46
  br i1 %or.cond, label %47, label %49

47:                                               ; preds = %18
  store i32 0, ptr %7, align 8, !tbaa !17
  %48 = tail call i32 (i32, ptr, i32, ptr, ...) @liquid_error_fl(i32 noundef 6, ptr noundef nonnull @.str, i32 noundef 483, ptr noundef nonnull @.str.7) #3
  br label %71

49:                                               ; preds = %18
  %50 = add nsw i32 %38, -28
  %or.cond3 = icmp ult i32 %50, -27
  br i1 %or.cond3, label %51, label %53

51:                                               ; preds = %49
  store i32 0, ptr %7, align 8, !tbaa !17
  %52 = tail call i32 (i32, ptr, i32, ptr, ...) @liquid_error_fl(i32 noundef 6, ptr noundef nonnull @.str, i32 noundef 486, ptr noundef nonnull @.str.8) #3
  br label %71

53:                                               ; preds = %49
  %54 = add nsw i8 %43, -28
  %or.cond5 = icmp ult i8 %54, -27
  br i1 %or.cond5, label %55, label %57

55:                                               ; preds = %53
  store i32 0, ptr %7, align 8, !tbaa !17
  %56 = tail call i32 (i32, ptr, i32, ptr, ...) @liquid_error_fl(i32 noundef 6, ptr noundef nonnull @.str, i32 noundef 490, ptr noundef nonnull @.str.9) #3
  br label %71

57:                                               ; preds = %53
  %58 = getelementptr inbounds i8, ptr %0, i64 304
  %59 = load ptr, ptr %58, align 8, !tbaa !21
  %60 = zext nneg i32 %30 to i64
  %61 = tail call ptr @realloc(ptr noundef %59, i64 noundef %60) #4
  store ptr %61, ptr %58, align 8, !tbaa !21
  %62 = getelementptr inbounds i8, ptr %0, i64 288
  %63 = load ptr, ptr %62, align 8, !tbaa !22
  %64 = load i32, ptr %31, align 8, !tbaa !20
  %65 = tail call i32 @qpacketmodem_configure(ptr noundef %63, i32 noundef %64, i32 noundef %37, i32 noundef %38, i32 noundef %44, i32 noundef 39) #3
  %66 = getelementptr inbounds i8, ptr %0, i64 192
  %67 = load ptr, ptr %66, align 8, !tbaa !23
  %68 = getelementptr inbounds i8, ptr %0, i64 184
  %69 = load ptr, ptr %68, align 8, !tbaa !24
  %70 = tail call float @synth_crcf_get_frequency(ptr noundef %69) #3
  tail call void @synth_crcf_set_frequency(ptr noundef %67, float noundef %70) #3
  br label %71

71:                                               ; preds = %15, %57, %55, %51, %47, %1
  %.2 = phi i32 [ 0, %1 ], [ %17, %15 ], [ %48, %47 ], [ %52, %51 ], [ %56, %55 ], [ 0, %57 ]
  ret i32 %.2
}

declare i32 @qpacketmodem_decode_soft_payload(ptr noundef, ptr noundef) local_unnamed_addr #0

declare void @synth_crcf_set_frequency(ptr noundef, float noundef) local_unnamed_addr #0

declare float @synth_crcf_get_frequency(ptr noundef) local_unnamed_addr #0

attributes #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 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 #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 }
attributes #4 = { nounwind allocsize(1) }

!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 240}
!6 = !{!"dsssframesync_s", !7, i64 0, !7, i64 8, !10, i64 16, !13, i64 64, !12, i64 88, !12, i64 92, !11, i64 96, !7, i64 104, !11, i64 112, !11, i64 116, !11, i64 120, !11, i64 124, !7, i64 128, !7, i64 136, !7, i64 144, !12, i64 152, !12, i64 156, !12, i64 160, !7, i64 168, !7, i64 176, !7, i64 184, !7, i64 192, !12, i64 200, !15, i64 204, !7, i64 224, !12, i64 232, !7, i64 240, !12, i64 248, !12, i64 252, !7, i64 256, !12, i64 264, !12, i64 268, !7, i64 272, !12, i64 280, !7, i64 288, !12, i64 296, !7, i64 304, !12, i64 312, !12, i64 316, !12, i64 320, !12, i64 324}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8, !7, i64 16, !12, i64 24, !12, i64 28, !12, i64 32, !12, i64 36, !12, i64 40, !12, i64 44}
!11 = !{!"float", !8, i64 0}
!12 = !{!"int", !8, i64 0}
!13 = !{!"", !12, i64 0, !12, i64 4, !12, i64 8, !14, i64 16}
!14 = !{!"long", !8, i64 0}
!15 = !{!"", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12}
!16 = !{!6, !7, i64 256}
!17 = !{!6, !12, i64 264}
!18 = !{!6, !12, i64 248}
!19 = !{!8, !8, i64 0}
!20 = !{!6, !12, i64 296}
!21 = !{!6, !7, i64 304}
!22 = !{!6, !7, i64 288}
!23 = !{!6, !7, i64 192}
!24 = !{!6, !7, i64 184}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass