; LLVM IR from vectozavr/3dzavr :: engine/io/microui (microui)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.mu_Rect = type { i32, i32, i32, i32 }
%struct.mu_Context = type { ptr, ptr, ptr, %struct.mu_Style, ptr, i32, i32, i32, %struct.mu_Rect, i32, i32, i32, ptr, ptr, ptr, [127 x i8], i32, %struct.anon, %struct.anon.0, %struct.anon.1, %struct.anon.2, %struct.anon.3, %struct.anon.4, [48 x %struct.mu_PoolItem], [48 x %struct.mu_Container], [48 x %struct.mu_PoolItem], %struct.mu_Vec2, %struct.mu_Vec2, %struct.mu_Vec2, %struct.mu_Vec2, i32, i32, i32, i32, [32 x i8] }
%struct.mu_Style = type { ptr, %struct.mu_Vec2, i32, i32, i32, i32, i32, i32, [14 x %struct.mu_Color] }
%struct.mu_Color = type { i8, i8, i8, i8 }
%struct.anon = type { i32, [262144 x i8] }
%struct.anon.0 = type { i32, [32 x ptr] }
%struct.anon.1 = type { i32, [32 x ptr] }
%struct.anon.2 = type { i32, [32 x %struct.mu_Rect] }
%struct.anon.3 = type { i32, [32 x i32] }
%struct.anon.4 = type { i32, [16 x %struct.mu_Layout] }
%struct.mu_Layout = type { %struct.mu_Rect, %struct.mu_Rect, %struct.mu_Vec2, %struct.mu_Vec2, %struct.mu_Vec2, [16 x i32], i32, i32, i32, i32, i32 }
%struct.mu_Container = type { ptr, ptr, %struct.mu_Rect, %struct.mu_Rect, %struct.mu_Vec2, %struct.mu_Vec2, i32, i32 }
%struct.mu_PoolItem = type { i32, i32 }
%struct.mu_Vec2 = type { i32, i32 }

; 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) #0

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

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

; Function Attrs: nounwind uwtable
define dso_local { i64, i64 } @mu_layout_next(ptr noundef %0) #2 {
  %2 = alloca %struct.mu_Rect, align 4
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %struct.mu_Rect, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #3
  %9 = load ptr, ptr %3, align 8, !tbaa !5
  %10 = call ptr @get_layout(ptr noundef %9)
  store ptr %10, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  %11 = load ptr, ptr %3, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.mu_Context, ptr %11, i32 0, i32 4
  %13 = load ptr, ptr %12, align 8, !tbaa !9
  store ptr %13, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #3
  %14 = load ptr, ptr %4, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.mu_Layout, ptr %14, i32 0, i32 9
  %16 = load i32, ptr %15, align 4, !tbaa !17
  %17 = icmp ne i32 %16, 0
  br i1 %17, label %18, label %35

18:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.mu_Layout, ptr %19, i32 0, i32 9
  %21 = load i32, ptr %20, align 4, !tbaa !17
  store i32 %21, ptr %7, align 4, !tbaa !19
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.mu_Layout, ptr %22, i32 0, i32 9
  store i32 0, ptr %23, align 4, !tbaa !17
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.mu_Layout, ptr %24, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %6, ptr align 4 %25, i64 16, i1 false), !tbaa.struct !20
  %26 = load i32, ptr %7, align 4, !tbaa !19
  %27 = icmp eq i32 %26, 2
  br i1 %27, label %28, label %31

28:                                               ; preds = %18
  %29 = load ptr, ptr %3, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.mu_Context, ptr %29, i32 0, i32 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %30, ptr align 4 %6, i64 16, i1 false), !tbaa.struct !20
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %2, ptr align 4 %30, i64 16, i1 false), !tbaa.struct !20
  store i32 1, ptr %8, align 4
  br label %32

31:                                               ; preds = %18
  store i32 0, ptr %8, align 4
  br label %32

32:                                               ; preds = %31, %28
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  %33 = load i32, ptr %8, align 4
  switch i32 %33, label %266 [
    i32 0, label %34
  ]

34:                                               ; preds = %32
  br label %155

35:                                               ; preds = %1
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.mu_Layout, ptr %36, i32 0, i32 7
  %38 = load i32, ptr %37, align 4, !tbaa !21
  %39 = load ptr, ptr %4, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.mu_Layout, ptr %39, i32 0, i32 6
  %41 = load i32, ptr %40, align 4, !tbaa !22
  %42 = icmp eq i32 %38, %41
  br i1 %42, label %43, label %52

43:                                               ; preds = %35
  %44 = load ptr, ptr %3, align 8, !tbaa !5
  %45 = load ptr, ptr %4, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.mu_Layout, ptr %45, i32 0, i32 6
  %47 = load i32, ptr %46, align 4, !tbaa !22
  %48 = load ptr, ptr %4, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.mu_Layout, ptr %48, i32 0, i32 3
  %50 = getelementptr inbounds %struct.mu_Vec2, ptr %49, i32 0, i32 1
  %51 = load i32, ptr %50, align 4, !tbaa !23
  call void @mu_layout_row(ptr noundef %44, i32 noundef %47, ptr noundef null, i32 noundef %51)
  br label %52

52:                                               ; preds = %43, %35
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.mu_Layout, ptr %53, i32 0, i32 2
  %55 = getelementptr inbounds %struct.mu_Vec2, ptr %54, i32 0, i32 0
  %56 = load i32, ptr %55, align 4, !tbaa !24
  %57 = getelementptr inbounds %struct.mu_Rect, ptr %6, i32 0, i32 0
  store i32 %56, ptr %57, align 4, !tbaa !25
  %58 = load ptr, ptr %4, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.mu_Layout, ptr %58, i32 0, i32 2
  %60 = getelementptr inbounds %struct.mu_Vec2, ptr %59, i32 0, i32 1
  %61 = load i32, ptr %60, align 4, !tbaa !26
  %62 = getelementptr inbounds %struct.mu_Rect, ptr %6, i32 0, i32 1
  store i32 %61, ptr %62, align 4, !tbaa !27
  %63 = load ptr, ptr %4, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.mu_Layout, ptr %63, i32 0, i32 6
  %65 = load i32, ptr %64, align 4, !tbaa !22
  %66 = icmp sgt i32 %65, 0
  br i1 %66, label %67, label %76

67:                                               ; preds = %52
  %68 = load ptr, ptr %4, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.mu_Layout, ptr %68, i32 0, i32 5
  %70 = load ptr, ptr %4, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.mu_Layout, ptr %70, i32 0, i32 7
  %72 = load i32, ptr %71, align 4, !tbaa !21
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds [16 x i32], ptr %69, i64 0, i64 %73
  %75 = load i32, ptr %74, align 4, !tbaa !19
  br label %81

76:                                               ; preds = %52
  %77 = load ptr, ptr %4, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.mu_Layout, ptr %77, i32 0, i32 3
  %79 = getelementptr inbounds %struct.mu_Vec2, ptr %78, i32 0, i32 0
  %80 = load i32, ptr %79, align 4, !tbaa !28
  br label %81

81:                                               ; preds = %76, %67
  %82 = phi i32 [ %75, %67 ], [ %80, %76 ]
  %83 = getelementptr inbounds %struct.mu_Rect, ptr %6, i32 0, i32 2
  store i32 %82, ptr %83, align 4, !tbaa !29
  %84 = load ptr, ptr %4, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.mu_Layout, ptr %84, i32 0, i32 3
  %86 = getelementptr inbounds %struct.mu_Vec2, ptr %85, i32 0, i32 1
  %87 = load i32, ptr %86, align 4, !tbaa !23
  %88 = getelementptr inbounds %struct.mu_Rect, ptr %6, i32 0, i32 3
  store i32 %87, ptr %88, align 4, !tbaa !30
  %89 = getelementptr inbounds %struct.mu_Rect, ptr %6, i32 0, i32 2
  %90 = load i32, ptr %89, align 4, !tbaa !29
  %91 = icmp eq i32 %90, 0
  br i1 %91, label %92, label %103

92:                                               ; preds = %81
  %93 = load ptr, ptr %5, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.mu_Style, ptr %93, i32 0, i32 1
  %95 = getelementptr inbounds %struct.mu_Vec2, ptr %94, i32 0, i32 0
  %96 = load i32, ptr %95, align 8, !tbaa !31
  %97 = load ptr, ptr %5, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.mu_Style, ptr %97, i32 0, i32 2
  %99 = load i32, ptr %98, align 8, !tbaa !32
  %100 = mul nsw i32 %99, 2
  %101 = add nsw i32 %96, %100
  %102 = getelementptr inbounds %struct.mu_Rect, ptr %6, i32 0, i32 2
  store i32 %101, ptr %102, align 4, !tbaa !29
  br label %103

103:                                              ; preds = %92, %81
  %104 = getelementptr inbounds %struct.mu_Rect, ptr %6, i32 0, i32 3
  %105 = load i32, ptr %104, align 4, !tbaa !30
  %106 = icmp eq i32 %105, 0
  br i1 %106, label %107, label %118

107:                                              ; preds = %103
  %108 = load ptr, ptr %5, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.mu_Style, ptr %108, i32 0, i32 1
  %110 = getelementptr inbounds %struct.mu_Vec2, ptr %109, i32 0, i32 1
  %111 = load i32, ptr %110, align 4, !tbaa !33
  %112 = load ptr, ptr %5, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.mu_Style, ptr %112, i32 0, i32 2
  %114 = load i32, ptr %113, align 8, !tbaa !32
  %115 = mul nsw i32 %114, 2
  %116 = add nsw i32 %111, %115
  %117 = getelementptr inbounds %struct.mu_Rect, ptr %6, i32 0, i32 3
  store i32 %116, ptr %117, align 4, !tbaa !30
  br label %118

118:                                              ; preds = %107, %103
  %119 = getelementptr inbounds %struct.mu_Rect, ptr %6, i32 0, i32 2
  %120 = load i32, ptr %119, align 4, !tbaa !29
  %121 = icmp slt i32 %120, 0
  br i1 %121, label %122, label %134

122:                                              ; preds = %118
  %123 = load ptr, ptr %4, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.mu_Layout, ptr %123, i32 0, i32 0
  %125 = getelementptr inbounds %struct.mu_Rect, ptr %124, i32 0, i32 2
  %126 = load i32, ptr %125, align 4, !tbaa !34
  %127 = getelementptr inbounds %struct.mu_Rect, ptr %6, i32 0, i32 0
  %128 = load i32, ptr %127, align 4, !tbaa !25
  %129 = sub nsw i32 %126, %128
  %130 = add nsw i32 %129, 1
  %131 = getelementptr inbounds %struct.mu_Rect, ptr %6, i32 0, i32 2
  %132 = load i32, ptr %131, align 4, !tbaa !29
  %133 = add nsw i32 %132, %130
  store i32 %133, ptr %131, align 4, !tbaa !29
  br label %134

134:                                              ; preds = %122, %118
  %135 = getelementptr inbounds %struct.mu_Rect, ptr %6, i32 0, i32 3
  %136 = load i32, ptr %135, align 4, !tbaa !30
  %137 = icmp slt i32 %136, 0
  br i1 %137, label %138, label %150

138:                                              ; preds = %134
  %139 = load ptr, ptr %4, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.mu_Layout, ptr %139, i32 0, i32 0
  %141 = getelementptr inbounds %struct.mu_Rect, ptr %140, i32 0, i32 3
  %142 = load i32, ptr %141, align 4, !tbaa !35
  %143 = getelementptr inbounds %struct.mu_Rect, ptr %6, i32 0, i32 1
  %144 = load i32, ptr %143, align 4, !tbaa !27
  %145 = sub nsw i32 %142, %144
  %146 = add nsw i32 %145, 1
  %147 = getelementptr inbounds %struct.mu_Rect, ptr %6, i32 0, i32 3
  %148 = load i32, ptr %147, align 4, !tbaa !30
  %149 = add nsw i32 %148, %146
  store i32 %149, ptr %147, align 4, !tbaa !30
  br label %150

150:                                              ; preds = %138, %134
  %151 = load ptr, ptr %4, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.mu_Layout, ptr %151, i32 0, i32 7
  %153 = load i32, ptr %152, align 4, !tbaa !21
  %154 = add nsw i32 %153, 1
  store i32 %154, ptr %152, align 4, !tbaa !21
  br label %155

155:                                              ; preds = %150, %34
  %156 = getelementptr inbounds %struct.mu_Rect, ptr %6, i32 0, i32 2
  %157 = load i32, ptr %156, align 4, !tbaa !29
  %158 = load ptr, ptr %5, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.mu_Style, ptr %158, i32 0, i32 3
  %160 = load i32, ptr %159, align 4, !tbaa !36
  %161 = add nsw i32 %157, %160
  %162 = load ptr, ptr %4, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.mu_Layout, ptr %162, i32 0, i32 2
  %164 = getelementptr inbounds %struct.mu_Vec2, ptr %163, i32 0, i32 0
  %165 = load i32, ptr %164, align 4, !tbaa !24
  %166 = add nsw i32 %165, %161
  store i32 %166, ptr %164, align 4, !tbaa !24
  %167 = load ptr, ptr %4, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.mu_Layout, ptr %167, i32 0, i32 8
  %169 = load i32, ptr %168, align 4, !tbaa !37
  %170 = getelementptr inbounds %struct.mu_Rect, ptr %6, i32 0, i32 1
  %171 = load i32, ptr %170, align 4, !tbaa !27
  %172 = getelementptr inbounds %struct.mu_Rect, ptr %6, i32 0, i32 3
  %173 = load i32, ptr %172, align 4, !tbaa !30
  %174 = add nsw i32 %171, %173
  %175 = load ptr, ptr %5, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.mu_Style, ptr %175, i32 0, i32 3
  %177 = load i32, ptr %176, align 4, !tbaa !36
  %178 = add nsw i32 %174, %177
  %179 = icmp sgt i32 %169, %178
  br i1 %179, label %180, label %184

180:                                              ; preds = %155
  %181 = load ptr, ptr %4, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.mu_Layout, ptr %181, i32 0, i32 8
  %183 = load i32, ptr %182, align 4, !tbaa !37
  br label %194

184:                                              ; preds = %155
  %185 = getelementptr inbounds %struct.mu_Rect, ptr %6, i32 0, i32 1
  %186 = load i32, ptr %185, align 4, !tbaa !27
  %187 = getelementptr inbounds %struct.mu_Rect, ptr %6, i32 0, i32 3
  %188 = load i32, ptr %187, align 4, !tbaa !30
  %189 = add nsw i32 %186, %188
  %190 = load ptr, ptr %5, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.mu_Style, ptr %190, i32 0, i32 3
  %192 = load i32, ptr %191, align 4, !tbaa !36
  %193 = add nsw i32 %189, %192
  br label %194

194:                                              ; preds = %184, %180
  %195 = phi i32 [ %183, %180 ], [ %193, %184 ]
  %196 = load ptr, ptr %4, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct.mu_Layout, ptr %196, i32 0, i32 8
  store i32 %195, ptr %197, align 4, !tbaa !37
  %198 = load ptr, ptr %4, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.mu_Layout, ptr %198, i32 0, i32 0
  %200 = getelementptr inbounds %struct.mu_Rect, ptr %199, i32 0, i32 0
  %201 = load i32, ptr %200, align 4, !tbaa !38
  %202 = getelementptr inbounds %struct.mu_Rect, ptr %6, i32 0, i32 0
  %203 = load i32, ptr %202, align 4, !tbaa !25
  %204 = add nsw i32 %203, %201
  store i32 %204, ptr %202, align 4, !tbaa !25
  %205 = load ptr, ptr %4, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.mu_Layout, ptr %205, i32 0, i32 0
  %207 = getelementptr inbounds %struct.mu_Rect, ptr %206, i32 0, i32 1
  %208 = load i32, ptr %207, align 4, !tbaa !39
  %209 = getelementptr inbounds %struct.mu_Rect, ptr %6, i32 0, i32 1
  %210 = load i32, ptr %209, align 4, !tbaa !27
  %211 = add nsw i32 %210, %208
  store i32 %211, ptr %209, align 4, !tbaa !27
  %212 = load ptr, ptr %4, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.mu_Layout, ptr %212, i32 0, i32 4
  %214 = getelementptr inbounds %struct.mu_Vec2, ptr %213, i32 0, i32 0
  %215 = load i32, ptr %214, align 4, !tbaa !40
  %216 = getelementptr inbounds %struct.mu_Rect, ptr %6, i32 0, i32 0
  %217 = load i32, ptr %216, align 4, !tbaa !25
  %218 = getelementptr inbounds %struct.mu_Rect, ptr %6, i32 0, i32 2
  %219 = load i32, ptr %218, align 4, !tbaa !29
  %220 = add nsw i32 %217, %219
  %221 = icmp sgt i32 %215, %220
  br i1 %221, label %222, label %227

222:                                              ; preds = %194
  %223 = load ptr, ptr %4, align 8, !tbaa !5
  %224 = getelementptr inbounds %struct.mu_Layout, ptr %223, i32 0, i32 4
  %225 = getelementptr inbounds %struct.mu_Vec2, ptr %224, i32 0, i32 0
  %226 = load i32, ptr %225, align 4, !tbaa !40
  br label %233

227:                                              ; preds = %194
  %228 = getelementptr inbounds %struct.mu_Rect, ptr %6, i32 0, i32 0
  %229 = load i32, ptr %228, align 4, !tbaa !25
  %230 = getelementptr inbounds %struct.mu_Rect, ptr %6, i32 0, i32 2
  %231 = load i32, ptr %230, align 4, !tbaa !29
  %232 = add nsw i32 %229, %231
  br label %233

233:                                              ; preds = %227, %222
  %234 = phi i32 [ %226, %222 ], [ %232, %227 ]
  %235 = load ptr, ptr %4, align 8, !tbaa !5
  %236 = getelementptr inbounds %struct.mu_Layout, ptr %235, i32 0, i32 4
  %237 = getelementptr inbounds %struct.mu_Vec2, ptr %236, i32 0, i32 0
  store i32 %234, ptr %237, align 4, !tbaa !40
  %238 = load ptr, ptr %4, align 8, !tbaa !5
  %239 = getelementptr inbounds %struct.mu_Layout, ptr %238, i32 0, i32 4
  %240 = getelementptr inbounds %struct.mu_Vec2, ptr %239, i32 0, i32 1
  %241 = load i32, ptr %240, align 4, !tbaa !41
  %242 = getelementptr inbounds %struct.mu_Rect, ptr %6, i32 0, i32 1
  %243 = load i32, ptr %242, align 4, !tbaa !27
  %244 = getelementptr inbounds %struct.mu_Rect, ptr %6, i32 0, i32 3
  %245 = load i32, ptr %244, align 4, !tbaa !30
  %246 = add nsw i32 %243, %245
  %247 = icmp sgt i32 %241, %246
  br i1 %247, label %248, label %253

248:                                              ; preds = %233
  %249 = load ptr, ptr %4, align 8, !tbaa !5
  %250 = getelementptr inbounds %struct.mu_Layout, ptr %249, i32 0, i32 4
  %251 = getelementptr inbounds %struct.mu_Vec2, ptr %250, i32 0, i32 1
  %252 = load i32, ptr %251, align 4, !tbaa !41
  br label %259

253:                                              ; preds = %233
  %254 = getelementptr inbounds %struct.mu_Rect, ptr %6, i32 0, i32 1
  %255 = load i32, ptr %254, align 4, !tbaa !27
  %256 = getelementptr inbounds %struct.mu_Rect, ptr %6, i32 0, i32 3
  %257 = load i32, ptr %256, align 4, !tbaa !30
  %258 = add nsw i32 %255, %257
  br label %259

259:                                              ; preds = %253, %248
  %260 = phi i32 [ %252, %248 ], [ %258, %253 ]
  %261 = load ptr, ptr %4, align 8, !tbaa !5
  %262 = getelementptr inbounds %struct.mu_Layout, ptr %261, i32 0, i32 4
  %263 = getelementptr inbounds %struct.mu_Vec2, ptr %262, i32 0, i32 1
  store i32 %260, ptr %263, align 4, !tbaa !41
  %264 = load ptr, ptr %3, align 8, !tbaa !5
  %265 = getelementptr inbounds %struct.mu_Context, ptr %264, i32 0, i32 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %265, ptr align 4 %6, i64 16, i1 false), !tbaa.struct !20
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %2, ptr align 4 %265, i64 16, i1 false), !tbaa.struct !20
  store i32 1, ptr %8, align 4
  br label %266

266:                                              ; preds = %259, %32
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
  %267 = load { i64, i64 }, ptr %2, align 4
  ret { i64, i64 } %267
}

; Function Attrs: nounwind uwtable
declare hidden ptr @get_layout(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @mu_layout_row(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #2

attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 120}
!10 = !{!"mu_Context", !6, i64 0, !6, i64 8, !6, i64 16, !11, i64 24, !6, i64 120, !13, i64 128, !13, i64 132, !13, i64 136, !14, i64 140, !13, i64 156, !13, i64 160, !13, i64 164, !6, i64 168, !6, i64 176, !6, i64 184, !7, i64 192, !13, i64 320, !15, i64 324, !16, i64 262472, !16, i64 262736, !15, i64 263000, !15, i64 263516, !15, i64 263648, !7, i64 265892, !7, i64 266280, !7, i64 269736, !12, i64 270120, !12, i64 270128, !12, i64 270136, !12, i64 270144, !13, i64 270152, !13, i64 270156, !13, i64 270160, !13, i64 270164, !7, i64 270168}
!11 = !{!"", !6, i64 0, !12, i64 8, !13, i64 16, !13, i64 20, !13, i64 24, !13, i64 28, !13, i64 32, !13, i64 36, !7, i64 40}
!12 = !{!"", !13, i64 0, !13, i64 4}
!13 = !{!"int", !7, i64 0}
!14 = !{!"", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12}
!15 = !{!"", !13, i64 0, !7, i64 4}
!16 = !{!"", !13, i64 0, !7, i64 8}
!17 = !{!18, !13, i64 132}
!18 = !{!"", !14, i64 0, !14, i64 16, !12, i64 32, !12, i64 40, !12, i64 48, !7, i64 56, !13, i64 120, !13, i64 124, !13, i64 128, !13, i64 132, !13, i64 136}
!19 = !{!13, !13, i64 0}
!20 = !{i64 0, i64 4, !19, i64 4, i64 4, !19, i64 8, i64 4, !19, i64 12, i64 4, !19}
!21 = !{!18, !13, i64 124}
!22 = !{!18, !13, i64 120}
!23 = !{!18, !13, i64 44}
!24 = !{!18, !13, i64 32}
!25 = !{!14, !13, i64 0}
!26 = !{!18, !13, i64 36}
!27 = !{!14, !13, i64 4}
!28 = !{!18, !13, i64 40}
!29 = !{!14, !13, i64 8}
!30 = !{!14, !13, i64 12}
!31 = !{!11, !13, i64 8}
!32 = !{!11, !13, i64 16}
!33 = !{!11, !13, i64 12}
!34 = !{!18, !13, i64 8}
!35 = !{!18, !13, i64 12}
!36 = !{!11, !13, i64 20}
!37 = !{!18, !13, i64 128}
!38 = !{!18, !13, i64 0}
!39 = !{!18, !13, i64 4}
!40 = !{!18, !13, i64 48}
!41 = !{!18, !13, i64 52}


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

; Function Attrs: nounwind uwtable
define dso_local { i64, i64 } @mu_layout_next(ptr noundef %0) local_unnamed_addr #0 {
  %2 = tail call ptr @get_layout(ptr noundef %0)
  %3 = getelementptr inbounds i8, ptr %0, i64 120
  %4 = load ptr, ptr %3, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %2, i64 132
  %6 = load i32, ptr %5, align 4, !tbaa !16
  %.not = icmp eq i32 %6, 0
  br i1 %.not, label %9, label %7

7:                                                ; preds = %1
  store i32 0, ptr %5, align 4, !tbaa !16
  %8 = getelementptr inbounds i8, ptr %2, i64 16
  %.sroa.0.0.copyload = load i32, ptr %8, align 4, !tbaa !18
  %.sroa.11.0..sroa_idx = getelementptr inbounds i8, ptr %2, i64 20
  %.sroa.11.0.copyload = load i32, ptr %.sroa.11.0..sroa_idx, align 4, !tbaa !18
  %.sroa.19.0..sroa_idx = getelementptr inbounds i8, ptr %2, i64 24
  %.sroa.19.0.copyload = load i32, ptr %.sroa.19.0..sroa_idx, align 4, !tbaa !18
  %.sroa.28.0..sroa_idx = getelementptr inbounds i8, ptr %2, i64 28
  %.sroa.28.0.copyload = load i32, ptr %.sroa.28.0..sroa_idx, align 4, !tbaa !18
  %.not90 = icmp eq i32 %6, 2
  br i1 %.not90, label %.thread, label %._crit_edge

._crit_edge:                                      ; preds = %7
  %.phi.trans.insert = getelementptr inbounds i8, ptr %2, i64 32
  %.pre = load i32, ptr %.phi.trans.insert, align 4, !tbaa !19
  br label %70

9:                                                ; preds = %1
  %10 = getelementptr inbounds i8, ptr %2, i64 124
  %11 = load i32, ptr %10, align 4, !tbaa !20
  %12 = getelementptr inbounds i8, ptr %2, i64 120
  %13 = load i32, ptr %12, align 4, !tbaa !21
  %14 = icmp eq i32 %11, %13
  br i1 %14, label %15, label %18

15:                                               ; preds = %9
  %16 = getelementptr inbounds i8, ptr %2, i64 44
  %17 = load i32, ptr %16, align 4, !tbaa !22
  tail call void @mu_layout_row(ptr noundef nonnull %0, i32 noundef %11, ptr noundef null, i32 noundef %17)
  %.pr = load i32, ptr %12, align 4, !tbaa !21
  br label %18

18:                                               ; preds = %15, %9
  %19 = phi i32 [ %.pr, %15 ], [ %13, %9 ]
  %20 = getelementptr inbounds i8, ptr %2, i64 32
  %21 = load i32, ptr %20, align 4, !tbaa !19
  %22 = getelementptr inbounds i8, ptr %2, i64 36
  %23 = load i32, ptr %22, align 4, !tbaa !23
  %24 = icmp sgt i32 %19, 0
  br i1 %24, label %25, label %30

25:                                               ; preds = %18
  %26 = getelementptr inbounds i8, ptr %2, i64 56
  %27 = load i32, ptr %10, align 4, !tbaa !20
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds [16 x i32], ptr %26, i64 0, i64 %28
  br label %32

30:                                               ; preds = %18
  %31 = getelementptr inbounds i8, ptr %2, i64 40
  br label %32

32:                                               ; preds = %30, %25
  %.in = phi ptr [ %29, %25 ], [ %31, %30 ]
  %33 = load i32, ptr %.in, align 4, !tbaa !18
  %34 = getelementptr inbounds i8, ptr %2, i64 44
  %35 = load i32, ptr %34, align 4, !tbaa !22
  %36 = icmp eq i32 %33, 0
  br i1 %36, label %37, label %44

37:                                               ; preds = %32
  %38 = getelementptr inbounds i8, ptr %4, i64 8
  %39 = load i32, ptr %38, align 8, !tbaa !24
  %40 = getelementptr inbounds i8, ptr %4, i64 16
  %41 = load i32, ptr %40, align 8, !tbaa !25
  %42 = shl nsw i32 %41, 1
  %43 = add nsw i32 %42, %39
  br label %44

44:                                               ; preds = %37, %32
  %.sroa.19.0 = phi i32 [ %43, %37 ], [ %33, %32 ]
  %45 = icmp eq i32 %35, 0
  br i1 %45, label %46, label %53

46:                                               ; preds = %44
  %47 = getelementptr inbounds i8, ptr %4, i64 12
  %48 = load i32, ptr %47, align 4, !tbaa !26
  %49 = getelementptr inbounds i8, ptr %4, i64 16
  %50 = load i32, ptr %49, align 8, !tbaa !25
  %51 = shl nsw i32 %50, 1
  %52 = add nsw i32 %51, %48
  br label %53

53:                                               ; preds = %46, %44
  %.sroa.28.0 = phi i32 [ %52, %46 ], [ %35, %44 ]
  %54 = icmp slt i32 %.sroa.19.0, 0
  br i1 %54, label %55, label %60

55:                                               ; preds = %53
  %56 = getelementptr inbounds i8, ptr %2, i64 8
  %57 = load i32, ptr %56, align 4, !tbaa !27
  %reass.sub = sub i32 %.sroa.19.0, %21
  %58 = add i32 %reass.sub, 1
  %59 = add i32 %58, %57
  br label %60

60:                                               ; preds = %55, %53
  %.sroa.19.1 = phi i32 [ %59, %55 ], [ %.sroa.19.0, %53 ]
  %61 = icmp slt i32 %.sroa.28.0, 0
  br i1 %61, label %62, label %67

62:                                               ; preds = %60
  %63 = getelementptr inbounds i8, ptr %2, i64 12
  %64 = load i32, ptr %63, align 4, !tbaa !28
  %reass.sub94 = sub i32 %.sroa.28.0, %23
  %65 = add i32 %reass.sub94, 1
  %66 = add i32 %65, %64
  br label %67

67:                                               ; preds = %62, %60
  %.sroa.28.1 = phi i32 [ %66, %62 ], [ %.sroa.28.0, %60 ]
  %68 = load i32, ptr %10, align 4, !tbaa !20
  %69 = add nsw i32 %68, 1
  store i32 %69, ptr %10, align 4, !tbaa !20
  br label %70

70:                                               ; preds = %._crit_edge, %67
  %71 = phi i32 [ %21, %67 ], [ %.pre, %._crit_edge ]
  %.sroa.28.2 = phi i32 [ %.sroa.28.1, %67 ], [ %.sroa.28.0.copyload, %._crit_edge ]
  %.sroa.19.2 = phi i32 [ %.sroa.19.1, %67 ], [ %.sroa.19.0.copyload, %._crit_edge ]
  %.sroa.11.0 = phi i32 [ %23, %67 ], [ %.sroa.11.0.copyload, %._crit_edge ]
  %.sroa.0.0 = phi i32 [ %21, %67 ], [ %.sroa.0.0.copyload, %._crit_edge ]
  %72 = getelementptr inbounds i8, ptr %4, i64 20
  %73 = load i32, ptr %72, align 4, !tbaa !29
  %74 = add nsw i32 %73, %.sroa.19.2
  %75 = getelementptr inbounds i8, ptr %2, i64 32
  %76 = add nsw i32 %74, %71
  store i32 %76, ptr %75, align 4, !tbaa !19
  %77 = getelementptr inbounds i8, ptr %2, i64 128
  %78 = load i32, ptr %77, align 4, !tbaa !30
  %79 = add nsw i32 %.sroa.11.0, %.sroa.28.2
  %80 = add nsw i32 %79, %73
  %. = tail call i32 @llvm.smax.i32(i32 %78, i32 %80)
  store i32 %., ptr %77, align 4, !tbaa !30
  %81 = load i32, ptr %2, align 4, !tbaa !31
  %82 = add nsw i32 %81, %.sroa.0.0
  %83 = getelementptr inbounds i8, ptr %2, i64 4
  %84 = load i32, ptr %83, align 4, !tbaa !32
  %85 = add nsw i32 %84, %.sroa.11.0
  %86 = getelementptr inbounds i8, ptr %2, i64 48
  %87 = load i32, ptr %86, align 4, !tbaa !33
  %88 = add nsw i32 %82, %.sroa.19.2
  %89 = tail call i32 @llvm.smax.i32(i32 %87, i32 %88)
  store i32 %89, ptr %86, align 4, !tbaa !33
  %90 = getelementptr inbounds i8, ptr %2, i64 52
  %91 = load i32, ptr %90, align 4, !tbaa !34
  %92 = add nsw i32 %85, %.sroa.28.2
  %93 = tail call i32 @llvm.smax.i32(i32 %91, i32 %92)
  store i32 %93, ptr %90, align 4, !tbaa !34
  br label %.thread

.thread:                                          ; preds = %7, %70
  %.sroa.0.0.copyload.sink = phi i32 [ %82, %70 ], [ %.sroa.0.0.copyload, %7 ]
  %.sroa.11.0.copyload.sink = phi i32 [ %85, %70 ], [ %.sroa.11.0.copyload, %7 ]
  %.sroa.19.0.copyload.sink = phi i32 [ %.sroa.19.2, %70 ], [ %.sroa.19.0.copyload, %7 ]
  %.sroa.28.0.copyload.sink = phi i32 [ %.sroa.28.2, %70 ], [ %.sroa.28.0.copyload, %7 ]
  %94 = getelementptr inbounds i8, ptr %0, i64 140
  store i32 %.sroa.0.0.copyload.sink, ptr %94, align 4, !tbaa !18
  %.sroa.11.0..sroa_idx7 = getelementptr inbounds i8, ptr %0, i64 144
  store i32 %.sroa.11.0.copyload.sink, ptr %.sroa.11.0..sroa_idx7, align 4, !tbaa !18
  %.sroa.19.0..sroa_idx16 = getelementptr inbounds i8, ptr %0, i64 148
  store i32 %.sroa.19.0.copyload.sink, ptr %.sroa.19.0..sroa_idx16, align 4, !tbaa !18
  %.sroa.28.0..sroa_idx25 = getelementptr inbounds i8, ptr %0, i64 152
  store i32 %.sroa.28.0.copyload.sink, ptr %.sroa.28.0..sroa_idx25, align 4, !tbaa !18
  %.sroa.3.1 = load i64, ptr %.sroa.19.0..sroa_idx16, align 4
  %.sroa.076.1 = load i64, ptr %94, align 4
  %.fca.0.insert = insertvalue { i64, i64 } poison, i64 %.sroa.076.1, 0
  %.fca.1.insert = insertvalue { i64, i64 } %.fca.0.insert, i64 %.sroa.3.1, 1
  ret { i64, i64 } %.fca.1.insert
}

; Function Attrs: nounwind uwtable
declare hidden ptr @get_layout(ptr noundef) local_unnamed_addr #0

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

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 120}
!6 = !{!"mu_Context", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !7, i64 120, !12, i64 128, !12, i64 132, !12, i64 136, !13, i64 140, !12, i64 156, !12, i64 160, !12, i64 164, !7, i64 168, !7, i64 176, !7, i64 184, !8, i64 192, !12, i64 320, !14, i64 324, !15, i64 262472, !15, i64 262736, !14, i64 263000, !14, i64 263516, !14, i64 263648, !8, i64 265892, !8, i64 266280, !8, i64 269736, !11, i64 270120, !11, i64 270128, !11, i64 270136, !11, i64 270144, !12, i64 270152, !12, i64 270156, !12, i64 270160, !12, i64 270164, !8, i64 270168}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"", !7, i64 0, !11, i64 8, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !12, i64 32, !12, i64 36, !8, i64 40}
!11 = !{!"", !12, i64 0, !12, i64 4}
!12 = !{!"int", !8, i64 0}
!13 = !{!"", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12}
!14 = !{!"", !12, i64 0, !8, i64 4}
!15 = !{!"", !12, i64 0, !8, i64 8}
!16 = !{!17, !12, i64 132}
!17 = !{!"", !13, i64 0, !13, i64 16, !11, i64 32, !11, i64 40, !11, i64 48, !8, i64 56, !12, i64 120, !12, i64 124, !12, i64 128, !12, i64 132, !12, i64 136}
!18 = !{!12, !12, i64 0}
!19 = !{!17, !12, i64 32}
!20 = !{!17, !12, i64 124}
!21 = !{!17, !12, i64 120}
!22 = !{!17, !12, i64 44}
!23 = !{!17, !12, i64 36}
!24 = !{!10, !12, i64 8}
!25 = !{!10, !12, i64 16}
!26 = !{!10, !12, i64 12}
!27 = !{!17, !12, i64 8}
!28 = !{!17, !12, i64 12}
!29 = !{!10, !12, i64 20}
!30 = !{!17, !12, i64 128}
!31 = !{!17, !12, i64 0}
!32 = !{!17, !12, i64 4}
!33 = !{!17, !12, i64 48}
!34 = !{!17, !12, i64 52}


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