; 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.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 }
%union.actionf_t = type { ptr }
%struct.mapthing_t = type { i16, i16, i16, i16, i16 }
%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 }

@finecosine = external global ptr, align 8
@finesine = external global [10240 x i32], 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

declare i32 @P_Random() #1

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

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

declare i32 @P_AproxDistance(i32 noundef, i32 noundef) #1

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

; Function Attrs: nounwind uwtable
declare dso_local void @P_CheckMissileSpawn(ptr noundef) #3

; Function Attrs: nounwind uwtable
define dso_local ptr @P_SpawnMissile(ptr noundef %0, ptr noundef %1, i32 noundef %2) #3 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %10 = load ptr, ptr %4, align 8, !tbaa !5
  %11 = getelementptr inbounds %struct.mobj_s, ptr %10, i32 0, i32 1
  %12 = load i32, ptr %11, align 8, !tbaa !11
  %13 = load ptr, ptr %4, align 8, !tbaa !5
  %14 = getelementptr inbounds %struct.mobj_s, ptr %13, i32 0, i32 2
  %15 = load i32, ptr %14, align 4, !tbaa !16
  %16 = load ptr, ptr %4, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.mobj_s, ptr %16, i32 0, i32 3
  %18 = load i32, ptr %17, align 8, !tbaa !17
  %19 = add nsw i32 %18, 2097152
  %20 = load i32, ptr %6, align 4, !tbaa !9
  %21 = call ptr @P_SpawnMobj(i32 noundef %12, i32 noundef %15, i32 noundef %19, i32 noundef %20)
  store ptr %21, ptr %7, align 8, !tbaa !5
  %22 = load ptr, ptr %7, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.mobj_s, ptr %22, i32 0, i32 21
  %24 = load ptr, ptr %23, align 8, !tbaa !18
  %25 = getelementptr inbounds %struct.mobjinfo_t, ptr %24, i32 0, i32 4
  %26 = load i32, ptr %25, align 4, !tbaa !19
  %27 = icmp ne i32 %26, 0
  br i1 %27, label %28, label %35

28:                                               ; preds = %3
  %29 = load ptr, ptr %7, align 8, !tbaa !5
  %30 = load ptr, ptr %7, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.mobj_s, ptr %30, i32 0, i32 21
  %32 = load ptr, ptr %31, align 8, !tbaa !18
  %33 = getelementptr inbounds %struct.mobjinfo_t, ptr %32, i32 0, i32 4
  %34 = load i32, ptr %33, align 4, !tbaa !19
  call void @S_StartSound(ptr noundef %29, i32 noundef %34)
  br label %35

35:                                               ; preds = %28, %3
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  %37 = load ptr, ptr %7, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.mobj_s, ptr %37, i32 0, i32 28
  store ptr %36, ptr %38, align 8, !tbaa !21
  %39 = load ptr, ptr %4, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.mobj_s, ptr %39, i32 0, i32 1
  %41 = load i32, ptr %40, align 8, !tbaa !11
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.mobj_s, ptr %42, i32 0, i32 2
  %44 = load i32, ptr %43, align 4, !tbaa !16
  %45 = load ptr, ptr %5, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.mobj_s, ptr %45, i32 0, i32 1
  %47 = load i32, ptr %46, align 8, !tbaa !11
  %48 = load ptr, ptr %5, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.mobj_s, ptr %48, i32 0, i32 2
  %50 = load i32, ptr %49, align 4, !tbaa !16
  %51 = call i32 @R_PointToAngle2(i32 noundef %41, i32 noundef %44, i32 noundef %47, i32 noundef %50)
  store i32 %51, ptr %8, align 4, !tbaa !9
  %52 = load ptr, ptr %5, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.mobj_s, ptr %52, i32 0, i32 24
  %54 = load i32, ptr %53, align 8, !tbaa !22
  %55 = and i32 %54, 262144
  %56 = icmp ne i32 %55, 0
  br i1 %56, label %57, label %64

57:                                               ; preds = %35
  %58 = call i32 @P_Random()
  %59 = call i32 @P_Random()
  %60 = sub nsw i32 %58, %59
  %61 = shl i32 %60, 20
  %62 = load i32, ptr %8, align 4, !tbaa !9
  %63 = add i32 %62, %61
  store i32 %63, ptr %8, align 4, !tbaa !9
  br label %64

64:                                               ; preds = %57, %35
  %65 = load i32, ptr %8, align 4, !tbaa !9
  %66 = load ptr, ptr %7, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.mobj_s, ptr %66, i32 0, i32 6
  store i32 %65, ptr %67, align 8, !tbaa !23
  %68 = load i32, ptr %8, align 4, !tbaa !9
  %69 = lshr i32 %68, 19
  store i32 %69, ptr %8, align 4, !tbaa !9
  %70 = load ptr, ptr %7, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.mobj_s, ptr %70, i32 0, i32 21
  %72 = load ptr, ptr %71, align 8, !tbaa !18
  %73 = getelementptr inbounds %struct.mobjinfo_t, ptr %72, i32 0, i32 15
  %74 = load i32, ptr %73, align 4, !tbaa !24
  %75 = load ptr, ptr @finecosine, align 8, !tbaa !5
  %76 = load i32, ptr %8, align 4, !tbaa !9
  %77 = zext i32 %76 to i64
  %78 = getelementptr inbounds i32, ptr %75, i64 %77
  %79 = load i32, ptr %78, align 4, !tbaa !9
  %80 = call i32 @FixedMul(i32 noundef %74, i32 noundef %79)
  %81 = load ptr, ptr %7, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.mobj_s, ptr %81, i32 0, i32 16
  store i32 %80, ptr %82, align 8, !tbaa !25
  %83 = load ptr, ptr %7, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.mobj_s, ptr %83, i32 0, i32 21
  %85 = load ptr, ptr %84, align 8, !tbaa !18
  %86 = getelementptr inbounds %struct.mobjinfo_t, ptr %85, i32 0, i32 15
  %87 = load i32, ptr %86, align 4, !tbaa !24
  %88 = load i32, ptr %8, align 4, !tbaa !9
  %89 = zext i32 %88 to i64
  %90 = getelementptr inbounds [10240 x i32], ptr @finesine, i64 0, i64 %89
  %91 = load i32, ptr %90, align 4, !tbaa !9
  %92 = call i32 @FixedMul(i32 noundef %87, i32 noundef %91)
  %93 = load ptr, ptr %7, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.mobj_s, ptr %93, i32 0, i32 17
  store i32 %92, ptr %94, align 4, !tbaa !26
  %95 = load ptr, ptr %5, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.mobj_s, ptr %95, i32 0, i32 1
  %97 = load i32, ptr %96, align 8, !tbaa !11
  %98 = load ptr, ptr %4, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.mobj_s, ptr %98, i32 0, i32 1
  %100 = load i32, ptr %99, align 8, !tbaa !11
  %101 = sub nsw i32 %97, %100
  %102 = load ptr, ptr %5, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.mobj_s, ptr %102, i32 0, i32 2
  %104 = load i32, ptr %103, align 4, !tbaa !16
  %105 = load ptr, ptr %4, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.mobj_s, ptr %105, i32 0, i32 2
  %107 = load i32, ptr %106, align 4, !tbaa !16
  %108 = sub nsw i32 %104, %107
  %109 = call i32 @P_AproxDistance(i32 noundef %101, i32 noundef %108)
  store i32 %109, ptr %9, align 4, !tbaa !9
  %110 = load i32, ptr %9, align 4, !tbaa !9
  %111 = load ptr, ptr %7, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.mobj_s, ptr %111, i32 0, i32 21
  %113 = load ptr, ptr %112, align 8, !tbaa !18
  %114 = getelementptr inbounds %struct.mobjinfo_t, ptr %113, i32 0, i32 15
  %115 = load i32, ptr %114, align 4, !tbaa !24
  %116 = sdiv i32 %110, %115
  store i32 %116, ptr %9, align 4, !tbaa !9
  %117 = load i32, ptr %9, align 4, !tbaa !9
  %118 = icmp slt i32 %117, 1
  br i1 %118, label %119, label %120

119:                                              ; preds = %64
  store i32 1, ptr %9, align 4, !tbaa !9
  br label %120

120:                                              ; preds = %119, %64
  %121 = load ptr, ptr %5, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.mobj_s, ptr %121, i32 0, i32 3
  %123 = load i32, ptr %122, align 8, !tbaa !17
  %124 = load ptr, ptr %4, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.mobj_s, ptr %124, i32 0, i32 3
  %126 = load i32, ptr %125, align 8, !tbaa !17
  %127 = sub nsw i32 %123, %126
  %128 = load i32, ptr %9, align 4, !tbaa !9
  %129 = sdiv i32 %127, %128
  %130 = load ptr, ptr %7, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.mobj_s, ptr %130, i32 0, i32 18
  store i32 %129, ptr %131, align 8, !tbaa !27
  %132 = load ptr, ptr %7, align 8, !tbaa !5
  call void @P_CheckMissileSpawn(ptr noundef %132)
  %133 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  ret ptr %133
}

declare i32 @R_PointToAngle2(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1

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 = { 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 = { 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 #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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 24}
!12 = !{!"mobj_s", !13, i64 0, !10, i64 24, !10, i64 28, !10, i64 32, !6, i64 40, !6, i64 48, !10, i64 56, !10, i64 60, !10, i64 64, !6, i64 72, !6, i64 80, !6, 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, !6, i64 136, !10, i64 144, !6, i64 152, !10, i64 160, !10, i64 164, !10, i64 168, !10, i64 172, !6, i64 176, !10, i64 184, !10, i64 188, !6, i64 192, !10, i64 200, !14, i64 204, !6, i64 216}
!13 = !{!"thinker_s", !6, i64 0, !6, i64 8, !7, i64 16}
!14 = !{!"", !15, i64 0, !15, i64 2, !15, i64 4, !15, i64 6, !15, i64 8}
!15 = !{!"short", !7, i64 0}
!16 = !{!12, !10, i64 28}
!17 = !{!12, !10, i64 32}
!18 = !{!12, !6, i64 136}
!19 = !{!20, !10, i64 16}
!20 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68, !10, i64 72, !10, i64 76, !10, i64 80, !10, i64 84, !10, i64 88}
!21 = !{!12, !6, i64 176}
!22 = !{!12, !10, i64 160}
!23 = !{!12, !10, i64 56}
!24 = !{!20, !10, i64 60}
!25 = !{!12, !10, i64 112}
!26 = !{!12, !10, i64 116}
!27 = !{!12, !10, i64 120}


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

@finecosine = external local_unnamed_addr global ptr, align 8
@finesine = external local_unnamed_addr global [10240 x i32], align 16

declare i32 @P_Random() local_unnamed_addr #0

declare void @S_StartSound(ptr 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 i32 @P_AproxDistance(i32 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 #2

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

; Function Attrs: nounwind uwtable
define dso_local ptr @P_SpawnMissile(ptr noundef %0, ptr nocapture noundef readonly %1, i32 noundef %2) local_unnamed_addr #2 {
  %4 = getelementptr inbounds i8, ptr %0, i64 24
  %5 = load i32, ptr %4, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %0, i64 28
  %7 = load i32, ptr %6, align 4, !tbaa !14
  %8 = getelementptr inbounds i8, ptr %0, i64 32
  %9 = load i32, ptr %8, align 8, !tbaa !15
  %10 = add nsw i32 %9, 2097152
  %11 = tail call ptr @P_SpawnMobj(i32 noundef %5, i32 noundef %7, i32 noundef %10, i32 noundef %2)
  %12 = getelementptr inbounds i8, ptr %11, i64 136
  %13 = load ptr, ptr %12, align 8, !tbaa !16
  %14 = getelementptr inbounds i8, ptr %13, i64 16
  %15 = load i32, ptr %14, align 4, !tbaa !17
  %.not = icmp eq i32 %15, 0
  br i1 %.not, label %17, label %16

16:                                               ; preds = %3
  tail call void @S_StartSound(ptr noundef nonnull %11, i32 noundef %15) #4
  br label %17

17:                                               ; preds = %16, %3
  %18 = getelementptr inbounds i8, ptr %11, i64 176
  store ptr %0, ptr %18, align 8, !tbaa !19
  %19 = load i32, ptr %4, align 8, !tbaa !5
  %20 = load i32, ptr %6, align 4, !tbaa !14
  %21 = getelementptr inbounds i8, ptr %1, i64 24
  %22 = load i32, ptr %21, align 8, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %1, i64 28
  %24 = load i32, ptr %23, align 4, !tbaa !14
  %25 = tail call i32 @R_PointToAngle2(i32 noundef %19, i32 noundef %20, i32 noundef %22, i32 noundef %24) #4
  %26 = getelementptr inbounds i8, ptr %1, i64 160
  %27 = load i32, ptr %26, align 8, !tbaa !20
  %28 = and i32 %27, 262144
  %.not37 = icmp eq i32 %28, 0
  br i1 %.not37, label %35, label %29

29:                                               ; preds = %17
  %30 = tail call i32 @P_Random() #4
  %31 = tail call i32 @P_Random() #4
  %32 = sub nsw i32 %30, %31
  %33 = shl i32 %32, 20
  %34 = add i32 %33, %25
  br label %35

35:                                               ; preds = %29, %17
  %.0 = phi i32 [ %34, %29 ], [ %25, %17 ]
  %36 = getelementptr inbounds i8, ptr %11, i64 56
  store i32 %.0, ptr %36, align 8, !tbaa !21
  %37 = lshr i32 %.0, 19
  %38 = load ptr, ptr %12, align 8, !tbaa !16
  %39 = getelementptr inbounds i8, ptr %38, i64 60
  %40 = load i32, ptr %39, align 4, !tbaa !22
  %41 = load ptr, ptr @finecosine, align 8, !tbaa !23
  %42 = zext nneg i32 %37 to i64
  %43 = getelementptr inbounds i32, ptr %41, i64 %42
  %44 = load i32, ptr %43, align 4, !tbaa !24
  %45 = tail call i32 @FixedMul(i32 noundef %40, i32 noundef %44)
  %46 = getelementptr inbounds i8, ptr %11, i64 112
  store i32 %45, ptr %46, align 8, !tbaa !25
  %47 = load ptr, ptr %12, align 8, !tbaa !16
  %48 = getelementptr inbounds i8, ptr %47, i64 60
  %49 = load i32, ptr %48, align 4, !tbaa !22
  %50 = getelementptr inbounds [10240 x i32], ptr @finesine, i64 0, i64 %42
  %51 = load i32, ptr %50, align 4, !tbaa !24
  %52 = tail call i32 @FixedMul(i32 noundef %49, i32 noundef %51)
  %53 = getelementptr inbounds i8, ptr %11, i64 116
  store i32 %52, ptr %53, align 4, !tbaa !26
  %54 = load i32, ptr %21, align 8, !tbaa !5
  %55 = load i32, ptr %4, align 8, !tbaa !5
  %56 = sub nsw i32 %54, %55
  %57 = load i32, ptr %23, align 4, !tbaa !14
  %58 = load i32, ptr %6, align 4, !tbaa !14
  %59 = sub nsw i32 %57, %58
  %60 = tail call i32 @P_AproxDistance(i32 noundef %56, i32 noundef %59) #4
  %61 = load ptr, ptr %12, align 8, !tbaa !16
  %62 = getelementptr inbounds i8, ptr %61, i64 60
  %63 = load i32, ptr %62, align 4, !tbaa !22
  %64 = sdiv i32 %60, %63
  %spec.store.select = tail call i32 @llvm.smax.i32(i32 %64, i32 1)
  %65 = getelementptr inbounds i8, ptr %1, i64 32
  %66 = load i32, ptr %65, align 8, !tbaa !15
  %67 = load i32, ptr %8, align 8, !tbaa !15
  %68 = sub nsw i32 %66, %67
  %69 = sdiv i32 %68, %spec.store.select
  %70 = getelementptr inbounds i8, ptr %11, i64 120
  store i32 %69, ptr %70, align 8, !tbaa !27
  tail call void @P_CheckMissileSpawn(ptr noundef nonnull %11)
  ret ptr %11
}

declare i32 @R_PointToAngle2(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #3

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 = { 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 = { 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 speculatable willreturn memory(none) }
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, !11, i64 24}
!6 = !{!"mobj_s", !7, i64 0, !11, i64 24, !11, i64 28, !11, i64 32, !8, i64 40, !8, i64 48, !11, i64 56, !11, i64 60, !11, i64 64, !8, i64 72, !8, i64 80, !8, 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, !8, i64 136, !11, i64 144, !8, i64 152, !11, i64 160, !11, i64 164, !11, i64 168, !11, i64 172, !8, i64 176, !11, i64 184, !11, i64 188, !8, i64 192, !11, i64 200, !12, i64 204, !8, i64 216}
!7 = !{!"thinker_s", !8, i64 0, !8, i64 8, !9, i64 16}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!"", !13, i64 0, !13, i64 2, !13, i64 4, !13, i64 6, !13, i64 8}
!13 = !{!"short", !9, i64 0}
!14 = !{!6, !11, i64 28}
!15 = !{!6, !11, i64 32}
!16 = !{!6, !8, i64 136}
!17 = !{!18, !11, i64 16}
!18 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !11, i64 64, !11, i64 68, !11, i64 72, !11, i64 76, !11, i64 80, !11, i64 84, !11, i64 88}
!19 = !{!6, !8, i64 176}
!20 = !{!6, !11, i64 160}
!21 = !{!6, !11, i64 56}
!22 = !{!18, !11, i64 60}
!23 = !{!8, !8, i64 0}
!24 = !{!11, !11, i64 0}
!25 = !{!6, !11, i64 112}
!26 = !{!6, !11, i64 116}
!27 = !{!6, !11, i64 120}


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