; LLVM IR from openxrlab/xrsfm :: 3rdparty/apriltag/common (string_util)

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

@.str.1 = external hidden unnamed_addr constant [88 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [10 x i8], align 1
@__PRETTY_FUNCTION__.str_touppercase = external hidden unnamed_addr constant [30 x i8], align 1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #0

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

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

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local ptr @str_touppercase(ptr noundef %0) #3 {
  %2 = alloca ptr, align 8
  %3 = alloca i64, align 8
  %4 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %5 = load ptr, ptr %2, align 8, !tbaa !5
  %6 = icmp ne ptr %5, null
  br i1 %6, label %7, label %8

7:                                                ; preds = %1
  br label %9

8:                                                ; preds = %1
  call void @__assert_fail(ptr noundef @.str.9, ptr noundef @.str.1, i32 noundef 293, ptr noundef @__PRETTY_FUNCTION__.str_touppercase) #4
  unreachable

9:                                                ; preds = %7
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  %10 = load ptr, ptr %2, align 8, !tbaa !5
  %11 = call i64 @strlen(ptr noundef %10) #6
  store i64 %11, ptr %3, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store i32 0, ptr %4, align 4, !tbaa !11
  br label %12

12:                                               ; preds = %48, %9
  %13 = load i32, ptr %4, align 4, !tbaa !11
  %14 = sext i32 %13 to i64
  %15 = load i64, ptr %3, align 8, !tbaa !9
  %16 = icmp ult i64 %14, %15
  br i1 %16, label %18, label %17

17:                                               ; preds = %12
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  br label %51

18:                                               ; preds = %12
  %19 = load ptr, ptr %2, align 8, !tbaa !5
  %20 = load i32, ptr %4, align 4, !tbaa !11
  %21 = sext i32 %20 to i64
  %22 = getelementptr inbounds i8, ptr %19, i64 %21
  %23 = load i8, ptr %22, align 1, !tbaa !13
  %24 = sext i8 %23 to i32
  %25 = icmp sge i32 %24, 97
  br i1 %25, label %26, label %47

26:                                               ; preds = %18
  %27 = load ptr, ptr %2, align 8, !tbaa !5
  %28 = load i32, ptr %4, align 4, !tbaa !11
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds i8, ptr %27, i64 %29
  %31 = load i8, ptr %30, align 1, !tbaa !13
  %32 = sext i8 %31 to i32
  %33 = icmp sle i32 %32, 122
  br i1 %33, label %34, label %47

34:                                               ; preds = %26
  %35 = load ptr, ptr %2, align 8, !tbaa !5
  %36 = load i32, ptr %4, align 4, !tbaa !11
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds i8, ptr %35, i64 %37
  %39 = load i8, ptr %38, align 1, !tbaa !13
  %40 = sext i8 %39 to i32
  %41 = sub nsw i32 %40, 32
  %42 = trunc i32 %41 to i8
  %43 = load ptr, ptr %2, align 8, !tbaa !5
  %44 = load i32, ptr %4, align 4, !tbaa !11
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds i8, ptr %43, i64 %45
  store i8 %42, ptr %46, align 1, !tbaa !13
  br label %47

47:                                               ; preds = %34, %26, %18
  br label %48

48:                                               ; preds = %47
  %49 = load i32, ptr %4, align 4, !tbaa !11
  %50 = add nsw i32 %49, 1
  store i32 %50, ptr %4, align 4, !tbaa !11
  br label %12, !llvm.loop !14

51:                                               ; preds = %17
  %52 = load ptr, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  ret ptr %52
}

attributes #0 = { noreturn nounwind "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 = { nounwind willreturn memory(read) "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 uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn nounwind }
attributes #5 = { nounwind }
attributes #6 = { nounwind willreturn memory(read) }

!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 = !{!7, !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"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"

@.str.1 = external hidden unnamed_addr constant [88 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [10 x i8], align 1
@__PRETTY_FUNCTION__.str_touppercase = external hidden unnamed_addr constant [30 x i8], align 1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local noundef ptr @str_touppercase(ptr noundef returned %0) local_unnamed_addr #2 {
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %2, label %3

2:                                                ; preds = %1
  tail call void @__assert_fail(ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.1, i32 noundef 293, ptr noundef nonnull @__PRETTY_FUNCTION__.str_touppercase) #3
  unreachable

3:                                                ; preds = %1
  %4 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %0) #4
  %.not17 = icmp eq i64 %4, 0
  br i1 %.not17, label %._crit_edge, label %iter.check

iter.check:                                       ; preds = %3
  %min.iters.check = icmp ult i64 %4, 8
  br i1 %min.iters.check, label %.lr.ph.preheader, label %vector.main.loop.iter.check

vector.main.loop.iter.check:                      ; preds = %iter.check
  %min.iters.check19 = icmp ult i64 %4, 16
  br i1 %min.iters.check19, label %vec.epilog.ph, label %vector.ph

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

vector.body:                                      ; preds = %pred.store.continue49, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %pred.store.continue49 ]
  %5 = getelementptr inbounds i8, ptr %0, i64 %index
  %wide.load = load <16 x i8>, ptr %5, align 1, !tbaa !5
  %6 = add <16 x i8> %wide.load, <i8 -97, i8 -97, i8 -97, i8 -97, i8 -97, i8 -97, i8 -97, i8 -97, i8 -97, i8 -97, i8 -97, i8 -97, i8 -97, i8 -97, i8 -97, i8 -97>
  %7 = icmp ult <16 x i8> %6, <i8 26, i8 26, i8 26, i8 26, i8 26, i8 26, i8 26, i8 26, i8 26, i8 26, i8 26, i8 26, i8 26, i8 26, i8 26, i8 26>
  %8 = extractelement <16 x i1> %7, i64 0
  br i1 %8, label %pred.store.if, label %pred.store.continue

pred.store.if:                                    ; preds = %vector.body
  %9 = getelementptr inbounds i8, ptr %0, i64 %index
  %10 = extractelement <16 x i8> %wide.load, i64 0
  %11 = add nsw i8 %10, -32
  store i8 %11, ptr %9, align 1, !tbaa !5
  br label %pred.store.continue

pred.store.continue:                              ; preds = %pred.store.if, %vector.body
  %12 = extractelement <16 x i1> %7, i64 1
  br i1 %12, label %pred.store.if20, label %pred.store.continue21

pred.store.if20:                                  ; preds = %pred.store.continue
  %13 = or disjoint i64 %index, 1
  %14 = getelementptr inbounds i8, ptr %0, i64 %13
  %15 = extractelement <16 x i8> %wide.load, i64 1
  %16 = add nsw i8 %15, -32
  store i8 %16, ptr %14, align 1, !tbaa !5
  br label %pred.store.continue21

pred.store.continue21:                            ; preds = %pred.store.if20, %pred.store.continue
  %17 = extractelement <16 x i1> %7, i64 2
  br i1 %17, label %pred.store.if22, label %pred.store.continue23

pred.store.if22:                                  ; preds = %pred.store.continue21
  %18 = or disjoint i64 %index, 2
  %19 = getelementptr inbounds i8, ptr %0, i64 %18
  %20 = extractelement <16 x i8> %wide.load, i64 2
  %21 = add nsw i8 %20, -32
  store i8 %21, ptr %19, align 1, !tbaa !5
  br label %pred.store.continue23

pred.store.continue23:                            ; preds = %pred.store.if22, %pred.store.continue21
  %22 = extractelement <16 x i1> %7, i64 3
  br i1 %22, label %pred.store.if24, label %pred.store.continue25

pred.store.if24:                                  ; preds = %pred.store.continue23
  %23 = or disjoint i64 %index, 3
  %24 = getelementptr inbounds i8, ptr %0, i64 %23
  %25 = extractelement <16 x i8> %wide.load, i64 3
  %26 = add nsw i8 %25, -32
  store i8 %26, ptr %24, align 1, !tbaa !5
  br label %pred.store.continue25

