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

; 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.mobjinfo_t = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.mapthing_t = type { i16, i16, i16, i16, i16 }
%struct.subsector_s = type { ptr, i16, i16 }
%struct.sector_t = type { i32, i32, i16, i16, i16, i16, i16, i32, ptr, [4 x i32], %struct.degenmobj_t, i32, ptr, ptr, i32, ptr }
%struct.degenmobj_t = type { %struct.thinker_s, i32, i32, i32 }
%struct.thinker_s = type { ptr, ptr, %union.actionf_t }
%union.actionf_t = type { ptr }
%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 }

@mobjinfo = external global [137 x %struct.mobjinfo_t], align 16
@leveltime = external global i32, align 4
@itemrespawnque = external dso_local global [128 x %struct.mapthing_t], align 16
@iquehead = external dso_local global i32, align 4
@itemrespawntime = external dso_local global [128 x i32], align 16
@iquetail = external dso_local global i32, align 4
@deathmatch = external 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @P_SpawnMobj(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #2

declare ptr @R_PointInSubsector(i32 noundef, i32 noundef) #1

; 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: nounwind uwtable
define dso_local void @P_RespawnSpecials() #2 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %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
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  %9 = load i32, ptr @deathmatch, align 4, !tbaa !5
  %10 = icmp ne i32 %9, 2
  br i1 %10, label %11, label %12

11:                                               ; preds = %0
  store i32 1, ptr %8, align 4
  br label %101

12:                                               ; preds = %0
  %13 = load i32, ptr @iquehead, align 4, !tbaa !5
  %14 = load i32, ptr @iquetail, align 4, !tbaa !5
  %15 = icmp eq i32 %13, %14
  br i1 %15, label %16, label %17

16:                                               ; preds = %12
  store i32 1, ptr %8, align 4
  br label %101

17:                                               ; preds = %12
  %18 = load i32, ptr @leveltime, align 4, !tbaa !5
  %19 = load i32, ptr @iquetail, align 4, !tbaa !5
  %20 = sext i32 %19 to i64
  %21 = getelementptr inbounds [128 x i32], ptr @itemrespawntime, i64 0, i64 %20
  %22 = load i32, ptr %21, align 4, !tbaa !5
  %23 = sub nsw i32 %18, %22
  %24 = icmp slt i32 %23, 1050
  br i1 %24, label %25, label %26

25:                                               ; preds = %17
  store i32 1, ptr %8, align 4
  br label %101

26:                                               ; preds = %17
  %27 = load i32, ptr @iquetail, align 4, !tbaa !5
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds [128 x %struct.mapthing_t], ptr @itemrespawnque, i64 0, i64 %28
  store ptr %29, ptr %6, align 8, !tbaa !9
  %30 = load ptr, ptr %6, align 8, !tbaa !9
  %31 = getelementptr inbounds %struct.mapthing_t, ptr %30, i32 0, i32 0
  %32 = load i16, ptr %31, align 2, !tbaa !11
  %33 = sext i16 %32 to i32
  %34 = shl i32 %33, 16
  store i32 %34, ptr %1, align 4, !tbaa !5
  %35 = load ptr, ptr %6, align 8, !tbaa !9
  %36 = getelementptr inbounds %struct.mapthing_t, ptr %35, i32 0, i32 1
  %37 = load i16, ptr %36, align 2, !tbaa !14
  %38 = sext i16 %37 to i32
  %39 = shl i32 %38, 16
  store i32 %39, ptr %2, align 4, !tbaa !5
  %40 = load i32, ptr %1, align 4, !tbaa !5
  %41 = load i32, ptr %2, align 4, !tbaa !5
  %42 = call ptr @R_PointInSubsector(i32 noundef %40, i32 noundef %41)
  store ptr %42, ptr %4, align 8, !tbaa !9
  %43 = load i32, ptr %1, align 4, !tbaa !5
  %44 = load i32, ptr %2, align 4, !tbaa !5
  %45 = load ptr, ptr %4, align 8, !tbaa !9
  %46 = getelementptr inbounds %struct.subsector_s, ptr %45, i32 0, i32 0
  %47 = load ptr, ptr %46, align 8, !tbaa !15
  %48 = getelementptr inbounds %struct.sector_t, ptr %47, i32 0, i32 0
  %49 = load i32, ptr %48, align 8, !tbaa !17
  %50 = call ptr @P_SpawnMobj(i32 noundef %43, i32 noundef %44, i32 noundef %49, i32 noundef 40)
  store ptr %50, ptr %5, align 8, !tbaa !9
  %51 = load ptr, ptr %5, align 8, !tbaa !9
  call void @S_StartSound(ptr noundef %51, i32 noundef 90)
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %52

52:                                               ; preds = %68, %26
  %53 = load i32, ptr %7, align 4, !tbaa !5
  %54 = icmp slt i32 %53, 137
  br i1 %54, label %55, label %71

55:                                               ; preds = %52
  %56 = load ptr, ptr %6, align 8, !tbaa !9
  %57 = getelementptr inbounds %struct.mapthing_t, ptr %56, i32 0, i32 3
  %58 = load i16, ptr %57, align 2, !tbaa !21
  %59 = sext i16 %58 to i32
  %60 = load i32, ptr %7, align 4, !tbaa !5
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [137 x %struct.mobjinfo_t], ptr @mobjinfo, i64 0, i64 %61
  %63 = getelementptr inbounds %struct.mobjinfo_t, ptr %62, i32 0, i32 0
  %64 = load i32, ptr %63, align 4, !tbaa !22
  %65 = icmp eq i32 %59, %64
  br i1 %65, label %66, label %67

66:                                               ; preds = %55
  br label %71

67:                                               ; preds = %55
  br label %68

68:                                               ; preds = %67
  %69 = load i32, ptr %7, align 4, !tbaa !5
  %70 = add nsw i32 %69, 1
  store i32 %70, ptr %7, align 4, !tbaa !5
  br label %52, !llvm.loop !24

71:                                               ; preds = %66, %52
  %72 = load i32, ptr %7, align 4, !tbaa !5
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds [137 x %struct.mobjinfo_t], ptr @mobjinfo, i64 0, i64 %73
  %75 = getelementptr inbounds %struct.mobjinfo_t, ptr %74, i32 0, i32 21
  %76 = load i32, ptr %75, align 4, !tbaa !26
  %77 = and i32 %76, 256
  %78 = icmp ne i32 %77, 0
  br i1 %78, label %79, label %80

79:                                               ; preds = %71
  store i32 2147483647, ptr %3, align 4, !tbaa !5
  br label %81

80:                                               ; preds = %71
  store i32 -2147483648, ptr %3, align 4, !tbaa !5
  br label %81

81:                                               ; preds = %80, %79
  %82 = load i32, ptr %1, align 4, !tbaa !5
  %83 = load i32, ptr %2, align 4, !tbaa !5
  %84 = load i32, ptr %3, align 4, !tbaa !5
  %85 = load i32, ptr %7, align 4, !tbaa !5
  %86 = call ptr @P_SpawnMobj(i32 noundef %82, i32 noundef %83, i32 noundef %84, i32 noundef %85)
  store ptr %86, ptr %5, align 8, !tbaa !9
  %87 = load ptr, ptr %5, align 8, !tbaa !9
  %88 = getelementptr inbounds %struct.mobj_s, ptr %87, i32 0, i32 33
  %89 = load ptr, ptr %6, align 8, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %88, ptr align 2 %89, i64 10, i1 false), !tbaa.struct !27
  %90 = load ptr, ptr %6, align 8, !tbaa !9
  %91 = getelementptr inbounds %struct.mapthing_t, ptr %90, i32 0, i32 2
  %92 = load i16, ptr %91, align 2, !tbaa !29
  %93 = sext i16 %92 to i32
  %94 = sdiv i32 %93, 45
  %95 = mul nsw i32 536870912, %94
  %96 = load ptr, ptr %5, align 8, !tbaa !9
  %97 = getelementptr inbounds %struct.mobj_s, ptr %96, i32 0, i32 6
  store i32 %95, ptr %97, align 8, !tbaa !30
  %98 = load i32, ptr @iquetail, align 4, !tbaa !5
  %99 = add nsw i32 %98, 1
  %100 = and i32 %99, 127
  store i32 %100, ptr @iquetail, align 4, !tbaa !5
  store i32 0, ptr %8, align 4
  br label %101

101:                                              ; preds = %81, %25, %16, %11
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #4
  %102 = load i32, ptr %8, align 4
  switch i32 %102, label %104 [
    i32 0, label %103
    i32 1, label %103
  ]

103:                                              ; preds = %101, %101
  ret void

104:                                              ; preds = %101
  unreachable
}

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


; 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.mobjinfo_t = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.mapthing_t = type { i16, i16, i16, i16, i16 }

@mobjinfo = external local_unnamed_addr global [137 x %struct.mobjinfo_t], align 16
@leveltime = external local_unnamed_addr global i32, align 4
@itemrespawnque = external dso_local local_unnamed_addr global [128 x %struct.mapthing_t], align 16
@iquehead = external dso_local local_unnamed_addr global i32, align 4
@itemrespawntime = external dso_local local_unnamed_addr global [128 x i32], align 16
@iquetail = external dso_local local_unnamed_addr global i32, align 4
@deathmatch = external local_unnamed_addr global i32, align 4

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @P_SpawnMobj(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

declare ptr @R_PointInSubsector(i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress 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) #2

; Function Attrs: nounwind uwtable
define dso_local void @P_RespawnSpecials() local_unnamed_addr #1 {
  %1 = load i32, ptr @deathmatch, align 4, !tbaa !5
  %.not = icmp eq i32 %1, 2
  br i1 %.not, label %2, label %63

2:                                                ; preds = %0
  %3 = load i32, ptr @iquehead, align 4, !tbaa !5
  %4 = load i32, ptr @iquetail, align 4, !tbaa !5
  %5 = icmp eq i32 %3, %4
  br i1 %5, label %63, label %6

6:                                                ; preds = %2
  %7 = load i32, ptr @leveltime, align 4, !tbaa !5
  %8 = sext i32 %4 to i64
  %9 = getelementptr inbounds [128 x i32], ptr @itemrespawntime, i64 0, i64 %8
  %10 = load i32, ptr %9, align 4, !tbaa !5
  %11 = sub nsw i32 %7, %10
  %12 = icmp slt i32 %11, 1050
  br i1 %12, label %63, label %13

13:                                               ; preds = %6
  %14 = getelementptr inbounds [128 x %struct.mapthing_t], ptr @itemrespawnque, i64 0, i64 %8
  %15 = load i16, ptr %14, align 2, !tbaa !9
  %16 = sext i16 %15 to i32
  %17 = shl nsw i32 %16, 16
  %18 = getelementptr inbounds i8, ptr %14, i64 2
  %19 = load i16, ptr %18, align 2, !tbaa !12
  %20 = sext i16 %19 to i32
  %21 = shl nsw i32 %20, 16
  %22 = tail call ptr @R_PointInSubsector(i32 noundef %17, i32 noundef %21) #3
  %23 = load ptr, ptr %22, align 8, !tbaa !13
  %24 = load i32, ptr %23, align 8, !tbaa !16
  %25 = tail call ptr @P_SpawnMobj(i32 noundef %17, i32 noundef %21, i32 noundef %24, i32 noundef 40)
  tail call void @S_StartSound(ptr noundef %25, i32 noundef 90) #3
  %26 = getelementptr inbounds i8, ptr %14, i64 6
  %27 = load i16, ptr %26, align 2, !tbaa !20
  %28 = sext i16 %27 to i32
  br label %29

29:                                               ; preds = %46, %13
  %indvars.iv = phi i64 [ 0, %13 ], [ %indvars.iv.next.3, %46 ]
  %30 = getelementptr inbounds [137 x %struct.mobjinfo_t], ptr @mobjinfo, i64 0, i64 %indvars.iv
  %31 = load i32, ptr %30, align 16, !tbaa !21
  %32 = icmp eq i32 %31, %28
  br i1 %32, label %.split.loop.exit, label %33

33:                                               ; preds = %29
  %exitcond.not = icmp eq i64 %indvars.iv, 136
  br i1 %exitcond.not, label %.split.loop.exit25, label %34, !llvm.loop !23

34:                                               ; preds = %33
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %35 = getelementptr inbounds [137 x %struct.mobjinfo_t], ptr @mobjinfo, i64 0, i64 %indvars.iv.next
  %36 = load i32, ptr %35, align 4, !tbaa !21
  %37 = icmp eq i32 %36, %28
  br i1 %37, label %.split.loop.exit, label %38

38:                                               ; preds = %34
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %39 = getelementptr inbounds [137 x %struct.mobjinfo_t], ptr @mobjinfo, i64 0, i64 %indvars.iv.next.1
  %40 = load i32, ptr %39, align 8, !tbaa !21
  %41 = icmp eq i32 %40, %28
  br i1 %41, label %.split.loop.exit, label %42

42:                                               ; preds = %38
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %43 = getelementptr inbounds [137 x %struct.mobjinfo_t], ptr @mobjinfo, i64 0, i64 %indvars.iv.next.2
  %44 = load i32, ptr %43, align 4, !tbaa !21
  %45 = icmp eq i32 %44, %28
  br i1 %45, label %.split.loop.exit, label %46

46:                                               ; preds = %42
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  br label %29

.split.loop.exit:                                 ; preds = %42, %38, %34, %29
  %indvars.iv.lcssa = phi i64 [ %indvars.iv, %29 ], [ %indvars.iv.next, %34 ], [ %indvars.iv.next.1, %38 ], [ %indvars.iv.next.2, %42 ]
  %47 = trunc nuw nsw i64 %indvars.iv.lcssa to i32
  br label %.split.loop.exit25

.split.loop.exit25:                               ; preds = %33, %.split.loop.exit
  %.0.lcssa = phi i32 [ %47, %.split.loop.exit ], [ 137, %33 ]
  %48 = zext nneg i32 %.0.lcssa to i64
  %49 = getelementptr inbounds [137 x %struct.mobjinfo_t], ptr @mobjinfo, i64 0, i64 %48, i32 21
  %50 = load i32, ptr %49, align 4, !tbaa !25
  %51 = and i32 %50, 256
  %.not22 = icmp eq i32 %51, 0
  %. = select i1 %.not22, i32 -2147483648, i32 2147483647
  %52 = tail call ptr @P_SpawnMobj(i32 noundef %17, i32 noundef %21, i32 noundef %., i32 noundef %.0.lcssa)
  %53 = getelementptr inbounds i8, ptr %52, i64 204
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(10) %53, ptr noundef nonnull align 2 dereferenceable(10) %14, i64 10, i1 false), !tbaa.struct !26
  %54 = getelementptr inbounds i8, ptr %14, i64 4
  %55 = load i16, ptr %54, align 2, !tbaa !28
  %56 = sdiv i16 %55, 45
  %57 = sext i16 %56 to i32
  %58 = shl nsw i32 %57, 29
  %59 = getelementptr inbounds i8, ptr %52, i64 56
  store i32 %58, ptr %59, align 8, !tbaa !29
  %60 = load i32, ptr @iquetail, align 4, !tbaa !5
  %61 = add nsw i32 %60, 1
  %62 = and i32 %61, 127
  store i32 %62, ptr @iquetail, align 4, !tbaa !5
  br label %63

63:                                               ; preds = %6, %2, %0, %.split.loop.exit25
  ret void
}

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


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass