; 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_Container = type { ptr, ptr, %struct.mu_Rect, %struct.mu_Rect, %struct.mu_Vec2, %struct.mu_Vec2, i32, i32 }
%struct.mu_Vec2 = type { 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_PoolItem = type { i32, i32 }

@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [43 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [93 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [8 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local { i64, i64 } @mu_rect(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #0

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

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #2

; Function Attrs: noreturn nounwind
declare void @abort() #3

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

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

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

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

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #5

; Function Attrs: nounwind uwtable
declare hidden ptr @get_container(ptr noundef, i32 noundef, i32 noundef) #0

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @mu_begin_window_ex(ptr noundef %0, ptr noundef %1, i64 %2, i64 %3, i32 noundef %4) #0 {
  %6 = alloca i32, align 4
  %7 = alloca %struct.mu_Rect, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %struct.mu_Rect, align 4
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca %struct.mu_Rect, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca %struct.mu_Rect, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca %struct.mu_Rect, align 4
  %22 = alloca %struct.mu_Rect, align 4
  %23 = getelementptr inbounds { i64, i64 }, ptr %7, i32 0, i32 0
  store i64 %2, ptr %23, align 4
  %24 = getelementptr inbounds { i64, i64 }, ptr %7, i32 0, i32 1
  store i64 %3, ptr %24, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store i32 %4, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %25 = load ptr, ptr %8, align 8, !tbaa !5
  %26 = load ptr, ptr %9, align 8, !tbaa !5
  %27 = load ptr, ptr %9, align 8, !tbaa !5
  %28 = call i64 @strlen(ptr noundef %27) #7
  %29 = trunc i64 %28 to i32
  %30 = call i32 @mu_get_id(ptr noundef %25, ptr noundef %26, i32 noundef %29)
  store i32 %30, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %31 = load ptr, ptr %8, align 8, !tbaa !5
  %32 = load i32, ptr %12, align 4, !tbaa !9
  %33 = load i32, ptr %10, align 4, !tbaa !9
  %34 = call ptr @get_container(ptr noundef %31, i32 noundef %32, i32 noundef %33)
  store ptr %34, ptr %13, align 8, !tbaa !5
  %35 = load ptr, ptr %13, align 8, !tbaa !5
  %36 = icmp ne ptr %35, null
  br i1 %36, label %37, label %42

37:                                               ; preds = %5
  %38 = load ptr, ptr %13, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.mu_Container, ptr %38, i32 0, i32 7
  %40 = load i32, ptr %39, align 4, !tbaa !11
  %41 = icmp ne i32 %40, 0
  br i1 %41, label %43, label %42

42:                                               ; preds = %37, %5
  store i32 0, ptr %6, align 4
  store i32 1, ptr %14, align 4
  br label %422

43:                                               ; preds = %37
  br label %44

44:                                               ; preds = %43
  br label %45

45:                                               ; preds = %44
  %46 = load ptr, ptr %8, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.mu_Context, ptr %46, i32 0, i32 21
  %48 = getelementptr inbounds %struct.anon.3, ptr %47, i32 0, i32 0
  %49 = load i32, ptr %48, align 4, !tbaa !15
  %50 = icmp slt i32 %49, 32
  br i1 %50, label %54, label %51

51:                                               ; preds = %45
  %52 = load ptr, ptr @stderr, align 8, !tbaa !5
  %53 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %52, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 1088, ptr noundef @.str.7) #6
  call void @abort() #8
  unreachable

54:                                               ; preds = %45
  br label %55

55:                                               ; preds = %54
  br label %56

56:                                               ; preds = %55
  %57 = load i32, ptr %12, align 4, !tbaa !9
  %58 = load ptr, ptr %8, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.mu_Context, ptr %58, i32 0, i32 21
  %60 = getelementptr inbounds %struct.anon.3, ptr %59, i32 0, i32 1
  %61 = load ptr, ptr %8, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.mu_Context, ptr %61, i32 0, i32 21
  %63 = getelementptr inbounds %struct.anon.3, ptr %62, i32 0, i32 0
  %64 = load i32, ptr %63, align 4, !tbaa !15
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds [32 x i32], ptr %60, i64 0, i64 %65
  store i32 %57, ptr %66, align 4, !tbaa !9
  %67 = load ptr, ptr %8, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.mu_Context, ptr %67, i32 0, i32 21
  %69 = getelementptr inbounds %struct.anon.3, ptr %68, i32 0, i32 0
  %70 = load i32, ptr %69, align 4, !tbaa !15
  %71 = add nsw i32 %70, 1
  store i32 %71, ptr %69, align 4, !tbaa !15
  br label %72

72:                                               ; preds = %56
  br label %73

73:                                               ; preds = %72
  %74 = load ptr, ptr %13, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.mu_Container, ptr %74, i32 0, i32 2
  %76 = getelementptr inbounds %struct.mu_Rect, ptr %75, i32 0, i32 2
  %77 = load i32, ptr %76, align 8, !tbaa !20
  %78 = icmp eq i32 %77, 0
  br i1 %78, label %79, label %82

79:                                               ; preds = %73
  %80 = load ptr, ptr %13, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.mu_Container, ptr %80, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %81, ptr align 4 %7, i64 16, i1 false), !tbaa.struct !21
  br label %82

82:                                               ; preds = %79, %73
  %83 = load ptr, ptr %8, align 8, !tbaa !5
  %84 = load ptr, ptr %13, align 8, !tbaa !5
  call void @begin_root_container(ptr noundef %83, ptr noundef %84)
  %85 = load ptr, ptr %13, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.mu_Container, ptr %85, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %11, ptr align 8 %86, i64 16, i1 false), !tbaa.struct !21
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %7, ptr align 4 %11, i64 16, i1 false), !tbaa.struct !21
  %87 = load i32, ptr %10, align 4, !tbaa !9
  %88 = xor i32 %87, -1
  %89 = and i32 %88, 8
  %90 = icmp ne i32 %89, 0
  br i1 %90, label %91, label %100

91:                                               ; preds = %82
  %92 = load ptr, ptr %8, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.mu_Context, ptr %92, i32 0, i32 2
  %94 = load ptr, ptr %93, align 8, !tbaa !22
  %95 = load ptr, ptr %8, align 8, !tbaa !5
  %96 = getelementptr inbounds { i64, i64 }, ptr %7, i32 0, i32 0
  %97 = load i64, ptr %96, align 4
  %98 = getelementptr inbounds { i64, i64 }, ptr %7, i32 0, i32 1
  %99 = load i64, ptr %98, align 4
  call void %94(ptr noundef %95, i64 %97, i64 %99, i32 noundef 2)
  br label %100

100:                                              ; preds = %91, %82
  %101 = load i32, ptr %10, align 4, !tbaa !9
  %102 = xor i32 %101, -1
  %103 = and i32 %102, 128
  %104 = icmp ne i32 %103, 0
  br i1 %104, label %105, label %246

105:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %15, ptr align 4 %7, i64 16, i1 false), !tbaa.struct !21
  %106 = load ptr, ptr %8, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.mu_Context, ptr %106, i32 0, i32 4
  %108 = load ptr, ptr %107, align 8, !tbaa !23
  %109 = getelementptr inbounds %struct.mu_Style, ptr %108, i32 0, i32 5
  %110 = load i32, ptr %109, align 4, !tbaa !24
  %111 = getelementptr inbounds %struct.mu_Rect, ptr %15, i32 0, i32 3
  store i32 %110, ptr %111, align 4, !tbaa !25
  %112 = load ptr, ptr %8, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.mu_Context, ptr %112, i32 0, i32 2
  %114 = load ptr, ptr %113, align 8, !tbaa !22
  %115 = load ptr, ptr %8, align 8, !tbaa !5
  %116 = getelementptr inbounds { i64, i64 }, ptr %15, i32 0, i32 0
  %117 = load i64, ptr %116, align 4
  %118 = getelementptr inbounds { i64, i64 }, ptr %15, i32 0, i32 1
  %119 = load i64, ptr %118, align 4
  call void %114(ptr noundef %115, i64 %117, i64 %119, i32 noundef 3)
  %120 = load i32, ptr %10, align 4, !tbaa !9
  %121 = xor i32 %120, -1
  %122 = and i32 %121, 128
  %123 = icmp ne i32 %122, 0
  br i1 %123, label %124, label %181

124:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %125 = load ptr, ptr %8, align 8, !tbaa !5
  %126 = call i32 @mu_get_id(ptr noundef %125, ptr noundef @.str.18, i32 noundef 6)
  store i32 %126, ptr %16, align 4, !tbaa !9
  %127 = load ptr, ptr %8, align 8, !tbaa !5
  %128 = load i32, ptr %16, align 4, !tbaa !9
  %129 = load i32, ptr %10, align 4, !tbaa !9
  %130 = getelementptr inbounds { i64, i64 }, ptr %15, i32 0, i32 0
  %131 = load i64, ptr %130, align 4
  %132 = getelementptr inbounds { i64, i64 }, ptr %15, i32 0, i32 1
  %133 = load i64, ptr %132, align 4
  call void @mu_update_control(ptr noundef %127, i32 noundef %128, i64 %131, i64 %133, i32 noundef %129)
  %134 = load ptr, ptr %8, align 8, !tbaa !5
  %135 = load ptr, ptr %9, align 8, !tbaa !5
  %136 = load i32, ptr %10, align 4, !tbaa !9
  %137 = getelementptr inbounds { i64, i64 }, ptr %15, i32 0, i32 0
  %138 = load i64, ptr %137, align 4
  %139 = getelementptr inbounds { i64, i64 }, ptr %15, i32 0, i32 1
  %140 = load i64, ptr %139, align 4
  call void @mu_draw_control_text(ptr noundef %134, ptr noundef %135, i64 %138, i64 %140, i32 noundef 4, i32 noundef %136)
  %141 = load i32, ptr %16, align 4, !tbaa !9
  %142 = load ptr, ptr %8, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.mu_Context, ptr %142, i32 0, i32 6
  %144 = load i32, ptr %143, align 4, !tbaa !26
  %145 = icmp eq i32 %141, %144
  br i1 %145, label %146, label %170

146:                                              ; preds = %124
  %147 = load ptr, ptr %8, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.mu_Context, ptr %147, i32 0, i32 30
  %149 = load i32, ptr %148, align 8, !tbaa !27
  %150 = icmp eq i32 %149, 1
  br i1 %150, label %151, label %170

151:                                              ; preds = %146
  %152 = load ptr, ptr %8, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.mu_Context, ptr %152, i32 0, i32 28
  %154 = getelementptr inbounds %struct.mu_Vec2, ptr %153, i32 0, i32 0
  %155 = load i32, ptr %154, align 8, !tbaa !28
  %156 = load ptr, ptr %13, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.mu_Container, ptr %156, i32 0, i32 2
  %158 = getelementptr inbounds %struct.mu_Rect, ptr %157, i32 0, i32 0
  %159 = load i32, ptr %158, align 8, !tbaa !29
  %160 = add nsw i32 %159, %155
  store i32 %160, ptr %158, align 8, !tbaa !29
  %161 = load ptr, ptr %8, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.mu_Context, ptr %161, i32 0, i32 28
  %163 = getelementptr inbounds %struct.mu_Vec2, ptr %162, i32 0, i32 1
  %164 = load i32, ptr %163, align 4, !tbaa !30
  %165 = load ptr, ptr %13, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.mu_Container, ptr %165, i32 0, i32 2
  %167 = getelementptr inbounds %struct.mu_Rect, ptr %166, i32 0, i32 1
  %168 = load i32, ptr %167, align 4, !tbaa !31
  %169 = add nsw i32 %168, %164
  store i32 %169, ptr %167, align 4, !tbaa !31
  br label %170

170:                                              ; preds = %151, %146, %124
  %171 = getelementptr inbounds %struct.mu_Rect, ptr %15, i32 0, i32 3
  %172 = load i32, ptr %171, align 4, !tbaa !25
  %173 = getelementptr inbounds %struct.mu_Rect, ptr %11, i32 0, i32 1
  %174 = load i32, ptr %173, align 4, !tbaa !32
  %175 = add nsw i32 %174, %172
  store i32 %175, ptr %173, align 4, !tbaa !32
  %176 = getelementptr inbounds %struct.mu_Rect, ptr %15, i32 0, i32 3
  %177 = load i32, ptr %176, align 4, !tbaa !25
  %178 = getelementptr inbounds %struct.mu_Rect, ptr %11, i32 0, i32 3
  %179 = load i32, ptr %178, align 4, !tbaa !25
  %180 = sub nsw i32 %179, %177
  store i32 %180, ptr %178, align 4, !tbaa !25
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %181

