; LLVM IR from eclipse-threadx/threadx :: common_modules/module_manager/src (txm_module_manager_memory_load)

; 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_BYTE_POOL_STRUCT = type { i64, ptr, i64, i32, ptr, ptr, ptr, i64, ptr, ptr, i32, 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_byte_pool = external global %struct.TX_BYTE_POOL_STRUCT, align 8

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

26:                                               ; preds = %3
  store i32 242, ptr %4, align 4
  store i32 1, ptr %19, align 4
  br label %86

27:                                               ; preds = %3
  %28 = load ptr, ptr %8, align 8, !tbaa !5
  %29 = call i32 @_txm_module_manager_util_code_allocation_size_and_alignment_get(ptr noundef %28, ptr noundef %11, ptr noundef %12)
  store i32 %29, ptr %18, align 4, !tbaa !13
  %30 = load i32, ptr %18, align 4, !tbaa !13
  %31 = icmp ne i32 %30, 0
  br i1 %31, label %32, label %34

32:                                               ; preds = %27
  %33 = load i32, ptr %18, align 4, !tbaa !13
  store i32 %33, ptr %4, align 4
  store i32 1, ptr %19, align 4
  br label %86

34:                                               ; preds = %27
  %35 = load i64, ptr %12, align 8, !tbaa !12
  %36 = call i32 @_tx_byte_allocate(ptr noundef @_txm_module_manager_byte_pool, ptr noundef %13, i64 noundef %35, i64 noundef 0)
  store i32 %36, ptr %18, align 4, !tbaa !13
  %37 = load i32, ptr %18, align 4, !tbaa !13
  %38 = icmp ne i32 %37, 0
  br i1 %38, label %39, label %40

39:                                               ; preds = %34
  store i32 16, ptr %4, align 4
  store i32 1, ptr %19, align 4
  br label %86

40:                                               ; preds = %34
  %41 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %41, ptr %14, align 8, !tbaa !5
  %42 = load ptr, ptr %13, align 8, !tbaa !5
  %43 = ptrtoint ptr %42 to i64
  store i64 %43, ptr %9, align 8, !tbaa !12
  %44 = load i64, ptr %9, align 8, !tbaa !12
  %45 = load i64, ptr %11, align 8, !tbaa !12
  %46 = sub i64 %45, 1
  %47 = add i64 %44, %46
  %48 = load i64, ptr %11, align 8, !tbaa !12
  %49 = sub i64 %48, 1
  %50 = xor i64 %49, -1
  %51 = and i64 %47, %50
  store i64 %51, ptr %9, align 8, !tbaa !12
  %52 = load i64, ptr %9, align 8, !tbaa !12
  %53 = inttoptr i64 %52 to ptr
  store ptr %53, ptr %15, align 8, !tbaa !5
  %54 = load ptr, ptr %8, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.TXM_MODULE_PREAMBLE_STRUCT, ptr %54, i32 0, i32 14
  %56 = load i64, ptr %55, align 8, !tbaa !9
  store i64 %56, ptr %16, align 8, !tbaa !12
  store i64 0, ptr %17, align 8, !tbaa !12
  br label %57

57:                                               ; preds = %67, %40
  %58 = load i64, ptr %17, align 8, !tbaa !12
  %59 = load i64, ptr %16, align 8, !tbaa !12
  %60 = icmp ult i64 %58, %59
  br i1 %60, label %61, label %70

61:                                               ; preds = %57
  %62 = load ptr, ptr %14, align 8, !tbaa !5
  %63 = getelementptr inbounds i8, ptr %62, i32 1
  store ptr %63, ptr %14, align 8, !tbaa !5
  %64 = load i8, ptr %62, align 1, !tbaa !15
  %65 = load ptr, ptr %15, align 8, !tbaa !5
  %66 = getelementptr inbounds i8, ptr %65, i32 1
  store ptr %66, ptr %15, align 8, !tbaa !5
  store i8 %64, ptr %65, align 1, !tbaa !15
  br label %67

67:                                               ; preds = %61
  %68 = load i64, ptr %17, align 8, !tbaa !12
  %69 = add i64 %68, 1
  store i64 %69, ptr %17, align 8, !tbaa !12
  br label %57, !llvm.loop !16

70:                                               ; preds = %57
  %71 = load ptr, ptr %5, align 8, !tbaa !5
  %72 = load ptr, ptr %6, align 8, !tbaa !5
  %73 = load i64, ptr %9, align 8, !tbaa !12
  %74 = inttoptr i64 %73 to ptr
  %75 = load i64, ptr %10, align 8, !tbaa !12
  %76 = load ptr, ptr %13, align 8, !tbaa !5
  %77 = load i64, ptr %12, align 8, !tbaa !12
  %78 = call i32 @_txm_module_manager_internal_load(ptr noundef %71, ptr noundef %72, ptr noundef %74, i64 noundef %75, ptr noundef %76, i64 noundef %77)
  store i32 %78, ptr %18, align 4, !tbaa !13
  %79 = load i32, ptr %18, align 4, !tbaa !13
  %80 = icmp ne i32 %79, 0
  br i1 %80, label %81, label %85

81:                                               ; preds = %70
  %82 = load ptr, ptr %13, align 8, !tbaa !5
  %83 = call i32 @_tx_byte_release(ptr noundef %82)
  %84 = load i32, ptr %18, align 4, !tbaa !13
  store i32 %84, ptr %4, align 4
  store i32 1, ptr %19, align 4
  br label %86

85:                                               ; preds = %70
  store i32 0, ptr %4, align 4
  store i32 1, ptr %19, align 4
  br label %86

86:                                               ; preds = %85, %81, %39, %32, %26
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, 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
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  %87 = load i32, ptr %4, align 4
  ret i32 %87
}

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

declare i32 @_txm_module_manager_util_code_allocation_size_and_alignment_get(ptr noundef, ptr noundef, ptr noundef) #2

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

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

declare i32 @_tx_byte_release(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, !11, i64 112}
!10 = !{!"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}
!11 = !{!"long", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!7, !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"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.TX_BYTE_POOL_STRUCT = type { i64, ptr, i64, i32, ptr, ptr, ptr, i64, ptr, ptr, i32, ptr, ptr }

@_txm_module_manager_byte_pool = external global %struct.TX_BYTE_POOL_STRUCT, align 8

; Function Attrs: nounwind uwtable
define dso_local i32 @_txm_module_manager_memory_load(ptr noundef %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #0 {
  %4 = ptrtoint ptr %2 to i64
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #3
  %8 = getelementptr inbounds i8, ptr %2, i64 112
  %9 = load i64, ptr %8, align 8, !tbaa !5
  %10 = icmp eq i64 %9, 0
  br i1 %10, label %68, label %11

11:                                               ; preds = %3
  %12 = call i32 @_txm_module_manager_util_code_allocation_size_and_alignment_get(ptr noundef nonnull %2, ptr noundef nonnull %5, ptr noundef nonnull %6) #3
  %.not = icmp eq i32 %12, 0
  br i1 %.not, label %13, label %68

13:                                               ; preds = %11
  %14 = load i64, ptr %6, align 8, !tbaa !10
  %15 = call i32 @_tx_byte_allocate(ptr noundef nonnull @_txm_module_manager_byte_pool, ptr noundef nonnull %7, i64 noundef %14, i64 noundef 0) #3
  %.not28 = icmp eq i32 %15, 0
  br i1 %.not28, label %16, label %68

16:                                               ; preds = %13
  %17 = load ptr, ptr %7, align 8, !tbaa !11
  %18 = ptrtoint ptr %17 to i64
  %19 = load i64, ptr %5, align 8, !tbaa !10
  %20 = add i64 %19, -1
  %21 = add i64 %20, %18
  %22 = sub i64 0, %19
  %23 = and i64 %21, %22
  %24 = inttoptr i64 %23 to ptr
  %25 = load i64, ptr %8, align 8, !tbaa !5
  %.not33 = icmp eq i64 %25, 0
  br i1 %.not33, label %._crit_edge, label %iter.check

iter.check:                                       ; preds = %16
  %min.iters.check = icmp ult i64 %25, 8
  %26 = sub i64 %23, %4
  %diff.check = icmp ult i64 %26, 32
  %or.cond = select i1 %min.iters.check, i1 true, i1 %diff.check
  br i1 %or.cond, label %.lr.ph.preheader, label %vector.main.loop.iter.check

vector.main.loop.iter.check:                      ; preds = %iter.check
  %min.iters.check34 = icmp ult i64 %25, 32
  br i1 %min.iters.check34, label %vec.epilog.ph, label %vector.ph

vector.ph:                                        ; preds = %vector.main.loop.iter.check
  %n.vec = and i64 %25, -32
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %next.gep = getelementptr i8, ptr %24, i64 %index
  %next.gep36 = getelementptr i8, ptr %2, i64 %index
  %27 = getelementptr i8, ptr %next.gep36, i64 16
  %wide.load = load <16 x i8>, ptr %next.gep36, align 1, !tbaa !13
  %wide.load38 = load <16 x i8>, ptr %27, align 1, !tbaa !13
  %28 = getelementptr i8, ptr %next.gep, i64 16
  store <16 x i8> %wide.load, ptr %next.gep, align 1, !tbaa !13
  store <16 x i8> %wide.load38, ptr %28, align 1, !tbaa !13
  %index.next = add nuw i64 %index, 32
  %29 = icmp eq i64 %index.next, %n.vec
  br i1 %29, label %middle.block, label %vector.body, !llvm.loop !14

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %25, %n.vec
  br i1 %cmp.n, label %._crit_edge.loopexit, label %vec.epilog.iter.check

vec.epilog.iter.check:                            ; preds = %middle.block
  %ind.end44 = getelementptr i8, ptr %2, i64 %n.vec
  %ind.end41 = getelementptr i8, ptr %24, i64 %n.vec
  %n.vec.remaining = and i64 %25, 24
  %min.epilog.iters.check = icmp eq i64 %n.vec.remaining, 0
  br i1 %min.epilog.iters.check, label %.lr.ph.preheader, label %vec.epilog.ph

vec.epilog.ph:                                    ; preds = %vector.main.loop.iter.check, %vec.epilog.iter.check
  %vec.epilog.resume.val = phi i64 [ %n.vec, %vec.epilog.iter.check ], [ 0, %vector.main.loop.iter.check ]
  %n.vec40 = and i64 %25, -8
  %ind.end = getelementptr i8, ptr %24, i64 %n.vec40
  %ind.end43 = getelementptr i8, ptr %2, i64 %n.vec40
  br label %vec.epilog.vector.body

vec.epilog.vector.body:                           ; preds = %vec.epilog.vector.body, %vec.epilog.ph
  %index46 = phi i64 [ %vec.epilog.resume.val, %vec.epilog.ph ], [ %index.next50, %vec.epilog.vector.body ]
  %next.gep47 = getelementptr i8, ptr %24, i64 %index46
  %next.gep48 = getelementptr i8, ptr %2, i64 %index46
  %wide.load49 = load <8 x i8>, ptr %next.gep48, align 1, !tbaa !13
  store <8 x i8> %wide.load49, ptr %next.gep47, align 1, !tbaa !13
  %index.next50 = add nuw i64 %index46, 8
  %30 = icmp eq i64 %index.next50, %n.vec40
  br i1 %30, label %vec.epilog.middle.block, label %vec.epilog.vector.body, !llvm.loop !18

vec.epilog.middle.block:                          ; preds = %vec.epilog.vector.body
  %cmp.n51 = icmp eq i64 %25, %n.vec40
  br i1 %cmp.n51, label %._crit_edge.loopexit, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %vec.epilog.middle.block, %iter.check, %vec.epilog.iter.check
  %.032.ph = phi i64 [ 0, %iter.check ], [ %n.vec, %vec.epilog.iter.check ], [ %n.vec40, %vec.epilog.middle.block ]
  %.02331.ph = phi ptr [ %24, %iter.check ], [ %ind.end41, %vec.epilog.iter.check ], [ %ind.end, %vec.epilog.middle.block ]
  %.02430.ph = phi ptr [ %2, %iter.check ], [ %ind.end44, %vec.epilog.iter.check ], [ %ind.end43, %vec.epilog.middle.block ]
  %xtraiter = and i64 %25, 7
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol

.lr.ph.prol:                                      ; preds = %.lr.ph.preheader, %.lr.ph.prol
  %.032.prol = phi i64 [ %34, %.lr.ph.prol ], [ %.032.ph, %.lr.ph.preheader ]
  %.02331.prol = phi ptr [ %33, %.lr.ph.prol ], [ %.02331.ph, %.lr.ph.preheader ]
  %.02430.prol = phi ptr [ %31, %.lr.ph.prol ], [ %.02430.ph, %.lr.ph.preheader ]
  %prol.iter = phi i64 [ %prol.iter.next, %.lr.ph.prol ], [ 0, %.lr.ph.preheader ]
  %31 = getelementptr inbounds i8, ptr %.02430.prol, i64 1
  %32 = load i8, ptr %.02430.prol, align 1, !tbaa !13
  %33 = getelementptr inbounds i8, ptr %.02331.prol, i64 1
  store i8 %32, ptr %.02331.prol, align 1, !tbaa !13
  %34 = add nuw i64 %.032.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol, !llvm.loop !19

.lr.ph.prol.loopexit:                             ; preds = %.lr.ph.prol, %.lr.ph.preheader
  %.032.unr = phi i64 [ %.032.ph, %.lr.ph.preheader ], [ %34, %.lr.ph.prol ]
  %.02331.unr = phi ptr [ %.02331.ph, %.lr.ph.preheader ], [ %33, %.lr.ph.prol ]
  %.02430.unr = phi ptr [ %.02430.ph, %.lr.ph.preheader ], [ %31, %.lr.ph.prol ]
  %35 = sub i64 %.032.ph, %25
  %36 = icmp ugt i64 %35, -8
  br i1 %36, label %._crit_edge.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.prol.loopexit, %.lr.ph
  %.032 = phi i64 [ %61, %.lr.ph ], [ %.032.unr, %.lr.ph.prol.loopexit ]
  %.02331 = phi ptr [ %60, %.lr.ph ], [ %.02331.unr, %.lr.ph.prol.loopexit ]
  %.02430 = phi ptr [ %58, %.lr.ph ], [ %.02430.unr, %.lr.ph.prol.loopexit ]
  %37 = getelementptr inbounds i8, ptr %.02430, i64 1
  %38 = load i8, ptr %.02430, align 1, !tbaa !13
  %39 = getelementptr inbounds i8, ptr %.02331, i64 1
  store i8 %38, ptr %.02331, align 1, !tbaa !13
  %40 = getelementptr inbounds i8, ptr %.02430, i64 2
  %41 = load i8, ptr %37, align 1, !tbaa !13
  %42 = getelementptr inbounds i8, ptr %.02331, i64 2
  store i8 %41, ptr %39, align 1, !tbaa !13
  %43 = getelementptr inbounds i8, ptr %.02430, i64 3
  %44 = load i8, ptr %40, align 1, !tbaa !13
  %45 = getelementptr inbounds i8, ptr %.02331, i64 3
  store i8 %44, ptr %42, align 1, !tbaa !13
  %46 = getelementptr inbounds i8, ptr %.02430, i64 4
  %47 = load i8, ptr %43, align 1, !tbaa !13
  %48 = getelementptr inbounds i8, ptr %.02331, i64 4
  store i8 %47, ptr %45, align 1, !tbaa !13
  %49 = getelementptr inbounds i8, ptr %.02430, i64 5
  %50 = load i8, ptr %46, align 1, !tbaa !13
  %51 = getelementptr inbounds i8, ptr %.02331, i64 5
  store i8 %50, ptr %48, align 1, !tbaa !13
  %52 = getelementptr inbounds i8, ptr %.02430, i64 6
  %53 = load i8, ptr %49, align 1, !tbaa !13
  %54 = getelementptr inbounds i8, ptr %.02331, i64 6
  store i8 %53, ptr %51, align 1, !tbaa !13
  %55 = getelementptr inbounds i8, ptr %.02430, i64 7
  %56 = load i8, ptr %52, align 1, !tbaa !13
  %57 = getelementptr inbounds i8, ptr %.02331, i64 7
  store i8 %56, ptr %54, align 1, !tbaa !13
  %58 = getelementptr inbounds i8, ptr %.02430, i64 8
  %59 = load i8, ptr %55, align 1, !tbaa !13
  %60 = getelementptr inbounds i8, ptr %.02331, i64 8
  store i8 %59, ptr %57, align 1, !tbaa !13
  %61 = add nuw i64 %.032, 8
  %exitcond.not.7 = icmp eq i64 %61, %25
  br i1 %exitcond.not.7, label %._crit_edge.loopexit, label %.lr.ph, !llvm.loop !21

._crit_edge.loopexit:                             ; preds = %.lr.ph.prol.loopexit, %.lr.ph, %vec.epilog.middle.block, %middle.block
  %.pre = load ptr, ptr %7, align 8, !tbaa !11
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %16
  %62 = phi ptr [ %.pre, %._crit_edge.loopexit ], [ %17, %16 ]
  %63 = load i64, ptr %6, align 8, !tbaa !10
  %64 = call i32 @_txm_module_manager_internal_load(ptr noundef %0, ptr noundef %1, ptr noundef %24, i64 noundef %9, ptr noundef %62, i64 noundef %63) #3
  %.not29 = icmp eq i32 %64, 0
  br i1 %.not29, label %68, label %65

65:                                               ; preds = %._crit_edge
  %66 = load ptr, ptr %7, align 8, !tbaa !11
  %67 = call i32 @_tx_byte_release(ptr noundef %66) #3
  br label %68

68:                                               ; preds = %._crit_edge, %13, %11, %3, %65
  %.022 = phi i32 [ %64, %65 ], [ 242, %3 ], [ %12, %11 ], [ 16, %13 ], [ 0, %._crit_edge ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
  ret i32 %.022
}

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

declare i32 @_txm_module_manager_util_code_allocation_size_and_alignment_get(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @_tx_byte_allocate(ptr noundef, ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #2

declare i32 @_txm_module_manager_internal_load(ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef) local_unnamed_addr #2

declare i32 @_tx_byte_release(ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress 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 = { mustprogress 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, !7, i64 112}
!6 = !{!"TXM_MODULE_PREAMBLE_STRUCT", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96, !7, i64 104, !7, i64 112, !7, i64 120, !7, i64 128, !7, i64 136, !7, i64 144, !7, i64 152, !7, i64 160, !7, i64 168, !7, i64 176, !7, i64 184, !7, i64 192, !7, i64 200, !7, i64 208, !7, i64 216, !7, i64 224, !7, i64 232, !7, i64 240, !7, i64 248}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!7, !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!8, !8, i64 0}
!14 = distinct !{!14, !15, !16, !17}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!"llvm.loop.isvectorized", i32 1}
!17 = !{!"llvm.loop.unroll.runtime.disable"}
!18 = distinct !{!18, !15, !16, !17}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.unroll.disable"}
!21 = distinct !{!21, !15, !16}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,SROAPass,SimplifyCFGPass