; LLVM IR from guanzhi/GmSSL :: src (tls)

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

@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [13 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [5 x i8], align 1
@__FUNCTION__.tls_record_recv = external hidden unnamed_addr constant [16 x i8], align 1

; Function Attrs: nounwind
declare i32 @fprintf(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 ptr @tls_record_type_name(i32 noundef) #2

declare ptr @tls_protocol_name(i32 noundef) #2

; Function Attrs: nounwind willreturn memory(none)
declare ptr @__errno_location() #3

declare i32 @usleep(i32 noundef) #2

; Function Attrs: nounwind uwtable
define dso_local i32 @tls_record_recv(ptr noundef %0, ptr noundef %1, i32 noundef %2) #4 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %12 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %12, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  store i64 5, ptr %9, align 8, !tbaa !11
  br label %13

13:                                               ; preds = %56, %3
  %14 = load i64, ptr %9, align 8, !tbaa !11
  %15 = icmp ne i64 %14, 0
  br i1 %15, label %16, label %57

16:                                               ; preds = %13
  %17 = load i32, ptr %7, align 4, !tbaa !9
  %18 = load ptr, ptr %8, align 8, !tbaa !5
  %19 = load i64, ptr %9, align 8, !tbaa !11
  %20 = call i64 @recv(i32 noundef %17, ptr noundef %18, i64 noundef %19, i32 noundef 0)
  store i64 %20, ptr %10, align 8, !tbaa !11
  %21 = icmp sgt i64 %20, 0
  br i1 %21, label %22, label %29

22:                                               ; preds = %16
  %23 = load i64, ptr %10, align 8, !tbaa !11
  %24 = load ptr, ptr %8, align 8, !tbaa !5
  %25 = getelementptr inbounds i8, ptr %24, i64 %23
  store ptr %25, ptr %8, align 8, !tbaa !5
  %26 = load i64, ptr %10, align 8, !tbaa !11
  %27 = load i64, ptr %9, align 8, !tbaa !11
  %28 = sub i64 %27, %26
  store i64 %28, ptr %9, align 8, !tbaa !11
  br label %56

29:                                               ; preds = %16
  %30 = load i64, ptr %10, align 8, !tbaa !11
  %31 = icmp eq i64 %30, 0
  br i1 %31, label %32, label %34

32:                                               ; preds = %29
  %33 = load ptr, ptr %6, align 8, !tbaa !5
  store i64 0, ptr %33, align 8, !tbaa !11
  store i32 0, ptr %4, align 4
  store i32 1, ptr %11, align 4
  br label %155

34:                                               ; preds = %29
  %35 = call ptr @__errno_location() #6
  %36 = load i32, ptr %35, align 4, !tbaa !9
  %37 = icmp eq i32 %36, 11
  br i1 %37, label %42, label %38

38:                                               ; preds = %34
  %39 = call ptr @__errno_location() #6
  %40 = load i32, ptr %39, align 4, !tbaa !9
  %41 = icmp eq i32 %40, 11
  br i1 %41, label %42, label %48

42:                                               ; preds = %38, %34
  %43 = load i64, ptr %9, align 8, !tbaa !11
  %44 = icmp eq i64 %43, 5
  br i1 %44, label %45, label %46

45:                                               ; preds = %42
  store i32 -11, ptr %4, align 4
  store i32 1, ptr %11, align 4
  br label %155

46:                                               ; preds = %42
  %47 = call i32 @usleep(i32 noundef 1000)
  br label %54

48:                                               ; preds = %38
  call void @perror(ptr noundef @.str.10)
  br label %49

49:                                               ; preds = %48
  %50 = load ptr, ptr @stderr, align 8, !tbaa !5
  %51 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %50, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 1520, ptr noundef @__FUNCTION__.tls_record_recv) #5
  br label %52

52:                                               ; preds = %49
  br label %53

53:                                               ; preds = %52
  store i32 -1, ptr %4, align 4
  store i32 1, ptr %11, align 4
  br label %155

54:                                               ; preds = %46
  br label %55

55:                                               ; preds = %54
  br label %56

56:                                               ; preds = %55, %22
  br label %13, !llvm.loop !13

57:                                               ; preds = %13
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  %59 = getelementptr inbounds i8, ptr %58, i64 0
  %60 = load i8, ptr %59, align 1, !tbaa !15
  %61 = zext i8 %60 to i32
  %62 = call ptr @tls_record_type_name(i32 noundef %61)
  %63 = icmp ne ptr %62, null
  br i1 %63, label %70, label %64

64:                                               ; preds = %57
  br label %65

65:                                               ; preds = %64
  %66 = load ptr, ptr @stderr, align 8, !tbaa !5
  %67 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %66, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 1526, ptr noundef @__FUNCTION__.tls_record_recv) #5
  br label %68

68:                                               ; preds = %65
  br label %69

69:                                               ; preds = %68
  store i32 -1, ptr %4, align 4
  store i32 1, ptr %11, align 4
  br label %155

70:                                               ; preds = %57
  %71 = load ptr, ptr %5, align 8, !tbaa !5
  %72 = getelementptr inbounds i8, ptr %71, i64 1
  %73 = load i8, ptr %72, align 1, !tbaa !15
  %74 = zext i8 %73 to i16
  %75 = zext i16 %74 to i32
  %76 = shl i32 %75, 8
  %77 = load ptr, ptr %5, align 8, !tbaa !5
  %78 = getelementptr inbounds i8, ptr %77, i64 2
  %79 = load i8, ptr %78, align 1, !tbaa !15
  %80 = zext i8 %79 to i32
  %81 = or i32 %76, %80
  %82 = call ptr @tls_protocol_name(i32 noundef %81)
  %83 = icmp ne ptr %82, null
  br i1 %83, label %90, label %84

84:                                               ; preds = %70
  br label %85

85:                                               ; preds = %84
  %86 = load ptr, ptr @stderr, align 8, !tbaa !5
  %87 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %86, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 1530, ptr noundef @__FUNCTION__.tls_record_recv) #5
  br label %88

88:                                               ; preds = %85
  br label %89

89:                                               ; preds = %88
  store i32 -1, ptr %4, align 4
  store i32 1, ptr %11, align 4
  br label %155

90:                                               ; preds = %70
  %91 = load ptr, ptr %5, align 8, !tbaa !5
  %92 = getelementptr inbounds i8, ptr %91, i64 3
  %93 = load i8, ptr %92, align 1, !tbaa !15
  %94 = zext i8 %93 to i64
  %95 = shl i64 %94, 8
  %96 = load ptr, ptr %5, align 8, !tbaa !5
  %97 = getelementptr inbounds i8, ptr %96, i64 4
  %98 = load i8, ptr %97, align 1, !tbaa !15
  %99 = zext i8 %98 to i64
  %100 = or i64 %95, %99
  store i64 %100, ptr %9, align 8, !tbaa !11
  %101 = load i64, ptr %9, align 8, !tbaa !11
  %102 = add i64 5, %101
  %103 = load ptr, ptr %6, align 8, !tbaa !5
  store i64 %102, ptr %103, align 8, !tbaa !11
  %104 = load ptr, ptr %6, align 8, !tbaa !5
  %105 = load i64, ptr %104, align 8, !tbaa !11
  %106 = icmp ugt i64 %105, 18437
  br i1 %106, label %107, label %113

107:                                              ; preds = %90
  br label %108

108:                                              ; preds = %107
  %109 = load ptr, ptr @stderr, align 8, !tbaa !5
  %110 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %109, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 1538, ptr noundef @__FUNCTION__.tls_record_recv) #5
  br label %111

111:                                              ; preds = %108
  br label %112

112:                                              ; preds = %111
  store i32 -1, ptr %4, align 4
  store i32 1, ptr %11, align 4
  br label %155

113:                                              ; preds = %90
  br label %114

114:                                              ; preds = %153, %113
  %115 = load i64, ptr %9, align 8, !tbaa !11
  %116 = icmp ne i64 %115, 0
  br i1 %116, label %117, label %154

117:                                              ; preds = %114
  %118 = load i32, ptr %7, align 4, !tbaa !9
  %119 = load ptr, ptr %8, align 8, !tbaa !5
  %120 = load i64, ptr %9, align 8, !tbaa !11
  %121 = call i64 @recv(i32 noundef %118, ptr noundef %119, i64 noundef %120, i32 noundef 0)
  store i64 %121, ptr %10, align 8, !tbaa !11
  %122 = icmp sgt i64 %121, 0
  br i1 %122, label %123, label %130

123:                                              ; preds = %117
  %124 = load i64, ptr %10, align 8, !tbaa !11
  %125 = load ptr, ptr %8, align 8, !tbaa !5
  %126 = getelementptr inbounds i8, ptr %125, i64 %124
  store ptr %126, ptr %8, align 8, !tbaa !5
  %127 = load i64, ptr %10, align 8, !tbaa !11
  %128 = load i64, ptr %9, align 8, !tbaa !11
  %129 = sub i64 %128, %127
  store i64 %129, ptr %9, align 8, !tbaa !11
  br label %153

130:                                              ; preds = %117
  %131 = load i64, ptr %10, align 8, !tbaa !11
  %132 = icmp eq i64 %131, 0
  br i1 %132, label %133, label %135

133:                                              ; preds = %130
  %134 = load ptr, ptr %6, align 8, !tbaa !5
  store i64 0, ptr %134, align 8, !tbaa !11
  store i32 0, ptr %4, align 4
  store i32 1, ptr %11, align 4
  br label %155

135:                                              ; preds = %130
  %136 = call ptr @__errno_location() #6
  %137 = load i32, ptr %136, align 4, !tbaa !9
  %138 = icmp eq i32 %137, 11
  br i1 %138, label %143, label %139

139:                                              ; preds = %135
  %140 = call ptr @__errno_location() #6
  %141 = load i32, ptr %140, align 4, !tbaa !9
  %142 = icmp eq i32 %141, 11
  br i1 %142, label %143, label %145

143:                                              ; preds = %139, %135
  %144 = call i32 @usleep(i32 noundef 1000)
  br label %151

145:                                              ; preds = %139
  call void @perror(ptr noundef @.str.10)
  br label %146

146:                                              ; preds = %145
  %147 = load ptr, ptr @stderr, align 8, !tbaa !5
  %148 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %147, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 1555, ptr noundef @__FUNCTION__.tls_record_recv) #5
  br label %149

149:                                              ; preds = %146
  br label %150

150:                                              ; preds = %149
  store i32 -1, ptr %4, align 4
  store i32 1, ptr %11, align 4
  br label %155

151:                                              ; preds = %143
  br label %152

152:                                              ; preds = %151
  br label %153

153:                                              ; preds = %152, %123
  br label %114, !llvm.loop !16

154:                                              ; preds = %114
  store i32 1, ptr %4, align 4
  store i32 1, ptr %11, align 4
  br label %155

155:                                              ; preds = %154, %150, %133, %112, %89, %69, %53, %45, %32
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  %156 = load i32, ptr %4, align 4
  ret i32 %156
}

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

declare void @perror(ptr noundef) #2

attributes #0 = { 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 #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(none) "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 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 = { nounwind }
attributes #6 = { nounwind willreturn memory(none) }

!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, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!7, !7, i64 0}
!16 = distinct !{!16, !14}


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

@stderr = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [13 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [5 x i8], align 1
@__FUNCTION__.tls_record_recv = external hidden unnamed_addr constant [16 x i8], align 1

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #0

declare ptr @tls_record_type_name(i32 noundef) local_unnamed_addr #1

declare ptr @tls_protocol_name(i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none)
declare ptr @__errno_location() local_unnamed_addr #2

declare i32 @usleep(i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local range(i32 -11, 2) i32 @tls_record_recv(ptr noundef %0, ptr nocapture noundef writeonly %1, i32 noundef %2) local_unnamed_addr #3 {
  br label %4

4:                                                ; preds = %3, %24
  %.047 = phi i64 [ 5, %3 ], [ %.1, %24 ]
  %.03046 = phi ptr [ %0, %3 ], [ %.131, %24 ]
  %5 = tail call i64 @recv(i32 noundef %2, ptr noundef %.03046, i64 noundef %.047, i32 noundef 0) #4
  %6 = icmp sgt i64 %5, 0
  br i1 %6, label %7, label %10

7:                                                ; preds = %4
  %8 = getelementptr inbounds i8, ptr %.03046, i64 %5
  %9 = sub i64 %.047, %5
  br label %24

10:                                               ; preds = %4
  %11 = icmp eq i64 %5, 0
  br i1 %11, label %12, label %13

12:                                               ; preds = %10
  store i64 0, ptr %1, align 8, !tbaa !5
  br label %.loopexit

13:                                               ; preds = %10
  %14 = tail call ptr @__errno_location() #5
  %15 = load i32, ptr %14, align 4, !tbaa !9
  %16 = icmp eq i32 %15, 11
  br i1 %16, label %17, label %21

17:                                               ; preds = %13
  %18 = icmp eq i64 %.047, 5
  br i1 %18, label %.loopexit, label %19

19:                                               ; preds = %17
  %20 = tail call i32 @usleep(i32 noundef 1000) #4
  br label %24

21:                                               ; preds = %13
  tail call void @perror(ptr noundef nonnull @.str.10) #6
  %22 = load ptr, ptr @stderr, align 8, !tbaa !11
  %23 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %22, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 1520, ptr noundef nonnull @__FUNCTION__.tls_record_recv) #7
  br label %.loopexit

24:                                               ; preds = %19, %7
  %.131 = phi ptr [ %8, %7 ], [ %.03046, %19 ]
  %.1 = phi i64 [ %9, %7 ], [ %.047, %19 ]
  %.not = icmp eq i64 %.1, 0
  br i1 %.not, label %25, label %4, !llvm.loop !13

25:                                               ; preds = %24
  %26 = load i8, ptr %0, align 1, !tbaa !15
  %27 = zext i8 %26 to i32
  %28 = tail call ptr @tls_record_type_name(i32 noundef %27) #4
  %.not39 = icmp eq ptr %28, null
  br i1 %.not39, label %29, label %32

29:                                               ; preds = %25
  %30 = load ptr, ptr @stderr, align 8, !tbaa !11
  %31 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %30, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 1526, ptr noundef nonnull @__FUNCTION__.tls_record_recv) #7
  br label %.loopexit

32:                                               ; preds = %25
  %33 = getelementptr inbounds i8, ptr %0, i64 1
  %34 = load i8, ptr %33, align 1, !tbaa !15
  %35 = zext i8 %34 to i32
  %36 = shl nuw nsw i32 %35, 8
  %37 = getelementptr inbounds i8, ptr %0, i64 2
  %38 = load i8, ptr %37, align 1, !tbaa !15
  %39 = zext i8 %38 to i32
  %40 = or disjoint i32 %36, %39
  %41 = tail call ptr @tls_protocol_name(i32 noundef %40) #4
  %.not40 = icmp eq ptr %41, null
  br i1 %.not40, label %42, label %45

42:                                               ; preds = %32
  %43 = load ptr, ptr @stderr, align 8, !tbaa !11
  %44 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %43, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 1530, ptr noundef nonnull @__FUNCTION__.tls_record_recv) #7
  br label %.loopexit

45:                                               ; preds = %32
  %46 = getelementptr inbounds i8, ptr %0, i64 3
  %47 = load i8, ptr %46, align 1, !tbaa !15
  %48 = zext i8 %47 to i64
  %49 = shl nuw nsw i64 %48, 8
  %50 = getelementptr inbounds i8, ptr %0, i64 4
  %51 = load i8, ptr %50, align 1, !tbaa !15
  %52 = zext i8 %51 to i64
  %53 = or disjoint i64 %49, %52
  %54 = add nuw nsw i64 %53, 5
  store i64 %54, ptr %1, align 8, !tbaa !5
  %55 = icmp ugt i64 %53, 18432
  br i1 %55, label %56, label %.preheader

.preheader:                                       ; preds = %45
  %.not4148 = icmp eq i64 %53, 0
  br i1 %.not4148, label %.loopexit, label %.lr.ph

56:                                               ; preds = %45
  %57 = load ptr, ptr @stderr, align 8, !tbaa !11
  %58 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %57, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 1538, ptr noundef nonnull @__FUNCTION__.tls_record_recv) #7
  br label %.loopexit

.lr.ph:                                           ; preds = %.preheader, %76
  %.250 = phi i64 [ %.3, %76 ], [ %53, %.preheader ]
  %.23249 = phi ptr [ %.333, %76 ], [ %.131, %.preheader ]
  %59 = tail call i64 @recv(i32 noundef %2, ptr noundef %.23249, i64 noundef %.250, i32 noundef 0) #4
  %60 = icmp sgt i64 %59, 0
  br i1 %60, label %61, label %64

61:                                               ; preds = %.lr.ph
  %62 = getelementptr inbounds i8, ptr %.23249, i64 %59
  %63 = sub i64 %.250, %59
  br label %76

64:                                               ; preds = %.lr.ph
  %65 = icmp eq i64 %59, 0
  br i1 %65, label %66, label %67

66:                                               ; preds = %64
  store i64 0, ptr %1, align 8, !tbaa !5
  br label %.loopexit

67:                                               ; preds = %64
  %68 = tail call ptr @__errno_location() #5
  %69 = load i32, ptr %68, align 4, !tbaa !9
  %70 = icmp eq i32 %69, 11
  br i1 %70, label %71, label %73

71:                                               ; preds = %67
  %72 = tail call i32 @usleep(i32 noundef 1000) #4
  br label %76

73:                                               ; preds = %67
  tail call void @perror(ptr noundef nonnull @.str.10) #6
  %74 = load ptr, ptr @stderr, align 8, !tbaa !11
  %75 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %74, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 1555, ptr noundef nonnull @__FUNCTION__.tls_record_recv) #7
  br label %.loopexit

76:                                               ; preds = %71, %61
  %.333 = phi ptr [ %62, %61 ], [ %.23249, %71 ]
  %.3 = phi i64 [ %63, %61 ], [ %.250, %71 ]
  %.not41 = icmp eq i64 %.3, 0
  br i1 %.not41, label %.loopexit, label %.lr.ph, !llvm.loop !16

.loopexit:                                        ; preds = %17, %76, %.preheader, %73, %66, %56, %42, %29, %21, %12
  %.034 = phi i32 [ 0, %12 ], [ -1, %21 ], [ -1, %56 ], [ 0, %66 ], [ -1, %73 ], [ -1, %42 ], [ -1, %29 ], [ 1, %.preheader ], [ 1, %76 ], [ -11, %17 ]
  ret i32 %.034
}

declare i64 @recv(i32 noundef, ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nofree nounwind
declare void @perror(ptr nocapture noundef readonly) local_unnamed_addr #0

attributes #0 = { 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 #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 = { mustprogress nofree nosync nounwind willreturn memory(none) "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 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 #4 = { nounwind }
attributes #5 = { nounwind willreturn memory(none) }
attributes #6 = { cold }
attributes #7 = { cold 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 = !{!"long", !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, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!7, !7, i64 0}
!16 = distinct !{!16, !14}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass