; LLVM IR from tevador/RandomX :: src (jit_compiler_rv64)

; 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.randomx::Instruction" = type { i8, i8, i8, i8, i32 }
%"class.randomx::JitCompilerRV64" = type { %"struct.randomx::CompilerState", ptr, ptr }
%"struct.randomx::CompilerState" = type { %"struct.randomx::CodeBuffer", [256 x i32], [8 x i32] }
%"struct.randomx::CodeBuffer" = type { ptr, i32, i32 }
%"class.randomx::SuperscalarProgram" = type { [512 x %"class.randomx::Instruction"], i32, i32, double, i32, i32, i32, i32, i32, i32, [8 x i32], [8 x i32] }

@_ZN7randomxL11codeSshInitE = external hidden global ptr, align 8
@_ZN7randomxL11sizeSshInitE = external hidden global i32, align 4
@_ZN7randomxL11codeSshLoadE = external hidden global ptr, align 8
@_ZN7randomxL11sizeSshLoadE = external hidden global i32, align 4
@_ZN7randomxL15codeSshPrefetchE = external hidden global ptr, align 8
@_ZN7randomxL15sizeSshPrefetchE = external hidden global i32, align 4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7randomx10CodeBuffer4emitEPKhi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, i32 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7randomx10CodeBuffer6emitAtIjEEviT_(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef, i32 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN7randomx3rviEjiii(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN7randomxL10clearCacheERNS_10CodeBufferE(ptr noundef nonnull align 8 dereferenceable(16)) #1

; 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
define dso_local void @_ZN7randomx15JitCompilerRV6423generateSuperscalarHashEPNS_18SuperscalarProgramERSt6vectorImSaImEE(ptr noundef nonnull align 8 dereferenceable(1088) %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(24) %2) #2 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.randomx::Instruction", align 4
  %12 = alloca %"class.randomx::Instruction", align 4
  %13 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %14 = load ptr, ptr %4, align 8
  %15 = getelementptr inbounds %"class.randomx::JitCompilerRV64", ptr %14, i32 0, i32 0
  %16 = getelementptr inbounds %"struct.randomx::CodeBuffer", ptr %15, i32 0, i32 1
  store i32 57344, ptr %16, align 8, !tbaa !9
  %17 = getelementptr inbounds %"class.randomx::JitCompilerRV64", ptr %14, i32 0, i32 0
  %18 = getelementptr inbounds %"struct.randomx::CodeBuffer", ptr %17, i32 0, i32 2
  store i32 0, ptr %18, align 4, !tbaa !12
  %19 = getelementptr inbounds %"class.randomx::JitCompilerRV64", ptr %14, i32 0, i32 0
  %20 = load ptr, ptr @_ZN7randomxL11codeSshInitE, align 8, !tbaa !5
  %21 = load i32, ptr @_ZN7randomxL11sizeSshInitE, align 4, !tbaa !13
  call void @_ZN7randomx10CodeBuffer4emitEPKhi(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef %20, i32 noundef %21)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 0, ptr %7, align 4, !tbaa !13
  br label %22

22:                                               ; preds = %67, %3
  %23 = load i32, ptr %7, align 4, !tbaa !13
  %24 = icmp ult i32 %23, 8
  br i1 %24, label %26, label %25

25:                                               ; preds = %22
  store i32 2, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %70

26:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = load i32, ptr %7, align 4, !tbaa !13
  %29 = zext i32 %28 to i64
  %30 = getelementptr inbounds %"class.randomx::SuperscalarProgram", ptr %27, i64 %29
  store ptr %30, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 0, ptr %10, align 4, !tbaa !13
  br label %31

31:                                               ; preds = %44, %26
  %32 = load i32, ptr %10, align 4, !tbaa !13
  %33 = load ptr, ptr %9, align 8, !tbaa !5
  %34 = call noundef i32 @_ZN7randomx18SuperscalarProgram7getSizeEv(ptr noundef nonnull align 8 dereferenceable(4200) %33)
  %35 = icmp ult i32 %32, %34
  br i1 %35, label %37, label %36

36:                                               ; preds = %31
  store i32 5, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %47

37:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %38 = load ptr, ptr %9, align 8, !tbaa !5
  %39 = load i32, ptr %10, align 4, !tbaa !13
  %40 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN7randomx18SuperscalarProgramclEi(ptr noundef nonnull align 8 dereferenceable(4200) %38, i32 noundef %39)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %11, ptr align 4 %40, i64 8, i1 false), !tbaa.struct !14
  %41 = getelementptr inbounds %"class.randomx::JitCompilerRV64", ptr %14, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %12, ptr align 4 %11, i64 8, i1 false), !tbaa.struct !14
  %42 = load ptr, ptr %6, align 8, !tbaa !5
  %43 = load i64, ptr %12, align 4
  call void @_ZN7randomxL23generateSuperscalarCodeERNS_10CodeBufferENS_11InstructionERKSt6vectorImSaImEE(ptr noundef nonnull align 8 dereferenceable(16) %41, i64 %43, ptr noundef nonnull align 8 dereferenceable(24) %42)
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  br label %44

44:                                               ; preds = %37
  %45 = load i32, ptr %10, align 4, !tbaa !13
  %46 = add i32 %45, 1
  store i32 %46, ptr %10, align 4, !tbaa !13
  br label %31, !llvm.loop !16

47:                                               ; preds = %36
  %48 = getelementptr inbounds %"class.randomx::JitCompilerRV64", ptr %14, i32 0, i32 0
  %49 = load ptr, ptr @_ZN7randomxL11codeSshLoadE, align 8, !tbaa !5
  %50 = load i32, ptr @_ZN7randomxL11sizeSshLoadE, align 4, !tbaa !13
  call void @_ZN7randomx10CodeBuffer4emitEPKhi(ptr noundef nonnull align 8 dereferenceable(16) %48, ptr noundef %49, i32 noundef %50)
  %51 = load i32, ptr %7, align 4, !tbaa !13
  %52 = icmp ult i32 %51, 7
  br i1 %52, label %53, label %66

53:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %54 = getelementptr inbounds %"class.randomx::JitCompilerRV64", ptr %14, i32 0, i32 0
  %55 = getelementptr inbounds %"struct.randomx::CodeBuffer", ptr %54, i32 0, i32 1
  %56 = load i32, ptr %55, align 8, !tbaa !9
  store i32 %56, ptr %13, align 4, !tbaa !13
  %57 = getelementptr inbounds %"class.randomx::JitCompilerRV64", ptr %14, i32 0, i32 0
  %58 = load ptr, ptr @_ZN7randomxL15codeSshPrefetchE, align 8, !tbaa !5
  %59 = load i32, ptr @_ZN7randomxL15sizeSshPrefetchE, align 4, !tbaa !13
  call void @_ZN7randomx10CodeBuffer4emitEPKhi(ptr noundef nonnull align 8 dereferenceable(16) %57, ptr noundef %58, i32 noundef %59)
  %60 = getelementptr inbounds %"class.randomx::JitCompilerRV64", ptr %14, i32 0, i32 0
  %61 = load i32, ptr %13, align 4, !tbaa !13
  %62 = load ptr, ptr %9, align 8, !tbaa !5
  %63 = call noundef i32 @_ZN7randomx18SuperscalarProgram18getAddressRegisterEv(ptr noundef nonnull align 8 dereferenceable(4200) %62)
  %64 = call noundef i32 @_ZN7randomx5regSSEi(i32 noundef %63)
  %65 = call noundef i32 @_ZN7randomx3rviEjiii(i32 noundef 28723, i32 noundef 7, i32 noundef %64, i32 noundef 7)
  call void @_ZN7randomx10CodeBuffer6emitAtIjEEviT_(ptr noundef nonnull align 8 dereferenceable(16) %60, i32 noundef %61, i32 noundef %65)
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  br label %66

66:                                               ; preds = %53, %47
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  br label %67

67:                                               ; preds = %66
  %68 = load i32, ptr %7, align 4, !tbaa !13
  %69 = add i32 %68, 1
  store i32 %69, ptr %7, align 4, !tbaa !13
  br label %22, !llvm.loop !18