pred.store.continue25:                            ; preds = %pred.store.if24, %pred.store.continue23
  %27 = extractelement <16 x i1> %7, i64 4
  br i1 %27, label %pred.store.if26, label %pred.store.continue27

pred.store.if26:                                  ; preds = %pred.store.continue25
  %28 = or disjoint i64 %index, 4
  %29 = getelementptr inbounds i8, ptr %0, i64 %28
  %30 = extractelement <16 x i8> %wide.load, i64 4
  %31 = add nsw i8 %30, -32
  store i8 %31, ptr %29, align 1, !tbaa !5
  br label %pred.store.continue27

pred.store.continue27:                            ; preds = %pred.store.if26, %pred.store.continue25
  %32 = extractelement <16 x i1> %7, i64 5
  br i1 %32, label %pred.store.if28, label %pred.store.continue29

pred.store.if28:                                  ; preds = %pred.store.continue27
  %33 = or disjoint i64 %index, 5
  %34 = getelementptr inbounds i8, ptr %0, i64 %33
  %35 = extractelement <16 x i8> %wide.load, i64 5
  %36 = add nsw i8 %35, -32
  store i8 %36, ptr %34, align 1, !tbaa !5
  br label %pred.store.continue29

pred.store.continue29:                            ; preds = %pred.store.if28, %pred.store.continue27
  %37 = extractelement <16 x i1> %7, i64 6
  br i1 %37, label %pred.store.if30, label %pred.store.continue31

pred.store.if30:                                  ; preds = %pred.store.continue29
  %38 = or disjoint i64 %index, 6
  %39 = getelementptr inbounds i8, ptr %0, i64 %38
  %40 = extractelement <16 x i8> %wide.load, i64 6
  %41 = add nsw i8 %40, -32
  store i8 %41, ptr %39, align 1, !tbaa !5
  br label %pred.store.continue31

pred.store.continue31:                            ; preds = %pred.store.if30, %pred.store.continue29
  %42 = extractelement <16 x i1> %7, i64 7
  br i1 %42, label %pred.store.if32, label %pred.store.continue33

pred.store.if32:                                  ; preds = %pred.store.continue31
  %43 = or disjoint i64 %index, 7
  %44 = getelementptr inbounds i8, ptr %0, i64 %43
  %45 = extractelement <16 x i8> %wide.load, i64 7
  %46 = add nsw i8 %45, -32
  store i8 %46, ptr %44, align 1, !tbaa !5
  br label %pred.store.continue33

pred.store.continue33:                            ; preds = %pred.store.if32, %pred.store.continue31
  %47 = extractelement <16 x i1> %7, i64 8
  br i1 %47, label %pred.store.if34, label %pred.store.continue35

pred.store.if34:                                  ; preds = %pred.store.continue33
  %48 = or disjoint i64 %index, 8
  %49 = getelementptr inbounds i8, ptr %0, i64 %48
  %50 = extractelement <16 x i8> %wide.load, i64 8
  %51 = add nsw i8 %50, -32
  store i8 %51, ptr %49, align 1, !tbaa !5
  br label %pred.store.continue35

pred.store.continue35:                            ; preds = %pred.store.if34, %pred.store.continue33
  %52 = extractelement <16 x i1> %7, i64 9
  br i1 %52, label %pred.store.if36, label %pred.store.continue37

pred.store.if36:                                  ; preds = %pred.store.continue35
  %53 = or disjoint i64 %index, 9
  %54 = getelementptr inbounds i8, ptr %0, i64 %53
  %55 = extractelement <16 x i8> %wide.load, i64 9
  %56 = add nsw i8 %55, -32
  store i8 %56, ptr %54, align 1, !tbaa !5
  br label %pred.store.continue37

pred.store.continue37:                            ; preds = %pred.store.if36, %pred.store.continue35
  %57 = extractelement <16 x i1> %7, i64 10
  br i1 %57, label %pred.store.if38, label %pred.store.continue39

pred.store.if38:                                  ; preds = %pred.store.continue37
  %58 = or disjoint i64 %index, 10
  %59 = getelementptr inbounds i8, ptr %0, i64 %58
  %60 = extractelement <16 x i8> %wide.load, i64 10
  %61 = add nsw i8 %60, -32
  store i8 %61, ptr %59, align 1, !tbaa !5
  br label %pred.store.continue39

pred.store.continue39:                            ; preds = %pred.store.if38, %pred.store.continue37
  %62 = extractelement <16 x i1> %7, i64 11
  br i1 %62, label %pred.store.if40, label %pred.store.continue41

pred.store.if40:                                  ; preds = %pred.store.continue39
  %63 = or disjoint i64 %index, 11
  %64 = getelementptr inbounds i8, ptr %0, i64 %63
  %65 = extractelement <16 x i8> %wide.load, i64 11
  %66 = add nsw i8 %65, -32
  store i8 %66, ptr %64, align 1, !tbaa !5
  br label %pred.store.continue41

pred.store.continue41:                            ; preds = %pred.store.if40, %pred.store.continue39
  %67 = extractelement <16 x i1> %7, i64 12
  br i1 %67, label %pred.store.if42, label %pred.store.continue43

pred.store.if42:                                  ; preds = %pred.store.continue41
  %68 = or disjoint i64 %index, 12
  %69 = getelementptr inbounds i8, ptr %0, i64 %68
  %70 = extractelement <16 x i8> %wide.load, i64 12
  %71 = add nsw i8 %70, -32
  store i8 %71, ptr %69, align 1, !tbaa !5
  br label %pred.store.continue43

pred.store.continue43:                            ; preds = %pred.store.if42, %pred.store.continue41
  %72 = extractelement <16 x i1> %7, i64 13
  br i1 %72, label %pred.store.if44, label %pred.store.continue45

pred.store.if44:                                  ; preds = %pred.store.continue43
  %73 = or disjoint i64 %index, 13
  %74 = getelementptr inbounds i8, ptr %0, i64 %73
  %75 = extractelement <16 x i8> %wide.load, i64 13
  %76 = add nsw i8 %75, -32
  store i8 %76, ptr %74, align 1, !tbaa !5
  br label %pred.store.continue45

pred.store.continue45:                            ; preds = %pred.store.if44, %pred.store.continue43
  %77 = extractelement <16 x i1> %7, i64 14
  br i1 %77, label %pred.store.if46, label %pred.store.continue47

pred.store.if46:                                  ; preds = %pred.store.continue45
  %78 = or disjoint i64 %index, 14
  %79 = getelementptr inbounds i8, ptr %0, i64 %78
  %80 = extractelement <16 x i8> %wide.load, i64 14
  %81 = add nsw i8 %80, -32
  store i8 %81, ptr %79, align 1, !tbaa !5
  br label %pred.store.continue47

pred.store.continue47:                            ; preds = %pred.store.if46, %pred.store.continue45
  %82 = extractelement <16 x i1> %7, i64 15
  br i1 %82, label %pred.store.if48, label %pred.store.continue49

pred.store.if48:                                  ; preds = %pred.store.continue47
  %83 = or disjoint i64 %index, 15
  %84 = getelementptr inbounds i8, ptr %0, i64 %83
  %85 = extractelement <16 x i8> %wide.load, i64 15
  %86 = add nsw i8 %85, -32
  store i8 %86, ptr %84, align 1, !tbaa !5
  br label %pred.store.continue49

pred.store.continue49:                            ; preds = %pred.store.if48, %pred.store.continue47
  %index.next = add nuw i64 %index, 16
  %87 = icmp eq i64 %index.next, %n.vec
  br i1 %87, label %middle.block, label %vector.body, !llvm.loop !8

middle.block:                                     ; preds = %pred.store.continue49
  %cmp.n = icmp eq i64 %4, %n.vec
  br i1 %cmp.n, label %._crit_edge, label %vec.epilog.iter.check

vec.epilog.iter.check:                            ; preds = %middle.block
  %n.vec.remaining = and i64 %4, 8
  %min.epilog.iters.check.not.not = icmp eq i64 %n.vec.remaining, 0
  br i1 %min.epilog.iters.check.not.not, label %.lr.ph.preheader, label %vec.epilog.ph

