; 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.state_t = type { i32, i64, i64, %union.actionf_t, i32, i64, i64 }
%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 }
%struct.thinker_s = type { ptr, ptr, %union.actionf_t }
%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 }
%struct.line_s = type { ptr, ptr, i32, i32, i16, i16, i16, [2 x i16], [4 x i32], i32, ptr, ptr, i32, ptr }
%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.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.subsector_s = type { ptr, i16, i16 }

@states = external global [967 x %struct.state_t], align 16
@ceilingline = external global ptr, align 8
@skyflatnum = external global i32, align 4

; Function Attrs: nounwind uwtable
declare dso_local i32 @P_SetMobjState(ptr 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: nounwind uwtable
declare dso_local void @P_RemoveMobj(ptr noundef) #0

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

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

; Function Attrs: nounwind uwtable
define dso_local void @P_XYMovement(ptr noundef %0) #0 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  %9 = load ptr, ptr %2, align 8, !tbaa !5
  %10 = getelementptr inbounds %struct.mobj_s, ptr %9, i32 0, i32 16
  %11 = load i32, ptr %10, align 8, !tbaa !9
  %12 = icmp ne i32 %11, 0
  br i1 %12, label %43, label %13

13:                                               ; preds = %1
  %14 = load ptr, ptr %2, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.mobj_s, ptr %14, i32 0, i32 17
  %16 = load i32, ptr %15, align 4, !tbaa !15
  %17 = icmp ne i32 %16, 0
  br i1 %17, label %43, label %18

18:                                               ; preds = %13
  %19 = load ptr, ptr %2, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.mobj_s, ptr %19, i32 0, i32 24
  %21 = load i32, ptr %20, align 8, !tbaa !16
  %22 = and i32 %21, 16777216
  %23 = icmp ne i32 %22, 0
  br i1 %23, label %24, label %42

24:                                               ; preds = %18
  %25 = load ptr, ptr %2, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.mobj_s, ptr %25, i32 0, i32 24
  %27 = load i32, ptr %26, align 8, !tbaa !16
  %28 = and i32 %27, -16777217
  store i32 %28, ptr %26, align 8, !tbaa !16
  %29 = load ptr, ptr %2, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.mobj_s, ptr %29, i32 0, i32 18
  store i32 0, ptr %30, align 8, !tbaa !17
  %31 = load ptr, ptr %2, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.mobj_s, ptr %31, i32 0, i32 17
  store i32 0, ptr %32, align 4, !tbaa !15
  %33 = load ptr, ptr %2, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.mobj_s, ptr %33, i32 0, i32 16
  store i32 0, ptr %34, align 8, !tbaa !9
  %35 = load ptr, ptr %2, align 8, !tbaa !5
  %36 = load ptr, ptr %2, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.mobj_s, ptr %36, i32 0, i32 21
  %38 = load ptr, ptr %37, align 8, !tbaa !18
  %39 = getelementptr inbounds %struct.mobjinfo_t, ptr %38, i32 0, i32 1
  %40 = load i32, ptr %39, align 4, !tbaa !19
  %41 = call i32 @P_SetMobjState(ptr noundef %35, i32 noundef %40)
  br label %42

42:                                               ; preds = %24, %18
  store i32 1, ptr %8, align 4
  br label %324

43:                                               ; preds = %13, %1
  %44 = load ptr, ptr %2, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.mobj_s, ptr %44, i32 0, i32 31
  %46 = load ptr, ptr %45, align 8, !tbaa !21
  store ptr %46, ptr %5, align 8, !tbaa !5
  %47 = load ptr, ptr %2, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.mobj_s, ptr %47, i32 0, i32 16
  %49 = load i32, ptr %48, align 8, !tbaa !9
  %50 = icmp sgt i32 %49, 1966080
  br i1 %50, label %51, label %54

51:                                               ; preds = %43
  %52 = load ptr, ptr %2, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.mobj_s, ptr %52, i32 0, i32 16
  store i32 1966080, ptr %53, align 8, !tbaa !9
  br label %63

54:                                               ; preds = %43
  %55 = load ptr, ptr %2, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.mobj_s, ptr %55, i32 0, i32 16
  %57 = load i32, ptr %56, align 8, !tbaa !9
  %58 = icmp slt i32 %57, -1966080
  br i1 %58, label %59, label %62

59:                                               ; preds = %54
  %60 = load ptr, ptr %2, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.mobj_s, ptr %60, i32 0, i32 16
  store i32 -1966080, ptr %61, align 8, !tbaa !9
  br label %62

62:                                               ; preds = %59, %54
  br label %63

63:                                               ; preds = %62, %51
  %64 = load ptr, ptr %2, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.mobj_s, ptr %64, i32 0, i32 17
  %66 = load i32, ptr %65, align 4, !tbaa !15
  %67 = icmp sgt i32 %66, 1966080
  br i1 %67, label %68, label %71

68:                                               ; preds = %63
  %69 = load ptr, ptr %2, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.mobj_s, ptr %69, i32 0, i32 17
  store i32 1966080, ptr %70, align 4, !tbaa !15
  br label %80

71:                                               ; preds = %63
  %72 = load ptr, ptr %2, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.mobj_s, ptr %72, i32 0, i32 17
  %74 = load i32, ptr %73, align 4, !tbaa !15
  %75 = icmp slt i32 %74, -1966080
  br i1 %75, label %76, label %79

76:                                               ; preds = %71
  %77 = load ptr, ptr %2, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.mobj_s, ptr %77, i32 0, i32 17
  store i32 -1966080, ptr %78, align 4, !tbaa !15
  br label %79

79:                                               ; preds = %76, %71
  br label %80

80:                                               ; preds = %79, %68
  %81 = load ptr, ptr %2, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.mobj_s, ptr %81, i32 0, i32 16
  %83 = load i32, ptr %82, align 8, !tbaa !9
  store i32 %83, ptr %6, align 4, !tbaa !22
  %84 = load ptr, ptr %2, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.mobj_s, ptr %84, i32 0, i32 17
  %86 = load i32, ptr %85, align 4, !tbaa !15
  store i32 %86, ptr %7, align 4, !tbaa !22
  br label %87

87:                                               ; preds = %175, %80
  %88 = load i32, ptr %6, align 4, !tbaa !22
  %89 = icmp sgt i32 %88, 983040
  br i1 %89, label %93, label %90

90:                                               ; preds = %87
  %91 = load i32, ptr %7, align 4, !tbaa !22
  %92 = icmp sgt i32 %91, 983040
  br i1 %92, label %93, label %110

93:                                               ; preds = %90, %87
  %94 = load ptr, ptr %2, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.mobj_s, ptr %94, i32 0, i32 1
  %96 = load i32, ptr %95, align 8, !tbaa !23
  %97 = load i32, ptr %6, align 4, !tbaa !22
  %98 = sdiv i32 %97, 2
  %99 = add nsw i32 %96, %98
  store i32 %99, ptr %3, align 4, !tbaa !22
  %100 = load ptr, ptr %2, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.mobj_s, ptr %100, i32 0, i32 2
  %102 = load i32, ptr %101, align 4, !tbaa !24
  %103 = load i32, ptr %7, align 4, !tbaa !22
  %104 = sdiv i32 %103, 2
  %105 = add nsw i32 %102, %104
  store i32 %105, ptr %4, align 4, !tbaa !22
  %106 = load i32, ptr %6, align 4, !tbaa !22
  %107 = ashr i32 %106, 1
  store i32 %107, ptr %6, align 4, !tbaa !22
  %108 = load i32, ptr %7, align 4, !tbaa !22
  %109 = ashr i32 %108, 1
  store i32 %109, ptr %7, align 4, !tbaa !22
  br label %121

110:                                              ; preds = %90
  %111 = load ptr, ptr %2, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.mobj_s, ptr %111, i32 0, i32 1
  %113 = load i32, ptr %112, align 8, !tbaa !23
  %114 = load i32, ptr %6, align 4, !tbaa !22
  %115 = add nsw i32 %113, %114
  store i32 %115, ptr %3, align 4, !tbaa !22
  %116 = load ptr, ptr %2, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.mobj_s, ptr %116, i32 0, i32 2
  %118 = load i32, ptr %117, align 4, !tbaa !24
  %119 = load i32, ptr %7, align 4, !tbaa !22
  %120 = add nsw i32 %118, %119
  store i32 %120, ptr %4, align 4, !tbaa !22
  store i32 0, ptr %7, align 4, !tbaa !22
  store i32 0, ptr %6, align 4, !tbaa !22
  br label %121

121:                                              ; preds = %110, %93
  %122 = load ptr, ptr %2, align 8, !tbaa !5
  %123 = load i32, ptr %3, align 4, !tbaa !22
  %124 = load i32, ptr %4, align 4, !tbaa !22
  %125 = call i32 @P_TryMove(ptr noundef %122, i32 noundef %123, i32 noundef %124)
  %126 = icmp ne i32 %125, 0
  br i1 %126, label %168, label %127

127:                                              ; preds = %121
  %128 = load ptr, ptr %2, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.mobj_s, ptr %128, i32 0, i32 31
  %130 = load ptr, ptr %129, align 8, !tbaa !21
  %131 = icmp ne ptr %130, null
  br i1 %131, label %132, label %134

132:                                              ; preds = %127
  %133 = load ptr, ptr %2, align 8, !tbaa !5
  call void @P_SlideMove(ptr noundef %133)
  br label %167

134:                                              ; preds = %127
  %135 = load ptr, ptr %2, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.mobj_s, ptr %135, i32 0, i32 24
  %137 = load i32, ptr %136, align 8, !tbaa !16
  %138 = and i32 %137, 65536
  %139 = icmp ne i32 %138, 0
  br i1 %139, label %140, label %161

140:                                              ; preds = %134
  %141 = load ptr, ptr @ceilingline, align 8, !tbaa !5
  %142 = icmp ne ptr %141, null
  br i1 %142, label %143, label %159

143:                                              ; preds = %140
  %144 = load ptr, ptr @ceilingline, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.line_s, ptr %144, i32 0, i32 11
  %146 = load ptr, ptr %145, align 8, !tbaa !25
  %147 = icmp ne ptr %146, null
  br i1 %147, label %148, label %159

148:                                              ; preds = %143
  %149 = load ptr, ptr @ceilingline, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.line_s, ptr %149, i32 0, i32 11
  %151 = load ptr, ptr %150, align 8, !tbaa !25
  %152 = getelementptr inbounds %struct.sector_t, ptr %151, i32 0, i32 3
  %153 = load i16, ptr %152, align 2, !tbaa !27
  %154 = sext i16 %153 to i32
  %155 = load i32, ptr @skyflatnum, align 4, !tbaa !22
  %156 = icmp eq i32 %154, %155
  br i1 %156, label %157, label %159

157:                                              ; preds = %148
  %158 = load ptr, ptr %2, align 8, !tbaa !5
  call void @P_RemoveMobj(ptr noundef %158)
  store i32 1, ptr %8, align 4
  br label %324

159:                                              ; preds = %148, %143, %140
  %160 = load ptr, ptr %2, align 8, !tbaa !5
  call void @P_ExplodeMissile(ptr noundef %160)
  br label %166

161:                                              ; preds = %134
  %162 = load ptr, ptr %2, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.mobj_s, ptr %162, i32 0, i32 17
  store i32 0, ptr %163, align 4, !tbaa !15
  %164 = load ptr, ptr %2, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.mobj_s, ptr %164, i32 0, i32 16
  store i32 0, ptr %165, align 8, !tbaa !9
  br label %166

166:                                              ; preds = %161, %159
  br label %167

167:                                              ; preds = %166, %132
  br label %168

168:                                              ; preds = %167, %121
  br label %169

169:                                              ; preds = %168
  %170 = load i32, ptr %6, align 4, !tbaa !22
  %171 = icmp ne i32 %170, 0
  br i1 %171, label %175, label %172

172:                                              ; preds = %169
  %173 = load i32, ptr %7, align 4, !tbaa !22
  %174 = icmp ne i32 %173, 0
  br label %175

175:                                              ; preds = %172, %169
  %176 = phi i1 [ true, %169 ], [ %174, %172 ]
  br i1 %176, label %87, label %177, !llvm.loop !30

177:                                              ; preds = %175
  %178 = load ptr, ptr %5, align 8, !tbaa !5
  %179 = icmp ne ptr %178, null
  br i1 %179, label %180, label %191

180:                                              ; preds = %177
  %181 = load ptr, ptr %5, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.player_s, ptr %181, i32 0, i32 21
  %183 = load i32, ptr %182, align 8, !tbaa !32
  %184 = and i32 %183, 4
  %185 = icmp ne i32 %184, 0
  br i1 %185, label %186, label %191

186:                                              ; preds = %180
  %187 = load ptr, ptr %2, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.mobj_s, ptr %187, i32 0, i32 17
  store i32 0, ptr %188, align 4, !tbaa !15
  %189 = load ptr, ptr %2, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.mobj_s, ptr %189, i32 0, i32 16
  store i32 0, ptr %190, align 8, !tbaa !9
  store i32 1, ptr %8, align 4
  br label %324

191:                                              ; preds = %180, %177
  %192 = load ptr, ptr %2, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.mobj_s, ptr %192, i32 0, i32 24
  %194 = load i32, ptr %193, align 8, !tbaa !16
  %195 = and i32 %194, 16842752
  %196 = icmp ne i32 %195, 0
  br i1 %196, label %197, label %198

197:                                              ; preds = %191
  store i32 1, ptr %8, align 4
  br label %324

198:                                              ; preds = %191
  %199 = load ptr, ptr %2, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.mobj_s, ptr %199, i32 0, i32 3
  %201 = load i32, ptr %200, align 8, !tbaa !35
  %202 = load ptr, ptr %2, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.mobj_s, ptr %202, i32 0, i32 12
  %204 = load i32, ptr %203, align 8, !tbaa !36
  %205 = icmp sgt i32 %201, %204
  br i1 %205, label %206, label %207

206:                                              ; preds = %198
  store i32 1, ptr %8, align 4
  br label %324

207:                                              ; preds = %198
  %208 = load ptr, ptr %2, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.mobj_s, ptr %208, i32 0, i32 24
  %210 = load i32, ptr %209, align 8, !tbaa !16
  %211 = and i32 %210, 1048576
  %212 = icmp ne i32 %211, 0
  br i1 %212, label %213, label %248

213:                                              ; preds = %207
  %214 = load ptr, ptr %2, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.mobj_s, ptr %214, i32 0, i32 16
  %216 = load i32, ptr %215, align 8, !tbaa !9
  %217 = icmp sgt i32 %216, 16384
  br i1 %217, label %233, label %218

218:                                              ; preds = %213
  %219 = load ptr, ptr %2, align 8, !tbaa !5
  %220 = getelementptr inbounds %struct.mobj_s, ptr %219, i32 0, i32 16
  %221 = load i32, ptr %220, align 8, !tbaa !9
  %222 = icmp slt i32 %221, -16384
  br i1 %222, label %233, label %223

223:                                              ; preds = %218
  %224 = load ptr, ptr %2, align 8, !tbaa !5
  %225 = getelementptr inbounds %struct.mobj_s, ptr %224, i32 0, i32 17
  %226 = load i32, ptr %225, align 4, !tbaa !15
  %227 = icmp sgt i32 %226, 16384
  br i1 %227, label %233, label %228

228:                                              ; preds = %223
  %229 = load ptr, ptr %2, align 8, !tbaa !5
  %230 = getelementptr inbounds %struct.mobj_s, ptr %229, i32 0, i32 17
  %231 = load i32, ptr %230, align 4, !tbaa !15
  %232 = icmp slt i32 %231, -16384
  br i1 %232, label %233, label %247

233:                                              ; preds = %228, %223, %218, %213
  %234 = load ptr, ptr %2, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct.mobj_s, ptr %234, i32 0, i32 12
  %236 = load i32, ptr %235, align 8, !tbaa !36
  %237 = load ptr, ptr %2, align 8, !tbaa !5
  %238 = getelementptr inbounds %struct.mobj_s, ptr %237, i32 0, i32 11
  %239 = load ptr, ptr %238, align 8, !tbaa !37
  %240 = getelementptr inbounds %struct.subsector_s, ptr %239, i32 0, i32 0
  %241 = load ptr, ptr %240, align 8, !tbaa !38
  %242 = getelementptr inbounds %struct.sector_t, ptr %241, i32 0, i32 0
  %243 = load i32, ptr %242, align 8, !tbaa !40
  %244 = icmp ne i32 %236, %243
  br i1 %244, label %245, label %246

245:                                              ; preds = %233
  store i32 1, ptr %8, align 4
  br label %324

246:                                              ; preds = %233
  br label %247

247:                                              ; preds = %246, %228
  br label %248

248:                                              ; preds = %247, %207
  %249 = load ptr, ptr %2, align 8, !tbaa !5
  %250 = getelementptr inbounds %struct.mobj_s, ptr %249, i32 0, i32 16
  %251 = load i32, ptr %250, align 8, !tbaa !9
  %252 = icmp sgt i32 %251, -4096
  br i1 %252, label %253, label %310

253:                                              ; preds = %248
  %254 = load ptr, ptr %2, align 8, !tbaa !5
  %255 = getelementptr inbounds %struct.mobj_s, ptr %254, i32 0, i32 16
  %256 = load i32, ptr %255, align 8, !tbaa !9
  %257 = icmp slt i32 %256, 4096
  br i1 %257, label %258, label %310

258:                                              ; preds = %253
  %259 = load ptr, ptr %2, align 8, !tbaa !5
  %260 = getelementptr inbounds %struct.mobj_s, ptr %259, i32 0, i32 17
  %261 = load i32, ptr %260, align 4, !tbaa !15
  %262 = icmp sgt i32 %261, -4096
  br i1 %262, label %263, label %310

263:                                              ; preds = %258
  %264 = load ptr, ptr %2, align 8, !tbaa !5
  %265 = getelementptr inbounds %struct.mobj_s, ptr %264, i32 0, i32 17
  %266 = load i32, ptr %265, align 4, !tbaa !15
  %267 = icmp slt i32 %266, 4096
  br i1 %267, label %268, label %310

268:                                              ; preds = %263
  %269 = load ptr, ptr %5, align 8, !tbaa !5
  %270 = icmp ne ptr %269, null
  br i1 %270, label %271, label %285

271:                                              ; preds = %268
  %272 = load ptr, ptr %5, align 8, !tbaa !5
  %273 = getelementptr inbounds %struct.player_s, ptr %272, i32 0, i32 2
  %274 = getelementptr inbounds %struct.ticcmd_t, ptr %273, i32 0, i32 0
  %275 = load i8, ptr %274, align 4, !tbaa !41
  %276 = sext i8 %275 to i32
  %277 = icmp eq i32 %276, 0
  br i1 %277, label %278, label %310

278:                                              ; preds = %271
  %279 = load ptr, ptr %5, align 8, !tbaa !5
  %280 = getelementptr inbounds %struct.player_s, ptr %279, i32 0, i32 2
  %281 = getelementptr inbounds %struct.ticcmd_t, ptr %280, i32 0, i32 1
  %282 = load i8, ptr %281, align 1, !tbaa !42
  %283 = sext i8 %282 to i32
  %284 = icmp eq i32 %283, 0
  br i1 %284, label %285, label %310

285:                                              ; preds = %278, %268
  %286 = load ptr, ptr %5, align 8, !tbaa !5
  %287 = icmp ne ptr %286, null
  br i1 %287, label %288, label %305

288:                                              ; preds = %285
  %289 = load ptr, ptr %5, align 8, !tbaa !5
  %290 = getelementptr inbounds %struct.player_s, ptr %289, i32 0, i32 0
  %291 = load ptr, ptr %290, align 8, !tbaa !43
  %292 = getelementptr inbounds %struct.mobj_s, ptr %291, i32 0, i32 23
  %293 = load ptr, ptr %292, align 8, !tbaa !44
  %294 = ptrtoint ptr %293 to i64
  %295 = sub i64 %294, ptrtoint (ptr @states to i64)
  %296 = sdiv exact i64 %295, 56
  %297 = sub nsw i64 %296, 150
  %298 = trunc i64 %297 to i32
  %299 = icmp ult i32 %298, 4
  br i1 %299, label %300, label %305

300:                                              ; preds = %288
  %301 = load ptr, ptr %5, align 8, !tbaa !5
  %302 = getelementptr inbounds %struct.player_s, ptr %301, i32 0, i32 0
  %303 = load ptr, ptr %302, align 8, !tbaa !43
  %304 = call i32 @P_SetMobjState(ptr noundef %303, i32 noundef 149)
  br label %305

305:                                              ; preds = %300, %288, %285
  %306 = load ptr, ptr %2, align 8, !tbaa !5
  %307 = getelementptr inbounds %struct.mobj_s, ptr %306, i32 0, i32 16
  store i32 0, ptr %307, align 8, !tbaa !9
  %308 = load ptr, ptr %2, align 8, !tbaa !5
  %309 = getelementptr inbounds %struct.mobj_s, ptr %308, i32 0, i32 17
  store i32 0, ptr %309, align 4, !tbaa !15
  br label %323

310:                                              ; preds = %278, %271, %263, %258, %253, %248
  %311 = load ptr, ptr %2, align 8, !tbaa !5
  %312 = getelementptr inbounds %struct.mobj_s, ptr %311, i32 0, i32 16
  %313 = load i32, ptr %312, align 8, !tbaa !9
  %314 = call i32 @FixedMul(i32 noundef %313, i32 noundef 59392)
  %315 = load ptr, ptr %2, align 8, !tbaa !5
  %316 = getelementptr inbounds %struct.mobj_s, ptr %315, i32 0, i32 16
  store i32 %314, ptr %316, align 8, !tbaa !9
  %317 = load ptr, ptr %2, align 8, !tbaa !5
  %318 = getelementptr inbounds %struct.mobj_s, ptr %317, i32 0, i32 17
  %319 = load i32, ptr %318, align 4, !tbaa !15
  %320 = call i32 @FixedMul(i32 noundef %319, i32 noundef 59392)
  %321 = load ptr, ptr %2, align 8, !tbaa !5
  %322 = getelementptr inbounds %struct.mobj_s, ptr %321, i32 0, i32 17
  store i32 %320, ptr %322, align 4, !tbaa !15
  br label %323

323:                                              ; preds = %310, %305
  store i32 0, ptr %8, align 4
  br label %324

324:                                              ; preds = %323, %245, %206, %197, %186, %157, %42
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  %325 = load i32, ptr %8, align 4
  switch i32 %325, label %327 [
    i32 0, label %326
    i32 1, label %326
  ]

326:                                              ; preds = %324, %324
  ret void

327:                                              ; preds = %324
  unreachable
}

declare i32 @P_TryMove(ptr noundef, i32 noundef, i32 noundef) #2

declare void @P_SlideMove(ptr noundef) #2

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

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 = { "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 = { 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 #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, !12, i64 112}
!10 = !{!"mobj_s", !11, i64 0, !12, i64 24, !12, i64 28, !12, i64 32, !6, i64 40, !6, i64 48, !12, i64 56, !12, i64 60, !12, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !12, i64 96, !12, i64 100, !12, i64 104, !12, i64 108, !12, i64 112, !12, i64 116, !12, i64 120, !12, i64 124, !12, i64 128, !6, i64 136, !12, i64 144, !6, i64 152, !12, i64 160, !12, i64 164, !12, i64 168, !12, i64 172, !6, i64 176, !12, i64 184, !12, i64 188, !6, i64 192, !12, i64 200, !13, i64 204, !6, i64 216}
!11 = !{!"thinker_s", !6, i64 0, !6, i64 8, !7, i64 16}
!12 = !{!"int", !7, i64 0}
!13 = !{!"", !14, i64 0, !14, i64 2, !14, i64 4, !14, i64 6, !14, i64 8}
!14 = !{!"short", !7, i64 0}
!15 = !{!10, !12, i64 116}
!16 = !{!10, !12, i64 160}
!17 = !{!10, !12, i64 120}
!18 = !{!10, !6, i64 136}
!19 = !{!20, !12, i64 4}
!20 = !{!"", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !12, i64 32, !12, i64 36, !12, i64 40, !12, i64 44, !12, i64 48, !12, i64 52, !12, i64 56, !12, i64 60, !12, i64 64, !12, i64 68, !12, i64 72, !12, i64 76, !12, i64 80, !12, i64 84, !12, i64 88}
!21 = !{!10, !6, i64 192}
!22 = !{!12, !12, i64 0}
!23 = !{!10, !12, i64 24}
!24 = !{!10, !12, i64 28}
!25 = !{!26, !6, i64 64}
!26 = !{!"line_s", !6, i64 0, !6, i64 8, !12, i64 16, !12, i64 20, !14, i64 24, !14, i64 26, !14, i64 28, !7, i64 30, !7, i64 36, !12, i64 52, !6, i64 56, !6, i64 64, !12, i64 72, !6, i64 80}
!27 = !{!28, !14, i64 10}
!28 = !{!"", !12, i64 0, !12, i64 4, !14, i64 8, !14, i64 10, !14, i64 12, !14, i64 14, !14, i64 16, !12, i64 20, !6, i64 24, !7, i64 32, !29, i64 48, !12, i64 88, !6, i64 96, !6, i64 104, !12, i64 112, !6, i64 120}
!29 = !{!"", !11, i64 0, !12, i64 24, !12, i64 28, !12, i64 32}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}
!32 = !{!33, !12, i64 200}
!33 = !{!"player_s", !6, i64 0, !12, i64 8, !34, i64 12, !12, i64 20, !12, i64 24, !12, i64 28, !12, i64 32, !12, i64 36, !12, i64 40, !12, i64 44, !7, i64 48, !7, i64 72, !12, i64 96, !7, i64 100, !12, i64 116, !12, i64 120, !7, i64 124, !7, i64 160, !7, i64 176, !12, i64 192, !12, i64 196, !12, i64 200, !12, i64 204, !12, i64 208, !12, i64 212, !12, i64 216, !6, i64 224, !12, i64 232, !12, i64 236, !6, i64 240, !12, i64 248, !12, i64 252, !12, i64 256, !7, i64 264, !12, i64 312}
!34 = !{!"", !7, i64 0, !7, i64 1, !14, i64 2, !14, i64 4, !7, i64 6, !7, i64 7}
!35 = !{!10, !12, i64 32}
!36 = !{!10, !12, i64 96}
!37 = !{!10, !6, i64 88}
!38 = !{!39, !6, i64 0}
!39 = !{!"subsector_s", !6, i64 0, !14, i64 8, !14, i64 10}
!40 = !{!28, !12, i64 0}
!41 = !{!33, !7, i64 12}
!42 = !{!33, !7, i64 13}
!43 = !{!33, !6, i64 0}
!44 = !{!10, !6, i64 152}


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

@states = external global [967 x %struct.state_t], align 16
@ceilingline = external local_unnamed_addr global ptr, align 8
@skyflatnum = external local_unnamed_addr global i32, align 4

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @P_XYMovement(ptr noundef %0) local_unnamed_addr #0 {
  %2 = getelementptr inbounds i8, ptr %0, i64 112
  %3 = load i32, ptr %2, align 8, !tbaa !5
  %.not = icmp eq i32 %3, 0
  br i1 %.not, label %4, label %21

4:                                                ; preds = %1
  %5 = getelementptr inbounds i8, ptr %0, i64 116
  %6 = load i32, ptr %5, align 4, !tbaa !14
  %.not88 = icmp eq i32 %6, 0
  br i1 %.not88, label %9, label %.thread104

.thread104:                                       ; preds = %4
  %7 = getelementptr inbounds i8, ptr %0, i64 192
  %8 = load ptr, ptr %7, align 8, !tbaa !15
  br label %29

9:                                                ; preds = %4
  %10 = getelementptr inbounds i8, ptr %0, i64 160
  %11 = load i32, ptr %10, align 8, !tbaa !16
  %12 = and i32 %11, 16777216
  %.not89 = icmp eq i32 %12, 0
  br i1 %.not89, label %141, label %13

13:                                               ; preds = %9
  %14 = and i32 %11, -16777217
  store i32 %14, ptr %10, align 8, !tbaa !16
  %15 = getelementptr inbounds i8, ptr %0, i64 120
  store i32 0, ptr %15, align 8, !tbaa !17
  store i32 0, ptr %5, align 4, !tbaa !14
  store i32 0, ptr %2, align 8, !tbaa !5
  %16 = getelementptr inbounds i8, ptr %0, i64 136
  %17 = load ptr, ptr %16, align 8, !tbaa !18
  %18 = getelementptr inbounds i8, ptr %17, i64 4
  %19 = load i32, ptr %18, align 4, !tbaa !19
  %20 = tail call i32 @P_SetMobjState(ptr noundef nonnull %0, i32 noundef %19)
  br label %141

21:                                               ; preds = %1
  %22 = getelementptr inbounds i8, ptr %0, i64 192
  %23 = load ptr, ptr %22, align 8, !tbaa !15
  %24 = icmp sgt i32 %3, 1966080
  br i1 %24, label %25, label %26

25:                                               ; preds = %21
  store i32 1966080, ptr %2, align 8, !tbaa !5
  br label %29

26:                                               ; preds = %21
  %27 = icmp slt i32 %3, -1966080
  br i1 %27, label %28, label %29

28:                                               ; preds = %26
  store i32 -1966080, ptr %2, align 8, !tbaa !5
  br label %29

29:                                               ; preds = %.thread104, %26, %28, %25
  %30 = phi i32 [ %3, %26 ], [ -1966080, %28 ], [ 1966080, %25 ], [ 0, %.thread104 ]
  %31 = phi ptr [ %23, %26 ], [ %23, %28 ], [ %23, %25 ], [ %8, %.thread104 ]
  %32 = phi ptr [ %22, %26 ], [ %22, %28 ], [ %22, %25 ], [ %7, %.thread104 ]
  %33 = getelementptr inbounds i8, ptr %0, i64 116
  %34 = load i32, ptr %33, align 4, !tbaa !14
  %35 = icmp sgt i32 %34, 1966080
  br i1 %35, label %.sink.split, label %36

36:                                               ; preds = %29
  %37 = icmp slt i32 %34, -1966080
  br i1 %37, label %.sink.split, label %38

.sink.split:                                      ; preds = %36, %29
  %.sink = phi i32 [ 1966080, %29 ], [ -1966080, %36 ]
  store i32 %.sink, ptr %33, align 4, !tbaa !14
  br label %38

38:                                               ; preds = %.sink.split, %36
  %39 = phi i32 [ %34, %36 ], [ %.sink, %.sink.split ]
  %40 = getelementptr inbounds i8, ptr %0, i64 24
  %41 = getelementptr inbounds i8, ptr %0, i64 28
  %42 = getelementptr inbounds i8, ptr %0, i64 160
  br label %43

43:                                               ; preds = %79, %38
  %.074 = phi i32 [ %30, %38 ], [ %.175, %79 ]
  %.0 = phi i32 [ %39, %38 ], [ %.1, %79 ]
  %44 = icmp sgt i32 %.074, 983040
  %45 = icmp sgt i32 %.0, 983040
  %or.cond = select i1 %44, i1 true, i1 %45
  %46 = load i32, ptr %40, align 8, !tbaa !21
  br i1 %or.cond, label %47, label %54

47:                                               ; preds = %43
  %48 = sdiv i32 %.074, 2
  %49 = load i32, ptr %41, align 4, !tbaa !22
  %50 = sdiv i32 %.0, 2
  %51 = add nsw i32 %49, %50
  %52 = ashr i32 %.074, 1
  %53 = ashr i32 %.0, 1
  br label %57

54:                                               ; preds = %43
  %55 = load i32, ptr %41, align 4, !tbaa !22
  %56 = add nsw i32 %55, %.0
  br label %57

57:                                               ; preds = %54, %47
  %.077 = phi i32 [ %51, %47 ], [ %56, %54 ]
  %.pn = phi i32 [ %48, %47 ], [ %.074, %54 ]
  %.175 = phi i32 [ %52, %47 ], [ 0, %54 ]
  %.1 = phi i32 [ %53, %47 ], [ 0, %54 ]
  %.076 = add nsw i32 %46, %.pn
  %58 = tail call i32 @P_TryMove(ptr noundef nonnull %0, i32 noundef %.076, i32 noundef %.077) #3
  %.not90 = icmp eq i32 %58, 0
  br i1 %.not90, label %59, label %79

59:                                               ; preds = %57
  %60 = load ptr, ptr %32, align 8, !tbaa !15
  %.not91 = icmp eq ptr %60, null
  br i1 %.not91, label %62, label %61

61:                                               ; preds = %59
  tail call void @P_SlideMove(ptr noundef nonnull %0) #3
  br label %79

62:                                               ; preds = %59
  %63 = load i32, ptr %42, align 8, !tbaa !16
  %64 = and i32 %63, 65536
  %.not92 = icmp eq i32 %64, 0
  br i1 %.not92, label %78, label %65

65:                                               ; preds = %62
  %66 = load ptr, ptr @ceilingline, align 8, !tbaa !23
  %.not93 = icmp eq ptr %66, null
  br i1 %.not93, label %77, label %67

67:                                               ; preds = %65
  %68 = getelementptr inbounds i8, ptr %66, i64 64
  %69 = load ptr, ptr %68, align 8, !tbaa !24
  %.not94 = icmp eq ptr %69, null
  br i1 %.not94, label %77, label %70

70:                                               ; preds = %67
  %71 = getelementptr inbounds i8, ptr %69, i64 10
  %72 = load i16, ptr %71, align 2, !tbaa !26
  %73 = sext i16 %72 to i32
  %74 = load i32, ptr @skyflatnum, align 4, !tbaa !29
  %75 = icmp eq i32 %74, %73
  br i1 %75, label %76, label %77

76:                                               ; preds = %70
  tail call void @P_RemoveMobj(ptr noundef nonnull %0)
  br label %141

77:                                               ; preds = %70, %67, %65
  tail call void @P_ExplodeMissile(ptr noundef nonnull %0)
  br label %79

78:                                               ; preds = %62
  store i32 0, ptr %33, align 4, !tbaa !14
  store i32 0, ptr %2, align 8, !tbaa !5
  br label %79

79:                                               ; preds = %57, %77, %78, %61
  %80 = icmp ne i32 %.175, 0
  %81 = icmp ne i32 %.1, 0
  %82 = select i1 %80, i1 true, i1 %81
  br i1 %82, label %43, label %83, !llvm.loop !30

83:                                               ; preds = %79
  %.not95 = icmp eq ptr %31, null
  br i1 %.not95, label %89, label %84

84:                                               ; preds = %83
  %85 = getelementptr inbounds i8, ptr %31, i64 200
  %86 = load i32, ptr %85, align 8, !tbaa !32
  %87 = and i32 %86, 4
  %.not96 = icmp eq i32 %87, 0
  br i1 %.not96, label %89, label %88

88:                                               ; preds = %84
  store i32 0, ptr %33, align 4, !tbaa !14
  store i32 0, ptr %2, align 8, !tbaa !5
  br label %141

89:                                               ; preds = %84, %83
  %90 = load i32, ptr %42, align 8, !tbaa !16
  %91 = and i32 %90, 16842752
  %.not97 = icmp eq i32 %91, 0
  br i1 %.not97, label %92, label %141

92:                                               ; preds = %89
  %93 = getelementptr inbounds i8, ptr %0, i64 32
  %94 = load i32, ptr %93, align 8, !tbaa !35
  %95 = getelementptr inbounds i8, ptr %0, i64 96
  %96 = load i32, ptr %95, align 8, !tbaa !36
  %97 = icmp sgt i32 %94, %96
  br i1 %97, label %141, label %98

98:                                               ; preds = %92
  %99 = and i32 %90, 1048576
  %.not98 = icmp eq i32 %99, 0
  %.pre = load i32, ptr %2, align 8, !tbaa !5
  br i1 %.not98, label %110, label %100

100:                                              ; preds = %98
  %101 = add i32 %.pre, -16385
  %or.cond100 = icmp ult i32 %101, -32769
  br i1 %or.cond100, label %105, label %102

102:                                              ; preds = %100
  %103 = load i32, ptr %33, align 4, !tbaa !14
  %104 = add i32 %103, -16385
  %or.cond101 = icmp ult i32 %104, -32769
  br i1 %or.cond101, label %105, label %110

105:                                              ; preds = %102, %100
  %106 = getelementptr inbounds i8, ptr %0, i64 88
  %107 = load ptr, ptr %106, align 8, !tbaa !37
  %108 = load ptr, ptr %107, align 8, !tbaa !38
  %109 = load i32, ptr %108, align 8, !tbaa !40
  %.not99 = icmp eq i32 %96, %109
  br i1 %.not99, label %110, label %141

110:                                              ; preds = %102, %105, %98
  %111 = add i32 %.pre, 4095
  %or.cond102 = icmp ult i32 %111, 8191
  br i1 %or.cond102, label %112, label %136

112:                                              ; preds = %110
  %113 = load i32, ptr %33, align 4, !tbaa !14
  %114 = add i32 %113, 4095
  %or.cond103 = icmp ult i32 %114, 8191
  br i1 %or.cond103, label %115, label %136

115:                                              ; preds = %112
  br i1 %.not95, label %.critedge, label %116

116:                                              ; preds = %115
  %117 = getelementptr inbounds i8, ptr %31, i64 12
  %118 = load i8, ptr %117, align 4, !tbaa !41
  %119 = icmp eq i8 %118, 0
  br i1 %119, label %120, label %136

120:                                              ; preds = %116
  %121 = getelementptr inbounds i8, ptr %31, i64 13
  %122 = load i8, ptr %121, align 1, !tbaa !42
  %123 = icmp eq i8 %122, 0
  br i1 %123, label %124, label %136

124:                                              ; preds = %120
  %125 = load ptr, ptr %31, align 8, !tbaa !43
  %126 = getelementptr inbounds i8, ptr %125, i64 152
  %127 = load ptr, ptr %126, align 8, !tbaa !44
  %128 = ptrtoint ptr %127 to i64
  %129 = sub i64 %128, ptrtoint (ptr @states to i64)
  %130 = sdiv exact i64 %129, 56
  %131 = trunc i64 %130 to i32
  %132 = add i32 %131, -150
  %133 = icmp ult i32 %132, 4
  br i1 %133, label %134, label %.critedge

134:                                              ; preds = %124
  %135 = tail call i32 @P_SetMobjState(ptr noundef nonnull %125, i32 noundef 149)
  br label %.critedge

.critedge:                                        ; preds = %115, %134, %124
  store i32 0, ptr %2, align 8, !tbaa !5
  br label %140

136:                                              ; preds = %120, %116, %112, %110
  %137 = tail call i32 @FixedMul(i32 noundef %.pre, i32 noundef 59392)
  store i32 %137, ptr %2, align 8, !tbaa !5
  %138 = load i32, ptr %33, align 4, !tbaa !14
  %139 = tail call i32 @FixedMul(i32 noundef %138, i32 noundef 59392)
  br label %140

140:                                              ; preds = %136, %.critedge
  %storemerge = phi i32 [ %139, %136 ], [ 0, %.critedge ]
  store i32 %storemerge, ptr %33, align 4, !tbaa !14
  br label %141

141:                                              ; preds = %105, %92, %89, %9, %13, %140, %88, %76
  ret void
}

declare i32 @P_TryMove(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

declare void @P_SlideMove(ptr noundef) local_unnamed_addr #1

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

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

!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 112}
!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 116}
!15 = !{!6, !8, i64 192}
!16 = !{!6, !11, i64 160}
!17 = !{!6, !11, i64 120}
!18 = !{!6, !8, i64 136}
!19 = !{!20, !11, i64 4}
!20 = !{!"", !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}
!21 = !{!6, !11, i64 24}
!22 = !{!6, !11, i64 28}
!23 = !{!8, !8, i64 0}
!24 = !{!25, !8, i64 64}
!25 = !{!"line_s", !8, i64 0, !8, i64 8, !11, i64 16, !11, i64 20, !13, i64 24, !13, i64 26, !13, i64 28, !9, i64 30, !9, i64 36, !11, i64 52, !8, i64 56, !8, i64 64, !11, i64 72, !8, i64 80}
!26 = !{!27, !13, i64 10}
!27 = !{!"", !11, i64 0, !11, i64 4, !13, i64 8, !13, i64 10, !13, i64 12, !13, i64 14, !13, i64 16, !11, i64 20, !8, i64 24, !9, i64 32, !28, i64 48, !11, i64 88, !8, i64 96, !8, i64 104, !11, i64 112, !8, i64 120}
!28 = !{!"", !7, i64 0, !11, i64 24, !11, i64 28, !11, i64 32}
!29 = !{!11, !11, i64 0}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}
!32 = !{!33, !11, i64 200}
!33 = !{!"player_s", !8, i64 0, !11, i64 8, !34, i64 12, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !9, i64 48, !9, i64 72, !11, i64 96, !9, i64 100, !11, i64 116, !11, i64 120, !9, i64 124, !9, i64 160, !9, i64 176, !11, i64 192, !11, i64 196, !11, i64 200, !11, i64 204, !11, i64 208, !11, i64 212, !11, i64 216, !8, i64 224, !11, i64 232, !11, i64 236, !8, i64 240, !11, i64 248, !11, i64 252, !11, i64 256, !9, i64 264, !11, i64 312}
!34 = !{!"", !9, i64 0, !9, i64 1, !13, i64 2, !13, i64 4, !9, i64 6, !9, i64 7}
!35 = !{!6, !11, i64 32}
!36 = !{!6, !11, i64 96}
!37 = !{!6, !8, i64 88}
!38 = !{!39, !8, i64 0}
!39 = !{!"subsector_s", !8, i64 0, !13, i64 8, !13, i64 10}
!40 = !{!27, !11, i64 0}
!41 = !{!33, !9, i64 12}
!42 = !{!33, !9, i64 13}
!43 = !{!33, !8, i64 0}
!44 = !{!6, !8, i64 152}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,SROAPass,SimplifyCFGPass,TailCallElimPass