; LLVM IR from trustwallet/wallet-core :: trezor-crypto/crypto/tools (bip39bruteforce)

; 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.HDNode = type { i32, i32, [32 x i8], [32 x i8], [32 x i8], [33 x i8], ptr }

@count = external dso_local global i32, align 4
@found = external dso_local global i32, align 4
@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [43 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [28 x i8], align 1
@start = external dso_local global i64, align 8
@iter = external dso_local global [256 x i8], align 16
@stdin = external global ptr, align 8
@seed = external dso_local global [64 x i8], align 16
@.str.5 = external hidden unnamed_addr constant [1 x i8], align 1
@SECP256K1_NAME = external constant [0 x i8], align 1
@node = external dso_local global %struct.HDNode, align 8
@addr = external dso_local global [130 x i8], align 16
@.str.6 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [27 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca float, align 4
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  %12 = load i32, ptr %4, align 4, !tbaa !5
  %13 = icmp ne i32 %12, 2
  br i1 %13, label %14, label %20

14:                                               ; preds = %2
  %15 = load i32, ptr %4, align 4, !tbaa !5
  %16 = icmp ne i32 %15, 3
  br i1 %16, label %17, label %20

17:                                               ; preds = %14
  %18 = load ptr, ptr @stderr, align 8, !tbaa !9
  %19 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef @.str) #5
  store i32 1, ptr %3, align 4
  br label %111

20:                                               ; preds = %14, %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %21 = load ptr, ptr %5, align 8, !tbaa !9
  %22 = getelementptr inbounds ptr, ptr %21, i64 1
  %23 = load ptr, ptr %22, align 8, !tbaa !9
  store ptr %23, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %24 = load i32, ptr %4, align 4, !tbaa !5
  %25 = icmp eq i32 %24, 3
  br i1 %25, label %26, label %30

26:                                               ; preds = %20
  %27 = load ptr, ptr %5, align 8, !tbaa !9
  %28 = getelementptr inbounds ptr, ptr %27, i64 2
  %29 = load ptr, ptr %28, align 8, !tbaa !9
  store ptr %29, ptr %7, align 8, !tbaa !9
  store ptr @.str.1, ptr %8, align 8, !tbaa !9
  br label %31

30:                                               ; preds = %20
  store ptr null, ptr %7, align 8, !tbaa !9
  store ptr @.str.2, ptr %8, align 8, !tbaa !9
  br label %31

31:                                               ; preds = %30, %26
  %32 = load ptr, ptr %7, align 8, !tbaa !9
  %33 = icmp ne ptr %32, null
  br i1 %33, label %34, label %42

34:                                               ; preds = %31
  %35 = load ptr, ptr %7, align 8, !tbaa !9
  %36 = call i32 @mnemonic_check(ptr noundef %35)
  %37 = icmp ne i32 %36, 0
  br i1 %37, label %42, label %38

38:                                               ; preds = %34
  %39 = load ptr, ptr @stderr, align 8, !tbaa !9
  %40 = load ptr, ptr %7, align 8, !tbaa !9
  %41 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %39, ptr noundef @.str.3, ptr noundef %40) #5
  store i32 2, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %110

42:                                               ; preds = %34, %31
  %43 = load ptr, ptr %8, align 8, !tbaa !9
  %44 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %43)
  %45 = call i64 @clock() #5
  store i64 %45, ptr @start, align 8, !tbaa !11
  br label %46

46:                                               ; preds = %84, %82, %42
  %47 = load ptr, ptr @stdin, align 8, !tbaa !9
  %48 = call ptr @fgets(ptr noundef @iter, i32 noundef 256, ptr noundef %47)
  %49 = icmp eq ptr %48, null
  br i1 %49, label %50, label %51

50:                                               ; preds = %46
  br label %85

51:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %52 = call i64 @strlen(ptr noundef @iter) #6
  %53 = trunc i64 %52 to i32
  store i32 %53, ptr %10, align 4, !tbaa !5
  %54 = load i32, ptr %10, align 4, !tbaa !5
  %55 = icmp sle i32 %54, 0
  br i1 %55, label %56, label %57

56:                                               ; preds = %51
  store i32 3, ptr %9, align 4
  br label %82

57:                                               ; preds = %51
  %58 = load i32, ptr @count, align 4, !tbaa !5
  %59 = add nsw i32 %58, 1
  store i32 %59, ptr @count, align 4, !tbaa !5
  %60 = load i32, ptr %10, align 4, !tbaa !5
  %61 = sub nsw i32 %60, 1
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [256 x i8], ptr @iter, i64 0, i64 %62
  store i8 0, ptr %63, align 1, !tbaa !13
  %64 = load ptr, ptr %7, align 8, !tbaa !9
  %65 = icmp ne ptr %64, null
  br i1 %65, label %66, label %68

66:                                               ; preds = %57
  %67 = load ptr, ptr %7, align 8, !tbaa !9
  call void @mnemonic_to_seed(ptr noundef %67, ptr noundef @iter, ptr noundef @seed, ptr noundef null)
  br label %69

68:                                               ; preds = %57
  call void @mnemonic_to_seed(ptr noundef @iter, ptr noundef @.str.5, ptr noundef @seed, ptr noundef null)
  br label %69

69:                                               ; preds = %68, %66
  %70 = call i32 @hdnode_from_seed(ptr noundef @seed, i32 noundef 64, ptr noundef @SECP256K1_NAME, ptr noundef @node)
  %71 = call i32 @hdnode_private_ckd(ptr noundef @node, i32 noundef -2147483599)
  %72 = call i32 @hdnode_private_ckd(ptr noundef @node, i32 noundef -2147483648)
  %73 = call i32 @hdnode_private_ckd(ptr noundef @node, i32 noundef -2147483648)
  %74 = call i32 @hdnode_private_ckd(ptr noundef @node, i32 noundef 0)
  %75 = call i32 @hdnode_private_ckd(ptr noundef @node, i32 noundef 0)
  %76 = call i32 @hdnode_fill_public_key(ptr noundef @node)
  call void @ecdsa_get_address_segwit_p2sh(ptr noundef getelementptr inbounds (%struct.HDNode, ptr @node, i32 0, i32 5), i32 noundef 5, i32 noundef 2, i32 noundef 1, ptr noundef @addr, i32 noundef 130)
  %77 = load ptr, ptr %6, align 8, !tbaa !9
  %78 = call i32 @strcmp(ptr noundef %77, ptr noundef @addr) #6
  %79 = icmp eq i32 %78, 0
  br i1 %79, label %80, label %81

80:                                               ; preds = %69
  store i32 1, ptr @found, align 4, !tbaa !5
  store i32 2, ptr %9, align 4
  br label %82

81:                                               ; preds = %69
  store i32 0, ptr %9, align 4
  br label %82

82:                                               ; preds = %81, %80, %56
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  %83 = load i32, ptr %9, align 4
  switch i32 %83, label %113 [
    i32 0, label %84
    i32 3, label %46
    i32 2, label %85
  ]

84:                                               ; preds = %82
  br label %46

85:                                               ; preds = %82, %50
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %86 = call i64 @clock() #5
  %87 = load i64, ptr @start, align 8, !tbaa !11
  %88 = sub nsw i64 %86, %87
  %89 = sitofp i64 %88 to float
  %90 = fdiv float %89, 1.000000e+06
  store float %90, ptr %11, align 4, !tbaa !14
  %91 = load i32, ptr @count, align 4, !tbaa !5
  %92 = load ptr, ptr %8, align 8, !tbaa !9
  %93 = load float, ptr %11, align 4, !tbaa !14
  %94 = fpext float %93 to double
  %95 = load i32, ptr @count, align 4, !tbaa !5
  %96 = sitofp i32 %95 to float
  %97 = load float, ptr %11, align 4, !tbaa !14
  %98 = fdiv float %96, %97
  %99 = fpext float %98 to double
  %100 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %91, ptr noundef %92, double noundef %94, double noundef %99)
  %101 = load i32, ptr @found, align 4, !tbaa !5
  %102 = icmp ne i32 %101, 0
  br i1 %102, label %103, label %106

103:                                              ; preds = %85
  %104 = load ptr, ptr %8, align 8, !tbaa !9
  %105 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef %104, ptr noundef @iter)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %109

106:                                              ; preds = %85
  %107 = load ptr, ptr %8, align 8, !tbaa !9
  %108 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, ptr noundef %107)
  store i32 4, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %109

109:                                              ; preds = %106, %103
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %110

110:                                              ; preds = %109, %38
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  br label %111

111:                                              ; preds = %110, %17
  %112 = load i32, ptr %3, align 4
  ret i32 %112

113:                                              ; preds = %82
  unreachable
}

; 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.start.p0(i64 immarg, ptr nocapture) #2

declare i32 @mnemonic_check(ptr noundef) #3

declare i32 @printf(ptr noundef, ...) #3

; Function Attrs: nounwind
declare i64 @clock() #1

declare ptr @fgets(ptr noundef, i32 noundef, ptr noundef) #3

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

declare void @mnemonic_to_seed(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

declare i32 @hdnode_from_seed(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #3

declare i32 @hdnode_private_ckd(ptr noundef, i32 noundef) #3

declare i32 @hdnode_fill_public_key(ptr noundef) #3

declare void @ecdsa_get_address_segwit_p2sh(ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #3

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #4

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

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 = { 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 nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "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 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 #5 = { nounwind }
attributes #6 = { 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 = !{!"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, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"float", !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"

%struct.HDNode = type { i32, i32, [32 x i8], [32 x i8], [32 x i8], [33 x i8], ptr }

@count = external dso_local local_unnamed_addr global i32, align 4
@found = external dso_local local_unnamed_addr global i32, align 4
@stderr = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [43 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [28 x i8], align 1
@start = external dso_local local_unnamed_addr global i64, align 8
@iter = external dso_local global [256 x i8], align 16
@stdin = external local_unnamed_addr global ptr, align 8
@seed = external dso_local global [64 x i8], align 16
@.str.5 = external hidden unnamed_addr constant [1 x i8], align 1
@SECP256K1_NAME = external constant [0 x i8], align 1
@node = external dso_local global %struct.HDNode, align 8
@addr = external dso_local global [130 x i8], align 16
@.str.6 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [27 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 5) i32 @main(i32 noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
  %3 = add i32 %0, -4
  %or.cond = icmp ult i32 %3, -2
  br i1 %or.cond, label %4, label %7

4:                                                ; preds = %2
  %5 = load ptr, ptr @stderr, align 8, !tbaa !5
  %6 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %5, ptr noundef nonnull @.str) #5
  br label %65

7:                                                ; preds = %2
  %8 = getelementptr inbounds i8, ptr %1, i64 8
  %9 = load ptr, ptr %8, align 8, !tbaa !5
  %10 = icmp eq i32 %0, 3
  br i1 %10, label %11, label %.thread

11:                                               ; preds = %7
  %12 = getelementptr inbounds i8, ptr %1, i64 16
  %13 = load ptr, ptr %12, align 8, !tbaa !5
  %.not = icmp eq ptr %13, null
  br i1 %.not, label %.thread, label %14

14:                                               ; preds = %11
  %15 = tail call i32 @mnemonic_check(ptr noundef nonnull %13) #6
  %.not25 = icmp eq i32 %15, 0
  br i1 %.not25, label %16, label %.thread

16:                                               ; preds = %14
  %17 = load ptr, ptr @stderr, align 8, !tbaa !5
  %18 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %17, ptr noundef nonnull @.str.3, ptr noundef nonnull %13) #5
  br label %65

.thread:                                          ; preds = %7, %14, %11
  %.not32 = phi i1 [ false, %14 ], [ true, %11 ], [ true, %7 ]
  %.02131 = phi ptr [ %13, %14 ], [ null, %11 ], [ null, %7 ]
  %.02330 = phi ptr [ @.str.1, %14 ], [ @.str.1, %11 ], [ @.str.2, %7 ]
  %19 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, ptr noundef nonnull %.02330)
  %20 = tail call i64 @clock() #6
  store i64 %20, ptr @start, align 8, !tbaa !9
  %21 = load ptr, ptr @stdin, align 8, !tbaa !5
  %22 = tail call ptr @fgets(ptr noundef nonnull @iter, i32 noundef 256, ptr noundef %21)
  %23 = icmp eq ptr %22, null
  br i1 %23, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %.thread, %45
  %24 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) @iter) #7
  %25 = trunc i64 %24 to i32
  %26 = icmp slt i32 %25, 1
  br i1 %26, label %45, label %27

27:                                               ; preds = %.lr.ph
  %28 = load i32, ptr @count, align 4, !tbaa !11
  %29 = add nsw i32 %28, 1
  store i32 %29, ptr @count, align 4, !tbaa !11
  %30 = add i64 %24, 4294967295
  %31 = and i64 %30, 4294967295
  %32 = getelementptr inbounds [256 x i8], ptr @iter, i64 0, i64 %31
  store i8 0, ptr %32, align 1, !tbaa !13
  br i1 %.not32, label %34, label %33

33:                                               ; preds = %27
  tail call void @mnemonic_to_seed(ptr noundef nonnull %.02131, ptr noundef nonnull @iter, ptr noundef nonnull @seed, ptr noundef null) #6
  br label %35

34:                                               ; preds = %27
  tail call void @mnemonic_to_seed(ptr noundef nonnull @iter, ptr noundef nonnull @.str.5, ptr noundef nonnull @seed, ptr noundef null) #6
  br label %35

35:                                               ; preds = %34, %33
  %36 = tail call i32 @hdnode_from_seed(ptr noundef nonnull @seed, i32 noundef 64, ptr noundef nonnull @SECP256K1_NAME, ptr noundef nonnull @node) #6
  %37 = tail call i32 @hdnode_private_ckd(ptr noundef nonnull @node, i32 noundef -2147483599) #6
  %38 = tail call i32 @hdnode_private_ckd(ptr noundef nonnull @node, i32 noundef -2147483648) #6
  %39 = tail call i32 @hdnode_private_ckd(ptr noundef nonnull @node, i32 noundef -2147483648) #6
  %40 = tail call i32 @hdnode_private_ckd(ptr noundef nonnull @node, i32 noundef 0) #6
  %41 = tail call i32 @hdnode_private_ckd(ptr noundef nonnull @node, i32 noundef 0) #6
  %42 = tail call i32 @hdnode_fill_public_key(ptr noundef nonnull @node) #6
  tail call void @ecdsa_get_address_segwit_p2sh(ptr noundef nonnull getelementptr inbounds (i8, ptr @node, i64 104), i32 noundef 5, i32 noundef 2, i32 noundef 1, ptr noundef nonnull @addr, i32 noundef 130) #6
  %43 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %9, ptr noundef nonnull dereferenceable(1) @addr) #7
  %44 = icmp eq i32 %43, 0
  br i1 %44, label %.thread33, label %45

.thread33:                                        ; preds = %35
  store i32 1, ptr @found, align 4, !tbaa !11
  br label %.loopexit

45:                                               ; preds = %35, %.lr.ph
  %46 = load ptr, ptr @stdin, align 8, !tbaa !5
  %47 = tail call ptr @fgets(ptr noundef nonnull @iter, i32 noundef 256, ptr noundef %46)
  %48 = icmp eq ptr %47, null
  br i1 %48, label %.loopexit, label %.lr.ph

.loopexit:                                        ; preds = %45, %.thread, %.thread33
  %49 = tail call i64 @clock() #6
  %50 = load i64, ptr @start, align 8, !tbaa !9
  %51 = sub nsw i64 %49, %50
  %52 = sitofp i64 %51 to float
  %53 = fdiv float %52, 1.000000e+06
  %54 = load i32, ptr @count, align 4, !tbaa !11
  %55 = fpext float %53 to double
  %56 = sitofp i32 %54 to float
  %57 = fdiv float %56, %53
  %58 = fpext float %57 to double
  %59 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i32 noundef %54, ptr noundef nonnull %.02330, double noundef %55, double noundef %58)
  %60 = load i32, ptr @found, align 4, !tbaa !11
  %.not26 = icmp eq i32 %60, 0
  br i1 %.not26, label %63, label %61

61:                                               ; preds = %.loopexit
  %62 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, ptr noundef nonnull %.02330, ptr noundef nonnull @iter)
  br label %65

63:                                               ; preds = %.loopexit
  %64 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, ptr noundef nonnull %.02330)
  br label %65

65:                                               ; preds = %16, %63, %61, %4
  %.2 = phi i32 [ 1, %4 ], [ 2, %16 ], [ 0, %61 ], [ 4, %63 ]
  ret i32 %.2
}

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

declare i32 @mnemonic_check(ptr noundef) local_unnamed_addr #2

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

; Function Attrs: nounwind
declare i64 @clock() local_unnamed_addr #3

; Function Attrs: nofree nounwind
declare noundef ptr @fgets(ptr noundef, i32 noundef, ptr nocapture noundef) local_unnamed_addr #1

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

declare void @mnemonic_to_seed(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

declare i32 @hdnode_fill_public_key(ptr noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #4

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 = { 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 #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 "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 = { 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 #5 = { cold nounwind }
attributes #6 = { nounwind }
attributes #7 = { 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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!7, !7, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass