; LLVM IR from erwincoumans/tiny-differentiable-simulator :: src/visualizer/opengl (tiny_gl_primitive_renderer)

; 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.PrimVertex = type { %struct.PrimVec4, %struct.PrimVec4, %struct.PrimVec2 }
%struct.PrimVec4 = type { [4 x float] }
%struct.PrimVec2 = type { [2 x float] }
%class.TinyGLPrimitiveRenderer = type { ptr, i32, i32, ptr, ptr }
%struct.PrimInternalData = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }

@.str.2 = external hidden unnamed_addr constant [129 x i8], align 1
@glad_glBindVertexArray = external global ptr, align 8
@glad_glBindBuffer = external global ptr, align 8
@glad_glGetError = external global ptr, align 8
@.str.8 = external hidden unnamed_addr constant [28 x i8], align 1
@glad_glEnableVertexAttribArray = external global ptr, align 8
@glad_glVertexAttribPointer = external global ptr, align 8
@glad_glUseProgram = external global ptr, align 8
@__PRETTY_FUNCTION__._ZN23TinyGLPrimitiveRenderer21draw_textured_rect_3dERK10PrimVertexS2_S2_S2_PfS3_b = external hidden unnamed_addr constant [156 x i8], align 1
@glad_glUniformMatrix4fv = external global ptr, align 8
@glad_glTexParameteri = external global ptr, align 8
@glad_glBufferSubData = external global ptr, align 8
@glad_glUniform2fv = external global ptr, align 8
@glad_glDrawElements = external global ptr, align 8

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr 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: mustprogress nounwind uwtable
declare dso_local void @_ZN8PrimVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #2 align 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
define dso_local void @_ZN23TinyGLPrimitiveRenderer21draw_textured_rect_3dERK10PrimVertexS2_S2_S2_PfS3_b(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 4 dereferenceable(40) %1, ptr noundef nonnull align 4 dereferenceable(40) %2, ptr noundef nonnull align 4 dereferenceable(40) %3, ptr noundef nonnull align 4 dereferenceable(40) %4, ptr noundef %5, ptr noundef %6, i1 noundef zeroext %7) #3 align 2 {
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i8, align 1
  %17 = alloca i8, align 1
  %18 = alloca [4 x %struct.PrimVertex], align 16
  %19 = alloca %struct.PrimVec2, align 4
  %20 = alloca i32, align 4
  store ptr %0, ptr %9, align 8, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !5
  store ptr %2, ptr %11, align 8, !tbaa !5
  store ptr %3, ptr %12, align 8, !tbaa !5
  store ptr %4, ptr %13, align 8, !tbaa !5
  store ptr %5, ptr %14, align 8, !tbaa !5
  store ptr %6, ptr %15, align 8, !tbaa !5
  %21 = zext i1 %7 to i8
  store i8 %21, ptr %16, align 1, !tbaa !9
  %22 = load ptr, ptr %9, align 8
  %23 = load ptr, ptr @glad_glGetError, align 8, !tbaa !5
  %24 = call i32 %23()
  %25 = icmp eq i32 %24, 0
  br i1 %25, label %26, label %27

26:                                               ; preds = %8
  br label %29

27:                                               ; preds = %8
  call void @__assert_fail(ptr noundef @.str.8, ptr noundef @.str.2, i32 noundef 237, ptr noundef @__PRETTY_FUNCTION__._ZN23TinyGLPrimitiveRenderer21draw_textured_rect_3dERK10PrimVertexS2_S2_S2_PfS3_b) #5
  unreachable

28:                                               ; No predecessors!
  br label %29

29:                                               ; preds = %28, %26
  %30 = load ptr, ptr @glad_glUseProgram, align 8, !tbaa !5
  %31 = getelementptr inbounds %class.TinyGLPrimitiveRenderer, ptr %22, i32 0, i32 3
  %32 = load ptr, ptr %31, align 8, !tbaa !11
  %33 = getelementptr inbounds %struct.PrimInternalData, ptr %32, i32 0, i32 0
  %34 = load i32, ptr %33, align 4, !tbaa !14
  call void %30(i32 noundef %34)
  %35 = load ptr, ptr @glad_glUniformMatrix4fv, align 8, !tbaa !5
  %36 = getelementptr inbounds %class.TinyGLPrimitiveRenderer, ptr %22, i32 0, i32 3
  %37 = load ptr, ptr %36, align 8, !tbaa !11
  %38 = getelementptr inbounds %struct.PrimInternalData, ptr %37, i32 0, i32 1
  %39 = load i32, ptr %38, align 4, !tbaa !16
  %40 = load ptr, ptr %14, align 8, !tbaa !5
  call void %35(i32 noundef %39, i32 noundef 1, i8 noundef zeroext 0, ptr noundef %40)
  %41 = load ptr, ptr @glad_glUniformMatrix4fv, align 8, !tbaa !5
  %42 = getelementptr inbounds %class.TinyGLPrimitiveRenderer, ptr %22, i32 0, i32 3
  %43 = load ptr, ptr %42, align 8, !tbaa !11
  %44 = getelementptr inbounds %struct.PrimInternalData, ptr %43, i32 0, i32 2
  %45 = load i32, ptr %44, align 4, !tbaa !17
  %46 = load ptr, ptr %15, align 8, !tbaa !5
  call void %41(i32 noundef %45, i32 noundef 1, i8 noundef zeroext 0, ptr noundef %46)
  %47 = load ptr, ptr @glad_glGetError, align 8, !tbaa !5
  %48 = call i32 %47()
  %49 = icmp eq i32 %48, 0
  br i1 %49, label %50, label %51

50:                                               ; preds = %29
  br label %53

51:                                               ; preds = %29
  call void @__assert_fail(ptr noundef @.str.8, ptr noundef @.str.2, i32 noundef 244, ptr noundef @__PRETTY_FUNCTION__._ZN23TinyGLPrimitiveRenderer21draw_textured_rect_3dERK10PrimVertexS2_S2_S2_PfS3_b) #5
  unreachable

52:                                               ; No predecessors!
  br label %53

53:                                               ; preds = %52, %50
  %54 = load ptr, ptr @glad_glBindBuffer, align 8, !tbaa !5
  %55 = getelementptr inbounds %class.TinyGLPrimitiveRenderer, ptr %22, i32 0, i32 3
  %56 = load ptr, ptr %55, align 8, !tbaa !11
  %57 = getelementptr inbounds %struct.PrimInternalData, ptr %56, i32 0, i32 7
  %58 = load i32, ptr %57, align 4, !tbaa !18
  call void %54(i32 noundef 34962, i32 noundef %58)
  %59 = load ptr, ptr @glad_glBindVertexArray, align 8, !tbaa !5
  %60 = getelementptr inbounds %class.TinyGLPrimitiveRenderer, ptr %22, i32 0, i32 3
  %61 = load ptr, ptr %60, align 8, !tbaa !11
  %62 = getelementptr inbounds %struct.PrimInternalData, ptr %61, i32 0, i32 9
  %63 = load i32, ptr %62, align 4, !tbaa !19
  call void %59(i32 noundef %63)
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #6
  store i8 0, ptr %17, align 1, !tbaa !9
  %64 = load i8, ptr %17, align 1, !tbaa !9, !range !20, !noundef !21
  %65 = trunc i8 %64 to i1
  br i1 %65, label %66, label %69

66:                                               ; preds = %53
  %67 = load ptr, ptr @glad_glTexParameteri, align 8, !tbaa !5
  call void %67(i32 noundef 3553, i32 noundef 10241, i32 noundef 9987)
  %68 = load ptr, ptr @glad_glTexParameteri, align 8, !tbaa !5
  call void %68(i32 noundef 3553, i32 noundef 10240, i32 noundef 9729)
  br label %72

69:                                               ; preds = %53
  %70 = load ptr, ptr @glad_glTexParameteri, align 8, !tbaa !5
  call void %70(i32 noundef 3553, i32 noundef 10241, i32 noundef 9728)
  %71 = load ptr, ptr @glad_glTexParameteri, align 8, !tbaa !5
  call void %71(i32 noundef 3553, i32 noundef 10240, i32 noundef 9728)
  br label %72

72:                                               ; preds = %69, %66
  call void @llvm.lifetime.start.p0(i64 160, ptr %18) #6
  %73 = load ptr, ptr %10, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %18, ptr align 4 %73, i64 40, i1 false), !tbaa.struct !22
  %74 = getelementptr inbounds %struct.PrimVertex, ptr %18, i64 1
  %75 = load ptr, ptr %11, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %74, ptr align 4 %75, i64 40, i1 false), !tbaa.struct !22
  %76 = getelementptr inbounds %struct.PrimVertex, ptr %18, i64 2
  %77 = load ptr, ptr %12, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %76, ptr align 4 %77, i64 40, i1 false), !tbaa.struct !22
  %78 = getelementptr inbounds %struct.PrimVertex, ptr %18, i64 3
  %79 = load ptr, ptr %13, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %78, ptr align 4 %79, i64 40, i1 false), !tbaa.struct !22
  %80 = load ptr, ptr @glad_glBufferSubData, align 8, !tbaa !5
  %81 = getelementptr inbounds [4 x %struct.PrimVertex], ptr %18, i64 0, i64 0
  call void %80(i32 noundef 34962, i64 noundef 0, i64 noundef 160, ptr noundef %81)
  %82 = load ptr, ptr @glad_glGetError, align 8, !tbaa !5
  %83 = call i32 %82()
  %84 = icmp eq i32 %83, 0
  br i1 %84, label %85, label %86

85:                                               ; preds = %72
  br label %88

86:                                               ; preds = %72
  call void @__assert_fail(ptr noundef @.str.8, ptr noundef @.str.2, i32 noundef 263, ptr noundef @__PRETTY_FUNCTION__._ZN23TinyGLPrimitiveRenderer21draw_textured_rect_3dERK10PrimVertexS2_S2_S2_PfS3_b) #5
  unreachable

87:                                               ; No predecessors!
  br label %88

88:                                               ; preds = %87, %85
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  call void @_ZN8PrimVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %19, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %89 = load i8, ptr %16, align 1, !tbaa !9, !range !20, !noundef !21
  %90 = trunc i8 %89 to i1
  br i1 %90, label %91, label %96

91:                                               ; preds = %88
  %92 = getelementptr inbounds %struct.PrimVec2, ptr %19, i32 0, i32 0
  %93 = getelementptr inbounds [2 x float], ptr %92, i64 0, i64 0
  store float 1.000000e+00, ptr %93, align 4, !tbaa !24
  %94 = getelementptr inbounds %struct.PrimVec2, ptr %19, i32 0, i32 0
  %95 = getelementptr inbounds [2 x float], ptr %94, i64 0, i64 1
  store float 1.000000e+00, ptr %95, align 4, !tbaa !24
  br label %96

96:                                               ; preds = %91, %88
  %97 = load ptr, ptr @glad_glUniform2fv, align 8, !tbaa !5
  %98 = getelementptr inbounds %class.TinyGLPrimitiveRenderer, ptr %22, i32 0, i32 3
  %99 = load ptr, ptr %98, align 8, !tbaa !11
  %100 = getelementptr inbounds %struct.PrimInternalData, ptr %99, i32 0, i32 3
  %101 = load i32, ptr %100, align 4, !tbaa !26
  call void %97(i32 noundef %101, i32 noundef 1, ptr noundef %19)
  %102 = load ptr, ptr @glad_glBindBuffer, align 8, !tbaa !5
  call void %102(i32 noundef 34963, i32 noundef 0)
  %103 = load ptr, ptr @glad_glGetError, align 8, !tbaa !5
  %104 = call i32 %103()
  %105 = icmp eq i32 %104, 0
  br i1 %105, label %106, label %107

106:                                              ; preds = %96
  br label %109

107:                                              ; preds = %96
  call void @__assert_fail(ptr noundef @.str.8, ptr noundef @.str.2, i32 noundef 275, ptr noundef @__PRETTY_FUNCTION__._ZN23TinyGLPrimitiveRenderer21draw_textured_rect_3dERK10PrimVertexS2_S2_S2_PfS3_b) #5
  unreachable

108:                                              ; No predecessors!
  br label %109

109:                                              ; preds = %108, %106
  %110 = load ptr, ptr @glad_glEnableVertexAttribArray, align 8, !tbaa !5
  %111 = getelementptr inbounds %class.TinyGLPrimitiveRenderer, ptr %22, i32 0, i32 3
  %112 = load ptr, ptr %111, align 8, !tbaa !11
  %113 = getelementptr inbounds %struct.PrimInternalData, ptr %112, i32 0, i32 5
  %114 = load i32, ptr %113, align 4, !tbaa !27
  call void %110(i32 noundef %114)
  %115 = load ptr, ptr @glad_glGetError, align 8, !tbaa !5
  %116 = call i32 %115()
  %117 = icmp eq i32 %116, 0
  br i1 %117, label %118, label %119

118:                                              ; preds = %109
  br label %121

119:                                              ; preds = %109
  call void @__assert_fail(ptr noundef @.str.8, ptr noundef @.str.2, i32 noundef 278, ptr noundef @__PRETTY_FUNCTION__._ZN23TinyGLPrimitiveRenderer21draw_textured_rect_3dERK10PrimVertexS2_S2_S2_PfS3_b) #5
  unreachable

120:                                              ; No predecessors!
  br label %121

121:                                              ; preds = %120, %118
  %122 = load ptr, ptr @glad_glEnableVertexAttribArray, align 8, !tbaa !5
  %123 = getelementptr inbounds %class.TinyGLPrimitiveRenderer, ptr %22, i32 0, i32 3
  %124 = load ptr, ptr %123, align 8, !tbaa !11
  %125 = getelementptr inbounds %struct.PrimInternalData, ptr %124, i32 0, i32 4
  %126 = load i32, ptr %125, align 4, !tbaa !28
  call void %122(i32 noundef %126)
  %127 = load ptr, ptr @glad_glGetError, align 8, !tbaa !5
  %128 = call i32 %127()
  %129 = icmp eq i32 %128, 0
  br i1 %129, label %130, label %131

130:                                              ; preds = %121
  br label %133

131:                                              ; preds = %121
  call void @__assert_fail(ptr noundef @.str.8, ptr noundef @.str.2, i32 noundef 281, ptr noundef @__PRETTY_FUNCTION__._ZN23TinyGLPrimitiveRenderer21draw_textured_rect_3dERK10PrimVertexS2_S2_S2_PfS3_b) #5
  unreachable

132:                                              ; No predecessors!
  br label %133

133:                                              ; preds = %132, %130
  %134 = load ptr, ptr @glad_glEnableVertexAttribArray, align 8, !tbaa !5
  %135 = getelementptr inbounds %class.TinyGLPrimitiveRenderer, ptr %22, i32 0, i32 3
  %136 = load ptr, ptr %135, align 8, !tbaa !11
  %137 = getelementptr inbounds %struct.PrimInternalData, ptr %136, i32 0, i32 6
  %138 = load i32, ptr %137, align 4, !tbaa !29
  call void %134(i32 noundef %138)
  %139 = load ptr, ptr @glad_glVertexAttribPointer, align 8, !tbaa !5
  %140 = getelementptr inbounds %class.TinyGLPrimitiveRenderer, ptr %22, i32 0, i32 3
  %141 = load ptr, ptr %140, align 8, !tbaa !11
  %142 = getelementptr inbounds %struct.PrimInternalData, ptr %141, i32 0, i32 5
  %143 = load i32, ptr %142, align 4, !tbaa !27
  call void %139(i32 noundef %143, i32 noundef 4, i32 noundef 5126, i8 noundef zeroext 0, i32 noundef 40, ptr noundef null)
  %144 = load ptr, ptr @glad_glVertexAttribPointer, align 8, !tbaa !5
  %145 = getelementptr inbounds %class.TinyGLPrimitiveRenderer, ptr %22, i32 0, i32 3
  %146 = load ptr, ptr %145, align 8, !tbaa !11
  %147 = getelementptr inbounds %struct.PrimInternalData, ptr %146, i32 0, i32 4
  %148 = load i32, ptr %147, align 4, !tbaa !28
  call void %144(i32 noundef %148, i32 noundef 4, i32 noundef 5126, i8 noundef zeroext 0, i32 noundef 40, ptr noundef inttoptr (i64 16 to ptr))
  %149 = load ptr, ptr @glad_glVertexAttribPointer, align 8, !tbaa !5
  %150 = getelementptr inbounds %class.TinyGLPrimitiveRenderer, ptr %22, i32 0, i32 3
  %151 = load ptr, ptr %150, align 8, !tbaa !11
  %152 = getelementptr inbounds %struct.PrimInternalData, ptr %151, i32 0, i32 6
  %153 = load i32, ptr %152, align 4, !tbaa !29
  call void %149(i32 noundef %153, i32 noundef 2, i32 noundef 5126, i8 noundef zeroext 0, i32 noundef 40, ptr noundef inttoptr (i64 32 to ptr))
  %154 = load ptr, ptr @glad_glGetError, align 8, !tbaa !5
  %155 = call i32 %154()
  %156 = icmp eq i32 %155, 0
  br i1 %156, label %157, label %158

157:                                              ; preds = %133
  br label %160

158:                                              ; preds = %133
  call void @__assert_fail(ptr noundef @.str.8, ptr noundef @.str.2, i32 noundef 292, ptr noundef @__PRETTY_FUNCTION__._ZN23TinyGLPrimitiveRenderer21draw_textured_rect_3dERK10PrimVertexS2_S2_S2_PfS3_b) #5
  unreachable

159:                                              ; No predecessors!
  br label %160

160:                                              ; preds = %159, %157
  %161 = load ptr, ptr @glad_glBindBuffer, align 8, !tbaa !5
  %162 = getelementptr inbounds %class.TinyGLPrimitiveRenderer, ptr %22, i32 0, i32 3
  %163 = load ptr, ptr %162, align 8, !tbaa !11
  %164 = getelementptr inbounds %struct.PrimInternalData, ptr %163, i32 0, i32 11
  %165 = load i32, ptr %164, align 4, !tbaa !30
  call void %161(i32 noundef 34963, i32 noundef %165)
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  store i32 6, ptr %20, align 4, !tbaa !31
  %166 = load ptr, ptr @glad_glGetError, align 8, !tbaa !5
  %167 = call i32 %166()
  %168 = icmp eq i32 %167, 0
  br i1 %168, label %169, label %170

169:                                              ; preds = %160
  br label %172

170:                                              ; preds = %160
  call void @__assert_fail(ptr noundef @.str.8, ptr noundef @.str.2, i32 noundef 298, ptr noundef @__PRETTY_FUNCTION__._ZN23TinyGLPrimitiveRenderer21draw_textured_rect_3dERK10PrimVertexS2_S2_S2_PfS3_b) #5
  unreachable

171:                                              ; No predecessors!
  br label %172

172:                                              ; preds = %171, %169
  %173 = load ptr, ptr @glad_glDrawElements, align 8, !tbaa !5
  %174 = load i32, ptr %20, align 4, !tbaa !31
  call void %173(i32 noundef 4, i32 noundef %174, i32 noundef 5125, ptr noundef null)
  %175 = load ptr, ptr @glad_glGetError, align 8, !tbaa !5
  %176 = call i32 %175()
  %177 = icmp eq i32 %176, 0
  br i1 %177, label %178, label %179

178:                                              ; preds = %172
  br label %181

179:                                              ; preds = %172
  call void @__assert_fail(ptr noundef @.str.8, ptr noundef @.str.2, i32 noundef 301, ptr noundef @__PRETTY_FUNCTION__._ZN23TinyGLPrimitiveRenderer21draw_textured_rect_3dERK10PrimVertexS2_S2_S2_PfS3_b) #5
  unreachable

180:                                              ; No predecessors!
  br label %181

181:                                              ; preds = %180, %178
  %182 = load ptr, ptr @glad_glBindVertexArray, align 8, !tbaa !5
  call void %182(i32 noundef 0)
  %183 = load ptr, ptr @glad_glGetError, align 8, !tbaa !5
  %184 = call i32 %183()
  %185 = icmp eq i32 %184, 0
  br i1 %185, label %186, label %187

186:                                              ; preds = %181
  br label %189

187:                                              ; preds = %181
  call void @__assert_fail(ptr noundef @.str.8, ptr noundef @.str.2, i32 noundef 304, ptr noundef @__PRETTY_FUNCTION__._ZN23TinyGLPrimitiveRenderer21draw_textured_rect_3dERK10PrimVertexS2_S2_S2_PfS3_b) #5
  unreachable

188:                                              ; No predecessors!
  br label %189

189:                                              ; preds = %188, %186
  %190 = load ptr, ptr @glad_glBindBuffer, align 8, !tbaa !5
  call void %190(i32 noundef 34962, i32 noundef 0)
  %191 = load ptr, ptr @glad_glGetError, align 8, !tbaa !5
  %192 = call i32 %191()
  %193 = icmp eq i32 %192, 0
  br i1 %193, label %194, label %195

194:                                              ; preds = %189
  br label %197

195:                                              ; preds = %189
  call void @__assert_fail(ptr noundef @.str.8, ptr noundef @.str.2, i32 noundef 307, ptr noundef @__PRETTY_FUNCTION__._ZN23TinyGLPrimitiveRenderer21draw_textured_rect_3dERK10PrimVertexS2_S2_S2_PfS3_b) #5
  unreachable

196:                                              ; No predecessors!
  br label %197

197:                                              ; preds = %196, %194
  %198 = load ptr, ptr @glad_glBindBuffer, align 8, !tbaa !5
  call void %198(i32 noundef 34963, i32 noundef 0)
  %199 = load ptr, ptr @glad_glGetError, align 8, !tbaa !5
  %200 = call i32 %199()
  %201 = icmp eq i32 %200, 0
  br i1 %201, label %202, label %203

202:                                              ; preds = %197
  br label %205

203:                                              ; preds = %197
  call void @__assert_fail(ptr noundef @.str.8, ptr noundef @.str.2, i32 noundef 310, ptr noundef @__PRETTY_FUNCTION__._ZN23TinyGLPrimitiveRenderer21draw_textured_rect_3dERK10PrimVertexS2_S2_S2_PfS3_b) #5
  unreachable

204:                                              ; No predecessors!
  br label %205

205:                                              ; preds = %204, %202
  %206 = load ptr, ptr @glad_glGetError, align 8, !tbaa !5
  %207 = call i32 %206()
  %208 = icmp eq i32 %207, 0
  br i1 %208, label %209, label %210

209:                                              ; preds = %205
  br label %212

210:                                              ; preds = %205
  call void @__assert_fail(ptr noundef @.str.8, ptr noundef @.str.2, i32 noundef 313, ptr noundef @__PRETTY_FUNCTION__._ZN23TinyGLPrimitiveRenderer21draw_textured_rect_3dERK10PrimVertexS2_S2_S2_PfS3_b) #5
  unreachable

211:                                              ; No predecessors!
  br label %212

212:                                              ; preds = %211, %209
  %213 = load ptr, ptr @glad_glUseProgram, align 8, !tbaa !5
  call void %213(i32 noundef 0)
  %214 = load ptr, ptr @glad_glGetError, align 8, !tbaa !5
  %215 = call i32 %214()
  %216 = icmp eq i32 %215, 0
  br i1 %216, label %217, label %218

217:                                              ; preds = %212
  br label %220

218:                                              ; preds = %212
  call void @__assert_fail(ptr noundef @.str.8, ptr noundef @.str.2, i32 noundef 317, ptr noundef @__PRETTY_FUNCTION__._ZN23TinyGLPrimitiveRenderer21draw_textured_rect_3dERK10PrimVertexS2_S2_S2_PfS3_b) #5
  unreachable

219:                                              ; No predecessors!
  br label %220

220:                                              ; preds = %219, %217
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 160, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #6
  ret void
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { noreturn nounwind }
attributes #6 = { 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, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{!12, !6, i64 16}
!12 = !{!"_ZTS23TinyGLPrimitiveRenderer", !13, i64 8, !13, i64 12, !6, i64 16, !6, i64 24}
!13 = !{!"int", !7, i64 0}
!14 = !{!15, !13, i64 0}
!15 = !{!"_ZTS16PrimInternalData", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !13, i64 24, !13, i64 28, !13, i64 32, !13, i64 36, !13, i64 40, !13, i64 44, !13, i64 48, !13, i64 52}
!16 = !{!15, !13, i64 4}
!17 = !{!15, !13, i64 8}
!18 = !{!15, !13, i64 28}
!19 = !{!15, !13, i64 36}
!20 = !{i8 0, i8 2}
!21 = !{}
!22 = !{i64 0, i64 16, !23, i64 16, i64 16, !23, i64 32, i64 8, !23}
!23 = !{!7, !7, i64 0}
!24 = !{!25, !25, i64 0}
!25 = !{!"float", !7, i64 0}
!26 = !{!15, !13, i64 12}
!27 = !{!15, !13, i64 20}
!28 = !{!15, !13, i64 16}
!29 = !{!15, !13, i64 24}
!30 = !{!15, !13, i64 44}
!31 = !{!13, !13, i64 0}


; 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.PrimVertex = type { %struct.PrimVec4, %struct.PrimVec4, %struct.PrimVec2 }
%struct.PrimVec4 = type { [4 x float] }
%struct.PrimVec2 = type { [2 x float] }

@.str.2 = external hidden unnamed_addr constant [129 x i8], align 1
@glad_glBindVertexArray = external local_unnamed_addr global ptr, align 8
@glad_glBindBuffer = external local_unnamed_addr global ptr, align 8
@glad_glGetError = external local_unnamed_addr global ptr, align 8
@.str.8 = external hidden unnamed_addr constant [28 x i8], align 1
@glad_glEnableVertexAttribArray = external local_unnamed_addr global ptr, align 8
@glad_glVertexAttribPointer = external local_unnamed_addr global ptr, align 8
@glad_glUseProgram = external local_unnamed_addr global ptr, align 8
@__PRETTY_FUNCTION__._ZN23TinyGLPrimitiveRenderer21draw_textured_rect_3dERK10PrimVertexS2_S2_S2_PfS3_b = external hidden unnamed_addr constant [156 x i8], align 1
@glad_glUniformMatrix4fv = external local_unnamed_addr global ptr, align 8
@glad_glTexParameteri = external local_unnamed_addr global ptr, align 8
@glad_glBufferSubData = external local_unnamed_addr global ptr, align 8
@glad_glUniform2fv = external local_unnamed_addr global ptr, align 8
@glad_glDrawElements = external local_unnamed_addr global ptr, align 8

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) 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: mustprogress nounwind uwtable
declare dso_local void @_ZN8PrimVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #2 align 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
define dso_local void @_ZN23TinyGLPrimitiveRenderer21draw_textured_rect_3dERK10PrimVertexS2_S2_S2_PfS3_b(ptr nocapture noundef nonnull readonly align 8 dereferenceable(32) %0, ptr nocapture noundef nonnull readonly align 4 dereferenceable(40) %1, ptr nocapture noundef nonnull readonly align 4 dereferenceable(40) %2, ptr nocapture noundef nonnull readonly align 4 dereferenceable(40) %3, ptr nocapture noundef nonnull readonly align 4 dereferenceable(40) %4, ptr noundef %5, ptr noundef %6, i1 noundef zeroext %7) local_unnamed_addr #3 align 2 {
  %9 = alloca [4 x %struct.PrimVertex], align 16
  %10 = alloca %struct.PrimVec2, align 8
  %11 = load ptr, ptr @glad_glGetError, align 8, !tbaa !5
  %12 = tail call i32 %11()
  %13 = icmp eq i32 %12, 0
  br i1 %13, label %15, label %14

14:                                               ; preds = %8
  tail call void @__assert_fail(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.2, i32 noundef 237, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN23TinyGLPrimitiveRenderer21draw_textured_rect_3dERK10PrimVertexS2_S2_S2_PfS3_b) #5
  unreachable

15:                                               ; preds = %8
  %16 = load ptr, ptr @glad_glUseProgram, align 8, !tbaa !5
  %17 = getelementptr inbounds i8, ptr %0, i64 16
  %18 = load ptr, ptr %17, align 8, !tbaa !9
  %19 = load i32, ptr %18, align 4, !tbaa !12
  tail call void %16(i32 noundef %19)
  %20 = load ptr, ptr @glad_glUniformMatrix4fv, align 8, !tbaa !5
  %21 = load ptr, ptr %17, align 8, !tbaa !9
  %22 = getelementptr inbounds i8, ptr %21, i64 4
  %23 = load i32, ptr %22, align 4, !tbaa !14
  tail call void %20(i32 noundef %23, i32 noundef 1, i8 noundef zeroext 0, ptr noundef %5)
  %24 = load ptr, ptr @glad_glUniformMatrix4fv, align 8, !tbaa !5
  %25 = load ptr, ptr %17, align 8, !tbaa !9
  %26 = getelementptr inbounds i8, ptr %25, i64 8
  %27 = load i32, ptr %26, align 4, !tbaa !15
  tail call void %24(i32 noundef %27, i32 noundef 1, i8 noundef zeroext 0, ptr noundef %6)
  %28 = load ptr, ptr @glad_glGetError, align 8, !tbaa !5
  %29 = tail call i32 %28()
  %30 = icmp eq i32 %29, 0
  br i1 %30, label %32, label %31

31:                                               ; preds = %15
  tail call void @__assert_fail(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.2, i32 noundef 244, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN23TinyGLPrimitiveRenderer21draw_textured_rect_3dERK10PrimVertexS2_S2_S2_PfS3_b) #5
  unreachable

32:                                               ; preds = %15
  %33 = load ptr, ptr @glad_glBindBuffer, align 8, !tbaa !5
  %34 = load ptr, ptr %17, align 8, !tbaa !9
  %35 = getelementptr inbounds i8, ptr %34, i64 28
  %36 = load i32, ptr %35, align 4, !tbaa !16
  tail call void %33(i32 noundef 34962, i32 noundef %36)
  %37 = load ptr, ptr @glad_glBindVertexArray, align 8, !tbaa !5
  %38 = load ptr, ptr %17, align 8, !tbaa !9
  %39 = getelementptr inbounds i8, ptr %38, i64 36
  %40 = load i32, ptr %39, align 4, !tbaa !17
  tail call void %37(i32 noundef %40)
  %41 = load ptr, ptr @glad_glTexParameteri, align 8, !tbaa !5
  tail call void %41(i32 noundef 3553, i32 noundef 10241, i32 noundef 9728)
  %42 = load ptr, ptr @glad_glTexParameteri, align 8, !tbaa !5
  tail call void %42(i32 noundef 3553, i32 noundef 10240, i32 noundef 9728)
  call void @llvm.lifetime.start.p0(i64 160, ptr nonnull %9) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(40) %9, ptr noundef nonnull align 4 dereferenceable(40) %1, i64 40, i1 false), !tbaa.struct !18
  %43 = getelementptr inbounds i8, ptr %9, i64 40
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %43, ptr noundef nonnull align 4 dereferenceable(40) %2, i64 40, i1 false), !tbaa.struct !18
  %44 = getelementptr inbounds i8, ptr %9, i64 80
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(40) %44, ptr noundef nonnull align 4 dereferenceable(40) %3, i64 40, i1 false), !tbaa.struct !18
  %45 = getelementptr inbounds i8, ptr %9, i64 120
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %45, ptr noundef nonnull align 4 dereferenceable(40) %4, i64 40, i1 false), !tbaa.struct !18
  %46 = load ptr, ptr @glad_glBufferSubData, align 8, !tbaa !5
  call void %46(i32 noundef 34962, i64 noundef 0, i64 noundef 160, ptr noundef nonnull %9)
  %47 = load ptr, ptr @glad_glGetError, align 8, !tbaa !5
  %48 = call i32 %47()
  %49 = icmp eq i32 %48, 0
  br i1 %49, label %51, label %50

50:                                               ; preds = %32
  call void @__assert_fail(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.2, i32 noundef 263, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN23TinyGLPrimitiveRenderer21draw_textured_rect_3dERK10PrimVertexS2_S2_S2_PfS3_b) #5
  unreachable

51:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  call void @_ZN8PrimVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %10, float noundef 0.000000e+00, float noundef 0.000000e+00)
  br i1 %7, label %52, label %53

52:                                               ; preds = %51
  store <2 x float> <float 1.000000e+00, float 1.000000e+00>, ptr %10, align 8, !tbaa !20
  br label %53

53:                                               ; preds = %52, %51
  %54 = load ptr, ptr @glad_glUniform2fv, align 8, !tbaa !5
  %55 = load ptr, ptr %17, align 8, !tbaa !9
  %56 = getelementptr inbounds i8, ptr %55, i64 12
  %57 = load i32, ptr %56, align 4, !tbaa !22
  call void %54(i32 noundef %57, i32 noundef 1, ptr noundef nonnull %10)
  %58 = load ptr, ptr @glad_glBindBuffer, align 8, !tbaa !5
  call void %58(i32 noundef 34963, i32 noundef 0)
  %59 = load ptr, ptr @glad_glGetError, align 8, !tbaa !5
  %60 = call i32 %59()
  %61 = icmp eq i32 %60, 0
  br i1 %61, label %63, label %62

62:                                               ; preds = %53
  call void @__assert_fail(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.2, i32 noundef 275, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN23TinyGLPrimitiveRenderer21draw_textured_rect_3dERK10PrimVertexS2_S2_S2_PfS3_b) #5
  unreachable

63:                                               ; preds = %53
  %64 = load ptr, ptr @glad_glEnableVertexAttribArray, align 8, !tbaa !5
  %65 = load ptr, ptr %17, align 8, !tbaa !9
  %66 = getelementptr inbounds i8, ptr %65, i64 20
  %67 = load i32, ptr %66, align 4, !tbaa !23
  call void %64(i32 noundef %67)
  %68 = load ptr, ptr @glad_glGetError, align 8, !tbaa !5
  %69 = call i32 %68()
  %70 = icmp eq i32 %69, 0
  br i1 %70, label %72, label %71

71:                                               ; preds = %63
  call void @__assert_fail(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.2, i32 noundef 278, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN23TinyGLPrimitiveRenderer21draw_textured_rect_3dERK10PrimVertexS2_S2_S2_PfS3_b) #5
  unreachable

72:                                               ; preds = %63
  %73 = load ptr, ptr @glad_glEnableVertexAttribArray, align 8, !tbaa !5
  %74 = load ptr, ptr %17, align 8, !tbaa !9
  %75 = getelementptr inbounds i8, ptr %74, i64 16
  %76 = load i32, ptr %75, align 4, !tbaa !24
  call void %73(i32 noundef %76)
  %77 = load ptr, ptr @glad_glGetError, align 8, !tbaa !5
  %78 = call i32 %77()
  %79 = icmp eq i32 %78, 0
  br i1 %79, label %81, label %80

80:                                               ; preds = %72
  call void @__assert_fail(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.2, i32 noundef 281, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN23TinyGLPrimitiveRenderer21draw_textured_rect_3dERK10PrimVertexS2_S2_S2_PfS3_b) #5
  unreachable

81:                                               ; preds = %72
  %82 = load ptr, ptr @glad_glEnableVertexAttribArray, align 8, !tbaa !5
  %83 = load ptr, ptr %17, align 8, !tbaa !9
  %84 = getelementptr inbounds i8, ptr %83, i64 24
  %85 = load i32, ptr %84, align 4, !tbaa !25
  call void %82(i32 noundef %85)
  %86 = load ptr, ptr @glad_glVertexAttribPointer, align 8, !tbaa !5
  %87 = load ptr, ptr %17, align 8, !tbaa !9
  %88 = getelementptr inbounds i8, ptr %87, i64 20
  %89 = load i32, ptr %88, align 4, !tbaa !23
  call void %86(i32 noundef %89, i32 noundef 4, i32 noundef 5126, i8 noundef zeroext 0, i32 noundef 40, ptr noundef null)
  %90 = load ptr, ptr @glad_glVertexAttribPointer, align 8, !tbaa !5
  %91 = load ptr, ptr %17, align 8, !tbaa !9
  %92 = getelementptr inbounds i8, ptr %91, i64 16
  %93 = load i32, ptr %92, align 4, !tbaa !24
  call void %90(i32 noundef %93, i32 noundef 4, i32 noundef 5126, i8 noundef zeroext 0, i32 noundef 40, ptr noundef nonnull inttoptr (i64 16 to ptr))
  %94 = load ptr, ptr @glad_glVertexAttribPointer, align 8, !tbaa !5
  %95 = load ptr, ptr %17, align 8, !tbaa !9
  %96 = getelementptr inbounds i8, ptr %95, i64 24
  %97 = load i32, ptr %96, align 4, !tbaa !25
  call void %94(i32 noundef %97, i32 noundef 2, i32 noundef 5126, i8 noundef zeroext 0, i32 noundef 40, ptr noundef nonnull inttoptr (i64 32 to ptr))
  %98 = load ptr, ptr @glad_glGetError, align 8, !tbaa !5
  %99 = call i32 %98()
  %100 = icmp eq i32 %99, 0
  br i1 %100, label %102, label %101

101:                                              ; preds = %81
  call void @__assert_fail(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.2, i32 noundef 292, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN23TinyGLPrimitiveRenderer21draw_textured_rect_3dERK10PrimVertexS2_S2_S2_PfS3_b) #5
  unreachable

102:                                              ; preds = %81
  %103 = load ptr, ptr @glad_glBindBuffer, align 8, !tbaa !5
  %104 = load ptr, ptr %17, align 8, !tbaa !9
  %105 = getelementptr inbounds i8, ptr %104, i64 44
  %106 = load i32, ptr %105, align 4, !tbaa !26
  call void %103(i32 noundef 34963, i32 noundef %106)
  %107 = load ptr, ptr @glad_glGetError, align 8, !tbaa !5
  %108 = call i32 %107()
  %109 = icmp eq i32 %108, 0
  br i1 %109, label %111, label %110

110:                                              ; preds = %102
  call void @__assert_fail(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.2, i32 noundef 298, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN23TinyGLPrimitiveRenderer21draw_textured_rect_3dERK10PrimVertexS2_S2_S2_PfS3_b) #5
  unreachable

111:                                              ; preds = %102
  %112 = load ptr, ptr @glad_glDrawElements, align 8, !tbaa !5
  call void %112(i32 noundef 4, i32 noundef 6, i32 noundef 5125, ptr noundef null)
  %113 = load ptr, ptr @glad_glGetError, align 8, !tbaa !5
  %114 = call i32 %113()
  %115 = icmp eq i32 %114, 0
  br i1 %115, label %117, label %116

116:                                              ; preds = %111
  call void @__assert_fail(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.2, i32 noundef 301, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN23TinyGLPrimitiveRenderer21draw_textured_rect_3dERK10PrimVertexS2_S2_S2_PfS3_b) #5
  unreachable

117:                                              ; preds = %111
  %118 = load ptr, ptr @glad_glBindVertexArray, align 8, !tbaa !5
  call void %118(i32 noundef 0)
  %119 = load ptr, ptr @glad_glGetError, align 8, !tbaa !5
  %120 = call i32 %119()
  %121 = icmp eq i32 %120, 0
  br i1 %121, label %123, label %122

122:                                              ; preds = %117
  call void @__assert_fail(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.2, i32 noundef 304, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN23TinyGLPrimitiveRenderer21draw_textured_rect_3dERK10PrimVertexS2_S2_S2_PfS3_b) #5
  unreachable

123:                                              ; preds = %117
  %124 = load ptr, ptr @glad_glBindBuffer, align 8, !tbaa !5
  call void %124(i32 noundef 34962, i32 noundef 0)
  %125 = load ptr, ptr @glad_glGetError, align 8, !tbaa !5
  %126 = call i32 %125()
  %127 = icmp eq i32 %126, 0
  br i1 %127, label %129, label %128

128:                                              ; preds = %123
  call void @__assert_fail(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.2, i32 noundef 307, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN23TinyGLPrimitiveRenderer21draw_textured_rect_3dERK10PrimVertexS2_S2_S2_PfS3_b) #5
  unreachable

129:                                              ; preds = %123
  %130 = load ptr, ptr @glad_glBindBuffer, align 8, !tbaa !5
  call void %130(i32 noundef 34963, i32 noundef 0)
  %131 = load ptr, ptr @glad_glGetError, align 8, !tbaa !5
  %132 = call i32 %131()
  %133 = icmp eq i32 %132, 0
  br i1 %133, label %135, label %134

134:                                              ; preds = %129
  call void @__assert_fail(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.2, i32 noundef 310, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN23TinyGLPrimitiveRenderer21draw_textured_rect_3dERK10PrimVertexS2_S2_S2_PfS3_b) #5
  unreachable

135:                                              ; preds = %129
  %136 = load ptr, ptr @glad_glGetError, align 8, !tbaa !5
  %137 = call i32 %136()
  %138 = icmp eq i32 %137, 0
  br i1 %138, label %140, label %139

139:                                              ; preds = %135
  call void @__assert_fail(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.2, i32 noundef 313, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN23TinyGLPrimitiveRenderer21draw_textured_rect_3dERK10PrimVertexS2_S2_S2_PfS3_b) #5
  unreachable

140:                                              ; preds = %135
  %141 = load ptr, ptr @glad_glUseProgram, align 8, !tbaa !5
  call void %141(i32 noundef 0)
  %142 = load ptr, ptr @glad_glGetError, align 8, !tbaa !5
  %143 = call i32 %142()
  %144 = icmp eq i32 %143, 0
  br i1 %144, label %146, label %145

145:                                              ; preds = %140
  call void @__assert_fail(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.2, i32 noundef 317, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN23TinyGLPrimitiveRenderer21draw_textured_rect_3dERK10PrimVertexS2_S2_S2_PfS3_b) #5
  unreachable

146:                                              ; preds = %140
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %9) #6
  ret void
}

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { noreturn nounwind }
attributes #6 = { 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, !6, i64 16}
!10 = !{!"_ZTS23TinyGLPrimitiveRenderer", !11, i64 8, !11, i64 12, !6, i64 16, !6, i64 24}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !11, i64 0}
!13 = !{!"_ZTS16PrimInternalData", !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}
!14 = !{!13, !11, i64 4}
!15 = !{!13, !11, i64 8}
!16 = !{!13, !11, i64 28}
!17 = !{!13, !11, i64 36}
!18 = !{i64 0, i64 16, !19, i64 16, i64 16, !19, i64 32, i64 8, !19}
!19 = !{!7, !7, i64 0}
!20 = !{!21, !21, i64 0}
!21 = !{!"float", !7, i64 0}
!22 = !{!13, !11, i64 12}
!23 = !{!13, !11, i64 20}
!24 = !{!13, !11, i64 16}
!25 = !{!13, !11, i64 24}
!26 = !{!13, !11, i64 44}


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