; LLVM IR from l1mey112/yr11-physics-applied :: sokol (sokol)

; 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._simgui_state_t = type { %struct.simgui_desc_t, float, %struct.sg_buffer, %struct.sg_buffer, %struct.sg_image, %struct.sg_shader, %struct.sg_pipeline, %struct.sg_range, %struct.sg_range, i8 }
%struct.simgui_desc_t = type { i32, i32, i32, i32, ptr, i8, i8, i8, i8, i8, %struct.simgui_allocator_t }
%struct.simgui_allocator_t = type { ptr, ptr, ptr }
%struct.sg_buffer = type { i32 }
%struct.sg_image = type { i32 }
%struct.sg_shader = type { i32 }
%struct.sg_pipeline = type { i32 }
%struct.sg_range = type { ptr, i64 }
%struct.sapp_event = type { i64, i32, i32, i32, i8, i32, i32, float, float, float, float, float, float, i32, [8 x %struct.sapp_touchpoint], i32, i32, i32, i32 }
%struct.sapp_touchpoint = type { i64, float, float, i32, i8 }
%struct.ImGuiIO = type { i32, i32, %struct.ImVec2, float, float, ptr, ptr, float, float, float, float, float, float, float, ptr, ptr, float, i8, ptr, %struct.ImVec2, i8, i8, i8, i8, i8, i8, i8, i8, float, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i8, i8, i8, i8, i8, i8, i8, float, i32, i32, i32, i32, i32, %struct.ImVec2, [652 x i32], [652 x i8], [16 x float], %struct.ImVec2, [5 x i8], float, float, i8, i8, i8, i8, i32, [652 x %struct.ImGuiKeyData], i8, %struct.ImVec2, [5 x %struct.ImVec2], [5 x double], [5 x i8], [5 x i8], [5 x i16], [5 x i16], [5 x i8], [5 x i8], [5 x i8], [5 x float], [5 x float], [5 x float], float, i8, i8, i8, i8, i16, %struct.ImVector_ImWchar }
%struct.ImGuiKeyData = type { i8, float, float, float }
%struct.ImVec2 = type { float, float }
%struct.ImVector_ImWchar = type { i32, i32, ptr }

@_simgui = external hidden global %struct._simgui_state_t, align 8

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @sapp_consume_event() #1

declare ptr @igGetIO() #2

; Function Attrs: nounwind uwtable
define dso_local zeroext i1 @simgui_handle_event(ptr noundef %0) #1 {
  %2 = alloca ptr, align 8
  %3 = alloca float, align 4
  %4 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #3
  %5 = load float, ptr getelementptr inbounds (%struct._simgui_state_t, ptr @_simgui, i32 0, i32 1), align 8, !tbaa !9
  store float %5, ptr %3, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #3
  %6 = call ptr @igGetIO()
  store ptr %6, ptr %4, align 8, !tbaa !5
  %7 = load ptr, ptr %2, align 8, !tbaa !5
  %8 = getelementptr inbounds %struct.sapp_event, ptr %7, i32 0, i32 1
  %9 = load i32, ptr %8, align 8, !tbaa !23
  switch i32 %9, label %252 [
    i32 17, label %10
    i32 18, label %12
    i32 4, label %14
    i32 5, label %34
    i32 7, label %54
    i32 8, label %66
    i32 9, label %66
    i32 6, label %67
    i32 10, label %75
    i32 11, label %92
    i32 12, label %108
    i32 13, label %125
    i32 1, label %127
    i32 2, label %173
    i32 3, label %215
    i32 22, label %241
  ]

10:                                               ; preds = %1
  %11 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_simgui_add_focus_event(ptr noundef %11, i1 noundef zeroext true)
  br label %253

12:                                               ; preds = %1
  %13 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_simgui_add_focus_event(ptr noundef %13, i1 noundef zeroext false)
  br label %253

14:                                               ; preds = %1
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  %16 = load ptr, ptr %2, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.sapp_event, ptr %16, i32 0, i32 7
  %18 = load float, ptr %17, align 8, !tbaa !25
  %19 = load float, ptr %3, align 4, !tbaa !22
  %20 = fdiv float %18, %19
  %21 = load ptr, ptr %2, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.sapp_event, ptr %21, i32 0, i32 8
  %23 = load float, ptr %22, align 4, !tbaa !26
  %24 = load float, ptr %3, align 4, !tbaa !22
  %25 = fdiv float %23, %24
  call void @_simgui_add_mouse_pos_event(ptr noundef %15, float noundef %20, float noundef %25)
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  %27 = load ptr, ptr %2, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.sapp_event, ptr %27, i32 0, i32 6
  %29 = load i32, ptr %28, align 4, !tbaa !27
  call void @_simgui_add_mouse_button_event(ptr noundef %26, i32 noundef %29, i1 noundef zeroext true)
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = load ptr, ptr %2, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.sapp_event, ptr %31, i32 0, i32 5
  %33 = load i32, ptr %32, align 8, !tbaa !28
  call void @_simgui_update_modifiers(ptr noundef %30, i32 noundef %33)
  br label %253

34:                                               ; preds = %1
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  %36 = load ptr, ptr %2, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.sapp_event, ptr %36, i32 0, i32 7
  %38 = load float, ptr %37, align 8, !tbaa !25
  %39 = load float, ptr %3, align 4, !tbaa !22
  %40 = fdiv float %38, %39
  %41 = load ptr, ptr %2, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.sapp_event, ptr %41, i32 0, i32 8
  %43 = load float, ptr %42, align 4, !tbaa !26
  %44 = load float, ptr %3, align 4, !tbaa !22
  %45 = fdiv float %43, %44
  call void @_simgui_add_mouse_pos_event(ptr noundef %35, float noundef %40, float noundef %45)
  %46 = load ptr, ptr %4, align 8, !tbaa !5
  %47 = load ptr, ptr %2, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.sapp_event, ptr %47, i32 0, i32 6
  %49 = load i32, ptr %48, align 4, !tbaa !27
  call void @_simgui_add_mouse_button_event(ptr noundef %46, i32 noundef %49, i1 noundef zeroext false)
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  %51 = load ptr, ptr %2, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.sapp_event, ptr %51, i32 0, i32 5
  %53 = load i32, ptr %52, align 8, !tbaa !28
  call void @_simgui_update_modifiers(ptr noundef %50, i32 noundef %53)
  br label %253

54:                                               ; preds = %1
  %55 = load ptr, ptr %4, align 8, !tbaa !5
  %56 = load ptr, ptr %2, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.sapp_event, ptr %56, i32 0, i32 7
  %58 = load float, ptr %57, align 8, !tbaa !25
  %59 = load float, ptr %3, align 4, !tbaa !22
  %60 = fdiv float %58, %59
  %61 = load ptr, ptr %2, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.sapp_event, ptr %61, i32 0, i32 8
  %63 = load float, ptr %62, align 4, !tbaa !26
  %64 = load float, ptr %3, align 4, !tbaa !22
  %65 = fdiv float %63, %64
  call void @_simgui_add_mouse_pos_event(ptr noundef %55, float noundef %60, float noundef %65)
  br label %253

66:                                               ; preds = %1, %1
  br label %253

67:                                               ; preds = %1
  %68 = load ptr, ptr %4, align 8, !tbaa !5
  %69 = load ptr, ptr %2, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.sapp_event, ptr %69, i32 0, i32 11
  %71 = load float, ptr %70, align 8, !tbaa !29
  %72 = load ptr, ptr %2, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.sapp_event, ptr %72, i32 0, i32 12
  %74 = load float, ptr %73, align 4, !tbaa !30
  call void @_simgui_add_mouse_wheel_event(ptr noundef %68, float noundef %71, float noundef %74)
  br label %253

75:                                               ; preds = %1
  %76 = load ptr, ptr %4, align 8, !tbaa !5
  %77 = load ptr, ptr %2, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.sapp_event, ptr %77, i32 0, i32 14
  %79 = getelementptr inbounds [8 x %struct.sapp_touchpoint], ptr %78, i64 0, i64 0
  %80 = getelementptr inbounds %struct.sapp_touchpoint, ptr %79, i32 0, i32 1
  %81 = load float, ptr %80, align 8, !tbaa !31
  %82 = load float, ptr %3, align 4, !tbaa !22
  %83 = fdiv float %81, %82
  %84 = load ptr, ptr %2, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.sapp_event, ptr %84, i32 0, i32 14
  %86 = getelementptr inbounds [8 x %struct.sapp_touchpoint], ptr %85, i64 0, i64 0
  %87 = getelementptr inbounds %struct.sapp_touchpoint, ptr %86, i32 0, i32 2
  %88 = load float, ptr %87, align 4, !tbaa !33
  %89 = load float, ptr %3, align 4, !tbaa !22
  %90 = fdiv float %88, %89
  call void @_simgui_add_mouse_pos_event(ptr noundef %76, float noundef %83, float noundef %90)
  %91 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_simgui_add_mouse_button_event(ptr noundef %91, i32 noundef 0, i1 noundef zeroext true)
  br label %253

92:                                               ; preds = %1
  %93 = load ptr, ptr %4, align 8, !tbaa !5
  %94 = load ptr, ptr %2, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.sapp_event, ptr %94, i32 0, i32 14
  %96 = getelementptr inbounds [8 x %struct.sapp_touchpoint], ptr %95, i64 0, i64 0
  %97 = getelementptr inbounds %struct.sapp_touchpoint, ptr %96, i32 0, i32 1
  %98 = load float, ptr %97, align 8, !tbaa !31
  %99 = load float, ptr %3, align 4, !tbaa !22
  %100 = fdiv float %98, %99
  %101 = load ptr, ptr %2, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.sapp_event, ptr %101, i32 0, i32 14
  %103 = getelementptr inbounds [8 x %struct.sapp_touchpoint], ptr %102, i64 0, i64 0
  %104 = getelementptr inbounds %struct.sapp_touchpoint, ptr %103, i32 0, i32 2
  %105 = load float, ptr %104, align 4, !tbaa !33
  %106 = load float, ptr %3, align 4, !tbaa !22
  %107 = fdiv float %105, %106
  call void @_simgui_add_mouse_pos_event(ptr noundef %93, float noundef %100, float noundef %107)
  br label %253

108:                                              ; preds = %1
  %109 = load ptr, ptr %4, align 8, !tbaa !5
  %110 = load ptr, ptr %2, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.sapp_event, ptr %110, i32 0, i32 14
  %112 = getelementptr inbounds [8 x %struct.sapp_touchpoint], ptr %111, i64 0, i64 0
  %113 = getelementptr inbounds %struct.sapp_touchpoint, ptr %112, i32 0, i32 1
  %114 = load float, ptr %113, align 8, !tbaa !31
  %115 = load float, ptr %3, align 4, !tbaa !22
  %116 = fdiv float %114, %115
  %117 = load ptr, ptr %2, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.sapp_event, ptr %117, i32 0, i32 14
  %119 = getelementptr inbounds [8 x %struct.sapp_touchpoint], ptr %118, i64 0, i64 0
  %120 = getelementptr inbounds %struct.sapp_touchpoint, ptr %119, i32 0, i32 2
  %121 = load float, ptr %120, align 4, !tbaa !33
  %122 = load float, ptr %3, align 4, !tbaa !22
  %123 = fdiv float %121, %122
  call void @_simgui_add_mouse_pos_event(ptr noundef %109, float noundef %116, float noundef %123)
  %124 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_simgui_add_mouse_button_event(ptr noundef %124, i32 noundef 0, i1 noundef zeroext false)
  br label %253

125:                                              ; preds = %1
  %126 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_simgui_add_mouse_button_event(ptr noundef %126, i32 noundef 0, i1 noundef zeroext false)
  br label %253

127:                                              ; preds = %1
  %128 = load ptr, ptr %4, align 8, !tbaa !5
  %129 = load ptr, ptr %2, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.sapp_event, ptr %129, i32 0, i32 5
  %131 = load i32, ptr %130, align 8, !tbaa !28
  call void @_simgui_update_modifiers(ptr noundef %128, i32 noundef %131)
  %132 = load i8, ptr getelementptr inbounds (%struct.simgui_desc_t, ptr @_simgui, i32 0, i32 6), align 1, !tbaa !34, !range !35, !noundef !36
  %133 = trunc i8 %132 to i1
  br i1 %133, label %146, label %134

134:                                              ; preds = %127
  %135 = load ptr, ptr %2, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.sapp_event, ptr %135, i32 0, i32 5
  %137 = load i32, ptr %136, align 8, !tbaa !28
  %138 = call zeroext i1 @_simgui_is_ctrl(i32 noundef %137)
  br i1 %138, label %139, label %145

139:                                              ; preds = %134
  %140 = load ptr, ptr %2, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.sapp_event, ptr %140, i32 0, i32 2
  %142 = load i32, ptr %141, align 4, !tbaa !37
  %143 = icmp eq i32 %142, 86
  br i1 %143, label %144, label %145

144:                                              ; preds = %139
  br label %253

145:                                              ; preds = %139, %134
  br label %146

146:                                              ; preds = %145, %127
  %147 = load ptr, ptr %2, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.sapp_event, ptr %147, i32 0, i32 5
  %149 = load i32, ptr %148, align 8, !tbaa !28
  %150 = call zeroext i1 @_simgui_is_ctrl(i32 noundef %149)
  br i1 %150, label %151, label %157

151:                                              ; preds = %146
  %152 = load ptr, ptr %2, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.sapp_event, ptr %152, i32 0, i32 2
  %154 = load i32, ptr %153, align 4, !tbaa !37
  %155 = icmp eq i32 %154, 88
  br i1 %155, label %156, label %157

156:                                              ; preds = %151
  call void @sapp_consume_event()
  br label %157

157:                                              ; preds = %156, %151, %146
  %158 = load ptr, ptr %2, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.sapp_event, ptr %158, i32 0, i32 5
  %160 = load i32, ptr %159, align 8, !tbaa !28
  %161 = call zeroext i1 @_simgui_is_ctrl(i32 noundef %160)
  br i1 %161, label %162, label %168

162:                                              ; preds = %157
  %163 = load ptr, ptr %2, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.sapp_event, ptr %163, i32 0, i32 2
  %165 = load i32, ptr %164, align 4, !tbaa !37
  %166 = icmp eq i32 %165, 67
  br i1 %166, label %167, label %168

167:                                              ; preds = %162
  call void @sapp_consume_event()
  br label %168

168:                                              ; preds = %167, %162, %157
  %169 = load ptr, ptr %4, align 8, !tbaa !5
  %170 = load ptr, ptr %2, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.sapp_event, ptr %170, i32 0, i32 2
  %172 = load i32, ptr %171, align 4, !tbaa !37
  call void @_simgui_add_sapp_key_event(ptr noundef %169, i32 noundef %172, i1 noundef zeroext true)
  br label %253

173:                                              ; preds = %1
  %174 = load ptr, ptr %4, align 8, !tbaa !5
  %175 = load ptr, ptr %2, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.sapp_event, ptr %175, i32 0, i32 5
  %177 = load i32, ptr %176, align 8, !tbaa !28
  call void @_simgui_update_modifiers(ptr noundef %174, i32 noundef %177)
  %178 = load ptr, ptr %2, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.sapp_event, ptr %178, i32 0, i32 5
  %180 = load i32, ptr %179, align 8, !tbaa !28
  %181 = call zeroext i1 @_simgui_is_ctrl(i32 noundef %180)
  br i1 %181, label %182, label %188

182:                                              ; preds = %173
  %183 = load ptr, ptr %2, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.sapp_event, ptr %183, i32 0, i32 2
  %185 = load i32, ptr %184, align 4, !tbaa !37
  %186 = icmp eq i32 %185, 86
  br i1 %186, label %187, label %188

187:                                              ; preds = %182
  br label %253

188:                                              ; preds = %182, %173
  %189 = load ptr, ptr %2, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.sapp_event, ptr %189, i32 0, i32 5
  %191 = load i32, ptr %190, align 8, !tbaa !28
  %192 = call zeroext i1 @_simgui_is_ctrl(i32 noundef %191)
  br i1 %192, label %193, label %199

193:                                              ; preds = %188
  %194 = load ptr, ptr %2, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.sapp_event, ptr %194, i32 0, i32 2
  %196 = load i32, ptr %195, align 4, !tbaa !37
  %197 = icmp eq i32 %196, 88
  br i1 %197, label %198, label %199

198:                                              ; preds = %193
  call void @sapp_consume_event()
  br label %199

199:                                              ; preds = %198, %193, %188
  %200 = load ptr, ptr %2, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.sapp_event, ptr %200, i32 0, i32 5
  %202 = load i32, ptr %201, align 8, !tbaa !28
  %203 = call zeroext i1 @_simgui_is_ctrl(i32 noundef %202)
  br i1 %203, label %204, label %210

204:                                              ; preds = %199
  %205 = load ptr, ptr %2, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.sapp_event, ptr %205, i32 0, i32 2
  %207 = load i32, ptr %206, align 4, !tbaa !37
  %208 = icmp eq i32 %207, 67
  br i1 %208, label %209, label %210

209:                                              ; preds = %204
  call void @sapp_consume_event()
  br label %210

210:                                              ; preds = %209, %204, %199
  %211 = load ptr, ptr %4, align 8, !tbaa !5
  %212 = load ptr, ptr %2, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.sapp_event, ptr %212, i32 0, i32 2
  %214 = load i32, ptr %213, align 4, !tbaa !37
  call void @_simgui_add_sapp_key_event(ptr noundef %211, i32 noundef %214, i1 noundef zeroext false)
  br label %253

215:                                              ; preds = %1
  %216 = load ptr, ptr %4, align 8, !tbaa !5
  %217 = load ptr, ptr %2, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.sapp_event, ptr %217, i32 0, i32 5
  %219 = load i32, ptr %218, align 8, !tbaa !28
  call void @_simgui_update_modifiers(ptr noundef %216, i32 noundef %219)
  %220 = load ptr, ptr %2, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.sapp_event, ptr %220, i32 0, i32 3
  %222 = load i32, ptr %221, align 8, !tbaa !38
  %223 = icmp uge i32 %222, 32
  br i1 %223, label %224, label %240

224:                                              ; preds = %215
  %225 = load ptr, ptr %2, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct.sapp_event, ptr %225, i32 0, i32 3
  %227 = load i32, ptr %226, align 8, !tbaa !38
  %228 = icmp ne i32 %227, 127
  br i1 %228, label %229, label %240

229:                                              ; preds = %224
  %230 = load ptr, ptr %2, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct.sapp_event, ptr %230, i32 0, i32 5
  %232 = load i32, ptr %231, align 8, !tbaa !28
  %233 = and i32 %232, 14
  %234 = icmp eq i32 0, %233
  br i1 %234, label %235, label %240

235:                                              ; preds = %229
  %236 = load ptr, ptr %4, align 8, !tbaa !5
  %237 = load ptr, ptr %2, align 8, !tbaa !5
  %238 = getelementptr inbounds %struct.sapp_event, ptr %237, i32 0, i32 3
  %239 = load i32, ptr %238, align 8, !tbaa !38
  call void @_simgui_add_input_character(ptr noundef %236, i32 noundef %239)
  br label %240

240:                                              ; preds = %235, %229, %224, %215
  br label %253

241:                                              ; preds = %1
  %242 = load i8, ptr getelementptr inbounds (%struct.simgui_desc_t, ptr @_simgui, i32 0, i32 6), align 1, !tbaa !34, !range !35, !noundef !36
  %243 = trunc i8 %242 to i1
  br i1 %243, label %251, label %244

244:                                              ; preds = %241
  %245 = load ptr, ptr %4, align 8, !tbaa !5
  %246 = call i32 @_simgui_copypaste_modifier()
  call void @_simgui_add_imgui_key_event(ptr noundef %245, i32 noundef %246, i1 noundef zeroext true)
  %247 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_simgui_add_imgui_key_event(ptr noundef %247, i32 noundef 567, i1 noundef zeroext true)
  %248 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_simgui_add_imgui_key_event(ptr noundef %248, i32 noundef 567, i1 noundef zeroext false)
  %249 = load ptr, ptr %4, align 8, !tbaa !5
  %250 = call i32 @_simgui_copypaste_modifier()
  call void @_simgui_add_imgui_key_event(ptr noundef %249, i32 noundef %250, i1 noundef zeroext false)
  br label %251

251:                                              ; preds = %244, %241
  br label %253

252:                                              ; preds = %1
  br label %253

253:                                              ; preds = %252, %251, %240, %210, %187, %168, %144, %125, %108, %92, %75, %67, %66, %54, %34, %14, %12, %10
  %254 = load ptr, ptr %4, align 8, !tbaa !5
  %255 = getelementptr inbounds %struct.ImGuiIO, ptr %254, i32 0, i32 40
  %256 = load i8, ptr %255, align 1, !tbaa !39, !range !35, !noundef !36
  %257 = trunc i8 %256 to i1
  br i1 %257, label %263, label %258

258:                                              ; preds = %253
  %259 = load ptr, ptr %4, align 8, !tbaa !5
  %260 = getelementptr inbounds %struct.ImGuiIO, ptr %259, i32 0, i32 39
  %261 = load i8, ptr %260, align 8, !tbaa !44, !range !35, !noundef !36
  %262 = trunc i8 %261 to i1
  br label %263

263:                                              ; preds = %258, %253
  %264 = phi i1 [ true, %253 ], [ %262, %258 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #3
  ret i1 %264
}

; Function Attrs: nounwind uwtable
declare hidden void @_simgui_add_focus_event(ptr noundef, i1 noundef zeroext) #1

; Function Attrs: nounwind uwtable
declare hidden void @_simgui_add_mouse_pos_event(ptr noundef, float noundef, float noundef) #1

; Function Attrs: nounwind uwtable
declare hidden void @_simgui_add_mouse_button_event(ptr noundef, i32 noundef, i1 noundef zeroext) #1

; Function Attrs: nounwind uwtable
declare hidden void @_simgui_update_modifiers(ptr noundef, i32 noundef) #1

; Function Attrs: nounwind uwtable
declare hidden void @_simgui_add_mouse_wheel_event(ptr noundef, float noundef, float noundef) #1

; Function Attrs: nounwind uwtable
declare hidden zeroext i1 @_simgui_is_ctrl(i32 noundef) #1

; Function Attrs: nounwind uwtable
declare hidden void @_simgui_add_sapp_key_event(ptr noundef, i32 noundef, i1 noundef zeroext) #1

; Function Attrs: nounwind uwtable
declare hidden void @_simgui_add_input_character(ptr noundef, i32 noundef) #1

; Function Attrs: nounwind uwtable
declare hidden void @_simgui_add_imgui_key_event(ptr noundef, i32 noundef, i1 noundef zeroext) #1

; Function Attrs: nounwind uwtable
declare hidden i32 @_simgui_copypaste_modifier() #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { "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, !15, i64 56}
!10 = !{!"", !11, i64 0, !15, i64 56, !16, i64 60, !16, i64 64, !17, i64 68, !18, i64 72, !19, i64 76, !20, i64 80, !20, i64 96, !13, i64 112}
!11 = !{!"simgui_desc_t", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !6, i64 16, !13, i64 24, !13, i64 25, !13, i64 26, !13, i64 27, !13, i64 28, !14, i64 32}
!12 = !{!"int", !7, i64 0}
!13 = !{!"_Bool", !7, i64 0}
!14 = !{!"simgui_allocator_t", !6, i64 0, !6, i64 8, !6, i64 16}
!15 = !{!"float", !7, i64 0}
!16 = !{!"sg_buffer", !12, i64 0}
!17 = !{!"sg_image", !12, i64 0}
!18 = !{!"sg_shader", !12, i64 0}
!19 = !{!"sg_pipeline", !12, i64 0}
!20 = !{!"sg_range", !6, i64 0, !21, i64 8}
!21 = !{!"long", !7, i64 0}
!22 = !{!15, !15, i64 0}
!23 = !{!24, !12, i64 8}
!24 = !{!"sapp_event", !21, i64 0, !12, i64 8, !12, i64 12, !12, i64 16, !13, i64 20, !12, i64 24, !12, i64 28, !15, i64 32, !15, i64 36, !15, i64 40, !15, i64 44, !15, i64 48, !15, i64 52, !12, i64 56, !7, i64 64, !12, i64 256, !12, i64 260, !12, i64 264, !12, i64 268}
!25 = !{!24, !15, i64 32}
!26 = !{!24, !15, i64 36}
!27 = !{!24, !12, i64 28}
!28 = !{!24, !12, i64 24}
!29 = !{!24, !15, i64 48}
!30 = !{!24, !15, i64 52}
!31 = !{!32, !15, i64 8}
!32 = !{!"sapp_touchpoint", !21, i64 0, !15, i64 8, !15, i64 12, !12, i64 16, !13, i64 20}
!33 = !{!32, !15, i64 12}
!34 = !{!10, !13, i64 25}
!35 = !{i8 0, i8 2}
!36 = !{}
!37 = !{!24, !12, i64 12}
!38 = !{!24, !12, i64 16}
!39 = !{!40, !13, i64 209}
!40 = !{!"ImGuiIO", !12, i64 0, !12, i64 4, !41, i64 8, !15, i64 16, !15, i64 20, !6, i64 24, !6, i64 32, !15, i64 40, !15, i64 44, !15, i64 48, !15, i64 52, !15, i64 56, !15, i64 60, !15, i64 64, !6, i64 72, !6, i64 80, !15, i64 88, !13, i64 92, !6, i64 96, !41, i64 104, !13, i64 112, !13, i64 113, !13, i64 114, !13, i64 115, !13, i64 116, !13, i64 117, !13, i64 118, !13, i64 119, !15, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !13, i64 208, !13, i64 209, !13, i64 210, !13, i64 211, !13, i64 212, !13, i64 213, !13, i64 214, !15, i64 216, !12, i64 220, !12, i64 224, !12, i64 228, !12, i64 232, !12, i64 236, !41, i64 240, !7, i64 248, !7, i64 2856, !7, i64 3508, !41, i64 3572, !7, i64 3580, !15, i64 3588, !15, i64 3592, !13, i64 3596, !13, i64 3597, !13, i64 3598, !13, i64 3599, !12, i64 3600, !7, i64 3604, !13, i64 14036, !41, i64 14040, !7, i64 14048, !7, i64 14088, !7, i64 14128, !7, i64 14133, !7, i64 14138, !7, i64 14148, !7, i64 14158, !7, i64 14163, !7, i64 14168, !7, i64 14176, !7, i64 14196, !7, i64 14216, !15, i64 14236, !13, i64 14240, !13, i64 14241, !7, i64 14242, !13, i64 14243, !42, i64 14244, !43, i64 14248}
!41 = !{!"ImVec2", !15, i64 0, !15, i64 4}
!42 = !{!"short", !7, i64 0}
!43 = !{!"ImVector_ImWchar", !12, i64 0, !12, i64 4, !6, i64 8}
!44 = !{!40, !13, i64 208}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct._simgui_state_t = type { %struct.simgui_desc_t, float, %struct.sg_buffer, %struct.sg_buffer, %struct.sg_image, %struct.sg_shader, %struct.sg_pipeline, %struct.sg_range, %struct.sg_range, i8 }
%struct.simgui_desc_t = type { i32, i32, i32, i32, ptr, i8, i8, i8, i8, i8, %struct.simgui_allocator_t }
%struct.simgui_allocator_t = type { ptr, ptr, ptr }
%struct.sg_buffer = type { i32 }
%struct.sg_image = type { i32 }
%struct.sg_shader = type { i32 }
%struct.sg_pipeline = type { i32 }
%struct.sg_range = type { ptr, i64 }

@_simgui = external hidden local_unnamed_addr global %struct._simgui_state_t, align 8

; Function Attrs: nounwind uwtable
declare dso_local void @sapp_consume_event() local_unnamed_addr #0

declare ptr @igGetIO() local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local zeroext i1 @simgui_handle_event(ptr nocapture noundef readonly %0) local_unnamed_addr #0 {
  %2 = load float, ptr getelementptr inbounds (i8, ptr @_simgui, i64 56), align 8, !tbaa !5
  %3 = tail call ptr @igGetIO() #2
  %4 = getelementptr inbounds i8, ptr %0, i64 8
  %5 = load i32, ptr %4, align 8, !tbaa !21
  switch i32 %5, label %140 [
    i32 17, label %6
    i32 18, label %7
    i32 4, label %8
    i32 5, label %19
    i32 7, label %30
    i32 22, label %134
    i32 3, label %123
    i32 6, label %37
    i32 10, label %42
    i32 11, label %49
    i32 12, label %56
    i32 13, label %63
    i32 1, label %64
    i32 2, label %95
  ]

6:                                                ; preds = %1
  tail call void @_simgui_add_focus_event(ptr noundef %3, i1 noundef zeroext true)
  br label %140

7:                                                ; preds = %1
  tail call void @_simgui_add_focus_event(ptr noundef %3, i1 noundef zeroext false)
  br label %140

8:                                                ; preds = %1
  %9 = getelementptr inbounds i8, ptr %0, i64 32
  %10 = load float, ptr %9, align 8, !tbaa !23
  %11 = fdiv float %10, %2
  %12 = getelementptr inbounds i8, ptr %0, i64 36
  %13 = load float, ptr %12, align 4, !tbaa !24
  %14 = fdiv float %13, %2
  tail call void @_simgui_add_mouse_pos_event(ptr noundef %3, float noundef %11, float noundef %14)
  %15 = getelementptr inbounds i8, ptr %0, i64 28
  %16 = load i32, ptr %15, align 4, !tbaa !25
  tail call void @_simgui_add_mouse_button_event(ptr noundef %3, i32 noundef %16, i1 noundef zeroext true)
  %17 = getelementptr inbounds i8, ptr %0, i64 24
  %18 = load i32, ptr %17, align 8, !tbaa !26
  tail call void @_simgui_update_modifiers(ptr noundef %3, i32 noundef %18)
  br label %140

19:                                               ; preds = %1
  %20 = getelementptr inbounds i8, ptr %0, i64 32
  %21 = load float, ptr %20, align 8, !tbaa !23
  %22 = fdiv float %21, %2
  %23 = getelementptr inbounds i8, ptr %0, i64 36
  %24 = load float, ptr %23, align 4, !tbaa !24
  %25 = fdiv float %24, %2
  tail call void @_simgui_add_mouse_pos_event(ptr noundef %3, float noundef %22, float noundef %25)
  %26 = getelementptr inbounds i8, ptr %0, i64 28
  %27 = load i32, ptr %26, align 4, !tbaa !25
  tail call void @_simgui_add_mouse_button_event(ptr noundef %3, i32 noundef %27, i1 noundef zeroext false)
  %28 = getelementptr inbounds i8, ptr %0, i64 24
  %29 = load i32, ptr %28, align 8, !tbaa !26
  tail call void @_simgui_update_modifiers(ptr noundef %3, i32 noundef %29)
  br label %140

30:                                               ; preds = %1
  %31 = getelementptr inbounds i8, ptr %0, i64 32
  %32 = load float, ptr %31, align 8, !tbaa !23
  %33 = fdiv float %32, %2
  %34 = getelementptr inbounds i8, ptr %0, i64 36
  %35 = load float, ptr %34, align 4, !tbaa !24
  %36 = fdiv float %35, %2
  tail call void @_simgui_add_mouse_pos_event(ptr noundef %3, float noundef %33, float noundef %36)
  br label %140

37:                                               ; preds = %1
  %38 = getelementptr inbounds i8, ptr %0, i64 48
  %39 = load float, ptr %38, align 8, !tbaa !27
  %40 = getelementptr inbounds i8, ptr %0, i64 52
  %41 = load float, ptr %40, align 4, !tbaa !28
  tail call void @_simgui_add_mouse_wheel_event(ptr noundef %3, float noundef %39, float noundef %41)
  br label %140

42:                                               ; preds = %1
  %43 = getelementptr inbounds i8, ptr %0, i64 72
  %44 = load float, ptr %43, align 8, !tbaa !29
  %45 = fdiv float %44, %2
  %46 = getelementptr inbounds i8, ptr %0, i64 76
  %47 = load float, ptr %46, align 4, !tbaa !31
  %48 = fdiv float %47, %2
  tail call void @_simgui_add_mouse_pos_event(ptr noundef %3, float noundef %45, float noundef %48)
  tail call void @_simgui_add_mouse_button_event(ptr noundef %3, i32 noundef 0, i1 noundef zeroext true)
  br label %140

49:                                               ; preds = %1
  %50 = getelementptr inbounds i8, ptr %0, i64 72
  %51 = load float, ptr %50, align 8, !tbaa !29
  %52 = fdiv float %51, %2
  %53 = getelementptr inbounds i8, ptr %0, i64 76
  %54 = load float, ptr %53, align 4, !tbaa !31
  %55 = fdiv float %54, %2
  tail call void @_simgui_add_mouse_pos_event(ptr noundef %3, float noundef %52, float noundef %55)
  br label %140

56:                                               ; preds = %1
  %57 = getelementptr inbounds i8, ptr %0, i64 72
  %58 = load float, ptr %57, align 8, !tbaa !29
  %59 = fdiv float %58, %2
  %60 = getelementptr inbounds i8, ptr %0, i64 76
  %61 = load float, ptr %60, align 4, !tbaa !31
  %62 = fdiv float %61, %2
  tail call void @_simgui_add_mouse_pos_event(ptr noundef %3, float noundef %59, float noundef %62)
  tail call void @_simgui_add_mouse_button_event(ptr noundef %3, i32 noundef 0, i1 noundef zeroext false)
  br label %140

63:                                               ; preds = %1
  tail call void @_simgui_add_mouse_button_event(ptr noundef %3, i32 noundef 0, i1 noundef zeroext false)
  br label %140

64:                                               ; preds = %1
  %65 = getelementptr inbounds i8, ptr %0, i64 24
  %66 = load i32, ptr %65, align 8, !tbaa !26
  tail call void @_simgui_update_modifiers(ptr noundef %3, i32 noundef %66)
  %67 = load i8, ptr getelementptr inbounds (i8, ptr @_simgui, i64 25), align 1, !tbaa !32, !range !33, !noundef !34
  %68 = trunc nuw i8 %67 to i1
  br i1 %68, label %76, label %69

69:                                               ; preds = %64
  %70 = load i32, ptr %65, align 8, !tbaa !26
  %71 = tail call zeroext i1 @_simgui_is_ctrl(i32 noundef %70)
  br i1 %71, label %72, label %76

72:                                               ; preds = %69
  %73 = getelementptr inbounds i8, ptr %0, i64 12
  %74 = load i32, ptr %73, align 4, !tbaa !35
  %75 = icmp eq i32 %74, 86
  br i1 %75, label %140, label %76

76:                                               ; preds = %69, %72, %64
  %77 = load i32, ptr %65, align 8, !tbaa !26
  %78 = tail call zeroext i1 @_simgui_is_ctrl(i32 noundef %77)
  br i1 %78, label %79, label %84

79:                                               ; preds = %76
  %80 = getelementptr inbounds i8, ptr %0, i64 12
  %81 = load i32, ptr %80, align 4, !tbaa !35
  %82 = icmp eq i32 %81, 88
  br i1 %82, label %83, label %84

83:                                               ; preds = %79
  tail call void @sapp_consume_event()
  br label %84

84:                                               ; preds = %83, %79, %76
  %85 = load i32, ptr %65, align 8, !tbaa !26
  %86 = tail call zeroext i1 @_simgui_is_ctrl(i32 noundef %85)
  br i1 %86, label %87, label %92

87:                                               ; preds = %84
  %88 = getelementptr inbounds i8, ptr %0, i64 12
  %89 = load i32, ptr %88, align 4, !tbaa !35
  %90 = icmp eq i32 %89, 67
  br i1 %90, label %91, label %92

91:                                               ; preds = %87
  tail call void @sapp_consume_event()
  br label %92

92:                                               ; preds = %91, %87, %84
  %93 = getelementptr inbounds i8, ptr %0, i64 12
  %94 = load i32, ptr %93, align 4, !tbaa !35
  tail call void @_simgui_add_sapp_key_event(ptr noundef %3, i32 noundef %94, i1 noundef zeroext true)
  br label %140

95:                                               ; preds = %1
  %96 = getelementptr inbounds i8, ptr %0, i64 24
  %97 = load i32, ptr %96, align 8, !tbaa !26
  tail call void @_simgui_update_modifiers(ptr noundef %3, i32 noundef %97)
  %98 = load i32, ptr %96, align 8, !tbaa !26
  %99 = tail call zeroext i1 @_simgui_is_ctrl(i32 noundef %98)
  br i1 %99, label %100, label %104

100:                                              ; preds = %95
  %101 = getelementptr inbounds i8, ptr %0, i64 12
  %102 = load i32, ptr %101, align 4, !tbaa !35
  %103 = icmp eq i32 %102, 86
  br i1 %103, label %140, label %104

104:                                              ; preds = %100, %95
  %105 = load i32, ptr %96, align 8, !tbaa !26
  %106 = tail call zeroext i1 @_simgui_is_ctrl(i32 noundef %105)
  br i1 %106, label %107, label %112

107:                                              ; preds = %104
  %108 = getelementptr inbounds i8, ptr %0, i64 12
  %109 = load i32, ptr %108, align 4, !tbaa !35
  %110 = icmp eq i32 %109, 88
  br i1 %110, label %111, label %112

111:                                              ; preds = %107
  tail call void @sapp_consume_event()
  br label %112

112:                                              ; preds = %111, %107, %104
  %113 = load i32, ptr %96, align 8, !tbaa !26
  %114 = tail call zeroext i1 @_simgui_is_ctrl(i32 noundef %113)
  br i1 %114, label %115, label %120

115:                                              ; preds = %112
  %116 = getelementptr inbounds i8, ptr %0, i64 12
  %117 = load i32, ptr %116, align 4, !tbaa !35
  %118 = icmp eq i32 %117, 67
  br i1 %118, label %119, label %120

119:                                              ; preds = %115
  tail call void @sapp_consume_event()
  br label %120

120:                                              ; preds = %119, %115, %112
  %121 = getelementptr inbounds i8, ptr %0, i64 12
  %122 = load i32, ptr %121, align 4, !tbaa !35
  tail call void @_simgui_add_sapp_key_event(ptr noundef %3, i32 noundef %122, i1 noundef zeroext false)
  br label %140

123:                                              ; preds = %1
  %124 = getelementptr inbounds i8, ptr %0, i64 24
  %125 = load i32, ptr %124, align 8, !tbaa !26
  tail call void @_simgui_update_modifiers(ptr noundef %3, i32 noundef %125)
  %126 = getelementptr inbounds i8, ptr %0, i64 16
  %127 = load i32, ptr %126, align 8, !tbaa !36
  %128 = icmp ult i32 %127, 32
  %.not = icmp eq i32 %127, 127
  %or.cond = or i1 %128, %.not
  br i1 %or.cond, label %140, label %129

129:                                              ; preds = %123
  %130 = load i32, ptr %124, align 8, !tbaa !26
  %131 = and i32 %130, 14
  %132 = icmp eq i32 %131, 0
  br i1 %132, label %133, label %140

133:                                              ; preds = %129
  tail call void @_simgui_add_input_character(ptr noundef %3, i32 noundef %127)
  br label %140

134:                                              ; preds = %1
  %135 = load i8, ptr getelementptr inbounds (i8, ptr @_simgui, i64 25), align 1, !tbaa !32, !range !33, !noundef !34
  %136 = trunc nuw i8 %135 to i1
  br i1 %136, label %140, label %137

137:                                              ; preds = %134
  %138 = tail call i32 @_simgui_copypaste_modifier()
  tail call void @_simgui_add_imgui_key_event(ptr noundef %3, i32 noundef %138, i1 noundef zeroext true)
  tail call void @_simgui_add_imgui_key_event(ptr noundef %3, i32 noundef 567, i1 noundef zeroext true)
  tail call void @_simgui_add_imgui_key_event(ptr noundef %3, i32 noundef 567, i1 noundef zeroext false)
  %139 = tail call i32 @_simgui_copypaste_modifier()
  tail call void @_simgui_add_imgui_key_event(ptr noundef %3, i32 noundef %139, i1 noundef zeroext false)
  br label %140

140:                                              ; preds = %1, %134, %137, %123, %129, %133, %100, %72, %120, %92, %63, %56, %49, %42, %37, %30, %19, %8, %7, %6
  %141 = getelementptr inbounds i8, ptr %3, i64 209
  %142 = load i8, ptr %141, align 1, !tbaa !37, !range !33, !noundef !34
  %143 = trunc nuw i8 %142 to i1
  br i1 %143, label %148, label %144

144:                                              ; preds = %140
  %145 = getelementptr inbounds i8, ptr %3, i64 208
  %146 = load i8, ptr %145, align 8, !tbaa !42, !range !33, !noundef !34
  %147 = trunc nuw i8 %146 to i1
  br label %148

148:                                              ; preds = %144, %140
  %149 = phi i1 [ true, %140 ], [ %147, %144 ]
  ret i1 %149
}

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

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

; Function Attrs: nounwind uwtable
declare hidden void @_simgui_add_mouse_button_event(ptr noundef, i32 noundef, i1 noundef zeroext) local_unnamed_addr #0

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

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

; Function Attrs: nounwind uwtable
declare hidden zeroext i1 @_simgui_is_ctrl(i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden void @_simgui_add_sapp_key_event(ptr noundef, i32 noundef, i1 noundef zeroext) local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
declare hidden void @_simgui_add_imgui_key_event(ptr noundef, i32 noundef, i1 noundef zeroext) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden i32 @_simgui_copypaste_modifier() local_unnamed_addr #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 = { "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 = { 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, !14, i64 56}
!6 = !{!"", !7, i64 0, !14, i64 56, !15, i64 60, !15, i64 64, !16, i64 68, !17, i64 72, !18, i64 76, !19, i64 80, !19, i64 96, !12, i64 112}
!7 = !{!"simgui_desc_t", !8, i64 0, !8, i64 4, !8, i64 8, !8, i64 12, !11, i64 16, !12, i64 24, !12, i64 25, !12, i64 26, !12, i64 27, !12, i64 28, !13, i64 32}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!"_Bool", !9, i64 0}
!13 = !{!"simgui_allocator_t", !11, i64 0, !11, i64 8, !11, i64 16}
!14 = !{!"float", !9, i64 0}
!15 = !{!"sg_buffer", !8, i64 0}
!16 = !{!"sg_image", !8, i64 0}
!17 = !{!"sg_shader", !8, i64 0}
!18 = !{!"sg_pipeline", !8, i64 0}
!19 = !{!"sg_range", !11, i64 0, !20, i64 8}
!20 = !{!"long", !9, i64 0}
!21 = !{!22, !8, i64 8}
!22 = !{!"sapp_event", !20, i64 0, !8, i64 8, !8, i64 12, !8, i64 16, !12, i64 20, !8, i64 24, !8, i64 28, !14, i64 32, !14, i64 36, !14, i64 40, !14, i64 44, !14, i64 48, !14, i64 52, !8, i64 56, !9, i64 64, !8, i64 256, !8, i64 260, !8, i64 264, !8, i64 268}
!23 = !{!22, !14, i64 32}
!24 = !{!22, !14, i64 36}
!25 = !{!22, !8, i64 28}
!26 = !{!22, !8, i64 24}
!27 = !{!22, !14, i64 48}
!28 = !{!22, !14, i64 52}
!29 = !{!30, !14, i64 8}
!30 = !{!"sapp_touchpoint", !20, i64 0, !14, i64 8, !14, i64 12, !8, i64 16, !12, i64 20}
!31 = !{!30, !14, i64 12}
!32 = !{!6, !12, i64 25}
!33 = !{i8 0, i8 2}
!34 = !{}
!35 = !{!22, !8, i64 12}
!36 = !{!22, !8, i64 16}
!37 = !{!38, !12, i64 209}
!38 = !{!"ImGuiIO", !8, i64 0, !8, i64 4, !39, i64 8, !14, i64 16, !14, i64 20, !11, i64 24, !11, i64 32, !14, i64 40, !14, i64 44, !14, i64 48, !14, i64 52, !14, i64 56, !14, i64 60, !14, i64 64, !11, i64 72, !11, i64 80, !14, i64 88, !12, i64 92, !11, i64 96, !39, i64 104, !12, i64 112, !12, i64 113, !12, i64 114, !12, i64 115, !12, i64 116, !12, i64 117, !12, i64 118, !12, i64 119, !14, i64 120, !11, i64 128, !11, i64 136, !11, i64 144, !11, i64 152, !11, i64 160, !11, i64 168, !11, i64 176, !11, i64 184, !11, i64 192, !11, i64 200, !12, i64 208, !12, i64 209, !12, i64 210, !12, i64 211, !12, i64 212, !12, i64 213, !12, i64 214, !14, i64 216, !8, i64 220, !8, i64 224, !8, i64 228, !8, i64 232, !8, i64 236, !39, i64 240, !9, i64 248, !9, i64 2856, !9, i64 3508, !39, i64 3572, !9, i64 3580, !14, i64 3588, !14, i64 3592, !12, i64 3596, !12, i64 3597, !12, i64 3598, !12, i64 3599, !8, i64 3600, !9, i64 3604, !12, i64 14036, !39, i64 14040, !9, i64 14048, !9, i64 14088, !9, i64 14128, !9, i64 14133, !9, i64 14138, !9, i64 14148, !9, i64 14158, !9, i64 14163, !9, i64 14168, !9, i64 14176, !9, i64 14196, !9, i64 14216, !14, i64 14236, !12, i64 14240, !12, i64 14241, !9, i64 14242, !12, i64 14243, !40, i64 14244, !41, i64 14248}
!39 = !{!"ImVec2", !14, i64 0, !14, i64 4}
!40 = !{!"short", !9, i64 0}
!41 = !{!"ImVector_ImWchar", !8, i64 0, !8, i64 4, !11, i64 8}
!42 = !{!38, !12, i64 208}


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