; LLVM IR from thalium/icebox :: third_party/virtualbox/src/VBox/Devices/EFI/Firmware/NetworkPkg/Dhcp6Dxe (Dhcp6EnqueueRetry)

; 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._DHCP6_INSTANCE = type { i32, ptr, ptr, %struct._LIST_ENTRY, %struct._EFI_DHCP6_PROTOCOL, ptr, ptr, ptr, %struct._DHCP6_IA_CB, %struct._LIST_ENTRY, %struct._LIST_ENTRY, ptr, i8, ptr, i64, i8, i8, i64 }
%struct._EFI_DHCP6_PROTOCOL = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct._DHCP6_IA_CB = type { ptr, i32, i32, i32, i32 }
%struct._LIST_ENTRY = type { ptr, ptr }
%struct._DHCP6_TX_CB = type { %struct._LIST_ENTRY, i32, ptr, %struct.EFI_DHCP6_RETRANSMISSION, i32, i32, i32, i32, ptr, i8 }
%struct.EFI_DHCP6_RETRANSMISSION = type { i32, i32, i32, i32 }
%struct.EFI_DHCP6_PACKET = type <{ i32, i32, %struct.anon }>
%struct.anon = type <{ %struct.EFI_DHCP6_HEADER, [1 x i8] }>
%struct.EFI_DHCP6_HEADER = type { i32 }

@.str = external hidden unnamed_addr constant [131 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [23 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i64 @Dhcp6EnqueueRetry(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
  %5 = alloca i64, align 8
  %6 = alloca ptr, align 8
  %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 i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  br label %13

13:                                               ; preds = %4
  %14 = call zeroext i8 @DebugAssertEnabled()
  %15 = icmp ne i8 %14, 0
  br i1 %15, label %16, label %21

16:                                               ; preds = %13
  %17 = load ptr, ptr %7, align 8, !tbaa !5
  %18 = icmp ne ptr %17, null
  br i1 %18, label %20, label %19

19:                                               ; preds = %16
  call void @DebugAssert(ptr noundef @.str, i64 noundef 45, ptr noundef @.str.1)
  br label %20

20:                                               ; preds = %19, %16
  br label %21

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

22:                                               ; preds = %21
  br label %23

23:                                               ; preds = %22
  %24 = load ptr, ptr %6, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct._DHCP6_INSTANCE, ptr %24, i32 0, i32 8
  store ptr %25, ptr %11, align 8, !tbaa !5
  %26 = call ptr @AllocateZeroPool(i64 noundef 80)
  store ptr %26, ptr %10, align 8, !tbaa !5
  %27 = load ptr, ptr %10, align 8, !tbaa !5
  %28 = icmp eq ptr %27, null
  br i1 %28, label %29, label %30

29:                                               ; preds = %23
  store i64 -9223372036854775799, ptr %5, align 8
  store i32 1, ptr %12, align 4
  br label %352

30:                                               ; preds = %23
  %31 = load ptr, ptr %7, align 8, !tbaa !5
  %32 = load ptr, ptr %10, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct._DHCP6_TX_CB, ptr %32, i32 0, i32 2
  store ptr %31, ptr %33, align 8, !tbaa !9
  %34 = load ptr, ptr %7, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.EFI_DHCP6_PACKET, ptr %34, i32 0, i32 2
  %36 = getelementptr inbounds %struct.anon, ptr %35, i32 0, i32 0
  %37 = load i32, ptr %36, align 1
  %38 = lshr i32 %37, 8
  %39 = load ptr, ptr %10, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct._DHCP6_TX_CB, ptr %39, i32 0, i32 1
  store i32 %38, ptr %40, align 8, !tbaa !14
  %41 = load ptr, ptr %8, align 8, !tbaa !5
  %42 = load ptr, ptr %10, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct._DHCP6_TX_CB, ptr %42, i32 0, i32 8
  store ptr %41, ptr %43, align 8, !tbaa !15
  %44 = load ptr, ptr %7, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.EFI_DHCP6_PACKET, ptr %44, i32 0, i32 2
  %46 = getelementptr inbounds %struct.anon, ptr %45, i32 0, i32 0
  %47 = load i32, ptr %46, align 1
  %48 = and i32 %47, 255
  switch i32 %48, label %345 [
    i32 1, label %49
    i32 3, label %130
    i32 4, label %150
    i32 5, label %170
    i32 6, label %197
    i32 9, label %224
    i32 8, label %244
    i32 11, label %264
  ]

49:                                               ; preds = %30
  %50 = load ptr, ptr %9, align 8, !tbaa !5
  %51 = icmp eq ptr %50, null
  br i1 %51, label %52, label %65

52:                                               ; preds = %49
  %53 = load ptr, ptr %10, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct._DHCP6_TX_CB, ptr %53, i32 0, i32 3
  %55 = getelementptr inbounds %struct.EFI_DHCP6_RETRANSMISSION, ptr %54, i32 0, i32 0
  store i32 1, ptr %55, align 8, !tbaa !16
  %56 = load ptr, ptr %10, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct._DHCP6_TX_CB, ptr %56, i32 0, i32 3
  %58 = getelementptr inbounds %struct.EFI_DHCP6_RETRANSMISSION, ptr %57, i32 0, i32 1
  store i32 0, ptr %58, align 4, !tbaa !17
  %59 = load ptr, ptr %10, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct._DHCP6_TX_CB, ptr %59, i32 0, i32 3
  %61 = getelementptr inbounds %struct.EFI_DHCP6_RETRANSMISSION, ptr %60, i32 0, i32 2
  store i32 120, ptr %61, align 8, !tbaa !18
  %62 = load ptr, ptr %10, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct._DHCP6_TX_CB, ptr %62, i32 0, i32 3
  %64 = getelementptr inbounds %struct.EFI_DHCP6_RETRANSMISSION, ptr %63, i32 0, i32 3
  store i32 0, ptr %64, align 4, !tbaa !19
  br label %122

65:                                               ; preds = %49
  %66 = load ptr, ptr %9, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.EFI_DHCP6_RETRANSMISSION, ptr %66, i32 0, i32 0
  %68 = load i32, ptr %67, align 4, !tbaa !20
  %69 = icmp ne i32 %68, 0
  br i1 %69, label %70, label %74

70:                                               ; preds = %65
  %71 = load ptr, ptr %9, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.EFI_DHCP6_RETRANSMISSION, ptr %71, i32 0, i32 0
  %73 = load i32, ptr %72, align 4, !tbaa !20
  br label %75

74:                                               ; preds = %65
  br label %75

75:                                               ; preds = %74, %70
  %76 = phi i32 [ %73, %70 ], [ 1, %74 ]
  %77 = load ptr, ptr %10, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct._DHCP6_TX_CB, ptr %77, i32 0, i32 3
  %79 = getelementptr inbounds %struct.EFI_DHCP6_RETRANSMISSION, ptr %78, i32 0, i32 0
  store i32 %76, ptr %79, align 8, !tbaa !16
  %80 = load ptr, ptr %9, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.EFI_DHCP6_RETRANSMISSION, ptr %80, i32 0, i32 1
  %82 = load i32, ptr %81, align 4, !tbaa !21
  %83 = icmp ne i32 %82, 0
  br i1 %83, label %84, label %88

84:                                               ; preds = %75
  %85 = load ptr, ptr %9, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.EFI_DHCP6_RETRANSMISSION, ptr %85, i32 0, i32 1
  %87 = load i32, ptr %86, align 4, !tbaa !21
  br label %89

88:                                               ; preds = %75
  br label %89

89:                                               ; preds = %88, %84
  %90 = phi i32 [ %87, %84 ], [ 0, %88 ]
  %91 = load ptr, ptr %10, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct._DHCP6_TX_CB, ptr %91, i32 0, i32 3
  %93 = getelementptr inbounds %struct.EFI_DHCP6_RETRANSMISSION, ptr %92, i32 0, i32 1
  store i32 %90, ptr %93, align 4, !tbaa !17
  %94 = load ptr, ptr %9, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.EFI_DHCP6_RETRANSMISSION, ptr %94, i32 0, i32 2
  %96 = load i32, ptr %95, align 4, !tbaa !22
  %97 = icmp ne i32 %96, 0
  br i1 %97, label %98, label %102

98:                                               ; preds = %89
  %99 = load ptr, ptr %9, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.EFI_DHCP6_RETRANSMISSION, ptr %99, i32 0, i32 2
  %101 = load i32, ptr %100, align 4, !tbaa !22
  br label %103

102:                                              ; preds = %89
  br label %103

103:                                              ; preds = %102, %98
  %104 = phi i32 [ %101, %98 ], [ 120, %102 ]
  %105 = load ptr, ptr %10, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct._DHCP6_TX_CB, ptr %105, i32 0, i32 3
  %107 = getelementptr inbounds %struct.EFI_DHCP6_RETRANSMISSION, ptr %106, i32 0, i32 2
  store i32 %104, ptr %107, align 8, !tbaa !18
  %108 = load ptr, ptr %9, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.EFI_DHCP6_RETRANSMISSION, ptr %108, i32 0, i32 3
  %110 = load i32, ptr %109, align 4, !tbaa !23
  %111 = icmp ne i32 %110, 0
  br i1 %111, label %112, label %116

112:                                              ; preds = %103
  %113 = load ptr, ptr %9, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.EFI_DHCP6_RETRANSMISSION, ptr %113, i32 0, i32 3
  %115 = load i32, ptr %114, align 4, !tbaa !23
  br label %117

116:                                              ; preds = %103
  br label %117

117:                                              ; preds = %116, %112
  %118 = phi i32 [ %115, %112 ], [ 0, %116 ]
  %119 = load ptr, ptr %10, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct._DHCP6_TX_CB, ptr %119, i32 0, i32 3
  %121 = getelementptr inbounds %struct.EFI_DHCP6_RETRANSMISSION, ptr %120, i32 0, i32 3
  store i32 %118, ptr %121, align 4, !tbaa !19
  br label %122

122:                                              ; preds = %117, %52
  %123 = load ptr, ptr %10, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct._DHCP6_TX_CB, ptr %123, i32 0, i32 3
  %125 = getelementptr inbounds %struct.EFI_DHCP6_RETRANSMISSION, ptr %124, i32 0, i32 0
  %126 = load i32, ptr %125, align 8, !tbaa !16
  %127 = call i32 @Dhcp6CalculateExpireTime(i32 noundef %126, i8 noundef zeroext 1, i8 noundef zeroext 0)
  %128 = load ptr, ptr %10, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct._DHCP6_TX_CB, ptr %128, i32 0, i32 5
  store i32 %127, ptr %129, align 4, !tbaa !24
  br label %346

130:                                              ; preds = %30
  %131 = load ptr, ptr %10, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct._DHCP6_TX_CB, ptr %131, i32 0, i32 3
  %133 = getelementptr inbounds %struct.EFI_DHCP6_RETRANSMISSION, ptr %132, i32 0, i32 0
  store i32 1, ptr %133, align 8, !tbaa !16
  %134 = load ptr, ptr %10, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct._DHCP6_TX_CB, ptr %134, i32 0, i32 3
  %136 = getelementptr inbounds %struct.EFI_DHCP6_RETRANSMISSION, ptr %135, i32 0, i32 1
  store i32 10, ptr %136, align 4, !tbaa !17
  %137 = load ptr, ptr %10, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct._DHCP6_TX_CB, ptr %137, i32 0, i32 3
  %139 = getelementptr inbounds %struct.EFI_DHCP6_RETRANSMISSION, ptr %138, i32 0, i32 2
  store i32 30, ptr %139, align 8, !tbaa !18
  %140 = load ptr, ptr %10, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct._DHCP6_TX_CB, ptr %140, i32 0, i32 3
  %142 = getelementptr inbounds %struct.EFI_DHCP6_RETRANSMISSION, ptr %141, i32 0, i32 3
  store i32 0, ptr %142, align 4, !tbaa !19
  %143 = load ptr, ptr %10, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct._DHCP6_TX_CB, ptr %143, i32 0, i32 3
  %145 = getelementptr inbounds %struct.EFI_DHCP6_RETRANSMISSION, ptr %144, i32 0, i32 0
  %146 = load i32, ptr %145, align 8, !tbaa !16
  %147 = call i32 @Dhcp6CalculateExpireTime(i32 noundef %146, i8 noundef zeroext 1, i8 noundef zeroext 1)
  %148 = load ptr, ptr %10, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct._DHCP6_TX_CB, ptr %148, i32 0, i32 5
  store i32 %147, ptr %149, align 4, !tbaa !24
  br label %346

150:                                              ; preds = %30
  %151 = load ptr, ptr %10, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct._DHCP6_TX_CB, ptr %151, i32 0, i32 3
  %153 = getelementptr inbounds %struct.EFI_DHCP6_RETRANSMISSION, ptr %152, i32 0, i32 0
  store i32 1, ptr %153, align 8, !tbaa !16
  %154 = load ptr, ptr %10, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct._DHCP6_TX_CB, ptr %154, i32 0, i32 3
  %156 = getelementptr inbounds %struct.EFI_DHCP6_RETRANSMISSION, ptr %155, i32 0, i32 1
  store i32 0, ptr %156, align 4, !tbaa !17
  %157 = load ptr, ptr %10, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct._DHCP6_TX_CB, ptr %157, i32 0, i32 3
  %159 = getelementptr inbounds %struct.EFI_DHCP6_RETRANSMISSION, ptr %158, i32 0, i32 2
  store i32 4, ptr %159, align 8, !tbaa !18
  %160 = load ptr, ptr %10, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct._DHCP6_TX_CB, ptr %160, i32 0, i32 3
  %162 = getelementptr inbounds %struct.EFI_DHCP6_RETRANSMISSION, ptr %161, i32 0, i32 3
  store i32 10, ptr %162, align 4, !tbaa !19
  %163 = load ptr, ptr %10, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct._DHCP6_TX_CB, ptr %163, i32 0, i32 3
  %165 = getelementptr inbounds %struct.EFI_DHCP6_RETRANSMISSION, ptr %164, i32 0, i32 0
  %166 = load i32, ptr %165, align 8, !tbaa !16
  %167 = call i32 @Dhcp6CalculateExpireTime(i32 noundef %166, i8 noundef zeroext 1, i8 noundef zeroext 1)
  %168 = load ptr, ptr %10, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct._DHCP6_TX_CB, ptr %168, i32 0, i32 5
  store i32 %167, ptr %169, align 4, !tbaa !24
  br label %346

170:                                              ; preds = %30
  %171 = load ptr, ptr %10, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct._DHCP6_TX_CB, ptr %171, i32 0, i32 3
  %173 = getelementptr inbounds %struct.EFI_DHCP6_RETRANSMISSION, ptr %172, i32 0, i32 0
  store i32 10, ptr %173, align 8, !tbaa !16
  %174 = load ptr, ptr %10, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct._DHCP6_TX_CB, ptr %174, i32 0, i32 3
  %176 = getelementptr inbounds %struct.EFI_DHCP6_RETRANSMISSION, ptr %175, i32 0, i32 1
  store i32 0, ptr %176, align 4, !tbaa !17
  %177 = load ptr, ptr %10, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct._DHCP6_TX_CB, ptr %177, i32 0, i32 3
  %179 = getelementptr inbounds %struct.EFI_DHCP6_RETRANSMISSION, ptr %178, i32 0, i32 2
  store i32 600, ptr %179, align 8, !tbaa !18
  %180 = load ptr, ptr %11, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct._DHCP6_IA_CB, ptr %180, i32 0, i32 2
  %182 = load i32, ptr %181, align 4, !tbaa !25
  %183 = load ptr, ptr %11, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct._DHCP6_IA_CB, ptr %183, i32 0, i32 1
  %185 = load i32, ptr %184, align 8, !tbaa !27
  %186 = sub i32 %182, %185
  %187 = load ptr, ptr %10, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct._DHCP6_TX_CB, ptr %187, i32 0, i32 3
  %189 = getelementptr inbounds %struct.EFI_DHCP6_RETRANSMISSION, ptr %188, i32 0, i32 3
  store i32 %186, ptr %189, align 4, !tbaa !19
  %190 = load ptr, ptr %10, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct._DHCP6_TX_CB, ptr %190, i32 0, i32 3
  %192 = getelementptr inbounds %struct.EFI_DHCP6_RETRANSMISSION, ptr %191, i32 0, i32 0
  %193 = load i32, ptr %192, align 8, !tbaa !16
  %194 = call i32 @Dhcp6CalculateExpireTime(i32 noundef %193, i8 noundef zeroext 1, i8 noundef zeroext 1)
  %195 = load ptr, ptr %10, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct._DHCP6_TX_CB, ptr %195, i32 0, i32 5
  store i32 %194, ptr %196, align 4, !tbaa !24
  br label %346

197:                                              ; preds = %30
  %198 = load ptr, ptr %10, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct._DHCP6_TX_CB, ptr %198, i32 0, i32 3
  %200 = getelementptr inbounds %struct.EFI_DHCP6_RETRANSMISSION, ptr %199, i32 0, i32 0
  store i32 10, ptr %200, align 8, !tbaa !16
  %201 = load ptr, ptr %10, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct._DHCP6_TX_CB, ptr %201, i32 0, i32 3
  %203 = getelementptr inbounds %struct.EFI_DHCP6_RETRANSMISSION, ptr %202, i32 0, i32 1
  store i32 0, ptr %203, align 4, !tbaa !17
  %204 = load ptr, ptr %10, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct._DHCP6_TX_CB, ptr %204, i32 0, i32 3
  %206 = getelementptr inbounds %struct.EFI_DHCP6_RETRANSMISSION, ptr %205, i32 0, i32 2
  store i32 600, ptr %206, align 8, !tbaa !18
  %207 = load ptr, ptr %11, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct._DHCP6_IA_CB, ptr %207, i32 0, i32 3
  %209 = load i32, ptr %208, align 8, !tbaa !28
  %210 = load ptr, ptr %11, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct._DHCP6_IA_CB, ptr %210, i32 0, i32 2
  %212 = load i32, ptr %211, align 4, !tbaa !25
  %213 = sub i32 %209, %212
  %214 = load ptr, ptr %10, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct._DHCP6_TX_CB, ptr %214, i32 0, i32 3
  %216 = getelementptr inbounds %struct.EFI_DHCP6_RETRANSMISSION, ptr %215, i32 0, i32 3
  store i32 %213, ptr %216, align 4, !tbaa !19
  %217 = load ptr, ptr %10, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct._DHCP6_TX_CB, ptr %217, i32 0, i32 3
  %219 = getelementptr inbounds %struct.EFI_DHCP6_RETRANSMISSION, ptr %218, i32 0, i32 0
  %220 = load i32, ptr %219, align 8, !tbaa !16
  %221 = call i32 @Dhcp6CalculateExpireTime(i32 noundef %220, i8 noundef zeroext 1, i8 noundef zeroext 1)
  %222 = load ptr, ptr %10, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct._DHCP6_TX_CB, ptr %222, i32 0, i32 5
  store i32 %221, ptr %223, align 4, !tbaa !24
  br label %346

224:                                              ; preds = %30
  %225 = load ptr, ptr %10, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct._DHCP6_TX_CB, ptr %225, i32 0, i32 3
  %227 = getelementptr inbounds %struct.EFI_DHCP6_RETRANSMISSION, ptr %226, i32 0, i32 0
  store i32 1, ptr %227, align 8, !tbaa !16
  %228 = load ptr, ptr %10, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct._DHCP6_TX_CB, ptr %228, i32 0, i32 3
  %230 = getelementptr inbounds %struct.EFI_DHCP6_RETRANSMISSION, ptr %229, i32 0, i32 1
  store i32 5, ptr %230, align 4, !tbaa !17
  %231 = load ptr, ptr %10, align 8, !tbaa !5
  %232 = getelementptr inbounds %struct._DHCP6_TX_CB, ptr %231, i32 0, i32 3
  %233 = getelementptr inbounds %struct.EFI_DHCP6_RETRANSMISSION, ptr %232, i32 0, i32 2
  store i32 0, ptr %233, align 8, !tbaa !18
  %234 = load ptr, ptr %10, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct._DHCP6_TX_CB, ptr %234, i32 0, i32 3
  %236 = getelementptr inbounds %struct.EFI_DHCP6_RETRANSMISSION, ptr %235, i32 0, i32 3
  store i32 0, ptr %236, align 4, !tbaa !19
  %237 = load ptr, ptr %10, align 8, !tbaa !5
  %238 = getelementptr inbounds %struct._DHCP6_TX_CB, ptr %237, i32 0, i32 3
  %239 = getelementptr inbounds %struct.EFI_DHCP6_RETRANSMISSION, ptr %238, i32 0, i32 0
  %240 = load i32, ptr %239, align 8, !tbaa !16
  %241 = call i32 @Dhcp6CalculateExpireTime(i32 noundef %240, i8 noundef zeroext 1, i8 noundef zeroext 1)
  %242 = load ptr, ptr %10, align 8, !tbaa !5
  %243 = getelementptr inbounds %struct._DHCP6_TX_CB, ptr %242, i32 0, i32 5
  store i32 %241, ptr %243, align 4, !tbaa !24
  br label %346

244:                                              ; preds = %30
  %245 = load ptr, ptr %10, align 8, !tbaa !5
  %246 = getelementptr inbounds %struct._DHCP6_TX_CB, ptr %245, i32 0, i32 3
  %247 = getelementptr inbounds %struct.EFI_DHCP6_RETRANSMISSION, ptr %246, i32 0, i32 0
  store i32 1, ptr %247, align 8, !tbaa !16
  %248 = load ptr, ptr %10, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct._DHCP6_TX_CB, ptr %248, i32 0, i32 3
  %250 = getelementptr inbounds %struct.EFI_DHCP6_RETRANSMISSION, ptr %249, i32 0, i32 1
  store i32 5, ptr %250, align 4, !tbaa !17
  %251 = load ptr, ptr %10, align 8, !tbaa !5
  %252 = getelementptr inbounds %struct._DHCP6_TX_CB, ptr %251, i32 0, i32 3
  %253 = getelementptr inbounds %struct.EFI_DHCP6_RETRANSMISSION, ptr %252, i32 0, i32 2
  store i32 0, ptr %253, align 8, !tbaa !18
  %254 = load ptr, ptr %10, align 8, !tbaa !5
  %255 = getelementptr inbounds %struct._DHCP6_TX_CB, ptr %254, i32 0, i32 3
  %256 = getelementptr inbounds %struct.EFI_DHCP6_RETRANSMISSION, ptr %255, i32 0, i32 3
  store i32 0, ptr %256, align 4, !tbaa !19
  %257 = load ptr, ptr %10, align 8, !tbaa !5
  %258 = getelementptr inbounds %struct._DHCP6_TX_CB, ptr %257, i32 0, i32 3
  %259 = getelementptr inbounds %struct.EFI_DHCP6_RETRANSMISSION, ptr %258, i32 0, i32 0
  %260 = load i32, ptr %259, align 8, !tbaa !16
  %261 = call i32 @Dhcp6CalculateExpireTime(i32 noundef %260, i8 noundef zeroext 1, i8 noundef zeroext 1)
  %262 = load ptr, ptr %10, align 8, !tbaa !5
  %263 = getelementptr inbounds %struct._DHCP6_TX_CB, ptr %262, i32 0, i32 5
  store i32 %261, ptr %263, align 4, !tbaa !24
  br label %346

264:                                              ; preds = %30
  %265 = load ptr, ptr %9, align 8, !tbaa !5
  %266 = icmp eq ptr %265, null
  br i1 %266, label %267, label %280

267:                                              ; preds = %264
  %268 = load ptr, ptr %10, align 8, !tbaa !5
  %269 = getelementptr inbounds %struct._DHCP6_TX_CB, ptr %268, i32 0, i32 3
  %270 = getelementptr inbounds %struct.EFI_DHCP6_RETRANSMISSION, ptr %269, i32 0, i32 0
  store i32 1, ptr %270, align 8, !tbaa !16
  %271 = load ptr, ptr %10, align 8, !tbaa !5
  %272 = getelementptr inbounds %struct._DHCP6_TX_CB, ptr %271, i32 0, i32 3
  %273 = getelementptr inbounds %struct.EFI_DHCP6_RETRANSMISSION, ptr %272, i32 0, i32 1
  store i32 0, ptr %273, align 4, !tbaa !17
  %274 = load ptr, ptr %10, align 8, !tbaa !5
  %275 = getelementptr inbounds %struct._DHCP6_TX_CB, ptr %274, i32 0, i32 3
  %276 = getelementptr inbounds %struct.EFI_DHCP6_RETRANSMISSION, ptr %275, i32 0, i32 2
  store i32 120, ptr %276, align 8, !tbaa !18
  %277 = load ptr, ptr %10, align 8, !tbaa !5
  %278 = getelementptr inbounds %struct._DHCP6_TX_CB, ptr %277, i32 0, i32 3
  %279 = getelementptr inbounds %struct.EFI_DHCP6_RETRANSMISSION, ptr %278, i32 0, i32 3
  store i32 0, ptr %279, align 4, !tbaa !19
  br label %337

280:                                              ; preds = %264
  %281 = load ptr, ptr %9, align 8, !tbaa !5
  %282 = getelementptr inbounds %struct.EFI_DHCP6_RETRANSMISSION, ptr %281, i32 0, i32 0
  %283 = load i32, ptr %282, align 4, !tbaa !20
  %284 = icmp ne i32 %283, 0
  br i1 %284, label %285, label %289

285:                                              ; preds = %280
  %286 = load ptr, ptr %9, align 8, !tbaa !5
  %287 = getelementptr inbounds %struct.EFI_DHCP6_RETRANSMISSION, ptr %286, i32 0, i32 0
  %288 = load i32, ptr %287, align 4, !tbaa !20
  br label %290

289:                                              ; preds = %280
  br label %290

290:                                              ; preds = %289, %285
  %291 = phi i32 [ %288, %285 ], [ 1, %289 ]
  %292 = load ptr, ptr %10, align 8, !tbaa !5
  %293 = getelementptr inbounds %struct._DHCP6_TX_CB, ptr %292, i32 0, i32 3
  %294 = getelementptr inbounds %struct.EFI_DHCP6_RETRANSMISSION, ptr %293, i32 0, i32 0
  store i32 %291, ptr %294, align 8, !tbaa !16
  %295 = load ptr, ptr %9, align 8, !tbaa !5
  %296 = getelementptr inbounds %struct.EFI_DHCP6_RETRANSMISSION, ptr %295, i32 0, i32 1
  %297 = load i32, ptr %296, align 4, !tbaa !21
  %298 = icmp ne i32 %297, 0
  br i1 %298, label %299, label %303

299:                                              ; preds = %290
  %300 = load ptr, ptr %9, align 8, !tbaa !5
  %301 = getelementptr inbounds %struct.EFI_DHCP6_RETRANSMISSION, ptr %300, i32 0, i32 1
  %302 = load i32, ptr %301, align 4, !tbaa !21
  br label %304

303:                                              ; preds = %290
  br label %304

304:                                              ; preds = %303, %299
  %305 = phi i32 [ %302, %299 ], [ 0, %303 ]
  %306 = load ptr, ptr %10, align 8, !tbaa !5
  %307 = getelementptr inbounds %struct._DHCP6_TX_CB, ptr %306, i32 0, i32 3
  %308 = getelementptr inbounds %struct.EFI_DHCP6_RETRANSMISSION, ptr %307, i32 0, i32 1
  store i32 %305, ptr %308, align 4, !tbaa !17
  %309 = load ptr, ptr %9, align 8, !tbaa !5
  %310 = getelementptr inbounds %struct.EFI_DHCP6_RETRANSMISSION, ptr %309, i32 0, i32 2
  %311 = load i32, ptr %310, align 4, !tbaa !22
  %312 = icmp ne i32 %311, 0
  br i1 %312, label %313, label %317

313:                                              ; preds = %304
  %314 = load ptr, ptr %9, align 8, !tbaa !5
  %315 = getelementptr inbounds %struct.EFI_DHCP6_RETRANSMISSION, ptr %314, i32 0, i32 2
  %316 = load i32, ptr %315, align 4, !tbaa !22
  br label %318

317:                                              ; preds = %304
  br label %318

318:                                              ; preds = %317, %313
  %319 = phi i32 [ %316, %313 ], [ 120, %317 ]
  %320 = load ptr, ptr %10, align 8, !tbaa !5
  %321 = getelementptr inbounds %struct._DHCP6_TX_CB, ptr %320, i32 0, i32 3
  %322 = getelementptr inbounds %struct.EFI_DHCP6_RETRANSMISSION, ptr %321, i32 0, i32 2
  store i32 %319, ptr %322, align 8, !tbaa !18
  %323 = load ptr, ptr %9, align 8, !tbaa !5
  %324 = getelementptr inbounds %struct.EFI_DHCP6_RETRANSMISSION, ptr %323, i32 0, i32 3
  %325 = load i32, ptr %324, align 4, !tbaa !23
  %326 = icmp ne i32 %325, 0
  br i1 %326, label %327, label %331

327:                                              ; preds = %318
  %328 = load ptr, ptr %9, align 8, !tbaa !5
  %329 = getelementptr inbounds %struct.EFI_DHCP6_RETRANSMISSION, ptr %328, i32 0, i32 3
  %330 = load i32, ptr %329, align 4, !tbaa !23
  br label %332

331:                                              ; preds = %318
  br label %332

332:                                              ; preds = %331, %327
  %333 = phi i32 [ %330, %327 ], [ 0, %331 ]
  %334 = load ptr, ptr %10, align 8, !tbaa !5
  %335 = getelementptr inbounds %struct._DHCP6_TX_CB, ptr %334, i32 0, i32 3
  %336 = getelementptr inbounds %struct.EFI_DHCP6_RETRANSMISSION, ptr %335, i32 0, i32 3
  store i32 %333, ptr %336, align 4, !tbaa !19
  br label %337

337:                                              ; preds = %332, %267
  %338 = load ptr, ptr %10, align 8, !tbaa !5
  %339 = getelementptr inbounds %struct._DHCP6_TX_CB, ptr %338, i32 0, i32 3
  %340 = getelementptr inbounds %struct.EFI_DHCP6_RETRANSMISSION, ptr %339, i32 0, i32 0
  %341 = load i32, ptr %340, align 8, !tbaa !16
  %342 = call i32 @Dhcp6CalculateExpireTime(i32 noundef %341, i8 noundef zeroext 1, i8 noundef zeroext 1)
  %343 = load ptr, ptr %10, align 8, !tbaa !5
  %344 = getelementptr inbounds %struct._DHCP6_TX_CB, ptr %343, i32 0, i32 5
  store i32 %342, ptr %344, align 4, !tbaa !24
  br label %346

345:                                              ; preds = %30
  store i64 -9223372036854775801, ptr %5, align 8
  store i32 1, ptr %12, align 4
  br label %352

346:                                              ; preds = %337, %244, %224, %197, %170, %150, %130, %122
  %347 = load ptr, ptr %6, align 8, !tbaa !5
  %348 = getelementptr inbounds %struct._DHCP6_INSTANCE, ptr %347, i32 0, i32 9
  %349 = load ptr, ptr %10, align 8, !tbaa !5
  %350 = getelementptr inbounds %struct._DHCP6_TX_CB, ptr %349, i32 0, i32 0
  %351 = call ptr @InsertTailList(ptr noundef %348, ptr noundef %350)
  store i64 0, ptr %5, align 8
  store i32 1, ptr %12, align 4
  br label %352

352:                                              ; preds = %346, %345, %29
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  %353 = load i64, ptr %5, align 8
  ret i64 %353
}

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

declare zeroext i8 @DebugAssertEnabled() #2

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

declare ptr @AllocateZeroPool(i64 noundef) #2

declare i32 @Dhcp6CalculateExpireTime(i32 noundef, i8 noundef zeroext, i8 noundef zeroext) #2

declare ptr @InsertTailList(ptr noundef, ptr noundef) #2

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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 = { 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, !6, i64 24}
!10 = !{!"_DHCP6_TX_CB", !11, i64 0, !12, i64 16, !6, i64 24, !13, i64 32, !12, i64 48, !12, i64 52, !12, i64 56, !12, i64 60, !6, i64 64, !7, i64 72}
!11 = !{!"_LIST_ENTRY", !6, i64 0, !6, i64 8}
!12 = !{!"int", !7, i64 0}
!13 = !{!"", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12}
!14 = !{!10, !12, i64 16}
!15 = !{!10, !6, i64 64}
!16 = !{!10, !12, i64 32}
!17 = !{!10, !12, i64 36}
!18 = !{!10, !12, i64 40}
!19 = !{!10, !12, i64 44}
!20 = !{!13, !12, i64 0}
!21 = !{!13, !12, i64 4}
!22 = !{!13, !12, i64 8}
!23 = !{!13, !12, i64 12}
!24 = !{!10, !12, i64 52}
!25 = !{!26, !12, i64 12}
!26 = !{!"_DHCP6_IA_CB", !6, i64 0, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20}
!27 = !{!26, !12, i64 8}
!28 = !{!26, !12, i64 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"

@.str = external hidden unnamed_addr constant [131 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [23 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local range(i64 -9223372036854775801, 1) i64 @Dhcp6EnqueueRetry(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef readonly %3) local_unnamed_addr #0 {
  %5 = tail call zeroext i8 @DebugAssertEnabled() #3
  %6 = icmp eq i8 %5, 0
  %7 = icmp ne ptr %1, null
  %or.cond = or i1 %7, %6
  br i1 %or.cond, label %9, label %8

8:                                                ; preds = %4
  tail call void @DebugAssert(ptr noundef nonnull @.str, i64 noundef 45, ptr noundef nonnull @.str.1) #3
  br label %9

9:                                                ; preds = %8, %4
  %10 = tail call ptr @AllocateZeroPool(i64 noundef 80) #3
  %11 = icmp eq ptr %10, null
  br i1 %11, label %92, label %12

12:                                               ; preds = %9
  %13 = getelementptr inbounds i8, ptr %10, i64 24
  store ptr %1, ptr %13, align 8, !tbaa !5
  %14 = getelementptr inbounds i8, ptr %1, i64 8
  %15 = load i32, ptr %14, align 1
  %16 = lshr i32 %15, 8
  %17 = getelementptr inbounds i8, ptr %10, i64 16
  store i32 %16, ptr %17, align 8, !tbaa !13
  %18 = getelementptr inbounds i8, ptr %10, i64 64
  store ptr %2, ptr %18, align 8, !tbaa !14
  %19 = load i32, ptr %14, align 1
  %trunc = trunc i32 %19 to i8
  switch i8 %trunc, label %92 [
    i8 1, label %20
    i8 3, label %37
    i8 4, label %40
    i8 5, label %43
    i8 6, label %54
    i8 9, label %65
    i8 8, label %68
    i8 11, label %71
  ]

20:                                               ; preds = %12
  %21 = icmp eq ptr %3, null
  br i1 %21, label %31, label %22

22:                                               ; preds = %20
  %23 = load i32, ptr %3, align 4, !tbaa !15
  %spec.select = tail call i32 @llvm.umax.i32(i32 %23, i32 1)
  %24 = getelementptr inbounds i8, ptr %3, i64 4
  %25 = load i32, ptr %24, align 4, !tbaa !16
  %26 = getelementptr inbounds i8, ptr %3, i64 8
  %27 = load i32, ptr %26, align 4, !tbaa !17
  %.not106 = icmp eq i32 %27, 0
  %28 = select i1 %.not106, i32 120, i32 %27
  %29 = getelementptr inbounds i8, ptr %3, i64 12
  %30 = load i32, ptr %29, align 4, !tbaa !18
  br label %31

31:                                               ; preds = %20, %22
  %spec.select.sink = phi i32 [ %spec.select, %22 ], [ 1, %20 ]
  %.sink110 = phi i32 [ %25, %22 ], [ 0, %20 ]
  %.sink109 = phi i32 [ %28, %22 ], [ 120, %20 ]
  %.sink = phi i32 [ %30, %22 ], [ 0, %20 ]
  %32 = getelementptr inbounds i8, ptr %10, i64 32
  store i32 %spec.select.sink, ptr %32, align 8
  %33 = getelementptr inbounds i8, ptr %10, i64 36
  store i32 %.sink110, ptr %33, align 4
  %34 = getelementptr inbounds i8, ptr %10, i64 40
  store i32 %.sink109, ptr %34, align 8
  %35 = getelementptr inbounds i8, ptr %10, i64 44
  store i32 %.sink, ptr %35, align 4
  %36 = tail call i32 @Dhcp6CalculateExpireTime(i32 noundef %spec.select.sink, i8 noundef zeroext 1, i8 noundef zeroext 0) #3
  br label %88

37:                                               ; preds = %12
  %38 = getelementptr inbounds i8, ptr %10, i64 32
  store <4 x i32> <i32 1, i32 10, i32 30, i32 0>, ptr %38, align 8, !tbaa !19
  %39 = tail call i32 @Dhcp6CalculateExpireTime(i32 noundef 1, i8 noundef zeroext 1, i8 noundef zeroext 1) #3
  br label %88

40:                                               ; preds = %12
  %41 = getelementptr inbounds i8, ptr %10, i64 32
  store <4 x i32> <i32 1, i32 0, i32 4, i32 10>, ptr %41, align 8, !tbaa !19
  %42 = tail call i32 @Dhcp6CalculateExpireTime(i32 noundef 1, i8 noundef zeroext 1, i8 noundef zeroext 1) #3
  br label %88

43:                                               ; preds = %12
  %44 = getelementptr inbounds i8, ptr %10, i64 32
  store i32 10, ptr %44, align 8, !tbaa !20
  %45 = getelementptr inbounds i8, ptr %10, i64 36
  store i32 0, ptr %45, align 4, !tbaa !21
  %46 = getelementptr inbounds i8, ptr %10, i64 40
  store i32 600, ptr %46, align 8, !tbaa !22
  %47 = getelementptr inbounds i8, ptr %0, i64 148
  %48 = load i32, ptr %47, align 4, !tbaa !23
  %49 = getelementptr inbounds i8, ptr %0, i64 144
  %50 = load i32, ptr %49, align 8, !tbaa !25
  %51 = sub i32 %48, %50
  %52 = getelementptr inbounds i8, ptr %10, i64 44
  store i32 %51, ptr %52, align 4, !tbaa !26
  %53 = tail call i32 @Dhcp6CalculateExpireTime(i32 noundef 10, i8 noundef zeroext 1, i8 noundef zeroext 1) #3
  br label %88

54:                                               ; preds = %12
  %55 = getelementptr inbounds i8, ptr %10, i64 32
  store i32 10, ptr %55, align 8, !tbaa !20
  %56 = getelementptr inbounds i8, ptr %10, i64 36
  store i32 0, ptr %56, align 4, !tbaa !21
  %57 = getelementptr inbounds i8, ptr %10, i64 40
  store i32 600, ptr %57, align 8, !tbaa !22
  %58 = getelementptr inbounds i8, ptr %0, i64 152
  %59 = load i32, ptr %58, align 8, !tbaa !27
  %60 = getelementptr inbounds i8, ptr %0, i64 148
  %61 = load i32, ptr %60, align 4, !tbaa !23
  %62 = sub i32 %59, %61
  %63 = getelementptr inbounds i8, ptr %10, i64 44
  store i32 %62, ptr %63, align 4, !tbaa !26
  %64 = tail call i32 @Dhcp6CalculateExpireTime(i32 noundef 10, i8 noundef zeroext 1, i8 noundef zeroext 1) #3
  br label %88

65:                                               ; preds = %12
  %66 = getelementptr inbounds i8, ptr %10, i64 32
  store <4 x i32> <i32 1, i32 5, i32 0, i32 0>, ptr %66, align 8, !tbaa !19
  %67 = tail call i32 @Dhcp6CalculateExpireTime(i32 noundef 1, i8 noundef zeroext 1, i8 noundef zeroext 1) #3
  br label %88

68:                                               ; preds = %12
  %69 = getelementptr inbounds i8, ptr %10, i64 32
  store <4 x i32> <i32 1, i32 5, i32 0, i32 0>, ptr %69, align 8, !tbaa !19
  %70 = tail call i32 @Dhcp6CalculateExpireTime(i32 noundef 1, i8 noundef zeroext 1, i8 noundef zeroext 1) #3
  br label %88

71:                                               ; preds = %12
  %72 = icmp eq ptr %3, null
  br i1 %72, label %82, label %73

73:                                               ; preds = %71
  %74 = load i32, ptr %3, align 4, !tbaa !15
  %spec.select108 = tail call i32 @llvm.umax.i32(i32 %74, i32 1)
  %75 = getelementptr inbounds i8, ptr %3, i64 4
  %76 = load i32, ptr %75, align 4, !tbaa !16
  %77 = getelementptr inbounds i8, ptr %3, i64 8
  %78 = load i32, ptr %77, align 4, !tbaa !17
  %.not102 = icmp eq i32 %78, 0
  %79 = select i1 %.not102, i32 120, i32 %78
  %80 = getelementptr inbounds i8, ptr %3, i64 12
  %81 = load i32, ptr %80, align 4, !tbaa !18
  br label %82

82:                                               ; preds = %71, %73
  %spec.select108.sink = phi i32 [ %spec.select108, %73 ], [ 1, %71 ]
  %.sink113 = phi i32 [ %76, %73 ], [ 0, %71 ]
  %.sink112 = phi i32 [ %79, %73 ], [ 120, %71 ]
  %.sink111 = phi i32 [ %81, %73 ], [ 0, %71 ]
  %83 = getelementptr inbounds i8, ptr %10, i64 32
  store i32 %spec.select108.sink, ptr %83, align 8
  %84 = getelementptr inbounds i8, ptr %10, i64 36
  store i32 %.sink113, ptr %84, align 4
  %85 = getelementptr inbounds i8, ptr %10, i64 40
  store i32 %.sink112, ptr %85, align 8
  %86 = getelementptr inbounds i8, ptr %10, i64 44
  store i32 %.sink111, ptr %86, align 4
  %87 = tail call i32 @Dhcp6CalculateExpireTime(i32 noundef %spec.select108.sink, i8 noundef zeroext 1, i8 noundef zeroext 1) #3
  br label %88

88:                                               ; preds = %82, %68, %65, %54, %43, %40, %37, %31
  %.sink114 = phi i32 [ %87, %82 ], [ %70, %68 ], [ %67, %65 ], [ %64, %54 ], [ %53, %43 ], [ %42, %40 ], [ %39, %37 ], [ %36, %31 ]
  %89 = getelementptr inbounds i8, ptr %10, i64 52
  store i32 %.sink114, ptr %89, align 4, !tbaa !28
  %90 = getelementptr inbounds i8, ptr %0, i64 160
  %91 = tail call ptr @InsertTailList(ptr noundef nonnull %90, ptr noundef nonnull %10) #3
  br label %92

92:                                               ; preds = %12, %9, %88
  %.0 = phi i64 [ 0, %88 ], [ -9223372036854775799, %9 ], [ -9223372036854775801, %12 ]
  ret i64 %.0
}

declare zeroext i8 @DebugAssertEnabled() local_unnamed_addr #1

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

declare ptr @AllocateZeroPool(i64 noundef) local_unnamed_addr #1

declare i32 @Dhcp6CalculateExpireTime(i32 noundef, i8 noundef zeroext, i8 noundef zeroext) local_unnamed_addr #1

declare ptr @InsertTailList(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umax.i32(i32, i32) #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 = { "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !8, i64 24}
!6 = !{!"_DHCP6_TX_CB", !7, i64 0, !11, i64 16, !8, i64 24, !12, i64 32, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !8, i64 64, !9, i64 72}
!7 = !{!"_LIST_ENTRY", !8, i64 0, !8, i64 8}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12}
!13 = !{!6, !11, i64 16}
!14 = !{!6, !8, i64 64}
!15 = !{!12, !11, i64 0}
!16 = !{!12, !11, i64 4}
!17 = !{!12, !11, i64 8}
!18 = !{!12, !11, i64 12}
!19 = !{!11, !11, i64 0}
!20 = !{!6, !11, i64 32}
!21 = !{!6, !11, i64 36}
!22 = !{!6, !11, i64 40}
!23 = !{!24, !11, i64 12}
!24 = !{!"_DHCP6_IA_CB", !8, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20}
!25 = !{!24, !11, i64 8}
!26 = !{!6, !11, i64 44}
!27 = !{!24, !11, i64 16}
!28 = !{!6, !11, i64 52}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,MergedLoadStoreMotionPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass