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

@.str.6 = external hidden unnamed_addr constant [104 x i8], align 1
@.str.158 = external hidden unnamed_addr constant [70 x i8], align 1
@__PRETTY_FUNCTION__.ma_resource_manager_data_stream_read_pcm_frames = external hidden unnamed_addr constant [125 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: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @ma_copy_pcm_frames(ptr noundef, ptr noundef, i64 noundef, i32 noundef, i32 noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local ptr @ma_offset_pcm_frames_ptr(ptr noundef, i64 noundef, i32 noundef, i32 noundef) #2

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

19:                                               ; preds = %4
  %20 = load ptr, ptr %9, align 8, !tbaa !5
  store i64 0, ptr %20, align 8, !tbaa !9
  br label %21

21:                                               ; preds = %19, %4
  %22 = load i64, ptr %8, align 8, !tbaa !9
  %23 = icmp eq i64 %22, 0
  br i1 %23, label %24, label %25

24:                                               ; preds = %21
  store i32 -2, ptr %5, align 4
  store i32 1, ptr %14, align 4
  br label %104

25:                                               ; preds = %21
  %26 = load ptr, ptr %6, align 8, !tbaa !5
  %27 = call i32 @ma_resource_manager_data_stream_result(ptr noundef %26)
  %28 = icmp ne i32 %27, -22
  br i1 %28, label %29, label %30

29:                                               ; preds = %25
  br label %32

30:                                               ; preds = %25
  call void @__assert_fail(ptr noundef @.str.158, ptr noundef @.str.6, i32 noundef 66843, ptr noundef @__PRETTY_FUNCTION__.ma_resource_manager_data_stream_read_pcm_frames) #5
  unreachable

31:                                               ; No predecessors!
  br label %32

32:                                               ; preds = %31, %29
  %33 = load ptr, ptr %6, align 8, !tbaa !5
  %34 = icmp eq ptr %33, null
  br i1 %34, label %35, label %36

35:                                               ; preds = %32
  store i32 -2, ptr %5, align 4
  store i32 1, ptr %14, align 4
  br label %104

36:                                               ; preds = %32
  %37 = load ptr, ptr %6, align 8, !tbaa !5
  %38 = call i32 @ma_resource_manager_data_stream_result(ptr noundef %37)
  %39 = icmp ne i32 %38, 0
  br i1 %39, label %40, label %41

40:                                               ; preds = %36
  store i32 -3, ptr %5, align 4
  store i32 1, ptr %14, align 4
  br label %104

41:                                               ; preds = %36
  %42 = load ptr, ptr %6, align 8, !tbaa !5
  %43 = call noundef i32 @_ZL44ma_resource_manager_data_stream_seek_counterPK31ma_resource_manager_data_stream(ptr noundef %42)
  %44 = icmp ugt i32 %43, 0
  br i1 %44, label %45, label %46

45:                                               ; preds = %41
  store i32 -19, ptr %5, align 4
  store i32 1, ptr %14, align 4
  br label %104

46:                                               ; preds = %41
  %47 = load ptr, ptr %6, align 8, !tbaa !5
  %48 = call i32 @ma_resource_manager_data_stream_get_data_format(ptr noundef %47, ptr noundef %12, ptr noundef %13, ptr noundef null, ptr noundef null, i64 noundef 0)
  store i64 0, ptr %11, align 8, !tbaa !9
  br label %49

49:                                               ; preds = %88, %46
  %50 = load i64, ptr %11, align 8, !tbaa !9
  %51 = load i64, ptr %8, align 8, !tbaa !9
  %52 = icmp ult i64 %50, %51
  br i1 %52, label %53, label %89

53:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  %54 = load i64, ptr %8, align 8, !tbaa !9
  %55 = load i64, ptr %11, align 8, !tbaa !9
  %56 = sub i64 %54, %55
  store i64 %56, ptr %16, align 8, !tbaa !9
  %57 = load ptr, ptr %6, align 8, !tbaa !5
  %58 = call noundef i32 @_ZL35ma_resource_manager_data_stream_mapP31ma_resource_manager_data_streamPPvPy(ptr noundef %57, ptr noundef %15, ptr noundef %16)
  store i32 %58, ptr %10, align 4, !tbaa !11
  %59 = load i32, ptr %10, align 4, !tbaa !11
  %60 = icmp ne i32 %59, 0
  br i1 %60, label %61, label %62

61:                                               ; preds = %53
  store i32 3, ptr %14, align 4
  br label %86

62:                                               ; preds = %53
  %63 = load ptr, ptr %7, align 8, !tbaa !5
  %64 = icmp ne ptr %63, null
  br i1 %64, label %65, label %75

65:                                               ; preds = %62
  %66 = load ptr, ptr %7, align 8, !tbaa !5
  %67 = load i64, ptr %11, align 8, !tbaa !9
  %68 = load i32, ptr %12, align 4, !tbaa !13
  %69 = load i32, ptr %13, align 4, !tbaa !15
  %70 = call ptr @ma_offset_pcm_frames_ptr(ptr noundef %66, i64 noundef %67, i32 noundef %68, i32 noundef %69)
  %71 = load ptr, ptr %15, align 8, !tbaa !5
  %72 = load i64, ptr %16, align 8, !tbaa !9
  %73 = load i32, ptr %12, align 4, !tbaa !13
  %74 = load i32, ptr %13, align 4, !tbaa !15
  call void @ma_copy_pcm_frames(ptr noundef %70, ptr noundef %71, i64 noundef %72, i32 noundef %73, i32 noundef %74)
  br label %75

75:                                               ; preds = %65, %62
  %76 = load i64, ptr %16, align 8, !tbaa !9
  %77 = load i64, ptr %11, align 8, !tbaa !9
  %78 = add i64 %77, %76
  store i64 %78, ptr %11, align 8, !tbaa !9
  %79 = load ptr, ptr %6, align 8, !tbaa !5
  %80 = load i64, ptr %16, align 8, !tbaa !9
  %81 = call noundef i32 @_ZL37ma_resource_manager_data_stream_unmapP31ma_resource_manager_data_streamy(ptr noundef %79, i64 noundef %80)
  store i32 %81, ptr %10, align 4, !tbaa !11
  %82 = load i32, ptr %10, align 4, !tbaa !11
  %83 = icmp ne i32 %82, 0
  br i1 %83, label %84, label %85

84:                                               ; preds = %75
  store i32 3, ptr %14, align 4
  br label %86

85:                                               ; preds = %75
  store i32 0, ptr %14, align 4
  br label %86

86:                                               ; preds = %85, %84, %61
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  %87 = load i32, ptr %14, align 4
  switch i32 %87, label %106 [
    i32 0, label %88
    i32 3, label %89
  ]

88:                                               ; preds = %86
  br label %49, !llvm.loop !17

89:                                               ; preds = %86, %49
  %90 = load ptr, ptr %9, align 8, !tbaa !5
  %91 = icmp ne ptr %90, null
  br i1 %91, label %92, label %95

92:                                               ; preds = %89
  %93 = load i64, ptr %11, align 8, !tbaa !9
  %94 = load ptr, ptr %9, align 8, !tbaa !5
  store i64 %93, ptr %94, align 8, !tbaa !9
  br label %95

95:                                               ; preds = %92, %89
  %96 = load i32, ptr %10, align 4, !tbaa !11
  %97 = icmp eq i32 %96, 0
  br i1 %97, label %98, label %102

98:                                               ; preds = %95
  %99 = load i64, ptr %11, align 8, !tbaa !9
  %100 = icmp eq i64 %99, 0
  br i1 %100, label %101, label %102

101:                                              ; preds = %98
  store i32 -17, ptr %10, align 4, !tbaa !11
  br label %102

102:                                              ; preds = %101, %98, %95
  %103 = load i32, ptr %10, align 4, !tbaa !11
  store i32 %103, ptr %5, align 4
  store i32 1, ptr %14, align 4
  br label %104

104:                                              ; preds = %102, %45, %40, %35, %24
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  %105 = load i32, ptr %5, align 4
  ret i32 %105

106:                                              ; preds = %86
  unreachable
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local i32 @ma_resource_manager_data_stream_get_data_format(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef) #2

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL35ma_resource_manager_data_stream_mapP31ma_resource_manager_data_streamPPvPy(ptr noundef, ptr noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL37ma_resource_manager_data_stream_unmapP31ma_resource_manager_data_streamy(ptr noundef, i64 noundef) #2

attributes #0 = { 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 = { 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 = !{!"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 = !{!"_ZTS9ma_format", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"int", !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}


; 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.6 = external hidden unnamed_addr constant [104 x i8], align 1
@.str.158 = external hidden unnamed_addr constant [70 x i8], align 1
@__PRETTY_FUNCTION__.ma_resource_manager_data_stream_read_pcm_frames = external hidden unnamed_addr constant [125 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
declare dso_local void @ma_copy_pcm_frames(ptr noundef, ptr noundef, i64 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local ptr @ma_offset_pcm_frames_ptr(ptr noundef, i64 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local i32 @ma_resource_manager_data_stream_read_pcm_frames(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef writeonly %3) local_unnamed_addr #2 {
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #4
  %.not = icmp eq ptr %3, null
  br i1 %.not, label %10, label %9

9:                                                ; preds = %4
  store i64 0, ptr %3, align 8, !tbaa !5
  br label %10

10:                                               ; preds = %9, %4
  %11 = icmp eq i64 %2, 0
  br i1 %11, label %50, label %12

12:                                               ; preds = %10
  %13 = tail call i32 @ma_resource_manager_data_stream_result(ptr noundef %0)
  %.not41 = icmp eq i32 %13, -22
  br i1 %.not41, label %14, label %15

14:                                               ; preds = %12
  tail call void @__assert_fail(ptr noundef nonnull @.str.158, ptr noundef nonnull @.str.6, i32 noundef 66843, ptr noundef nonnull @__PRETTY_FUNCTION__.ma_resource_manager_data_stream_read_pcm_frames) #5
  unreachable

15:                                               ; preds = %12
  %16 = icmp eq ptr %0, null
  br i1 %16, label %50, label %17

17:                                               ; preds = %15
  %18 = tail call i32 @ma_resource_manager_data_stream_result(ptr noundef nonnull %0)
  %.not42 = icmp eq i32 %18, 0
  br i1 %.not42, label %19, label %50

19:                                               ; preds = %17
  %20 = tail call noundef i32 @_ZL44ma_resource_manager_data_stream_seek_counterPK31ma_resource_manager_data_stream(ptr noundef nonnull %0)
  %.not43 = icmp eq i32 %20, 0
  br i1 %.not43, label %21, label %50

21:                                               ; preds = %19
  %22 = call i32 @ma_resource_manager_data_stream_get_data_format(ptr noundef nonnull %0, ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef null, ptr noundef null, i64 noundef 0)
  %.not45 = icmp eq ptr %1, null
  br i1 %.not45, label %.split.us, label %.split

.split.us:                                        ; preds = %21, %29
  %.02853.us = phi i64 [ %27, %29 ], [ 0, %21 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  %23 = sub i64 %2, %.02853.us
  store i64 %23, ptr %8, align 8, !tbaa !5
  %24 = call noundef i32 @_ZL35ma_resource_manager_data_stream_mapP31ma_resource_manager_data_streamPPvPy(ptr noundef nonnull %0, ptr noundef nonnull %7, ptr noundef nonnull %8)
  %.not44.us = icmp eq i32 %24, 0
  br i1 %.not44.us, label %25, label %.thread

25:                                               ; preds = %.split.us
  %26 = load i64, ptr %8, align 8, !tbaa !5
  %27 = add i64 %26, %.02853.us
  %28 = call noundef i32 @_ZL37ma_resource_manager_data_stream_unmapP31ma_resource_manager_data_streamy(ptr noundef nonnull %0, i64 noundef %26)
  %.not46.us = icmp eq i32 %28, 0
  br i1 %.not46.us, label %29, label %.thread

29:                                               ; preds = %25
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  %30 = icmp ult i64 %27, %2
  br i1 %30, label %.split.us, label %.loopexit

.split:                                           ; preds = %21, %44
  %.02853 = phi i64 [ %42, %44 ], [ 0, %21 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  %31 = sub i64 %2, %.02853
  store i64 %31, ptr %8, align 8, !tbaa !5
  %32 = call noundef i32 @_ZL35ma_resource_manager_data_stream_mapP31ma_resource_manager_data_streamPPvPy(ptr noundef nonnull %0, ptr noundef nonnull %7, ptr noundef nonnull %8)
  %.not44 = icmp eq i32 %32, 0
  br i1 %.not44, label %33, label %.thread

33:                                               ; preds = %.split
  %34 = load i32, ptr %5, align 4, !tbaa !9
  %35 = load i32, ptr %6, align 4, !tbaa !11
  %36 = call ptr @ma_offset_pcm_frames_ptr(ptr noundef nonnull %1, i64 noundef %.02853, i32 noundef %34, i32 noundef %35)
  %37 = load ptr, ptr %7, align 8, !tbaa !13
  %38 = load i64, ptr %8, align 8, !tbaa !5
  %39 = load i32, ptr %5, align 4, !tbaa !9
  %40 = load i32, ptr %6, align 4, !tbaa !11
  call void @ma_copy_pcm_frames(ptr noundef %36, ptr noundef %37, i64 noundef %38, i32 noundef %39, i32 noundef %40)
  %41 = load i64, ptr %8, align 8, !tbaa !5
  %42 = add i64 %41, %.02853
  %43 = call noundef i32 @_ZL37ma_resource_manager_data_stream_unmapP31ma_resource_manager_data_streamy(ptr noundef nonnull %0, i64 noundef %41)
  %.not46 = icmp eq i32 %43, 0
  br i1 %.not46, label %44, label %.thread

.thread:                                          ; preds = %33, %.split, %.split.us, %25
  %.us-phi = phi i32 [ %28, %25 ], [ %24, %.split.us ], [ %43, %33 ], [ %32, %.split ]
  %.us-phi54 = phi i64 [ %27, %25 ], [ %.02853.us, %.split.us ], [ %42, %33 ], [ %.02853, %.split ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  br label %.loopexit

44:                                               ; preds = %33
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  %45 = icmp ult i64 %42, %2
  br i1 %45, label %.split, label %.loopexit

.loopexit:                                        ; preds = %44, %29, %.thread
  %.231 = phi i32 [ %.us-phi, %.thread ], [ 0, %29 ], [ 0, %44 ]
  %.2 = phi i64 [ %.us-phi54, %.thread ], [ %27, %29 ], [ %42, %44 ]
  br i1 %.not, label %47, label %46

46:                                               ; preds = %.loopexit
  store i64 %.2, ptr %3, align 8, !tbaa !5
  br label %47

47:                                               ; preds = %46, %.loopexit
  %48 = icmp eq i32 %.231, 0
  %49 = icmp eq i64 %.2, 0
  %or.cond = and i1 %48, %49
  %spec.store.select = select i1 %or.cond, i32 -17, i32 %.231
  br label %50

50:                                               ; preds = %19, %17, %15, %10, %47
  %.032 = phi i32 [ %spec.store.select, %47 ], [ -2, %10 ], [ -2, %15 ], [ -3, %17 ], [ -19, %19 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #4
  ret i32 %.032
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local i32 @ma_resource_manager_data_stream_get_data_format(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL37ma_resource_manager_data_stream_unmapP31ma_resource_manager_data_streamy(ptr noundef, i64 noundef) local_unnamed_addr #2

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 = { 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 = !{!"long long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"_ZTS9ma_format", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"any pointer", !7, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass