; LLVM IR from eclipse-threadx/threadx :: ports_arch/ARMv7-M/threadx_modules/common/module_manager/src/txm_module_manager_a4588882 (enable)

; 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.TX_MUTEX_STRUCT = type { i64, ptr, i32, ptr, i32, i32, ptr, i32, ptr, ptr, i32, ptr, ptr }
%struct.TXM_MODULE_INSTANCE_STRUCT = type { i64, ptr, i64, i64, ptr, i64, ptr, ptr, i64, ptr, i64, ptr, ptr, ptr, i64, i64, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, [8 x %struct.TXM_MODULE_MPU_INFO_STRUCT], i64, i64, %struct.TX_THREAD_STRUCT, %struct.TX_THREAD_STRUCT, %struct.TX_QUEUE_STRUCT, [104 x i64], i64, i64, i64, i64, i64, i32, ptr, i64, ptr, ptr }
%struct.TXM_MODULE_MPU_INFO_STRUCT = type { i64, i64 }
%struct.TX_THREAD_STRUCT = type { i64, i64, ptr, ptr, ptr, i64, i64, i64, ptr, ptr, ptr, i32, ptr, ptr, i32, i32, i32, i32, i32, ptr, ptr, i64, %struct.TX_TIMER_INTERNAL_STRUCT, ptr, ptr, ptr, ptr, i64, ptr, i32, i32, ptr, ptr, ptr, i32, i32, i32, i32, ptr, ptr, ptr, i64 }
%struct.TX_TIMER_INTERNAL_STRUCT = type { i64, i64, ptr, i64, ptr, ptr, ptr }
%struct.TX_QUEUE_STRUCT = type { i64, ptr, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, ptr }
%struct.TXM_MODULE_PREAMBLE_STRUCT = type { i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64 }

@_txm_module_manager_ready = external global i32, align 4
@_txm_module_manager_mutex = external global %struct.TX_MUTEX_STRUCT, align 8

; Function Attrs: nounwind uwtable
define dso_local i32 @_txm_module_manager_external_memory_enable(ptr noundef %0, ptr noundef %1, i64 noundef %2, i32 noundef %3) #0 {
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, 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
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  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 i32 %3, ptr %9, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #3
  store i32 0, ptr %14, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  %17 = load i32, ptr @_txm_module_manager_ready, align 4, !tbaa !11
  %18 = icmp ne i32 %17, 1
  br i1 %18, label %19, label %20

19:                                               ; preds = %4
  store i32 29, ptr %5, align 4
  store i32 1, ptr %16, align 4
  br label %103

20:                                               ; preds = %4
  %21 = load ptr, ptr %6, align 8, !tbaa !5
  %22 = icmp eq ptr %21, null
  br i1 %22, label %23, label %24

23:                                               ; preds = %20
  store i32 3, ptr %5, align 4
  store i32 1, ptr %16, align 4
  br label %103

24:                                               ; preds = %20
  %25 = call i32 @_tx_mutex_get(ptr noundef @_txm_module_manager_mutex, i64 noundef 4294967295)
  %26 = load ptr, ptr %6, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.TXM_MODULE_INSTANCE_STRUCT, ptr %26, i32 0, i32 0
  %28 = load i64, ptr %27, align 8, !tbaa !13
  %29 = icmp ne i64 %28, 1297040469
  br i1 %29, label %30, label %32

30:                                               ; preds = %24
  %31 = call i32 @_tx_mutex_put(ptr noundef @_txm_module_manager_mutex)
  store i32 3, ptr %5, align 4
  store i32 1, ptr %16, align 4
  br label %103

32:                                               ; preds = %24
  %33 = load ptr, ptr %6, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.TXM_MODULE_INSTANCE_STRUCT, ptr %33, i32 0, i32 2
  %35 = load i64, ptr %34, align 8, !tbaa !18
  %36 = icmp ne i64 %35, 1
  br i1 %36, label %37, label %39

37:                                               ; preds = %32
  %38 = call i32 @_tx_mutex_put(ptr noundef @_txm_module_manager_mutex)
  store i32 16, ptr %5, align 4
  store i32 1, ptr %16, align 4
  br label %103

39:                                               ; preds = %32
  %40 = load ptr, ptr %6, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.TXM_MODULE_INSTANCE_STRUCT, ptr %40, i32 0, i32 20
  %42 = load ptr, ptr %41, align 8, !tbaa !19
  store ptr %42, ptr %15, align 8, !tbaa !5
  %43 = load ptr, ptr %15, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.TXM_MODULE_PREAMBLE_STRUCT, ptr %43, i32 0, i32 5
  %45 = load i64, ptr %44, align 8, !tbaa !20
  %46 = and i64 %45, 6
  %47 = icmp ne i64 %46, 6
  br i1 %47, label %48, label %50

48:                                               ; preds = %39
  %49 = call i32 @_tx_mutex_put(ptr noundef @_txm_module_manager_mutex)
  store i32 243, ptr %5, align 4
  store i32 1, ptr %16, align 4
  br label %103

50:                                               ; preds = %39
  %51 = load i64, ptr %8, align 8, !tbaa !9
  %52 = call i64 @_txm_power_of_two_block_size(i64 noundef %51)
  store i64 %52, ptr %10, align 8, !tbaa !9
  %53 = load ptr, ptr %7, align 8, !tbaa !5
  %54 = ptrtoint ptr %53 to i64
  store i64 %54, ptr %13, align 8, !tbaa !9
  %55 = load i64, ptr %13, align 8, !tbaa !9
  %56 = load i64, ptr %13, align 8, !tbaa !9
  %57 = load i64, ptr %10, align 8, !tbaa !9
  %58 = sub i64 %57, 1
  %59 = xor i64 %58, -1
  %60 = and i64 %56, %59
  %61 = icmp ne i64 %55, %60
  br i1 %61, label %62, label %64

62:                                               ; preds = %50
  %63 = call i32 @_tx_mutex_put(ptr noundef @_txm_module_manager_mutex)
  store i32 240, ptr %5, align 4
  store i32 1, ptr %16, align 4
  br label %103

64:                                               ; preds = %50
  %65 = load i64, ptr %13, align 8, !tbaa !9
  %66 = or i64 %65, 4
  %67 = or i64 %66, 16
  %68 = load ptr, ptr %6, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.TXM_MODULE_INSTANCE_STRUCT, ptr %68, i32 0, i32 25
  %70 = getelementptr inbounds [8 x %struct.TXM_MODULE_MPU_INFO_STRUCT], ptr %69, i64 0, i64 4
  %71 = getelementptr inbounds %struct.TXM_MODULE_MPU_INFO_STRUCT, ptr %70, i32 0, i32 0
  store i64 %67, ptr %71, align 8, !tbaa !22
  %72 = load i64, ptr %10, align 8, !tbaa !9
  %73 = call i64 @_txm_module_manager_region_size_get(i64 noundef %72)
  store i64 %73, ptr %11, align 8, !tbaa !9
  %74 = load i64, ptr %10, align 8, !tbaa !9
  %75 = load i64, ptr %8, align 8, !tbaa !9
  %76 = call i64 @_txm_module_manager_calculate_srd_bits(i64 noundef %74, i64 noundef %75)
  store i64 %76, ptr %12, align 8, !tbaa !9
  %77 = load i32, ptr %9, align 4, !tbaa !11
  %78 = and i32 %77, 1
  %79 = icmp ne i32 %78, 0
  br i1 %79, label %80, label %81

80:                                               ; preds = %64
  store i32 16777216, ptr %14, align 4, !tbaa !11
  br label %81

81:                                               ; preds = %80, %64
  %82 = load i64, ptr %11, align 8, !tbaa !9
  %83 = shl i64 %82, 1
  %84 = load i64, ptr %12, align 8, !tbaa !9
  %85 = or i64 %83, %84
  %86 = load i32, ptr %14, align 4, !tbaa !11
  %87 = zext i32 %86 to i64
  %88 = or i64 %85, %87
  %89 = or i64 %88, 302448640
  %90 = or i64 %89, 1
  %91 = load ptr, ptr %6, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.TXM_MODULE_INSTANCE_STRUCT, ptr %91, i32 0, i32 25
  %93 = getelementptr inbounds [8 x %struct.TXM_MODULE_MPU_INFO_STRUCT], ptr %92, i64 0, i64 4
  %94 = getelementptr inbounds %struct.TXM_MODULE_MPU_INFO_STRUCT, ptr %93, i32 0, i32 1
  store i64 %90, ptr %94, align 8, !tbaa !24
  %95 = load i64, ptr %13, align 8, !tbaa !9
  %96 = load ptr, ptr %6, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.TXM_MODULE_INSTANCE_STRUCT, ptr %96, i32 0, i32 26
  store i64 %95, ptr %97, align 8, !tbaa !25
  %98 = load i64, ptr %8, align 8, !tbaa !9
  %99 = load ptr, ptr %6, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.TXM_MODULE_INSTANCE_STRUCT, ptr %99, i32 0, i32 27
  store i64 %98, ptr %100, align 8, !tbaa !26
  %101 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_txm_module_manager_mm_register_setup(ptr noundef %101)
  %102 = call i32 @_tx_mutex_put(ptr noundef @_txm_module_manager_mutex)
  store i32 0, ptr %5, align 4
  store i32 1, ptr %16, align 4
  br label %103

103:                                              ; preds = %81, %62, %48, %37, %30, %23, %19
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  %104 = load i32, ptr %5, align 4
  ret i32 %104
}

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

declare i32 @_tx_mutex_get(ptr noundef, i64 noundef) #2

declare i32 @_tx_mutex_put(ptr noundef) #2

declare i64 @_txm_power_of_two_block_size(i64 noundef) #2

declare i64 @_txm_module_manager_region_size_get(i64 noundef) #2

declare i64 @_txm_module_manager_calculate_srd_bits(i64 noundef, i64 noundef) #2

declare void @_txm_module_manager_mm_register_setup(ptr noundef) #2

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 = { 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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !10, i64 0}
!14 = !{!"TXM_MODULE_INSTANCE_STRUCT", !10, i64 0, !6, i64 8, !10, i64 16, !10, i64 24, !6, i64 32, !10, i64 40, !6, i64 48, !6, i64 56, !10, i64 64, !6, i64 72, !10, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !10, i64 112, !10, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !7, i64 200, !10, i64 328, !10, i64 336, !15, i64 344, !15, i64 688, !17, i64 1032, !7, i64 1136, !10, i64 1968, !10, i64 1976, !10, i64 1984, !10, i64 1992, !10, i64 2000, !12, i64 2008, !6, i64 2016, !10, i64 2024, !6, i64 2032, !6, i64 2040}
!15 = !{!"TX_THREAD_STRUCT", !10, i64 0, !10, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !12, i64 88, !6, i64 96, !6, i64 104, !12, i64 112, !12, i64 116, !12, i64 120, !12, i64 124, !12, i64 128, !6, i64 136, !6, i64 144, !10, i64 152, !16, i64 160, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !10, i64 248, !6, i64 256, !12, i64 264, !12, i64 268, !6, i64 272, !6, i64 280, !6, i64 288, !12, i64 296, !12, i64 300, !12, i64 304, !12, i64 308, !6, i64 312, !6, i64 320, !6, i64 328, !10, i64 336}
!16 = !{!"TX_TIMER_INTERNAL_STRUCT", !10, i64 0, !10, i64 8, !6, i64 16, !10, i64 24, !6, i64 32, !6, i64 40, !6, i64 48}
!17 = !{!"TX_QUEUE_STRUCT", !10, i64 0, !6, i64 8, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !12, i64 72, !6, i64 80, !6, i64 88, !6, i64 96}
!18 = !{!14, !10, i64 16}
!19 = !{!14, !6, i64 160}
!20 = !{!21, !10, i64 40}
!21 = !{!"TXM_MODULE_PREAMBLE_STRUCT", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !10, i64 168, !10, i64 176, !10, i64 184, !10, i64 192, !10, i64 200, !10, i64 208, !10, i64 216, !10, i64 224, !10, i64 232, !10, i64 240, !10, i64 248}
!22 = !{!23, !10, i64 0}
!23 = !{!"TXM_MODULE_MPU_INFO_STRUCT", !10, i64 0, !10, i64 8}
!24 = !{!23, !10, i64 8}
!25 = !{!14, !10, i64 328}
!26 = !{!14, !10, i64 336}


