; LLVM IR from caryll/otfcc :: lib/support/base64 (base64)

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

@base64_table = external hidden constant [64 x i8], align 16

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

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #1

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

; Function Attrs: nounwind uwtable
define dso_local ptr @base64_decode(ptr noundef %0, i64 noundef %1, ptr noundef %2) #2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca ptr, align 8
  %8 = alloca [256 x i8], align 16
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca [4 x i8], align 1
  %12 = alloca [4 x i8], align 1
  %13 = alloca i8, align 1
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i64 %1, ptr %6, align 8, !tbaa !9
  store ptr %2, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 256, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %17 = getelementptr inbounds [256 x i8], ptr %8, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 16 %17, i8 -128, i64 256, i1 false)
  store i64 0, ptr %14, align 8, !tbaa !9
  br label %18

18:                                               ; preds = %29, %3
  %19 = load i64, ptr %14, align 8, !tbaa !9
  %20 = icmp ult i64 %19, 64
  br i1 %20, label %21, label %32

21:                                               ; preds = %18
  %22 = load i64, ptr %14, align 8, !tbaa !9
  %23 = trunc i64 %22 to i8
  %24 = load i64, ptr %14, align 8, !tbaa !9
  %25 = getelementptr inbounds [64 x i8], ptr @base64_table, i64 0, i64 %24
  %26 = load i8, ptr %25, align 1, !tbaa !11
  %27 = zext i8 %26 to i64
  %28 = getelementptr inbounds [256 x i8], ptr %8, i64 0, i64 %27
  store i8 %23, ptr %28, align 1, !tbaa !11
  br label %29

29:                                               ; preds = %21
  %30 = load i64, ptr %14, align 8, !tbaa !9
  %31 = add i64 %30, 1
  store i64 %31, ptr %14, align 8, !tbaa !9
  br label %18, !llvm.loop !12

32:                                               ; preds = %18
  %33 = getelementptr inbounds [256 x i8], ptr %8, i64 0, i64 61
  store i8 0, ptr %33, align 1, !tbaa !11
  store i64 0, ptr %15, align 8, !tbaa !9
  store i64 0, ptr %14, align 8, !tbaa !9
  br label %34

34:                                               ; preds = %52, %32
  %35 = load i64, ptr %14, align 8, !tbaa !9
  %36 = load i64, ptr %6, align 8, !tbaa !9
  %37 = icmp ult i64 %35, %36
  br i1 %37, label %38, label %55

38:                                               ; preds = %34
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  %40 = load i64, ptr %14, align 8, !tbaa !9
  %41 = getelementptr inbounds i8, ptr %39, i64 %40
  %42 = load i8, ptr %41, align 1, !tbaa !11
  %43 = zext i8 %42 to i64
  %44 = getelementptr inbounds [256 x i8], ptr %8, i64 0, i64 %43
  %45 = load i8, ptr %44, align 1, !tbaa !11
  %46 = zext i8 %45 to i32
  %47 = icmp ne i32 %46, 128
  br i1 %47, label %48, label %51

48:                                               ; preds = %38
  %49 = load i64, ptr %15, align 8, !tbaa !9
  %50 = add i64 %49, 1
  store i64 %50, ptr %15, align 8, !tbaa !9
  br label %51

51:                                               ; preds = %48, %38
  br label %52

52:                                               ; preds = %51
  %53 = load i64, ptr %14, align 8, !tbaa !9
  %54 = add i64 %53, 1
  store i64 %54, ptr %14, align 8, !tbaa !9
  br label %34, !llvm.loop !14

55:                                               ; preds = %34
  %56 = load i64, ptr %15, align 8, !tbaa !9
  %57 = urem i64 %56, 4
  %58 = icmp ne i64 %57, 0
  br i1 %58, label %59, label %60

59:                                               ; preds = %55
  store ptr null, ptr %4, align 8
  store i32 1, ptr %16, align 4
  br label %168

60:                                               ; preds = %55
  %61 = load i64, ptr %15, align 8, !tbaa !9
  %62 = mul i64 1, %61
  %63 = call noalias ptr @malloc(i64 noundef %62) #5
  store ptr %63, ptr %9, align 8, !tbaa !5
  store ptr %63, ptr %10, align 8, !tbaa !5
  %64 = load ptr, ptr %9, align 8, !tbaa !5
  %65 = icmp eq ptr %64, null
  br i1 %65, label %66, label %67

66:                                               ; preds = %60
  store ptr null, ptr %4, align 8
  store i32 1, ptr %16, align 4
  br label %168

67:                                               ; preds = %60
  store i64 0, ptr %15, align 8, !tbaa !9
  store i64 0, ptr %14, align 8, !tbaa !9
  br label %68

68:                                               ; preds = %135, %67
  %69 = load i64, ptr %14, align 8, !tbaa !9
  %70 = load i64, ptr %6, align 8, !tbaa !9
  %71 = icmp ult i64 %69, %70
  br i1 %71, label %72, label %138

72:                                               ; preds = %68
  %73 = load ptr, ptr %5, align 8, !tbaa !5
  %74 = load i64, ptr %14, align 8, !tbaa !9
  %75 = getelementptr inbounds i8, ptr %73, i64 %74
  %76 = load i8, ptr %75, align 1, !tbaa !11
  %77 = zext i8 %76 to i64
  %78 = getelementptr inbounds [256 x i8], ptr %8, i64 0, i64 %77
  %79 = load i8, ptr %78, align 1, !tbaa !11
  store i8 %79, ptr %13, align 1, !tbaa !11
  %80 = load i8, ptr %13, align 1, !tbaa !11
  %81 = zext i8 %80 to i32
  %82 = icmp eq i32 %81, 128
  br i1 %82, label %83, label %84

83:                                               ; preds = %72
  br label %135

84:                                               ; preds = %72
  %85 = load ptr, ptr %5, align 8, !tbaa !5
  %86 = load i64, ptr %14, align 8, !tbaa !9
  %87 = getelementptr inbounds i8, ptr %85, i64 %86
  %88 = load i8, ptr %87, align 1, !tbaa !11
  %89 = load i64, ptr %15, align 8, !tbaa !9
  %90 = getelementptr inbounds [4 x i8], ptr %11, i64 0, i64 %89
  store i8 %88, ptr %90, align 1, !tbaa !11
  %91 = load i8, ptr %13, align 1, !tbaa !11
  %92 = load i64, ptr %15, align 8, !tbaa !9
  %93 = getelementptr inbounds [4 x i8], ptr %12, i64 0, i64 %92
  store i8 %91, ptr %93, align 1, !tbaa !11
  %94 = load i64, ptr %15, align 8, !tbaa !9
  %95 = add i64 %94, 1
  store i64 %95, ptr %15, align 8, !tbaa !9
  %96 = load i64, ptr %15, align 8, !tbaa !9
  %97 = icmp eq i64 %96, 4
  br i1 %97, label %98, label %134

98:                                               ; preds = %84
  %99 = getelementptr inbounds [4 x i8], ptr %12, i64 0, i64 0
  %100 = load i8, ptr %99, align 1, !tbaa !11
  %101 = zext i8 %100 to i32
  %102 = shl i32 %101, 2
  %103 = getelementptr inbounds [4 x i8], ptr %12, i64 0, i64 1
  %104 = load i8, ptr %103, align 1, !tbaa !11
  %105 = zext i8 %104 to i32
  %106 = ashr i32 %105, 4
  %107 = or i32 %102, %106
  %108 = trunc i32 %107 to i8
  %109 = load ptr, ptr %10, align 8, !tbaa !5
  %110 = getelementptr inbounds i8, ptr %109, i32 1
  store ptr %110, ptr %10, align 8, !tbaa !5
  store i8 %108, ptr %109, align 1, !tbaa !11
  %111 = getelementptr inbounds [4 x i8], ptr %12, i64 0, i64 1
  %112 = load i8, ptr %111, align 1, !tbaa !11
  %113 = zext i8 %112 to i32
  %114 = shl i32 %113, 4
  %115 = getelementptr inbounds [4 x i8], ptr %12, i64 0, i64 2
  %116 = load i8, ptr %115, align 1, !tbaa !11
  %117 = zext i8 %116 to i32
  %118 = ashr i32 %117, 2
  %119 = or i32 %114, %118
  %120 = trunc i32 %119 to i8
  %121 = load ptr, ptr %10, align 8, !tbaa !5
  %122 = getelementptr inbounds i8, ptr %121, i32 1
  store ptr %122, ptr %10, align 8, !tbaa !5
  store i8 %120, ptr %121, align 1, !tbaa !11
  %123 = getelementptr inbounds [4 x i8], ptr %12, i64 0, i64 2
  %124 = load i8, ptr %123, align 1, !tbaa !11
  %125 = zext i8 %124 to i32
  %126 = shl i32 %125, 6
  %127 = getelementptr inbounds [4 x i8], ptr %12, i64 0, i64 3
  %128 = load i8, ptr %127, align 1, !tbaa !11
  %129 = zext i8 %128 to i32
  %130 = or i32 %126, %129
  %131 = trunc i32 %130 to i8
  %132 = load ptr, ptr %10, align 8, !tbaa !5
  %133 = getelementptr inbounds i8, ptr %132, i32 1
  store ptr %133, ptr %10, align 8, !tbaa !5
  store i8 %131, ptr %132, align 1, !tbaa !11
  store i64 0, ptr %15, align 8, !tbaa !9
  br label %134

134:                                              ; preds = %98, %84
  br label %135

135:                                              ; preds = %134, %83
  %136 = load i64, ptr %14, align 8, !tbaa !9
  %137 = add i64 %136, 1
  store i64 %137, ptr %14, align 8, !tbaa !9
  br label %68, !llvm.loop !15

138:                                              ; preds = %68
  %139 = load ptr, ptr %10, align 8, !tbaa !5
  %140 = load ptr, ptr %9, align 8, !tbaa !5
  %141 = icmp ugt ptr %139, %140
  br i1 %141, label %142, label %160

142:                                              ; preds = %138
  %143 = getelementptr inbounds [4 x i8], ptr %11, i64 0, i64 2
  %144 = load i8, ptr %143, align 1, !tbaa !11
  %145 = zext i8 %144 to i32
  %146 = icmp eq i32 %145, 61
  br i1 %146, label %147, label %150

147:                                              ; preds = %142
  %148 = load ptr, ptr %10, align 8, !tbaa !5
  %149 = getelementptr inbounds i8, ptr %148, i64 -2
  store ptr %149, ptr %10, align 8, !tbaa !5
  br label %159

150:                                              ; preds = %142
  %151 = getelementptr inbounds [4 x i8], ptr %11, i64 0, i64 3
  %152 = load i8, ptr %151, align 1, !tbaa !11
  %153 = zext i8 %152 to i32
  %154 = icmp eq i32 %153, 61
  br i1 %154, label %155, label %158

155:                                              ; preds = %150
  %156 = load ptr, ptr %10, align 8, !tbaa !5
  %157 = getelementptr inbounds i8, ptr %156, i32 -1
  store ptr %157, ptr %10, align 8, !tbaa !5
  br label %158

158:                                              ; preds = %155, %150
  br label %159

159:                                              ; preds = %158, %147
  br label %160

160:                                              ; preds = %159, %138
  %161 = load ptr, ptr %10, align 8, !tbaa !5
  %162 = load ptr, ptr %9, align 8, !tbaa !5
  %163 = ptrtoint ptr %161 to i64
  %164 = ptrtoint ptr %162 to i64
  %165 = sub i64 %163, %164
  %166 = load ptr, ptr %7, align 8, !tbaa !5
  store i64 %165, ptr %166, align 8, !tbaa !9
  %167 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %167, ptr %4, align 8
  store i32 1, ptr %16, align 4
  br label %168

168:                                              ; preds = %160, %66, %59
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 256, ptr %8) #4
  %169 = load ptr, ptr %4, align 8
  ret ptr %169
}

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

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

!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 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !13}


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

@base64_table = external hidden local_unnamed_addr constant [64 x i8], align 16

; 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 nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #1

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

; Function Attrs: nofree nounwind memory(write, argmem: readwrite, inaccessiblemem: readwrite) uwtable
define dso_local noundef ptr @base64_decode(ptr nocapture noundef readonly %0, i64 noundef %1, ptr nocapture noundef writeonly %2) local_unnamed_addr #2 {
  %4 = alloca [256 x i8], align 16
  %5 = alloca [4 x i8], align 1
  %6 = alloca [4 x i8], align 1
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %4) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #4
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(256) %4, i8 -128, i64 256, i1 false)
  %7 = load i8, ptr @base64_table, align 16, !tbaa !5
  %8 = zext i8 %7 to i64
  %9 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 %8
  store i8 0, ptr %9, align 1, !tbaa !5
  %10 = load i8, ptr getelementptr inbounds (i8, ptr @base64_table, i64 1), align 1, !tbaa !5
  %11 = zext i8 %10 to i64
  %12 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 %11
  store i8 1, ptr %12, align 1, !tbaa !5
  %13 = load i8, ptr getelementptr inbounds (i8, ptr @base64_table, i64 2), align 2, !tbaa !5
  %14 = zext i8 %13 to i64
  %15 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 %14
  store i8 2, ptr %15, align 1, !tbaa !5
  %16 = load i8, ptr getelementptr inbounds (i8, ptr @base64_table, i64 3), align 1, !tbaa !5
  %17 = zext i8 %16 to i64
  %18 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 %17
  store i8 3, ptr %18, align 1, !tbaa !5
  %19 = load i8, ptr getelementptr inbounds (i8, ptr @base64_table, i64 4), align 4, !tbaa !5
  %20 = zext i8 %19 to i64
  %21 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 %20
  store i8 4, ptr %21, align 1, !tbaa !5
  %22 = load i8, ptr getelementptr inbounds (i8, ptr @base64_table, i64 5), align 1, !tbaa !5
  %23 = zext i8 %22 to i64
  %24 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 %23
  store i8 5, ptr %24, align 1, !tbaa !5
  %25 = load i8, ptr getelementptr inbounds (i8, ptr @base64_table, i64 6), align 2, !tbaa !5
  %26 = zext i8 %25 to i64
  %27 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 %26
  store i8 6, ptr %27, align 1, !tbaa !5
  %28 = load i8, ptr getelementptr inbounds (i8, ptr @base64_table, i64 7), align 1, !tbaa !5
  %29 = zext i8 %28 to i64
  %30 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 %29
  store i8 7, ptr %30, align 1, !tbaa !5
  %31 = load i8, ptr getelementptr inbounds (i8, ptr @base64_table, i64 8), align 8, !tbaa !5
  %32 = zext i8 %31 to i64
  %33 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 %32
  store i8 8, ptr %33, align 1, !tbaa !5
  %34 = load i8, ptr getelementptr inbounds (i8, ptr @base64_table, i64 9), align 1, !tbaa !5
  %35 = zext i8 %34 to i64
  %36 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 %35
  store i8 9, ptr %36, align 1, !tbaa !5
  %37 = load i8, ptr getelementptr inbounds (i8, ptr @base64_table, i64 10), align 2, !tbaa !5
  %38 = zext i8 %37 to i64
  %39 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 %38
  store i8 10, ptr %39, align 1, !tbaa !5
  %40 = load i8, ptr getelementptr inbounds (i8, ptr @base64_table, i64 11), align 1, !tbaa !5
  %41 = zext i8 %40 to i64
  %42 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 %41
  store i8 11, ptr %42, align 1, !tbaa !5
  %43 = load i8, ptr getelementptr inbounds (i8, ptr @base64_table, i64 12), align 4, !tbaa !5
  %44 = zext i8 %43 to i64
  %45 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 %44
  store i8 12, ptr %45, align 1, !tbaa !5
  %46 = load i8, ptr getelementptr inbounds (i8, ptr @base64_table, i64 13), align 1, !tbaa !5
  %47 = zext i8 %46 to i64
  %48 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 %47
  store i8 13, ptr %48, align 1, !tbaa !5
  %49 = load i8, ptr getelementptr inbounds (i8, ptr @base64_table, i64 14), align 2, !tbaa !5
  %50 = zext i8 %49 to i64
  %51 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 %50
  store i8 14, ptr %51, align 1, !tbaa !5
  %52 = load i8, ptr getelementptr inbounds (i8, ptr @base64_table, i64 15), align 1, !tbaa !5
  %53 = zext i8 %52 to i64
  %54 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 %53
  store i8 15, ptr %54, align 1, !tbaa !5
  %55 = load i8, ptr getelementptr inbounds (i8, ptr @base64_table, i64 16), align 16, !tbaa !5
  %56 = zext i8 %55 to i64
  %57 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 %56
  store i8 16, ptr %57, align 1, !tbaa !5
  %58 = load i8, ptr getelementptr inbounds (i8, ptr @base64_table, i64 17), align 1, !tbaa !5
  %59 = zext i8 %58 to i64
  %60 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 %59
  store i8 17, ptr %60, align 1, !tbaa !5
  %61 = load i8, ptr getelementptr inbounds (i8, ptr @base64_table, i64 18), align 2, !tbaa !5
  %62 = zext i8 %61 to i64
  %63 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 %62
  store i8 18, ptr %63, align 1, !tbaa !5
  %64 = load i8, ptr getelementptr inbounds (i8, ptr @base64_table, i64 19), align 1, !tbaa !5
  %65 = zext i8 %64 to i64
  %66 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 %65
  store i8 19, ptr %66, align 1, !tbaa !5
  %67 = load i8, ptr getelementptr inbounds (i8, ptr @base64_table, i64 20), align 4, !tbaa !5
  %68 = zext i8 %67 to i64
  %69 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 %68
  store i8 20, ptr %69, align 1, !tbaa !5
  %70 = load i8, ptr getelementptr inbounds (i8, ptr @base64_table, i64 21), align 1, !tbaa !5
  %71 = zext i8 %70 to i64
  %72 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 %71
  store i8 21, ptr %72, align 1, !tbaa !5
  %73 = load i8, ptr getelementptr inbounds (i8, ptr @base64_table, i64 22), align 2, !tbaa !5
  %74 = zext i8 %73 to i64
  %75 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 %74
  store i8 22, ptr %75, align 1, !tbaa !5
  %76 = load i8, ptr getelementptr inbounds (i8, ptr @base64_table, i64 23), align 1, !tbaa !5
  %77 = zext i8 %76 to i64
  %78 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 %77
  store i8 23, ptr %78, align 1, !tbaa !5
  %79 = load i8, ptr getelementptr inbounds (i8, ptr @base64_table, i64 24), align 8, !tbaa !5
  %80 = zext i8 %79 to i64
  %81 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 %80
  store i8 24, ptr %81, align 1, !tbaa !5
  %82 = load i8, ptr getelementptr inbounds (i8, ptr @base64_table, i64 25), align 1, !tbaa !5
  %83 = zext i8 %82 to i64
  %84 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 %83
  store i8 25, ptr %84, align 1, !tbaa !5
  %85 = load i8, ptr getelementptr inbounds (i8, ptr @base64_table, i64 26), align 2, !tbaa !5
  %86 = zext i8 %85 to i64
  %87 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 %86
  store i8 26, ptr %87, align 1, !tbaa !5
  %88 = load i8, ptr getelementptr inbounds (i8, ptr @base64_table, i64 27), align 1, !tbaa !5
  %89 = zext i8 %88 to i64
  %90 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 %89
  store i8 27, ptr %90, align 1, !tbaa !5
  %91 = load i8, ptr getelementptr inbounds (i8, ptr @base64_table, i64 28), align 4, !tbaa !5
  %92 = zext i8 %91 to i64
  %93 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 %92
  store i8 28, ptr %93, align 1, !tbaa !5
  %94 = load i8, ptr getelementptr inbounds (i8, ptr @base64_table, i64 29), align 1, !tbaa !5
  %95 = zext i8 %94 to i64
  %96 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 %95
  store i8 29, ptr %96, align 1, !tbaa !5
  %97 = load i8, ptr getelementptr inbounds (i8, ptr @base64_table, i64 30), align 2, !tbaa !5
  %98 = zext i8 %97 to i64
  %99 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 %98
  store i8 30, ptr %99, align 1, !tbaa !5
  %100 = load i8, ptr getelementptr inbounds (i8, ptr @base64_table, i64 31), align 1, !tbaa !5
  %101 = zext i8 %100 to i64
  %102 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 %101
  store i8 31, ptr %102, align 1, !tbaa !5
  %103 = load i8, ptr getelementptr inbounds (i8, ptr @base64_table, i64 32), align 16, !tbaa !5
  %104 = zext i8 %103 to i64
  %105 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 %104
  store i8 32, ptr %105, align 1, !tbaa !5
  %106 = load i8, ptr getelementptr inbounds (i8, ptr @base64_table, i64 33), align 1, !tbaa !5
  %107 = zext i8 %106 to i64
  %108 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 %107
  store i8 33, ptr %108, align 1, !tbaa !5
  %109 = load i8, ptr getelementptr inbounds (i8, ptr @base64_table, i64 34), align 2, !tbaa !5
  %110 = zext i8 %109 to i64
  %111 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 %110
  store i8 34, ptr %111, align 1, !tbaa !5
  %112 = load i8, ptr getelementptr inbounds (i8, ptr @base64_table, i64 35), align 1, !tbaa !5
  %113 = zext i8 %112 to i64
  %114 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 %113
  store i8 35, ptr %114, align 1, !tbaa !5
  %115 = load i8, ptr getelementptr inbounds (i8, ptr @base64_table, i64 36), align 4, !tbaa !5
  %116 = zext i8 %115 to i64
  %117 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 %116
  store i8 36, ptr %117, align 1, !tbaa !5
  %118 = load i8, ptr getelementptr inbounds (i8, ptr @base64_table, i64 37), align 1, !tbaa !5
  %119 = zext i8 %118 to i64
  %120 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 %119
  store i8 37, ptr %120, align 1, !tbaa !5
  %121 = load i8, ptr getelementptr inbounds (i8, ptr @base64_table, i64 38), align 2, !tbaa !5
  %122 = zext i8 %121 to i64
  %123 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 %122
  store i8 38, ptr %123, align 1, !tbaa !5
  %124 = load i8, ptr getelementptr inbounds (i8, ptr @base64_table, i64 39), align 1, !tbaa !5
  %125 = zext i8 %124 to i64
  %126 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 %125
  store i8 39, ptr %126, align 1, !tbaa !5
  %127 = load i8, ptr getelementptr inbounds (i8, ptr @base64_table, i64 40), align 8, !tbaa !5
  %128 = zext i8 %127 to i64
  %129 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 %128
  store i8 40, ptr %129, align 1, !tbaa !5
  %130 = load i8, ptr getelementptr inbounds (i8, ptr @base64_table, i64 41), align 1, !tbaa !5
  %131 = zext i8 %130 to i64
  %132 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 %131
  store i8 41, ptr %132, align 1, !tbaa !5
  %133 = load i8, ptr getelementptr inbounds (i8, ptr @base64_table, i64 42), align 2, !tbaa !5
  %134 = zext i8 %133 to i64
  %135 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 %134
  store i8 42, ptr %135, align 1, !tbaa !5
  %136 = load i8, ptr getelementptr inbounds (i8, ptr @base64_table, i64 43), align 1, !tbaa !5
  %137 = zext i8 %136 to i64
  %138 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 %137
  store i8 43, ptr %138, align 1, !tbaa !5
  %139 = load i8, ptr getelementptr inbounds (i8, ptr @base64_table, i64 44), align 4, !tbaa !5
  %140 = zext i8 %139 to i64
  %141 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 %140
  store i8 44, ptr %141, align 1, !tbaa !5
  %142 = load i8, ptr getelementptr inbounds (i8, ptr @base64_table, i64 45), align 1, !tbaa !5
  %143 = zext i8 %142 to i64
  %144 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 %143
  store i8 45, ptr %144, align 1, !tbaa !5
  %145 = load i8, ptr getelementptr inbounds (i8, ptr @base64_table, i64 46), align 2, !tbaa !5
  %146 = zext i8 %145 to i64
  %147 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 %146
  store i8 46, ptr %147, align 1, !tbaa !5
  %148 = load i8, ptr getelementptr inbounds (i8, ptr @base64_table, i64 47), align 1, !tbaa !5
  %149 = zext i8 %148 to i64
  %150 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 %149
  store i8 47, ptr %150, align 1, !tbaa !5
  %151 = load i8, ptr getelementptr inbounds (i8, ptr @base64_table, i64 48), align 16, !tbaa !5
  %152 = zext i8 %151 to i64
  %153 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 %152
  store i8 48, ptr %153, align 1, !tbaa !5
  %154 = load i8, ptr getelementptr inbounds (i8, ptr @base64_table, i64 49), align 1, !tbaa !5
  %155 = zext i8 %154 to i64
  %156 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 %155
  store i8 49, ptr %156, align 1, !tbaa !5
  %157 = load i8, ptr getelementptr inbounds (i8, ptr @base64_table, i64 50), align 2, !tbaa !5
  %158 = zext i8 %157 to i64
  %159 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 %158
  store i8 50, ptr %159, align 1, !tbaa !5
  %160 = load i8, ptr getelementptr inbounds (i8, ptr @base64_table, i64 51), align 1, !tbaa !5
  %161 = zext i8 %160 to i64
  %162 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 %161
  store i8 51, ptr %162, align 1, !tbaa !5
  %163 = load i8, ptr getelementptr inbounds (i8, ptr @base64_table, i64 52), align 4, !tbaa !5
  %164 = zext i8 %163 to i64
  %165 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 %164
  store i8 52, ptr %165, align 1, !tbaa !5
  %166 = load i8, ptr getelementptr inbounds (i8, ptr @base64_table, i64 53), align 1, !tbaa !5
  %167 = zext i8 %166 to i64
  %168 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 %167
  store i8 53, ptr %168, align 1, !tbaa !5
  %169 = load i8, ptr getelementptr inbounds (i8, ptr @base64_table, i64 54), align 2, !tbaa !5
  %170 = zext i8 %169 to i64
  %171 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 %170
  store i8 54, ptr %171, align 1, !tbaa !5
  %172 = load i8, ptr getelementptr inbounds (i8, ptr @base64_table, i64 55), align 1, !tbaa !5
  %173 = zext i8 %172 to i64
  %174 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 %173
  store i8 55, ptr %174, align 1, !tbaa !5
  %175 = load i8, ptr getelementptr inbounds (i8, ptr @base64_table, i64 56), align 8, !tbaa !5
  %176 = zext i8 %175 to i64
  %177 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 %176
  store i8 56, ptr %177, align 1, !tbaa !5
  %178 = load i8, ptr getelementptr inbounds (i8, ptr @base64_table, i64 57), align 1, !tbaa !5
  %179 = zext i8 %178 to i64
  %180 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 %179
  store i8 57, ptr %180, align 1, !tbaa !5
  %181 = load i8, ptr getelementptr inbounds (i8, ptr @base64_table, i64 58), align 2, !tbaa !5
  %182 = zext i8 %181 to i64
  %183 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 %182
  store i8 58, ptr %183, align 1, !tbaa !5
  %184 = load i8, ptr getelementptr inbounds (i8, ptr @base64_table, i64 59), align 1, !tbaa !5
  %185 = zext i8 %184 to i64
  %186 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 %185
  store i8 59, ptr %186, align 1, !tbaa !5
  %187 = load i8, ptr getelementptr inbounds (i8, ptr @base64_table, i64 60), align 4, !tbaa !5
  %188 = zext i8 %187 to i64
  %189 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 %188
  store i8 60, ptr %189, align 1, !tbaa !5
  %190 = load i8, ptr getelementptr inbounds (i8, ptr @base64_table, i64 61), align 1, !tbaa !5
  %191 = zext i8 %190 to i64
  %192 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 %191
  store i8 61, ptr %192, align 1, !tbaa !5
  %193 = load i8, ptr getelementptr inbounds (i8, ptr @base64_table, i64 62), align 2, !tbaa !5
  %194 = zext i8 %193 to i64
  %195 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 %194
  store i8 62, ptr %195, align 1, !tbaa !5
  %196 = load i8, ptr getelementptr inbounds (i8, ptr @base64_table, i64 63), align 1, !tbaa !5
  %197 = zext i8 %196 to i64
  %198 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 %197
  store i8 63, ptr %198, align 1, !tbaa !5
  %199 = getelementptr inbounds i8, ptr %4, i64 61
  store i8 0, ptr %199, align 1, !tbaa !5
  %.not58 = icmp eq i64 %1, 0
  br i1 %.not58, label %.thread, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %3
  %xtraiter = and i64 %1, 3
  %200 = icmp ult i64 %1, 4
  br i1 %200, label %._crit_edge.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i64 %1, -4
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %.051 = phi i64 [ 0, %.lr.ph.preheader.new ], [ %spec.select.3, %.lr.ph ]
  %.13850 = phi i64 [ 0, %.lr.ph.preheader.new ], [ %228, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.3, %.lr.ph ]
  %201 = getelementptr inbounds i8, ptr %0, i64 %.13850
  %202 = load i8, ptr %201, align 1, !tbaa !5
  %203 = zext i8 %202 to i64
  %204 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 %203
  %205 = load i8, ptr %204, align 1, !tbaa !5
  %.not47 = icmp ne i8 %205, -128
  %206 = zext i1 %.not47 to i64
  %spec.select = add i64 %.051, %206
  %207 = or disjoint i64 %.13850, 1
  %208 = getelementptr inbounds i8, ptr %0, i64 %207
  %209 = load i8, ptr %208, align 1, !tbaa !5
  %210 = zext i8 %209 to i64
  %211 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 %210
  %212 = load i8, ptr %211, align 1, !tbaa !5
  %.not47.1 = icmp ne i8 %212, -128
  %213 = zext i1 %.not47.1 to i64
  %spec.select.1 = add i64 %spec.select, %213
  %214 = or disjoint i64 %.13850, 2
  %215 = getelementptr inbounds i8, ptr %0, i64 %214
  %216 = load i8, ptr %215, align 1, !tbaa !5
  %217 = zext i8 %216 to i64
  %218 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 %217
  %219 = load i8, ptr %218, align 1, !tbaa !5
  %.not47.2 = icmp ne i8 %219, -128
  %220 = zext i1 %.not47.2 to i64
  %spec.select.2 = add i64 %spec.select.1, %220
  %221 = or disjoint i64 %.13850, 3
  %222 = getelementptr inbounds i8, ptr %0, i64 %221
  %223 = load i8, ptr %222, align 1, !tbaa !5
  %224 = zext i8 %223 to i64
  %225 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 %224
  %226 = load i8, ptr %225, align 1, !tbaa !5
  %.not47.3 = icmp ne i8 %226, -128
  %227 = zext i1 %.not47.3 to i64
  %spec.select.3 = add i64 %spec.select.2, %227
  %228 = add nuw i64 %.13850, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge.unr-lcssa, label %.lr.ph, !llvm.loop !8

._crit_edge.unr-lcssa:                            ; preds = %.lr.ph, %.lr.ph.preheader
  %spec.select.lcssa.ph = phi i64 [ poison, %.lr.ph.preheader ], [ %spec.select.3, %.lr.ph ]
  %.051.unr = phi i64 [ 0, %.lr.ph.preheader ], [ %spec.select.3, %.lr.ph ]
  %.13850.unr = phi i64 [ 0, %.lr.ph.preheader ], [ %228, %.lr.ph ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %._crit_edge.unr-lcssa, %.lr.ph.epil
  %.051.epil = phi i64 [ %spec.select.epil, %.lr.ph.epil ], [ %.051.unr, %._crit_edge.unr-lcssa ]
  %.13850.epil = phi i64 [ %235, %.lr.ph.epil ], [ %.13850.unr, %._crit_edge.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph.epil ], [ 0, %._crit_edge.unr-lcssa ]
  %229 = getelementptr inbounds i8, ptr %0, i64 %.13850.epil
  %230 = load i8, ptr %229, align 1, !tbaa !5
  %231 = zext i8 %230 to i64
  %232 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 %231
  %233 = load i8, ptr %232, align 1, !tbaa !5
  %.not47.epil = icmp ne i8 %233, -128
  %234 = zext i1 %.not47.epil to i64
  %spec.select.epil = add i64 %.051.epil, %234
  %235 = add nuw i64 %.13850.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge, label %.lr.ph.epil, !llvm.loop !10

._crit_edge:                                      ; preds = %.lr.ph.epil, %._crit_edge.unr-lcssa
  %spec.select.lcssa = phi i64 [ %spec.select.lcssa.ph, %._crit_edge.unr-lcssa ], [ %spec.select.epil, %.lr.ph.epil ]
  %236 = and i64 %spec.select.lcssa, 3
  %.not = icmp eq i64 %236, 0
  br i1 %.not, label %237, label %292

237:                                              ; preds = %._crit_edge
  %238 = tail call noalias ptr @malloc(i64 noundef %spec.select.lcssa) #5
  %239 = icmp eq ptr %238, null
  br i1 %239, label %292, label %.lr.ph55

.thread:                                          ; preds = %3
  %240 = tail call noalias ptr @malloc(i64 noundef 0) #5
  %241 = icmp eq ptr %240, null
  br i1 %241, label %292, label %._crit_edge56.thread

.lr.ph55:                                         ; preds = %237
  %242 = getelementptr inbounds i8, ptr %6, i64 1
  %243 = getelementptr inbounds i8, ptr %6, i64 2
  %244 = getelementptr inbounds i8, ptr %6, i64 3
  br label %245

245:                                              ; preds = %.lr.ph55, %275
  %.254 = phi i64 [ 0, %.lr.ph55 ], [ %.3, %275 ]
  %.23953 = phi i64 [ 0, %.lr.ph55 ], [ %276, %275 ]
  %.04152 = phi ptr [ %238, %.lr.ph55 ], [ %.142, %275 ]
  %246 = getelementptr inbounds i8, ptr %0, i64 %.23953
  %247 = load i8, ptr %246, align 1, !tbaa !5
  %248 = zext i8 %247 to i64
  %249 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 %248
  %250 = load i8, ptr %249, align 1, !tbaa !5
  %251 = icmp eq i8 %250, -128
  br i1 %251, label %275, label %252

252:                                              ; preds = %245
  %253 = getelementptr inbounds [4 x i8], ptr %5, i64 0, i64 %.254
  store i8 %247, ptr %253, align 1, !tbaa !5
  %254 = getelementptr inbounds [4 x i8], ptr %6, i64 0, i64 %.254
  store i8 %250, ptr %254, align 1, !tbaa !5
  %255 = add i64 %.254, 1
  %256 = icmp eq i64 %255, 4
  br i1 %256, label %257, label %275

257:                                              ; preds = %252
  %258 = load i8, ptr %6, align 1, !tbaa !5
  %259 = shl i8 %258, 2
  %260 = load i8, ptr %242, align 1, !tbaa !5
  %261 = lshr i8 %260, 4
  %262 = or i8 %261, %259
  %263 = getelementptr inbounds i8, ptr %.04152, i64 1
  store i8 %262, ptr %.04152, align 1, !tbaa !5
  %264 = load i8, ptr %242, align 1, !tbaa !5
  %265 = shl i8 %264, 4
  %266 = load i8, ptr %243, align 1, !tbaa !5
  %267 = lshr i8 %266, 2
  %268 = or i8 %267, %265
  %269 = getelementptr inbounds i8, ptr %.04152, i64 2
  store i8 %268, ptr %263, align 1, !tbaa !5
  %270 = load i8, ptr %243, align 1, !tbaa !5
  %271 = shl i8 %270, 6
  %272 = load i8, ptr %244, align 1, !tbaa !5
  %273 = or i8 %271, %272
  %274 = getelementptr inbounds i8, ptr %.04152, i64 3
  store i8 %273, ptr %269, align 1, !tbaa !5
  br label %275

275:                                              ; preds = %252, %257, %245
  %.142 = phi ptr [ %.04152, %245 ], [ %274, %257 ], [ %.04152, %252 ]
  %.3 = phi i64 [ %.254, %245 ], [ 0, %257 ], [ %255, %252 ]
  %276 = add nuw i64 %.23953, 1
  %exitcond60.not = icmp eq i64 %276, %1
  br i1 %exitcond60.not, label %._crit_edge56, label %245, !llvm.loop !12

._crit_edge56:                                    ; preds = %275
  %277 = icmp ugt ptr %.142, %238
  br i1 %277, label %278, label %._crit_edge56.thread

278:                                              ; preds = %._crit_edge56
  %279 = getelementptr inbounds i8, ptr %5, i64 2
  %280 = load i8, ptr %279, align 1, !tbaa !5
  %281 = icmp eq i8 %280, 61
  br i1 %281, label %282, label %284

282:                                              ; preds = %278
  %283 = getelementptr inbounds i8, ptr %.142, i64 -2
  br label %._crit_edge56.thread

284:                                              ; preds = %278
  %285 = getelementptr inbounds i8, ptr %5, i64 3
  %286 = load i8, ptr %285, align 1, !tbaa !5
  %287 = icmp eq i8 %286, 61
  %spec.select48.idx = sext i1 %287 to i64
  %spec.select48 = getelementptr inbounds i8, ptr %.142, i64 %spec.select48.idx
  br label %._crit_edge56.thread

._crit_edge56.thread:                             ; preds = %.thread, %284, %282, %._crit_edge56
  %288 = phi ptr [ %238, %282 ], [ %238, %._crit_edge56 ], [ %238, %284 ], [ %240, %.thread ]
  %.243 = phi ptr [ %283, %282 ], [ %.142, %._crit_edge56 ], [ %spec.select48, %284 ], [ %240, %.thread ]
  %289 = ptrtoint ptr %.243 to i64
  %290 = ptrtoint ptr %288 to i64
  %291 = sub i64 %289, %290
  store i64 %291, ptr %2, align 8, !tbaa !13
  br label %292

292:                                              ; preds = %.thread, %237, %._crit_edge, %._crit_edge56.thread
  %.040 = phi ptr [ %288, %._crit_edge56.thread ], [ null, %._crit_edge ], [ null, %237 ], [ null, %.thread ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %4) #4
  ret ptr %.040
}

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { nofree nounwind memory(write, argmem: readwrite, inaccessiblemem: readwrite) 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { nounwind }
attributes #5 = { nounwind allocsize(0) }

!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}
!9 = !{!"llvm.loop.mustprogress"}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.unroll.disable"}
!12 = distinct !{!12, !9}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !6, i64 0}


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