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

; 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.state_t = type { i32, i64, i64, %union.actionf_t, i32, i64, i64 }
%union.actionf_t = type { ptr }
%struct.weaponinfo_t = type { i32, i32, i32, i32, i32, 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 }
%struct.mobj_s = type { %struct.thinker_s, i32, i32, i32, ptr, ptr, i32, i32, i32, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, i32, ptr, i32, i32, i32, i32, ptr, i32, i32, ptr, i32, %struct.mapthing_t, ptr }
%struct.thinker_s = type { ptr, ptr, %union.actionf_t }
%struct.mapthing_t = type { i16, i16, i16, i16, i16 }

@states = external global [967 x %struct.state_t], align 16
@leveltime = external global i32, align 4
@finesine = external global [10240 x i32], align 16
@weaponinfo = external global [9 x %struct.weaponinfo_t], align 16
@finecosine = external global ptr, align 8

; Function Attrs: nounwind uwtable
declare dso_local void @P_SetPsprite(ptr noundef, i32 noundef, i32 noundef) #0

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @FixedMul(i32 noundef, i32 noundef) #2

declare void @S_StartSound(ptr noundef, i32 noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local void @P_FireWeapon(ptr noundef) #0

declare i32 @P_SetMobjState(ptr noundef, i32 noundef) #3

; Function Attrs: nounwind uwtable
define dso_local void @A_WeaponReady(ptr noundef %0, ptr noundef %1) #0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  %8 = load ptr, ptr %3, align 8, !tbaa !5
  %9 = getelementptr inbounds %struct.player_s, ptr %8, i32 0, i32 0
  %10 = load ptr, ptr %9, align 8, !tbaa !9
  %11 = getelementptr inbounds %struct.mobj_s, ptr %10, i32 0, i32 23
  %12 = load ptr, ptr %11, align 8, !tbaa !14
  %13 = icmp eq ptr %12, getelementptr inbounds ([967 x %struct.state_t], ptr @states, i64 0, i64 154)
  br i1 %13, label %21, label %14

14:                                               ; preds = %2
  %15 = load ptr, ptr %3, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.player_s, ptr %15, i32 0, i32 0
  %17 = load ptr, ptr %16, align 8, !tbaa !9
  %18 = getelementptr inbounds %struct.mobj_s, ptr %17, i32 0, i32 23
  %19 = load ptr, ptr %18, align 8, !tbaa !14
  %20 = icmp eq ptr %19, getelementptr inbounds ([967 x %struct.state_t], ptr @states, i64 0, i64 155)
  br i1 %20, label %21, label %26

21:                                               ; preds = %14, %2
  %22 = load ptr, ptr %3, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.player_s, ptr %22, i32 0, i32 0
  %24 = load ptr, ptr %23, align 8, !tbaa !9
  %25 = call i32 @P_SetMobjState(ptr noundef %24, i32 noundef 149)
  br label %26

26:                                               ; preds = %21, %14
  %27 = load ptr, ptr %3, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.player_s, ptr %27, i32 0, i32 14
  %29 = load i32, ptr %28, align 4, !tbaa !18
  %30 = icmp eq i32 %29, 7
  br i1 %30, label %31, label %40

31:                                               ; preds = %26
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.pspdef_t, ptr %32, i32 0, i32 0
  %34 = load ptr, ptr %33, align 8, !tbaa !19
  %35 = icmp eq ptr %34, getelementptr inbounds ([967 x %struct.state_t], ptr @states, i64 0, i64 67)
  br i1 %35, label %36, label %40

36:                                               ; preds = %31
  %37 = load ptr, ptr %3, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.player_s, ptr %37, i32 0, i32 0
  %39 = load ptr, ptr %38, align 8, !tbaa !9
  call void @S_StartSound(ptr noundef %39, i32 noundef 11)
  br label %40

40:                                               ; preds = %36, %31, %26
  %41 = load ptr, ptr %3, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.player_s, ptr %41, i32 0, i32 15
  %43 = load i32, ptr %42, align 8, !tbaa !21
  %44 = icmp ne i32 %43, 10
  br i1 %44, label %50, label %45

45:                                               ; preds = %40
  %46 = load ptr, ptr %3, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.player_s, ptr %46, i32 0, i32 7
  %48 = load i32, ptr %47, align 4, !tbaa !22
  %49 = icmp ne i32 %48, 0
  br i1 %49, label %60, label %50

50:                                               ; preds = %45, %40
  %51 = load ptr, ptr %3, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.player_s, ptr %51, i32 0, i32 14
  %53 = load i32, ptr %52, align 4, !tbaa !18
  %54 = zext i32 %53 to i64
  %55 = getelementptr inbounds [9 x %struct.weaponinfo_t], ptr @weaponinfo, i64 0, i64 %54
  %56 = getelementptr inbounds %struct.weaponinfo_t, ptr %55, i32 0, i32 2
  %57 = load i32, ptr %56, align 8, !tbaa !23
  store i32 %57, ptr %5, align 4, !tbaa !25
  %58 = load ptr, ptr %3, align 8, !tbaa !5
  %59 = load i32, ptr %5, align 4, !tbaa !25
  call void @P_SetPsprite(ptr noundef %58, i32 noundef 0, i32 noundef %59)
  store i32 1, ptr %7, align 4
  br label %120

60:                                               ; preds = %45
  %61 = load ptr, ptr %3, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.player_s, ptr %61, i32 0, i32 2
  %63 = getelementptr inbounds %struct.ticcmd_t, ptr %62, i32 0, i32 5
  %64 = load i8, ptr %63, align 1, !tbaa !26
  %65 = zext i8 %64 to i32
  %66 = and i32 %65, 1
  %67 = icmp ne i32 %66, 0
  br i1 %67, label %68, label %88

68:                                               ; preds = %60
  %69 = load ptr, ptr %3, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.player_s, ptr %69, i32 0, i32 19
  %71 = load i32, ptr %70, align 8, !tbaa !27
  %72 = icmp ne i32 %71, 0
  br i1 %72, label %73, label %83

73:                                               ; preds = %68
  %74 = load ptr, ptr %3, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.player_s, ptr %74, i32 0, i32 14
  %76 = load i32, ptr %75, align 4, !tbaa !18
  %77 = icmp ne i32 %76, 4
  br i1 %77, label %78, label %87

78:                                               ; preds = %73
  %79 = load ptr, ptr %3, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.player_s, ptr %79, i32 0, i32 14
  %81 = load i32, ptr %80, align 4, !tbaa !18
  %82 = icmp ne i32 %81, 6
  br i1 %82, label %83, label %87

83:                                               ; preds = %78, %68
  %84 = load ptr, ptr %3, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.player_s, ptr %84, i32 0, i32 19
  store i32 1, ptr %85, align 8, !tbaa !27
  %86 = load ptr, ptr %3, align 8, !tbaa !5
  call void @P_FireWeapon(ptr noundef %86)
  store i32 1, ptr %7, align 4
  br label %120

87:                                               ; preds = %78, %73
  br label %91

88:                                               ; preds = %60
  %89 = load ptr, ptr %3, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.player_s, ptr %89, i32 0, i32 19
  store i32 0, ptr %90, align 8, !tbaa !27
  br label %91

91:                                               ; preds = %88, %87
  %92 = load i32, ptr @leveltime, align 4, !tbaa !25
  %93 = mul nsw i32 128, %92
  %94 = and i32 %93, 8191
  store i32 %94, ptr %6, align 4, !tbaa !25
  %95 = load ptr, ptr %3, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.player_s, ptr %95, i32 0, i32 6
  %97 = load i32, ptr %96, align 8, !tbaa !28
  %98 = load ptr, ptr @finecosine, align 8, !tbaa !5
  %99 = load i32, ptr %6, align 4, !tbaa !25
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds i32, ptr %98, i64 %100
  %102 = load i32, ptr %101, align 4, !tbaa !25
  %103 = call i32 @FixedMul(i32 noundef %97, i32 noundef %102)
  %104 = add nsw i32 65536, %103
  %105 = load ptr, ptr %4, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.pspdef_t, ptr %105, i32 0, i32 2
  store i32 %104, ptr %106, align 4, !tbaa !29
  %107 = load i32, ptr %6, align 4, !tbaa !25
  %108 = and i32 %107, 4095
  store i32 %108, ptr %6, align 4, !tbaa !25
  %109 = load ptr, ptr %3, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.player_s, ptr %109, i32 0, i32 6
  %111 = load i32, ptr %110, align 8, !tbaa !28
  %112 = load i32, ptr %6, align 4, !tbaa !25
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds [10240 x i32], ptr @finesine, i64 0, i64 %113
  %115 = load i32, ptr %114, align 4, !tbaa !25
  %116 = call i32 @FixedMul(i32 noundef %111, i32 noundef %115)
  %117 = add nsw i32 2097152, %116
  %118 = load ptr, ptr %4, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.pspdef_t, ptr %118, i32 0, i32 3
  store i32 %117, ptr %119, align 8, !tbaa !30
  store i32 0, ptr %7, align 4
  br label %120

120:                                              ; preds = %91, %83, %50
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  %121 = load i32, ptr %7, align 4
  switch i32 %121, label %123 [
    i32 0, label %122
    i32 1, label %122
  ]

122:                                              ; preds = %120, %120
  ret void

123:                                              ; preds = %120
  unreachable
}

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint 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/C++ TBAA"}
!9 = !{!10, !6, i64 0}
!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, !6, i64 152}
!15 = !{!"mobj_s", !16, i64 0, !11, i64 24, !11, i64 28, !11, i64 32, !6, i64 40, !6, i64 48, !11, i64 56, !11, i64 60, !11, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !11, i64 96, !11, i64 100, !11, i64 104, !11, i64 108, !11, i64 112, !11, i64 116, !11, i64 120, !11, i64 124, !11, i64 128, !6, i64 136, !11, i64 144, !6, i64 152, !11, i64 160, !11, i64 164, !11, i64 168, !11, i64 172, !6, i64 176, !11, i64 184, !11, i64 188, !6, i64 192, !11, i64 200, !17, i64 204, !6, i64 216}
!16 = !{!"thinker_s", !6, i64 0, !6, i64 8, !7, i64 16}
!17 = !{!"", !13, i64 0, !13, i64 2, !13, i64 4, !13, i64 6, !13, i64 8}
!18 = !{!10, !11, i64 116}
!19 = !{!20, !6, i64 0}
!20 = !{!"", !6, i64 0, !11, i64 8, !11, i64 12, !11, i64 16}
!21 = !{!10, !11, i64 120}
!22 = !{!10, !11, i64 36}
!23 = !{!24, !11, i64 8}
!24 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20}
!25 = !{!11, !11, i64 0}
!26 = !{!10, !7, i64 19}
!27 = !{!10, !11, i64 192}
!28 = !{!10, !11, i64 32}
!29 = !{!20, !11, i64 12}
!30 = !{!20, !11, i64 16}


; 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.state_t = type { i32, i64, i64, %union.actionf_t, i32, i64, i64 }
%union.actionf_t = type { ptr }
%struct.weaponinfo_t = type { i32, i32, i32, i32, i32, i32 }

@states = external global [967 x %struct.state_t], align 16
@leveltime = external local_unnamed_addr global i32, align 4
@finesine = external local_unnamed_addr global [10240 x i32], align 16
@weaponinfo = external local_unnamed_addr global [9 x %struct.weaponinfo_t], align 16
@finecosine = external local_unnamed_addr global ptr, align 8

; Function Attrs: nounwind uwtable
declare dso_local void @P_SetPsprite(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @FixedMul(i32 noundef, i32 noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
declare dso_local void @P_FireWeapon(ptr noundef) local_unnamed_addr #0

declare i32 @P_SetMobjState(ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local void @A_WeaponReady(ptr noundef %0, ptr nocapture noundef %1) local_unnamed_addr #0 {
  %3 = load ptr, ptr %0, align 8, !tbaa !5
  %4 = getelementptr inbounds i8, ptr %3, i64 152
  %5 = load ptr, ptr %4, align 8, !tbaa !13
  %6 = icmp eq ptr %5, getelementptr inbounds (i8, ptr @states, i64 8624)
  %7 = icmp eq ptr %5, getelementptr inbounds (i8, ptr @states, i64 8680)
  %or.cond = select i1 %6, i1 true, i1 %7
  br i1 %or.cond, label %8, label %10

8:                                                ; preds = %2
  %9 = tail call i32 @P_SetMobjState(ptr noundef nonnull %3, i32 noundef 149) #3
  br label %10

10:                                               ; preds = %2, %8
  %11 = getelementptr inbounds i8, ptr %0, i64 116
  %12 = load i32, ptr %11, align 4, !tbaa !17
  %13 = icmp eq i32 %12, 7
  br i1 %13, label %14, label %19

14:                                               ; preds = %10
  %15 = load ptr, ptr %1, align 8, !tbaa !18
  %16 = icmp eq ptr %15, getelementptr inbounds (i8, ptr @states, i64 3752)
  br i1 %16, label %17, label %19

17:                                               ; preds = %14
  %18 = load ptr, ptr %0, align 8, !tbaa !5
  tail call void @S_StartSound(ptr noundef %18, i32 noundef 11) #3
  br label %19

19:                                               ; preds = %17, %14, %10
  %20 = getelementptr inbounds i8, ptr %0, i64 120
  %21 = load i32, ptr %20, align 8, !tbaa !20
  %.not = icmp eq i32 %21, 10
  br i1 %.not, label %22, label %25

22:                                               ; preds = %19
  %23 = getelementptr inbounds i8, ptr %0, i64 36
  %24 = load i32, ptr %23, align 4, !tbaa !21
  %.not25 = icmp eq i32 %24, 0
  br i1 %.not25, label %25, label %30

25:                                               ; preds = %22, %19
  %26 = load i32, ptr %11, align 4, !tbaa !17
  %27 = zext i32 %26 to i64
  %28 = getelementptr inbounds [9 x %struct.weaponinfo_t], ptr @weaponinfo, i64 0, i64 %27, i32 2
  %29 = load i32, ptr %28, align 8, !tbaa !22
  tail call void @P_SetPsprite(ptr noundef nonnull %0, i32 noundef 0, i32 noundef %29)
  br label %62

30:                                               ; preds = %22
  %31 = getelementptr inbounds i8, ptr %0, i64 19
  %32 = load i8, ptr %31, align 1, !tbaa !24
  %33 = and i8 %32, 1
  %.not26 = icmp eq i8 %33, 0
  %34 = getelementptr inbounds i8, ptr %0, i64 192
  br i1 %.not26, label %40, label %35

35:                                               ; preds = %30
  %36 = load i32, ptr %34, align 8, !tbaa !25
  %.not27 = icmp eq i32 %36, 0
  br i1 %.not27, label %39, label %37

37:                                               ; preds = %35
  %38 = load i32, ptr %11, align 4, !tbaa !17
  switch i32 %38, label %39 [
    i32 4, label %41
    i32 6, label %41
  ]

39:                                               ; preds = %37, %35
  store i32 1, ptr %34, align 8, !tbaa !25
  tail call void @P_FireWeapon(ptr noundef nonnull %0)
  br label %62

40:                                               ; preds = %30
  store i32 0, ptr %34, align 8, !tbaa !25
  br label %41

41:                                               ; preds = %37, %37, %40
  %42 = load i32, ptr @leveltime, align 4, !tbaa !26
  %43 = shl nsw i32 %42, 7
  %44 = and i32 %43, 8064
  %45 = getelementptr inbounds i8, ptr %0, i64 32
  %46 = load i32, ptr %45, align 8, !tbaa !27
  %47 = load ptr, ptr @finecosine, align 8, !tbaa !28
  %48 = zext nneg i32 %44 to i64
  %49 = getelementptr inbounds i32, ptr %47, i64 %48
  %50 = load i32, ptr %49, align 4, !tbaa !26
  %51 = tail call i32 @FixedMul(i32 noundef %46, i32 noundef %50)
  %52 = add nsw i32 %51, 65536
  %53 = getelementptr inbounds i8, ptr %1, i64 12
  store i32 %52, ptr %53, align 4, !tbaa !29
  %54 = and i32 %43, 3968
  %55 = load i32, ptr %45, align 8, !tbaa !27
  %56 = zext nneg i32 %54 to i64
  %57 = getelementptr inbounds [10240 x i32], ptr @finesine, i64 0, i64 %56
  %58 = load i32, ptr %57, align 16, !tbaa !26
  %59 = tail call i32 @FixedMul(i32 noundef %55, i32 noundef %58)
  %60 = add nsw i32 %59, 2097152
  %61 = getelementptr inbounds i8, ptr %1, i64 16
  store i32 %60, ptr %61, align 8, !tbaa !30
  br label %62

62:                                               ; preds = %41, %39, %25
  ret void
}

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 = { inlinehint 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, !7, i64 0}
!6 = !{!"player_s", !7, i64 0, !10, i64 8, !11, i64 12, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !8, i64 48, !8, i64 72, !10, i64 96, !8, i64 100, !10, i64 116, !10, i64 120, !8, i64 124, !8, i64 160, !8, i64 176, !10, i64 192, !10, i64 196, !10, i64 200, !10, i64 204, !10, i64 208, !10, i64 212, !10, i64 216, !7, i64 224, !10, i64 232, !10, i64 236, !7, i64 240, !10, i64 248, !10, i64 252, !10, i64 256, !8, i64 264, !10, i64 312}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"", !8, i64 0, !8, i64 1, !12, i64 2, !12, i64 4, !8, i64 6, !8, i64 7}
!12 = !{!"short", !8, i64 0}
!13 = !{!14, !7, i64 152}
!14 = !{!"mobj_s", !15, i64 0, !10, i64 24, !10, i64 28, !10, i64 32, !7, i64 40, !7, i64 48, !10, i64 56, !10, i64 60, !10, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !10, i64 96, !10, i64 100, !10, i64 104, !10, i64 108, !10, i64 112, !10, i64 116, !10, i64 120, !10, i64 124, !10, i64 128, !7, i64 136, !10, i64 144, !7, i64 152, !10, i64 160, !10, i64 164, !10, i64 168, !10, i64 172, !7, i64 176, !10, i64 184, !10, i64 188, !7, i64 192, !10, i64 200, !16, i64 204, !7, i64 216}
!15 = !{!"thinker_s", !7, i64 0, !7, i64 8, !8, i64 16}
!16 = !{!"", !12, i64 0, !12, i64 2, !12, i64 4, !12, i64 6, !12, i64 8}
!17 = !{!6, !10, i64 116}
!18 = !{!19, !7, i64 0}
!19 = !{!"", !7, i64 0, !10, i64 8, !10, i64 12, !10, i64 16}
!20 = !{!6, !10, i64 120}
!21 = !{!6, !10, i64 36}
!22 = !{!23, !10, i64 8}
!23 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20}
!24 = !{!6, !8, i64 19}
!25 = !{!6, !10, i64 192}
!26 = !{!10, !10, i64 0}
!27 = !{!6, !10, i64 32}
!28 = !{!7, !7, i64 0}
!29 = !{!19, !10, i64 12}
!30 = !{!19, !10, i64 16}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass