; LLVM IR from CerebusOSS/CereLink :: cbhwlib/CCFUtilsBinary.ll (ZN14CCFUtilsBinary21ReadCCFData_cb2005_35EP8_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_35" = 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, %union.anon.1, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, [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] }
%union.anon.1 = type { %struct.anon.2 }
%struct.anon.2 = type { i32, i32 }
%"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_35EP8_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_35", 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 676, 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 = %377, %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 %380

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 676, i1 false)
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  %25 = call i64 @fread(ptr noundef %5, i64 noundef 1, i64 noundef 676, ptr noundef %24)
  %26 = getelementptr inbounds %"struct.ccf::cbPKT_CHANINFO_CB2005_35", 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 %376

29:                                               ; preds = %17
  %30 = getelementptr inbounds %"struct.ccf::cbPKT_CHANINFO_CB2005_35", 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_35", 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_35", 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_35", 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_35", 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_35", 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_35", 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_35", 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_35", 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_35", 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_35", 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_35", 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_35", 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_35", 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_35", 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_35", 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_35", 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_35", 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_35", 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_35", 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_35", 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_35", 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_35", 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_35", ptr %5, i32 0, i32 27
  %117 = getelementptr inbounds %struct.anon.2, ptr %116, i32 0, i32 0
  %118 = load i32, ptr %117, align 4, !tbaa !50
  %119 = and i32 %118, 65535
  %120 = trunc i32 %119 to i16
  %121 = load ptr, ptr %8, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %121, i32 0, i32 24
  %123 = getelementptr inbounds %struct.anon, ptr %122, i32 0, i32 0
  store i16 %120, ptr %123, align 1, !tbaa !50
  %124 = getelementptr inbounds %"struct.ccf::cbPKT_CHANINFO_CB2005_35", ptr %5, i32 0, i32 27
  %125 = getelementptr inbounds %struct.anon.2, ptr %124, i32 0, i32 0
  %126 = load i32, ptr %125, align 4, !tbaa !50
  %127 = lshr i32 %126, 16
  %128 = and i32 %127, 65535
  %129 = trunc i32 %128 to i16
  %130 = load ptr, ptr %8, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %130, i32 0, i32 24
  %132 = getelementptr inbounds %struct.anon, ptr %131, i32 0, i32 1
  store i16 %129, ptr %132, align 1, !tbaa !50
  %133 = getelementptr inbounds %"struct.ccf::cbPKT_CHANINFO_CB2005_35", ptr %5, i32 0, i32 27
  %134 = getelementptr inbounds %struct.anon.2, ptr %133, i32 0, i32 1
  %135 = load i32, ptr %134, align 4, !tbaa !50
  %136 = load ptr, ptr %8, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %136, i32 0, i32 24
  %138 = getelementptr inbounds %struct.anon, ptr %137, i32 0, i32 2
  store i32 %135, ptr %138, align 1, !tbaa !50
  %139 = getelementptr inbounds %"struct.ccf::cbPKT_CHANINFO_CB2005_35", ptr %5, i32 0, i32 28
  %140 = load i32, ptr %139, align 4, !tbaa !51
  %141 = load ptr, ptr %8, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %141, i32 0, i32 30
  store i32 %140, ptr %142, align 1, !tbaa !52
  %143 = getelementptr inbounds %"struct.ccf::cbPKT_CHANINFO_CB2005_35", ptr %5, i32 0, i32 29
  %144 = load i32, ptr %143, align 4, !tbaa !53
  %145 = load ptr, ptr %8, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %145, i32 0, i32 31
  store i32 %144, ptr %146, align 1, !tbaa !54
  %147 = getelementptr inbounds %"struct.ccf::cbPKT_CHANINFO_CB2005_35", ptr %5, i32 0, i32 30
  %148 = load i32, ptr %147, align 4, !tbaa !55
  %149 = load ptr, ptr %8, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %149, i32 0, i32 32
  store i32 %148, ptr %150, align 1, !tbaa !56
  %151 = getelementptr inbounds %"struct.ccf::cbPKT_CHANINFO_CB2005_35", ptr %5, i32 0, i32 31
  %152 = load i32, ptr %151, align 4, !tbaa !57
  %153 = load ptr, ptr %8, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %153, i32 0, i32 33
  store i32 %152, ptr %154, align 1, !tbaa !58
  %155 = getelementptr inbounds %"struct.ccf::cbPKT_CHANINFO_CB2005_35", ptr %5, i32 0, i32 32
  %156 = load i32, ptr %155, align 4, !tbaa !59
  %157 = load ptr, ptr %8, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %157, i32 0, i32 34
  store i32 %156, ptr %158, align 1, !tbaa !60
  %159 = getelementptr inbounds %"struct.ccf::cbPKT_CHANINFO_CB2005_35", ptr %5, i32 0, i32 33
  %160 = load i32, ptr %159, align 4, !tbaa !61
  %161 = load ptr, ptr %8, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %161, i32 0, i32 35
  store i32 %160, ptr %162, align 1, !tbaa !62
  %163 = getelementptr inbounds %"struct.ccf::cbPKT_CHANINFO_CB2005_35", ptr %5, i32 0, i32 34
  %164 = load i32, ptr %163, align 4, !tbaa !63
  %165 = load ptr, ptr %8, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %165, i32 0, i32 36
  store i32 %164, ptr %166, align 1, !tbaa !64
  %167 = getelementptr inbounds %"struct.ccf::cbPKT_CHANINFO_CB2005_35", ptr %5, i32 0, i32 35
  %168 = load i32, ptr %167, align 4, !tbaa !65
  %169 = load ptr, ptr %8, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %169, i32 0, i32 37
  store i32 %168, ptr %170, align 1, !tbaa !66
  %171 = getelementptr inbounds %"struct.ccf::cbPKT_CHANINFO_CB2005_35", ptr %5, i32 0, i32 36
  %172 = load i32, ptr %171, align 4, !tbaa !67
  %173 = load ptr, ptr %8, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %173, i32 0, i32 39
  store i32 %172, ptr %174, align 1, !tbaa !68
  %175 = getelementptr inbounds %"struct.ccf::cbPKT_CHANINFO_CB2005_35", ptr %5, i32 0, i32 37
  %176 = load i32, ptr %175, align 4, !tbaa !69
  %177 = load ptr, ptr %8, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %177, i32 0, i32 40
  store i32 %176, ptr %178, align 1, !tbaa !70
  %179 = getelementptr inbounds %"struct.ccf::cbPKT_CHANINFO_CB2005_35", ptr %5, i32 0, i32 38
  %180 = load i32, ptr %179, align 4, !tbaa !71
  %181 = load ptr, ptr %8, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %181, i32 0, i32 41
  store i32 %180, ptr %182, align 1, !tbaa !72
  %183 = load ptr, ptr %8, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %183, i32 0, i32 47
  %185 = getelementptr inbounds [5 x [4 x %struct.cbHOOP]], ptr %184, i64 0, i64 0
  %186 = getelementptr inbounds %"struct.ccf::cbPKT_CHANINFO_CB2005_35", ptr %5, i32 0, i32 43
  %187 = getelementptr inbounds [5 x [4 x %"struct.ccf::cbHOOP_10"]], ptr %186, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %185, ptr align 4 %187, 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 %188

188:                                              ; preds = %372, %29
  %189 = load i32, ptr %9, align 4, !tbaa !9
  %190 = icmp slt i32 %189, 5
  br i1 %190, label %192, label %191

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

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

372:                                              ; preds = %192
  %373 = load i32, ptr %9, align 4, !tbaa !9
  %374 = add nsw i32 %373, 1
  store i32 %374, ptr %9, align 4, !tbaa !9
  br label %188, !llvm.loop !84

375:                                              ; preds = %191
  br label %376

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

377:                                              ; preds = %376
  %378 = load i32, ptr %6, align 4, !tbaa !9
  %379 = add nsw i32 %378, 1
  store i32 %379, ptr %6, align 4, !tbaa !9
  br label %13, !llvm.loop !86

380:                                              ; preds = %16
  %381 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN14CCFUtilsBinary13ReadAsPacketsEP8_IO_FILE(ptr noundef nonnull align 8 dereferenceable(189696) %12, ptr noundef %381)
  %382 = getelementptr inbounds %class.CCFUtils, ptr %12, i32 0, i32 13
  %383 = load i8, ptr %382, align 8, !tbaa !87, !range !90, !noundef !91
  %384 = trunc i8 %383 to i1
  br i1 %384, label %385, label %413

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

386:                                              ; preds = %409, %385
  %387 = load i32, ptr %10, align 4, !tbaa !9
  %388 = icmp slt i32 %387, 160
  br i1 %388, label %390, label %389

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

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

400:                                              ; preds = %390
  %401 = getelementptr inbounds %"struct.ccf::cbPKT_CHANINFO_CB2005_35", ptr %5, i32 0, i32 30
  %402 = load i32, ptr %401, align 4, !tbaa !55
  %403 = call noundef i32 @_ZN14CCFUtilsBinary19TranslateAutoFilterEj(ptr noundef nonnull align 8 dereferenceable(189696) %12, i32 noundef %402)
  %404 = load ptr, ptr %11, align 8, !tbaa !5
  %405 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %404, i32 0, i32 32
  store i32 %403, ptr %405, align 1, !tbaa !56
  %406 = load ptr, ptr %11, align 8, !tbaa !5
  %407 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %406, i32 0, i32 36
  store i32 2, ptr %407, align 1, !tbaa !64
  br label %408

408:                                              ; preds = %400, %390
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %409

409:                                              ; preds = %408
  %410 = load i32, ptr %10, align 4, !tbaa !9
  %411 = add nsw i32 %410, 1
  store i32 %411, ptr %10, align 4, !tbaa !9
  br label %386, !llvm.loop !92

412:                                              ; preds = %389
  br label %413

413:                                              ; preds = %412, %380
  store i32 1, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 676, 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_35E", !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, !7, i64 276, !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, !13, i64 332, !13, i64 334, !7, i64 336, !7, i64 516}
!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 = !{!7, !7, i64 0}
!51 = !{!12, !10, i64 284}
!52 = !{!17, !10, i64 300}
!53 = !{!12, !10, i64 288}
!54 = !{!17, !10, i64 304}
!55 = !{!12, !10, i64 292}
!56 = !{!17, !10, i64 308}
!57 = !{!12, !10, i64 296}
!58 = !{!17, !10, i64 312}
!59 = !{!12, !10, i64 300}
!60 = !{!17, !10, i64 316}
!61 = !{!12, !10, i64 304}
!62 = !{!17, !10, i64 320}
!63 = !{!12, !10, i64 308}
!64 = !{!17, !10, i64 324}
!65 = !{!12, !10, i64 312}
!66 = !{!17, !10, i64 328}
!67 = !{!12, !10, i64 316}
!68 = !{!17, !10, i64 336}
!69 = !{!12, !10, i64 320}
!70 = !{!17, !10, i64 340}
!71 = !{!12, !10, i64 324}
!72 = !{!17, !10, i64 344}
!73 = !{!74, !10, i64 0}
!74 = !{!"_ZTSN3ccf22cbMANUALUNITMAPPING_34E", !10, i64 0, !7, i64 4, !7, i64 12, !75, i64 28, !10, i64 32}
!75 = !{!"float", !7, i64 0}
!76 = !{!77, !13, i64 0}
!77 = !{!"_ZTS19cbMANUALUNITMAPPING", !13, i64 0, !7, i64 2, !7, i64 8, !13, i64 26, !10, i64 28}
!78 = !{!75, !75, i64 0}
!79 = !{!13, !13, i64 0}
!80 = !{!74, !75, i64 28}
!81 = !{!77, !13, i64 26}
!82 = !{!74, !10, i64 32}
!83 = !{!77, !10, i64 28}
!84 = distinct !{!84, !85}
!85 = !{!"llvm.loop.mustprogress"}
!86 = distinct !{!86, !85}
!87 = !{!88, !89, i64 72}
!88 = !{!"_ZTS8CCFUtils", !6, i64 8, !89, i64 16, !6, i64 24, !89, i64 32, !6, i64 40, !10, i64 48, !10, i64 52, !10, i64 56, !6, i64 64, !89, i64 72, !89, i64 73}
!89 = !{!"bool", !7, i64 0}
!90 = !{i8 0, i8 2}
!91 = !{}
!92 = distinct !{!92, !85}


; 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_35" = 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, %union.anon.1, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, [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] }
%union.anon.1 = type { %struct.anon.2 }
%struct.anon.2 = type { i32, i32 }
%"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_35EP8_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_35", align 4
  call void @llvm.lifetime.start.p0(i64 676, 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 516
  %27 = getelementptr inbounds i8, ptr %3, i64 336
  %28 = getelementptr inbounds i8, ptr %3, i64 340
  %29 = getelementptr inbounds i8, ptr %3, i64 348
  %30 = getelementptr inbounds i8, ptr %3, i64 356
  %31 = getelementptr inbounds i8, ptr %3, i64 364
  %32 = getelementptr inbounds i8, ptr %3, i64 368
  %33 = getelementptr inbounds i8, ptr %3, i64 372
  %34 = getelementptr inbounds i8, ptr %3, i64 376
  %35 = getelementptr inbounds i8, ptr %3, i64 384
  %36 = getelementptr inbounds i8, ptr %3, i64 392
  %37 = getelementptr inbounds i8, ptr %3, i64 400
  %38 = getelementptr inbounds i8, ptr %3, i64 404
  %39 = getelementptr inbounds i8, ptr %3, i64 408
  %40 = getelementptr inbounds i8, ptr %3, i64 412
  %41 = getelementptr inbounds i8, ptr %3, i64 420
  %42 = getelementptr inbounds i8, ptr %3, i64 428
  %43 = getelementptr inbounds i8, ptr %3, i64 436
  %44 = getelementptr inbounds i8, ptr %3, i64 440
  %45 = getelementptr inbounds i8, ptr %3, i64 444
  %46 = getelementptr inbounds i8, ptr %3, i64 448
  %47 = getelementptr inbounds i8, ptr %3, i64 456
  %48 = getelementptr inbounds i8, ptr %3, i64 464
  %49 = getelementptr inbounds i8, ptr %3, i64 472
  %50 = getelementptr inbounds i8, ptr %3, i64 476
  %51 = getelementptr inbounds i8, ptr %3, i64 480
  %52 = getelementptr inbounds i8, ptr %3, i64 484
  %53 = getelementptr inbounds i8, ptr %3, i64 492
  %54 = getelementptr inbounds i8, ptr %3, i64 500
  %55 = getelementptr inbounds i8, ptr %3, i64 508
  %56 = getelementptr inbounds i8, ptr %3, i64 512
  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(676) %3, i8 0, i64 676, i1 false)
  %64 = call i64 @fread(ptr noundef nonnull %3, i64 noundef 1, i64 noundef 676, 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 !30
  %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 !30
  %91 = load i32, ptr %20, align 4, !tbaa !30
  %92 = getelementptr inbounds i8, ptr %63, i64 288
  store i32 %91, ptr %92, align 4, !tbaa !30
  %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 !31
  %100 = getelementptr inbounds i8, ptr %63, i64 344
  store i32 %99, ptr %100, align 4, !tbaa !32
  %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 !33
  %104 = trunc i32 %103 to i16
  store i16 %104, ptr %102, align 4, !tbaa !36
  %105 = getelementptr inbounds i8, ptr %63, i64 362
  %106 = load <2 x float>, ptr %28, align 4, !tbaa !38
  %107 = fptosi <2 x float> %106 to <2 x i16>
  store <2 x i16> %107, ptr %105, align 2, !tbaa !39
  %108 = getelementptr inbounds i8, ptr %63, i64 366
  store i16 0, ptr %108, align 2, !tbaa !39
  %109 = getelementptr inbounds i8, ptr %63, i64 368
  %110 = load <2 x float>, ptr %29, align 4, !tbaa !38
  %111 = fptosi <2 x float> %110 to <2 x i16>
  store <2 x i16> %111, ptr %109, align 4, !tbaa !39
  %112 = getelementptr inbounds i8, ptr %63, i64 374
  %113 = load <2 x float>, ptr %30, align 4, !tbaa !38
  %114 = fptosi <2 x float> %113 to <2 x i16>
  store <2 x i16> %114, ptr %112, align 2, !tbaa !39
  %115 = getelementptr inbounds i8, ptr %63, i64 380
  store <2 x i16> %114, ptr %115, align 8, !tbaa !39
  %116 = load float, ptr %31, align 4, !tbaa !40
  %117 = fptosi float %116 to i16
  %118 = getelementptr inbounds i8, ptr %63, i64 386
  store i16 %117, ptr %118, align 2, !tbaa !41
  %119 = load i32, ptr %32, align 4, !tbaa !42
  %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 !43
  %122 = load i32, ptr %33, align 4, !tbaa !33
  %123 = trunc i32 %122 to i16
  %124 = getelementptr inbounds i8, ptr %63, i64 392
  store i16 %123, ptr %124, align 4, !tbaa !36
  %125 = getelementptr inbounds i8, ptr %63, i64 394
  %126 = load <2 x float>, ptr %34, align 4, !tbaa !38
  %127 = fptosi <2 x float> %126 to <2 x i16>
  store <2 x i16> %127, ptr %125, align 2, !tbaa !39
  %128 = getelementptr inbounds i8, ptr %63, i64 398
  store i16 0, ptr %128, align 2, !tbaa !39
  %129 = getelementptr inbounds i8, ptr %63, i64 400
  %130 = load <2 x float>, ptr %35, align 4, !tbaa !38
  %131 = fptosi <2 x float> %130 to <2 x i16>
  store <2 x i16> %131, ptr %129, align 4, !tbaa !39
  %132 = getelementptr inbounds i8, ptr %63, i64 406
  %133 = load <2 x float>, ptr %36, align 4, !tbaa !38
  %134 = fptosi <2 x float> %133 to <2 x i16>
  store <2 x i16> %134, ptr %132, align 2, !tbaa !39
  %135 = getelementptr inbounds i8, ptr %63, i64 412
  store <2 x i16> %134, ptr %135, align 8, !tbaa !39
  %136 = load float, ptr %37, align 4, !tbaa !40
  %137 = fptosi float %136 to i16
  %138 = getelementptr inbounds i8, ptr %63, i64 418
  store i16 %137, ptr %138, align 2, !tbaa !41
  %139 = load i32, ptr %38, align 4, !tbaa !42
  %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 !43
  %142 = load i32, ptr %39, align 4, !tbaa !33
  %143 = trunc i32 %142 to i16
  %144 = getelementptr inbounds i8, ptr %63, i64 424
  store i16 %143, ptr %144, align 4, !tbaa !36
  %145 = getelementptr inbounds i8, ptr %63, i64 426
  %146 = load <2 x float>, ptr %40, align 4, !tbaa !38
  %147 = fptosi <2 x float> %146 to <2 x i16>
  store <2 x i16> %147, ptr %145, align 2, !tbaa !39
  %148 = getelementptr inbounds i8, ptr %63, i64 430
  store i16 0, ptr %148, align 2, !tbaa !39
  %149 = getelementptr inbounds i8, ptr %63, i64 432
  %150 = load <2 x float>, ptr %41, align 4, !tbaa !38
  %151 = fptosi <2 x float> %150 to <2 x i16>
  store <2 x i16> %151, ptr %149, align 4, !tbaa !39
  %152 = getelementptr inbounds i8, ptr %63, i64 438
  %153 = load <2 x float>, ptr %42, align 4, !tbaa !38
  %154 = fptosi <2 x float> %153 to <2 x i16>
  store <2 x i16> %154, ptr %152, align 2, !tbaa !39
  %155 = getelementptr inbounds i8, ptr %63, i64 444
  store <2 x i16> %154, ptr %155, align 8, !tbaa !39
  %156 = load float, ptr %43, align 4, !tbaa !40
  %157 = fptosi float %156 to i16
  %158 = getelementptr inbounds i8, ptr %63, i64 450
  store i16 %157, ptr %158, align 2, !tbaa !41
  %159 = load i32, ptr %44, align 4, !tbaa !42
  %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 !43
  %162 = load i32, ptr %45, align 4, !tbaa !33
  %163 = trunc i32 %162 to i16
  %164 = getelementptr inbounds i8, ptr %63, i64 456
  store i16 %163, ptr %164, align 4, !tbaa !36
  %165 = getelementptr inbounds i8, ptr %63, i64 458
  %166 = load <2 x float>, ptr %46, align 4, !tbaa !38
  %167 = fptosi <2 x float> %166 to <2 x i16>
  store <2 x i16> %167, ptr %165, align 2, !tbaa !39
  %168 = getelementptr inbounds i8, ptr %63, i64 462
  store i16 0, ptr %168, align 2, !tbaa !39
  %169 = getelementptr inbounds i8, ptr %63, i64 464
  %170 = load <2 x float>, ptr %47, align 4, !tbaa !38
  %171 = fptosi <2 x float> %170 to <2 x i16>
  store <2 x i16> %171, ptr %169, align 4, !tbaa !39
  %172 = getelementptr inbounds i8, ptr %63, i64 470
  %173 = load <2 x float>, ptr %48, align 4, !tbaa !38
  %174 = fptosi <2 x float> %173 to <2 x i16>
  store <2 x i16> %174, ptr %172, align 2, !tbaa !39
  %175 = getelementptr inbounds i8, ptr %63, i64 476
  store <2 x i16> %174, ptr %175, align 8, !tbaa !39
  %176 = load float, ptr %49, align 4, !tbaa !40
  %177 = fptosi float %176 to i16
  %178 = getelementptr inbounds i8, ptr %63, i64 482
  store i16 %177, ptr %178, align 2, !tbaa !41
  %179 = load i32, ptr %50, align 4, !tbaa !42
  %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 !43
  %182 = load i32, ptr %51, align 4, !tbaa !33
  %183 = trunc i32 %182 to i16
  %184 = getelementptr inbounds i8, ptr %63, i64 488
  store i16 %183, ptr %184, align 4, !tbaa !36
  %185 = getelementptr inbounds i8, ptr %63, i64 490
  %186 = load <2 x float>, ptr %52, align 4, !tbaa !38
  %187 = fptosi <2 x float> %186 to <2 x i16>
  store <2 x i16> %187, ptr %185, align 2, !tbaa !39
  %188 = getelementptr inbounds i8, ptr %63, i64 494
  store i16 0, ptr %188, align 2, !tbaa !39
  %189 = getelementptr inbounds i8, ptr %63, i64 496
  %190 = load <2 x float>, ptr %53, align 4, !tbaa !38
  %191 = fptosi <2 x float> %190 to <2 x i16>
  store <2 x i16> %191, ptr %189, align 4, !tbaa !39
  %192 = getelementptr inbounds i8, ptr %63, i64 502
  %193 = load <2 x float>, ptr %54, align 4, !tbaa !38
  %194 = fptosi <2 x float> %193 to <2 x i16>
  store <2 x i16> %194, ptr %192, align 2, !tbaa !39
  %195 = getelementptr inbounds i8, ptr %63, i64 508
  store <2 x i16> %194, ptr %195, align 8, !tbaa !39
  %196 = load float, ptr %55, align 4, !tbaa !40
  %197 = fptosi float %196 to i16
  %198 = getelementptr inbounds i8, ptr %63, i64 514
  store i16 %197, ptr %198, align 2, !tbaa !41
  %199 = load i32, ptr %56, align 4, !tbaa !42
  %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 !43
  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 !44

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 !46
  %209 = getelementptr inbounds i8, ptr %203, i64 324
  store i32 2, ptr %209, align 8, !tbaa !47
  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 !48

.loopexit:                                        ; preds = %210, %57
  call void @llvm.lifetime.end.p0(i64 676, 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_35E", !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, !8, i64 276, !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, !16, i64 332, !16, i64 334, !8, i64 336, !8, i64 516}
!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 = !{!8, !8, i64 0}
!31 = !{!15, !11, i64 324}
!32 = !{!20, !11, i64 344}
!33 = !{!34, !11, i64 0}
!34 = !{!"_ZTSN3ccf22cbMANUALUNITMAPPING_34E", !11, i64 0, !8, i64 4, !8, i64 12, !35, i64 28, !11, i64 32}
!35 = !{!"float", !8, i64 0}
!36 = !{!37, !16, i64 0}
!37 = !{!"_ZTS19cbMANUALUNITMAPPING", !16, i64 0, !8, i64 2, !8, i64 8, !16, i64 26, !11, i64 28}
!38 = !{!35, !35, i64 0}
!39 = !{!16, !16, i64 0}
!40 = !{!34, !35, i64 28}
!41 = !{!37, !16, i64 26}
!42 = !{!34, !11, i64 32}
!43 = !{!37, !11, i64 28}
!44 = distinct !{!44, !45}
!45 = !{!"llvm.loop.mustprogress"}
!46 = !{!20, !11, i64 308}
!47 = !{!20, !11, i64 324}
!48 = distinct !{!48, !45}


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