; LLVM IR from lfarcaro/ARINC653_ARMV7A_Z7000 :: ARINC653_ARMV7A_Z7000.sw/ARINC653_ARMV7A_Z7000_bsp/ps7_cortexa9_0/libsrc/uartps_v3 (SetOptions)

; 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.Mapping = type { i16, i16, i32 }
%struct.XUartPs = type { %struct.XUartPs_Config, i32, i32, i32, %struct.XUartPsBuffer, %struct.XUartPsBuffer, ptr, ptr, i32, i8 }
%struct.XUartPs_Config = type { i16, i32, i32, i32 }
%struct.XUartPsBuffer = type { ptr, i32, i32 }

@Xil_AssertStatus = external global i32, align 4
@.str = external hidden unnamed_addr constant [171 x i8], align 1
@OptionsTable = external hidden global [8 x %struct.Mapping], align 16

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

declare void @Xil_Assert(ptr noundef, i32 noundef) #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @Xil_In32(i64 noundef) #2

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

10:                                               ; preds = %2
  store i32 0, ptr @Xil_AssertStatus, align 4, !tbaa !11
  br label %12

11:                                               ; preds = %2
  call void @Xil_Assert(ptr noundef @.str, i32 noundef 175)
  store i32 1, ptr @Xil_AssertStatus, align 4, !tbaa !11
  store i32 1, ptr %7, align 4
  br label %94

12:                                               ; preds = %10
  %13 = load ptr, ptr %3, align 8, !tbaa !5
  %14 = getelementptr inbounds %struct.XUartPs, ptr %13, i32 0, i32 2
  %15 = load i32, ptr %14, align 4, !tbaa !13
  %16 = icmp eq i32 %15, 286331153
  br i1 %16, label %17, label %18

17:                                               ; preds = %12
  store i32 0, ptr @Xil_AssertStatus, align 4, !tbaa !11
  br label %19

18:                                               ; preds = %12
  call void @Xil_Assert(ptr noundef @.str, i32 noundef 176)
  store i32 1, ptr @Xil_AssertStatus, align 4, !tbaa !11
  store i32 1, ptr %7, align 4
  br label %94

19:                                               ; preds = %17
  store i32 0, ptr %5, align 4, !tbaa !11
  br label %20

20:                                               ; preds = %90, %19
  %21 = load i32, ptr %5, align 4, !tbaa !11
  %22 = zext i32 %21 to i64
  %23 = icmp ult i64 %22, 8
  br i1 %23, label %24, label %93

24:                                               ; preds = %20
  %25 = load ptr, ptr %3, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.XUartPs, ptr %25, i32 0, i32 0
  %27 = getelementptr inbounds %struct.XUartPs_Config, ptr %26, i32 0, i32 1
  %28 = load i32, ptr %27, align 4, !tbaa !17
  %29 = load i32, ptr %5, align 4, !tbaa !11
  %30 = zext i32 %29 to i64
  %31 = getelementptr inbounds [8 x %struct.Mapping], ptr @OptionsTable, i64 0, i64 %30
  %32 = getelementptr inbounds %struct.Mapping, ptr %31, i32 0, i32 1
  %33 = load i16, ptr %32, align 2, !tbaa !18
  %34 = zext i16 %33 to i32
  %35 = add i32 %28, %34
  %36 = zext i32 %35 to i64
  %37 = call i32 @Xil_In32(i64 noundef %36)
  store i32 %37, ptr %6, align 4, !tbaa !11
  %38 = load i16, ptr %4, align 2, !tbaa !9
  %39 = zext i16 %38 to i32
  %40 = load i32, ptr %5, align 4, !tbaa !11
  %41 = zext i32 %40 to i64
  %42 = getelementptr inbounds [8 x %struct.Mapping], ptr @OptionsTable, i64 0, i64 %41
  %43 = getelementptr inbounds %struct.Mapping, ptr %42, i32 0, i32 0
  %44 = load i16, ptr %43, align 8, !tbaa !20
  %45 = zext i16 %44 to i32
  %46 = and i32 %39, %45
  %47 = icmp ne i32 %46, 0
  br i1 %47, label %48, label %67

48:                                               ; preds = %24
  %49 = load i32, ptr %5, align 4, !tbaa !11
  %50 = zext i32 %49 to i64
  %51 = getelementptr inbounds [8 x %struct.Mapping], ptr @OptionsTable, i64 0, i64 %50
  %52 = getelementptr inbounds %struct.Mapping, ptr %51, i32 0, i32 0
  %53 = load i16, ptr %52, align 8, !tbaa !20
  %54 = zext i16 %53 to i32
  %55 = icmp eq i32 %54, 128
  br i1 %55, label %56, label %59

56:                                               ; preds = %48
  %57 = load i32, ptr %6, align 4, !tbaa !11
  %58 = and i32 %57, -257
  store i32 %58, ptr %6, align 4, !tbaa !11
  br label %59

59:                                               ; preds = %56, %48
  %60 = load i32, ptr %5, align 4, !tbaa !11
  %61 = zext i32 %60 to i64
  %62 = getelementptr inbounds [8 x %struct.Mapping], ptr @OptionsTable, i64 0, i64 %61
  %63 = getelementptr inbounds %struct.Mapping, ptr %62, i32 0, i32 2
  %64 = load i32, ptr %63, align 4, !tbaa !21
  %65 = load i32, ptr %6, align 4, !tbaa !11
  %66 = or i32 %65, %64
  store i32 %66, ptr %6, align 4, !tbaa !11
  br label %76

67:                                               ; preds = %24
  %68 = load i32, ptr %5, align 4, !tbaa !11
  %69 = zext i32 %68 to i64
  %70 = getelementptr inbounds [8 x %struct.Mapping], ptr @OptionsTable, i64 0, i64 %69
  %71 = getelementptr inbounds %struct.Mapping, ptr %70, i32 0, i32 2
  %72 = load i32, ptr %71, align 4, !tbaa !21
  %73 = xor i32 %72, -1
  %74 = load i32, ptr %6, align 4, !tbaa !11
  %75 = and i32 %74, %73
  store i32 %75, ptr %6, align 4, !tbaa !11
  br label %76

76:                                               ; preds = %67, %59
  %77 = load ptr, ptr %3, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.XUartPs, ptr %77, i32 0, i32 0
  %79 = getelementptr inbounds %struct.XUartPs_Config, ptr %78, i32 0, i32 1
  %80 = load i32, ptr %79, align 4, !tbaa !17
  %81 = load i32, ptr %5, align 4, !tbaa !11
  %82 = zext i32 %81 to i64
  %83 = getelementptr inbounds [8 x %struct.Mapping], ptr @OptionsTable, i64 0, i64 %82
  %84 = getelementptr inbounds %struct.Mapping, ptr %83, i32 0, i32 1
  %85 = load i16, ptr %84, align 2, !tbaa !18
  %86 = zext i16 %85 to i32
  %87 = add i32 %80, %86
  %88 = zext i32 %87 to i64
  %89 = load i32, ptr %6, align 4, !tbaa !11
  call void @Xil_Out32(i64 noundef %88, i32 noundef %89)
  br label %90

90:                                               ; preds = %76
  %91 = load i32, ptr %5, align 4, !tbaa !11
  %92 = add i32 %91, 1
  store i32 %92, ptr %5, align 4, !tbaa !11
  br label %20, !llvm.loop !22

93:                                               ; preds = %20
  store i32 0, ptr %7, align 4
  br label %94

94:                                               ; preds = %93, %18, %11
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  %95 = load i32, ptr %7, align 4
  switch i32 %95, label %97 [
    i32 0, label %96
    i32 1, label %96
  ]

96:                                               ; preds = %94, %94
  ret void

97:                                               ; preds = %94
  unreachable
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @Xil_Out32(i64 noundef, i32 noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind 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 #4 = { 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 = !{!"short", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !12, i64 20}
!14 = !{!"", !15, i64 0, !12, i64 16, !12, i64 20, !12, i64 24, !16, i64 32, !16, i64 48, !6, i64 64, !6, i64 72, !12, i64 80, !7, i64 84}
!15 = !{!"", !10, i64 0, !12, i64 4, !12, i64 8, !12, i64 12}
!16 = !{!"", !6, i64 0, !12, i64 8, !12, i64 12}
!17 = !{!14, !12, i64 4}
!18 = !{!19, !10, i64 2}
!19 = !{!"", !10, i64 0, !10, i64 2, !12, i64 4}
!20 = !{!19, !10, i64 0}
!21 = !{!19, !12, i64 4}
!22 = distinct !{!22, !23}
!23 = !{!"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.Mapping = type { i16, i16, i32 }

@Xil_AssertStatus = external local_unnamed_addr global i32, align 4
@.str = external hidden unnamed_addr constant [171 x i8], align 1
@OptionsTable = external hidden local_unnamed_addr global [8 x %struct.Mapping], align 16

declare void @Xil_Assert(ptr noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @Xil_In32(i64 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @XUartPs_SetOptions(ptr noundef readonly %0, i16 noundef zeroext %1) local_unnamed_addr #2 {
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %7, label %3

3:                                                ; preds = %2
  store i32 0, ptr @Xil_AssertStatus, align 4, !tbaa !5
  %4 = getelementptr inbounds i8, ptr %0, i64 20
  %5 = load i32, ptr %4, align 4, !tbaa !9
  %6 = icmp eq i32 %5, 286331153
  br i1 %6, label %8, label %18

7:                                                ; preds = %2
  tail call void @Xil_Assert(ptr noundef nonnull @.str, i32 noundef 175) #3
  store i32 1, ptr @Xil_AssertStatus, align 4, !tbaa !5
  br label %.loopexit

8:                                                ; preds = %3
  %9 = getelementptr inbounds i8, ptr %0, i64 4
  %10 = load i32, ptr %9, align 4, !tbaa !15
  %11 = load i16, ptr getelementptr inbounds (i8, ptr @OptionsTable, i64 2), align 2, !tbaa !16
  %12 = zext i16 %11 to i32
  %13 = add i32 %10, %12
  %14 = zext i32 %13 to i64
  %15 = tail call i32 @Xil_In32(i64 noundef %14)
  %16 = load i16, ptr @OptionsTable, align 16, !tbaa !18
  %17 = and i16 %16, %1
  %.not19 = icmp eq i16 %17, 0
  br i1 %.not19, label %24, label %19

18:                                               ; preds = %3
  tail call void @Xil_Assert(ptr noundef nonnull @.str, i32 noundef 176) #3
  store i32 1, ptr @Xil_AssertStatus, align 4, !tbaa !5
  br label %.loopexit

19:                                               ; preds = %8
  %20 = icmp eq i16 %16, 128
  %21 = and i32 %15, -257
  %spec.select = select i1 %20, i32 %21, i32 %15
  %22 = load i32, ptr getelementptr inbounds (i8, ptr @OptionsTable, i64 4), align 4, !tbaa !19
  %23 = or i32 %22, %spec.select
  br label %28

24:                                               ; preds = %8
  %25 = load i32, ptr getelementptr inbounds (i8, ptr @OptionsTable, i64 4), align 4, !tbaa !19
  %26 = xor i32 %25, -1
  %27 = and i32 %15, %26
  br label %28

28:                                               ; preds = %24, %19
  %.1 = phi i32 [ %23, %19 ], [ %27, %24 ]
  %29 = load i32, ptr %9, align 4, !tbaa !15
  %30 = load i16, ptr getelementptr inbounds (i8, ptr @OptionsTable, i64 2), align 2, !tbaa !16
  %31 = zext i16 %30 to i32
  %32 = add i32 %29, %31
  %33 = zext i32 %32 to i64
  tail call void @Xil_Out32(i64 noundef %33, i32 noundef %.1)
  %34 = load i32, ptr %9, align 4, !tbaa !15
  %35 = load i16, ptr getelementptr inbounds (i8, ptr @OptionsTable, i64 10), align 2, !tbaa !16
  %36 = zext i16 %35 to i32
  %37 = add i32 %34, %36
  %38 = zext i32 %37 to i64
  %39 = tail call i32 @Xil_In32(i64 noundef %38)
  %40 = load i16, ptr getelementptr inbounds (i8, ptr @OptionsTable, i64 8), align 8, !tbaa !18
  %41 = and i16 %40, %1
  %.not19.1 = icmp eq i16 %41, 0
  br i1 %.not19.1, label %47, label %42

42:                                               ; preds = %28
  %43 = icmp eq i16 %40, 128
  %44 = and i32 %39, -257
  %spec.select.1 = select i1 %43, i32 %44, i32 %39
  %45 = load i32, ptr getelementptr inbounds (i8, ptr @OptionsTable, i64 12), align 4, !tbaa !19
  %46 = or i32 %45, %spec.select.1
  br label %51

47:                                               ; preds = %28
  %48 = load i32, ptr getelementptr inbounds (i8, ptr @OptionsTable, i64 12), align 4, !tbaa !19
  %49 = xor i32 %48, -1
  %50 = and i32 %39, %49
  br label %51

51:                                               ; preds = %47, %42
  %.1.1 = phi i32 [ %46, %42 ], [ %50, %47 ]
  %52 = load i32, ptr %9, align 4, !tbaa !15
  %53 = load i16, ptr getelementptr inbounds (i8, ptr @OptionsTable, i64 10), align 2, !tbaa !16
  %54 = zext i16 %53 to i32
  %55 = add i32 %52, %54
  %56 = zext i32 %55 to i64
  tail call void @Xil_Out32(i64 noundef %56, i32 noundef %.1.1)
  %57 = load i32, ptr %9, align 4, !tbaa !15
  %58 = load i16, ptr getelementptr inbounds (i8, ptr @OptionsTable, i64 18), align 2, !tbaa !16
  %59 = zext i16 %58 to i32
  %60 = add i32 %57, %59
  %61 = zext i32 %60 to i64
  %62 = tail call i32 @Xil_In32(i64 noundef %61)
  %63 = load i16, ptr getelementptr inbounds (i8, ptr @OptionsTable, i64 16), align 16, !tbaa !18
  %64 = and i16 %63, %1
  %.not19.2 = icmp eq i16 %64, 0
  br i1 %.not19.2, label %70, label %65

65:                                               ; preds = %51
  %66 = icmp eq i16 %63, 128
  %67 = and i32 %62, -257
  %spec.select.2 = select i1 %66, i32 %67, i32 %62
  %68 = load i32, ptr getelementptr inbounds (i8, ptr @OptionsTable, i64 20), align 4, !tbaa !19
  %69 = or i32 %68, %spec.select.2
  br label %74

70:                                               ; preds = %51
  %71 = load i32, ptr getelementptr inbounds (i8, ptr @OptionsTable, i64 20), align 4, !tbaa !19
  %72 = xor i32 %71, -1
  %73 = and i32 %62, %72
  br label %74

74:                                               ; preds = %70, %65
  %.1.2 = phi i32 [ %69, %65 ], [ %73, %70 ]
  %75 = load i32, ptr %9, align 4, !tbaa !15
  %76 = load i16, ptr getelementptr inbounds (i8, ptr @OptionsTable, i64 18), align 2, !tbaa !16
  %77 = zext i16 %76 to i32
  %78 = add i32 %75, %77
  %79 = zext i32 %78 to i64
  tail call void @Xil_Out32(i64 noundef %79, i32 noundef %.1.2)
  %80 = load i32, ptr %9, align 4, !tbaa !15
  %81 = load i16, ptr getelementptr inbounds (i8, ptr @OptionsTable, i64 26), align 2, !tbaa !16
  %82 = zext i16 %81 to i32
  %83 = add i32 %80, %82
  %84 = zext i32 %83 to i64
  %85 = tail call i32 @Xil_In32(i64 noundef %84)
  %86 = load i16, ptr getelementptr inbounds (i8, ptr @OptionsTable, i64 24), align 8, !tbaa !18
  %87 = and i16 %86, %1
  %.not19.3 = icmp eq i16 %87, 0
  br i1 %.not19.3, label %93, label %88

88:                                               ; preds = %74
  %89 = icmp eq i16 %86, 128
  %90 = and i32 %85, -257
  %spec.select.3 = select i1 %89, i32 %90, i32 %85
  %91 = load i32, ptr getelementptr inbounds (i8, ptr @OptionsTable, i64 28), align 4, !tbaa !19
  %92 = or i32 %91, %spec.select.3
  br label %97

93:                                               ; preds = %74
  %94 = load i32, ptr getelementptr inbounds (i8, ptr @OptionsTable, i64 28), align 4, !tbaa !19
  %95 = xor i32 %94, -1
  %96 = and i32 %85, %95
  br label %97

97:                                               ; preds = %93, %88
  %.1.3 = phi i32 [ %92, %88 ], [ %96, %93 ]
  %98 = load i32, ptr %9, align 4, !tbaa !15
  %99 = load i16, ptr getelementptr inbounds (i8, ptr @OptionsTable, i64 26), align 2, !tbaa !16
  %100 = zext i16 %99 to i32
  %101 = add i32 %98, %100
  %102 = zext i32 %101 to i64
  tail call void @Xil_Out32(i64 noundef %102, i32 noundef %.1.3)
  %103 = load i32, ptr %9, align 4, !tbaa !15
  %104 = load i16, ptr getelementptr inbounds (i8, ptr @OptionsTable, i64 34), align 2, !tbaa !16
  %105 = zext i16 %104 to i32
  %106 = add i32 %103, %105
  %107 = zext i32 %106 to i64
  %108 = tail call i32 @Xil_In32(i64 noundef %107)
  %109 = load i16, ptr getelementptr inbounds (i8, ptr @OptionsTable, i64 32), align 16, !tbaa !18
  %110 = and i16 %109, %1
  %.not19.4 = icmp eq i16 %110, 0
  br i1 %.not19.4, label %116, label %111

111:                                              ; preds = %97
  %112 = icmp eq i16 %109, 128
  %113 = and i32 %108, -257
  %spec.select.4 = select i1 %112, i32 %113, i32 %108
  %114 = load i32, ptr getelementptr inbounds (i8, ptr @OptionsTable, i64 36), align 4, !tbaa !19
  %115 = or i32 %114, %spec.select.4
  br label %120

116:                                              ; preds = %97
  %117 = load i32, ptr getelementptr inbounds (i8, ptr @OptionsTable, i64 36), align 4, !tbaa !19
  %118 = xor i32 %117, -1
  %119 = and i32 %108, %118
  br label %120

120:                                              ; preds = %116, %111
  %.1.4 = phi i32 [ %115, %111 ], [ %119, %116 ]
  %121 = load i32, ptr %9, align 4, !tbaa !15
  %122 = load i16, ptr getelementptr inbounds (i8, ptr @OptionsTable, i64 34), align 2, !tbaa !16
  %123 = zext i16 %122 to i32
  %124 = add i32 %121, %123
  %125 = zext i32 %124 to i64
  tail call void @Xil_Out32(i64 noundef %125, i32 noundef %.1.4)
  %126 = load i32, ptr %9, align 4, !tbaa !15
  %127 = load i16, ptr getelementptr inbounds (i8, ptr @OptionsTable, i64 42), align 2, !tbaa !16
  %128 = zext i16 %127 to i32
  %129 = add i32 %126, %128
  %130 = zext i32 %129 to i64
  %131 = tail call i32 @Xil_In32(i64 noundef %130)
  %132 = load i16, ptr getelementptr inbounds (i8, ptr @OptionsTable, i64 40), align 8, !tbaa !18
  %133 = and i16 %132, %1
  %.not19.5 = icmp eq i16 %133, 0
  br i1 %.not19.5, label %139, label %134

134:                                              ; preds = %120
  %135 = icmp eq i16 %132, 128
  %136 = and i32 %131, -257
  %spec.select.5 = select i1 %135, i32 %136, i32 %131
  %137 = load i32, ptr getelementptr inbounds (i8, ptr @OptionsTable, i64 44), align 4, !tbaa !19
  %138 = or i32 %137, %spec.select.5
  br label %143

139:                                              ; preds = %120
  %140 = load i32, ptr getelementptr inbounds (i8, ptr @OptionsTable, i64 44), align 4, !tbaa !19
  %141 = xor i32 %140, -1
  %142 = and i32 %131, %141
  br label %143

143:                                              ; preds = %139, %134
  %.1.5 = phi i32 [ %138, %134 ], [ %142, %139 ]
  %144 = load i32, ptr %9, align 4, !tbaa !15
  %145 = load i16, ptr getelementptr inbounds (i8, ptr @OptionsTable, i64 42), align 2, !tbaa !16
  %146 = zext i16 %145 to i32
  %147 = add i32 %144, %146
  %148 = zext i32 %147 to i64
  tail call void @Xil_Out32(i64 noundef %148, i32 noundef %.1.5)
  %149 = load i32, ptr %9, align 4, !tbaa !15
  %150 = load i16, ptr getelementptr inbounds (i8, ptr @OptionsTable, i64 50), align 2, !tbaa !16
  %151 = zext i16 %150 to i32
  %152 = add i32 %149, %151
  %153 = zext i32 %152 to i64
  %154 = tail call i32 @Xil_In32(i64 noundef %153)
  %155 = load i16, ptr getelementptr inbounds (i8, ptr @OptionsTable, i64 48), align 16, !tbaa !18
  %156 = and i16 %155, %1
  %.not19.6 = icmp eq i16 %156, 0
  br i1 %.not19.6, label %162, label %157

157:                                              ; preds = %143
  %158 = icmp eq i16 %155, 128
  %159 = and i32 %154, -257
  %spec.select.6 = select i1 %158, i32 %159, i32 %154
  %160 = load i32, ptr getelementptr inbounds (i8, ptr @OptionsTable, i64 52), align 4, !tbaa !19
  %161 = or i32 %160, %spec.select.6
  br label %166

162:                                              ; preds = %143
  %163 = load i32, ptr getelementptr inbounds (i8, ptr @OptionsTable, i64 52), align 4, !tbaa !19
  %164 = xor i32 %163, -1
  %165 = and i32 %154, %164
  br label %166

166:                                              ; preds = %162, %157
  %.1.6 = phi i32 [ %161, %157 ], [ %165, %162 ]
  %167 = load i32, ptr %9, align 4, !tbaa !15
  %168 = load i16, ptr getelementptr inbounds (i8, ptr @OptionsTable, i64 50), align 2, !tbaa !16
  %169 = zext i16 %168 to i32
  %170 = add i32 %167, %169
  %171 = zext i32 %170 to i64
  tail call void @Xil_Out32(i64 noundef %171, i32 noundef %.1.6)
  %172 = load i32, ptr %9, align 4, !tbaa !15
  %173 = load i16, ptr getelementptr inbounds (i8, ptr @OptionsTable, i64 58), align 2, !tbaa !16
  %174 = zext i16 %173 to i32
  %175 = add i32 %172, %174
  %176 = zext i32 %175 to i64
  %177 = tail call i32 @Xil_In32(i64 noundef %176)
  %178 = load i16, ptr getelementptr inbounds (i8, ptr @OptionsTable, i64 56), align 8, !tbaa !18
  %179 = and i16 %178, %1
  %.not19.7 = icmp eq i16 %179, 0
  br i1 %.not19.7, label %185, label %180

180:                                              ; preds = %166
  %181 = icmp eq i16 %178, 128
  %182 = and i32 %177, -257
  %spec.select.7 = select i1 %181, i32 %182, i32 %177
  %183 = load i32, ptr getelementptr inbounds (i8, ptr @OptionsTable, i64 60), align 4, !tbaa !19
  %184 = or i32 %183, %spec.select.7
  br label %.loopexit.loopexit

185:                                              ; preds = %166
  %186 = load i32, ptr getelementptr inbounds (i8, ptr @OptionsTable, i64 60), align 4, !tbaa !19
  %187 = xor i32 %186, -1
  %188 = and i32 %177, %187
  br label %.loopexit.loopexit

.loopexit.loopexit:                               ; preds = %185, %180
  %.1.7 = phi i32 [ %184, %180 ], [ %188, %185 ]
  %189 = load i32, ptr %9, align 4, !tbaa !15
  %190 = load i16, ptr getelementptr inbounds (i8, ptr @OptionsTable, i64 58), align 2, !tbaa !16
  %191 = zext i16 %190 to i32
  %192 = add i32 %189, %191
  %193 = zext i32 %192 to i64
  tail call void @Xil_Out32(i64 noundef %193, i32 noundef %.1.7)
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit, %18, %7
  ret void
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @Xil_Out32(i64 noundef, i32 noundef) local_unnamed_addr #1

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 20}
!10 = !{!"", !11, i64 0, !6, i64 16, !6, i64 20, !6, i64 24, !13, i64 32, !13, i64 48, !14, i64 64, !14, i64 72, !6, i64 80, !7, i64 84}
!11 = !{!"", !12, i64 0, !6, i64 4, !6, i64 8, !6, i64 12}
!12 = !{!"short", !7, i64 0}
!13 = !{!"", !14, i64 0, !6, i64 8, !6, i64 12}
!14 = !{!"any pointer", !7, i64 0}
!15 = !{!10, !6, i64 4}
!16 = !{!17, !12, i64 2}
!17 = !{!"", !12, i64 0, !12, i64 2, !6, i64 4}
!18 = !{!17, !12, i64 0}
!19 = !{!17, !6, i64 4}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,LoopSimplifyPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass