; LLVM IR from Ryuk17/SpeechAlgorithms :: WebRTC_AEC/src (echo_cancellation)

; 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.AecConfig = type { i16, i16, i16, i32 }
%struct.aecpc_t = type { i32, i32, i32, i32, float, i16, i32, i32, i32, i16, i16, i32, i16, i16, i16, i16, i32, i32, i32, i16, ptr, i32, i32, i32, float, ptr, i32, i32, ptr }

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @WebRtcAec_Init(ptr noundef %0, i32 noundef %1, i32 noundef %2) #1 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca %struct.AecConfig, align 4
  %10 = alloca i32, align 4
  %11 = alloca { i64, i32 }, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store i32 %2, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %12 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %12, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %9) #4
  %13 = load i32, ptr %6, align 4, !tbaa !9
  %14 = icmp ne i32 %13, 8000
  br i1 %14, label %15, label %24

15:                                               ; preds = %3
  %16 = load i32, ptr %6, align 4, !tbaa !9
  %17 = icmp ne i32 %16, 16000
  br i1 %17, label %18, label %24

18:                                               ; preds = %15
  %19 = load i32, ptr %6, align 4, !tbaa !9
  %20 = icmp ne i32 %19, 32000
  br i1 %20, label %21, label %24

21:                                               ; preds = %18
  %22 = load ptr, ptr %8, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.aecpc_t, ptr %22, i32 0, i32 26
  store i32 12004, ptr %23, align 8, !tbaa !11
  store i32 -1, ptr %4, align 4
  store i32 1, ptr %10, align 4
  br label %160

24:                                               ; preds = %18, %15, %3
  %25 = load i32, ptr %6, align 4, !tbaa !9
  %26 = load ptr, ptr %8, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.aecpc_t, ptr %26, i32 0, i32 1
  store i32 %25, ptr %27, align 4, !tbaa !15
  %28 = load i32, ptr %7, align 4, !tbaa !9
  %29 = icmp slt i32 %28, 1
  br i1 %29, label %33, label %30

30:                                               ; preds = %24
  %31 = load i32, ptr %7, align 4, !tbaa !9
  %32 = icmp sgt i32 %31, 96000
  br i1 %32, label %33, label %36

33:                                               ; preds = %30, %24
  %34 = load ptr, ptr %8, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.aecpc_t, ptr %34, i32 0, i32 26
  store i32 12004, ptr %35, align 8, !tbaa !11
  store i32 -1, ptr %4, align 4
  store i32 1, ptr %10, align 4
  br label %160

36:                                               ; preds = %30
  %37 = load i32, ptr %7, align 4, !tbaa !9
  %38 = load ptr, ptr %8, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.aecpc_t, ptr %38, i32 0, i32 3
  store i32 %37, ptr %39, align 4, !tbaa !16
  %40 = load ptr, ptr %8, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.aecpc_t, ptr %40, i32 0, i32 28
  %42 = load ptr, ptr %41, align 8, !tbaa !17
  %43 = load ptr, ptr %8, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.aecpc_t, ptr %43, i32 0, i32 1
  %45 = load i32, ptr %44, align 4, !tbaa !15
  %46 = call i32 @WebRtcAec_InitAec(ptr noundef %42, i32 noundef %45)
  %47 = icmp eq i32 %46, -1
  br i1 %47, label %48, label %51

48:                                               ; preds = %36
  %49 = load ptr, ptr %8, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.aecpc_t, ptr %49, i32 0, i32 26
  store i32 12000, ptr %50, align 8, !tbaa !11
  store i32 -1, ptr %4, align 4
  store i32 1, ptr %10, align 4
  br label %160

51:                                               ; preds = %36
  %52 = load ptr, ptr %8, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.aecpc_t, ptr %52, i32 0, i32 20
  %54 = load ptr, ptr %53, align 8, !tbaa !18
  %55 = load ptr, ptr %8, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.aecpc_t, ptr %55, i32 0, i32 3
  %57 = load i32, ptr %56, align 4, !tbaa !16
  %58 = call i32 @WebRtcAec_InitResampler(ptr noundef %54, i32 noundef %57)
  %59 = icmp eq i32 %58, -1
  br i1 %59, label %60, label %63

60:                                               ; preds = %51
  %61 = load ptr, ptr %8, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.aecpc_t, ptr %61, i32 0, i32 26
  store i32 12000, ptr %62, align 8, !tbaa !11
  store i32 -1, ptr %4, align 4
  store i32 1, ptr %10, align 4
  br label %160

63:                                               ; preds = %51
  %64 = load ptr, ptr %8, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.aecpc_t, ptr %64, i32 0, i32 25
  %66 = load ptr, ptr %65, align 8, !tbaa !19
  %67 = call i32 @WebRtc_InitBuffer(ptr noundef %66)
  %68 = icmp eq i32 %67, -1
  br i1 %68, label %69, label %72

69:                                               ; preds = %63
  %70 = load ptr, ptr %8, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.aecpc_t, ptr %70, i32 0, i32 26
  store i32 12000, ptr %71, align 8, !tbaa !11
  store i32 -1, ptr %4, align 4
  store i32 1, ptr %10, align 4
  br label %160

72:                                               ; preds = %63
  %73 = load ptr, ptr %8, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.aecpc_t, ptr %73, i32 0, i32 25
  %75 = load ptr, ptr %74, align 8, !tbaa !19
  %76 = call i32 @WebRtc_MoveReadPtr(ptr noundef %75, i32 noundef -64)
  %77 = load ptr, ptr %8, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.aecpc_t, ptr %77, i32 0, i32 9
  store i16 42, ptr %78, align 4, !tbaa !20
  %79 = load ptr, ptr %8, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.aecpc_t, ptr %79, i32 0, i32 1
  %81 = load i32, ptr %80, align 4, !tbaa !15
  %82 = icmp eq i32 %81, 32000
  br i1 %82, label %83, label %86

83:                                               ; preds = %72
  %84 = load ptr, ptr %8, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.aecpc_t, ptr %84, i32 0, i32 2
  store i32 16000, ptr %85, align 8, !tbaa !21
  br label %90

86:                                               ; preds = %72
  %87 = load i32, ptr %6, align 4, !tbaa !9
  %88 = load ptr, ptr %8, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.aecpc_t, ptr %88, i32 0, i32 2
  store i32 %87, ptr %89, align 8, !tbaa !21
  br label %90

90:                                               ; preds = %86, %83
  %91 = load ptr, ptr %8, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.aecpc_t, ptr %91, i32 0, i32 0
  store i32 0, ptr %92, align 8, !tbaa !22
  %93 = load ptr, ptr %8, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.aecpc_t, ptr %93, i32 0, i32 3
  %95 = load i32, ptr %94, align 4, !tbaa !16
  %96 = sitofp i32 %95 to float
  %97 = fmul float %96, 1.000000e+00
  %98 = load ptr, ptr %8, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.aecpc_t, ptr %98, i32 0, i32 2
  %100 = load i32, ptr %99, align 8, !tbaa !21
  %101 = sitofp i32 %100 to float
  %102 = fdiv float %97, %101
  %103 = load ptr, ptr %8, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.aecpc_t, ptr %103, i32 0, i32 4
  store float %102, ptr %104, align 8, !tbaa !23
  %105 = load ptr, ptr %8, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.aecpc_t, ptr %105, i32 0, i32 2
  %107 = load i32, ptr %106, align 8, !tbaa !21
  %108 = sdiv i32 %107, 8000
  %109 = load ptr, ptr %8, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.aecpc_t, ptr %109, i32 0, i32 8
  store i32 %108, ptr %110, align 8, !tbaa !24
  %111 = load ptr, ptr %8, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.aecpc_t, ptr %111, i32 0, i32 11
  store i32 0, ptr %112, align 8, !tbaa !25
  %113 = load ptr, ptr %8, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.aecpc_t, ptr %113, i32 0, i32 10
  store i16 0, ptr %114, align 2, !tbaa !26
  %115 = load ptr, ptr %8, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.aecpc_t, ptr %115, i32 0, i32 18
  store i32 1, ptr %116, align 4, !tbaa !27
  %117 = load ptr, ptr %8, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.aecpc_t, ptr %117, i32 0, i32 12
  store i16 0, ptr %118, align 4, !tbaa !28
  %119 = load ptr, ptr %8, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.aecpc_t, ptr %119, i32 0, i32 17
  store i32 1, ptr %120, align 8, !tbaa !29
  %121 = load ptr, ptr %8, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.aecpc_t, ptr %121, i32 0, i32 6
  store i32 0, ptr %122, align 8, !tbaa !30
  %123 = load ptr, ptr %8, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.aecpc_t, ptr %123, i32 0, i32 13
  store i16 0, ptr %124, align 2, !tbaa !31
  %125 = load ptr, ptr %8, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.aecpc_t, ptr %125, i32 0, i32 14
  store i16 0, ptr %126, align 8, !tbaa !32
  %127 = load ptr, ptr %8, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.aecpc_t, ptr %127, i32 0, i32 15
  store i16 -1, ptr %128, align 2, !tbaa !33
  %129 = load ptr, ptr %8, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.aecpc_t, ptr %129, i32 0, i32 16
  store i32 0, ptr %130, align 4, !tbaa !34
  %131 = load ptr, ptr %8, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.aecpc_t, ptr %131, i32 0, i32 7
  store i32 0, ptr %132, align 4, !tbaa !35
  %133 = load ptr, ptr %8, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.aecpc_t, ptr %133, i32 0, i32 19
  store i16 0, ptr %134, align 8, !tbaa !36
  %135 = load ptr, ptr %8, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.aecpc_t, ptr %135, i32 0, i32 21
  store i32 0, ptr %136, align 8, !tbaa !37
  %137 = load ptr, ptr %8, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.aecpc_t, ptr %137, i32 0, i32 22
  store i32 0, ptr %138, align 4, !tbaa !38
  %139 = load ptr, ptr %8, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.aecpc_t, ptr %139, i32 0, i32 23
  store i32 0, ptr %140, align 8, !tbaa !39
  %141 = load ptr, ptr %8, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.aecpc_t, ptr %141, i32 0, i32 24
  store float 0.000000e+00, ptr %142, align 4, !tbaa !40
  %143 = load ptr, ptr %8, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.aecpc_t, ptr %143, i32 0, i32 27
  store i32 0, ptr %144, align 4, !tbaa !41
  %145 = getelementptr inbounds %struct.AecConfig, ptr %9, i32 0, i32 0
  store i16 1, ptr %145, align 4, !tbaa !42
  %146 = getelementptr inbounds %struct.AecConfig, ptr %9, i32 0, i32 1
  store i16 0, ptr %146, align 2, !tbaa !44
  %147 = getelementptr inbounds %struct.AecConfig, ptr %9, i32 0, i32 2
  store i16 0, ptr %147, align 4, !tbaa !45
  %148 = getelementptr inbounds %struct.AecConfig, ptr %9, i32 0, i32 3
  store i32 0, ptr %148, align 4, !tbaa !46
  %149 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %11, ptr align 4 %9, i64 12, i1 false)
  %150 = getelementptr inbounds { i64, i32 }, ptr %11, i32 0, i32 0
  %151 = load i64, ptr %150, align 4
  %152 = getelementptr inbounds { i64, i32 }, ptr %11, i32 0, i32 1
  %153 = load i32, ptr %152, align 4
  %154 = call i32 @WebRtcAec_set_config(ptr noundef %149, i64 %151, i32 %153)
  %155 = icmp eq i32 %154, -1
  br i1 %155, label %156, label %159

156:                                              ; preds = %90
  %157 = load ptr, ptr %8, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.aecpc_t, ptr %157, i32 0, i32 26
  store i32 12000, ptr %158, align 8, !tbaa !11
  store i32 -1, ptr %4, align 4
  store i32 1, ptr %10, align 4
  br label %160

159:                                              ; preds = %90
  store i32 0, ptr %4, align 4
  store i32 1, ptr %10, align 4
  br label %160

160:                                              ; preds = %159, %156, %69, %60, %48, %33, %21
  call void @llvm.lifetime.end.p0(i64 12, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  %161 = load i32, ptr %4, align 4
  ret i32 %161
}

declare i32 @WebRtcAec_InitAec(ptr noundef, i32 noundef) #2

declare i32 @WebRtcAec_InitResampler(ptr noundef, i32 noundef) #2

declare i32 @WebRtc_InitBuffer(ptr noundef) #2

declare i32 @WebRtc_MoveReadPtr(ptr noundef, i32 noundef) #2

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

; 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) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"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, !10, i64 104}
!12 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !13, i64 16, !14, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !14, i64 36, !14, i64 38, !10, i64 40, !14, i64 44, !14, i64 46, !14, i64 48, !14, i64 50, !10, i64 52, !10, i64 56, !10, i64 60, !14, i64 64, !6, i64 72, !10, i64 80, !10, i64 84, !10, i64 88, !13, i64 92, !6, i64 96, !10, i64 104, !10, i64 108, !6, i64 112}
!13 = !{!"float", !7, i64 0}
!14 = !{!"short", !7, i64 0}
!15 = !{!12, !10, i64 4}
!16 = !{!12, !10, i64 12}
!17 = !{!12, !6, i64 112}
!18 = !{!12, !6, i64 72}
!19 = !{!12, !6, i64 96}
!20 = !{!12, !14, i64 36}
!21 = !{!12, !10, i64 8}
!22 = !{!12, !10, i64 0}
!23 = !{!12, !13, i64 16}
!24 = !{!12, !10, i64 32}
!25 = !{!12, !10, i64 40}
!26 = !{!12, !14, i64 38}
!27 = !{!12, !10, i64 60}
!28 = !{!12, !14, i64 44}
!29 = !{!12, !10, i64 56}
!30 = !{!12, !10, i64 24}
!31 = !{!12, !14, i64 46}
!32 = !{!12, !14, i64 48}
!33 = !{!12, !14, i64 50}
!34 = !{!12, !10, i64 52}
!35 = !{!12, !10, i64 28}
!36 = !{!12, !14, i64 64}
!37 = !{!12, !10, i64 80}
!38 = !{!12, !10, i64 84}
!39 = !{!12, !10, i64 88}
!40 = !{!12, !13, i64 92}
!41 = !{!12, !10, i64 108}
!42 = !{!43, !14, i64 0}
!43 = !{!"", !14, i64 0, !14, i64 2, !14, i64 4, !10, i64 8}
!44 = !{!43, !14, i64 2}
!45 = !{!43, !14, i64 4}
!46 = !{!43, !10, i64 8}


; 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 -1, 1) i32 @WebRtcAec_Init(ptr noundef %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #0 {
  switch i32 %1, label %.sink.split [
    i32 32000, label %4
    i32 16000, label %4
    i32 8000, label %4
  ]

4:                                                ; preds = %3, %3, %3
  %5 = getelementptr inbounds i8, ptr %0, i64 4
  store i32 %1, ptr %5, align 4, !tbaa !5
  %6 = add i32 %2, -96001
  %or.cond5 = icmp ult i32 %6, -96000
  br i1 %or.cond5, label %.sink.split, label %7

7:                                                ; preds = %4
  %8 = getelementptr inbounds i8, ptr %0, i64 12
  store i32 %2, ptr %8, align 4, !tbaa !13
  %9 = getelementptr inbounds i8, ptr %0, i64 112
  %10 = load ptr, ptr %9, align 8, !tbaa !14
  %11 = tail call i32 @WebRtcAec_InitAec(ptr noundef %10, i32 noundef %1) #3
  %12 = icmp eq i32 %11, -1
  br i1 %12, label %.sink.split, label %13

13:                                               ; preds = %7
  %14 = getelementptr inbounds i8, ptr %0, i64 72
  %15 = load ptr, ptr %14, align 8, !tbaa !15
  %16 = load i32, ptr %8, align 4, !tbaa !13
  %17 = tail call i32 @WebRtcAec_InitResampler(ptr noundef %15, i32 noundef %16) #3
  %18 = icmp eq i32 %17, -1
  br i1 %18, label %.sink.split, label %19

19:                                               ; preds = %13
  %20 = getelementptr inbounds i8, ptr %0, i64 96
  %21 = load ptr, ptr %20, align 8, !tbaa !16
  %22 = tail call i32 @WebRtc_InitBuffer(ptr noundef %21) #3
  %23 = icmp eq i32 %22, -1
  br i1 %23, label %.sink.split, label %24

24:                                               ; preds = %19
  %25 = load ptr, ptr %20, align 8, !tbaa !16
  %26 = tail call i32 @WebRtc_MoveReadPtr(ptr noundef %25, i32 noundef -64) #3
  %27 = getelementptr inbounds i8, ptr %0, i64 36
  store i16 42, ptr %27, align 4, !tbaa !17
  %28 = load i32, ptr %5, align 4, !tbaa !5
  %29 = icmp eq i32 %28, 32000
  %spec.select = select i1 %29, i32 16000, i32 %1
  %30 = getelementptr inbounds i8, ptr %0, i64 8
  store i32 %spec.select, ptr %30, align 8
  store i32 0, ptr %0, align 8, !tbaa !18
  %31 = load i32, ptr %8, align 4, !tbaa !13
  %32 = sitofp i32 %31 to float
  %33 = uitofp nneg i32 %spec.select to float
  %34 = fdiv float %32, %33
  %35 = getelementptr inbounds i8, ptr %0, i64 16
  store float %34, ptr %35, align 8, !tbaa !19
  %.lhs.trunc = trunc i32 %spec.select to i16
  %36 = udiv i16 %.lhs.trunc, 8000
  %.zext = zext nneg i16 %36 to i32
  %37 = getelementptr inbounds i8, ptr %0, i64 32
  store i32 %.zext, ptr %37, align 8, !tbaa !20
  %38 = getelementptr inbounds i8, ptr %0, i64 40
  store i32 0, ptr %38, align 8, !tbaa !21
  %39 = getelementptr inbounds i8, ptr %0, i64 38
  store i16 0, ptr %39, align 2, !tbaa !22
  %40 = getelementptr inbounds i8, ptr %0, i64 60
  store i32 1, ptr %40, align 4, !tbaa !23
  %41 = getelementptr inbounds i8, ptr %0, i64 44
  store i16 0, ptr %41, align 4, !tbaa !24
  %42 = getelementptr inbounds i8, ptr %0, i64 56
  store i32 1, ptr %42, align 8, !tbaa !25
  %43 = getelementptr inbounds i8, ptr %0, i64 24
  store i32 0, ptr %43, align 8, !tbaa !26
  %44 = getelementptr inbounds i8, ptr %0, i64 46
  store i16 0, ptr %44, align 2, !tbaa !27
  %45 = getelementptr inbounds i8, ptr %0, i64 48
  store i16 0, ptr %45, align 8, !tbaa !28
  %46 = getelementptr inbounds i8, ptr %0, i64 50
  store i16 -1, ptr %46, align 2, !tbaa !29
  %47 = getelementptr inbounds i8, ptr %0, i64 52
  store i32 0, ptr %47, align 4, !tbaa !30
  %48 = getelementptr inbounds i8, ptr %0, i64 28
  store i32 0, ptr %48, align 4, !tbaa !31
  %49 = getelementptr inbounds i8, ptr %0, i64 64
  store i16 0, ptr %49, align 8, !tbaa !32
  %50 = getelementptr inbounds i8, ptr %0, i64 80
  %51 = getelementptr inbounds i8, ptr %0, i64 108
  store i32 0, ptr %51, align 4, !tbaa !33
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %50, i8 0, i64 16, i1 false)
  %52 = tail call i32 @WebRtcAec_set_config(ptr noundef nonnull %0, i64 1, i32 0)
  %53 = icmp eq i32 %52, -1
  br i1 %53, label %.sink.split, label %55

.sink.split:                                      ; preds = %24, %19, %13, %7, %4, %3
  %.sink = phi i32 [ 12004, %3 ], [ 12004, %4 ], [ 12000, %7 ], [ 12000, %13 ], [ 12000, %19 ], [ 12000, %24 ]
  %54 = getelementptr inbounds i8, ptr %0, i64 104
  store i32 %.sink, ptr %54, align 8, !tbaa !34
  br label %55

55:                                               ; preds = %.sink.split, %24
  %.0 = phi i32 [ 0, %24 ], [ -1, %.sink.split ]
  ret i32 %.0
}

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

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

declare i32 @WebRtc_InitBuffer(ptr noundef) local_unnamed_addr #1

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #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 = { "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: write) }
attributes #3 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 4}
!6 = !{!"", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !10, i64 16, !11, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !11, i64 36, !11, i64 38, !7, i64 40, !11, i64 44, !11, i64 46, !11, i64 48, !11, i64 50, !7, i64 52, !7, i64 56, !7, i64 60, !11, i64 64, !12, i64 72, !7, i64 80, !7, i64 84, !7, i64 88, !10, i64 92, !12, i64 96, !7, i64 104, !7, i64 108, !12, i64 112}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"float", !8, i64 0}
!11 = !{!"short", !8, i64 0}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!6, !7, i64 12}
!14 = !{!6, !12, i64 112}
!15 = !{!6, !12, i64 72}
!16 = !{!6, !12, i64 96}
!17 = !{!6, !11, i64 36}
!18 = !{!6, !7, i64 0}
!19 = !{!6, !10, i64 16}
!20 = !{!6, !7, i64 32}
!21 = !{!6, !7, i64 40}
!22 = !{!6, !11, i64 38}
!23 = !{!6, !7, i64 60}
!24 = !{!6, !11, i64 44}
!25 = !{!6, !7, i64 56}
!26 = !{!6, !7, i64 24}
!27 = !{!6, !11, i64 46}
!28 = !{!6, !11, i64 48}
!29 = !{!6, !11, i64 50}
!30 = !{!6, !7, i64 52}
!31 = !{!6, !7, i64 28}
!32 = !{!6, !11, i64 64}
!33 = !{!6, !7, i64 108}
!34 = !{!6, !7, i64 104}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,MemCpyOptPass,MergedLoadStoreMotionPass,SROAPass,SimplifyCFGPass,TailCallElimPass