; LLVM IR from zeux/meshoptimizer :: src/simplifier.ll (Z20meshopt_simplifyEdgePjPKjmPKfmmS3_mS3_mPKhmfjPf)

; 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.meshopt_Allocator = type { [24 x ptr], i64 }
%"struct.meshopt::EdgeAdjacency" = type { ptr, ptr }

@.str = external hidden unnamed_addr constant [21 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [71 x i8], align 1
@__PRETTY_FUNCTION__._Z20meshopt_simplifyEdgePjPKjmPKfmmS3_mS3_mPKhmfjPf = external hidden unnamed_addr constant [212 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [160 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [95 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [44 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef i64 @_Z20meshopt_simplifyEdgePjPKjmPKfmmS3_mS3_mPKhmfjPf(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3, i64 noundef %4, i64 noundef %5, ptr noundef %6, i64 noundef %7, ptr noundef %8, i64 noundef %9, ptr noundef %10, i64 noundef %11, float noundef %12, i32 noundef %13, ptr noundef %14) #0 personality ptr @__gxx_personality_v0 {
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i64, align 8
  %19 = alloca ptr, align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca ptr, align 8
  %23 = alloca i64, align 8
  %24 = alloca ptr, align 8
  %25 = alloca i64, align 8
  %26 = alloca ptr, align 8
  %27 = alloca i64, align 8
  %28 = alloca float, align 4
  %29 = alloca i32, align 4
  %30 = alloca ptr, align 8
  %31 = alloca i64, align 8
  %32 = alloca %class.meshopt_Allocator, align 8
  %33 = alloca ptr, align 8
  %34 = alloca ptr, align 8
  %35 = alloca ptr, align 8
  %36 = alloca i32, align 4
  %37 = alloca %"struct.meshopt::EdgeAdjacency", align 8
  %38 = alloca ptr, align 8
  %39 = alloca ptr, align 8
  %40 = alloca ptr, align 8
  %41 = alloca ptr, align 8
  %42 = alloca ptr, align 8
  %43 = alloca ptr, align 8
  %44 = alloca float, align 4
  %45 = alloca ptr, align 8
  %46 = alloca [32 x i32], align 16
  %47 = alloca i64, align 8
  %48 = alloca i64, align 8
  %49 = alloca ptr, align 8
  %50 = alloca ptr, align 8
  %51 = alloca ptr, align 8
  %52 = alloca ptr, align 8
  %53 = alloca ptr, align 8
  %54 = alloca i64, align 8
  %55 = alloca float, align 4
  %56 = alloca i64, align 8
  %57 = alloca i64, align 8
  %58 = alloca ptr, align 8
  %59 = alloca ptr, align 8
  %60 = alloca ptr, align 8
  %61 = alloca ptr, align 8
  %62 = alloca i64, align 8
  %63 = alloca float, align 4
  %64 = alloca float, align 4
  %65 = alloca float, align 4
  %66 = alloca float, align 4
  %67 = alloca i64, align 8
  %68 = alloca i32, align 4
  %69 = alloca i64, align 8
  %70 = alloca i64, align 8
  %71 = alloca i64, align 8
  %72 = alloca i64, align 8
  %73 = alloca float, align 4
  %74 = alloca float, align 4
  %75 = alloca i64, align 8
  %76 = alloca i64, align 8
  %77 = alloca i64, align 8
  %78 = alloca i32, align 4
  %79 = alloca i32, align 4
  %80 = alloca i32, align 4
  %81 = alloca i64, align 8
  store ptr %0, ptr %16, align 8, !tbaa !5
  store ptr %1, ptr %17, align 8, !tbaa !5
  store i64 %2, ptr %18, align 8, !tbaa !9
  store ptr %3, ptr %19, align 8, !tbaa !5
  store i64 %4, ptr %20, align 8, !tbaa !9
  store i64 %5, ptr %21, align 8, !tbaa !9
  store ptr %6, ptr %22, align 8, !tbaa !5
  store i64 %7, ptr %23, align 8, !tbaa !9
  store ptr %8, ptr %24, align 8, !tbaa !5
  store i64 %9, ptr %25, align 8, !tbaa !9
  store ptr %10, ptr %26, align 8, !tbaa !5
  store i64 %11, ptr %27, align 8, !tbaa !9
  store float %12, ptr %28, align 4, !tbaa !11
  store i32 %13, ptr %29, align 4, !tbaa !13
  store ptr %14, ptr %30, align 8, !tbaa !5
  %82 = load i64, ptr %18, align 8, !tbaa !9
  %83 = urem i64 %82, 3
  %84 = icmp eq i64 %83, 0
  br i1 %84, label %85, label %86

85:                                               ; preds = %15
  br label %88

86:                                               ; preds = %15
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 1848, ptr noundef @__PRETTY_FUNCTION__._Z20meshopt_simplifyEdgePjPKjmPKfmmS3_mS3_mPKhmfjPf) #7
  unreachable

87:                                               ; No predecessors!
  br label %88

88:                                               ; preds = %87, %85
  %89 = load i64, ptr %21, align 8, !tbaa !9
  %90 = icmp uge i64 %89, 12
  br i1 %90, label %91, label %94

91:                                               ; preds = %88
  %92 = load i64, ptr %21, align 8, !tbaa !9
  %93 = icmp ule i64 %92, 256
  br label %94

94:                                               ; preds = %91, %88
  %95 = phi i1 [ false, %88 ], [ %93, %91 ]
  br i1 %95, label %96, label %97

96:                                               ; preds = %94
  br label %99

97:                                               ; preds = %94
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 1849, ptr noundef @__PRETTY_FUNCTION__._Z20meshopt_simplifyEdgePjPKjmPKfmmS3_mS3_mPKhmfjPf) #7
  unreachable

98:                                               ; No predecessors!
  br label %99

99:                                               ; preds = %98, %96
  %100 = load i64, ptr %21, align 8, !tbaa !9
  %101 = urem i64 %100, 4
  %102 = icmp eq i64 %101, 0
  br i1 %102, label %103, label %104

103:                                              ; preds = %99
  br label %106

104:                                              ; preds = %99
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 1850, ptr noundef @__PRETTY_FUNCTION__._Z20meshopt_simplifyEdgePjPKjmPKfmmS3_mS3_mPKhmfjPf) #7
  unreachable

105:                                              ; No predecessors!
  br label %106

106:                                              ; preds = %105, %103
  %107 = load i64, ptr %27, align 8, !tbaa !9
  %108 = load i64, ptr %18, align 8, !tbaa !9
  %109 = icmp ule i64 %107, %108
  br i1 %109, label %110, label %111

110:                                              ; preds = %106
  br label %113

111:                                              ; preds = %106
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 1851, ptr noundef @__PRETTY_FUNCTION__._Z20meshopt_simplifyEdgePjPKjmPKfmmS3_mS3_mPKhmfjPf) #7
  unreachable

112:                                              ; No predecessors!
  br label %113

113:                                              ; preds = %112, %110
  %114 = load float, ptr %28, align 4, !tbaa !11
  %115 = fcmp oge float %114, 0.000000e+00
  br i1 %115, label %116, label %117

116:                                              ; preds = %113
  br label %119

117:                                              ; preds = %113
  call void @__assert_fail(ptr noundef @.str.5, ptr noundef @.str.1, i32 noundef 1852, ptr noundef @__PRETTY_FUNCTION__._Z20meshopt_simplifyEdgePjPKjmPKfmmS3_mS3_mPKhmfjPf) #7
  unreachable

118:                                              ; No predecessors!
  br label %119

119:                                              ; preds = %118, %116
  %120 = load i32, ptr %29, align 4, !tbaa !13
  %121 = and i32 %120, -1073741840
  %122 = icmp eq i32 %121, 0
  br i1 %122, label %123, label %124

123:                                              ; preds = %119
  br label %126

124:                                              ; preds = %119
  call void @__assert_fail(ptr noundef @.str.6, ptr noundef @.str.1, i32 noundef 1853, ptr noundef @__PRETTY_FUNCTION__._Z20meshopt_simplifyEdgePjPKjmPKfmmS3_mS3_mPKhmfjPf) #7
  unreachable

125:                                              ; No predecessors!
  br label %126

126:                                              ; preds = %125, %123
  %127 = load i64, ptr %23, align 8, !tbaa !9
  %128 = load i64, ptr %25, align 8, !tbaa !9
  %129 = mul i64 %128, 4
  %130 = icmp uge i64 %127, %129
  br i1 %130, label %131, label %134

131:                                              ; preds = %126
  %132 = load i64, ptr %23, align 8, !tbaa !9
  %133 = icmp ule i64 %132, 256
  br label %134

134:                                              ; preds = %131, %126
  %135 = phi i1 [ false, %126 ], [ %133, %131 ]
  br i1 %135, label %136, label %137

136:                                              ; preds = %134
  br label %139

137:                                              ; preds = %134
  call void @__assert_fail(ptr noundef @.str.7, ptr noundef @.str.1, i32 noundef 1854, ptr noundef @__PRETTY_FUNCTION__._Z20meshopt_simplifyEdgePjPKjmPKfmmS3_mS3_mPKhmfjPf) #7
  unreachable

138:                                              ; No predecessors!
  br label %139

139:                                              ; preds = %138, %136
  %140 = load i64, ptr %23, align 8, !tbaa !9
  %141 = urem i64 %140, 4
  %142 = icmp eq i64 %141, 0
  br i1 %142, label %143, label %144

143:                                              ; preds = %139
  br label %146

144:                                              ; preds = %139
  call void @__assert_fail(ptr noundef @.str.8, ptr noundef @.str.1, i32 noundef 1855, ptr noundef @__PRETTY_FUNCTION__._Z20meshopt_simplifyEdgePjPKjmPKfmmS3_mS3_mPKhmfjPf) #7
  unreachable

145:                                              ; No predecessors!
  br label %146

146:                                              ; preds = %145, %143
  %147 = load i64, ptr %25, align 8, !tbaa !9
  %148 = icmp ule i64 %147, 32
  br i1 %148, label %149, label %150

149:                                              ; preds = %146
  br label %152

150:                                              ; preds = %146
  call void @__assert_fail(ptr noundef @.str.9, ptr noundef @.str.1, i32 noundef 1856, ptr noundef @__PRETTY_FUNCTION__._Z20meshopt_simplifyEdgePjPKjmPKfmmS3_mS3_mPKhmfjPf) #7
  unreachable

151:                                              ; No predecessors!
  br label %152

152:                                              ; preds = %151, %149
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #8
  store i64 0, ptr %31, align 8, !tbaa !9
  br label %153

153:                                              ; preds = %168, %152
  %154 = load i64, ptr %31, align 8, !tbaa !9
  %155 = load i64, ptr %25, align 8, !tbaa !9
  %156 = icmp ult i64 %154, %155
  br i1 %156, label %158, label %157

157:                                              ; preds = %153
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  br label %171

158:                                              ; preds = %153
  %159 = load ptr, ptr %24, align 8, !tbaa !5
  %160 = load i64, ptr %31, align 8, !tbaa !9
  %161 = getelementptr inbounds float, ptr %159, i64 %160
  %162 = load float, ptr %161, align 4, !tbaa !11
  %163 = fcmp oge float %162, 0.000000e+00
  br i1 %163, label %164, label %165

164:                                              ; preds = %158
  br label %167

165:                                              ; preds = %158
  call void @__assert_fail(ptr noundef @.str.10, ptr noundef @.str.1, i32 noundef 1858, ptr noundef @__PRETTY_FUNCTION__._Z20meshopt_simplifyEdgePjPKjmPKfmmS3_mS3_mPKhmfjPf) #7
  unreachable

166:                                              ; No predecessors!
  br label %167

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

168:                                              ; preds = %167
  %169 = load i64, ptr %31, align 8, !tbaa !9
  %170 = add i64 %169, 1
  store i64 %170, ptr %31, align 8, !tbaa !9
  br label %153, !llvm.loop !15

171:                                              ; preds = %157
  call void @llvm.lifetime.start.p0(i64 200, ptr %32) #8
  call void @_ZN17meshopt_AllocatorC2Ev(ptr noundef nonnull align 8 dereferenceable(200) %32)
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #8
  %172 = load ptr, ptr %16, align 8, !tbaa !5
  store ptr %172, ptr %33, align 8, !tbaa !5
  %173 = load ptr, ptr %33, align 8, !tbaa !5
  %174 = load ptr, ptr %17, align 8, !tbaa !5
  %175 = icmp ne ptr %173, %174
  br i1 %175, label %176, label %181

176:                                              ; preds = %171
  %177 = load ptr, ptr %33, align 8, !tbaa !5
  %178 = load ptr, ptr %17, align 8, !tbaa !5
  %179 = load i64, ptr %18, align 8, !tbaa !9
  %180 = mul i64 %179, 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %177, ptr align 4 %178, i64 %180, i1 false)
  br label %181

181:                                              ; preds = %176, %171
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #8
  store ptr null, ptr %34, align 8, !tbaa !5
  %182 = load i32, ptr %29, align 4, !tbaa !13
  %183 = and i32 %182, 2
  %184 = icmp ne i32 %183, 0
  br i1 %184, label %185, label %195

185:                                              ; preds = %181
  %186 = load ptr, ptr %33, align 8, !tbaa !5
  %187 = load i64, ptr %18, align 8, !tbaa !9
  %188 = load i64, ptr %20, align 8, !tbaa !9
  %189 = invoke noundef ptr @_ZN7meshoptL16buildSparseRemapEPjmmPmR17meshopt_Allocator(ptr noundef %186, i64 noundef %187, i64 noundef %188, ptr noundef %20, ptr noundef nonnull align 8 dereferenceable(200) %32)
          to label %190 unwind label %191

190:                                              ; preds = %185
  store ptr %189, ptr %34, align 8, !tbaa !5
  br label %195

191:                                              ; preds = %185
  %192 = landingpad { ptr, i32 }
          cleanup
  %193 = extractvalue { ptr, i32 } %192, 0
  store ptr %193, ptr %35, align 8
  %194 = extractvalue { ptr, i32 } %192, 1
  store i32 %194, ptr %36, align 4
  br label %947

195:                                              ; preds = %190, %181
  call void @llvm.lifetime.start.p0(i64 16, ptr %37) #8
  call void @llvm.memset.p0.i64(ptr align 8 %37, i8 0, i64 16, i1 false)
  %196 = load i64, ptr %18, align 8, !tbaa !9
  %197 = load i64, ptr %20, align 8, !tbaa !9
  invoke void @_ZN7meshoptL20prepareEdgeAdjacencyERNS_13EdgeAdjacencyEmmR17meshopt_Allocator(ptr noundef nonnull align 8 dereferenceable(16) %37, i64 noundef %196, i64 noundef %197, ptr noundef nonnull align 8 dereferenceable(200) %32)
          to label %198 unwind label %253

198:                                              ; preds = %195
  %199 = load ptr, ptr %33, align 8, !tbaa !5
  %200 = load i64, ptr %18, align 8, !tbaa !9
  %201 = load i64, ptr %20, align 8, !tbaa !9
  invoke void @_ZN7meshoptL19updateEdgeAdjacencyERNS_13EdgeAdjacencyEPKjmmS3_(ptr noundef nonnull align 8 dereferenceable(16) %37, ptr noundef %199, i64 noundef %200, i64 noundef %201, ptr noundef null)
          to label %202 unwind label %253

202:                                              ; preds = %198
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #8
  %203 = load i64, ptr %20, align 8, !tbaa !9
  %204 = invoke noundef ptr @_ZN17meshopt_Allocator8allocateIjEEPT_m(ptr noundef nonnull align 8 dereferenceable(200) %32, i64 noundef %203)
          to label %205 unwind label %257

205:                                              ; preds = %202
  store ptr %204, ptr %38, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #8
  %206 = load i64, ptr %20, align 8, !tbaa !9
  %207 = invoke noundef ptr @_ZN17meshopt_Allocator8allocateIjEEPT_m(ptr noundef nonnull align 8 dereferenceable(200) %32, i64 noundef %206)
          to label %208 unwind label %261

208:                                              ; preds = %205
  store ptr %207, ptr %39, align 8, !tbaa !5
  %209 = load ptr, ptr %38, align 8, !tbaa !5
  %210 = load ptr, ptr %39, align 8, !tbaa !5
  %211 = load ptr, ptr %19, align 8, !tbaa !5
  %212 = load i64, ptr %20, align 8, !tbaa !9
  %213 = load i64, ptr %21, align 8, !tbaa !9
  %214 = load ptr, ptr %34, align 8, !tbaa !5
  invoke void @_ZN7meshoptL18buildPositionRemapEPjS0_PKfmmPKjR17meshopt_Allocator(ptr noundef %209, ptr noundef %210, ptr noundef %211, i64 noundef %212, i64 noundef %213, ptr noundef %214, ptr noundef nonnull align 8 dereferenceable(200) %32)
          to label %215 unwind label %261

215:                                              ; preds = %208
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #8
  %216 = load i64, ptr %20, align 8, !tbaa !9
  %217 = invoke noundef ptr @_ZN17meshopt_Allocator8allocateIhEEPT_m(ptr noundef nonnull align 8 dereferenceable(200) %32, i64 noundef %216)
          to label %218 unwind label %265

218:                                              ; preds = %215
  store ptr %217, ptr %40, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #8
  %219 = load i64, ptr %20, align 8, !tbaa !9
  %220 = invoke noundef ptr @_ZN17meshopt_Allocator8allocateIjEEPT_m(ptr noundef nonnull align 8 dereferenceable(200) %32, i64 noundef %219)
          to label %221 unwind label %269

221:                                              ; preds = %218
  store ptr %220, ptr %41, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #8
  %222 = load i64, ptr %20, align 8, !tbaa !9
  %223 = invoke noundef ptr @_ZN17meshopt_Allocator8allocateIjEEPT_m(ptr noundef nonnull align 8 dereferenceable(200) %32, i64 noundef %222)
          to label %224 unwind label %273

224:                                              ; preds = %221
  store ptr %223, ptr %42, align 8, !tbaa !5
  %225 = load ptr, ptr %40, align 8, !tbaa !5
  %226 = load ptr, ptr %41, align 8, !tbaa !5
  %227 = load ptr, ptr %42, align 8, !tbaa !5
  %228 = load i64, ptr %20, align 8, !tbaa !9
  %229 = load ptr, ptr %38, align 8, !tbaa !5
  %230 = load ptr, ptr %39, align 8, !tbaa !5
  %231 = load ptr, ptr %26, align 8, !tbaa !5
  %232 = load ptr, ptr %34, align 8, !tbaa !5
  %233 = load i32, ptr %29, align 4, !tbaa !13
  invoke void @_ZN7meshoptL16classifyVerticesEPhPjS1_mRKNS_13EdgeAdjacencyEPKjS6_PKhS6_j(ptr noundef %225, ptr noundef %226, ptr noundef %227, i64 noundef %228, ptr noundef nonnull align 8 dereferenceable(16) %37, ptr noundef %229, ptr noundef %230, ptr noundef %231, ptr noundef %232, i32 noundef %233)
          to label %234 unwind label %273

234:                                              ; preds = %224
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #8
  %235 = load i64, ptr %20, align 8, !tbaa !9
  %236 = invoke noundef ptr @_ZN17meshopt_Allocator8allocateIN7meshopt7Vector3EEEPT_m(ptr noundef nonnull align 8 dereferenceable(200) %32, i64 noundef %235)
          to label %237 unwind label %277

237:                                              ; preds = %234
  store ptr %236, ptr %43, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #8
  %238 = load ptr, ptr %43, align 8, !tbaa !5
  %239 = load ptr, ptr %19, align 8, !tbaa !5
  %240 = load i64, ptr %20, align 8, !tbaa !9
  %241 = load i64, ptr %21, align 8, !tbaa !9
  %242 = load ptr, ptr %34, align 8, !tbaa !5
  %243 = invoke noundef float @_ZN7meshoptL16rescalePositionsEPNS_7Vector3EPKfmmPKj(ptr noundef %238, ptr noundef %239, i64 noundef %240, i64 noundef %241, ptr noundef %242)
          to label %244 unwind label %281

244:                                              ; preds = %237
  store float %243, ptr %44, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #8
  store ptr null, ptr %45, align 8, !tbaa !5
  %245 = load i64, ptr %25, align 8, !tbaa !9
  %246 = icmp ne i64 %245, 0
  br i1 %246, label %247, label %321

247:                                              ; preds = %244
  call void @llvm.lifetime.start.p0(i64 128, ptr %46) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #8
  store i64 0, ptr %47, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #8
  store i64 0, ptr %48, align 8, !tbaa !9
  br label %248

248:                                              ; preds = %298, %247
  %249 = load i64, ptr %48, align 8, !tbaa !9
  %250 = load i64, ptr %25, align 8, !tbaa !9
  %251 = icmp ult i64 %249, %250
  br i1 %251, label %285, label %252

252:                                              ; preds = %248
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #8
  br label %301

253:                                              ; preds = %198, %195
  %254 = landingpad { ptr, i32 }
          cleanup
  %255 = extractvalue { ptr, i32 } %254, 0
  store ptr %255, ptr %35, align 8
  %256 = extractvalue { ptr, i32 } %254, 1
  store i32 %256, ptr %36, align 4
  br label %946

257:                                              ; preds = %202
  %258 = landingpad { ptr, i32 }
          cleanup
  %259 = extractvalue { ptr, i32 } %258, 0
  store ptr %259, ptr %35, align 8
  %260 = extractvalue { ptr, i32 } %258, 1
  store i32 %260, ptr %36, align 4
  br label %945

261:                                              ; preds = %208, %205
  %262 = landingpad { ptr, i32 }
          cleanup
  %263 = extractvalue { ptr, i32 } %262, 0
  store ptr %263, ptr %35, align 8
  %264 = extractvalue { ptr, i32 } %262, 1
  store i32 %264, ptr %36, align 4
  br label %944

265:                                              ; preds = %215
  %266 = landingpad { ptr, i32 }
          cleanup
  %267 = extractvalue { ptr, i32 } %266, 0
  store ptr %267, ptr %35, align 8
  %268 = extractvalue { ptr, i32 } %266, 1
  store i32 %268, ptr %36, align 4
  br label %943

269:                                              ; preds = %218
  %270 = landingpad { ptr, i32 }
          cleanup
  %271 = extractvalue { ptr, i32 } %270, 0
  store ptr %271, ptr %35, align 8
  %272 = extractvalue { ptr, i32 } %270, 1
  store i32 %272, ptr %36, align 4
  br label %942

273:                                              ; preds = %224, %221
  %274 = landingpad { ptr, i32 }
          cleanup
  %275 = extractvalue { ptr, i32 } %274, 0
  store ptr %275, ptr %35, align 8
  %276 = extractvalue { ptr, i32 } %274, 1
  store i32 %276, ptr %36, align 4
  br label %941

277:                                              ; preds = %234
  %278 = landingpad { ptr, i32 }
          cleanup
  %279 = extractvalue { ptr, i32 } %278, 0
  store ptr %279, ptr %35, align 8
  %280 = extractvalue { ptr, i32 } %278, 1
  store i32 %280, ptr %36, align 4
  br label %940

281:                                              ; preds = %237
  %282 = landingpad { ptr, i32 }
          cleanup
  %283 = extractvalue { ptr, i32 } %282, 0
  store ptr %283, ptr %35, align 8
  %284 = extractvalue { ptr, i32 } %282, 1
  store i32 %284, ptr %36, align 4
  br label %939

285:                                              ; preds = %248
  %286 = load ptr, ptr %24, align 8, !tbaa !5
  %287 = load i64, ptr %48, align 8, !tbaa !9
  %288 = getelementptr inbounds float, ptr %286, i64 %287
  %289 = load float, ptr %288, align 4, !tbaa !11
  %290 = fcmp ogt float %289, 0.000000e+00
  br i1 %290, label %291, label %297

291:                                              ; preds = %285
  %292 = load i64, ptr %48, align 8, !tbaa !9
  %293 = trunc i64 %292 to i32
  %294 = load i64, ptr %47, align 8, !tbaa !9
  %295 = add i64 %294, 1
  store i64 %295, ptr %47, align 8, !tbaa !9
  %296 = getelementptr inbounds [32 x i32], ptr %46, i64 0, i64 %294
  store i32 %293, ptr %296, align 4, !tbaa !13
  br label %297

297:                                              ; preds = %291, %285
  br label %298

298:                                              ; preds = %297
  %299 = load i64, ptr %48, align 8, !tbaa !9
  %300 = add i64 %299, 1
  store i64 %300, ptr %48, align 8, !tbaa !9
  br label %248, !llvm.loop !17

301:                                              ; preds = %252
  %302 = load i64, ptr %47, align 8, !tbaa !9
  store i64 %302, ptr %25, align 8, !tbaa !9
  %303 = load i64, ptr %20, align 8, !tbaa !9
  %304 = load i64, ptr %25, align 8, !tbaa !9
  %305 = mul i64 %303, %304
  %306 = invoke noundef ptr @_ZN17meshopt_Allocator8allocateIfEEPT_m(ptr noundef nonnull align 8 dereferenceable(200) %32, i64 noundef %305)
          to label %307 unwind label %317

307:                                              ; preds = %301
  store ptr %306, ptr %45, align 8, !tbaa !5
  %308 = load ptr, ptr %45, align 8, !tbaa !5
  %309 = load ptr, ptr %22, align 8, !tbaa !5
  %310 = load i64, ptr %20, align 8, !tbaa !9
  %311 = load i64, ptr %23, align 8, !tbaa !9
  %312 = load ptr, ptr %24, align 8, !tbaa !5
  %313 = load i64, ptr %25, align 8, !tbaa !9
  %314 = getelementptr inbounds [32 x i32], ptr %46, i64 0, i64 0
  %315 = load ptr, ptr %34, align 8, !tbaa !5
  invoke void @_ZN7meshoptL17rescaleAttributesEPfPKfmmS2_mPKjS4_(ptr noundef %308, ptr noundef %309, i64 noundef %310, i64 noundef %311, ptr noundef %312, i64 noundef %313, ptr noundef %314, ptr noundef %315)
          to label %316 unwind label %317

316:                                              ; preds = %307
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #8
  call void @llvm.lifetime.end.p0(i64 128, ptr %46) #8
  br label %321

317:                                              ; preds = %307, %301
  %318 = landingpad { ptr, i32 }
          cleanup
  %319 = extractvalue { ptr, i32 } %318, 0
  store ptr %319, ptr %35, align 8
  %320 = extractvalue { ptr, i32 } %318, 1
  store i32 %320, ptr %36, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #8
  call void @llvm.lifetime.end.p0(i64 128, ptr %46) #8
  br label %938

321:                                              ; preds = %316, %244
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #8
  %322 = load i64, ptr %20, align 8, !tbaa !9
  %323 = invoke noundef ptr @_ZN17meshopt_Allocator8allocateIN7meshopt7QuadricEEEPT_m(ptr noundef nonnull align 8 dereferenceable(200) %32, i64 noundef %322)
          to label %324 unwind label %347

324:                                              ; preds = %321
  store ptr %323, ptr %49, align 8, !tbaa !5
  %325 = load ptr, ptr %49, align 8, !tbaa !5
  %326 = load i64, ptr %20, align 8, !tbaa !9
  %327 = mul i64 %326, 44
  call void @llvm.memset.p0.i64(ptr align 4 %325, i8 0, i64 %327, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %50) #8
  store ptr null, ptr %50, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %51) #8
  store ptr null, ptr %51, align 8, !tbaa !5
  %328 = load i64, ptr %25, align 8, !tbaa !9
  %329 = icmp ne i64 %328, 0
  br i1 %329, label %330, label %355

330:                                              ; preds = %324
  %331 = load i64, ptr %20, align 8, !tbaa !9
  %332 = invoke noundef ptr @_ZN17meshopt_Allocator8allocateIN7meshopt7QuadricEEEPT_m(ptr noundef nonnull align 8 dereferenceable(200) %32, i64 noundef %331)
          to label %333 unwind label %351

333:                                              ; preds = %330
  store ptr %332, ptr %50, align 8, !tbaa !5
  %334 = load ptr, ptr %50, align 8, !tbaa !5
  %335 = load i64, ptr %20, align 8, !tbaa !9
  %336 = mul i64 %335, 44
  call void @llvm.memset.p0.i64(ptr align 4 %334, i8 0, i64 %336, i1 false)
  %337 = load i64, ptr %20, align 8, !tbaa !9
  %338 = load i64, ptr %25, align 8, !tbaa !9
  %339 = mul i64 %337, %338
  %340 = invoke noundef ptr @_ZN17meshopt_Allocator8allocateIN7meshopt11QuadricGradEEEPT_m(ptr noundef nonnull align 8 dereferenceable(200) %32, i64 noundef %339)
          to label %341 unwind label %351

341:                                              ; preds = %333
  store ptr %340, ptr %51, align 8, !tbaa !5
  %342 = load ptr, ptr %51, align 8, !tbaa !5
  %343 = load i64, ptr %20, align 8, !tbaa !9
  %344 = load i64, ptr %25, align 8, !tbaa !9
  %345 = mul i64 %343, %344
  %346 = mul i64 %345, 16
  call void @llvm.memset.p0.i64(ptr align 4 %342, i8 0, i64 %346, i1 false)
  br label %355

347:                                              ; preds = %321
  %348 = landingpad { ptr, i32 }
          cleanup
  %349 = extractvalue { ptr, i32 } %348, 0
  store ptr %349, ptr %35, align 8
  %350 = extractvalue { ptr, i32 } %348, 1
  store i32 %350, ptr %36, align 4
  br label %937

351:                                              ; preds = %373, %361, %355, %333, %330
  %352 = landingpad { ptr, i32 }
          cleanup
  %353 = extractvalue { ptr, i32 } %352, 0
  store ptr %353, ptr %35, align 8
  %354 = extractvalue { ptr, i32 } %352, 1
  store i32 %354, ptr %36, align 4
  br label %936

355:                                              ; preds = %341, %324
  %356 = load ptr, ptr %49, align 8, !tbaa !5
  %357 = load ptr, ptr %33, align 8, !tbaa !5
  %358 = load i64, ptr %18, align 8, !tbaa !9
  %359 = load ptr, ptr %43, align 8, !tbaa !5
  %360 = load ptr, ptr %38, align 8, !tbaa !5
  invoke void @_ZN7meshoptL16fillFaceQuadricsEPNS_7QuadricEPKjmPKNS_7Vector3ES3_(ptr noundef %356, ptr noundef %357, i64 noundef %358, ptr noundef %359, ptr noundef %360)
          to label %361 unwind label %351

361:                                              ; preds = %355
  %362 = load ptr, ptr %49, align 8, !tbaa !5
  %363 = load ptr, ptr %33, align 8, !tbaa !5
  %364 = load i64, ptr %18, align 8, !tbaa !9
  %365 = load ptr, ptr %43, align 8, !tbaa !5
  %366 = load ptr, ptr %38, align 8, !tbaa !5
  %367 = load ptr, ptr %40, align 8, !tbaa !5
  %368 = load ptr, ptr %41, align 8, !tbaa !5
  %369 = load ptr, ptr %42, align 8, !tbaa !5
  invoke void @_ZN7meshoptL16fillEdgeQuadricsEPNS_7QuadricEPKjmPKNS_7Vector3ES3_PKhS3_S3_(ptr noundef %362, ptr noundef %363, i64 noundef %364, ptr noundef %365, ptr noundef %366, ptr noundef %367, ptr noundef %368, ptr noundef %369)
          to label %370 unwind label %351

370:                                              ; preds = %361
  %371 = load i64, ptr %25, align 8, !tbaa !9
  %372 = icmp ne i64 %371, 0
  br i1 %372, label %373, label %382

373:                                              ; preds = %370
  %374 = load ptr, ptr %50, align 8, !tbaa !5
  %375 = load ptr, ptr %51, align 8, !tbaa !5
  %376 = load ptr, ptr %33, align 8, !tbaa !5
  %377 = load i64, ptr %18, align 8, !tbaa !9
  %378 = load ptr, ptr %43, align 8, !tbaa !5
  %379 = load ptr, ptr %45, align 8, !tbaa !5
  %380 = load i64, ptr %25, align 8, !tbaa !9
  invoke void @_ZN7meshoptL21fillAttributeQuadricsEPNS_7QuadricEPNS_11QuadricGradEPKjmPKNS_7Vector3EPKfm(ptr noundef %374, ptr noundef %375, ptr noundef %376, i64 noundef %377, ptr noundef %378, ptr noundef %379, i64 noundef %380)
          to label %381 unwind label %351

381:                                              ; preds = %373
  br label %382

382:                                              ; preds = %381, %370
  call void @llvm.lifetime.start.p0(i64 8, ptr %52) #8
  store ptr null, ptr %52, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %53) #8
  store ptr null, ptr %53, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %54) #8
  store i64 0, ptr %54, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %55) #8
  store float 0.000000e+00, ptr %55, align 4, !tbaa !11
  %383 = load i32, ptr %29, align 4, !tbaa !13
  %384 = and i32 %383, 8
  %385 = icmp ne i32 %384, 0
  br i1 %385, label %386, label %436

386:                                              ; preds = %382
  %387 = load i64, ptr %20, align 8, !tbaa !9
  %388 = invoke noundef ptr @_ZN17meshopt_Allocator8allocateIjEEPT_m(ptr noundef nonnull align 8 dereferenceable(200) %32, i64 noundef %387)
          to label %389 unwind label %412

389:                                              ; preds = %386
  store ptr %388, ptr %52, align 8, !tbaa !5
  %390 = load ptr, ptr %52, align 8, !tbaa !5
  %391 = load i64, ptr %20, align 8, !tbaa !9
  %392 = load ptr, ptr %33, align 8, !tbaa !5
  %393 = load i64, ptr %18, align 8, !tbaa !9
  %394 = load ptr, ptr %38, align 8, !tbaa !5
  %395 = invoke noundef i64 @_ZN7meshoptL15buildComponentsEPjmPKjmS2_(ptr noundef %390, i64 noundef %391, ptr noundef %392, i64 noundef %393, ptr noundef %394)
          to label %396 unwind label %412

396:                                              ; preds = %389
  store i64 %395, ptr %54, align 8, !tbaa !9
  %397 = load i64, ptr %54, align 8, !tbaa !9
  %398 = mul i64 %397, 4
  %399 = invoke noundef ptr @_ZN17meshopt_Allocator8allocateIfEEPT_m(ptr noundef nonnull align 8 dereferenceable(200) %32, i64 noundef %398)
          to label %400 unwind label %412

400:                                              ; preds = %396
  store ptr %399, ptr %53, align 8, !tbaa !5
  %401 = load ptr, ptr %53, align 8, !tbaa !5
  %402 = load i64, ptr %54, align 8, !tbaa !9
  %403 = load ptr, ptr %52, align 8, !tbaa !5
  %404 = load ptr, ptr %43, align 8, !tbaa !5
  %405 = load i64, ptr %20, align 8, !tbaa !9
  invoke void @_ZN7meshoptL17measureComponentsEPfmPKjPKNS_7Vector3Em(ptr noundef %401, i64 noundef %402, ptr noundef %403, ptr noundef %404, i64 noundef %405)
          to label %406 unwind label %412

406:                                              ; preds = %400
  store float 0x47EFFFFFE0000000, ptr %55, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %56) #8
  store i64 0, ptr %56, align 8, !tbaa !9
  br label %407

407:                                              ; preds = %432, %406
  %408 = load i64, ptr %56, align 8, !tbaa !9
  %409 = load i64, ptr %54, align 8, !tbaa !9
  %410 = icmp ult i64 %408, %409
  br i1 %410, label %416, label %411

411:                                              ; preds = %407
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #8
  br label %435

412:                                              ; preds = %400, %396, %389, %386
  %413 = landingpad { ptr, i32 }
          cleanup
  %414 = extractvalue { ptr, i32 } %413, 0
  store ptr %414, ptr %35, align 8
  %415 = extractvalue { ptr, i32 } %413, 1
  store i32 %415, ptr %36, align 4
  br label %935

416:                                              ; preds = %407
  %417 = load float, ptr %55, align 4, !tbaa !11
  %418 = load ptr, ptr %53, align 8, !tbaa !5
  %419 = load i64, ptr %56, align 8, !tbaa !9
  %420 = getelementptr inbounds float, ptr %418, i64 %419
  %421 = load float, ptr %420, align 4, !tbaa !11
  %422 = fcmp ogt float %417, %421
  br i1 %422, label %423, label %428

423:                                              ; preds = %416
  %424 = load ptr, ptr %53, align 8, !tbaa !5
  %425 = load i64, ptr %56, align 8, !tbaa !9
  %426 = getelementptr inbounds float, ptr %424, i64 %425
  %427 = load float, ptr %426, align 4, !tbaa !11
  br label %430

428:                                              ; preds = %416
  %429 = load float, ptr %55, align 4, !tbaa !11
  br label %430

430:                                              ; preds = %428, %423
  %431 = phi float [ %427, %423 ], [ %429, %428 ]
  store float %431, ptr %55, align 4, !tbaa !11
  br label %432

432:                                              ; preds = %430
  %433 = load i64, ptr %56, align 8, !tbaa !9
  %434 = add i64 %433, 1
  store i64 %434, ptr %56, align 8, !tbaa !9
  br label %407, !llvm.loop !18

435:                                              ; preds = %411
  br label %436

436:                                              ; preds = %435, %382
  call void @llvm.lifetime.start.p0(i64 8, ptr %57) #8
  %437 = load i64, ptr %20, align 8, !tbaa !9
  %438 = load i64, ptr %18, align 8, !tbaa !9
  %439 = load ptr, ptr %40, align 8, !tbaa !5
  %440 = invoke noundef i64 @_ZN7meshoptL18boundEdgeCollapsesERKNS_13EdgeAdjacencyEmmPh(ptr noundef nonnull align 8 dereferenceable(16) %37, i64 noundef %437, i64 noundef %438, ptr noundef %439)
          to label %441 unwind label %495

441:                                              ; preds = %436
  store i64 %440, ptr %57, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %58) #8
  %442 = load i64, ptr %57, align 8, !tbaa !9
  %443 = invoke noundef ptr @_ZN17meshopt_Allocator8allocateIN7meshopt8CollapseEEEPT_m(ptr noundef nonnull align 8 dereferenceable(200) %32, i64 noundef %442)
          to label %444 unwind label %499

444:                                              ; preds = %441
  store ptr %443, ptr %58, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %59) #8
  %445 = load i64, ptr %57, align 8, !tbaa !9
  %446 = invoke noundef ptr @_ZN17meshopt_Allocator8allocateIjEEPT_m(ptr noundef nonnull align 8 dereferenceable(200) %32, i64 noundef %445)
          to label %447 unwind label %503

447:                                              ; preds = %444
  store ptr %446, ptr %59, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %60) #8
  %448 = load i64, ptr %20, align 8, !tbaa !9
  %449 = invoke noundef ptr @_ZN17meshopt_Allocator8allocateIjEEPT_m(ptr noundef nonnull align 8 dereferenceable(200) %32, i64 noundef %448)
          to label %450 unwind label %507

450:                                              ; preds = %447
  store ptr %449, ptr %60, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %61) #8
  %451 = load i64, ptr %20, align 8, !tbaa !9
  %452 = invoke noundef ptr @_ZN17meshopt_Allocator8allocateIhEEPT_m(ptr noundef nonnull align 8 dereferenceable(200) %32, i64 noundef %451)
          to label %453 unwind label %511

453:                                              ; preds = %450
  store ptr %452, ptr %61, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %62) #8
  %454 = load i64, ptr %18, align 8, !tbaa !9
  store i64 %454, ptr %62, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %63) #8
  store float 0.000000e+00, ptr %63, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %64) #8
  store float 0.000000e+00, ptr %64, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %65) #8
  %455 = load i32, ptr %29, align 4, !tbaa !13
  %456 = and i32 %455, 4
  %457 = icmp ne i32 %456, 0
  br i1 %457, label %458, label %460

458:                                              ; preds = %453
  %459 = load float, ptr %44, align 4, !tbaa !11
  br label %461

460:                                              ; preds = %453
  br label %461

461:                                              ; preds = %460, %458
  %462 = phi float [ %459, %458 ], [ 1.000000e+00, %460 ]
  store float %462, ptr %65, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %66) #8
  %463 = load float, ptr %28, align 4, !tbaa !11
  %464 = load float, ptr %28, align 4, !tbaa !11
  %465 = fmul float %463, %464
  %466 = load float, ptr %65, align 4, !tbaa !11
  %467 = load float, ptr %65, align 4, !tbaa !11
  %468 = fmul float %466, %467
  %469 = fdiv float %465, %468
  store float %469, ptr %66, align 4, !tbaa !11
  br label %470

470:                                              ; preds = %657, %461
  %471 = load i64, ptr %62, align 8, !tbaa !9
  %472 = load i64, ptr %27, align 8, !tbaa !9
  %473 = icmp ugt i64 %471, %472
  br i1 %473, label %474, label %660

474:                                              ; preds = %470
  %475 = load ptr, ptr %33, align 8, !tbaa !5
  %476 = load i64, ptr %62, align 8, !tbaa !9
  %477 = load i64, ptr %20, align 8, !tbaa !9
  %478 = load ptr, ptr %38, align 8, !tbaa !5
  invoke void @_ZN7meshoptL19updateEdgeAdjacencyERNS_13EdgeAdjacencyEPKjmmS3_(ptr noundef nonnull align 8 dereferenceable(16) %37, ptr noundef %475, i64 noundef %476, i64 noundef %477, ptr noundef %478)
          to label %479 unwind label %515

479:                                              ; preds = %474
  call void @llvm.lifetime.start.p0(i64 8, ptr %67) #8
  %480 = load ptr, ptr %58, align 8, !tbaa !5
  %481 = load i64, ptr %57, align 8, !tbaa !9
  %482 = load ptr, ptr %33, align 8, !tbaa !5
  %483 = load i64, ptr %62, align 8, !tbaa !9
  %484 = load ptr, ptr %38, align 8, !tbaa !5
  %485 = load ptr, ptr %40, align 8, !tbaa !5
  %486 = load ptr, ptr %41, align 8, !tbaa !5
  %487 = load ptr, ptr %42, align 8, !tbaa !5
  %488 = invoke noundef i64 @_ZN7meshoptL17pickEdgeCollapsesEPNS_8CollapseEmPKjmS3_PKhS3_S3_(ptr noundef %480, i64 noundef %481, ptr noundef %482, i64 noundef %483, ptr noundef %484, ptr noundef %485, ptr noundef %486, ptr noundef %487)
          to label %489 unwind label %519

489:                                              ; preds = %479
  store i64 %488, ptr %67, align 8, !tbaa !9
  %490 = load i64, ptr %67, align 8, !tbaa !9
  %491 = load i64, ptr %57, align 8, !tbaa !9
  %492 = icmp ule i64 %490, %491
  br i1 %492, label %493, label %494

493:                                              ; preds = %489
  br label %524

494:                                              ; preds = %489
  call void @__assert_fail(ptr noundef @.str.11, ptr noundef @.str.1, i32 noundef 1992, ptr noundef @__PRETTY_FUNCTION__._Z20meshopt_simplifyEdgePjPKjmPKfmmS3_mS3_mPKhmfjPf) #7
  unreachable

495:                                              ; preds = %436
  %496 = landingpad { ptr, i32 }
          cleanup
  %497 = extractvalue { ptr, i32 } %496, 0
  store ptr %497, ptr %35, align 8
  %498 = extractvalue { ptr, i32 } %496, 1
  store i32 %498, ptr %36, align 4
  br label %934

499:                                              ; preds = %441
  %500 = landingpad { ptr, i32 }
          cleanup
  %501 = extractvalue { ptr, i32 } %500, 0
  store ptr %501, ptr %35, align 8
  %502 = extractvalue { ptr, i32 } %500, 1
  store i32 %502, ptr %36, align 4
  br label %933

503:                                              ; preds = %444
  %504 = landingpad { ptr, i32 }
          cleanup
  %505 = extractvalue { ptr, i32 } %504, 0
  store ptr %505, ptr %35, align 8
  %506 = extractvalue { ptr, i32 } %504, 1
  store i32 %506, ptr %36, align 4
  br label %932

507:                                              ; preds = %447
  %508 = landingpad { ptr, i32 }
          cleanup
  %509 = extractvalue { ptr, i32 } %508, 0
  store ptr %509, ptr %35, align 8
  %510 = extractvalue { ptr, i32 } %508, 1
  store i32 %510, ptr %36, align 4
  br label %931

511:                                              ; preds = %450
  %512 = landingpad { ptr, i32 }
          cleanup
  %513 = extractvalue { ptr, i32 } %512, 0
  store ptr %513, ptr %35, align 8
  %514 = extractvalue { ptr, i32 } %512, 1
  store i32 %514, ptr %36, align 4
  br label %930

515:                                              ; preds = %474
  %516 = landingpad { ptr, i32 }
          cleanup
  %517 = extractvalue { ptr, i32 } %516, 0
  store ptr %517, ptr %35, align 8
  %518 = extractvalue { ptr, i32 } %516, 1
  store i32 %518, ptr %36, align 4
  br label %929

519:                                              ; preds = %542, %528, %479
  %520 = landingpad { ptr, i32 }
          cleanup
  %521 = extractvalue { ptr, i32 } %520, 0
  store ptr %521, ptr %35, align 8
  %522 = extractvalue { ptr, i32 } %520, 1
  store i32 %522, ptr %36, align 4
  br label %659

523:                                              ; No predecessors!
  br label %524

524:                                              ; preds = %523, %493
  %525 = load i64, ptr %67, align 8, !tbaa !9
  %526 = icmp eq i64 %525, 0
  br i1 %526, label %527, label %528

527:                                              ; preds = %524
  store i32 12, ptr %68, align 4
  br label %655

528:                                              ; preds = %524
  %529 = load ptr, ptr %58, align 8, !tbaa !5
  %530 = load i64, ptr %67, align 8, !tbaa !9
  %531 = load ptr, ptr %43, align 8, !tbaa !5
  %532 = load ptr, ptr %45, align 8, !tbaa !5
  %533 = load ptr, ptr %49, align 8, !tbaa !5
  %534 = load ptr, ptr %50, align 8, !tbaa !5
  %535 = load ptr, ptr %51, align 8, !tbaa !5
  %536 = load i64, ptr %25, align 8, !tbaa !9
  %537 = load ptr, ptr %38, align 8, !tbaa !5
  %538 = load ptr, ptr %39, align 8, !tbaa !5
  %539 = load ptr, ptr %40, align 8, !tbaa !5
  %540 = load ptr, ptr %41, align 8, !tbaa !5
  %541 = load ptr, ptr %42, align 8, !tbaa !5
  invoke void @_ZN7meshoptL17rankEdgeCollapsesEPNS_8CollapseEmPKNS_7Vector3EPKfPKNS_7QuadricES9_PKNS_11QuadricGradEmPKjSE_PKhSE_SE_(ptr noundef %529, i64 noundef %530, ptr noundef %531, ptr noundef %532, ptr noundef %533, ptr noundef %534, ptr noundef %535, i64 noundef %536, ptr noundef %537, ptr noundef %538, ptr noundef %539, ptr noundef %540, ptr noundef %541)
          to label %542 unwind label %519

542:                                              ; preds = %528
  %543 = load ptr, ptr %59, align 8, !tbaa !5
  %544 = load ptr, ptr %58, align 8, !tbaa !5
  %545 = load i64, ptr %67, align 8, !tbaa !9
  invoke void @_ZN7meshoptL17sortEdgeCollapsesEPjPKNS_8CollapseEm(ptr noundef %543, ptr noundef %544, i64 noundef %545)
          to label %546 unwind label %519

546:                                              ; preds = %542
  call void @llvm.lifetime.start.p0(i64 8, ptr %69) #8
  %547 = load i64, ptr %62, align 8, !tbaa !9
  %548 = load i64, ptr %27, align 8, !tbaa !9
  %549 = sub i64 %547, %548
  %550 = udiv i64 %549, 3
  store i64 %550, ptr %69, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %70) #8
  store i64 0, ptr %70, align 8, !tbaa !9
  br label %551

551:                                              ; preds = %562, %546
  %552 = load i64, ptr %70, align 8, !tbaa !9
  %553 = load i64, ptr %20, align 8, !tbaa !9
  %554 = icmp ult i64 %552, %553
  br i1 %554, label %556, label %555

555:                                              ; preds = %551
  store i32 13, ptr %68, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %70) #8
  br label %565

556:                                              ; preds = %551
  %557 = load i64, ptr %70, align 8, !tbaa !9
  %558 = trunc i64 %557 to i32
  %559 = load ptr, ptr %60, align 8, !tbaa !5
  %560 = load i64, ptr %70, align 8, !tbaa !9
  %561 = getelementptr inbounds i32, ptr %559, i64 %560
  store i32 %558, ptr %561, align 4, !tbaa !13
  br label %562

562:                                              ; preds = %556
  %563 = load i64, ptr %70, align 8, !tbaa !9
  %564 = add i64 %563, 1
  store i64 %564, ptr %70, align 8, !tbaa !9
  br label %551, !llvm.loop !19

565:                                              ; preds = %555
  %566 = load ptr, ptr %61, align 8, !tbaa !5
  %567 = load i64, ptr %20, align 8, !tbaa !9
  call void @llvm.memset.p0.i64(ptr align 1 %566, i8 0, i64 %567, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %71) #8
  %568 = load ptr, ptr %60, align 8, !tbaa !5
  %569 = load ptr, ptr %61, align 8, !tbaa !5
  %570 = load ptr, ptr %58, align 8, !tbaa !5
  %571 = load i64, ptr %67, align 8, !tbaa !9
  %572 = load ptr, ptr %59, align 8, !tbaa !5
  %573 = load ptr, ptr %38, align 8, !tbaa !5
  %574 = load ptr, ptr %39, align 8, !tbaa !5
  %575 = load ptr, ptr %40, align 8, !tbaa !5
  %576 = load ptr, ptr %41, align 8, !tbaa !5
  %577 = load ptr, ptr %42, align 8, !tbaa !5
  %578 = load ptr, ptr %43, align 8, !tbaa !5
  %579 = load i64, ptr %69, align 8, !tbaa !9
  %580 = load float, ptr %66, align 4, !tbaa !11
  %581 = invoke noundef i64 @_ZN7meshoptL20performEdgeCollapsesEPjPhPKNS_8CollapseEmPKjS6_S6_PKhS6_S6_PKNS_7Vector3ERKNS_13EdgeAdjacencyEmfRf(ptr noundef %568, ptr noundef %569, ptr noundef %570, i64 noundef %571, ptr noundef %572, ptr noundef %573, ptr noundef %574, ptr noundef %575, ptr noundef %576, ptr noundef %577, ptr noundef %578, ptr noundef nonnull align 8 dereferenceable(16) %37, i64 noundef %579, float noundef %580, ptr noundef nonnull align 4 dereferenceable(4) %63)
          to label %582 unwind label %586

582:                                              ; preds = %565
  store i64 %581, ptr %71, align 8, !tbaa !9
  %583 = load i64, ptr %71, align 8, !tbaa !9
  %584 = icmp eq i64 %583, 0
  br i1 %584, label %585, label %590

585:                                              ; preds = %582
  store i32 12, ptr %68, align 4
  br label %654

586:                                              ; preds = %611, %606, %590, %565
  %587 = landingpad { ptr, i32 }
          cleanup
  %588 = extractvalue { ptr, i32 } %587, 0
  store ptr %588, ptr %35, align 8
  %589 = extractvalue { ptr, i32 } %587, 1
  store i32 %589, ptr %36, align 4
  br label %658

590:                                              ; preds = %582
  %591 = load ptr, ptr %60, align 8, !tbaa !5
  %592 = load i64, ptr %20, align 8, !tbaa !9
  %593 = load ptr, ptr %49, align 8, !tbaa !5
  %594 = load ptr, ptr %50, align 8, !tbaa !5
  %595 = load ptr, ptr %51, align 8, !tbaa !5
  %596 = load i64, ptr %25, align 8, !tbaa !9
  %597 = load ptr, ptr %43, align 8, !tbaa !5
  %598 = load ptr, ptr %38, align 8, !tbaa !5
  invoke void @_ZN7meshoptL14updateQuadricsEPKjmPNS_7QuadricES3_PNS_11QuadricGradEmPKNS_7Vector3ES1_Rf(ptr noundef %591, i64 noundef %592, ptr noundef %593, ptr noundef %594, ptr noundef %595, i64 noundef %596, ptr noundef %597, ptr noundef %598, ptr noundef nonnull align 4 dereferenceable(4) %64)
          to label %599 unwind label %586

599:                                              ; preds = %590
  %600 = load i64, ptr %25, align 8, !tbaa !9
  %601 = icmp eq i64 %600, 0
  br i1 %601, label %602, label %604

602:                                              ; preds = %599
  %603 = load float, ptr %63, align 4, !tbaa !11
  br label %606

604:                                              ; preds = %599
  %605 = load float, ptr %64, align 4, !tbaa !11
  br label %606

606:                                              ; preds = %604, %602
  %607 = phi float [ %603, %602 ], [ %605, %604 ]
  store float %607, ptr %64, align 4, !tbaa !11
  %608 = load ptr, ptr %41, align 8, !tbaa !5
  %609 = load i64, ptr %20, align 8, !tbaa !9
  %610 = load ptr, ptr %60, align 8, !tbaa !5
  invoke void @_ZN7meshoptL14remapEdgeLoopsEPjmPKj(ptr noundef %608, i64 noundef %609, ptr noundef %610)
          to label %611 unwind label %586

611:                                              ; preds = %606
  %612 = load ptr, ptr %42, align 8, !tbaa !5
  %613 = load i64, ptr %20, align 8, !tbaa !9
  %614 = load ptr, ptr %60, align 8, !tbaa !5
  invoke void @_ZN7meshoptL14remapEdgeLoopsEPjmPKj(ptr noundef %612, i64 noundef %613, ptr noundef %614)
          to label %615 unwind label %586

615:                                              ; preds = %611
  call void @llvm.lifetime.start.p0(i64 8, ptr %72) #8
  %616 = load ptr, ptr %33, align 8, !tbaa !5
  %617 = load i64, ptr %62, align 8, !tbaa !9
  %618 = load ptr, ptr %60, align 8, !tbaa !5
  %619 = invoke noundef i64 @_ZN7meshoptL16remapIndexBufferEPjmPKj(ptr noundef %616, i64 noundef %617, ptr noundef %618)
          to label %620 unwind label %626

620:                                              ; preds = %615
  store i64 %619, ptr %72, align 8, !tbaa !9
  %621 = load i64, ptr %72, align 8, !tbaa !9
  %622 = load i64, ptr %62, align 8, !tbaa !9
  %623 = icmp ult i64 %621, %622
  br i1 %623, label %624, label %625

624:                                              ; preds = %620
  br label %631

625:                                              ; preds = %620
  call void @__assert_fail(ptr noundef @.str.12, ptr noundef @.str.1, i32 noundef 2028, ptr noundef @__PRETTY_FUNCTION__._Z20meshopt_simplifyEdgePjPKjmPKfmmS3_mS3_mPKhmfjPf) #7
  unreachable

626:                                              ; preds = %644, %615
  %627 = landingpad { ptr, i32 }
          cleanup
  %628 = extractvalue { ptr, i32 } %627, 0
  store ptr %628, ptr %35, align 8
  %629 = extractvalue { ptr, i32 } %627, 1
  store i32 %629, ptr %36, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %72) #8
  br label %658

630:                                              ; No predecessors!
  br label %631

631:                                              ; preds = %630, %624
  %632 = load i64, ptr %72, align 8, !tbaa !9
  store i64 %632, ptr %62, align 8, !tbaa !9
  %633 = load i32, ptr %29, align 4, !tbaa !13
  %634 = and i32 %633, 8
  %635 = icmp ne i32 %634, 0
  br i1 %635, label %636, label %653

636:                                              ; preds = %631
  %637 = load i64, ptr %62, align 8, !tbaa !9
  %638 = load i64, ptr %27, align 8, !tbaa !9
  %639 = icmp ugt i64 %637, %638
  br i1 %639, label %640, label %653

640:                                              ; preds = %636
  %641 = load float, ptr %55, align 4, !tbaa !11
  %642 = load float, ptr %64, align 4, !tbaa !11
  %643 = fcmp ole float %641, %642
  br i1 %643, label %644, label %653

644:                                              ; preds = %640
  %645 = load ptr, ptr %33, align 8, !tbaa !5
  %646 = load i64, ptr %62, align 8, !tbaa !9
  %647 = load ptr, ptr %52, align 8, !tbaa !5
  %648 = load ptr, ptr %53, align 8, !tbaa !5
  %649 = load i64, ptr %54, align 8, !tbaa !9
  %650 = load float, ptr %64, align 4, !tbaa !11
  %651 = invoke noundef i64 @_ZN7meshoptL15pruneComponentsEPjmPKjPKfmfRf(ptr noundef %645, i64 noundef %646, ptr noundef %647, ptr noundef %648, i64 noundef %649, float noundef %650, ptr noundef nonnull align 4 dereferenceable(4) %55)
          to label %652 unwind label %626

652:                                              ; preds = %644
  store i64 %651, ptr %62, align 8, !tbaa !9
  br label %653

653:                                              ; preds = %652, %640, %636, %631
  call void @llvm.lifetime.end.p0(i64 8, ptr %72) #8
  store i32 0, ptr %68, align 4
  br label %654

654:                                              ; preds = %653, %585
  call void @llvm.lifetime.end.p0(i64 8, ptr %71) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %69) #8
  br label %655

655:                                              ; preds = %654, %527
  call void @llvm.lifetime.end.p0(i64 8, ptr %67) #8
  %656 = load i32, ptr %68, align 4
  switch i32 %656, label %953 [
    i32 0, label %657
    i32 12, label %660
  ]

657:                                              ; preds = %655
  br label %470, !llvm.loop !20

658:                                              ; preds = %626, %586
  call void @llvm.lifetime.end.p0(i64 8, ptr %71) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %69) #8
  br label %659

659:                                              ; preds = %658, %519
  call void @llvm.lifetime.end.p0(i64 8, ptr %67) #8
  br label %929

660:                                              ; preds = %655, %470
  br label %661

661:                                              ; preds = %754, %660
  %662 = load i32, ptr %29, align 4, !tbaa !13
  %663 = and i32 %662, 8
  %664 = icmp ne i32 %663, 0
  br i1 %664, label %665, label %673

665:                                              ; preds = %661
  %666 = load i64, ptr %62, align 8, !tbaa !9
  %667 = load i64, ptr %27, align 8, !tbaa !9
  %668 = icmp ugt i64 %666, %667
  br i1 %668, label %669, label %673

669:                                              ; preds = %665
  %670 = load float, ptr %55, align 4, !tbaa !11
  %671 = load float, ptr %66, align 4, !tbaa !11
  %672 = fcmp ole float %670, %671
  br label %673

673:                                              ; preds = %669, %665, %661
  %674 = phi i1 [ false, %665 ], [ false, %661 ], [ %672, %669 ]
  br i1 %674, label %675, label %755

675:                                              ; preds = %673
  call void @llvm.lifetime.start.p0(i64 4, ptr %73) #8
  %676 = load float, ptr %55, align 4, !tbaa !11
  %677 = fmul float %676, 1.500000e+00
  %678 = load float, ptr %66, align 4, !tbaa !11
  %679 = fcmp olt float %677, %678
  br i1 %679, label %680, label %683

680:                                              ; preds = %675
  %681 = load float, ptr %55, align 4, !tbaa !11
  %682 = fmul float %681, 1.500000e+00
  br label %685

683:                                              ; preds = %675
  %684 = load float, ptr %66, align 4, !tbaa !11
  br label %685

685:                                              ; preds = %683, %680
  %686 = phi float [ %682, %680 ], [ %684, %683 ]
  store float %686, ptr %73, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %74) #8
  store float 0.000000e+00, ptr %74, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %75) #8
  store i64 0, ptr %75, align 8, !tbaa !9
  br label %687

687:                                              ; preds = %712, %685
  %688 = load i64, ptr %75, align 8, !tbaa !9
  %689 = load i64, ptr %54, align 8, !tbaa !9
  %690 = icmp ult i64 %688, %689
  br i1 %690, label %692, label %691

691:                                              ; preds = %687
  store i32 18, ptr %68, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %75) #8
  br label %715

692:                                              ; preds = %687
  %693 = load ptr, ptr %53, align 8, !tbaa !5
  %694 = load i64, ptr %75, align 8, !tbaa !9
  %695 = getelementptr inbounds float, ptr %693, i64 %694
  %696 = load float, ptr %695, align 4, !tbaa !11
  %697 = load float, ptr %74, align 4, !tbaa !11
  %698 = fcmp ogt float %696, %697
  br i1 %698, label %699, label %711

699:                                              ; preds = %692
  %700 = load ptr, ptr %53, align 8, !tbaa !5
  %701 = load i64, ptr %75, align 8, !tbaa !9
  %702 = getelementptr inbounds float, ptr %700, i64 %701
  %703 = load float, ptr %702, align 4, !tbaa !11
  %704 = load float, ptr %73, align 4, !tbaa !11
  %705 = fcmp ole float %703, %704
  br i1 %705, label %706, label %711

706:                                              ; preds = %699
  %707 = load ptr, ptr %53, align 8, !tbaa !5
  %708 = load i64, ptr %75, align 8, !tbaa !9
  %709 = getelementptr inbounds float, ptr %707, i64 %708
  %710 = load float, ptr %709, align 4, !tbaa !11
  store float %710, ptr %74, align 4, !tbaa !11
  br label %711

711:                                              ; preds = %706, %699, %692
  br label %712

712:                                              ; preds = %711
  %713 = load i64, ptr %75, align 8, !tbaa !9
  %714 = add i64 %713, 1
  store i64 %714, ptr %75, align 8, !tbaa !9
  br label %687, !llvm.loop !21

715:                                              ; preds = %691
  call void @llvm.lifetime.start.p0(i64 8, ptr %76) #8
  %716 = load ptr, ptr %33, align 8, !tbaa !5
  %717 = load i64, ptr %62, align 8, !tbaa !9
  %718 = load ptr, ptr %52, align 8, !tbaa !5
  %719 = load ptr, ptr %53, align 8, !tbaa !5
  %720 = load i64, ptr %54, align 8, !tbaa !9
  %721 = load float, ptr %73, align 4, !tbaa !11
  %722 = invoke noundef i64 @_ZN7meshoptL15pruneComponentsEPjmPKjPKfmfRf(ptr noundef %716, i64 noundef %717, ptr noundef %718, ptr noundef %719, i64 noundef %720, float noundef %721, ptr noundef nonnull align 4 dereferenceable(4) %55)
          to label %723 unwind label %728

723:                                              ; preds = %715
  store i64 %722, ptr %76, align 8, !tbaa !9
  %724 = load i64, ptr %76, align 8, !tbaa !9
  %725 = load i64, ptr %62, align 8, !tbaa !9
  %726 = icmp eq i64 %724, %725
  br i1 %726, label %727, label %732

727:                                              ; preds = %723
  store i32 17, ptr %68, align 4
  br label %752

728:                                              ; preds = %715
  %729 = landingpad { ptr, i32 }
          cleanup
  %730 = extractvalue { ptr, i32 } %729, 0
  store ptr %730, ptr %35, align 8
  %731 = extractvalue { ptr, i32 } %729, 1
  store i32 %731, ptr %36, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %76) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %74) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %73) #8
  br label %929

732:                                              ; preds = %723
  %733 = load i64, ptr %76, align 8, !tbaa !9
  store i64 %733, ptr %62, align 8, !tbaa !9
  %734 = load float, ptr %63, align 4, !tbaa !11
  %735 = load float, ptr %74, align 4, !tbaa !11
  %736 = fcmp olt float %734, %735
  br i1 %736, label %737, label %739

737:                                              ; preds = %732
  %738 = load float, ptr %74, align 4, !tbaa !11
  br label %741

739:                                              ; preds = %732
  %740 = load float, ptr %63, align 4, !tbaa !11
  br label %741

741:                                              ; preds = %739, %737
  %742 = phi float [ %738, %737 ], [ %740, %739 ]
  store float %742, ptr %63, align 4, !tbaa !11
  %743 = load float, ptr %64, align 4, !tbaa !11
  %744 = load float, ptr %74, align 4, !tbaa !11
  %745 = fcmp olt float %743, %744
  br i1 %745, label %746, label %748

746:                                              ; preds = %741
  %747 = load float, ptr %74, align 4, !tbaa !11
  br label %750

748:                                              ; preds = %741
  %749 = load float, ptr %64, align 4, !tbaa !11
  br label %750

750:                                              ; preds = %748, %746
  %751 = phi float [ %747, %746 ], [ %749, %748 ]
  store float %751, ptr %64, align 4, !tbaa !11
  store i32 0, ptr %68, align 4
  br label %752

752:                                              ; preds = %750, %727
  call void @llvm.lifetime.end.p0(i64 8, ptr %76) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %74) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %73) #8
  %753 = load i32, ptr %68, align 4
  switch i32 %753, label %953 [
    i32 0, label %754
    i32 17, label %755
  ]

754:                                              ; preds = %752
  br label %661, !llvm.loop !22

755:                                              ; preds = %752, %673
  %756 = load i32, ptr %29, align 4, !tbaa !13
  %757 = and i32 %756, 1073741824
  %758 = icmp ne i32 %757, 0
  br i1 %758, label %759, label %893

759:                                              ; preds = %755
  %760 = load ptr, ptr %34, align 8, !tbaa !5
  %761 = icmp ne ptr %760, null
  br i1 %761, label %893, label %762

762:                                              ; preds = %759
  %763 = load i64, ptr %20, align 8, !tbaa !9
  %764 = icmp ult i64 %763, 268435456
  br i1 %764, label %765, label %766

765:                                              ; preds = %762
  br label %768

766:                                              ; preds = %762
  call void @__assert_fail(ptr noundef @.str.13, ptr noundef @.str.1, i32 noundef 2067, ptr noundef @__PRETTY_FUNCTION__._Z20meshopt_simplifyEdgePjPKjmPKfmmS3_mS3_mPKhmfjPf) #7
  unreachable

767:                                              ; No predecessors!
  br label %768

768:                                              ; preds = %767, %765
  call void @llvm.lifetime.start.p0(i64 8, ptr %77) #8
  store i64 0, ptr %77, align 8, !tbaa !9
  br label %769

769:                                              ; preds = %889, %768
  %770 = load i64, ptr %77, align 8, !tbaa !9
  %771 = load i64, ptr %62, align 8, !tbaa !9
  %772 = icmp ult i64 %770, %771
  br i1 %772, label %774, label %773

773:                                              ; preds = %769
  store i32 21, ptr %68, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %77) #8
  br label %892

774:                                              ; preds = %769
  call void @llvm.lifetime.start.p0(i64 4, ptr %78) #8
  %775 = load ptr, ptr %33, align 8, !tbaa !5
  %776 = load i64, ptr %77, align 8, !tbaa !9
  %777 = add i64 %776, 0
  %778 = getelementptr inbounds i32, ptr %775, i64 %777
  %779 = load i32, ptr %778, align 4, !tbaa !13
  store i32 %779, ptr %78, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %79) #8
  %780 = load ptr, ptr %33, align 8, !tbaa !5
  %781 = load i64, ptr %77, align 8, !tbaa !9
  %782 = add i64 %781, 1
  %783 = getelementptr inbounds i32, ptr %780, i64 %782
  %784 = load i32, ptr %783, align 4, !tbaa !13
  store i32 %784, ptr %79, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %80) #8
  %785 = load ptr, ptr %33, align 8, !tbaa !5
  %786 = load i64, ptr %77, align 8, !tbaa !9
  %787 = add i64 %786, 2
  %788 = getelementptr inbounds i32, ptr %785, i64 %787
  %789 = load i32, ptr %788, align 4, !tbaa !13
  store i32 %789, ptr %80, align 4, !tbaa !13
  %790 = load ptr, ptr %40, align 8, !tbaa !5
  %791 = load i32, ptr %78, align 4, !tbaa !13
  %792 = zext i32 %791 to i64
  %793 = getelementptr inbounds i8, ptr %790, i64 %792
  %794 = load i8, ptr %793, align 1, !tbaa !23
  %795 = zext i8 %794 to i32
  %796 = shl i32 %795, 28
  %797 = load ptr, ptr %41, align 8, !tbaa !5
  %798 = load i32, ptr %78, align 4, !tbaa !13
  %799 = zext i32 %798 to i64
  %800 = getelementptr inbounds i32, ptr %797, i64 %799
  %801 = load i32, ptr %800, align 4, !tbaa !13
  %802 = load i32, ptr %79, align 4, !tbaa !13
  %803 = icmp eq i32 %801, %802
  br i1 %803, label %812, label %804

804:                                              ; preds = %774
  %805 = load ptr, ptr %42, align 8, !tbaa !5
  %806 = load i32, ptr %79, align 4, !tbaa !13
  %807 = zext i32 %806 to i64
  %808 = getelementptr inbounds i32, ptr %805, i64 %807
  %809 = load i32, ptr %808, align 4, !tbaa !13
  %810 = load i32, ptr %78, align 4, !tbaa !13
  %811 = icmp eq i32 %809, %810
  br label %812

812:                                              ; preds = %804, %774
  %813 = phi i1 [ true, %774 ], [ %811, %804 ]
  %814 = zext i1 %813 to i32
  %815 = shl i32 %814, 31
  %816 = or i32 %796, %815
  %817 = load ptr, ptr %33, align 8, !tbaa !5
  %818 = load i64, ptr %77, align 8, !tbaa !9
  %819 = add i64 %818, 0
  %820 = getelementptr inbounds i32, ptr %817, i64 %819
  %821 = load i32, ptr %820, align 4, !tbaa !13
  %822 = or i32 %821, %816
  store i32 %822, ptr %820, align 4, !tbaa !13
  %823 = load ptr, ptr %40, align 8, !tbaa !5
  %824 = load i32, ptr %79, align 4, !tbaa !13
  %825 = zext i32 %824 to i64
  %826 = getelementptr inbounds i8, ptr %823, i64 %825
  %827 = load i8, ptr %826, align 1, !tbaa !23
  %828 = zext i8 %827 to i32
  %829 = shl i32 %828, 28
  %830 = load ptr, ptr %41, align 8, !tbaa !5
  %831 = load i32, ptr %79, align 4, !tbaa !13
  %832 = zext i32 %831 to i64
  %833 = getelementptr inbounds i32, ptr %830, i64 %832
  %834 = load i32, ptr %833, align 4, !tbaa !13
  %835 = load i32, ptr %80, align 4, !tbaa !13
  %836 = icmp eq i32 %834, %835
  br i1 %836, label %845, label %837

837:                                              ; preds = %812
  %838 = load ptr, ptr %42, align 8, !tbaa !5
  %839 = load i32, ptr %80, align 4, !tbaa !13
  %840 = zext i32 %839 to i64
  %841 = getelementptr inbounds i32, ptr %838, i64 %840
  %842 = load i32, ptr %841, align 4, !tbaa !13
  %843 = load i32, ptr %79, align 4, !tbaa !13
  %844 = icmp eq i32 %842, %843
  br label %845

845:                                              ; preds = %837, %812
  %846 = phi i1 [ true, %812 ], [ %844, %837 ]
  %847 = zext i1 %846 to i32
  %848 = shl i32 %847, 31
  %849 = or i32 %829, %848
  %850 = load ptr, ptr %33, align 8, !tbaa !5
  %851 = load i64, ptr %77, align 8, !tbaa !9
  %852 = add i64 %851, 1
  %853 = getelementptr inbounds i32, ptr %850, i64 %852
  %854 = load i32, ptr %853, align 4, !tbaa !13
  %855 = or i32 %854, %849
  store i32 %855, ptr %853, align 4, !tbaa !13
  %856 = load ptr, ptr %40, align 8, !tbaa !5
  %857 = load i32, ptr %80, align 4, !tbaa !13
  %858 = zext i32 %857 to i64
  %859 = getelementptr inbounds i8, ptr %856, i64 %858
  %860 = load i8, ptr %859, align 1, !tbaa !23
  %861 = zext i8 %860 to i32
  %862 = shl i32 %861, 28
  %863 = load ptr, ptr %41, align 8, !tbaa !5
  %864 = load i32, ptr %80, align 4, !tbaa !13
  %865 = zext i32 %864 to i64
  %866 = getelementptr inbounds i32, ptr %863, i64 %865
  %867 = load i32, ptr %866, align 4, !tbaa !13
  %868 = load i32, ptr %78, align 4, !tbaa !13
  %869 = icmp eq i32 %867, %868
  br i1 %869, label %878, label %870

870:                                              ; preds = %845
  %871 = load ptr, ptr %42, align 8, !tbaa !5
  %872 = load i32, ptr %78, align 4, !tbaa !13
  %873 = zext i32 %872 to i64
  %874 = getelementptr inbounds i32, ptr %871, i64 %873
  %875 = load i32, ptr %874, align 4, !tbaa !13
  %876 = load i32, ptr %80, align 4, !tbaa !13
  %877 = icmp eq i32 %875, %876
  br label %878

878:                                              ; preds = %870, %845
  %879 = phi i1 [ true, %845 ], [ %877, %870 ]
  %880 = zext i1 %879 to i32
  %881 = shl i32 %880, 31
  %882 = or i32 %862, %881
  %883 = load ptr, ptr %33, align 8, !tbaa !5
  %884 = load i64, ptr %77, align 8, !tbaa !9
  %885 = add i64 %884, 2
  %886 = getelementptr inbounds i32, ptr %883, i64 %885
  %887 = load i32, ptr %886, align 4, !tbaa !13
  %888 = or i32 %887, %882
  store i32 %888, ptr %886, align 4, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %80) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %79) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %78) #8
  br label %889

889:                                              ; preds = %878
  %890 = load i64, ptr %77, align 8, !tbaa !9
  %891 = add i64 %890, 3
  store i64 %891, ptr %77, align 8, !tbaa !9
  br label %769, !llvm.loop !24

892:                                              ; preds = %773
  br label %893

893:                                              ; preds = %892, %759, %755
  %894 = load ptr, ptr %34, align 8, !tbaa !5
  %895 = icmp ne ptr %894, null
  br i1 %895, label %896, label %918

896:                                              ; preds = %893
  call void @llvm.lifetime.start.p0(i64 8, ptr %81) #8
  store i64 0, ptr %81, align 8, !tbaa !9
  br label %897

897:                                              ; preds = %914, %896
  %898 = load i64, ptr %81, align 8, !tbaa !9
  %899 = load i64, ptr %62, align 8, !tbaa !9
  %900 = icmp ult i64 %898, %899
  br i1 %900, label %902, label %901

901:                                              ; preds = %897
  store i32 24, ptr %68, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %81) #8
  br label %917

902:                                              ; preds = %897
  %903 = load ptr, ptr %34, align 8, !tbaa !5
  %904 = load ptr, ptr %33, align 8, !tbaa !5
  %905 = load i64, ptr %81, align 8, !tbaa !9
  %906 = getelementptr inbounds i32, ptr %904, i64 %905
  %907 = load i32, ptr %906, align 4, !tbaa !13
  %908 = zext i32 %907 to i64
  %909 = getelementptr inbounds i32, ptr %903, i64 %908
  %910 = load i32, ptr %909, align 4, !tbaa !13
  %911 = load ptr, ptr %33, align 8, !tbaa !5
  %912 = load i64, ptr %81, align 8, !tbaa !9
  %913 = getelementptr inbounds i32, ptr %911, i64 %912
  store i32 %910, ptr %913, align 4, !tbaa !13
  br label %914

914:                                              ; preds = %902
  %915 = load i64, ptr %81, align 8, !tbaa !9
  %916 = add i64 %915, 1
  store i64 %916, ptr %81, align 8, !tbaa !9
  br label %897, !llvm.loop !25

917:                                              ; preds = %901
  br label %918

918:                                              ; preds = %917, %893
  %919 = load ptr, ptr %30, align 8, !tbaa !5
  %920 = icmp ne ptr %919, null
  br i1 %920, label %921, label %927

921:                                              ; preds = %918
  %922 = load float, ptr %63, align 4, !tbaa !11
  %923 = call float @sqrtf(float noundef %922) #8
  %924 = load float, ptr %65, align 4, !tbaa !11
  %925 = fmul float %923, %924
  %926 = load ptr, ptr %30, align 8, !tbaa !5
  store float %925, ptr %926, align 4, !tbaa !11
  br label %927

927:                                              ; preds = %921, %918
  %928 = load i64, ptr %62, align 8, !tbaa !9
  store i32 1, ptr %68, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %66) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %65) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %64) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %63) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %62) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %61) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %60) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %59) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %58) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %55) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %54) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %37) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #8
  call void @_ZN17meshopt_AllocatorD2Ev(ptr noundef nonnull align 8 dereferenceable(200) %32) #8
  call void @llvm.lifetime.end.p0(i64 200, ptr %32) #8
  ret i64 %928

929:                                              ; preds = %728, %659, %515
  call void @llvm.lifetime.end.p0(i64 4, ptr %66) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %65) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %64) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %63) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %62) #8
  br label %930

930:                                              ; preds = %929, %511
  call void @llvm.lifetime.end.p0(i64 8, ptr %61) #8
  br label %931

931:                                              ; preds = %930, %507
  call void @llvm.lifetime.end.p0(i64 8, ptr %60) #8
  br label %932

932:                                              ; preds = %931, %503
  call void @llvm.lifetime.end.p0(i64 8, ptr %59) #8
  br label %933

933:                                              ; preds = %932, %499
  call void @llvm.lifetime.end.p0(i64 8, ptr %58) #8
  br label %934

934:                                              ; preds = %933, %495
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #8
  br label %935

935:                                              ; preds = %934, %412
  call void @llvm.lifetime.end.p0(i64 4, ptr %55) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %54) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #8
  br label %936

936:                                              ; preds = %935, %351
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #8
  br label %937

937:                                              ; preds = %936, %347
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #8
  br label %938

938:                                              ; preds = %937, %317
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #8
  br label %939

939:                                              ; preds = %938, %281
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #8
  br label %940

940:                                              ; preds = %939, %277
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #8
  br label %941

941:                                              ; preds = %940, %273
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #8
  br label %942

942:                                              ; preds = %941, %269
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #8
  br label %943

943:                                              ; preds = %942, %265
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #8
  br label %944

944:                                              ; preds = %943, %261
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #8
  br label %945

945:                                              ; preds = %944, %257
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #8
  br label %946

946:                                              ; preds = %945, %253
  call void @llvm.lifetime.end.p0(i64 16, ptr %37) #8
  br label %947

947:                                              ; preds = %946, %191
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #8
  call void @_ZN17meshopt_AllocatorD2Ev(ptr noundef nonnull align 8 dereferenceable(200) %32) #8
  call void @llvm.lifetime.end.p0(i64 200, ptr %32) #8
  br label %948

948:                                              ; preds = %947
  %949 = load ptr, ptr %35, align 8
  %950 = load i32, ptr %36, align 4
  %951 = insertvalue { ptr, i32 } poison, ptr %949, 0
  %952 = insertvalue { ptr, i32 } %951, i32 %950, 1
  resume { ptr, i32 } %952

953:                                              ; preds = %752, %655
  unreachable
}

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN17meshopt_AllocatorC2Ev(ptr noundef nonnull align 8 dereferenceable(200)) unnamed_addr #3 align 2

; 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

; Function Attrs: mustprogress uwtable
declare hidden noundef ptr @_ZN7meshoptL16buildSparseRemapEPjmmPmR17meshopt_Allocator(ptr noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(200)) #0

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN7meshoptL20prepareEdgeAdjacencyERNS_13EdgeAdjacencyEmmR17meshopt_Allocator(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i64 noundef, ptr noundef nonnull align 8 dereferenceable(200)) #0

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN7meshoptL19updateEdgeAdjacencyERNS_13EdgeAdjacencyEPKjmmS3_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, i64 noundef, i64 noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN17meshopt_Allocator8allocateIjEEPT_m(ptr noundef nonnull align 8 dereferenceable(200), i64 noundef) #0 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN7meshoptL18buildPositionRemapEPjS0_PKfmmPKjR17meshopt_Allocator(ptr noundef, ptr noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(200)) #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN17meshopt_Allocator8allocateIhEEPT_m(ptr noundef nonnull align 8 dereferenceable(200), i64 noundef) #0 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN7meshoptL16classifyVerticesEPhPjS1_mRKNS_13EdgeAdjacencyEPKjS6_PKhS6_j(ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN17meshopt_Allocator8allocateIN7meshopt7Vector3EEEPT_m(ptr noundef nonnull align 8 dereferenceable(200), i64 noundef) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef float @_ZN7meshoptL16rescalePositionsEPNS_7Vector3EPKfmmPKj(ptr noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN17meshopt_Allocator8allocateIfEEPT_m(ptr noundef nonnull align 8 dereferenceable(200), i64 noundef) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN7meshoptL17rescaleAttributesEPfPKfmmS2_mPKjS4_(ptr noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN17meshopt_Allocator8allocateIN7meshopt7QuadricEEEPT_m(ptr noundef nonnull align 8 dereferenceable(200), i64 noundef) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN17meshopt_Allocator8allocateIN7meshopt11QuadricGradEEEPT_m(ptr noundef nonnull align 8 dereferenceable(200), i64 noundef) #0 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN7meshoptL16fillFaceQuadricsEPNS_7QuadricEPKjmPKNS_7Vector3ES3_(ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef) #0

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN7meshoptL16fillEdgeQuadricsEPNS_7QuadricEPKjmPKNS_7Vector3ES3_PKhS3_S3_(ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN7meshoptL21fillAttributeQuadricsEPNS_7QuadricEPNS_11QuadricGradEPKjmPKNS_7Vector3EPKfm(ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, i64 noundef) #0

; Function Attrs: mustprogress uwtable
declare hidden noundef i64 @_ZN7meshoptL15buildComponentsEPjmPKjmS2_(ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef) #0

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN7meshoptL17measureComponentsEPfmPKjPKNS_7Vector3Em(ptr noundef, i64 noundef, ptr noundef, ptr noundef, i64 noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i64 @_ZN7meshoptL18boundEdgeCollapsesERKNS_13EdgeAdjacencyEmmPh(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i64 noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN17meshopt_Allocator8allocateIN7meshopt8CollapseEEEPT_m(ptr noundef nonnull align 8 dereferenceable(200), i64 noundef) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i64 @_ZN7meshoptL17pickEdgeCollapsesEPNS_8CollapseEmPKjmS3_PKhS3_S3_(ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN7meshoptL17rankEdgeCollapsesEPNS_8CollapseEmPKNS_7Vector3EPKfPKNS_7QuadricES9_PKNS_11QuadricGradEmPKjSE_PKhSE_SE_(ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN7meshoptL17sortEdgeCollapsesEPjPKNS_8CollapseEm(ptr noundef, ptr noundef, i64 noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i64 @_ZN7meshoptL20performEdgeCollapsesEPjPhPKNS_8CollapseEmPKjS6_S6_PKhS6_S6_PKNS_7Vector3ERKNS_13EdgeAdjacencyEmfRf(ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, float noundef, ptr noundef nonnull align 4 dereferenceable(4)) #0

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN7meshoptL14updateQuadricsEPKjmPNS_7QuadricES3_PNS_11QuadricGradEmPKNS_7Vector3ES1_Rf(ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef nonnull align 4 dereferenceable(4)) #0

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN7meshoptL14remapEdgeLoopsEPjmPKj(ptr noundef, i64 noundef, ptr noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i64 @_ZN7meshoptL16remapIndexBufferEPjmPKj(ptr noundef, i64 noundef, ptr noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i64 @_ZN7meshoptL15pruneComponentsEPjmPKjPKfmfRf(ptr noundef, i64 noundef, ptr noundef, ptr noundef, i64 noundef, float noundef, ptr noundef nonnull align 4 dereferenceable(4)) #3

; Function Attrs: nounwind
declare float @sqrtf(float noundef) #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN17meshopt_AllocatorD2Ev(ptr noundef nonnull align 8 dereferenceable(200)) unnamed_addr #3 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 = { 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { noreturn nounwind }
attributes #8 = { 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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}
!19 = distinct !{!19, !16}
!20 = distinct !{!20, !16}
!21 = distinct !{!21, !16}
!22 = distinct !{!22, !16}
!23 = !{!7, !7, i64 0}
!24 = distinct !{!24, !16}
!25 = distinct !{!25, !16}


; 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.meshopt_Allocator = type { [24 x ptr], i64 }
%"struct.meshopt::EdgeAdjacency" = type { ptr, ptr }

@.str = external hidden unnamed_addr constant [21 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [71 x i8], align 1
@__PRETTY_FUNCTION__._Z20meshopt_simplifyEdgePjPKjmPKfmmS3_mS3_mPKhmfjPf = external hidden unnamed_addr constant [212 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [160 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [95 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [44 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef i64 @_Z20meshopt_simplifyEdgePjPKjmPKfmmS3_mS3_mPKhmfjPf(ptr noundef %0, ptr noundef readonly %1, i64 noundef %2, ptr noundef %3, i64 noundef %4, i64 noundef %5, ptr noundef %6, i64 noundef %7, ptr noundef %8, i64 noundef %9, ptr noundef %10, i64 noundef %11, float noundef %12, i32 noundef %13, ptr noundef writeonly %14) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %16 = alloca i64, align 8
  %17 = alloca %class.meshopt_Allocator, align 8
  %18 = alloca %"struct.meshopt::EdgeAdjacency", align 8
  %19 = alloca [32 x i32], align 16
  %20 = alloca float, align 4
  %21 = alloca float, align 4
  %22 = alloca float, align 4
  store i64 %4, ptr %16, align 8, !tbaa !5
  %23 = urem i64 %2, 3
  %24 = icmp eq i64 %23, 0
  br i1 %24, label %26, label %25

25:                                               ; preds = %15
  tail call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 1848, ptr noundef nonnull @__PRETTY_FUNCTION__._Z20meshopt_simplifyEdgePjPKjmPKfmmS3_mS3_mPKhmfjPf) #7
  unreachable

26:                                               ; preds = %15
  %27 = add i64 %5, -12
  %28 = icmp ult i64 %27, 245
  br i1 %28, label %30, label %29

29:                                               ; preds = %26
  tail call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 1849, ptr noundef nonnull @__PRETTY_FUNCTION__._Z20meshopt_simplifyEdgePjPKjmPKfmmS3_mS3_mPKhmfjPf) #7
  unreachable

30:                                               ; preds = %26
  %31 = and i64 %5, 3
  %32 = icmp eq i64 %31, 0
  br i1 %32, label %34, label %33

33:                                               ; preds = %30
  tail call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, i32 noundef 1850, ptr noundef nonnull @__PRETTY_FUNCTION__._Z20meshopt_simplifyEdgePjPKjmPKfmmS3_mS3_mPKhmfjPf) #7
  unreachable

34:                                               ; preds = %30
  %.not = icmp ugt i64 %11, %2
  br i1 %.not, label %35, label %36

35:                                               ; preds = %34
  tail call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 1851, ptr noundef nonnull @__PRETTY_FUNCTION__._Z20meshopt_simplifyEdgePjPKjmPKfmmS3_mS3_mPKhmfjPf) #7
  unreachable

36:                                               ; preds = %34
  %37 = fcmp ult float %12, 0.000000e+00
  br i1 %37, label %38, label %39

38:                                               ; preds = %36
  tail call void @__assert_fail(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.1, i32 noundef 1852, ptr noundef nonnull @__PRETTY_FUNCTION__._Z20meshopt_simplifyEdgePjPKjmPKfmmS3_mS3_mPKhmfjPf) #7
  unreachable

39:                                               ; preds = %36
  %40 = and i32 %13, -1073741840
  %41 = icmp eq i32 %40, 0
  br i1 %41, label %43, label %42

42:                                               ; preds = %39
  tail call void @__assert_fail(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.1, i32 noundef 1853, ptr noundef nonnull @__PRETTY_FUNCTION__._Z20meshopt_simplifyEdgePjPKjmPKfmmS3_mS3_mPKhmfjPf) #7
  unreachable

43:                                               ; preds = %39
  %44 = shl i64 %9, 2
  %45 = icmp ule i64 %44, %7
  %46 = icmp ult i64 %7, 257
  %47 = and i1 %46, %45
  br i1 %47, label %49, label %48

48:                                               ; preds = %43
  tail call void @__assert_fail(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.1, i32 noundef 1854, ptr noundef nonnull @__PRETTY_FUNCTION__._Z20meshopt_simplifyEdgePjPKjmPKfmmS3_mS3_mPKhmfjPf) #7
  unreachable

49:                                               ; preds = %43
  %50 = and i64 %7, 3
  %51 = icmp eq i64 %50, 0
  br i1 %51, label %53, label %52

52:                                               ; preds = %49
  tail call void @__assert_fail(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.1, i32 noundef 1855, ptr noundef nonnull @__PRETTY_FUNCTION__._Z20meshopt_simplifyEdgePjPKjmPKfmmS3_mS3_mPKhmfjPf) #7
  unreachable

53:                                               ; preds = %49
  %54 = icmp ult i64 %9, 33
  br i1 %54, label %.preheader404, label %55

.preheader404:                                    ; preds = %53
  %.not449 = icmp eq i64 %9, 0
  br i1 %.not449, label %._crit_edge, label %.lr.ph

55:                                               ; preds = %53
  tail call void @__assert_fail(ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.1, i32 noundef 1856, ptr noundef nonnull @__PRETTY_FUNCTION__._Z20meshopt_simplifyEdgePjPKjmPKfmmS3_mS3_mPKhmfjPf) #7
  unreachable

56:                                               ; preds = %.lr.ph
  %57 = add nuw i64 %.0287409, 1
  %exitcond.not = icmp eq i64 %57, %9
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !9

._crit_edge:                                      ; preds = %56, %.preheader404
  call void @llvm.lifetime.start.p0(i64 200, ptr nonnull %17) #8
  call void @_ZN17meshopt_AllocatorC2Ev(ptr noundef nonnull align 8 dereferenceable(200) %17)
  %.not355 = icmp eq ptr %0, %1
  br i1 %.not355, label %64, label %62

.lr.ph:                                           ; preds = %.preheader404, %56
  %.0287409 = phi i64 [ %57, %56 ], [ 0, %.preheader404 ]
  %58 = getelementptr inbounds float, ptr %8, i64 %.0287409
  %59 = load float, ptr %58, align 4, !tbaa !11
  %60 = fcmp ult float %59, 0.000000e+00
  br i1 %60, label %61, label %56

61:                                               ; preds = %.lr.ph
  tail call void @__assert_fail(ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.1, i32 noundef 1858, ptr noundef nonnull @__PRETTY_FUNCTION__._Z20meshopt_simplifyEdgePjPKjmPKfmmS3_mS3_mPKhmfjPf) #7
  unreachable

62:                                               ; preds = %._crit_edge
  %63 = shl i64 %2, 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %0, ptr align 4 %1, i64 %63, i1 false)
  br label %64

64:                                               ; preds = %62, %._crit_edge
  %65 = and i32 %13, 2
  %.not356 = icmp eq i32 %65, 0
  br i1 %.not356, label %71, label %66

66:                                               ; preds = %64
  %67 = load i64, ptr %16, align 8, !tbaa !5
  %68 = invoke noundef ptr @_ZN7meshoptL16buildSparseRemapEPjmmPmR17meshopt_Allocator(ptr noundef %0, i64 noundef %2, i64 noundef %67, ptr noundef nonnull %16, ptr noundef nonnull align 8 dereferenceable(200) %17)
          to label %71 unwind label %69

69:                                               ; preds = %66
  %70 = landingpad { ptr, i32 }
          cleanup
  br label %403

71:                                               ; preds = %66, %64
  %.0288 = phi ptr [ null, %64 ], [ %68, %66 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %18, i8 0, i64 16, i1 false)
  %72 = load i64, ptr %16, align 8, !tbaa !5
  invoke void @_ZN7meshoptL20prepareEdgeAdjacencyERNS_13EdgeAdjacencyEmmR17meshopt_Allocator(ptr noundef nonnull align 8 dereferenceable(16) %18, i64 noundef %2, i64 noundef %72, ptr noundef nonnull align 8 dereferenceable(200) %17)
          to label %73 unwind label %111

73:                                               ; preds = %71
  %74 = load i64, ptr %16, align 8, !tbaa !5
  call void @_ZN7meshoptL19updateEdgeAdjacencyERNS_13EdgeAdjacencyEPKjmmS3_(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef %0, i64 noundef %2, i64 noundef %74, ptr noundef null)
  %75 = load i64, ptr %16, align 8, !tbaa !5
  %76 = invoke noundef ptr @_ZN17meshopt_Allocator8allocateIjEEPT_m(ptr noundef nonnull align 8 dereferenceable(200) %17, i64 noundef %75)
          to label %77 unwind label %113

77:                                               ; preds = %73
  %78 = load i64, ptr %16, align 8, !tbaa !5
  %79 = invoke noundef ptr @_ZN17meshopt_Allocator8allocateIjEEPT_m(ptr noundef nonnull align 8 dereferenceable(200) %17, i64 noundef %78)
          to label %80 unwind label %115

80:                                               ; preds = %77
  %81 = load i64, ptr %16, align 8, !tbaa !5
  invoke void @_ZN7meshoptL18buildPositionRemapEPjS0_PKfmmPKjR17meshopt_Allocator(ptr noundef %76, ptr noundef %79, ptr noundef %3, i64 noundef %81, i64 noundef %5, ptr noundef %.0288, ptr noundef nonnull align 8 dereferenceable(200) %17)
          to label %82 unwind label %115

82:                                               ; preds = %80
  %83 = load i64, ptr %16, align 8, !tbaa !5
  %84 = invoke noundef ptr @_ZN17meshopt_Allocator8allocateIhEEPT_m(ptr noundef nonnull align 8 dereferenceable(200) %17, i64 noundef %83)
          to label %85 unwind label %117

85:                                               ; preds = %82
  %86 = load i64, ptr %16, align 8, !tbaa !5
  %87 = invoke noundef ptr @_ZN17meshopt_Allocator8allocateIjEEPT_m(ptr noundef nonnull align 8 dereferenceable(200) %17, i64 noundef %86)
          to label %88 unwind label %119

88:                                               ; preds = %85
  %89 = load i64, ptr %16, align 8, !tbaa !5
  %90 = invoke noundef ptr @_ZN17meshopt_Allocator8allocateIjEEPT_m(ptr noundef nonnull align 8 dereferenceable(200) %17, i64 noundef %89)
          to label %91 unwind label %121

91:                                               ; preds = %88
  %92 = load i64, ptr %16, align 8, !tbaa !5
  invoke void @_ZN7meshoptL16classifyVerticesEPhPjS1_mRKNS_13EdgeAdjacencyEPKjS6_PKhS6_j(ptr noundef %84, ptr noundef %87, ptr noundef %90, i64 noundef %92, ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef %76, ptr noundef %79, ptr noundef %10, ptr noundef %.0288, i32 noundef %13)
          to label %93 unwind label %121

93:                                               ; preds = %91
  %94 = load i64, ptr %16, align 8, !tbaa !5
  %95 = invoke noundef ptr @_ZN17meshopt_Allocator8allocateIN7meshopt7Vector3EEEPT_m(ptr noundef nonnull align 8 dereferenceable(200) %17, i64 noundef %94)
          to label %96 unwind label %123

96:                                               ; preds = %93
  %97 = load i64, ptr %16, align 8, !tbaa !5
  %98 = call noundef float @_ZN7meshoptL16rescalePositionsEPNS_7Vector3EPKfmmPKj(ptr noundef %95, ptr noundef %3, i64 noundef %97, i64 noundef %5, ptr noundef %.0288)
  br i1 %.not449, label %148, label %99

99:                                               ; preds = %96
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %19) #8
  %xtraiter = and i64 %9, 1
  %100 = icmp eq i64 %9, 1
  br i1 %100, label %.unr-lcssa, label %.new

.new:                                             ; preds = %99
  %unroll_iter = and i64 %9, 62
  br label %125

.unr-lcssa:                                       ; preds = %142, %99
  %.1313.lcssa.ph = phi i64 [ poison, %99 ], [ %.1313.1, %142 ]
  %.0312411.unr = phi i64 [ 0, %99 ], [ %.1313.1, %142 ]
  %.0315410.unr = phi i64 [ 0, %99 ], [ %143, %142 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.epilog-lcssa, label %.epil.preheader

.epil.preheader:                                  ; preds = %.unr-lcssa
  %101 = getelementptr inbounds float, ptr %8, i64 %.0315410.unr
  %102 = load float, ptr %101, align 4, !tbaa !11
  %103 = fcmp ogt float %102, 0.000000e+00
  br i1 %103, label %104, label %.epilog-lcssa

104:                                              ; preds = %.epil.preheader
  %105 = trunc nuw nsw i64 %.0315410.unr to i32
  %106 = add i64 %.0312411.unr, 1
  %107 = getelementptr inbounds [32 x i32], ptr %19, i64 0, i64 %.0312411.unr
  store i32 %105, ptr %107, align 4, !tbaa !13
  br label %.epilog-lcssa

.epilog-lcssa:                                    ; preds = %.epil.preheader, %104, %.unr-lcssa
  %.1313.lcssa = phi i64 [ %.1313.lcssa.ph, %.unr-lcssa ], [ %106, %104 ], [ %.0312411.unr, %.epil.preheader ]
  %108 = load i64, ptr %16, align 8, !tbaa !5
  %109 = mul i64 %108, %.1313.lcssa
  %110 = invoke noundef ptr @_ZN17meshopt_Allocator8allocateIfEEPT_m(ptr noundef nonnull align 8 dereferenceable(200) %17, i64 noundef %109)
          to label %144 unwind label %146

111:                                              ; preds = %71
  %112 = landingpad { ptr, i32 }
          cleanup
  br label %402

113:                                              ; preds = %73
  %114 = landingpad { ptr, i32 }
          cleanup
  br label %402

115:                                              ; preds = %80, %77
  %116 = landingpad { ptr, i32 }
          cleanup
  br label %402

117:                                              ; preds = %82
  %118 = landingpad { ptr, i32 }
          cleanup
  br label %402

119:                                              ; preds = %85
  %120 = landingpad { ptr, i32 }
          cleanup
  br label %402

121:                                              ; preds = %91, %88
  %122 = landingpad { ptr, i32 }
          cleanup
  br label %402

123:                                              ; preds = %93
  %124 = landingpad { ptr, i32 }
          cleanup
  br label %402

125:                                              ; preds = %142, %.new
  %.0312411 = phi i64 [ 0, %.new ], [ %.1313.1, %142 ]
  %.0315410 = phi i64 [ 0, %.new ], [ %143, %142 ]
  %niter = phi i64 [ 0, %.new ], [ %niter.next.1, %142 ]
  %126 = getelementptr inbounds float, ptr %8, i64 %.0315410
  %127 = load float, ptr %126, align 4, !tbaa !11
  %128 = fcmp ogt float %127, 0.000000e+00
  br i1 %128, label %129, label %133

129:                                              ; preds = %125
  %130 = trunc nuw nsw i64 %.0315410 to i32
  %131 = add i64 %.0312411, 1
  %132 = getelementptr inbounds [32 x i32], ptr %19, i64 0, i64 %.0312411
  store i32 %130, ptr %132, align 4, !tbaa !13
  br label %133

133:                                              ; preds = %125, %129
  %.1313 = phi i64 [ %131, %129 ], [ %.0312411, %125 ]
  %134 = or disjoint i64 %.0315410, 1
  %135 = getelementptr inbounds float, ptr %8, i64 %134
  %136 = load float, ptr %135, align 4, !tbaa !11
  %137 = fcmp ogt float %136, 0.000000e+00
  br i1 %137, label %138, label %142

138:                                              ; preds = %133
  %139 = trunc nuw nsw i64 %134 to i32
  %140 = add i64 %.1313, 1
  %141 = getelementptr inbounds [32 x i32], ptr %19, i64 0, i64 %.1313
  store i32 %139, ptr %141, align 4, !tbaa !13
  br label %142

142:                                              ; preds = %138, %133
  %.1313.1 = phi i64 [ %140, %138 ], [ %.1313, %133 ]
  %143 = add nuw nsw i64 %.0315410, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %.unr-lcssa, label %125, !llvm.loop !15

144:                                              ; preds = %.epilog-lcssa
  %145 = load i64, ptr %16, align 8, !tbaa !5
  call void @_ZN7meshoptL17rescaleAttributesEPfPKfmmS2_mPKjS4_(ptr noundef %110, ptr noundef %6, i64 noundef %145, i64 noundef %7, ptr noundef nonnull %8, i64 noundef %.1313.lcssa, ptr noundef nonnull %19, ptr noundef %.0288)
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %19) #8
  br label %148

146:                                              ; preds = %.epilog-lcssa
  %147 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %19) #8
  br label %402

148:                                              ; preds = %144, %96
  %.0311 = phi ptr [ %110, %144 ], [ null, %96 ]
  %.0286 = phi i64 [ %.1313.lcssa, %144 ], [ 0, %96 ]
  %149 = load i64, ptr %16, align 8, !tbaa !5
  %150 = invoke noundef ptr @_ZN17meshopt_Allocator8allocateIN7meshopt7QuadricEEEPT_m(ptr noundef nonnull align 8 dereferenceable(200) %17, i64 noundef %149)
          to label %151 unwind label %167

151:                                              ; preds = %148
  %152 = load i64, ptr %16, align 8, !tbaa !5
  %153 = mul i64 %152, 44
  call void @llvm.memset.p0.i64(ptr align 4 %150, i8 0, i64 %153, i1 false)
  %.not358 = icmp eq i64 %.0286, 0
  br i1 %.not358, label %171, label %154

154:                                              ; preds = %151
  %155 = load i64, ptr %16, align 8, !tbaa !5
  %156 = invoke noundef ptr @_ZN17meshopt_Allocator8allocateIN7meshopt7QuadricEEEPT_m(ptr noundef nonnull align 8 dereferenceable(200) %17, i64 noundef %155)
          to label %157 unwind label %169

157:                                              ; preds = %154
  %158 = load i64, ptr %16, align 8, !tbaa !5
  %159 = mul i64 %158, 44
  call void @llvm.memset.p0.i64(ptr align 4 %156, i8 0, i64 %159, i1 false)
  %160 = load i64, ptr %16, align 8, !tbaa !5
  %161 = mul i64 %160, %.0286
  %162 = invoke noundef ptr @_ZN17meshopt_Allocator8allocateIN7meshopt11QuadricGradEEEPT_m(ptr noundef nonnull align 8 dereferenceable(200) %17, i64 noundef %161)
          to label %163 unwind label %169

163:                                              ; preds = %157
  %164 = load i64, ptr %16, align 8, !tbaa !5
  %165 = shl i64 %.0286, 4
  %166 = mul i64 %165, %164
  call void @llvm.memset.p0.i64(ptr align 4 %162, i8 0, i64 %166, i1 false)
  br label %171

167:                                              ; preds = %148
  %168 = landingpad { ptr, i32 }
          cleanup
  br label %402

169:                                              ; preds = %174, %172, %171, %157, %154
  %170 = landingpad { ptr, i32 }
          cleanup
  br label %402

171:                                              ; preds = %163, %151
  %.0320 = phi ptr [ %162, %163 ], [ null, %151 ]
  %.0319 = phi ptr [ %156, %163 ], [ null, %151 ]
  invoke void @_ZN7meshoptL16fillFaceQuadricsEPNS_7QuadricEPKjmPKNS_7Vector3ES3_(ptr noundef %150, ptr noundef %0, i64 noundef %2, ptr noundef %95, ptr noundef %76)
          to label %172 unwind label %169

172:                                              ; preds = %171
  invoke void @_ZN7meshoptL16fillEdgeQuadricsEPNS_7QuadricEPKjmPKNS_7Vector3ES3_PKhS3_S3_(ptr noundef %150, ptr noundef %0, i64 noundef %2, ptr noundef %95, ptr noundef %76, ptr noundef %84, ptr noundef %87, ptr noundef %90)
          to label %173 unwind label %169

173:                                              ; preds = %172
  br i1 %.not358, label %175, label %174

174:                                              ; preds = %173
  invoke void @_ZN7meshoptL21fillAttributeQuadricsEPNS_7QuadricEPNS_11QuadricGradEPKjmPKNS_7Vector3EPKfm(ptr noundef %.0319, ptr noundef %.0320, ptr noundef %0, i64 noundef %2, ptr noundef %95, ptr noundef %.0311, i64 noundef %.0286)
          to label %175 unwind label %169

175:                                              ; preds = %174, %173
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %20) #8
  store float 0.000000e+00, ptr %20, align 4, !tbaa !11
  %176 = and i32 %13, 8
  %.not359 = icmp ne i32 %176, 0
  br i1 %.not359, label %177, label %.loopexit403

177:                                              ; preds = %175
  %178 = load i64, ptr %16, align 8, !tbaa !5
  %179 = invoke noundef ptr @_ZN17meshopt_Allocator8allocateIjEEPT_m(ptr noundef nonnull align 8 dereferenceable(200) %17, i64 noundef %178)
          to label %180 unwind label %189

180:                                              ; preds = %177
  %181 = load i64, ptr %16, align 8, !tbaa !5
  %182 = invoke noundef i64 @_ZN7meshoptL15buildComponentsEPjmPKjmS2_(ptr noundef %179, i64 noundef %181, ptr noundef %0, i64 noundef %2, ptr noundef %76)
          to label %183 unwind label %189

183:                                              ; preds = %180
  %184 = shl i64 %182, 2
  %185 = invoke noundef ptr @_ZN17meshopt_Allocator8allocateIfEEPT_m(ptr noundef nonnull align 8 dereferenceable(200) %17, i64 noundef %184)
          to label %186 unwind label %189

186:                                              ; preds = %183
  %187 = load i64, ptr %16, align 8, !tbaa !5
  call void @_ZN7meshoptL17measureComponentsEPfmPKjPKNS_7Vector3Em(ptr noundef %185, i64 noundef %182, ptr noundef %179, ptr noundef %95, i64 noundef %187)
  store float 0x47EFFFFFE0000000, ptr %20, align 4, !tbaa !11
  %.not450 = icmp eq i64 %182, 0
  br i1 %.not450, label %.loopexit403, label %.lr.ph416.preheader

.lr.ph416.preheader:                              ; preds = %186
  %xtraiter467 = and i64 %182, 1
  %188 = icmp eq i64 %182, 1
  br i1 %188, label %.loopexit403.loopexit.unr-lcssa, label %.lr.ph416.preheader.new

.lr.ph416.preheader.new:                          ; preds = %.lr.ph416.preheader
  %unroll_iter469 = and i64 %182, -2
  br label %.lr.ph416

189:                                              ; preds = %183, %180, %177
  %190 = landingpad { ptr, i32 }
          cleanup
  br label %401

.lr.ph416:                                        ; preds = %.lr.ph416, %.lr.ph416.preheader.new
  %.0332414 = phi i64 [ 0, %.lr.ph416.preheader.new ], [ %198, %.lr.ph416 ]
  %.412413 = phi float [ 0x47EFFFFFE0000000, %.lr.ph416.preheader.new ], [ %..1, %.lr.ph416 ]
  %niter470 = phi i64 [ 0, %.lr.ph416.preheader.new ], [ %niter470.next.1, %.lr.ph416 ]
  %191 = getelementptr inbounds float, ptr %185, i64 %.0332414
  %192 = load float, ptr %191, align 4, !tbaa !11
  %193 = fcmp ogt float %.412413, %192
  %. = select i1 %193, float %192, float %.412413
  store float %., ptr %20, align 4, !tbaa !11
  %194 = or disjoint i64 %.0332414, 1
  %195 = getelementptr inbounds float, ptr %185, i64 %194
  %196 = load float, ptr %195, align 4, !tbaa !11
  %197 = fcmp ogt float %., %196
  %..1 = select i1 %197, float %196, float %.
  store float %..1, ptr %20, align 4, !tbaa !11
  %198 = add nuw i64 %.0332414, 2
  %niter470.next.1 = add i64 %niter470, 2
  %niter470.ncmp.1 = icmp eq i64 %niter470.next.1, %unroll_iter469
  br i1 %niter470.ncmp.1, label %.loopexit403.loopexit.unr-lcssa, label %.lr.ph416, !llvm.loop !16

.loopexit403.loopexit.unr-lcssa:                  ; preds = %.lr.ph416, %.lr.ph416.preheader
  %.0332414.unr = phi i64 [ 0, %.lr.ph416.preheader ], [ %198, %.lr.ph416 ]
  %.412413.unr = phi float [ 0x47EFFFFFE0000000, %.lr.ph416.preheader ], [ %..1, %.lr.ph416 ]
  %lcmp.mod468.not = icmp eq i64 %xtraiter467, 0
  br i1 %lcmp.mod468.not, label %.loopexit403, label %.lr.ph416.epil

.lr.ph416.epil:                                   ; preds = %.loopexit403.loopexit.unr-lcssa
  %199 = getelementptr inbounds float, ptr %185, i64 %.0332414.unr
  %200 = load float, ptr %199, align 4, !tbaa !11
  %201 = fcmp ogt float %.412413.unr, %200
  %..epil = select i1 %201, float %200, float %.412413.unr
  store float %..epil, ptr %20, align 4, !tbaa !11
  br label %.loopexit403

.loopexit403:                                     ; preds = %.lr.ph416.epil, %.loopexit403.loopexit.unr-lcssa, %186, %175
  %.0331 = phi i64 [ 0, %175 ], [ 0, %186 ], [ %182, %.loopexit403.loopexit.unr-lcssa ], [ %182, %.lr.ph416.epil ]
  %.0330 = phi ptr [ null, %175 ], [ %185, %186 ], [ %185, %.loopexit403.loopexit.unr-lcssa ], [ %185, %.lr.ph416.epil ]
  %.0321 = phi ptr [ null, %175 ], [ %179, %186 ], [ %179, %.loopexit403.loopexit.unr-lcssa ], [ %179, %.lr.ph416.epil ]
  %202 = load i64, ptr %16, align 8, !tbaa !5
  %203 = call noundef i64 @_ZN7meshoptL18boundEdgeCollapsesERKNS_13EdgeAdjacencyEmmPh(ptr noundef nonnull align 8 dereferenceable(16) %18, i64 noundef %202, i64 noundef %2, ptr noundef %84)
  %204 = invoke noundef ptr @_ZN17meshopt_Allocator8allocateIN7meshopt8CollapseEEEPT_m(ptr noundef nonnull align 8 dereferenceable(200) %17, i64 noundef %203)
          to label %205 unwind label %223

205:                                              ; preds = %.loopexit403
  %206 = invoke noundef ptr @_ZN17meshopt_Allocator8allocateIjEEPT_m(ptr noundef nonnull align 8 dereferenceable(200) %17, i64 noundef %203)
          to label %207 unwind label %225

207:                                              ; preds = %205
  %208 = load i64, ptr %16, align 8, !tbaa !5
  %209 = invoke noundef ptr @_ZN17meshopt_Allocator8allocateIjEEPT_m(ptr noundef nonnull align 8 dereferenceable(200) %17, i64 noundef %208)
          to label %210 unwind label %227

210:                                              ; preds = %207
  %211 = load i64, ptr %16, align 8, !tbaa !5
  %212 = invoke noundef ptr @_ZN17meshopt_Allocator8allocateIhEEPT_m(ptr noundef nonnull align 8 dereferenceable(200) %17, i64 noundef %211)
          to label %213 unwind label %229

213:                                              ; preds = %210
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %21) #8
  store float 0.000000e+00, ptr %21, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %22) #8
  store float 0.000000e+00, ptr %22, align 4, !tbaa !11
  %214 = and i32 %13, 4
  %.not360 = icmp eq i32 %214, 0
  %215 = select i1 %.not360, float 1.000000e+00, float %98
  %216 = fmul float %12, %12
  %217 = fmul float %215, %215
  %218 = fdiv float %216, %217
  %219 = icmp ugt i64 %2, %11
  br i1 %219, label %.lr.ph423, label %.thread

.lr.ph423:                                        ; preds = %213, %270
  %.0322421 = phi i64 [ %.3325, %270 ], [ %2, %213 ]
  %220 = load i64, ptr %16, align 8, !tbaa !5
  call void @_ZN7meshoptL19updateEdgeAdjacencyERNS_13EdgeAdjacencyEPKjmmS3_(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef %0, i64 noundef %.0322421, i64 noundef %220, ptr noundef %76)
  %221 = call noundef i64 @_ZN7meshoptL17pickEdgeCollapsesEPNS_8CollapseEmPKjmS3_PKhS3_S3_(ptr noundef %204, i64 noundef %203, ptr noundef %0, i64 noundef %.0322421, ptr noundef %76, ptr noundef %84, ptr noundef %87, ptr noundef %90)
  %.not361 = icmp ugt i64 %221, %203
  br i1 %.not361, label %222, label %233

222:                                              ; preds = %.lr.ph423
  call void @__assert_fail(ptr noundef nonnull @.str.11, ptr noundef nonnull @.str.1, i32 noundef 1992, ptr noundef nonnull @__PRETTY_FUNCTION__._Z20meshopt_simplifyEdgePjPKjmPKfmmS3_mS3_mPKhmfjPf) #7
  unreachable

223:                                              ; preds = %.loopexit403
  %224 = landingpad { ptr, i32 }
          cleanup
  br label %401

225:                                              ; preds = %205
  %226 = landingpad { ptr, i32 }
          cleanup
  br label %401

227:                                              ; preds = %207
  %228 = landingpad { ptr, i32 }
          cleanup
  br label %401

229:                                              ; preds = %210
  %230 = landingpad { ptr, i32 }
          cleanup
  br label %401

231:                                              ; preds = %235
  %232 = landingpad { ptr, i32 }
          cleanup
  br label %272

233:                                              ; preds = %.lr.ph423
  %234 = icmp eq i64 %221, 0
  br i1 %234, label %.thread, label %235

235:                                              ; preds = %233
  invoke void @_ZN7meshoptL17rankEdgeCollapsesEPNS_8CollapseEmPKNS_7Vector3EPKfPKNS_7QuadricES9_PKNS_11QuadricGradEmPKjSE_PKhSE_SE_(ptr noundef %204, i64 noundef %221, ptr noundef %95, ptr noundef %.0311, ptr noundef %150, ptr noundef %.0319, ptr noundef %.0320, i64 noundef %.0286, ptr noundef %76, ptr noundef %79, ptr noundef %84, ptr noundef %87, ptr noundef %90)
          to label %236 unwind label %231

236:                                              ; preds = %235
  call void @_ZN7meshoptL17sortEdgeCollapsesEPjPKNS_8CollapseEm(ptr noundef %206, ptr noundef %204, i64 noundef %221)
  %237 = sub i64 %.0322421, %11
  %238 = udiv i64 %237, 3
  %239 = load i64, ptr %16, align 8, !tbaa !5
  %.not451 = icmp eq i64 %239, 0
  br i1 %.not451, label %._crit_edge420, label %.lr.ph419.preheader

.lr.ph419.preheader:                              ; preds = %236
  %min.iters.check = icmp ult i64 %239, 8
  br i1 %min.iters.check, label %.lr.ph419.preheader465, label %vector.ph

.lr.ph419.preheader465:                           ; preds = %middle.block, %.lr.ph419.preheader
  %.0314417.ph = phi i64 [ 0, %.lr.ph419.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.ph419

vector.ph:                                        ; preds = %.lr.ph419.preheader
  %n.vec = and i64 %239, -8
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.ind = phi <4 x i32> [ <i32 0, i32 1, i32 2, i32 3>, %vector.ph ], [ %vec.ind.next, %vector.body ]
  %step.add = add <4 x i32> %vec.ind, <i32 4, i32 4, i32 4, i32 4>
  %240 = getelementptr inbounds i32, ptr %209, i64 %index
  %241 = getelementptr inbounds i8, ptr %240, i64 16
  store <4 x i32> %vec.ind, ptr %240, align 4, !tbaa !13
  store <4 x i32> %step.add, ptr %241, align 4, !tbaa !13
  %index.next = add nuw i64 %index, 8
  %vec.ind.next = add <4 x i32> %vec.ind, <i32 8, i32 8, i32 8, i32 8>
  %242 = icmp eq i64 %index.next, %n.vec
  br i1 %242, label %middle.block, label %vector.body, !llvm.loop !17

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %239, %n.vec
  br i1 %cmp.n, label %._crit_edge420, label %.lr.ph419.preheader465

._crit_edge420:                                   ; preds = %.lr.ph419, %middle.block, %236
  call void @llvm.memset.p0.i64(ptr align 1 %212, i8 0, i64 %239, i1 false)
  %243 = invoke noundef i64 @_ZN7meshoptL20performEdgeCollapsesEPjPhPKNS_8CollapseEmPKjS6_S6_PKhS6_S6_PKNS_7Vector3ERKNS_13EdgeAdjacencyEmfRf(ptr noundef %209, ptr noundef %212, ptr noundef %204, i64 noundef %221, ptr noundef %206, ptr noundef %76, ptr noundef %79, ptr noundef %84, ptr noundef %87, ptr noundef %90, ptr noundef %95, ptr noundef nonnull align 8 dereferenceable(16) %18, i64 noundef %238, float noundef %218, ptr noundef nonnull align 4 dereferenceable(4) %21)
          to label %247 unwind label %249

.lr.ph419:                                        ; preds = %.lr.ph419.preheader465, %.lr.ph419
  %.0314417 = phi i64 [ %246, %.lr.ph419 ], [ %.0314417.ph, %.lr.ph419.preheader465 ]
  %244 = trunc i64 %.0314417 to i32
  %245 = getelementptr inbounds i32, ptr %209, i64 %.0314417
  store i32 %244, ptr %245, align 4, !tbaa !13
  %246 = add nuw i64 %.0314417, 1
  %exitcond456.not = icmp eq i64 %246, %239
  br i1 %exitcond456.not, label %._crit_edge420, label %.lr.ph419, !llvm.loop !20

247:                                              ; preds = %._crit_edge420
  %248 = icmp eq i64 %243, 0
  br i1 %248, label %.thread, label %251

249:                                              ; preds = %251, %._crit_edge420
  %250 = landingpad { ptr, i32 }
          cleanup
  br label %272

251:                                              ; preds = %247
  %252 = load i64, ptr %16, align 8, !tbaa !5
  invoke void @_ZN7meshoptL14updateQuadricsEPKjmPNS_7QuadricES3_PNS_11QuadricGradEmPKNS_7Vector3ES1_Rf(ptr noundef %209, i64 noundef %252, ptr noundef %150, ptr noundef %.0319, ptr noundef %.0320, i64 noundef %.0286, ptr noundef %95, ptr noundef %76, ptr noundef nonnull align 4 dereferenceable(4) %22)
          to label %253 unwind label %249

253:                                              ; preds = %251
  %254 = load float, ptr %21, align 4
  %255 = load float, ptr %22, align 4
  %256 = select i1 %.not358, float %254, float %255
  store float %256, ptr %22, align 4, !tbaa !11
  %257 = load i64, ptr %16, align 8, !tbaa !5
  call void @_ZN7meshoptL14remapEdgeLoopsEPjmPKj(ptr noundef %87, i64 noundef %257, ptr noundef %209)
  %258 = load i64, ptr %16, align 8, !tbaa !5
  call void @_ZN7meshoptL14remapEdgeLoopsEPjmPKj(ptr noundef %90, i64 noundef %258, ptr noundef %209)
  %259 = call noundef i64 @_ZN7meshoptL16remapIndexBufferEPjmPKj(ptr noundef %0, i64 noundef %.0322421, ptr noundef %209)
  %260 = icmp ult i64 %259, %.0322421
  br i1 %260, label %262, label %261

261:                                              ; preds = %253
  call void @__assert_fail(ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.1, i32 noundef 2028, ptr noundef nonnull @__PRETTY_FUNCTION__._Z20meshopt_simplifyEdgePjPKjmPKfmmS3_mS3_mPKhmfjPf) #7
  unreachable

262:                                              ; preds = %253
  %263 = icmp ugt i64 %259, %11
  %or.cond380 = and i1 %.not359, %263
  br i1 %or.cond380, label %264, label %270

264:                                              ; preds = %262
  %265 = load float, ptr %20, align 4, !tbaa !11
  %266 = load float, ptr %22, align 4, !tbaa !11
  %267 = fcmp ugt float %265, %266
  br i1 %267, label %270, label %268

268:                                              ; preds = %264
  %269 = call noundef i64 @_ZN7meshoptL15pruneComponentsEPjmPKjPKfmfRf(ptr noundef %0, i64 noundef %259, ptr noundef %.0321, ptr noundef %.0330, i64 noundef %.0331, float noundef %266, ptr noundef nonnull align 4 dereferenceable(4) %20)
  br label %270

270:                                              ; preds = %268, %264, %262
  %.3325 = phi i64 [ %269, %268 ], [ %259, %264 ], [ %259, %262 ]
  %271 = icmp ugt i64 %.3325, %11
  br i1 %271, label %.lr.ph423, label %.thread

272:                                              ; preds = %249, %231
  %.pn = phi { ptr, i32 } [ %250, %249 ], [ %232, %231 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #8
  br label %401

.thread:                                          ; preds = %270, %233, %247, %213
  %.0322.lcssa = phi i64 [ %2, %213 ], [ %.0322421, %247 ], [ %.0322421, %233 ], [ %.3325, %270 ]
  %273 = icmp ugt i64 %.0322.lcssa, %11
  %or.cond382434 = and i1 %.not359, %273
  br i1 %or.cond382434, label %.lr.ph436, label %.critedge

.lr.ph436:                                        ; preds = %.thread
  %xtraiter471 = and i64 %.0331, 1
  %274 = icmp eq i64 %.0331, 1
  %unroll_iter474 = and i64 %.0331, -2
  %lcmp.mod472.not = icmp eq i64 %xtraiter471, 0
  br label %275

275:                                              ; preds = %.lr.ph436, %298
  %.5327435 = phi i64 [ %.0322.lcssa, %.lr.ph436 ], [ %286, %298 ]
  %276 = load float, ptr %20, align 4
  %277 = fcmp ugt float %276, %218
  br i1 %277, label %.critedge, label %278

278:                                              ; preds = %275
  %279 = fmul float %276, 1.500000e+00
  %280 = fcmp olt float %279, %218
  %281 = select i1 %280, float %279, float %218
  switch i64 %.0331, label %.lr.ph431 [
    i64 0, label %._crit_edge432
    i64 1, label %._crit_edge432.loopexit.unr-lcssa
  ]

._crit_edge432.loopexit.unr-lcssa:                ; preds = %.lr.ph431, %278
  %.1293.lcssa.ph = phi float [ poison, %278 ], [ %.1293.1, %.lr.ph431 ]
  %.0291429.unr = phi i64 [ 0, %278 ], [ %297, %.lr.ph431 ]
  %.0292428.unr = phi float [ 0.000000e+00, %278 ], [ %.1293.1, %.lr.ph431 ]
  br i1 %lcmp.mod472.not, label %._crit_edge432, label %.lr.ph431.epil

.lr.ph431.epil:                                   ; preds = %._crit_edge432.loopexit.unr-lcssa
  %282 = getelementptr inbounds float, ptr %.0330, i64 %.0291429.unr
  %283 = load float, ptr %282, align 4, !tbaa !11
  %284 = fcmp ule float %283, %.0292428.unr
  %285 = fcmp ugt float %283, %281
  %or.cond383.epil = select i1 %284, i1 true, i1 %285
  %.1293.epil = select i1 %or.cond383.epil, float %.0292428.unr, float %283
  br label %._crit_edge432

._crit_edge432:                                   ; preds = %.lr.ph431.epil, %._crit_edge432.loopexit.unr-lcssa, %278
  %.0292.lcssa = phi float [ 0.000000e+00, %278 ], [ %.1293.lcssa.ph, %._crit_edge432.loopexit.unr-lcssa ], [ %.1293.epil, %.lr.ph431.epil ]
  %286 = call noundef i64 @_ZN7meshoptL15pruneComponentsEPjmPKjPKfmfRf(ptr noundef %0, i64 noundef %.5327435, ptr noundef %.0321, ptr noundef %.0330, i64 noundef %.0331, float noundef %281, ptr noundef nonnull align 4 dereferenceable(4) %20)
  %287 = icmp eq i64 %286, %.5327435
  br i1 %287, label %.critedge, label %298

.lr.ph431:                                        ; preds = %278, %.lr.ph431
  %.0291429 = phi i64 [ %297, %.lr.ph431 ], [ 0, %278 ]
  %.0292428 = phi float [ %.1293.1, %.lr.ph431 ], [ 0.000000e+00, %278 ]
  %niter475 = phi i64 [ %niter475.next.1, %.lr.ph431 ], [ 0, %278 ]
  %288 = getelementptr inbounds float, ptr %.0330, i64 %.0291429
  %289 = load float, ptr %288, align 4, !tbaa !11
  %290 = fcmp ule float %289, %.0292428
  %291 = fcmp ugt float %289, %281
  %or.cond383 = select i1 %290, i1 true, i1 %291
  %.1293 = select i1 %or.cond383, float %.0292428, float %289
  %292 = or disjoint i64 %.0291429, 1
  %293 = getelementptr inbounds float, ptr %.0330, i64 %292
  %294 = load float, ptr %293, align 4, !tbaa !11
  %295 = fcmp ule float %294, %.1293
  %296 = fcmp ugt float %294, %281
  %or.cond383.1 = select i1 %295, i1 true, i1 %296
  %.1293.1 = select i1 %or.cond383.1, float %.1293, float %294
  %297 = add nuw i64 %.0291429, 2
  %niter475.next.1 = add i64 %niter475, 2
  %niter475.ncmp.1 = icmp eq i64 %niter475.next.1, %unroll_iter474
  br i1 %niter475.ncmp.1, label %._crit_edge432.loopexit.unr-lcssa, label %.lr.ph431, !llvm.loop !21

298:                                              ; preds = %._crit_edge432
  %299 = load float, ptr %21, align 4
  %300 = fcmp olt float %299, %.0292.lcssa
  %301 = select i1 %300, float %.0292.lcssa, float %299
  store float %301, ptr %21, align 4, !tbaa !11
  %302 = load float, ptr %22, align 4
  %303 = fcmp olt float %302, %.0292.lcssa
  %304 = select i1 %303, float %.0292.lcssa, float %302
  store float %304, ptr %22, align 4, !tbaa !11
  %305 = icmp ugt i64 %286, %11
  br i1 %305, label %275, label %.critedge

.critedge:                                        ; preds = %275, %298, %._crit_edge432, %.thread
  %.5327.lcssa = phi i64 [ %.0322.lcssa, %.thread ], [ %.5327435, %._crit_edge432 ], [ %286, %298 ], [ %.5327435, %275 ]
  %306 = icmp ult i32 %13, 1073741824
  %307 = icmp ne ptr %.0288, null
  %or.cond = or i1 %306, %307
  br i1 %or.cond, label %.loopexit402, label %308

308:                                              ; preds = %.critedge
  %309 = load i64, ptr %16, align 8, !tbaa !5
  %310 = icmp ult i64 %309, 268435456
  br i1 %310, label %.preheader401, label %311

.preheader401:                                    ; preds = %308
  %.not453 = icmp eq i64 %.5327.lcssa, 0
  br i1 %.not453, label %.loopexit, label %.lr.ph445

311:                                              ; preds = %308
  call void @__assert_fail(ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.1, i32 noundef 2067, ptr noundef nonnull @__PRETTY_FUNCTION__._Z20meshopt_simplifyEdgePjPKjmPKfmmS3_mS3_mPKhmfjPf) #7
  unreachable

.lr.ph445:                                        ; preds = %.preheader401, %358
  %.0289444 = phi i64 [ %362, %358 ], [ 0, %.preheader401 ]
  %312 = getelementptr inbounds i32, ptr %0, i64 %.0289444
  %313 = load i32, ptr %312, align 4, !tbaa !13
  %314 = getelementptr i8, ptr %312, i64 4
  %315 = load i32, ptr %314, align 4, !tbaa !13
  %316 = getelementptr i8, ptr %312, i64 8
  %317 = load i32, ptr %316, align 4, !tbaa !13
  %318 = zext i32 %313 to i64
  %319 = getelementptr inbounds i8, ptr %84, i64 %318
  %320 = load i8, ptr %319, align 1, !tbaa !22
  %321 = zext i8 %320 to i32
  %322 = shl i32 %321, 28
  %323 = getelementptr inbounds i32, ptr %87, i64 %318
  %324 = load i32, ptr %323, align 4, !tbaa !13
  %325 = icmp eq i32 %324, %315
  %.pre461 = zext i32 %315 to i64
  br i1 %325, label %.lr.ph445..thread393_crit_edge, label %326

326:                                              ; preds = %.lr.ph445
  %327 = getelementptr inbounds i32, ptr %90, i64 %.pre461
  %328 = load i32, ptr %327, align 4, !tbaa !13
  %329 = icmp eq i32 %328, %313
  %cond.fr = freeze i1 %329
  %spec.select = select i1 %cond.fr, i32 -2147483648, i32 0
  br label %.lr.ph445..thread393_crit_edge

.lr.ph445..thread393_crit_edge:                   ; preds = %326, %.lr.ph445
  %330 = phi i32 [ -2147483648, %.lr.ph445 ], [ %spec.select, %326 ]
  %331 = or i32 %322, %330
  %332 = or i32 %331, %313
  store i32 %332, ptr %312, align 4, !tbaa !13
  %333 = getelementptr inbounds i8, ptr %84, i64 %.pre461
  %334 = load i8, ptr %333, align 1, !tbaa !22
  %335 = zext i8 %334 to i32
  %336 = shl i32 %335, 28
  %337 = getelementptr inbounds i32, ptr %87, i64 %.pre461
  %338 = load i32, ptr %337, align 4, !tbaa !13
  %339 = icmp eq i32 %338, %317
  %.pre = zext i32 %317 to i64
  br i1 %339, label %..thread396_crit_edge, label %340

340:                                              ; preds = %.lr.ph445..thread393_crit_edge
  %341 = getelementptr inbounds i32, ptr %90, i64 %.pre
  %342 = load i32, ptr %341, align 4, !tbaa !13
  %343 = icmp eq i32 %342, %315
  %cond.fr395 = freeze i1 %343
  %spec.select463 = select i1 %cond.fr395, i32 -2147483648, i32 0
  br label %..thread396_crit_edge

..thread396_crit_edge:                            ; preds = %340, %.lr.ph445..thread393_crit_edge
  %344 = phi i32 [ -2147483648, %.lr.ph445..thread393_crit_edge ], [ %spec.select463, %340 ]
  %345 = or i32 %336, %344
  %346 = or i32 %345, %315
  store i32 %346, ptr %314, align 4, !tbaa !13
  %347 = getelementptr inbounds i8, ptr %84, i64 %.pre
  %348 = load i8, ptr %347, align 1, !tbaa !22
  %349 = zext i8 %348 to i32
  %350 = shl i32 %349, 28
  %351 = getelementptr inbounds i32, ptr %87, i64 %.pre
  %352 = load i32, ptr %351, align 4, !tbaa !13
  %353 = icmp eq i32 %352, %313
  br i1 %353, label %.thread399, label %354

354:                                              ; preds = %..thread396_crit_edge
  %355 = getelementptr inbounds i32, ptr %90, i64 %318
  %356 = load i32, ptr %355, align 4, !tbaa !13
  %357 = icmp eq i32 %356, %317
  %cond.fr398 = freeze i1 %357
  br i1 %cond.fr398, label %.thread399, label %358

.thread399:                                       ; preds = %..thread396_crit_edge, %354
  br label %358

358:                                              ; preds = %354, %.thread399
  %359 = phi i32 [ -2147483648, %.thread399 ], [ 0, %354 ]
  %360 = or i32 %350, %359
  %361 = or i32 %360, %317
  store i32 %361, ptr %316, align 4, !tbaa !13
  %362 = add i64 %.0289444, 3
  %363 = icmp ult i64 %362, %.5327.lcssa
  br i1 %363, label %.lr.ph445, label %.loopexit402, !llvm.loop !23

.loopexit402:                                     ; preds = %358, %.critedge
  %364 = icmp ne i64 %.5327.lcssa, 0
  %or.cond448 = and i1 %307, %364
  br i1 %or.cond448, label %.lr.ph447.preheader, label %.loopexit

.lr.ph447.preheader:                              ; preds = %.loopexit402
  %xtraiter476 = and i64 %.5327.lcssa, 3
  %365 = icmp ult i64 %.5327.lcssa, 4
  br i1 %365, label %.loopexit.loopexit.unr-lcssa, label %.lr.ph447.preheader.new

.lr.ph447.preheader.new:                          ; preds = %.lr.ph447.preheader
  %unroll_iter478 = and i64 %.5327.lcssa, -4
  br label %.lr.ph447

.lr.ph447:                                        ; preds = %.lr.ph447, %.lr.ph447.preheader.new
  %.0446 = phi i64 [ 0, %.lr.ph447.preheader.new ], [ %389, %.lr.ph447 ]
  %niter479 = phi i64 [ 0, %.lr.ph447.preheader.new ], [ %niter479.next.3, %.lr.ph447 ]
  %366 = getelementptr inbounds i32, ptr %0, i64 %.0446
  %367 = load i32, ptr %366, align 4, !tbaa !13
  %368 = zext i32 %367 to i64
  %369 = getelementptr inbounds i32, ptr %.0288, i64 %368
  %370 = load i32, ptr %369, align 4, !tbaa !13
  store i32 %370, ptr %366, align 4, !tbaa !13
  %371 = or disjoint i64 %.0446, 1
  %372 = getelementptr inbounds i32, ptr %0, i64 %371
  %373 = load i32, ptr %372, align 4, !tbaa !13
  %374 = zext i32 %373 to i64
  %375 = getelementptr inbounds i32, ptr %.0288, i64 %374
  %376 = load i32, ptr %375, align 4, !tbaa !13
  store i32 %376, ptr %372, align 4, !tbaa !13
  %377 = or disjoint i64 %.0446, 2
  %378 = getelementptr inbounds i32, ptr %0, i64 %377
  %379 = load i32, ptr %378, align 4, !tbaa !13
  %380 = zext i32 %379 to i64
  %381 = getelementptr inbounds i32, ptr %.0288, i64 %380
  %382 = load i32, ptr %381, align 4, !tbaa !13
  store i32 %382, ptr %378, align 4, !tbaa !13
  %383 = or disjoint i64 %.0446, 3
  %384 = getelementptr inbounds i32, ptr %0, i64 %383
  %385 = load i32, ptr %384, align 4, !tbaa !13
  %386 = zext i32 %385 to i64
  %387 = getelementptr inbounds i32, ptr %.0288, i64 %386
  %388 = load i32, ptr %387, align 4, !tbaa !13
  store i32 %388, ptr %384, align 4, !tbaa !13
  %389 = add nuw i64 %.0446, 4
  %niter479.next.3 = add i64 %niter479, 4
  %niter479.ncmp.3 = icmp eq i64 %niter479.next.3, %unroll_iter478
  br i1 %niter479.ncmp.3, label %.loopexit.loopexit.unr-lcssa, label %.lr.ph447, !llvm.loop !24

.loopexit.loopexit.unr-lcssa:                     ; preds = %.lr.ph447, %.lr.ph447.preheader
  %.0446.unr = phi i64 [ 0, %.lr.ph447.preheader ], [ %389, %.lr.ph447 ]
  %lcmp.mod477.not = icmp eq i64 %xtraiter476, 0
  br i1 %lcmp.mod477.not, label %.loopexit, label %.lr.ph447.epil

.lr.ph447.epil:                                   ; preds = %.loopexit.loopexit.unr-lcssa, %.lr.ph447.epil
  %.0446.epil = phi i64 [ %395, %.lr.ph447.epil ], [ %.0446.unr, %.loopexit.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph447.epil ], [ 0, %.loopexit.loopexit.unr-lcssa ]
  %390 = getelementptr inbounds i32, ptr %0, i64 %.0446.epil
  %391 = load i32, ptr %390, align 4, !tbaa !13
  %392 = zext i32 %391 to i64
  %393 = getelementptr inbounds i32, ptr %.0288, i64 %392
  %394 = load i32, ptr %393, align 4, !tbaa !13
  store i32 %394, ptr %390, align 4, !tbaa !13
  %395 = add nuw i64 %.0446.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter476
  br i1 %epil.iter.cmp.not, label %.loopexit, label %.lr.ph447.epil, !llvm.loop !25

.loopexit:                                        ; preds = %.loopexit.loopexit.unr-lcssa, %.lr.ph447.epil, %.preheader401, %.loopexit402
  %.not379 = icmp eq ptr %14, null
  br i1 %.not379, label %400, label %396

396:                                              ; preds = %.loopexit
  %397 = load float, ptr %21, align 4, !tbaa !11
  %398 = call float @sqrtf(float noundef %397) #8
  %399 = fmul float %215, %398
  store float %399, ptr %14, align 4, !tbaa !11
  br label %400

400:                                              ; preds = %396, %.loopexit
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #8
  call void @_ZN17meshopt_AllocatorD2Ev(ptr noundef nonnull align 8 dereferenceable(200) %17) #8
  call void @llvm.lifetime.end.p0(i64 200, ptr nonnull %17) #8
  ret i64 %.5327.lcssa

401:                                              ; preds = %223, %227, %272, %229, %225, %189
  %.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %190, %189 ], [ %224, %223 ], [ %226, %225 ], [ %228, %227 ], [ %.pn, %272 ], [ %230, %229 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #8
  br label %402

402:                                              ; preds = %113, %117, %121, %146, %169, %401, %167, %123, %119, %115, %111
  %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %112, %111 ], [ %114, %113 ], [ %116, %115 ], [ %118, %117 ], [ %120, %119 ], [ %122, %121 ], [ %124, %123 ], [ %147, %146 ], [ %168, %167 ], [ %.pn.pn.pn.pn.pn.pn, %401 ], [ %170, %169 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #8
  br label %403

403:                                              ; preds = %402, %69
  %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %402 ], [ %70, %69 ]
  call void @_ZN17meshopt_AllocatorD2Ev(ptr noundef nonnull align 8 dereferenceable(200) %17) #8
  call void @llvm.lifetime.end.p0(i64 200, ptr nonnull %17) #8
  resume { ptr, i32 } %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn
}

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN17meshopt_AllocatorC2Ev(ptr noundef nonnull align 8 dereferenceable(200)) unnamed_addr #3 align 2

; 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

; Function Attrs: mustprogress uwtable
declare hidden noundef ptr @_ZN7meshoptL16buildSparseRemapEPjmmPmR17meshopt_Allocator(ptr noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(200)) local_unnamed_addr #0

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN7meshoptL20prepareEdgeAdjacencyERNS_13EdgeAdjacencyEmmR17meshopt_Allocator(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i64 noundef, ptr noundef nonnull align 8 dereferenceable(200)) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN7meshoptL19updateEdgeAdjacencyERNS_13EdgeAdjacencyEPKjmmS3_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN17meshopt_Allocator8allocateIjEEPT_m(ptr noundef nonnull align 8 dereferenceable(200), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN7meshoptL18buildPositionRemapEPjS0_PKfmmPKjR17meshopt_Allocator(ptr noundef, ptr noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(200)) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN17meshopt_Allocator8allocateIhEEPT_m(ptr noundef nonnull align 8 dereferenceable(200), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN7meshoptL16classifyVerticesEPhPjS1_mRKNS_13EdgeAdjacencyEPKjS6_PKhS6_j(ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN17meshopt_Allocator8allocateIN7meshopt7Vector3EEEPT_m(ptr noundef nonnull align 8 dereferenceable(200), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef float @_ZN7meshoptL16rescalePositionsEPNS_7Vector3EPKfmmPKj(ptr noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN17meshopt_Allocator8allocateIfEEPT_m(ptr noundef nonnull align 8 dereferenceable(200), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN7meshoptL17rescaleAttributesEPfPKfmmS2_mPKjS4_(ptr noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN17meshopt_Allocator8allocateIN7meshopt7QuadricEEEPT_m(ptr noundef nonnull align 8 dereferenceable(200), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN17meshopt_Allocator8allocateIN7meshopt11QuadricGradEEEPT_m(ptr noundef nonnull align 8 dereferenceable(200), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN7meshoptL16fillFaceQuadricsEPNS_7QuadricEPKjmPKNS_7Vector3ES3_(ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN7meshoptL16fillEdgeQuadricsEPNS_7QuadricEPKjmPKNS_7Vector3ES3_PKhS3_S3_(ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN7meshoptL21fillAttributeQuadricsEPNS_7QuadricEPNS_11QuadricGradEPKjmPKNS_7Vector3EPKfm(ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare hidden noundef i64 @_ZN7meshoptL15buildComponentsEPjmPKjmS2_(ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN7meshoptL17measureComponentsEPfmPKjPKNS_7Vector3Em(ptr noundef, i64 noundef, ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i64 @_ZN7meshoptL18boundEdgeCollapsesERKNS_13EdgeAdjacencyEmmPh(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN17meshopt_Allocator8allocateIN7meshopt8CollapseEEEPT_m(ptr noundef nonnull align 8 dereferenceable(200), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i64 @_ZN7meshoptL17pickEdgeCollapsesEPNS_8CollapseEmPKjmS3_PKhS3_S3_(ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN7meshoptL17rankEdgeCollapsesEPNS_8CollapseEmPKNS_7Vector3EPKfPKNS_7QuadricES9_PKNS_11QuadricGradEmPKjSE_PKhSE_SE_(ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN7meshoptL17sortEdgeCollapsesEPjPKNS_8CollapseEm(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i64 @_ZN7meshoptL20performEdgeCollapsesEPjPhPKNS_8CollapseEmPKjS6_S6_PKhS6_S6_PKNS_7Vector3ERKNS_13EdgeAdjacencyEmfRf(ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, float noundef, ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN7meshoptL14updateQuadricsEPKjmPNS_7QuadricES3_PNS_11QuadricGradEmPKNS_7Vector3ES1_Rf(ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN7meshoptL14remapEdgeLoopsEPjmPKj(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i64 @_ZN7meshoptL16remapIndexBufferEPjmPKj(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i64 @_ZN7meshoptL15pruneComponentsEPjmPKjPKfmfRf(ptr noundef, i64 noundef, ptr noundef, ptr noundef, i64 noundef, float noundef, ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN17meshopt_AllocatorD2Ev(ptr noundef nonnull align 8 dereferenceable(200)) unnamed_addr #3 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 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { noreturn nounwind }
attributes #8 = { 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10, !18, !19}
!18 = !{!"llvm.loop.isvectorized", i32 1}
!19 = !{!"llvm.loop.unroll.runtime.disable"}
!20 = distinct !{!20, !10, !19, !18}
!21 = distinct !{!21, !10}
!22 = !{!7, !7, i64 0}
!23 = distinct !{!23, !10}
!24 = distinct !{!24, !10}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.unroll.disable"}


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