; LLVM IR from BrunoLevy/learn-fpga :: LiteX/software/Doom/mc1-doom/src (p_switch)

; 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.button_t = type { ptr, i32, i32, i32, ptr }
%struct.line_s = type { ptr, ptr, i32, i32, i16, i16, i16, [2 x i16], [4 x i32], i32, ptr, ptr, i32, ptr }
%struct.sector_t = type { i32, i32, i16, i16, i16, i16, i16, i32, ptr, [4 x i32], %struct.degenmobj_t, i32, ptr, ptr, i32, ptr }
%struct.degenmobj_t = type { %struct.thinker_s, i32, i32, i32 }
%struct.thinker_s = type { ptr, ptr, %union.actionf_t }
%union.actionf_t = type { ptr }

@buttonlist = external dso_local global [16 x %struct.button_t], align 16
@.str = external hidden unnamed_addr constant [37 x i8], align 1

; 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
define dso_local void @P_StartButton(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #1 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store i32 %2, ptr %7, align 4, !tbaa !9
  store i32 %3, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %11

11:                                               ; preds = %31, %4
  %12 = load i32, ptr %9, align 4, !tbaa !9
  %13 = icmp slt i32 %12, 16
  br i1 %13, label %14, label %34

14:                                               ; preds = %11
  %15 = load i32, ptr %9, align 4, !tbaa !9
  %16 = sext i32 %15 to i64
  %17 = getelementptr inbounds [16 x %struct.button_t], ptr @buttonlist, i64 0, i64 %16
  %18 = getelementptr inbounds %struct.button_t, ptr %17, i32 0, i32 3
  %19 = load i32, ptr %18, align 16, !tbaa !11
  %20 = icmp ne i32 %19, 0
  br i1 %20, label %21, label %30

21:                                               ; preds = %14
  %22 = load i32, ptr %9, align 4, !tbaa !9
  %23 = sext i32 %22 to i64
  %24 = getelementptr inbounds [16 x %struct.button_t], ptr @buttonlist, i64 0, i64 %23
  %25 = getelementptr inbounds %struct.button_t, ptr %24, i32 0, i32 0
  %26 = load ptr, ptr %25, align 16, !tbaa !13
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = icmp eq ptr %26, %27
  br i1 %28, label %29, label %30

29:                                               ; preds = %21
  store i32 1, ptr %10, align 4
  br label %79

30:                                               ; preds = %21, %14
  br label %31

31:                                               ; preds = %30
  %32 = load i32, ptr %9, align 4, !tbaa !9
  %33 = add nsw i32 %32, 1
  store i32 %33, ptr %9, align 4, !tbaa !9
  br label %11, !llvm.loop !14

34:                                               ; preds = %11
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %35

35:                                               ; preds = %75, %34
  %36 = load i32, ptr %9, align 4, !tbaa !9
  %37 = icmp slt i32 %36, 16
  br i1 %37, label %38, label %78

38:                                               ; preds = %35
  %39 = load i32, ptr %9, align 4, !tbaa !9
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds [16 x %struct.button_t], ptr @buttonlist, i64 0, i64 %40
  %42 = getelementptr inbounds %struct.button_t, ptr %41, i32 0, i32 3
  %43 = load i32, ptr %42, align 16, !tbaa !11
  %44 = icmp ne i32 %43, 0
  br i1 %44, label %74, label %45

45:                                               ; preds = %38
  %46 = load ptr, ptr %5, align 8, !tbaa !5
  %47 = load i32, ptr %9, align 4, !tbaa !9
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds [16 x %struct.button_t], ptr @buttonlist, i64 0, i64 %48
  %50 = getelementptr inbounds %struct.button_t, ptr %49, i32 0, i32 0
  store ptr %46, ptr %50, align 16, !tbaa !13
  %51 = load i32, ptr %6, align 4, !tbaa !9
  %52 = load i32, ptr %9, align 4, !tbaa !9
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [16 x %struct.button_t], ptr @buttonlist, i64 0, i64 %53
  %55 = getelementptr inbounds %struct.button_t, ptr %54, i32 0, i32 1
  store i32 %51, ptr %55, align 8, !tbaa !16
  %56 = load i32, ptr %7, align 4, !tbaa !9
  %57 = load i32, ptr %9, align 4, !tbaa !9
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [16 x %struct.button_t], ptr @buttonlist, i64 0, i64 %58
  %60 = getelementptr inbounds %struct.button_t, ptr %59, i32 0, i32 2
  store i32 %56, ptr %60, align 4, !tbaa !17
  %61 = load i32, ptr %8, align 4, !tbaa !9
  %62 = load i32, ptr %9, align 4, !tbaa !9
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds [16 x %struct.button_t], ptr @buttonlist, i64 0, i64 %63
  %65 = getelementptr inbounds %struct.button_t, ptr %64, i32 0, i32 3
  store i32 %61, ptr %65, align 16, !tbaa !11
  %66 = load ptr, ptr %5, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.line_s, ptr %66, i32 0, i32 10
  %68 = load ptr, ptr %67, align 8, !tbaa !18
  %69 = getelementptr inbounds %struct.sector_t, ptr %68, i32 0, i32 10
  %70 = load i32, ptr %9, align 4, !tbaa !9
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [16 x %struct.button_t], ptr @buttonlist, i64 0, i64 %71
  %73 = getelementptr inbounds %struct.button_t, ptr %72, i32 0, i32 4
  store ptr %69, ptr %73, align 8, !tbaa !21
  store i32 1, ptr %10, align 4
  br label %79

74:                                               ; preds = %38
  br label %75

75:                                               ; preds = %74
  %76 = load i32, ptr %9, align 4, !tbaa !9
  %77 = add nsw i32 %76, 1
  store i32 %77, ptr %9, align 4, !tbaa !9
  br label %35, !llvm.loop !22

78:                                               ; preds = %35
  call void (ptr, ...) @I_Error(ptr noundef @.str) #4
  unreachable

79:                                               ; preds = %45, %29
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  ret void
}

; Function Attrs: noreturn
declare void @I_Error(ptr noundef, ...) #2

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 = { noreturn "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 }
attributes #4 = { noreturn }

!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 16}
!12 = !{!"", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !6, i64 24}
!13 = !{!12, !6, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!12, !10, i64 8}
!17 = !{!12, !10, i64 12}
!18 = !{!19, !6, i64 56}
!19 = !{!"line_s", !6, i64 0, !6, i64 8, !10, i64 16, !10, i64 20, !20, i64 24, !20, i64 26, !20, i64 28, !7, i64 30, !7, i64 36, !10, i64 52, !6, i64 56, !6, i64 64, !10, i64 72, !6, i64 80}
!20 = !{!"short", !7, i64 0}
!21 = !{!12, !6, i64 24}
!22 = distinct !{!22, !15}


; 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.button_t = type { ptr, i32, i32, i32, ptr }

@buttonlist = external dso_local local_unnamed_addr global [16 x %struct.button_t], align 16
@.str = external hidden unnamed_addr constant [37 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @P_StartButton(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #0 {
  %5 = load i32, ptr getelementptr inbounds (i8, ptr @buttonlist, i64 16), align 16, !tbaa !5
  %.not17 = icmp eq i32 %5, 0
  %6 = load ptr, ptr @buttonlist, align 16
  %7 = icmp ne ptr %6, %0
  %or.cond.not = select i1 %.not17, i1 true, i1 %7
  br i1 %or.cond.not, label %8, label %.loopexit

8:                                                ; preds = %4
  %9 = load i32, ptr getelementptr inbounds (i8, ptr @buttonlist, i64 48), align 16, !tbaa !5
  %.not17.1 = icmp eq i32 %9, 0
  %10 = load ptr, ptr getelementptr inbounds (i8, ptr @buttonlist, i64 32), align 16
  %11 = icmp ne ptr %10, %0
  %or.cond27.not = select i1 %.not17.1, i1 true, i1 %11
  br i1 %or.cond27.not, label %12, label %.loopexit

12:                                               ; preds = %8
  %13 = load i32, ptr getelementptr inbounds (i8, ptr @buttonlist, i64 80), align 16, !tbaa !5
  %.not17.2 = icmp eq i32 %13, 0
  %14 = load ptr, ptr getelementptr inbounds (i8, ptr @buttonlist, i64 64), align 16
  %15 = icmp ne ptr %14, %0
  %or.cond29.not = select i1 %.not17.2, i1 true, i1 %15
  br i1 %or.cond29.not, label %16, label %.loopexit

16:                                               ; preds = %12
  %17 = load i32, ptr getelementptr inbounds (i8, ptr @buttonlist, i64 112), align 16, !tbaa !5
  %.not17.3 = icmp eq i32 %17, 0
  %18 = load ptr, ptr getelementptr inbounds (i8, ptr @buttonlist, i64 96), align 16
  %19 = icmp ne ptr %18, %0
  %or.cond31.not = select i1 %.not17.3, i1 true, i1 %19
  br i1 %or.cond31.not, label %20, label %.loopexit

20:                                               ; preds = %16
  %21 = load i32, ptr getelementptr inbounds (i8, ptr @buttonlist, i64 144), align 16, !tbaa !5
  %.not17.4 = icmp eq i32 %21, 0
  %22 = load ptr, ptr getelementptr inbounds (i8, ptr @buttonlist, i64 128), align 16
  %23 = icmp ne ptr %22, %0
  %or.cond33.not = select i1 %.not17.4, i1 true, i1 %23
  br i1 %or.cond33.not, label %24, label %.loopexit

24:                                               ; preds = %20
  %25 = load i32, ptr getelementptr inbounds (i8, ptr @buttonlist, i64 176), align 16, !tbaa !5
  %.not17.5 = icmp eq i32 %25, 0
  %26 = load ptr, ptr getelementptr inbounds (i8, ptr @buttonlist, i64 160), align 16
  %27 = icmp ne ptr %26, %0
  %or.cond35.not = select i1 %.not17.5, i1 true, i1 %27
  br i1 %or.cond35.not, label %28, label %.loopexit

28:                                               ; preds = %24
  %29 = load i32, ptr getelementptr inbounds (i8, ptr @buttonlist, i64 208), align 16, !tbaa !5
  %.not17.6 = icmp eq i32 %29, 0
  %30 = load ptr, ptr getelementptr inbounds (i8, ptr @buttonlist, i64 192), align 16
  %31 = icmp ne ptr %30, %0
  %or.cond37.not = select i1 %.not17.6, i1 true, i1 %31
  br i1 %or.cond37.not, label %32, label %.loopexit

32:                                               ; preds = %28
  %33 = load i32, ptr getelementptr inbounds (i8, ptr @buttonlist, i64 240), align 16, !tbaa !5
  %.not17.7 = icmp eq i32 %33, 0
  %34 = load ptr, ptr getelementptr inbounds (i8, ptr @buttonlist, i64 224), align 16
  %35 = icmp ne ptr %34, %0
  %or.cond39.not = select i1 %.not17.7, i1 true, i1 %35
  br i1 %or.cond39.not, label %36, label %.loopexit

36:                                               ; preds = %32
  %37 = load i32, ptr getelementptr inbounds (i8, ptr @buttonlist, i64 272), align 16, !tbaa !5
  %.not17.8 = icmp eq i32 %37, 0
  %38 = load ptr, ptr getelementptr inbounds (i8, ptr @buttonlist, i64 256), align 16
  %39 = icmp ne ptr %38, %0
  %or.cond41.not = select i1 %.not17.8, i1 true, i1 %39
  br i1 %or.cond41.not, label %40, label %.loopexit

40:                                               ; preds = %36
  %41 = load i32, ptr getelementptr inbounds (i8, ptr @buttonlist, i64 304), align 16, !tbaa !5
  %.not17.9 = icmp eq i32 %41, 0
  %42 = load ptr, ptr getelementptr inbounds (i8, ptr @buttonlist, i64 288), align 16
  %43 = icmp ne ptr %42, %0
  %or.cond43.not = select i1 %.not17.9, i1 true, i1 %43
  br i1 %or.cond43.not, label %44, label %.loopexit

44:                                               ; preds = %40
  %45 = load i32, ptr getelementptr inbounds (i8, ptr @buttonlist, i64 336), align 16, !tbaa !5
  %.not17.10 = icmp eq i32 %45, 0
  %46 = load ptr, ptr getelementptr inbounds (i8, ptr @buttonlist, i64 320), align 16
  %47 = icmp ne ptr %46, %0
  %or.cond45.not = select i1 %.not17.10, i1 true, i1 %47
  br i1 %or.cond45.not, label %48, label %.loopexit

48:                                               ; preds = %44
  %49 = load i32, ptr getelementptr inbounds (i8, ptr @buttonlist, i64 368), align 16, !tbaa !5
  %.not17.11 = icmp eq i32 %49, 0
  %50 = load ptr, ptr getelementptr inbounds (i8, ptr @buttonlist, i64 352), align 16
  %51 = icmp ne ptr %50, %0
  %or.cond47.not = select i1 %.not17.11, i1 true, i1 %51
  br i1 %or.cond47.not, label %52, label %.loopexit

52:                                               ; preds = %48
  %53 = load i32, ptr getelementptr inbounds (i8, ptr @buttonlist, i64 400), align 16, !tbaa !5
  %.not17.12 = icmp eq i32 %53, 0
  %54 = load ptr, ptr getelementptr inbounds (i8, ptr @buttonlist, i64 384), align 16
  %55 = icmp ne ptr %54, %0
  %or.cond49.not = select i1 %.not17.12, i1 true, i1 %55
  br i1 %or.cond49.not, label %56, label %.loopexit

56:                                               ; preds = %52
  %57 = load i32, ptr getelementptr inbounds (i8, ptr @buttonlist, i64 432), align 16, !tbaa !5
  %.not17.13 = icmp eq i32 %57, 0
  %58 = load ptr, ptr getelementptr inbounds (i8, ptr @buttonlist, i64 416), align 16
  %59 = icmp ne ptr %58, %0
  %or.cond51.not = select i1 %.not17.13, i1 true, i1 %59
  br i1 %or.cond51.not, label %60, label %.loopexit

60:                                               ; preds = %56
  %61 = load i32, ptr getelementptr inbounds (i8, ptr @buttonlist, i64 464), align 16, !tbaa !5
  %.not17.14 = icmp eq i32 %61, 0
  %62 = load ptr, ptr getelementptr inbounds (i8, ptr @buttonlist, i64 448), align 16
  %63 = icmp ne ptr %62, %0
  %or.cond53.not = select i1 %.not17.14, i1 true, i1 %63
  br i1 %or.cond53.not, label %64, label %.loopexit

64:                                               ; preds = %60
  %65 = load i32, ptr getelementptr inbounds (i8, ptr @buttonlist, i64 496), align 16, !tbaa !5
  %.not17.15 = icmp eq i32 %65, 0
  %66 = load ptr, ptr getelementptr inbounds (i8, ptr @buttonlist, i64 480), align 16
  %67 = icmp ne ptr %66, %0
  %or.cond55.not = select i1 %.not17.15, i1 true, i1 %67
  br i1 %or.cond55.not, label %.preheader.preheader, label %.loopexit

.preheader.preheader:                             ; preds = %64
  %brmerge = or i1 %.not17, %.not17.1
  %brmerge56 = or i1 %brmerge, %.not17.2
  %brmerge57 = or i1 %brmerge56, %.not17.3
  %brmerge58 = or i1 %brmerge57, %.not17.4
  %brmerge59 = or i1 %brmerge58, %.not17.5
  %brmerge60 = or i1 %brmerge59, %.not17.6
  %brmerge61 = or i1 %brmerge60, %.not17.7
  %brmerge62 = or i1 %brmerge61, %.not17.8
  %brmerge63 = or i1 %brmerge62, %.not17.9
  %brmerge64 = or i1 %brmerge63, %.not17.10
  %brmerge65 = or i1 %brmerge64, %.not17.11
  %brmerge66 = or i1 %brmerge65, %.not17.12
  %brmerge67 = or i1 %brmerge66, %.not17.13
  %brmerge68 = or i1 %brmerge67, %.not17.14
  %brmerge69 = or i1 %brmerge68, %.not17.15
  br i1 %brmerge69, label %69, label %68

68:                                               ; preds = %.preheader.preheader
  tail call void (ptr, ...) @I_Error(ptr noundef nonnull @.str) #2
  unreachable

69:                                               ; preds = %.preheader.preheader
  %buttonlist.mux = select i1 %.not17.1, ptr getelementptr inbounds (i8, ptr @buttonlist, i64 32), ptr getelementptr inbounds (i8, ptr @buttonlist, i64 64)
  %buttonlist.mux.mux = select i1 %.not17, ptr @buttonlist, ptr %buttonlist.mux
  %buttonlist.mux.mux.mux = select i1 %.not17.3, ptr getelementptr inbounds (i8, ptr @buttonlist, i64 96), ptr getelementptr inbounds (i8, ptr @buttonlist, i64 128)
  %buttonlist.mux.mux.mux.mux = select i1 %brmerge56, ptr %buttonlist.mux.mux, ptr %buttonlist.mux.mux.mux
  %buttonlist.mux.mux.mux.mux.mux = select i1 %.not17.5, ptr getelementptr inbounds (i8, ptr @buttonlist, i64 160), ptr getelementptr inbounds (i8, ptr @buttonlist, i64 192)
  %buttonlist.mux.mux.mux.mux.mux.mux = select i1 %brmerge58, ptr %buttonlist.mux.mux.mux.mux, ptr %buttonlist.mux.mux.mux.mux.mux
  %buttonlist.mux.mux.mux.mux.mux.mux.mux = select i1 %.not17.7, ptr getelementptr inbounds (i8, ptr @buttonlist, i64 224), ptr getelementptr inbounds (i8, ptr @buttonlist, i64 256)
  %buttonlist.mux.mux.mux.mux.mux.mux.mux.mux = select i1 %brmerge60, ptr %buttonlist.mux.mux.mux.mux.mux.mux, ptr %buttonlist.mux.mux.mux.mux.mux.mux.mux
  %buttonlist.mux.mux.mux.mux.mux.mux.mux.mux.mux = select i1 %.not17.9, ptr getelementptr inbounds (i8, ptr @buttonlist, i64 288), ptr getelementptr inbounds (i8, ptr @buttonlist, i64 320)
  %buttonlist.mux.mux.mux.mux.mux.mux.mux.mux.mux.mux = select i1 %brmerge62, ptr %buttonlist.mux.mux.mux.mux.mux.mux.mux.mux, ptr %buttonlist.mux.mux.mux.mux.mux.mux.mux.mux.mux
  %buttonlist.mux.mux.mux.mux.mux.mux.mux.mux.mux.mux.mux = select i1 %.not17.11, ptr getelementptr inbounds (i8, ptr @buttonlist, i64 352), ptr getelementptr inbounds (i8, ptr @buttonlist, i64 384)
  %buttonlist.mux.mux.mux.mux.mux.mux.mux.mux.mux.mux.mux.mux = select i1 %brmerge64, ptr %buttonlist.mux.mux.mux.mux.mux.mux.mux.mux.mux.mux, ptr %buttonlist.mux.mux.mux.mux.mux.mux.mux.mux.mux.mux.mux
  %buttonlist.mux.mux.mux.mux.mux.mux.mux.mux.mux.mux.mux.mux.mux = select i1 %.not17.13, ptr getelementptr inbounds (i8, ptr @buttonlist, i64 416), ptr getelementptr inbounds (i8, ptr @buttonlist, i64 448)
  %buttonlist.mux.mux.mux.mux.mux.mux.mux.mux.mux.mux.mux.mux.mux.mux = select i1 %brmerge66, ptr %buttonlist.mux.mux.mux.mux.mux.mux.mux.mux.mux.mux.mux.mux, ptr %buttonlist.mux.mux.mux.mux.mux.mux.mux.mux.mux.mux.mux.mux.mux
  %buttonlist.mux.mux.mux.mux.mux.mux.mux.mux.mux.mux.mux.mux.mux.mux.mux = select i1 %brmerge68, ptr %buttonlist.mux.mux.mux.mux.mux.mux.mux.mux.mux.mux.mux.mux.mux.mux, ptr getelementptr inbounds (i8, ptr @buttonlist, i64 480)
  %70 = getelementptr inbounds i8, ptr %buttonlist.mux.mux.mux.mux.mux.mux.mux.mux.mux.mux.mux.mux.mux.mux.mux, i64 16
  store ptr %0, ptr %buttonlist.mux.mux.mux.mux.mux.mux.mux.mux.mux.mux.mux.mux.mux.mux.mux, align 16, !tbaa !11
  %71 = getelementptr inbounds i8, ptr %buttonlist.mux.mux.mux.mux.mux.mux.mux.mux.mux.mux.mux.mux.mux.mux.mux, i64 8
  store i32 %1, ptr %71, align 8, !tbaa !12
  %72 = getelementptr inbounds i8, ptr %buttonlist.mux.mux.mux.mux.mux.mux.mux.mux.mux.mux.mux.mux.mux.mux.mux, i64 12
  store i32 %2, ptr %72, align 4, !tbaa !13
  store i32 %3, ptr %70, align 16, !tbaa !5
  %73 = getelementptr inbounds i8, ptr %0, i64 56
  %74 = load ptr, ptr %73, align 8, !tbaa !14
  %75 = getelementptr inbounds i8, ptr %74, i64 48
  %76 = getelementptr inbounds i8, ptr %buttonlist.mux.mux.mux.mux.mux.mux.mux.mux.mux.mux.mux.mux.mux.mux.mux, i64 24
  store ptr %75, ptr %76, align 8, !tbaa !17
  br label %.loopexit

.loopexit:                                        ; preds = %64, %60, %56, %52, %48, %44, %40, %36, %32, %28, %24, %20, %16, %12, %8, %4, %69
  ret void
}

; Function Attrs: noreturn
declare void @I_Error(ptr noundef, ...) local_unnamed_addr #1

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { noreturn "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 }

!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, !10, i64 16}
!6 = !{!"", !7, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !7, i64 24}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!6, !7, i64 0}
!12 = !{!6, !10, i64 8}
!13 = !{!6, !10, i64 12}
!14 = !{!15, !7, i64 56}
!15 = !{!"line_s", !7, i64 0, !7, i64 8, !10, i64 16, !10, i64 20, !16, i64 24, !16, i64 26, !16, i64 28, !8, i64 30, !8, i64 36, !10, i64 52, !7, i64 56, !7, i64 64, !10, i64 72, !7, i64 80}
!16 = !{!"short", !8, i64 0}
!17 = !{!6, !7, i64 24}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,SROAPass,SimplifyCFGPass,TailCallElimPass