; LLVM IR from CerebusOSS/CereLink :: cbhwlib/CCFUtilsBinary.ll (ZN14CCFUtilsBinary21ReadCCFData_cb2005_31EP8_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_31" = 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_31"], [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_31" = type { i16, i16, i16, i16 }
%"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_31EP8_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_31", align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca float, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %13 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 532, 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 %14

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

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

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

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

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

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

190:                                              ; preds = %186
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %191 = getelementptr inbounds %"struct.ccf::cbPKT_CHANINFO_CB2005_31", ptr %5, i32 0, i32 41
  %192 = load i32, ptr %9, align 4, !tbaa !9
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds [5 x %"struct.ccf::cbMANUALUNITMAPPING_31"], ptr %191, i64 0, i64 %193
  %195 = getelementptr inbounds %"struct.ccf::cbMANUALUNITMAPPING_31", ptr %194, i32 0, i32 0
  %196 = load i16, ptr %195, align 4, !tbaa !75
  %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 !77
  %203 = getelementptr inbounds %"struct.ccf::cbPKT_CHANINFO_CB2005_31", 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_31"], ptr %203, i64 0, i64 %205
  %207 = getelementptr inbounds %"struct.ccf::cbMANUALUNITMAPPING_31", ptr %206, i32 0, i32 1
  %208 = load i16, ptr %207, align 2, !tbaa !79
  %209 = load ptr, ptr %8, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %209, i32 0, i32 46
  %211 = load i32, ptr %9, align 4, !tbaa !9
  %212 = sext i32 %211 to i64
  %213 = getelementptr inbounds [5 x %struct.cbMANUALUNITMAPPING], ptr %210, i64 0, i64 %212
  %214 = getelementptr inbounds %struct.cbMANUALUNITMAPPING, ptr %213, i32 0, i32 1
  %215 = getelementptr inbounds [3 x i16], ptr %214, i64 0, i64 0
  store i16 %208, ptr %215, align 1, !tbaa !80
  %216 = getelementptr inbounds %"struct.ccf::cbPKT_CHANINFO_CB2005_31", ptr %5, i32 0, i32 41
  %217 = load i32, ptr %9, align 4, !tbaa !9
  %218 = sext i32 %217 to i64
  %219 = getelementptr inbounds [5 x %"struct.ccf::cbMANUALUNITMAPPING_31"], ptr %216, i64 0, i64 %218
  %220 = getelementptr inbounds %"struct.ccf::cbMANUALUNITMAPPING_31", ptr %219, i32 0, i32 2
  %221 = load i16, ptr %220, align 4, !tbaa !81
  %222 = load ptr, ptr %8, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %222, i32 0, i32 46
  %224 = load i32, ptr %9, align 4, !tbaa !9
  %225 = sext i32 %224 to i64
  %226 = getelementptr inbounds [5 x %struct.cbMANUALUNITMAPPING], ptr %223, i64 0, i64 %225
  %227 = getelementptr inbounds %struct.cbMANUALUNITMAPPING, ptr %226, i32 0, i32 1
  %228 = getelementptr inbounds [3 x i16], ptr %227, i64 0, i64 1
  store i16 %221, ptr %228, align 1, !tbaa !80
  %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 2
  store i16 0, ptr %235, align 1, !tbaa !80
  %236 = getelementptr inbounds %"struct.ccf::cbPKT_CHANINFO_CB2005_31", ptr %5, i32 0, i32 41
  %237 = load i32, ptr %9, align 4, !tbaa !9
  %238 = sext i32 %237 to i64
  %239 = getelementptr inbounds [5 x %"struct.ccf::cbMANUALUNITMAPPING_31"], ptr %236, i64 0, i64 %238
  %240 = getelementptr inbounds %"struct.ccf::cbMANUALUNITMAPPING_31", ptr %239, i32 0, i32 3
  %241 = load i16, ptr %240, align 2, !tbaa !82
  %242 = uitofp i16 %241 to float
  store float %242, ptr %10, align 4, !tbaa !83
  %243 = load float, ptr %10, align 4, !tbaa !83
  %244 = fcmp une float %243, 0.000000e+00
  br i1 %244, label %245, label %291

245:                                              ; preds = %190
  %246 = load ptr, ptr %8, align 8, !tbaa !5
  %247 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %246, i32 0, i32 46
  %248 = load i32, ptr %9, align 4, !tbaa !9
  %249 = sext i32 %248 to i64
  %250 = getelementptr inbounds [5 x %struct.cbMANUALUNITMAPPING], ptr %247, i64 0, i64 %249
  %251 = getelementptr inbounds %struct.cbMANUALUNITMAPPING, ptr %250, i32 0, i32 4
  store i32 1, ptr %251, align 1, !tbaa !85
  %252 = load float, ptr %10, align 4, !tbaa !83
  %253 = load float, ptr %10, align 4, !tbaa !83
  %254 = fmul float %252, %253
  %255 = fdiv float 1.000000e+00, %254
  %256 = fptosi float %255 to i16
  %257 = load ptr, ptr %8, align 8, !tbaa !5
  %258 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %257, i32 0, i32 46
  %259 = load i32, ptr %9, align 4, !tbaa !9
  %260 = sext i32 %259 to i64
  %261 = getelementptr inbounds [5 x %struct.cbMANUALUNITMAPPING], ptr %258, i64 0, i64 %260
  %262 = getelementptr inbounds %struct.cbMANUALUNITMAPPING, ptr %261, i32 0, i32 2
  %263 = getelementptr inbounds [3 x [3 x i16]], ptr %262, i64 0, i64 0
  %264 = getelementptr inbounds [3 x i16], ptr %263, i64 0, i64 0
  store i16 %256, ptr %264, align 1, !tbaa !80
  %265 = load float, ptr %10, align 4, !tbaa !83
  %266 = load float, ptr %10, align 4, !tbaa !83
  %267 = fmul float %265, %266
  %268 = fdiv float 1.000000e+00, %267
  %269 = fptosi float %268 to i16
  %270 = load ptr, ptr %8, align 8, !tbaa !5
  %271 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %270, i32 0, i32 46
  %272 = load i32, ptr %9, align 4, !tbaa !9
  %273 = sext i32 %272 to i64
  %274 = getelementptr inbounds [5 x %struct.cbMANUALUNITMAPPING], ptr %271, i64 0, i64 %273
  %275 = getelementptr inbounds %struct.cbMANUALUNITMAPPING, ptr %274, i32 0, i32 2
  %276 = getelementptr inbounds [3 x [3 x i16]], ptr %275, i64 0, i64 1
  %277 = getelementptr inbounds [3 x i16], ptr %276, i64 0, i64 1
  store i16 %269, ptr %277, align 1, !tbaa !80
  %278 = load float, ptr %10, align 4, !tbaa !83
  %279 = load float, ptr %10, align 4, !tbaa !83
  %280 = fmul float %278, %279
  %281 = fdiv float 1.000000e+00, %280
  %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 2
  %290 = getelementptr inbounds [3 x i16], ptr %289, i64 0, i64 2
  store i16 %282, ptr %290, align 1, !tbaa !80
  br label %291

291:                                              ; preds = %245, %190
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %292

292:                                              ; preds = %291
  %293 = load i32, ptr %9, align 4, !tbaa !9
  %294 = add nsw i32 %293, 1
  store i32 %294, ptr %9, align 4, !tbaa !9
  br label %186, !llvm.loop !86

295:                                              ; preds = %189
  br label %296

296:                                              ; preds = %295, %18
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %297

297:                                              ; preds = %296
  %298 = load i32, ptr %6, align 4, !tbaa !9
  %299 = add nsw i32 %298, 1
  store i32 %299, ptr %6, align 4, !tbaa !9
  br label %14, !llvm.loop !88

300:                                              ; preds = %17
  %301 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN14CCFUtilsBinary13ReadAsPacketsEP8_IO_FILE(ptr noundef nonnull align 8 dereferenceable(189696) %13, ptr noundef %301)
  %302 = getelementptr inbounds %class.CCFUtils, ptr %13, i32 0, i32 13
  %303 = load i8, ptr %302, align 8, !tbaa !89, !range !92, !noundef !93
  %304 = trunc i8 %303 to i1
  br i1 %304, label %305, label %333

305:                                              ; preds = %300
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %306

306:                                              ; preds = %329, %305
  %307 = load i32, ptr %11, align 4, !tbaa !9
  %308 = icmp slt i32 %307, 160
  br i1 %308, label %310, label %309

309:                                              ; preds = %306
  store i32 8, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %332

310:                                              ; preds = %306
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %311 = getelementptr inbounds %class.CCFUtilsBinary, ptr %13, i32 0, i32 2
  %312 = getelementptr inbounds %"struct.ccf::ccfBinaryData", ptr %311, i32 0, i32 0
  %313 = load i32, ptr %11, align 4, !tbaa !9
  %314 = sext i32 %313 to i64
  %315 = getelementptr inbounds [160 x %struct.cbPKT_CHANINFO], ptr %312, i64 0, i64 %314
  store ptr %315, ptr %12, align 8, !tbaa !5
  %316 = load ptr, ptr %12, align 8, !tbaa !5
  %317 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %316, i32 0, i32 1
  %318 = load i32, ptr %317, align 1, !tbaa !16
  %319 = icmp ne i32 %318, 0
  br i1 %319, label %320, label %328

320:                                              ; preds = %310
  %321 = getelementptr inbounds %"struct.ccf::cbPKT_CHANINFO_CB2005_31", ptr %5, i32 0, i32 31
  %322 = load i32, ptr %321, align 4, !tbaa !57
  %323 = call noundef i32 @_ZN14CCFUtilsBinary19TranslateAutoFilterEj(ptr noundef nonnull align 8 dereferenceable(189696) %13, i32 noundef %322)
  %324 = load ptr, ptr %12, align 8, !tbaa !5
  %325 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %324, i32 0, i32 32
  store i32 %323, ptr %325, align 1, !tbaa !58
  %326 = load ptr, ptr %12, align 8, !tbaa !5
  %327 = getelementptr inbounds %struct.cbPKT_CHANINFO, ptr %326, i32 0, i32 36
  store i32 2, ptr %327, align 1, !tbaa !66
  br label %328

328:                                              ; preds = %320, %310
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %329

329:                                              ; preds = %328
  %330 = load i32, ptr %11, align 4, !tbaa !9
  %331 = add nsw i32 %330, 1
  store i32 %331, ptr %11, align 4, !tbaa !9
  br label %306, !llvm.loop !94

332:                                              ; preds = %309
  br label %333

333:                                              ; preds = %332, %300
  store i32 1, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 532, 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_31E", !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 372}
!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, !13, i64 0}
!76 = !{!"_ZTSN3ccf22cbMANUALUNITMAPPING_31E", !13, i64 0, !13, i64 2, !13, i64 4, !13, i64 6}
!77 = !{!78, !13, i64 0}
!78 = !{!"_ZTS19cbMANUALUNITMAPPING", !13, i64 0, !7, i64 2, !7, i64 8, !13, i64 26, !10, i64 28}
!79 = !{!76, !13, i64 2}
!80 = !{!13, !13, i64 0}
!81 = !{!76, !13, i64 4}
!82 = !{!76, !13, i64 6}
!83 = !{!84, !84, i64 0}
!84 = !{!"float", !7, i64 0}
!85 = !{!78, !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_31" = 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_31"], [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_31" = type { i16, i16, i16, i16 }
%"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_31EP8_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_31", align 4
  call void @llvm.lifetime.start.p0(i64 532, 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 372
  %27 = getelementptr inbounds i8, ptr %3, i64 332
  %28 = getelementptr inbounds i8, ptr %3, i64 336
  %29 = getelementptr inbounds i8, ptr %3, i64 338
  %30 = getelementptr inbounds i8, ptr %3, i64 340
  %31 = getelementptr inbounds i8, ptr %3, i64 344
  %32 = getelementptr inbounds i8, ptr %3, i64 346
  %33 = getelementptr inbounds i8, ptr %3, i64 348
  %34 = getelementptr inbounds i8, ptr %3, i64 352
  %35 = getelementptr inbounds i8, ptr %3, i64 354
  %36 = getelementptr inbounds i8, ptr %3, i64 356
  %37 = getelementptr inbounds i8, ptr %3, i64 360
  %38 = getelementptr inbounds i8, ptr %3, i64 362
  %39 = getelementptr inbounds i8, ptr %3, i64 364
  %40 = getelementptr inbounds i8, ptr %3, i64 368
  %41 = getelementptr inbounds i8, ptr %3, i64 370
  br label %47

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

.preheader:                                       ; preds = %42
  %46 = load i32, ptr %22, align 4
  br label %167

47:                                               ; preds = %2, %.loopexit85
  %indvars.iv = phi i64 [ 0, %2 ], [ %indvars.iv.next, %.loopexit85 ]
  %48 = 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) %48)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(532) %3, i8 0, i64 532, i1 false)
  %49 = call i64 @fread(ptr noundef nonnull %3, i64 noundef 1, i64 noundef 532, ptr noundef %1)
  %50 = load i32, ptr %5, align 4, !tbaa !14
  %.not83 = icmp eq i32 %50, 0
  br i1 %.not83, label %.loopexit85, label %51

51:                                               ; preds = %47
  %52 = getelementptr inbounds i8, ptr %48, i64 16
  store i32 %50, ptr %52, align 4, !tbaa !19
  %53 = getelementptr inbounds i8, ptr %48, i64 20
  %54 = load <4 x i32>, ptr %6, align 4, !tbaa !25
  store <4 x i32> %54, ptr %53, align 8, !tbaa !25
  %55 = getelementptr inbounds i8, ptr %48, i64 36
  %56 = load <4 x i32>, ptr %7, align 4, !tbaa !25
  store <4 x i32> %56, ptr %55, align 8, !tbaa !25
  %57 = load i32, ptr %8, align 4, !tbaa !26
  %58 = getelementptr inbounds i8, ptr %48, i64 52
  store i32 %57, ptr %58, align 8, !tbaa !27
  %59 = getelementptr inbounds i8, ptr %48, i64 56
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(24) %59, ptr noundef nonnull align 4 dereferenceable(24) %9, i64 24, i1 false)
  %60 = getelementptr inbounds i8, ptr %48, i64 80
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(40) %60, ptr noundef nonnull align 4 dereferenceable(40) %10, i64 40, i1 false)
  %61 = getelementptr inbounds i8, ptr %48, i64 120
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(40) %61, ptr noundef nonnull align 4 dereferenceable(40) %11, i64 24, i1 false)
  %62 = getelementptr inbounds i8, ptr %48, i64 144
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(40) %62, ptr noundef nonnull align 4 dereferenceable(40) %12, i64 40, i1 false)
  %63 = getelementptr inbounds i8, ptr %48, i64 184
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %63, ptr noundef nonnull align 4 dereferenceable(16) %13, i64 16, i1 false)
  %64 = load i32, ptr %14, align 4, !tbaa !28
  %65 = getelementptr inbounds i8, ptr %48, i64 200
  store i32 %64, ptr %65, align 4, !tbaa !29
  %66 = getelementptr inbounds i8, ptr %48, i64 204
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %66, ptr noundef nonnull align 4 dereferenceable(16) %15, i64 16, i1 false)
  %67 = getelementptr inbounds i8, ptr %48, i64 220
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %67, ptr noundef nonnull align 4 dereferenceable(24) %16, i64 24, i1 false)
  %68 = getelementptr inbounds i8, ptr %48, i64 244
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %68, ptr noundef nonnull align 4 dereferenceable(24) %17, i64 24, i1 false)
  %69 = getelementptr inbounds i8, ptr %48, i64 268
  %70 = load <4 x i32>, ptr %18, align 4, !tbaa !25
  store <4 x i32> %70, ptr %69, align 8, !tbaa !25
  %71 = load i32, ptr %19, align 4, !tbaa !30
  %72 = trunc i32 %71 to i16
  %73 = getelementptr inbounds i8, ptr %48, i64 284
  store i16 %72, ptr %73, align 8, !tbaa !31
  %74 = lshr i32 %71, 16
  %75 = trunc nuw i32 %74 to i16
  %76 = getelementptr inbounds i8, ptr %48, i64 286
  store i16 %75, ptr %76, align 2, !tbaa !31
  %77 = load i32, ptr %20, align 4, !tbaa !32
  %78 = getelementptr inbounds i8, ptr %48, i64 288
  store i32 %77, ptr %78, align 4, !tbaa !31
  %79 = getelementptr inbounds i8, ptr %48, i64 300
  %80 = load <4 x i32>, ptr %21, align 4, !tbaa !25
  store <4 x i32> %80, ptr %79, align 8, !tbaa !25
  %81 = getelementptr inbounds i8, ptr %48, i64 316
  %82 = load <4 x i32>, ptr %23, align 4, !tbaa !25
  store <4 x i32> %82, ptr %81, align 8, !tbaa !25
  %83 = getelementptr inbounds i8, ptr %48, i64 336
  %84 = load <2 x i32>, ptr %24, align 4, !tbaa !25
  store <2 x i32> %84, ptr %83, align 4, !tbaa !25
  %85 = load i32, ptr %25, align 4, !tbaa !33
  %86 = getelementptr inbounds i8, ptr %48, i64 344
  store i32 %85, ptr %86, align 4, !tbaa !34
  %87 = getelementptr inbounds i8, ptr %48, i64 520
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(160) %87, ptr noundef nonnull align 4 dereferenceable(160) %26, i64 160, i1 false)
  %88 = getelementptr inbounds i8, ptr %48, i64 360
  %89 = load <2 x i16>, ptr %27, align 4, !tbaa !35
  store <2 x i16> %89, ptr %88, align 4, !tbaa !35
  %90 = load i16, ptr %28, align 4, !tbaa !36
  %91 = getelementptr inbounds i8, ptr %48, i64 364
  store i16 %90, ptr %91, align 8, !tbaa !35
  %92 = getelementptr inbounds i8, ptr %48, i64 366
  store i16 0, ptr %92, align 2, !tbaa !35
  %93 = load i16, ptr %29, align 2, !tbaa !38
  %.not84 = icmp eq i16 %93, 0
  br i1 %.not84, label %103, label %94

94:                                               ; preds = %51
  %95 = uitofp i16 %93 to float
  %96 = getelementptr inbounds i8, ptr %48, i64 388
  store i32 1, ptr %96, align 8, !tbaa !39
  %97 = fmul float %95, %95
  %98 = fdiv float 1.000000e+00, %97
  %99 = fptosi float %98 to i16
  %100 = getelementptr inbounds i8, ptr %48, i64 368
  store i16 %99, ptr %100, align 4, !tbaa !35
  %101 = getelementptr inbounds i8, ptr %48, i64 376
  store i16 %99, ptr %101, align 4, !tbaa !35
  %102 = getelementptr inbounds i8, ptr %48, i64 384
  store i16 %99, ptr %102, align 4, !tbaa !35
  br label %103

103:                                              ; preds = %94, %51
  %104 = getelementptr inbounds i8, ptr %48, i64 392
  %105 = load <2 x i16>, ptr %30, align 4, !tbaa !35
  store <2 x i16> %105, ptr %104, align 4, !tbaa !35
  %106 = load i16, ptr %31, align 4, !tbaa !36
  %107 = getelementptr inbounds i8, ptr %48, i64 396
  store i16 %106, ptr %107, align 8, !tbaa !35
  %108 = getelementptr inbounds i8, ptr %48, i64 398
  store i16 0, ptr %108, align 2, !tbaa !35
  %109 = load i16, ptr %32, align 2, !tbaa !38
  %.not84.1 = icmp eq i16 %109, 0
  br i1 %.not84.1, label %119, label %110

110:                                              ; preds = %103
  %111 = uitofp i16 %109 to float
  %112 = getelementptr inbounds i8, ptr %48, i64 420
  store i32 1, ptr %112, align 8, !tbaa !39
  %113 = fmul float %111, %111
  %114 = fdiv float 1.000000e+00, %113
  %115 = fptosi float %114 to i16
  %116 = getelementptr inbounds i8, ptr %48, i64 400
  store i16 %115, ptr %116, align 4, !tbaa !35
  %117 = getelementptr inbounds i8, ptr %48, i64 408
  store i16 %115, ptr %117, align 4, !tbaa !35
  %118 = getelementptr inbounds i8, ptr %48, i64 416
  store i16 %115, ptr %118, align 4, !tbaa !35
  br label %119

119:                                              ; preds = %110, %103
  %120 = getelementptr inbounds i8, ptr %48, i64 424
  %121 = load <2 x i16>, ptr %33, align 4, !tbaa !35
  store <2 x i16> %121, ptr %120, align 4, !tbaa !35
  %122 = load i16, ptr %34, align 4, !tbaa !36
  %123 = getelementptr inbounds i8, ptr %48, i64 428
  store i16 %122, ptr %123, align 8, !tbaa !35
  %124 = getelementptr inbounds i8, ptr %48, i64 430
  store i16 0, ptr %124, align 2, !tbaa !35
  %125 = load i16, ptr %35, align 2, !tbaa !38
  %.not84.2 = icmp eq i16 %125, 0
  br i1 %.not84.2, label %135, label %126

126:                                              ; preds = %119
  %127 = uitofp i16 %125 to float
  %128 = getelementptr inbounds i8, ptr %48, i64 452
  store i32 1, ptr %128, align 8, !tbaa !39
  %129 = fmul float %127, %127
  %130 = fdiv float 1.000000e+00, %129
  %131 = fptosi float %130 to i16
  %132 = getelementptr inbounds i8, ptr %48, i64 432
  store i16 %131, ptr %132, align 4, !tbaa !35
  %133 = getelementptr inbounds i8, ptr %48, i64 440
  store i16 %131, ptr %133, align 4, !tbaa !35
  %134 = getelementptr inbounds i8, ptr %48, i64 448
  store i16 %131, ptr %134, align 4, !tbaa !35
  br label %135

135:                                              ; preds = %126, %119
  %136 = getelementptr inbounds i8, ptr %48, i64 456
  %137 = load <2 x i16>, ptr %36, align 4, !tbaa !35
  store <2 x i16> %137, ptr %136, align 4, !tbaa !35
  %138 = load i16, ptr %37, align 4, !tbaa !36
  %139 = getelementptr inbounds i8, ptr %48, i64 460
  store i16 %138, ptr %139, align 8, !tbaa !35
  %140 = getelementptr inbounds i8, ptr %48, i64 462
  store i16 0, ptr %140, align 2, !tbaa !35
  %141 = load i16, ptr %38, align 2, !tbaa !38
  %.not84.3 = icmp eq i16 %141, 0
  br i1 %.not84.3, label %151, label %142

142:                                              ; preds = %135
  %143 = uitofp i16 %141 to float
  %144 = getelementptr inbounds i8, ptr %48, i64 484
  store i32 1, ptr %144, align 8, !tbaa !39
  %145 = fmul float %143, %143
  %146 = fdiv float 1.000000e+00, %145
  %147 = fptosi float %146 to i16
  %148 = getelementptr inbounds i8, ptr %48, i64 464
  store i16 %147, ptr %148, align 4, !tbaa !35
  %149 = getelementptr inbounds i8, ptr %48, i64 472
  store i16 %147, ptr %149, align 4, !tbaa !35
  %150 = getelementptr inbounds i8, ptr %48, i64 480
  store i16 %147, ptr %150, align 4, !tbaa !35
  br label %151

151:                                              ; preds = %142, %135
  %152 = getelementptr inbounds i8, ptr %48, i64 488
  %153 = load <2 x i16>, ptr %39, align 4, !tbaa !35
  store <2 x i16> %153, ptr %152, align 4, !tbaa !35
  %154 = load i16, ptr %40, align 4, !tbaa !36
  %155 = getelementptr inbounds i8, ptr %48, i64 492
  store i16 %154, ptr %155, align 8, !tbaa !35
  %156 = getelementptr inbounds i8, ptr %48, i64 494
  store i16 0, ptr %156, align 2, !tbaa !35
  %157 = load i16, ptr %41, align 2, !tbaa !38
  %.not84.4 = icmp eq i16 %157, 0
  br i1 %.not84.4, label %.loopexit85, label %158

158:                                              ; preds = %151
  %159 = uitofp i16 %157 to float
  %160 = getelementptr inbounds i8, ptr %48, i64 516
  store i32 1, ptr %160, align 8, !tbaa !39
  %161 = fmul float %159, %159
  %162 = fdiv float 1.000000e+00, %161
  %163 = fptosi float %162 to i16
  %164 = getelementptr inbounds i8, ptr %48, i64 496
  store i16 %163, ptr %164, align 4, !tbaa !35
  %165 = getelementptr inbounds i8, ptr %48, i64 504
  store i16 %163, ptr %165, align 4, !tbaa !35
  %166 = getelementptr inbounds i8, ptr %48, i64 512
  store i16 %163, ptr %166, align 4, !tbaa !35
  br label %.loopexit85

.loopexit85:                                      ; preds = %151, %158, %47
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 160
  br i1 %exitcond.not, label %42, label %47, !llvm.loop !41

167:                                              ; preds = %.preheader, %175
  %indvars.iv91 = phi i64 [ 0, %.preheader ], [ %indvars.iv.next92, %175 ]
  %168 = getelementptr inbounds [160 x %struct.cbPKT_CHANINFO], ptr %4, i64 0, i64 %indvars.iv91
  %169 = getelementptr inbounds i8, ptr %168, i64 16
  %170 = load i32, ptr %169, align 4, !tbaa !19
  %.not = icmp eq i32 %170, 0
  br i1 %.not, label %175, label %171

171:                                              ; preds = %167
  %172 = tail call noundef i32 @_ZN14CCFUtilsBinary19TranslateAutoFilterEj(ptr noundef nonnull align 8 dereferenceable(189696) %0, i32 noundef %46)
  %173 = getelementptr inbounds i8, ptr %168, i64 308
  store i32 %172, ptr %173, align 8, !tbaa !43
  %174 = getelementptr inbounds i8, ptr %168, i64 324
  store i32 2, ptr %174, align 8, !tbaa !44
  br label %175

175:                                              ; preds = %171, %167
  %indvars.iv.next92 = add nuw nsw i64 %indvars.iv91, 1
  %exitcond94.not = icmp eq i64 %indvars.iv.next92, 160
  br i1 %exitcond94.not, label %.loopexit, label %167, !llvm.loop !45

.loopexit:                                        ; preds = %175, %42
  call void @llvm.lifetime.end.p0(i64 532, 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_31E", !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 372}
!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 = !{!16, !16, i64 0}
!36 = !{!37, !16, i64 4}
!37 = !{!"_ZTSN3ccf22cbMANUALUNITMAPPING_31E", !16, i64 0, !16, i64 2, !16, i64 4, !16, i64 6}
!38 = !{!37, !16, i64 6}
!39 = !{!40, !11, i64 28}
!40 = !{!"_ZTS19cbMANUALUNITMAPPING", !16, i64 0, !8, i64 2, !8, i64 8, !16, i64 26, !11, i64 28}
!41 = distinct !{!41, !42}
!42 = !{!"llvm.loop.mustprogress"}
!43 = !{!20, !11, i64 308}
!44 = !{!20, !11, i64 324}
!45 = distinct !{!45, !42}


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