; LLVM IR from kala13x/libxutils :: src/net (api)

; 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.xhttp_ = type { ptr, i16, ptr, i32, %struct.XByteBuffer, i32, %struct.XMap, i16, i16, i64, i64, i64, i64, i64, i8, i8, i8, [256 x i8], [128 x i8], [2048 x i8] }
%struct.XByteBuffer = type { ptr, i64, i64, i16, i16, i32 }
%struct.XMap = type { ptr, ptr, ptr, i64, i64, i32 }
%struct.xapi_data_ = type { [128 x i8], [128 x i8], [2048 x i8], i16, %struct.XSocket, i32, i8, i8, i8, i8, i8, i8, %struct.XByteBuffer, %struct.XByteBuffer, ptr, i32, i32, ptr, ptr, ptr }
%struct.XSocket = type { i32, %union.xsock_addr_t, i32, i32, i16, i32, i32, i32, i32, ptr }
%union.xsock_addr_t = type { %struct.sockaddr_in, [96 x i8] }
%struct.sockaddr_in = type { i16, i16, %struct.in_addr, [8 x i8] }
%struct.in_addr = type { i32 }

@.str.17 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [17 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local ptr @XAPI_GetStatusStr(i32 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 hidden i32 @XAPI_ErrorCb(ptr noundef, ptr noundef, i32 noundef, i8 noundef zeroext) #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @XAPI_EnableEvent(ptr noundef, i32 noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @XAPI_PutTxBuff(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
define dso_local i32 @XAPI_RespondHTTP(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca %struct.xhttp_, align 8
  %10 = alloca [2048 x i8], align 16
  %11 = alloca i64, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store i32 %2, ptr %7, align 4, !tbaa !9
  %14 = load ptr, ptr %5, align 8, !tbaa !5
  %15 = icmp ne ptr %14, null
  br i1 %15, label %16, label %21

16:                                               ; preds = %3
  %17 = load ptr, ptr %5, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.xapi_data_, ptr %17, i32 0, i32 17
  %19 = load ptr, ptr %18, align 8, !tbaa !11
  %20 = icmp ne ptr %19, null
  br i1 %20, label %22, label %21

21:                                               ; preds = %16, %3
  store i32 -1, ptr %4, align 4
  br label %103

22:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.xapi_data_, ptr %23, i32 0, i32 17
  %25 = load ptr, ptr %24, align 8, !tbaa !11
  store ptr %25, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 2608, ptr %9) #3
  %26 = load i32, ptr %6, align 4, !tbaa !9
  %27 = trunc i32 %26 to i16
  %28 = call i32 @XHTTP_InitResponse(ptr noundef %9, i16 noundef zeroext %27, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 2048, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  %29 = getelementptr inbounds [2048 x i8], ptr %10, i64 0, i64 0
  %30 = load i32, ptr %7, align 4, !tbaa !9
  %31 = icmp ne i32 %30, 0
  br i1 %31, label %32, label %35

32:                                               ; preds = %22
  %33 = load i32, ptr %7, align 4, !tbaa !9
  %34 = call ptr @XAPI_GetStatusStr(i32 noundef %33)
  br label %38

35:                                               ; preds = %22
  %36 = load i32, ptr %6, align 4, !tbaa !9
  %37 = call ptr @XHTTP_GetCodeStr(i32 noundef %36)
  br label %38

38:                                               ; preds = %35, %32
  %39 = phi ptr [ %34, %32 ], [ %37, %35 ]
  %40 = call i64 (ptr, i64, ptr, ...) @xstrncpyf(ptr noundef %29, i64 noundef 2048, ptr noundef @.str.17, ptr noundef %39)
  store i64 %40, ptr %11, align 8, !tbaa !17
  %41 = load i32, ptr %7, align 4, !tbaa !9
  %42 = icmp eq i32 %41, 6
  br i1 %42, label %43, label %46

43:                                               ; preds = %38
  %44 = call i32 (ptr, ptr, ptr, ...) @XHTTP_AddHeader(ptr noundef %9, ptr noundef @.str.18, ptr noundef @.str.19)
  %45 = icmp slt i32 %44, 0
  br i1 %45, label %58, label %46

46:                                               ; preds = %43, %38
  %47 = call ptr @XUtils_VersionShort()
  %48 = call i32 (ptr, ptr, ptr, ...) @XHTTP_AddHeader(ptr noundef %9, ptr noundef @.str.20, ptr noundef @.str.21, ptr noundef %47)
  %49 = icmp slt i32 %48, 0
  br i1 %49, label %58, label %50

50:                                               ; preds = %46
  %51 = call i32 (ptr, ptr, ptr, ...) @XHTTP_AddHeader(ptr noundef %9, ptr noundef @.str.22, ptr noundef @.str.23)
  %52 = icmp slt i32 %51, 0
  br i1 %52, label %58, label %53

53:                                               ; preds = %50
  %54 = getelementptr inbounds [2048 x i8], ptr %10, i64 0, i64 0
  %55 = load i64, ptr %11, align 8, !tbaa !17
  %56 = call ptr @XHTTP_Assemble(ptr noundef %9, ptr noundef %54, i64 noundef %55)
  %57 = icmp eq ptr %56, null
  br i1 %57, label %58, label %64

58:                                               ; preds = %53, %50, %46, %43
  %59 = load ptr, ptr %8, align 8, !tbaa !5
  %60 = load ptr, ptr %5, align 8, !tbaa !5
  %61 = call i32 @XAPI_ErrorCb(ptr noundef %59, ptr noundef %60, i32 noundef 0, i8 noundef zeroext 8)
  call void @XHTTP_Clear(ptr noundef %9)
  %62 = load ptr, ptr %5, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.xapi_data_, ptr %62, i32 0, i32 6
  store i8 1, ptr %63, align 4, !tbaa !18
  store i32 -1, ptr %4, align 4
  store i32 1, ptr %12, align 4
  br label %102

64:                                               ; preds = %53
  %65 = load i32, ptr %7, align 4, !tbaa !9
  %66 = icmp ugt i32 %65, 0
  br i1 %66, label %67, label %76

67:                                               ; preds = %64
  %68 = load i32, ptr %7, align 4, !tbaa !9
  %69 = icmp ult i32 %68, 14
  br i1 %69, label %70, label %76

70:                                               ; preds = %67
  %71 = load ptr, ptr %8, align 8, !tbaa !5
  %72 = load ptr, ptr %5, align 8, !tbaa !5
  %73 = load i32, ptr %7, align 4, !tbaa !9
  %74 = trunc i32 %73 to i8
  %75 = call i32 @XAPI_ErrorCb(ptr noundef %71, ptr noundef %72, i32 noundef 0, i8 noundef zeroext %74)
  br label %86

76:                                               ; preds = %67, %64
  %77 = load i32, ptr %7, align 4, !tbaa !9
  %78 = icmp ne i32 %77, 0
  br i1 %78, label %79, label %85

79:                                               ; preds = %76
  %80 = load ptr, ptr %8, align 8, !tbaa !5
  %81 = load ptr, ptr %5, align 8, !tbaa !5
  %82 = load i32, ptr %7, align 4, !tbaa !9
  %83 = trunc i32 %82 to i8
  %84 = call i32 @XAPI_StatusCb(ptr noundef %80, ptr noundef %81, i32 noundef 0, i8 noundef zeroext %83)
  br label %85

85:                                               ; preds = %79, %76
  br label %86

86:                                               ; preds = %85, %70
  %87 = load ptr, ptr %5, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.xhttp_, ptr %9, i32 0, i32 4
  %89 = call i32 @XAPI_PutTxBuff(ptr noundef %87, ptr noundef %88)
  call void @XHTTP_Clear(ptr noundef %9)
  %90 = load ptr, ptr %5, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.xapi_data_, ptr %90, i32 0, i32 13
  %92 = getelementptr inbounds %struct.XByteBuffer, ptr %91, i32 0, i32 2
  %93 = load i64, ptr %92, align 8, !tbaa !19
  %94 = icmp ne i64 %93, 0
  br i1 %94, label %96, label %95

95:                                               ; preds = %86
  store i32 -1, ptr %4, align 4
  store i32 1, ptr %12, align 4
  br label %102

96:                                               ; preds = %86
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  %97 = load ptr, ptr %5, align 8, !tbaa !5
  %98 = call i32 @XAPI_EnableEvent(ptr noundef %97, i32 noundef 4)
  store i32 %98, ptr %13, align 4, !tbaa !9
  %99 = load ptr, ptr %8, align 8, !tbaa !5
  %100 = load i32, ptr %13, align 4, !tbaa !9
  %101 = call i32 @XAPI_StatusToEvent(ptr noundef %99, i32 noundef %100)
  store i32 %101, ptr %4, align 4
  store i32 1, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  br label %102

102:                                              ; preds = %96, %95, %58
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 2048, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 2608, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  br label %103

103:                                              ; preds = %102, %21
  %104 = load i32, ptr %4, align 4
  ret i32 %104
}

declare i32 @XHTTP_InitResponse(ptr noundef, i16 noundef zeroext, ptr noundef) #2

declare i64 @xstrncpyf(ptr noundef, i64 noundef, ptr noundef, ...) #2

declare ptr @XHTTP_GetCodeStr(i32 noundef) #2

declare i32 @XHTTP_AddHeader(ptr noundef, ptr noundef, ptr noundef, ...) #2

declare ptr @XUtils_VersionShort() #2

declare ptr @XHTTP_Assemble(ptr noundef, ptr noundef, i64 noundef) #2

declare void @XHTTP_Clear(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare hidden i32 @XAPI_StatusCb(ptr noundef, ptr noundef, i32 noundef, i8 noundef zeroext) #0

; Function Attrs: nounwind uwtable
declare hidden i32 @XAPI_StatusToEvent(ptr noundef, i32 noundef) #0

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 2560}
!12 = !{!"xapi_data_", !7, i64 0, !7, i64 128, !7, i64 256, !13, i64 2304, !14, i64 2312, !10, i64 2464, !7, i64 2468, !7, i64 2469, !7, i64 2470, !7, i64 2471, !7, i64 2472, !7, i64 2473, !15, i64 2480, !15, i64 2512, !6, i64 2544, !10, i64 2552, !10, i64 2556, !6, i64 2560, !6, i64 2568, !6, i64 2576}
!13 = !{!"short", !7, i64 0}
!14 = !{!"XSocket", !10, i64 0, !7, i64 4, !10, i64 116, !10, i64 120, !13, i64 124, !10, i64 128, !10, i64 132, !10, i64 136, !10, i64 140, !6, i64 144}
!15 = !{!"XByteBuffer", !6, i64 0, !16, i64 8, !16, i64 16, !13, i64 24, !13, i64 26, !10, i64 28}
!16 = !{!"long", !7, i64 0}
!17 = !{!16, !16, i64 0}
!18 = !{!12, !7, i64 2468}
!19 = !{!12, !16, i64 2528}


; 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.xhttp_ = type { ptr, i16, ptr, i32, %struct.XByteBuffer, i32, %struct.XMap, i16, i16, i64, i64, i64, i64, i64, i8, i8, i8, [256 x i8], [128 x i8], [2048 x i8] }
%struct.XByteBuffer = type { ptr, i64, i64, i16, i16, i32 }
%struct.XMap = type { ptr, ptr, ptr, i64, i64, i32 }

@.str.17 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [17 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local ptr @XAPI_GetStatusStr(i32 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 hidden i32 @XAPI_ErrorCb(ptr noundef, ptr noundef, i32 noundef, i8 noundef zeroext) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @XAPI_EnableEvent(ptr noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @XAPI_PutTxBuff(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local i32 @XAPI_RespondHTTP(ptr noundef %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #0 {
  %4 = alloca %struct.xhttp_, align 8
  %5 = alloca [2048 x i8], align 16
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %53, label %6

6:                                                ; preds = %3
  %7 = getelementptr inbounds i8, ptr %0, i64 2560
  %8 = load ptr, ptr %7, align 8, !tbaa !5
  %.not31 = icmp eq ptr %8, null
  br i1 %.not31, label %53, label %9

9:                                                ; preds = %6
  call void @llvm.lifetime.start.p0(i64 2608, ptr nonnull %4) #3
  %10 = trunc i32 %1 to i16
  %11 = call i32 @XHTTP_InitResponse(ptr noundef nonnull %4, i16 noundef zeroext %10, ptr noundef null) #3
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %5) #3
  %.not32 = icmp eq i32 %2, 0
  br i1 %.not32, label %.thread, label %14

.thread:                                          ; preds = %9
  %12 = call ptr @XHTTP_GetCodeStr(i32 noundef %1) #3
  %13 = call i64 (ptr, i64, ptr, ...) @xstrncpyf(ptr noundef nonnull %5, i64 noundef 2048, ptr noundef nonnull @.str.17, ptr noundef %12) #3
  br label %21

14:                                               ; preds = %9
  %15 = call ptr @XAPI_GetStatusStr(i32 noundef %2)
  %16 = call i64 (ptr, i64, ptr, ...) @xstrncpyf(ptr noundef nonnull %5, i64 noundef 2048, ptr noundef nonnull @.str.17, ptr noundef %15) #3
  %17 = icmp eq i32 %2, 6
  br i1 %17, label %18, label %21

18:                                               ; preds = %14
  %19 = call i32 (ptr, ptr, ptr, ...) @XHTTP_AddHeader(ptr noundef nonnull %4, ptr noundef nonnull @.str.18, ptr noundef nonnull @.str.19) #3
  %20 = icmp slt i32 %19, 0
  br i1 %20, label %32, label %21

21:                                               ; preds = %.thread, %18, %14
  %22 = phi i64 [ %13, %.thread ], [ %16, %18 ], [ %16, %14 ]
  %23 = call ptr @XUtils_VersionShort() #3
  %24 = call i32 (ptr, ptr, ptr, ...) @XHTTP_AddHeader(ptr noundef nonnull %4, ptr noundef nonnull @.str.20, ptr noundef nonnull @.str.21, ptr noundef %23) #3
  %25 = icmp slt i32 %24, 0
  br i1 %25, label %32, label %26

26:                                               ; preds = %21
  %27 = call i32 (ptr, ptr, ptr, ...) @XHTTP_AddHeader(ptr noundef nonnull %4, ptr noundef nonnull @.str.22, ptr noundef nonnull @.str.23) #3
  %28 = icmp slt i32 %27, 0
  br i1 %28, label %32, label %29

29:                                               ; preds = %26
  %30 = call ptr @XHTTP_Assemble(ptr noundef nonnull %4, ptr noundef nonnull %5, i64 noundef %22) #3
  %31 = icmp eq ptr %30, null
  br i1 %31, label %32, label %35

32:                                               ; preds = %29, %26, %21, %18
  %33 = call i32 @XAPI_ErrorCb(ptr noundef nonnull %8, ptr noundef nonnull %0, i32 noundef 0, i8 noundef zeroext 8)
  call void @XHTTP_Clear(ptr noundef nonnull %4) #3
  %34 = getelementptr inbounds i8, ptr %0, i64 2468
  store i8 1, ptr %34, align 4, !tbaa !15
  br label %52

35:                                               ; preds = %29
  %36 = add i32 %2, -1
  %or.cond = icmp ult i32 %36, 13
  br i1 %or.cond, label %37, label %40

37:                                               ; preds = %35
  %38 = trunc nuw nsw i32 %2 to i8
  %39 = call i32 @XAPI_ErrorCb(ptr noundef nonnull %8, ptr noundef nonnull %0, i32 noundef 0, i8 noundef zeroext %38)
  br label %44

40:                                               ; preds = %35
  br i1 %.not32, label %44, label %41

41:                                               ; preds = %40
  %42 = trunc i32 %2 to i8
  %43 = call i32 @XAPI_StatusCb(ptr noundef nonnull %8, ptr noundef nonnull %0, i32 noundef 0, i8 noundef zeroext %42)
  br label %44

44:                                               ; preds = %40, %41, %37
  %45 = getelementptr inbounds i8, ptr %4, i64 32
  %46 = call i32 @XAPI_PutTxBuff(ptr noundef nonnull %0, ptr noundef nonnull %45)
  call void @XHTTP_Clear(ptr noundef nonnull %4) #3
  %47 = getelementptr inbounds i8, ptr %0, i64 2528
  %48 = load i64, ptr %47, align 8, !tbaa !16
  %.not33 = icmp eq i64 %48, 0
  br i1 %.not33, label %52, label %49

49:                                               ; preds = %44
  %50 = call i32 @XAPI_EnableEvent(ptr noundef nonnull %0, i32 noundef 4)
  %51 = call i32 @XAPI_StatusToEvent(ptr noundef nonnull %8, i32 noundef %50)
  br label %52

52:                                               ; preds = %44, %49, %32
  %.0 = phi i32 [ -1, %32 ], [ %51, %49 ], [ -1, %44 ]
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %5) #3
  call void @llvm.lifetime.end.p0(i64 2608, ptr nonnull %4) #3
  br label %53

53:                                               ; preds = %3, %6, %52
  %.1 = phi i32 [ %.0, %52 ], [ -1, %6 ], [ -1, %3 ]
  ret i32 %.1
}

declare i32 @XHTTP_InitResponse(ptr noundef, i16 noundef zeroext, ptr noundef) local_unnamed_addr #2

declare i64 @xstrncpyf(ptr noundef, i64 noundef, ptr noundef, ...) local_unnamed_addr #2

declare ptr @XHTTP_GetCodeStr(i32 noundef) local_unnamed_addr #2

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

declare ptr @XUtils_VersionShort() local_unnamed_addr #2

declare ptr @XHTTP_Assemble(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #2

declare void @XHTTP_Clear(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare hidden i32 @XAPI_StatusCb(ptr noundef, ptr noundef, i32 noundef, i8 noundef zeroext) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden i32 @XAPI_StatusToEvent(ptr noundef, i32 noundef) local_unnamed_addr #0

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 = { 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, !12, i64 2560}
!6 = !{!"xapi_data_", !7, i64 0, !7, i64 128, !7, i64 256, !9, i64 2304, !10, i64 2312, !11, i64 2464, !7, i64 2468, !7, i64 2469, !7, i64 2470, !7, i64 2471, !7, i64 2472, !7, i64 2473, !13, i64 2480, !13, i64 2512, !12, i64 2544, !11, i64 2552, !11, i64 2556, !12, i64 2560, !12, i64 2568, !12, i64 2576}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!"short", !7, i64 0}
!10 = !{!"XSocket", !11, i64 0, !7, i64 4, !11, i64 116, !11, i64 120, !9, i64 124, !11, i64 128, !11, i64 132, !11, i64 136, !11, i64 140, !12, i64 144}
!11 = !{!"int", !7, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!"XByteBuffer", !12, i64 0, !14, i64 8, !14, i64 16, !9, i64 24, !9, i64 26, !11, i64 28}
!14 = !{!"long", !7, i64 0}
!15 = !{!6, !7, i64 2468}
!16 = !{!6, !14, i64 2528}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,SROAPass,SimplifyCFGPass