; 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.TX_MUTEX_STRUCT = type { i64, ptr, i32, ptr, i32, i32, ptr, i32, ptr, ptr, i32, ptr, ptr }

@_txm_module_manager_ready = external local_unnamed_addr global i32, align 4
@_txm_module_manager_mutex = external global %struct.TX_MUTEX_STRUCT, align 8

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 244) i32 @_txm_module_manager_external_memory_enable(ptr noundef %0, ptr noundef %1, i64 noundef %2, i32 noundef %3) local_unnamed_addr #0 {
  %5 = load i32, ptr @_txm_module_manager_ready, align 4, !tbaa !5
  %.not = icmp eq i32 %5, 1
  br i1 %.not, label %6, label %41

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

8:                                                ; preds = %6
  %9 = tail call i32 @_tx_mutex_get(ptr noundef nonnull @_txm_module_manager_mutex, i64 noundef 4294967295) #2
  %10 = load i64, ptr %0, align 8, !tbaa !9
  %.not28 = icmp eq i64 %10, 1297040469
  br i1 %.not28, label %11, label %.sink.split

11:                                               ; preds = %8
  %12 = getelementptr inbounds i8, ptr %0, i64 16
  %13 = load i64, ptr %12, align 8, !tbaa !16
  %.not29 = icmp eq i64 %13, 1
  br i1 %.not29, label %14, label %.sink.split

14:                                               ; preds = %11
  %15 = getelementptr inbounds i8, ptr %0, i64 160
  %16 = load ptr, ptr %15, align 8, !tbaa !17
  %17 = getelementptr inbounds i8, ptr %16, i64 40
  %18 = load i64, ptr %17, align 8, !tbaa !18
  %19 = and i64 %18, 6
  %.not30 = icmp eq i64 %19, 6
  br i1 %.not30, label %20, label %.sink.split

20:                                               ; preds = %14
  %21 = tail call i64 @_txm_power_of_two_block_size(i64 noundef %2) #2
  %22 = ptrtoint ptr %1 to i64
  %23 = add i64 %21, -1
  %24 = and i64 %23, %22
  %.not31 = icmp eq i64 %24, 0
  br i1 %.not31, label %25, label %.sink.split

25:                                               ; preds = %20
  %26 = or i64 %22, 20
  %27 = getelementptr inbounds i8, ptr %0, i64 264
  store i64 %26, ptr %27, align 8, !tbaa !20
  %28 = tail call i64 @_txm_module_manager_region_size_get(i64 noundef %21) #2
  %29 = tail call i64 @_txm_module_manager_calculate_srd_bits(i64 noundef %21, i64 noundef %2) #2
  %30 = shl i32 %3, 24
  %31 = and i32 %30, 16777216
  %32 = shl i64 %28, 1
  %33 = or disjoint i32 %31, 302448641
  %34 = zext nneg i32 %33 to i64
  %35 = or i64 %29, %34
  %36 = or i64 %35, %32
  %37 = getelementptr inbounds i8, ptr %0, i64 272
  store i64 %36, ptr %37, align 8, !tbaa !22
  %38 = getelementptr inbounds i8, ptr %0, i64 328
  store i64 %22, ptr %38, align 8, !tbaa !23
  %39 = getelementptr inbounds i8, ptr %0, i64 336
  store i64 %2, ptr %39, align 8, !tbaa !24
  tail call void @_txm_module_manager_mm_register_setup(ptr noundef nonnull %0) #2
  br label %.sink.split

.sink.split:                                      ; preds = %20, %14, %11, %8, %25
  %.0.ph = phi i32 [ 0, %25 ], [ 3, %8 ], [ 16, %11 ], [ 243, %14 ], [ 240, %20 ]
  %40 = tail call i32 @_tx_mutex_put(ptr noundef nonnull @_txm_module_manager_mutex) #2
  br label %41

41:                                               ; preds = %.sink.split, %6, %4
  %.0 = phi i32 [ 29, %4 ], [ 3, %6 ], [ %.0.ph, %.sink.split ]
  ret i32 %.0
}

declare i32 @_tx_mutex_get(ptr noundef, i64 noundef) local_unnamed_addr #1

declare i32 @_tx_mutex_put(ptr noundef) local_unnamed_addr #1

declare i64 @_txm_power_of_two_block_size(i64 noundef) local_unnamed_addr #1

declare i64 @_txm_module_manager_region_size_get(i64 noundef) local_unnamed_addr #1

declare i64 @_txm_module_manager_calculate_srd_bits(i64 noundef, i64 noundef) local_unnamed_addr #1

declare void @_txm_module_manager_mm_register_setup(ptr noundef) local_unnamed_addr #1

attributes #0 = { 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 #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"TXM_MODULE_INSTANCE_STRUCT", !11, i64 0, !12, i64 8, !11, i64 16, !11, i64 24, !12, i64 32, !11, i64 40, !12, i64 48, !12, i64 56, !11, i64 64, !12, i64 72, !11, i64 80, !12, i64 88, !12, i64 96, !12, i64 104, !11, i64 112, !11, i64 120, !12, i64 128, !12, i64 136, !12, i64 144, !12, i64 152, !12, i64 160, !12, i64 168, !12, i64 176, !12, i64 184, !12, i64 192, !7, i64 200, !11, i64 328, !11, i64 336, !13, i64 344, !13, i64 688, !15, i64 1032, !7, i64 1136, !11, i64 1968, !11, i64 1976, !11, i64 1984, !11, i64 1992, !11, i64 2000, !6, i64 2008, !12, i64 2016, !11, i64 2024, !12, i64 2032, !12, i64 2040}
!11 = !{!"long", !7, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!"TX_THREAD_STRUCT", !11, i64 0, !11, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !6, i64 88, !12, i64 96, !12, i64 104, !6, i64 112, !6, i64 116, !6, i64 120, !6, i64 124, !6, i64 128, !12, i64 136, !12, i64 144, !11, i64 152, !14, i64 160, !12, i64 216, !12, i64 224, !12, i64 232, !12, i64 240, !11, i64 248, !12, i64 256, !6, i64 264, !6, i64 268, !12, i64 272, !12, i64 280, !12, i64 288, !6, i64 296, !6, i64 300, !6, i64 304, !6, i64 308, !12, i64 312, !12, i64 320, !12, i64 328, !11, i64 336}
!14 = !{!"TX_TIMER_INTERNAL_STRUCT", !11, i64 0, !11, i64 8, !12, i64 16, !11, i64 24, !12, i64 32, !12, i64 40, !12, i64 48}
!15 = !{!"TX_QUEUE_STRUCT", !11, i64 0, !12, i64 8, !6, i64 16, !6, i64 20, !6, i64 24, !6, i64 28, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !6, i64 72, !12, i64 80, !12, i64 88, !12, i64 96}
!16 = !{!10, !11, i64 16}
!17 = !{!10, !12, i64 160}
!18 = !{!19, !11, i64 40}
!19 = !{!"TXM_MODULE_PREAMBLE_STRUCT", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !11, i64 88, !11, i64 96, !11, i64 104, !11, i64 112, !11, i64 120, !11, i64 128, !11, i64 136, !11, i64 144, !11, i64 152, !11, i64 160, !11, i64 168, !11, i64 176, !11, i64 184, !11, i64 192, !11, i64 200, !11, i64 208, !11, i64 216, !11, i64 224, !11, i64 232, !11, i64 240, !11, i64 248}
!20 = !{!21, !11, i64 0}
!21 = !{!"TXM_MODULE_MPU_INFO_STRUCT", !11, i64 0, !11, i64 8}
!22 = !{!21, !11, i64 8}
!23 = !{!10, !11, i64 328}
!24 = !{!10, !11, i64 336}


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