70:                                               ; preds = %25
  %71 = getelementptr inbounds %"class.randomx::JitCompilerRV64", ptr %14, i32 0, i32 0
  %72 = call noundef zeroext i16 @_ZN7randomx3rvcEtii(i16 noundef zeroext -32638, i32 noundef 0, i32 noundef 0)
  call void @_ZN7randomx10CodeBuffer4emitItEEvT_(ptr noundef nonnull align 8 dereferenceable(16) %71, i16 noundef zeroext %72)
  %73 = getelementptr inbounds %"class.randomx::JitCompilerRV64", ptr %14, i32 0, i32 0
  call void @_ZN7randomxL10clearCacheERNS_10CodeBufferE(ptr noundef nonnull align 8 dereferenceable(16) %73)
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN7randomx18SuperscalarProgram7getSizeEv(ptr noundef nonnull align 8 dereferenceable(4200)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZN7randomx18SuperscalarProgramclEi(ptr noundef nonnull align 8 dereferenceable(4200), i32 noundef) #1 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN7randomxL23generateSuperscalarCodeERNS_10CodeBufferENS_11InstructionERKSt6vectorImSaImEE(ptr noundef nonnull align 8 dereferenceable(16), i64, ptr noundef nonnull align 8 dereferenceable(24)) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN7randomx5regSSEi(i32 noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN7randomx18SuperscalarProgram18getAddressRegisterEv(ptr noundef nonnull align 8 dereferenceable(4200)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7randomx10CodeBuffer4emitItEEvT_(ptr noundef nonnull align 8 dereferenceable(16), i16 noundef zeroext) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i16 @_ZN7randomx3rvcEtii(i16 noundef zeroext, i32 noundef, i32 noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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, !11, i64 8}
!10 = !{!"_ZTSN7randomx10CodeBufferE", !6, i64 0, !11, i64 8, !11, i64 12}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !11, i64 12}
!13 = !{!11, !11, i64 0}
!14 = !{i64 0, i64 1, !15, i64 1, i64 1, !15, i64 2, i64 1, !15, i64 3, i64 1, !15, i64 4, i64 4, !13}
!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"

%"class.randomx::SuperscalarProgram" = type { [512 x %"class.randomx::Instruction"], i32, i32, double, i32, i32, i32, i32, i32, i32, [8 x i32], [8 x i32] }
%"class.randomx::Instruction" = type { i8, i8, i8, i8, i32 }

@_ZN7randomxL11codeSshInitE = external hidden local_unnamed_addr global ptr, align 8
@_ZN7randomxL11sizeSshInitE = external hidden local_unnamed_addr global i32, align 4
@_ZN7randomxL11codeSshLoadE = external hidden local_unnamed_addr global ptr, align 8
@_ZN7randomxL11sizeSshLoadE = external hidden local_unnamed_addr global i32, align 4
@_ZN7randomxL15codeSshPrefetchE = external hidden local_unnamed_addr global ptr, align 8
@_ZN7randomxL15sizeSshPrefetchE = external hidden local_unnamed_addr global i32, align 4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7randomx10CodeBuffer4emitEPKhi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, i32 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7randomx10CodeBuffer6emitAtIjEEviT_(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef, i32 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN7randomx3rviEjiii(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN7randomxL10clearCacheERNS_10CodeBufferE(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7randomx15JitCompilerRV6423generateSuperscalarHashEPNS_18SuperscalarProgramERSt6vectorImSaImEE(ptr noundef nonnull align 8 dereferenceable(1088) %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(24) %2) local_unnamed_addr #1 align 2 {
  %4 = getelementptr inbounds i8, ptr %0, i64 8
  store i32 57344, ptr %4, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %0, i64 12
  store i32 0, ptr %5, align 4, !tbaa !11
  %6 = load ptr, ptr @_ZN7randomxL11codeSshInitE, align 8, !tbaa !12
  %7 = load i32, ptr @_ZN7randomxL11sizeSshInitE, align 4, !tbaa !13
  tail call void @_ZN7randomx10CodeBuffer4emitEPKhi(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef %6, i32 noundef %7)
  br label %10

8:                                                ; preds = %._crit_edge
  %9 = tail call noundef zeroext i16 @_ZN7randomx3rvcEtii(i16 noundef zeroext -32638, i32 noundef 0, i32 noundef 0)
  tail call void @_ZN7randomx10CodeBuffer4emitItEEvT_(ptr noundef nonnull align 8 dereferenceable(16) %0, i16 noundef zeroext %9)
  tail call void @_ZN7randomxL10clearCacheERNS_10CodeBufferE(ptr noundef nonnull align 8 dereferenceable(16) %0)
  ret void

10:                                               ; preds = %19, %3
  %indvars.iv = phi i64 [ 0, %3 ], [ %indvars.iv.next, %19 ]
  %11 = getelementptr inbounds %"class.randomx::SuperscalarProgram", ptr %1, i64 %indvars.iv
  %12 = tail call noundef i32 @_ZN7randomx18SuperscalarProgram7getSizeEv(ptr noundef nonnull align 8 dereferenceable(4200) %11)
  %.not17 = icmp eq i32 %12, 0
  br i1 %.not17, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %10
  %13 = load ptr, ptr @_ZN7randomxL11codeSshLoadE, align 8, !tbaa !12
  %14 = load i32, ptr @_ZN7randomxL11sizeSshLoadE, align 4, !tbaa !13
  tail call void @_ZN7randomx10CodeBuffer4emitEPKhi(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef %13, i32 noundef %14)
  %.not = icmp eq i64 %indvars.iv, 7
  br i1 %.not, label %8, label %19

.lr.ph:                                           ; preds = %10, %.lr.ph
  %.01415 = phi i32 [ %16, %.lr.ph ], [ 0, %10 ]
  %15 = tail call noundef nonnull align 4 dereferenceable(8) ptr @_ZN7randomx18SuperscalarProgramclEi(ptr noundef nonnull align 8 dereferenceable(4200) %11, i32 noundef %.01415)
  %.sroa.01.0.copyload = load i64, ptr %15, align 4
  tail call void @_ZN7randomxL23generateSuperscalarCodeERNS_10CodeBufferENS_11InstructionERKSt6vectorImSaImEE(ptr noundef nonnull align 8 dereferenceable(16) %0, i64 %.sroa.01.0.copyload, ptr noundef nonnull align 8 dereferenceable(24) %2)
  %16 = add nuw i32 %.01415, 1
  %17 = tail call noundef i32 @_ZN7randomx18SuperscalarProgram7getSizeEv(ptr noundef nonnull align 8 dereferenceable(4200) %11)
  %18 = icmp ult i32 %16, %17
  br i1 %18, label %.lr.ph, label %._crit_edge, !llvm.loop !14

19:                                               ; preds = %._crit_edge
  %20 = load i32, ptr %4, align 8, !tbaa !5
  %21 = load ptr, ptr @_ZN7randomxL15codeSshPrefetchE, align 8, !tbaa !12
  %22 = load i32, ptr @_ZN7randomxL15sizeSshPrefetchE, align 4, !tbaa !13
  tail call void @_ZN7randomx10CodeBuffer4emitEPKhi(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef %21, i32 noundef %22)
  %23 = tail call noundef i32 @_ZN7randomx18SuperscalarProgram18getAddressRegisterEv(ptr noundef nonnull align 8 dereferenceable(4200) %11)
  %24 = tail call noundef i32 @_ZN7randomx5regSSEi(i32 noundef %23)
  %25 = tail call noundef i32 @_ZN7randomx3rviEjiii(i32 noundef 28723, i32 noundef 7, i32 noundef %24, i32 noundef 7)
  tail call void @_ZN7randomx10CodeBuffer6emitAtIjEEviT_(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef %20, i32 noundef %25)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  br label %10
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN7randomx18SuperscalarProgram7getSizeEv(ptr noundef nonnull align 8 dereferenceable(4200)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZN7randomx18SuperscalarProgramclEi(ptr noundef nonnull align 8 dereferenceable(4200), i32 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN7randomxL23generateSuperscalarCodeERNS_10CodeBufferENS_11InstructionERKSt6vectorImSaImEE(ptr noundef nonnull align 8 dereferenceable(16), i64, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN7randomx5regSSEi(i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN7randomx18SuperscalarProgram18getAddressRegisterEv(ptr noundef nonnull align 8 dereferenceable(4200)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7randomx10CodeBuffer4emitItEEvT_(ptr noundef nonnull align 8 dereferenceable(16), i16 noundef zeroext) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i16 @_ZN7randomx3rvcEtii(i16 noundef zeroext, i32 noundef, i32 noundef) local_unnamed_addr #1

attributes #0 = { 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 #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" }

!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, !10, i64 8}
!6 = !{!"_ZTSN7randomx10CodeBufferE", !7, i64 0, !10, i64 8, !10, i64 12}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!6, !10, i64 12}
!12 = !{!7, !7, i64 0}
!13 = !{!10, !10, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}


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