; LLVM IR from DanEngelbrecht/longtail :: lib/compressionregistry (longtail_compression_registry)

; 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.Longtail_LogFieldFmt_Private = type { ptr, ptr, ptr }
%struct.Longtail_LogContextFmt_Private = type { ptr, ptr, i64 }
%struct.Default_CompressionRegistry = type { %struct.Longtail_CompressionRegistryAPI, i32, ptr, ptr, ptr }
%struct.Longtail_CompressionRegistryAPI = type { %struct.Longtail_API, ptr }
%struct.Longtail_API = type { ptr }

@.str = external hidden unnamed_addr constant [23 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [113 x i8], align 1
@__func__.Longtail_CreateDefaultCompressionRegistry = external hidden unnamed_addr constant [42 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [41 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local ptr @Longtail_CreateDefaultCompressionRegistry(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca [2 x %struct.Longtail_LogFieldFmt_Private], align 16
  %7 = alloca %struct.Longtail_LogContextFmt_Private, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i64, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 48, ptr %6) #4
  %15 = getelementptr inbounds %struct.Longtail_LogFieldFmt_Private, ptr %6, i32 0, i32 0
  store ptr @.str, ptr %15, align 8, !tbaa !11
  %16 = getelementptr inbounds %struct.Longtail_LogFieldFmt_Private, ptr %6, i32 0, i32 1
  store ptr @.str.1, ptr %16, align 8, !tbaa !13
  %17 = getelementptr inbounds %struct.Longtail_LogFieldFmt_Private, ptr %6, i32 0, i32 2
  %18 = load i32, ptr %4, align 4, !tbaa !5
  %19 = zext i32 %18 to i64
  %20 = inttoptr i64 %19 to ptr
  store ptr %20, ptr %17, align 8, !tbaa !14
  %21 = getelementptr inbounds %struct.Longtail_LogFieldFmt_Private, ptr %6, i64 1
  %22 = getelementptr inbounds %struct.Longtail_LogFieldFmt_Private, ptr %21, i32 0, i32 0
  store ptr @.str.2, ptr %22, align 8, !tbaa !11
  %23 = getelementptr inbounds %struct.Longtail_LogFieldFmt_Private, ptr %21, i32 0, i32 1
  store ptr @.str.3, ptr %23, align 8, !tbaa !13
  %24 = getelementptr inbounds %struct.Longtail_LogFieldFmt_Private, ptr %21, i32 0, i32 2
  %25 = load ptr, ptr %5, align 8, !tbaa !9
  %26 = ptrtoint ptr %25 to i64
  %27 = inttoptr i64 %26 to ptr
  store ptr %27, ptr %24, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #4
  %28 = getelementptr inbounds %struct.Longtail_LogContextFmt_Private, ptr %7, i32 0, i32 0
  store ptr null, ptr %28, align 8, !tbaa !15
  %29 = getelementptr inbounds %struct.Longtail_LogContextFmt_Private, ptr %7, i32 0, i32 1
  %30 = getelementptr inbounds [2 x %struct.Longtail_LogFieldFmt_Private], ptr %6, i64 0, i64 0
  store ptr %30, ptr %29, align 8, !tbaa !18
  %31 = getelementptr inbounds %struct.Longtail_LogContextFmt_Private, ptr %7, i32 0, i32 2
  store i64 2, ptr %31, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  store ptr %7, ptr %8, align 8, !tbaa !9
  %32 = load ptr, ptr %8, align 8, !tbaa !9
  call void (ptr, ptr, i32, ptr, i32, ptr, ...) @Longtail_CallLogger(ptr noundef @.str.4, ptr noundef @__func__.Longtail_CreateDefaultCompressionRegistry, i32 noundef 111, ptr noundef %32, i32 noundef 0, ptr noundef @.str.5, ptr noundef @.str.6)
  %33 = load ptr, ptr %5, align 8, !tbaa !9
  %34 = icmp ne ptr %33, null
  br i1 %34, label %37, label %35

35:                                               ; preds = %2
  %36 = load ptr, ptr %8, align 8, !tbaa !9
  call void (ptr, ptr, i32, ptr, i32, ptr, ...) @Longtail_CallLogger(ptr noundef @.str.4, ptr noundef @__func__.Longtail_CreateDefaultCompressionRegistry, i32 noundef 113, ptr noundef %36, i32 noundef 3, ptr noundef @.str.7, ptr noundef @.str.2)
  store ptr null, ptr %3, align 8
  store i32 1, ptr %9, align 4
  br label %92

37:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %38 = load i32, ptr %4, align 4, !tbaa !5
  %39 = zext i32 %38 to i64
  %40 = mul i64 4, %39
  %41 = add i64 48, %40
  %42 = load i32, ptr %4, align 4, !tbaa !5
  %43 = zext i32 %42 to i64
  %44 = mul i64 8, %43
  %45 = add i64 %41, %44
  %46 = add i64 %45, 8
  store i64 %46, ptr %10, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %47 = load i64, ptr %10, align 8, !tbaa !20
  %48 = call ptr @Longtail_Alloc(ptr noundef @.str.8, i64 noundef %47)
  store ptr %48, ptr %11, align 8, !tbaa !9
  %49 = load ptr, ptr %11, align 8, !tbaa !9
  %50 = icmp ne ptr %49, null
  br i1 %50, label %53, label %51

51:                                               ; preds = %37
  %52 = load ptr, ptr %8, align 8, !tbaa !9
  call void (ptr, ptr, i32, ptr, i32, ptr, ...) @Longtail_CallLogger(ptr noundef @.str.4, ptr noundef @__func__.Longtail_CreateDefaultCompressionRegistry, i32 noundef 121, ptr noundef %52, i32 noundef 3, ptr noundef @.str.9, i32 noundef 12)
  store ptr null, ptr %3, align 8
  store i32 1, ptr %9, align 4
  br label %91

53:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %54 = load ptr, ptr %11, align 8, !tbaa !9
  %55 = call ptr @Longtail_MakeCompressionRegistryAPI(ptr noundef %54, ptr noundef @DefaultCompressionRegistry_Dispose, ptr noundef @Default_GetCompressionAPI)
  store ptr %55, ptr %12, align 8, !tbaa !9
  %56 = load i32, ptr %4, align 4, !tbaa !5
  %57 = load ptr, ptr %12, align 8, !tbaa !9
  %58 = getelementptr inbounds %struct.Default_CompressionRegistry, ptr %57, i32 0, i32 1
  store i32 %56, ptr %58, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %59 = load ptr, ptr %12, align 8, !tbaa !9
  %60 = getelementptr inbounds %struct.Default_CompressionRegistry, ptr %59, i64 1
  store ptr %60, ptr %13, align 8, !tbaa !9
  %61 = load ptr, ptr %13, align 8, !tbaa !9
  %62 = load ptr, ptr %12, align 8, !tbaa !9
  %63 = getelementptr inbounds %struct.Default_CompressionRegistry, ptr %62, i32 0, i32 2
  store ptr %61, ptr %63, align 8, !tbaa !25
  %64 = load i32, ptr %4, align 4, !tbaa !5
  %65 = zext i32 %64 to i64
  %66 = mul i64 8, %65
  %67 = load ptr, ptr %13, align 8, !tbaa !9
  %68 = getelementptr inbounds i8, ptr %67, i64 %66
  store ptr %68, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  %69 = load ptr, ptr %13, align 8, !tbaa !9
  %70 = load ptr, ptr %12, align 8, !tbaa !9
  %71 = getelementptr inbounds %struct.Default_CompressionRegistry, ptr %70, i32 0, i32 3
  %72 = call i32 @Longtail_CreateSpinLock(ptr noundef %69, ptr noundef %71)
  store i32 %72, ptr %14, align 4, !tbaa !5
  %73 = load i32, ptr %14, align 4, !tbaa !5
  %74 = icmp ne i32 %73, 0
  br i1 %74, label %75, label %78

75:                                               ; preds = %53
  %76 = load ptr, ptr %8, align 8, !tbaa !9
  call void (ptr, ptr, i32, ptr, i32, ptr, ...) @Longtail_CallLogger(ptr noundef @.str.4, ptr noundef @__func__.Longtail_CreateDefaultCompressionRegistry, i32 noundef 137, ptr noundef %76, i32 noundef 3, ptr noundef @.str.10, i32 noundef 12)
  %77 = load ptr, ptr %11, align 8, !tbaa !9
  call void @Longtail_Free(ptr noundef %77)
  store ptr null, ptr %3, align 8
  store i32 1, ptr %9, align 4
  br label %90

78:                                               ; preds = %53
  %79 = load ptr, ptr %12, align 8, !tbaa !9
  %80 = getelementptr inbounds %struct.Default_CompressionRegistry, ptr %79, i32 0, i32 4
  store ptr null, ptr %80, align 8, !tbaa !26
  %81 = load ptr, ptr %12, align 8, !tbaa !9
  %82 = getelementptr inbounds %struct.Default_CompressionRegistry, ptr %81, i32 0, i32 2
  %83 = load ptr, ptr %82, align 8, !tbaa !25
  %84 = load ptr, ptr %5, align 8, !tbaa !9
  %85 = load i32, ptr %4, align 4, !tbaa !5
  %86 = zext i32 %85 to i64
  %87 = mul i64 8, %86
  call void @llvm.memmove.p0.p0.i64(ptr align 8 %83, ptr align 8 %84, i64 %87, i1 false)
  %88 = load ptr, ptr %12, align 8, !tbaa !9
  %89 = getelementptr inbounds %struct.Default_CompressionRegistry, ptr %88, i32 0, i32 0
  store ptr %89, ptr %3, align 8
  store i32 1, ptr %9, align 4
  br label %90

90:                                               ; preds = %78, %75
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  br label %91

91:                                               ; preds = %90, %51
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  br label %92

92:                                               ; preds = %91, %35
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr %6) #4
  %93 = load ptr, ptr %3, align 8
  ret ptr %93
}

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

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

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

declare ptr @Longtail_MakeCompressionRegistryAPI(ptr noundef, ptr noundef, ptr noundef) #2

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

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

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

declare void @Longtail_Free(ptr noundef) #2

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

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

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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"Longtail_LogFieldFmt_Private", !10, i64 0, !10, i64 8, !10, i64 16}
!13 = !{!12, !10, i64 8}
!14 = !{!12, !10, i64 16}
!15 = !{!16, !10, i64 0}
!16 = !{!"Longtail_LogContextFmt_Private", !10, i64 0, !10, i64 8, !17, i64 16}
!17 = !{!"long", !7, i64 0}
!18 = !{!16, !10, i64 8}
!19 = !{!16, !17, i64 16}
!20 = !{!17, !17, i64 0}
!21 = !{!22, !6, i64 16}
!22 = !{!"Default_CompressionRegistry", !23, i64 0, !6, i64 16, !10, i64 24, !10, i64 32, !10, i64 40}
!23 = !{!"Longtail_CompressionRegistryAPI", !24, i64 0, !10, i64 8}
!24 = !{!"Longtail_API", !10, i64 0}
!25 = !{!22, !10, i64 24}
!26 = !{!22, !10, i64 40}


; 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.Longtail_LogFieldFmt_Private = type { ptr, ptr, ptr }
%struct.Longtail_LogContextFmt_Private = type { ptr, ptr, i64 }

@.str = external hidden unnamed_addr constant [23 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [113 x i8], align 1
@__func__.Longtail_CreateDefaultCompressionRegistry = external hidden unnamed_addr constant [42 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [41 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local ptr @Longtail_CreateDefaultCompressionRegistry(i32 noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  %3 = alloca [2 x %struct.Longtail_LogFieldFmt_Private], align 16
  %4 = alloca %struct.Longtail_LogContextFmt_Private, align 8
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %3) #4
  store ptr @.str, ptr %3, align 16, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %3, i64 8
  store ptr @.str.1, ptr %5, align 8, !tbaa !10
  %6 = getelementptr inbounds i8, ptr %3, i64 16
  %7 = zext i32 %0 to i64
  %8 = inttoptr i64 %7 to ptr
  store ptr %8, ptr %6, align 16, !tbaa !11
  %9 = getelementptr inbounds i8, ptr %3, i64 24
  store ptr @.str.2, ptr %9, align 8, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %3, i64 32
  store ptr @.str.3, ptr %10, align 16, !tbaa !10
  %11 = getelementptr inbounds i8, ptr %3, i64 40
  store ptr %1, ptr %11, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #4
  store ptr null, ptr %4, align 8, !tbaa !12
  %12 = getelementptr inbounds i8, ptr %4, i64 8
  store ptr %3, ptr %12, align 8, !tbaa !15
  %13 = getelementptr inbounds i8, ptr %4, i64 16
  store i64 2, ptr %13, align 8, !tbaa !16
  call void (ptr, ptr, i32, ptr, i32, ptr, ...) @Longtail_CallLogger(ptr noundef nonnull @.str.4, ptr noundef nonnull @__func__.Longtail_CreateDefaultCompressionRegistry, i32 noundef 111, ptr noundef nonnull %4, i32 noundef 0, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.6) #4
  %.not = icmp eq ptr %1, null
  br i1 %.not, label %14, label %15

14:                                               ; preds = %2
  call void (ptr, ptr, i32, ptr, i32, ptr, ...) @Longtail_CallLogger(ptr noundef nonnull @.str.4, ptr noundef nonnull @__func__.Longtail_CreateDefaultCompressionRegistry, i32 noundef 113, ptr noundef nonnull %4, i32 noundef 3, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.2) #4
  br label %34

15:                                               ; preds = %2
  %16 = shl nuw nsw i64 %7, 2
  %17 = shl nuw nsw i64 %7, 3
  %18 = add nuw nsw i64 %16, 56
  %19 = add nuw nsw i64 %18, %17
  %20 = call ptr @Longtail_Alloc(ptr noundef nonnull @.str.8, i64 noundef %19) #4
  %.not30 = icmp eq ptr %20, null
  br i1 %.not30, label %21, label %22

21:                                               ; preds = %15
  call void (ptr, ptr, i32, ptr, i32, ptr, ...) @Longtail_CallLogger(ptr noundef nonnull @.str.4, ptr noundef nonnull @__func__.Longtail_CreateDefaultCompressionRegistry, i32 noundef 121, ptr noundef nonnull %4, i32 noundef 3, ptr noundef nonnull @.str.9, i32 noundef 12) #4
  br label %34

22:                                               ; preds = %15
  %23 = call ptr @Longtail_MakeCompressionRegistryAPI(ptr noundef nonnull %20, ptr noundef nonnull @DefaultCompressionRegistry_Dispose, ptr noundef nonnull @Default_GetCompressionAPI) #4
  %24 = getelementptr inbounds i8, ptr %23, i64 16
  store i32 %0, ptr %24, align 8, !tbaa !17
  %25 = getelementptr inbounds i8, ptr %23, i64 48
  %26 = getelementptr inbounds i8, ptr %23, i64 24
  store ptr %25, ptr %26, align 8, !tbaa !22
  %27 = getelementptr inbounds i8, ptr %25, i64 %17
  %28 = getelementptr inbounds i8, ptr %23, i64 32
  %29 = call i32 @Longtail_CreateSpinLock(ptr noundef nonnull %27, ptr noundef nonnull %28) #4
  %.not31 = icmp eq i32 %29, 0
  br i1 %.not31, label %31, label %30

30:                                               ; preds = %22
  call void (ptr, ptr, i32, ptr, i32, ptr, ...) @Longtail_CallLogger(ptr noundef nonnull @.str.4, ptr noundef nonnull @__func__.Longtail_CreateDefaultCompressionRegistry, i32 noundef 137, ptr noundef nonnull %4, i32 noundef 3, ptr noundef nonnull @.str.10, i32 noundef 12) #4
  call void @Longtail_Free(ptr noundef nonnull %20) #4
  br label %34

31:                                               ; preds = %22
  %32 = getelementptr inbounds i8, ptr %23, i64 40
  store ptr null, ptr %32, align 8, !tbaa !23
  %33 = load ptr, ptr %26, align 8, !tbaa !22
  call void @llvm.memmove.p0.p0.i64(ptr align 8 %33, ptr nonnull align 8 %1, i64 %17, i1 false)
  br label %34

34:                                               ; preds = %21, %31, %30, %14
  %.2 = phi ptr [ null, %14 ], [ null, %21 ], [ null, %30 ], [ %23, %31 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %3) #4
  ret ptr %.2
}

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

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

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

declare ptr @Longtail_MakeCompressionRegistryAPI(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

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

declare void @Longtail_Free(ptr noundef) local_unnamed_addr #2

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

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

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 nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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, !7, i64 0}
!6 = !{!"Longtail_LogFieldFmt_Private", !7, i64 0, !7, i64 8, !7, i64 16}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!6, !7, i64 8}
!11 = !{!6, !7, i64 16}
!12 = !{!13, !7, i64 0}
!13 = !{!"Longtail_LogContextFmt_Private", !7, i64 0, !7, i64 8, !14, i64 16}
!14 = !{!"long", !8, i64 0}
!15 = !{!13, !7, i64 8}
!16 = !{!13, !14, i64 16}
!17 = !{!18, !21, i64 16}
!18 = !{!"Default_CompressionRegistry", !19, i64 0, !21, i64 16, !7, i64 24, !7, i64 32, !7, i64 40}
!19 = !{!"Longtail_CompressionRegistryAPI", !20, i64 0, !7, i64 8}
!20 = !{!"Longtail_API", !7, i64 0}
!21 = !{!"int", !8, i64 0}
!22 = !{!18, !7, i64 24}
!23 = !{!18, !7, i64 40}


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