181:                                              ; preds = %170, %105
  %182 = load i32, ptr %10, align 4, !tbaa !9
  %183 = xor i32 %182, -1
  %184 = and i32 %183, 64
  %185 = icmp ne i32 %184, 0
  br i1 %185, label %186, label %245

186:                                              ; preds = %181
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  %187 = load ptr, ptr %8, align 8, !tbaa !5
  %188 = call i32 @mu_get_id(ptr noundef %187, ptr noundef @.str.19, i32 noundef 6)
  store i32 %188, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #6
  %189 = getelementptr inbounds %struct.mu_Rect, ptr %15, i32 0, i32 0
  %190 = load i32, ptr %189, align 4, !tbaa !33
  %191 = getelementptr inbounds %struct.mu_Rect, ptr %15, i32 0, i32 2
  %192 = load i32, ptr %191, align 4, !tbaa !34
  %193 = add nsw i32 %190, %192
  %194 = getelementptr inbounds %struct.mu_Rect, ptr %15, i32 0, i32 3
  %195 = load i32, ptr %194, align 4, !tbaa !25
  %196 = sub nsw i32 %193, %195
  %197 = getelementptr inbounds %struct.mu_Rect, ptr %15, i32 0, i32 1
  %198 = load i32, ptr %197, align 4, !tbaa !32
  %199 = getelementptr inbounds %struct.mu_Rect, ptr %15, i32 0, i32 3
  %200 = load i32, ptr %199, align 4, !tbaa !25
  %201 = getelementptr inbounds %struct.mu_Rect, ptr %15, i32 0, i32 3
  %202 = load i32, ptr %201, align 4, !tbaa !25
  %203 = call { i64, i64 } @mu_rect(i32 noundef %196, i32 noundef %198, i32 noundef %200, i32 noundef %202)
  %204 = getelementptr inbounds { i64, i64 }, ptr %18, i32 0, i32 0
  %205 = extractvalue { i64, i64 } %203, 0
  store i64 %205, ptr %204, align 4
  %206 = getelementptr inbounds { i64, i64 }, ptr %18, i32 0, i32 1
  %207 = extractvalue { i64, i64 } %203, 1
  store i64 %207, ptr %206, align 4
  %208 = getelementptr inbounds %struct.mu_Rect, ptr %18, i32 0, i32 2
  %209 = load i32, ptr %208, align 4, !tbaa !34
  %210 = getelementptr inbounds %struct.mu_Rect, ptr %15, i32 0, i32 2
  %211 = load i32, ptr %210, align 4, !tbaa !34
  %212 = sub nsw i32 %211, %209
  store i32 %212, ptr %210, align 4, !tbaa !34
  %213 = load ptr, ptr %8, align 8, !tbaa !5
  %214 = load ptr, ptr %8, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.mu_Context, ptr %214, i32 0, i32 4
  %216 = load ptr, ptr %215, align 8, !tbaa !23
  %217 = getelementptr inbounds %struct.mu_Style, ptr %216, i32 0, i32 8
  %218 = getelementptr inbounds [14 x %struct.mu_Color], ptr %217, i64 0, i64 4
  %219 = getelementptr inbounds { i64, i64 }, ptr %18, i32 0, i32 0
  %220 = load i64, ptr %219, align 4
  %221 = getelementptr inbounds { i64, i64 }, ptr %18, i32 0, i32 1
  %222 = load i64, ptr %221, align 4
  %223 = load i32, ptr %218, align 8
  call void @mu_draw_icon(ptr noundef %213, i32 noundef 1, i64 %220, i64 %222, i32 %223)
  %224 = load ptr, ptr %8, align 8, !tbaa !5
  %225 = load i32, ptr %17, align 4, !tbaa !9
  %226 = load i32, ptr %10, align 4, !tbaa !9
  %227 = getelementptr inbounds { i64, i64 }, ptr %18, i32 0, i32 0
  %228 = load i64, ptr %227, align 4
  %229 = getelementptr inbounds { i64, i64 }, ptr %18, i32 0, i32 1
  %230 = load i64, ptr %229, align 4
  call void @mu_update_control(ptr noundef %224, i32 noundef %225, i64 %228, i64 %230, i32 noundef %226)
  %231 = load ptr, ptr %8, align 8, !tbaa !5
  %232 = getelementptr inbounds %struct.mu_Context, ptr %231, i32 0, i32 31
  %233 = load i32, ptr %232, align 4, !tbaa !35
  %234 = icmp eq i32 %233, 1
  br i1 %234, label %235, label %244

235:                                              ; preds = %186
  %236 = load i32, ptr %17, align 4, !tbaa !9
  %237 = load ptr, ptr %8, align 8, !tbaa !5
  %238 = getelementptr inbounds %struct.mu_Context, ptr %237, i32 0, i32 6
  %239 = load i32, ptr %238, align 4, !tbaa !26
  %240 = icmp eq i32 %236, %239
  br i1 %240, label %241, label %244

241:                                              ; preds = %235
  %242 = load ptr, ptr %13, align 8, !tbaa !5
  %243 = getelementptr inbounds %struct.mu_Container, ptr %242, i32 0, i32 7
  store i32 0, ptr %243, align 4, !tbaa !11
  br label %244

244:                                              ; preds = %241, %235, %186
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %245

245:                                              ; preds = %244, %181
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #6
  br label %246

246:                                              ; preds = %245, %100
  %247 = load ptr, ptr %8, align 8, !tbaa !5
  %248 = load ptr, ptr %13, align 8, !tbaa !5
  %249 = load i32, ptr %10, align 4, !tbaa !9
  %250 = getelementptr inbounds { i64, i64 }, ptr %11, i32 0, i32 0
  %251 = load i64, ptr %250, align 4
  %252 = getelementptr inbounds { i64, i64 }, ptr %11, i32 0, i32 1
  %253 = load i64, ptr %252, align 4
  call void @push_container_body(ptr noundef %247, ptr noundef %248, i64 %251, i64 %253, i32 noundef %249)
  %254 = load i32, ptr %10, align 4, !tbaa !9
  %255 = xor i32 %254, -1
  %256 = and i32 %255, 16
  %257 = icmp ne i32 %256, 0
  br i1 %257, label %258, label %358

258:                                              ; preds = %246
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  %259 = load ptr, ptr %8, align 8, !tbaa !5
  %260 = getelementptr inbounds %struct.mu_Context, ptr %259, i32 0, i32 4
  %261 = load ptr, ptr %260, align 8, !tbaa !23
  %262 = getelementptr inbounds %struct.mu_Style, ptr %261, i32 0, i32 5
  %263 = load i32, ptr %262, align 4, !tbaa !24
  store i32 %263, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  %264 = load ptr, ptr %8, align 8, !tbaa !5
  %265 = call i32 @mu_get_id(ptr noundef %264, ptr noundef @.str.20, i32 noundef 7)
  store i32 %265, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #6
  %266 = getelementptr inbounds %struct.mu_Rect, ptr %7, i32 0, i32 0
  %267 = load i32, ptr %266, align 4, !tbaa !33
  %268 = getelementptr inbounds %struct.mu_Rect, ptr %7, i32 0, i32 2
  %269 = load i32, ptr %268, align 4, !tbaa !34
  %270 = add nsw i32 %267, %269
  %271 = load i32, ptr %19, align 4, !tbaa !9
  %272 = sub nsw i32 %270, %271
  %273 = getelementptr inbounds %struct.mu_Rect, ptr %7, i32 0, i32 1
  %274 = load i32, ptr %273, align 4, !tbaa !32
  %275 = getelementptr inbounds %struct.mu_Rect, ptr %7, i32 0, i32 3
  %276 = load i32, ptr %275, align 4, !tbaa !25
  %277 = add nsw i32 %274, %276
  %278 = load i32, ptr %19, align 4, !tbaa !9
  %279 = sub nsw i32 %277, %278
  %280 = load i32, ptr %19, align 4, !tbaa !9
  %281 = load i32, ptr %19, align 4, !tbaa !9
  %282 = call { i64, i64 } @mu_rect(i32 noundef %272, i32 noundef %279, i32 noundef %280, i32 noundef %281)
  %283 = getelementptr inbounds { i64, i64 }, ptr %21, i32 0, i32 0
  %284 = extractvalue { i64, i64 } %282, 0
  store i64 %284, ptr %283, align 4
  %285 = getelementptr inbounds { i64, i64 }, ptr %21, i32 0, i32 1
  %286 = extractvalue { i64, i64 } %282, 1
  store i64 %286, ptr %285, align 4
  %287 = load ptr, ptr %8, align 8, !tbaa !5
  %288 = load i32, ptr %20, align 4, !tbaa !9
  %289 = load i32, ptr %10, align 4, !tbaa !9
  %290 = getelementptr inbounds { i64, i64 }, ptr %21, i32 0, i32 0
  %291 = load i64, ptr %290, align 4
  %292 = getelementptr inbounds { i64, i64 }, ptr %21, i32 0, i32 1
  %293 = load i64, ptr %292, align 4
  call void @mu_update_control(ptr noundef %287, i32 noundef %288, i64 %291, i64 %293, i32 noundef %289)
  %294 = load i32, ptr %20, align 4, !tbaa !9
  %295 = load ptr, ptr %8, align 8, !tbaa !5
  %296 = getelementptr inbounds %struct.mu_Context, ptr %295, i32 0, i32 6
  %297 = load i32, ptr %296, align 4, !tbaa !26
  %298 = icmp eq i32 %294, %297
  br i1 %298, label %299, label %357

299:                                              ; preds = %258
  %300 = load ptr, ptr %8, align 8, !tbaa !5
  %301 = getelementptr inbounds %struct.mu_Context, ptr %300, i32 0, i32 30
  %302 = load i32, ptr %301, align 8, !tbaa !27
  %303 = icmp eq i32 %302, 1
  br i1 %303, label %304, label %357

304:                                              ; preds = %299
  %305 = load ptr, ptr %13, align 8, !tbaa !5
  %306 = getelementptr inbounds %struct.mu_Container, ptr %305, i32 0, i32 2
  %307 = getelementptr inbounds %struct.mu_Rect, ptr %306, i32 0, i32 2
  %308 = load i32, ptr %307, align 8, !tbaa !20
  %309 = load ptr, ptr %8, align 8, !tbaa !5
  %310 = getelementptr inbounds %struct.mu_Context, ptr %309, i32 0, i32 28
  %311 = getelementptr inbounds %struct.mu_Vec2, ptr %310, i32 0, i32 0
  %312 = load i32, ptr %311, align 8, !tbaa !28
  %313 = add nsw i32 %308, %312
  %314 = icmp sgt i32 96, %313
  br i1 %314, label %315, label %316

315:                                              ; preds = %304
  br label %326

316:                                              ; preds = %304
  %317 = load ptr, ptr %13, align 8, !tbaa !5
  %318 = getelementptr inbounds %struct.mu_Container, ptr %317, i32 0, i32 2
  %319 = getelementptr inbounds %struct.mu_Rect, ptr %318, i32 0, i32 2
  %320 = load i32, ptr %319, align 8, !tbaa !20
  %321 = load ptr, ptr %8, align 8, !tbaa !5
  %322 = getelementptr inbounds %struct.mu_Context, ptr %321, i32 0, i32 28
  %323 = getelementptr inbounds %struct.mu_Vec2, ptr %322, i32 0, i32 0
  %324 = load i32, ptr %323, align 8, !tbaa !28
  %325 = add nsw i32 %320, %324
  br label %326

326:                                              ; preds = %316, %315
  %327 = phi i32 [ 96, %315 ], [ %325, %316 ]
  %328 = load ptr, ptr %13, align 8, !tbaa !5
  %329 = getelementptr inbounds %struct.mu_Container, ptr %328, i32 0, i32 2
  %330 = getelementptr inbounds %struct.mu_Rect, ptr %329, i32 0, i32 2
  store i32 %327, ptr %330, align 8, !tbaa !20
  %331 = load ptr, ptr %13, align 8, !tbaa !5
  %332 = getelementptr inbounds %struct.mu_Container, ptr %331, i32 0, i32 2
  %333 = getelementptr inbounds %struct.mu_Rect, ptr %332, i32 0, i32 3
  %334 = load i32, ptr %333, align 4, !tbaa !36
  %335 = load ptr, ptr %8, align 8, !tbaa !5
  %336 = getelementptr inbounds %struct.mu_Context, ptr %335, i32 0, i32 28
  %337 = getelementptr inbounds %struct.mu_Vec2, ptr %336, i32 0, i32 1
  %338 = load i32, ptr %337, align 4, !tbaa !30
  %339 = add nsw i32 %334, %338
  %340 = icmp sgt i32 64, %339
  br i1 %340, label %341, label %342

341:                                              ; preds = %326
  br label %352

342:                                              ; preds = %326
  %343 = load ptr, ptr %13, align 8, !tbaa !5
  %344 = getelementptr inbounds %struct.mu_Container, ptr %343, i32 0, i32 2
  %345 = getelementptr inbounds %struct.mu_Rect, ptr %344, i32 0, i32 3
  %346 = load i32, ptr %345, align 4, !tbaa !36
  %347 = load ptr, ptr %8, align 8, !tbaa !5
  %348 = getelementptr inbounds %struct.mu_Context, ptr %347, i32 0, i32 28
  %349 = getelementptr inbounds %struct.mu_Vec2, ptr %348, i32 0, i32 1
  %350 = load i32, ptr %349, align 4, !tbaa !30
  %351 = add nsw i32 %346, %350
  br label %352

352:                                              ; preds = %342, %341
  %353 = phi i32 [ 64, %341 ], [ %351, %342 ]
  %354 = load ptr, ptr %13, align 8, !tbaa !5
  %355 = getelementptr inbounds %struct.mu_Container, ptr %354, i32 0, i32 2
  %356 = getelementptr inbounds %struct.mu_Rect, ptr %355, i32 0, i32 3
  store i32 %353, ptr %356, align 4, !tbaa !36
  br label %357

357:                                              ; preds = %352, %299, %258
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %358

358:                                              ; preds = %357, %246
  %359 = load i32, ptr %10, align 4, !tbaa !9
  %360 = and i32 %359, 512
  %361 = icmp ne i32 %360, 0
  br i1 %361, label %362, label %396

362:                                              ; preds = %358
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #6
  %363 = load ptr, ptr %8, align 8, !tbaa !5
  %364 = call ptr @get_layout(ptr noundef %363)
  %365 = getelementptr inbounds %struct.mu_Layout, ptr %364, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %22, ptr align 4 %365, i64 16, i1 false), !tbaa.struct !21
  %366 = load ptr, ptr %13, align 8, !tbaa !5
  %367 = getelementptr inbounds %struct.mu_Container, ptr %366, i32 0, i32 4
  %368 = getelementptr inbounds %struct.mu_Vec2, ptr %367, i32 0, i32 0
  %369 = load i32, ptr %368, align 8, !tbaa !37
  %370 = load ptr, ptr %13, align 8, !tbaa !5
  %371 = getelementptr inbounds %struct.mu_Container, ptr %370, i32 0, i32 2
  %372 = getelementptr inbounds %struct.mu_Rect, ptr %371, i32 0, i32 2
  %373 = load i32, ptr %372, align 8, !tbaa !20
  %374 = getelementptr inbounds %struct.mu_Rect, ptr %22, i32 0, i32 2
  %375 = load i32, ptr %374, align 4, !tbaa !34
  %376 = sub nsw i32 %373, %375
  %377 = add nsw i32 %369, %376
  %378 = load ptr, ptr %13, align 8, !tbaa !5
  %379 = getelementptr inbounds %struct.mu_Container, ptr %378, i32 0, i32 2
  %380 = getelementptr inbounds %struct.mu_Rect, ptr %379, i32 0, i32 2
  store i32 %377, ptr %380, align 8, !tbaa !20
  %381 = load ptr, ptr %13, align 8, !tbaa !5
  %382 = getelementptr inbounds %struct.mu_Container, ptr %381, i32 0, i32 4
  %383 = getelementptr inbounds %struct.mu_Vec2, ptr %382, i32 0, i32 1
  %384 = load i32, ptr %383, align 4, !tbaa !38
  %385 = load ptr, ptr %13, align 8, !tbaa !5
  %386 = getelementptr inbounds %struct.mu_Container, ptr %385, i32 0, i32 2
  %387 = getelementptr inbounds %struct.mu_Rect, ptr %386, i32 0, i32 3
  %388 = load i32, ptr %387, align 4, !tbaa !36
  %389 = getelementptr inbounds %struct.mu_Rect, ptr %22, i32 0, i32 3
  %390 = load i32, ptr %389, align 4, !tbaa !25
  %391 = sub nsw i32 %388, %390
  %392 = add nsw i32 %384, %391
  %393 = load ptr, ptr %13, align 8, !tbaa !5
  %394 = getelementptr inbounds %struct.mu_Container, ptr %393, i32 0, i32 2
  %395 = getelementptr inbounds %struct.mu_Rect, ptr %394, i32 0, i32 3
  store i32 %392, ptr %395, align 4, !tbaa !36
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #6
  br label %396

396:                                              ; preds = %362, %358
  %397 = load i32, ptr %10, align 4, !tbaa !9
  %398 = and i32 %397, 1024
  %399 = icmp ne i32 %398, 0
  br i1 %399, label %400, label %414

400:                                              ; preds = %396
  %401 = load ptr, ptr %8, align 8, !tbaa !5
  %402 = getelementptr inbounds %struct.mu_Context, ptr %401, i32 0, i32 31
  %403 = load i32, ptr %402, align 4, !tbaa !35
  %404 = icmp ne i32 %403, 0
  br i1 %404, label %405, label %414

405:                                              ; preds = %400
  %406 = load ptr, ptr %8, align 8, !tbaa !5
  %407 = getelementptr inbounds %struct.mu_Context, ptr %406, i32 0, i32 12
  %408 = load ptr, ptr %407, align 8, !tbaa !39
  %409 = load ptr, ptr %13, align 8, !tbaa !5
  %410 = icmp ne ptr %408, %409
  br i1 %410, label %411, label %414

411:                                              ; preds = %405
  %412 = load ptr, ptr %13, align 8, !tbaa !5
  %413 = getelementptr inbounds %struct.mu_Container, ptr %412, i32 0, i32 7
  store i32 0, ptr %413, align 4, !tbaa !11
  br label %414

414:                                              ; preds = %411, %405, %400, %396
  %415 = load ptr, ptr %8, align 8, !tbaa !5
  %416 = load ptr, ptr %13, align 8, !tbaa !5
  %417 = getelementptr inbounds %struct.mu_Container, ptr %416, i32 0, i32 3
  %418 = getelementptr inbounds { i64, i64 }, ptr %417, i32 0, i32 0
  %419 = load i64, ptr %418, align 8
  %420 = getelementptr inbounds { i64, i64 }, ptr %417, i32 0, i32 1
  %421 = load i64, ptr %420, align 8
  call void @mu_push_clip_rect(ptr noundef %415, i64 %419, i64 %421)
  store i32 1, ptr %6, align 4
  store i32 1, ptr %14, align 4
  br label %422

422:                                              ; preds = %414, %42
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #6
  %423 = load i32, ptr %6, align 4
  ret i32 %423
}

; Function Attrs: nounwind uwtable
declare hidden void @begin_root_container(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @push_container_body(ptr noundef, ptr noundef, i64, i64, i32 noundef) #0

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 nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nounwind willreturn memory(read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
attributes #7 = { nounwind willreturn memory(read) }
attributes #8 = { noreturn nounwind }

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

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


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

@stderr = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [43 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [93 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [8 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local { i64, i64 } @mu_rect(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #1

; Function Attrs: noreturn nounwind
declare void @abort() local_unnamed_addr #2

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #3

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @mu_begin_window_ex(ptr noundef %0, ptr noundef %1, i64 %2, i64 %3, i32 noundef %4) local_unnamed_addr #0 {
  %6 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %1) #5
  %7 = trunc i64 %6 to i32
  %8 = tail call i32 @mu_get_id(ptr noundef %0, ptr noundef %1, i32 noundef %7)
  %9 = tail call ptr @get_container(ptr noundef %0, i32 noundef %8, i32 noundef %4)
  %.not = icmp eq ptr %9, null
  br i1 %.not, label %131, label %10

10:                                               ; preds = %5
  %11 = getelementptr inbounds i8, ptr %9, i64 68
  %12 = load i32, ptr %11, align 4, !tbaa !5
  %.not171 = icmp eq i32 %12, 0
  br i1 %.not171, label %131, label %13

13:                                               ; preds = %10
  %14 = getelementptr inbounds i8, ptr %0, i64 263516
  %15 = load i32, ptr %14, align 4, !tbaa !13
  %16 = icmp slt i32 %15, 32
  br i1 %16, label %20, label %17

17:                                               ; preds = %13
  %18 = load ptr, ptr @stderr, align 8, !tbaa !18
  %19 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 1088, ptr noundef nonnull @.str.7) #6
  tail call void @abort() #7
  unreachable

20:                                               ; preds = %13
  %21 = getelementptr inbounds i8, ptr %0, i64 263520
  %22 = sext i32 %15 to i64
  %23 = getelementptr inbounds [32 x i32], ptr %21, i64 0, i64 %22
  store i32 %8, ptr %23, align 4, !tbaa !19
  %24 = load i32, ptr %14, align 4, !tbaa !13
  %25 = add nsw i32 %24, 1
  store i32 %25, ptr %14, align 4, !tbaa !13
  %26 = getelementptr inbounds i8, ptr %9, i64 16
  %27 = getelementptr inbounds i8, ptr %9, i64 24
  %28 = load i32, ptr %27, align 8, !tbaa !20
  %29 = icmp eq i32 %28, 0
  br i1 %29, label %30, label %31

30:                                               ; preds = %20
  store i64 %2, ptr %26, align 8
  store i64 %3, ptr %27, align 8
  br label %31

31:                                               ; preds = %30, %20
  tail call void @begin_root_container(ptr noundef nonnull %0, ptr noundef nonnull %9)
  %.sroa.077.0.copyload = load i64, ptr %26, align 8
  %.sroa.077.sroa.5.0.extract.shift = lshr i64 %.sroa.077.0.copyload, 32
  %.sroa.077.sroa.5.0.extract.trunc = trunc nuw i64 %.sroa.077.sroa.5.0.extract.shift to i32
  %.sroa.7.0.copyload = load i64, ptr %27, align 8
  %.sroa.077.sroa.0.0.insert.ext82 = and i64 %.sroa.077.0.copyload, 4294967295
  %.sroa.0144.sroa.0.0.extract.trunc152 = trunc i64 %.sroa.077.0.copyload to i32
  %32 = and i32 %4, 8
  %.not172.not = icmp eq i32 %32, 0
  br i1 %.not172.not, label %33, label %36

33:                                               ; preds = %31
  %34 = getelementptr inbounds i8, ptr %0, i64 16
  %35 = load ptr, ptr %34, align 8, !tbaa !21
  tail call void %35(ptr noundef nonnull %0, i64 %.sroa.077.0.copyload, i64 %.sroa.7.0.copyload, i32 noundef 2) #8
  br label %36

36:                                               ; preds = %33, %31
  %37 = and i32 %4, 128
  %.not173.not = icmp eq i32 %37, 0
  br i1 %.not173.not, label %38, label %79

38:                                               ; preds = %36
  %39 = getelementptr inbounds i8, ptr %0, i64 120
  %40 = load ptr, ptr %39, align 8, !tbaa !22
  %41 = getelementptr inbounds i8, ptr %40, i64 28
  %42 = load i32, ptr %41, align 4, !tbaa !23
  %.sroa.8.12.insert.ext = zext i32 %42 to i64
  %.sroa.8.12.insert.shift = shl nuw i64 %.sroa.8.12.insert.ext, 32
  %.sroa.8.12.insert.mask = and i64 %.sroa.7.0.copyload, 4294967295
  %.sroa.8.12.insert.insert = or disjoint i64 %.sroa.8.12.insert.shift, %.sroa.8.12.insert.mask
  %43 = getelementptr inbounds i8, ptr %0, i64 16
  %44 = load ptr, ptr %43, align 8, !tbaa !21
  tail call void %44(ptr noundef nonnull %0, i64 %.sroa.077.0.copyload, i64 %.sroa.8.12.insert.insert, i32 noundef 3) #8
  %45 = tail call i32 @mu_get_id(ptr noundef nonnull %0, ptr noundef nonnull @.str.18, i32 noundef 6)
  tail call void @mu_update_control(ptr noundef nonnull %0, i32 noundef %45, i64 %.sroa.077.0.copyload, i64 %.sroa.8.12.insert.insert, i32 noundef %4)
  tail call void @mu_draw_control_text(ptr noundef nonnull %0, ptr noundef %1, i64 %.sroa.077.0.copyload, i64 %.sroa.8.12.insert.insert, i32 noundef 4, i32 noundef %4)
  %46 = getelementptr inbounds i8, ptr %0, i64 132
  %47 = load i32, ptr %46, align 4, !tbaa !24
  %48 = icmp eq i32 %45, %47
  br i1 %48, label %49, label %58

49:                                               ; preds = %38
  %50 = getelementptr inbounds i8, ptr %0, i64 270152
  %51 = load i32, ptr %50, align 8, !tbaa !25
  %52 = icmp eq i32 %51, 1
  br i1 %52, label %53, label %58

53:                                               ; preds = %49
  %54 = getelementptr inbounds i8, ptr %0, i64 270136
  %55 = load <2 x i32>, ptr %54, align 8, !tbaa !19
  %56 = load <2 x i32>, ptr %26, align 8, !tbaa !19
  %57 = add nsw <2 x i32> %56, %55
  store <2 x i32> %57, ptr %26, align 8, !tbaa !19
  br label %58

58:                                               ; preds = %53, %49, %38
  %59 = add nsw i32 %42, %.sroa.077.sroa.5.0.extract.trunc
  %.sroa.7.12.extract.shift = lshr i64 %.sroa.7.0.copyload, 32
  %.sroa.7.12.extract.trunc = trunc nuw i64 %.sroa.7.12.extract.shift to i32
  %60 = sub nsw i32 %.sroa.7.12.extract.trunc, %42
  %.sroa.7.12.insert.ext = zext i32 %60 to i64
  %.sroa.7.12.insert.shift = shl nuw i64 %.sroa.7.12.insert.ext, 32
  %.sroa.7.12.insert.insert = or disjoint i64 %.sroa.7.12.insert.shift, %.sroa.8.12.insert.mask
  %61 = and i32 %4, 64
  %.not174.not = icmp eq i32 %61, 0
  br i1 %.not174.not, label %62, label %79

62:                                               ; preds = %58
  %63 = tail call i32 @mu_get_id(ptr noundef nonnull %0, ptr noundef nonnull @.str.19, i32 noundef 6)
  %.sroa.8.8.extract.trunc = trunc i64 %.sroa.7.0.copyload to i32
  %64 = add nsw i32 %.sroa.8.8.extract.trunc, %.sroa.0144.sroa.0.0.extract.trunc152
  %65 = sub i32 %64, %42
  %66 = tail call { i64, i64 } @mu_rect(i32 noundef %65, i32 noundef %.sroa.077.sroa.5.0.extract.trunc, i32 noundef %42, i32 noundef %42)
  %67 = extractvalue { i64, i64 } %66, 0
  %68 = extractvalue { i64, i64 } %66, 1
  %69 = load ptr, ptr %39, align 8, !tbaa !22
  %70 = getelementptr inbounds i8, ptr %69, i64 56
  %71 = load i32, ptr %70, align 8
  tail call void @mu_draw_icon(ptr noundef nonnull %0, i32 noundef 1, i64 %67, i64 %68, i32 %71)
  tail call void @mu_update_control(ptr noundef nonnull %0, i32 noundef %63, i64 %67, i64 %68, i32 noundef %4)
  %72 = getelementptr inbounds i8, ptr %0, i64 270156
  %73 = load i32, ptr %72, align 4, !tbaa !26
  %74 = icmp eq i32 %73, 1
  br i1 %74, label %75, label %79

75:                                               ; preds = %62
  %76 = load i32, ptr %46, align 4, !tbaa !24
  %77 = icmp eq i32 %63, %76
  br i1 %77, label %78, label %79

78:                                               ; preds = %75
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %79

79:                                               ; preds = %58, %78, %75, %62, %36
  %.sroa.7.1 = phi i64 [ %.sroa.7.0.copyload, %36 ], [ %.sroa.7.12.insert.insert, %62 ], [ %.sroa.7.12.insert.insert, %75 ], [ %.sroa.7.12.insert.insert, %78 ], [ %.sroa.7.12.insert.insert, %58 ]
  %.sroa.077.sroa.5.1 = phi i32 [ %.sroa.077.sroa.5.0.extract.trunc, %36 ], [ %59, %62 ], [ %59, %75 ], [ %59, %78 ], [ %59, %58 ]
  %.sroa.077.sroa.5.0.insert.ext = zext i32 %.sroa.077.sroa.5.1 to i64
  %.sroa.077.sroa.5.0.insert.shift = shl nuw i64 %.sroa.077.sroa.5.0.insert.ext, 32
  %.sroa.077.sroa.0.0.insert.insert = or disjoint i64 %.sroa.077.sroa.5.0.insert.shift, %.sroa.077.sroa.0.0.insert.ext82
  tail call void @push_container_body(ptr noundef nonnull %0, ptr noundef nonnull %9, i64 %.sroa.077.sroa.0.0.insert.insert, i64 %.sroa.7.1, i32 noundef %4)
  %80 = and i32 %4, 16
  %.not175.not = icmp eq i32 %80, 0
  br i1 %.not175.not, label %81, label %107

81:                                               ; preds = %79
  %82 = getelementptr inbounds i8, ptr %0, i64 120
  %83 = load ptr, ptr %82, align 8, !tbaa !22
  %84 = getelementptr inbounds i8, ptr %83, i64 28
  %85 = load i32, ptr %84, align 4, !tbaa !23
  %86 = tail call i32 @mu_get_id(ptr noundef nonnull %0, ptr noundef nonnull @.str.20, i32 noundef 7)
  %.sroa.7146.8.extract.trunc = trunc i64 %.sroa.7.0.copyload to i32
  %87 = add nsw i32 %.sroa.7146.8.extract.trunc, %.sroa.0144.sroa.0.0.extract.trunc152
  %88 = sub i32 %87, %85
  %.sroa.7146.12.extract.shift = lshr i64 %.sroa.7.0.copyload, 32
  %.sroa.7146.12.extract.trunc = trunc nuw i64 %.sroa.7146.12.extract.shift to i32
  %89 = add nsw i32 %.sroa.7146.12.extract.trunc, %.sroa.077.sroa.5.0.extract.trunc
  %90 = sub i32 %89, %85
  %91 = tail call { i64, i64 } @mu_rect(i32 noundef %88, i32 noundef %90, i32 noundef %85, i32 noundef %85)
  %92 = extractvalue { i64, i64 } %91, 0
  %93 = extractvalue { i64, i64 } %91, 1
  tail call void @mu_update_control(ptr noundef nonnull %0, i32 noundef %86, i64 %92, i64 %93, i32 noundef %4)
  %94 = getelementptr inbounds i8, ptr %0, i64 132
  %95 = load i32, ptr %94, align 4, !tbaa !24
  %96 = icmp eq i32 %86, %95
  br i1 %96, label %97, label %107

97:                                               ; preds = %81
  %98 = getelementptr inbounds i8, ptr %0, i64 270152
  %99 = load i32, ptr %98, align 8, !tbaa !25
  %100 = icmp eq i32 %99, 1
  br i1 %100, label %101, label %107

101:                                              ; preds = %97
  %102 = getelementptr inbounds i8, ptr %0, i64 270136
  %103 = load <2 x i32>, ptr %27, align 8, !tbaa !19
  %104 = load <2 x i32>, ptr %102, align 8, !tbaa !19
  %105 = add nsw <2 x i32> %104, %103
  %106 = tail call <2 x i32> @llvm.smax.v2i32(<2 x i32> %105, <2 x i32> <i32 96, i32 64>)
  store <2 x i32> %106, ptr %27, align 8, !tbaa !19
  br label %107

107:                                              ; preds = %81, %97, %101, %79
  %108 = and i32 %4, 512
  %.not176 = icmp eq i32 %108, 0
  br i1 %.not176, label %117, label %109

109:                                              ; preds = %107
  %110 = tail call ptr @get_layout(ptr noundef nonnull %0)
  %.sroa.3.0..sroa_idx = getelementptr inbounds i8, ptr %110, i64 8
  %111 = getelementptr inbounds i8, ptr %9, i64 48
  %112 = load <2 x i32>, ptr %.sroa.3.0..sroa_idx, align 4, !tbaa !19
  %113 = load <2 x i32>, ptr %111, align 8, !tbaa !19
  %114 = load <2 x i32>, ptr %27, align 8, !tbaa !19
  %115 = sub <2 x i32> %113, %112
  %116 = add <2 x i32> %115, %114
  store <2 x i32> %116, ptr %27, align 8, !tbaa !19
  br label %117

117:                                              ; preds = %109, %107
  %118 = and i32 %4, 1024
  %.not177 = icmp eq i32 %118, 0
  br i1 %.not177, label %126, label %119

119:                                              ; preds = %117
  %120 = getelementptr inbounds i8, ptr %0, i64 270156
  %121 = load i32, ptr %120, align 4, !tbaa !26
  %.not178 = icmp eq i32 %121, 0
  br i1 %.not178, label %126, label %122

122:                                              ; preds = %119
  %123 = getelementptr inbounds i8, ptr %0, i64 168
  %124 = load ptr, ptr %123, align 8, !tbaa !27
  %.not179 = icmp eq ptr %124, %9
  br i1 %.not179, label %126, label %125

125:                                              ; preds = %122
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %126

126:                                              ; preds = %125, %122, %119, %117
  %127 = getelementptr inbounds i8, ptr %9, i64 32
  %128 = load i64, ptr %127, align 8
  %129 = getelementptr inbounds i8, ptr %9, i64 40
  %130 = load i64, ptr %129, align 8
  tail call void @mu_push_clip_rect(ptr noundef nonnull %0, i64 %128, i64 %130)
  br label %131

131:                                              ; preds = %5, %10, %126
  %.0 = phi i32 [ 1, %126 ], [ 0, %10 ], [ 0, %5 ]
  ret i32 %.0
}

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

; Function Attrs: nounwind uwtable
declare hidden void @push_container_body(ptr noundef, ptr noundef, i64, i64, i32 noundef) local_unnamed_addr #0

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x i32> @llvm.smax.v2i32(<2 x i32>, <2 x i32>) #4

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 = { nofree 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 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nounwind willreturn memory(read) }
attributes #6 = { cold nounwind }
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, !11, i64 68}
!6 = !{!"", !7, i64 0, !7, i64 8, !10, i64 16, !10, i64 32, !12, i64 48, !12, i64 56, !11, i64 64, !11, i64 68}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12}
!11 = !{!"int", !8, i64 0}
!12 = !{!"", !11, i64 0, !11, i64 4}
!13 = !{!14, !11, i64 263516}
!14 = !{!"mu_Context", !7, i64 0, !7, i64 8, !7, i64 16, !15, i64 24, !7, i64 120, !11, i64 128, !11, i64 132, !11, i64 136, !10, i64 140, !11, i64 156, !11, i64 160, !11, i64 164, !7, i64 168, !7, i64 176, !7, i64 184, !8, i64 192, !11, i64 320, !16, i64 324, !17, i64 262472, !17, i64 262736, !16, i64 263000, !16, i64 263516, !16, i64 263648, !8, i64 265892, !8, i64 266280, !8, i64 269736, !12, i64 270120, !12, i64 270128, !12, i64 270136, !12, i64 270144, !11, i64 270152, !11, i64 270156, !11, i64 270160, !11, i64 270164, !8, i64 270168}
!15 = !{!"", !7, i64 0, !12, i64 8, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !8, i64 40}
!16 = !{!"", !11, i64 0, !8, i64 4}
!17 = !{!"", !11, i64 0, !8, i64 8}
!18 = !{!7, !7, i64 0}
!19 = !{!11, !11, i64 0}
!20 = !{!6, !11, i64 24}
!21 = !{!14, !7, i64 16}
!22 = !{!14, !7, i64 120}
!23 = !{!15, !11, i64 28}
!24 = !{!14, !11, i64 132}
!25 = !{!14, !11, i64 270152}
!26 = !{!14, !11, i64 270156}
!27 = !{!14, !7, i64 168}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalDCEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass