; LLVM IR from DanEngelbrecht/longtail :: lib/fsblockstore (longtail_fsblockstore)

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

@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [98 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [19 x i8], align 1
@__func__.Longtail_CreateFSBlockStoreAPI = external hidden unnamed_addr constant [31 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [35 x i8], align 1

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

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #1

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

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

declare void @Longtail_Free(ptr noundef) #2

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

59:                                               ; preds = %5
  %60 = load ptr, ptr %14, align 8, !tbaa !5
  call void (ptr, ptr, i32, ptr, i32, ptr, ...) @Longtail_CallLogger(ptr noundef @.str.3, ptr noundef @__func__.Longtail_CreateFSBlockStoreAPI, i32 noundef 1482, ptr noundef %60, i32 noundef 3, ptr noundef @.str.16, ptr noundef @.str.17)
  store ptr null, ptr %6, align 8
  store i32 1, ptr %15, align 4
  br label %119

61:                                               ; preds = %5
  %62 = load ptr, ptr %9, align 8, !tbaa !5
  %63 = icmp ne ptr %62, null
  br i1 %63, label %66, label %64

64:                                               ; preds = %61
  %65 = load ptr, ptr %14, align 8, !tbaa !5
  call void (ptr, ptr, i32, ptr, i32, ptr, ...) @Longtail_CallLogger(ptr noundef @.str.3, ptr noundef @__func__.Longtail_CreateFSBlockStoreAPI, i32 noundef 1483, ptr noundef %65, i32 noundef 3, ptr noundef @.str.16, ptr noundef @.str.18)
  store ptr null, ptr %6, align 8
  store i32 1, ptr %15, align 4
  br label %119

66:                                               ; preds = %61
  %67 = load ptr, ptr %10, align 8, !tbaa !5
  %68 = icmp eq ptr %67, null
  br i1 %68, label %75, label %69

69:                                               ; preds = %66
  %70 = load ptr, ptr %10, align 8, !tbaa !5
  %71 = call i64 @strlen(ptr noundef %70) #5
  %72 = icmp ult i64 %71, 15
  br i1 %72, label %75, label %73

73:                                               ; preds = %69
  %74 = load ptr, ptr %14, align 8, !tbaa !5
  call void (ptr, ptr, i32, ptr, i32, ptr, ...) @Longtail_CallLogger(ptr noundef @.str.3, ptr noundef @__func__.Longtail_CreateFSBlockStoreAPI, i32 noundef 1484, ptr noundef %74, i32 noundef 3, ptr noundef @.str.16, ptr noundef @.str.19)
  store ptr null, ptr %6, align 8
  store i32 1, ptr %15, align 4
  br label %119

75:                                               ; preds = %69, %66
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  store i64 344, ptr %16, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %76 = load ptr, ptr %10, align 8, !tbaa !5
  %77 = icmp ne ptr %76, null
  br i1 %77, label %78, label %80

78:                                               ; preds = %75
  %79 = load ptr, ptr %10, align 8, !tbaa !5
  br label %81

80:                                               ; preds = %75
  br label %81

81:                                               ; preds = %80, %78
  %82 = phi ptr [ %79, %78 ], [ @.str.20, %80 ]
  store ptr %82, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %83 = load ptr, ptr %17, align 8, !tbaa !5
  %84 = call i64 @strlen(ptr noundef %83) #5
  store i64 %84, ptr %18, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  %85 = load i64, ptr %16, align 8, !tbaa !20
  %86 = load i64, ptr %18, align 8, !tbaa !20
  %87 = add i64 %85, %86
  %88 = add i64 %87, 1
  %89 = call ptr @Longtail_Alloc(ptr noundef @.str.21, i64 noundef %88)
  store ptr %89, ptr %19, align 8, !tbaa !5
  %90 = load ptr, ptr %19, align 8, !tbaa !5
  %91 = icmp ne ptr %90, null
  br i1 %91, label %94, label %92

92:                                               ; preds = %81
  %93 = load ptr, ptr %14, align 8, !tbaa !5
  call void (ptr, ptr, i32, ptr, i32, ptr, ...) @Longtail_CallLogger(ptr noundef @.str.3, ptr noundef @__func__.Longtail_CreateFSBlockStoreAPI, i32 noundef 1491, ptr noundef %93, i32 noundef 3, ptr noundef @.str.22, i32 noundef 12)
  store ptr null, ptr %6, align 8
  store i32 1, ptr %15, align 4
  br label %118

94:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  %95 = call i64 (...) @Longtail_GetProcessIdentity()
  store i64 %95, ptr %20, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  %96 = load ptr, ptr %19, align 8, !tbaa !5
  %97 = ptrtoint ptr %96 to i64
  store i64 %97, ptr %21, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  %98 = load i64, ptr %20, align 8, !tbaa !20
  %99 = load i64, ptr %21, align 8, !tbaa !20
  %100 = xor i64 %98, %99
  store i64 %100, ptr %22, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #4
  %101 = load ptr, ptr %19, align 8, !tbaa !5
  %102 = load ptr, ptr %7, align 8, !tbaa !5
  %103 = load ptr, ptr %8, align 8, !tbaa !5
  %104 = load ptr, ptr %9, align 8, !tbaa !5
  %105 = load ptr, ptr %17, align 8, !tbaa !5
  %106 = load i64, ptr %22, align 8, !tbaa !20
  %107 = load i32, ptr %11, align 4, !tbaa !9
  %108 = call i32 @FSBlockStore_Init(ptr noundef %101, ptr noundef %102, ptr noundef %103, ptr noundef %104, ptr noundef %105, i64 noundef %106, i32 noundef %107, ptr noundef %23)
  store i32 %108, ptr %24, align 4, !tbaa !9
  %109 = load i32, ptr %24, align 4, !tbaa !9
  %110 = icmp ne i32 %109, 0
  br i1 %110, label %111, label %115

111:                                              ; preds = %94
  %112 = load ptr, ptr %14, align 8, !tbaa !5
  %113 = load i32, ptr %24, align 4, !tbaa !9
  call void (ptr, ptr, i32, ptr, i32, ptr, ...) @Longtail_CallLogger(ptr noundef @.str.3, ptr noundef @__func__.Longtail_CreateFSBlockStoreAPI, i32 noundef 1510, ptr noundef %112, i32 noundef 3, ptr noundef @.str.23, i32 noundef %113)
  %114 = load ptr, ptr %19, align 8, !tbaa !5
  call void @Longtail_Free(ptr noundef %114)
  store ptr null, ptr %6, align 8
  store i32 1, ptr %15, align 4
  br label %117

115:                                              ; preds = %94
  %116 = load ptr, ptr %23, align 8, !tbaa !5
  store ptr %116, ptr %6, align 8
  store i32 1, ptr %15, align 4
  br label %117

117:                                              ; preds = %115, %111
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  br label %118

118:                                              ; preds = %117, %92
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  br label %119

119:                                              ; preds = %118, %73, %64, %59
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 96, ptr %12) #4
  %120 = load ptr, ptr %6, align 8
  ret ptr %120
}

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

declare i64 @Longtail_GetProcessIdentity(...) #2

; Function Attrs: nounwind uwtable
declare hidden i32 @FSBlockStore_Init(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef, i32 noundef, ptr noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind willreturn memory(read) "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 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(read) }

!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 0}
!12 = !{!"Longtail_LogFieldFmt_Private", !6, i64 0, !6, i64 8, !6, i64 16}
!13 = !{!12, !6, i64 8}
!14 = !{!12, !6, i64 16}
!15 = !{!16, !6, i64 0}
!16 = !{!"Longtail_LogContextFmt_Private", !6, i64 0, !6, i64 8, !17, i64 16}
!17 = !{!"long", !7, i64 0}
!18 = !{!16, !6, i64 8}
!19 = !{!16, !17, i64 16}
!20 = !{!17, !17, i64 0}


; 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.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [98 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [19 x i8], align 1
@__func__.Longtail_CreateFSBlockStoreAPI = external hidden unnamed_addr constant [31 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [35 x i8], align 1

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #1

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

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

declare void @Longtail_Free(ptr noundef) local_unnamed_addr #2

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

22:                                               ; preds = %5
  call void (ptr, ptr, i32, ptr, i32, ptr, ...) @Longtail_CallLogger(ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.Longtail_CreateFSBlockStoreAPI, i32 noundef 1482, ptr noundef nonnull %7, i32 noundef 3, ptr noundef nonnull @.str.16, ptr noundef nonnull @.str.17) #4
  br label %46

23:                                               ; preds = %5
  %.not38 = icmp eq ptr %2, null
  br i1 %.not38, label %24, label %25

24:                                               ; preds = %23
  call void (ptr, ptr, i32, ptr, i32, ptr, ...) @Longtail_CallLogger(ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.Longtail_CreateFSBlockStoreAPI, i32 noundef 1483, ptr noundef nonnull %7, i32 noundef 3, ptr noundef nonnull @.str.16, ptr noundef nonnull @.str.18) #4
  br label %46

25:                                               ; preds = %23
  %26 = icmp eq ptr %3, null
  br i1 %26, label %31, label %27

27:                                               ; preds = %25
  %28 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %3) #5
  %29 = icmp ult i64 %28, 15
  br i1 %29, label %31, label %30

30:                                               ; preds = %27
  call void (ptr, ptr, i32, ptr, i32, ptr, ...) @Longtail_CallLogger(ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.Longtail_CreateFSBlockStoreAPI, i32 noundef 1484, ptr noundef nonnull %7, i32 noundef 3, ptr noundef nonnull @.str.16, ptr noundef nonnull @.str.19) #4
  br label %46

31:                                               ; preds = %27, %25
  %32 = phi ptr [ %3, %27 ], [ @.str.20, %25 ]
  %33 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %32) #5
  %34 = add i64 %33, 345
  %35 = call ptr @Longtail_Alloc(ptr noundef nonnull @.str.21, i64 noundef %34) #4
  %.not40 = icmp eq ptr %35, null
  br i1 %.not40, label %36, label %37

36:                                               ; preds = %31
  call void (ptr, ptr, i32, ptr, i32, ptr, ...) @Longtail_CallLogger(ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.Longtail_CreateFSBlockStoreAPI, i32 noundef 1491, ptr noundef nonnull %7, i32 noundef 3, ptr noundef nonnull @.str.22, i32 noundef 12) #4
  br label %46

37:                                               ; preds = %31
  %38 = call i64 (...) @Longtail_GetProcessIdentity() #4
  %39 = ptrtoint ptr %35 to i64
  %40 = xor i64 %38, %39
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  %41 = call i32 @FSBlockStore_Init(ptr noundef nonnull %35, ptr noundef %0, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef nonnull %32, i64 noundef %40, i32 noundef %4, ptr noundef nonnull %8)
  %.not41 = icmp eq i32 %41, 0
  br i1 %.not41, label %43, label %42

42:                                               ; preds = %37
  call void (ptr, ptr, i32, ptr, i32, ptr, ...) @Longtail_CallLogger(ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.Longtail_CreateFSBlockStoreAPI, i32 noundef 1510, ptr noundef nonnull %7, i32 noundef 3, ptr noundef nonnull @.str.23, i32 noundef %41) #4
  call void @Longtail_Free(ptr noundef nonnull %35) #4
  br label %45

43:                                               ; preds = %37
  %44 = load ptr, ptr %8, align 8, !tbaa !17
  br label %45

45:                                               ; preds = %43, %42
  %.0 = phi ptr [ null, %42 ], [ %44, %43 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  br label %46

46:                                               ; preds = %36, %45, %30, %24, %22
  %.2 = phi ptr [ null, %30 ], [ null, %24 ], [ null, %22 ], [ %.0, %45 ], [ null, %36 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %6) #4
  ret ptr %.2
}

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

declare i64 @Longtail_GetProcessIdentity(...) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare hidden i32 @FSBlockStore_Init(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 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(read) }

!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 = !{!7, !7, i64 0}


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