; LLVM IR from mlcommons/tiny :: benchmark/interface/Middlewares/ST/threadx/common/src/tx_block_pool_prioritize_1c5c3f70 (prioritize)

; 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_BLOCK_POOL_STRUCT = type { i64, ptr, i32, i32, ptr, ptr, i64, i32, ptr, i32, ptr, ptr }
%struct.TX_THREAD_STRUCT = type { i64, i64, ptr, ptr, ptr, i64, i64, i64, ptr, 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, ptr, i32, i32, i32, i32, ptr, ptr, ptr, i64 }
%struct.TX_TIMER_INTERNAL_STRUCT = type { i64, i64, ptr, i64, ptr, ptr, ptr }

@_tx_thread_preempt_disable = external global i32, align 4

; Function Attrs: nounwind uwtable
define dso_local i32 @_tx_block_pool_prioritize(ptr noundef %0) #0 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  %11 = call i32 @__disable_interrupts()
  store i32 %11, ptr %3, align 4, !tbaa !9
  %12 = load ptr, ptr %2, align 8, !tbaa !5
  %13 = getelementptr inbounds %struct.TX_BLOCK_POOL_STRUCT, ptr %12, i32 0, i32 9
  %14 = load i32, ptr %13, align 8, !tbaa !11
  store i32 %14, ptr %7, align 4, !tbaa !9
  %15 = load i32, ptr %7, align 4, !tbaa !9
  %16 = icmp ult i32 %15, 2
  br i1 %16, label %17, label %19

17:                                               ; preds = %1
  %18 = load i32, ptr %3, align 4, !tbaa !9
  call void @__restore_interrupt(i32 noundef %18)
  br label %142

19:                                               ; preds = %1
  %20 = load i32, ptr %7, align 4, !tbaa !9
  %21 = icmp eq i32 %20, 2
  br i1 %21, label %22, label %42

22:                                               ; preds = %19
  %23 = load ptr, ptr %2, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.TX_BLOCK_POOL_STRUCT, ptr %23, i32 0, i32 8
  %25 = load ptr, ptr %24, align 8, !tbaa !14
  store ptr %25, ptr %6, align 8, !tbaa !5
  %26 = load ptr, ptr %6, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.TX_THREAD_STRUCT, ptr %26, i32 0, i32 22
  %28 = load ptr, ptr %27, align 8, !tbaa !15
  store ptr %28, ptr %8, align 8, !tbaa !5
  %29 = load ptr, ptr %8, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.TX_THREAD_STRUCT, ptr %29, i32 0, i32 11
  %31 = load i32, ptr %30, align 8, !tbaa !18
  %32 = load ptr, ptr %6, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.TX_THREAD_STRUCT, ptr %32, i32 0, i32 11
  %34 = load i32, ptr %33, align 8, !tbaa !18
  %35 = icmp ult i32 %31, %34
  br i1 %35, label %36, label %40

36:                                               ; preds = %22
  %37 = load ptr, ptr %8, align 8, !tbaa !5
  %38 = load ptr, ptr %2, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.TX_BLOCK_POOL_STRUCT, ptr %38, i32 0, i32 8
  store ptr %37, ptr %39, align 8, !tbaa !14
  br label %40

40:                                               ; preds = %36, %22
  %41 = load i32, ptr %3, align 4, !tbaa !9
  call void @__restore_interrupt(i32 noundef %41)
  br label %141

42:                                               ; preds = %19
  %43 = load ptr, ptr %2, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.TX_BLOCK_POOL_STRUCT, ptr %43, i32 0, i32 8
  %45 = load ptr, ptr %44, align 8, !tbaa !14
  store ptr %45, ptr %6, align 8, !tbaa !5
  %46 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %46, ptr %5, align 8, !tbaa !5
  %47 = load ptr, ptr %5, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.TX_THREAD_STRUCT, ptr %47, i32 0, i32 22
  %49 = load ptr, ptr %48, align 8, !tbaa !15
  store ptr %49, ptr %4, align 8, !tbaa !5
  %50 = load volatile i32, ptr @_tx_thread_preempt_disable, align 4, !tbaa !9
  %51 = add i32 %50, 1
  store volatile i32 %51, ptr @_tx_thread_preempt_disable, align 4, !tbaa !9
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %52

52:                                               ; preds = %98, %42
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.TX_THREAD_STRUCT, ptr %53, i32 0, i32 11
  %55 = load i32, ptr %54, align 8, !tbaa !18
  %56 = load ptr, ptr %5, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.TX_THREAD_STRUCT, ptr %56, i32 0, i32 11
  %58 = load i32, ptr %57, align 8, !tbaa !18
  %59 = icmp ult i32 %55, %58
  br i1 %59, label %60, label %62

60:                                               ; preds = %52
  %61 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %61, ptr %5, align 8, !tbaa !5
  br label %62

62:                                               ; preds = %60, %52
  %63 = load i32, ptr %3, align 4, !tbaa !9
  call void @__restore_interrupt(i32 noundef %63)
  %64 = call i32 @__disable_interrupts()
  store i32 %64, ptr %3, align 4, !tbaa !9
  %65 = load ptr, ptr %6, align 8, !tbaa !5
  %66 = load ptr, ptr %2, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.TX_BLOCK_POOL_STRUCT, ptr %66, i32 0, i32 8
  %68 = load ptr, ptr %67, align 8, !tbaa !14
  %69 = icmp ne ptr %65, %68
  br i1 %69, label %70, label %71

70:                                               ; preds = %62
  store i32 1, ptr %10, align 4, !tbaa !9
  br label %79

71:                                               ; preds = %62
  %72 = load i32, ptr %7, align 4, !tbaa !9
  %73 = load ptr, ptr %2, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.TX_BLOCK_POOL_STRUCT, ptr %73, i32 0, i32 9
  %75 = load i32, ptr %74, align 8, !tbaa !11
  %76 = icmp ne i32 %72, %75
  br i1 %76, label %77, label %78

77:                                               ; preds = %71
  store i32 1, ptr %10, align 4, !tbaa !9
  br label %78

78:                                               ; preds = %77, %71
  br label %79

79:                                               ; preds = %78, %70
  %80 = load i32, ptr %10, align 4, !tbaa !9
  %81 = icmp eq i32 %80, 0
  br i1 %81, label %82, label %86

82:                                               ; preds = %79
  %83 = load ptr, ptr %4, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.TX_THREAD_STRUCT, ptr %83, i32 0, i32 22
  %85 = load ptr, ptr %84, align 8, !tbaa !15
  store ptr %85, ptr %4, align 8, !tbaa !5
  br label %97

86:                                               ; preds = %79
  %87 = load ptr, ptr %2, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.TX_BLOCK_POOL_STRUCT, ptr %87, i32 0, i32 8
  %89 = load ptr, ptr %88, align 8, !tbaa !14
  store ptr %89, ptr %6, align 8, !tbaa !5
  %90 = load ptr, ptr %2, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.TX_BLOCK_POOL_STRUCT, ptr %90, i32 0, i32 9
  %92 = load i32, ptr %91, align 8, !tbaa !11
  store i32 %92, ptr %7, align 4, !tbaa !9
  %93 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %93, ptr %5, align 8, !tbaa !5
  %94 = load ptr, ptr %5, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.TX_THREAD_STRUCT, ptr %94, i32 0, i32 22
  %96 = load ptr, ptr %95, align 8, !tbaa !15
  store ptr %96, ptr %4, align 8, !tbaa !5
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %97

97:                                               ; preds = %86, %82
  br label %98

98:                                               ; preds = %97
  %99 = load ptr, ptr %4, align 8, !tbaa !5
  %100 = load ptr, ptr %6, align 8, !tbaa !5
  %101 = icmp ne ptr %99, %100
  br i1 %101, label %52, label %102, !llvm.loop !19

102:                                              ; preds = %98
  %103 = load volatile i32, ptr @_tx_thread_preempt_disable, align 4, !tbaa !9
  %104 = add i32 %103, -1
  store volatile i32 %104, ptr @_tx_thread_preempt_disable, align 4, !tbaa !9
  %105 = load ptr, ptr %5, align 8, !tbaa !5
  %106 = load ptr, ptr %6, align 8, !tbaa !5
  %107 = icmp ne ptr %105, %106
  br i1 %107, label %108, label %139

108:                                              ; preds = %102
  %109 = load ptr, ptr %5, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.TX_THREAD_STRUCT, ptr %109, i32 0, i32 22
  %111 = load ptr, ptr %110, align 8, !tbaa !15
  store ptr %111, ptr %8, align 8, !tbaa !5
  %112 = load ptr, ptr %5, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.TX_THREAD_STRUCT, ptr %112, i32 0, i32 23
  %114 = load ptr, ptr %113, align 8, !tbaa !21
  store ptr %114, ptr %9, align 8, !tbaa !5
  %115 = load ptr, ptr %9, align 8, !tbaa !5
  %116 = load ptr, ptr %8, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.TX_THREAD_STRUCT, ptr %116, i32 0, i32 23
  store ptr %115, ptr %117, align 8, !tbaa !21
  %118 = load ptr, ptr %8, align 8, !tbaa !5
  %119 = load ptr, ptr %9, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.TX_THREAD_STRUCT, ptr %119, i32 0, i32 22
  store ptr %118, ptr %120, align 8, !tbaa !15
  %121 = load ptr, ptr %6, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.TX_THREAD_STRUCT, ptr %121, i32 0, i32 23
  %123 = load ptr, ptr %122, align 8, !tbaa !21
  store ptr %123, ptr %9, align 8, !tbaa !5
  %124 = load ptr, ptr %6, align 8, !tbaa !5
  %125 = load ptr, ptr %5, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.TX_THREAD_STRUCT, ptr %125, i32 0, i32 22
  store ptr %124, ptr %126, align 8, !tbaa !15
  %127 = load ptr, ptr %9, align 8, !tbaa !5
  %128 = load ptr, ptr %5, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.TX_THREAD_STRUCT, ptr %128, i32 0, i32 23
  store ptr %127, ptr %129, align 8, !tbaa !21
  %130 = load ptr, ptr %5, align 8, !tbaa !5
  %131 = load ptr, ptr %9, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.TX_THREAD_STRUCT, ptr %131, i32 0, i32 22
  store ptr %130, ptr %132, align 8, !tbaa !15
  %133 = load ptr, ptr %5, align 8, !tbaa !5
  %134 = load ptr, ptr %6, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.TX_THREAD_STRUCT, ptr %134, i32 0, i32 23
  store ptr %133, ptr %135, align 8, !tbaa !21
  %136 = load ptr, ptr %5, align 8, !tbaa !5
  %137 = load ptr, ptr %2, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.TX_BLOCK_POOL_STRUCT, ptr %137, i32 0, i32 8
  store ptr %136, ptr %138, align 8, !tbaa !14
  br label %139

139:                                              ; preds = %108, %102
  %140 = load i32, ptr %3, align 4, !tbaa !9
  call void @__restore_interrupt(i32 noundef %140)
  call void @_tx_thread_system_preempt_check()
  br label %141

141:                                              ; preds = %139, %40
  br label %142

142:                                              ; preds = %141, %17
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  ret i32 0
}

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

; Function Attrs: alwaysinline nounwind uwtable
declare hidden i32 @__disable_interrupts() #2

; Function Attrs: alwaysinline nounwind uwtable
declare hidden void @__restore_interrupt(i32 noundef) #2

declare void @_tx_thread_system_preempt_check() #3

; 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 = { alwaysinline 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 = { "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 }

!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 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 64}
!12 = !{!"TX_BLOCK_POOL_STRUCT", !13, i64 0, !6, i64 8, !10, i64 16, !10, i64 20, !6, i64 24, !6, i64 32, !13, i64 40, !10, i64 48, !6, i64 56, !10, i64 64, !6, i64 72, !6, i64 80}
!13 = !{!"long", !7, i64 0}
!14 = !{!12, !6, i64 56}
!15 = !{!16, !6, i64 208}
!16 = !{!"TX_THREAD_STRUCT", !13, i64 0, !13, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !13, i64 40, !13, i64 48, !13, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !10, i64 88, !10, i64 92, !10, i64 96, !10, i64 100, !10, i64 104, !6, i64 112, !6, i64 120, !13, i64 128, !17, i64 136, !6, i64 192, !6, i64 200, !6, i64 208, !6, i64 216, !13, i64 224, !6, i64 232, !10, i64 240, !10, i64 244, !6, i64 248, !6, i64 256, !6, i64 264, !6, i64 272, !10, i64 280, !10, i64 284, !10, i64 288, !10, i64 292, !6, i64 296, !6, i64 304, !6, i64 312, !13, i64 320}
!17 = !{!"TX_TIMER_INTERNAL_STRUCT", !13, i64 0, !13, i64 8, !6, i64 16, !13, i64 24, !6, i64 32, !6, i64 40, !6, i64 48}
!18 = !{!16, !10, i64 88}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!16, !6, i64 216}


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

@_tx_thread_preempt_disable = external global i32, align 4

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @_tx_block_pool_prioritize(ptr nocapture noundef %0) local_unnamed_addr #0 {
  %2 = tail call i32 @__disable_interrupts()
  %3 = getelementptr inbounds i8, ptr %0, i64 64
  %4 = load i32, ptr %3, align 8, !tbaa !5
  %5 = icmp ult i32 %4, 2
  br i1 %5, label %6, label %7

6:                                                ; preds = %1
  tail call void @__restore_interrupt(i32 noundef %2)
  br label %48

7:                                                ; preds = %1
  %8 = icmp eq i32 %4, 2
  %9 = getelementptr inbounds i8, ptr %0, i64 56
  %10 = load ptr, ptr %9, align 8, !tbaa !12
  %11 = getelementptr inbounds i8, ptr %10, i64 208
  %12 = load ptr, ptr %11, align 8, !tbaa !13
  br i1 %8, label %13, label %21

13:                                               ; preds = %7
  %14 = getelementptr inbounds i8, ptr %12, i64 88
  %15 = load i32, ptr %14, align 8, !tbaa !16
  %16 = getelementptr inbounds i8, ptr %10, i64 88
  %17 = load i32, ptr %16, align 8, !tbaa !16
  %18 = icmp ult i32 %15, %17
  br i1 %18, label %19, label %20

19:                                               ; preds = %13
  store ptr %12, ptr %9, align 8, !tbaa !12
  br label %20

20:                                               ; preds = %19, %13
  tail call void @__restore_interrupt(i32 noundef %2)
  br label %48

21:                                               ; preds = %7
  %22 = load volatile i32, ptr @_tx_thread_preempt_disable, align 4, !tbaa !17
  %23 = add i32 %22, 1
  store volatile i32 %23, ptr @_tx_thread_preempt_disable, align 4, !tbaa !17
  br label %24

24:                                               ; preds = %33, %21
  %.057 = phi ptr [ %12, %21 ], [ %.158, %33 ]
  %.054 = phi ptr [ %10, %21 ], [ %.256, %33 ]
  %.052 = phi ptr [ %10, %21 ], [ %.153, %33 ]
  %.050 = phi i32 [ %4, %21 ], [ %.151, %33 ]
  %.049 = phi i32 [ %2, %21 ], [ %29, %33 ]
  %25 = getelementptr inbounds i8, ptr %.057, i64 88
  %26 = load i32, ptr %25, align 8, !tbaa !16
  %27 = getelementptr inbounds i8, ptr %.054, i64 88
  %28 = load i32, ptr %27, align 8, !tbaa !16
  tail call void @__restore_interrupt(i32 noundef %.049)
  %29 = tail call i32 @__disable_interrupts()
  %30 = load ptr, ptr %9, align 8, !tbaa !12
  %.not = icmp eq ptr %.052, %30
  %.pre = load i32, ptr %3, align 8, !tbaa !5
  br i1 %.not, label %31, label %.critedge

31:                                               ; preds = %24
  %32 = icmp ult i32 %26, %28
  %spec.select = select i1 %32, ptr %.057, ptr %.054
  %.not60 = icmp eq i32 %.050, %.pre
  br i1 %.not60, label %33, label %.critedge

.critedge:                                        ; preds = %24, %31
  br label %33

33:                                               ; preds = %31, %.critedge
  %.057.pn = phi ptr [ %30, %.critedge ], [ %.057, %31 ]
  %.256 = phi ptr [ %30, %.critedge ], [ %spec.select, %31 ]
  %.153 = phi ptr [ %30, %.critedge ], [ %.052, %31 ]
  %.151 = phi i32 [ %.pre, %.critedge ], [ %.050, %31 ]
  %.158.in = getelementptr inbounds i8, ptr %.057.pn, i64 208
  %.158 = load ptr, ptr %.158.in, align 8, !tbaa !13
  %.not61 = icmp eq ptr %.158, %.153
  br i1 %.not61, label %34, label %24, !llvm.loop !18

34:                                               ; preds = %33
  %35 = load volatile i32, ptr @_tx_thread_preempt_disable, align 4, !tbaa !17
  %36 = add i32 %35, -1
  store volatile i32 %36, ptr @_tx_thread_preempt_disable, align 4, !tbaa !17
  %.not62 = icmp eq ptr %.256, %.153
  br i1 %.not62, label %47, label %37

37:                                               ; preds = %34
  %38 = getelementptr inbounds i8, ptr %.256, i64 208
  %39 = load ptr, ptr %38, align 8, !tbaa !13
  %40 = getelementptr inbounds i8, ptr %.256, i64 216
  %41 = load ptr, ptr %40, align 8, !tbaa !20
  %42 = getelementptr inbounds i8, ptr %39, i64 216
  store ptr %41, ptr %42, align 8, !tbaa !20
  %43 = getelementptr inbounds i8, ptr %41, i64 208
  store ptr %39, ptr %43, align 8, !tbaa !13
  %44 = getelementptr inbounds i8, ptr %.153, i64 216
  %45 = load ptr, ptr %44, align 8, !tbaa !20
  store ptr %.153, ptr %38, align 8, !tbaa !13
  store ptr %45, ptr %40, align 8, !tbaa !20
  %46 = getelementptr inbounds i8, ptr %45, i64 208
  store ptr %.256, ptr %46, align 8, !tbaa !13
  store ptr %.256, ptr %44, align 8, !tbaa !20
  store ptr %.256, ptr %9, align 8, !tbaa !12
  br label %47

47:                                               ; preds = %37, %34
  tail call void @__restore_interrupt(i32 noundef %29)
  tail call void @_tx_thread_system_preempt_check() #3
  br label %48

48:                                               ; preds = %20, %47, %6
  ret i32 0
}

; Function Attrs: alwaysinline nounwind uwtable
declare hidden i32 @__disable_interrupts() local_unnamed_addr #1

; Function Attrs: alwaysinline nounwind uwtable
declare hidden void @__restore_interrupt(i32 noundef) local_unnamed_addr #1

declare void @_tx_thread_system_preempt_check() local_unnamed_addr #2

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 = { alwaysinline 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 #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, !11, i64 64}
!6 = !{!"TX_BLOCK_POOL_STRUCT", !7, i64 0, !10, i64 8, !11, i64 16, !11, i64 20, !10, i64 24, !10, i64 32, !7, i64 40, !11, i64 48, !10, i64 56, !11, i64 64, !10, i64 72, !10, i64 80}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!6, !10, i64 56}
!13 = !{!14, !10, i64 208}
!14 = !{!"TX_THREAD_STRUCT", !7, i64 0, !7, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !11, i64 88, !11, i64 92, !11, i64 96, !11, i64 100, !11, i64 104, !10, i64 112, !10, i64 120, !7, i64 128, !15, i64 136, !10, i64 192, !10, i64 200, !10, i64 208, !10, i64 216, !7, i64 224, !10, i64 232, !11, i64 240, !11, i64 244, !10, i64 248, !10, i64 256, !10, i64 264, !10, i64 272, !11, i64 280, !11, i64 284, !11, i64 288, !11, i64 292, !10, i64 296, !10, i64 304, !10, i64 312, !7, i64 320}
!15 = !{!"TX_TIMER_INTERNAL_STRUCT", !7, i64 0, !7, i64 8, !10, i64 16, !7, i64 24, !10, i64 32, !10, i64 40, !10, i64 48}
!16 = !{!14, !11, i64 88}
!17 = !{!11, !11, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!14, !10, i64 216}


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