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

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @XHTTP_Init(ptr noundef, i32 noundef, i64 noundef) #1

; Function Attrs: nounwind uwtable
declare hidden void @XHTTP_HeaderClearCb(ptr noundef) #1

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

; Function Attrs: nounwind uwtable
define dso_local i32 @XHTTP_Copy(ptr noundef %0, ptr noundef %1) #1 {
  %3 = alloca i32, align 4
  %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 ptr, align 8
  %10 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %11 = load ptr, ptr %4, align 8, !tbaa !5
  %12 = icmp eq ptr %11, null
  br i1 %12, label %16, label %13

13:                                               ; preds = %2
  %14 = load ptr, ptr %5, align 8, !tbaa !5
  %15 = icmp eq ptr %14, null
  br i1 %15, label %16, label %17

16:                                               ; preds = %13, %2
  store i32 -1, ptr %3, align 4
  br label %140

17:                                               ; preds = %13
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  %19 = load ptr, ptr %5, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.xhttp_, ptr %19, i32 0, i32 3
  %21 = load i32, ptr %20, align 8, !tbaa !9
  %22 = call i32 @XHTTP_Init(ptr noundef %18, i32 noundef %21, i64 noundef 0)
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.xhttp_, ptr %23, i32 0, i32 4
  store ptr %24, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.xhttp_, ptr %25, i32 0, i32 4
  store ptr %26, ptr %7, align 8, !tbaa !5
  %27 = load ptr, ptr %7, align 8, !tbaa !5
  %28 = load ptr, ptr %6, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.XByteBuffer, ptr %28, i32 0, i32 0
  %30 = load ptr, ptr %29, align 8, !tbaa !16
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.XByteBuffer, ptr %31, i32 0, i32 2
  %33 = load i64, ptr %32, align 8, !tbaa !17
  %34 = call i32 @XByteBuffer_Add(ptr noundef %27, ptr noundef %30, i64 noundef %33)
  %35 = icmp slt i32 %34, 0
  br i1 %35, label %36, label %37

36:                                               ; preds = %17
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %139

37:                                               ; preds = %17
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.xhttp_, ptr %38, i32 0, i32 17
  %40 = getelementptr inbounds [256 x i8], ptr %39, i64 0, i64 0
  %41 = load ptr, ptr %5, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.xhttp_, ptr %41, i32 0, i32 17
  %43 = getelementptr inbounds [256 x i8], ptr %42, i64 0, i64 0
  %44 = call i64 @xstrncpy(ptr noundef %40, i64 noundef 256, ptr noundef %43)
  %45 = load ptr, ptr %4, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.xhttp_, ptr %45, i32 0, i32 18
  %47 = getelementptr inbounds [128 x i8], ptr %46, i64 0, i64 0
  %48 = load ptr, ptr %5, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.xhttp_, ptr %48, i32 0, i32 18
  %50 = getelementptr inbounds [128 x i8], ptr %49, i64 0, i64 0
  %51 = call i64 @xstrncpy(ptr noundef %47, i64 noundef 128, ptr noundef %50)
  %52 = load ptr, ptr %4, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.xhttp_, ptr %52, i32 0, i32 19
  %54 = getelementptr inbounds [2048 x i8], ptr %53, i64 0, i64 0
  %55 = load ptr, ptr %5, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.xhttp_, ptr %55, i32 0, i32 19
  %57 = getelementptr inbounds [2048 x i8], ptr %56, i64 0, i64 0
  %58 = call i64 @xstrncpy(ptr noundef %54, i64 noundef 2048, ptr noundef %57)
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  %59 = load ptr, ptr %5, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.xhttp_, ptr %59, i32 0, i32 6
  store ptr %60, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  %61 = load ptr, ptr %4, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.xhttp_, ptr %61, i32 0, i32 6
  store ptr %62, ptr %10, align 8, !tbaa !5
  %63 = load ptr, ptr %10, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.XMap, ptr %63, i32 0, i32 0
  store ptr @XHTTP_HeaderClearCb, ptr %64, align 8, !tbaa !18
  %65 = load ptr, ptr %9, align 8, !tbaa !5
  %66 = load ptr, ptr %10, align 8, !tbaa !5
  %67 = call i32 @XMap_Iterate(ptr noundef %65, ptr noundef @XHTTP_MapIt, ptr noundef %66)
  %68 = icmp ne i32 %67, 1
  br i1 %68, label %69, label %71

69:                                               ; preds = %37
  %70 = load ptr, ptr %4, align 8, !tbaa !5
  call void @XHTTP_Clear(ptr noundef %70)
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %138

71:                                               ; preds = %37
  %72 = load ptr, ptr %10, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.XMap, ptr %72, i32 0, i32 4
  %74 = load i64, ptr %73, align 8, !tbaa !19
  %75 = trunc i64 %74 to i16
  %76 = load ptr, ptr %4, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.xhttp_, ptr %76, i32 0, i32 7
  store i16 %75, ptr %77, align 8, !tbaa !20
  %78 = load ptr, ptr %5, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.xhttp_, ptr %78, i32 0, i32 9
  %80 = load i64, ptr %79, align 8, !tbaa !21
  %81 = load ptr, ptr %4, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.xhttp_, ptr %81, i32 0, i32 9
  store i64 %80, ptr %82, align 8, !tbaa !21
  %83 = load ptr, ptr %5, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.xhttp_, ptr %83, i32 0, i32 10
  %85 = load i64, ptr %84, align 8, !tbaa !22
  %86 = load ptr, ptr %4, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.xhttp_, ptr %86, i32 0, i32 10
  store i64 %85, ptr %87, align 8, !tbaa !22
  %88 = load ptr, ptr %5, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.xhttp_, ptr %88, i32 0, i32 2
  %90 = load ptr, ptr %89, align 8, !tbaa !23
  %91 = load ptr, ptr %4, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.xhttp_, ptr %91, i32 0, i32 2
  store ptr %90, ptr %92, align 8, !tbaa !23
  %93 = load ptr, ptr %5, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.xhttp_, ptr %93, i32 0, i32 0
  %95 = load ptr, ptr %94, align 8, !tbaa !24
  %96 = load ptr, ptr %4, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.xhttp_, ptr %96, i32 0, i32 0
  store ptr %95, ptr %97, align 8, !tbaa !24
  %98 = load ptr, ptr %5, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.xhttp_, ptr %98, i32 0, i32 1
  %100 = load i16, ptr %99, align 8, !tbaa !25
  %101 = load ptr, ptr %4, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.xhttp_, ptr %101, i32 0, i32 1
  store i16 %100, ptr %102, align 8, !tbaa !25
  %103 = load ptr, ptr %5, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.xhttp_, ptr %103, i32 0, i32 14
  %105 = load i8, ptr %104, align 8, !tbaa !26
  %106 = load ptr, ptr %4, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.xhttp_, ptr %106, i32 0, i32 14
  store i8 %105, ptr %107, align 8, !tbaa !26
  %108 = load ptr, ptr %5, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.xhttp_, ptr %108, i32 0, i32 11
  %110 = load i64, ptr %109, align 8, !tbaa !27
  %111 = load ptr, ptr %4, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.xhttp_, ptr %111, i32 0, i32 11
  store i64 %110, ptr %112, align 8, !tbaa !27
  %113 = load ptr, ptr %5, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.xhttp_, ptr %113, i32 0, i32 12
  %115 = load i64, ptr %114, align 8, !tbaa !28
  %116 = load ptr, ptr %4, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.xhttp_, ptr %116, i32 0, i32 12
  store i64 %115, ptr %117, align 8, !tbaa !28
  %118 = load ptr, ptr %5, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.xhttp_, ptr %118, i32 0, i32 8
  %120 = load i16, ptr %119, align 2, !tbaa !29
  %121 = load ptr, ptr %4, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.xhttp_, ptr %121, i32 0, i32 8
  store i16 %120, ptr %122, align 2, !tbaa !29
  %123 = load ptr, ptr %5, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.xhttp_, ptr %123, i32 0, i32 16
  %125 = load i8, ptr %124, align 2, !tbaa !30
  %126 = load ptr, ptr %4, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.xhttp_, ptr %126, i32 0, i32 16
  store i8 %125, ptr %127, align 2, !tbaa !30
  %128 = load ptr, ptr %5, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.xhttp_, ptr %128, i32 0, i32 13
  %130 = load i64, ptr %129, align 8, !tbaa !31
  %131 = load ptr, ptr %4, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.xhttp_, ptr %131, i32 0, i32 13
  store i64 %130, ptr %132, align 8, !tbaa !31
  %133 = load ptr, ptr %5, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.xhttp_, ptr %133, i32 0, i32 5
  %135 = load i32, ptr %134, align 8, !tbaa !32
  %136 = load ptr, ptr %4, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.xhttp_, ptr %136, i32 0, i32 5
  store i32 %135, ptr %137, align 8, !tbaa !32
  store i32 1, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %138

138:                                              ; preds = %71, %69
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  br label %139

139:                                              ; preds = %138, %36
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  br label %140

140:                                              ; preds = %139, %16
  %141 = load i32, ptr %3, align 4
  ret i32 %141
}

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @XHTTP_Clear(ptr noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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, !12, i64 24}
!10 = !{!"xhttp_", !6, i64 0, !11, i64 8, !6, i64 16, !12, i64 24, !13, i64 32, !12, i64 64, !15, i64 72, !11, i64 120, !11, i64 122, !14, i64 128, !14, i64 136, !14, i64 144, !14, i64 152, !14, i64 160, !7, i64 168, !7, i64 169, !7, i64 170, !7, i64 171, !7, i64 427, !7, i64 555}
!11 = !{!"short", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!"XByteBuffer", !6, i64 0, !14, i64 8, !14, i64 16, !11, i64 24, !11, i64 26, !12, i64 28}
!14 = !{!"long", !7, i64 0}
!15 = !{!"XMap", !6, i64 0, !6, i64 8, !6, i64 16, !14, i64 24, !14, i64 32, !12, i64 40}
!16 = !{!13, !6, i64 0}
!17 = !{!13, !14, i64 16}
!18 = !{!15, !6, i64 0}
!19 = !{!15, !14, i64 32}
!20 = !{!10, !11, i64 120}
!21 = !{!10, !14, i64 128}
!22 = !{!10, !14, i64 136}
!23 = !{!10, !6, i64 16}
!24 = !{!10, !6, i64 0}
!25 = !{!10, !11, i64 8}
!26 = !{!10, !7, i64 168}
!27 = !{!10, !14, i64 144}
!28 = !{!10, !14, i64 152}
!29 = !{!10, !11, i64 122}
!30 = !{!10, !7, i64 170}
!31 = !{!10, !14, i64 160}
!32 = !{!10, !12, i64 64}


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

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

; Function Attrs: nounwind uwtable
declare hidden void @XHTTP_HeaderClearCb(ptr noundef) #0

declare i64 @xstrncpy(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1, 2) i32 @XHTTP_Copy(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  %3 = icmp eq ptr %0, null
  %4 = icmp eq ptr %1, null
  %or.cond = or i1 %3, %4
  br i1 %or.cond, label %63, label %5

5:                                                ; preds = %2
  %6 = getelementptr inbounds i8, ptr %1, i64 24
  %7 = load i32, ptr %6, align 8, !tbaa !5
  %8 = tail call i32 @XHTTP_Init(ptr noundef nonnull %0, i32 noundef %7, i64 noundef 0)
  %9 = getelementptr inbounds i8, ptr %1, i64 32
  %10 = getelementptr inbounds i8, ptr %0, i64 32
  %11 = load ptr, ptr %9, align 8, !tbaa !15
  %12 = getelementptr inbounds i8, ptr %1, i64 48
  %13 = load i64, ptr %12, align 8, !tbaa !16
  %14 = tail call i32 @XByteBuffer_Add(ptr noundef nonnull %10, ptr noundef %11, i64 noundef %13) #2
  %15 = icmp slt i32 %14, 0
  br i1 %15, label %63, label %16

16:                                               ; preds = %5
  %17 = getelementptr inbounds i8, ptr %0, i64 171
  %18 = getelementptr inbounds i8, ptr %1, i64 171
  %19 = tail call i64 @xstrncpy(ptr noundef nonnull %17, i64 noundef 256, ptr noundef nonnull %18) #2
  %20 = getelementptr inbounds i8, ptr %0, i64 427
  %21 = getelementptr inbounds i8, ptr %1, i64 427
  %22 = tail call i64 @xstrncpy(ptr noundef nonnull %20, i64 noundef 128, ptr noundef nonnull %21) #2
  %23 = getelementptr inbounds i8, ptr %0, i64 555
  %24 = getelementptr inbounds i8, ptr %1, i64 555
  %25 = tail call i64 @xstrncpy(ptr noundef nonnull %23, i64 noundef 2048, ptr noundef nonnull %24) #2
  %26 = getelementptr inbounds i8, ptr %1, i64 72
  %27 = getelementptr inbounds i8, ptr %0, i64 72
  store ptr @XHTTP_HeaderClearCb, ptr %27, align 8, !tbaa !17
  %28 = tail call i32 @XMap_Iterate(ptr noundef nonnull %26, ptr noundef nonnull @XHTTP_MapIt, ptr noundef nonnull %27) #2
  %.not = icmp eq i32 %28, 1
  br i1 %.not, label %30, label %29

29:                                               ; preds = %16
  tail call void @XHTTP_Clear(ptr noundef nonnull %0)
  br label %63

30:                                               ; preds = %16
  %31 = getelementptr inbounds i8, ptr %0, i64 104
  %32 = load i64, ptr %31, align 8, !tbaa !18
  %33 = trunc i64 %32 to i16
  %34 = getelementptr inbounds i8, ptr %0, i64 120
  store i16 %33, ptr %34, align 8, !tbaa !19
  %35 = getelementptr inbounds i8, ptr %1, i64 128
  %36 = getelementptr inbounds i8, ptr %0, i64 128
  %37 = load <2 x i64>, ptr %35, align 8, !tbaa !20
  store <2 x i64> %37, ptr %36, align 8, !tbaa !20
  %38 = getelementptr inbounds i8, ptr %1, i64 16
  %39 = load ptr, ptr %38, align 8, !tbaa !21
  %40 = getelementptr inbounds i8, ptr %0, i64 16
  store ptr %39, ptr %40, align 8, !tbaa !21
  %41 = load ptr, ptr %1, align 8, !tbaa !22
  store ptr %41, ptr %0, align 8, !tbaa !22
  %42 = getelementptr inbounds i8, ptr %1, i64 8
  %43 = load i16, ptr %42, align 8, !tbaa !23
  %44 = getelementptr inbounds i8, ptr %0, i64 8
  store i16 %43, ptr %44, align 8, !tbaa !23
  %45 = getelementptr inbounds i8, ptr %1, i64 168
  %46 = load i8, ptr %45, align 8, !tbaa !24
  %47 = getelementptr inbounds i8, ptr %0, i64 168
  store i8 %46, ptr %47, align 8, !tbaa !24
  %48 = getelementptr inbounds i8, ptr %1, i64 144
  %49 = getelementptr inbounds i8, ptr %0, i64 144
  %50 = load <2 x i64>, ptr %48, align 8, !tbaa !20
  store <2 x i64> %50, ptr %49, align 8, !tbaa !20
  %51 = getelementptr inbounds i8, ptr %1, i64 122
  %52 = load i16, ptr %51, align 2, !tbaa !25
  %53 = getelementptr inbounds i8, ptr %0, i64 122
  store i16 %52, ptr %53, align 2, !tbaa !25
  %54 = getelementptr inbounds i8, ptr %1, i64 170
  %55 = load i8, ptr %54, align 2, !tbaa !26
  %56 = getelementptr inbounds i8, ptr %0, i64 170
  store i8 %55, ptr %56, align 2, !tbaa !26
  %57 = getelementptr inbounds i8, ptr %1, i64 160
  %58 = load i64, ptr %57, align 8, !tbaa !27
  %59 = getelementptr inbounds i8, ptr %0, i64 160
  store i64 %58, ptr %59, align 8, !tbaa !27
  %60 = getelementptr inbounds i8, ptr %1, i64 64
  %61 = load i32, ptr %60, align 8, !tbaa !28
  %62 = getelementptr inbounds i8, ptr %0, i64 64
  store i32 %61, ptr %62, align 8, !tbaa !28
  br label %63

63:                                               ; preds = %5, %30, %29, %2
  %.2 = phi i32 [ -1, %2 ], [ -1, %5 ], [ -1, %29 ], [ 1, %30 ]
  ret i32 %.2
}

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

declare i32 @XMap_Iterate(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
declare dso_local void @XHTTP_Clear(ptr 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 = { "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 = { 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, !11, i64 24}
!6 = !{!"xhttp_", !7, i64 0, !10, i64 8, !7, i64 16, !11, i64 24, !12, i64 32, !11, i64 64, !14, i64 72, !10, i64 120, !10, i64 122, !13, i64 128, !13, i64 136, !13, i64 144, !13, i64 152, !13, i64 160, !8, i64 168, !8, i64 169, !8, i64 170, !8, i64 171, !8, i64 427, !8, i64 555}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"short", !8, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!"XByteBuffer", !7, i64 0, !13, i64 8, !13, i64 16, !10, i64 24, !10, i64 26, !11, i64 28}
!13 = !{!"long", !8, i64 0}
!14 = !{!"XMap", !7, i64 0, !7, i64 8, !7, i64 16, !13, i64 24, !13, i64 32, !11, i64 40}
!15 = !{!12, !7, i64 0}
!16 = !{!12, !13, i64 16}
!17 = !{!14, !7, i64 0}
!18 = !{!14, !13, i64 32}
!19 = !{!6, !10, i64 120}
!20 = !{!13, !13, i64 0}
!21 = !{!6, !7, i64 16}
!22 = !{!6, !7, i64 0}
!23 = !{!6, !10, i64 8}
!24 = !{!6, !8, i64 168}
!25 = !{!6, !10, i64 122}
!26 = !{!6, !8, i64 170}
!27 = !{!6, !13, i64 160}
!28 = !{!6, !11, i64 64}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass