; LLVM IR from Overload-Technologies/Overload :: Dependencies/assimp/code/Common (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"

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6Assimp6Base646EncodeEPKhmRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef %0, i64 noundef %1, ptr noundef nonnull align 8 dereferenceable(32) %2) #0 {
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i8, align 1
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i64 %1, ptr %5, align 8, !tbaa !9
  store ptr %2, ptr %6, align 8, !tbaa !5
  %11 = load ptr, ptr %4, align 8, !tbaa !5
  %12 = icmp eq ptr %11, null
  br i1 %12, label %16, label %13

13:                                               ; preds = %3
  %14 = load i64, ptr %5, align 8, !tbaa !9
  %15 = icmp eq i64 %14, 0
  br i1 %15, label %16, label %18

16:                                               ; preds = %13, %3
  %17 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5clearEv(ptr noundef nonnull align 8 dereferenceable(32) %17) #4
  br label %158

18:                                               ; preds = %13
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %19 = load i64, ptr %5, align 8, !tbaa !9
  %20 = add i64 %19, 2
  %21 = udiv i64 %20, 3
  %22 = mul i64 %21, 4
  store i64 %22, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %23 = load ptr, ptr %6, align 8, !tbaa !5
  %24 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %23) #4
  store i64 %24, ptr %8, align 8, !tbaa !9
  %25 = load ptr, ptr %6, align 8, !tbaa !5
  %26 = load i64, ptr %8, align 8, !tbaa !9
  %27 = load i64, ptr %7, align 8, !tbaa !9
  %28 = add i64 %26, %27
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(32) %25, i64 noundef %28)
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  store i64 0, ptr %9, align 8, !tbaa !9
  br label %29

29:                                               ; preds = %154, %18
  %30 = load i64, ptr %9, align 8, !tbaa !9
  %31 = load i64, ptr %5, align 8, !tbaa !9
  %32 = icmp ult i64 %30, %31
  br i1 %32, label %34, label %33

33:                                               ; preds = %29
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  br label %157

34:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #4
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  %36 = load i64, ptr %9, align 8, !tbaa !9
  %37 = getelementptr inbounds i8, ptr %35, i64 %36
  %38 = load i8, ptr %37, align 1, !tbaa !11
  %39 = zext i8 %38 to i32
  %40 = and i32 %39, 252
  %41 = ashr i32 %40, 2
  %42 = trunc i32 %41 to i8
  store i8 %42, ptr %10, align 1, !tbaa !11
  %43 = load i8, ptr %10, align 1, !tbaa !11
  %44 = call noundef signext i8 @_ZN6Assimp6Base64L10EncodeCharEh(i8 noundef zeroext %43)
  %45 = load ptr, ptr %6, align 8, !tbaa !5
  %46 = load i64, ptr %8, align 8, !tbaa !9
  %47 = add i64 %46, 1
  store i64 %47, ptr %8, align 8, !tbaa !9
  %48 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %45, i64 noundef %46)
  store i8 %44, ptr %48, align 1, !tbaa !11
  %49 = load ptr, ptr %4, align 8, !tbaa !5
  %50 = load i64, ptr %9, align 8, !tbaa !9
  %51 = getelementptr inbounds i8, ptr %49, i64 %50
  %52 = load i8, ptr %51, align 1, !tbaa !11
  %53 = zext i8 %52 to i32
  %54 = and i32 %53, 3
  %55 = shl i32 %54, 4
  %56 = trunc i32 %55 to i8
  store i8 %56, ptr %10, align 1, !tbaa !11
  %57 = load i64, ptr %9, align 8, !tbaa !9
  %58 = add i64 %57, 1
  %59 = load i64, ptr %5, align 8, !tbaa !9
  %60 = icmp ult i64 %58, %59
  br i1 %60, label %61, label %138

61:                                               ; preds = %34
  %62 = load ptr, ptr %4, align 8, !tbaa !5
  %63 = load i64, ptr %9, align 8, !tbaa !9
  %64 = add i64 %63, 1
  %65 = getelementptr inbounds i8, ptr %62, i64 %64
  %66 = load i8, ptr %65, align 1, !tbaa !11
  %67 = zext i8 %66 to i32
  %68 = and i32 %67, 240
  %69 = ashr i32 %68, 4
  %70 = load i8, ptr %10, align 1, !tbaa !11
  %71 = zext i8 %70 to i32
  %72 = or i32 %71, %69
  %73 = trunc i32 %72 to i8
  store i8 %73, ptr %10, align 1, !tbaa !11
  %74 = load i8, ptr %10, align 1, !tbaa !11
  %75 = call noundef signext i8 @_ZN6Assimp6Base64L10EncodeCharEh(i8 noundef zeroext %74)
  %76 = load ptr, ptr %6, align 8, !tbaa !5
  %77 = load i64, ptr %8, align 8, !tbaa !9
  %78 = add i64 %77, 1
  store i64 %78, ptr %8, align 8, !tbaa !9
  %79 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %76, i64 noundef %77)
  store i8 %75, ptr %79, align 1, !tbaa !11
  %80 = load ptr, ptr %4, align 8, !tbaa !5
  %81 = load i64, ptr %9, align 8, !tbaa !9
  %82 = add i64 %81, 1
  %83 = getelementptr inbounds i8, ptr %80, i64 %82
  %84 = load i8, ptr %83, align 1, !tbaa !11
  %85 = zext i8 %84 to i32
  %86 = and i32 %85, 15
  %87 = shl i32 %86, 2
  %88 = trunc i32 %87 to i8
  store i8 %88, ptr %10, align 1, !tbaa !11
  %89 = load i64, ptr %9, align 8, !tbaa !9
  %90 = add i64 %89, 2
  %91 = load i64, ptr %5, align 8, !tbaa !9
  %92 = icmp ult i64 %90, %91
  br i1 %92, label %93, label %126

93:                                               ; preds = %61
  %94 = load ptr, ptr %4, align 8, !tbaa !5
  %95 = load i64, ptr %9, align 8, !tbaa !9
  %96 = add i64 %95, 2
  %97 = getelementptr inbounds i8, ptr %94, i64 %96
  %98 = load i8, ptr %97, align 1, !tbaa !11
  %99 = zext i8 %98 to i32
  %100 = and i32 %99, 192
  %101 = ashr i32 %100, 6
  %102 = load i8, ptr %10, align 1, !tbaa !11
  %103 = zext i8 %102 to i32
  %104 = or i32 %103, %101
  %105 = trunc i32 %104 to i8
  store i8 %105, ptr %10, align 1, !tbaa !11
  %106 = load i8, ptr %10, align 1, !tbaa !11
  %107 = call noundef signext i8 @_ZN6Assimp6Base64L10EncodeCharEh(i8 noundef zeroext %106)
  %108 = load ptr, ptr %6, align 8, !tbaa !5
  %109 = load i64, ptr %8, align 8, !tbaa !9
  %110 = add i64 %109, 1
  store i64 %110, ptr %8, align 8, !tbaa !9
  %111 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %108, i64 noundef %109)
  store i8 %107, ptr %111, align 1, !tbaa !11
  %112 = load ptr, ptr %4, align 8, !tbaa !5
  %113 = load i64, ptr %9, align 8, !tbaa !9
  %114 = add i64 %113, 2
  %115 = getelementptr inbounds i8, ptr %112, i64 %114
  %116 = load i8, ptr %115, align 1, !tbaa !11
  %117 = zext i8 %116 to i32
  %118 = and i32 %117, 63
  %119 = trunc i32 %118 to i8
  store i8 %119, ptr %10, align 1, !tbaa !11
  %120 = load i8, ptr %10, align 1, !tbaa !11
  %121 = call noundef signext i8 @_ZN6Assimp6Base64L10EncodeCharEh(i8 noundef zeroext %120)
  %122 = load ptr, ptr %6, align 8, !tbaa !5
  %123 = load i64, ptr %8, align 8, !tbaa !9
  %124 = add i64 %123, 1
  store i64 %124, ptr %8, align 8, !tbaa !9
  %125 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %122, i64 noundef %123)
  store i8 %121, ptr %125, align 1, !tbaa !11
  br label %137

126:                                              ; preds = %61
  %127 = load i8, ptr %10, align 1, !tbaa !11
  %128 = call noundef signext i8 @_ZN6Assimp6Base64L10EncodeCharEh(i8 noundef zeroext %127)
  %129 = load ptr, ptr %6, align 8, !tbaa !5
  %130 = load i64, ptr %8, align 8, !tbaa !9
  %131 = add i64 %130, 1
  store i64 %131, ptr %8, align 8, !tbaa !9
  %132 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %129, i64 noundef %130)
  store i8 %128, ptr %132, align 1, !tbaa !11
  %133 = load ptr, ptr %6, align 8, !tbaa !5
  %134 = load i64, ptr %8, align 8, !tbaa !9
  %135 = add i64 %134, 1
  store i64 %135, ptr %8, align 8, !tbaa !9
  %136 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %133, i64 noundef %134)
  store i8 61, ptr %136, align 1, !tbaa !11
  br label %137

137:                                              ; preds = %126, %93
  br label %153

138:                                              ; preds = %34
  %139 = load i8, ptr %10, align 1, !tbaa !11
  %140 = call noundef signext i8 @_ZN6Assimp6Base64L10EncodeCharEh(i8 noundef zeroext %139)
  %141 = load ptr, ptr %6, align 8, !tbaa !5
  %142 = load i64, ptr %8, align 8, !tbaa !9
  %143 = add i64 %142, 1
  store i64 %143, ptr %8, align 8, !tbaa !9
  %144 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %141, i64 noundef %142)
  store i8 %140, ptr %144, align 1, !tbaa !11
  %145 = load ptr, ptr %6, align 8, !tbaa !5
  %146 = load i64, ptr %8, align 8, !tbaa !9
  %147 = add i64 %146, 1
  store i64 %147, ptr %8, align 8, !tbaa !9
  %148 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %145, i64 noundef %146)
  store i8 61, ptr %148, align 1, !tbaa !11
  %149 = load ptr, ptr %6, align 8, !tbaa !5
  %150 = load i64, ptr %8, align 8, !tbaa !9
  %151 = add i64 %150, 1
  store i64 %151, ptr %8, align 8, !tbaa !9
  %152 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %149, i64 noundef %150)
  store i8 61, ptr %152, align 1, !tbaa !11
  br label %153

153:                                              ; preds = %138, %137
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #4
  br label %154

154:                                              ; preds = %153
  %155 = load i64, ptr %9, align 8, !tbaa !9
  %156 = add i64 %155, 3
  store i64 %156, ptr %9, align 8, !tbaa !9
  br label %29, !llvm.loop !12

157:                                              ; preds = %33
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  br label %158

158:                                              ; preds = %157, %16
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5clearEv(ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

; Function Attrs: mustprogress uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef signext i8 @_ZN6Assimp6Base64L10EncodeCharEh(i8 noundef zeroext) #3

; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) #1 align 2

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

attributes #0 = { mustprogress 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 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { inlinehint mustprogress 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 = { 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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"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"

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6Assimp6Base646EncodeEPKhmRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef readonly %0, i64 noundef %1, ptr noundef nonnull align 8 dereferenceable(32) %2) local_unnamed_addr #0 {
  %4 = icmp eq ptr %0, null
  %5 = icmp eq i64 %1, 0
  %or.cond = or i1 %4, %5
  br i1 %or.cond, label %6, label %7

6:                                                ; preds = %3
  tail call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5clearEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #3
  br label %.loopexit

7:                                                ; preds = %3
  %8 = add i64 %1, 2
  %9 = udiv i64 %8, 3
  %10 = shl i64 %9, 2
  %11 = tail call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #3
  %12 = add i64 %11, %10
  tail call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %12)
  br label %13

13:                                               ; preds = %7, %56
  %.059 = phi i64 [ 0, %7 ], [ %58, %56 ]
  %.05358 = phi i64 [ %11, %7 ], [ %.1, %56 ]
  %14 = getelementptr inbounds i8, ptr %0, i64 %.059
  %15 = load i8, ptr %14, align 1, !tbaa !5
  %16 = lshr i8 %15, 2
  %17 = tail call noundef signext i8 @_ZN6Assimp6Base64L10EncodeCharEh(i8 noundef zeroext %16)
  %18 = add i64 %.05358, 1
  %19 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %.05358)
  store i8 %17, ptr %19, align 1, !tbaa !5
  %20 = load i8, ptr %14, align 1, !tbaa !5
  %21 = shl i8 %20, 4
  %22 = and i8 %21, 48
  %23 = add nuw i64 %.059, 1
  %24 = icmp ult i64 %23, %1
  br i1 %24, label %25, label %51

25:                                               ; preds = %13
  %26 = getelementptr inbounds i8, ptr %0, i64 %23
  %27 = load i8, ptr %26, align 1, !tbaa !5
  %28 = lshr i8 %27, 4
  %29 = or disjoint i8 %28, %22
  %30 = tail call noundef signext i8 @_ZN6Assimp6Base64L10EncodeCharEh(i8 noundef zeroext %29)
  %31 = add i64 %.05358, 2
  %32 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %18)
  store i8 %30, ptr %32, align 1, !tbaa !5
  %33 = load i8, ptr %26, align 1, !tbaa !5
  %34 = shl i8 %33, 2
  %35 = and i8 %34, 60
  %36 = add nuw i64 %.059, 2
  %37 = icmp ult i64 %36, %1
  br i1 %37, label %38, label %48

38:                                               ; preds = %25
  %39 = getelementptr inbounds i8, ptr %0, i64 %36
  %40 = load i8, ptr %39, align 1, !tbaa !5
  %41 = lshr i8 %40, 6
  %42 = or disjoint i8 %41, %35
  %43 = tail call noundef signext i8 @_ZN6Assimp6Base64L10EncodeCharEh(i8 noundef zeroext %42)
  %44 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %31)
  store i8 %43, ptr %44, align 1, !tbaa !5
  %45 = load i8, ptr %39, align 1, !tbaa !5
  %46 = and i8 %45, 63
  %47 = tail call noundef signext i8 @_ZN6Assimp6Base64L10EncodeCharEh(i8 noundef zeroext %46)
  br label %56

48:                                               ; preds = %25
  %49 = tail call noundef signext i8 @_ZN6Assimp6Base64L10EncodeCharEh(i8 noundef zeroext %35)
  %50 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %31)
  store i8 %49, ptr %50, align 1, !tbaa !5
  br label %56

51:                                               ; preds = %13
  %52 = tail call noundef signext i8 @_ZN6Assimp6Base64L10EncodeCharEh(i8 noundef zeroext %22)
  %53 = add i64 %.05358, 2
  %54 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %18)
  store i8 %52, ptr %54, align 1, !tbaa !5
  %55 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %53)
  store i8 61, ptr %55, align 1, !tbaa !5
  br label %56

56:                                               ; preds = %38, %48, %51
  %.sink = phi i8 [ %47, %38 ], [ 61, %48 ], [ 61, %51 ]
  %.sink61 = add i64 %.05358, 3
  %57 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %.sink61)
  store i8 %.sink, ptr %57, align 1, !tbaa !5
  %.1 = add i64 %.05358, 4
  %58 = add i64 %.059, 3
  %59 = icmp ult i64 %58, %1
  br i1 %59, label %13, label %.loopexit, !llvm.loop !8

.loopexit:                                        ; preds = %56, %6
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5clearEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef signext i8 @_ZN6Assimp6Base64L10EncodeCharEh(i8 noundef zeroext) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) local_unnamed_addr #1 align 2

attributes #0 = { mustprogress 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 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 = { inlinehint mustprogress 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 = { 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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass