; LLVM IR from clangen/musikcube :: src/plugins/ffmpegdecoder (FfmpegDecoder)

; 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.AVChannelLayout = type { i32, i32, %union.anon.8, ptr }
%union.anon.8 = type { i64 }
%struct.AVFrame = type { [8 x ptr], [8 x i32], ptr, i32, i32, i32, i32, i32, i32, %struct.AVRational, i64, i64, %struct.AVRational, i32, ptr, i32, i32, i32, i32, i32, [8 x ptr], ptr, i32, ptr, i32, i32, i32, i32, i32, i32, i32, i64, i64, ptr, i32, i32, ptr, ptr, i64, i64, i64, i64, ptr, %struct.AVChannelLayout, i64 }
%struct.AVRational = type { i32, i32 }
%class.FfmpegDecoder = type <{ %"class.musik::core::sdk::IDecoder", ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i8, [3 x i8], i32, i32, i32, i32, double, i8, i8, [6 x i8] }>
%"class.musik::core::sdk::IDecoder" = type { ptr }
%struct.AVCodecContext = type { ptr, i32, i32, ptr, i32, i32, ptr, ptr, ptr, i64, i32, i32, ptr, i32, %struct.AVRational, %struct.AVRational, %struct.AVRational, i32, i32, i32, i32, i32, i32, %struct.AVRational, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, ptr, i32, float, float, float, float, float, float, float, float, float, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, %struct.AVChannelLayout, i32, i32, i32, i32, i32, i32, i32, i32, ptr, i32, i32, i32, float, float, i32, i32, i32, i32, i32, ptr, i64, i64, float, float, i32, i32, ptr, ptr, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, i32, i32, [8 x i64], i32, i32, i32, i32, i32, i32, i32, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, ptr, i32, i32, ptr, ptr, ptr, ptr, i32, i32, i64, i32, i32, i64, ptr, i64, ptr, i32, ptr, i32 }

; 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

declare void @av_frame_free(ptr noundef) #1

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZL20resolveChannelLayoutm(ptr dead_on_unwind noalias writable sret(%struct.AVChannelLayout) align 8, i64 noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN13FfmpegDecoder10AllocFrameEP7AVFrame14AVSampleFormatii(ptr noundef nonnull align 8 dereferenceable(106) %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #4 align 2 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i8, align 1
  %12 = alloca %struct.AVChannelLayout, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store i32 %2, ptr %8, align 4, !tbaa !9
  store i32 %3, ptr %9, align 4, !tbaa !11
  store i32 %4, ptr %10, align 4, !tbaa !11
  %13 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #5
  %14 = load ptr, ptr %7, align 8, !tbaa !5
  %15 = icmp ne ptr %14, null
  br i1 %15, label %16, label %25

16:                                               ; preds = %5
  %17 = load i32, ptr %10, align 4, !tbaa !11
  %18 = icmp sgt i32 %17, 0
  br i1 %18, label %19, label %25

19:                                               ; preds = %16
  %20 = load i32, ptr %10, align 4, !tbaa !11
  %21 = load ptr, ptr %7, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.AVFrame, ptr %21, i32 0, i32 5
  %23 = load i32, ptr %22, align 8, !tbaa !13
  %24 = icmp ne i32 %20, %23
  br label %25

25:                                               ; preds = %19, %16, %5
  %26 = phi i1 [ false, %16 ], [ false, %5 ], [ %24, %19 ]
  %27 = zext i1 %26 to i8
  store i8 %27, ptr %11, align 1, !tbaa !25
  %28 = load ptr, ptr %7, align 8, !tbaa !5
  %29 = icmp ne ptr %28, null
  br i1 %29, label %30, label %33

30:                                               ; preds = %25
  %31 = load i8, ptr %11, align 1, !tbaa !25, !range !27, !noundef !28
  %32 = trunc i8 %31 to i1
  br i1 %32, label %33, label %77

33:                                               ; preds = %30, %25
  %34 = load ptr, ptr %7, align 8, !tbaa !5
  %35 = icmp ne ptr %34, null
  br i1 %35, label %39, label %36

36:                                               ; preds = %33
  %37 = load i8, ptr %11, align 1, !tbaa !25, !range !27, !noundef !28
  %38 = trunc i8 %37 to i1
  br i1 %38, label %39, label %40

39:                                               ; preds = %36, %33
  call void @av_frame_free(ptr noundef %7)
  br label %40

40:                                               ; preds = %39, %36
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #5
  %41 = getelementptr inbounds %class.FfmpegDecoder, ptr %13, i32 0, i32 5
  %42 = load ptr, ptr %41, align 8, !tbaa !29
  %43 = getelementptr inbounds %struct.AVCodecContext, ptr %42, i32 0, i32 72
  %44 = getelementptr inbounds %struct.AVChannelLayout, ptr %43, i32 0, i32 1
  %45 = load i32, ptr %44, align 4, !tbaa !33
  %46 = icmp eq i32 %45, 0
  br i1 %46, label %47, label %54

47:                                               ; preds = %40
  %48 = getelementptr inbounds %class.FfmpegDecoder, ptr %13, i32 0, i32 5
  %49 = load ptr, ptr %48, align 8, !tbaa !29
  %50 = getelementptr inbounds %struct.AVCodecContext, ptr %49, i32 0, i32 72
  %51 = getelementptr inbounds %struct.AVChannelLayout, ptr %50, i32 0, i32 1
  %52 = load i32, ptr %51, align 4, !tbaa !33
  %53 = sext i32 %52 to i64
  call void @_ZL20resolveChannelLayoutm(ptr dead_on_unwind writable sret(%struct.AVChannelLayout) align 8 %12, i64 noundef %53)
  br label %58

54:                                               ; preds = %40
  %55 = getelementptr inbounds %class.FfmpegDecoder, ptr %13, i32 0, i32 5
  %56 = load ptr, ptr %55, align 8, !tbaa !29
  %57 = getelementptr inbounds %struct.AVCodecContext, ptr %56, i32 0, i32 72
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %12, ptr align 8 %57, i64 24, i1 false), !tbaa.struct !42
  br label %58

58:                                               ; preds = %54, %47
  %59 = call ptr @av_frame_alloc()
  store ptr %59, ptr %7, align 8, !tbaa !5
  %60 = load ptr, ptr %7, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.AVFrame, ptr %60, i32 0, i32 43
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %61, ptr align 8 %12, i64 24, i1 false), !tbaa.struct !42
  %62 = load i32, ptr %8, align 4, !tbaa !9
  %63 = load ptr, ptr %7, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.AVFrame, ptr %63, i32 0, i32 6
  store i32 %62, ptr %64, align 4, !tbaa !45
  %65 = load i32, ptr %9, align 4, !tbaa !11
  %66 = load ptr, ptr %7, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.AVFrame, ptr %66, i32 0, i32 19
  store i32 %65, ptr %67, align 8, !tbaa !46
  %68 = load i8, ptr %11, align 1, !tbaa !25, !range !27, !noundef !28
  %69 = trunc i8 %68 to i1
  br i1 %69, label %70, label %76

70:                                               ; preds = %58
  %71 = load i32, ptr %10, align 4, !tbaa !11
  %72 = load ptr, ptr %7, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.AVFrame, ptr %72, i32 0, i32 5
  store i32 %71, ptr %73, align 8, !tbaa !13
  %74 = load ptr, ptr %7, align 8, !tbaa !5
  %75 = call i32 @av_frame_get_buffer(ptr noundef %74, i32 noundef 0)
  br label %76

76:                                               ; preds = %70, %58
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #5
  br label %77

77:                                               ; preds = %76, %30
  %78 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #5
  ret ptr %78
}

declare ptr @av_frame_alloc() #1

declare i32 @av_frame_get_buffer(ptr noundef, i32 noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = !{!"_ZTS14AVSampleFormat", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !12, i64 112}
!14 = !{!"_ZTS7AVFrame", !7, i64 0, !7, i64 64, !6, i64 96, !12, i64 104, !12, i64 108, !12, i64 112, !12, i64 116, !12, i64 120, !15, i64 124, !16, i64 128, !17, i64 136, !17, i64 144, !16, i64 152, !12, i64 160, !6, i64 168, !12, i64 176, !12, i64 180, !12, i64 184, !12, i64 188, !12, i64 192, !7, i64 200, !6, i64 264, !12, i64 272, !6, i64 280, !12, i64 288, !12, i64 292, !18, i64 296, !19, i64 300, !20, i64 304, !21, i64 308, !22, i64 312, !17, i64 320, !17, i64 328, !6, i64 336, !12, i64 344, !12, i64 348, !6, i64 352, !6, i64 360, !17, i64 368, !17, i64 376, !17, i64 384, !17, i64 392, !6, i64 400, !23, i64 408, !17, i64 432}
!15 = !{!"_ZTS13AVPictureType", !7, i64 0}
!16 = !{!"_ZTS10AVRational", !12, i64 0, !12, i64 4}
!17 = !{!"long", !7, i64 0}
!18 = !{!"_ZTS12AVColorRange", !7, i64 0}
!19 = !{!"_ZTS16AVColorPrimaries", !7, i64 0}
!20 = !{!"_ZTS29AVColorTransferCharacteristic", !7, i64 0}
!21 = !{!"_ZTS12AVColorSpace", !7, i64 0}
!22 = !{!"_ZTS16AVChromaLocation", !7, i64 0}
!23 = !{!"_ZTS15AVChannelLayout", !24, i64 0, !12, i64 4, !7, i64 8, !6, i64 16}
!24 = !{!"_ZTS14AVChannelOrder", !7, i64 0}
!25 = !{!26, !26, i64 0}
!26 = !{!"bool", !7, i64 0}
!27 = !{i8 0, i8 2}
!28 = !{}
!29 = !{!30, !6, i64 40}
!30 = !{!"_ZTS13FfmpegDecoder", !31, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !12, i64 72, !26, i64 76, !12, i64 80, !12, i64 84, !12, i64 88, !12, i64 92, !32, i64 96, !26, i64 104, !26, i64 105}
!31 = !{!"_ZTSN5musik4core3sdk8IDecoderE"}
!32 = !{!"double", !7, i64 0}
!33 = !{!34, !12, i64 356}
!34 = !{!"_ZTS14AVCodecContext", !6, i64 0, !12, i64 8, !35, i64 12, !6, i64 16, !36, i64 24, !12, i64 28, !6, i64 32, !6, i64 40, !6, i64 48, !17, i64 56, !12, i64 64, !12, i64 68, !6, i64 72, !12, i64 80, !16, i64 84, !16, i64 92, !16, i64 100, !12, i64 108, !12, i64 112, !12, i64 116, !12, i64 120, !12, i64 124, !12, i64 128, !16, i64 132, !37, i64 140, !37, i64 144, !19, i64 148, !20, i64 152, !21, i64 156, !18, i64 160, !22, i64 164, !38, i64 168, !12, i64 172, !12, i64 176, !12, i64 180, !6, i64 184, !6, i64 192, !12, i64 200, !39, i64 204, !39, i64 208, !39, i64 212, !39, i64 216, !39, i64 220, !39, i64 224, !39, i64 228, !39, i64 232, !39, i64 236, !12, i64 240, !12, i64 244, !12, i64 248, !12, i64 252, !12, i64 256, !12, i64 260, !12, i64 264, !12, i64 268, !12, i64 272, !12, i64 276, !12, i64 280, !12, i64 284, !6, i64 288, !6, i64 296, !6, i64 304, !12, i64 312, !12, i64 316, !12, i64 320, !12, i64 324, !12, i64 328, !12, i64 332, !12, i64 336, !12, i64 340, !12, i64 344, !10, i64 348, !23, i64 352, !12, i64 376, !12, i64 380, !12, i64 384, !40, i64 388, !10, i64 392, !12, i64 396, !12, i64 400, !12, i64 404, !6, i64 408, !12, i64 416, !12, i64 420, !12, i64 424, !39, i64 428, !39, i64 432, !12, i64 436, !12, i64 440, !12, i64 444, !12, i64 448, !12, i64 452, !6, i64 456, !17, i64 464, !17, i64 472, !39, i64 480, !39, i64 484, !12, i64 488, !12, i64 492, !6, i64 496, !6, i64 504, !12, i64 512, !12, i64 516, !12, i64 520, !12, i64 524, !12, i64 528, !6, i64 536, !6, i64 544, !6, i64 552, !6, i64 560, !12, i64 568, !12, i64 572, !7, i64 576, !12, i64 640, !12, i64 644, !12, i64 648, !12, i64 652, !12, i64 656, !12, i64 660, !12, i64 664, !6, i64 672, !6, i64 680, !12, i64 688, !12, i64 692, !12, i64 696, !41, i64 700, !41, i64 704, !41, i64 708, !12, i64 712, !12, i64 716, !12, i64 720, !12, i64 724, !6, i64 728, !6, i64 736, !12, i64 744, !12, i64 748, !6, i64 752, !6, i64 760, !6, i64 768, !6, i64 776, !12, i64 784, !12, i64 788, !17, i64 792, !12, i64 800, !12, i64 804, !17, i64 808, !6, i64 816, !17, i64 824, !6, i64 832, !12, i64 840, !6, i64 848, !12, i64 856}
!35 = !{!"_ZTS11AVMediaType", !7, i64 0}
!36 = !{!"_ZTS9AVCodecID", !7, i64 0}
!37 = !{!"_ZTS13AVPixelFormat", !7, i64 0}
!38 = !{!"_ZTS12AVFieldOrder", !7, i64 0}
!39 = !{!"float", !7, i64 0}
!40 = !{!"_ZTS18AVAudioServiceType", !7, i64 0}
!41 = !{!"_ZTS9AVDiscard", !7, i64 0}
!42 = !{i64 0, i64 4, !43, i64 4, i64 4, !11, i64 8, i64 8, !44, i64 16, i64 8, !5}
!43 = !{!24, !24, i64 0}
!44 = !{!7, !7, i64 0}
!45 = !{!14, !12, i64 116}
!46 = !{!14, !12, i64 192}


; 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.AVChannelLayout = type { i32, i32, %union.anon.8, ptr }
%union.anon.8 = type { i64 }

; 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

declare void @av_frame_free(ptr noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZL20resolveChannelLayoutm(ptr dead_on_unwind noalias writable sret(%struct.AVChannelLayout) align 8, i64 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN13FfmpegDecoder10AllocFrameEP7AVFrame14AVSampleFormatii(ptr nocapture noundef nonnull readonly align 8 dereferenceable(106) %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) local_unnamed_addr #4 align 2 {
  %6 = alloca ptr, align 8
  %7 = alloca %struct.AVChannelLayout, align 8
  store ptr %1, ptr %6, align 8, !tbaa !5
  %8 = icmp ne ptr %1, null
  %9 = icmp sgt i32 %4, 0
  %or.cond = and i1 %8, %9
  br i1 %or.cond, label %10, label %14

10:                                               ; preds = %5
  %11 = getelementptr inbounds i8, ptr %1, i64 112
  %12 = load i32, ptr %11, align 8, !tbaa !9
  %13 = icmp ne i32 %12, %4
  br label %14

14:                                               ; preds = %10, %5
  %15 = phi i1 [ false, %5 ], [ %13, %10 ]
  %.not = icmp eq ptr %1, null
  %brmerge = select i1 %.not, i1 true, i1 %15
  br i1 %brmerge, label %16, label %36

16:                                               ; preds = %14
  %.not11.not = xor i1 %.not, true
  %brmerge12 = select i1 %.not11.not, i1 true, i1 %15
  br i1 %brmerge12, label %17, label %18

17:                                               ; preds = %16
  call void @av_frame_free(ptr noundef nonnull %6)
  br label %18

18:                                               ; preds = %16, %17
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #5
  %19 = getelementptr inbounds i8, ptr %0, i64 40
  %20 = load ptr, ptr %19, align 8, !tbaa !22
  %21 = getelementptr inbounds i8, ptr %20, i64 356
  %22 = load i32, ptr %21, align 4, !tbaa !27
  %23 = icmp eq i32 %22, 0
  br i1 %23, label %24, label %25

24:                                               ; preds = %18
  call void @_ZL20resolveChannelLayoutm(ptr dead_on_unwind nonnull writable sret(%struct.AVChannelLayout) align 8 %7, i64 noundef 0)
  br label %27

25:                                               ; preds = %18
  %26 = getelementptr inbounds i8, ptr %20, i64 352
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %26, i64 24, i1 false), !tbaa.struct !37
  br label %27

27:                                               ; preds = %25, %24
  %28 = call ptr @av_frame_alloc()
  store ptr %28, ptr %6, align 8, !tbaa !5
  %29 = getelementptr inbounds i8, ptr %28, i64 408
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %29, ptr noundef nonnull align 8 dereferenceable(24) %7, i64 24, i1 false), !tbaa.struct !37
  %30 = getelementptr inbounds i8, ptr %28, i64 116
  store i32 %2, ptr %30, align 4, !tbaa !41
  %31 = getelementptr inbounds i8, ptr %28, i64 192
  store i32 %3, ptr %31, align 8, !tbaa !42
  br i1 %15, label %32, label %35

32:                                               ; preds = %27
  %33 = getelementptr inbounds i8, ptr %28, i64 112
  store i32 %4, ptr %33, align 8, !tbaa !9
  %34 = call i32 @av_frame_get_buffer(ptr noundef nonnull %28, i32 noundef 0)
  %.pre.pre = load ptr, ptr %6, align 8, !tbaa !5
  br label %35

35:                                               ; preds = %32, %27
  %.pre = phi ptr [ %.pre.pre, %32 ], [ %28, %27 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #5
  br label %36

36:                                               ; preds = %14, %35
  %37 = phi ptr [ %1, %14 ], [ %.pre, %35 ]
  ret ptr %37
}

declare ptr @av_frame_alloc() local_unnamed_addr #1

declare i32 @av_frame_get_buffer(ptr noundef, i32 noundef) local_unnamed_addr #1

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { 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, !11, i64 112}
!10 = !{!"_ZTS7AVFrame", !7, i64 0, !7, i64 64, !6, i64 96, !11, i64 104, !11, i64 108, !11, i64 112, !11, i64 116, !11, i64 120, !12, i64 124, !13, i64 128, !14, i64 136, !14, i64 144, !13, i64 152, !11, i64 160, !6, i64 168, !11, i64 176, !11, i64 180, !11, i64 184, !11, i64 188, !11, i64 192, !7, i64 200, !6, i64 264, !11, i64 272, !6, i64 280, !11, i64 288, !11, i64 292, !15, i64 296, !16, i64 300, !17, i64 304, !18, i64 308, !19, i64 312, !14, i64 320, !14, i64 328, !6, i64 336, !11, i64 344, !11, i64 348, !6, i64 352, !6, i64 360, !14, i64 368, !14, i64 376, !14, i64 384, !14, i64 392, !6, i64 400, !20, i64 408, !14, i64 432}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_ZTS13AVPictureType", !7, i64 0}
!13 = !{!"_ZTS10AVRational", !11, i64 0, !11, i64 4}
!14 = !{!"long", !7, i64 0}
!15 = !{!"_ZTS12AVColorRange", !7, i64 0}
!16 = !{!"_ZTS16AVColorPrimaries", !7, i64 0}
!17 = !{!"_ZTS29AVColorTransferCharacteristic", !7, i64 0}
!18 = !{!"_ZTS12AVColorSpace", !7, i64 0}
!19 = !{!"_ZTS16AVChromaLocation", !7, i64 0}
!20 = !{!"_ZTS15AVChannelLayout", !21, i64 0, !11, i64 4, !7, i64 8, !6, i64 16}
!21 = !{!"_ZTS14AVChannelOrder", !7, i64 0}
!22 = !{!23, !6, i64 40}
!23 = !{!"_ZTS13FfmpegDecoder", !24, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !11, i64 72, !25, i64 76, !11, i64 80, !11, i64 84, !11, i64 88, !11, i64 92, !26, i64 96, !25, i64 104, !25, i64 105}
!24 = !{!"_ZTSN5musik4core3sdk8IDecoderE"}
!25 = !{!"bool", !7, i64 0}
!26 = !{!"double", !7, i64 0}
!27 = !{!28, !11, i64 356}
!28 = !{!"_ZTS14AVCodecContext", !6, i64 0, !11, i64 8, !29, i64 12, !6, i64 16, !30, i64 24, !11, i64 28, !6, i64 32, !6, i64 40, !6, i64 48, !14, i64 56, !11, i64 64, !11, i64 68, !6, i64 72, !11, i64 80, !13, i64 84, !13, i64 92, !13, i64 100, !11, i64 108, !11, i64 112, !11, i64 116, !11, i64 120, !11, i64 124, !11, i64 128, !13, i64 132, !31, i64 140, !31, i64 144, !16, i64 148, !17, i64 152, !18, i64 156, !15, i64 160, !19, i64 164, !32, i64 168, !11, i64 172, !11, i64 176, !11, i64 180, !6, i64 184, !6, i64 192, !11, i64 200, !33, i64 204, !33, i64 208, !33, i64 212, !33, i64 216, !33, i64 220, !33, i64 224, !33, i64 228, !33, i64 232, !33, i64 236, !11, i64 240, !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, !6, i64 288, !6, i64 296, !6, i64 304, !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, !34, i64 348, !20, i64 352, !11, i64 376, !11, i64 380, !11, i64 384, !35, i64 388, !34, i64 392, !11, i64 396, !11, i64 400, !11, i64 404, !6, i64 408, !11, i64 416, !11, i64 420, !11, i64 424, !33, i64 428, !33, i64 432, !11, i64 436, !11, i64 440, !11, i64 444, !11, i64 448, !11, i64 452, !6, i64 456, !14, i64 464, !14, i64 472, !33, i64 480, !33, i64 484, !11, i64 488, !11, i64 492, !6, i64 496, !6, i64 504, !11, i64 512, !11, i64 516, !11, i64 520, !11, i64 524, !11, i64 528, !6, i64 536, !6, i64 544, !6, i64 552, !6, i64 560, !11, i64 568, !11, i64 572, !7, i64 576, !11, i64 640, !11, i64 644, !11, i64 648, !11, i64 652, !11, i64 656, !11, i64 660, !11, i64 664, !6, i64 672, !6, i64 680, !11, i64 688, !11, i64 692, !11, i64 696, !36, i64 700, !36, i64 704, !36, i64 708, !11, i64 712, !11, i64 716, !11, i64 720, !11, i64 724, !6, i64 728, !6, i64 736, !11, i64 744, !11, i64 748, !6, i64 752, !6, i64 760, !6, i64 768, !6, i64 776, !11, i64 784, !11, i64 788, !14, i64 792, !11, i64 800, !11, i64 804, !14, i64 808, !6, i64 816, !14, i64 824, !6, i64 832, !11, i64 840, !6, i64 848, !11, i64 856}
!29 = !{!"_ZTS11AVMediaType", !7, i64 0}
!30 = !{!"_ZTS9AVCodecID", !7, i64 0}
!31 = !{!"_ZTS13AVPixelFormat", !7, i64 0}
!32 = !{!"_ZTS12AVFieldOrder", !7, i64 0}
!33 = !{!"float", !7, i64 0}
!34 = !{!"_ZTS14AVSampleFormat", !7, i64 0}
!35 = !{!"_ZTS18AVAudioServiceType", !7, i64 0}
!36 = !{!"_ZTS9AVDiscard", !7, i64 0}
!37 = !{i64 0, i64 4, !38, i64 4, i64 4, !39, i64 8, i64 8, !40, i64 16, i64 8, !5}
!38 = !{!21, !21, i64 0}
!39 = !{!11, !11, i64 0}
!40 = !{!7, !7, i64 0}
!41 = !{!10, !11, i64 116}
!42 = !{!10, !11, i64 192}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass