; LLVM IR from BitFunnel/NativeJIT :: src/CodeGen/JumpTable.ll (ZN9NativeJIT9JumpTable14PatchCallSitesEv)

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

%"class.NativeJIT::Label" = type { i64 }
%"class.NativeJIT::JumpTable" = type { %"class.std::vector", %"class.std::vector.0" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<const unsigned char *, std::allocator<const unsigned char *>>::_Vector_impl" }
%"struct.std::_Vector_base<const unsigned char *, std::allocator<const unsigned char *>>::_Vector_impl" = type { %"struct.std::_Vector_base<const unsigned char *, std::allocator<const unsigned char *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<const unsigned char *, std::allocator<const unsigned char *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<NativeJIT::CallSite, std::allocator<NativeJIT::CallSite>>::_Vector_impl" }
%"struct.std::_Vector_base<NativeJIT::CallSite, std::allocator<NativeJIT::CallSite>>::_Vector_impl" = type { %"struct.std::_Vector_base<NativeJIT::CallSite, std::allocator<NativeJIT::CallSite>>::_Vector_impl_data" }
%"struct.std::_Vector_base<NativeJIT::CallSite, std::allocator<NativeJIT::CallSite>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str.2 = external hidden unnamed_addr constant [79 x i8], align 1
@__FUNCTION__._ZN9NativeJIT9JumpTable14PatchCallSitesEv = external hidden unnamed_addr constant [15 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [93 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [93 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [39 x i8], align 1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK9NativeJIT9JumpTable14AddressOfLabelENS_5LabelE(ptr noundef nonnull align 8 dereferenceable(48), i64) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9NativeJIT9JumpTable14PatchCallSitesEv(ptr noundef nonnull align 8 dereferenceable(48) %0) #1 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca i64, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %"class.NativeJIT::Label", align 8
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %10 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  store i64 0, ptr %3, align 8, !tbaa !9
  br label %11

11:                                               ; preds = %102, %1
  %12 = load i64, ptr %3, align 8, !tbaa !9
  %13 = getelementptr inbounds %"class.NativeJIT::JumpTable", ptr %10, i32 0, i32 1
  %14 = call noundef i64 @_ZNKSt6vectorIN9NativeJIT8CallSiteESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #4
  %15 = icmp ult i64 %12, %14
  br i1 %15, label %17, label %16

16:                                               ; preds = %11
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  br label %105

17:                                               ; preds = %11
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  %18 = getelementptr inbounds %"class.NativeJIT::JumpTable", ptr %10, i32 0, i32 1
  %19 = load i64, ptr %3, align 8, !tbaa !9
  %20 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN9NativeJIT8CallSiteESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %19) #4
  store ptr %20, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %21 = load ptr, ptr %4, align 8, !tbaa !5
  %22 = call i64 @_ZNK9NativeJIT8CallSite8GetLabelEv(ptr noundef nonnull align 8 dereferenceable(24) %21)
  %23 = getelementptr inbounds %"class.NativeJIT::Label", ptr %6, i32 0, i32 0
  store i64 %22, ptr %23, align 8
  %24 = getelementptr inbounds %"class.NativeJIT::Label", ptr %6, i32 0, i32 0
  %25 = load i64, ptr %24, align 8
  %26 = call noundef ptr @_ZNK9NativeJIT9JumpTable14AddressOfLabelENS_5LabelE(ptr noundef nonnull align 8 dereferenceable(48) %10, i64 %25)
  store ptr %26, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %27 = load ptr, ptr %4, align 8, !tbaa !5
  %28 = call noundef ptr @_ZNK9NativeJIT8CallSite4SiteEv(ptr noundef nonnull align 8 dereferenceable(24) %27)
  store ptr %28, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = load ptr, ptr %7, align 8, !tbaa !5
  %31 = ptrtoint ptr %29 to i64
  %32 = ptrtoint ptr %30 to i64
  %33 = sub i64 %31, %32
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = call noundef i64 @_ZNK9NativeJIT8CallSite4SizeEv(ptr noundef nonnull align 8 dereferenceable(24) %34)
  %36 = sub i64 %33, %35
  store i64 %36, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  %38 = call noundef i64 @_ZNK9NativeJIT8CallSite4SizeEv(ptr noundef nonnull align 8 dereferenceable(24) %37)
  store i64 %38, ptr %9, align 8, !tbaa !9
  %39 = load i64, ptr %9, align 8, !tbaa !9
  %40 = icmp eq i64 %39, 2
  br i1 %40, label %41, label %62

41:                                               ; preds = %17
  br label %42

42:                                               ; preds = %41
  %43 = load i64, ptr %8, align 8, !tbaa !9
  %44 = call noundef signext i16 @_ZNSt14numeric_limitsIsE3maxEv() #4
  %45 = sext i16 %44 to i64
  %46 = icmp sle i64 %43, %45
  br i1 %46, label %47, label %52

47:                                               ; preds = %42
  %48 = load i64, ptr %8, align 8, !tbaa !9
  %49 = call noundef signext i16 @_ZNSt14numeric_limitsIsE3minEv() #4
  %50 = sext i16 %49 to i64
  %51 = icmp sge i64 %48, %50
  br i1 %51, label %53, label %52

52:                                               ; preds = %47, %42
  call void (ptr, ptr, i32, ptr, ptr, ...) @_ZN9NativeJIT12LogThrowImplEPKcS1_jS1_S1_z(ptr noundef @.str.2, ptr noundef @__FUNCTION__._ZN9NativeJIT9JumpTable14PatchCallSitesEv, i32 noundef 110, ptr noundef @.str.3, ptr noundef @.str.4)
  br label %53

53:                                               ; preds = %52, %47
  br label %54

54:                                               ; preds = %53
  br label %55

55:                                               ; preds = %54
  %56 = load i64, ptr %8, align 8, !tbaa !9
  %57 = trunc i64 %56 to i16
  %58 = load ptr, ptr %7, align 8, !tbaa !5
  store i16 %57, ptr %58, align 2, !tbaa !11
  %59 = load i64, ptr %9, align 8, !tbaa !9
  %60 = load ptr, ptr %7, align 8, !tbaa !5
  %61 = getelementptr inbounds i8, ptr %60, i64 %59
  store ptr %61, ptr %7, align 8, !tbaa !5
  br label %101

62:                                               ; preds = %17
  %63 = load i64, ptr %9, align 8, !tbaa !9
  %64 = icmp eq i64 %63, 4
  br i1 %64, label %65, label %86

65:                                               ; preds = %62
  br label %66

66:                                               ; preds = %65
  %67 = load i64, ptr %8, align 8, !tbaa !9
  %68 = call noundef i32 @_ZNSt14numeric_limitsIiE3maxEv() #4
  %69 = sext i32 %68 to i64
  %70 = icmp sle i64 %67, %69
  br i1 %70, label %71, label %76

71:                                               ; preds = %66
  %72 = load i64, ptr %8, align 8, !tbaa !9
  %73 = call noundef i32 @_ZNSt14numeric_limitsIiE3minEv() #4
  %74 = sext i32 %73 to i64
  %75 = icmp sge i64 %72, %74
  br i1 %75, label %77, label %76

76:                                               ; preds = %71, %66
  call void (ptr, ptr, i32, ptr, ptr, ...) @_ZN9NativeJIT12LogThrowImplEPKcS1_jS1_S1_z(ptr noundef @.str.2, ptr noundef @__FUNCTION__._ZN9NativeJIT9JumpTable14PatchCallSitesEv, i32 noundef 118, ptr noundef @.str.5, ptr noundef @.str.6)
  br label %77

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

78:                                               ; preds = %77
  br label %79

79:                                               ; preds = %78
  %80 = load i64, ptr %8, align 8, !tbaa !9
  %81 = trunc i64 %80 to i32
  %82 = load ptr, ptr %7, align 8, !tbaa !5
  store i32 %81, ptr %82, align 4, !tbaa !13
  %83 = load i64, ptr %9, align 8, !tbaa !9
  %84 = load ptr, ptr %7, align 8, !tbaa !5
  %85 = getelementptr inbounds i8, ptr %84, i64 %83
  store ptr %85, ptr %7, align 8, !tbaa !5
  br label %100

86:                                               ; preds = %62
  br label %87

87:                                               ; preds = %90, %86
  %88 = load i64, ptr %9, align 8, !tbaa !9
  %89 = icmp ugt i64 %88, 0
  br i1 %89, label %90, label %99

90:                                               ; preds = %87
  %91 = load i64, ptr %8, align 8, !tbaa !9
  %92 = trunc i64 %91 to i8
  %93 = load ptr, ptr %7, align 8, !tbaa !5
  %94 = getelementptr inbounds i8, ptr %93, i32 1
  store ptr %94, ptr %7, align 8, !tbaa !5
  store i8 %92, ptr %93, align 1, !tbaa !15
  %95 = load i64, ptr %8, align 8, !tbaa !9
  %96 = ashr i64 %95, 8
  store i64 %96, ptr %8, align 8, !tbaa !9
  %97 = load i64, ptr %9, align 8, !tbaa !9
  %98 = add i64 %97, -1
  store i64 %98, ptr %9, align 8, !tbaa !9
  br label %87, !llvm.loop !16

99:                                               ; preds = %87
  br label %100

100:                                              ; preds = %99, %79
  br label %101

101:                                              ; preds = %100, %55
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  br label %102

102:                                              ; preds = %101
  %103 = load i64, ptr %3, align 8, !tbaa !9
  %104 = add i64 %103, 1
  store i64 %104, ptr %3, align 8, !tbaa !9
  br label %11, !llvm.loop !18

105:                                              ; preds = %16
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIN9NativeJIT8CallSiteESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN9NativeJIT8CallSiteESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local i64 @_ZNK9NativeJIT8CallSite8GetLabelEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK9NativeJIT8CallSite4SiteEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK9NativeJIT8CallSite4SizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef signext i16 @_ZNSt14numeric_limitsIsE3maxEv() #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef signext i16 @_ZNSt14numeric_limitsIsE3minEv() #2 align 2

declare void @_ZN9NativeJIT12LogThrowImplEPKcS1_jS1_S1_z(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ...) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNSt14numeric_limitsIiE3maxEv() #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNSt14numeric_limitsIiE3minEv() #2 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 = { "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 = !{!12, !12, i64 0}
!12 = !{!"short", !7, 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"}
!18 = distinct !{!18, !17}


; 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.2 = external hidden unnamed_addr constant [79 x i8], align 1
@__FUNCTION__._ZN9NativeJIT9JumpTable14PatchCallSitesEv = external hidden unnamed_addr constant [15 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [93 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [93 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [39 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK9NativeJIT9JumpTable14AddressOfLabelENS_5LabelE(ptr noundef nonnull align 8 dereferenceable(48), i64) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9NativeJIT9JumpTable14PatchCallSitesEv(ptr noundef nonnull align 8 dereferenceable(48) %0) local_unnamed_addr #0 align 2 {
  %2 = getelementptr inbounds i8, ptr %0, i64 24
  %3 = tail call noundef i64 @_ZNKSt6vectorIN9NativeJIT8CallSiteESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #3
  %.not45 = icmp eq i64 %3, 0
  br i1 %.not45, label %._crit_edge, label %.lr.ph44

._crit_edge:                                      ; preds = %.loopexit, %1
  ret void

.lr.ph44:                                         ; preds = %1, %.loopexit
  %.03043 = phi i64 [ %63, %.loopexit ], [ 0, %1 ]
  %4 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN9NativeJIT8CallSiteESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.03043) #3
  %5 = tail call i64 @_ZNK9NativeJIT8CallSite8GetLabelEv(ptr noundef nonnull align 8 dereferenceable(24) %4)
  %6 = tail call noundef ptr @_ZNK9NativeJIT9JumpTable14AddressOfLabelENS_5LabelE(ptr noundef nonnull align 8 dereferenceable(48) %0, i64 %5)
  %7 = tail call noundef ptr @_ZNK9NativeJIT8CallSite4SiteEv(ptr noundef nonnull align 8 dereferenceable(24) %4)
  %8 = ptrtoint ptr %6 to i64
  %9 = ptrtoint ptr %7 to i64
  %10 = tail call noundef i64 @_ZNK9NativeJIT8CallSite4SizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4)
  %11 = add i64 %10, %9
  %12 = sub i64 %8, %11
  %13 = tail call noundef i64 @_ZNK9NativeJIT8CallSite4SizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4)
  switch i64 %13, label %.lr.ph.preheader [
    i64 2, label %20
    i64 4, label %29
    i64 0, label %.loopexit
  ]

.lr.ph.preheader:                                 ; preds = %.lr.ph44
  %14 = add i64 %13, -1
  %xtraiter = and i64 %13, 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
  %.042.prol = phi i64 [ %18, %.lr.ph.prol ], [ %13, %.lr.ph.preheader ]
  %.02841.prol = phi i64 [ %17, %.lr.ph.prol ], [ %12, %.lr.ph.preheader ]
  %.02940.prol = phi ptr [ %16, %.lr.ph.prol ], [ %7, %.lr.ph.preheader ]
  %prol.iter = phi i64 [ %prol.iter.next, %.lr.ph.prol ], [ 0, %.lr.ph.preheader ]
  %15 = trunc i64 %.02841.prol to i8
  %16 = getelementptr inbounds i8, ptr %.02940.prol, i64 1
  store i8 %15, ptr %.02940.prol, align 1, !tbaa !5
  %17 = ashr i64 %.02841.prol, 8
  %18 = add i64 %.042.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 !8

.lr.ph.prol.loopexit:                             ; preds = %.lr.ph.prol, %.lr.ph.preheader
  %.042.unr = phi i64 [ %13, %.lr.ph.preheader ], [ %18, %.lr.ph.prol ]
  %.02841.unr = phi i64 [ %12, %.lr.ph.preheader ], [ %17, %.lr.ph.prol ]
  %.02940.unr = phi ptr [ %7, %.lr.ph.preheader ], [ %16, %.lr.ph.prol ]
  %19 = icmp ult i64 %14, 7
  br i1 %19, label %.loopexit, label %.lr.ph

20:                                               ; preds = %.lr.ph44
  %21 = tail call noundef signext i16 @_ZNSt14numeric_limitsIsE3maxEv() #3
  %22 = sext i16 %21 to i64
  %.not35 = icmp sgt i64 %12, %22
  br i1 %.not35, label %26, label %23

23:                                               ; preds = %20
  %24 = tail call noundef signext i16 @_ZNSt14numeric_limitsIsE3minEv() #3
  %25 = sext i16 %24 to i64
  %.not36 = icmp slt i64 %12, %25
  br i1 %.not36, label %26, label %27

26:                                               ; preds = %23, %20
  tail call void (ptr, ptr, i32, ptr, ptr, ...) @_ZN9NativeJIT12LogThrowImplEPKcS1_jS1_S1_z(ptr noundef nonnull @.str.2, ptr noundef nonnull @__FUNCTION__._ZN9NativeJIT9JumpTable14PatchCallSitesEv, i32 noundef 110, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.4)
  br label %27

27:                                               ; preds = %26, %23
  %28 = trunc i64 %12 to i16
  store i16 %28, ptr %7, align 2, !tbaa !10
  br label %.loopexit

29:                                               ; preds = %.lr.ph44
  %30 = tail call noundef i32 @_ZNSt14numeric_limitsIiE3maxEv() #3
  %31 = sext i32 %30 to i64
  %.not33 = icmp sgt i64 %12, %31
  br i1 %.not33, label %35, label %32

32:                                               ; preds = %29
  %33 = tail call noundef i32 @_ZNSt14numeric_limitsIiE3minEv() #3
  %34 = sext i32 %33 to i64
  %.not34 = icmp slt i64 %12, %34
  br i1 %.not34, label %35, label %36

35:                                               ; preds = %32, %29
  tail call void (ptr, ptr, i32, ptr, ptr, ...) @_ZN9NativeJIT12LogThrowImplEPKcS1_jS1_S1_z(ptr noundef nonnull @.str.2, ptr noundef nonnull @__FUNCTION__._ZN9NativeJIT9JumpTable14PatchCallSitesEv, i32 noundef 118, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.6)
  br label %36

36:                                               ; preds = %35, %32
  %37 = trunc i64 %12 to i32
  store i32 %37, ptr %7, align 4, !tbaa !12
  br label %.loopexit

.lr.ph:                                           ; preds = %.lr.ph.prol.loopexit, %.lr.ph
  %.042 = phi i64 [ %62, %.lr.ph ], [ %.042.unr, %.lr.ph.prol.loopexit ]
  %.02841 = phi i64 [ %61, %.lr.ph ], [ %.02841.unr, %.lr.ph.prol.loopexit ]
  %.02940 = phi ptr [ %60, %.lr.ph ], [ %.02940.unr, %.lr.ph.prol.loopexit ]
  %38 = trunc i64 %.02841 to i8
  %39 = getelementptr inbounds i8, ptr %.02940, i64 1
  store i8 %38, ptr %.02940, align 1, !tbaa !5
  %40 = lshr i64 %.02841, 8
  %41 = trunc i64 %40 to i8
  %42 = getelementptr inbounds i8, ptr %.02940, i64 2
  store i8 %41, ptr %39, align 1, !tbaa !5
  %43 = lshr i64 %.02841, 16
  %44 = trunc i64 %43 to i8
  %45 = getelementptr inbounds i8, ptr %.02940, i64 3
  store i8 %44, ptr %42, align 1, !tbaa !5
  %46 = lshr i64 %.02841, 24
  %47 = trunc i64 %46 to i8
  %48 = getelementptr inbounds i8, ptr %.02940, i64 4
  store i8 %47, ptr %45, align 1, !tbaa !5
  %49 = lshr i64 %.02841, 32
  %50 = trunc i64 %49 to i8
  %51 = getelementptr inbounds i8, ptr %.02940, i64 5
  store i8 %50, ptr %48, align 1, !tbaa !5
  %52 = lshr i64 %.02841, 40
  %53 = trunc i64 %52 to i8
  %54 = getelementptr inbounds i8, ptr %.02940, i64 6
  store i8 %53, ptr %51, align 1, !tbaa !5
  %55 = lshr i64 %.02841, 48
  %56 = trunc i64 %55 to i8
  %57 = getelementptr inbounds i8, ptr %.02940, i64 7
  store i8 %56, ptr %54, align 1, !tbaa !5
  %58 = lshr i64 %.02841, 56
  %59 = trunc nuw i64 %58 to i8
  %60 = getelementptr inbounds i8, ptr %.02940, i64 8
  store i8 %59, ptr %57, align 1, !tbaa !5
  %61 = ashr i64 %.02841, 63
  %62 = add i64 %.042, -8
  %.not.7 = icmp eq i64 %62, 0
  br i1 %.not.7, label %.loopexit, label %.lr.ph, !llvm.loop !14

.loopexit:                                        ; preds = %.lr.ph.prol.loopexit, %.lr.ph, %.lr.ph44, %36, %27
  %63 = add nuw i64 %.03043, 1
  %64 = tail call noundef i64 @_ZNKSt6vectorIN9NativeJIT8CallSiteESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #3
  %65 = icmp ult i64 %63, %64
  br i1 %65, label %.lr.ph44, label %._crit_edge, !llvm.loop !16
}

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK9NativeJIT8CallSite4SiteEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef signext i16 @_ZNSt14numeric_limitsIsE3maxEv() local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef signext i16 @_ZNSt14numeric_limitsIsE3minEv() local_unnamed_addr #1 align 2

declare void @_ZN9NativeJIT12LogThrowImplEPKcS1_jS1_S1_z(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ...) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNSt14numeric_limitsIiE3maxEv() local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNSt14numeric_limitsIiE3minEv() 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 = { "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.unroll.disable"}
!10 = !{!11, !11, i64 0}
!11 = !{!"short", !6, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !6, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}


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