; LLVM IR from BrunoLevy/learn-fpga :: LiteX/software/Doom/mc1-doom/src (st_stuff)

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

%struct.weaponinfo_t = type { i32, i32, i32, i32, i32, i32 }
%struct.st_number_t = type { i32, i32, i32, i32, ptr, ptr, ptr, i32 }
%struct.st_percent_t = type { %struct.st_number_t, ptr }
%struct.st_binicon_t = type { i32, i32, i32, ptr, ptr, ptr, i32 }
%struct.st_multicon_t = type { i32, i32, i32, ptr, ptr, ptr, i32 }
%struct.player_s = type { ptr, i32, %struct.ticcmd_t, i32, i32, i32, i32, i32, i32, i32, [6 x i32], [6 x i32], i32, [4 x i32], i32, i32, [9 x i32], [4 x i32], [4 x i32], i32, i32, i32, i32, i32, i32, i32, ptr, i32, i32, ptr, i32, i32, i32, [2 x %struct.pspdef_t], i32 }
%struct.ticcmd_t = type { i8, i8, i16, i16, i8, i8 }
%struct.pspdef_t = type { ptr, i32, i32, i32 }

@st_statusbaron = external hidden global i32, align 4
@plyr = external hidden global ptr, align 8
@st_faceindex = external hidden global i32, align 4
@weaponinfo = external global [9 x %struct.weaponinfo_t], align 16
@w_ready = external hidden global %struct.st_number_t, align 8
@keyboxes = external hidden global [3 x i32], align 4
@st_notdeathmatch = external hidden global i32, align 4
@st_armson = external hidden global i32, align 4
@st_fragson = external hidden global i32, align 4
@st_fragscount = external hidden global i32, align 4
@w_ammo = external hidden global [4 x %struct.st_number_t], align 16
@w_maxammo = external hidden global [4 x %struct.st_number_t], align 16
@w_health = external hidden global %struct.st_percent_t, align 8
@w_armor = external hidden global %struct.st_percent_t, align 8
@w_armsbg = external hidden global %struct.st_binicon_t, align 8
@w_arms = external hidden global [6 x %struct.st_multicon_t], align 16
@w_faces = external hidden global %struct.st_multicon_t, align 8
@w_keyboxes = external hidden global [3 x %struct.st_multicon_t], align 16
@w_frags = external hidden global %struct.st_number_t, align 8
@tallnum = external hidden global [10 x ptr], align 16
@shortnum = external hidden global [10 x ptr], align 16
@tallpercent = external hidden global ptr, align 8
@keys = external hidden global [6 x ptr], align 16
@armsbg = external hidden global ptr, align 8
@arms = external hidden global [6 x [2 x ptr]], align 16
@faces = external hidden global [42 x ptr], 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: 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 void @ST_createWidgets() #1 {
  %1 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #3
  %2 = load ptr, ptr @plyr, align 8, !tbaa !5
  %3 = getelementptr inbounds %struct.player_s, ptr %2, i32 0, i32 17
  %4 = load ptr, ptr @plyr, align 8, !tbaa !5
  %5 = getelementptr inbounds %struct.player_s, ptr %4, i32 0, i32 14
  %6 = load i32, ptr %5, align 4, !tbaa !9
  %7 = zext i32 %6 to i64
  %8 = getelementptr inbounds [9 x %struct.weaponinfo_t], ptr @weaponinfo, i64 0, i64 %7
  %9 = getelementptr inbounds %struct.weaponinfo_t, ptr %8, i32 0, i32 0
  %10 = load i32, ptr %9, align 8, !tbaa !14
  %11 = zext i32 %10 to i64
  %12 = getelementptr inbounds [4 x i32], ptr %3, i64 0, i64 %11
  call void @STlib_initNum(ptr noundef @w_ready, i32 noundef 44, i32 noundef 171, ptr noundef @tallnum, ptr noundef %12, ptr noundef @st_statusbaron, i32 noundef 3)
  %13 = load ptr, ptr @plyr, align 8, !tbaa !5
  %14 = getelementptr inbounds %struct.player_s, ptr %13, i32 0, i32 14
  %15 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %15, ptr getelementptr inbounds (%struct.st_number_t, ptr @w_ready, i32 0, i32 7), align 8, !tbaa !16
  %16 = load ptr, ptr @plyr, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.player_s, ptr %16, i32 0, i32 7
  %18 = load ptr, ptr @tallpercent, align 8, !tbaa !5
  call void @STlib_initPercent(ptr noundef @w_health, i32 noundef 90, i32 noundef 171, ptr noundef @tallnum, ptr noundef %17, ptr noundef @st_statusbaron, ptr noundef %18)
  %19 = load ptr, ptr @armsbg, align 8, !tbaa !5
  call void @STlib_initBinIcon(ptr noundef @w_armsbg, i32 noundef 104, i32 noundef 168, ptr noundef %19, ptr noundef @st_notdeathmatch, ptr noundef @st_statusbaron)
  store i32 0, ptr %1, align 4, !tbaa !18
  br label %20

20:                                               ; preds = %45, %0
  %21 = load i32, ptr %1, align 4, !tbaa !18
  %22 = icmp slt i32 %21, 6
  br i1 %22, label %23, label %48

23:                                               ; preds = %20
  %24 = load i32, ptr %1, align 4, !tbaa !18
  %25 = sext i32 %24 to i64
  %26 = getelementptr inbounds [6 x %struct.st_multicon_t], ptr @w_arms, i64 0, i64 %25
  %27 = load i32, ptr %1, align 4, !tbaa !18
  %28 = srem i32 %27, 3
  %29 = mul nsw i32 %28, 12
  %30 = add nsw i32 111, %29
  %31 = load i32, ptr %1, align 4, !tbaa !18
  %32 = sdiv i32 %31, 3
  %33 = mul nsw i32 %32, 10
  %34 = add nsw i32 172, %33
  %35 = load i32, ptr %1, align 4, !tbaa !18
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds [6 x [2 x ptr]], ptr @arms, i64 0, i64 %36
  %38 = getelementptr inbounds [2 x ptr], ptr %37, i64 0, i64 0
  %39 = load ptr, ptr @plyr, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.player_s, ptr %39, i32 0, i32 16
  %41 = load i32, ptr %1, align 4, !tbaa !18
  %42 = add nsw i32 %41, 1
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [9 x i32], ptr %40, i64 0, i64 %43
  call void @STlib_initMultIcon(ptr noundef %26, i32 noundef %30, i32 noundef %34, ptr noundef %38, ptr noundef %44, ptr noundef @st_armson)
  br label %45

45:                                               ; preds = %23
  %46 = load i32, ptr %1, align 4, !tbaa !18
  %47 = add nsw i32 %46, 1
  store i32 %47, ptr %1, align 4, !tbaa !18
  br label %20, !llvm.loop !19

48:                                               ; preds = %20
  call void @STlib_initNum(ptr noundef @w_frags, i32 noundef 138, i32 noundef 171, ptr noundef @tallnum, ptr noundef @st_fragscount, ptr noundef @st_fragson, i32 noundef 2)
  call void @STlib_initMultIcon(ptr noundef @w_faces, i32 noundef 143, i32 noundef 168, ptr noundef @faces, ptr noundef @st_faceindex, ptr noundef @st_statusbaron)
  %49 = load ptr, ptr @plyr, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.player_s, ptr %49, i32 0, i32 8
  %51 = load ptr, ptr @tallpercent, align 8, !tbaa !5
  call void @STlib_initPercent(ptr noundef @w_armor, i32 noundef 221, i32 noundef 171, ptr noundef @tallnum, ptr noundef %50, ptr noundef @st_statusbaron, ptr noundef %51)
  call void @STlib_initMultIcon(ptr noundef @w_keyboxes, i32 noundef 239, i32 noundef 171, ptr noundef @keys, ptr noundef @keyboxes, ptr noundef @st_statusbaron)
  call void @STlib_initMultIcon(ptr noundef getelementptr inbounds ([3 x %struct.st_multicon_t], ptr @w_keyboxes, i64 0, i64 1), i32 noundef 239, i32 noundef 181, ptr noundef @keys, ptr noundef getelementptr inbounds ([3 x i32], ptr @keyboxes, i64 0, i64 1), ptr noundef @st_statusbaron)
  call void @STlib_initMultIcon(ptr noundef getelementptr inbounds ([3 x %struct.st_multicon_t], ptr @w_keyboxes, i64 0, i64 2), i32 noundef 239, i32 noundef 191, ptr noundef @keys, ptr noundef getelementptr inbounds ([3 x i32], ptr @keyboxes, i64 0, i64 2), ptr noundef @st_statusbaron)
  %52 = load ptr, ptr @plyr, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.player_s, ptr %52, i32 0, i32 17
  %54 = getelementptr inbounds [4 x i32], ptr %53, i64 0, i64 0
  call void @STlib_initNum(ptr noundef @w_ammo, i32 noundef 288, i32 noundef 173, ptr noundef @shortnum, ptr noundef %54, ptr noundef @st_statusbaron, i32 noundef 3)
  %55 = load ptr, ptr @plyr, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.player_s, ptr %55, i32 0, i32 17
  %57 = getelementptr inbounds [4 x i32], ptr %56, i64 0, i64 1
  call void @STlib_initNum(ptr noundef getelementptr inbounds ([4 x %struct.st_number_t], ptr @w_ammo, i64 0, i64 1), i32 noundef 288, i32 noundef 179, ptr noundef @shortnum, ptr noundef %57, ptr noundef @st_statusbaron, i32 noundef 3)
  %58 = load ptr, ptr @plyr, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.player_s, ptr %58, i32 0, i32 17
  %60 = getelementptr inbounds [4 x i32], ptr %59, i64 0, i64 2
  call void @STlib_initNum(ptr noundef getelementptr inbounds ([4 x %struct.st_number_t], ptr @w_ammo, i64 0, i64 2), i32 noundef 288, i32 noundef 191, ptr noundef @shortnum, ptr noundef %60, ptr noundef @st_statusbaron, i32 noundef 3)
  %61 = load ptr, ptr @plyr, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.player_s, ptr %61, i32 0, i32 17
  %63 = getelementptr inbounds [4 x i32], ptr %62, i64 0, i64 3
  call void @STlib_initNum(ptr noundef getelementptr inbounds ([4 x %struct.st_number_t], ptr @w_ammo, i64 0, i64 3), i32 noundef 288, i32 noundef 185, ptr noundef @shortnum, ptr noundef %63, ptr noundef @st_statusbaron, i32 noundef 3)
  %64 = load ptr, ptr @plyr, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.player_s, ptr %64, i32 0, i32 18
  %66 = getelementptr inbounds [4 x i32], ptr %65, i64 0, i64 0
  call void @STlib_initNum(ptr noundef @w_maxammo, i32 noundef 314, i32 noundef 173, ptr noundef @shortnum, ptr noundef %66, ptr noundef @st_statusbaron, i32 noundef 3)
  %67 = load ptr, ptr @plyr, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.player_s, ptr %67, i32 0, i32 18
  %69 = getelementptr inbounds [4 x i32], ptr %68, i64 0, i64 1
  call void @STlib_initNum(ptr noundef getelementptr inbounds ([4 x %struct.st_number_t], ptr @w_maxammo, i64 0, i64 1), i32 noundef 314, i32 noundef 179, ptr noundef @shortnum, ptr noundef %69, ptr noundef @st_statusbaron, i32 noundef 3)
  %70 = load ptr, ptr @plyr, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.player_s, ptr %70, i32 0, i32 18
  %72 = getelementptr inbounds [4 x i32], ptr %71, i64 0, i64 2
  call void @STlib_initNum(ptr noundef getelementptr inbounds ([4 x %struct.st_number_t], ptr @w_maxammo, i64 0, i64 2), i32 noundef 314, i32 noundef 191, ptr noundef @shortnum, ptr noundef %72, ptr noundef @st_statusbaron, i32 noundef 3)
  %73 = load ptr, ptr @plyr, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.player_s, ptr %73, i32 0, i32 18
  %75 = getelementptr inbounds [4 x i32], ptr %74, i64 0, i64 3
  call void @STlib_initNum(ptr noundef getelementptr inbounds ([4 x %struct.st_number_t], ptr @w_maxammo, i64 0, i64 3), i32 noundef 314, i32 noundef 185, ptr noundef @shortnum, ptr noundef %75, ptr noundef @st_statusbaron, i32 noundef 3)
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #3
  ret void
}

declare void @STlib_initNum(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #2

declare void @STlib_initPercent(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

declare void @STlib_initBinIcon(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #2

declare void @STlib_initMultIcon(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 116}
!10 = !{!"player_s", !6, i64 0, !11, i64 8, !12, i64 12, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !7, i64 48, !7, i64 72, !11, i64 96, !7, i64 100, !11, i64 116, !11, i64 120, !7, i64 124, !7, i64 160, !7, i64 176, !11, i64 192, !11, i64 196, !11, i64 200, !11, i64 204, !11, i64 208, !11, i64 212, !11, i64 216, !6, i64 224, !11, i64 232, !11, i64 236, !6, i64 240, !11, i64 248, !11, i64 252, !11, i64 256, !7, i64 264, !11, i64 312}
!11 = !{!"int", !7, i64 0}
!12 = !{!"", !7, i64 0, !7, i64 1, !13, i64 2, !13, i64 4, !7, i64 6, !7, i64 7}
!13 = !{!"short", !7, i64 0}
!14 = !{!15, !11, i64 0}
!15 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20}
!16 = !{!17, !11, i64 40}
!17 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !6, i64 16, !6, i64 24, !6, i64 32, !11, i64 40}
!18 = !{!11, !11, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"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"

%struct.weaponinfo_t = type { i32, i32, i32, i32, i32, i32 }
%struct.st_number_t = type { i32, i32, i32, i32, ptr, ptr, ptr, i32 }
%struct.st_percent_t = type { %struct.st_number_t, ptr }
%struct.st_binicon_t = type { i32, i32, i32, ptr, ptr, ptr, i32 }
%struct.st_multicon_t = type { i32, i32, i32, ptr, ptr, ptr, i32 }

@st_statusbaron = external hidden global i32, align 4
@plyr = external hidden local_unnamed_addr global ptr, align 8
@st_faceindex = external hidden global i32, align 4
@weaponinfo = external local_unnamed_addr global [9 x %struct.weaponinfo_t], align 16
@w_ready = external hidden global %struct.st_number_t, align 8
@keyboxes = external hidden global [3 x i32], align 4
@st_notdeathmatch = external hidden global i32, align 4
@st_armson = external hidden global i32, align 4
@st_fragson = external hidden global i32, align 4
@st_fragscount = external hidden global i32, align 4
@w_ammo = external hidden global [4 x %struct.st_number_t], align 16
@w_maxammo = external hidden global [4 x %struct.st_number_t], align 16
@w_health = external hidden global %struct.st_percent_t, align 8
@w_armor = external hidden global %struct.st_percent_t, align 8
@w_armsbg = external hidden global %struct.st_binicon_t, align 8
@w_arms = external hidden global [6 x %struct.st_multicon_t], align 16
@w_faces = external hidden global %struct.st_multicon_t, align 8
@w_keyboxes = external hidden global [3 x %struct.st_multicon_t], align 16
@w_frags = external hidden global %struct.st_number_t, align 8
@tallnum = external hidden global [10 x ptr], align 16
@shortnum = external hidden global [10 x ptr], align 16
@tallpercent = external hidden local_unnamed_addr global ptr, align 8
@keys = external hidden global [6 x ptr], align 16
@armsbg = external hidden local_unnamed_addr global ptr, align 8
@arms = external hidden global [6 x [2 x ptr]], align 16
@faces = external hidden global [42 x ptr], align 16

; Function Attrs: nounwind uwtable
define dso_local void @ST_createWidgets() local_unnamed_addr #0 {
  %1 = load ptr, ptr @plyr, align 8, !tbaa !5
  %2 = getelementptr inbounds i8, ptr %1, i64 160
  %3 = getelementptr inbounds i8, ptr %1, i64 116
  %4 = load i32, ptr %3, align 4, !tbaa !9
  %5 = zext i32 %4 to i64
  %6 = getelementptr inbounds [9 x %struct.weaponinfo_t], ptr @weaponinfo, i64 0, i64 %5
  %7 = load i32, ptr %6, align 8, !tbaa !14
  %8 = zext i32 %7 to i64
  %9 = getelementptr inbounds [4 x i32], ptr %2, i64 0, i64 %8
  tail call void @STlib_initNum(ptr noundef nonnull @w_ready, i32 noundef 44, i32 noundef 171, ptr noundef nonnull @tallnum, ptr noundef nonnull %9, ptr noundef nonnull @st_statusbaron, i32 noundef 3) #2
  %10 = load ptr, ptr @plyr, align 8, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %10, i64 116
  %12 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %12, ptr getelementptr inbounds (i8, ptr @w_ready, i64 40), align 8, !tbaa !16
  %13 = getelementptr inbounds i8, ptr %10, i64 36
  %14 = load ptr, ptr @tallpercent, align 8, !tbaa !5
  tail call void @STlib_initPercent(ptr noundef nonnull @w_health, i32 noundef 90, i32 noundef 171, ptr noundef nonnull @tallnum, ptr noundef nonnull %13, ptr noundef nonnull @st_statusbaron, ptr noundef %14) #2
  %15 = load ptr, ptr @armsbg, align 8, !tbaa !5
  tail call void @STlib_initBinIcon(ptr noundef nonnull @w_armsbg, i32 noundef 104, i32 noundef 168, ptr noundef %15, ptr noundef nonnull @st_notdeathmatch, ptr noundef nonnull @st_statusbaron) #2
  %16 = load ptr, ptr @plyr, align 8, !tbaa !5
  %17 = getelementptr inbounds i8, ptr %16, i64 128
  tail call void @STlib_initMultIcon(ptr noundef nonnull @w_arms, i32 noundef 111, i32 noundef 172, ptr noundef nonnull @arms, ptr noundef nonnull %17, ptr noundef nonnull @st_armson) #2
  %18 = load ptr, ptr @plyr, align 8, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %18, i64 132
  tail call void @STlib_initMultIcon(ptr noundef nonnull getelementptr inbounds (i8, ptr @w_arms, i64 48), i32 noundef 123, i32 noundef 172, ptr noundef nonnull getelementptr inbounds (i8, ptr @arms, i64 16), ptr noundef nonnull %19, ptr noundef nonnull @st_armson) #2
  %20 = load ptr, ptr @plyr, align 8, !tbaa !5
  %21 = getelementptr inbounds i8, ptr %20, i64 136
  tail call void @STlib_initMultIcon(ptr noundef nonnull getelementptr inbounds (i8, ptr @w_arms, i64 96), i32 noundef 135, i32 noundef 172, ptr noundef nonnull getelementptr inbounds (i8, ptr @arms, i64 32), ptr noundef nonnull %21, ptr noundef nonnull @st_armson) #2
  %22 = load ptr, ptr @plyr, align 8, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %22, i64 140
  tail call void @STlib_initMultIcon(ptr noundef nonnull getelementptr inbounds (i8, ptr @w_arms, i64 144), i32 noundef 111, i32 noundef 182, ptr noundef nonnull getelementptr inbounds (i8, ptr @arms, i64 48), ptr noundef nonnull %23, ptr noundef nonnull @st_armson) #2
  %24 = load ptr, ptr @plyr, align 8, !tbaa !5
  %25 = getelementptr inbounds i8, ptr %24, i64 144
  tail call void @STlib_initMultIcon(ptr noundef nonnull getelementptr inbounds (i8, ptr @w_arms, i64 192), i32 noundef 123, i32 noundef 182, ptr noundef nonnull getelementptr inbounds (i8, ptr @arms, i64 64), ptr noundef nonnull %25, ptr noundef nonnull @st_armson) #2
  %26 = load ptr, ptr @plyr, align 8, !tbaa !5
  %27 = getelementptr inbounds i8, ptr %26, i64 148
  tail call void @STlib_initMultIcon(ptr noundef nonnull getelementptr inbounds (i8, ptr @w_arms, i64 240), i32 noundef 135, i32 noundef 182, ptr noundef nonnull getelementptr inbounds (i8, ptr @arms, i64 80), ptr noundef nonnull %27, ptr noundef nonnull @st_armson) #2
  tail call void @STlib_initNum(ptr noundef nonnull @w_frags, i32 noundef 138, i32 noundef 171, ptr noundef nonnull @tallnum, ptr noundef nonnull @st_fragscount, ptr noundef nonnull @st_fragson, i32 noundef 2) #2
  tail call void @STlib_initMultIcon(ptr noundef nonnull @w_faces, i32 noundef 143, i32 noundef 168, ptr noundef nonnull @faces, ptr noundef nonnull @st_faceindex, ptr noundef nonnull @st_statusbaron) #2
  %28 = load ptr, ptr @plyr, align 8, !tbaa !5
  %29 = getelementptr inbounds i8, ptr %28, i64 40
  %30 = load ptr, ptr @tallpercent, align 8, !tbaa !5
  tail call void @STlib_initPercent(ptr noundef nonnull @w_armor, i32 noundef 221, i32 noundef 171, ptr noundef nonnull @tallnum, ptr noundef nonnull %29, ptr noundef nonnull @st_statusbaron, ptr noundef %30) #2
  tail call void @STlib_initMultIcon(ptr noundef nonnull @w_keyboxes, i32 noundef 239, i32 noundef 171, ptr noundef nonnull @keys, ptr noundef nonnull @keyboxes, ptr noundef nonnull @st_statusbaron) #2
  tail call void @STlib_initMultIcon(ptr noundef nonnull getelementptr inbounds (i8, ptr @w_keyboxes, i64 48), i32 noundef 239, i32 noundef 181, ptr noundef nonnull @keys, ptr noundef nonnull getelementptr inbounds (i8, ptr @keyboxes, i64 4), ptr noundef nonnull @st_statusbaron) #2
  tail call void @STlib_initMultIcon(ptr noundef nonnull getelementptr inbounds (i8, ptr @w_keyboxes, i64 96), i32 noundef 239, i32 noundef 191, ptr noundef nonnull @keys, ptr noundef nonnull getelementptr inbounds (i8, ptr @keyboxes, i64 8), ptr noundef nonnull @st_statusbaron) #2
  %31 = load ptr, ptr @plyr, align 8, !tbaa !5
  %32 = getelementptr inbounds i8, ptr %31, i64 160
  tail call void @STlib_initNum(ptr noundef nonnull @w_ammo, i32 noundef 288, i32 noundef 173, ptr noundef nonnull @shortnum, ptr noundef nonnull %32, ptr noundef nonnull @st_statusbaron, i32 noundef 3) #2
  %33 = load ptr, ptr @plyr, align 8, !tbaa !5
  %34 = getelementptr inbounds i8, ptr %33, i64 164
  tail call void @STlib_initNum(ptr noundef nonnull getelementptr inbounds (i8, ptr @w_ammo, i64 48), i32 noundef 288, i32 noundef 179, ptr noundef nonnull @shortnum, ptr noundef nonnull %34, ptr noundef nonnull @st_statusbaron, i32 noundef 3) #2
  %35 = load ptr, ptr @plyr, align 8, !tbaa !5
  %36 = getelementptr inbounds i8, ptr %35, i64 168
  tail call void @STlib_initNum(ptr noundef nonnull getelementptr inbounds (i8, ptr @w_ammo, i64 96), i32 noundef 288, i32 noundef 191, ptr noundef nonnull @shortnum, ptr noundef nonnull %36, ptr noundef nonnull @st_statusbaron, i32 noundef 3) #2
  %37 = load ptr, ptr @plyr, align 8, !tbaa !5
  %38 = getelementptr inbounds i8, ptr %37, i64 172
  tail call void @STlib_initNum(ptr noundef nonnull getelementptr inbounds (i8, ptr @w_ammo, i64 144), i32 noundef 288, i32 noundef 185, ptr noundef nonnull @shortnum, ptr noundef nonnull %38, ptr noundef nonnull @st_statusbaron, i32 noundef 3) #2
  %39 = load ptr, ptr @plyr, align 8, !tbaa !5
  %40 = getelementptr inbounds i8, ptr %39, i64 176
  tail call void @STlib_initNum(ptr noundef nonnull @w_maxammo, i32 noundef 314, i32 noundef 173, ptr noundef nonnull @shortnum, ptr noundef nonnull %40, ptr noundef nonnull @st_statusbaron, i32 noundef 3) #2
  %41 = load ptr, ptr @plyr, align 8, !tbaa !5
  %42 = getelementptr inbounds i8, ptr %41, i64 180
  tail call void @STlib_initNum(ptr noundef nonnull getelementptr inbounds (i8, ptr @w_maxammo, i64 48), i32 noundef 314, i32 noundef 179, ptr noundef nonnull @shortnum, ptr noundef nonnull %42, ptr noundef nonnull @st_statusbaron, i32 noundef 3) #2
  %43 = load ptr, ptr @plyr, align 8, !tbaa !5
  %44 = getelementptr inbounds i8, ptr %43, i64 184
  tail call void @STlib_initNum(ptr noundef nonnull getelementptr inbounds (i8, ptr @w_maxammo, i64 96), i32 noundef 314, i32 noundef 191, ptr noundef nonnull @shortnum, ptr noundef nonnull %44, ptr noundef nonnull @st_statusbaron, i32 noundef 3) #2
  %45 = load ptr, ptr @plyr, align 8, !tbaa !5
  %46 = getelementptr inbounds i8, ptr %45, i64 188
  tail call void @STlib_initNum(ptr noundef nonnull getelementptr inbounds (i8, ptr @w_maxammo, i64 144), i32 noundef 314, i32 noundef 185, ptr noundef nonnull @shortnum, ptr noundef nonnull %46, ptr noundef nonnull @st_statusbaron, i32 noundef 3) #2
  ret void
}

declare void @STlib_initNum(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

declare void @STlib_initPercent(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @STlib_initBinIcon(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @STlib_initMultIcon(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

!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, !11, i64 116}
!10 = !{!"player_s", !6, i64 0, !11, i64 8, !12, i64 12, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !7, i64 48, !7, i64 72, !11, i64 96, !7, i64 100, !11, i64 116, !11, i64 120, !7, i64 124, !7, i64 160, !7, i64 176, !11, i64 192, !11, i64 196, !11, i64 200, !11, i64 204, !11, i64 208, !11, i64 212, !11, i64 216, !6, i64 224, !11, i64 232, !11, i64 236, !6, i64 240, !11, i64 248, !11, i64 252, !11, i64 256, !7, i64 264, !11, i64 312}
!11 = !{!"int", !7, i64 0}
!12 = !{!"", !7, i64 0, !7, i64 1, !13, i64 2, !13, i64 4, !7, i64 6, !7, i64 7}
!13 = !{!"short", !7, i64 0}
!14 = !{!15, !11, i64 0}
!15 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20}
!16 = !{!17, !11, i64 40}
!17 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !6, i64 16, !6, i64 24, !6, i64 32, !11, i64 40}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,SROAPass,SimplifyCFGPass,TailCallElimPass