; 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_queue = type { i32, i32, i64, i64, %struct.ma_semaphore, %struct.ma_slot_allocator, ptr, i32, ptr, i32 }
%struct.ma_semaphore = type { i32, %union.pthread_mutex_t, %union.pthread_cond_t }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%union.pthread_cond_t = type { %struct.__pthread_cond_s }
%struct.__pthread_cond_s = type { %union.__atomic_wide_counter, %union.__atomic_wide_counter, [2 x i32], [2 x i32], i32, i32, [2 x i32] }
%union.__atomic_wide_counter = type { i64 }
%struct.ma_slot_allocator = type { ptr, ptr, i32, i32, i32, ptr }
%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.anon.1 = type { i16, i16, 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

; 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: mustprogress uwtable
declare dso_local i32 @ma_spinlock_lock(ptr noundef) #2

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

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

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef zeroext i16 @_ZL19ma_job_extract_sloty(i64 noundef) #4

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

; Function Attrs: alwaysinline mustprogress uwtable
declare hidden noundef i64 @_ZL24ma_job_toc_to_allocationy(i64 noundef) #5

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

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

16:                                               ; preds = %2
  %17 = load ptr, ptr %5, align 8, !tbaa !5
  %18 = icmp eq ptr %17, null
  br i1 %18, label %19, label %20

19:                                               ; preds = %16, %2
  store i32 -2, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %126

20:                                               ; preds = %16
  %21 = load ptr, ptr %4, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.ma_job_queue, ptr %21, i32 0, i32 0
  %23 = load i32, ptr %22, align 8, !tbaa !9
  %24 = and i32 %23, 1
  %25 = icmp eq i32 %24, 0
  br i1 %25, label %26, label %30

26:                                               ; preds = %20
  %27 = load ptr, ptr %4, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.ma_job_queue, ptr %27, i32 0, i32 4
  %29 = call noundef i32 @_Z17ma_semaphore_waitP12ma_semaphore(ptr noundef %28)
  br label %30

30:                                               ; preds = %26, %20
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.ma_job_queue, ptr %31, i32 0, i32 7
  %33 = call i32 @ma_spinlock_lock(ptr noundef %32)
  br label %34

34:                                               ; preds = %106, %30
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.ma_job_queue, ptr %35, i32 0, i32 2
  %37 = load atomic i64, ptr %36 seq_cst, align 8
  store i64 %37, ptr %10, align 8
  %38 = load i64, ptr %10, align 8, !tbaa !15
  store i64 %38, ptr %6, align 8, !tbaa !15
  %39 = load ptr, ptr %4, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.ma_job_queue, ptr %39, i32 0, i32 3
  %41 = load atomic i64, ptr %40 seq_cst, align 8
  store i64 %41, ptr %11, align 8
  %42 = load i64, ptr %11, align 8, !tbaa !15
  store i64 %42, ptr %7, align 8, !tbaa !15
  %43 = load ptr, ptr %4, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.ma_job_queue, ptr %43, i32 0, i32 6
  %45 = load ptr, ptr %44, align 8, !tbaa !16
  %46 = load i64, ptr %6, align 8, !tbaa !15
  %47 = call noundef zeroext i16 @_ZL19ma_job_extract_sloty(i64 noundef %46)
  %48 = zext i16 %47 to i64
  %49 = getelementptr inbounds %struct.ma_job, ptr %45, i64 %48
  %50 = getelementptr inbounds %struct.ma_job, ptr %49, i32 0, i32 1
  %51 = load atomic i64, ptr %50 seq_cst, align 8
  store i64 %51, ptr %12, align 8
  %52 = load i64, ptr %12, align 8, !tbaa !15
  store i64 %52, ptr %8, align 8, !tbaa !15
  %53 = load i64, ptr %6, align 8, !tbaa !15
  %54 = call noundef i64 @_ZL24ma_job_toc_to_allocationy(i64 noundef %53)
  %55 = load ptr, ptr %4, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.ma_job_queue, ptr %55, i32 0, i32 2
  %57 = load atomic i64, ptr %56 seq_cst, align 8
  store i64 %57, ptr %13, align 8
  %58 = load i64, ptr %13, align 8, !tbaa !15
  %59 = call noundef i64 @_ZL24ma_job_toc_to_allocationy(i64 noundef %58)
  %60 = icmp eq i64 %54, %59
  br i1 %60, label %61, label %106

61:                                               ; preds = %34
  %62 = load i64, ptr %6, align 8, !tbaa !15
  %63 = call noundef zeroext i16 @_ZL19ma_job_extract_sloty(i64 noundef %62)
  %64 = zext i16 %63 to i32
  %65 = load i64, ptr %7, align 8, !tbaa !15
  %66 = call noundef zeroext i16 @_ZL19ma_job_extract_sloty(i64 noundef %65)
  %67 = zext i16 %66 to i32
  %68 = icmp eq i32 %64, %67
  br i1 %68, label %69, label %86

69:                                               ; preds = %61
  %70 = load i64, ptr %8, align 8, !tbaa !15
  %71 = call noundef zeroext i16 @_ZL19ma_job_extract_sloty(i64 noundef %70)
  %72 = zext i16 %71 to i32
  %73 = icmp eq i32 %72, 65535
  br i1 %73, label %74, label %78

74:                                               ; preds = %69
  %75 = load ptr, ptr %4, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.ma_job_queue, ptr %75, i32 0, i32 7
  %77 = call i32 @ma_spinlock_unlock(ptr noundef %76)
  store i32 -32, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %126

78:                                               ; preds = %69
  %79 = load ptr, ptr %4, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.ma_job_queue, ptr %79, i32 0, i32 3
  %81 = load i64, ptr %7, align 8, !tbaa !15
  %82 = load i64, ptr %8, align 8, !tbaa !15
  %83 = call noundef zeroext i16 @_ZL19ma_job_extract_sloty(i64 noundef %82)
  %84 = zext i16 %83 to i64
  %85 = call noundef i32 @_ZL16ma_job_queue_casPVyyy(ptr noundef %80, i64 noundef %81, i64 noundef %84)
  br label %105

86:                                               ; preds = %61
  %87 = load ptr, ptr %4, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.ma_job_queue, ptr %87, i32 0, i32 6
  %89 = load ptr, ptr %88, align 8, !tbaa !16
  %90 = load i64, ptr %8, align 8, !tbaa !15
  %91 = call noundef zeroext i16 @_ZL19ma_job_extract_sloty(i64 noundef %90)
  %92 = zext i16 %91 to i64
  %93 = getelementptr inbounds %struct.ma_job, ptr %89, i64 %92
  %94 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %94, ptr align 8 %93, i64 104, i1 false), !tbaa.struct !17
  %95 = load ptr, ptr %4, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.ma_job_queue, ptr %95, i32 0, i32 2
  %97 = load i64, ptr %6, align 8, !tbaa !15
  %98 = load i64, ptr %8, align 8, !tbaa !15
  %99 = call noundef zeroext i16 @_ZL19ma_job_extract_sloty(i64 noundef %98)
  %100 = zext i16 %99 to i64
  %101 = call noundef i32 @_ZL16ma_job_queue_casPVyyy(ptr noundef %96, i64 noundef %97, i64 noundef %100)
  %102 = icmp ne i32 %101, 0
  br i1 %102, label %103, label %104

103:                                              ; preds = %86
  br label %107

104:                                              ; preds = %86
  br label %105

105:                                              ; preds = %104, %78
  br label %106

106:                                              ; preds = %105, %34
  br label %34, !llvm.loop !20

107:                                              ; preds = %103
  %108 = load ptr, ptr %4, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.ma_job_queue, ptr %108, i32 0, i32 7
  %110 = call i32 @ma_spinlock_unlock(ptr noundef %109)
  %111 = load ptr, ptr %4, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.ma_job_queue, ptr %111, i32 0, i32 5
  %113 = load i64, ptr %6, align 8, !tbaa !15
  %114 = call i32 @ma_slot_allocator_free(ptr noundef %112, i64 noundef %113)
  %115 = load ptr, ptr %5, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.ma_job, ptr %115, i32 0, i32 0
  %117 = getelementptr inbounds %struct.anon.1, ptr %116, i32 0, i32 0
  %118 = load i16, ptr %117, align 8, !tbaa !18
  %119 = zext i16 %118 to i32
  %120 = icmp eq i32 %119, 0
  br i1 %120, label %121, label %125

121:                                              ; preds = %107
  %122 = load ptr, ptr %4, align 8, !tbaa !5
  %123 = load ptr, ptr %5, align 8, !tbaa !5
  %124 = call i32 @ma_job_queue_post(ptr noundef %122, ptr noundef %123)
  store i32 -51, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %126

125:                                              ; preds = %107
  store i32 0, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %126

126:                                              ; preds = %125, %121, %74, %19
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  %127 = load i32, ptr %3, align 4
  ret i32 %127
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { alwaysinline 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 #6 = { 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 0}
!10 = !{!"_ZTS12ma_job_queue", !11, i64 0, !11, i64 4, !12, i64 8, !12, i64 16, !13, i64 24, !14, i64 120, !6, i64 160, !11, i64 168, !6, i64 176, !11, i64 184}
!11 = !{!"int", !7, i64 0}
!12 = !{!"long long", !7, i64 0}
!13 = !{!"_ZTS12ma_semaphore", !11, i64 0, !7, i64 8, !7, i64 48}
!14 = !{!"_ZTS17ma_slot_allocator", !6, i64 0, !6, i64 8, !11, i64 16, !11, i64 20, !11, i64 24, !6, i64 32}
!15 = !{!12, !12, i64 0}
!16 = !{!10, !6, i64 160}
!17 = !{i64 0, i64 8, !18, i64 8, i64 8, !15, i64 16, i64 4, !19, i64 24, i64 80, !18}
!18 = !{!7, !7, i64 0}
!19 = !{!11, !11, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"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"

%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 }

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

; Function Attrs: mustprogress uwtable
declare dso_local i32 @ma_spinlock_lock(ptr noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z17ma_semaphore_waitP12ma_semaphore(ptr noundef) local_unnamed_addr #1

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef zeroext i16 @_ZL19ma_job_extract_sloty(i64 noundef) local_unnamed_addr #3

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

; Function Attrs: alwaysinline mustprogress uwtable
declare hidden noundef i64 @_ZL24ma_job_toc_to_allocationy(i64 noundef) local_unnamed_addr #4

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

; Function Attrs: mustprogress uwtable
define dso_local range(i32 -51, 1) i32 @ma_job_queue_next(ptr noundef %0, ptr noundef %1) local_unnamed_addr #1 {
  %3 = icmp eq ptr %0, null
  %4 = icmp eq ptr %1, null
  %or.cond = or i1 %3, %4
  br i1 %or.cond, label %59, label %5

5:                                                ; preds = %2
  %6 = load i32, ptr %0, align 8, !tbaa !5
  %7 = and i32 %6, 1
  %8 = icmp eq i32 %7, 0
  br i1 %8, label %9, label %12

9:                                                ; preds = %5
  %10 = getelementptr inbounds i8, ptr %0, i64 24
  %11 = tail call noundef i32 @_Z17ma_semaphore_waitP12ma_semaphore(ptr noundef nonnull %10)
  br label %12

12:                                               ; preds = %9, %5
  %13 = getelementptr inbounds i8, ptr %0, i64 168
  %14 = tail call i32 @ma_spinlock_lock(ptr noundef nonnull %13)
  %15 = getelementptr inbounds i8, ptr %0, i64 8
  %16 = getelementptr inbounds i8, ptr %0, i64 16
  %17 = getelementptr inbounds i8, ptr %0, i64 160
  br label %18

18:                                               ; preds = %.backedge, %12
  %19 = load atomic i64, ptr %15 seq_cst, align 8
  %20 = load atomic i64, ptr %16 seq_cst, align 8
  %21 = load ptr, ptr %17, align 8, !tbaa !14
  %22 = tail call noundef zeroext i16 @_ZL19ma_job_extract_sloty(i64 noundef %19)
  %23 = zext i16 %22 to i64
  %24 = getelementptr inbounds %struct.ma_job, ptr %21, i64 %23, i32 1
  %25 = load atomic i64, ptr %24 seq_cst, align 8
  %26 = tail call noundef i64 @_ZL24ma_job_toc_to_allocationy(i64 noundef %19)
  %27 = load atomic i64, ptr %15 seq_cst, align 8
  %28 = tail call noundef i64 @_ZL24ma_job_toc_to_allocationy(i64 noundef %27)
  %29 = icmp eq i64 %26, %28
  br i1 %29, label %30, label %.backedge

30:                                               ; preds = %18
  %31 = tail call noundef zeroext i16 @_ZL19ma_job_extract_sloty(i64 noundef %19)
  %32 = tail call noundef zeroext i16 @_ZL19ma_job_extract_sloty(i64 noundef %20)
  %33 = icmp eq i16 %31, %32
  br i1 %33, label %34, label %43

34:                                               ; preds = %30
  %35 = tail call noundef zeroext i16 @_ZL19ma_job_extract_sloty(i64 noundef %25)
  %36 = icmp eq i16 %35, -1
  br i1 %36, label %37, label %39

37:                                               ; preds = %34
  %38 = tail call i32 @ma_spinlock_unlock(ptr noundef nonnull %13)
  br label %59

39:                                               ; preds = %34
  %40 = tail call noundef zeroext i16 @_ZL19ma_job_extract_sloty(i64 noundef %25)
  %41 = zext i16 %40 to i64
  %42 = tail call noundef i32 @_ZL16ma_job_queue_casPVyyy(ptr noundef nonnull %16, i64 noundef %20, i64 noundef %41)
  br label %.backedge

.backedge:                                        ; preds = %39, %43, %18
  br label %18, !llvm.loop !15

43:                                               ; preds = %30
  %44 = load ptr, ptr %17, align 8, !tbaa !14
  %45 = tail call noundef zeroext i16 @_ZL19ma_job_extract_sloty(i64 noundef %25)
  %46 = zext i16 %45 to i64
  %47 = getelementptr inbounds %struct.ma_job, ptr %44, i64 %46
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(104) %1, ptr noundef nonnull align 8 dereferenceable(104) %47, i64 104, i1 false), !tbaa.struct !17
  %48 = tail call noundef zeroext i16 @_ZL19ma_job_extract_sloty(i64 noundef %25)
  %49 = zext i16 %48 to i64
  %50 = tail call noundef i32 @_ZL16ma_job_queue_casPVyyy(ptr noundef nonnull %15, i64 noundef %19, i64 noundef %49)
  %.not = icmp eq i32 %50, 0
  br i1 %.not, label %.backedge, label %51

51:                                               ; preds = %43
  %52 = tail call i32 @ma_spinlock_unlock(ptr noundef nonnull %13)
  %53 = getelementptr inbounds i8, ptr %0, i64 120
  %54 = tail call i32 @ma_slot_allocator_free(ptr noundef nonnull %53, i64 noundef %19)
  %55 = load i16, ptr %1, align 8, !tbaa !18
  %56 = icmp eq i16 %55, 0
  br i1 %56, label %57, label %59

57:                                               ; preds = %51
  %58 = tail call i32 @ma_job_queue_post(ptr noundef nonnull %0, ptr noundef nonnull %1)
  br label %59

59:                                               ; preds = %51, %2, %57, %37
  %.0 = phi i32 [ -32, %37 ], [ -51, %57 ], [ -2, %2 ], [ 0, %51 ]
  ret i32 %.0
}

attributes #0 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { 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 = { alwaysinline 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" }

!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, !7, i64 0}
!6 = !{!"_ZTS12ma_job_queue", !7, i64 0, !7, i64 4, !10, i64 8, !10, i64 16, !11, i64 24, !12, i64 120, !13, i64 160, !7, i64 168, !13, i64 176, !7, i64 184}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"long long", !8, i64 0}
!11 = !{!"_ZTS12ma_semaphore", !7, i64 0, !8, i64 8, !8, i64 48}
!12 = !{!"_ZTS17ma_slot_allocator", !13, i64 0, !13, i64 8, !7, i64 16, !7, i64 20, !7, i64 24, !13, i64 32}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!6, !13, i64 160}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{i64 0, i64 8, !18, i64 8, i64 8, !19, i64 16, i64 4, !20, i64 24, i64 80, !18}
!18 = !{!8, !8, i64 0}
!19 = !{!10, !10, i64 0}
!20 = !{!7, !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LICMPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass