; LLVM IR from CerebusOSS/CereLink :: cbhwlib/CCFUtilsBinary.ll (ZN14CCFUtilsBinary21ReadCCFData_cb2005_25EP8_IO_FILE)

; 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.ccf::cbPKT_CHANINFO_CB2005_25" = type { i32, i16, i8, i8, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, %"struct.ccf::cbSCALING_NO_ANAGAIN", %"struct.ccf::cbFILTDESC_10", %"struct.ccf::cbSCALING_NO_ANAGAIN", %"struct.ccf::cbFILTDESC_10", [16 x i8], i32, [4 x i32], %"struct.ccf::cbSCALING_NO_ANAGAIN", %"struct.ccf::cbSCALING_NO_ANAGAIN", i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [5 x [4 x %"struct.ccf::cbHOOP_10"]] }
%"struct.ccf::cbFILTDESC_10" = type { [16 x i8], i32, i32, i32, i32, i32, i32 }
%"struct.ccf::cbSCALING_NO_ANAGAIN" = type { i16, i16, i32, i32, [8 x i8] }
%"struct.ccf::cbHOOP_10" = type { i16, i16, i16, i16 }
%class.CCFUtilsBinary = type { %class.CCFUtils.base, [2 x i8], %"struct.ccf::ccfBinaryData" }
%class.CCFUtils.base = type <{ ptr, ptr, i8, [7 x i8], ptr, i8, [7 x i8], ptr, i32, i32, i32, [4 x i8], ptr, i8, i8 }>
%"struct.ccf::ccfBinaryData" = type <{ [160 x %struct.cbPKT_CHANINFO], %"struct.ccf::cbPKT_ADAPTFILTINFO_CB2005_37", %"struct.ccf::cbPKT_SS_DETECT_CB2005_37", %"struct.ccf::cbPKT_SS_ARTIF_REJECT_CB2005_37", [144 x %"struct.ccf::cbPKT_SS_NOISE_BOUNDARY_CB2005_37_type"], %"struct.ccf::cbPKT_SS_STATISTICS_CB2005_37_type", %"struct.ccf::cbPKT_SS_STATUS_CB2005_37", %"struct.ccf::cbPKT_SYSINFO_CB2005_37", [72 x %"struct.ccf::cbPKT_NTRODEINFO_CB2005_37"] }>
%struct.cbPKT_CHANINFO = type { %struct.cbPKT_HEADER, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, %struct.cbSCALING, %struct.cbFILTDESC, %struct.cbSCALING, %struct.cbFILTDESC, [16 x i8], i32, [4 x i32], %struct.cbSCALING, %struct.cbSCALING, i32, i32, i32, i32, %union.anon, i8, [2 x i8], i8, i16, i16, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i32, [5 x %struct.cbMANUALUNITMAPPING], [5 x [4 x %struct.cbHOOP]] }
%struct.cbPKT_HEADER = type { i64, i16, i16, i16, i8, i8 }
%struct.cbFILTDESC = type { [16 x i8], i32, i32, i32, i32, i32, i32 }
%struct.cbSCALING = type { i16, i16, i32, i32, i32, [8 x i8] }
%union.anon = type { %struct.anon }
%struct.anon = type { i16, i16, i32 }
%struct.cbMANUALUNITMAPPING = type { i16, [3 x i16], [3 x [3 x i16]], i16, i32 }
%struct.cbHOOP = type { i16, i16, i16, i16 }
%"struct.ccf::cbPKT_ADAPTFILTINFO_CB2005_37" = type { i32, i16, i8, i8, i32, i32, float, i32, i32 }
%"struct.ccf::cbPKT_SS_DETECT_CB2005_37" = type { i32, i16, i8, i8, float, float }
%"struct.ccf::cbPKT_SS_ARTIF_REJECT_CB2005_37" = type { i32, i16, i8, i8, i32, i32 }
%"struct.ccf::cbPKT_SS_NOISE_BOUNDARY_CB2005_37_type" = type { i32, i16, i8, i8, i32, [3 x float], [3 x [3 x float]] }
%"struct.ccf::cbPKT_SS_STATISTICS_CB2005_37_type" = type { i32, i16, i8, i8, i32, i32, i32, float, float, float, float, float, float, float, i32, i32 }
%"struct.ccf::cbPKT_SS_STATUS_CB2005_37" = type { i32, i16, i8, i8, %"struct.ccf::cbAdaptControl_37", %"struct.ccf::cbAdaptControl_37" }
%"struct.ccf::cbAdaptControl_37" = type { i32, float, float }
%"struct.ccf::cbPKT_SYSINFO_CB2005_37" = type { i32, i16, i8, i8, i32, i32, i32, i32, i32, i32 }
%"struct.ccf::cbPKT_NTRODEINFO_CB2005_37" = type { i32, i16, i8, i8, i32, [16 x i8], [6 x [5 x %"struct.ccf::cbMANUALUNITMAPPING_37"]], i16, i16, [4 x i16] }
%"struct.ccf::cbMANUALUNITMAPPING_37" = type { i16, [3 x i16], [3 x [3 x i16]], i16, i32 }
%class.CCFUtils = type <{ ptr, ptr, i8, [7 x i8], ptr, i8, [7 x i8], ptr, i32, i32, i32, [4 x i8], ptr, i8, i8, [6 x i8] }>

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #0

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

declare i64 @fread(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN14CCFUtilsBinary21ReadCCFData_cb2005_25EP8_IO_FILE(ptr noundef nonnull align 8 dereferenceable(189696) %0, ptr noundef %1) #3 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"struct.ccf::cbPKT_CHANINFO_CB2005_25", align 4
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %10 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 472, ptr %5) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %11

11:                                               ; preds = %184, %2
  %12 = load i32, ptr %6, align 4, !tbaa !9
  %13 = icmp slt i32 %12, 160
  br i1 %13, label %15, label %14

14:                                               ; preds = %11
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  br label %187

15:                                               ; preds = %11
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  %16 = getelementptr inbounds %class.CCFUtilsBinary, ptr %10, i32 0, i32 2
  %17 = getelementptr inbounds %"struct.ccf::ccfBinaryData", ptr %16, i32 0, i32 0
  %18 = load i32, ptr %6, align 4, !tbaa !9
  %19 = sext i32 %18 to i64
  %20 = getelementptr inbounds [160 x %struct.cbPKT_CHANINFO], ptr %17, i64 0, i64 %19
  store ptr %20, ptr %7, align 8, !tbaa !5
  %21 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN14CCFUtilsBinary18SetChannelDefaultsER14cbPKT_CHANINFO(ptr noundef nonnull align 8 dereferenceable(189696) %10, ptr noundef nonnull align 1 dereferenceable(680) %21)
  call void @llvm.memset.p0.i64(ptr align 4 %5, i8 0, i64 472, i1 false)
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = call i64 @fread(ptr noundef %5, i64 noundef 1, i64 noundef 472, ptr noundef %22)
  %24 = getelementptr inbounds %"struct.ccf::cbPKT_CHANINFO_CB2005_25", ptr %5, i32 0, i32 4
  %25 = load i32, ptr %24, align 4, !tbaa !11
  %26 = icmp ne i32 %25, 0
  br i1 %26, label %27, label %183

27:                                               ; preds = %15
  %28 = getelementptr inbounds %"struct.ccf::cbPKT_CHANINFO_CB2005_25", ptr %5, i32 0, i32 4
  %29 = load i32, ptr %28, align 4, !tbaa !11
  %30 = load ptr, ptr %7, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %30, i32 0, i32 1
  store i32 %29, ptr %31, align 1, !tbaa !16
  %32 = getelementptr inbounds %"struct.ccf::cbPKT_CHANINFO_CB2005_25", ptr %5, i32 0, i32 5
  %33 = load i32, ptr %32, align 4, !tbaa !22
  %34 = load ptr, ptr %7, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %34, i32 0, i32 2
  store i32 %33, ptr %35, align 1, !tbaa !23
  %36 = getelementptr inbounds %"struct.ccf::cbPKT_CHANINFO_CB2005_25", ptr %5, i32 0, i32 6
  %37 = load i32, ptr %36, align 4, !tbaa !24
  %38 = load ptr, ptr %7, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %38, i32 0, i32 3
  store i32 %37, ptr %39, align 1, !tbaa !25
  %40 = getelementptr inbounds %"struct.ccf::cbPKT_CHANINFO_CB2005_25", ptr %5, i32 0, i32 7
  %41 = load i32, ptr %40, align 4, !tbaa !26
  %42 = load ptr, ptr %7, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %42, i32 0, i32 4
  store i32 %41, ptr %43, align 1, !tbaa !27
  %44 = getelementptr inbounds %"struct.ccf::cbPKT_CHANINFO_CB2005_25", ptr %5, i32 0, i32 8
  %45 = load i32, ptr %44, align 4, !tbaa !28
  %46 = load ptr, ptr %7, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %46, i32 0, i32 5
  store i32 %45, ptr %47, align 1, !tbaa !29
  %48 = getelementptr inbounds %"struct.ccf::cbPKT_CHANINFO_CB2005_25", ptr %5, i32 0, i32 9
  %49 = load i32, ptr %48, align 4, !tbaa !30
  %50 = load ptr, ptr %7, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %50, i32 0, i32 6
  store i32 %49, ptr %51, align 1, !tbaa !31
  %52 = getelementptr inbounds %"struct.ccf::cbPKT_CHANINFO_CB2005_25", ptr %5, i32 0, i32 10
  %53 = load i32, ptr %52, align 4, !tbaa !32
  %54 = load ptr, ptr %7, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %54, i32 0, i32 7
  store i32 %53, ptr %55, align 1, !tbaa !33
  %56 = getelementptr inbounds %"struct.ccf::cbPKT_CHANINFO_CB2005_25", ptr %5, i32 0, i32 11
  %57 = load i32, ptr %56, align 4, !tbaa !34
  %58 = load ptr, ptr %7, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %58, i32 0, i32 8
  store i32 %57, ptr %59, align 1, !tbaa !35
  %60 = getelementptr inbounds %"struct.ccf::cbPKT_CHANINFO_CB2005_25", ptr %5, i32 0, i32 12
  %61 = load i32, ptr %60, align 4, !tbaa !36
  %62 = load ptr, ptr %7, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %62, i32 0, i32 9
  store i32 %61, ptr %63, align 1, !tbaa !37
  %64 = getelementptr inbounds %"struct.ccf::cbPKT_CHANINFO_CB2005_25", ptr %5, i32 0, i32 13
  %65 = load i32, ptr %64, align 4, !tbaa !38
  %66 = load ptr, ptr %7, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %66, i32 0, i32 10
  store i32 %65, ptr %67, align 1, !tbaa !39
  %68 = load ptr, ptr %7, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %68, i32 0, i32 11
  %70 = getelementptr inbounds %"struct.ccf::cbPKT_CHANINFO_CB2005_25", ptr %5, i32 0, i32 14
  call void @_ZN14CCFUtilsBinary10cpyScalingER9cbSCALINGRN3ccf20cbSCALING_NO_ANAGAINE(ptr noundef nonnull align 8 dereferenceable(189696) %10, ptr noundef nonnull align 1 dereferenceable(24) %69, ptr noundef nonnull align 4 dereferenceable(20) %70)
  %71 = load ptr, ptr %7, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %71, i32 0, i32 12
  %73 = getelementptr inbounds %"struct.ccf::cbPKT_CHANINFO_CB2005_25", ptr %5, i32 0, i32 15
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %72, ptr align 4 %73, i64 40, i1 false)
  %74 = load ptr, ptr %7, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %74, i32 0, i32 13
  %76 = getelementptr inbounds %"struct.ccf::cbPKT_CHANINFO_CB2005_25", ptr %5, i32 0, i32 16
  call void @_ZN14CCFUtilsBinary10cpyScalingER9cbSCALINGRN3ccf20cbSCALING_NO_ANAGAINE(ptr noundef nonnull align 8 dereferenceable(189696) %10, ptr noundef nonnull align 1 dereferenceable(24) %75, ptr noundef nonnull align 4 dereferenceable(20) %76)
  %77 = load ptr, ptr %7, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %77, i32 0, i32 14
  %79 = getelementptr inbounds %"struct.ccf::cbPKT_CHANINFO_CB2005_25", ptr %5, i32 0, i32 17
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %78, ptr align 4 %79, i64 40, i1 false)
  %80 = load ptr, ptr %7, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %80, i32 0, i32 15
  %82 = getelementptr inbounds %"struct.ccf::cbPKT_CHANINFO_CB2005_25", ptr %5, i32 0, i32 18
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %81, ptr align 4 %82, i64 16, i1 false)
  %83 = getelementptr inbounds %"struct.ccf::cbPKT_CHANINFO_CB2005_25", ptr %5, i32 0, i32 19
  %84 = load i32, ptr %83, align 4, !tbaa !40
  %85 = load ptr, ptr %7, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %85, i32 0, i32 16
  store i32 %84, ptr %86, align 1, !tbaa !41
  %87 = load ptr, ptr %7, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %87, i32 0, i32 17
  %89 = getelementptr inbounds [4 x i32], ptr %88, i64 0, i64 0
  %90 = getelementptr inbounds %"struct.ccf::cbPKT_CHANINFO_CB2005_25", ptr %5, i32 0, i32 20
  %91 = getelementptr inbounds [4 x i32], ptr %90, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %89, ptr align 4 %91, i64 16, i1 false)
  %92 = load ptr, ptr %7, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %92, i32 0, i32 18
  %94 = getelementptr inbounds %"struct.ccf::cbPKT_CHANINFO_CB2005_25", ptr %5, i32 0, i32 21
  call void @_ZN14CCFUtilsBinary10cpyScalingER9cbSCALINGRN3ccf20cbSCALING_NO_ANAGAINE(ptr noundef nonnull align 8 dereferenceable(189696) %10, ptr noundef nonnull align 1 dereferenceable(24) %93, ptr noundef nonnull align 4 dereferenceable(20) %94)
  %95 = load ptr, ptr %7, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %95, i32 0, i32 19
  %97 = getelementptr inbounds %"struct.ccf::cbPKT_CHANINFO_CB2005_25", ptr %5, i32 0, i32 22
  call void @_ZN14CCFUtilsBinary10cpyScalingER9cbSCALINGRN3ccf20cbSCALING_NO_ANAGAINE(ptr noundef nonnull align 8 dereferenceable(189696) %10, ptr noundef nonnull align 1 dereferenceable(24) %96, ptr noundef nonnull align 4 dereferenceable(20) %97)
  %98 = getelementptr inbounds %"struct.ccf::cbPKT_CHANINFO_CB2005_25", ptr %5, i32 0, i32 23
  %99 = load i32, ptr %98, align 4, !tbaa !42
  %100 = load ptr, ptr %7, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %100, i32 0, i32 20
  store i32 %99, ptr %101, align 1, !tbaa !43
  %102 = getelementptr inbounds %"struct.ccf::cbPKT_CHANINFO_CB2005_25", ptr %5, i32 0, i32 24
  %103 = load i32, ptr %102, align 4, !tbaa !44
  %104 = load ptr, ptr %7, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %104, i32 0, i32 21
  store i32 %103, ptr %105, align 1, !tbaa !45
  %106 = getelementptr inbounds %"struct.ccf::cbPKT_CHANINFO_CB2005_25", ptr %5, i32 0, i32 25
  %107 = load i32, ptr %106, align 4, !tbaa !46
  %108 = load ptr, ptr %7, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %108, i32 0, i32 22
  store i32 %107, ptr %109, align 1, !tbaa !47
  %110 = getelementptr inbounds %"struct.ccf::cbPKT_CHANINFO_CB2005_25", ptr %5, i32 0, i32 26
  %111 = load i32, ptr %110, align 4, !tbaa !48
  %112 = load ptr, ptr %7, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %112, i32 0, i32 23
  store i32 %111, ptr %113, align 1, !tbaa !49
  %114 = getelementptr inbounds %"struct.ccf::cbPKT_CHANINFO_CB2005_25", ptr %5, i32 0, i32 27
  %115 = load i32, ptr %114, align 4, !tbaa !50
  %116 = and i32 %115, 65535
  %117 = trunc i32 %116 to i16
  %118 = load ptr, ptr %7, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %118, i32 0, i32 24
  %120 = getelementptr inbounds %struct.anon, ptr %119, i32 0, i32 0
  store i16 %117, ptr %120, align 1, !tbaa !51
  %121 = getelementptr inbounds %"struct.ccf::cbPKT_CHANINFO_CB2005_25", ptr %5, i32 0, i32 27
  %122 = load i32, ptr %121, align 4, !tbaa !50
  %123 = lshr i32 %122, 16
  %124 = and i32 %123, 65535
  %125 = trunc i32 %124 to i16
  %126 = load ptr, ptr %7, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %126, i32 0, i32 24
  %128 = getelementptr inbounds %struct.anon, ptr %127, i32 0, i32 1
  store i16 %125, ptr %128, align 1, !tbaa !51
  %129 = getelementptr inbounds %"struct.ccf::cbPKT_CHANINFO_CB2005_25", ptr %5, i32 0, i32 28
  %130 = load i32, ptr %129, align 4, !tbaa !52
  %131 = load ptr, ptr %7, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %131, i32 0, i32 24
  %133 = getelementptr inbounds %struct.anon, ptr %132, i32 0, i32 2
  store i32 %130, ptr %133, align 1, !tbaa !51
  %134 = getelementptr inbounds %"struct.ccf::cbPKT_CHANINFO_CB2005_25", ptr %5, i32 0, i32 29
  %135 = load i32, ptr %134, align 4, !tbaa !53
  %136 = load ptr, ptr %7, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %136, i32 0, i32 30
  store i32 %135, ptr %137, align 1, !tbaa !54
  %138 = getelementptr inbounds %"struct.ccf::cbPKT_CHANINFO_CB2005_25", ptr %5, i32 0, i32 30
  %139 = load i32, ptr %138, align 4, !tbaa !55
  %140 = load ptr, ptr %7, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %140, i32 0, i32 31
  store i32 %139, ptr %141, align 1, !tbaa !56
  %142 = getelementptr inbounds %"struct.ccf::cbPKT_CHANINFO_CB2005_25", ptr %5, i32 0, i32 31
  %143 = load i32, ptr %142, align 4, !tbaa !57
  %144 = load ptr, ptr %7, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %144, i32 0, i32 32
  store i32 %143, ptr %145, align 1, !tbaa !58
  %146 = getelementptr inbounds %"struct.ccf::cbPKT_CHANINFO_CB2005_25", ptr %5, i32 0, i32 32
  %147 = load i32, ptr %146, align 4, !tbaa !59
  %148 = load ptr, ptr %7, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %148, i32 0, i32 33
  store i32 %147, ptr %149, align 1, !tbaa !60
  %150 = getelementptr inbounds %"struct.ccf::cbPKT_CHANINFO_CB2005_25", ptr %5, i32 0, i32 33
  %151 = load i32, ptr %150, align 4, !tbaa !61
  %152 = load ptr, ptr %7, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %152, i32 0, i32 34
  store i32 %151, ptr %153, align 1, !tbaa !62
  %154 = getelementptr inbounds %"struct.ccf::cbPKT_CHANINFO_CB2005_25", ptr %5, i32 0, i32 34
  %155 = load i32, ptr %154, align 4, !tbaa !63
  %156 = load ptr, ptr %7, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %156, i32 0, i32 35
  store i32 %155, ptr %157, align 1, !tbaa !64
  %158 = getelementptr inbounds %"struct.ccf::cbPKT_CHANINFO_CB2005_25", ptr %5, i32 0, i32 35
  %159 = load i32, ptr %158, align 4, !tbaa !65
  %160 = load ptr, ptr %7, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %160, i32 0, i32 36
  store i32 %159, ptr %161, align 1, !tbaa !66
  %162 = getelementptr inbounds %"struct.ccf::cbPKT_CHANINFO_CB2005_25", ptr %5, i32 0, i32 36
  %163 = load i32, ptr %162, align 4, !tbaa !67
  %164 = load ptr, ptr %7, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %164, i32 0, i32 37
  store i32 %163, ptr %165, align 1, !tbaa !68
  %166 = getelementptr inbounds %"struct.ccf::cbPKT_CHANINFO_CB2005_25", ptr %5, i32 0, i32 37
  %167 = load i32, ptr %166, align 4, !tbaa !69
  %168 = load ptr, ptr %7, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %168, i32 0, i32 39
  store i32 %167, ptr %169, align 1, !tbaa !70
  %170 = getelementptr inbounds %"struct.ccf::cbPKT_CHANINFO_CB2005_25", ptr %5, i32 0, i32 38
  %171 = load i32, ptr %170, align 4, !tbaa !71
  %172 = load ptr, ptr %7, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %172, i32 0, i32 40
  store i32 %171, ptr %173, align 1, !tbaa !72
  %174 = getelementptr inbounds %"struct.ccf::cbPKT_CHANINFO_CB2005_25", ptr %5, i32 0, i32 39
  %175 = load i32, ptr %174, align 4, !tbaa !73
  %176 = load ptr, ptr %7, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %176, i32 0, i32 41
  store i32 %175, ptr %177, align 1, !tbaa !74
  %178 = load ptr, ptr %7, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %178, i32 0, i32 47
  %180 = getelementptr inbounds [5 x [4 x %struct.cbHOOP]], ptr %179, i64 0, i64 0
  %181 = getelementptr inbounds %"struct.ccf::cbPKT_CHANINFO_CB2005_25", ptr %5, i32 0, i32 40
  %182 = getelementptr inbounds [5 x [4 x %"struct.ccf::cbHOOP_10"]], ptr %181, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %180, ptr align 4 %182, i64 160, i1 false)
  br label %183

183:                                              ; preds = %27, %15
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  br label %184

184:                                              ; preds = %183
  %185 = load i32, ptr %6, align 4, !tbaa !9
  %186 = add nsw i32 %185, 1
  store i32 %186, ptr %6, align 4, !tbaa !9
  br label %11, !llvm.loop !75

187:                                              ; preds = %14
  %188 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN14CCFUtilsBinary13ReadAsPacketsEP8_IO_FILE(ptr noundef nonnull align 8 dereferenceable(189696) %10, ptr noundef %188)
  %189 = getelementptr inbounds %class.CCFUtils, ptr %10, i32 0, i32 13
  %190 = load i8, ptr %189, align 8, !tbaa !77, !range !80, !noundef !81
  %191 = trunc i8 %190 to i1
  br i1 %191, label %192, label %220

192:                                              ; preds = %187
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %193

193:                                              ; preds = %216, %192
  %194 = load i32, ptr %8, align 4, !tbaa !9
  %195 = icmp slt i32 %194, 160
  br i1 %195, label %197, label %196

196:                                              ; preds = %193
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %219

197:                                              ; preds = %193
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %198 = getelementptr inbounds %class.CCFUtilsBinary, ptr %10, i32 0, i32 2
  %199 = getelementptr inbounds %"struct.ccf::ccfBinaryData", ptr %198, i32 0, i32 0
  %200 = load i32, ptr %8, align 4, !tbaa !9
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds [160 x %struct.cbPKT_CHANINFO], ptr %199, i64 0, i64 %201
  store ptr %202, ptr %9, align 8, !tbaa !5
  %203 = load ptr, ptr %9, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %203, i32 0, i32 1
  %205 = load i32, ptr %204, align 1, !tbaa !16
  %206 = icmp ne i32 %205, 0
  br i1 %206, label %207, label %215

207:                                              ; preds = %197
  %208 = getelementptr inbounds %"struct.ccf::cbPKT_CHANINFO_CB2005_25", ptr %5, i32 0, i32 31
  %209 = load i32, ptr %208, align 4, !tbaa !57
  %210 = call noundef i32 @_ZN14CCFUtilsBinary19TranslateAutoFilterEj(ptr noundef nonnull align 8 dereferenceable(189696) %10, i32 noundef %209)
  %211 = load ptr, ptr %9, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %211, i32 0, i32 32
  store i32 %210, ptr %212, align 1, !tbaa !58
  %213 = load ptr, ptr %9, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %213, i32 0, i32 36
  store i32 2, ptr %214, align 1, !tbaa !66
  br label %215

215:                                              ; preds = %207, %197
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %216

216:                                              ; preds = %215
  %217 = load i32, ptr %8, align 4, !tbaa !9
  %218 = add nsw i32 %217, 1
  store i32 %218, ptr %8, align 4, !tbaa !9
  br label %193, !llvm.loop !82

219:                                              ; preds = %196
  br label %220

220:                                              ; preds = %219, %187
  call void @llvm.lifetime.end.p0(i64 472, ptr %5) #7
  ret i32 0
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN14CCFUtilsBinary18SetChannelDefaultsER14cbPKT_CHANINFO(ptr noundef nonnull align 8 dereferenceable(189696), ptr noundef nonnull align 1 dereferenceable(680)) #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN14CCFUtilsBinary10cpyScalingER9cbSCALINGRN3ccf20cbSCALING_NO_ANAGAINE(ptr noundef nonnull align 8 dereferenceable(189696), ptr noundef nonnull align 1 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(20)) #5 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #6

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN14CCFUtilsBinary13ReadAsPacketsEP8_IO_FILE(ptr noundef nonnull align 8 dereferenceable(189696), ptr noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN14CCFUtilsBinary19TranslateAutoFilterEj(ptr noundef nonnull align 8 dereferenceable(189696), i32 noundef) #4 align 2

attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 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 = { mustprogress 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 #5 = { inlinehint mustprogress 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 #6 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { 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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 8}
!12 = !{!"_ZTSN3ccf24cbPKT_CHANINFO_CB2005_25E", !10, i64 0, !13, i64 4, !7, i64 6, !7, i64 7, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !14, i64 48, !15, i64 68, !14, i64 108, !15, i64 128, !7, i64 168, !10, i64 184, !7, i64 188, !14, i64 204, !14, i64 224, !10, i64 244, !10, i64 248, !10, i64 252, !10, i64 256, !10, i64 260, !10, i64 264, !10, i64 268, !10, i64 272, !10, i64 276, !10, i64 280, !10, i64 284, !10, i64 288, !10, i64 292, !10, i64 296, !10, i64 300, !10, i64 304, !10, i64 308, !7, i64 312}
!13 = !{!"short", !7, i64 0}
!14 = !{!"_ZTSN3ccf20cbSCALING_NO_ANAGAINE", !13, i64 0, !13, i64 2, !10, i64 4, !10, i64 8, !7, i64 12}
!15 = !{!"_ZTSN3ccf13cbFILTDESC_10E", !7, i64 0, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36}
!16 = !{!17, !10, i64 16}
!17 = !{!"_ZTS14cbPKT_CHANINFO", !18, i64 0, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !20, i64 56, !21, i64 80, !20, i64 120, !21, i64 144, !7, i64 184, !10, i64 200, !7, i64 204, !20, i64 220, !20, i64 244, !10, i64 268, !10, i64 272, !10, i64 276, !10, i64 280, !7, i64 284, !7, i64 292, !7, i64 293, !7, i64 295, !13, i64 296, !13, i64 298, !10, i64 300, !10, i64 304, !10, i64 308, !10, i64 312, !10, i64 316, !10, i64 320, !10, i64 324, !10, i64 328, !10, i64 332, !10, i64 336, !10, i64 340, !10, i64 344, !10, i64 348, !13, i64 352, !13, i64 354, !10, i64 356, !7, i64 360, !7, i64 520}
!18 = !{!"_ZTS12cbPKT_HEADER", !19, i64 0, !13, i64 8, !13, i64 10, !13, i64 12, !7, i64 14, !7, i64 15}
!19 = !{!"long", !7, i64 0}
!20 = !{!"_ZTS9cbSCALING", !13, i64 0, !13, i64 2, !10, i64 4, !10, i64 8, !10, i64 12, !7, i64 16}
!21 = !{!"_ZTS10cbFILTDESC", !7, i64 0, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36}
!22 = !{!12, !10, i64 12}
!23 = !{!17, !10, i64 20}
!24 = !{!12, !10, i64 16}
!25 = !{!17, !10, i64 24}
!26 = !{!12, !10, i64 20}
!27 = !{!17, !10, i64 28}
!28 = !{!12, !10, i64 24}
!29 = !{!17, !10, i64 32}
!30 = !{!12, !10, i64 28}
!31 = !{!17, !10, i64 36}
!32 = !{!12, !10, i64 32}
!33 = !{!17, !10, i64 40}
!34 = !{!12, !10, i64 36}
!35 = !{!17, !10, i64 44}
!36 = !{!12, !10, i64 40}
!37 = !{!17, !10, i64 48}
!38 = !{!12, !10, i64 44}
!39 = !{!17, !10, i64 52}
!40 = !{!12, !10, i64 184}
!41 = !{!17, !10, i64 200}
!42 = !{!12, !10, i64 244}
!43 = !{!17, !10, i64 268}
!44 = !{!12, !10, i64 248}
!45 = !{!17, !10, i64 272}
!46 = !{!12, !10, i64 252}
!47 = !{!17, !10, i64 276}
!48 = !{!12, !10, i64 256}
!49 = !{!17, !10, i64 280}
!50 = !{!12, !10, i64 260}
!51 = !{!7, !7, i64 0}
!52 = !{!12, !10, i64 264}
!53 = !{!12, !10, i64 268}
!54 = !{!17, !10, i64 300}
!55 = !{!12, !10, i64 272}
!56 = !{!17, !10, i64 304}
!57 = !{!12, !10, i64 276}
!58 = !{!17, !10, i64 308}
!59 = !{!12, !10, i64 280}
!60 = !{!17, !10, i64 312}
!61 = !{!12, !10, i64 284}
!62 = !{!17, !10, i64 316}
!63 = !{!12, !10, i64 288}
!64 = !{!17, !10, i64 320}
!65 = !{!12, !10, i64 292}
!66 = !{!17, !10, i64 324}
!67 = !{!12, !10, i64 296}
!68 = !{!17, !10, i64 328}
!69 = !{!12, !10, i64 300}
!70 = !{!17, !10, i64 336}
!71 = !{!12, !10, i64 304}
!72 = !{!17, !10, i64 340}
!73 = !{!12, !10, i64 308}
!74 = !{!17, !10, i64 344}
!75 = distinct !{!75, !76}
!76 = !{!"llvm.loop.mustprogress"}
!77 = !{!78, !79, i64 72}
!78 = !{!"_ZTS8CCFUtils", !6, i64 8, !79, i64 16, !6, i64 24, !79, i64 32, !6, i64 40, !10, i64 48, !10, i64 52, !10, i64 56, !6, i64 64, !79, i64 72, !79, i64 73}
!79 = !{!"bool", !7, i64 0}
!80 = !{i8 0, i8 2}
!81 = !{}
!82 = distinct !{!82, !76}


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

%"struct.ccf::cbPKT_CHANINFO_CB2005_25" = type { i32, i16, i8, i8, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, %"struct.ccf::cbSCALING_NO_ANAGAIN", %"struct.ccf::cbFILTDESC_10", %"struct.ccf::cbSCALING_NO_ANAGAIN", %"struct.ccf::cbFILTDESC_10", [16 x i8], i32, [4 x i32], %"struct.ccf::cbSCALING_NO_ANAGAIN", %"struct.ccf::cbSCALING_NO_ANAGAIN", i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [5 x [4 x %"struct.ccf::cbHOOP_10"]] }
%"struct.ccf::cbFILTDESC_10" = type { [16 x i8], i32, i32, i32, i32, i32, i32 }
%"struct.ccf::cbSCALING_NO_ANAGAIN" = type { i16, i16, i32, i32, [8 x i8] }
%"struct.ccf::cbHOOP_10" = type { i16, i16, i16, i16 }
%struct.cbPKT_CHANINFO = type { %struct.cbPKT_HEADER, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, %struct.cbSCALING, %struct.cbFILTDESC, %struct.cbSCALING, %struct.cbFILTDESC, [16 x i8], i32, [4 x i32], %struct.cbSCALING, %struct.cbSCALING, i32, i32, i32, i32, %union.anon, i8, [2 x i8], i8, i16, i16, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i32, [5 x %struct.cbMANUALUNITMAPPING], [5 x [4 x %struct.cbHOOP]] }
%struct.cbPKT_HEADER = type { i64, i16, i16, i16, i8, i8 }
%struct.cbFILTDESC = type { [16 x i8], i32, i32, i32, i32, i32, i32 }
%struct.cbSCALING = type { i16, i16, i32, i32, i32, [8 x i8] }
%union.anon = type { %struct.anon }
%struct.anon = type { i16, i16, i32 }
%struct.cbMANUALUNITMAPPING = type { i16, [3 x i16], [3 x [3 x i16]], i16, i32 }
%struct.cbHOOP = type { i16, i16, i16, i16 }

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #0

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

; Function Attrs: nofree nounwind
declare noundef i64 @fread(ptr nocapture noundef, i64 noundef, i64 noundef, ptr nocapture noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN14CCFUtilsBinary21ReadCCFData_cb2005_25EP8_IO_FILE(ptr noundef nonnull align 8 dereferenceable(189696) %0, ptr noundef %1) local_unnamed_addr #3 align 2 {
  %3 = alloca %"struct.ccf::cbPKT_CHANINFO_CB2005_25", align 4
  call void @llvm.lifetime.start.p0(i64 472, ptr nonnull %3) #7
  %4 = getelementptr inbounds i8, ptr %0, i64 76
  %5 = getelementptr inbounds i8, ptr %3, i64 8
  %6 = getelementptr inbounds i8, ptr %3, i64 12
  %7 = getelementptr inbounds i8, ptr %3, i64 28
  %8 = getelementptr inbounds i8, ptr %3, i64 44
  %9 = getelementptr inbounds i8, ptr %3, i64 48
  %10 = getelementptr inbounds i8, ptr %3, i64 68
  %11 = getelementptr inbounds i8, ptr %3, i64 108
  %12 = getelementptr inbounds i8, ptr %3, i64 128
  %13 = getelementptr inbounds i8, ptr %3, i64 168
  %14 = getelementptr inbounds i8, ptr %3, i64 184
  %15 = getelementptr inbounds i8, ptr %3, i64 188
  %16 = getelementptr inbounds i8, ptr %3, i64 204
  %17 = getelementptr inbounds i8, ptr %3, i64 224
  %18 = getelementptr inbounds i8, ptr %3, i64 244
  %19 = getelementptr inbounds i8, ptr %3, i64 260
  %20 = getelementptr inbounds i8, ptr %3, i64 264
  %21 = getelementptr inbounds i8, ptr %3, i64 268
  %22 = getelementptr inbounds i8, ptr %3, i64 276
  %23 = getelementptr inbounds i8, ptr %3, i64 284
  %24 = getelementptr inbounds i8, ptr %3, i64 300
  %25 = getelementptr inbounds i8, ptr %3, i64 308
  %26 = getelementptr inbounds i8, ptr %3, i64 312
  br label %31

27:                                               ; preds = %72
  call void @_ZN14CCFUtilsBinary13ReadAsPacketsEP8_IO_FILE(ptr noundef nonnull align 8 dereferenceable(189696) %0, ptr noundef %1)
  %28 = getelementptr inbounds i8, ptr %0, i64 72
  %29 = load i8, ptr %28, align 8, !tbaa !5, !range !12, !noundef !13
  %30 = trunc nuw i8 %29 to i1
  br i1 %30, label %.preheader, label %.loopexit

31:                                               ; preds = %2, %72
  %indvars.iv = phi i64 [ 0, %2 ], [ %indvars.iv.next, %72 ]
  %32 = getelementptr inbounds [160 x %struct.cbPKT_CHANINFO], ptr %4, i64 0, i64 %indvars.iv
  call void @_ZN14CCFUtilsBinary18SetChannelDefaultsER14cbPKT_CHANINFO(ptr noundef nonnull align 8 dereferenceable(189696) %0, ptr noundef nonnull align 1 dereferenceable(680) %32)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(472) %3, i8 0, i64 472, i1 false)
  %33 = call i64 @fread(ptr noundef nonnull %3, i64 noundef 1, i64 noundef 472, ptr noundef %1)
  %34 = load i32, ptr %5, align 4, !tbaa !14
  %.not52 = icmp eq i32 %34, 0
  br i1 %.not52, label %72, label %35

35:                                               ; preds = %31
  %36 = getelementptr inbounds i8, ptr %32, i64 16
  store i32 %34, ptr %36, align 4, !tbaa !19
  %37 = getelementptr inbounds i8, ptr %32, i64 20
  %38 = load <4 x i32>, ptr %6, align 4, !tbaa !25
  store <4 x i32> %38, ptr %37, align 8, !tbaa !25
  %39 = getelementptr inbounds i8, ptr %32, i64 36
  %40 = load <4 x i32>, ptr %7, align 4, !tbaa !25
  store <4 x i32> %40, ptr %39, align 8, !tbaa !25
  %41 = load i32, ptr %8, align 4, !tbaa !26
  %42 = getelementptr inbounds i8, ptr %32, i64 52
  store i32 %41, ptr %42, align 8, !tbaa !27
  %43 = getelementptr inbounds i8, ptr %32, i64 56
  call void @_ZN14CCFUtilsBinary10cpyScalingER9cbSCALINGRN3ccf20cbSCALING_NO_ANAGAINE(ptr noundef nonnull align 8 dereferenceable(189696) %0, ptr noundef nonnull align 1 dereferenceable(24) %43, ptr noundef nonnull align 4 dereferenceable(20) %9)
  %44 = getelementptr inbounds i8, ptr %32, i64 80
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(40) %44, ptr noundef nonnull align 4 dereferenceable(40) %10, i64 40, i1 false)
  %45 = getelementptr inbounds i8, ptr %32, i64 120
  call void @_ZN14CCFUtilsBinary10cpyScalingER9cbSCALINGRN3ccf20cbSCALING_NO_ANAGAINE(ptr noundef nonnull align 8 dereferenceable(189696) %0, ptr noundef nonnull align 1 dereferenceable(24) %45, ptr noundef nonnull align 4 dereferenceable(20) %11)
  %46 = getelementptr inbounds i8, ptr %32, i64 144
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(40) %46, ptr noundef nonnull align 4 dereferenceable(40) %12, i64 40, i1 false)
  %47 = getelementptr inbounds i8, ptr %32, i64 184
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %47, ptr noundef nonnull align 4 dereferenceable(16) %13, i64 16, i1 false)
  %48 = load i32, ptr %14, align 4, !tbaa !28
  %49 = getelementptr inbounds i8, ptr %32, i64 200
  store i32 %48, ptr %49, align 4, !tbaa !29
  %50 = getelementptr inbounds i8, ptr %32, i64 204
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %50, ptr noundef nonnull align 4 dereferenceable(16) %15, i64 16, i1 false)
  %51 = getelementptr inbounds i8, ptr %32, i64 220
  call void @_ZN14CCFUtilsBinary10cpyScalingER9cbSCALINGRN3ccf20cbSCALING_NO_ANAGAINE(ptr noundef nonnull align 8 dereferenceable(189696) %0, ptr noundef nonnull align 1 dereferenceable(24) %51, ptr noundef nonnull align 4 dereferenceable(20) %16)
  %52 = getelementptr inbounds i8, ptr %32, i64 244
  call void @_ZN14CCFUtilsBinary10cpyScalingER9cbSCALINGRN3ccf20cbSCALING_NO_ANAGAINE(ptr noundef nonnull align 8 dereferenceable(189696) %0, ptr noundef nonnull align 1 dereferenceable(24) %52, ptr noundef nonnull align 4 dereferenceable(20) %17)
  %53 = getelementptr inbounds i8, ptr %32, i64 268
  %54 = load <4 x i32>, ptr %18, align 4, !tbaa !25
  store <4 x i32> %54, ptr %53, align 8, !tbaa !25
  %55 = load i32, ptr %19, align 4, !tbaa !30
  %56 = trunc i32 %55 to i16
  %57 = getelementptr inbounds i8, ptr %32, i64 284
  store i16 %56, ptr %57, align 8, !tbaa !31
  %58 = lshr i32 %55, 16
  %59 = trunc nuw i32 %58 to i16
  %60 = getelementptr inbounds i8, ptr %32, i64 286
  store i16 %59, ptr %60, align 2, !tbaa !31
  %61 = load i32, ptr %20, align 4, !tbaa !32
  %62 = getelementptr inbounds i8, ptr %32, i64 288
  store i32 %61, ptr %62, align 4, !tbaa !31
  %63 = getelementptr inbounds i8, ptr %32, i64 300
  %64 = load <4 x i32>, ptr %21, align 4, !tbaa !25
  store <4 x i32> %64, ptr %63, align 8, !tbaa !25
  %65 = getelementptr inbounds i8, ptr %32, i64 316
  %66 = load <4 x i32>, ptr %23, align 4, !tbaa !25
  store <4 x i32> %66, ptr %65, align 8, !tbaa !25
  %67 = getelementptr inbounds i8, ptr %32, i64 336
  %68 = load <2 x i32>, ptr %24, align 4, !tbaa !25
  store <2 x i32> %68, ptr %67, align 4, !tbaa !25
  %69 = load i32, ptr %25, align 4, !tbaa !33
  %70 = getelementptr inbounds i8, ptr %32, i64 344
  store i32 %69, ptr %70, align 4, !tbaa !34
  %71 = getelementptr inbounds i8, ptr %32, i64 520
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(160) %71, ptr noundef nonnull align 4 dereferenceable(160) %26, i64 160, i1 false)
  br label %72

72:                                               ; preds = %35, %31
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 160
  br i1 %exitcond.not, label %27, label %31, !llvm.loop !35

.preheader:                                       ; preds = %27, %81
  %indvars.iv56 = phi i64 [ %indvars.iv.next57, %81 ], [ 0, %27 ]
  %73 = getelementptr inbounds [160 x %struct.cbPKT_CHANINFO], ptr %4, i64 0, i64 %indvars.iv56
  %74 = getelementptr inbounds i8, ptr %73, i64 16
  %75 = load i32, ptr %74, align 4, !tbaa !19
  %.not = icmp eq i32 %75, 0
  br i1 %.not, label %81, label %76

76:                                               ; preds = %.preheader
  %77 = load i32, ptr %22, align 4, !tbaa !37
  %78 = call noundef i32 @_ZN14CCFUtilsBinary19TranslateAutoFilterEj(ptr noundef nonnull align 8 dereferenceable(189696) %0, i32 noundef %77)
  %79 = getelementptr inbounds i8, ptr %73, i64 308
  store i32 %78, ptr %79, align 8, !tbaa !38
  %80 = getelementptr inbounds i8, ptr %73, i64 324
  store i32 2, ptr %80, align 8, !tbaa !39
  br label %81

81:                                               ; preds = %76, %.preheader
  %indvars.iv.next57 = add nuw nsw i64 %indvars.iv56, 1
  %exitcond59.not = icmp eq i64 %indvars.iv.next57, 160
  br i1 %exitcond59.not, label %.loopexit, label %.preheader, !llvm.loop !40

.loopexit:                                        ; preds = %81, %27
  call void @llvm.lifetime.end.p0(i64 472, ptr nonnull %3) #7
  ret i32 0
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN14CCFUtilsBinary18SetChannelDefaultsER14cbPKT_CHANINFO(ptr noundef nonnull align 8 dereferenceable(189696), ptr noundef nonnull align 1 dereferenceable(680)) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN14CCFUtilsBinary10cpyScalingER9cbSCALINGRN3ccf20cbSCALING_NO_ANAGAINE(ptr noundef nonnull align 8 dereferenceable(189696), ptr noundef nonnull align 1 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(20)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #6

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN14CCFUtilsBinary13ReadAsPacketsEP8_IO_FILE(ptr noundef nonnull align 8 dereferenceable(189696), ptr noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN14CCFUtilsBinary19TranslateAutoFilterEj(ptr noundef nonnull align 8 dereferenceable(189696), i32 noundef) local_unnamed_addr #4 align 2

attributes #0 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 = { mustprogress 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 #5 = { inlinehint mustprogress 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 #6 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { 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, !10, i64 72}
!6 = !{!"_ZTS8CCFUtils", !7, i64 8, !10, i64 16, !7, i64 24, !10, i64 32, !7, i64 40, !11, i64 48, !11, i64 52, !11, i64 56, !7, i64 64, !10, i64 72, !10, i64 73}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{i8 0, i8 2}
!13 = !{}
!14 = !{!15, !11, i64 8}
!15 = !{!"_ZTSN3ccf24cbPKT_CHANINFO_CB2005_25E", !11, i64 0, !16, i64 4, !8, i64 6, !8, i64 7, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !17, i64 48, !18, i64 68, !17, i64 108, !18, i64 128, !8, i64 168, !11, i64 184, !8, i64 188, !17, i64 204, !17, i64 224, !11, i64 244, !11, i64 248, !11, i64 252, !11, i64 256, !11, i64 260, !11, i64 264, !11, i64 268, !11, i64 272, !11, i64 276, !11, i64 280, !11, i64 284, !11, i64 288, !11, i64 292, !11, i64 296, !11, i64 300, !11, i64 304, !11, i64 308, !8, i64 312}
!16 = !{!"short", !8, i64 0}
!17 = !{!"_ZTSN3ccf20cbSCALING_NO_ANAGAINE", !16, i64 0, !16, i64 2, !11, i64 4, !11, i64 8, !8, i64 12}
!18 = !{!"_ZTSN3ccf13cbFILTDESC_10E", !8, i64 0, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36}
!19 = !{!20, !11, i64 16}
!20 = !{!"_ZTS14cbPKT_CHANINFO", !21, i64 0, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !23, i64 56, !24, i64 80, !23, i64 120, !24, i64 144, !8, i64 184, !11, i64 200, !8, i64 204, !23, i64 220, !23, i64 244, !11, i64 268, !11, i64 272, !11, i64 276, !11, i64 280, !8, i64 284, !8, i64 292, !8, i64 293, !8, i64 295, !16, i64 296, !16, i64 298, !11, i64 300, !11, i64 304, !11, i64 308, !11, i64 312, !11, i64 316, !11, i64 320, !11, i64 324, !11, i64 328, !11, i64 332, !11, i64 336, !11, i64 340, !11, i64 344, !11, i64 348, !16, i64 352, !16, i64 354, !11, i64 356, !8, i64 360, !8, i64 520}
!21 = !{!"_ZTS12cbPKT_HEADER", !22, i64 0, !16, i64 8, !16, i64 10, !16, i64 12, !8, i64 14, !8, i64 15}
!22 = !{!"long", !8, i64 0}
!23 = !{!"_ZTS9cbSCALING", !16, i64 0, !16, i64 2, !11, i64 4, !11, i64 8, !11, i64 12, !8, i64 16}
!24 = !{!"_ZTS10cbFILTDESC", !8, i64 0, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36}
!25 = !{!11, !11, i64 0}
!26 = !{!15, !11, i64 44}
!27 = !{!20, !11, i64 52}
!28 = !{!15, !11, i64 184}
!29 = !{!20, !11, i64 200}
!30 = !{!15, !11, i64 260}
!31 = !{!8, !8, i64 0}
!32 = !{!15, !11, i64 264}
!33 = !{!15, !11, i64 308}
!34 = !{!20, !11, i64 344}
!35 = distinct !{!35, !36}
!36 = !{!"llvm.loop.mustprogress"}
!37 = !{!15, !11, i64 276}
!38 = !{!20, !11, i64 308}
!39 = !{!20, !11, i64 324}
!40 = distinct !{!40, !36}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass