; LLVM IR from gost-engine/engine :: gost_ameth (register_ameth_gost)

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

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

18:                                               ; preds = %4
  store i32 0, ptr %5, align 4
  br label %68

19:                                               ; preds = %4
  %20 = load i32, ptr %6, align 4, !tbaa !5
  switch i32 %20, label %67 [
    i32 811, label %21
    i32 817, label %21
    i32 979, label %34
    i32 980, label %34
    i32 815, label %47
    i32 976, label %52
    i32 1192, label %57
    i32 1017, label %62
  ]

21:                                               ; preds = %19, %19
  %22 = load ptr, ptr %7, align 8, !tbaa !9
  %23 = load ptr, ptr %22, align 8, !tbaa !9
  call void @EVP_PKEY_asn1_set_free(ptr noundef %23, ptr noundef @pkey_free_gost_ec)
  %24 = load ptr, ptr %7, align 8, !tbaa !9
  %25 = load ptr, ptr %24, align 8, !tbaa !9
  call void @EVP_PKEY_asn1_set_private(ptr noundef %25, ptr noundef @priv_decode_gost, ptr noundef @priv_encode_gost, ptr noundef @priv_print_gost_ec)
  %26 = load ptr, ptr %7, align 8, !tbaa !9
  %27 = load ptr, ptr %26, align 8, !tbaa !9
  call void @EVP_PKEY_asn1_set_param(ptr noundef %27, ptr noundef @gost2001_param_decode, ptr noundef @gost2001_param_encode, ptr noundef @param_missing_gost_ec, ptr noundef @param_copy_gost_ec, ptr noundef @param_cmp_gost_ec, ptr noundef @param_print_gost_ec)
  %28 = load ptr, ptr %7, align 8, !tbaa !9
  %29 = load ptr, ptr %28, align 8, !tbaa !9
  call void @EVP_PKEY_asn1_set_public(ptr noundef %29, ptr noundef @pub_decode_gost_ec, ptr noundef @pub_encode_gost_ec, ptr noundef @pub_cmp_gost_ec, ptr noundef @pub_print_gost_ec, ptr noundef @pkey_size_gost, ptr noundef @pkey_bits_gost)
  %30 = load ptr, ptr %7, align 8, !tbaa !9
  %31 = load ptr, ptr %30, align 8, !tbaa !9
  call void @EVP_PKEY_asn1_set_ctrl(ptr noundef %31, ptr noundef @pkey_ctrl_gost)
  %32 = load ptr, ptr %7, align 8, !tbaa !9
  %33 = load ptr, ptr %32, align 8, !tbaa !9
  call void @EVP_PKEY_asn1_set_security_bits(ptr noundef %33, ptr noundef @pkey_bits_gost)
  br label %67

34:                                               ; preds = %19, %19
  %35 = load ptr, ptr %7, align 8, !tbaa !9
  %36 = load ptr, ptr %35, align 8, !tbaa !9
  call void @EVP_PKEY_asn1_set_free(ptr noundef %36, ptr noundef @pkey_free_gost_ec)
  %37 = load ptr, ptr %7, align 8, !tbaa !9
  %38 = load ptr, ptr %37, align 8, !tbaa !9
  call void @EVP_PKEY_asn1_set_private(ptr noundef %38, ptr noundef @priv_decode_gost, ptr noundef @priv_encode_gost, ptr noundef @priv_print_gost_ec)
  %39 = load ptr, ptr %7, align 8, !tbaa !9
  %40 = load ptr, ptr %39, align 8, !tbaa !9
  call void @EVP_PKEY_asn1_set_param(ptr noundef %40, ptr noundef null, ptr noundef null, ptr noundef @param_missing_gost_ec, ptr noundef @param_copy_gost_ec, ptr noundef @param_cmp_gost_ec, ptr noundef null)
  %41 = load ptr, ptr %7, align 8, !tbaa !9
  %42 = load ptr, ptr %41, align 8, !tbaa !9
  call void @EVP_PKEY_asn1_set_public(ptr noundef %42, ptr noundef @pub_decode_gost_ec, ptr noundef @pub_encode_gost_ec, ptr noundef @pub_cmp_gost_ec, ptr noundef @pub_print_gost_ec, ptr noundef @pkey_size_gost, ptr noundef @pkey_bits_gost)
  %43 = load ptr, ptr %7, align 8, !tbaa !9
  %44 = load ptr, ptr %43, align 8, !tbaa !9
  call void @EVP_PKEY_asn1_set_ctrl(ptr noundef %44, ptr noundef @pkey_ctrl_gost)
  %45 = load ptr, ptr %7, align 8, !tbaa !9
  %46 = load ptr, ptr %45, align 8, !tbaa !9
  call void @EVP_PKEY_asn1_set_security_bits(ptr noundef %46, ptr noundef @pkey_bits_gost)
  br label %67

47:                                               ; preds = %19
  %48 = load ptr, ptr %7, align 8, !tbaa !9
  %49 = load ptr, ptr %48, align 8, !tbaa !9
  call void @EVP_PKEY_asn1_set_free(ptr noundef %49, ptr noundef @mackey_free_gost)
  %50 = load ptr, ptr %7, align 8, !tbaa !9
  %51 = load ptr, ptr %50, align 8, !tbaa !9
  call void @EVP_PKEY_asn1_set_ctrl(ptr noundef %51, ptr noundef @mac_ctrl_gost)
  br label %67

52:                                               ; preds = %19
  %53 = load ptr, ptr %7, align 8, !tbaa !9
  %54 = load ptr, ptr %53, align 8, !tbaa !9
  call void @EVP_PKEY_asn1_set_free(ptr noundef %54, ptr noundef @mackey_free_gost)
  %55 = load ptr, ptr %7, align 8, !tbaa !9
  %56 = load ptr, ptr %55, align 8, !tbaa !9
  call void @EVP_PKEY_asn1_set_ctrl(ptr noundef %56, ptr noundef @mac_ctrl_gost_12)
  br label %67

57:                                               ; preds = %19
  %58 = load ptr, ptr %7, align 8, !tbaa !9
  %59 = load ptr, ptr %58, align 8, !tbaa !9
  call void @EVP_PKEY_asn1_set_free(ptr noundef %59, ptr noundef @mackey_free_gost)
  %60 = load ptr, ptr %7, align 8, !tbaa !9
  %61 = load ptr, ptr %60, align 8, !tbaa !9
  call void @EVP_PKEY_asn1_set_ctrl(ptr noundef %61, ptr noundef @mac_ctrl_magma)
  br label %67

62:                                               ; preds = %19
  %63 = load ptr, ptr %7, align 8, !tbaa !9
  %64 = load ptr, ptr %63, align 8, !tbaa !9
  call void @EVP_PKEY_asn1_set_free(ptr noundef %64, ptr noundef @mackey_free_gost)
  %65 = load ptr, ptr %7, align 8, !tbaa !9
  %66 = load ptr, ptr %65, align 8, !tbaa !9
  call void @EVP_PKEY_asn1_set_ctrl(ptr noundef %66, ptr noundef @mac_ctrl_grasshopper)
  br label %67

67:                                               ; preds = %62, %57, %52, %47, %34, %21, %19
  store i32 1, ptr %5, align 4
  br label %68

68:                                               ; preds = %67, %18
  %69 = load i32, ptr %5, align 4
  ret i32 %69
}

declare ptr @EVP_PKEY_asn1_new(i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1

declare void @EVP_PKEY_asn1_set_free(ptr noundef, ptr noundef) #1

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

declare void @EVP_PKEY_asn1_set_private(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

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

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

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

declare void @EVP_PKEY_asn1_set_param(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

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

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

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

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

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

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

declare void @EVP_PKEY_asn1_set_public(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

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

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

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

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

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

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

declare void @EVP_PKEY_asn1_set_ctrl(ptr noundef, ptr noundef) #1

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

declare void @EVP_PKEY_asn1_set_security_bits(ptr noundef, ptr noundef) #1

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

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

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

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

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }

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


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @register_ameth_gost(i32 noundef %0, ptr nocapture noundef %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #0 {
  %5 = tail call ptr @EVP_PKEY_asn1_new(i32 noundef %0, i32 noundef 4, ptr noundef %2, ptr noundef %3) #2
  store ptr %5, ptr %1, align 8, !tbaa !5
  %.not = icmp eq ptr %5, null
  br i1 %.not, label %27, label %6

6:                                                ; preds = %4
  switch i32 %0, label %27 [
    i32 811, label %7
    i32 817, label %7
    i32 979, label %13
    i32 980, label %13
    i32 815, label %19
    i32 976, label %21
    i32 1192, label %23
    i32 1017, label %25
  ]

7:                                                ; preds = %6, %6
  tail call void @EVP_PKEY_asn1_set_free(ptr noundef nonnull %5, ptr noundef nonnull @pkey_free_gost_ec) #2
  %8 = load ptr, ptr %1, align 8, !tbaa !5
  tail call void @EVP_PKEY_asn1_set_private(ptr noundef %8, ptr noundef nonnull @priv_decode_gost, ptr noundef nonnull @priv_encode_gost, ptr noundef nonnull @priv_print_gost_ec) #2
  %9 = load ptr, ptr %1, align 8, !tbaa !5
  tail call void @EVP_PKEY_asn1_set_param(ptr noundef %9, ptr noundef nonnull @gost2001_param_decode, ptr noundef nonnull @gost2001_param_encode, ptr noundef nonnull @param_missing_gost_ec, ptr noundef nonnull @param_copy_gost_ec, ptr noundef nonnull @param_cmp_gost_ec, ptr noundef nonnull @param_print_gost_ec) #2
  %10 = load ptr, ptr %1, align 8, !tbaa !5
  tail call void @EVP_PKEY_asn1_set_public(ptr noundef %10, ptr noundef nonnull @pub_decode_gost_ec, ptr noundef nonnull @pub_encode_gost_ec, ptr noundef nonnull @pub_cmp_gost_ec, ptr noundef nonnull @pub_print_gost_ec, ptr noundef nonnull @pkey_size_gost, ptr noundef nonnull @pkey_bits_gost) #2
  %11 = load ptr, ptr %1, align 8, !tbaa !5
  tail call void @EVP_PKEY_asn1_set_ctrl(ptr noundef %11, ptr noundef nonnull @pkey_ctrl_gost) #2
  %12 = load ptr, ptr %1, align 8, !tbaa !5
  tail call void @EVP_PKEY_asn1_set_security_bits(ptr noundef %12, ptr noundef nonnull @pkey_bits_gost) #2
  br label %27

13:                                               ; preds = %6, %6
  tail call void @EVP_PKEY_asn1_set_free(ptr noundef nonnull %5, ptr noundef nonnull @pkey_free_gost_ec) #2
  %14 = load ptr, ptr %1, align 8, !tbaa !5
  tail call void @EVP_PKEY_asn1_set_private(ptr noundef %14, ptr noundef nonnull @priv_decode_gost, ptr noundef nonnull @priv_encode_gost, ptr noundef nonnull @priv_print_gost_ec) #2
  %15 = load ptr, ptr %1, align 8, !tbaa !5
  tail call void @EVP_PKEY_asn1_set_param(ptr noundef %15, ptr noundef null, ptr noundef null, ptr noundef nonnull @param_missing_gost_ec, ptr noundef nonnull @param_copy_gost_ec, ptr noundef nonnull @param_cmp_gost_ec, ptr noundef null) #2
  %16 = load ptr, ptr %1, align 8, !tbaa !5
  tail call void @EVP_PKEY_asn1_set_public(ptr noundef %16, ptr noundef nonnull @pub_decode_gost_ec, ptr noundef nonnull @pub_encode_gost_ec, ptr noundef nonnull @pub_cmp_gost_ec, ptr noundef nonnull @pub_print_gost_ec, ptr noundef nonnull @pkey_size_gost, ptr noundef nonnull @pkey_bits_gost) #2
  %17 = load ptr, ptr %1, align 8, !tbaa !5
  tail call void @EVP_PKEY_asn1_set_ctrl(ptr noundef %17, ptr noundef nonnull @pkey_ctrl_gost) #2
  %18 = load ptr, ptr %1, align 8, !tbaa !5
  tail call void @EVP_PKEY_asn1_set_security_bits(ptr noundef %18, ptr noundef nonnull @pkey_bits_gost) #2
  br label %27

19:                                               ; preds = %6
  tail call void @EVP_PKEY_asn1_set_free(ptr noundef nonnull %5, ptr noundef nonnull @mackey_free_gost) #2
  %20 = load ptr, ptr %1, align 8, !tbaa !5
  tail call void @EVP_PKEY_asn1_set_ctrl(ptr noundef %20, ptr noundef nonnull @mac_ctrl_gost) #2
  br label %27

21:                                               ; preds = %6
  tail call void @EVP_PKEY_asn1_set_free(ptr noundef nonnull %5, ptr noundef nonnull @mackey_free_gost) #2
  %22 = load ptr, ptr %1, align 8, !tbaa !5
  tail call void @EVP_PKEY_asn1_set_ctrl(ptr noundef %22, ptr noundef nonnull @mac_ctrl_gost_12) #2
  br label %27

23:                                               ; preds = %6
  tail call void @EVP_PKEY_asn1_set_free(ptr noundef nonnull %5, ptr noundef nonnull @mackey_free_gost) #2
  %24 = load ptr, ptr %1, align 8, !tbaa !5
  tail call void @EVP_PKEY_asn1_set_ctrl(ptr noundef %24, ptr noundef nonnull @mac_ctrl_magma) #2
  br label %27

25:                                               ; preds = %6
  tail call void @EVP_PKEY_asn1_set_free(ptr noundef nonnull %5, ptr noundef nonnull @mackey_free_gost) #2
  %26 = load ptr, ptr %1, align 8, !tbaa !5
  tail call void @EVP_PKEY_asn1_set_ctrl(ptr noundef %26, ptr noundef nonnull @mac_ctrl_grasshopper) #2
  br label %27

27:                                               ; preds = %6, %7, %13, %19, %21, %23, %25, %4
  %.0 = phi i32 [ 0, %4 ], [ 1, %25 ], [ 1, %23 ], [ 1, %21 ], [ 1, %19 ], [ 1, %13 ], [ 1, %7 ], [ 1, %6 ]
  ret i32 %.0
}

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

declare void @EVP_PKEY_asn1_set_free(ptr noundef, ptr noundef) local_unnamed_addr #1

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

declare void @EVP_PKEY_asn1_set_private(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

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

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

declare void @EVP_PKEY_asn1_set_param(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

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

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

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

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

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

declare void @EVP_PKEY_asn1_set_public(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

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

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

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

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

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

declare void @EVP_PKEY_asn1_set_ctrl(ptr noundef, ptr noundef) local_unnamed_addr #1

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

declare void @EVP_PKEY_asn1_set_security_bits(ptr noundef, ptr noundef) local_unnamed_addr #1

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

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

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

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

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}


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