; LLVM IR from SelfishOlex/MiniAudioO3DE :: MiniAudio/Code/Source/Clients (MiniAudioImplementation)

; 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.ma_job = type { %union.anon.0, i64, i32, %union.anon.2 }
%union.anon.0 = type { i64 }
%union.anon.2 = type { %union.anon.4 }
%union.anon.4 = type { %struct.anon.8 }
%struct.anon.8 = type { ptr, ptr, ptr, ptr, ptr, i64, i64, i64, i64, i32 }
%struct.ma_resource_manager_data_stream = type { %struct.ma_data_source_base, ptr, i32, %struct.ma_decoder, i32, i64, i32, i64, i32, i32, i32, i32, ptr, [2 x i32], i32, i32, [2 x i32], i32 }
%struct.ma_data_source_base = type { ptr, i64, i64, i64, i64, ptr, ptr, ptr, i32 }
%struct.ma_decoder = type { %struct.ma_data_source_base, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i64, i32, i32, i32, %struct.ma_data_converter, ptr, i64, i64, i64, %struct.ma_allocation_callbacks, %union.anon.61 }
%struct.ma_data_converter = type { i32, i32, i32, i32, i32, i32, i32, i32, %struct.ma_channel_converter, %struct.ma_resampler, i8, i8, i8, i8, i8, i8, ptr }
%struct.ma_channel_converter = type { i32, i32, i32, i32, i32, ptr, ptr, ptr, %union.anon.27, ptr, i32 }
%union.anon.27 = type { ptr }
%struct.ma_resampler = type { ptr, ptr, ptr, i32, i32, i32, i32, %union.anon.28, ptr, i32 }
%union.anon.28 = type { %struct.ma_linear_resampler }
%struct.ma_linear_resampler = type { %struct.ma_linear_resampler_config, i32, i32, i32, i32, %union.anon.29, %union.anon.30, %struct.ma_lpf, ptr, i32 }
%struct.ma_linear_resampler_config = type { i32, i32, i32, i32, i32, double }
%union.anon.29 = type { ptr }
%union.anon.30 = type { ptr }
%struct.ma_lpf = type { i32, i32, i32, i32, i32, ptr, ptr, ptr, i32 }
%struct.ma_allocation_callbacks = type { ptr, ptr, ptr, ptr }
%union.anon.61 = type { %struct.anon.63 }
%struct.anon.63 = type { ptr, i64, i64 }
%struct.anon.13 = type { ptr, i64 }

@.str.6 = external hidden unnamed_addr constant [104 x i8], align 1
@.str.159 = external hidden unnamed_addr constant [31 x i8], align 1
@__PRETTY_FUNCTION__.ma_resource_manager_data_stream_seek_to_pcm_frame = external hidden unnamed_addr constant [106 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.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: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @ma_job_init(ptr dead_on_unwind noalias writable sret(%struct.ma_job) align 8, i16 noundef zeroext) #3

; Function Attrs: mustprogress uwtable
declare dso_local i32 @ma_resource_manager_post_job(ptr noundef, ptr noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZL51ma_resource_manager_data_stream_set_absolute_cursorP31ma_resource_manager_data_streamy(ptr noundef, i64 noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL52ma_resource_manager_data_stream_next_execution_orderP31ma_resource_manager_data_stream(ptr noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local i32 @ma_resource_manager_data_stream_result(ptr noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local i32 @ma_resource_manager_data_stream_seek_to_pcm_frame(ptr noundef %0, i64 noundef %1) #4 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca %struct.ma_job, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i64, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca %struct.ma_job, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i64 %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 104, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  %21 = call i32 @ma_resource_manager_data_stream_result(ptr noundef %20)
  store i32 %21, ptr %7, align 4, !tbaa !11
  %22 = load i32, ptr %7, align 4, !tbaa !11
  %23 = icmp ne i32 %22, -22
  br i1 %23, label %24, label %25

24:                                               ; preds = %2
  br label %27

25:                                               ; preds = %2
  call void @__assert_fail(ptr noundef @.str.159, ptr noundef @.str.6, i32 noundef 66904, ptr noundef @__PRETTY_FUNCTION__.ma_resource_manager_data_stream_seek_to_pcm_frame) #6
  unreachable

26:                                               ; No predecessors!
  br label %27

27:                                               ; preds = %26, %24
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  %29 = icmp eq ptr %28, null
  br i1 %29, label %30, label %31

30:                                               ; preds = %27
  store i32 -2, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %95

31:                                               ; preds = %27
  %32 = load i32, ptr %7, align 4, !tbaa !11
  %33 = icmp ne i32 %32, 0
  br i1 %33, label %34, label %38

34:                                               ; preds = %31
  %35 = load i32, ptr %7, align 4, !tbaa !11
  %36 = icmp ne i32 %35, -19
  br i1 %36, label %37, label %38

37:                                               ; preds = %34
  store i32 -3, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %95

38:                                               ; preds = %34, %31
  %39 = load ptr, ptr %4, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.ma_resource_manager_data_stream, ptr %39, i32 0, i32 17
  %41 = load atomic i32, ptr %40 seq_cst, align 8
  store i32 %41, ptr %9, align 4
  %42 = load i32, ptr %9, align 4, !tbaa !13
  %43 = icmp eq i32 %42, 0
  br i1 %43, label %44, label %53

44:                                               ; preds = %38
  %45 = load ptr, ptr %4, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.ma_resource_manager_data_stream, ptr %45, i32 0, i32 7
  %47 = load atomic i64, ptr %46 seq_cst, align 8
  store i64 %47, ptr %10, align 8
  %48 = load i64, ptr %10, align 8, !tbaa !9
  %49 = load i64, ptr %5, align 8, !tbaa !9
  %50 = icmp eq i64 %48, %49
  br i1 %50, label %51, label %52

51:                                               ; preds = %44
  store i32 0, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %95

52:                                               ; preds = %44
  br label %53

53:                                               ; preds = %52, %38
  %54 = load ptr, ptr %4, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.ma_resource_manager_data_stream, ptr %54, i32 0, i32 17
  store i32 1, ptr %11, align 4, !tbaa !13
  %56 = load i32, ptr %11, align 4
  %57 = atomicrmw add ptr %55, i32 %56 seq_cst, align 8
  store i32 %57, ptr %12, align 4
  %58 = load i32, ptr %12, align 4, !tbaa !13
  %59 = load ptr, ptr %4, align 8, !tbaa !5
  %60 = load i64, ptr %5, align 8, !tbaa !9
  call void @_ZL51ma_resource_manager_data_stream_set_absolute_cursorP31ma_resource_manager_data_streamy(ptr noundef %59, i64 noundef %60)
  %61 = load ptr, ptr %4, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.ma_resource_manager_data_stream, ptr %61, i32 0, i32 6
  store i32 0, ptr %62, align 8, !tbaa !15
  %63 = load ptr, ptr %4, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.ma_resource_manager_data_stream, ptr %63, i32 0, i32 8
  store i32 0, ptr %64, align 8, !tbaa !28
  %65 = load ptr, ptr %4, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.ma_resource_manager_data_stream, ptr %65, i32 0, i32 16
  %67 = getelementptr inbounds [2 x i32], ptr %66, i64 0, i64 0
  store i32 0, ptr %13, align 4, !tbaa !13
  %68 = load i32, ptr %13, align 4
  %69 = atomicrmw xchg ptr %67, i32 %68 seq_cst, align 8
  store i32 %69, ptr %14, align 4
  %70 = load i32, ptr %14, align 4, !tbaa !13
  %71 = load ptr, ptr %4, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.ma_resource_manager_data_stream, ptr %71, i32 0, i32 16
  %73 = getelementptr inbounds [2 x i32], ptr %72, i64 0, i64 1
  store i32 0, ptr %15, align 4, !tbaa !13
  %74 = load i32, ptr %15, align 4
  %75 = atomicrmw xchg ptr %73, i32 %74 seq_cst, align 4
  store i32 %75, ptr %16, align 4
  %76 = load i32, ptr %16, align 4, !tbaa !13
  %77 = load ptr, ptr %4, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.ma_resource_manager_data_stream, ptr %77, i32 0, i32 15
  store i32 0, ptr %17, align 4, !tbaa !13
  %79 = load i32, ptr %17, align 4
  %80 = atomicrmw xchg ptr %78, i32 %79 seq_cst, align 4
  store i32 %80, ptr %18, align 4
  %81 = load i32, ptr %18, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 104, ptr %19) #5
  call void @ma_job_init(ptr dead_on_unwind writable sret(%struct.ma_job) align 8 %19, i16 noundef zeroext 10)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %6, ptr align 8 %19, i64 104, i1 false), !tbaa.struct !29
  call void @llvm.lifetime.end.p0(i64 104, ptr %19) #5
  %82 = load ptr, ptr %4, align 8, !tbaa !5
  %83 = call noundef i32 @_ZL52ma_resource_manager_data_stream_next_execution_orderP31ma_resource_manager_data_stream(ptr noundef %82)
  %84 = getelementptr inbounds %struct.ma_job, ptr %6, i32 0, i32 2
  store i32 %83, ptr %84, align 8, !tbaa !31
  %85 = load ptr, ptr %4, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.ma_job, ptr %6, i32 0, i32 3
  %87 = getelementptr inbounds %struct.anon.13, ptr %86, i32 0, i32 0
  store ptr %85, ptr %87, align 8, !tbaa !30
  %88 = load i64, ptr %5, align 8, !tbaa !9
  %89 = getelementptr inbounds %struct.ma_job, ptr %6, i32 0, i32 3
  %90 = getelementptr inbounds %struct.anon.13, ptr %89, i32 0, i32 1
  store i64 %88, ptr %90, align 8, !tbaa !30
  %91 = load ptr, ptr %4, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.ma_resource_manager_data_stream, ptr %91, i32 0, i32 1
  %93 = load ptr, ptr %92, align 8, !tbaa !33
  %94 = call i32 @ma_resource_manager_post_job(ptr noundef %93, ptr noundef %6)
  store i32 %94, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %95

95:                                               ; preds = %53, %51, %37, %30
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 104, ptr %6) #5
  %96 = load i32, ptr %3, align 4
  ret i32 %96
}

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 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 }
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 = !{!"long long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_ZTS9ma_result", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!16, !14, i64 656}
!16 = !{!"_ZTS31ma_resource_manager_data_stream", !17, i64 0, !6, i64 72, !14, i64 80, !18, i64 88, !14, i64 640, !10, i64 648, !14, i64 656, !10, i64 664, !14, i64 672, !14, i64 676, !14, i64 680, !14, i64 684, !6, i64 688, !7, i64 696, !12, i64 704, !14, i64 708, !7, i64 712, !14, i64 720}
!17 = !{!"_ZTS19ma_data_source_base", !6, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !14, i64 64}
!18 = !{!"_ZTS10ma_decoder", !17, i64 0, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !10, i64 128, !19, i64 136, !14, i64 140, !14, i64 144, !20, i64 152, !6, i64 464, !10, i64 472, !10, i64 480, !10, i64 488, !27, i64 496, !7, i64 528}
!19 = !{!"_ZTS9ma_format", !7, i64 0}
!20 = !{!"_ZTS17ma_data_converter", !19, i64 0, !19, i64 4, !14, i64 8, !14, i64 12, !14, i64 16, !14, i64 20, !21, i64 24, !22, i64 28, !23, i64 32, !26, i64 104, !7, i64 296, !7, i64 297, !7, i64 298, !7, i64 299, !7, i64 300, !7, i64 301, !6, i64 304}
!21 = !{!"_ZTS14ma_dither_mode", !7, i64 0}
!22 = !{!"_ZTS32ma_data_converter_execution_path", !7, i64 0}
!23 = !{!"_ZTS20ma_channel_converter", !19, i64 0, !14, i64 4, !14, i64 8, !24, i64 12, !25, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !7, i64 48, !6, i64 56, !14, i64 64}
!24 = !{!"_ZTS19ma_channel_mix_mode", !7, i64 0}
!25 = !{!"_ZTS26ma_channel_conversion_path", !7, i64 0}
!26 = !{!"_ZTS12ma_resampler", !6, i64 0, !6, i64 8, !6, i64 16, !19, i64 24, !14, i64 28, !14, i64 32, !14, i64 36, !7, i64 40, !6, i64 176, !14, i64 184}
!27 = !{!"_ZTS23ma_allocation_callbacks", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!28 = !{!16, !14, i64 672}
!29 = !{i64 0, i64 8, !30, i64 8, i64 8, !9, i64 16, i64 4, !13, i64 24, i64 80, !30}
!30 = !{!7, !7, i64 0}
!31 = !{!32, !14, i64 16}
!32 = !{!"_ZTS6ma_job", !7, i64 0, !10, i64 8, !14, i64 16, !7, i64 24}
!33 = !{!16, !6, i64 72}


; 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.ma_job = type { %union.anon.0, i64, i32, %union.anon.2 }
%union.anon.0 = type { i64 }
%union.anon.2 = type { %union.anon.4 }
%union.anon.4 = type { %struct.anon.8 }
%struct.anon.8 = type { ptr, ptr, ptr, ptr, ptr, i64, i64, i64, i64, i32 }

@.str.6 = external hidden unnamed_addr constant [104 x i8], align 1
@.str.159 = external hidden unnamed_addr constant [31 x i8], align 1
@__PRETTY_FUNCTION__.ma_resource_manager_data_stream_seek_to_pcm_frame = external hidden unnamed_addr constant [106 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 nounwind uwtable
declare dso_local void @ma_job_init(ptr dead_on_unwind noalias writable sret(%struct.ma_job) align 8, i16 noundef zeroext) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local i32 @ma_resource_manager_post_job(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZL51ma_resource_manager_data_stream_set_absolute_cursorP31ma_resource_manager_data_streamy(ptr noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL52ma_resource_manager_data_stream_next_execution_orderP31ma_resource_manager_data_stream(ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local i32 @ma_resource_manager_data_stream_result(ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local i32 @ma_resource_manager_data_stream_seek_to_pcm_frame(ptr noundef %0, i64 noundef %1) local_unnamed_addr #3 {
  %3 = alloca %struct.ma_job, align 8
  call void @llvm.lifetime.start.p0(i64 104, ptr nonnull %3) #4
  %4 = tail call i32 @ma_resource_manager_data_stream_result(ptr noundef %0)
  %.not = icmp eq i32 %4, -22
  br i1 %.not, label %5, label %6

5:                                                ; preds = %2
  tail call void @__assert_fail(ptr noundef nonnull @.str.159, ptr noundef nonnull @.str.6, i32 noundef 66904, ptr noundef nonnull @__PRETTY_FUNCTION__.ma_resource_manager_data_stream_seek_to_pcm_frame) #5
  unreachable

6:                                                ; preds = %2
  %7 = icmp eq ptr %0, null
  br i1 %7, label %34, label %8

8:                                                ; preds = %6
  switch i32 %4, label %34 [
    i32 -19, label %9
    i32 0, label %9
  ]

9:                                                ; preds = %8, %8
  %10 = getelementptr inbounds i8, ptr %0, i64 720
  %11 = load atomic i32, ptr %10 seq_cst, align 8
  %12 = icmp eq i32 %11, 0
  br i1 %12, label %13, label %17

13:                                               ; preds = %9
  %14 = getelementptr inbounds i8, ptr %0, i64 664
  %15 = load atomic i64, ptr %14 seq_cst, align 8
  %16 = icmp eq i64 %15, %1
  br i1 %16, label %34, label %17

17:                                               ; preds = %13, %9
  %18 = atomicrmw add ptr %10, i32 1 seq_cst, align 8
  tail call void @_ZL51ma_resource_manager_data_stream_set_absolute_cursorP31ma_resource_manager_data_streamy(ptr noundef nonnull %0, i64 noundef %1)
  %19 = getelementptr inbounds i8, ptr %0, i64 656
  store i32 0, ptr %19, align 8, !tbaa !5
  %20 = getelementptr inbounds i8, ptr %0, i64 672
  store i32 0, ptr %20, align 8, !tbaa !24
  %21 = getelementptr inbounds i8, ptr %0, i64 712
  %22 = atomicrmw xchg ptr %21, i32 0 seq_cst, align 8
  %23 = getelementptr inbounds i8, ptr %0, i64 716
  %24 = atomicrmw xchg ptr %23, i32 0 seq_cst, align 4
  %25 = getelementptr inbounds i8, ptr %0, i64 708
  %26 = atomicrmw xchg ptr %25, i32 0 seq_cst, align 4
  call void @ma_job_init(ptr dead_on_unwind nonnull writable sret(%struct.ma_job) align 8 %3, i16 noundef zeroext 10)
  %27 = call noundef i32 @_ZL52ma_resource_manager_data_stream_next_execution_orderP31ma_resource_manager_data_stream(ptr noundef nonnull %0)
  %28 = getelementptr inbounds i8, ptr %3, i64 16
  store i32 %27, ptr %28, align 8, !tbaa !25
  %29 = getelementptr inbounds i8, ptr %3, i64 24
  store ptr %0, ptr %29, align 8, !tbaa !27
  %30 = getelementptr inbounds i8, ptr %3, i64 32
  store i64 %1, ptr %30, align 8, !tbaa !27
  %31 = getelementptr inbounds i8, ptr %0, i64 72
  %32 = load ptr, ptr %31, align 8, !tbaa !28
  %33 = call i32 @ma_resource_manager_post_job(ptr noundef %32, ptr noundef nonnull %3)
  br label %34

34:                                               ; preds = %13, %8, %6, %17
  %.0 = phi i32 [ %33, %17 ], [ -2, %6 ], [ -3, %8 ], [ 0, %13 ]
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %3) #4
  ret i32 %.0
}

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 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 #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 = { 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, !12, i64 656}
!6 = !{!"_ZTS31ma_resource_manager_data_stream", !7, i64 0, !8, i64 72, !12, i64 80, !13, i64 88, !12, i64 640, !11, i64 648, !12, i64 656, !11, i64 664, !12, i64 672, !12, i64 676, !12, i64 680, !12, i64 684, !8, i64 688, !9, i64 696, !23, i64 704, !12, i64 708, !9, i64 712, !12, i64 720}
!7 = !{!"_ZTS19ma_data_source_base", !8, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !8, i64 40, !8, i64 48, !8, i64 56, !12, i64 64}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"long long", !9, i64 0}
!12 = !{!"int", !9, i64 0}
!13 = !{!"_ZTS10ma_decoder", !7, i64 0, !8, i64 72, !8, i64 80, !8, i64 88, !8, i64 96, !8, i64 104, !8, i64 112, !8, i64 120, !11, i64 128, !14, i64 136, !12, i64 140, !12, i64 144, !15, i64 152, !8, i64 464, !11, i64 472, !11, i64 480, !11, i64 488, !22, i64 496, !9, i64 528}
!14 = !{!"_ZTS9ma_format", !9, i64 0}
!15 = !{!"_ZTS17ma_data_converter", !14, i64 0, !14, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !16, i64 24, !17, i64 28, !18, i64 32, !21, i64 104, !9, i64 296, !9, i64 297, !9, i64 298, !9, i64 299, !9, i64 300, !9, i64 301, !8, i64 304}
!16 = !{!"_ZTS14ma_dither_mode", !9, i64 0}
!17 = !{!"_ZTS32ma_data_converter_execution_path", !9, i64 0}
!18 = !{!"_ZTS20ma_channel_converter", !14, i64 0, !12, i64 4, !12, i64 8, !19, i64 12, !20, i64 16, !8, i64 24, !8, i64 32, !8, i64 40, !9, i64 48, !8, i64 56, !12, i64 64}
!19 = !{!"_ZTS19ma_channel_mix_mode", !9, i64 0}
!20 = !{!"_ZTS26ma_channel_conversion_path", !9, i64 0}
!21 = !{!"_ZTS12ma_resampler", !8, i64 0, !8, i64 8, !8, i64 16, !14, i64 24, !12, i64 28, !12, i64 32, !12, i64 36, !9, i64 40, !8, i64 176, !12, i64 184}
!22 = !{!"_ZTS23ma_allocation_callbacks", !8, i64 0, !8, i64 8, !8, i64 16, !8, i64 24}
!23 = !{!"_ZTS9ma_result", !9, i64 0}
!24 = !{!6, !12, i64 672}
!25 = !{!26, !12, i64 16}
!26 = !{!"_ZTS6ma_job", !9, i64 0, !11, i64 8, !12, i64 16, !9, i64 24}
!27 = !{!9, !9, i64 0}
!28 = !{!6, !8, i64 72}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,MemCpyOptPass,SROAPass,SimplifyCFGPass,TailCallElimPass