; LLVM IR from 0xilis/libNeoAppleArchive :: libNeoAppleArchive (neo_aa_header)

; 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.neo_aa_header_impl = type { i32, ptr, ptr, ptr, ptr, ptr, i64, ptr }

@stderr = external global ptr, align 8
@.str.7 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [48 x i8], align 1
@__FUNCTION__.neo_aa_header_set_field_timespec = external hidden unnamed_addr constant [33 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [109 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [15 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
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1

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

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

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

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #4

declare void @internal_do_not_call_is_field_key_available(i32 noundef) #5

declare i64 @internal_do_not_call_neo_aa_archive_header_key_pos_in_encoded_data(ptr noundef, i32 noundef) #5

; Function Attrs: nounwind uwtable
define dso_local void @neo_aa_header_set_field_timespec(ptr noundef %0, i32 noundef %1, i64 noundef %2, i64 noundef %3) #3 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i64, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store i64 %2, ptr %7, align 8, !tbaa !11
  store i64 %3, ptr %8, align 8, !tbaa !11
  %16 = load ptr, ptr %5, align 8, !tbaa !5
  %17 = icmp ne ptr %16, null
  br i1 %17, label %21, label %18

18:                                               ; preds = %4
  %19 = load ptr, ptr @stderr, align 8, !tbaa !5
  %20 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %19, ptr noundef @.str.11, ptr noundef @__FUNCTION__.neo_aa_header_set_field_timespec) #6
  call void @exit(i32 noundef 1) #7
  unreachable

21:                                               ; preds = %4
  %22 = load i32, ptr %6, align 4, !tbaa !9
  call void @internal_do_not_call_is_field_key_available(i32 noundef %22)
  %23 = load i64, ptr %7, align 8, !tbaa !11
  %24 = call i32 @internal_do_not_call_is_field_type_supported_size(i32 noundef 4, i64 noundef %23)
  %25 = icmp ne i32 %24, 0
  br i1 %25, label %29, label %26

26:                                               ; preds = %21
  %27 = load ptr, ptr @stderr, align 8, !tbaa !5
  %28 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %27, ptr noundef @.str.11, ptr noundef @__FUNCTION__.neo_aa_header_set_field_timespec) #6
  call void @exit(i32 noundef 1) #7
  unreachable

29:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  %31 = load i32, ptr %6, align 4, !tbaa !9
  %32 = call i32 @neo_aa_header_get_field_key_index(ptr noundef %30, i32 noundef %31)
  store i32 %32, ptr %9, align 4, !tbaa !9
  %33 = load i32, ptr %9, align 4, !tbaa !9
  %34 = icmp eq i32 %33, -1
  br i1 %34, label %35, label %40

35:                                               ; preds = %29
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  %37 = load i32, ptr %6, align 4, !tbaa !9
  %38 = load i64, ptr %7, align 8, !tbaa !11
  %39 = load i64, ptr %8, align 8, !tbaa !11
  call void @neo_aa_header_add_field_timespec(ptr noundef %36, i32 noundef %37, i64 noundef %38, i64 noundef %39)
  store i32 1, ptr %10, align 4
  br label %123

40:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %41 = load ptr, ptr %5, align 8, !tbaa !5
  %42 = load i32, ptr %9, align 4, !tbaa !9
  %43 = call i64 @neo_aa_header_get_field_size(ptr noundef %41, i32 noundef %42)
  store i64 %43, ptr %11, align 8, !tbaa !11
  %44 = load i64, ptr %11, align 8, !tbaa !11
  %45 = load i64, ptr %7, align 8, !tbaa !11
  %46 = icmp ne i64 %44, %45
  br i1 %46, label %47, label %50

47:                                               ; preds = %40
  %48 = load ptr, ptr @stderr, align 8, !tbaa !5
  %49 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %48, ptr noundef @.str.7, ptr noundef @__FUNCTION__.neo_aa_header_set_field_timespec, ptr noundef @.str.15) #6
  store i32 1, ptr %10, align 4
  br label %122

50:                                               ; preds = %40
  %51 = load ptr, ptr %5, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.neo_aa_header_impl, ptr %51, i32 0, i32 3
  %53 = load ptr, ptr %52, align 8, !tbaa !13
  %54 = load i32, ptr %9, align 4, !tbaa !9
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds i8, ptr %53, i64 %55
  %57 = load i8, ptr %56, align 1, !tbaa !15
  %58 = sext i8 %57 to i32
  %59 = icmp ne i32 %58, 4
  br i1 %59, label %60, label %63

60:                                               ; preds = %50
  %61 = load ptr, ptr @stderr, align 8, !tbaa !5
  %62 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %61, ptr noundef @.str.7, ptr noundef @__FUNCTION__.neo_aa_header_set_field_timespec, ptr noundef @.str.16) #6
  store i32 1, ptr %10, align 4
  br label %122

63:                                               ; preds = %50
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.neo_aa_header_impl, ptr %64, i32 0, i32 5
  %66 = load ptr, ptr %65, align 8, !tbaa !16
  %67 = load i32, ptr %9, align 4, !tbaa !9
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds i64, ptr %66, i64 %68
  %70 = load i64, ptr %69, align 8, !tbaa !11
  %71 = load i64, ptr %7, align 8, !tbaa !11
  %72 = icmp ne i64 %70, %71
  br i1 %72, label %73, label %76

73:                                               ; preds = %63
  %74 = load ptr, ptr @stderr, align 8, !tbaa !5
  %75 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %74, ptr noundef @.str.7, ptr noundef @__FUNCTION__.neo_aa_header_set_field_timespec, ptr noundef @.str.17) #6
  store i32 1, ptr %10, align 4
  br label %122

76:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %77 = load ptr, ptr %5, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.neo_aa_header_impl, ptr %77, i32 0, i32 1
  %79 = load ptr, ptr %78, align 8, !tbaa !17
  store ptr %79, ptr %12, align 8, !tbaa !5
  %80 = load ptr, ptr %12, align 8, !tbaa !5
  %81 = icmp ne ptr %80, null
  br i1 %81, label %85, label %82

82:                                               ; preds = %76
  %83 = load ptr, ptr @stderr, align 8, !tbaa !5
  %84 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %83, ptr noundef @.str.7, ptr noundef @__FUNCTION__.neo_aa_header_set_field_timespec, ptr noundef @.str.18) #6
  store i32 1, ptr %10, align 4
  br label %121

85:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %86 = load ptr, ptr %5, align 8, !tbaa !5
  %87 = load i32, ptr %9, align 4, !tbaa !9
  %88 = call i64 @internal_do_not_call_neo_aa_archive_header_key_pos_in_encoded_data(ptr noundef %86, i32 noundef %87)
  store i64 %88, ptr %13, align 8, !tbaa !11
  %89 = load i64, ptr %13, align 8, !tbaa !11
  %90 = icmp ne i64 %89, 0
  br i1 %90, label %94, label %91

91:                                               ; preds = %85
  %92 = load ptr, ptr @stderr, align 8, !tbaa !5
  %93 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %92, ptr noundef @.str.7, ptr noundef @__FUNCTION__.neo_aa_header_set_field_timespec, ptr noundef @.str.14) #6
  store i32 1, ptr %10, align 4
  br label %120

94:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %95 = load ptr, ptr %5, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.neo_aa_header_impl, ptr %95, i32 0, i32 4
  %97 = load ptr, ptr %96, align 8, !tbaa !18
  %98 = load i32, ptr %9, align 4, !tbaa !9
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds ptr, ptr %97, i64 %99
  %101 = load ptr, ptr %100, align 8, !tbaa !5
  store ptr %101, ptr %14, align 8, !tbaa !5
  %102 = load i64, ptr %7, align 8, !tbaa !11
  switch i64 %102, label %109 [
    i64 8, label %103
    i64 12, label %106
  ]

103:                                              ; preds = %94
  %104 = load i64, ptr %8, align 8, !tbaa !11
  %105 = load ptr, ptr %14, align 8, !tbaa !5
  store i64 %104, ptr %105, align 8, !tbaa !11
  br label %112

106:                                              ; preds = %94
  %107 = load i64, ptr %8, align 8, !tbaa !11
  %108 = load ptr, ptr %14, align 8, !tbaa !5
  store i64 %107, ptr %108, align 8, !tbaa !11
  br label %112

109:                                              ; preds = %94
  %110 = load ptr, ptr @stderr, align 8, !tbaa !5
  %111 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %110, ptr noundef @.str.7, ptr noundef @__FUNCTION__.neo_aa_header_set_field_timespec, ptr noundef @.str.19) #6
  store i32 1, ptr %10, align 4
  br label %119

112:                                              ; preds = %106, %103
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %113 = load ptr, ptr %12, align 8, !tbaa !5
  %114 = load i64, ptr %13, align 8, !tbaa !11
  %115 = getelementptr inbounds i8, ptr %113, i64 %114
  %116 = getelementptr inbounds i8, ptr %115, i64 4
  store ptr %116, ptr %15, align 8, !tbaa !5
  %117 = load ptr, ptr %15, align 8, !tbaa !5
  %118 = load i64, ptr %7, align 8, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %117, ptr align 8 %8, i64 %118, i1 false)
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  store i32 0, ptr %10, align 4
  br label %119

119:                                              ; preds = %112, %109
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %120

120:                                              ; preds = %119, %91
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %121

121:                                              ; preds = %120, %82
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %122

122:                                              ; preds = %121, %73, %60, %47
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %123

123:                                              ; preds = %122, %35
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  %124 = load i32, ptr %10, align 4
  switch i32 %124, label %126 [
    i32 0, label %125
    i32 1, label %125
  ]

125:                                              ; preds = %123, %123
  ret void

126:                                              ; preds = %123
  unreachable
}

declare i32 @internal_do_not_call_is_field_type_supported_size(i32 noundef, i64 noundef) #5

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind "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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { noreturn nounwind "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 #5 = { "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 #6 = { nounwind }
attributes #7 = { noreturn 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, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !6, i64 24}
!14 = !{!"neo_aa_header_impl", !10, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !12, i64 48, !6, i64 56}
!15 = !{!7, !7, i64 0}
!16 = !{!14, !6, i64 40}
!17 = !{!14, !6, i64 8}
!18 = !{!14, !6, 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"

@stderr = external local_unnamed_addr global ptr, align 8
@.str.7 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [48 x i8], align 1
@__FUNCTION__.neo_aa_header_set_field_timespec = external hidden unnamed_addr constant [33 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [109 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [15 x i8], align 1

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #0

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

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

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #3

declare void @internal_do_not_call_is_field_key_available(i32 noundef) local_unnamed_addr #4

declare i64 @internal_do_not_call_neo_aa_archive_header_key_pos_in_encoded_data(ptr noundef, i32 noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
define dso_local void @neo_aa_header_set_field_timespec(ptr noundef %0, i32 noundef %1, i64 noundef %2, i64 noundef %3) local_unnamed_addr #2 {
  %5 = alloca i64, align 8
  store i64 %3, ptr %5, align 8, !tbaa !5
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %6, label %9

6:                                                ; preds = %4
  %7 = load ptr, ptr @stderr, align 8, !tbaa !9
  %8 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.11, ptr noundef nonnull @__FUNCTION__.neo_aa_header_set_field_timespec) #5
  tail call void @exit(i32 noundef 1) #6
  unreachable

9:                                                ; preds = %4
  tail call void @internal_do_not_call_is_field_key_available(i32 noundef %1) #7
  %10 = tail call i32 @internal_do_not_call_is_field_type_supported_size(i32 noundef 4, i64 noundef %2) #7
  %.not38 = icmp eq i32 %10, 0
  br i1 %.not38, label %11, label %14

11:                                               ; preds = %9
  %12 = load ptr, ptr @stderr, align 8, !tbaa !9
  %13 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %12, ptr noundef nonnull @.str.11, ptr noundef nonnull @__FUNCTION__.neo_aa_header_set_field_timespec) #5
  tail call void @exit(i32 noundef 1) #6
  unreachable

14:                                               ; preds = %9
  %15 = tail call i32 @neo_aa_header_get_field_key_index(ptr noundef nonnull %0, i32 noundef %1)
  %16 = icmp eq i32 %15, -1
  br i1 %16, label %17, label %18

17:                                               ; preds = %14
  tail call void @neo_aa_header_add_field_timespec(ptr noundef nonnull %0, i32 noundef %1, i64 noundef %2, i64 noundef %3)
  br label %62

18:                                               ; preds = %14
  %19 = tail call i64 @neo_aa_header_get_field_size(ptr noundef nonnull %0, i32 noundef %15)
  %.not39 = icmp eq i64 %19, %2
  br i1 %.not39, label %23, label %20

20:                                               ; preds = %18
  %21 = load ptr, ptr @stderr, align 8, !tbaa !9
  %22 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %21, ptr noundef nonnull @.str.7, ptr noundef nonnull @__FUNCTION__.neo_aa_header_set_field_timespec, ptr noundef nonnull @.str.15) #5
  br label %62

23:                                               ; preds = %18
  %24 = getelementptr inbounds i8, ptr %0, i64 24
  %25 = load ptr, ptr %24, align 8, !tbaa !11
  %26 = sext i32 %15 to i64
  %27 = getelementptr inbounds i8, ptr %25, i64 %26
  %28 = load i8, ptr %27, align 1, !tbaa !14
  %.not40 = icmp eq i8 %28, 4
  br i1 %.not40, label %32, label %29

29:                                               ; preds = %23
  %30 = load ptr, ptr @stderr, align 8, !tbaa !9
  %31 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %30, ptr noundef nonnull @.str.7, ptr noundef nonnull @__FUNCTION__.neo_aa_header_set_field_timespec, ptr noundef nonnull @.str.16) #5
  br label %62

32:                                               ; preds = %23
  %33 = getelementptr inbounds i8, ptr %0, i64 40
  %34 = load ptr, ptr %33, align 8, !tbaa !15
  %35 = getelementptr inbounds i64, ptr %34, i64 %26
  %36 = load i64, ptr %35, align 8, !tbaa !5
  %.not41 = icmp eq i64 %36, %2
  br i1 %.not41, label %40, label %37

37:                                               ; preds = %32
  %38 = load ptr, ptr @stderr, align 8, !tbaa !9
  %39 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %38, ptr noundef nonnull @.str.7, ptr noundef nonnull @__FUNCTION__.neo_aa_header_set_field_timespec, ptr noundef nonnull @.str.17) #5
  br label %62

40:                                               ; preds = %32
  %41 = getelementptr inbounds i8, ptr %0, i64 8
  %42 = load ptr, ptr %41, align 8, !tbaa !16
  %.not42 = icmp eq ptr %42, null
  br i1 %.not42, label %43, label %46

43:                                               ; preds = %40
  %44 = load ptr, ptr @stderr, align 8, !tbaa !9
  %45 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %44, ptr noundef nonnull @.str.7, ptr noundef nonnull @__FUNCTION__.neo_aa_header_set_field_timespec, ptr noundef nonnull @.str.18) #5
  br label %62

46:                                               ; preds = %40
  %47 = tail call i64 @internal_do_not_call_neo_aa_archive_header_key_pos_in_encoded_data(ptr noundef nonnull %0, i32 noundef %15) #7
  %.not43 = icmp eq i64 %47, 0
  br i1 %.not43, label %48, label %51

48:                                               ; preds = %46
  %49 = load ptr, ptr @stderr, align 8, !tbaa !9
  %50 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %49, ptr noundef nonnull @.str.7, ptr noundef nonnull @__FUNCTION__.neo_aa_header_set_field_timespec, ptr noundef nonnull @.str.14) #5
  br label %62

51:                                               ; preds = %46
  switch i64 %2, label %52 [
    i64 8, label %55
    i64 12, label %55
  ]

52:                                               ; preds = %51
  %53 = load ptr, ptr @stderr, align 8, !tbaa !9
  %54 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %53, ptr noundef nonnull @.str.7, ptr noundef nonnull @__FUNCTION__.neo_aa_header_set_field_timespec, ptr noundef nonnull @.str.19) #5
  br label %62

55:                                               ; preds = %51, %51
  %56 = getelementptr inbounds i8, ptr %0, i64 32
  %57 = load ptr, ptr %56, align 8, !tbaa !17
  %58 = getelementptr inbounds ptr, ptr %57, i64 %26
  %59 = load ptr, ptr %58, align 8, !tbaa !9
  store i64 %3, ptr %59, align 8, !tbaa !5
  %60 = getelementptr inbounds i8, ptr %42, i64 %47
  %61 = getelementptr inbounds i8, ptr %60, i64 4
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 1 %61, ptr nonnull align 8 %5, i64 %2, i1 false)
  br label %62

62:                                               ; preds = %20, %29, %37, %48, %55, %52, %43, %17
  ret void
}

declare i32 @internal_do_not_call_is_field_type_supported_size(i32 noundef, i64 noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
declare hidden void @neo_aa_header_add_field_timespec(ptr noundef, i32 noundef, i64 noundef, i64 noundef) local_unnamed_addr #2

attributes #0 = { nofree nounwind "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 nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { noreturn nounwind "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 = { "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 #5 = { cold nounwind }
attributes #6 = { noreturn nounwind }
attributes #7 = { 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 = !{!"long", !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 24}
!12 = !{!"neo_aa_header_impl", !13, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !6, i64 48, !10, i64 56}
!13 = !{!"int", !7, i64 0}
!14 = !{!7, !7, i64 0}
!15 = !{!12, !10, i64 40}
!16 = !{!12, !10, i64 8}
!17 = !{!12, !10, i64 32}


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