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

; 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._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.NET_BUF = type { i32, i64, %struct._LIST_ENTRY, %union.NET_IP_HEAD, ptr, ptr, [64 x i8], ptr, i32, i32, [1 x %struct.NET_BLOCK_OP] }
%union.NET_IP_HEAD = type { ptr }
%struct.NET_BLOCK_OP = type { ptr, ptr, ptr, ptr, i32 }
%struct.UDP_TX_TOKEN = type { i32, %struct._LIST_ENTRY, ptr, ptr, ptr, ptr, %struct.EFI_IPv4_ADDRESS, %union.UDP_SESSION_DATA, %union.UDP_COMPLETION_TOKEN, %union.UDP_TRANSMIT_DATA }
%struct.EFI_IPv4_ADDRESS = type { [4 x i8] }
%union.UDP_SESSION_DATA = type { %struct.EFI_UDP6_SESSION_DATA }
%struct.EFI_UDP6_SESSION_DATA = type { %struct.EFI_IPv6_ADDRESS, i16, %struct.EFI_IPv6_ADDRESS, i16 }
%union.UDP_COMPLETION_TOKEN = type { %struct.EFI_UDP4_COMPLETION_TOKEN }
%struct.EFI_UDP4_COMPLETION_TOKEN = type { ptr, i64, %union.anon }
%union.anon = type { ptr }
%union.UDP_TRANSMIT_DATA = type { %struct.EFI_UDP4_TRANSMIT_DATA }
%struct.EFI_UDP4_TRANSMIT_DATA = type { ptr, ptr, i32, i32, [1 x %struct.EFI_UDP4_FRAGMENT_DATA] }
%struct.EFI_UDP4_FRAGMENT_DATA = type { i32, 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.UDP_END_POINT = type { %union.EFI_IP_ADDRESS, i16, %union.EFI_IP_ADDRESS, i16 }
%union.EFI_IP_ADDRESS = type { [4 x i32] }
%struct.EFI_UDP4_SESSION_DATA = type { %struct.EFI_IPv4_ADDRESS, i16, %struct.EFI_IPv4_ADDRESS, i16 }
%struct.EFI_UDP6_COMPLETION_TOKEN = type { ptr, i64, %union.anon.0 }
%union.anon.0 = type { ptr }
%struct.EFI_UDP6_TRANSMIT_DATA = type { ptr, i32, i32, [1 x %struct.EFI_UDP6_FRAGMENT_DATA] }
%struct.EFI_UDP6_FRAGMENT_DATA = type { i32, 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
@.str.7 = external hidden unnamed_addr constant [23 x i8], align 1

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

; 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 @UdpIoOnDgramSent(ptr noundef, ptr noundef) #2

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

declare i32 @SwapBytes32(i32 noundef) #0

declare ptr @AllocatePool(i64 noundef) #0

; Function Attrs: nounwind uwtable
define dso_local ptr @UdpIoCreateTxToken(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #2 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i64, align 8
  %18 = alloca i32, align 4
  %19 = alloca i64, align 8
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store ptr %3, ptr %11, align 8, !tbaa !5
  store ptr %4, ptr %12, align 8, !tbaa !5
  store ptr %5, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #3
  br label %22

22:                                               ; preds = %6
  %23 = call zeroext i8 @DebugAssertEnabled()
  %24 = icmp ne i8 %23, 0
  br i1 %24, label %25, label %30

25:                                               ; preds = %22
  %26 = load ptr, ptr %9, align 8, !tbaa !5
  %27 = icmp ne ptr %26, null
  br i1 %27, label %29, label %28

28:                                               ; preds = %25
  call void @DebugAssert(ptr noundef @.str, i64 noundef 420, ptr noundef @.str.7)
  br label %29

29:                                               ; preds = %28, %25
  br label %30

30:                                               ; preds = %29, %22
  br label %31

31:                                               ; preds = %30
  br label %32

32:                                               ; preds = %31
  br label %33

33:                                               ; preds = %32
  %34 = call zeroext i8 @DebugAssertEnabled()
  %35 = icmp ne i8 %34, 0
  br i1 %35, label %36, label %50

36:                                               ; preds = %33
  %37 = load ptr, ptr %8, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct._UDP_IO, ptr %37, i32 0, i32 3
  %39 = load i8, ptr %38, align 8, !tbaa !9
  %40 = zext i8 %39 to i32
  %41 = icmp eq i32 %40, 4
  br i1 %41, label %49, label %42

42:                                               ; preds = %36
  %43 = load ptr, ptr %8, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct._UDP_IO, ptr %43, i32 0, i32 3
  %45 = load i8, ptr %44, align 8, !tbaa !9
  %46 = zext i8 %45 to i32
  %47 = icmp eq i32 %46, 6
  br i1 %47, label %49, label %48

48:                                               ; preds = %42
  call void @DebugAssert(ptr noundef @.str, i64 noundef 422, ptr noundef @.str.6)
  br label %49

49:                                               ; preds = %48, %42, %36
  br label %50

50:                                               ; preds = %49, %33
  br label %51

51:                                               ; preds = %50
  br label %52

52:                                               ; preds = %51
  %53 = load ptr, ptr %8, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct._UDP_IO, ptr %53, i32 0, i32 3
  %55 = load i8, ptr %54, align 8, !tbaa !9
  %56 = zext i8 %55 to i32
  %57 = icmp eq i32 %56, 4
  br i1 %57, label %58, label %66

58:                                               ; preds = %52
  %59 = load ptr, ptr %9, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.NET_BUF, ptr %59, i32 0, i32 8
  %61 = load i32, ptr %60, align 8, !tbaa !16
  %62 = sub i32 %61, 1
  %63 = zext i32 %62 to i64
  %64 = mul i64 16, %63
  %65 = add i64 160, %64
  store i64 %65, ptr %19, align 8, !tbaa !18
  br label %74

66:                                               ; preds = %52
  %67 = load ptr, ptr %9, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.NET_BUF, ptr %67, i32 0, i32 8
  %69 = load i32, ptr %68, align 8, !tbaa !16
  %70 = sub i32 %69, 1
  %71 = zext i32 %70 to i64
  %72 = mul i64 16, %71
  %73 = add i64 160, %72
  store i64 %73, ptr %19, align 8, !tbaa !18
  br label %74

74:                                               ; preds = %66, %58
  %75 = load i64, ptr %19, align 8, !tbaa !18
  %76 = call ptr @AllocatePool(i64 noundef %75)
  store ptr %76, ptr %14, align 8, !tbaa !5
  %77 = load ptr, ptr %14, align 8, !tbaa !5
  %78 = icmp eq ptr %77, null
  br i1 %78, label %79, label %80

79:                                               ; preds = %74
  store ptr null, ptr %7, align 8
  store i32 1, ptr %21, align 4
  br label %272

80:                                               ; preds = %74
  %81 = load ptr, ptr %14, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.UDP_TX_TOKEN, ptr %81, i32 0, i32 0
  store i32 1414546517, ptr %82, align 8, !tbaa !19
  %83 = load ptr, ptr %14, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.UDP_TX_TOKEN, ptr %83, i32 0, i32 1
  %85 = call ptr @InitializeListHead(ptr noundef %84)
  %86 = load ptr, ptr %8, align 8, !tbaa !5
  %87 = load ptr, ptr %14, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.UDP_TX_TOKEN, ptr %87, i32 0, i32 2
  store ptr %86, ptr %88, align 8, !tbaa !21
  %89 = load ptr, ptr %12, align 8, !tbaa !5
  %90 = load ptr, ptr %14, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.UDP_TX_TOKEN, ptr %90, i32 0, i32 3
  store ptr %89, ptr %91, align 8, !tbaa !22
  %92 = load ptr, ptr %9, align 8, !tbaa !5
  %93 = load ptr, ptr %14, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.UDP_TX_TOKEN, ptr %93, i32 0, i32 4
  store ptr %92, ptr %94, align 8, !tbaa !23
  %95 = load ptr, ptr %13, align 8, !tbaa !5
  %96 = load ptr, ptr %14, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.UDP_TX_TOKEN, ptr %96, i32 0, i32 5
  store ptr %95, ptr %97, align 8, !tbaa !24
  %98 = load ptr, ptr %14, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.UDP_TX_TOKEN, ptr %98, i32 0, i32 8
  store ptr %99, ptr %15, align 8, !tbaa !5
  %100 = load ptr, ptr %9, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.NET_BUF, ptr %100, i32 0, i32 8
  %102 = load i32, ptr %101, align 8, !tbaa !16
  store i32 %102, ptr %18, align 4, !tbaa !25
  %103 = load ptr, ptr %8, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct._UDP_IO, ptr %103, i32 0, i32 3
  %105 = load i8, ptr %104, align 8, !tbaa !9
  %106 = zext i8 %105 to i32
  %107 = icmp eq i32 %106, 4
  br i1 %107, label %108, label %203

108:                                              ; preds = %80
  %109 = load ptr, ptr %15, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.EFI_UDP4_COMPLETION_TOKEN, ptr %109, i32 0, i32 1
  store i64 -9223372036854775802, ptr %110, align 8, !tbaa !26
  %111 = load ptr, ptr @gBS, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %111, i32 0, i32 8
  %113 = load ptr, ptr %112, align 8, !tbaa !28
  %114 = load ptr, ptr %14, align 8, !tbaa !5
  %115 = load ptr, ptr %15, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.EFI_UDP4_COMPLETION_TOKEN, ptr %115, i32 0, i32 0
  %117 = call i64 %113(i32 noundef 512, i64 noundef 16, ptr noundef @UdpIoOnDgramSent, ptr noundef %114, ptr noundef %116)
  store i64 %117, ptr %17, align 8, !tbaa !18
  %118 = load i64, ptr %17, align 8, !tbaa !18
  %119 = icmp slt i64 %118, 0
  br i1 %119, label %120, label %122

120:                                              ; preds = %108
  %121 = load ptr, ptr %14, align 8, !tbaa !5
  call void @FreePool(ptr noundef %121)
  store ptr null, ptr %7, align 8
  store i32 1, ptr %21, align 4
  br label %272

122:                                              ; preds = %108
  %123 = load ptr, ptr %14, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.UDP_TX_TOKEN, ptr %123, i32 0, i32 9
  store ptr %124, ptr %16, align 8, !tbaa !5
  %125 = load ptr, ptr %16, align 8, !tbaa !5
  %126 = load ptr, ptr %15, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.EFI_UDP4_COMPLETION_TOKEN, ptr %126, i32 0, i32 2
  store ptr %125, ptr %127, align 8, !tbaa !31
  %128 = load ptr, ptr %16, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.EFI_UDP4_TRANSMIT_DATA, ptr %128, i32 0, i32 0
  store ptr null, ptr %129, align 8, !tbaa !32
  %130 = load ptr, ptr %16, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.EFI_UDP4_TRANSMIT_DATA, ptr %130, i32 0, i32 1
  store ptr null, ptr %131, align 8, !tbaa !34
  %132 = load ptr, ptr %9, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.NET_BUF, ptr %132, i32 0, i32 9
  %134 = load i32, ptr %133, align 4, !tbaa !35
  %135 = load ptr, ptr %16, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.EFI_UDP4_TRANSMIT_DATA, ptr %135, i32 0, i32 2
  store i32 %134, ptr %136, align 8, !tbaa !36
  %137 = load ptr, ptr %9, align 8, !tbaa !5
  %138 = load ptr, ptr %16, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.EFI_UDP4_TRANSMIT_DATA, ptr %138, i32 0, i32 4
  %140 = getelementptr inbounds [1 x %struct.EFI_UDP4_FRAGMENT_DATA], ptr %139, i64 0, i64 0
  %141 = call i64 @NetbufBuildExt(ptr noundef %137, ptr noundef %140, ptr noundef %18)
  %142 = load i32, ptr %18, align 4, !tbaa !25
  %143 = load ptr, ptr %16, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.EFI_UDP4_TRANSMIT_DATA, ptr %143, i32 0, i32 3
  store i32 %142, ptr %144, align 4, !tbaa !37
  %145 = load ptr, ptr %10, align 8, !tbaa !5
  %146 = icmp ne ptr %145, null
  br i1 %146, label %147, label %182

147:                                              ; preds = %122
  %148 = load ptr, ptr %10, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.UDP_END_POINT, ptr %148, i32 0, i32 0
  %150 = getelementptr inbounds [4 x i32], ptr %149, i64 0, i64 0
  %151 = load i32, ptr %150, align 4, !tbaa !31
  %152 = call i32 @SwapBytes32(i32 noundef %151)
  store i32 %152, ptr %20, align 4, !tbaa !25
  %153 = load ptr, ptr %14, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.UDP_TX_TOKEN, ptr %153, i32 0, i32 7
  %155 = getelementptr inbounds %struct.EFI_UDP4_SESSION_DATA, ptr %154, i32 0, i32 0
  %156 = call ptr @CopyMem(ptr noundef %155, ptr noundef %20, i64 noundef 4)
  %157 = load ptr, ptr %10, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.UDP_END_POINT, ptr %157, i32 0, i32 2
  %159 = getelementptr inbounds [4 x i32], ptr %158, i64 0, i64 0
  %160 = load i32, ptr %159, align 4, !tbaa !31
  %161 = call i32 @SwapBytes32(i32 noundef %160)
  store i32 %161, ptr %20, align 4, !tbaa !25
  %162 = load ptr, ptr %14, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.UDP_TX_TOKEN, ptr %162, i32 0, i32 7
  %164 = getelementptr inbounds %struct.EFI_UDP4_SESSION_DATA, ptr %163, i32 0, i32 2
  %165 = call ptr @CopyMem(ptr noundef %164, ptr noundef %20, i64 noundef 4)
  %166 = load ptr, ptr %10, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.UDP_END_POINT, ptr %166, i32 0, i32 1
  %168 = load i16, ptr %167, align 4, !tbaa !38
  %169 = load ptr, ptr %14, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.UDP_TX_TOKEN, ptr %169, i32 0, i32 7
  %171 = getelementptr inbounds %struct.EFI_UDP4_SESSION_DATA, ptr %170, i32 0, i32 1
  store i16 %168, ptr %171, align 4, !tbaa !31
  %172 = load ptr, ptr %10, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.UDP_END_POINT, ptr %172, i32 0, i32 3
  %174 = load i16, ptr %173, align 4, !tbaa !41
  %175 = load ptr, ptr %14, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.UDP_TX_TOKEN, ptr %175, i32 0, i32 7
  %177 = getelementptr inbounds %struct.EFI_UDP4_SESSION_DATA, ptr %176, i32 0, i32 3
  store i16 %174, ptr %177, align 2, !tbaa !31
  %178 = load ptr, ptr %14, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.UDP_TX_TOKEN, ptr %178, i32 0, i32 7
  %180 = load ptr, ptr %16, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.EFI_UDP4_TRANSMIT_DATA, ptr %180, i32 0, i32 0
  store ptr %179, ptr %181, align 8, !tbaa !32
  br label %182

182:                                              ; preds = %147, %122
  %183 = load ptr, ptr %11, align 8, !tbaa !5
  %184 = icmp ne ptr %183, null
  br i1 %184, label %185, label %202

185:                                              ; preds = %182
  %186 = load ptr, ptr %11, align 8, !tbaa !5
  %187 = getelementptr inbounds [4 x i32], ptr %186, i64 0, i64 0
  %188 = load i32, ptr %187, align 4, !tbaa !31
  %189 = icmp ne i32 %188, 0
  br i1 %189, label %190, label %202

190:                                              ; preds = %185
  %191 = load ptr, ptr %11, align 8, !tbaa !5
  %192 = getelementptr inbounds [4 x i32], ptr %191, i64 0, i64 0
  %193 = load i32, ptr %192, align 4, !tbaa !31
  %194 = call i32 @SwapBytes32(i32 noundef %193)
  store i32 %194, ptr %20, align 4, !tbaa !25
  %195 = load ptr, ptr %14, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.UDP_TX_TOKEN, ptr %195, i32 0, i32 6
  %197 = call ptr @CopyMem(ptr noundef %196, ptr noundef %20, i64 noundef 4)
  %198 = load ptr, ptr %14, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.UDP_TX_TOKEN, ptr %198, i32 0, i32 6
  %200 = load ptr, ptr %16, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.EFI_UDP4_TRANSMIT_DATA, ptr %200, i32 0, i32 1
  store ptr %199, ptr %201, align 8, !tbaa !34
  br label %202

202:                                              ; preds = %190, %185, %182
  br label %270

203:                                              ; preds = %80
  %204 = load ptr, ptr %15, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.EFI_UDP6_COMPLETION_TOKEN, ptr %204, i32 0, i32 1
  store i64 -9223372036854775802, ptr %205, align 8, !tbaa !26
  %206 = load ptr, ptr @gBS, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %206, i32 0, i32 8
  %208 = load ptr, ptr %207, align 8, !tbaa !28
  %209 = load ptr, ptr %14, align 8, !tbaa !5
  %210 = load ptr, ptr %15, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.EFI_UDP6_COMPLETION_TOKEN, ptr %210, i32 0, i32 0
  %212 = call i64 %208(i32 noundef 512, i64 noundef 16, ptr noundef @UdpIoOnDgramSent, ptr noundef %209, ptr noundef %211)
  store i64 %212, ptr %17, align 8, !tbaa !18
  %213 = load i64, ptr %17, align 8, !tbaa !18
  %214 = icmp slt i64 %213, 0
  br i1 %214, label %215, label %217

215:                                              ; preds = %203
  %216 = load ptr, ptr %14, align 8, !tbaa !5
  call void @FreePool(ptr noundef %216)
  store ptr null, ptr %7, align 8
  store i32 1, ptr %21, align 4
  br label %272

217:                                              ; preds = %203
  %218 = load ptr, ptr %14, align 8, !tbaa !5
  %219 = getelementptr inbounds %struct.UDP_TX_TOKEN, ptr %218, i32 0, i32 9
  store ptr %219, ptr %16, align 8, !tbaa !5
  %220 = load ptr, ptr %16, align 8, !tbaa !5
  %221 = load ptr, ptr %15, align 8, !tbaa !5
  %222 = getelementptr inbounds %struct.EFI_UDP6_COMPLETION_TOKEN, ptr %221, i32 0, i32 2
  store ptr %220, ptr %222, align 8, !tbaa !31
  %223 = load ptr, ptr %16, align 8, !tbaa !5
  %224 = getelementptr inbounds %struct.EFI_UDP6_TRANSMIT_DATA, ptr %223, i32 0, i32 0
  store ptr null, ptr %224, align 8, !tbaa !42
  %225 = load ptr, ptr %9, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct.NET_BUF, ptr %225, i32 0, i32 9
  %227 = load i32, ptr %226, align 4, !tbaa !35
  %228 = load ptr, ptr %16, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct.EFI_UDP6_TRANSMIT_DATA, ptr %228, i32 0, i32 1
  store i32 %227, ptr %229, align 8, !tbaa !44
  %230 = load ptr, ptr %9, align 8, !tbaa !5
  %231 = load ptr, ptr %16, align 8, !tbaa !5
  %232 = getelementptr inbounds %struct.EFI_UDP6_TRANSMIT_DATA, ptr %231, i32 0, i32 3
  %233 = getelementptr inbounds [1 x %struct.EFI_UDP6_FRAGMENT_DATA], ptr %232, i64 0, i64 0
  %234 = call i64 @NetbufBuildExt(ptr noundef %230, ptr noundef %233, ptr noundef %18)
  %235 = load i32, ptr %18, align 4, !tbaa !25
  %236 = load ptr, ptr %16, align 8, !tbaa !5
  %237 = getelementptr inbounds %struct.EFI_UDP6_TRANSMIT_DATA, ptr %236, i32 0, i32 2
  store i32 %235, ptr %237, align 4, !tbaa !45
  %238 = load ptr, ptr %10, align 8, !tbaa !5
  %239 = icmp ne ptr %238, null
  br i1 %239, label %240, label %269

240:                                              ; preds = %217
  %241 = load ptr, ptr %14, align 8, !tbaa !5
  %242 = getelementptr inbounds %struct.UDP_TX_TOKEN, ptr %241, i32 0, i32 7
  %243 = getelementptr inbounds %struct.EFI_UDP6_SESSION_DATA, ptr %242, i32 0, i32 0
  %244 = load ptr, ptr %10, align 8, !tbaa !5
  %245 = getelementptr inbounds %struct.UDP_END_POINT, ptr %244, i32 0, i32 0
  %246 = call ptr @CopyMem(ptr noundef %243, ptr noundef %245, i64 noundef 16)
  %247 = load ptr, ptr %14, align 8, !tbaa !5
  %248 = getelementptr inbounds %struct.UDP_TX_TOKEN, ptr %247, i32 0, i32 7
  %249 = getelementptr inbounds %struct.EFI_UDP6_SESSION_DATA, ptr %248, i32 0, i32 2
  %250 = load ptr, ptr %10, align 8, !tbaa !5
  %251 = getelementptr inbounds %struct.UDP_END_POINT, ptr %250, i32 0, i32 2
  %252 = call ptr @CopyMem(ptr noundef %249, ptr noundef %251, i64 noundef 16)
  %253 = load ptr, ptr %10, align 8, !tbaa !5
  %254 = getelementptr inbounds %struct.UDP_END_POINT, ptr %253, i32 0, i32 1
  %255 = load i16, ptr %254, align 4, !tbaa !38
  %256 = load ptr, ptr %14, align 8, !tbaa !5
  %257 = getelementptr inbounds %struct.UDP_TX_TOKEN, ptr %256, i32 0, i32 7
  %258 = getelementptr inbounds %struct.EFI_UDP6_SESSION_DATA, ptr %257, i32 0, i32 1
  store i16 %255, ptr %258, align 4, !tbaa !31
  %259 = load ptr, ptr %10, align 8, !tbaa !5
  %260 = getelementptr inbounds %struct.UDP_END_POINT, ptr %259, i32 0, i32 3
  %261 = load i16, ptr %260, align 4, !tbaa !41
  %262 = load ptr, ptr %14, align 8, !tbaa !5
  %263 = getelementptr inbounds %struct.UDP_TX_TOKEN, ptr %262, i32 0, i32 7
  %264 = getelementptr inbounds %struct.EFI_UDP6_SESSION_DATA, ptr %263, i32 0, i32 3
  store i16 %261, ptr %264, align 2, !tbaa !31
  %265 = load ptr, ptr %14, align 8, !tbaa !5
  %266 = getelementptr inbounds %struct.UDP_TX_TOKEN, ptr %265, i32 0, i32 7
  %267 = load ptr, ptr %16, align 8, !tbaa !5
  %268 = getelementptr inbounds %struct.EFI_UDP6_TRANSMIT_DATA, ptr %267, i32 0, i32 0
  store ptr %266, ptr %268, align 8, !tbaa !42
  br label %269

269:                                              ; preds = %240, %217
  br label %270

270:                                              ; preds = %269, %202
  %271 = load ptr, ptr %14, align 8, !tbaa !5
  store ptr %271, ptr %7, align 8
  store i32 1, ptr %21, align 4
  br label %272

272:                                              ; preds = %270, %215, %120, %79
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  %273 = load ptr, ptr %7, align 8
  ret ptr %273
}

declare ptr @InitializeListHead(ptr noundef) #0

declare i64 @NetbufBuildExt(ptr noundef, ptr noundef, 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 = !{!17, !11, i64 128}
!17 = !{!"", !11, i64 0, !13, i64 8, !12, i64 16, !7, i64 32, !6, i64 40, !6, i64 48, !7, i64 56, !6, i64 120, !11, i64 128, !11, i64 132, !7, i64 136}
!18 = !{!13, !13, i64 0}
!19 = !{!20, !11, i64 0}
!20 = !{!"", !11, i64 0, !12, i64 8, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !15, i64 56, !7, i64 60, !7, i64 96, !7, i64 120}
!21 = !{!20, !6, i64 24}
!22 = !{!20, !6, i64 32}
!23 = !{!20, !6, i64 40}
!24 = !{!20, !6, i64 48}
!25 = !{!11, !11, i64 0}
!26 = !{!27, !13, i64 8}
!27 = !{!"", !6, i64 0, !13, i64 8, !7, i64 16}
!28 = !{!29, !6, i64 80}
!29 = !{!"", !30, 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}
!30 = !{!"", !13, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20}
!31 = !{!7, !7, i64 0}
!32 = !{!33, !6, i64 0}
!33 = !{!"", !6, i64 0, !6, i64 8, !11, i64 16, !11, i64 20, !7, i64 24}
!34 = !{!33, !6, i64 8}
!35 = !{!17, !11, i64 132}
!36 = !{!33, !11, i64 16}
!37 = !{!33, !11, i64 20}
!38 = !{!39, !40, i64 16}
!39 = !{!"", !7, i64 0, !40, i64 16, !7, i64 20, !40, i64 36}
!40 = !{!"short", !7, i64 0}
!41 = !{!39, !40, i64 36}
!42 = !{!43, !6, i64 0}
!43 = !{!"", !6, i64 0, !11, i64 8, !11, i64 12, !7, i64 16}
!44 = !{!43, !11, i64 8}
!45 = !{!43, !11, i64 12}


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

@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
@.str.7 = external hidden unnamed_addr constant [23 x i8], align 1

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

; 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 @UdpIoOnDgramSent(ptr noundef, ptr noundef) #2

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

declare i32 @SwapBytes32(i32 noundef) local_unnamed_addr #0

declare ptr @AllocatePool(i64 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local ptr @UdpIoCreateTxToken(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef readonly %3, ptr noundef %4, ptr noundef %5) local_unnamed_addr #2 {
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #4
  %9 = tail call zeroext i8 @DebugAssertEnabled() #4
  %10 = icmp eq i8 %9, 0
  %11 = icmp ne ptr %1, null
  %or.cond = or i1 %11, %10
  br i1 %or.cond, label %13, label %12

12:                                               ; preds = %6
  tail call void @DebugAssert(ptr noundef nonnull @.str, i64 noundef 420, ptr noundef nonnull @.str.7) #4
  br label %13

13:                                               ; preds = %6, %12
  %14 = tail call zeroext i8 @DebugAssertEnabled() #4
  %.not = icmp eq i8 %14, 0
  br i1 %.not, label %19, label %15

15:                                               ; preds = %13
  %16 = getelementptr inbounds i8, ptr %0, i64 32
  %17 = load i8, ptr %16, align 8, !tbaa !5
  switch i8 %17, label %18 [
    i8 4, label %19
    i8 6, label %19
  ]

18:                                               ; preds = %15
  tail call void @DebugAssert(ptr noundef nonnull @.str, i64 noundef 422, ptr noundef nonnull @.str.6) #4
  br label %19

19:                                               ; preds = %15, %15, %18, %13
  %.0.in.in.in.in.in = getelementptr inbounds i8, ptr %1, i64 128
  %.0.in.in.in.in = load i32, ptr %.0.in.in.in.in.in, align 8, !tbaa !15
  %.0.in.in.in = add i32 %.0.in.in.in.in, -1
  %.0.in.in = zext i32 %.0.in.in.in to i64
  %.0.in = shl nuw nsw i64 %.0.in.in, 4
  %.0 = add nuw nsw i64 %.0.in, 160
  %20 = tail call ptr @AllocatePool(i64 noundef %.0) #4
  %21 = icmp eq ptr %20, null
  br i1 %21, label %100, label %22

22:                                               ; preds = %19
  %23 = getelementptr inbounds i8, ptr %0, i64 32
  store i32 1414546517, ptr %20, align 8, !tbaa !17
  %24 = getelementptr inbounds i8, ptr %20, i64 8
  %25 = tail call ptr @InitializeListHead(ptr noundef nonnull %24) #4
  %26 = getelementptr inbounds i8, ptr %20, i64 24
  store ptr %0, ptr %26, align 8, !tbaa !19
  %27 = getelementptr inbounds i8, ptr %20, i64 32
  store ptr %4, ptr %27, align 8, !tbaa !20
  %28 = getelementptr inbounds i8, ptr %20, i64 40
  store ptr %1, ptr %28, align 8, !tbaa !21
  %29 = getelementptr inbounds i8, ptr %20, i64 48
  store ptr %5, ptr %29, align 8, !tbaa !22
  %30 = getelementptr inbounds i8, ptr %20, i64 96
  %31 = load i32, ptr %.0.in.in.in.in.in, align 8, !tbaa !15
  store i32 %31, ptr %7, align 4, !tbaa !23
  %32 = load i8, ptr %23, align 8, !tbaa !5
  %33 = icmp eq i8 %32, 4
  %34 = getelementptr inbounds i8, ptr %20, i64 104
  store i64 -9223372036854775802, ptr %34, align 8, !tbaa !24
  %35 = load ptr, ptr @gBS, align 8, !tbaa !26
  %36 = getelementptr inbounds i8, ptr %35, i64 80
  %37 = load ptr, ptr %36, align 8, !tbaa !27
  %38 = tail call i64 %37(i32 noundef 512, i64 noundef 16, ptr noundef nonnull @UdpIoOnDgramSent, ptr noundef nonnull %20, ptr noundef nonnull %30) #4
  %39 = icmp slt i64 %38, 0
  br i1 %33, label %40, label %76

40:                                               ; preds = %22
  br i1 %39, label %41, label %42

41:                                               ; preds = %40
  tail call void @FreePool(ptr noundef nonnull %20) #4
  br label %100

42:                                               ; preds = %40
  %43 = getelementptr inbounds i8, ptr %20, i64 120
  %44 = getelementptr inbounds i8, ptr %20, i64 112
  store ptr %43, ptr %44, align 8, !tbaa !30
  %45 = getelementptr inbounds i8, ptr %20, i64 128
  %46 = getelementptr inbounds i8, ptr %1, i64 132
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %43, i8 0, i64 16, i1 false)
  %47 = load i32, ptr %46, align 4, !tbaa !31
  %48 = getelementptr inbounds i8, ptr %20, i64 136
  store i32 %47, ptr %48, align 8, !tbaa !32
  %49 = getelementptr inbounds i8, ptr %20, i64 144
  %50 = call i64 @NetbufBuildExt(ptr noundef nonnull %1, ptr noundef nonnull %49, ptr noundef nonnull %7) #4
  %51 = load i32, ptr %7, align 4, !tbaa !23
  %52 = getelementptr inbounds i8, ptr %20, i64 140
  store i32 %51, ptr %52, align 4, !tbaa !34
  %.not87 = icmp eq ptr %2, null
  br i1 %.not87, label %69, label %53

53:                                               ; preds = %42
  %54 = load i32, ptr %2, align 4, !tbaa !30
  %55 = call i32 @SwapBytes32(i32 noundef %54) #4
  store i32 %55, ptr %8, align 4, !tbaa !23
  %56 = getelementptr inbounds i8, ptr %20, i64 60
  %57 = call ptr @CopyMem(ptr noundef nonnull %56, ptr noundef nonnull %8, i64 noundef 4) #4
  %58 = getelementptr inbounds i8, ptr %2, i64 20
  %59 = load i32, ptr %58, align 4, !tbaa !30
  %60 = call i32 @SwapBytes32(i32 noundef %59) #4
  store i32 %60, ptr %8, align 4, !tbaa !23
  %61 = getelementptr inbounds i8, ptr %20, i64 66
  %62 = call ptr @CopyMem(ptr noundef nonnull %61, ptr noundef nonnull %8, i64 noundef 4) #4
  %63 = getelementptr inbounds i8, ptr %2, i64 16
  %64 = load i16, ptr %63, align 4, !tbaa !35
  %65 = getelementptr inbounds i8, ptr %20, i64 64
  store i16 %64, ptr %65, align 4, !tbaa !30
  %66 = getelementptr inbounds i8, ptr %2, i64 36
  %67 = load i16, ptr %66, align 4, !tbaa !38
  %68 = getelementptr inbounds i8, ptr %20, i64 70
  store i16 %67, ptr %68, align 2, !tbaa !30
  store ptr %56, ptr %43, align 8, !tbaa !39
  br label %69

69:                                               ; preds = %53, %42
  %.not88 = icmp eq ptr %3, null
  br i1 %.not88, label %100, label %70

70:                                               ; preds = %69
  %71 = load i32, ptr %3, align 4, !tbaa !30
  %.not89 = icmp eq i32 %71, 0
  br i1 %.not89, label %100, label %72

72:                                               ; preds = %70
  %73 = call i32 @SwapBytes32(i32 noundef %71) #4
  store i32 %73, ptr %8, align 4, !tbaa !23
  %74 = getelementptr inbounds i8, ptr %20, i64 56
  %75 = call ptr @CopyMem(ptr noundef nonnull %74, ptr noundef nonnull %8, i64 noundef 4) #4
  store ptr %74, ptr %45, align 8, !tbaa !40
  br label %100

76:                                               ; preds = %22
  br i1 %39, label %77, label %78

77:                                               ; preds = %76
  tail call void @FreePool(ptr noundef nonnull %20) #4
  br label %100

78:                                               ; preds = %76
  %79 = getelementptr inbounds i8, ptr %20, i64 120
  %80 = getelementptr inbounds i8, ptr %20, i64 112
  store ptr %79, ptr %80, align 8, !tbaa !30
  store ptr null, ptr %79, align 8, !tbaa !41
  %81 = getelementptr inbounds i8, ptr %1, i64 132
  %82 = load i32, ptr %81, align 4, !tbaa !31
  %83 = getelementptr inbounds i8, ptr %20, i64 128
  store i32 %82, ptr %83, align 8, !tbaa !43
  %84 = getelementptr inbounds i8, ptr %20, i64 136
  %85 = call i64 @NetbufBuildExt(ptr noundef nonnull %1, ptr noundef nonnull %84, ptr noundef nonnull %7) #4
  %86 = load i32, ptr %7, align 4, !tbaa !23
  %87 = getelementptr inbounds i8, ptr %20, i64 132
  store i32 %86, ptr %87, align 4, !tbaa !44
  %.not86 = icmp eq ptr %2, null
  br i1 %.not86, label %100, label %88

88:                                               ; preds = %78
  %89 = getelementptr inbounds i8, ptr %20, i64 60
  %90 = call ptr @CopyMem(ptr noundef nonnull %89, ptr noundef nonnull %2, i64 noundef 16) #4
  %91 = getelementptr inbounds i8, ptr %20, i64 78
  %92 = getelementptr inbounds i8, ptr %2, i64 20
  %93 = call ptr @CopyMem(ptr noundef nonnull %91, ptr noundef nonnull %92, i64 noundef 16) #4
  %94 = getelementptr inbounds i8, ptr %2, i64 16
  %95 = load i16, ptr %94, align 4, !tbaa !35
  %96 = getelementptr inbounds i8, ptr %20, i64 76
  store i16 %95, ptr %96, align 4, !tbaa !30
  %97 = getelementptr inbounds i8, ptr %2, i64 36
  %98 = load i16, ptr %97, align 4, !tbaa !38
  %99 = getelementptr inbounds i8, ptr %20, i64 94
  store i16 %98, ptr %99, align 2, !tbaa !30
  store ptr %89, ptr %79, align 8, !tbaa !41
  br label %100

100:                                              ; preds = %72, %70, %69, %88, %78, %19, %77, %41
  %.080 = phi ptr [ null, %41 ], [ null, %77 ], [ null, %19 ], [ %20, %78 ], [ %20, %88 ], [ %20, %69 ], [ %20, %70 ], [ %20, %72 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #4
  ret ptr %.080
}

declare ptr @InitializeListHead(ptr noundef) local_unnamed_addr #0

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

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 = { mustprogress 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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, !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 = !{!16, !7, i64 128}
!16 = !{!"", !7, i64 0, !12, i64 8, !10, i64 16, !8, i64 32, !11, i64 40, !11, i64 48, !8, i64 56, !11, i64 120, !7, i64 128, !7, i64 132, !8, i64 136}
!17 = !{!18, !7, i64 0}
!18 = !{!"", !7, i64 0, !10, i64 8, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !14, i64 56, !8, i64 60, !8, i64 96, !8, i64 120}
!19 = !{!18, !11, i64 24}
!20 = !{!18, !11, i64 32}
!21 = !{!18, !11, i64 40}
!22 = !{!18, !11, i64 48}
!23 = !{!7, !7, i64 0}
!24 = !{!25, !12, i64 8}
!25 = !{!"", !11, i64 0, !12, i64 8, !8, i64 16}
!26 = !{!11, !11, i64 0}
!27 = !{!28, !11, i64 80}
!28 = !{!"", !29, 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}
!29 = !{!"", !12, i64 0, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20}
!30 = !{!8, !8, i64 0}
!31 = !{!16, !7, i64 132}
!32 = !{!33, !7, i64 16}
!33 = !{!"", !11, i64 0, !11, i64 8, !7, i64 16, !7, i64 20, !8, i64 24}
!34 = !{!33, !7, i64 20}
!35 = !{!36, !37, i64 16}
!36 = !{!"", !8, i64 0, !37, i64 16, !8, i64 20, !37, i64 36}
!37 = !{!"short", !8, i64 0}
!38 = !{!36, !37, i64 36}
!39 = !{!33, !11, i64 0}
!40 = !{!33, !11, i64 8}
!41 = !{!42, !11, i64 0}
!42 = !{!"", !11, i64 0, !7, i64 8, !7, i64 12, !8, i64 16}
!43 = !{!42, !7, i64 8}
!44 = !{!42, !7, i64 12}


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