; LLVM IR from jingweizhanghuai/Morn :: src/wrap (morn_socket)

; 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.timeval = type { i64, i64 }
%struct.fd_set = type { [16 x i64] }
%struct.MHandle = type { i32, i32, ptr, ptr }
%struct.HandleUDPRead = type { i32, i32, i32, %struct.sockaddr_in, i32, [32 x i8], ptr, ptr, i32 }
%struct.sockaddr_in = type { i16, i16, %struct.in_addr, [8 x i8] }
%struct.in_addr = type { i32 }
%struct.MList = type { i32, ptr }

@.str.1 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [5 x i8], align 1
@__FUNCTION__.mUDPRead = external hidden unnamed_addr constant [9 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [10 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @IPAddress(ptr noundef, ptr noundef, 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

declare void @m_Exception(i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ...) #2

; Function Attrs: nounwind
declare i32 @sprintf(ptr noundef, ptr noundef, ...) #3

declare ptr @GetHandle(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #2

declare ptr @mMornObject(ptr noundef, i32 noundef) #2

; Function Attrs: nounwind
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #3

declare void @m_PropertyFunction(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

declare void @mornObjectRemove(ptr noundef, ptr noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i16 @__bswap_16(i16 noundef zeroext) #4

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

; Function Attrs: nounwind uwtable
define dso_local ptr @mUDPRead(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca [32 x i8], align 16
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca ptr, align 8
  %24 = alloca %struct.timeval, align 8
  %25 = alloca %struct.fd_set, align 8
  %26 = alloca i32, align 4
  %27 = alloca ptr, align 8
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca ptr, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  br label %33

33:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %34 = load ptr, ptr %7, align 8, !tbaa !5
  %35 = icmp eq ptr %34, null
  br i1 %35, label %39, label %36

36:                                               ; preds = %33
  %37 = load ptr, ptr %6, align 8, !tbaa !5
  %38 = icmp eq ptr %37, null
  br label %39

39:                                               ; preds = %36, %33
  %40 = phi i1 [ true, %33 ], [ %38, %36 ]
  %41 = zext i1 %40 to i32
  store i32 %41, ptr %9, align 4, !tbaa !9
  %42 = load i32, ptr %9, align 4, !tbaa !9
  %43 = icmp ne i32 %42, 0
  br i1 %43, label %44, label %46

44:                                               ; preds = %39
  %45 = load i32, ptr %9, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %45, i32 noundef -1, ptr noundef @.str.2, i32 noundef 126, ptr noundef @__FUNCTION__.mUDPRead, ptr noundef @.str.3)
  br label %46

46:                                               ; preds = %44, %39
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %47

47:                                               ; preds = %46
  br label %48

48:                                               ; preds = %47
  br label %49

49:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %50 = load ptr, ptr %5, align 8, !tbaa !5
  %51 = icmp eq ptr %50, null
  %52 = zext i1 %51 to i32
  store i32 %52, ptr %10, align 4, !tbaa !9
  %53 = load i32, ptr %10, align 4, !tbaa !9
  %54 = icmp ne i32 %53, 0
  br i1 %54, label %55, label %57

55:                                               ; preds = %49
  %56 = load i32, ptr %10, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %56, i32 noundef -1, ptr noundef @.str.2, i32 noundef 127, ptr noundef @__FUNCTION__.mUDPRead, ptr noundef @.str.5)
  br label %57

57:                                               ; preds = %55, %49
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %58

58:                                               ; preds = %57
  br label %59

59:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %60 = call i32 @__bswap_32(i32 noundef 0)
  store i32 %60, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 0, ptr %12, align 4, !tbaa !9
  %61 = load ptr, ptr %5, align 8, !tbaa !5
  call void @IPAddress(ptr noundef %61, ptr noundef %11, ptr noundef %12)
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #6
  %62 = getelementptr inbounds [32 x i8], ptr %13, i64 0, i64 0
  %63 = load i32, ptr %12, align 4, !tbaa !9
  %64 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %62, ptr noundef @.str.6, i32 noundef %63) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %65 = getelementptr inbounds [32 x i8], ptr %13, i64 0, i64 0
  %66 = call ptr @mMornObject(ptr noundef %65, i32 noundef -1)
  %67 = call ptr @GetHandle(ptr noundef %66, i32 noundef 88, i32 noundef -232591542, ptr noundef @endUDPRead)
  store ptr %67, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %68 = load ptr, ptr %14, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.MHandle, ptr %68, i32 0, i32 3
  %70 = load ptr, ptr %69, align 8, !tbaa !11
  store ptr %70, ptr %15, align 8, !tbaa !5
  %71 = load ptr, ptr %14, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.MHandle, ptr %71, i32 0, i32 1
  %73 = load volatile i32, ptr %72, align 4, !tbaa !13
  %74 = icmp eq i32 %73, 0
  br i1 %74, label %75, label %182

75:                                               ; preds = %59
  %76 = load i32, ptr %12, align 4, !tbaa !9
  %77 = load ptr, ptr %15, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.HandleUDPRead, ptr %77, i32 0, i32 1
  store i32 %76, ptr %78, align 4, !tbaa !14
  %79 = load i32, ptr %11, align 4, !tbaa !9
  %80 = load ptr, ptr %15, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.HandleUDPRead, ptr %80, i32 0, i32 0
  store i32 %79, ptr %81, align 8, !tbaa !19
  %82 = call i32 @socket(i32 noundef 2, i32 noundef 2, i32 noundef 17) #6
  %83 = load ptr, ptr %15, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.HandleUDPRead, ptr %83, i32 0, i32 2
  store i32 %82, ptr %84, align 8, !tbaa !20
  %85 = load ptr, ptr %15, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.HandleUDPRead, ptr %85, i32 0, i32 3
  %87 = getelementptr inbounds %struct.sockaddr_in, ptr %86, i32 0, i32 0
  store i16 2, ptr %87, align 4, !tbaa !21
  %88 = load ptr, ptr %15, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.HandleUDPRead, ptr %88, i32 0, i32 1
  %90 = load i32, ptr %89, align 4, !tbaa !14
  %91 = trunc i32 %90 to i16
  %92 = call zeroext i16 @__bswap_16(i16 noundef zeroext %91)
  %93 = load ptr, ptr %15, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.HandleUDPRead, ptr %93, i32 0, i32 3
  %95 = getelementptr inbounds %struct.sockaddr_in, ptr %94, i32 0, i32 1
  store i16 %92, ptr %95, align 2, !tbaa !22
  %96 = call i32 @__bswap_32(i32 noundef 0)
  %97 = load ptr, ptr %15, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.HandleUDPRead, ptr %97, i32 0, i32 3
  %99 = getelementptr inbounds %struct.sockaddr_in, ptr %98, i32 0, i32 2
  %100 = getelementptr inbounds %struct.in_addr, ptr %99, i32 0, i32 0
  store i32 %96, ptr %100, align 4, !tbaa !23
  %101 = load ptr, ptr %15, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.HandleUDPRead, ptr %101, i32 0, i32 2
  %103 = load i32, ptr %102, align 8, !tbaa !20
  %104 = load ptr, ptr %15, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.HandleUDPRead, ptr %104, i32 0, i32 3
  %106 = call i32 @bind(i32 noundef %103, ptr noundef %105, i32 noundef 16) #6
  store i32 %106, ptr %8, align 4, !tbaa !9
  br label %107

107:                                              ; preds = %75
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %108 = load i32, ptr %8, align 4, !tbaa !9
  %109 = icmp slt i32 %108, 0
  %110 = zext i1 %109 to i32
  store i32 %110, ptr %16, align 4, !tbaa !9
  %111 = load i32, ptr %16, align 4, !tbaa !9
  %112 = icmp ne i32 %111, 0
  br i1 %112, label %113, label %115

113:                                              ; preds = %107
  %114 = load i32, ptr %16, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %114, i32 noundef -1, ptr noundef @.str.2, i32 noundef 155, ptr noundef @__FUNCTION__.mUDPRead, ptr noundef @.str.8)
  br label %115

115:                                              ; preds = %113, %107
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %116

116:                                              ; preds = %115
  br label %117

117:                                              ; preds = %116
  %118 = load ptr, ptr %15, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.HandleUDPRead, ptr %118, i32 0, i32 0
  %120 = load i32, ptr %119, align 8, !tbaa !19
  %121 = call i32 @__bswap_32(i32 noundef 0)
  %122 = icmp ne i32 %120, %121
  br i1 %122, label %123, label %167

123:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %124 = load ptr, ptr %15, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.HandleUDPRead, ptr %124, i32 0, i32 0
  store ptr %125, ptr %17, align 8, !tbaa !5
  %126 = load ptr, ptr %15, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.HandleUDPRead, ptr %126, i32 0, i32 5
  %128 = getelementptr inbounds [32 x i8], ptr %127, i64 0, i64 0
  %129 = load ptr, ptr %17, align 8, !tbaa !5
  %130 = getelementptr inbounds i8, ptr %129, i64 0
  %131 = load i8, ptr %130, align 1, !tbaa !24
  %132 = zext i8 %131 to i32
  %133 = load ptr, ptr %17, align 8, !tbaa !5
  %134 = getelementptr inbounds i8, ptr %133, i64 1
  %135 = load i8, ptr %134, align 1, !tbaa !24
  %136 = zext i8 %135 to i32
  %137 = load ptr, ptr %17, align 8, !tbaa !5
  %138 = getelementptr inbounds i8, ptr %137, i64 2
  %139 = load i8, ptr %138, align 1, !tbaa !24
  %140 = zext i8 %139 to i32
  %141 = load ptr, ptr %17, align 8, !tbaa !5
  %142 = getelementptr inbounds i8, ptr %141, i64 3
  %143 = load i8, ptr %142, align 1, !tbaa !24
  %144 = zext i8 %143 to i32
  %145 = load ptr, ptr %15, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.HandleUDPRead, ptr %145, i32 0, i32 1
  %147 = load i32, ptr %146, align 4, !tbaa !14
  %148 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %128, ptr noundef @.str.1, i32 noundef %132, i32 noundef %136, i32 noundef %140, i32 noundef %144, i32 noundef %147) #6
  %149 = load ptr, ptr %15, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.HandleUDPRead, ptr %149, i32 0, i32 6
  %151 = load ptr, ptr %150, align 8, !tbaa !25
  %152 = icmp eq ptr %151, null
  br i1 %152, label %153, label %157

153:                                              ; preds = %123
  %154 = call ptr @m_Malloc(i32 noundef 65516)
  %155 = load ptr, ptr %15, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.HandleUDPRead, ptr %155, i32 0, i32 6
  store ptr %154, ptr %156, align 8, !tbaa !25
  br label %157

157:                                              ; preds = %153, %123
  %158 = load ptr, ptr %15, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.HandleUDPRead, ptr %158, i32 0, i32 7
  %160 = load ptr, ptr %159, align 8, !tbaa !26
  %161 = icmp eq ptr %160, null
  br i1 %161, label %162, label %166

162:                                              ; preds = %157
  %163 = call ptr @ListCreate(i32 noundef -1, ptr noundef null)
  %164 = load ptr, ptr %15, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.HandleUDPRead, ptr %164, i32 0, i32 7
  store ptr %163, ptr %165, align 8, !tbaa !26
  br label %166

166:                                              ; preds = %162, %157
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %167

167:                                              ; preds = %166, %117
  %168 = load ptr, ptr %15, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.HandleUDPRead, ptr %168, i32 0, i32 4
  store i32 -1, ptr %169, align 4, !tbaa !27
  %170 = getelementptr inbounds [32 x i8], ptr %13, i64 0, i64 0
  %171 = call ptr @mMornObject(ptr noundef %170, i32 noundef -1)
  %172 = load ptr, ptr %15, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.HandleUDPRead, ptr %172, i32 0, i32 4
  call void @m_PropertyVariate(ptr noundef %171, ptr noundef @.str.9, ptr noundef %173, i32 noundef 4)
  br label %174

174:                                              ; preds = %167
  %175 = getelementptr inbounds [32 x i8], ptr %13, i64 0, i64 0
  %176 = call ptr @mMornObject(ptr noundef %175, i32 noundef -1)
  %177 = getelementptr inbounds [32 x i8], ptr %13, i64 0, i64 0
  call void @m_PropertyFunction(ptr noundef %176, ptr noundef @.str.7, ptr noundef @mornObjectRemove, ptr noundef %177)
  br label %178

178:                                              ; preds = %174
  br label %179

179:                                              ; preds = %178
  %180 = load ptr, ptr %14, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.MHandle, ptr %180, i32 0, i32 1
  store volatile i32 1, ptr %181, align 4, !tbaa !13
  br label %182

182:                                              ; preds = %179, %59
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %183 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %183, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %184 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %184, ptr %19, align 8, !tbaa !5
  %185 = load ptr, ptr %15, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.HandleUDPRead, ptr %185, i32 0, i32 0
  %187 = load i32, ptr %186, align 8, !tbaa !19
  %188 = call i32 @__bswap_32(i32 noundef 0)
  %189 = icmp ne i32 %187, %188
  br i1 %189, label %190, label %304

190:                                              ; preds = %182
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  store i32 0, ptr %20, align 4, !tbaa !9
  br label %191

191:                                              ; preds = %289, %190
  %192 = load i32, ptr %20, align 4, !tbaa !9
  %193 = load ptr, ptr %15, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.HandleUDPRead, ptr %193, i32 0, i32 7
  %195 = load ptr, ptr %194, align 8, !tbaa !26
  %196 = getelementptr inbounds %struct.MList, ptr %195, i32 0, i32 0
  %197 = load i32, ptr %196, align 8, !tbaa !28
  %198 = icmp slt i32 %192, %197
  br i1 %198, label %200, label %199

199:                                              ; preds = %191
  store i32 10, ptr %21, align 4
  br label %292

200:                                              ; preds = %191
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  %201 = load ptr, ptr %15, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.HandleUDPRead, ptr %201, i32 0, i32 8
  %203 = load i32, ptr %202, align 8, !tbaa !30
  %204 = load i32, ptr %20, align 4, !tbaa !9
  %205 = add nsw i32 %203, %204
  store i32 %205, ptr %22, align 4, !tbaa !9
  %206 = load i32, ptr %22, align 4, !tbaa !9
  %207 = load ptr, ptr %15, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct.HandleUDPRead, ptr %207, i32 0, i32 7
  %209 = load ptr, ptr %208, align 8, !tbaa !26
  %210 = getelementptr inbounds %struct.MList, ptr %209, i32 0, i32 0
  %211 = load i32, ptr %210, align 8, !tbaa !28
  %212 = icmp sge i32 %206, %211
  br i1 %212, label %213, label %221

213:                                              ; preds = %200
  %214 = load ptr, ptr %15, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.HandleUDPRead, ptr %214, i32 0, i32 7
  %216 = load ptr, ptr %215, align 8, !tbaa !26
  %217 = getelementptr inbounds %struct.MList, ptr %216, i32 0, i32 0
  %218 = load i32, ptr %217, align 8, !tbaa !28
  %219 = load i32, ptr %22, align 4, !tbaa !9
  %220 = sub nsw i32 %219, %218
  store i32 %220, ptr %22, align 4, !tbaa !9
  br label %221

221:                                              ; preds = %213, %200
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %222 = load ptr, ptr %15, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.HandleUDPRead, ptr %222, i32 0, i32 7
  %224 = load ptr, ptr %223, align 8, !tbaa !26
  %225 = getelementptr inbounds %struct.MList, ptr %224, i32 0, i32 1
  %226 = load ptr, ptr %225, align 8, !tbaa !31
  %227 = load i32, ptr %22, align 4, !tbaa !9
  %228 = sext i32 %227 to i64
  %229 = getelementptr inbounds ptr, ptr %226, i64 %228
  %230 = load ptr, ptr %229, align 8, !tbaa !5
  store ptr %230, ptr %23, align 8, !tbaa !5
  %231 = load ptr, ptr %23, align 8, !tbaa !5
  %232 = getelementptr inbounds i32, ptr %231, i64 0
  %233 = load i32, ptr %232, align 4, !tbaa !9
  %234 = load ptr, ptr %15, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct.HandleUDPRead, ptr %234, i32 0, i32 0
  %236 = load i32, ptr %235, align 8, !tbaa !19
  %237 = icmp ne i32 %233, %236
  br i1 %237, label %238, label %239

238:                                              ; preds = %221
  store i32 12, ptr %21, align 4
  br label %287

239:                                              ; preds = %221
  %240 = load ptr, ptr %7, align 8, !tbaa !5
  %241 = load i32, ptr %240, align 4, !tbaa !9
  %242 = load ptr, ptr %23, align 8, !tbaa !5
  %243 = getelementptr inbounds i32, ptr %242, i64 1
  %244 = load i32, ptr %243, align 4, !tbaa !9
  %245 = icmp slt i32 %241, %244
  br i1 %245, label %246, label %249

246:                                              ; preds = %239
  %247 = load ptr, ptr %7, align 8, !tbaa !5
  %248 = load i32, ptr %247, align 4, !tbaa !9
  br label %253

249:                                              ; preds = %239
  %250 = load ptr, ptr %23, align 8, !tbaa !5
  %251 = getelementptr inbounds i32, ptr %250, i64 1
  %252 = load i32, ptr %251, align 4, !tbaa !9
  br label %253

253:                                              ; preds = %249, %246
  %254 = phi i32 [ %248, %246 ], [ %252, %249 ]
  %255 = load ptr, ptr %7, align 8, !tbaa !5
  store i32 %254, ptr %255, align 4, !tbaa !9
  %256 = load ptr, ptr %6, align 8, !tbaa !5
  %257 = load ptr, ptr %23, align 8, !tbaa !5
  %258 = getelementptr inbounds i32, ptr %257, i64 2
  %259 = load ptr, ptr %7, align 8, !tbaa !5
  %260 = load i32, ptr %259, align 4, !tbaa !9
  %261 = sext i32 %260 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %256, ptr align 4 %258, i64 %261, i1 false)
  %262 = load ptr, ptr %15, align 8, !tbaa !5
  %263 = getelementptr inbounds %struct.HandleUDPRead, ptr %262, i32 0, i32 7
  %264 = load ptr, ptr %263, align 8, !tbaa !26
  %265 = load i32, ptr %22, align 4, !tbaa !9
  call void @mListElementDelete(ptr noundef %264, i32 noundef %265)
  %266 = load ptr, ptr %15, align 8, !tbaa !5
  %267 = getelementptr inbounds %struct.HandleUDPRead, ptr %266, i32 0, i32 8
  %268 = load i32, ptr %267, align 8, !tbaa !30
  %269 = add nsw i32 %268, -1
  store i32 %269, ptr %267, align 8, !tbaa !30
  %270 = load ptr, ptr %15, align 8, !tbaa !5
  %271 = getelementptr inbounds %struct.HandleUDPRead, ptr %270, i32 0, i32 8
  %272 = load i32, ptr %271, align 8, !tbaa !30
  %273 = icmp slt i32 %272, 0
  br i1 %273, label %274, label %283

274:                                              ; preds = %253
  %275 = load ptr, ptr %15, align 8, !tbaa !5
  %276 = getelementptr inbounds %struct.HandleUDPRead, ptr %275, i32 0, i32 7
  %277 = load ptr, ptr %276, align 8, !tbaa !26
  %278 = getelementptr inbounds %struct.MList, ptr %277, i32 0, i32 0
  %279 = load i32, ptr %278, align 8, !tbaa !28
  %280 = sub nsw i32 %279, 1
  %281 = load ptr, ptr %15, align 8, !tbaa !5
  %282 = getelementptr inbounds %struct.HandleUDPRead, ptr %281, i32 0, i32 8
  store i32 %280, ptr %282, align 8, !tbaa !30
  br label %283

283:                                              ; preds = %274, %253
  %284 = load ptr, ptr %15, align 8, !tbaa !5
  %285 = getelementptr inbounds %struct.HandleUDPRead, ptr %284, i32 0, i32 5
  %286 = getelementptr inbounds [32 x i8], ptr %285, i64 0, i64 0
  store ptr %286, ptr %4, align 8
  store i32 1, ptr %21, align 4
  br label %287

287:                                              ; preds = %283, %238
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  %288 = load i32, ptr %21, align 4
  switch i32 %288, label %292 [
    i32 12, label %289
  ]

289:                                              ; preds = %287
  %290 = load i32, ptr %20, align 4, !tbaa !9
  %291 = add nsw i32 %290, 1
  store i32 %291, ptr %20, align 4, !tbaa !9
  br label %191, !llvm.loop !32

292:                                              ; preds = %287, %199
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  %293 = load i32, ptr %21, align 4
  switch i32 %293, label %505 [
    i32 10, label %294
  ]

294:                                              ; preds = %292
  %295 = load ptr, ptr %15, align 8, !tbaa !5
  %296 = getelementptr inbounds %struct.HandleUDPRead, ptr %295, i32 0, i32 6
  %297 = load ptr, ptr %296, align 8, !tbaa !25
  %298 = getelementptr inbounds i32, ptr %297, i64 2
  store ptr %298, ptr %18, align 8, !tbaa !5
  %299 = load ptr, ptr %15, align 8, !tbaa !5
  %300 = getelementptr inbounds %struct.HandleUDPRead, ptr %299, i32 0, i32 6
  %301 = load ptr, ptr %300, align 8, !tbaa !25
  %302 = getelementptr inbounds i32, ptr %301, i64 1
  store ptr %302, ptr %19, align 8, !tbaa !5
  %303 = load ptr, ptr %19, align 8, !tbaa !5
  store i32 65507, ptr %303, align 4, !tbaa !9
  br label %304

304:                                              ; preds = %294, %182
  %305 = load ptr, ptr %15, align 8, !tbaa !5
  %306 = getelementptr inbounds %struct.HandleUDPRead, ptr %305, i32 0, i32 4
  %307 = load i32, ptr %306, align 4, !tbaa !27
  %308 = icmp sge i32 %307, 0
  br i1 %308, label %309, label %379

309:                                              ; preds = %304
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #6
  %310 = load ptr, ptr %15, align 8, !tbaa !5
  %311 = getelementptr inbounds %struct.HandleUDPRead, ptr %310, i32 0, i32 4
  %312 = load i32, ptr %311, align 4, !tbaa !27
  %313 = sdiv i32 %312, 1000
  %314 = sext i32 %313 to i64
  %315 = getelementptr inbounds %struct.timeval, ptr %24, i32 0, i32 0
  store i64 %314, ptr %315, align 8, !tbaa !34
  %316 = load ptr, ptr %15, align 8, !tbaa !5
  %317 = getelementptr inbounds %struct.HandleUDPRead, ptr %316, i32 0, i32 4
  %318 = load i32, ptr %317, align 4, !tbaa !27
  %319 = srem i32 %318, 1000
  %320 = mul nsw i32 %319, 1000
  %321 = sext i32 %320 to i64
  %322 = getelementptr inbounds %struct.timeval, ptr %24, i32 0, i32 1
  store i64 %321, ptr %322, align 8, !tbaa !37
  call void @llvm.lifetime.start.p0(i64 128, ptr %25) #6
  br label %323

323:                                              ; preds = %309
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  store ptr %25, ptr %27, align 8, !tbaa !5
  store i32 0, ptr %26, align 4, !tbaa !9
  br label %324

324:                                              ; preds = %334, %323
  %325 = load i32, ptr %26, align 4, !tbaa !9
  %326 = zext i32 %325 to i64
  %327 = icmp ult i64 %326, 16
  br i1 %327, label %328, label %337

328:                                              ; preds = %324
  %329 = load ptr, ptr %27, align 8, !tbaa !5
  %330 = getelementptr inbounds %struct.fd_set, ptr %329, i32 0, i32 0
  %331 = load i32, ptr %26, align 4, !tbaa !9
  %332 = zext i32 %331 to i64
  %333 = getelementptr inbounds [16 x i64], ptr %330, i64 0, i64 %332
  store i64 0, ptr %333, align 8, !tbaa !38
  br label %334

334:                                              ; preds = %328
  %335 = load i32, ptr %26, align 4, !tbaa !9
  %336 = add i32 %335, 1
  store i32 %336, ptr %26, align 4, !tbaa !9
  br label %324, !llvm.loop !39

337:                                              ; preds = %324
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  br label %338

338:                                              ; preds = %337
  br label %339

339:                                              ; preds = %338
  %340 = load ptr, ptr %15, align 8, !tbaa !5
  %341 = getelementptr inbounds %struct.HandleUDPRead, ptr %340, i32 0, i32 2
  %342 = load i32, ptr %341, align 8, !tbaa !20
  %343 = srem i32 %342, 64
  %344 = zext i32 %343 to i64
  %345 = shl i64 1, %344
  %346 = getelementptr inbounds %struct.fd_set, ptr %25, i32 0, i32 0
  %347 = load ptr, ptr %15, align 8, !tbaa !5
  %348 = getelementptr inbounds %struct.HandleUDPRead, ptr %347, i32 0, i32 2
  %349 = load i32, ptr %348, align 8, !tbaa !20
  %350 = sdiv i32 %349, 64
  %351 = sext i32 %350 to i64
  %352 = getelementptr inbounds [16 x i64], ptr %346, i64 0, i64 %351
  %353 = load i64, ptr %352, align 8, !tbaa !38
  %354 = or i64 %353, %345
  store i64 %354, ptr %352, align 8, !tbaa !38
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #6
  %355 = load ptr, ptr %15, align 8, !tbaa !5
  %356 = getelementptr inbounds %struct.HandleUDPRead, ptr %355, i32 0, i32 2
  %357 = load i32, ptr %356, align 8, !tbaa !20
  %358 = add nsw i32 %357, 1
  store i32 %358, ptr %28, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #6
  %359 = load i32, ptr %28, align 4, !tbaa !9
  %360 = call i32 @select(i32 noundef %359, ptr noundef %25, ptr noundef null, ptr noundef null, ptr noundef %24)
  store i32 %360, ptr %29, align 4, !tbaa !9
  %361 = load i32, ptr %29, align 4, !tbaa !9
  %362 = icmp eq i32 %361, 0
  br i1 %362, label %363, label %364

363:                                              ; preds = %339
  store ptr null, ptr %4, align 8
  store i32 1, ptr %21, align 4
  br label %376

364:                                              ; preds = %339
  br label %365

365:                                              ; preds = %364
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #6
  %366 = load i32, ptr %29, align 4, !tbaa !9
  %367 = icmp eq i32 %366, -1
  %368 = zext i1 %367 to i32
  store i32 %368, ptr %30, align 4, !tbaa !9
  %369 = load i32, ptr %30, align 4, !tbaa !9
  %370 = icmp ne i32 %369, 0
  br i1 %370, label %371, label %373

371:                                              ; preds = %365
  %372 = load i32, ptr %30, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %372, i32 noundef -1, ptr noundef @.str.2, i32 noundef 207, ptr noundef @__FUNCTION__.mUDPRead, ptr noundef @.str.10)
  br label %373

373:                                              ; preds = %371, %365
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  br label %374

374:                                              ; preds = %373
  br label %375

375:                                              ; preds = %374
  store i32 0, ptr %21, align 4
  br label %376

376:                                              ; preds = %375, %363
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 128, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #6
  %377 = load i32, ptr %21, align 4
  switch i32 %377, label %505 [
    i32 0, label %378
  ]

378:                                              ; preds = %376
  br label %379

379:                                              ; preds = %378, %304
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #6
  store i32 16, ptr %31, align 4, !tbaa !9
  %380 = load ptr, ptr %15, align 8, !tbaa !5
  %381 = getelementptr inbounds %struct.HandleUDPRead, ptr %380, i32 0, i32 2
  %382 = load i32, ptr %381, align 8, !tbaa !20
  %383 = load ptr, ptr %18, align 8, !tbaa !5
  %384 = load ptr, ptr %19, align 8, !tbaa !5
  %385 = load i32, ptr %384, align 4, !tbaa !9
  %386 = sext i32 %385 to i64
  %387 = load ptr, ptr %15, align 8, !tbaa !5
  %388 = getelementptr inbounds %struct.HandleUDPRead, ptr %387, i32 0, i32 3
  %389 = call i64 @recvfrom(i32 noundef %382, ptr noundef %383, i64 noundef %386, i32 noundef 0, ptr noundef %388, ptr noundef %31)
  %390 = trunc i64 %389 to i32
  store i32 %390, ptr %8, align 4, !tbaa !9
  %391 = load i32, ptr %8, align 4, !tbaa !9
  %392 = load ptr, ptr %19, align 8, !tbaa !5
  %393 = load i32, ptr %392, align 4, !tbaa !9
  %394 = icmp slt i32 %391, %393
  br i1 %394, label %395, label %400

395:                                              ; preds = %379
  %396 = load ptr, ptr %6, align 8, !tbaa !5
  %397 = load i32, ptr %8, align 4, !tbaa !9
  %398 = sext i32 %397 to i64
  %399 = getelementptr inbounds i8, ptr %396, i64 %398
  store i8 0, ptr %399, align 1, !tbaa !24
  br label %400

400:                                              ; preds = %395, %379
  %401 = load i32, ptr %8, align 4, !tbaa !9
  %402 = load ptr, ptr %19, align 8, !tbaa !5
  store i32 %401, ptr %402, align 4, !tbaa !9
  %403 = load ptr, ptr %15, align 8, !tbaa !5
  %404 = getelementptr inbounds %struct.HandleUDPRead, ptr %403, i32 0, i32 0
  %405 = load i32, ptr %404, align 8, !tbaa !19
  %406 = call i32 @__bswap_32(i32 noundef 0)
  %407 = icmp eq i32 %405, %406
  br i1 %407, label %408, label %439

408:                                              ; preds = %400
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #6
  %409 = load ptr, ptr %15, align 8, !tbaa !5
  %410 = getelementptr inbounds %struct.HandleUDPRead, ptr %409, i32 0, i32 3
  %411 = getelementptr inbounds %struct.sockaddr_in, ptr %410, i32 0, i32 2
  %412 = getelementptr inbounds %struct.in_addr, ptr %411, i32 0, i32 0
  store ptr %412, ptr %32, align 8, !tbaa !5
  %413 = load ptr, ptr %15, align 8, !tbaa !5
  %414 = getelementptr inbounds %struct.HandleUDPRead, ptr %413, i32 0, i32 5
  %415 = getelementptr inbounds [32 x i8], ptr %414, i64 0, i64 0
  %416 = load ptr, ptr %32, align 8, !tbaa !5
  %417 = getelementptr inbounds i8, ptr %416, i64 0
  %418 = load i8, ptr %417, align 1, !tbaa !24
  %419 = zext i8 %418 to i32
  %420 = load ptr, ptr %32, align 8, !tbaa !5
  %421 = getelementptr inbounds i8, ptr %420, i64 1
  %422 = load i8, ptr %421, align 1, !tbaa !24
  %423 = zext i8 %422 to i32
  %424 = load ptr, ptr %32, align 8, !tbaa !5
  %425 = getelementptr inbounds i8, ptr %424, i64 2
  %426 = load i8, ptr %425, align 1, !tbaa !24
  %427 = zext i8 %426 to i32
  %428 = load ptr, ptr %32, align 8, !tbaa !5
  %429 = getelementptr inbounds i8, ptr %428, i64 3
  %430 = load i8, ptr %429, align 1, !tbaa !24
  %431 = zext i8 %430 to i32
  %432 = load ptr, ptr %15, align 8, !tbaa !5
  %433 = getelementptr inbounds %struct.HandleUDPRead, ptr %432, i32 0, i32 1
  %434 = load i32, ptr %433, align 4, !tbaa !14
  %435 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %415, ptr noundef @.str.1, i32 noundef %419, i32 noundef %423, i32 noundef %427, i32 noundef %431, i32 noundef %434) #6
  %436 = load ptr, ptr %15, align 8, !tbaa !5
  %437 = getelementptr inbounds %struct.HandleUDPRead, ptr %436, i32 0, i32 5
  %438 = getelementptr inbounds [32 x i8], ptr %437, i64 0, i64 0
  store ptr %438, ptr %4, align 8
  store i32 1, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #6
  br label %504

439:                                              ; preds = %400
  %440 = load ptr, ptr %15, align 8, !tbaa !5
  %441 = getelementptr inbounds %struct.HandleUDPRead, ptr %440, i32 0, i32 3
  %442 = getelementptr inbounds %struct.sockaddr_in, ptr %441, i32 0, i32 2
  %443 = getelementptr inbounds %struct.in_addr, ptr %442, i32 0, i32 0
  %444 = load i32, ptr %443, align 4, !tbaa !23
  %445 = load ptr, ptr %18, align 8, !tbaa !5
  %446 = getelementptr inbounds i32, ptr %445, i64 -2
  store i32 %444, ptr %446, align 4, !tbaa !9
  %447 = load ptr, ptr %18, align 8, !tbaa !5
  %448 = getelementptr inbounds i32, ptr %447, i64 -2
  %449 = load i32, ptr %448, align 4, !tbaa !9
  %450 = load ptr, ptr %15, align 8, !tbaa !5
  %451 = getelementptr inbounds %struct.HandleUDPRead, ptr %450, i32 0, i32 0
  %452 = load i32, ptr %451, align 8, !tbaa !19
  %453 = icmp eq i32 %449, %452
  br i1 %453, label %454, label %477

454:                                              ; preds = %439
  %455 = load ptr, ptr %7, align 8, !tbaa !5
  %456 = load i32, ptr %455, align 4, !tbaa !9
  %457 = load ptr, ptr %19, align 8, !tbaa !5
  %458 = load i32, ptr %457, align 4, !tbaa !9
  %459 = icmp slt i32 %456, %458
  br i1 %459, label %460, label %463

460:                                              ; preds = %454
  %461 = load ptr, ptr %7, align 8, !tbaa !5
  %462 = load i32, ptr %461, align 4, !tbaa !9
  br label %466

463:                                              ; preds = %454
  %464 = load ptr, ptr %19, align 8, !tbaa !5
  %465 = load i32, ptr %464, align 4, !tbaa !9
  br label %466

466:                                              ; preds = %463, %460
  %467 = phi i32 [ %462, %460 ], [ %465, %463 ]
  %468 = load ptr, ptr %7, align 8, !tbaa !5
  store i32 %467, ptr %468, align 4, !tbaa !9
  %469 = load ptr, ptr %6, align 8, !tbaa !5
  %470 = load ptr, ptr %18, align 8, !tbaa !5
  %471 = load ptr, ptr %7, align 8, !tbaa !5
  %472 = load i32, ptr %471, align 4, !tbaa !9
  %473 = sext i32 %472 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %469, ptr align 4 %470, i64 %473, i1 false)
  %474 = load ptr, ptr %15, align 8, !tbaa !5
  %475 = getelementptr inbounds %struct.HandleUDPRead, ptr %474, i32 0, i32 5
  %476 = getelementptr inbounds [32 x i8], ptr %475, i64 0, i64 0
  store ptr %476, ptr %4, align 8
  store i32 1, ptr %21, align 4
  br label %504

477:                                              ; preds = %439
  %478 = load ptr, ptr %15, align 8, !tbaa !5
  %479 = getelementptr inbounds %struct.HandleUDPRead, ptr %478, i32 0, i32 7
  %480 = load ptr, ptr %479, align 8, !tbaa !26
  %481 = load ptr, ptr %15, align 8, !tbaa !5
  %482 = getelementptr inbounds %struct.HandleUDPRead, ptr %481, i32 0, i32 8
  %483 = load i32, ptr %482, align 8, !tbaa !30
  %484 = load ptr, ptr %15, align 8, !tbaa !5
  %485 = getelementptr inbounds %struct.HandleUDPRead, ptr %484, i32 0, i32 6
  %486 = load ptr, ptr %485, align 8, !tbaa !25
  %487 = load i32, ptr %8, align 4, !tbaa !9
  %488 = sext i32 %487 to i64
  %489 = add i64 %488, 8
  %490 = trunc i64 %489 to i32
  %491 = call ptr @mListWrite(ptr noundef %480, i32 noundef %483, ptr noundef %486, i32 noundef %490)
  %492 = load ptr, ptr %15, align 8, !tbaa !5
  %493 = getelementptr inbounds %struct.HandleUDPRead, ptr %492, i32 0, i32 8
  %494 = load i32, ptr %493, align 8, !tbaa !30
  %495 = add nsw i32 %494, 1
  store i32 %495, ptr %493, align 8, !tbaa !30
  %496 = load ptr, ptr %15, align 8, !tbaa !5
  %497 = getelementptr inbounds %struct.HandleUDPRead, ptr %496, i32 0, i32 8
  %498 = load i32, ptr %497, align 8, !tbaa !30
  %499 = icmp eq i32 %498, 128
  br i1 %499, label %500, label %503

500:                                              ; preds = %477
  %501 = load ptr, ptr %15, align 8, !tbaa !5
  %502 = getelementptr inbounds %struct.HandleUDPRead, ptr %501, i32 0, i32 8
  store i32 0, ptr %502, align 8, !tbaa !30
  br label %503

503:                                              ; preds = %500, %477
  store ptr null, ptr %4, align 8
  store i32 1, ptr %21, align 4
  br label %504

504:                                              ; preds = %503, %466, %408
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #6
  br label %505

505:                                              ; preds = %504, %376, %292
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  %506 = load ptr, ptr %4, align 8
  ret ptr %506
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @__bswap_32(i32 noundef) #4

; Function Attrs: nounwind
declare i32 @bind(i32 noundef, ptr noundef, i32 noundef) #3

declare ptr @m_Malloc(i32 noundef) #2

declare ptr @ListCreate(i32 noundef, ptr noundef) #2

declare void @m_PropertyVariate(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #5

declare void @mListElementDelete(ptr noundef, i32 noundef) #2

declare i32 @select(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

declare i64 @recvfrom(i32 noundef, ptr noundef, i64 noundef, i32 noundef, ptr noundef, ptr noundef) #2

declare ptr @mListWrite(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #2

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind "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 #4 = { inlinehint 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 #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { 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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 16}
!12 = !{!"MHandle", !10, i64 0, !10, i64 4, !6, i64 8, !6, i64 16}
!13 = !{!12, !10, i64 4}
!14 = !{!15, !10, i64 4}
!15 = !{!"HandleUDPRead", !10, i64 0, !10, i64 4, !10, i64 8, !16, i64 12, !10, i64 28, !7, i64 32, !6, i64 64, !6, i64 72, !10, i64 80}
!16 = !{!"sockaddr_in", !17, i64 0, !17, i64 2, !18, i64 4, !7, i64 8}
!17 = !{!"short", !7, i64 0}
!18 = !{!"in_addr", !10, i64 0}
!19 = !{!15, !10, i64 0}
!20 = !{!15, !10, i64 8}
!21 = !{!15, !17, i64 12}
!22 = !{!15, !17, i64 14}
!23 = !{!15, !10, i64 16}
!24 = !{!7, !7, i64 0}
!25 = !{!15, !6, i64 64}
!26 = !{!15, !6, i64 72}
!27 = !{!15, !10, i64 28}
!28 = !{!29, !10, i64 0}
!29 = !{!"MList", !10, i64 0, !6, i64 8}
!30 = !{!15, !10, i64 80}
!31 = !{!29, !6, i64 8}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.mustprogress"}
!34 = !{!35, !36, i64 0}
!35 = !{!"timeval", !36, i64 0, !36, i64 8}
!36 = !{!"long", !7, i64 0}
!37 = !{!35, !36, i64 8}
!38 = !{!36, !36, i64 0}
!39 = distinct !{!39, !33}


; 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.timeval = type { i64, i64 }
%struct.fd_set = type { [16 x i64] }

@.str.1 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [5 x i8], align 1
@__FUNCTION__.mUDPRead = external hidden unnamed_addr constant [9 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [10 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @IPAddress(ptr noundef, ptr noundef, 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

declare void @m_Exception(i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ...) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noundef i32 @sprintf(ptr noalias nocapture noundef writeonly, ptr nocapture noundef readonly, ...) local_unnamed_addr #3

declare ptr @GetHandle(ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

declare ptr @mMornObject(ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #4

declare void @m_PropertyFunction(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @mornObjectRemove(ptr noundef, ptr noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i16 @__bswap_16(i16 noundef zeroext) local_unnamed_addr #5

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

; Function Attrs: nounwind uwtable
define dso_local ptr @mUDPRead(ptr noundef %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #0 {
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca [32 x i8], align 16
  %7 = alloca %struct.timeval, align 8
  %8 = alloca %struct.fd_set, align 8
  %9 = alloca i32, align 4
  %10 = icmp eq ptr %2, null
  %11 = icmp eq ptr %1, null
  %12 = or i1 %11, %10
  br i1 %12, label %13, label %14

13:                                               ; preds = %3
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str.2, i32 noundef 126, ptr noundef nonnull @__FUNCTION__.mUDPRead, ptr noundef nonnull @.str.3) #9
  br label %14

14:                                               ; preds = %13, %3
  %15 = icmp eq ptr %0, null
  br i1 %15, label %16, label %17

16:                                               ; preds = %14
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str.2, i32 noundef 127, ptr noundef nonnull @__FUNCTION__.mUDPRead, ptr noundef nonnull @.str.5) #9
  br label %17

17:                                               ; preds = %16, %14
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #9
  %18 = tail call i32 @__bswap_32(i32 noundef 0)
  store i32 %18, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #9
  store i32 0, ptr %5, align 4, !tbaa !5
  call void @IPAddress(ptr noundef %0, ptr noundef nonnull %4, ptr noundef nonnull %5)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #9
  %19 = load i32, ptr %5, align 4, !tbaa !5
  %20 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.6, i32 noundef %19) #9
  %21 = call ptr @mMornObject(ptr noundef nonnull %6, i32 noundef -1) #9
  %22 = call ptr @GetHandle(ptr noundef %21, i32 noundef 88, i32 noundef -232591542, ptr noundef nonnull @endUDPRead) #9
  %23 = getelementptr inbounds i8, ptr %22, i64 16
  %24 = load ptr, ptr %23, align 8, !tbaa !9
  %25 = getelementptr inbounds i8, ptr %22, i64 4
  %26 = load volatile i32, ptr %25, align 4, !tbaa !12
  %27 = icmp eq i32 %26, 0
  br i1 %27, label %28, label %78

28:                                               ; preds = %17
  %29 = load i32, ptr %5, align 4, !tbaa !5
  %30 = getelementptr inbounds i8, ptr %24, i64 4
  store i32 %29, ptr %30, align 4, !tbaa !13
  %31 = load i32, ptr %4, align 4, !tbaa !5
  store i32 %31, ptr %24, align 8, !tbaa !18
  %32 = call i32 @socket(i32 noundef 2, i32 noundef 2, i32 noundef 17) #9
  %33 = getelementptr inbounds i8, ptr %24, i64 8
  store i32 %32, ptr %33, align 8, !tbaa !19
  %34 = getelementptr inbounds i8, ptr %24, i64 12
  store i16 2, ptr %34, align 4, !tbaa !20
  %35 = load i32, ptr %30, align 4, !tbaa !13
  %36 = trunc i32 %35 to i16
  %37 = call zeroext i16 @__bswap_16(i16 noundef zeroext %36)
  %38 = getelementptr inbounds i8, ptr %24, i64 14
  store i16 %37, ptr %38, align 2, !tbaa !21
  %39 = call i32 @__bswap_32(i32 noundef 0)
  %40 = getelementptr inbounds i8, ptr %24, i64 16
  store i32 %39, ptr %40, align 4, !tbaa !22
  %41 = load i32, ptr %33, align 8, !tbaa !19
  %42 = call i32 @bind(i32 noundef %41, ptr noundef nonnull %34, i32 noundef 16) #9
  %43 = icmp slt i32 %42, 0
  br i1 %43, label %44, label %45

44:                                               ; preds = %28
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str.2, i32 noundef 155, ptr noundef nonnull @__FUNCTION__.mUDPRead, ptr noundef nonnull @.str.8) #9
  br label %45

45:                                               ; preds = %44, %28
  %46 = load i32, ptr %24, align 8, !tbaa !18
  %47 = call i32 @__bswap_32(i32 noundef 0)
  %.not = icmp eq i32 %46, %47
  br i1 %.not, label %74, label %48

48:                                               ; preds = %45
  %49 = getelementptr inbounds i8, ptr %24, i64 32
  %50 = load i8, ptr %24, align 1, !tbaa !23
  %51 = zext i8 %50 to i32
  %52 = getelementptr inbounds i8, ptr %24, i64 1
  %53 = load i8, ptr %52, align 1, !tbaa !23
  %54 = zext i8 %53 to i32
  %55 = getelementptr inbounds i8, ptr %24, i64 2
  %56 = load i8, ptr %55, align 1, !tbaa !23
  %57 = zext i8 %56 to i32
  %58 = getelementptr inbounds i8, ptr %24, i64 3
  %59 = load i8, ptr %58, align 1, !tbaa !23
  %60 = zext i8 %59 to i32
  %61 = load i32, ptr %30, align 4, !tbaa !13
  %62 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %49, ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %51, i32 noundef %54, i32 noundef %57, i32 noundef %60, i32 noundef %61) #9
  %63 = getelementptr inbounds i8, ptr %24, i64 64
  %64 = load ptr, ptr %63, align 8, !tbaa !24
  %65 = icmp eq ptr %64, null
  br i1 %65, label %66, label %68

66:                                               ; preds = %48
  %67 = call ptr @m_Malloc(i32 noundef 65516) #9
  store ptr %67, ptr %63, align 8, !tbaa !24
  br label %68

68:                                               ; preds = %66, %48
  %69 = getelementptr inbounds i8, ptr %24, i64 72
  %70 = load ptr, ptr %69, align 8, !tbaa !25
  %71 = icmp eq ptr %70, null
  br i1 %71, label %72, label %74

72:                                               ; preds = %68
  %73 = call ptr @ListCreate(i32 noundef -1, ptr noundef null) #9
  store ptr %73, ptr %69, align 8, !tbaa !25
  br label %74

74:                                               ; preds = %68, %72, %45
  %75 = getelementptr inbounds i8, ptr %24, i64 28
  store i32 -1, ptr %75, align 4, !tbaa !26
  %76 = call ptr @mMornObject(ptr noundef nonnull %6, i32 noundef -1) #9
  call void @m_PropertyVariate(ptr noundef %76, ptr noundef nonnull @.str.9, ptr noundef nonnull %75, i32 noundef 4) #9
  %77 = call ptr @mMornObject(ptr noundef nonnull %6, i32 noundef -1) #9
  call void @m_PropertyFunction(ptr noundef %77, ptr noundef nonnull @.str.7, ptr noundef nonnull @mornObjectRemove, ptr noundef nonnull %6) #9
  store volatile i32 1, ptr %25, align 4, !tbaa !12
  br label %78

78:                                               ; preds = %74, %17
  %79 = load i32, ptr %24, align 8, !tbaa !18
  %80 = call i32 @__bswap_32(i32 noundef 0)
  %.not148 = icmp eq i32 %79, %80
  br i1 %.not148, label %117, label %.preheader

.preheader:                                       ; preds = %78
  %81 = getelementptr inbounds i8, ptr %24, i64 72
  %82 = load ptr, ptr %81, align 8, !tbaa !25
  %83 = load i32, ptr %82, align 8, !tbaa !27
  %.not151164 = icmp sgt i32 %83, 0
  br i1 %.not151164, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader
  %84 = getelementptr inbounds i8, ptr %24, i64 80
  %85 = load i32, ptr %84, align 8, !tbaa !29
  %86 = getelementptr inbounds i8, ptr %82, i64 8
  %87 = load ptr, ptr %86, align 8, !tbaa !30
  %88 = load i32, ptr %24, align 8, !tbaa !18
  br label %91

89:                                               ; preds = %91
  %90 = add nuw nsw i32 %.0132165, 1
  %exitcond.not = icmp eq i32 %90, %83
  br i1 %exitcond.not, label %._crit_edge, label %91, !llvm.loop !31

91:                                               ; preds = %.lr.ph, %89
  %.0132165 = phi i32 [ 0, %.lr.ph ], [ %90, %89 ]
  %92 = add nsw i32 %85, %.0132165
  %.not149 = icmp slt i32 %92, %83
  %93 = select i1 %.not149, i32 0, i32 %83
  %spec.select = sub nsw i32 %92, %93
  %94 = sext i32 %spec.select to i64
  %95 = getelementptr inbounds ptr, ptr %87, i64 %94
  %96 = load ptr, ptr %95, align 8, !tbaa !33
  %97 = load i32, ptr %96, align 4, !tbaa !5
  %.not150.not = icmp eq i32 %97, %88
  br i1 %.not150.not, label %98, label %89

98:                                               ; preds = %91
  %99 = load i32, ptr %2, align 4, !tbaa !5
  %100 = getelementptr inbounds i8, ptr %96, i64 4
  %101 = load i32, ptr %100, align 4, !tbaa !5
  %. = call i32 @llvm.smin.i32(i32 %99, i32 %101)
  store i32 %., ptr %2, align 4, !tbaa !5
  %102 = getelementptr inbounds i8, ptr %96, i64 8
  %103 = sext i32 %. to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %1, ptr nonnull align 4 %102, i64 %103, i1 false)
  %104 = load ptr, ptr %81, align 8, !tbaa !25
  call void @mListElementDelete(ptr noundef %104, i32 noundef %spec.select) #9
  %105 = load i32, ptr %84, align 8, !tbaa !29
  %106 = add nsw i32 %105, -1
  store i32 %106, ptr %84, align 8, !tbaa !29
  %107 = icmp slt i32 %105, 1
  br i1 %107, label %108, label %.thread157

108:                                              ; preds = %98
  %109 = load ptr, ptr %81, align 8, !tbaa !25
  %110 = load i32, ptr %109, align 8, !tbaa !27
  %111 = add nsw i32 %110, -1
  store i32 %111, ptr %84, align 8, !tbaa !29
  br label %.thread157

.thread157:                                       ; preds = %108, %98
  %112 = getelementptr inbounds i8, ptr %24, i64 32
  br label %199

._crit_edge:                                      ; preds = %89, %.preheader
  %113 = getelementptr inbounds i8, ptr %24, i64 64
  %114 = load ptr, ptr %113, align 8, !tbaa !24
  %115 = getelementptr inbounds i8, ptr %114, i64 8
  %116 = getelementptr inbounds i8, ptr %114, i64 4
  store i32 65507, ptr %116, align 4, !tbaa !5
  br label %117

117:                                              ; preds = %._crit_edge, %78
  %.0131 = phi ptr [ %116, %._crit_edge ], [ %2, %78 ]
  %.0130 = phi ptr [ %115, %._crit_edge ], [ %1, %78 ]
  %118 = getelementptr inbounds i8, ptr %24, i64 28
  %119 = load i32, ptr %118, align 4, !tbaa !26
  %120 = icmp sgt i32 %119, -1
  br i1 %120, label %121, label %142

121:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #9
  %122 = udiv i32 %119, 1000
  %123 = zext nneg i32 %122 to i64
  store i64 %123, ptr %7, align 8, !tbaa !34
  %124 = urem i32 %119, 1000
  %125 = mul nuw nsw i32 %124, 1000
  %126 = zext nneg i32 %125 to i64
  %127 = getelementptr inbounds i8, ptr %7, i64 8
  store i64 %126, ptr %127, align 8, !tbaa !37
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %8) #9
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(128) %8, i8 0, i64 128, i1 false), !tbaa !38
  %128 = getelementptr inbounds i8, ptr %24, i64 8
  %129 = load i32, ptr %128, align 8, !tbaa !19
  %130 = srem i32 %129, 64
  %131 = zext nneg i32 %130 to i64
  %132 = shl nuw i64 1, %131
  %133 = sdiv i32 %129, 64
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds [16 x i64], ptr %8, i64 0, i64 %134
  %136 = load i64, ptr %135, align 8, !tbaa !38
  %137 = or i64 %132, %136
  store i64 %137, ptr %135, align 8, !tbaa !38
  %138 = add nsw i32 %129, 1
  %139 = call i32 @select(i32 noundef %138, ptr noundef nonnull %8, ptr noundef null, ptr noundef null, ptr noundef nonnull %7) #9
  switch i32 %139, label %.thread159 [
    i32 0, label %141
    i32 -1, label %140
  ]

140:                                              ; preds = %121
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str.2, i32 noundef 207, ptr noundef nonnull @__FUNCTION__.mUDPRead, ptr noundef nonnull @.str.10) #9
  br label %.thread159

.thread159:                                       ; preds = %121, %140
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #9
  br label %142

141:                                              ; preds = %121
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #9
  br label %199

142:                                              ; preds = %.thread159, %117
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #9
  store i32 16, ptr %9, align 4, !tbaa !5
  %143 = getelementptr inbounds i8, ptr %24, i64 8
  %144 = load i32, ptr %143, align 8, !tbaa !19
  %145 = load i32, ptr %.0131, align 4, !tbaa !5
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds i8, ptr %24, i64 12
  %148 = call i64 @recvfrom(i32 noundef %144, ptr noundef %.0130, i64 noundef %146, i32 noundef 0, ptr noundef nonnull %147, ptr noundef nonnull %9) #9
  %149 = trunc i64 %148 to i32
  %150 = load i32, ptr %.0131, align 4, !tbaa !5
  %151 = icmp sgt i32 %150, %149
  br i1 %151, label %152, label %155

152:                                              ; preds = %142
  %sext = shl i64 %148, 32
  %153 = ashr exact i64 %sext, 32
  %154 = getelementptr inbounds i8, ptr %1, i64 %153
  store i8 0, ptr %154, align 1, !tbaa !23
  br label %155

155:                                              ; preds = %152, %142
  store i32 %149, ptr %.0131, align 4, !tbaa !5
  %156 = load i32, ptr %24, align 8, !tbaa !18
  %157 = call i32 @__bswap_32(i32 noundef 0)
  %158 = icmp eq i32 %156, %157
  %159 = getelementptr inbounds i8, ptr %24, i64 16
  br i1 %158, label %160, label %176

160:                                              ; preds = %155
  %161 = getelementptr inbounds i8, ptr %24, i64 32
  %162 = load i8, ptr %159, align 1, !tbaa !23
  %163 = zext i8 %162 to i32
  %164 = getelementptr inbounds i8, ptr %24, i64 17
  %165 = load i8, ptr %164, align 1, !tbaa !23
  %166 = zext i8 %165 to i32
  %167 = getelementptr inbounds i8, ptr %24, i64 18
  %168 = load i8, ptr %167, align 1, !tbaa !23
  %169 = zext i8 %168 to i32
  %170 = getelementptr inbounds i8, ptr %24, i64 19
  %171 = load i8, ptr %170, align 1, !tbaa !23
  %172 = zext i8 %171 to i32
  %173 = getelementptr inbounds i8, ptr %24, i64 4
  %174 = load i32, ptr %173, align 4, !tbaa !13
  %175 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %161, ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %163, i32 noundef %166, i32 noundef %169, i32 noundef %172, i32 noundef %174) #9
  br label %198

176:                                              ; preds = %155
  %177 = load i32, ptr %159, align 4, !tbaa !22
  %178 = getelementptr inbounds i8, ptr %.0130, i64 -8
  store i32 %177, ptr %178, align 4, !tbaa !5
  %179 = load i32, ptr %24, align 8, !tbaa !18
  %180 = icmp eq i32 %177, %179
  br i1 %180, label %181, label %186

181:                                              ; preds = %176
  %182 = load i32, ptr %2, align 4, !tbaa !5
  %183 = load i32, ptr %.0131, align 4, !tbaa !5
  %.154 = call i32 @llvm.smin.i32(i32 %182, i32 %183)
  store i32 %.154, ptr %2, align 4, !tbaa !5
  %184 = sext i32 %.154 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %1, ptr nonnull align 4 %.0130, i64 %184, i1 false)
  %185 = getelementptr inbounds i8, ptr %24, i64 32
  br label %198

186:                                              ; preds = %176
  %187 = getelementptr inbounds i8, ptr %24, i64 72
  %188 = load ptr, ptr %187, align 8, !tbaa !25
  %189 = getelementptr inbounds i8, ptr %24, i64 80
  %190 = load i32, ptr %189, align 8, !tbaa !29
  %191 = getelementptr inbounds i8, ptr %24, i64 64
  %192 = load ptr, ptr %191, align 8, !tbaa !24
  %193 = add i32 %149, 8
  %194 = call ptr @mListWrite(ptr noundef %188, i32 noundef %190, ptr noundef %192, i32 noundef %193) #9
  %195 = load i32, ptr %189, align 8, !tbaa !29
  %196 = add nsw i32 %195, 1
  %197 = icmp eq i32 %196, 128
  %spec.select155 = select i1 %197, i32 0, i32 %196
  store i32 %spec.select155, ptr %189, align 8, !tbaa !29
  br label %198

198:                                              ; preds = %186, %181, %160
  %.5 = phi ptr [ %161, %160 ], [ %185, %181 ], [ null, %186 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #9
  br label %199

199:                                              ; preds = %141, %.thread157, %198
  %.6 = phi ptr [ %.5, %198 ], [ null, %141 ], [ %112, %.thread157 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #9
  ret ptr %.6
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @__bswap_32(i32 noundef) local_unnamed_addr #5

; Function Attrs: nounwind
declare i32 @bind(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #4

declare ptr @m_Malloc(i32 noundef) local_unnamed_addr #2

declare ptr @ListCreate(i32 noundef, ptr noundef) local_unnamed_addr #2

declare void @m_PropertyVariate(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #6

declare void @mListElementDelete(ptr noundef, i32 noundef) local_unnamed_addr #2

declare i32 @select(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare i64 @recvfrom(i32 noundef, ptr noundef, i64 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare ptr @mListWrite(ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #7

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nofree nounwind "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 #4 = { nounwind "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 #5 = { inlinehint 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 #6 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #9 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 16}
!10 = !{!"MHandle", !6, i64 0, !6, i64 4, !11, i64 8, !11, i64 16}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!10, !6, i64 4}
!13 = !{!14, !6, i64 4}
!14 = !{!"HandleUDPRead", !6, i64 0, !6, i64 4, !6, i64 8, !15, i64 12, !6, i64 28, !7, i64 32, !11, i64 64, !11, i64 72, !6, i64 80}
!15 = !{!"sockaddr_in", !16, i64 0, !16, i64 2, !17, i64 4, !7, i64 8}
!16 = !{!"short", !7, i64 0}
!17 = !{!"in_addr", !6, i64 0}
!18 = !{!14, !6, i64 0}
!19 = !{!14, !6, i64 8}
!20 = !{!14, !16, i64 12}
!21 = !{!14, !16, i64 14}
!22 = !{!14, !6, i64 16}
!23 = !{!7, !7, i64 0}
!24 = !{!14, !11, i64 64}
!25 = !{!14, !11, i64 72}
!26 = !{!14, !6, i64 28}
!27 = !{!28, !6, i64 0}
!28 = !{!"MList", !6, i64 0, !11, i64 8}
!29 = !{!14, !6, i64 80}
!30 = !{!28, !11, i64 8}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}
!33 = !{!11, !11, i64 0}
!34 = !{!35, !36, i64 0}
!35 = !{!"timeval", !36, i64 0, !36, i64 8}
!36 = !{!"long", !7, i64 0}
!37 = !{!35, !36, i64 8}
!38 = !{!36, !36, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass