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

; 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._UDP_IO = type { i32, %struct._LIST_ENTRY, i64, i8, ptr, ptr, ptr, %struct.EFI_SIMPLE_NETWORK_MODE, %struct._LIST_ENTRY, ptr, %union.anon.1, %union.anon.2 }
%struct.EFI_SIMPLE_NETWORK_MODE = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [16 x %struct.EFI_MAC_ADDRESS], %struct.EFI_MAC_ADDRESS, %struct.EFI_MAC_ADDRESS, %struct.EFI_MAC_ADDRESS, i8, i8, i8, i8, i8 }
%struct.EFI_MAC_ADDRESS = type { [32 x i8] }
%struct._LIST_ENTRY = type { ptr, ptr }
%union.anon.1 = type { ptr }
%union.anon.2 = type { %struct.EFI_UDP6_CONFIG_DATA }
%struct.EFI_UDP6_CONFIG_DATA = type { i8, i8, i8, i8, i8, i32, i32, %struct.EFI_IPv6_ADDRESS, i16, %struct.EFI_IPv6_ADDRESS, i16 }
%struct.EFI_IPv6_ADDRESS = type { [16 x i8] }
%struct._EFI_UDP4_PROTOCOL = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.UDP_RX_TOKEN = type { i32, ptr, ptr, ptr, i32, %union.UDP_COMPLETION_TOKEN }
%union.UDP_COMPLETION_TOKEN = type { %struct.EFI_UDP4_COMPLETION_TOKEN }
%struct.EFI_UDP4_COMPLETION_TOKEN = type { ptr, i64, %union.anon }
%union.anon = type { 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._EFI_UDP6_PROTOCOL = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr }

@gBS = external global ptr, align 8
@.str = external hidden unnamed_addr constant [148 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [53 x i8], align 1
@gEfiUdp4ServiceBindingProtocolGuid = external global %struct.GUID, align 4
@gEfiUdp4ProtocolGuid = external global %struct.GUID, align 4
@gEfiUdp6ServiceBindingProtocolGuid = external global %struct.GUID, align 4
@gEfiUdp6ProtocolGuid = external global %struct.GUID, align 4

declare zeroext i8 @DebugAssertEnabled() #0

declare void @DebugAssert(ptr noundef, i64 noundef, ptr noundef) #0

declare void @FreePool(ptr noundef) #0

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

declare ptr @RemoveEntryList(ptr noundef) #0

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

declare i64 @NetLibDestroyServiceChild(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @UdpIoCancelDgrams(ptr noundef, i64 noundef, ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local i64 @UdpIoFreeIo(ptr noundef %0) #2 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #3
  br label %4

4:                                                ; preds = %1
  %5 = call zeroext i8 @DebugAssertEnabled()
  %6 = icmp ne i8 %5, 0
  br i1 %6, label %7, label %21

7:                                                ; preds = %4
  %8 = load ptr, ptr %2, align 8, !tbaa !5
  %9 = getelementptr inbounds %struct._UDP_IO, ptr %8, i32 0, i32 3
  %10 = load i8, ptr %9, align 8, !tbaa !9
  %11 = zext i8 %10 to i32
  %12 = icmp eq i32 %11, 4
  br i1 %12, label %20, label %13

13:                                               ; preds = %7
  %14 = load ptr, ptr %2, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct._UDP_IO, ptr %14, i32 0, i32 3
  %16 = load i8, ptr %15, align 8, !tbaa !9
  %17 = zext i8 %16 to i32
  %18 = icmp eq i32 %17, 6
  br i1 %18, label %20, label %19

19:                                               ; preds = %13
  call void @DebugAssert(ptr noundef @.str, i64 noundef 788, ptr noundef @.str.6)
  br label %20

20:                                               ; preds = %19, %13, %7
  br label %21

21:                                               ; preds = %20, %4
  br label %22

22:                                               ; preds = %21
  br label %23

23:                                               ; preds = %22
  %24 = load ptr, ptr %2, align 8, !tbaa !5
  call void @UdpIoCancelDgrams(ptr noundef %24, i64 noundef -9223372036854775787, ptr noundef null, ptr noundef null)
  %25 = load ptr, ptr %2, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct._UDP_IO, ptr %25, i32 0, i32 3
  %27 = load i8, ptr %26, align 8, !tbaa !9
  %28 = zext i8 %27 to i32
  %29 = icmp eq i32 %28, 4
  br i1 %29, label %30, label %71

30:                                               ; preds = %23
  %31 = load ptr, ptr %2, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct._UDP_IO, ptr %31, i32 0, i32 9
  %33 = load ptr, ptr %32, align 8, !tbaa !16
  store ptr %33, ptr %3, align 8, !tbaa !5
  %34 = icmp ne ptr %33, null
  br i1 %34, label %35, label %47

35:                                               ; preds = %30
  %36 = load ptr, ptr %2, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct._UDP_IO, ptr %36, i32 0, i32 10
  %38 = load ptr, ptr %37, align 8, !tbaa !17
  %39 = getelementptr inbounds %struct._EFI_UDP4_PROTOCOL, ptr %38, i32 0, i32 6
  %40 = load ptr, ptr %39, align 8, !tbaa !18
  %41 = load ptr, ptr %2, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct._UDP_IO, ptr %41, i32 0, i32 10
  %43 = load ptr, ptr %42, align 8, !tbaa !17
  %44 = load ptr, ptr %3, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.UDP_RX_TOKEN, ptr %44, i32 0, i32 5
  %46 = call i64 %40(ptr noundef %43, ptr noundef %45)
  br label %47

47:                                               ; preds = %35, %30
  %48 = load ptr, ptr @gBS, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %48, i32 0, i32 34
  %50 = load ptr, ptr %49, align 8, !tbaa !20
  %51 = load ptr, ptr %2, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct._UDP_IO, ptr %51, i32 0, i32 6
  %53 = load ptr, ptr %52, align 8, !tbaa !23
  %54 = load ptr, ptr %2, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct._UDP_IO, ptr %54, i32 0, i32 5
  %56 = load ptr, ptr %55, align 8, !tbaa !24
  %57 = load ptr, ptr %2, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct._UDP_IO, ptr %57, i32 0, i32 4
  %59 = load ptr, ptr %58, align 8, !tbaa !25
  %60 = call i64 %50(ptr noundef %53, ptr noundef @gEfiUdp4ProtocolGuid, ptr noundef %56, ptr noundef %59)
  %61 = load ptr, ptr %2, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct._UDP_IO, ptr %61, i32 0, i32 4
  %63 = load ptr, ptr %62, align 8, !tbaa !25
  %64 = load ptr, ptr %2, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct._UDP_IO, ptr %64, i32 0, i32 5
  %66 = load ptr, ptr %65, align 8, !tbaa !24
  %67 = load ptr, ptr %2, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct._UDP_IO, ptr %67, i32 0, i32 6
  %69 = load ptr, ptr %68, align 8, !tbaa !23
  %70 = call i64 @NetLibDestroyServiceChild(ptr noundef %63, ptr noundef %66, ptr noundef @gEfiUdp4ServiceBindingProtocolGuid, ptr noundef %69)
  br label %112

71:                                               ; preds = %23
  %72 = load ptr, ptr %2, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct._UDP_IO, ptr %72, i32 0, i32 9
  %74 = load ptr, ptr %73, align 8, !tbaa !16
  store ptr %74, ptr %3, align 8, !tbaa !5
  %75 = icmp ne ptr %74, null
  br i1 %75, label %76, label %88

76:                                               ; preds = %71
  %77 = load ptr, ptr %2, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct._UDP_IO, ptr %77, i32 0, i32 10
  %79 = load ptr, ptr %78, align 8, !tbaa !17
  %80 = getelementptr inbounds %struct._EFI_UDP6_PROTOCOL, ptr %79, i32 0, i32 5
  %81 = load ptr, ptr %80, align 8, !tbaa !26
  %82 = load ptr, ptr %2, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct._UDP_IO, ptr %82, i32 0, i32 10
  %84 = load ptr, ptr %83, align 8, !tbaa !17
  %85 = load ptr, ptr %3, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.UDP_RX_TOKEN, ptr %85, i32 0, i32 5
  %87 = call i64 %81(ptr noundef %84, ptr noundef %86)
  br label %88

88:                                               ; preds = %76, %71
  %89 = load ptr, ptr @gBS, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %89, i32 0, i32 34
  %91 = load ptr, ptr %90, align 8, !tbaa !20
  %92 = load ptr, ptr %2, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct._UDP_IO, ptr %92, i32 0, i32 6
  %94 = load ptr, ptr %93, align 8, !tbaa !23
  %95 = load ptr, ptr %2, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct._UDP_IO, ptr %95, i32 0, i32 5
  %97 = load ptr, ptr %96, align 8, !tbaa !24
  %98 = load ptr, ptr %2, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct._UDP_IO, ptr %98, i32 0, i32 4
  %100 = load ptr, ptr %99, align 8, !tbaa !25
  %101 = call i64 %91(ptr noundef %94, ptr noundef @gEfiUdp6ProtocolGuid, ptr noundef %97, ptr noundef %100)
  %102 = load ptr, ptr %2, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct._UDP_IO, ptr %102, i32 0, i32 4
  %104 = load ptr, ptr %103, align 8, !tbaa !25
  %105 = load ptr, ptr %2, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct._UDP_IO, ptr %105, i32 0, i32 5
  %107 = load ptr, ptr %106, align 8, !tbaa !24
  %108 = load ptr, ptr %2, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct._UDP_IO, ptr %108, i32 0, i32 6
  %110 = load ptr, ptr %109, align 8, !tbaa !23
  %111 = call i64 @NetLibDestroyServiceChild(ptr noundef %104, ptr noundef %107, ptr noundef @gEfiUdp6ServiceBindingProtocolGuid, ptr noundef %110)
  br label %112

112:                                              ; preds = %88, %47
  %113 = load ptr, ptr %2, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct._UDP_IO, ptr %113, i32 0, i32 1
  %115 = call zeroext i8 @IsListEmpty(ptr noundef %114)
  %116 = icmp ne i8 %115, 0
  br i1 %116, label %121, label %117

117:                                              ; preds = %112
  %118 = load ptr, ptr %2, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct._UDP_IO, ptr %118, i32 0, i32 1
  %120 = call ptr @RemoveEntryList(ptr noundef %119)
  br label %121

121:                                              ; preds = %117, %112
  %122 = load ptr, ptr %2, align 8, !tbaa !5
  call void @FreePool(ptr noundef %122)
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #3
  ret i64 0
}

declare zeroext i8 @IsListEmpty(ptr noundef) #0

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !7, i64 32}
!10 = !{!"_UDP_IO", !11, i64 0, !12, i64 8, !13, i64 24, !7, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !14, i64 64, !12, i64 720, !6, i64 736, !7, i64 744, !7, i64 752}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_LIST_ENTRY", !6, i64 0, !6, i64 8}
!13 = !{!"long long", !7, i64 0}
!14 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !7, i64 40, !15, i64 552, !15, i64 584, !15, i64 616, !7, i64 648, !7, i64 649, !7, i64 650, !7, i64 651, !7, i64 652}
!15 = !{!"", !7, i64 0}
!16 = !{!10, !6, i64 736}
!17 = !{!7, !7, i64 0}
!18 = !{!19, !6, i64 48}
!19 = !{!"_EFI_UDP4_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}
!20 = !{!21, !6, i64 288}
!21 = !{!"", !22, 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}
!22 = !{!"", !13, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20}
!23 = !{!10, !6, i64 56}
!24 = !{!10, !6, i64 48}
!25 = !{!10, !6, i64 40}
!26 = !{!27, !6, i64 40}
!27 = !{!"_EFI_UDP6_PROTOCOL", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48}


; 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
@.str = external hidden unnamed_addr constant [148 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [53 x i8], align 1
@gEfiUdp4ServiceBindingProtocolGuid = external global %struct.GUID, align 4
@gEfiUdp4ProtocolGuid = external global %struct.GUID, align 4
@gEfiUdp6ServiceBindingProtocolGuid = external global %struct.GUID, align 4
@gEfiUdp6ProtocolGuid = external global %struct.GUID, align 4

declare zeroext i8 @DebugAssertEnabled() local_unnamed_addr #0

declare void @DebugAssert(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #0

declare void @FreePool(ptr noundef) local_unnamed_addr #0

declare ptr @RemoveEntryList(ptr noundef) local_unnamed_addr #0

declare i64 @NetLibDestroyServiceChild(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @UdpIoCancelDgrams(ptr noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local noundef i64 @UdpIoFreeIo(ptr noundef %0) local_unnamed_addr #1 {
  %2 = tail call zeroext i8 @DebugAssertEnabled() #2
  %.not = icmp eq i8 %2, 0
  br i1 %.not, label %7, label %3

3:                                                ; preds = %1
  %4 = getelementptr inbounds i8, ptr %0, i64 32
  %5 = load i8, ptr %4, align 8, !tbaa !5
  switch i8 %5, label %6 [
    i8 4, label %7
    i8 6, label %7
  ]

6:                                                ; preds = %3
  tail call void @DebugAssert(ptr noundef nonnull @.str, i64 noundef 788, ptr noundef nonnull @.str.6) #2
  br label %7

7:                                                ; preds = %3, %3, %6, %1
  tail call void @UdpIoCancelDgrams(ptr noundef %0, i64 noundef -9223372036854775787, ptr noundef null, ptr noundef null)
  %8 = getelementptr inbounds i8, ptr %0, i64 32
  %9 = load i8, ptr %8, align 8, !tbaa !5
  %10 = icmp eq i8 %9, 4
  %11 = getelementptr inbounds i8, ptr %0, i64 736
  %12 = load ptr, ptr %11, align 8, !tbaa !15
  %.not30 = icmp eq ptr %12, null
  %gEfiUdp4ProtocolGuid.gEfiUdp6ProtocolGuid = select i1 %10, ptr @gEfiUdp4ProtocolGuid, ptr @gEfiUdp6ProtocolGuid
  %gEfiUdp4ServiceBindingProtocolGuid.gEfiUdp6ServiceBindingProtocolGuid = select i1 %10, ptr @gEfiUdp4ServiceBindingProtocolGuid, ptr @gEfiUdp6ServiceBindingProtocolGuid
  br i1 %.not30, label %19, label %.sink.split

.sink.split:                                      ; preds = %7
  %. = select i1 %10, i64 48, i64 40
  %13 = getelementptr inbounds i8, ptr %0, i64 744
  %14 = load ptr, ptr %13, align 8, !tbaa !16
  %15 = getelementptr inbounds i8, ptr %14, i64 %.
  %16 = load ptr, ptr %15, align 8, !tbaa !17
  %17 = getelementptr inbounds i8, ptr %12, i64 40
  %18 = tail call i64 %16(ptr noundef %14, ptr noundef nonnull %17) #2
  br label %19

19:                                               ; preds = %7, %.sink.split
  %20 = load ptr, ptr @gBS, align 8, !tbaa !17
  %21 = getelementptr inbounds i8, ptr %20, i64 288
  %22 = load ptr, ptr %21, align 8, !tbaa !18
  %23 = getelementptr inbounds i8, ptr %0, i64 56
  %24 = load ptr, ptr %23, align 8, !tbaa !21
  %25 = getelementptr inbounds i8, ptr %0, i64 48
  %26 = load ptr, ptr %25, align 8, !tbaa !22
  %27 = getelementptr inbounds i8, ptr %0, i64 40
  %28 = load ptr, ptr %27, align 8, !tbaa !23
  %29 = tail call i64 %22(ptr noundef %24, ptr noundef nonnull %gEfiUdp4ProtocolGuid.gEfiUdp6ProtocolGuid, ptr noundef %26, ptr noundef %28) #2
  %30 = load ptr, ptr %27, align 8, !tbaa !23
  %31 = load ptr, ptr %25, align 8, !tbaa !22
  %32 = load ptr, ptr %23, align 8, !tbaa !21
  %33 = tail call i64 @NetLibDestroyServiceChild(ptr noundef %30, ptr noundef %31, ptr noundef nonnull %gEfiUdp4ServiceBindingProtocolGuid.gEfiUdp6ServiceBindingProtocolGuid, ptr noundef %32) #2
  %34 = getelementptr inbounds i8, ptr %0, i64 8
  %35 = tail call zeroext i8 @IsListEmpty(ptr noundef nonnull %34) #2
  %.not31 = icmp eq i8 %35, 0
  br i1 %.not31, label %36, label %38

36:                                               ; preds = %19
  %37 = tail call ptr @RemoveEntryList(ptr noundef nonnull %34) #2
  br label %38

38:                                               ; preds = %36, %19
  tail call void @FreePool(ptr noundef nonnull %0) #2
  ret i64 0
}

declare zeroext i8 @IsListEmpty(ptr noundef) local_unnamed_addr #0

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 = { 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 }

!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, !8, i64 32}
!6 = !{!"_UDP_IO", !7, i64 0, !10, i64 8, !12, i64 24, !8, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !13, i64 64, !10, i64 720, !11, i64 736, !8, i64 744, !8, i64 752}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"_LIST_ENTRY", !11, i64 0, !11, i64 8}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!"long long", !8, i64 0}
!13 = !{!"", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !8, i64 40, !14, i64 552, !14, i64 584, !14, i64 616, !8, i64 648, !8, i64 649, !8, i64 650, !8, i64 651, !8, i64 652}
!14 = !{!"", !8, i64 0}
!15 = !{!6, !11, i64 736}
!16 = !{!8, !8, i64 0}
!17 = !{!11, !11, i64 0}
!18 = !{!19, !11, i64 288}
!19 = !{!"", !20, 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}
!20 = !{!"", !12, i64 0, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20}
!21 = !{!6, !11, i64 56}
!22 = !{!6, !11, i64 48}
!23 = !{!6, !11, i64 40}


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