; LLVM IR from ssloy/tinyraycaster :: tinyraycaster.ll (Z6renderR11FrameBufferRK9GameState)

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

%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.7" = type { i8 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.GameState = type { %struct.Map, %struct.Player, %"class.std::vector.0", %struct.Texture, %struct.Texture }
%struct.Map = type { i64, i64 }
%struct.Player = type { float, float, float, float, i32, i32 }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<Sprite, std::allocator<Sprite>>::_Vector_impl" }
%"struct.std::_Vector_base<Sprite, std::allocator<Sprite>>::_Vector_impl" = type { %"struct.std::_Vector_base<Sprite, std::allocator<Sprite>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Sprite, std::allocator<Sprite>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.Texture = type { i64, i64, i64, i64, %"class.std::vector" }
%struct.FrameBuffer = type { i64, i64, %"class.std::vector" }

@.str.1 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [22 x i8], align 1
@__PRETTY_FUNCTION__._Z6renderR11FrameBufferRK9GameState = external hidden unnamed_addr constant [46 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z15wall_x_texcoordffRK7Texture(float noundef, float noundef, ptr noundef nonnull align 8 dereferenceable(56)) #0

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z8draw_mapR11FrameBufferRKSt6vectorI6SpriteSaIS2_EERK7TextureRK3Mapmm(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i64 noundef) #0

declare noundef zeroext i1 @_ZNK3Map8is_emptyEmm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i64 noundef) #3

declare noundef i32 @_ZNK3Map3getEmm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i64 noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorI6SpriteSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorI6SpriteSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #4 align 2

declare noundef i32 @_Z10pack_colorhhhh(i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z11draw_spriteR11FrameBufferRK6SpriteRKSt6vectorIfSaIfEERK6PlayerRK7Texture(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(56)) #0

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #5

declare void @_ZN11FrameBuffer9set_pixelEmmj(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef, i64 noundef, i32 noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local void @_Z6renderR11FrameBufferRK9GameState(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef nonnull align 8 dereferenceable(176) %1) #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca %"class.std::vector.5", align 8
  %13 = alloca float, align 4
  %14 = alloca %"class.std::allocator.7", align 1
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca i64, align 8
  %18 = alloca i32, align 4
  %19 = alloca float, align 4
  %20 = alloca float, align 4
  %21 = alloca float, align 4
  %22 = alloca float, align 4
  %23 = alloca i64, align 8
  %24 = alloca float, align 4
  %25 = alloca i64, align 8
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca %"class.std::vector", align 8
  %30 = alloca i32, align 4
  %31 = alloca i64, align 8
  %32 = alloca i32, align 4
  %33 = alloca i64, align 8
  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 8, ptr %5) #8
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.GameState, ptr %34, i32 0, i32 0
  store ptr %35, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.GameState, ptr %36, i32 0, i32 1
  store ptr %37, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.GameState, ptr %38, i32 0, i32 2
  store ptr %39, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  %40 = load ptr, ptr %4, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.GameState, ptr %40, i32 0, i32 3
  store ptr %41, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.GameState, ptr %42, i32 0, i32 4
  store ptr %43, ptr %9, align 8, !tbaa !5
  %44 = load ptr, ptr %3, align 8, !tbaa !5
  %45 = call noundef i32 @_Z10pack_colorhhhh(i8 noundef zeroext -1, i8 noundef zeroext -1, i8 noundef zeroext -1, i8 noundef zeroext -1)
  call void @_ZN11FrameBuffer5clearEj(ptr noundef nonnull align 8 dereferenceable(40) %44, i32 noundef %45)
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  %46 = load ptr, ptr %3, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.FrameBuffer, ptr %46, i32 0, i32 0
  %48 = load i64, ptr %47, align 8, !tbaa !9
  %49 = load ptr, ptr %5, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.Map, ptr %49, i32 0, i32 0
  %51 = load i64, ptr %50, align 8, !tbaa !16
  %52 = mul i64 %51, 2
  %53 = udiv i64 %48, %52
  store i64 %53, ptr %10, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  %54 = load ptr, ptr %3, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.FrameBuffer, ptr %54, i32 0, i32 1
  %56 = load i64, ptr %55, align 8, !tbaa !19
  %57 = load ptr, ptr %5, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.Map, ptr %57, i32 0, i32 1
  %59 = load i64, ptr %58, align 8, !tbaa !20
  %60 = udiv i64 %56, %59
  store i64 %60, ptr %11, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #8
  %61 = load ptr, ptr %3, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.FrameBuffer, ptr %61, i32 0, i32 0
  %63 = load i64, ptr %62, align 8, !tbaa !9
  %64 = udiv i64 %63, 2
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  store float 1.000000e+03, ptr %13, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #8
  call void @_ZNSaIfEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #8
  invoke void @_ZNSt6vectorIfSaIfEEC2EmRKfRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %64, ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %65 unwind label %74

65:                                               ; preds = %2
  call void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  store i64 0, ptr %17, align 8, !tbaa !18
  br label %66

66:                                               ; preds = %288, %65
  %67 = load i64, ptr %17, align 8, !tbaa !18
  %68 = load ptr, ptr %3, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.FrameBuffer, ptr %68, i32 0, i32 0
  %70 = load i64, ptr %69, align 8, !tbaa !9
  %71 = udiv i64 %70, 2
  %72 = icmp ult i64 %67, %71
  br i1 %72, label %78, label %73

73:                                               ; preds = %66
  store i32 2, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  br label %291

74:                                               ; preds = %2
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %15, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %16, align 4
  call void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  br label %326

78:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  %79 = load ptr, ptr %6, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.Player, ptr %79, i32 0, i32 2
  %81 = load float, ptr %80, align 4, !tbaa !23
  %82 = load ptr, ptr %6, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.Player, ptr %82, i32 0, i32 3
  %84 = load float, ptr %83, align 4, !tbaa !26
  %85 = fdiv float %84, 2.000000e+00
  %86 = fsub float %81, %85
  %87 = load ptr, ptr %6, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.Player, ptr %87, i32 0, i32 3
  %89 = load float, ptr %88, align 4, !tbaa !26
  %90 = load i64, ptr %17, align 8, !tbaa !18
  %91 = uitofp i64 %90 to float
  %92 = fmul float %89, %91
  %93 = load ptr, ptr %3, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.FrameBuffer, ptr %93, i32 0, i32 0
  %95 = load i64, ptr %94, align 8, !tbaa !9
  %96 = udiv i64 %95, 2
  %97 = uitofp i64 %96 to float
  %98 = fdiv float %92, %97
  %99 = fadd float %86, %98
  store float %99, ptr %19, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  store float 0.000000e+00, ptr %20, align 4, !tbaa !21
  br label %100

100:                                              ; preds = %281, %78
  %101 = load float, ptr %20, align 4, !tbaa !21
  %102 = fcmp olt float %101, 2.000000e+01
  br i1 %102, label %104, label %103

103:                                              ; preds = %100
  store i32 5, ptr %18, align 4
  br label %286

104:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  %105 = load ptr, ptr %6, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.Player, ptr %105, i32 0, i32 0
  %107 = load float, ptr %106, align 4, !tbaa !27
  %108 = fpext float %107 to double
  %109 = load float, ptr %20, align 4, !tbaa !21
  %110 = fpext float %109 to double
  %111 = load float, ptr %19, align 4, !tbaa !21
  %112 = fpext float %111 to double
  %113 = call double @cos(double noundef %112) #8
  %114 = call double @llvm.fmuladd.f64(double %110, double %113, double %108)
  %115 = fptrunc double %114 to float
  store float %115, ptr %21, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  %116 = load ptr, ptr %6, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.Player, ptr %116, i32 0, i32 1
  %118 = load float, ptr %117, align 4, !tbaa !28
  %119 = fpext float %118 to double
  %120 = load float, ptr %20, align 4, !tbaa !21
  %121 = fpext float %120 to double
  %122 = load float, ptr %19, align 4, !tbaa !21
  %123 = fpext float %122 to double
  %124 = call double @sin(double noundef %123) #8
  %125 = call double @llvm.fmuladd.f64(double %121, double %124, double %119)
  %126 = fptrunc double %125 to float
  store float %126, ptr %22, align 4, !tbaa !21
  %127 = load ptr, ptr %3, align 8, !tbaa !5
  %128 = load float, ptr %21, align 4, !tbaa !21
  %129 = load i64, ptr %10, align 8, !tbaa !18
  %130 = uitofp i64 %129 to float
  %131 = fmul float %128, %130
  %132 = fptoui float %131 to i64
  %133 = load float, ptr %22, align 4, !tbaa !21
  %134 = load i64, ptr %11, align 8, !tbaa !18
  %135 = uitofp i64 %134 to float
  %136 = fmul float %133, %135
  %137 = fptoui float %136 to i64
  %138 = invoke noundef i32 @_Z10pack_colorhhhh(i8 noundef zeroext -66, i8 noundef zeroext -66, i8 noundef zeroext -66, i8 noundef zeroext -1)
          to label %139 unwind label %149

139:                                              ; preds = %104
  invoke void @_ZN11FrameBuffer9set_pixelEmmj(ptr noundef nonnull align 8 dereferenceable(40) %127, i64 noundef %132, i64 noundef %137, i32 noundef %138)
          to label %140 unwind label %149

140:                                              ; preds = %139
  %141 = load ptr, ptr %5, align 8, !tbaa !5
  %142 = load float, ptr %21, align 4, !tbaa !21
  %143 = fptoui float %142 to i64
  %144 = load float, ptr %22, align 4, !tbaa !21
  %145 = fptoui float %144 to i64
  %146 = invoke noundef zeroext i1 @_ZNK3Map8is_emptyEmm(ptr noundef nonnull align 8 dereferenceable(16) %141, i64 noundef %143, i64 noundef %145)
          to label %147 unwind label %149

147:                                              ; preds = %140
  br i1 %146, label %148, label %153

148:                                              ; preds = %147
  store i32 7, ptr %18, align 4
  br label %278

149:                                              ; preds = %140, %139, %104
  %150 = landingpad { ptr, i32 }
          cleanup
  %151 = extractvalue { ptr, i32 } %150, 0
  store ptr %151, ptr %15, align 8
  %152 = extractvalue { ptr, i32 } %150, 1
  store i32 %152, ptr %16, align 4
  br label %280

153:                                              ; preds = %147
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  %154 = load ptr, ptr %5, align 8, !tbaa !5
  %155 = load float, ptr %21, align 4, !tbaa !21
  %156 = fptoui float %155 to i64
  %157 = load float, ptr %22, align 4, !tbaa !21
  %158 = fptoui float %157 to i64
  %159 = invoke noundef i32 @_ZNK3Map3getEmm(ptr noundef nonnull align 8 dereferenceable(16) %154, i64 noundef %156, i64 noundef %158)
          to label %160 unwind label %169

160:                                              ; preds = %153
  %161 = sext i32 %159 to i64
  store i64 %161, ptr %23, align 8, !tbaa !18
  %162 = load i64, ptr %23, align 8, !tbaa !18
  %163 = load ptr, ptr %8, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.Texture, ptr %163, i32 0, i32 2
  %165 = load i64, ptr %164, align 8, !tbaa !29
  %166 = icmp ult i64 %162, %165
  br i1 %166, label %167, label %168

167:                                              ; preds = %160
  br label %174

168:                                              ; preds = %160
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 84, ptr noundef @__PRETTY_FUNCTION__._Z6renderR11FrameBufferRK9GameState) #9
  unreachable

169:                                              ; preds = %153
  %170 = landingpad { ptr, i32 }
          cleanup
  %171 = extractvalue { ptr, i32 } %170, 0
  store ptr %171, ptr %15, align 8
  %172 = extractvalue { ptr, i32 } %170, 1
  store i32 %172, ptr %16, align 4
  br label %277

173:                                              ; No predecessors!
  br label %174

174:                                              ; preds = %173, %167
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #8
  %175 = load float, ptr %20, align 4, !tbaa !21
  %176 = fpext float %175 to double
  %177 = load float, ptr %19, align 4, !tbaa !21
  %178 = load ptr, ptr %6, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.Player, ptr %178, i32 0, i32 2
  %180 = load float, ptr %179, align 4, !tbaa !23
  %181 = fsub float %177, %180
  %182 = fpext float %181 to double
  %183 = call double @cos(double noundef %182) #8
  %184 = fmul double %176, %183
  %185 = fptrunc double %184 to float
  store float %185, ptr %24, align 4, !tbaa !21
  %186 = load float, ptr %24, align 4, !tbaa !21
  %187 = load i64, ptr %17, align 8, !tbaa !18
  %188 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %187) #8
  store float %186, ptr %188, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  store i32 2000, ptr %26, align 4, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #8
  %189 = load ptr, ptr %3, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.FrameBuffer, ptr %189, i32 0, i32 1
  %191 = load i64, ptr %190, align 8, !tbaa !19
  %192 = uitofp i64 %191 to float
  %193 = load float, ptr %24, align 4, !tbaa !21
  %194 = fdiv float %192, %193
  %195 = fptosi float %194 to i32
  store i32 %195, ptr %27, align 4, !tbaa !31
  %196 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %26, ptr noundef nonnull align 4 dereferenceable(4) %27)
          to label %197 unwind label %223

197:                                              ; preds = %174
  %198 = load i32, ptr %196, align 4, !tbaa !31
  %199 = sext i32 %198 to i64
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  store i64 %199, ptr %25, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #8
  %200 = load float, ptr %21, align 4, !tbaa !21
  %201 = load float, ptr %22, align 4, !tbaa !21
  %202 = load ptr, ptr %8, align 8, !tbaa !5
  %203 = invoke noundef i32 @_Z15wall_x_texcoordffRK7Texture(float noundef %200, float noundef %201, ptr noundef nonnull align 8 dereferenceable(56) %202)
          to label %204 unwind label %227

204:                                              ; preds = %197
  store i32 %203, ptr %28, align 4, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 24, ptr %29) #8
  %205 = load ptr, ptr %8, align 8, !tbaa !5
  %206 = load i64, ptr %23, align 8, !tbaa !18
  %207 = load i32, ptr %28, align 4, !tbaa !31
  %208 = sext i32 %207 to i64
  %209 = load i64, ptr %25, align 8, !tbaa !18
  invoke void @_ZNK7Texture17get_scaled_columnEmmm(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %29, ptr noundef nonnull align 8 dereferenceable(56) %205, i64 noundef %206, i64 noundef %208, i64 noundef %209)
          to label %210 unwind label %231

210:                                              ; preds = %204
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #8
  %211 = load i64, ptr %17, align 8, !tbaa !18
  %212 = load ptr, ptr %3, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.FrameBuffer, ptr %212, i32 0, i32 0
  %214 = load i64, ptr %213, align 8, !tbaa !9
  %215 = udiv i64 %214, 2
  %216 = add i64 %211, %215
  %217 = trunc i64 %216 to i32
  store i32 %217, ptr %30, align 4, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #8
  store i64 0, ptr %31, align 8, !tbaa !18
  br label %218

218:                                              ; preds = %270, %210
  %219 = load i64, ptr %31, align 8, !tbaa !18
  %220 = load i64, ptr %25, align 8, !tbaa !18
  %221 = icmp ult i64 %219, %220
  br i1 %221, label %235, label %222

222:                                              ; preds = %218
  store i32 8, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  br label %273

223:                                              ; preds = %174
  %224 = landingpad { ptr, i32 }
          cleanup
  %225 = extractvalue { ptr, i32 } %224, 0
  store ptr %225, ptr %15, align 8
  %226 = extractvalue { ptr, i32 } %224, 1
  store i32 %226, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  br label %276

227:                                              ; preds = %197
  %228 = landingpad { ptr, i32 }
          cleanup
  %229 = extractvalue { ptr, i32 } %228, 0
  store ptr %229, ptr %15, align 8
  %230 = extractvalue { ptr, i32 } %228, 1
  store i32 %230, ptr %16, align 4
  br label %275

231:                                              ; preds = %204
  %232 = landingpad { ptr, i32 }
          cleanup
  %233 = extractvalue { ptr, i32 } %232, 0
  store ptr %233, ptr %15, align 8
  %234 = extractvalue { ptr, i32 } %232, 1
  store i32 %234, ptr %16, align 4
  br label %274

235:                                              ; preds = %218
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #8
  %236 = load i64, ptr %31, align 8, !tbaa !18
  %237 = load ptr, ptr %3, align 8, !tbaa !5
  %238 = getelementptr inbounds %struct.FrameBuffer, ptr %237, i32 0, i32 1
  %239 = load i64, ptr %238, align 8, !tbaa !19
  %240 = udiv i64 %239, 2
  %241 = add i64 %236, %240
  %242 = load i64, ptr %25, align 8, !tbaa !18
  %243 = udiv i64 %242, 2
  %244 = sub i64 %241, %243
  %245 = trunc i64 %244 to i32
  store i32 %245, ptr %32, align 4, !tbaa !31
  %246 = load i32, ptr %32, align 4, !tbaa !31
  %247 = icmp sge i32 %246, 0
  br i1 %247, label %248, label %269

248:                                              ; preds = %235
  %249 = load i32, ptr %32, align 4, !tbaa !31
  %250 = load ptr, ptr %3, align 8, !tbaa !5
  %251 = getelementptr inbounds %struct.FrameBuffer, ptr %250, i32 0, i32 1
  %252 = load i64, ptr %251, align 8, !tbaa !19
  %253 = trunc i64 %252 to i32
  %254 = icmp slt i32 %249, %253
  br i1 %254, label %255, label %269

255:                                              ; preds = %248
  %256 = load ptr, ptr %3, align 8, !tbaa !5
  %257 = load i32, ptr %30, align 4, !tbaa !31
  %258 = sext i32 %257 to i64
  %259 = load i32, ptr %32, align 4, !tbaa !31
  %260 = sext i32 %259 to i64
  %261 = load i64, ptr %31, align 8, !tbaa !18
  %262 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef %261) #8
  %263 = load i32, ptr %262, align 4, !tbaa !31
  invoke void @_ZN11FrameBuffer9set_pixelEmmj(ptr noundef nonnull align 8 dereferenceable(40) %256, i64 noundef %258, i64 noundef %260, i32 noundef %263)
          to label %264 unwind label %265

264:                                              ; preds = %255
  br label %269

265:                                              ; preds = %255
  %266 = landingpad { ptr, i32 }
          cleanup
  %267 = extractvalue { ptr, i32 } %266, 0
  store ptr %267, ptr %15, align 8
  %268 = extractvalue { ptr, i32 } %266, 1
  store i32 %268, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #8
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #8
  br label %274

269:                                              ; preds = %264, %248, %235
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #8
  br label %270

270:                                              ; preds = %269
  %271 = load i64, ptr %31, align 8, !tbaa !18
  %272 = add i64 %271, 1
  store i64 %272, ptr %31, align 8, !tbaa !18
  br label %218, !llvm.loop !32

273:                                              ; preds = %222
  store i32 5, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #8
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  br label %278

274:                                              ; preds = %265, %231
  call void @llvm.lifetime.end.p0(i64 24, ptr %29) #8
  br label %275

275:                                              ; preds = %274, %227
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  br label %276

276:                                              ; preds = %275, %223
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  br label %277

277:                                              ; preds = %276, %169
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  br label %280

278:                                              ; preds = %273, %148
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  %279 = load i32, ptr %18, align 4
  switch i32 %279, label %286 [
    i32 7, label %281
  ]

280:                                              ; preds = %277, %149
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  br label %325

281:                                              ; preds = %278
  %282 = load float, ptr %20, align 4, !tbaa !21
  %283 = fpext float %282 to double
  %284 = fadd double %283, 1.000000e-02
  %285 = fptrunc double %284 to float
  store float %285, ptr %20, align 4, !tbaa !21
  br label %100, !llvm.loop !34

286:                                              ; preds = %278, %103
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  br label %287

287:                                              ; preds = %286
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  br label %288

288:                                              ; preds = %287
  %289 = load i64, ptr %17, align 8, !tbaa !18
  %290 = add i64 %289, 1
  store i64 %290, ptr %17, align 8, !tbaa !18
  br label %66, !llvm.loop !35

291:                                              ; preds = %73
  %292 = load ptr, ptr %3, align 8, !tbaa !5
  %293 = load ptr, ptr %7, align 8, !tbaa !5
  %294 = load ptr, ptr %8, align 8, !tbaa !5
  %295 = load ptr, ptr %5, align 8, !tbaa !5
  %296 = load i64, ptr %10, align 8, !tbaa !18
  %297 = load i64, ptr %11, align 8, !tbaa !18
  invoke void @_Z8draw_mapR11FrameBufferRKSt6vectorI6SpriteSaIS2_EERK7TextureRK3Mapmm(ptr noundef nonnull align 8 dereferenceable(40) %292, ptr noundef nonnull align 8 dereferenceable(24) %293, ptr noundef nonnull align 8 dereferenceable(56) %294, ptr noundef nonnull align 8 dereferenceable(16) %295, i64 noundef %296, i64 noundef %297)
          to label %298 unwind label %305

298:                                              ; preds = %291
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #8
  store i64 0, ptr %33, align 8, !tbaa !18
  br label %299

299:                                              ; preds = %317, %298
  %300 = load i64, ptr %33, align 8, !tbaa !18
  %301 = load ptr, ptr %7, align 8, !tbaa !5
  %302 = call noundef i64 @_ZNKSt6vectorI6SpriteSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %301) #8
  %303 = icmp ult i64 %300, %302
  br i1 %303, label %309, label %304

304:                                              ; preds = %299
  store i32 11, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #8
  br label %324

305:                                              ; preds = %291
  %306 = landingpad { ptr, i32 }
          cleanup
  %307 = extractvalue { ptr, i32 } %306, 0
  store ptr %307, ptr %15, align 8
  %308 = extractvalue { ptr, i32 } %306, 1
  store i32 %308, ptr %16, align 4
  br label %325

309:                                              ; preds = %299
  %310 = load ptr, ptr %3, align 8, !tbaa !5
  %311 = load ptr, ptr %7, align 8, !tbaa !5
  %312 = load i64, ptr %33, align 8, !tbaa !18
  %313 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorI6SpriteSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %311, i64 noundef %312) #8
  %314 = load ptr, ptr %6, align 8, !tbaa !5
  %315 = load ptr, ptr %9, align 8, !tbaa !5
  invoke void @_Z11draw_spriteR11FrameBufferRK6SpriteRKSt6vectorIfSaIfEERK6PlayerRK7Texture(ptr noundef nonnull align 8 dereferenceable(40) %310, ptr noundef nonnull align 8 dereferenceable(24) %313, ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 4 dereferenceable(24) %314, ptr noundef nonnull align 8 dereferenceable(56) %315)
          to label %316 unwind label %320

316:                                              ; preds = %309
  br label %317

317:                                              ; preds = %316
  %318 = load i64, ptr %33, align 8, !tbaa !18
  %319 = add i64 %318, 1
  store i64 %319, ptr %33, align 8, !tbaa !18
  br label %299, !llvm.loop !36

320:                                              ; preds = %309
  %321 = landingpad { ptr, i32 }
          cleanup
  %322 = extractvalue { ptr, i32 } %321, 0
  store ptr %322, ptr %15, align 8
  %323 = extractvalue { ptr, i32 } %321, 1
  store i32 %323, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #8
  br label %325

324:                                              ; preds = %304
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  ret void

325:                                              ; preds = %320, %305, %280
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #8
  br label %326

326:                                              ; preds = %325, %74
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  br label %327

327:                                              ; preds = %326
  %328 = load ptr, ptr %15, align 8
  %329 = load i32, ptr %16, align 4
  %330 = insertvalue { ptr, i32 } poison, ptr %328, 0
  %331 = insertvalue { ptr, i32 } %330, i32 %329, 1
  resume { ptr, i32 } %331
}

declare void @_ZN11FrameBuffer5clearEj(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIfEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIfSaIfEEC2EmRKfRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare double @cos(double noundef) #6

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #7

; Function Attrs: nounwind
declare double @sin(double noundef) #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #4 align 2

declare void @_ZNK7Texture17get_scaled_columnEmmm(ptr dead_on_unwind writable sret(%"class.std::vector") align 8, ptr noundef nonnull align 8 dereferenceable(56), i64 noundef, i64 noundef, i64 noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2

attributes #0 = { mustprogress 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 = { noreturn nounwind "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 = { mustprogress 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 #5 = { inlinehint mustprogress 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 #6 = { nounwind "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 #7 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { nounwind }
attributes #9 = { noreturn 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++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_ZTS11FrameBuffer", !11, i64 0, !11, i64 8, !12, i64 16}
!11 = !{!"long", !7, i64 0}
!12 = !{!"_ZTSSt6vectorIjSaIjEE", !13, i64 0}
!13 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!16 = !{!17, !11, i64 0}
!17 = !{!"_ZTS3Map", !11, i64 0, !11, i64 8}
!18 = !{!11, !11, i64 0}
!19 = !{!10, !11, i64 8}
!20 = !{!17, !11, i64 8}
!21 = !{!22, !22, i64 0}
!22 = !{!"float", !7, i64 0}
!23 = !{!24, !22, i64 8}
!24 = !{!"_ZTS6Player", !22, i64 0, !22, i64 4, !22, i64 8, !22, i64 12, !25, i64 16, !25, i64 20}
!25 = !{!"int", !7, i64 0}
!26 = !{!24, !22, i64 12}
!27 = !{!24, !22, i64 0}
!28 = !{!24, !22, i64 4}
!29 = !{!30, !11, i64 16}
!30 = !{!"_ZTS7Texture", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !12, i64 32}
!31 = !{!25, !25, i64 0}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.mustprogress"}
!34 = distinct !{!34, !33}
!35 = distinct !{!35, !33}
!36 = distinct !{!36, !33}


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

%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.7" = type { i8 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str.1 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [22 x i8], align 1
@__PRETTY_FUNCTION__._Z6renderR11FrameBufferRK9GameState = external hidden unnamed_addr constant [46 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z15wall_x_texcoordffRK7Texture(float noundef, float noundef, ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #0

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z8draw_mapR11FrameBufferRKSt6vectorI6SpriteSaIS2_EERK7TextureRK3Mapmm(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i64 noundef) local_unnamed_addr #0

declare noundef zeroext i1 @_ZNK3Map8is_emptyEmm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i64 noundef) local_unnamed_addr #3

declare noundef i32 @_ZNK3Map3getEmm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i64 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorI6SpriteSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorI6SpriteSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #4 align 2

declare noundef i32 @_Z10pack_colorhhhh(i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z11draw_spriteR11FrameBufferRK6SpriteRKSt6vectorIfSaIfEERK6PlayerRK7Texture(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #0

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5

declare void @_ZN11FrameBuffer9set_pixelEmmj(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef, i64 noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local void @_Z6renderR11FrameBufferRK9GameState(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef nonnull align 8 dereferenceable(176) %1) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::vector.5", align 8
  %4 = alloca float, align 4
  %5 = alloca %"class.std::allocator.7", align 1
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca %"class.std::vector", align 8
  %9 = getelementptr inbounds i8, ptr %1, i64 16
  %10 = getelementptr inbounds i8, ptr %1, i64 40
  %11 = getelementptr inbounds i8, ptr %1, i64 64
  %12 = getelementptr inbounds i8, ptr %1, i64 120
  %13 = tail call noundef i32 @_Z10pack_colorhhhh(i8 noundef zeroext -1, i8 noundef zeroext -1, i8 noundef zeroext -1, i8 noundef zeroext -1)
  tail call void @_ZN11FrameBuffer5clearEj(ptr noundef nonnull align 8 dereferenceable(40) %0, i32 noundef %13)
  %14 = load i64, ptr %0, align 8, !tbaa !5
  %15 = load i64, ptr %1, align 8, !tbaa !15
  %16 = shl i64 %15, 1
  %17 = udiv i64 %14, %16
  %18 = getelementptr inbounds i8, ptr %0, i64 8
  %19 = load i64, ptr %18, align 8, !tbaa !17
  %20 = getelementptr inbounds i8, ptr %1, i64 8
  %21 = load i64, ptr %20, align 8, !tbaa !18
  %22 = udiv i64 %19, %21
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #8
  %23 = lshr i64 %14, 1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #8
  store float 1.000000e+03, ptr %4, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #8
  call void @_ZNSaIfEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #8
  invoke void @_ZNSt6vectorIfSaIfEEC2EmRKfRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %23, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %24 unwind label %34

24:                                               ; preds = %2
  call void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #8
  %25 = load i64, ptr %0, align 8, !tbaa !5
  %.not = icmp ult i64 %25, 2
  br i1 %.not, label %._crit_edge112, label %.lr.ph111

.lr.ph111:                                        ; preds = %24
  %26 = lshr i64 %25, 1
  %27 = getelementptr inbounds i8, ptr %1, i64 24
  %28 = getelementptr inbounds i8, ptr %1, i64 28
  %29 = getelementptr inbounds i8, ptr %1, i64 20
  %30 = uitofp i64 %22 to float
  %31 = uitofp i64 %17 to float
  %32 = getelementptr inbounds i8, ptr %1, i64 80
  br label %36

._crit_edge112:                                   ; preds = %.loopexit, %24
  invoke void @_Z8draw_mapR11FrameBufferRKSt6vectorI6SpriteSaIS2_EERK7TextureRK3Mapmm(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(56) %11, ptr noundef nonnull align 8 dereferenceable(16) %1, i64 noundef %17, i64 noundef %22)
          to label %.preheader unwind label %135

.preheader:                                       ; preds = %._crit_edge112
  %33 = call noundef i64 @_ZNKSt6vectorI6SpriteSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #8
  %.not117 = icmp eq i64 %33, 0
  br i1 %.not117, label %._crit_edge115, label %.lr.ph114

34:                                               ; preds = %2
  %35 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #8
  br label %145

36:                                               ; preds = %.lr.ph111, %.loopexit
  %37 = phi i64 [ %26, %.lr.ph111 ], [ %133, %.loopexit ]
  %.093109 = phi i64 [ 0, %.lr.ph111 ], [ %131, %.loopexit ]
  %38 = load float, ptr %27, align 8, !tbaa !21
  %39 = load float, ptr %28, align 4, !tbaa !24
  %40 = fmul float %39, 5.000000e-01
  %41 = fsub float %38, %40
  %42 = uitofp nneg i64 %.093109 to float
  %43 = fmul float %39, %42
  %44 = uitofp nneg i64 %37 to float
  %45 = fdiv float %43, %44
  %46 = fadd float %41, %45
  %47 = fpext float %46 to double
  br label %48

48:                                               ; preds = %36, %.critedge
  %.095108 = phi float [ 0.000000e+00, %36 ], [ %129, %.critedge ]
  %49 = load float, ptr %9, align 8, !tbaa !25
  %50 = fpext float %49 to double
  %51 = fpext float %.095108 to double
  %52 = call double @cos(double noundef %47) #8
  %53 = call double @llvm.fmuladd.f64(double %51, double %52, double %50)
  %54 = fptrunc double %53 to float
  %55 = load float, ptr %29, align 4, !tbaa !26
  %56 = fpext float %55 to double
  %57 = call double @sin(double noundef %47) #8
  %58 = call double @llvm.fmuladd.f64(double %51, double %57, double %56)
  %59 = fptrunc double %58 to float
  %60 = invoke noundef i32 @_Z10pack_colorhhhh(i8 noundef zeroext -66, i8 noundef zeroext -66, i8 noundef zeroext -66, i8 noundef zeroext -1)
          to label %61 unwind label %71

61:                                               ; preds = %48
  %62 = fmul float %30, %59
  %63 = fptoui float %62 to i64
  %64 = fmul float %31, %54
  %65 = fptoui float %64 to i64
  invoke void @_ZN11FrameBuffer9set_pixelEmmj(ptr noundef nonnull align 8 dereferenceable(40) %0, i64 noundef %65, i64 noundef %63, i32 noundef %60)
          to label %66 unwind label %71

66:                                               ; preds = %61
  %67 = fptoui float %54 to i64
  %68 = fptoui float %59 to i64
  %69 = invoke noundef zeroext i1 @_ZNK3Map8is_emptyEmm(ptr noundef nonnull align 8 dereferenceable(16) %1, i64 noundef %67, i64 noundef %68)
          to label %70 unwind label %71

70:                                               ; preds = %66
  br i1 %69, label %.critedge, label %73

71:                                               ; preds = %66, %61, %48
  %72 = landingpad { ptr, i32 }
          cleanup
  br label %144

73:                                               ; preds = %70
  %74 = invoke noundef i32 @_ZNK3Map3getEmm(ptr noundef nonnull align 8 dereferenceable(16) %1, i64 noundef %67, i64 noundef %68)
          to label %75 unwind label %80

75:                                               ; preds = %73
  %76 = sext i32 %74 to i64
  %77 = load i64, ptr %32, align 8, !tbaa !27
  %78 = icmp ugt i64 %77, %76
  br i1 %78, label %82, label %79

79:                                               ; preds = %75
  call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 84, ptr noundef nonnull @__PRETTY_FUNCTION__._Z6renderR11FrameBufferRK9GameState) #9
  unreachable

80:                                               ; preds = %73
  %81 = landingpad { ptr, i32 }
          cleanup
  br label %144

82:                                               ; preds = %75
  %83 = load float, ptr %27, align 8, !tbaa !21
  %84 = fsub float %46, %83
  %85 = fpext float %84 to double
  %86 = call double @cos(double noundef %85) #8
  %87 = fmul double %86, %51
  %88 = fptrunc double %87 to float
  %89 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.093109) #8
  store float %88, ptr %89, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #8
  store i32 2000, ptr %6, align 4, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #8
  %90 = load i64, ptr %18, align 8, !tbaa !17
  %91 = uitofp i64 %90 to float
  %92 = fdiv float %91, %88
  %93 = fptosi float %92 to i32
  store i32 %93, ptr %7, align 4, !tbaa !29
  %94 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %95 = load i32, ptr %94, align 4, !tbaa !29
  %96 = sext i32 %95 to i64
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #8
  %97 = invoke noundef i32 @_Z15wall_x_texcoordffRK7Texture(float noundef %54, float noundef %59, ptr noundef nonnull align 8 dereferenceable(56) %11)
          to label %98 unwind label %106

98:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #8
  %99 = sext i32 %97 to i64
  invoke void @_ZNK7Texture17get_scaled_columnEmmm(ptr dead_on_unwind nonnull writable sret(%"class.std::vector") align 8 %8, ptr noundef nonnull align 8 dereferenceable(56) %11, i64 noundef %76, i64 noundef %99, i64 noundef %96)
          to label %100 unwind label %108

100:                                              ; preds = %98
  %.not116 = icmp eq i32 %95, 0
  br i1 %.not116, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %100
  %101 = load i64, ptr %0, align 8, !tbaa !5
  %102 = lshr i64 %101, 1
  %103 = add nuw i64 %102, %.093109
  %104 = lshr i64 %96, 1
  %sext = shl i64 %103, 32
  %105 = ashr exact i64 %sext, 32
  br label %110

._crit_edge:                                      ; preds = %125, %100
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #8
  br label %.loopexit

106:                                              ; preds = %82
  %107 = landingpad { ptr, i32 }
          cleanup
  br label %144

108:                                              ; preds = %98
  %109 = landingpad { ptr, i32 }
          cleanup
  br label %127

110:                                              ; preds = %.lr.ph, %125
  %.086107 = phi i64 [ 0, %.lr.ph ], [ %126, %125 ]
  %111 = load i64, ptr %18, align 8, !tbaa !17
  %112 = lshr i64 %111, 1
  %113 = sub i64 %.086107, %104
  %114 = add i64 %113, %112
  %115 = trunc i64 %114 to i32
  %116 = icmp sgt i32 %115, -1
  %117 = trunc i64 %111 to i32
  %118 = icmp slt i32 %115, %117
  %or.cond = and i1 %116, %118
  br i1 %or.cond, label %119, label %125

119:                                              ; preds = %110
  %120 = and i64 %114, 2147483647
  %121 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %.086107) #8
  %122 = load i32, ptr %121, align 4, !tbaa !29
  invoke void @_ZN11FrameBuffer9set_pixelEmmj(ptr noundef nonnull align 8 dereferenceable(40) %0, i64 noundef %105, i64 noundef %120, i32 noundef %122)
          to label %125 unwind label %123

123:                                              ; preds = %119
  %124 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  br label %127

125:                                              ; preds = %119, %110
  %126 = add nuw i64 %.086107, 1
  %exitcond.not = icmp eq i64 %126, %96
  br i1 %exitcond.not, label %._crit_edge, label %110, !llvm.loop !30

127:                                              ; preds = %123, %108
  %.pn = phi { ptr, i32 } [ %124, %123 ], [ %109, %108 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #8
  br label %144

.critedge:                                        ; preds = %70
  %128 = fadd double %51, 1.000000e-02
  %129 = fptrunc double %128 to float
  %130 = fcmp olt float %129, 2.000000e+01
  br i1 %130, label %48, label %.loopexit, !llvm.loop !32

.loopexit:                                        ; preds = %.critedge, %._crit_edge
  %131 = add nuw nsw i64 %.093109, 1
  %132 = load i64, ptr %0, align 8, !tbaa !5
  %133 = lshr i64 %132, 1
  %134 = icmp ult i64 %131, %133
  br i1 %134, label %36, label %._crit_edge112, !llvm.loop !33

._crit_edge115:                                   ; preds = %138, %.preheader
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #8
  ret void

135:                                              ; preds = %._crit_edge112
  %136 = landingpad { ptr, i32 }
          cleanup
  br label %144

.lr.ph114:                                        ; preds = %.preheader, %138
  %.0113 = phi i64 [ %139, %138 ], [ 0, %.preheader ]
  %137 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorI6SpriteSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %.0113) #8
  invoke void @_Z11draw_spriteR11FrameBufferRK6SpriteRKSt6vectorIfSaIfEERK6PlayerRK7Texture(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef nonnull align 8 dereferenceable(24) %137, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 4 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(56) %12)
          to label %138 unwind label %142

138:                                              ; preds = %.lr.ph114
  %139 = add nuw i64 %.0113, 1
  %140 = call noundef i64 @_ZNKSt6vectorI6SpriteSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #8
  %141 = icmp ult i64 %139, %140
  br i1 %141, label %.lr.ph114, label %._crit_edge115, !llvm.loop !34

142:                                              ; preds = %.lr.ph114
  %143 = landingpad { ptr, i32 }
          cleanup
  br label %144

144:                                              ; preds = %71, %106, %127, %80, %142, %135
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %143, %142 ], [ %136, %135 ], [ %72, %71 ], [ %81, %80 ], [ %.pn, %127 ], [ %107, %106 ]
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  br label %145

145:                                              ; preds = %144, %34
  %.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn, %144 ], [ %35, %34 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #8
  resume { ptr, i32 } %.pn.pn.pn.pn.pn.pn
}

declare void @_ZN11FrameBuffer5clearEj(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIfEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIfSaIfEEC2EmRKfRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @cos(double noundef) local_unnamed_addr #6

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #7

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sin(double noundef) local_unnamed_addr #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #4 align 2

declare void @_ZNK7Texture17get_scaled_columnEmmm(ptr dead_on_unwind writable sret(%"class.std::vector") align 8, ptr noundef nonnull align 8 dereferenceable(56), i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2

attributes #0 = { mustprogress 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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { noreturn nounwind "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 = { mustprogress 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 #5 = { inlinehint mustprogress 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 #6 = { mustprogress nofree nounwind willreturn memory(write) "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 #7 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { nounwind }
attributes #9 = { noreturn 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 = !{!"_ZTS11FrameBuffer", !7, i64 0, !7, i64 8, !10, i64 16}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSSt6vectorIjSaIjEE", !11, i64 0}
!11 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !12, i64 0}
!12 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!16, !7, i64 0}
!16 = !{!"_ZTS3Map", !7, i64 0, !7, i64 8}
!17 = !{!6, !7, i64 8}
!18 = !{!16, !7, i64 8}
!19 = !{!20, !20, i64 0}
!20 = !{!"float", !8, i64 0}
!21 = !{!22, !20, i64 8}
!22 = !{!"_ZTS6Player", !20, i64 0, !20, i64 4, !20, i64 8, !20, i64 12, !23, i64 16, !23, i64 20}
!23 = !{!"int", !8, i64 0}
!24 = !{!22, !20, i64 12}
!25 = !{!22, !20, i64 0}
!26 = !{!22, !20, i64 4}
!27 = !{!28, !7, i64 16}
!28 = !{!"_ZTS7Texture", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32}
!29 = !{!23, !23, i64 0}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}
!32 = distinct !{!32, !31}
!33 = distinct !{!33, !31}
!34 = distinct !{!34, !31}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass