; LLVM IR from merpheus-dev/LavaEngine :: src/Utils/soloud/src/audiosource/wav (dr_impl)

; 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.drflac_ogg_page_header = type { [4 x i8], i8, i8, i64, i32, i32, i32, i8, [255 x i8] }

@.str.32 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [104 x i8], align 1
@__PRETTY_FUNCTION__._Z50drflac_ogg__read_page_header_after_capture_patternPFmPvS_mES_P22drflac_ogg_page_headerPjS4_ = external hidden unnamed_addr constant [151 x i8], align 1

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

; 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) #1

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z50drflac_ogg__read_page_header_after_capture_patternPFmPvS_mES_P22drflac_ogg_page_headerPjS4_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #3 {
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca [23 x i8], align 16
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 23, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %15 = load ptr, ptr %11, align 8, !tbaa !5
  %16 = load i32, ptr %15, align 4, !tbaa !9
  %17 = icmp eq i32 %16, 1605413199
  br i1 %17, label %18, label %19

18:                                               ; preds = %5
  br label %21

19:                                               ; preds = %5
  call void @__assert_fail(ptr noundef @.str.32, ptr noundef @.str.33, i32 noundef 6385, ptr noundef @__PRETTY_FUNCTION__._Z50drflac_ogg__read_page_header_after_capture_patternPFmPvS_mES_P22drflac_ogg_page_headerPjS4_) #6
  unreachable

20:                                               ; No predecessors!
  br label %21

21:                                               ; preds = %20, %18
  %22 = load ptr, ptr %7, align 8, !tbaa !5
  %23 = load ptr, ptr %8, align 8, !tbaa !5
  %24 = getelementptr inbounds [23 x i8], ptr %12, i64 0, i64 0
  %25 = call noundef i64 %22(ptr noundef %23, ptr noundef %24, i64 noundef 23)
  %26 = icmp ne i64 %25, 23
  br i1 %26, label %27, label %28

27:                                               ; preds = %21
  store i32 -128, ptr %6, align 4
  store i32 1, ptr %14, align 4
  br label %134

28:                                               ; preds = %21
  %29 = load ptr, ptr %10, align 8, !tbaa !5
  %30 = load i32, ptr %29, align 4, !tbaa !9
  %31 = add i32 %30, 23
  store i32 %31, ptr %29, align 4, !tbaa !9
  %32 = load ptr, ptr %9, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.drflac_ogg_page_header, ptr %32, i32 0, i32 0
  %34 = getelementptr inbounds [4 x i8], ptr %33, i64 0, i64 0
  store i8 79, ptr %34, align 8, !tbaa !11
  %35 = load ptr, ptr %9, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.drflac_ogg_page_header, ptr %35, i32 0, i32 0
  %37 = getelementptr inbounds [4 x i8], ptr %36, i64 0, i64 1
  store i8 103, ptr %37, align 1, !tbaa !11
  %38 = load ptr, ptr %9, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.drflac_ogg_page_header, ptr %38, i32 0, i32 0
  %40 = getelementptr inbounds [4 x i8], ptr %39, i64 0, i64 2
  store i8 103, ptr %40, align 2, !tbaa !11
  %41 = load ptr, ptr %9, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.drflac_ogg_page_header, ptr %41, i32 0, i32 0
  %43 = getelementptr inbounds [4 x i8], ptr %42, i64 0, i64 3
  store i8 83, ptr %43, align 1, !tbaa !11
  %44 = getelementptr inbounds [23 x i8], ptr %12, i64 0, i64 0
  %45 = load i8, ptr %44, align 16, !tbaa !11
  %46 = load ptr, ptr %9, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.drflac_ogg_page_header, ptr %46, i32 0, i32 1
  store i8 %45, ptr %47, align 4, !tbaa !12
  %48 = getelementptr inbounds [23 x i8], ptr %12, i64 0, i64 1
  %49 = load i8, ptr %48, align 1, !tbaa !11
  %50 = load ptr, ptr %9, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.drflac_ogg_page_header, ptr %50, i32 0, i32 2
  store i8 %49, ptr %51, align 1, !tbaa !15
  %52 = load ptr, ptr %9, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.drflac_ogg_page_header, ptr %52, i32 0, i32 3
  %54 = getelementptr inbounds [23 x i8], ptr %12, i64 0, i64 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %53, ptr align 2 %54, i64 8, i1 false)
  %55 = load ptr, ptr %9, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.drflac_ogg_page_header, ptr %55, i32 0, i32 4
  %57 = getelementptr inbounds [23 x i8], ptr %12, i64 0, i64 10
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %56, ptr align 2 %57, i64 4, i1 false)
  %58 = load ptr, ptr %9, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.drflac_ogg_page_header, ptr %58, i32 0, i32 5
  %60 = getelementptr inbounds [23 x i8], ptr %12, i64 0, i64 14
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %59, ptr align 2 %60, i64 4, i1 false)
  %61 = load ptr, ptr %9, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.drflac_ogg_page_header, ptr %61, i32 0, i32 6
  %63 = getelementptr inbounds [23 x i8], ptr %12, i64 0, i64 18
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %62, ptr align 2 %63, i64 4, i1 false)
  %64 = getelementptr inbounds [23 x i8], ptr %12, i64 0, i64 22
  %65 = load i8, ptr %64, align 2, !tbaa !11
  %66 = load ptr, ptr %9, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.drflac_ogg_page_header, ptr %66, i32 0, i32 7
  store i8 %65, ptr %67, align 4, !tbaa !16
  %68 = getelementptr inbounds [23 x i8], ptr %12, i64 0, i64 18
  store i8 0, ptr %68, align 2, !tbaa !11
  %69 = getelementptr inbounds [23 x i8], ptr %12, i64 0, i64 19
  store i8 0, ptr %69, align 1, !tbaa !11
  %70 = getelementptr inbounds [23 x i8], ptr %12, i64 0, i64 20
  store i8 0, ptr %70, align 4, !tbaa !11
  %71 = getelementptr inbounds [23 x i8], ptr %12, i64 0, i64 21
  store i8 0, ptr %71, align 1, !tbaa !11
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %72

72:                                               ; preds = %84, %28
  %73 = load i32, ptr %13, align 4, !tbaa !9
  %74 = icmp ult i32 %73, 23
  br i1 %74, label %75, label %87

75:                                               ; preds = %72
  %76 = load ptr, ptr %11, align 8, !tbaa !5
  %77 = load i32, ptr %76, align 4, !tbaa !9
  %78 = load i32, ptr %13, align 4, !tbaa !9
  %79 = zext i32 %78 to i64
  %80 = getelementptr inbounds [23 x i8], ptr %12, i64 0, i64 %79
  %81 = load i8, ptr %80, align 1, !tbaa !11
  %82 = call noundef i32 @_ZL17drflac_crc32_bytejh(i32 noundef %77, i8 noundef zeroext %81)
  %83 = load ptr, ptr %11, align 8, !tbaa !5
  store i32 %82, ptr %83, align 4, !tbaa !9
  br label %84

84:                                               ; preds = %75
  %85 = load i32, ptr %13, align 4, !tbaa !9
  %86 = add i32 %85, 1
  store i32 %86, ptr %13, align 4, !tbaa !9
  br label %72, !llvm.loop !17

87:                                               ; preds = %72
  %88 = load ptr, ptr %7, align 8, !tbaa !5
  %89 = load ptr, ptr %8, align 8, !tbaa !5
  %90 = load ptr, ptr %9, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.drflac_ogg_page_header, ptr %90, i32 0, i32 8
  %92 = getelementptr inbounds [255 x i8], ptr %91, i64 0, i64 0
  %93 = load ptr, ptr %9, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.drflac_ogg_page_header, ptr %93, i32 0, i32 7
  %95 = load i8, ptr %94, align 4, !tbaa !16
  %96 = zext i8 %95 to i64
  %97 = call noundef i64 %88(ptr noundef %89, ptr noundef %92, i64 noundef %96)
  %98 = load ptr, ptr %9, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.drflac_ogg_page_header, ptr %98, i32 0, i32 7
  %100 = load i8, ptr %99, align 4, !tbaa !16
  %101 = zext i8 %100 to i64
  %102 = icmp ne i64 %97, %101
  br i1 %102, label %103, label %104

103:                                              ; preds = %87
  store i32 -128, ptr %6, align 4
  store i32 1, ptr %14, align 4
  br label %134

104:                                              ; preds = %87
  %105 = load ptr, ptr %9, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.drflac_ogg_page_header, ptr %105, i32 0, i32 7
  %107 = load i8, ptr %106, align 4, !tbaa !16
  %108 = zext i8 %107 to i32
  %109 = load ptr, ptr %10, align 8, !tbaa !5
  %110 = load i32, ptr %109, align 4, !tbaa !9
  %111 = add i32 %110, %108
  store i32 %111, ptr %109, align 4, !tbaa !9
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %112

112:                                              ; preds = %130, %104
  %113 = load i32, ptr %13, align 4, !tbaa !9
  %114 = load ptr, ptr %9, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.drflac_ogg_page_header, ptr %114, i32 0, i32 7
  %116 = load i8, ptr %115, align 4, !tbaa !16
  %117 = zext i8 %116 to i32
  %118 = icmp ult i32 %113, %117
  br i1 %118, label %119, label %133

119:                                              ; preds = %112
  %120 = load ptr, ptr %11, align 8, !tbaa !5
  %121 = load i32, ptr %120, align 4, !tbaa !9
  %122 = load ptr, ptr %9, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.drflac_ogg_page_header, ptr %122, i32 0, i32 8
  %124 = load i32, ptr %13, align 4, !tbaa !9
  %125 = zext i32 %124 to i64
  %126 = getelementptr inbounds [255 x i8], ptr %123, i64 0, i64 %125
  %127 = load i8, ptr %126, align 1, !tbaa !11
  %128 = call noundef i32 @_ZL17drflac_crc32_bytejh(i32 noundef %121, i8 noundef zeroext %127)
  %129 = load ptr, ptr %11, align 8, !tbaa !5
  store i32 %128, ptr %129, align 4, !tbaa !9
  br label %130

130:                                              ; preds = %119
  %131 = load i32, ptr %13, align 4, !tbaa !9
  %132 = add i32 %131, 1
  store i32 %132, ptr %13, align 4, !tbaa !9
  br label %112, !llvm.loop !19

133:                                              ; preds = %112
  store i32 0, ptr %6, align 4
  store i32 1, ptr %14, align 4
  br label %134

134:                                              ; preds = %133, %103, %27
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 23, ptr %12) #5
  %135 = load i32, ptr %6, align 4
  ret i32 %135
}

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL17drflac_crc32_bytejh(i32 noundef, i8 noundef zeroext) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { noreturn 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 = { alwaysinline 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 = { nounwind }
attributes #6 = { noreturn 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 = !{!7, !7, i64 0}
!12 = !{!13, !7, i64 4}
!13 = !{!"_ZTS22drflac_ogg_page_header", !7, i64 0, !7, i64 4, !7, i64 5, !14, i64 8, !10, i64 16, !10, i64 20, !10, i64 24, !7, i64 28, !7, i64 29}
!14 = !{!"long", !7, i64 0}
!15 = !{!13, !7, i64 5}
!16 = !{!13, !7, i64 28}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}


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

@.str.32 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [104 x i8], align 1
@__PRETTY_FUNCTION__._Z50drflac_ogg__read_page_header_after_capture_patternPFmPvS_mES_P22drflac_ogg_page_headerPjS4_ = external hidden unnamed_addr constant [151 x i8], align 1

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i32 -128, 1) i32 @_Z50drflac_ogg__read_page_header_after_capture_patternPFmPvS_mES_P22drflac_ogg_page_headerPjS4_(ptr nocapture noundef readonly %0, ptr noundef %1, ptr noundef %2, ptr nocapture noundef %3, ptr nocapture noundef %4) local_unnamed_addr #2 {
  %6 = alloca [23 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 23, ptr nonnull %6) #4
  %7 = load i32, ptr %4, align 4, !tbaa !5
  %8 = icmp eq i32 %7, 1605413199
  br i1 %8, label %10, label %9

9:                                                ; preds = %5
  tail call void @__assert_fail(ptr noundef nonnull @.str.32, ptr noundef nonnull @.str.33, i32 noundef 6385, ptr noundef nonnull @__PRETTY_FUNCTION__._Z50drflac_ogg__read_page_header_after_capture_patternPFmPvS_mES_P22drflac_ogg_page_headerPjS4_) #5
  unreachable

10:                                               ; preds = %5
  %11 = call noundef i64 %0(ptr noundef %1, ptr noundef nonnull %6, i64 noundef 23)
  %.not = icmp eq i64 %11, 23
  br i1 %.not, label %12, label %.loopexit

12:                                               ; preds = %10
  %13 = load i32, ptr %3, align 4, !tbaa !5
  %14 = add i32 %13, 23
  store i32 %14, ptr %3, align 4, !tbaa !5
  store <4 x i8> <i8 79, i8 103, i8 103, i8 83>, ptr %2, align 8, !tbaa !9
  %15 = load i8, ptr %6, align 16, !tbaa !9
  %16 = getelementptr inbounds i8, ptr %2, i64 4
  store i8 %15, ptr %16, align 4, !tbaa !10
  %17 = getelementptr inbounds i8, ptr %6, i64 1
  %18 = load i8, ptr %17, align 1, !tbaa !9
  %19 = getelementptr inbounds i8, ptr %2, i64 5
  store i8 %18, ptr %19, align 1, !tbaa !13
  %20 = getelementptr inbounds i8, ptr %2, i64 8
  %21 = getelementptr inbounds i8, ptr %6, i64 2
  %22 = load i64, ptr %21, align 2
  store i64 %22, ptr %20, align 8
  %23 = getelementptr inbounds i8, ptr %2, i64 16
  %24 = getelementptr inbounds i8, ptr %6, i64 10
  %25 = getelementptr inbounds i8, ptr %6, i64 14
  %26 = load <2 x i32>, ptr %24, align 2
  store <2 x i32> %26, ptr %23, align 8
  %27 = getelementptr inbounds i8, ptr %2, i64 24
  %28 = getelementptr inbounds i8, ptr %6, i64 18
  %29 = load i32, ptr %28, align 2
  store i32 %29, ptr %27, align 8
  %30 = getelementptr inbounds i8, ptr %6, i64 22
  %31 = load i8, ptr %30, align 2, !tbaa !9
  %32 = getelementptr inbounds i8, ptr %2, i64 28
  store i8 %31, ptr %32, align 4, !tbaa !14
  %33 = getelementptr inbounds i8, ptr %6, i64 19
  %34 = getelementptr inbounds i8, ptr %6, i64 20
  %35 = getelementptr inbounds i8, ptr %6, i64 21
  store i32 0, ptr %28, align 2
  %36 = load i32, ptr %4, align 4, !tbaa !5
  %37 = call noundef i32 @_ZL17drflac_crc32_bytejh(i32 noundef %36, i8 noundef zeroext %15)
  store i32 %37, ptr %4, align 4, !tbaa !5
  %38 = load i8, ptr %17, align 1, !tbaa !9
  %39 = call noundef i32 @_ZL17drflac_crc32_bytejh(i32 noundef %37, i8 noundef zeroext %38)
  store i32 %39, ptr %4, align 4, !tbaa !5
  %40 = load i8, ptr %21, align 2, !tbaa !9
  %41 = call noundef i32 @_ZL17drflac_crc32_bytejh(i32 noundef %39, i8 noundef zeroext %40)
  store i32 %41, ptr %4, align 4, !tbaa !5
  %42 = getelementptr inbounds i8, ptr %6, i64 3
  %43 = load i8, ptr %42, align 1, !tbaa !9
  %44 = call noundef i32 @_ZL17drflac_crc32_bytejh(i32 noundef %41, i8 noundef zeroext %43)
  store i32 %44, ptr %4, align 4, !tbaa !5
  %45 = getelementptr inbounds i8, ptr %6, i64 4
  %46 = load i8, ptr %45, align 4, !tbaa !9
  %47 = call noundef i32 @_ZL17drflac_crc32_bytejh(i32 noundef %44, i8 noundef zeroext %46)
  store i32 %47, ptr %4, align 4, !tbaa !5
  %48 = getelementptr inbounds i8, ptr %6, i64 5
  %49 = load i8, ptr %48, align 1, !tbaa !9
  %50 = call noundef i32 @_ZL17drflac_crc32_bytejh(i32 noundef %47, i8 noundef zeroext %49)
  store i32 %50, ptr %4, align 4, !tbaa !5
  %51 = getelementptr inbounds i8, ptr %6, i64 6
  %52 = load i8, ptr %51, align 2, !tbaa !9
  %53 = call noundef i32 @_ZL17drflac_crc32_bytejh(i32 noundef %50, i8 noundef zeroext %52)
  store i32 %53, ptr %4, align 4, !tbaa !5
  %54 = getelementptr inbounds i8, ptr %6, i64 7
  %55 = load i8, ptr %54, align 1, !tbaa !9
  %56 = call noundef i32 @_ZL17drflac_crc32_bytejh(i32 noundef %53, i8 noundef zeroext %55)
  store i32 %56, ptr %4, align 4, !tbaa !5
  %57 = getelementptr inbounds i8, ptr %6, i64 8
  %58 = load i8, ptr %57, align 8, !tbaa !9
  %59 = call noundef i32 @_ZL17drflac_crc32_bytejh(i32 noundef %56, i8 noundef zeroext %58)
  store i32 %59, ptr %4, align 4, !tbaa !5
  %60 = getelementptr inbounds i8, ptr %6, i64 9
  %61 = load i8, ptr %60, align 1, !tbaa !9
  %62 = call noundef i32 @_ZL17drflac_crc32_bytejh(i32 noundef %59, i8 noundef zeroext %61)
  store i32 %62, ptr %4, align 4, !tbaa !5
  %63 = load i8, ptr %24, align 2, !tbaa !9
  %64 = call noundef i32 @_ZL17drflac_crc32_bytejh(i32 noundef %62, i8 noundef zeroext %63)
  store i32 %64, ptr %4, align 4, !tbaa !5
  %65 = getelementptr inbounds i8, ptr %6, i64 11
  %66 = load i8, ptr %65, align 1, !tbaa !9
  %67 = call noundef i32 @_ZL17drflac_crc32_bytejh(i32 noundef %64, i8 noundef zeroext %66)
  store i32 %67, ptr %4, align 4, !tbaa !5
  %68 = getelementptr inbounds i8, ptr %6, i64 12
  %69 = load i8, ptr %68, align 4, !tbaa !9
  %70 = call noundef i32 @_ZL17drflac_crc32_bytejh(i32 noundef %67, i8 noundef zeroext %69)
  store i32 %70, ptr %4, align 4, !tbaa !5
  %71 = getelementptr inbounds i8, ptr %6, i64 13
  %72 = load i8, ptr %71, align 1, !tbaa !9
  %73 = call noundef i32 @_ZL17drflac_crc32_bytejh(i32 noundef %70, i8 noundef zeroext %72)
  store i32 %73, ptr %4, align 4, !tbaa !5
  %74 = load i8, ptr %25, align 2, !tbaa !9
  %75 = call noundef i32 @_ZL17drflac_crc32_bytejh(i32 noundef %73, i8 noundef zeroext %74)
  store i32 %75, ptr %4, align 4, !tbaa !5
  %76 = getelementptr inbounds i8, ptr %6, i64 15
  %77 = load i8, ptr %76, align 1, !tbaa !9
  %78 = call noundef i32 @_ZL17drflac_crc32_bytejh(i32 noundef %75, i8 noundef zeroext %77)
  store i32 %78, ptr %4, align 4, !tbaa !5
  %79 = getelementptr inbounds i8, ptr %6, i64 16
  %80 = load i8, ptr %79, align 16, !tbaa !9
  %81 = call noundef i32 @_ZL17drflac_crc32_bytejh(i32 noundef %78, i8 noundef zeroext %80)
  store i32 %81, ptr %4, align 4, !tbaa !5
  %82 = getelementptr inbounds i8, ptr %6, i64 17
  %83 = load i8, ptr %82, align 1, !tbaa !9
  %84 = call noundef i32 @_ZL17drflac_crc32_bytejh(i32 noundef %81, i8 noundef zeroext %83)
  store i32 %84, ptr %4, align 4, !tbaa !5
  %85 = load i8, ptr %28, align 2, !tbaa !9
  %86 = call noundef i32 @_ZL17drflac_crc32_bytejh(i32 noundef %84, i8 noundef zeroext %85)
  store i32 %86, ptr %4, align 4, !tbaa !5
  %87 = load i8, ptr %33, align 1, !tbaa !9
  %88 = call noundef i32 @_ZL17drflac_crc32_bytejh(i32 noundef %86, i8 noundef zeroext %87)
  store i32 %88, ptr %4, align 4, !tbaa !5
  %89 = load i8, ptr %34, align 4, !tbaa !9
  %90 = call noundef i32 @_ZL17drflac_crc32_bytejh(i32 noundef %88, i8 noundef zeroext %89)
  store i32 %90, ptr %4, align 4, !tbaa !5
  %91 = load i8, ptr %35, align 1, !tbaa !9
  %92 = call noundef i32 @_ZL17drflac_crc32_bytejh(i32 noundef %90, i8 noundef zeroext %91)
  store i32 %92, ptr %4, align 4, !tbaa !5
  %93 = load i8, ptr %30, align 2, !tbaa !9
  %94 = call noundef i32 @_ZL17drflac_crc32_bytejh(i32 noundef %92, i8 noundef zeroext %93)
  store i32 %94, ptr %4, align 4, !tbaa !5
  %95 = getelementptr inbounds i8, ptr %2, i64 29
  %96 = load i8, ptr %32, align 4, !tbaa !14
  %97 = zext i8 %96 to i64
  %98 = call noundef i64 %0(ptr noundef %1, ptr noundef nonnull %95, i64 noundef %97)
  %99 = load i8, ptr %32, align 4, !tbaa !14
  %100 = zext i8 %99 to i64
  %.not35 = icmp eq i64 %98, %100
  br i1 %.not35, label %101, label %.loopexit

101:                                              ; preds = %12
  %102 = zext i8 %99 to i32
  %103 = load i32, ptr %3, align 4, !tbaa !5
  %104 = add i32 %103, %102
  store i32 %104, ptr %3, align 4, !tbaa !5
  %.not38 = icmp eq i8 %99, 0
  br i1 %.not38, label %.loopexit, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %101
  %.pre = load i32, ptr %4, align 4, !tbaa !5
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %105 = phi i32 [ %.pre, %.lr.ph.preheader ], [ %108, %.lr.ph ]
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %106 = getelementptr inbounds [255 x i8], ptr %95, i64 0, i64 %indvars.iv
  %107 = load i8, ptr %106, align 1, !tbaa !9
  %108 = call noundef i32 @_ZL17drflac_crc32_bytejh(i32 noundef %105, i8 noundef zeroext %107)
  store i32 %108, ptr %4, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %109 = load i8, ptr %32, align 4, !tbaa !14
  %110 = zext i8 %109 to i64
  %111 = icmp ult i64 %indvars.iv.next, %110
  br i1 %111, label %.lr.ph, label %.loopexit, !llvm.loop !15

.loopexit:                                        ; preds = %.lr.ph, %101, %12, %10
  %.034 = phi i32 [ -128, %10 ], [ -128, %12 ], [ 0, %101 ], [ 0, %.lr.ph ]
  call void @llvm.lifetime.end.p0(i64 23, ptr nonnull %6) #4
  ret i32 %.034
}

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL17drflac_crc32_bytejh(i32 noundef, i8 noundef zeroext) local_unnamed_addr #3

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noreturn 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 #2 = { 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 #3 = { alwaysinline 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 = { nounwind }
attributes #5 = { noreturn 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !7, i64 4}
!11 = !{!"_ZTS22drflac_ogg_page_header", !7, i64 0, !7, i64 4, !7, i64 5, !12, i64 8, !6, i64 16, !6, i64 20, !6, i64 24, !7, i64 28, !7, i64 29}
!12 = !{!"long", !7, i64 0}
!13 = !{!11, !7, i64 5}
!14 = !{!11, !7, i64 28}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}


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