; LLVM IR from tevador/RandomX :: src/virtual_machine.ll (ZN10randomx_vm10initializeEv)

; 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_vm = type { ptr, [56 x i8], %"class.randomx::Program", %"struct.randomx::RegisterFile", %"struct.randomx::ProgramConfiguration", %"struct.randomx::MemoryRegisters", ptr, %union.anon, i64, %"class.std::__cxx11::basic_string", [8 x i8], [8 x i64], [16 x i8] }
%"class.randomx::Program" = type { [16 x i64], [256 x %"class.randomx::Instruction"] }
%"class.randomx::Instruction" = type { i8, i8, i8, i8, i32 }
%"struct.randomx::RegisterFile" = type { [8 x i64], [4 x %"struct.randomx::fpu_reg_t"], [4 x %"struct.randomx::fpu_reg_t"], [4 x %"struct.randomx::fpu_reg_t"] }
%"struct.randomx::fpu_reg_t" = type { double, double }
%"struct.randomx::ProgramConfiguration" = type { [2 x i64], i32, i32, i32, i32 }
%"struct.randomx::MemoryRegisters" = type { i32, i32, ptr }
%union.anon = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon.0 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon.0 = type { i64, [8 x i8] }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10randomx_vm10initializeEv(ptr noundef nonnull align 64 dereferenceable(2672) %0) #0 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca i64, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %4 = load ptr, ptr %2, align 8
  %5 = getelementptr inbounds %class.randomx_vm, ptr %4, i32 0, i32 3
  %6 = getelementptr inbounds %"struct.randomx::RegisterFile", ptr %5, i32 0, i32 3
  %7 = getelementptr inbounds [4 x %"struct.randomx::fpu_reg_t"], ptr %6, i64 0, i64 0
  %8 = getelementptr inbounds %"struct.randomx::fpu_reg_t", ptr %7, i32 0, i32 0
  %9 = getelementptr inbounds %class.randomx_vm, ptr %4, i32 0, i32 2
  %10 = call noundef i64 @_ZN7randomx7Program10getEntropyEi(ptr noundef nonnull align 8 dereferenceable(2176) %9, i32 noundef 0)
  %11 = call noundef i64 @_ZN7randomxL25getSmallPositiveFloatBitsEm(i64 noundef %10)
  call void @_ZL7store64Pvm(ptr noundef %8, i64 noundef %11)
  %12 = getelementptr inbounds %class.randomx_vm, ptr %4, i32 0, i32 3
  %13 = getelementptr inbounds %"struct.randomx::RegisterFile", ptr %12, i32 0, i32 3
  %14 = getelementptr inbounds [4 x %"struct.randomx::fpu_reg_t"], ptr %13, i64 0, i64 0
  %15 = getelementptr inbounds %"struct.randomx::fpu_reg_t", ptr %14, i32 0, i32 1
  %16 = getelementptr inbounds %class.randomx_vm, ptr %4, i32 0, i32 2
  %17 = call noundef i64 @_ZN7randomx7Program10getEntropyEi(ptr noundef nonnull align 8 dereferenceable(2176) %16, i32 noundef 1)
  %18 = call noundef i64 @_ZN7randomxL25getSmallPositiveFloatBitsEm(i64 noundef %17)
  call void @_ZL7store64Pvm(ptr noundef %15, i64 noundef %18)
  %19 = getelementptr inbounds %class.randomx_vm, ptr %4, i32 0, i32 3
  %20 = getelementptr inbounds %"struct.randomx::RegisterFile", ptr %19, i32 0, i32 3
  %21 = getelementptr inbounds [4 x %"struct.randomx::fpu_reg_t"], ptr %20, i64 0, i64 1
  %22 = getelementptr inbounds %"struct.randomx::fpu_reg_t", ptr %21, i32 0, i32 0
  %23 = getelementptr inbounds %class.randomx_vm, ptr %4, i32 0, i32 2
  %24 = call noundef i64 @_ZN7randomx7Program10getEntropyEi(ptr noundef nonnull align 8 dereferenceable(2176) %23, i32 noundef 2)
  %25 = call noundef i64 @_ZN7randomxL25getSmallPositiveFloatBitsEm(i64 noundef %24)
  call void @_ZL7store64Pvm(ptr noundef %22, i64 noundef %25)
  %26 = getelementptr inbounds %class.randomx_vm, ptr %4, i32 0, i32 3
  %27 = getelementptr inbounds %"struct.randomx::RegisterFile", ptr %26, i32 0, i32 3
  %28 = getelementptr inbounds [4 x %"struct.randomx::fpu_reg_t"], ptr %27, i64 0, i64 1
  %29 = getelementptr inbounds %"struct.randomx::fpu_reg_t", ptr %28, i32 0, i32 1
  %30 = getelementptr inbounds %class.randomx_vm, ptr %4, i32 0, i32 2
  %31 = call noundef i64 @_ZN7randomx7Program10getEntropyEi(ptr noundef nonnull align 8 dereferenceable(2176) %30, i32 noundef 3)
  %32 = call noundef i64 @_ZN7randomxL25getSmallPositiveFloatBitsEm(i64 noundef %31)
  call void @_ZL7store64Pvm(ptr noundef %29, i64 noundef %32)
  %33 = getelementptr inbounds %class.randomx_vm, ptr %4, i32 0, i32 3
  %34 = getelementptr inbounds %"struct.randomx::RegisterFile", ptr %33, i32 0, i32 3
  %35 = getelementptr inbounds [4 x %"struct.randomx::fpu_reg_t"], ptr %34, i64 0, i64 2
  %36 = getelementptr inbounds %"struct.randomx::fpu_reg_t", ptr %35, i32 0, i32 0
  %37 = getelementptr inbounds %class.randomx_vm, ptr %4, i32 0, i32 2
  %38 = call noundef i64 @_ZN7randomx7Program10getEntropyEi(ptr noundef nonnull align 8 dereferenceable(2176) %37, i32 noundef 4)
  %39 = call noundef i64 @_ZN7randomxL25getSmallPositiveFloatBitsEm(i64 noundef %38)
  call void @_ZL7store64Pvm(ptr noundef %36, i64 noundef %39)
  %40 = getelementptr inbounds %class.randomx_vm, ptr %4, i32 0, i32 3
  %41 = getelementptr inbounds %"struct.randomx::RegisterFile", ptr %40, i32 0, i32 3
  %42 = getelementptr inbounds [4 x %"struct.randomx::fpu_reg_t"], ptr %41, i64 0, i64 2
  %43 = getelementptr inbounds %"struct.randomx::fpu_reg_t", ptr %42, i32 0, i32 1
  %44 = getelementptr inbounds %class.randomx_vm, ptr %4, i32 0, i32 2
  %45 = call noundef i64 @_ZN7randomx7Program10getEntropyEi(ptr noundef nonnull align 8 dereferenceable(2176) %44, i32 noundef 5)
  %46 = call noundef i64 @_ZN7randomxL25getSmallPositiveFloatBitsEm(i64 noundef %45)
  call void @_ZL7store64Pvm(ptr noundef %43, i64 noundef %46)
  %47 = getelementptr inbounds %class.randomx_vm, ptr %4, i32 0, i32 3
  %48 = getelementptr inbounds %"struct.randomx::RegisterFile", ptr %47, i32 0, i32 3
  %49 = getelementptr inbounds [4 x %"struct.randomx::fpu_reg_t"], ptr %48, i64 0, i64 3
  %50 = getelementptr inbounds %"struct.randomx::fpu_reg_t", ptr %49, i32 0, i32 0
  %51 = getelementptr inbounds %class.randomx_vm, ptr %4, i32 0, i32 2
  %52 = call noundef i64 @_ZN7randomx7Program10getEntropyEi(ptr noundef nonnull align 8 dereferenceable(2176) %51, i32 noundef 6)
  %53 = call noundef i64 @_ZN7randomxL25getSmallPositiveFloatBitsEm(i64 noundef %52)
  call void @_ZL7store64Pvm(ptr noundef %50, i64 noundef %53)
  %54 = getelementptr inbounds %class.randomx_vm, ptr %4, i32 0, i32 3
  %55 = getelementptr inbounds %"struct.randomx::RegisterFile", ptr %54, i32 0, i32 3
  %56 = getelementptr inbounds [4 x %"struct.randomx::fpu_reg_t"], ptr %55, i64 0, i64 3
  %57 = getelementptr inbounds %"struct.randomx::fpu_reg_t", ptr %56, i32 0, i32 1
  %58 = getelementptr inbounds %class.randomx_vm, ptr %4, i32 0, i32 2
  %59 = call noundef i64 @_ZN7randomx7Program10getEntropyEi(ptr noundef nonnull align 8 dereferenceable(2176) %58, i32 noundef 7)
  %60 = call noundef i64 @_ZN7randomxL25getSmallPositiveFloatBitsEm(i64 noundef %59)
  call void @_ZL7store64Pvm(ptr noundef %57, i64 noundef %60)
  %61 = getelementptr inbounds %class.randomx_vm, ptr %4, i32 0, i32 2
  %62 = call noundef i64 @_ZN7randomx7Program10getEntropyEi(ptr noundef nonnull align 8 dereferenceable(2176) %61, i32 noundef 8)
  %63 = and i64 %62, 2147483584
  %64 = trunc i64 %63 to i32
  %65 = getelementptr inbounds %class.randomx_vm, ptr %4, i32 0, i32 5
  %66 = getelementptr inbounds %"struct.randomx::MemoryRegisters", ptr %65, i32 0, i32 1
  store i32 %64, ptr %66, align 4, !tbaa !9
  %67 = getelementptr inbounds %class.randomx_vm, ptr %4, i32 0, i32 2
  %68 = call noundef i64 @_ZN7randomx7Program10getEntropyEi(ptr noundef nonnull align 8 dereferenceable(2176) %67, i32 noundef 10)
  %69 = trunc i64 %68 to i32
  %70 = getelementptr inbounds %class.randomx_vm, ptr %4, i32 0, i32 5
  %71 = getelementptr inbounds %"struct.randomx::MemoryRegisters", ptr %70, i32 0, i32 0
  store i32 %69, ptr %71, align 32, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  %72 = getelementptr inbounds %class.randomx_vm, ptr %4, i32 0, i32 2
  %73 = call noundef i64 @_ZN7randomx7Program10getEntropyEi(ptr noundef nonnull align 8 dereferenceable(2176) %72, i32 noundef 12)
  store i64 %73, ptr %3, align 8, !tbaa !20
  %74 = load i64, ptr %3, align 8, !tbaa !20
  %75 = and i64 %74, 1
  %76 = add i64 0, %75
  %77 = trunc i64 %76 to i32
  %78 = getelementptr inbounds %class.randomx_vm, ptr %4, i32 0, i32 4
  %79 = getelementptr inbounds %"struct.randomx::ProgramConfiguration", ptr %78, i32 0, i32 1
  store i32 %77, ptr %79, align 16, !tbaa !21
  %80 = load i64, ptr %3, align 8, !tbaa !20
  %81 = lshr i64 %80, 1
  store i64 %81, ptr %3, align 8, !tbaa !20
  %82 = load i64, ptr %3, align 8, !tbaa !20
  %83 = and i64 %82, 1
  %84 = add i64 2, %83
  %85 = trunc i64 %84 to i32
  %86 = getelementptr inbounds %class.randomx_vm, ptr %4, i32 0, i32 4
  %87 = getelementptr inbounds %"struct.randomx::ProgramConfiguration", ptr %86, i32 0, i32 2
  store i32 %85, ptr %87, align 4, !tbaa !22
  %88 = load i64, ptr %3, align 8, !tbaa !20
  %89 = lshr i64 %88, 1
  store i64 %89, ptr %3, align 8, !tbaa !20
  %90 = load i64, ptr %3, align 8, !tbaa !20
  %91 = and i64 %90, 1
  %92 = add i64 4, %91
  %93 = trunc i64 %92 to i32
  %94 = getelementptr inbounds %class.randomx_vm, ptr %4, i32 0, i32 4
  %95 = getelementptr inbounds %"struct.randomx::ProgramConfiguration", ptr %94, i32 0, i32 3
  store i32 %93, ptr %95, align 8, !tbaa !23
  %96 = load i64, ptr %3, align 8, !tbaa !20
  %97 = lshr i64 %96, 1
  store i64 %97, ptr %3, align 8, !tbaa !20
  %98 = load i64, ptr %3, align 8, !tbaa !20
  %99 = and i64 %98, 1
  %100 = add i64 6, %99
  %101 = trunc i64 %100 to i32
  %102 = getelementptr inbounds %class.randomx_vm, ptr %4, i32 0, i32 4
  %103 = getelementptr inbounds %"struct.randomx::ProgramConfiguration", ptr %102, i32 0, i32 4
  store i32 %101, ptr %103, align 4, !tbaa !24
  %104 = getelementptr inbounds %class.randomx_vm, ptr %4, i32 0, i32 2
  %105 = call noundef i64 @_ZN7randomx7Program10getEntropyEi(ptr noundef nonnull align 8 dereferenceable(2176) %104, i32 noundef 13)
  %106 = urem i64 %105, 524288
  %107 = mul i64 %106, 64
  %108 = getelementptr inbounds %class.randomx_vm, ptr %4, i32 0, i32 8
  store i64 %107, ptr %108, align 64, !tbaa !25
  %109 = getelementptr inbounds %class.randomx_vm, ptr %4, i32 0, i32 4
  %110 = getelementptr inbounds %"struct.randomx::ProgramConfiguration", ptr %109, i32 0, i32 0
  %111 = getelementptr inbounds [2 x i64], ptr %110, i64 0, i64 0
  %112 = getelementptr inbounds %class.randomx_vm, ptr %4, i32 0, i32 2
  %113 = call noundef i64 @_ZN7randomx7Program10getEntropyEi(ptr noundef nonnull align 8 dereferenceable(2176) %112, i32 noundef 14)
  %114 = call noundef i64 @_ZN7randomxL12getFloatMaskEm(i64 noundef %113)
  call void @_ZL7store64Pvm(ptr noundef %111, i64 noundef %114)
  %115 = getelementptr inbounds %class.randomx_vm, ptr %4, i32 0, i32 4
  %116 = getelementptr inbounds %"struct.randomx::ProgramConfiguration", ptr %115, i32 0, i32 0
  %117 = getelementptr inbounds [2 x i64], ptr %116, i64 0, i64 1
  %118 = getelementptr inbounds %class.randomx_vm, ptr %4, i32 0, i32 2
  %119 = call noundef i64 @_ZN7randomx7Program10getEntropyEi(ptr noundef nonnull align 8 dereferenceable(2176) %118, i32 noundef 15)
  %120 = call noundef i64 @_ZN7randomxL12getFloatMaskEm(i64 noundef %119)
  call void @_ZL7store64Pvm(ptr noundef %117, i64 noundef %120)
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @_ZL7store64Pvm(ptr noundef, i64 noundef) #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i64 @_ZN7randomxL25getSmallPositiveFloatBitsEm(i64 noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN7randomx7Program10getEntropyEi(ptr noundef nonnull align 8 dereferenceable(2176), i32 noundef) #0 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef i64 @_ZN7randomxL12getFloatMaskEm(i64 noundef) #1

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

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 = { inlinehint 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 = { 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 = { nocallback nofree nosync 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, !14, i64 2532}
!10 = !{!"_ZTS10randomx_vm", !11, i64 64, !12, i64 2240, !13, i64 2496, !15, i64 2528, !6, i64 2544, !7, i64 2552, !16, i64 2560, !17, i64 2568, !7, i64 2608}
!11 = !{!"_ZTSN7randomx7ProgramE", !7, i64 0, !7, i64 128}
!12 = !{!"_ZTSN7randomx12RegisterFileE", !7, i64 0, !7, i64 64, !7, i64 128, !7, i64 192}
!13 = !{!"_ZTSN7randomx20ProgramConfigurationE", !7, i64 0, !14, i64 16, !14, i64 20, !14, i64 24, !14, i64 28}
!14 = !{!"int", !7, i64 0}
!15 = !{!"_ZTSN7randomx15MemoryRegistersE", !14, i64 0, !14, i64 4, !6, i64 8}
!16 = !{!"long", !7, i64 0}
!17 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !18, i64 0, !16, i64 8, !7, i64 16}
!18 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!19 = !{!10, !14, i64 2528}
!20 = !{!16, !16, i64 0}
!21 = !{!10, !14, i64 2512}
!22 = !{!10, !14, i64 2516}
!23 = !{!10, !14, i64 2520}
!24 = !{!10, !14, i64 2524}
!25 = !{!10, !16, i64 2560}


; 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 @_ZN10randomx_vm10initializeEv(ptr noundef nonnull align 64 dereferenceable(2672) %0) local_unnamed_addr #0 align 2 {
  %2 = getelementptr inbounds i8, ptr %0, i64 2432
  %3 = getelementptr inbounds i8, ptr %0, i64 64
  %4 = tail call noundef i64 @_ZN7randomx7Program10getEntropyEi(ptr noundef nonnull align 8 dereferenceable(2176) %3, i32 noundef 0)
  %5 = tail call noundef i64 @_ZN7randomxL25getSmallPositiveFloatBitsEm(i64 noundef %4)
  tail call void @_ZL7store64Pvm(ptr noundef nonnull %2, i64 noundef %5)
  %6 = getelementptr inbounds i8, ptr %0, i64 2440
  %7 = tail call noundef i64 @_ZN7randomx7Program10getEntropyEi(ptr noundef nonnull align 8 dereferenceable(2176) %3, i32 noundef 1)
  %8 = tail call noundef i64 @_ZN7randomxL25getSmallPositiveFloatBitsEm(i64 noundef %7)
  tail call void @_ZL7store64Pvm(ptr noundef nonnull %6, i64 noundef %8)
  %9 = getelementptr inbounds i8, ptr %0, i64 2448
  %10 = tail call noundef i64 @_ZN7randomx7Program10getEntropyEi(ptr noundef nonnull align 8 dereferenceable(2176) %3, i32 noundef 2)
  %11 = tail call noundef i64 @_ZN7randomxL25getSmallPositiveFloatBitsEm(i64 noundef %10)
  tail call void @_ZL7store64Pvm(ptr noundef nonnull %9, i64 noundef %11)
  %12 = getelementptr inbounds i8, ptr %0, i64 2456
  %13 = tail call noundef i64 @_ZN7randomx7Program10getEntropyEi(ptr noundef nonnull align 8 dereferenceable(2176) %3, i32 noundef 3)
  %14 = tail call noundef i64 @_ZN7randomxL25getSmallPositiveFloatBitsEm(i64 noundef %13)
  tail call void @_ZL7store64Pvm(ptr noundef nonnull %12, i64 noundef %14)
  %15 = getelementptr inbounds i8, ptr %0, i64 2464
  %16 = tail call noundef i64 @_ZN7randomx7Program10getEntropyEi(ptr noundef nonnull align 8 dereferenceable(2176) %3, i32 noundef 4)
  %17 = tail call noundef i64 @_ZN7randomxL25getSmallPositiveFloatBitsEm(i64 noundef %16)
  tail call void @_ZL7store64Pvm(ptr noundef nonnull %15, i64 noundef %17)
  %18 = getelementptr inbounds i8, ptr %0, i64 2472
  %19 = tail call noundef i64 @_ZN7randomx7Program10getEntropyEi(ptr noundef nonnull align 8 dereferenceable(2176) %3, i32 noundef 5)
  %20 = tail call noundef i64 @_ZN7randomxL25getSmallPositiveFloatBitsEm(i64 noundef %19)
  tail call void @_ZL7store64Pvm(ptr noundef nonnull %18, i64 noundef %20)
  %21 = getelementptr inbounds i8, ptr %0, i64 2480
  %22 = tail call noundef i64 @_ZN7randomx7Program10getEntropyEi(ptr noundef nonnull align 8 dereferenceable(2176) %3, i32 noundef 6)
  %23 = tail call noundef i64 @_ZN7randomxL25getSmallPositiveFloatBitsEm(i64 noundef %22)
  tail call void @_ZL7store64Pvm(ptr noundef nonnull %21, i64 noundef %23)
  %24 = getelementptr inbounds i8, ptr %0, i64 2488
  %25 = tail call noundef i64 @_ZN7randomx7Program10getEntropyEi(ptr noundef nonnull align 8 dereferenceable(2176) %3, i32 noundef 7)
  %26 = tail call noundef i64 @_ZN7randomxL25getSmallPositiveFloatBitsEm(i64 noundef %25)
  tail call void @_ZL7store64Pvm(ptr noundef nonnull %24, i64 noundef %26)
  %27 = tail call noundef i64 @_ZN7randomx7Program10getEntropyEi(ptr noundef nonnull align 8 dereferenceable(2176) %3, i32 noundef 8)
  %28 = trunc i64 %27 to i32
  %29 = and i32 %28, 2147483584
  %30 = getelementptr inbounds i8, ptr %0, i64 2528
  %31 = getelementptr inbounds i8, ptr %0, i64 2532
  store i32 %29, ptr %31, align 4, !tbaa !5
  %32 = tail call noundef i64 @_ZN7randomx7Program10getEntropyEi(ptr noundef nonnull align 8 dereferenceable(2176) %3, i32 noundef 10)
  %33 = trunc i64 %32 to i32
  store i32 %33, ptr %30, align 32, !tbaa !18
  %34 = tail call noundef i64 @_ZN7randomx7Program10getEntropyEi(ptr noundef nonnull align 8 dereferenceable(2176) %3, i32 noundef 12)
  %35 = trunc i64 %34 to i32
  %36 = and i32 %35, 1
  %37 = getelementptr inbounds i8, ptr %0, i64 2496
  %38 = getelementptr inbounds i8, ptr %0, i64 2512
  store i32 %36, ptr %38, align 16, !tbaa !19
  %39 = lshr i32 %35, 1
  %40 = and i32 %39, 1
  %41 = or disjoint i32 %40, 2
  %42 = getelementptr inbounds i8, ptr %0, i64 2516
  store i32 %41, ptr %42, align 4, !tbaa !20
  %43 = lshr i32 %35, 2
  %44 = and i32 %43, 1
  %45 = or disjoint i32 %44, 4
  %46 = getelementptr inbounds i8, ptr %0, i64 2520
  store i32 %45, ptr %46, align 8, !tbaa !21
  %47 = lshr i32 %35, 3
  %48 = and i32 %47, 1
  %49 = or disjoint i32 %48, 6
  %50 = getelementptr inbounds i8, ptr %0, i64 2524
  store i32 %49, ptr %50, align 4, !tbaa !22
  %51 = tail call noundef i64 @_ZN7randomx7Program10getEntropyEi(ptr noundef nonnull align 8 dereferenceable(2176) %3, i32 noundef 13)
  %52 = shl i64 %51, 6
  %53 = and i64 %52, 33554368
  %54 = getelementptr inbounds i8, ptr %0, i64 2560
  store i64 %53, ptr %54, align 64, !tbaa !23
  %55 = tail call noundef i64 @_ZN7randomx7Program10getEntropyEi(ptr noundef nonnull align 8 dereferenceable(2176) %3, i32 noundef 14)
  %56 = tail call noundef i64 @_ZN7randomxL12getFloatMaskEm(i64 noundef %55)
  tail call void @_ZL7store64Pvm(ptr noundef nonnull %37, i64 noundef %56)
  %57 = getelementptr inbounds i8, ptr %0, i64 2504
  %58 = tail call noundef i64 @_ZN7randomx7Program10getEntropyEi(ptr noundef nonnull align 8 dereferenceable(2176) %3, i32 noundef 15)
  %59 = tail call noundef i64 @_ZN7randomxL12getFloatMaskEm(i64 noundef %58)
  tail call void @_ZL7store64Pvm(ptr noundef nonnull %57, i64 noundef %59)
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @_ZL7store64Pvm(ptr noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i64 @_ZN7randomxL25getSmallPositiveFloatBitsEm(i64 noundef) local_unnamed_addr #2

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef i64 @_ZN7randomxL12getFloatMaskEm(i64 noundef) local_unnamed_addr #1

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 = { inlinehint 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 = { 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" }

!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, !12, i64 2532}
!6 = !{!"_ZTS10randomx_vm", !7, i64 64, !10, i64 2240, !11, i64 2496, !13, i64 2528, !14, i64 2544, !8, i64 2552, !15, i64 2560, !16, i64 2568, !8, i64 2608}
!7 = !{!"_ZTSN7randomx7ProgramE", !8, i64 0, !8, i64 128}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN7randomx12RegisterFileE", !8, i64 0, !8, i64 64, !8, i64 128, !8, i64 192}
!11 = !{!"_ZTSN7randomx20ProgramConfigurationE", !8, i64 0, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28}
!12 = !{!"int", !8, i64 0}
!13 = !{!"_ZTSN7randomx15MemoryRegistersE", !12, i64 0, !12, i64 4, !14, i64 8}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!"long", !8, i64 0}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !17, i64 0, !15, i64 8, !8, i64 16}
!17 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !14, i64 0}
!18 = !{!6, !12, i64 2528}
!19 = !{!6, !12, i64 2512}
!20 = !{!6, !12, i64 2516}
!21 = !{!6, !12, i64 2520}
!22 = !{!6, !12, i64 2524}
!23 = !{!6, !15, i64 2560}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,TailCallElimPass