; LLVM IR from DanEngelbrecht/longtail :: lib/hashregistry (longtail_hash_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_HashRegistry = type { %struct.Longtail_HashRegistryAPI, i32, ptr, ptr }
%struct.Longtail_HashRegistryAPI = type { %struct.Longtail_API, ptr }
%struct.Longtail_API = type { ptr }

@.str = external hidden unnamed_addr constant [16 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [99 x i8], align 1
@__func__.Longtail_CreateDefaultHashRegistry = external hidden unnamed_addr constant [35 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [32 x i8], align 1

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

43:                                               ; preds = %3
  %44 = load ptr, ptr %10, align 8, !tbaa !9
  call void (ptr, ptr, i32, ptr, i32, ptr, ...) @Longtail_CallLogger(ptr noundef @.str.5, ptr noundef @__func__.Longtail_CreateDefaultHashRegistry, i32 noundef 80, ptr noundef %44, i32 noundef 3, ptr noundef @.str.8, ptr noundef @.str.2)
  store ptr null, ptr %4, align 8
  store i32 1, ptr %11, align 4
  br label %106

45:                                               ; preds = %3
  %46 = load ptr, ptr %7, align 8, !tbaa !9
  %47 = icmp ne ptr %46, null
  br i1 %47, label %50, label %48

48:                                               ; preds = %45
  %49 = load ptr, ptr %10, align 8, !tbaa !9
  call void (ptr, ptr, i32, ptr, i32, ptr, ...) @Longtail_CallLogger(ptr noundef @.str.5, ptr noundef @__func__.Longtail_CreateDefaultHashRegistry, i32 noundef 81, ptr noundef %49, i32 noundef 3, ptr noundef @.str.8, ptr noundef @.str.4)
  store ptr null, ptr %4, align 8
  store i32 1, ptr %11, align 4
  br label %106

50:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %51 = load i32, ptr %5, align 4, !tbaa !5
  %52 = zext i32 %51 to i64
  %53 = mul i64 4, %52
  %54 = add i64 40, %53
  %55 = load i32, ptr %5, align 4, !tbaa !5
  %56 = zext i32 %55 to i64
  %57 = mul i64 8, %56
  %58 = add i64 %54, %57
  store i64 %58, ptr %12, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %59 = load i64, ptr %12, align 8, !tbaa !20
  %60 = call ptr @Longtail_Alloc(ptr noundef @.str.9, i64 noundef %59)
  store ptr %60, ptr %13, align 8, !tbaa !9
  %61 = load ptr, ptr %13, align 8, !tbaa !9
  %62 = icmp ne ptr %61, null
  br i1 %62, label %65, label %63

63:                                               ; preds = %50
  %64 = load ptr, ptr %10, align 8, !tbaa !9
  call void (ptr, ptr, i32, ptr, i32, ptr, ...) @Longtail_CallLogger(ptr noundef @.str.5, ptr noundef @__func__.Longtail_CreateDefaultHashRegistry, i32 noundef 88, ptr noundef %64, i32 noundef 3, ptr noundef @.str.10, i32 noundef 12)
  store ptr null, ptr %4, align 8
  store i32 1, ptr %11, align 4
  br label %105

65:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %66 = load ptr, ptr %13, align 8, !tbaa !9
  %67 = call ptr @Longtail_MakeHashRegistryAPI(ptr noundef %66, ptr noundef @DefaultHashRegistry_Dispose, ptr noundef @Default_GetHashAPI)
  store ptr %67, ptr %14, align 8, !tbaa !9
  %68 = load i32, ptr %5, align 4, !tbaa !5
  %69 = load ptr, ptr %14, align 8, !tbaa !9
  %70 = getelementptr inbounds %struct.Default_HashRegistry, ptr %69, i32 0, i32 1
  store i32 %68, ptr %70, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %71 = load ptr, ptr %14, align 8, !tbaa !9
  %72 = getelementptr inbounds %struct.Default_HashRegistry, ptr %71, i64 1
  store ptr %72, ptr %15, align 8, !tbaa !9
  %73 = load ptr, ptr %15, align 8, !tbaa !9
  %74 = load ptr, ptr %14, align 8, !tbaa !9
  %75 = getelementptr inbounds %struct.Default_HashRegistry, ptr %74, i32 0, i32 2
  store ptr %73, ptr %75, align 8, !tbaa !25
  %76 = load i32, ptr %5, align 4, !tbaa !5
  %77 = zext i32 %76 to i64
  %78 = mul i64 4, %77
  %79 = load ptr, ptr %15, align 8, !tbaa !9
  %80 = getelementptr inbounds i8, ptr %79, i64 %78
  store ptr %80, ptr %15, align 8, !tbaa !9
  %81 = load ptr, ptr %15, align 8, !tbaa !9
  %82 = load ptr, ptr %14, align 8, !tbaa !9
  %83 = getelementptr inbounds %struct.Default_HashRegistry, ptr %82, i32 0, i32 3
  store ptr %81, ptr %83, align 8, !tbaa !26
  %84 = load i32, ptr %5, align 4, !tbaa !5
  %85 = zext i32 %84 to i64
  %86 = mul i64 8, %85
  %87 = load ptr, ptr %15, align 8, !tbaa !9
  %88 = getelementptr inbounds i8, ptr %87, i64 %86
  store ptr %88, ptr %15, align 8, !tbaa !9
  %89 = load ptr, ptr %14, align 8, !tbaa !9
  %90 = getelementptr inbounds %struct.Default_HashRegistry, ptr %89, i32 0, i32 2
  %91 = load ptr, ptr %90, align 8, !tbaa !25
  %92 = load ptr, ptr %6, align 8, !tbaa !9
  %93 = load i32, ptr %5, align 4, !tbaa !5
  %94 = zext i32 %93 to i64
  %95 = mul i64 4, %94
  call void @llvm.memmove.p0.p0.i64(ptr align 4 %91, ptr align 4 %92, i64 %95, i1 false)
  %96 = load ptr, ptr %14, align 8, !tbaa !9
  %97 = getelementptr inbounds %struct.Default_HashRegistry, ptr %96, i32 0, i32 3
  %98 = load ptr, ptr %97, align 8, !tbaa !26
  %99 = load ptr, ptr %7, align 8, !tbaa !9
  %100 = load i32, ptr %5, align 4, !tbaa !5
  %101 = zext i32 %100 to i64
  %102 = mul i64 8, %101
  call void @llvm.memmove.p0.p0.i64(ptr align 8 %98, ptr align 8 %99, i64 %102, i1 false)
  %103 = load ptr, ptr %14, align 8, !tbaa !9
  %104 = getelementptr inbounds %struct.Default_HashRegistry, ptr %103, i32 0, i32 0
  store ptr %104, ptr %4, align 8
  store i32 1, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  br label %105

105:                                              ; preds = %65, %63
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  br label %106

106:                                              ; preds = %105, %48, %43
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 72, ptr %8) #4
  %107 = load ptr, ptr %4, align 8
  ret ptr %107
}

; 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_MakeHashRegistryAPI(ptr noundef, ptr noundef, ptr noundef) #2

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

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

; 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_HashRegistry", !23, i64 0, !6, i64 16, !10, i64 24, !10, i64 32}
!23 = !{!"Longtail_HashRegistryAPI", !24, i64 0, !10, i64 8}
!24 = !{!"Longtail_API", !10, i64 0}
!25 = !{!22, !10, i64 24}
!26 = !{!22, !10, i64 32}


; 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 [16 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [99 x i8], align 1
@__func__.Longtail_CreateDefaultHashRegistry = external hidden unnamed_addr constant [35 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [32 x i8], align 1

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

18:                                               ; preds = %3
  call void (ptr, ptr, i32, ptr, i32, ptr, ...) @Longtail_CallLogger(ptr noundef nonnull @.str.5, ptr noundef nonnull @__func__.Longtail_CreateDefaultHashRegistry, i32 noundef 80, ptr noundef nonnull %5, i32 noundef 3, ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.2) #4
  br label %35

19:                                               ; preds = %3
  %.not35 = icmp eq ptr %2, null
  br i1 %.not35, label %20, label %21

20:                                               ; preds = %19
  call void (ptr, ptr, i32, ptr, i32, ptr, ...) @Longtail_CallLogger(ptr noundef nonnull @.str.5, ptr noundef nonnull @__func__.Longtail_CreateDefaultHashRegistry, i32 noundef 81, ptr noundef nonnull %5, i32 noundef 3, ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.4) #4
  br label %35

21:                                               ; preds = %19
  %22 = shl nuw nsw i64 %8, 2
  %23 = add nuw nsw i64 %22, 40
  %24 = shl nuw nsw i64 %8, 3
  %25 = add nuw nsw i64 %23, %24
  %26 = call ptr @Longtail_Alloc(ptr noundef nonnull @.str.9, i64 noundef %25) #4
  %.not36 = icmp eq ptr %26, null
  br i1 %.not36, label %27, label %28

27:                                               ; preds = %21
  call void (ptr, ptr, i32, ptr, i32, ptr, ...) @Longtail_CallLogger(ptr noundef nonnull @.str.5, ptr noundef nonnull @__func__.Longtail_CreateDefaultHashRegistry, i32 noundef 88, ptr noundef nonnull %5, i32 noundef 3, ptr noundef nonnull @.str.10, i32 noundef 12) #4
  br label %35

28:                                               ; preds = %21
  %29 = call ptr @Longtail_MakeHashRegistryAPI(ptr noundef nonnull %26, ptr noundef nonnull @DefaultHashRegistry_Dispose, ptr noundef nonnull @Default_GetHashAPI) #4
  %30 = getelementptr inbounds i8, ptr %29, i64 16
  store i32 %0, ptr %30, align 8, !tbaa !17
  %31 = getelementptr inbounds i8, ptr %29, i64 40
  %32 = getelementptr inbounds i8, ptr %29, i64 24
  store ptr %31, ptr %32, align 8, !tbaa !22
  %33 = getelementptr inbounds i8, ptr %31, i64 %22
  %34 = getelementptr inbounds i8, ptr %29, i64 32
  store ptr %33, ptr %34, align 8, !tbaa !23
  call void @llvm.memmove.p0.p0.i64(ptr nonnull align 4 %31, ptr nonnull align 4 %1, i64 %22, i1 false)
  call void @llvm.memmove.p0.p0.i64(ptr nonnull align 8 %33, ptr nonnull align 8 %2, i64 %24, i1 false)
  br label %35

35:                                               ; preds = %27, %28, %20, %18
  %.1 = phi ptr [ null, %20 ], [ null, %18 ], [ %29, %28 ], [ null, %27 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %4) #4
  ret ptr %.1
}

; 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_MakeHashRegistryAPI(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

; 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_HashRegistry", !19, i64 0, !21, i64 16, !7, i64 24, !7, i64 32}
!19 = !{!"Longtail_HashRegistryAPI", !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 32}


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