.lr.ph.preheader:                                 ; preds = %vec.epilog.middle.block, %iter.check, %vec.epilog.iter.check
  %indvars.iv.ph = phi i64 [ 0, %iter.check ], [ %n.vec, %vec.epilog.iter.check ], [ %n.vec51, %vec.epilog.middle.block ]
  br label %.lr.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.vec51 = and i64 %4, -8
  br label %vec.epilog.vector.body

vec.epilog.vector.body:                           ; preds = %pred.store.continue69, %vec.epilog.ph
  %index52 = phi i64 [ %vec.epilog.resume.val, %vec.epilog.ph ], [ %index.next70, %pred.store.continue69 ]
  %88 = getelementptr inbounds i8, ptr %0, i64 %index52
  %wide.load53 = load <8 x i8>, ptr %88, align 1, !tbaa !5
  %89 = add <8 x i8> %wide.load53, <i8 -97, i8 -97, i8 -97, i8 -97, i8 -97, i8 -97, i8 -97, i8 -97>
  %90 = icmp ult <8 x i8> %89, <i8 26, i8 26, i8 26, i8 26, i8 26, i8 26, i8 26, i8 26>
  %91 = extractelement <8 x i1> %90, i64 0
  br i1 %91, label %pred.store.if54, label %pred.store.continue55

pred.store.if54:                                  ; preds = %vec.epilog.vector.body
  %92 = getelementptr inbounds i8, ptr %0, i64 %index52
  %93 = extractelement <8 x i8> %wide.load53, i64 0
  %94 = add nsw i8 %93, -32
  store i8 %94, ptr %92, align 1, !tbaa !5
  br label %pred.store.continue55

pred.store.continue55:                            ; preds = %pred.store.if54, %vec.epilog.vector.body
  %95 = extractelement <8 x i1> %90, i64 1
  br i1 %95, label %pred.store.if56, label %pred.store.continue57

pred.store.if56:                                  ; preds = %pred.store.continue55
  %96 = or disjoint i64 %index52, 1
  %97 = getelementptr inbounds i8, ptr %0, i64 %96
  %98 = extractelement <8 x i8> %wide.load53, i64 1
  %99 = add nsw i8 %98, -32
  store i8 %99, ptr %97, align 1, !tbaa !5
  br label %pred.store.continue57

pred.store.continue57:                            ; preds = %pred.store.if56, %pred.store.continue55
  %100 = extractelement <8 x i1> %90, i64 2
  br i1 %100, label %pred.store.if58, label %pred.store.continue59

pred.store.if58:                                  ; preds = %pred.store.continue57
  %101 = or disjoint i64 %index52, 2
  %102 = getelementptr inbounds i8, ptr %0, i64 %101
  %103 = extractelement <8 x i8> %wide.load53, i64 2
  %104 = add nsw i8 %103, -32
  store i8 %104, ptr %102, align 1, !tbaa !5
  br label %pred.store.continue59

pred.store.continue59:                            ; preds = %pred.store.if58, %pred.store.continue57
  %105 = extractelement <8 x i1> %90, i64 3
  br i1 %105, label %pred.store.if60, label %pred.store.continue61

pred.store.if60:                                  ; preds = %pred.store.continue59
  %106 = or disjoint i64 %index52, 3
  %107 = getelementptr inbounds i8, ptr %0, i64 %106
  %108 = extractelement <8 x i8> %wide.load53, i64 3
  %109 = add nsw i8 %108, -32
  store i8 %109, ptr %107, align 1, !tbaa !5
  br label %pred.store.continue61

pred.store.continue61:                            ; preds = %pred.store.if60, %pred.store.continue59
  %110 = extractelement <8 x i1> %90, i64 4
  br i1 %110, label %pred.store.if62, label %pred.store.continue63

pred.store.if62:                                  ; preds = %pred.store.continue61
  %111 = or disjoint i64 %index52, 4
  %112 = getelementptr inbounds i8, ptr %0, i64 %111
  %113 = extractelement <8 x i8> %wide.load53, i64 4
  %114 = add nsw i8 %113, -32
  store i8 %114, ptr %112, align 1, !tbaa !5
  br label %pred.store.continue63

pred.store.continue63:                            ; preds = %pred.store.if62, %pred.store.continue61
  %115 = extractelement <8 x i1> %90, i64 5
  br i1 %115, label %pred.store.if64, label %pred.store.continue65

pred.store.if64:                                  ; preds = %pred.store.continue63
  %116 = or disjoint i64 %index52, 5
  %117 = getelementptr inbounds i8, ptr %0, i64 %116
  %118 = extractelement <8 x i8> %wide.load53, i64 5
  %119 = add nsw i8 %118, -32
  store i8 %119, ptr %117, align 1, !tbaa !5
  br label %pred.store.continue65

pred.store.continue65:                            ; preds = %pred.store.if64, %pred.store.continue63
  %120 = extractelement <8 x i1> %90, i64 6
  br i1 %120, label %pred.store.if66, label %pred.store.continue67

pred.store.if66:                                  ; preds = %pred.store.continue65
  %121 = or disjoint i64 %index52, 6
  %122 = getelementptr inbounds i8, ptr %0, i64 %121
  %123 = extractelement <8 x i8> %wide.load53, i64 6
  %124 = add nsw i8 %123, -32
  store i8 %124, ptr %122, align 1, !tbaa !5
  br label %pred.store.continue67

pred.store.continue67:                            ; preds = %pred.store.if66, %pred.store.continue65
  %125 = extractelement <8 x i1> %90, i64 7
  br i1 %125, label %pred.store.if68, label %pred.store.continue69

pred.store.if68:                                  ; preds = %pred.store.continue67
  %126 = or disjoint i64 %index52, 7
  %127 = getelementptr inbounds i8, ptr %0, i64 %126
  %128 = extractelement <8 x i8> %wide.load53, i64 7
  %129 = add nsw i8 %128, -32
  store i8 %129, ptr %127, align 1, !tbaa !5
  br label %pred.store.continue69

pred.store.continue69:                            ; preds = %pred.store.if68, %pred.store.continue67
  %index.next70 = add nuw i64 %index52, 8
  %130 = icmp eq i64 %index.next70, %n.vec51
  br i1 %130, label %vec.epilog.middle.block, label %vec.epilog.vector.body, !llvm.loop !12

vec.epilog.middle.block:                          ; preds = %pred.store.continue69
  %cmp.n71 = icmp eq i64 %4, %n.vec51
  br i1 %cmp.n71, label %._crit_edge, label %.lr.ph.preheader

._crit_edge:                                      ; preds = %135, %middle.block, %vec.epilog.middle.block, %3
  ret ptr %0

.lr.ph:                                           ; preds = %.lr.ph.preheader, %135
  %indvars.iv = phi i64 [ %indvars.iv.next, %135 ], [ %indvars.iv.ph, %.lr.ph.preheader ]
  %131 = getelementptr inbounds i8, ptr %0, i64 %indvars.iv
  %132 = load i8, ptr %131, align 1, !tbaa !5
  %133 = add i8 %132, -97
  %or.cond = icmp ult i8 %133, 26
  br i1 %or.cond, label %134, label %135

134:                                              ; preds = %.lr.ph
  %narrow = add nsw i8 %132, -32
  store i8 %narrow, ptr %131, align 1, !tbaa !5
  br label %135

135:                                              ; preds = %.lr.ph, %134
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %4
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !13
}

attributes #0 = { noreturn nounwind "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 nofree nounwind willreturn memory(argmem: read) "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 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 = { noreturn nounwind }
attributes #4 = { nounwind willreturn memory(read) }

!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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = distinct !{!8, !9, !10, !11}
!9 = !{!"llvm.loop.mustprogress"}
!10 = !{!"llvm.loop.isvectorized", i32 1}
!11 = !{!"llvm.loop.unroll.runtime.disable"}
!12 = distinct !{!12, !9, !10, !11}
!13 = distinct !{!13, !9, !11, !10}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass