; LLVM IR from CerebusOSS/CereLink :: cbhwlib/CCFUtilsBinary.ll (ZN14CCFUtilsBinary21ReadCCFData_cb2005_34EP8_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_34" = type { i32, i16, i8, i8, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, %"struct.ccf::cbSCALING_30", %"struct.ccf::cbFILTDESC_10", %"struct.ccf::cbSCALING_30", %"struct.ccf::cbFILTDESC_10", [16 x i8], i32, [4 x i32], %"struct.ccf::cbSCALING_30", %"struct.ccf::cbSCALING_30", i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [5 x %"struct.ccf::cbMANUALUNITMAPPING_34"], [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_30" = type { i16, i16, i32, i32, i32, [8 x i8] }
%"struct.ccf::cbMANUALUNITMAPPING_34" = type { i32, [2 x float], [2 x [2 x float]], float, i32 }
%"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_34EP8_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_34", align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %12 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 672, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %13

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

16:                                               ; preds = %13
  store i32 2, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %377

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

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

185:                                              ; preds = %369, %29
  %186 = load i32, ptr %9, align 4, !tbaa !9
  %187 = icmp slt i32 %186, 5
  br i1 %187, label %189, label %188

188:                                              ; preds = %185
  store i32 5, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %372

189:                                              ; preds = %185
  %190 = getelementptr inbounds %"struct.ccf::cbPKT_CHANINFO_CB2005_34", ptr %5, i32 0, i32 41
  %191 = load i32, ptr %9, align 4, !tbaa !9
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds [5 x %"struct.ccf::cbMANUALUNITMAPPING_34"], ptr %190, i64 0, i64 %192
  %194 = getelementptr inbounds %"struct.ccf::cbMANUALUNITMAPPING_34", ptr %193, i32 0, i32 0
  %195 = load i32, ptr %194, align 4, !tbaa !75
  %196 = trunc i32 %195 to i16
  %197 = load ptr, ptr %8, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %197, i32 0, i32 46
  %199 = load i32, ptr %9, align 4, !tbaa !9
  %200 = sext i32 %199 to i64
  %201 = getelementptr inbounds [5 x %struct.cbMANUALUNITMAPPING], ptr %198, i64 0, i64 %200
  %202 = getelementptr inbounds %struct.cbMANUALUNITMAPPING, ptr %201, i32 0, i32 0
  store i16 %196, ptr %202, align 1, !tbaa !78
  %203 = getelementptr inbounds %"struct.ccf::cbPKT_CHANINFO_CB2005_34", ptr %5, i32 0, i32 41
  %204 = load i32, ptr %9, align 4, !tbaa !9
  %205 = sext i32 %204 to i64
  %206 = getelementptr inbounds [5 x %"struct.ccf::cbMANUALUNITMAPPING_34"], ptr %203, i64 0, i64 %205
  %207 = getelementptr inbounds %"struct.ccf::cbMANUALUNITMAPPING_34", ptr %206, i32 0, i32 1
  %208 = getelementptr inbounds [2 x float], ptr %207, i64 0, i64 0
  %209 = load float, ptr %208, align 4, !tbaa !80
  %210 = fptosi float %209 to i16
  %211 = load ptr, ptr %8, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %211, i32 0, i32 46
  %213 = load i32, ptr %9, align 4, !tbaa !9
  %214 = sext i32 %213 to i64
  %215 = getelementptr inbounds [5 x %struct.cbMANUALUNITMAPPING], ptr %212, i64 0, i64 %214
  %216 = getelementptr inbounds %struct.cbMANUALUNITMAPPING, ptr %215, i32 0, i32 1
  %217 = getelementptr inbounds [3 x i16], ptr %216, i64 0, i64 0
  store i16 %210, ptr %217, align 1, !tbaa !81
  %218 = getelementptr inbounds %"struct.ccf::cbPKT_CHANINFO_CB2005_34", ptr %5, i32 0, i32 41
  %219 = load i32, ptr %9, align 4, !tbaa !9
  %220 = sext i32 %219 to i64
  %221 = getelementptr inbounds [5 x %"struct.ccf::cbMANUALUNITMAPPING_34"], ptr %218, i64 0, i64 %220
  %222 = getelementptr inbounds %"struct.ccf::cbMANUALUNITMAPPING_34", ptr %221, i32 0, i32 1
  %223 = getelementptr inbounds [2 x float], ptr %222, i64 0, i64 1
  %224 = load float, ptr %223, align 4, !tbaa !80
  %225 = fptosi float %224 to i16
  %226 = load ptr, ptr %8, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %226, i32 0, i32 46
  %228 = load i32, ptr %9, align 4, !tbaa !9
  %229 = sext i32 %228 to i64
  %230 = getelementptr inbounds [5 x %struct.cbMANUALUNITMAPPING], ptr %227, i64 0, i64 %229
  %231 = getelementptr inbounds %struct.cbMANUALUNITMAPPING, ptr %230, i32 0, i32 1
  %232 = getelementptr inbounds [3 x i16], ptr %231, i64 0, i64 1
  store i16 %225, ptr %232, align 1, !tbaa !81
  %233 = load ptr, ptr %8, align 8, !tbaa !5
  %234 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %233, i32 0, i32 46
  %235 = load i32, ptr %9, align 4, !tbaa !9
  %236 = sext i32 %235 to i64
  %237 = getelementptr inbounds [5 x %struct.cbMANUALUNITMAPPING], ptr %234, i64 0, i64 %236
  %238 = getelementptr inbounds %struct.cbMANUALUNITMAPPING, ptr %237, i32 0, i32 1
  %239 = getelementptr inbounds [3 x i16], ptr %238, i64 0, i64 2
  store i16 0, ptr %239, align 1, !tbaa !81
  %240 = getelementptr inbounds %"struct.ccf::cbPKT_CHANINFO_CB2005_34", ptr %5, i32 0, i32 41
  %241 = load i32, ptr %9, align 4, !tbaa !9
  %242 = sext i32 %241 to i64
  %243 = getelementptr inbounds [5 x %"struct.ccf::cbMANUALUNITMAPPING_34"], ptr %240, i64 0, i64 %242
  %244 = getelementptr inbounds %"struct.ccf::cbMANUALUNITMAPPING_34", ptr %243, i32 0, i32 2
  %245 = getelementptr inbounds [2 x [2 x float]], ptr %244, i64 0, i64 0
  %246 = getelementptr inbounds [2 x float], ptr %245, i64 0, i64 0
  %247 = load float, ptr %246, align 4, !tbaa !80
  %248 = fptosi float %247 to i16
  %249 = load ptr, ptr %8, align 8, !tbaa !5
  %250 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %249, i32 0, i32 46
  %251 = load i32, ptr %9, align 4, !tbaa !9
  %252 = sext i32 %251 to i64
  %253 = getelementptr inbounds [5 x %struct.cbMANUALUNITMAPPING], ptr %250, i64 0, i64 %252
  %254 = getelementptr inbounds %struct.cbMANUALUNITMAPPING, ptr %253, i32 0, i32 2
  %255 = getelementptr inbounds [3 x [3 x i16]], ptr %254, i64 0, i64 0
  %256 = getelementptr inbounds [3 x i16], ptr %255, i64 0, i64 0
  store i16 %248, ptr %256, align 1, !tbaa !81
  %257 = getelementptr inbounds %"struct.ccf::cbPKT_CHANINFO_CB2005_34", ptr %5, i32 0, i32 41
  %258 = load i32, ptr %9, align 4, !tbaa !9
  %259 = sext i32 %258 to i64
  %260 = getelementptr inbounds [5 x %"struct.ccf::cbMANUALUNITMAPPING_34"], ptr %257, i64 0, i64 %259
  %261 = getelementptr inbounds %"struct.ccf::cbMANUALUNITMAPPING_34", ptr %260, i32 0, i32 2
  %262 = getelementptr inbounds [2 x [2 x float]], ptr %261, i64 0, i64 0
  %263 = getelementptr inbounds [2 x float], ptr %262, i64 0, i64 1
  %264 = load float, ptr %263, align 4, !tbaa !80
  %265 = fptosi float %264 to i16
  %266 = load ptr, ptr %8, align 8, !tbaa !5
  %267 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %266, i32 0, i32 46
  %268 = load i32, ptr %9, align 4, !tbaa !9
  %269 = sext i32 %268 to i64
  %270 = getelementptr inbounds [5 x %struct.cbMANUALUNITMAPPING], ptr %267, i64 0, i64 %269
  %271 = getelementptr inbounds %struct.cbMANUALUNITMAPPING, ptr %270, i32 0, i32 2
  %272 = getelementptr inbounds [3 x [3 x i16]], ptr %271, i64 0, i64 0
  %273 = getelementptr inbounds [3 x i16], ptr %272, i64 0, i64 1
  store i16 %265, ptr %273, align 1, !tbaa !81
  %274 = getelementptr inbounds %"struct.ccf::cbPKT_CHANINFO_CB2005_34", ptr %5, i32 0, i32 41
  %275 = load i32, ptr %9, align 4, !tbaa !9
  %276 = sext i32 %275 to i64
  %277 = getelementptr inbounds [5 x %"struct.ccf::cbMANUALUNITMAPPING_34"], ptr %274, i64 0, i64 %276
  %278 = getelementptr inbounds %"struct.ccf::cbMANUALUNITMAPPING_34", ptr %277, i32 0, i32 2
  %279 = getelementptr inbounds [2 x [2 x float]], ptr %278, i64 0, i64 1
  %280 = getelementptr inbounds [2 x float], ptr %279, i64 0, i64 0
  %281 = load float, ptr %280, align 4, !tbaa !80
  %282 = fptosi float %281 to i16
  %283 = load ptr, ptr %8, align 8, !tbaa !5
  %284 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %283, i32 0, i32 46
  %285 = load i32, ptr %9, align 4, !tbaa !9
  %286 = sext i32 %285 to i64
  %287 = getelementptr inbounds [5 x %struct.cbMANUALUNITMAPPING], ptr %284, i64 0, i64 %286
  %288 = getelementptr inbounds %struct.cbMANUALUNITMAPPING, ptr %287, i32 0, i32 2
  %289 = getelementptr inbounds [3 x [3 x i16]], ptr %288, i64 0, i64 1
  %290 = getelementptr inbounds [3 x i16], ptr %289, i64 0, i64 0
  store i16 %282, ptr %290, align 1, !tbaa !81
  %291 = getelementptr inbounds %"struct.ccf::cbPKT_CHANINFO_CB2005_34", ptr %5, i32 0, i32 41
  %292 = load i32, ptr %9, align 4, !tbaa !9
  %293 = sext i32 %292 to i64
  %294 = getelementptr inbounds [5 x %"struct.ccf::cbMANUALUNITMAPPING_34"], ptr %291, i64 0, i64 %293
  %295 = getelementptr inbounds %"struct.ccf::cbMANUALUNITMAPPING_34", ptr %294, i32 0, i32 2
  %296 = getelementptr inbounds [2 x [2 x float]], ptr %295, i64 0, i64 1
  %297 = getelementptr inbounds [2 x float], ptr %296, i64 0, i64 1
  %298 = load float, ptr %297, align 4, !tbaa !80
  %299 = fptosi float %298 to i16
  %300 = load ptr, ptr %8, align 8, !tbaa !5
  %301 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %300, i32 0, i32 46
  %302 = load i32, ptr %9, align 4, !tbaa !9
  %303 = sext i32 %302 to i64
  %304 = getelementptr inbounds [5 x %struct.cbMANUALUNITMAPPING], ptr %301, i64 0, i64 %303
  %305 = getelementptr inbounds %struct.cbMANUALUNITMAPPING, ptr %304, i32 0, i32 2
  %306 = getelementptr inbounds [3 x [3 x i16]], ptr %305, i64 0, i64 1
  %307 = getelementptr inbounds [3 x i16], ptr %306, i64 0, i64 1
  store i16 %299, ptr %307, align 1, !tbaa !81
  %308 = getelementptr inbounds %"struct.ccf::cbPKT_CHANINFO_CB2005_34", ptr %5, i32 0, i32 41
  %309 = load i32, ptr %9, align 4, !tbaa !9
  %310 = sext i32 %309 to i64
  %311 = getelementptr inbounds [5 x %"struct.ccf::cbMANUALUNITMAPPING_34"], ptr %308, i64 0, i64 %310
  %312 = getelementptr inbounds %"struct.ccf::cbMANUALUNITMAPPING_34", ptr %311, i32 0, i32 2
  %313 = getelementptr inbounds [2 x [2 x float]], ptr %312, i64 0, i64 1
  %314 = getelementptr inbounds [2 x float], ptr %313, i64 0, i64 0
  %315 = load float, ptr %314, align 4, !tbaa !80
  %316 = fptosi float %315 to i16
  %317 = load ptr, ptr %8, align 8, !tbaa !5
  %318 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %317, i32 0, i32 46
  %319 = load i32, ptr %9, align 4, !tbaa !9
  %320 = sext i32 %319 to i64
  %321 = getelementptr inbounds [5 x %struct.cbMANUALUNITMAPPING], ptr %318, i64 0, i64 %320
  %322 = getelementptr inbounds %struct.cbMANUALUNITMAPPING, ptr %321, i32 0, i32 2
  %323 = getelementptr inbounds [3 x [3 x i16]], ptr %322, i64 0, i64 2
  %324 = getelementptr inbounds [3 x i16], ptr %323, i64 0, i64 0
  store i16 %316, ptr %324, align 1, !tbaa !81
  %325 = getelementptr inbounds %"struct.ccf::cbPKT_CHANINFO_CB2005_34", ptr %5, i32 0, i32 41
  %326 = load i32, ptr %9, align 4, !tbaa !9
  %327 = sext i32 %326 to i64
  %328 = getelementptr inbounds [5 x %"struct.ccf::cbMANUALUNITMAPPING_34"], ptr %325, i64 0, i64 %327
  %329 = getelementptr inbounds %"struct.ccf::cbMANUALUNITMAPPING_34", ptr %328, i32 0, i32 2
  %330 = getelementptr inbounds [2 x [2 x float]], ptr %329, i64 0, i64 1
  %331 = getelementptr inbounds [2 x float], ptr %330, i64 0, i64 1
  %332 = load float, ptr %331, align 4, !tbaa !80
  %333 = fptosi float %332 to i16
  %334 = load ptr, ptr %8, align 8, !tbaa !5
  %335 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %334, i32 0, i32 46
  %336 = load i32, ptr %9, align 4, !tbaa !9
  %337 = sext i32 %336 to i64
  %338 = getelementptr inbounds [5 x %struct.cbMANUALUNITMAPPING], ptr %335, i64 0, i64 %337
  %339 = getelementptr inbounds %struct.cbMANUALUNITMAPPING, ptr %338, i32 0, i32 2
  %340 = getelementptr inbounds [3 x [3 x i16]], ptr %339, i64 0, i64 2
  %341 = getelementptr inbounds [3 x i16], ptr %340, i64 0, i64 1
  store i16 %333, ptr %341, align 1, !tbaa !81
  %342 = getelementptr inbounds %"struct.ccf::cbPKT_CHANINFO_CB2005_34", ptr %5, i32 0, i32 41
  %343 = load i32, ptr %9, align 4, !tbaa !9
  %344 = sext i32 %343 to i64
  %345 = getelementptr inbounds [5 x %"struct.ccf::cbMANUALUNITMAPPING_34"], ptr %342, i64 0, i64 %344
  %346 = getelementptr inbounds %"struct.ccf::cbMANUALUNITMAPPING_34", ptr %345, i32 0, i32 3
  %347 = load float, ptr %346, align 4, !tbaa !82
  %348 = fptosi float %347 to i16
  %349 = load ptr, ptr %8, align 8, !tbaa !5
  %350 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %349, i32 0, i32 46
  %351 = load i32, ptr %9, align 4, !tbaa !9
  %352 = sext i32 %351 to i64
  %353 = getelementptr inbounds [5 x %struct.cbMANUALUNITMAPPING], ptr %350, i64 0, i64 %352
  %354 = getelementptr inbounds %struct.cbMANUALUNITMAPPING, ptr %353, i32 0, i32 3
  store i16 %348, ptr %354, align 1, !tbaa !83
  %355 = getelementptr inbounds %"struct.ccf::cbPKT_CHANINFO_CB2005_34", ptr %5, i32 0, i32 41
  %356 = load i32, ptr %9, align 4, !tbaa !9
  %357 = sext i32 %356 to i64
  %358 = getelementptr inbounds [5 x %"struct.ccf::cbMANUALUNITMAPPING_34"], ptr %355, i64 0, i64 %357
  %359 = getelementptr inbounds %"struct.ccf::cbMANUALUNITMAPPING_34", ptr %358, i32 0, i32 4
  %360 = load i32, ptr %359, align 4, !tbaa !84
  %361 = trunc i32 %360 to i16
  %362 = sext i16 %361 to i32
  %363 = load ptr, ptr %8, align 8, !tbaa !5
  %364 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %363, i32 0, i32 46
  %365 = load i32, ptr %9, align 4, !tbaa !9
  %366 = sext i32 %365 to i64
  %367 = getelementptr inbounds [5 x %struct.cbMANUALUNITMAPPING], ptr %364, i64 0, i64 %366
  %368 = getelementptr inbounds %struct.cbMANUALUNITMAPPING, ptr %367, i32 0, i32 4
  store i32 %362, ptr %368, align 1, !tbaa !85
  br label %369

369:                                              ; preds = %189
  %370 = load i32, ptr %9, align 4, !tbaa !9
  %371 = add nsw i32 %370, 1
  store i32 %371, ptr %9, align 4, !tbaa !9
  br label %185, !llvm.loop !86

372:                                              ; preds = %188
  br label %373

373:                                              ; preds = %372, %17
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %374

374:                                              ; preds = %373
  %375 = load i32, ptr %6, align 4, !tbaa !9
  %376 = add nsw i32 %375, 1
  store i32 %376, ptr %6, align 4, !tbaa !9
  br label %13, !llvm.loop !88

377:                                              ; preds = %16
  %378 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN14CCFUtilsBinary13ReadAsPacketsEP8_IO_FILE(ptr noundef nonnull align 8 dereferenceable(189696) %12, ptr noundef %378)
  %379 = getelementptr inbounds %class.CCFUtils, ptr %12, i32 0, i32 13
  %380 = load i8, ptr %379, align 8, !tbaa !89, !range !92, !noundef !93
  %381 = trunc i8 %380 to i1
  br i1 %381, label %382, label %410

382:                                              ; preds = %377
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %383

383:                                              ; preds = %406, %382
  %384 = load i32, ptr %10, align 4, !tbaa !9
  %385 = icmp slt i32 %384, 160
  br i1 %385, label %387, label %386

386:                                              ; preds = %383
  store i32 8, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %409

387:                                              ; preds = %383
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %388 = getelementptr inbounds %class.CCFUtilsBinary, ptr %12, i32 0, i32 2
  %389 = getelementptr inbounds %"struct.ccf::ccfBinaryData", ptr %388, i32 0, i32 0
  %390 = load i32, ptr %10, align 4, !tbaa !9
  %391 = sext i32 %390 to i64
  %392 = getelementptr inbounds [160 x %struct.cbPKT_CHANINFO], ptr %389, i64 0, i64 %391
  store ptr %392, ptr %11, align 8, !tbaa !5
  %393 = load ptr, ptr %11, align 8, !tbaa !5
  %394 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %393, i32 0, i32 1
  %395 = load i32, ptr %394, align 1, !tbaa !16
  %396 = icmp ne i32 %395, 0
  br i1 %396, label %397, label %405

397:                                              ; preds = %387
  %398 = getelementptr inbounds %"struct.ccf::cbPKT_CHANINFO_CB2005_34", ptr %5, i32 0, i32 31
  %399 = load i32, ptr %398, align 4, !tbaa !57
  %400 = call noundef i32 @_ZN14CCFUtilsBinary19TranslateAutoFilterEj(ptr noundef nonnull align 8 dereferenceable(189696) %12, i32 noundef %399)
  %401 = load ptr, ptr %11, align 8, !tbaa !5
  %402 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %401, i32 0, i32 32
  store i32 %400, ptr %402, align 1, !tbaa !58
  %403 = load ptr, ptr %11, align 8, !tbaa !5
  %404 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %403, i32 0, i32 36
  store i32 2, ptr %404, align 1, !tbaa !66
  br label %405

405:                                              ; preds = %397, %387
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %406

406:                                              ; preds = %405
  %407 = load i32, ptr %10, align 4, !tbaa !9
  %408 = add nsw i32 %407, 1
  store i32 %408, ptr %10, align 4, !tbaa !9
  br label %383, !llvm.loop !94

409:                                              ; preds = %386
  br label %410

410:                                              ; preds = %409, %377
  store i32 1, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 672, ptr %5) #6
  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: 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) #5

; 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { 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_34E", !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 72, !14, i64 112, !15, i64 136, !7, i64 176, !10, i64 192, !7, i64 196, !14, i64 212, !14, i64 236, !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, !10, i64 312, !10, i64 316, !10, i64 320, !10, i64 324, !10, i64 328, !7, i64 332, !7, i64 512}
!13 = !{!"short", !7, i64 0}
!14 = !{!"_ZTSN3ccf12cbSCALING_30E", !13, i64 0, !13, i64 2, !10, i64 4, !10, i64 8, !10, i64 12, !7, i64 16}
!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 192}
!41 = !{!17, !10, i64 200}
!42 = !{!12, !10, i64 260}
!43 = !{!17, !10, i64 268}
!44 = !{!12, !10, i64 264}
!45 = !{!17, !10, i64 272}
!46 = !{!12, !10, i64 268}
!47 = !{!17, !10, i64 276}
!48 = !{!12, !10, i64 272}
!49 = !{!17, !10, i64 280}
!50 = !{!12, !10, i64 276}
!51 = !{!7, !7, i64 0}
!52 = !{!12, !10, i64 280}
!53 = !{!12, !10, i64 284}
!54 = !{!17, !10, i64 300}
!55 = !{!12, !10, i64 288}
!56 = !{!17, !10, i64 304}
!57 = !{!12, !10, i64 292}
!58 = !{!17, !10, i64 308}
!59 = !{!12, !10, i64 296}
!60 = !{!17, !10, i64 312}
!61 = !{!12, !10, i64 300}
!62 = !{!17, !10, i64 316}
!63 = !{!12, !10, i64 304}
!64 = !{!17, !10, i64 320}
!65 = !{!12, !10, i64 308}
!66 = !{!17, !10, i64 324}
!67 = !{!12, !10, i64 312}
!68 = !{!17, !10, i64 328}
!69 = !{!12, !10, i64 316}
!70 = !{!17, !10, i64 336}
!71 = !{!12, !10, i64 320}
!72 = !{!17, !10, i64 340}
!73 = !{!12, !10, i64 324}
!74 = !{!17, !10, i64 344}
!75 = !{!76, !10, i64 0}
!76 = !{!"_ZTSN3ccf22cbMANUALUNITMAPPING_34E", !10, i64 0, !7, i64 4, !7, i64 12, !77, i64 28, !10, i64 32}
!77 = !{!"float", !7, i64 0}
!78 = !{!79, !13, i64 0}
!79 = !{!"_ZTS19cbMANUALUNITMAPPING", !13, i64 0, !7, i64 2, !7, i64 8, !13, i64 26, !10, i64 28}
!80 = !{!77, !77, i64 0}
!81 = !{!13, !13, i64 0}
!82 = !{!76, !77, i64 28}
!83 = !{!79, !13, i64 26}
!84 = !{!76, !10, i64 32}
!85 = !{!79, !10, i64 28}
!86 = distinct !{!86, !87}
!87 = !{!"llvm.loop.mustprogress"}
!88 = distinct !{!88, !87}
!89 = !{!90, !91, i64 72}
!90 = !{!"_ZTS8CCFUtils", !6, i64 8, !91, i64 16, !6, i64 24, !91, i64 32, !6, i64 40, !10, i64 48, !10, i64 52, !10, i64 56, !6, i64 64, !91, i64 72, !91, i64 73}
!91 = !{!"bool", !7, i64 0}
!92 = !{i8 0, i8 2}
!93 = !{}
!94 = distinct !{!94, !87}


; 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_34" = type { i32, i16, i8, i8, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, %"struct.ccf::cbSCALING_30", %"struct.ccf::cbFILTDESC_10", %"struct.ccf::cbSCALING_30", %"struct.ccf::cbFILTDESC_10", [16 x i8], i32, [4 x i32], %"struct.ccf::cbSCALING_30", %"struct.ccf::cbSCALING_30", i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [5 x %"struct.ccf::cbMANUALUNITMAPPING_34"], [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_30" = type { i16, i16, i32, i32, i32, [8 x i8] }
%"struct.ccf::cbMANUALUNITMAPPING_34" = type { i32, [2 x float], [2 x [2 x float]], float, i32 }
%"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_34EP8_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_34", align 4
  call void @llvm.lifetime.start.p0(i64 672, ptr nonnull %3) #6
  %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 72
  %11 = getelementptr inbounds i8, ptr %3, i64 112
  %12 = getelementptr inbounds i8, ptr %3, i64 136
  %13 = getelementptr inbounds i8, ptr %3, i64 176
  %14 = getelementptr inbounds i8, ptr %3, i64 192
  %15 = getelementptr inbounds i8, ptr %3, i64 196
  %16 = getelementptr inbounds i8, ptr %3, i64 212
  %17 = getelementptr inbounds i8, ptr %3, i64 236
  %18 = getelementptr inbounds i8, ptr %3, i64 260
  %19 = getelementptr inbounds i8, ptr %3, i64 276
  %20 = getelementptr inbounds i8, ptr %3, i64 280
  %21 = getelementptr inbounds i8, ptr %3, i64 284
  %22 = getelementptr inbounds i8, ptr %3, i64 292
  %23 = getelementptr inbounds i8, ptr %3, i64 300
  %24 = getelementptr inbounds i8, ptr %3, i64 316
  %25 = getelementptr inbounds i8, ptr %3, i64 324
  %26 = getelementptr inbounds i8, ptr %3, i64 512
  %27 = getelementptr inbounds i8, ptr %3, i64 332
  %28 = getelementptr inbounds i8, ptr %3, i64 336
  %29 = getelementptr inbounds i8, ptr %3, i64 344
  %30 = getelementptr inbounds i8, ptr %3, i64 352
  %31 = getelementptr inbounds i8, ptr %3, i64 360
  %32 = getelementptr inbounds i8, ptr %3, i64 364
  %33 = getelementptr inbounds i8, ptr %3, i64 368
  %34 = getelementptr inbounds i8, ptr %3, i64 372
  %35 = getelementptr inbounds i8, ptr %3, i64 380
  %36 = getelementptr inbounds i8, ptr %3, i64 388
  %37 = getelementptr inbounds i8, ptr %3, i64 396
  %38 = getelementptr inbounds i8, ptr %3, i64 400
  %39 = getelementptr inbounds i8, ptr %3, i64 404
  %40 = getelementptr inbounds i8, ptr %3, i64 408
  %41 = getelementptr inbounds i8, ptr %3, i64 416
  %42 = getelementptr inbounds i8, ptr %3, i64 424
  %43 = getelementptr inbounds i8, ptr %3, i64 432
  %44 = getelementptr inbounds i8, ptr %3, i64 436
  %45 = getelementptr inbounds i8, ptr %3, i64 440
  %46 = getelementptr inbounds i8, ptr %3, i64 444
  %47 = getelementptr inbounds i8, ptr %3, i64 452
  %48 = getelementptr inbounds i8, ptr %3, i64 460
  %49 = getelementptr inbounds i8, ptr %3, i64 468
  %50 = getelementptr inbounds i8, ptr %3, i64 472
  %51 = getelementptr inbounds i8, ptr %3, i64 476
  %52 = getelementptr inbounds i8, ptr %3, i64 480
  %53 = getelementptr inbounds i8, ptr %3, i64 488
  %54 = getelementptr inbounds i8, ptr %3, i64 496
  %55 = getelementptr inbounds i8, ptr %3, i64 504
  %56 = getelementptr inbounds i8, ptr %3, i64 508
  br label %62

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

.preheader:                                       ; preds = %57
  %61 = load i32, ptr %22, align 4
  br label %202

62:                                               ; preds = %2, %.loopexit91
  %indvars.iv = phi i64 [ 0, %2 ], [ %indvars.iv.next, %.loopexit91 ]
  %63 = getelementptr inbounds [160 x %struct.cbPKT_CHANINFO], ptr %4, i64 0, i64 %indvars.iv
  tail call void @_ZN14CCFUtilsBinary18SetChannelDefaultsER14cbPKT_CHANINFO(ptr noundef nonnull align 8 dereferenceable(189696) %0, ptr noundef nonnull align 1 dereferenceable(680) %63)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(672) %3, i8 0, i64 672, i1 false)
  %64 = call i64 @fread(ptr noundef nonnull %3, i64 noundef 1, i64 noundef 672, ptr noundef %1)
  %65 = load i32, ptr %5, align 4, !tbaa !14
  %.not90 = icmp eq i32 %65, 0
  br i1 %.not90, label %.loopexit91, label %.loopexit91.loopexit

.loopexit91.loopexit:                             ; preds = %62
  %66 = getelementptr inbounds i8, ptr %63, i64 16
  store i32 %65, ptr %66, align 4, !tbaa !19
  %67 = getelementptr inbounds i8, ptr %63, i64 20
  %68 = load <4 x i32>, ptr %6, align 4, !tbaa !25
  store <4 x i32> %68, ptr %67, align 8, !tbaa !25
  %69 = getelementptr inbounds i8, ptr %63, i64 36
  %70 = load <4 x i32>, ptr %7, align 4, !tbaa !25
  store <4 x i32> %70, ptr %69, align 8, !tbaa !25
  %71 = load i32, ptr %8, align 4, !tbaa !26
  %72 = getelementptr inbounds i8, ptr %63, i64 52
  store i32 %71, ptr %72, align 8, !tbaa !27
  %73 = getelementptr inbounds i8, ptr %63, i64 56
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(24) %73, ptr noundef nonnull align 4 dereferenceable(24) %9, i64 24, i1 false)
  %74 = getelementptr inbounds i8, ptr %63, i64 80
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(40) %74, ptr noundef nonnull align 4 dereferenceable(40) %10, i64 40, i1 false)
  %75 = getelementptr inbounds i8, ptr %63, i64 120
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(40) %75, ptr noundef nonnull align 4 dereferenceable(40) %11, i64 24, i1 false)
  %76 = getelementptr inbounds i8, ptr %63, i64 144
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(40) %76, ptr noundef nonnull align 4 dereferenceable(40) %12, i64 40, i1 false)
  %77 = getelementptr inbounds i8, ptr %63, i64 184
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %77, ptr noundef nonnull align 4 dereferenceable(16) %13, i64 16, i1 false)
  %78 = load i32, ptr %14, align 4, !tbaa !28
  %79 = getelementptr inbounds i8, ptr %63, i64 200
  store i32 %78, ptr %79, align 4, !tbaa !29
  %80 = getelementptr inbounds i8, ptr %63, i64 204
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %80, ptr noundef nonnull align 4 dereferenceable(16) %15, i64 16, i1 false)
  %81 = getelementptr inbounds i8, ptr %63, i64 220
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %81, ptr noundef nonnull align 4 dereferenceable(24) %16, i64 24, i1 false)
  %82 = getelementptr inbounds i8, ptr %63, i64 244
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %82, ptr noundef nonnull align 4 dereferenceable(24) %17, i64 24, i1 false)
  %83 = getelementptr inbounds i8, ptr %63, i64 268
  %84 = load <4 x i32>, ptr %18, align 4, !tbaa !25
  store <4 x i32> %84, ptr %83, align 8, !tbaa !25
  %85 = load i32, ptr %19, align 4, !tbaa !30
  %86 = trunc i32 %85 to i16
  %87 = getelementptr inbounds i8, ptr %63, i64 284
  store i16 %86, ptr %87, align 8, !tbaa !31
  %88 = lshr i32 %85, 16
  %89 = trunc nuw i32 %88 to i16
  %90 = getelementptr inbounds i8, ptr %63, i64 286
  store i16 %89, ptr %90, align 2, !tbaa !31
  %91 = load i32, ptr %20, align 4, !tbaa !32
  %92 = getelementptr inbounds i8, ptr %63, i64 288
  store i32 %91, ptr %92, align 4, !tbaa !31
  %93 = getelementptr inbounds i8, ptr %63, i64 300
  %94 = load <4 x i32>, ptr %21, align 4, !tbaa !25
  store <4 x i32> %94, ptr %93, align 8, !tbaa !25
  %95 = getelementptr inbounds i8, ptr %63, i64 316
  %96 = load <4 x i32>, ptr %23, align 4, !tbaa !25
  store <4 x i32> %96, ptr %95, align 8, !tbaa !25
  %97 = getelementptr inbounds i8, ptr %63, i64 336
  %98 = load <2 x i32>, ptr %24, align 4, !tbaa !25
  store <2 x i32> %98, ptr %97, align 4, !tbaa !25
  %99 = load i32, ptr %25, align 4, !tbaa !33
  %100 = getelementptr inbounds i8, ptr %63, i64 344
  store i32 %99, ptr %100, align 4, !tbaa !34
  %101 = getelementptr inbounds i8, ptr %63, i64 520
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(160) %101, ptr noundef nonnull align 4 dereferenceable(160) %26, i64 160, i1 false)
  %102 = getelementptr inbounds i8, ptr %63, i64 360
  %103 = load i32, ptr %27, align 4, !tbaa !35
  %104 = trunc i32 %103 to i16
  store i16 %104, ptr %102, align 4, !tbaa !38
  %105 = getelementptr inbounds i8, ptr %63, i64 362
  %106 = load <2 x float>, ptr %28, align 4, !tbaa !40
  %107 = fptosi <2 x float> %106 to <2 x i16>
  store <2 x i16> %107, ptr %105, align 2, !tbaa !41
  %108 = getelementptr inbounds i8, ptr %63, i64 366
  store i16 0, ptr %108, align 2, !tbaa !41
  %109 = getelementptr inbounds i8, ptr %63, i64 368
  %110 = load <2 x float>, ptr %29, align 4, !tbaa !40
  %111 = fptosi <2 x float> %110 to <2 x i16>
  store <2 x i16> %111, ptr %109, align 4, !tbaa !41
  %112 = getelementptr inbounds i8, ptr %63, i64 374
  %113 = load <2 x float>, ptr %30, align 4, !tbaa !40
  %114 = fptosi <2 x float> %113 to <2 x i16>
  store <2 x i16> %114, ptr %112, align 2, !tbaa !41
  %115 = getelementptr inbounds i8, ptr %63, i64 380
  store <2 x i16> %114, ptr %115, align 8, !tbaa !41
  %116 = load float, ptr %31, align 4, !tbaa !42
  %117 = fptosi float %116 to i16
  %118 = getelementptr inbounds i8, ptr %63, i64 386
  store i16 %117, ptr %118, align 2, !tbaa !43
  %119 = load i32, ptr %32, align 4, !tbaa !44
  %sext = shl i32 %119, 16
  %120 = ashr exact i32 %sext, 16
  %121 = getelementptr inbounds i8, ptr %63, i64 388
  store i32 %120, ptr %121, align 8, !tbaa !45
  %122 = load i32, ptr %33, align 4, !tbaa !35
  %123 = trunc i32 %122 to i16
  %124 = getelementptr inbounds i8, ptr %63, i64 392
  store i16 %123, ptr %124, align 4, !tbaa !38
  %125 = getelementptr inbounds i8, ptr %63, i64 394
  %126 = load <2 x float>, ptr %34, align 4, !tbaa !40
  %127 = fptosi <2 x float> %126 to <2 x i16>
  store <2 x i16> %127, ptr %125, align 2, !tbaa !41
  %128 = getelementptr inbounds i8, ptr %63, i64 398
  store i16 0, ptr %128, align 2, !tbaa !41
  %129 = getelementptr inbounds i8, ptr %63, i64 400
  %130 = load <2 x float>, ptr %35, align 4, !tbaa !40
  %131 = fptosi <2 x float> %130 to <2 x i16>
  store <2 x i16> %131, ptr %129, align 4, !tbaa !41
  %132 = getelementptr inbounds i8, ptr %63, i64 406
  %133 = load <2 x float>, ptr %36, align 4, !tbaa !40
  %134 = fptosi <2 x float> %133 to <2 x i16>
  store <2 x i16> %134, ptr %132, align 2, !tbaa !41
  %135 = getelementptr inbounds i8, ptr %63, i64 412
  store <2 x i16> %134, ptr %135, align 8, !tbaa !41
  %136 = load float, ptr %37, align 4, !tbaa !42
  %137 = fptosi float %136 to i16
  %138 = getelementptr inbounds i8, ptr %63, i64 418
  store i16 %137, ptr %138, align 2, !tbaa !43
  %139 = load i32, ptr %38, align 4, !tbaa !44
  %sext.1 = shl i32 %139, 16
  %140 = ashr exact i32 %sext.1, 16
  %141 = getelementptr inbounds i8, ptr %63, i64 420
  store i32 %140, ptr %141, align 8, !tbaa !45
  %142 = load i32, ptr %39, align 4, !tbaa !35
  %143 = trunc i32 %142 to i16
  %144 = getelementptr inbounds i8, ptr %63, i64 424
  store i16 %143, ptr %144, align 4, !tbaa !38
  %145 = getelementptr inbounds i8, ptr %63, i64 426
  %146 = load <2 x float>, ptr %40, align 4, !tbaa !40
  %147 = fptosi <2 x float> %146 to <2 x i16>
  store <2 x i16> %147, ptr %145, align 2, !tbaa !41
  %148 = getelementptr inbounds i8, ptr %63, i64 430
  store i16 0, ptr %148, align 2, !tbaa !41
  %149 = getelementptr inbounds i8, ptr %63, i64 432
  %150 = load <2 x float>, ptr %41, align 4, !tbaa !40
  %151 = fptosi <2 x float> %150 to <2 x i16>
  store <2 x i16> %151, ptr %149, align 4, !tbaa !41
  %152 = getelementptr inbounds i8, ptr %63, i64 438
  %153 = load <2 x float>, ptr %42, align 4, !tbaa !40
  %154 = fptosi <2 x float> %153 to <2 x i16>
  store <2 x i16> %154, ptr %152, align 2, !tbaa !41
  %155 = getelementptr inbounds i8, ptr %63, i64 444
  store <2 x i16> %154, ptr %155, align 8, !tbaa !41
  %156 = load float, ptr %43, align 4, !tbaa !42
  %157 = fptosi float %156 to i16
  %158 = getelementptr inbounds i8, ptr %63, i64 450
  store i16 %157, ptr %158, align 2, !tbaa !43
  %159 = load i32, ptr %44, align 4, !tbaa !44
  %sext.2 = shl i32 %159, 16
  %160 = ashr exact i32 %sext.2, 16
  %161 = getelementptr inbounds i8, ptr %63, i64 452
  store i32 %160, ptr %161, align 8, !tbaa !45
  %162 = load i32, ptr %45, align 4, !tbaa !35
  %163 = trunc i32 %162 to i16
  %164 = getelementptr inbounds i8, ptr %63, i64 456
  store i16 %163, ptr %164, align 4, !tbaa !38
  %165 = getelementptr inbounds i8, ptr %63, i64 458
  %166 = load <2 x float>, ptr %46, align 4, !tbaa !40
  %167 = fptosi <2 x float> %166 to <2 x i16>
  store <2 x i16> %167, ptr %165, align 2, !tbaa !41
  %168 = getelementptr inbounds i8, ptr %63, i64 462
  store i16 0, ptr %168, align 2, !tbaa !41
  %169 = getelementptr inbounds i8, ptr %63, i64 464
  %170 = load <2 x float>, ptr %47, align 4, !tbaa !40
  %171 = fptosi <2 x float> %170 to <2 x i16>
  store <2 x i16> %171, ptr %169, align 4, !tbaa !41
  %172 = getelementptr inbounds i8, ptr %63, i64 470
  %173 = load <2 x float>, ptr %48, align 4, !tbaa !40
  %174 = fptosi <2 x float> %173 to <2 x i16>
  store <2 x i16> %174, ptr %172, align 2, !tbaa !41
  %175 = getelementptr inbounds i8, ptr %63, i64 476
  store <2 x i16> %174, ptr %175, align 8, !tbaa !41
  %176 = load float, ptr %49, align 4, !tbaa !42
  %177 = fptosi float %176 to i16
  %178 = getelementptr inbounds i8, ptr %63, i64 482
  store i16 %177, ptr %178, align 2, !tbaa !43
  %179 = load i32, ptr %50, align 4, !tbaa !44
  %sext.3 = shl i32 %179, 16
  %180 = ashr exact i32 %sext.3, 16
  %181 = getelementptr inbounds i8, ptr %63, i64 484
  store i32 %180, ptr %181, align 8, !tbaa !45
  %182 = load i32, ptr %51, align 4, !tbaa !35
  %183 = trunc i32 %182 to i16
  %184 = getelementptr inbounds i8, ptr %63, i64 488
  store i16 %183, ptr %184, align 4, !tbaa !38
  %185 = getelementptr inbounds i8, ptr %63, i64 490
  %186 = load <2 x float>, ptr %52, align 4, !tbaa !40
  %187 = fptosi <2 x float> %186 to <2 x i16>
  store <2 x i16> %187, ptr %185, align 2, !tbaa !41
  %188 = getelementptr inbounds i8, ptr %63, i64 494
  store i16 0, ptr %188, align 2, !tbaa !41
  %189 = getelementptr inbounds i8, ptr %63, i64 496
  %190 = load <2 x float>, ptr %53, align 4, !tbaa !40
  %191 = fptosi <2 x float> %190 to <2 x i16>
  store <2 x i16> %191, ptr %189, align 4, !tbaa !41
  %192 = getelementptr inbounds i8, ptr %63, i64 502
  %193 = load <2 x float>, ptr %54, align 4, !tbaa !40
  %194 = fptosi <2 x float> %193 to <2 x i16>
  store <2 x i16> %194, ptr %192, align 2, !tbaa !41
  %195 = getelementptr inbounds i8, ptr %63, i64 508
  store <2 x i16> %194, ptr %195, align 8, !tbaa !41
  %196 = load float, ptr %55, align 4, !tbaa !42
  %197 = fptosi float %196 to i16
  %198 = getelementptr inbounds i8, ptr %63, i64 514
  store i16 %197, ptr %198, align 2, !tbaa !43
  %199 = load i32, ptr %56, align 4, !tbaa !44
  %sext.4 = shl i32 %199, 16
  %200 = ashr exact i32 %sext.4, 16
  %201 = getelementptr inbounds i8, ptr %63, i64 516
  store i32 %200, ptr %201, align 8, !tbaa !45
  br label %.loopexit91

.loopexit91:                                      ; preds = %.loopexit91.loopexit, %62
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 160
  br i1 %exitcond.not, label %57, label %62, !llvm.loop !46

202:                                              ; preds = %.preheader, %210
  %indvars.iv97 = phi i64 [ 0, %.preheader ], [ %indvars.iv.next98, %210 ]
  %203 = getelementptr inbounds [160 x %struct.cbPKT_CHANINFO], ptr %4, i64 0, i64 %indvars.iv97
  %204 = getelementptr inbounds i8, ptr %203, i64 16
  %205 = load i32, ptr %204, align 4, !tbaa !19
  %.not = icmp eq i32 %205, 0
  br i1 %.not, label %210, label %206

206:                                              ; preds = %202
  %207 = tail call noundef i32 @_ZN14CCFUtilsBinary19TranslateAutoFilterEj(ptr noundef nonnull align 8 dereferenceable(189696) %0, i32 noundef %61)
  %208 = getelementptr inbounds i8, ptr %203, i64 308
  store i32 %207, ptr %208, align 8, !tbaa !48
  %209 = getelementptr inbounds i8, ptr %203, i64 324
  store i32 2, ptr %209, align 8, !tbaa !49
  br label %210

210:                                              ; preds = %206, %202
  %indvars.iv.next98 = add nuw nsw i64 %indvars.iv97, 1
  %exitcond100.not = icmp eq i64 %indvars.iv.next98, 160
  br i1 %exitcond100.not, label %.loopexit, label %202, !llvm.loop !50

.loopexit:                                        ; preds = %210, %57
  call void @llvm.lifetime.end.p0(i64 672, ptr nonnull %3) #6
  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: 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) #5

; 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { 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_34E", !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 72, !17, i64 112, !18, i64 136, !8, i64 176, !11, i64 192, !8, i64 196, !17, i64 212, !17, i64 236, !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, !11, i64 312, !11, i64 316, !11, i64 320, !11, i64 324, !11, i64 328, !8, i64 332, !8, i64 512}
!16 = !{!"short", !8, i64 0}
!17 = !{!"_ZTSN3ccf12cbSCALING_30E", !16, i64 0, !16, i64 2, !11, i64 4, !11, i64 8, !11, i64 12, !8, i64 16}
!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 192}
!29 = !{!20, !11, i64 200}
!30 = !{!15, !11, i64 276}
!31 = !{!8, !8, i64 0}
!32 = !{!15, !11, i64 280}
!33 = !{!15, !11, i64 324}
!34 = !{!20, !11, i64 344}
!35 = !{!36, !11, i64 0}
!36 = !{!"_ZTSN3ccf22cbMANUALUNITMAPPING_34E", !11, i64 0, !8, i64 4, !8, i64 12, !37, i64 28, !11, i64 32}
!37 = !{!"float", !8, i64 0}
!38 = !{!39, !16, i64 0}
!39 = !{!"_ZTS19cbMANUALUNITMAPPING", !16, i64 0, !8, i64 2, !8, i64 8, !16, i64 26, !11, i64 28}
!40 = !{!37, !37, i64 0}
!41 = !{!16, !16, i64 0}
!42 = !{!36, !37, i64 28}
!43 = !{!39, !16, i64 26}
!44 = !{!36, !11, i64 32}
!45 = !{!39, !11, i64 28}
!46 = distinct !{!46, !47}
!47 = !{!"llvm.loop.mustprogress"}
!48 = !{!20, !11, i64 308}
!49 = !{!20, !11, i64 324}
!50 = distinct !{!50, !47}


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