; LLVM IR from NotManyIdeasDev/double-pendulum-sim :: double-pendulum-sim/Libraries/raygui-2.8/examples/text_editor (text_editor)

; 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.Font = type { i32, i32, i32, %struct.Texture, ptr, ptr }
%struct.Texture = type { i32, i32, i32, i32, i32 }
%struct.Vector2 = type { float, float }
%struct.Color = type { i8, i8, i8, i8 }
%struct.Rectangle = type { float, float, float, float }

@.str.8 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [5 x i8], align 1
@text01 = external hidden global [128 x i8], align 16
@text02 = external hidden global [128 x i8], align 16

; Function Attrs: nounwind uwtable
declare dso_local void @GuiSetFont(ptr noundef byval(%struct.Font) align 8) #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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2

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

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

declare <2 x float> @GetMousePosition() #4

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

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #6 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca %struct.Font, align 8
  %9 = alloca i8, align 1
  %10 = alloca i8, align 1
  %11 = alloca %struct.Vector2, align 4
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca %struct.Font, align 8
  %15 = alloca %struct.Color, align 1
  %16 = alloca %struct.Rectangle, align 4
  %17 = alloca %struct.Rectangle, align 4
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  store i32 800, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  store i32 450, ptr %7, align 4, !tbaa !5
  call void @InitWindow(i32 noundef 800, i32 noundef 450, ptr noundef @.str.8)
  call void @llvm.lifetime.start.p0(i64 48, ptr %8) #7
  call void @llvm.memset.p0.i64(ptr align 8 %8, i8 0, i64 48, i1 false)
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #7
  store i8 0, ptr %9, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #7
  store i8 0, ptr %10, align 1, !tbaa !11
  call void @SetTargetFPS(i32 noundef 60)
  br label %18

18:                                               ; preds = %100, %2
  %19 = call zeroext i1 @WindowShouldClose()
  %20 = xor i1 %19, true
  br i1 %20, label %21, label %101

21:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %22 = call <2 x float> @GetMousePosition()
  store <2 x float> %22, ptr %11, align 4
  %23 = call zeroext i1 @IsFileDropped()
  br i1 %23, label %24, label %57

24:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 0, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %25 = call ptr @GetDroppedFiles(ptr noundef %12)
  store ptr %25, ptr %13, align 8, !tbaa !9
  %26 = load ptr, ptr %13, align 8, !tbaa !9
  %27 = getelementptr inbounds ptr, ptr %26, i64 0
  %28 = load ptr, ptr %27, align 8, !tbaa !9
  %29 = call zeroext i1 @IsFileExtension(ptr noundef %28, ptr noundef @.str.9)
  br i1 %29, label %40, label %30

30:                                               ; preds = %24
  %31 = load ptr, ptr %13, align 8, !tbaa !9
  %32 = getelementptr inbounds ptr, ptr %31, i64 0
  %33 = load ptr, ptr %32, align 8, !tbaa !9
  %34 = call zeroext i1 @IsFileExtension(ptr noundef %33, ptr noundef @.str.10)
  br i1 %34, label %40, label %35

35:                                               ; preds = %30
  %36 = load ptr, ptr %13, align 8, !tbaa !9
  %37 = getelementptr inbounds ptr, ptr %36, i64 0
  %38 = load ptr, ptr %37, align 8, !tbaa !9
  %39 = call zeroext i1 @IsFileExtension(ptr noundef %38, ptr noundef @.str.11)
  br i1 %39, label %40, label %56

40:                                               ; preds = %35, %30, %24
  call void @llvm.lifetime.start.p0(i64 48, ptr %14) #7
  %41 = load ptr, ptr %13, align 8, !tbaa !9
  %42 = getelementptr inbounds ptr, ptr %41, i64 0
  %43 = load ptr, ptr %42, align 8, !tbaa !9
  call void @LoadFont(ptr dead_on_unwind writable sret(%struct.Font) align 8 %14, ptr noundef %43)
  %44 = getelementptr inbounds %struct.Font, ptr %14, i32 0, i32 3
  %45 = getelementptr inbounds %struct.Texture, ptr %44, i32 0, i32 0
  %46 = load i32, ptr %45, align 4, !tbaa !13
  %47 = icmp ne i32 %46, 0
  br i1 %47, label %48, label %55

48:                                               ; preds = %40
  call void @GuiSetFont(ptr noundef byval(%struct.Font) align 8 %14)
  %49 = getelementptr inbounds %struct.Font, ptr %8, i32 0, i32 3
  %50 = getelementptr inbounds %struct.Texture, ptr %49, i32 0, i32 0
  %51 = load i32, ptr %50, align 4, !tbaa !13
  %52 = icmp ne i32 %51, 0
  br i1 %52, label %53, label %54

53:                                               ; preds = %48
  call void @UnloadFont(ptr noundef byval(%struct.Font) align 8 %8)
  br label %54

54:                                               ; preds = %53, %48
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %8, ptr align 8 %14, i64 48, i1 false), !tbaa.struct !16
  br label %55

55:                                               ; preds = %54, %40
  call void @llvm.lifetime.end.p0(i64 48, ptr %14) #7
  br label %56

56:                                               ; preds = %55, %35
  call void @ClearDroppedFiles()
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %57

57:                                               ; preds = %56, %21
  call void @BeginDrawing()
  %58 = getelementptr inbounds %struct.Color, ptr %15, i32 0, i32 0
  store i8 -11, ptr %58, align 1, !tbaa !17
  %59 = getelementptr inbounds %struct.Color, ptr %15, i32 0, i32 1
  store i8 -11, ptr %59, align 1, !tbaa !19
  %60 = getelementptr inbounds %struct.Color, ptr %15, i32 0, i32 2
  store i8 -11, ptr %60, align 1, !tbaa !20
  %61 = getelementptr inbounds %struct.Color, ptr %15, i32 0, i32 3
  store i8 -1, ptr %61, align 1, !tbaa !21
  %62 = load i32, ptr %15, align 1
  call void @ClearBackground(i32 %62)
  %63 = getelementptr inbounds %struct.Rectangle, ptr %16, i32 0, i32 0
  store float 2.000000e+01, ptr %63, align 4, !tbaa !22
  %64 = getelementptr inbounds %struct.Rectangle, ptr %16, i32 0, i32 1
  store float 2.000000e+01, ptr %64, align 4, !tbaa !25
  %65 = getelementptr inbounds %struct.Rectangle, ptr %16, i32 0, i32 2
  store float 3.800000e+02, ptr %65, align 4, !tbaa !26
  %66 = getelementptr inbounds %struct.Rectangle, ptr %16, i32 0, i32 3
  store float 4.100000e+02, ptr %66, align 4, !tbaa !27
  %67 = call i64 @strlen(ptr noundef @text01) #8
  %68 = trunc i64 %67 to i32
  %69 = load i8, ptr %9, align 1, !tbaa !11, !range !28, !noundef !29
  %70 = trunc i8 %69 to i1
  %71 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %16, i32 0, i32 0
  %72 = load <2 x float>, ptr %71, align 4
  %73 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %16, i32 0, i32 1
  %74 = load <2 x float>, ptr %73, align 4
  %75 = call zeroext i1 @GuiTextEditor(<2 x float> %72, <2 x float> %74, ptr noundef @text01, i32 noundef %68, i1 noundef zeroext %70)
  br i1 %75, label %76, label %81

76:                                               ; preds = %57
  %77 = load i8, ptr %9, align 1, !tbaa !11, !range !28, !noundef !29
  %78 = trunc i8 %77 to i1
  %79 = xor i1 %78, true
  %80 = zext i1 %79 to i8
  store i8 %80, ptr %9, align 1, !tbaa !11
  br label %81

81:                                               ; preds = %76, %57
  %82 = getelementptr inbounds %struct.Rectangle, ptr %17, i32 0, i32 0
  store float 4.200000e+02, ptr %82, align 4, !tbaa !22
  %83 = getelementptr inbounds %struct.Rectangle, ptr %17, i32 0, i32 1
  store float 2.000000e+01, ptr %83, align 4, !tbaa !25
  %84 = getelementptr inbounds %struct.Rectangle, ptr %17, i32 0, i32 2
  store float 3.600000e+02, ptr %84, align 4, !tbaa !26
  %85 = getelementptr inbounds %struct.Rectangle, ptr %17, i32 0, i32 3
  store float 4.100000e+02, ptr %85, align 4, !tbaa !27
  %86 = call i64 @strlen(ptr noundef @text02) #8
  %87 = trunc i64 %86 to i32
  %88 = load i8, ptr %10, align 1, !tbaa !11, !range !28, !noundef !29
  %89 = trunc i8 %88 to i1
  %90 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %17, i32 0, i32 0
  %91 = load <2 x float>, ptr %90, align 4
  %92 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %17, i32 0, i32 1
  %93 = load <2 x float>, ptr %92, align 4
  %94 = call zeroext i1 @GuiTextEditor(<2 x float> %91, <2 x float> %93, ptr noundef @text02, i32 noundef %87, i1 noundef zeroext %89)
  br i1 %94, label %95, label %100

95:                                               ; preds = %81
  %96 = load i8, ptr %10, align 1, !tbaa !11, !range !28, !noundef !29
  %97 = trunc i8 %96 to i1
  %98 = xor i1 %97, true
  %99 = zext i1 %98 to i8
  store i8 %99, ptr %10, align 1, !tbaa !11
  br label %100

100:                                              ; preds = %95, %81
  call void @EndDrawing()
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  br label %18, !llvm.loop !30

101:                                              ; preds = %18
  call void @CloseWindow()
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  ret i32 0
}

declare void @InitWindow(i32 noundef, i32 noundef, ptr noundef) #4

declare void @SetTargetFPS(i32 noundef) #4

declare zeroext i1 @WindowShouldClose() #4

declare zeroext i1 @IsFileDropped() #4

declare ptr @GetDroppedFiles(ptr noundef) #4

declare zeroext i1 @IsFileExtension(ptr noundef, ptr noundef) #4

declare void @LoadFont(ptr dead_on_unwind writable sret(%struct.Font) align 8, ptr noundef) #4

declare void @UnloadFont(ptr noundef byval(%struct.Font) align 8) #4

declare void @ClearDroppedFiles() #4

declare void @BeginDrawing() #4

declare void @ClearBackground(i32) #4

; Function Attrs: nounwind uwtable
declare dso_local zeroext i1 @GuiTextEditor(<2 x float>, <2 x float>, ptr noundef, i32 noundef, i1 noundef zeroext) #6

declare void @EndDrawing() #4

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

!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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_Bool", !7, i64 0}
!13 = !{!14, !6, i64 12}
!14 = !{!"Font", !6, i64 0, !6, i64 4, !6, i64 8, !15, i64 12, !10, i64 32, !10, i64 40}
!15 = !{!"Texture", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16}
!16 = !{i64 0, i64 4, !5, i64 4, i64 4, !5, i64 8, i64 4, !5, i64 12, i64 4, !5, i64 16, i64 4, !5, i64 20, i64 4, !5, i64 24, i64 4, !5, i64 28, i64 4, !5, i64 32, i64 8, !9, i64 40, i64 8, !9}
!17 = !{!18, !7, i64 0}
!18 = !{!"Color", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3}
!19 = !{!18, !7, i64 1}
!20 = !{!18, !7, i64 2}
!21 = !{!18, !7, i64 3}
!22 = !{!23, !24, i64 0}
!23 = !{!"Rectangle", !24, i64 0, !24, i64 4, !24, i64 8, !24, i64 12}
!24 = !{!"float", !7, i64 0}
!25 = !{!23, !24, i64 4}
!26 = !{!23, !24, i64 8}
!27 = !{!23, !24, i64 12}
!28 = !{i8 0, i8 2}
!29 = !{}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}


; 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.Font = type { i32, i32, i32, %struct.Texture, ptr, ptr }
%struct.Texture = type { i32, i32, i32, i32, i32 }

@.str.8 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [5 x i8], align 1
@text01 = external hidden global [128 x i8], align 16
@text02 = external hidden global [128 x i8], align 16

; Function Attrs: nounwind uwtable
declare dso_local void @GuiSetFont(ptr noundef byval(%struct.Font) align 8) local_unnamed_addr #0

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

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

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

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

declare <2 x float> @GetMousePosition() local_unnamed_addr #4

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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #6 {
  %3 = alloca %struct.Font, align 8
  %4 = alloca i32, align 4
  %5 = alloca %struct.Font, align 8
  tail call void @InitWindow(i32 noundef 800, i32 noundef 450, ptr noundef nonnull @.str.8) #7
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %3) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(48) %3, i8 0, i64 48, i1 false)
  tail call void @SetTargetFPS(i32 noundef 60) #7
  %6 = tail call zeroext i1 @WindowShouldClose() #7
  br i1 %6, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %2
  %7 = getelementptr inbounds i8, ptr %5, i64 12
  %8 = getelementptr inbounds i8, ptr %3, i64 12
  br label %9

9:                                                ; preds = %.lr.ph, %31
  %.020 = phi i1 [ false, %.lr.ph ], [ %.1, %31 ]
  %.01619 = phi i1 [ false, %.lr.ph ], [ %.117, %31 ]
  %10 = call <2 x float> @GetMousePosition() #7
  %11 = call zeroext i1 @IsFileDropped() #7
  br i1 %11, label %12, label %31

12:                                               ; preds = %9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #7
  store i32 0, ptr %4, align 4, !tbaa !5
  %13 = call ptr @GetDroppedFiles(ptr noundef nonnull %4) #7
  %14 = load ptr, ptr %13, align 8, !tbaa !9
  %15 = call zeroext i1 @IsFileExtension(ptr noundef %14, ptr noundef nonnull @.str.9) #7
  br i1 %15, label %22, label %16

16:                                               ; preds = %12
  %17 = load ptr, ptr %13, align 8, !tbaa !9
  %18 = call zeroext i1 @IsFileExtension(ptr noundef %17, ptr noundef nonnull @.str.10) #7
  br i1 %18, label %22, label %19

19:                                               ; preds = %16
  %20 = load ptr, ptr %13, align 8, !tbaa !9
  %21 = call zeroext i1 @IsFileExtension(ptr noundef %20, ptr noundef nonnull @.str.11) #7
  br i1 %21, label %22, label %30

22:                                               ; preds = %19, %16, %12
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %5) #7
  %23 = load ptr, ptr %13, align 8, !tbaa !9
  call void @LoadFont(ptr dead_on_unwind nonnull writable sret(%struct.Font) align 8 %5, ptr noundef %23) #7
  %24 = load i32, ptr %7, align 4, !tbaa !11
  %.not = icmp eq i32 %24, 0
  br i1 %.not, label %29, label %25

25:                                               ; preds = %22
  call void @GuiSetFont(ptr noundef nonnull byval(%struct.Font) align 8 %5)
  %26 = load i32, ptr %8, align 4, !tbaa !11
  %.not18 = icmp eq i32 %26, 0
  br i1 %.not18, label %28, label %27

27:                                               ; preds = %25
  call void @UnloadFont(ptr noundef nonnull byval(%struct.Font) align 8 %3) #7
  br label %28

28:                                               ; preds = %27, %25
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 8 dereferenceable(48) %5, i64 48, i1 false), !tbaa.struct !14
  br label %29

29:                                               ; preds = %28, %22
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #7
  br label %30

30:                                               ; preds = %29, %19
  call void @ClearDroppedFiles() #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  br label %31

31:                                               ; preds = %30, %9
  call void @BeginDrawing() #7
  call void @ClearBackground(i32 -657931) #7
  %32 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) @text01) #8
  %33 = trunc i64 %32 to i32
  %34 = call zeroext i1 @GuiTextEditor(<2 x float> <float 2.000000e+01, float 2.000000e+01>, <2 x float> <float 3.800000e+02, float 4.100000e+02>, ptr noundef nonnull @text01, i32 noundef %33, i1 noundef zeroext %.020)
  %.1 = xor i1 %.020, %34
  %35 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) @text02) #8
  %36 = trunc i64 %35 to i32
  %37 = call zeroext i1 @GuiTextEditor(<2 x float> <float 4.200000e+02, float 2.000000e+01>, <2 x float> <float 3.600000e+02, float 4.100000e+02>, ptr noundef nonnull @text02, i32 noundef %36, i1 noundef zeroext %.01619)
  %.117 = xor i1 %.01619, %37
  call void @EndDrawing() #7
  %38 = call zeroext i1 @WindowShouldClose() #7
  br i1 %38, label %._crit_edge, label %9, !llvm.loop !15

._crit_edge:                                      ; preds = %31, %2
  call void @CloseWindow() #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %3) #7
  ret i32 0
}

declare void @InitWindow(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #4

declare void @SetTargetFPS(i32 noundef) local_unnamed_addr #4

declare zeroext i1 @WindowShouldClose() local_unnamed_addr #4

declare zeroext i1 @IsFileDropped() local_unnamed_addr #4

declare ptr @GetDroppedFiles(ptr noundef) local_unnamed_addr #4

declare zeroext i1 @IsFileExtension(ptr noundef, ptr noundef) local_unnamed_addr #4

declare void @LoadFont(ptr dead_on_unwind writable sret(%struct.Font) align 8, ptr noundef) local_unnamed_addr #4

declare void @UnloadFont(ptr noundef byval(%struct.Font) align 8) local_unnamed_addr #4

declare void @ClearDroppedFiles() local_unnamed_addr #4

declare void @BeginDrawing() local_unnamed_addr #4

declare void @ClearBackground(i32) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
declare dso_local zeroext i1 @GuiTextEditor(<2 x float>, <2 x float>, ptr noundef, i32 noundef, i1 noundef zeroext) local_unnamed_addr #6

declare void @EndDrawing() local_unnamed_addr #4

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

!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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !6, i64 12}
!12 = !{!"Font", !6, i64 0, !6, i64 4, !6, i64 8, !13, i64 12, !10, i64 32, !10, i64 40}
!13 = !{!"Texture", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16}
!14 = !{i64 0, i64 4, !5, i64 4, i64 4, !5, i64 8, i64 4, !5, i64 12, i64 4, !5, i64 16, i64 4, !5, i64 20, i64 4, !5, i64 24, i64 4, !5, i64 28, i64 4, !5, i64 32, i64 8, !9, i64 40, i64 8, !9}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: AggressiveInstCombinePass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass