; 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_config = type { i32, i32 }
%struct.ma_resource_manager_config = type { %struct.ma_allocation_callbacks, ptr, i32, i32, i32, i32, i32, i32, ptr, ptr, i32, ptr }
%struct.ma_allocation_callbacks = type { ptr, ptr, ptr, ptr }
%struct.ma_resource_manager = type { %struct.ma_resource_manager_config, ptr, %union.pthread_mutex_t, [64 x i64], %struct.ma_job_queue, %struct.ma_default_vfs, %struct.ma_log }
%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 }
%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_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_default_vfs = type { %struct.ma_vfs_callbacks, %struct.ma_allocation_callbacks }
%struct.ma_vfs_callbacks = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.ma_log = type { [4 x %struct.ma_log_callback], i32, %struct.ma_allocation_callbacks, %union.pthread_mutex_t }
%struct.ma_log_callback = type { ptr, ptr }

; 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: mustprogress uwtable
declare dso_local ptr @ma_malloc(i64 noundef, ptr noundef) #1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @ma_mutex_uninit(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) #3

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

; Function Attrs: mustprogress uwtable
declare dso_local void @ma_job_queue_uninit(ptr noundef, ptr noundef) #1

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

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

; Function Attrs: mustprogress uwtable
define dso_local i32 @ma_resource_manager_init(ptr noundef %0, ptr noundef %1) #1 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca %struct.ma_job_queue_config, align 4
  %8 = alloca i32, align 4
  %9 = alloca i64, align 8
  %10 = alloca i32, align 4
  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 4, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %11 = load ptr, ptr %5, align 8, !tbaa !5
  %12 = icmp eq ptr %11, null
  br i1 %12, label %13, label %14

13:                                               ; preds = %2
  store i32 -2, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %254

14:                                               ; preds = %2
  %15 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.memset.p0.i64(ptr align 8 %15, i8 0, i64 1088, i1 false)
  %16 = load ptr, ptr %4, align 8, !tbaa !5
  %17 = icmp eq ptr %16, null
  br i1 %17, label %18, label %19

18:                                               ; preds = %14
  store i32 -2, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %254

19:                                               ; preds = %14
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.ma_resource_manager_config, ptr %20, i32 0, i32 5
  %22 = load i32, ptr %21, align 4, !tbaa !9
  %23 = zext i32 %22 to i64
  %24 = icmp ugt i64 %23, 64
  br i1 %24, label %25, label %26

25:                                               ; preds = %19
  store i32 -2, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %254

26:                                               ; preds = %19
  %27 = load ptr, ptr %4, align 8, !tbaa !5
  %28 = load ptr, ptr %5, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.ma_resource_manager, ptr %28, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %29, ptr align 8 %27, i64 96, i1 false), !tbaa.struct !14
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.ma_resource_manager, ptr %30, i32 0, i32 0
  %32 = getelementptr inbounds %struct.ma_resource_manager_config, ptr %31, i32 0, i32 0
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.ma_resource_manager_config, ptr %33, i32 0, i32 0
  %35 = call noundef i32 @_ZL33ma_allocation_callbacks_init_copyP23ma_allocation_callbacksPKS_(ptr noundef %32, ptr noundef %34)
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.ma_resource_manager, ptr %36, i32 0, i32 0
  %38 = getelementptr inbounds %struct.ma_resource_manager_config, ptr %37, i32 0, i32 1
  %39 = load ptr, ptr %38, align 8, !tbaa !17
  %40 = icmp eq ptr %39, null
  br i1 %40, label %41, label %61

41:                                               ; preds = %26
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.ma_resource_manager, ptr %42, i32 0, i32 0
  %44 = getelementptr inbounds %struct.ma_resource_manager_config, ptr %43, i32 0, i32 0
  %45 = load ptr, ptr %5, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.ma_resource_manager, ptr %45, i32 0, i32 6
  %47 = call i32 @ma_log_init(ptr noundef %44, ptr noundef %46)
  store i32 %47, ptr %6, align 4, !tbaa !26
  %48 = load i32, ptr %6, align 4, !tbaa !26
  %49 = icmp eq i32 %48, 0
  br i1 %49, label %50, label %56

50:                                               ; preds = %41
  %51 = load ptr, ptr %5, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.ma_resource_manager, ptr %51, i32 0, i32 6
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.ma_resource_manager, ptr %53, i32 0, i32 0
  %55 = getelementptr inbounds %struct.ma_resource_manager_config, ptr %54, i32 0, i32 1
  store ptr %52, ptr %55, align 8, !tbaa !17
  br label %60

56:                                               ; preds = %41
  %57 = load ptr, ptr %5, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.ma_resource_manager, ptr %57, i32 0, i32 0
  %59 = getelementptr inbounds %struct.ma_resource_manager_config, ptr %58, i32 0, i32 1
  store ptr null, ptr %59, align 8, !tbaa !17
  br label %60

60:                                               ; preds = %56, %50
  br label %61

61:                                               ; preds = %60, %26
  %62 = load ptr, ptr %5, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.ma_resource_manager, ptr %62, i32 0, i32 0
  %64 = getelementptr inbounds %struct.ma_resource_manager_config, ptr %63, i32 0, i32 8
  %65 = load ptr, ptr %64, align 8, !tbaa !28
  %66 = icmp eq ptr %65, null
  br i1 %66, label %67, label %84

67:                                               ; preds = %61
  %68 = load ptr, ptr %5, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.ma_resource_manager, ptr %68, i32 0, i32 5
  %70 = load ptr, ptr %5, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.ma_resource_manager, ptr %70, i32 0, i32 0
  %72 = getelementptr inbounds %struct.ma_resource_manager_config, ptr %71, i32 0, i32 0
  %73 = call i32 @ma_default_vfs_init(ptr noundef %69, ptr noundef %72)
  store i32 %73, ptr %6, align 4, !tbaa !26
  %74 = load i32, ptr %6, align 4, !tbaa !26
  %75 = icmp ne i32 %74, 0
  br i1 %75, label %76, label %78

76:                                               ; preds = %67
  %77 = load i32, ptr %6, align 4, !tbaa !26
  store i32 %77, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %254

78:                                               ; preds = %67
  %79 = load ptr, ptr %5, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.ma_resource_manager, ptr %79, i32 0, i32 5
  %81 = load ptr, ptr %5, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.ma_resource_manager, ptr %81, i32 0, i32 0
  %83 = getelementptr inbounds %struct.ma_resource_manager_config, ptr %82, i32 0, i32 8
  store ptr %80, ptr %83, align 8, !tbaa !28
  br label %84

84:                                               ; preds = %78, %61
  %85 = load ptr, ptr %5, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.ma_resource_manager, ptr %85, i32 0, i32 0
  %87 = getelementptr inbounds %struct.ma_resource_manager_config, ptr %86, i32 0, i32 7
  %88 = load i32, ptr %87, align 4, !tbaa !29
  %89 = and i32 %88, 2
  %90 = icmp ne i32 %89, 0
  br i1 %90, label %91, label %104

91:                                               ; preds = %84
  %92 = load ptr, ptr %5, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.ma_resource_manager, ptr %92, i32 0, i32 0
  %94 = getelementptr inbounds %struct.ma_resource_manager_config, ptr %93, i32 0, i32 7
  %95 = load i32, ptr %94, align 4, !tbaa !29
  %96 = or i32 %95, 1
  store i32 %96, ptr %94, align 4, !tbaa !29
  %97 = load ptr, ptr %5, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.ma_resource_manager, ptr %97, i32 0, i32 0
  %99 = getelementptr inbounds %struct.ma_resource_manager_config, ptr %98, i32 0, i32 5
  %100 = load i32, ptr %99, align 4, !tbaa !30
  %101 = icmp ugt i32 %100, 0
  br i1 %101, label %102, label %103

102:                                              ; preds = %91
  store i32 -2, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %254

103:                                              ; preds = %91
  br label %104

104:                                              ; preds = %103, %84
  %105 = load ptr, ptr %5, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.ma_resource_manager, ptr %105, i32 0, i32 0
  %107 = getelementptr inbounds %struct.ma_resource_manager_config, ptr %106, i32 0, i32 6
  %108 = load i32, ptr %107, align 8, !tbaa !31
  %109 = getelementptr inbounds %struct.ma_job_queue_config, ptr %7, i32 0, i32 1
  store i32 %108, ptr %109, align 4, !tbaa !32
  %110 = getelementptr inbounds %struct.ma_job_queue_config, ptr %7, i32 0, i32 0
  store i32 0, ptr %110, align 4, !tbaa !34
  %111 = load ptr, ptr %5, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.ma_resource_manager, ptr %111, i32 0, i32 0
  %113 = getelementptr inbounds %struct.ma_resource_manager_config, ptr %112, i32 0, i32 7
  %114 = load i32, ptr %113, align 4, !tbaa !29
  %115 = and i32 %114, 1
  %116 = icmp ne i32 %115, 0
  br i1 %116, label %117, label %128

117:                                              ; preds = %104
  %118 = load ptr, ptr %5, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.ma_resource_manager, ptr %118, i32 0, i32 0
  %120 = getelementptr inbounds %struct.ma_resource_manager_config, ptr %119, i32 0, i32 5
  %121 = load i32, ptr %120, align 4, !tbaa !30
  %122 = icmp ugt i32 %121, 0
  br i1 %122, label %123, label %124

123:                                              ; preds = %117
  store i32 -2, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %254

124:                                              ; preds = %117
  %125 = getelementptr inbounds %struct.ma_job_queue_config, ptr %7, i32 0, i32 0
  %126 = load i32, ptr %125, align 4, !tbaa !34
  %127 = or i32 %126, 1
  store i32 %127, ptr %125, align 4, !tbaa !34
  br label %128

128:                                              ; preds = %124, %104
  %129 = load ptr, ptr %5, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.ma_resource_manager, ptr %129, i32 0, i32 0
  %131 = getelementptr inbounds %struct.ma_resource_manager_config, ptr %130, i32 0, i32 0
  %132 = load ptr, ptr %5, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.ma_resource_manager, ptr %132, i32 0, i32 4
  %134 = call i32 @ma_job_queue_init(ptr noundef %7, ptr noundef %131, ptr noundef %133)
  store i32 %134, ptr %6, align 4, !tbaa !26
  %135 = load i32, ptr %6, align 4, !tbaa !26
  %136 = icmp ne i32 %135, 0
  br i1 %136, label %137, label %139

137:                                              ; preds = %128
  %138 = load i32, ptr %6, align 4, !tbaa !26
  store i32 %138, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %254

139:                                              ; preds = %128
  %140 = load ptr, ptr %4, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.ma_resource_manager_config, ptr %140, i32 0, i32 9
  %142 = load ptr, ptr %141, align 8, !tbaa !35
  %143 = icmp ne ptr %142, null
  br i1 %143, label %144, label %198

144:                                              ; preds = %139
  %145 = load ptr, ptr %4, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.ma_resource_manager_config, ptr %145, i32 0, i32 10
  %147 = load i32, ptr %146, align 8, !tbaa !36
  %148 = icmp ugt i32 %147, 0
  br i1 %148, label %149, label %198

149:                                              ; preds = %144
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %150 = load ptr, ptr %4, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.ma_resource_manager_config, ptr %150, i32 0, i32 10
  %152 = load i32, ptr %151, align 8, !tbaa !36
  %153 = zext i32 %152 to i64
  %154 = mul i64 8, %153
  store i64 %154, ptr %9, align 8, !tbaa !37
  %155 = load i64, ptr %9, align 8, !tbaa !37
  %156 = load ptr, ptr %5, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.ma_resource_manager, ptr %156, i32 0, i32 0
  %158 = getelementptr inbounds %struct.ma_resource_manager_config, ptr %157, i32 0, i32 0
  %159 = call ptr @ma_malloc(i64 noundef %155, ptr noundef %158)
  %160 = load ptr, ptr %5, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.ma_resource_manager, ptr %160, i32 0, i32 0
  %162 = getelementptr inbounds %struct.ma_resource_manager_config, ptr %161, i32 0, i32 9
  store ptr %159, ptr %162, align 8, !tbaa !39
  %163 = load ptr, ptr %5, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.ma_resource_manager, ptr %163, i32 0, i32 0
  %165 = getelementptr inbounds %struct.ma_resource_manager_config, ptr %164, i32 0, i32 9
  %166 = load ptr, ptr %165, align 8, !tbaa !39
  %167 = icmp eq ptr %166, null
  br i1 %167, label %168, label %174

168:                                              ; preds = %149
  %169 = load ptr, ptr %5, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.ma_resource_manager, ptr %169, i32 0, i32 4
  %171 = load ptr, ptr %5, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.ma_resource_manager, ptr %171, i32 0, i32 0
  %173 = getelementptr inbounds %struct.ma_resource_manager_config, ptr %172, i32 0, i32 0
  call void @ma_job_queue_uninit(ptr noundef %170, ptr noundef %173)
  store i32 -4, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %195

174:                                              ; preds = %149
  %175 = load ptr, ptr %5, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.ma_resource_manager, ptr %175, i32 0, i32 0
  %177 = getelementptr inbounds %struct.ma_resource_manager_config, ptr %176, i32 0, i32 9
  %178 = load ptr, ptr %177, align 8, !tbaa !39
  %179 = load ptr, ptr %4, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.ma_resource_manager_config, ptr %179, i32 0, i32 9
  %181 = load ptr, ptr %180, align 8, !tbaa !35
  %182 = load i64, ptr %9, align 8, !tbaa !37
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %178, ptr align 8 %181, i64 %182, i1 false)
  %183 = load ptr, ptr %4, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.ma_resource_manager_config, ptr %183, i32 0, i32 10
  %185 = load i32, ptr %184, align 8, !tbaa !36
  %186 = load ptr, ptr %5, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.ma_resource_manager, ptr %186, i32 0, i32 0
  %188 = getelementptr inbounds %struct.ma_resource_manager_config, ptr %187, i32 0, i32 10
  store i32 %185, ptr %188, align 8, !tbaa !40
  %189 = load ptr, ptr %4, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.ma_resource_manager_config, ptr %189, i32 0, i32 11
  %191 = load ptr, ptr %190, align 8, !tbaa !41
  %192 = load ptr, ptr %5, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.ma_resource_manager, ptr %192, i32 0, i32 0
  %194 = getelementptr inbounds %struct.ma_resource_manager_config, ptr %193, i32 0, i32 11
  store ptr %191, ptr %194, align 8, !tbaa !42
  store i32 0, ptr %8, align 4
  br label %195

195:                                              ; preds = %174, %168
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  %196 = load i32, ptr %8, align 4
  switch i32 %196, label %254 [
    i32 0, label %197
  ]

197:                                              ; preds = %195
  br label %198

198:                                              ; preds = %197, %144, %139
  %199 = load ptr, ptr %5, align 8, !tbaa !5
  %200 = call noundef i32 @_ZL40ma_resource_manager_is_threading_enabledPK19ma_resource_manager(ptr noundef %199)
  %201 = icmp ne i32 %200, 0
  br i1 %201, label %202, label %253

202:                                              ; preds = %198
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %203 = load ptr, ptr %5, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.ma_resource_manager, ptr %203, i32 0, i32 2
  %205 = call i32 @ma_mutex_init(ptr noundef %204)
  store i32 %205, ptr %6, align 4, !tbaa !26
  %206 = load i32, ptr %6, align 4, !tbaa !26
  %207 = icmp ne i32 %206, 0
  br i1 %207, label %208, label %215

208:                                              ; preds = %202
  %209 = load ptr, ptr %5, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct.ma_resource_manager, ptr %209, i32 0, i32 4
  %211 = load ptr, ptr %5, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.ma_resource_manager, ptr %211, i32 0, i32 0
  %213 = getelementptr inbounds %struct.ma_resource_manager_config, ptr %212, i32 0, i32 0
  call void @ma_job_queue_uninit(ptr noundef %210, ptr noundef %213)
  %214 = load i32, ptr %6, align 4, !tbaa !26
  store i32 %214, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %250

215:                                              ; preds = %202
  store i32 0, ptr %10, align 4, !tbaa !16
  br label %216

216:                                              ; preds = %246, %215
  %217 = load i32, ptr %10, align 4, !tbaa !16
  %218 = load ptr, ptr %5, align 8, !tbaa !5
  %219 = getelementptr inbounds %struct.ma_resource_manager, ptr %218, i32 0, i32 0
  %220 = getelementptr inbounds %struct.ma_resource_manager_config, ptr %219, i32 0, i32 5
  %221 = load i32, ptr %220, align 4, !tbaa !30
  %222 = icmp ult i32 %217, %221
  br i1 %222, label %223, label %249

223:                                              ; preds = %216
  %224 = load ptr, ptr %5, align 8, !tbaa !5
  %225 = getelementptr inbounds %struct.ma_resource_manager, ptr %224, i32 0, i32 3
  %226 = load i32, ptr %10, align 4, !tbaa !16
  %227 = zext i32 %226 to i64
  %228 = getelementptr inbounds [64 x i64], ptr %225, i64 0, i64 %227
  %229 = load ptr, ptr %5, align 8, !tbaa !5
  %230 = load ptr, ptr %5, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct.ma_resource_manager, ptr %230, i32 0, i32 0
  %232 = getelementptr inbounds %struct.ma_resource_manager_config, ptr %231, i32 0, i32 0
  %233 = call noundef i32 @_ZL16ma_thread_createPm18ma_thread_prioritymPFPvS1_ES1_PK23ma_allocation_callbacks(ptr noundef %228, i32 noundef -2, i64 noundef 0, ptr noundef @_ZL30ma_resource_manager_job_threadPv, ptr noundef %229, ptr noundef %232)
  store i32 %233, ptr %6, align 4, !tbaa !26
  %234 = load i32, ptr %6, align 4, !tbaa !26
  %235 = icmp ne i32 %234, 0
  br i1 %235, label %236, label %245

236:                                              ; preds = %223
  %237 = load ptr, ptr %5, align 8, !tbaa !5
  %238 = getelementptr inbounds %struct.ma_resource_manager, ptr %237, i32 0, i32 2
  call void @ma_mutex_uninit(ptr noundef %238)
  %239 = load ptr, ptr %5, align 8, !tbaa !5
  %240 = getelementptr inbounds %struct.ma_resource_manager, ptr %239, i32 0, i32 4
  %241 = load ptr, ptr %5, align 8, !tbaa !5
  %242 = getelementptr inbounds %struct.ma_resource_manager, ptr %241, i32 0, i32 0
  %243 = getelementptr inbounds %struct.ma_resource_manager_config, ptr %242, i32 0, i32 0
  call void @ma_job_queue_uninit(ptr noundef %240, ptr noundef %243)
  %244 = load i32, ptr %6, align 4, !tbaa !26
  store i32 %244, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %250

245:                                              ; preds = %223
  br label %246

246:                                              ; preds = %245
  %247 = load i32, ptr %10, align 4, !tbaa !16
  %248 = add i32 %247, 1
  store i32 %248, ptr %10, align 4, !tbaa !16
  br label %216, !llvm.loop !43

249:                                              ; preds = %216
  store i32 0, ptr %8, align 4
  br label %250

250:                                              ; preds = %249, %236, %208
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  %251 = load i32, ptr %8, align 4
  switch i32 %251, label %254 [
    i32 0, label %252
  ]

252:                                              ; preds = %250
  br label %253

253:                                              ; preds = %252, %198
  store i32 0, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %254

254:                                              ; preds = %253, %250, %195, %137, %123, %102, %76, %25, %18, %13
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  %255 = load i32, ptr %3, align 4
  ret i32 %255
}

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

; Function Attrs: mustprogress uwtable
declare hidden noundef ptr @_ZL30ma_resource_manager_job_threadPv(ptr noundef) #1

attributes #0 = { nocallback nofree nosync 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 }

!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, !13, i64 52}
!10 = !{!"_ZTS26ma_resource_manager_config", !11, i64 0, !6, i64 32, !12, i64 40, !13, i64 44, !13, i64 48, !13, i64 52, !13, i64 56, !13, i64 60, !6, i64 64, !6, i64 72, !13, i64 80, !6, i64 88}
!11 = !{!"_ZTS23ma_allocation_callbacks", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!12 = !{!"_ZTS9ma_format", !7, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{i64 0, i64 8, !5, i64 8, i64 8, !5, i64 16, i64 8, !5, i64 24, i64 8, !5, i64 32, i64 8, !5, i64 40, i64 4, !15, i64 44, i64 4, !16, i64 48, i64 4, !16, i64 52, i64 4, !16, i64 56, i64 4, !16, i64 60, i64 4, !16, i64 64, i64 8, !5, i64 72, i64 8, !5, i64 80, i64 4, !16, i64 88, i64 8, !5}
!15 = !{!12, !12, i64 0}
!16 = !{!13, !13, i64 0}
!17 = !{!18, !6, i64 32}
!18 = !{!"_ZTS19ma_resource_manager", !10, i64 0, !6, i64 96, !7, i64 104, !7, i64 144, !19, i64 656, !23, i64 848, !25, i64 944}
!19 = !{!"_ZTS12ma_job_queue", !13, i64 0, !13, i64 4, !20, i64 8, !20, i64 16, !21, i64 24, !22, i64 120, !6, i64 160, !13, i64 168, !6, i64 176, !13, i64 184}
!20 = !{!"long long", !7, i64 0}
!21 = !{!"_ZTS12ma_semaphore", !13, i64 0, !7, i64 8, !7, i64 48}
!22 = !{!"_ZTS17ma_slot_allocator", !6, i64 0, !6, i64 8, !13, i64 16, !13, i64 20, !13, i64 24, !6, i64 32}
!23 = !{!"_ZTS14ma_default_vfs", !24, i64 0, !11, i64 64}
!24 = !{!"_ZTS16ma_vfs_callbacks", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56}
!25 = !{!"_ZTS6ma_log", !7, i64 0, !13, i64 64, !11, i64 72, !7, i64 104}
!26 = !{!27, !27, i64 0}
!27 = !{!"_ZTS9ma_result", !7, i64 0}
!28 = !{!18, !6, i64 64}
!29 = !{!18, !13, i64 60}
!30 = !{!18, !13, i64 52}
!31 = !{!18, !13, i64 56}
!32 = !{!33, !13, i64 4}
!33 = !{!"_ZTS19ma_job_queue_config", !13, i64 0, !13, i64 4}
!34 = !{!33, !13, i64 0}
!35 = !{!10, !6, i64 72}
!36 = !{!10, !13, i64 80}
!37 = !{!38, !38, i64 0}
!38 = !{!"long", !7, i64 0}
!39 = !{!18, !6, i64 72}
!40 = !{!18, !13, i64 80}
!41 = !{!10, !6, i64 88}
!42 = !{!18, !6, i64 88}
!43 = distinct !{!43, !44}
!44 = !{!"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_queue_config = type { i32, i32 }

; 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: mustprogress uwtable
declare dso_local ptr @ma_malloc(i64 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @ma_mutex_uninit(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) #3

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local i32 @ma_resource_manager_init(ptr noundef %0, ptr noundef %1) local_unnamed_addr #1 {
  %3 = alloca %struct.ma_job_queue_config, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  %4 = icmp eq ptr %1, null
  br i1 %4, label %.thread91, label %5

5:                                                ; preds = %2
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(1088) %1, i8 0, i64 1088, i1 false)
  %6 = icmp eq ptr %0, null
  br i1 %6, label %.thread91, label %7

7:                                                ; preds = %5
  %8 = getelementptr inbounds i8, ptr %0, i64 52
  %9 = load i32, ptr %8, align 4, !tbaa !5
  %10 = icmp ugt i32 %9, 64
  br i1 %10, label %.thread91, label %11

11:                                               ; preds = %7
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(96) %1, ptr noundef nonnull align 8 dereferenceable(96) %0, i64 96, i1 false), !tbaa.struct !13
  %12 = tail call noundef i32 @_ZL33ma_allocation_callbacks_init_copyP23ma_allocation_callbacksPKS_(ptr noundef nonnull %1, ptr noundef nonnull %0)
  %13 = getelementptr inbounds i8, ptr %1, i64 32
  %14 = load ptr, ptr %13, align 8, !tbaa !17
  %15 = icmp eq ptr %14, null
  br i1 %15, label %.sink.split, label %19

.sink.split:                                      ; preds = %11
  %16 = getelementptr inbounds i8, ptr %1, i64 944
  %17 = tail call i32 @ma_log_init(ptr noundef nonnull %1, ptr noundef nonnull %16)
  %18 = icmp eq i32 %17, 0
  %. = select i1 %18, ptr %16, ptr null
  store ptr %., ptr %13, align 8, !tbaa !17
  br label %19

19:                                               ; preds = %.sink.split, %11
  %20 = getelementptr inbounds i8, ptr %1, i64 64
  %21 = load ptr, ptr %20, align 8, !tbaa !26
  %22 = icmp eq ptr %21, null
  br i1 %22, label %23, label %27

23:                                               ; preds = %19
  %24 = getelementptr inbounds i8, ptr %1, i64 848
  %25 = tail call i32 @ma_default_vfs_init(ptr noundef nonnull %24, ptr noundef nonnull %1)
  %.not = icmp eq i32 %25, 0
  br i1 %.not, label %26, label %.thread91

26:                                               ; preds = %23
  store ptr %24, ptr %20, align 8, !tbaa !26
  br label %27

27:                                               ; preds = %26, %19
  %28 = getelementptr inbounds i8, ptr %1, i64 60
  %29 = load i32, ptr %28, align 4, !tbaa !27
  %30 = and i32 %29, 2
  %.not80 = icmp eq i32 %30, 0
  br i1 %.not80, label %35, label %31

31:                                               ; preds = %27
  %32 = or i32 %29, 1
  store i32 %32, ptr %28, align 4, !tbaa !27
  %33 = getelementptr inbounds i8, ptr %1, i64 52
  %34 = load i32, ptr %33, align 4, !tbaa !28
  %.not81 = icmp eq i32 %34, 0
  br i1 %.not81, label %35, label %.thread91

35:                                               ; preds = %31, %27
  %36 = phi i32 [ %32, %31 ], [ %29, %27 ]
  %37 = getelementptr inbounds i8, ptr %1, i64 56
  %38 = load i32, ptr %37, align 8, !tbaa !29
  %39 = getelementptr inbounds i8, ptr %3, i64 4
  store i32 %38, ptr %39, align 4, !tbaa !30
  store i32 0, ptr %3, align 4, !tbaa !32
  %40 = and i32 %36, 1
  %.not82 = icmp eq i32 %40, 0
  br i1 %.not82, label %45, label %41

41:                                               ; preds = %35
  %42 = getelementptr inbounds i8, ptr %1, i64 52
  %43 = load i32, ptr %42, align 4, !tbaa !28
  %.not83 = icmp eq i32 %43, 0
  br i1 %.not83, label %44, label %.thread91

44:                                               ; preds = %41
  store i32 1, ptr %3, align 4, !tbaa !32
  br label %45

45:                                               ; preds = %44, %35
  %46 = getelementptr inbounds i8, ptr %1, i64 656
  %47 = call i32 @ma_job_queue_init(ptr noundef nonnull %3, ptr noundef nonnull %1, ptr noundef nonnull %46)
  %.not84 = icmp eq i32 %47, 0
  br i1 %.not84, label %48, label %.thread91

48:                                               ; preds = %45
  %49 = getelementptr inbounds i8, ptr %0, i64 72
  %50 = load ptr, ptr %49, align 8, !tbaa !33
  %.not85 = icmp eq ptr %50, null
  br i1 %.not85, label %66, label %51

51:                                               ; preds = %48
  %52 = getelementptr inbounds i8, ptr %0, i64 80
  %53 = load i32, ptr %52, align 8, !tbaa !34
  %.not86 = icmp eq i32 %53, 0
  br i1 %.not86, label %66, label %54

54:                                               ; preds = %51
  %55 = zext i32 %53 to i64
  %56 = shl nuw nsw i64 %55, 3
  %57 = call ptr @ma_malloc(i64 noundef %56, ptr noundef nonnull %1)
  %58 = getelementptr inbounds i8, ptr %1, i64 72
  store ptr %57, ptr %58, align 8, !tbaa !35
  %.not87 = icmp eq ptr %57, null
  br i1 %.not87, label %.thread91.sink.split, label %59

59:                                               ; preds = %54
  %60 = load ptr, ptr %49, align 8, !tbaa !33
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 8 %57, ptr align 8 %60, i64 %56, i1 false)
  %61 = load i32, ptr %52, align 8, !tbaa !34
  %62 = getelementptr inbounds i8, ptr %1, i64 80
  store i32 %61, ptr %62, align 8, !tbaa !36
  %63 = getelementptr inbounds i8, ptr %0, i64 88
  %64 = load ptr, ptr %63, align 8, !tbaa !37
  %65 = getelementptr inbounds i8, ptr %1, i64 88
  store ptr %64, ptr %65, align 8, !tbaa !38
  br label %66

66:                                               ; preds = %59, %51, %48
  %67 = call noundef i32 @_ZL40ma_resource_manager_is_threading_enabledPK19ma_resource_manager(ptr noundef nonnull %1)
  %.not88 = icmp eq i32 %67, 0
  br i1 %.not88, label %.thread91, label %68

68:                                               ; preds = %66
  %69 = getelementptr inbounds i8, ptr %1, i64 104
  %70 = call i32 @ma_mutex_init(ptr noundef nonnull %69)
  %.not89 = icmp eq i32 %70, 0
  br i1 %.not89, label %.preheader, label %.thread91.sink.split

.preheader:                                       ; preds = %68
  %71 = getelementptr inbounds i8, ptr %1, i64 52
  %72 = load i32, ptr %71, align 4, !tbaa !28
  %.not95 = icmp eq i32 %72, 0
  br i1 %.not95, label %.thread91, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader
  %73 = getelementptr inbounds i8, ptr %1, i64 144
  br label %78

74:                                               ; preds = %78
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %75 = load i32, ptr %71, align 4, !tbaa !28
  %76 = zext i32 %75 to i64
  %77 = icmp ult i64 %indvars.iv.next, %76
  br i1 %77, label %78, label %.thread91, !llvm.loop !39

78:                                               ; preds = %.lr.ph, %74
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %74 ]
  %79 = getelementptr inbounds [64 x i64], ptr %73, i64 0, i64 %indvars.iv
  %80 = call noundef i32 @_ZL16ma_thread_createPm18ma_thread_prioritymPFPvS1_ES1_PK23ma_allocation_callbacks(ptr noundef nonnull %79, i32 noundef -2, i64 noundef 0, ptr noundef nonnull @_ZL30ma_resource_manager_job_threadPv, ptr noundef nonnull %1, ptr noundef nonnull %1)
  %.not90 = icmp eq i32 %80, 0
  br i1 %.not90, label %74, label %81

81:                                               ; preds = %78
  call void @ma_mutex_uninit(ptr noundef nonnull %69)
  br label %.thread91.sink.split

.thread91.sink.split:                             ; preds = %68, %54, %81
  %.3.ph = phi i32 [ %80, %81 ], [ -4, %54 ], [ %70, %68 ]
  call void @ma_job_queue_uninit(ptr noundef nonnull %46, ptr noundef nonnull %1)
  br label %.thread91

.thread91:                                        ; preds = %74, %.thread91.sink.split, %.preheader, %66, %45, %41, %31, %23, %7, %5, %2
  %.3 = phi i32 [ -2, %2 ], [ -2, %5 ], [ -2, %7 ], [ %25, %23 ], [ -2, %31 ], [ -2, %41 ], [ %47, %45 ], [ 0, %66 ], [ 0, %.preheader ], [ %.3.ph, %.thread91.sink.split ], [ 0, %74 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  ret i32 %.3
}

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

; Function Attrs: mustprogress uwtable
declare hidden noundef ptr @_ZL30ma_resource_manager_job_threadPv(ptr noundef) #1

attributes #0 = { mustprogress nocallback nofree nosync 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 nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 }

!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 52}
!6 = !{!"_ZTS26ma_resource_manager_config", !7, i64 0, !8, i64 32, !11, i64 40, !12, i64 44, !12, i64 48, !12, i64 52, !12, i64 56, !12, i64 60, !8, i64 64, !8, i64 72, !12, i64 80, !8, i64 88}
!7 = !{!"_ZTS23ma_allocation_callbacks", !8, i64 0, !8, i64 8, !8, i64 16, !8, i64 24}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"_ZTS9ma_format", !9, i64 0}
!12 = !{!"int", !9, i64 0}
!13 = !{i64 0, i64 8, !14, i64 8, i64 8, !14, i64 16, i64 8, !14, i64 24, i64 8, !14, i64 32, i64 8, !14, i64 40, i64 4, !15, i64 44, i64 4, !16, i64 48, i64 4, !16, i64 52, i64 4, !16, i64 56, i64 4, !16, i64 60, i64 4, !16, i64 64, i64 8, !14, i64 72, i64 8, !14, i64 80, i64 4, !16, i64 88, i64 8, !14}
!14 = !{!8, !8, i64 0}
!15 = !{!11, !11, i64 0}
!16 = !{!12, !12, i64 0}
!17 = !{!18, !8, i64 32}
!18 = !{!"_ZTS19ma_resource_manager", !6, i64 0, !8, i64 96, !9, i64 104, !9, i64 144, !19, i64 656, !23, i64 848, !25, i64 944}
!19 = !{!"_ZTS12ma_job_queue", !12, i64 0, !12, i64 4, !20, i64 8, !20, i64 16, !21, i64 24, !22, i64 120, !8, i64 160, !12, i64 168, !8, i64 176, !12, i64 184}
!20 = !{!"long long", !9, i64 0}
!21 = !{!"_ZTS12ma_semaphore", !12, i64 0, !9, i64 8, !9, i64 48}
!22 = !{!"_ZTS17ma_slot_allocator", !8, i64 0, !8, i64 8, !12, i64 16, !12, i64 20, !12, i64 24, !8, i64 32}
!23 = !{!"_ZTS14ma_default_vfs", !24, i64 0, !7, i64 64}
!24 = !{!"_ZTS16ma_vfs_callbacks", !8, i64 0, !8, i64 8, !8, i64 16, !8, i64 24, !8, i64 32, !8, i64 40, !8, i64 48, !8, i64 56}
!25 = !{!"_ZTS6ma_log", !9, i64 0, !12, i64 64, !7, i64 72, !9, i64 104}
!26 = !{!18, !8, i64 64}
!27 = !{!18, !12, i64 60}
!28 = !{!18, !12, i64 52}
!29 = !{!18, !12, i64 56}
!30 = !{!31, !12, i64 4}
!31 = !{!"_ZTS19ma_job_queue_config", !12, i64 0, !12, i64 4}
!32 = !{!31, !12, i64 0}
!33 = !{!6, !8, i64 72}
!34 = !{!6, !12, i64 80}
!35 = !{!18, !8, i64 72}
!36 = !{!18, !12, i64 80}
!37 = !{!6, !8, i64 88}
!38 = !{!18, !8, i64 88}
!39 = distinct !{!39, !40}
!40 = !{!"llvm.loop.mustprogress"}


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