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

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

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

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

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

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

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

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

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

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

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

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

188:                                              ; preds = %187
  %189 = load i32, ptr %6, align 4, !tbaa !9
  %190 = add nsw i32 %189, 1
  store i32 %190, ptr %6, align 4, !tbaa !9
  br label %11, !llvm.loop !77

191:                                              ; preds = %14
  %192 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN14CCFUtilsBinary13ReadAsPacketsEP8_IO_FILE(ptr noundef nonnull align 8 dereferenceable(189696) %10, ptr noundef %192)
  %193 = getelementptr inbounds %class.CCFUtils, ptr %10, i32 0, i32 13
  %194 = load i8, ptr %193, align 8, !tbaa !79, !range !82, !noundef !83
  %195 = trunc i8 %194 to i1
  br i1 %195, label %196, label %224

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

197:                                              ; preds = %220, %196
  %198 = load i32, ptr %8, align 4, !tbaa !9
  %199 = icmp slt i32 %198, 160
  br i1 %199, label %201, label %200

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

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

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

219:                                              ; preds = %211, %201
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %220

220:                                              ; preds = %219
  %221 = load i32, ptr %8, align 4, !tbaa !9
  %222 = add nsw i32 %221, 1
  store i32 %222, ptr %8, align 4, !tbaa !9
  br label %197, !llvm.loop !84

223:                                              ; preds = %200
  br label %224

224:                                              ; preds = %223, %191
  call void @llvm.lifetime.end.p0(i64 476, ptr %5) #7
  ret i32 0
}

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN14CCFUtilsBinary19TranslateAutoFilterEj(ptr noundef nonnull align 8 dereferenceable(189696), i32 noundef) #3 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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 8}
!12 = !{!"_ZTSN3ccf25cbPKT_CHANINFO_CB2003_10AE", !10, i64 0, !13, i64 4, !7, i64 6, !7, i64 7, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !14, i64 48, !15, i64 68, !14, i64 108, !15, i64 128, !7, i64 168, !10, i64 184, !7, i64 188, !14, i64 204, !14, i64 224, !10, i64 244, !10, i64 248, !10, i64 252, !10, i64 256, !10, i64 260, !10, i64 264, !10, i64 268, !10, i64 272, !10, i64 276, !10, i64 280, !10, i64 284, !10, i64 288, !10, i64 292, !10, i64 296, !10, i64 300, !10, i64 304, !10, i64 308, !10, i64 312, !7, i64 316}
!13 = !{!"short", !7, i64 0}
!14 = !{!"_ZTSN3ccf20cbSCALING_NO_ANAGAINE", !13, i64 0, !13, i64 2, !10, i64 4, !10, i64 8, !7, i64 12}
!15 = !{!"_ZTSN3ccf13cbFILTDESC_10E", !7, i64 0, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36}
!16 = !{!17, !10, i64 16}
!17 = !{!"_ZTS14cbPKT_CHANINFO", !18, i64 0, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !20, i64 56, !21, i64 80, !20, i64 120, !21, i64 144, !7, i64 184, !10, i64 200, !7, i64 204, !20, i64 220, !20, i64 244, !10, i64 268, !10, i64 272, !10, i64 276, !10, i64 280, !7, i64 284, !7, i64 292, !7, i64 293, !7, i64 295, !13, i64 296, !13, i64 298, !10, i64 300, !10, i64 304, !10, i64 308, !10, i64 312, !10, i64 316, !10, i64 320, !10, i64 324, !10, i64 328, !10, i64 332, !10, i64 336, !10, i64 340, !10, i64 344, !10, i64 348, !13, i64 352, !13, i64 354, !10, i64 356, !7, i64 360, !7, i64 520}
!18 = !{!"_ZTS12cbPKT_HEADER", !19, i64 0, !13, i64 8, !13, i64 10, !13, i64 12, !7, i64 14, !7, i64 15}
!19 = !{!"long", !7, i64 0}
!20 = !{!"_ZTS9cbSCALING", !13, i64 0, !13, i64 2, !10, i64 4, !10, i64 8, !10, i64 12, !7, i64 16}
!21 = !{!"_ZTS10cbFILTDESC", !7, i64 0, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36}
!22 = !{!12, !10, i64 12}
!23 = !{!17, !10, i64 20}
!24 = !{!12, !10, i64 16}
!25 = !{!17, !10, i64 24}
!26 = !{!12, !10, i64 20}
!27 = !{!17, !10, i64 28}
!28 = !{!12, !10, i64 24}
!29 = !{!17, !10, i64 32}
!30 = !{!12, !10, i64 28}
!31 = !{!17, !10, i64 36}
!32 = !{!12, !10, i64 32}
!33 = !{!17, !10, i64 40}
!34 = !{!12, !10, i64 36}
!35 = !{!17, !10, i64 44}
!36 = !{!12, !10, i64 40}
!37 = !{!17, !10, i64 48}
!38 = !{!12, !10, i64 44}
!39 = !{!17, !10, i64 52}
!40 = !{!12, !10, i64 184}
!41 = !{!17, !10, i64 200}
!42 = !{!12, !10, i64 244}
!43 = !{!17, !10, i64 268}
!44 = !{!12, !10, i64 248}
!45 = !{!17, !10, i64 272}
!46 = !{!12, !10, i64 252}
!47 = !{!17, !10, i64 276}
!48 = !{!12, !10, i64 256}
!49 = !{!17, !10, i64 280}
!50 = !{!12, !10, i64 260}
!51 = !{!7, !7, i64 0}
!52 = !{!12, !10, i64 264}
!53 = !{!12, !10, i64 268}
!54 = !{!17, !10, i64 300}
!55 = !{!12, !10, i64 272}
!56 = !{!17, !10, i64 304}
!57 = !{!12, !10, i64 276}
!58 = !{!17, !10, i64 308}
!59 = !{!12, !10, i64 280}
!60 = !{!17, !10, i64 312}
!61 = !{!12, !10, i64 284}
!62 = !{!17, !10, i64 316}
!63 = !{!12, !10, i64 288}
!64 = !{!17, !10, i64 320}
!65 = !{!12, !10, i64 292}
!66 = !{!17, !10, i64 324}
!67 = !{!12, !10, i64 296}
!68 = !{!17, !10, i64 328}
!69 = !{!12, !10, i64 300}
!70 = !{!17, !10, i64 336}
!71 = !{!12, !10, i64 304}
!72 = !{!17, !10, i64 340}
!73 = !{!12, !10, i64 308}
!74 = !{!17, !10, i64 344}
!75 = !{!12, !10, i64 312}
!76 = !{!17, !10, i64 348}
!77 = distinct !{!77, !78}
!78 = !{!"llvm.loop.mustprogress"}
!79 = !{!80, !81, i64 72}
!80 = !{!"_ZTS8CCFUtils", !6, i64 8, !81, i64 16, !6, i64 24, !81, i64 32, !6, i64 40, !10, i64 48, !10, i64 52, !10, i64 56, !6, i64 64, !81, i64 72, !81, i64 73}
!81 = !{!"bool", !7, i64 0}
!82 = !{i8 0, i8 2}
!83 = !{}
!84 = distinct !{!84, !78}


; 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_CB2003_10A" = type { i32, i16, i8, i8, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, %"struct.ccf::cbSCALING_NO_ANAGAIN", %"struct.ccf::cbFILTDESC_10", %"struct.ccf::cbSCALING_NO_ANAGAIN", %"struct.ccf::cbFILTDESC_10", [16 x i8], i32, [4 x i32], %"struct.ccf::cbSCALING_NO_ANAGAIN", %"struct.ccf::cbSCALING_NO_ANAGAIN", i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [5 x [4 x %"struct.ccf::cbHOOP_10"]] }
%"struct.ccf::cbFILTDESC_10" = type { [16 x i8], i32, i32, i32, i32, i32, i32 }
%"struct.ccf::cbSCALING_NO_ANAGAIN" = type { i16, i16, i32, i32, [8 x i8] }
%"struct.ccf::cbHOOP_10" = type { i16, i16, i16, i16 }
%struct.cbPKT_CHANINFO = type { %struct.cbPKT_HEADER, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, %struct.cbSCALING, %struct.cbFILTDESC, %struct.cbSCALING, %struct.cbFILTDESC, [16 x i8], i32, [4 x i32], %struct.cbSCALING, %struct.cbSCALING, i32, i32, i32, i32, %union.anon, i8, [2 x i8], i8, i16, i16, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i32, [5 x %struct.cbMANUALUNITMAPPING], [5 x [4 x %struct.cbHOOP]] }
%struct.cbPKT_HEADER = type { i64, i16, i16, i16, i8, i8 }
%struct.cbFILTDESC = type { [16 x i8], i32, i32, i32, i32, i32, i32 }
%struct.cbSCALING = type { i16, i16, i32, i32, i32, [8 x i8] }
%union.anon = type { %struct.anon }
%struct.anon = type { i16, i16, i32 }
%struct.cbMANUALUNITMAPPING = type { i16, [3 x i16], [3 x [3 x i16]], i16, i32 }
%struct.cbHOOP = type { i16, i16, i16, i16 }

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

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

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

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

; Function Attrs: mustprogress 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 #3 align 2

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

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

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

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

69:                                               ; preds = %34, %30
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 160
  br i1 %exitcond.not, label %26, label %30, !llvm.loop !33

.preheader:                                       ; preds = %26, %78
  %indvars.iv57 = phi i64 [ %indvars.iv.next58, %78 ], [ 0, %26 ]
  %70 = getelementptr inbounds [160 x %struct.cbPKT_CHANINFO], ptr %4, i64 0, i64 %indvars.iv57
  %71 = getelementptr inbounds i8, ptr %70, i64 16
  %72 = load i32, ptr %71, align 4, !tbaa !19
  %.not = icmp eq i32 %72, 0
  br i1 %.not, label %78, label %73

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

78:                                               ; preds = %73, %.preheader
  %indvars.iv.next58 = add nuw nsw i64 %indvars.iv57, 1
  %exitcond60.not = icmp eq i64 %indvars.iv.next58, 160
  br i1 %exitcond60.not, label %.loopexit, label %.preheader, !llvm.loop !38

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN14CCFUtilsBinary13ReadAsPacketsEP8_IO_FILE(ptr noundef nonnull align 8 dereferenceable(189696), ptr noundef) local_unnamed_addr #4 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 #3 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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !10, i64 72}
!6 = !{!"_ZTS8CCFUtils", !7, i64 8, !10, i64 16, !7, i64 24, !10, i64 32, !7, i64 40, !11, i64 48, !11, i64 52, !11, i64 56, !7, i64 64, !10, i64 72, !10, i64 73}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{i8 0, i8 2}
!13 = !{}
!14 = !{!15, !11, i64 8}
!15 = !{!"_ZTSN3ccf25cbPKT_CHANINFO_CB2003_10AE", !11, i64 0, !16, i64 4, !8, i64 6, !8, i64 7, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !17, i64 48, !18, i64 68, !17, i64 108, !18, i64 128, !8, i64 168, !11, i64 184, !8, i64 188, !17, i64 204, !17, i64 224, !11, i64 244, !11, i64 248, !11, i64 252, !11, i64 256, !11, i64 260, !11, i64 264, !11, i64 268, !11, i64 272, !11, i64 276, !11, i64 280, !11, i64 284, !11, i64 288, !11, i64 292, !11, i64 296, !11, i64 300, !11, i64 304, !11, i64 308, !11, i64 312, !8, i64 316}
!16 = !{!"short", !8, i64 0}
!17 = !{!"_ZTSN3ccf20cbSCALING_NO_ANAGAINE", !16, i64 0, !16, i64 2, !11, i64 4, !11, i64 8, !8, i64 12}
!18 = !{!"_ZTSN3ccf13cbFILTDESC_10E", !8, i64 0, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36}
!19 = !{!20, !11, i64 16}
!20 = !{!"_ZTS14cbPKT_CHANINFO", !21, i64 0, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !23, i64 56, !24, i64 80, !23, i64 120, !24, i64 144, !8, i64 184, !11, i64 200, !8, i64 204, !23, i64 220, !23, i64 244, !11, i64 268, !11, i64 272, !11, i64 276, !11, i64 280, !8, i64 284, !8, i64 292, !8, i64 293, !8, i64 295, !16, i64 296, !16, i64 298, !11, i64 300, !11, i64 304, !11, i64 308, !11, i64 312, !11, i64 316, !11, i64 320, !11, i64 324, !11, i64 328, !11, i64 332, !11, i64 336, !11, i64 340, !11, i64 344, !11, i64 348, !16, i64 352, !16, i64 354, !11, i64 356, !8, i64 360, !8, i64 520}
!21 = !{!"_ZTS12cbPKT_HEADER", !22, i64 0, !16, i64 8, !16, i64 10, !16, i64 12, !8, i64 14, !8, i64 15}
!22 = !{!"long", !8, i64 0}
!23 = !{!"_ZTS9cbSCALING", !16, i64 0, !16, i64 2, !11, i64 4, !11, i64 8, !11, i64 12, !8, i64 16}
!24 = !{!"_ZTS10cbFILTDESC", !8, i64 0, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36}
!25 = !{!11, !11, i64 0}
!26 = !{!15, !11, i64 44}
!27 = !{!20, !11, i64 52}
!28 = !{!15, !11, i64 184}
!29 = !{!20, !11, i64 200}
!30 = !{!15, !11, i64 260}
!31 = !{!8, !8, i64 0}
!32 = !{!15, !11, i64 264}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"}
!35 = !{!15, !11, i64 276}
!36 = !{!20, !11, i64 308}
!37 = !{!20, !11, i64 324}
!38 = distinct !{!38, !34}


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