; LLVM IR from thalium/icebox :: third_party/virtualbox/src/VBox/Devices/EFI/Firmware/OptionRomPkg (StnAddr)

; 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.s_pxe_cdb = type { i16, i16, i16, i16, i64, i64, i16, i16, i16, i16 }
%struct.s_data_instance = type { i16, i16, i8, i8, i16, i16, i16, i16, i16, [32 x i8], [32 x i8], [32 x i8], [64 x i32], [128 x i32], i32, i32, i16, i16, i8, i8, i8, i8, i16, i16, i16, i16, i32, i32, i16, i16, [2 x i16], i8, i8, i16, i32, ptr, ptr, ptr, ptr, ptr, ptr, i64, i64, i64, i64, i64, [64 x i64], i16, i16, i16, i16, i8, i8, i8, i8, i8, [3 x i8], %struct.mc, i64, ptr, i64, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.mc = type { [3 x i16], i16, [8 x [32 x i8]] }
%struct.s_pxe_cpb_station_address = type { [32 x i8] }
%struct.s_pxe_dpb_station_address = type { [32 x i8], [32 x i8], [32 x i8] }

; Function Attrs: nounwind uwtable
define dso_local void @UNDI_StnAddr(ptr noundef %0, ptr noundef %1) #0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i16, align 2
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.start.p0(i64 2, ptr %7) #3
  %8 = load ptr, ptr %3, align 8, !tbaa !5
  %9 = getelementptr inbounds %struct.s_pxe_cdb, ptr %8, i32 0, i32 1
  %10 = load i16, ptr %9, align 1, !tbaa !9
  %11 = zext i16 %10 to i32
  %12 = icmp eq i32 %11, 1
  br i1 %12, label %13, label %46

13:                                               ; preds = %2
  %14 = load ptr, ptr %4, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.s_data_instance, ptr %14, i32 0, i32 10
  %16 = getelementptr inbounds [32 x i8], ptr %15, i64 0, i64 0
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.s_data_instance, ptr %17, i32 0, i32 9
  %19 = getelementptr inbounds [32 x i8], ptr %18, i64 0, i64 0
  %20 = call i64 @CompareMem(ptr noundef %16, ptr noundef %19, i64 noundef 32)
  %21 = icmp ne i64 %20, 0
  br i1 %21, label %22, label %45

22:                                               ; preds = %13
  store i16 0, ptr %7, align 2, !tbaa !13
  br label %23

23:                                               ; preds = %39, %22
  %24 = load i16, ptr %7, align 2, !tbaa !13
  %25 = zext i16 %24 to i32
  %26 = icmp slt i32 %25, 32
  br i1 %26, label %27, label %42

27:                                               ; preds = %23
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.s_data_instance, ptr %28, i32 0, i32 9
  %30 = load i16, ptr %7, align 2, !tbaa !13
  %31 = zext i16 %30 to i64
  %32 = getelementptr inbounds [32 x i8], ptr %29, i64 0, i64 %31
  %33 = load i8, ptr %32, align 1, !tbaa !14
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.s_data_instance, ptr %34, i32 0, i32 10
  %36 = load i16, ptr %7, align 2, !tbaa !13
  %37 = zext i16 %36 to i64
  %38 = getelementptr inbounds [32 x i8], ptr %35, i64 0, i64 %37
  store i8 %33, ptr %38, align 1, !tbaa !14
  br label %39

39:                                               ; preds = %27
  %40 = load i16, ptr %7, align 2, !tbaa !13
  %41 = add i16 %40, 1
  store i16 %41, ptr %7, align 2, !tbaa !13
  br label %23, !llvm.loop !15

42:                                               ; preds = %23
  %43 = load ptr, ptr %4, align 8, !tbaa !5
  %44 = call zeroext i8 @E100bSetupIAAddr(ptr noundef %43)
  br label %45

45:                                               ; preds = %42, %13
  br label %46

46:                                               ; preds = %45, %2
  %47 = load ptr, ptr %3, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.s_pxe_cdb, ptr %47, i32 0, i32 4
  %49 = load i64, ptr %48, align 1, !tbaa !17
  %50 = icmp ne i64 %49, 0
  br i1 %50, label %51, label %78

51:                                               ; preds = %46
  %52 = load ptr, ptr %3, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.s_pxe_cdb, ptr %52, i32 0, i32 4
  %54 = load i64, ptr %53, align 1, !tbaa !17
  %55 = inttoptr i64 %54 to ptr
  store ptr %55, ptr %5, align 8, !tbaa !5
  store i16 0, ptr %7, align 2, !tbaa !13
  br label %56

56:                                               ; preds = %72, %51
  %57 = load i16, ptr %7, align 2, !tbaa !13
  %58 = zext i16 %57 to i32
  %59 = icmp slt i32 %58, 32
  br i1 %59, label %60, label %75

60:                                               ; preds = %56
  %61 = load ptr, ptr %5, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.s_pxe_cpb_station_address, ptr %61, i32 0, i32 0
  %63 = load i16, ptr %7, align 2, !tbaa !13
  %64 = zext i16 %63 to i64
  %65 = getelementptr inbounds [32 x i8], ptr %62, i64 0, i64 %64
  %66 = load i8, ptr %65, align 1, !tbaa !14
  %67 = load ptr, ptr %4, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.s_data_instance, ptr %67, i32 0, i32 10
  %69 = load i16, ptr %7, align 2, !tbaa !13
  %70 = zext i16 %69 to i64
  %71 = getelementptr inbounds [32 x i8], ptr %68, i64 0, i64 %70
  store i8 %66, ptr %71, align 1, !tbaa !14
  br label %72

72:                                               ; preds = %60
  %73 = load i16, ptr %7, align 2, !tbaa !13
  %74 = add i16 %73, 1
  store i16 %74, ptr %7, align 2, !tbaa !13
  br label %56, !llvm.loop !18

75:                                               ; preds = %56
  %76 = load ptr, ptr %4, align 8, !tbaa !5
  %77 = call zeroext i8 @E100bSetupIAAddr(ptr noundef %76)
  br label %78

78:                                               ; preds = %75, %46
  %79 = load ptr, ptr %3, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.s_pxe_cdb, ptr %79, i32 0, i32 5
  %81 = load i64, ptr %80, align 1, !tbaa !19
  %82 = icmp ne i64 %81, 0
  br i1 %82, label %83, label %130

83:                                               ; preds = %78
  %84 = load ptr, ptr %3, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.s_pxe_cdb, ptr %84, i32 0, i32 5
  %86 = load i64, ptr %85, align 1, !tbaa !19
  %87 = inttoptr i64 %86 to ptr
  store ptr %87, ptr %6, align 8, !tbaa !5
  store i16 0, ptr %7, align 2, !tbaa !13
  br label %88

88:                                               ; preds = %126, %83
  %89 = load i16, ptr %7, align 2, !tbaa !13
  %90 = zext i16 %89 to i32
  %91 = icmp slt i32 %90, 32
  br i1 %91, label %92, label %129

92:                                               ; preds = %88
  %93 = load ptr, ptr %4, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.s_data_instance, ptr %93, i32 0, i32 10
  %95 = load i16, ptr %7, align 2, !tbaa !13
  %96 = zext i16 %95 to i64
  %97 = getelementptr inbounds [32 x i8], ptr %94, i64 0, i64 %96
  %98 = load i8, ptr %97, align 1, !tbaa !14
  %99 = load ptr, ptr %6, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.s_pxe_dpb_station_address, ptr %99, i32 0, i32 0
  %101 = load i16, ptr %7, align 2, !tbaa !13
  %102 = zext i16 %101 to i64
  %103 = getelementptr inbounds [32 x i8], ptr %100, i64 0, i64 %102
  store i8 %98, ptr %103, align 1, !tbaa !14
  %104 = load ptr, ptr %4, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.s_data_instance, ptr %104, i32 0, i32 11
  %106 = load i16, ptr %7, align 2, !tbaa !13
  %107 = zext i16 %106 to i64
  %108 = getelementptr inbounds [32 x i8], ptr %105, i64 0, i64 %107
  %109 = load i8, ptr %108, align 1, !tbaa !14
  %110 = load ptr, ptr %6, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.s_pxe_dpb_station_address, ptr %110, i32 0, i32 1
  %112 = load i16, ptr %7, align 2, !tbaa !13
  %113 = zext i16 %112 to i64
  %114 = getelementptr inbounds [32 x i8], ptr %111, i64 0, i64 %113
  store i8 %109, ptr %114, align 1, !tbaa !14
  %115 = load ptr, ptr %4, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.s_data_instance, ptr %115, i32 0, i32 9
  %117 = load i16, ptr %7, align 2, !tbaa !13
  %118 = zext i16 %117 to i64
  %119 = getelementptr inbounds [32 x i8], ptr %116, i64 0, i64 %118
  %120 = load i8, ptr %119, align 1, !tbaa !14
  %121 = load ptr, ptr %6, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.s_pxe_dpb_station_address, ptr %121, i32 0, i32 2
  %123 = load i16, ptr %7, align 2, !tbaa !13
  %124 = zext i16 %123 to i64
  %125 = getelementptr inbounds [32 x i8], ptr %122, i64 0, i64 %124
  store i8 %120, ptr %125, align 1, !tbaa !14
  br label %126

126:                                              ; preds = %92
  %127 = load i16, ptr %7, align 2, !tbaa !13
  %128 = add i16 %127, 1
  store i16 %128, ptr %7, align 2, !tbaa !13
  br label %88, !llvm.loop !20

129:                                              ; preds = %88
  br label %130

130:                                              ; preds = %129, %78
  call void @llvm.lifetime.end.p0(i64 2, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  ret void
}

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

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

declare i64 @CompareMem(ptr noundef, ptr noundef, i64 noundef) #2

declare zeroext i8 @E100bSetupIAAddr(ptr noundef) #2

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 nosync nounwind willreturn memory(argmem: readwrite) }
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, !11, i64 2}
!10 = !{!"s_pxe_cdb", !11, i64 0, !11, i64 2, !11, i64 4, !11, i64 6, !12, i64 8, !12, i64 16, !11, i64 24, !11, i64 26, !11, i64 28, !11, i64 30}
!11 = !{!"short", !7, i64 0}
!12 = !{!"long long", !7, i64 0}
!13 = !{!11, !11, i64 0}
!14 = !{!7, !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!10, !12, i64 8}
!18 = distinct !{!18, !16}
!19 = !{!10, !12, i64 16}
!20 = distinct !{!20, !16}


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

; Function Attrs: nounwind uwtable
define dso_local void @UNDI_StnAddr(ptr nocapture noundef readonly %0, ptr noundef %1) local_unnamed_addr #0 {
  %3 = getelementptr inbounds i8, ptr %0, i64 2
  %4 = load i16, ptr %3, align 1, !tbaa !5
  %5 = icmp eq i16 %4, 1
  br i1 %5, label %6, label %15

6:                                                ; preds = %2
  %7 = getelementptr inbounds i8, ptr %1, i64 48
  %8 = getelementptr inbounds i8, ptr %1, i64 16
  %9 = tail call i64 @CompareMem(ptr noundef nonnull %7, ptr noundef nonnull %8, i64 noundef 32) #2
  %.not = icmp eq i64 %9, 0
  br i1 %.not, label %15, label %.preheader.preheader

.preheader.preheader:                             ; preds = %6
  %10 = load <16 x i8>, ptr %8, align 1, !tbaa !11
  store <16 x i8> %10, ptr %7, align 1, !tbaa !11
  %11 = getelementptr inbounds i8, ptr %1, i64 32
  %12 = getelementptr inbounds i8, ptr %1, i64 64
  %13 = load <16 x i8>, ptr %11, align 1, !tbaa !11
  store <16 x i8> %13, ptr %12, align 1, !tbaa !11
  %14 = tail call zeroext i8 @E100bSetupIAAddr(ptr noundef %1) #2
  br label %15

15:                                               ; preds = %6, %.preheader.preheader, %2
  %16 = getelementptr inbounds i8, ptr %0, i64 8
  %17 = load i64, ptr %16, align 1, !tbaa !12
  %.not36 = icmp eq i64 %17, 0
  br i1 %.not36, label %116, label %18

18:                                               ; preds = %15
  %19 = inttoptr i64 %17 to ptr
  %20 = getelementptr inbounds i8, ptr %1, i64 48
  %21 = load i8, ptr %19, align 1, !tbaa !11
  store i8 %21, ptr %20, align 1, !tbaa !11
  %22 = getelementptr inbounds i8, ptr %19, i64 1
  %23 = load i8, ptr %22, align 1, !tbaa !11
  %24 = getelementptr inbounds i8, ptr %1, i64 49
  store i8 %23, ptr %24, align 1, !tbaa !11
  %25 = getelementptr inbounds i8, ptr %19, i64 2
  %26 = load i8, ptr %25, align 1, !tbaa !11
  %27 = getelementptr inbounds i8, ptr %1, i64 50
  store i8 %26, ptr %27, align 1, !tbaa !11
  %28 = getelementptr inbounds i8, ptr %19, i64 3
  %29 = load i8, ptr %28, align 1, !tbaa !11
  %30 = getelementptr inbounds i8, ptr %1, i64 51
  store i8 %29, ptr %30, align 1, !tbaa !11
  %31 = getelementptr inbounds i8, ptr %19, i64 4
  %32 = load i8, ptr %31, align 1, !tbaa !11
  %33 = getelementptr inbounds i8, ptr %1, i64 52
  store i8 %32, ptr %33, align 1, !tbaa !11
  %34 = getelementptr inbounds i8, ptr %19, i64 5
  %35 = load i8, ptr %34, align 1, !tbaa !11
  %36 = getelementptr inbounds i8, ptr %1, i64 53
  store i8 %35, ptr %36, align 1, !tbaa !11
  %37 = getelementptr inbounds i8, ptr %19, i64 6
  %38 = load i8, ptr %37, align 1, !tbaa !11
  %39 = getelementptr inbounds i8, ptr %1, i64 54
  store i8 %38, ptr %39, align 1, !tbaa !11
  %40 = getelementptr inbounds i8, ptr %19, i64 7
  %41 = load i8, ptr %40, align 1, !tbaa !11
  %42 = getelementptr inbounds i8, ptr %1, i64 55
  store i8 %41, ptr %42, align 1, !tbaa !11
  %43 = getelementptr inbounds i8, ptr %19, i64 8
  %44 = load i8, ptr %43, align 1, !tbaa !11
  %45 = getelementptr inbounds i8, ptr %1, i64 56
  store i8 %44, ptr %45, align 1, !tbaa !11
  %46 = getelementptr inbounds i8, ptr %19, i64 9
  %47 = load i8, ptr %46, align 1, !tbaa !11
  %48 = getelementptr inbounds i8, ptr %1, i64 57
  store i8 %47, ptr %48, align 1, !tbaa !11
  %49 = getelementptr inbounds i8, ptr %19, i64 10
  %50 = load i8, ptr %49, align 1, !tbaa !11
  %51 = getelementptr inbounds i8, ptr %1, i64 58
  store i8 %50, ptr %51, align 1, !tbaa !11
  %52 = getelementptr inbounds i8, ptr %19, i64 11
  %53 = load i8, ptr %52, align 1, !tbaa !11
  %54 = getelementptr inbounds i8, ptr %1, i64 59
  store i8 %53, ptr %54, align 1, !tbaa !11
  %55 = getelementptr inbounds i8, ptr %19, i64 12
  %56 = load i8, ptr %55, align 1, !tbaa !11
  %57 = getelementptr inbounds i8, ptr %1, i64 60
  store i8 %56, ptr %57, align 1, !tbaa !11
  %58 = getelementptr inbounds i8, ptr %19, i64 13
  %59 = load i8, ptr %58, align 1, !tbaa !11
  %60 = getelementptr inbounds i8, ptr %1, i64 61
  store i8 %59, ptr %60, align 1, !tbaa !11
  %61 = getelementptr inbounds i8, ptr %19, i64 14
  %62 = load i8, ptr %61, align 1, !tbaa !11
  %63 = getelementptr inbounds i8, ptr %1, i64 62
  store i8 %62, ptr %63, align 1, !tbaa !11
  %64 = getelementptr inbounds i8, ptr %19, i64 15
  %65 = load i8, ptr %64, align 1, !tbaa !11
  %66 = getelementptr inbounds i8, ptr %1, i64 63
  store i8 %65, ptr %66, align 1, !tbaa !11
  %67 = getelementptr inbounds i8, ptr %19, i64 16
  %68 = load i8, ptr %67, align 1, !tbaa !11
  %69 = getelementptr inbounds i8, ptr %1, i64 64
  store i8 %68, ptr %69, align 1, !tbaa !11
  %70 = getelementptr inbounds i8, ptr %19, i64 17
  %71 = load i8, ptr %70, align 1, !tbaa !11
  %72 = getelementptr inbounds i8, ptr %1, i64 65
  store i8 %71, ptr %72, align 1, !tbaa !11
  %73 = getelementptr inbounds i8, ptr %19, i64 18
  %74 = load i8, ptr %73, align 1, !tbaa !11
  %75 = getelementptr inbounds i8, ptr %1, i64 66
  store i8 %74, ptr %75, align 1, !tbaa !11
  %76 = getelementptr inbounds i8, ptr %19, i64 19
  %77 = load i8, ptr %76, align 1, !tbaa !11
  %78 = getelementptr inbounds i8, ptr %1, i64 67
  store i8 %77, ptr %78, align 1, !tbaa !11
  %79 = getelementptr inbounds i8, ptr %19, i64 20
  %80 = load i8, ptr %79, align 1, !tbaa !11
  %81 = getelementptr inbounds i8, ptr %1, i64 68
  store i8 %80, ptr %81, align 1, !tbaa !11
  %82 = getelementptr inbounds i8, ptr %19, i64 21
  %83 = load i8, ptr %82, align 1, !tbaa !11
  %84 = getelementptr inbounds i8, ptr %1, i64 69
  store i8 %83, ptr %84, align 1, !tbaa !11
  %85 = getelementptr inbounds i8, ptr %19, i64 22
  %86 = load i8, ptr %85, align 1, !tbaa !11
  %87 = getelementptr inbounds i8, ptr %1, i64 70
  store i8 %86, ptr %87, align 1, !tbaa !11
  %88 = getelementptr inbounds i8, ptr %19, i64 23
  %89 = load i8, ptr %88, align 1, !tbaa !11
  %90 = getelementptr inbounds i8, ptr %1, i64 71
  store i8 %89, ptr %90, align 1, !tbaa !11
  %91 = getelementptr inbounds i8, ptr %19, i64 24
  %92 = load i8, ptr %91, align 1, !tbaa !11
  %93 = getelementptr inbounds i8, ptr %1, i64 72
  store i8 %92, ptr %93, align 1, !tbaa !11
  %94 = getelementptr inbounds i8, ptr %19, i64 25
  %95 = load i8, ptr %94, align 1, !tbaa !11
  %96 = getelementptr inbounds i8, ptr %1, i64 73
  store i8 %95, ptr %96, align 1, !tbaa !11
  %97 = getelementptr inbounds i8, ptr %19, i64 26
  %98 = load i8, ptr %97, align 1, !tbaa !11
  %99 = getelementptr inbounds i8, ptr %1, i64 74
  store i8 %98, ptr %99, align 1, !tbaa !11
  %100 = getelementptr inbounds i8, ptr %19, i64 27
  %101 = load i8, ptr %100, align 1, !tbaa !11
  %102 = getelementptr inbounds i8, ptr %1, i64 75
  store i8 %101, ptr %102, align 1, !tbaa !11
  %103 = getelementptr inbounds i8, ptr %19, i64 28
  %104 = load i8, ptr %103, align 1, !tbaa !11
  %105 = getelementptr inbounds i8, ptr %1, i64 76
  store i8 %104, ptr %105, align 1, !tbaa !11
  %106 = getelementptr inbounds i8, ptr %19, i64 29
  %107 = load i8, ptr %106, align 1, !tbaa !11
  %108 = getelementptr inbounds i8, ptr %1, i64 77
  store i8 %107, ptr %108, align 1, !tbaa !11
  %109 = getelementptr inbounds i8, ptr %19, i64 30
  %110 = load i8, ptr %109, align 1, !tbaa !11
  %111 = getelementptr inbounds i8, ptr %1, i64 78
  store i8 %110, ptr %111, align 1, !tbaa !11
  %112 = getelementptr inbounds i8, ptr %19, i64 31
  %113 = load i8, ptr %112, align 1, !tbaa !11
  %114 = getelementptr inbounds i8, ptr %1, i64 79
  store i8 %113, ptr %114, align 1, !tbaa !11
  %115 = tail call zeroext i8 @E100bSetupIAAddr(ptr noundef %1) #2
  br label %116

116:                                              ; preds = %18, %15
  %117 = getelementptr inbounds i8, ptr %0, i64 16
  %118 = load i64, ptr %117, align 1, !tbaa !13
  %.not37 = icmp eq i64 %118, 0
  br i1 %.not37, label %.loopexit, label %vector.memcheck

vector.memcheck:                                  ; preds = %116
  %119 = inttoptr i64 %118 to ptr
  %120 = getelementptr inbounds i8, ptr %1, i64 48
  %121 = getelementptr inbounds i8, ptr %1, i64 80
  %122 = getelementptr inbounds i8, ptr %119, i64 32
  %123 = getelementptr inbounds i8, ptr %1, i64 16
  %124 = getelementptr inbounds i8, ptr %119, i64 64
  %scevgep = getelementptr i8, ptr %119, i64 96
  %scevgep44 = getelementptr i8, ptr %1, i64 112
  %bound0 = icmp ugt ptr %scevgep44, %119
  %bound1 = icmp ult ptr %123, %scevgep
  %found.conflict = and i1 %bound0, %bound1
  br i1 %found.conflict, label %scalar.ph, label %vector.body

vector.body:                                      ; preds = %vector.memcheck
  %125 = getelementptr inbounds i8, ptr %1, i64 64
  %wide.load = load <16 x i8>, ptr %120, align 1, !tbaa !11, !alias.scope !14
  %wide.load45 = load <16 x i8>, ptr %125, align 1, !tbaa !11, !alias.scope !14
  %126 = getelementptr inbounds i8, ptr %119, i64 16
  store <16 x i8> %wide.load, ptr %119, align 1, !tbaa !11, !alias.scope !17, !noalias !14
  store <16 x i8> %wide.load45, ptr %126, align 1, !tbaa !11, !alias.scope !17, !noalias !14
  %127 = getelementptr inbounds i8, ptr %1, i64 96
  %wide.load46 = load <16 x i8>, ptr %121, align 1, !tbaa !11, !alias.scope !14
  %wide.load47 = load <16 x i8>, ptr %127, align 1, !tbaa !11, !alias.scope !14
  %128 = getelementptr inbounds i8, ptr %119, i64 48
  store <16 x i8> %wide.load46, ptr %122, align 1, !tbaa !11, !alias.scope !17, !noalias !14
  store <16 x i8> %wide.load47, ptr %128, align 1, !tbaa !11, !alias.scope !17, !noalias !14
  %129 = getelementptr inbounds i8, ptr %1, i64 32
  %wide.load48 = load <16 x i8>, ptr %123, align 1, !tbaa !11, !alias.scope !14
  %wide.load49 = load <16 x i8>, ptr %129, align 1, !tbaa !11, !alias.scope !14
  %130 = getelementptr inbounds i8, ptr %119, i64 80
  store <16 x i8> %wide.load48, ptr %124, align 1, !tbaa !11, !alias.scope !17, !noalias !14
  store <16 x i8> %wide.load49, ptr %130, align 1, !tbaa !11, !alias.scope !17, !noalias !14
  br label %.loopexit

scalar.ph:                                        ; preds = %vector.memcheck, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next.1, %scalar.ph ], [ 0, %vector.memcheck ]
  %131 = getelementptr inbounds [32 x i8], ptr %120, i64 0, i64 %indvars.iv
  %132 = load i8, ptr %131, align 1, !tbaa !11
  %133 = getelementptr inbounds [32 x i8], ptr %119, i64 0, i64 %indvars.iv
  store i8 %132, ptr %133, align 1, !tbaa !11
  %134 = getelementptr inbounds [32 x i8], ptr %121, i64 0, i64 %indvars.iv
  %135 = load i8, ptr %134, align 1, !tbaa !11
  %136 = getelementptr inbounds [32 x i8], ptr %122, i64 0, i64 %indvars.iv
  store i8 %135, ptr %136, align 1, !tbaa !11
  %137 = getelementptr inbounds [32 x i8], ptr %123, i64 0, i64 %indvars.iv
  %138 = load i8, ptr %137, align 1, !tbaa !11
  %139 = getelementptr inbounds [32 x i8], ptr %124, i64 0, i64 %indvars.iv
  store i8 %138, ptr %139, align 1, !tbaa !11
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %140 = getelementptr inbounds [32 x i8], ptr %120, i64 0, i64 %indvars.iv.next
  %141 = load i8, ptr %140, align 1, !tbaa !11
  %142 = getelementptr inbounds [32 x i8], ptr %119, i64 0, i64 %indvars.iv.next
  store i8 %141, ptr %142, align 1, !tbaa !11
  %143 = getelementptr inbounds [32 x i8], ptr %121, i64 0, i64 %indvars.iv.next
  %144 = load i8, ptr %143, align 1, !tbaa !11
  %145 = getelementptr inbounds [32 x i8], ptr %122, i64 0, i64 %indvars.iv.next
  store i8 %144, ptr %145, align 1, !tbaa !11
  %146 = getelementptr inbounds [32 x i8], ptr %123, i64 0, i64 %indvars.iv.next
  %147 = load i8, ptr %146, align 1, !tbaa !11
  %148 = getelementptr inbounds [32 x i8], ptr %124, i64 0, i64 %indvars.iv.next
  store i8 %147, ptr %148, align 1, !tbaa !11
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %exitcond.not.1 = icmp eq i64 %indvars.iv.next.1, 32
  br i1 %exitcond.not.1, label %.loopexit, label %scalar.ph, !llvm.loop !19

.loopexit:                                        ; preds = %scalar.ph, %vector.body, %116
  ret void
}

declare i64 @CompareMem(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #1

declare zeroext i8 @E100bSetupIAAddr(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 = { "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, !7, i64 2}
!6 = !{!"s_pxe_cdb", !7, i64 0, !7, i64 2, !7, i64 4, !7, i64 6, !10, i64 8, !10, i64 16, !7, i64 24, !7, i64 26, !7, i64 28, !7, i64 30}
!7 = !{!"short", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long long", !8, i64 0}
!11 = !{!8, !8, i64 0}
!12 = !{!6, !10, i64 8}
!13 = !{!6, !10, i64 16}
!14 = !{!15}
!15 = distinct !{!15, !16}
!16 = distinct !{!16, !"LVerDomain"}
!17 = !{!18}
!18 = distinct !{!18, !16}
!19 = distinct !{!19, !20, !21}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!"llvm.loop.isvectorized", i32 1}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass