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

@.str.1 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [78 x i8], align 1
@__FUNCTION__.mUDPWrite = external hidden unnamed_addr constant [10 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [14 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 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

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

; Function Attrs: nounwind uwtable
define dso_local ptr @mUDPWrite(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca [32 x i8], align 16
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca %struct.sockaddr_in, align 4
  %16 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !9
  br label %17

17:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  %19 = icmp eq ptr %18, null
  %20 = zext i1 %19 to i32
  store i32 %20, ptr %7, align 4, !tbaa !9
  %21 = load i32, ptr %7, align 4, !tbaa !9
  %22 = icmp ne i32 %21, 0
  br i1 %22, label %23, label %25

23:                                               ; preds = %17
  %24 = load i32, ptr %7, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %24, i32 noundef -1, ptr noundef @.str.2, i32 noundef 57, ptr noundef @__FUNCTION__.mUDPWrite, ptr noundef @.str.3)
  br label %25

25:                                               ; preds = %23, %17
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %26

26:                                               ; preds = %25
  %27 = load i32, ptr %6, align 4, !tbaa !9
  %28 = icmp slt i32 %27, 0
  br i1 %28, label %29, label %33

29:                                               ; preds = %26
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  %31 = call i64 @strlen(ptr noundef %30) #7
  %32 = trunc i64 %31 to i32
  store i32 %32, ptr %6, align 4, !tbaa !9
  br label %33

33:                                               ; preds = %29, %26
  br label %34

34:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %35 = load i32, ptr %6, align 4, !tbaa !9
  %36 = icmp sgt i32 %35, 65507
  %37 = zext i1 %36 to i32
  store i32 %37, ptr %8, align 4, !tbaa !9
  %38 = load i32, ptr %8, align 4, !tbaa !9
  %39 = icmp ne i32 %38, 0
  br i1 %39, label %40, label %42

40:                                               ; preds = %34
  %41 = load i32, ptr %8, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %41, i32 noundef -1, ptr noundef @.str.2, i32 noundef 58, ptr noundef @__FUNCTION__.mUDPWrite, ptr noundef @.str.4)
  br label %42

42:                                               ; preds = %40, %34
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %43

43:                                               ; preds = %42
  br label %44

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

50:                                               ; preds = %44
  %51 = load i32, ptr %9, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %51, i32 noundef -1, ptr noundef @.str.2, i32 noundef 60, ptr noundef @__FUNCTION__.mUDPWrite, ptr noundef @.str.5)
  br label %52

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

53:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 0, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 0, ptr %11, align 4, !tbaa !9
  %54 = load ptr, ptr %4, align 8, !tbaa !5
  call void @IPAddress(ptr noundef %54, ptr noundef %10, ptr noundef %11)
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #6
  %55 = getelementptr inbounds [32 x i8], ptr %12, i64 0, i64 0
  %56 = load i32, ptr %11, align 4, !tbaa !9
  %57 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %55, ptr noundef @.str.6, i32 noundef %56) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %58 = getelementptr inbounds [32 x i8], ptr %12, i64 0, i64 0
  %59 = call ptr @mMornObject(ptr noundef %58, i32 noundef -1)
  %60 = call ptr @GetHandle(ptr noundef %59, i32 noundef 36, i32 noundef 211106373, ptr noundef @endUDPWrite)
  store ptr %60, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %61 = load ptr, ptr %13, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.MHandle, ptr %61, i32 0, i32 3
  %63 = load ptr, ptr %62, align 8, !tbaa !11
  store ptr %63, ptr %14, align 8, !tbaa !5
  %64 = load ptr, ptr %13, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.MHandle, ptr %64, i32 0, i32 1
  %66 = load volatile i32, ptr %65, align 4, !tbaa !13
  %67 = icmp eq i32 %66, 0
  br i1 %67, label %68, label %80

68:                                               ; preds = %53
  %69 = call i32 @socket(i32 noundef 2, i32 noundef 2, i32 noundef 17) #6
  %70 = load ptr, ptr %14, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.HandleUDPWrite, ptr %70, i32 0, i32 0
  store i32 %69, ptr %71, align 4, !tbaa !14
  br label %72

72:                                               ; preds = %68
  %73 = getelementptr inbounds [32 x i8], ptr %12, i64 0, i64 0
  %74 = call ptr @mMornObject(ptr noundef %73, i32 noundef -1)
  %75 = getelementptr inbounds [32 x i8], ptr %12, i64 0, i64 0
  call void @m_PropertyFunction(ptr noundef %74, ptr noundef @.str.7, ptr noundef @mornObjectRemove, ptr noundef %75)
  br label %76

76:                                               ; preds = %72
  br label %77

77:                                               ; preds = %76
  %78 = load ptr, ptr %13, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.MHandle, ptr %78, i32 0, i32 1
  store volatile i32 1, ptr %79, align 4, !tbaa !13
  br label %80

80:                                               ; preds = %77, %53
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #6
  %81 = getelementptr inbounds %struct.sockaddr_in, ptr %15, i32 0, i32 0
  store i16 2, ptr %81, align 4, !tbaa !16
  %82 = load i32, ptr %11, align 4, !tbaa !9
  %83 = trunc i32 %82 to i16
  %84 = call zeroext i16 @__bswap_16(i16 noundef zeroext %83)
  %85 = getelementptr inbounds %struct.sockaddr_in, ptr %15, i32 0, i32 1
  store i16 %84, ptr %85, align 2, !tbaa !20
  %86 = load i32, ptr %10, align 4, !tbaa !9
  %87 = getelementptr inbounds %struct.sockaddr_in, ptr %15, i32 0, i32 2
  %88 = getelementptr inbounds %struct.in_addr, ptr %87, i32 0, i32 0
  store i32 %86, ptr %88, align 4, !tbaa !21
  %89 = load ptr, ptr %14, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.HandleUDPWrite, ptr %89, i32 0, i32 0
  %91 = load i32, ptr %90, align 4, !tbaa !14
  %92 = load ptr, ptr %5, align 8, !tbaa !5
  %93 = load i32, ptr %6, align 4, !tbaa !9
  %94 = sext i32 %93 to i64
  %95 = call i64 @sendto(i32 noundef %91, ptr noundef %92, i64 noundef %94, i32 noundef 0, ptr noundef %15, i32 noundef 16)
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  store ptr %10, ptr %16, align 8, !tbaa !5
  %96 = load ptr, ptr %14, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.HandleUDPWrite, ptr %96, i32 0, i32 1
  %98 = getelementptr inbounds [32 x i8], ptr %97, i64 0, i64 0
  %99 = load ptr, ptr %16, align 8, !tbaa !5
  %100 = getelementptr inbounds i8, ptr %99, i64 0
  %101 = load i8, ptr %100, align 1, !tbaa !22
  %102 = zext i8 %101 to i32
  %103 = load ptr, ptr %16, align 8, !tbaa !5
  %104 = getelementptr inbounds i8, ptr %103, i64 1
  %105 = load i8, ptr %104, align 1, !tbaa !22
  %106 = zext i8 %105 to i32
  %107 = load ptr, ptr %16, align 8, !tbaa !5
  %108 = getelementptr inbounds i8, ptr %107, i64 2
  %109 = load i8, ptr %108, align 1, !tbaa !22
  %110 = zext i8 %109 to i32
  %111 = load ptr, ptr %16, align 8, !tbaa !5
  %112 = getelementptr inbounds i8, ptr %111, i64 3
  %113 = load i8, ptr %112, align 1, !tbaa !22
  %114 = zext i8 %113 to i32
  %115 = load i32, ptr %11, align 4, !tbaa !9
  %116 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %98, ptr noundef @.str.1, i32 noundef %102, i32 noundef %106, i32 noundef %110, i32 noundef %114, i32 noundef %115) #6
  %117 = load ptr, ptr %14, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.HandleUDPWrite, ptr %117, i32 0, i32 1
  %119 = getelementptr inbounds [32 x i8], ptr %118, i64 0, i64 0
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  ret ptr %119
}

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

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #3

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

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) #4

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) #5

declare i64 @sendto(i32 noundef, ptr noundef, i64 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 willreturn memory(read) "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 = { nounwind }
attributes #7 = { nounwind willreturn memory(read) }

!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 0}
!15 = !{!"HandleUDPWrite", !10, i64 0, !7, i64 4}
!16 = !{!17, !18, i64 0}
!17 = !{!"sockaddr_in", !18, i64 0, !18, i64 2, !19, i64 4, !7, i64 8}
!18 = !{!"short", !7, i64 0}
!19 = !{!"in_addr", !10, i64 0}
!20 = !{!17, !18, i64 2}
!21 = !{!17, !10, i64 4}
!22 = !{!7, !7, i64 0}


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

@.str.1 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [78 x i8], align 1
@__FUNCTION__.mUDPWrite = external hidden unnamed_addr constant [10 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [14 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 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

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

; Function Attrs: nounwind uwtable
define dso_local noundef nonnull ptr @mUDPWrite(ptr noundef %0, ptr noundef %1, i32 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.sockaddr_in, align 4
  %8 = icmp eq ptr %1, null
  br i1 %8, label %9, label %10

9:                                                ; 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 57, ptr noundef nonnull @__FUNCTION__.mUDPWrite, ptr noundef nonnull @.str.3) #7
  br label %10

10:                                               ; preds = %9, %3
  %11 = icmp slt i32 %2, 0
  br i1 %11, label %12, label %15

12:                                               ; preds = %10
  %13 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %1) #8
  %14 = trunc i64 %13 to i32
  br label %15

15:                                               ; preds = %10, %12
  %.0 = phi i32 [ %14, %12 ], [ %2, %10 ]
  %16 = icmp sgt i32 %.0, 65507
  br i1 %16, label %17, label %18

17:                                               ; preds = %15
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str.2, i32 noundef 58, ptr noundef nonnull @__FUNCTION__.mUDPWrite, ptr noundef nonnull @.str.4) #7
  br label %18

18:                                               ; preds = %17, %15
  %19 = icmp eq ptr %0, null
  br i1 %19, label %20, label %21

20:                                               ; preds = %18
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str.2, i32 noundef 60, ptr noundef nonnull @__FUNCTION__.mUDPWrite, ptr noundef nonnull @.str.5) #7
  br label %21

21:                                               ; preds = %20, %18
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #7
  store i32 0, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  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) #7
  %22 = load i32, ptr %5, align 4, !tbaa !5
  %23 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.6, i32 noundef %22) #7
  %24 = call ptr @mMornObject(ptr noundef nonnull %6, i32 noundef -1) #7
  %25 = call ptr @GetHandle(ptr noundef %24, i32 noundef 36, i32 noundef 211106373, ptr noundef nonnull @endUDPWrite) #7
  %26 = getelementptr inbounds i8, ptr %25, i64 16
  %27 = load ptr, ptr %26, align 8, !tbaa !9
  %28 = getelementptr inbounds i8, ptr %25, i64 4
  %29 = load volatile i32, ptr %28, align 4, !tbaa !12
  %30 = icmp eq i32 %29, 0
  br i1 %30, label %31, label %34

31:                                               ; preds = %21
  %32 = call i32 @socket(i32 noundef 2, i32 noundef 2, i32 noundef 17) #7
  store i32 %32, ptr %27, align 4, !tbaa !13
  %33 = call ptr @mMornObject(ptr noundef nonnull %6, i32 noundef -1) #7
  call void @m_PropertyFunction(ptr noundef %33, ptr noundef nonnull @.str.7, ptr noundef nonnull @mornObjectRemove, ptr noundef nonnull %6) #7
  store volatile i32 1, ptr %28, align 4, !tbaa !12
  br label %34

34:                                               ; preds = %31, %21
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #7
  store i16 2, ptr %7, align 4, !tbaa !15
  %35 = load i32, ptr %5, align 4, !tbaa !5
  %36 = trunc i32 %35 to i16
  %37 = call zeroext i16 @__bswap_16(i16 noundef zeroext %36)
  %38 = getelementptr inbounds i8, ptr %7, i64 2
  store i16 %37, ptr %38, align 2, !tbaa !19
  %39 = load i32, ptr %4, align 4, !tbaa !5
  %40 = getelementptr inbounds i8, ptr %7, i64 4
  store i32 %39, ptr %40, align 4, !tbaa !20
  %41 = load i32, ptr %27, align 4, !tbaa !13
  %42 = sext i32 %.0 to i64
  %43 = call i64 @sendto(i32 noundef %41, ptr noundef %1, i64 noundef %42, i32 noundef 0, ptr noundef nonnull %7, i32 noundef 16) #7
  %44 = getelementptr inbounds i8, ptr %27, i64 4
  %45 = load i8, ptr %4, align 4, !tbaa !21
  %46 = zext i8 %45 to i32
  %47 = getelementptr inbounds i8, ptr %4, i64 1
  %48 = load i8, ptr %47, align 1, !tbaa !21
  %49 = zext i8 %48 to i32
  %50 = getelementptr inbounds i8, ptr %4, i64 2
  %51 = load i8, ptr %50, align 2, !tbaa !21
  %52 = zext i8 %51 to i32
  %53 = getelementptr inbounds i8, ptr %4, i64 3
  %54 = load i8, ptr %53, align 1, !tbaa !21
  %55 = zext i8 %54 to i32
  %56 = load i32, ptr %5, align 4, !tbaa !5
  %57 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %44, ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %46, i32 noundef %49, i32 noundef %52, i32 noundef %55, i32 noundef %56) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  ret ptr %44
}

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #3

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

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 #5

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 #6

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 = { 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 #5 = { 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 #6 = { 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 #7 = { nounwind }
attributes #8 = { nounwind willreturn memory(read) }

!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 0}
!14 = !{!"HandleUDPWrite", !6, i64 0, !7, i64 4}
!15 = !{!16, !17, i64 0}
!16 = !{!"sockaddr_in", !17, i64 0, !17, i64 2, !18, i64 4, !7, i64 8}
!17 = !{!"short", !7, i64 0}
!18 = !{!"in_addr", !6, i64 0}
!19 = !{!16, !17, i64 2}
!20 = !{!16, !6, i64 4}
!21 = !{!7, !7, i64 0}


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