; LLVM IR from thalium/icebox :: third_party/virtualbox/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Universal (IScsiSessionLogin)

; 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.GUID = type { i32, i16, i16, [8 x i8] }
%struct._ISCSI_DRIVER_DATA = type { i32, ptr, ptr, %struct._ISCSI_PRIVATE_PROTOCOL, ptr, ptr, %struct._EFI_EXT_SCSI_PASS_THRU_PROTOCOL, %struct.EFI_EXT_SCSI_PASS_THRU_MODE, ptr, ptr, %struct._ISCSI_SESSION }
%struct._ISCSI_PRIVATE_PROTOCOL = type { i32 }
%struct._EFI_EXT_SCSI_PASS_THRU_PROTOCOL = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.EFI_EXT_SCSI_PASS_THRU_MODE = type { i32, i32, i32 }
%struct._ISCSI_SESSION = type { i32, %struct._ISCSI_SESSION_CONFIG_DATA, %struct._ISCSI_CHAP_AUTH_DATA, [224 x i8], i64, i8, [6 x i8], i16, i32, i32, i32, i32, i16, %struct._LIST_ENTRY, i32, %struct._LIST_ENTRY, i16, i32, i8, i8, i32, i32, i32, i32, i16, i8, i8, i8 }
%struct._ISCSI_SESSION_CONFIG_DATA = type { %struct.ISCSI_SESSION_CONFIG_NVDATA, %struct.EFI_IPv4_ADDRESS, %struct.EFI_IPv4_ADDRESS, %struct.EFI_IPv4_ADDRESS }
%struct.ISCSI_SESSION_CONFIG_NVDATA = type <{ i8, i8, %struct.EFI_IPv4_ADDRESS, %struct.EFI_IPv4_ADDRESS, %struct.EFI_IPv4_ADDRESS, i8, [224 x i8], %struct.EFI_IPv4_ADDRESS, i16, [8 x i8], [6 x i8] }>
%struct.EFI_IPv4_ADDRESS = type { [4 x i8] }
%struct._ISCSI_CHAP_AUTH_DATA = type { %struct._ISCSI_CHAP_AUTH_CONFIG_NVDATA, i32, [1024 x i8], i32, [16 x i8], i32, [1024 x i8], i32 }
%struct._ISCSI_CHAP_AUTH_CONFIG_NVDATA = type { i8, [127 x i8], [17 x i8], [127 x i8], [17 x i8] }
%struct._LIST_ENTRY = type { ptr, ptr }
%struct.EFI_BOOT_SERVICES = type { %struct.EFI_TABLE_HEADER, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.EFI_TABLE_HEADER = type { i64, i32, i32, i32, i32 }
%struct._ISCSI_CONNECTION = type { i32, %struct._LIST_ENTRY, ptr, ptr, i8, i8, i8, i8, i8, i8, i8, i16, i32, %struct.NET_BUF_QUEUE, %struct._TCP4_IO, i32, i32, i32 }
%struct.NET_BUF_QUEUE = type { i32, i64, %struct._LIST_ENTRY, %struct._LIST_ENTRY, i32, i32 }
%struct._TCP4_IO = type { ptr, ptr, ptr, ptr, %struct.EFI_TCP4_CONNECTION_TOKEN, %struct.EFI_TCP4_IO_TOKEN, %struct.EFI_TCP4_IO_TOKEN, %struct.EFI_TCP4_CLOSE_TOKEN, i8, i8, i8, i8 }
%struct.EFI_TCP4_CONNECTION_TOKEN = type { %struct.EFI_TCP4_COMPLETION_TOKEN }
%struct.EFI_TCP4_COMPLETION_TOKEN = type { ptr, i64 }
%struct.EFI_TCP4_IO_TOKEN = type { %struct.EFI_TCP4_COMPLETION_TOKEN, %union.anon }
%union.anon = type { ptr }
%struct.EFI_TCP4_CLOSE_TOKEN = type { %struct.EFI_TCP4_COMPLETION_TOKEN, i8 }

@gBS = external global ptr, align 8
@gEfiTcp4ProtocolGuid = external global %struct.GUID, align 4

; Function Attrs: nounwind uwtable
declare dso_local void @IScsiAttatchConnection(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @IScsiDetatchConnection(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local i64 @IScsiConnLogin(ptr noundef) #0

; 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

; Function Attrs: nounwind uwtable
declare dso_local void @IScsiConnReset(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @IScsiCreateConnection(ptr noundef, ptr noundef) #0

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

; Function Attrs: nounwind uwtable
declare dso_local void @IScsiDestroyConnection(ptr noundef) #0

; Function Attrs: nounwind uwtable
define dso_local i64 @IScsiSessionLogin(ptr noundef %0) #0 {
  %2 = alloca i64, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i64, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i8, align 1
  %9 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #3
  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 8, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #3
  %10 = load ptr, ptr %3, align 8, !tbaa !5
  %11 = getelementptr inbounds %struct._ISCSI_DRIVER_DATA, ptr %10, i32 0, i32 10
  store ptr %11, ptr %5, align 8, !tbaa !5
  store i8 1, ptr %8, align 1, !tbaa !9
  %12 = load ptr, ptr %3, align 8, !tbaa !5
  %13 = getelementptr inbounds %struct._ISCSI_DRIVER_DATA, ptr %12, i32 0, i32 2
  %14 = load ptr, ptr %13, align 8, !tbaa !10
  %15 = call i64 @NetLibDetectMedia(ptr noundef %14, ptr noundef %8)
  %16 = load i8, ptr %8, align 1, !tbaa !9
  %17 = icmp ne i8 %16, 0
  br i1 %17, label %19, label %18

18:                                               ; preds = %1
  store i64 -9223372036854775796, ptr %2, align 8
  store i32 1, ptr %9, align 4
  br label %65

19:                                               ; preds = %1
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct._ISCSI_SESSION, ptr %20, i32 0, i32 6
  %22 = getelementptr inbounds [6 x i8], ptr %21, i64 0, i64 0
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct._ISCSI_SESSION, ptr %23, i32 0, i32 1
  %25 = getelementptr inbounds %struct._ISCSI_SESSION_CONFIG_DATA, ptr %24, i32 0, i32 0
  %26 = getelementptr inbounds %struct.ISCSI_SESSION_CONFIG_NVDATA, ptr %25, i32 0, i32 10
  %27 = getelementptr inbounds [6 x i8], ptr %26, i64 0, i64 0
  %28 = call ptr @CopyMem(ptr noundef %22, ptr noundef %27, i64 noundef 6)
  %29 = load ptr, ptr %3, align 8, !tbaa !5
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  %31 = call ptr @IScsiCreateConnection(ptr noundef %29, ptr noundef %30)
  store ptr %31, ptr %6, align 8, !tbaa !5
  %32 = load ptr, ptr %6, align 8, !tbaa !5
  %33 = icmp eq ptr %32, null
  br i1 %33, label %34, label %35

34:                                               ; preds = %19
  store i64 -9223372036854775799, ptr %2, align 8
  store i32 1, ptr %9, align 4
  br label %65

35:                                               ; preds = %19
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  %37 = load ptr, ptr %6, align 8, !tbaa !5
  call void @IScsiAttatchConnection(ptr noundef %36, ptr noundef %37)
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  %39 = call i64 @IScsiConnLogin(ptr noundef %38)
  store i64 %39, ptr %4, align 8, !tbaa !25
  %40 = load i64, ptr %4, align 8, !tbaa !25
  %41 = icmp slt i64 %40, 0
  br i1 %41, label %42, label %46

42:                                               ; preds = %35
  %43 = load ptr, ptr %6, align 8, !tbaa !5
  call void @IScsiConnReset(ptr noundef %43)
  %44 = load ptr, ptr %6, align 8, !tbaa !5
  call void @IScsiDetatchConnection(ptr noundef %44)
  %45 = load ptr, ptr %6, align 8, !tbaa !5
  call void @IScsiDestroyConnection(ptr noundef %45)
  br label %63

46:                                               ; preds = %35
  %47 = load ptr, ptr %5, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct._ISCSI_SESSION, ptr %47, i32 0, i32 5
  store i8 1, ptr %48, align 8, !tbaa !26
  %49 = load ptr, ptr @gBS, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %49, i32 0, i32 33
  %51 = load ptr, ptr %50, align 8, !tbaa !27
  %52 = load ptr, ptr %6, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct._ISCSI_CONNECTION, ptr %52, i32 0, i32 14
  %54 = getelementptr inbounds %struct._TCP4_IO, ptr %53, i32 0, i32 2
  %55 = load ptr, ptr %54, align 8, !tbaa !30
  %56 = load ptr, ptr %3, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct._ISCSI_DRIVER_DATA, ptr %56, i32 0, i32 1
  %58 = load ptr, ptr %57, align 8, !tbaa !37
  %59 = load ptr, ptr %3, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct._ISCSI_DRIVER_DATA, ptr %59, i32 0, i32 8
  %61 = load ptr, ptr %60, align 8, !tbaa !38
  %62 = call i64 %51(ptr noundef %55, ptr noundef @gEfiTcp4ProtocolGuid, ptr noundef %7, ptr noundef %58, ptr noundef %61, i32 noundef 8)
  br label %63

63:                                               ; preds = %46, %42
  %64 = load i64, ptr %4, align 8, !tbaa !25
  store i64 %64, ptr %2, align 8
  store i32 1, ptr %9, align 4
  br label %65

65:                                               ; preds = %63, %34, %18
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, 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
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
  %66 = load i64, ptr %2, align 8
  ret i64 %66
}

declare i64 @NetLibDetectMedia(ptr noundef, 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 = !{!7, !7, i64 0}
!10 = !{!11, !6, i64 16}
!11 = !{!"_ISCSI_DRIVER_DATA", !12, i64 0, !6, i64 8, !6, i64 16, !13, i64 24, !6, i64 32, !6, i64 40, !14, i64 48, !15, i64 112, !6, i64 128, !6, i64 136, !16, i64 144}
!12 = !{!"int", !7, i64 0}
!13 = !{!"_ISCSI_PRIVATE_PROTOCOL", !12, i64 0}
!14 = !{!"_EFI_EXT_SCSI_PASS_THRU_PROTOCOL", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56}
!15 = !{!"", !12, i64 0, !12, i64 4, !12, i64 8}
!16 = !{!"_ISCSI_SESSION", !12, i64 0, !17, i64 4, !21, i64 276, !7, i64 2648, !23, i64 2872, !7, i64 2880, !7, i64 2881, !20, i64 2888, !12, i64 2892, !12, i64 2896, !12, i64 2900, !12, i64 2904, !20, i64 2908, !24, i64 2912, !12, i64 2928, !24, i64 2936, !20, i64 2952, !12, i64 2956, !7, i64 2960, !7, i64 2961, !12, i64 2964, !12, i64 2968, !12, i64 2972, !12, i64 2976, !20, i64 2980, !7, i64 2982, !7, i64 2983, !7, i64 2984}
!17 = !{!"_ISCSI_SESSION_CONFIG_DATA", !18, i64 0, !19, i64 259, !19, i64 263, !19, i64 267}
!18 = !{!"", !7, i64 0, !7, i64 1, !19, i64 2, !19, i64 6, !19, i64 10, !7, i64 14, !7, i64 15, !19, i64 239, !20, i64 243, !7, i64 245, !7, i64 253}
!19 = !{!"", !7, i64 0}
!20 = !{!"short", !7, i64 0}
!21 = !{!"_ISCSI_CHAP_AUTH_DATA", !22, i64 0, !12, i64 292, !7, i64 296, !12, i64 1320, !7, i64 1324, !12, i64 1340, !7, i64 1344, !12, i64 2368}
!22 = !{!"_ISCSI_CHAP_AUTH_CONFIG_NVDATA", !7, i64 0, !7, i64 1, !7, i64 128, !7, i64 145, !7, i64 272}
!23 = !{!"long long", !7, i64 0}
!24 = !{!"_LIST_ENTRY", !6, i64 0, !6, i64 8}
!25 = !{!23, !23, i64 0}
!26 = !{!16, !7, i64 2880}
!27 = !{!28, !6, i64 280}
!28 = !{!"", !29, i64 0, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !6, i64 272, !6, i64 280, !6, i64 288, !6, i64 296, !6, i64 304, !6, i64 312, !6, i64 320, !6, i64 328, !6, i64 336, !6, i64 344, !6, i64 352, !6, i64 360, !6, i64 368}
!29 = !{!"", !23, i64 0, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20}
!30 = !{!31, !6, i64 128}
!31 = !{!"_ISCSI_CONNECTION", !12, i64 0, !24, i64 8, !6, i64 24, !6, i64 32, !7, i64 40, !7, i64 41, !7, i64 42, !7, i64 43, !7, i64 44, !7, i64 45, !7, i64 46, !20, i64 48, !12, i64 52, !32, i64 56, !33, i64 112, !12, i64 240, !12, i64 244, !12, i64 248}
!32 = !{!"", !12, i64 0, !23, i64 8, !24, i64 16, !24, i64 32, !12, i64 48, !12, i64 52}
!33 = !{!"_TCP4_IO", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !34, i64 32, !36, i64 48, !36, i64 72, !36, i64 96, !7, i64 120, !7, i64 121, !7, i64 122, !7, i64 123}
!34 = !{!"", !35, i64 0}
!35 = !{!"", !6, i64 0, !23, i64 8}
!36 = !{!"", !35, i64 0, !7, i64 16}
!37 = !{!11, !6, i64 8}
!38 = !{!11, !6, i64 128}


; 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.GUID = type { i32, i16, i16, [8 x i8] }

@gBS = external local_unnamed_addr global ptr, align 8
@gEfiTcp4ProtocolGuid = external global %struct.GUID, align 4

; Function Attrs: nounwind uwtable
declare dso_local void @IScsiAttatchConnection(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @IScsiDetatchConnection(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local i64 @IScsiConnLogin(ptr noundef) local_unnamed_addr #0

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @IScsiConnReset(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @IScsiCreateConnection(ptr noundef, ptr noundef) local_unnamed_addr #0

declare ptr @CopyMem(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @IScsiDestroyConnection(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local i64 @IScsiSessionLogin(ptr noundef %0) local_unnamed_addr #0 {
  %2 = alloca ptr, align 8
  %3 = alloca i8, align 1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #3
  %4 = getelementptr inbounds i8, ptr %0, i64 144
  store i8 1, ptr %3, align 1, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %0, i64 16
  %6 = load ptr, ptr %5, align 8, !tbaa !8
  %7 = call i64 @NetLibDetectMedia(ptr noundef %6, ptr noundef nonnull %3) #3
  %8 = load i8, ptr %3, align 1, !tbaa !5
  %.not = icmp eq i8 %8, 0
  br i1 %.not, label %31, label %9

9:                                                ; preds = %1
  %10 = getelementptr inbounds i8, ptr %0, i64 3025
  %11 = getelementptr inbounds i8, ptr %0, i64 401
  %12 = call ptr @CopyMem(ptr noundef nonnull %10, ptr noundef nonnull %11, i64 noundef 6) #3
  %13 = call ptr @IScsiCreateConnection(ptr noundef nonnull %0, ptr noundef nonnull %4)
  %14 = icmp eq ptr %13, null
  br i1 %14, label %31, label %15

15:                                               ; preds = %9
  call void @IScsiAttatchConnection(ptr noundef nonnull %4, ptr noundef nonnull %13)
  %16 = call i64 @IScsiConnLogin(ptr noundef nonnull %13)
  %17 = icmp slt i64 %16, 0
  br i1 %17, label %18, label %19

18:                                               ; preds = %15
  call void @IScsiConnReset(ptr noundef nonnull %13)
  call void @IScsiDetatchConnection(ptr noundef nonnull %13)
  call void @IScsiDestroyConnection(ptr noundef nonnull %13)
  br label %31

19:                                               ; preds = %15
  %20 = getelementptr inbounds i8, ptr %0, i64 3024
  store i8 1, ptr %20, align 8, !tbaa !24
  %21 = load ptr, ptr @gBS, align 8, !tbaa !25
  %22 = getelementptr inbounds i8, ptr %21, i64 280
  %23 = load ptr, ptr %22, align 8, !tbaa !26
  %24 = getelementptr inbounds i8, ptr %13, i64 128
  %25 = load ptr, ptr %24, align 8, !tbaa !29
  %26 = getelementptr inbounds i8, ptr %0, i64 8
  %27 = load ptr, ptr %26, align 8, !tbaa !36
  %28 = getelementptr inbounds i8, ptr %0, i64 128
  %29 = load ptr, ptr %28, align 8, !tbaa !37
  %30 = call i64 %23(ptr noundef %25, ptr noundef nonnull @gEfiTcp4ProtocolGuid, ptr noundef nonnull %2, ptr noundef %27, ptr noundef %29, i32 noundef 8) #3
  br label %31

31:                                               ; preds = %18, %19, %9, %1
  %.0 = phi i64 [ -9223372036854775796, %1 ], [ -9223372036854775799, %9 ], [ %16, %19 ], [ %16, %18 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #3
  ret i64 %.0
}

declare i64 @NetLibDetectMedia(ptr noundef, ptr noundef) local_unnamed_addr #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 = { mustprogress 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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = !{!9, !11, i64 16}
!9 = !{!"_ISCSI_DRIVER_DATA", !10, i64 0, !11, i64 8, !11, i64 16, !12, i64 24, !11, i64 32, !11, i64 40, !13, i64 48, !14, i64 112, !11, i64 128, !11, i64 136, !15, i64 144}
!10 = !{!"int", !6, i64 0}
!11 = !{!"any pointer", !6, i64 0}
!12 = !{!"_ISCSI_PRIVATE_PROTOCOL", !10, i64 0}
!13 = !{!"_EFI_EXT_SCSI_PASS_THRU_PROTOCOL", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56}
!14 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8}
!15 = !{!"_ISCSI_SESSION", !10, i64 0, !16, i64 4, !20, i64 276, !6, i64 2648, !22, i64 2872, !6, i64 2880, !6, i64 2881, !19, i64 2888, !10, i64 2892, !10, i64 2896, !10, i64 2900, !10, i64 2904, !19, i64 2908, !23, i64 2912, !10, i64 2928, !23, i64 2936, !19, i64 2952, !10, i64 2956, !6, i64 2960, !6, i64 2961, !10, i64 2964, !10, i64 2968, !10, i64 2972, !10, i64 2976, !19, i64 2980, !6, i64 2982, !6, i64 2983, !6, i64 2984}
!16 = !{!"_ISCSI_SESSION_CONFIG_DATA", !17, i64 0, !18, i64 259, !18, i64 263, !18, i64 267}
!17 = !{!"", !6, i64 0, !6, i64 1, !18, i64 2, !18, i64 6, !18, i64 10, !6, i64 14, !6, i64 15, !18, i64 239, !19, i64 243, !6, i64 245, !6, i64 253}
!18 = !{!"", !6, i64 0}
!19 = !{!"short", !6, i64 0}
!20 = !{!"_ISCSI_CHAP_AUTH_DATA", !21, i64 0, !10, i64 292, !6, i64 296, !10, i64 1320, !6, i64 1324, !10, i64 1340, !6, i64 1344, !10, i64 2368}
!21 = !{!"_ISCSI_CHAP_AUTH_CONFIG_NVDATA", !6, i64 0, !6, i64 1, !6, i64 128, !6, i64 145, !6, i64 272}
!22 = !{!"long long", !6, i64 0}
!23 = !{!"_LIST_ENTRY", !11, i64 0, !11, i64 8}
!24 = !{!15, !6, i64 2880}
!25 = !{!11, !11, i64 0}
!26 = !{!27, !11, i64 280}
!27 = !{!"", !28, i64 0, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !11, i64 88, !11, i64 96, !11, i64 104, !11, i64 112, !11, i64 120, !11, i64 128, !11, i64 136, !11, i64 144, !11, i64 152, !11, i64 160, !11, i64 168, !11, i64 176, !11, i64 184, !11, i64 192, !11, i64 200, !11, i64 208, !11, i64 216, !11, i64 224, !11, i64 232, !11, i64 240, !11, i64 248, !11, i64 256, !11, i64 264, !11, i64 272, !11, i64 280, !11, i64 288, !11, i64 296, !11, i64 304, !11, i64 312, !11, i64 320, !11, i64 328, !11, i64 336, !11, i64 344, !11, i64 352, !11, i64 360, !11, i64 368}
!28 = !{!"", !22, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20}
!29 = !{!30, !11, i64 128}
!30 = !{!"_ISCSI_CONNECTION", !10, i64 0, !23, i64 8, !11, i64 24, !11, i64 32, !6, i64 40, !6, i64 41, !6, i64 42, !6, i64 43, !6, i64 44, !6, i64 45, !6, i64 46, !19, i64 48, !10, i64 52, !31, i64 56, !32, i64 112, !10, i64 240, !10, i64 244, !10, i64 248}
!31 = !{!"", !10, i64 0, !22, i64 8, !23, i64 16, !23, i64 32, !10, i64 48, !10, i64 52}
!32 = !{!"_TCP4_IO", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !33, i64 32, !35, i64 48, !35, i64 72, !35, i64 96, !6, i64 120, !6, i64 121, !6, i64 122, !6, i64 123}
!33 = !{!"", !34, i64 0}
!34 = !{!"", !11, i64 0, !22, i64 8}
!35 = !{!"", !34, i64 0, !6, i64 16}
!36 = !{!9, !11, i64 8}
!37 = !{!9, !11, i64 128}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass