; LLVM IR from ubaldot/defrecs :: stm32f4x/ADC_Readings/Drivers/CMSIS/NN/Source/ConvolutionFunctions (s8)

; 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.cmsis_nn_dw_conv_params = type { i32, i32, i32, %struct.cmsis_nn_tile, %struct.cmsis_nn_tile, %struct.cmsis_nn_tile, %struct.cmsis_nn_activation }
%struct.cmsis_nn_tile = type { i32, i32 }
%struct.cmsis_nn_activation = type { i32, i32 }
%struct.cmsis_nn_dims = type { i32, i32, i32, i32 }
%struct.cmsis_nn_per_channel_quant_params = type { ptr, ptr }

; Function Attrs: nounwind uwtable
define dso_local i32 @arm_depthwise_conv_s8(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10) #0 {
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca i16, align 2
  %24 = alloca i16, align 2
  store ptr %0, ptr %12, align 8, !tbaa !5
  store ptr %1, ptr %13, align 8, !tbaa !5
  store ptr %2, ptr %14, align 8, !tbaa !5
  store ptr %3, ptr %15, align 8, !tbaa !5
  store ptr %4, ptr %16, align 8, !tbaa !5
  store ptr %5, ptr %17, align 8, !tbaa !5
  store ptr %6, ptr %18, align 8, !tbaa !5
  store ptr %7, ptr %19, align 8, !tbaa !5
  store ptr %8, ptr %20, align 8, !tbaa !5
  store ptr %9, ptr %21, align 8, !tbaa !5
  store ptr %10, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 2, ptr %23) #2
  %25 = load ptr, ptr %13, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.cmsis_nn_dw_conv_params, ptr %25, i32 0, i32 5
  %27 = getelementptr inbounds %struct.cmsis_nn_tile, ptr %26, i32 0, i32 0
  %28 = load i32, ptr %27, align 4, !tbaa !9
  %29 = trunc i32 %28 to i16
  store i16 %29, ptr %23, align 2, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 2, ptr %24) #2
  %30 = load ptr, ptr %13, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.cmsis_nn_dw_conv_params, ptr %30, i32 0, i32 5
  %32 = getelementptr inbounds %struct.cmsis_nn_tile, ptr %31, i32 0, i32 1
  %33 = load i32, ptr %32, align 4, !tbaa !15
  %34 = trunc i32 %33 to i16
  store i16 %34, ptr %24, align 2, !tbaa !13
  %35 = load ptr, ptr %13, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.cmsis_nn_dw_conv_params, ptr %35, i32 0, i32 5
  %37 = load ptr, ptr %19, align 8, !tbaa !5
  %38 = load ptr, ptr %12, align 8, !tbaa !5
  %39 = load ptr, ptr %13, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.cmsis_nn_dw_conv_params, ptr %39, i32 0, i32 2
  %41 = load i32, ptr %40, align 4, !tbaa !16
  %42 = srem i32 %41, 4
  %43 = icmp eq i32 %42, 0
  br i1 %43, label %44, label %129

44:                                               ; preds = %11
  %45 = load ptr, ptr %15, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.cmsis_nn_dims, ptr %45, i32 0, i32 0
  %47 = load i32, ptr %46, align 4, !tbaa !17
  %48 = icmp eq i32 %47, 1
  br i1 %48, label %49, label %129

49:                                               ; preds = %44
  %50 = load ptr, ptr %13, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.cmsis_nn_dw_conv_params, ptr %50, i32 0, i32 5
  %52 = getelementptr inbounds %struct.cmsis_nn_tile, ptr %51, i32 0, i32 0
  %53 = load i32, ptr %52, align 4, !tbaa !9
  %54 = icmp eq i32 %53, 1
  br i1 %54, label %55, label %129

55:                                               ; preds = %49
  %56 = load ptr, ptr %13, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.cmsis_nn_dw_conv_params, ptr %56, i32 0, i32 5
  %58 = getelementptr inbounds %struct.cmsis_nn_tile, ptr %57, i32 0, i32 1
  %59 = load i32, ptr %58, align 4, !tbaa !15
  %60 = icmp eq i32 %59, 1
  br i1 %60, label %61, label %129

61:                                               ; preds = %55
  %62 = load ptr, ptr %16, align 8, !tbaa !5
  %63 = load ptr, ptr %15, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.cmsis_nn_dims, ptr %63, i32 0, i32 2
  %65 = load i32, ptr %64, align 4, !tbaa !19
  %66 = load ptr, ptr %15, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.cmsis_nn_dims, ptr %66, i32 0, i32 1
  %68 = load i32, ptr %67, align 4, !tbaa !20
  %69 = load ptr, ptr %15, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.cmsis_nn_dims, ptr %69, i32 0, i32 3
  %71 = load i32, ptr %70, align 4, !tbaa !21
  %72 = load ptr, ptr %18, align 8, !tbaa !5
  %73 = load ptr, ptr %21, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.cmsis_nn_dims, ptr %73, i32 0, i32 3
  %75 = load i32, ptr %74, align 4, !tbaa !21
  %76 = load ptr, ptr %13, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.cmsis_nn_dw_conv_params, ptr %76, i32 0, i32 2
  %78 = load i32, ptr %77, align 4, !tbaa !16
  %79 = load ptr, ptr %17, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.cmsis_nn_dims, ptr %79, i32 0, i32 2
  %81 = load i32, ptr %80, align 4, !tbaa !19
  %82 = load ptr, ptr %17, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.cmsis_nn_dims, ptr %82, i32 0, i32 1
  %84 = load i32, ptr %83, align 4, !tbaa !20
  %85 = load ptr, ptr %13, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.cmsis_nn_dw_conv_params, ptr %85, i32 0, i32 4
  %87 = getelementptr inbounds %struct.cmsis_nn_tile, ptr %86, i32 0, i32 0
  %88 = load i32, ptr %87, align 4, !tbaa !22
  %89 = load ptr, ptr %13, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.cmsis_nn_dw_conv_params, ptr %89, i32 0, i32 4
  %91 = getelementptr inbounds %struct.cmsis_nn_tile, ptr %90, i32 0, i32 1
  %92 = load i32, ptr %91, align 4, !tbaa !23
  %93 = load ptr, ptr %13, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.cmsis_nn_dw_conv_params, ptr %93, i32 0, i32 3
  %95 = getelementptr inbounds %struct.cmsis_nn_tile, ptr %94, i32 0, i32 0
  %96 = load i32, ptr %95, align 4, !tbaa !24
  %97 = load ptr, ptr %13, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.cmsis_nn_dw_conv_params, ptr %97, i32 0, i32 3
  %99 = getelementptr inbounds %struct.cmsis_nn_tile, ptr %98, i32 0, i32 1
  %100 = load i32, ptr %99, align 4, !tbaa !25
  %101 = load ptr, ptr %20, align 8, !tbaa !5
  %102 = load ptr, ptr %22, align 8, !tbaa !5
  %103 = load ptr, ptr %14, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.cmsis_nn_per_channel_quant_params, ptr %103, i32 0, i32 1
  %105 = load ptr, ptr %104, align 8, !tbaa !26
  %106 = load ptr, ptr %14, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.cmsis_nn_per_channel_quant_params, ptr %106, i32 0, i32 0
  %108 = load ptr, ptr %107, align 8, !tbaa !28
  %109 = load ptr, ptr %21, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.cmsis_nn_dims, ptr %109, i32 0, i32 2
  %111 = load i32, ptr %110, align 4, !tbaa !19
  %112 = load ptr, ptr %21, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.cmsis_nn_dims, ptr %112, i32 0, i32 1
  %114 = load i32, ptr %113, align 4, !tbaa !20
  %115 = load ptr, ptr %13, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.cmsis_nn_dw_conv_params, ptr %115, i32 0, i32 1
  %117 = load i32, ptr %116, align 4, !tbaa !29
  %118 = load ptr, ptr %13, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.cmsis_nn_dw_conv_params, ptr %118, i32 0, i32 0
  %120 = load i32, ptr %119, align 4, !tbaa !30
  %121 = load ptr, ptr %13, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.cmsis_nn_dw_conv_params, ptr %121, i32 0, i32 6
  %123 = getelementptr inbounds %struct.cmsis_nn_activation, ptr %122, i32 0, i32 0
  %124 = load i32, ptr %123, align 4, !tbaa !31
  %125 = load ptr, ptr %13, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.cmsis_nn_dw_conv_params, ptr %125, i32 0, i32 6
  %127 = getelementptr inbounds %struct.cmsis_nn_activation, ptr %126, i32 0, i32 1
  %128 = load i32, ptr %127, align 4, !tbaa !32
  call void @depthwise_conv_s8_mult_4(ptr noundef %62, i32 noundef %65, i32 noundef %68, i32 noundef %71, ptr noundef %72, i32 noundef %75, i32 noundef %78, i32 noundef %81, i32 noundef %84, i32 noundef %88, i32 noundef %92, i32 noundef %96, i32 noundef %100, ptr noundef %101, ptr noundef %102, ptr noundef %105, ptr noundef %108, i32 noundef %111, i32 noundef %114, i32 noundef %117, i32 noundef %120, i32 noundef %124, i32 noundef %128)
  br label %216

129:                                              ; preds = %55, %49, %44, %11
  %130 = load ptr, ptr %16, align 8, !tbaa !5
  %131 = load ptr, ptr %15, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.cmsis_nn_dims, ptr %131, i32 0, i32 0
  %133 = load i32, ptr %132, align 4, !tbaa !17
  %134 = trunc i32 %133 to i16
  %135 = load ptr, ptr %15, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.cmsis_nn_dims, ptr %135, i32 0, i32 2
  %137 = load i32, ptr %136, align 4, !tbaa !19
  %138 = trunc i32 %137 to i16
  %139 = load ptr, ptr %15, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.cmsis_nn_dims, ptr %139, i32 0, i32 1
  %141 = load i32, ptr %140, align 4, !tbaa !20
  %142 = trunc i32 %141 to i16
  %143 = load ptr, ptr %15, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.cmsis_nn_dims, ptr %143, i32 0, i32 3
  %145 = load i32, ptr %144, align 4, !tbaa !21
  %146 = trunc i32 %145 to i16
  %147 = load ptr, ptr %18, align 8, !tbaa !5
  %148 = load ptr, ptr %21, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.cmsis_nn_dims, ptr %148, i32 0, i32 3
  %150 = load i32, ptr %149, align 4, !tbaa !21
  %151 = trunc i32 %150 to i16
  %152 = load ptr, ptr %13, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.cmsis_nn_dw_conv_params, ptr %152, i32 0, i32 2
  %154 = load i32, ptr %153, align 4, !tbaa !16
  %155 = trunc i32 %154 to i16
  %156 = load ptr, ptr %17, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.cmsis_nn_dims, ptr %156, i32 0, i32 2
  %158 = load i32, ptr %157, align 4, !tbaa !19
  %159 = trunc i32 %158 to i16
  %160 = load ptr, ptr %17, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.cmsis_nn_dims, ptr %160, i32 0, i32 1
  %162 = load i32, ptr %161, align 4, !tbaa !20
  %163 = trunc i32 %162 to i16
  %164 = load ptr, ptr %13, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.cmsis_nn_dw_conv_params, ptr %164, i32 0, i32 4
  %166 = getelementptr inbounds %struct.cmsis_nn_tile, ptr %165, i32 0, i32 0
  %167 = load i32, ptr %166, align 4, !tbaa !22
  %168 = trunc i32 %167 to i16
  %169 = load ptr, ptr %13, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.cmsis_nn_dw_conv_params, ptr %169, i32 0, i32 4
  %171 = getelementptr inbounds %struct.cmsis_nn_tile, ptr %170, i32 0, i32 1
  %172 = load i32, ptr %171, align 4, !tbaa !23
  %173 = trunc i32 %172 to i16
  %174 = load ptr, ptr %13, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.cmsis_nn_dw_conv_params, ptr %174, i32 0, i32 3
  %176 = getelementptr inbounds %struct.cmsis_nn_tile, ptr %175, i32 0, i32 0
  %177 = load i32, ptr %176, align 4, !tbaa !24
  %178 = trunc i32 %177 to i16
  %179 = load ptr, ptr %13, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.cmsis_nn_dw_conv_params, ptr %179, i32 0, i32 3
  %181 = getelementptr inbounds %struct.cmsis_nn_tile, ptr %180, i32 0, i32 1
  %182 = load i32, ptr %181, align 4, !tbaa !25
  %183 = trunc i32 %182 to i16
  %184 = load ptr, ptr %20, align 8, !tbaa !5
  %185 = load ptr, ptr %22, align 8, !tbaa !5
  %186 = load ptr, ptr %14, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.cmsis_nn_per_channel_quant_params, ptr %186, i32 0, i32 1
  %188 = load ptr, ptr %187, align 8, !tbaa !26
  %189 = load ptr, ptr %14, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.cmsis_nn_per_channel_quant_params, ptr %189, i32 0, i32 0
  %191 = load ptr, ptr %190, align 8, !tbaa !28
  %192 = load ptr, ptr %21, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.cmsis_nn_dims, ptr %192, i32 0, i32 2
  %194 = load i32, ptr %193, align 4, !tbaa !19
  %195 = trunc i32 %194 to i16
  %196 = load ptr, ptr %21, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct.cmsis_nn_dims, ptr %196, i32 0, i32 1
  %198 = load i32, ptr %197, align 4, !tbaa !20
  %199 = trunc i32 %198 to i16
  %200 = load ptr, ptr %13, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.cmsis_nn_dw_conv_params, ptr %200, i32 0, i32 1
  %202 = load i32, ptr %201, align 4, !tbaa !29
  %203 = load ptr, ptr %13, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.cmsis_nn_dw_conv_params, ptr %203, i32 0, i32 0
  %205 = load i32, ptr %204, align 4, !tbaa !30
  %206 = load ptr, ptr %13, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.cmsis_nn_dw_conv_params, ptr %206, i32 0, i32 6
  %208 = getelementptr inbounds %struct.cmsis_nn_activation, ptr %207, i32 0, i32 0
  %209 = load i32, ptr %208, align 4, !tbaa !31
  %210 = load ptr, ptr %13, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.cmsis_nn_dw_conv_params, ptr %210, i32 0, i32 6
  %212 = getelementptr inbounds %struct.cmsis_nn_activation, ptr %211, i32 0, i32 1
  %213 = load i32, ptr %212, align 4, !tbaa !32
  %214 = load i16, ptr %23, align 2, !tbaa !13
  %215 = load i16, ptr %24, align 2, !tbaa !13
  call void @depthwise_conv_s8_generic(ptr noundef %130, i16 noundef zeroext %134, i16 noundef zeroext %138, i16 noundef zeroext %142, i16 noundef zeroext %146, ptr noundef %147, i16 noundef zeroext %151, i16 noundef zeroext %155, i16 noundef zeroext %159, i16 noundef zeroext %163, i16 noundef zeroext %168, i16 noundef zeroext %173, i16 noundef zeroext %178, i16 noundef zeroext %183, ptr noundef %184, ptr noundef %185, ptr noundef %188, ptr noundef %191, i16 noundef zeroext %195, i16 noundef zeroext %199, i32 noundef %202, i32 noundef %205, i32 noundef %209, i32 noundef %213, i16 noundef zeroext %214, i16 noundef zeroext %215)
  br label %216

216:                                              ; preds = %129, %61
  call void @llvm.lifetime.end.p0(i64 2, ptr %24) #2
  call void @llvm.lifetime.end.p0(i64 2, ptr %23) #2
  ret i32 0
}

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

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

; Function Attrs: nounwind uwtable
declare hidden void @depthwise_conv_s8_generic(ptr noundef, i16 noundef zeroext, i16 noundef zeroext, i16 noundef zeroext, i16 noundef zeroext, ptr noundef, i16 noundef zeroext, i16 noundef zeroext, i16 noundef zeroext, i16 noundef zeroext, i16 noundef zeroext, i16 noundef zeroext, i16 noundef zeroext, i16 noundef zeroext, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i16 noundef zeroext, i16 noundef zeroext, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i16 noundef zeroext, i16 noundef zeroext) #0

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

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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"}
!9 = !{!10, !11, i64 28}
!10 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8, !12, i64 12, !12, i64 20, !12, i64 28, !12, i64 36}
!11 = !{!"int", !7, i64 0}
!12 = !{!"", !11, i64 0, !11, i64 4}
!13 = !{!14, !14, i64 0}
!14 = !{!"short", !7, i64 0}
!15 = !{!10, !11, i64 32}
!16 = !{!10, !11, i64 8}
!17 = !{!18, !11, i64 0}
!18 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12}
!19 = !{!18, !11, i64 8}
!20 = !{!18, !11, i64 4}
!21 = !{!18, !11, i64 12}
!22 = !{!10, !11, i64 20}
!23 = !{!10, !11, i64 24}
!24 = !{!10, !11, i64 12}
!25 = !{!10, !11, i64 16}
!26 = !{!27, !6, i64 8}
!27 = !{!"", !6, i64 0, !6, i64 8}
!28 = !{!27, !6, i64 0}
!29 = !{!10, !11, i64 4}
!30 = !{!10, !11, i64 0}
!31 = !{!10, !11, i64 36}
!32 = !{!10, !11, i64 40}


; 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 noundef i32 @arm_depthwise_conv_s8(ptr nocapture noundef readnone %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2, ptr nocapture noundef readonly %3, ptr noundef %4, ptr nocapture noundef readonly %5, ptr noundef %6, ptr nocapture noundef readnone %7, ptr noundef %8, ptr nocapture noundef readonly %9, ptr noundef %10) local_unnamed_addr #0 {
  %12 = getelementptr inbounds i8, ptr %1, i64 28
  %13 = load i32, ptr %12, align 4, !tbaa !5
  %14 = trunc i32 %13 to i16
  %15 = getelementptr inbounds i8, ptr %1, i64 32
  %16 = load i32, ptr %15, align 4, !tbaa !11
  %17 = trunc i32 %16 to i16
  %18 = getelementptr inbounds i8, ptr %1, i64 8
  %19 = load i32, ptr %18, align 4, !tbaa !12
  %20 = and i32 %19, 3
  %21 = icmp eq i32 %20, 0
  %.pre = load i32, ptr %3, align 4, !tbaa !13
  br i1 %21, label %22, label %61

22:                                               ; preds = %11
  %23 = icmp eq i32 %.pre, 1
  %24 = icmp eq i32 %13, 1
  %or.cond = select i1 %23, i1 %24, i1 false
  %25 = icmp eq i32 %16, 1
  %or.cond57 = select i1 %or.cond, i1 %25, i1 false
  br i1 %or.cond57, label %26, label %61

26:                                               ; preds = %22
  %27 = getelementptr inbounds i8, ptr %3, i64 8
  %28 = load i32, ptr %27, align 4, !tbaa !15
  %29 = getelementptr inbounds i8, ptr %3, i64 4
  %30 = load i32, ptr %29, align 4, !tbaa !16
  %31 = getelementptr inbounds i8, ptr %3, i64 12
  %32 = load i32, ptr %31, align 4, !tbaa !17
  %33 = getelementptr inbounds i8, ptr %9, i64 12
  %34 = load i32, ptr %33, align 4, !tbaa !17
  %35 = getelementptr inbounds i8, ptr %5, i64 8
  %36 = load i32, ptr %35, align 4, !tbaa !15
  %37 = getelementptr inbounds i8, ptr %5, i64 4
  %38 = load i32, ptr %37, align 4, !tbaa !16
  %39 = getelementptr inbounds i8, ptr %1, i64 20
  %40 = load i32, ptr %39, align 4, !tbaa !18
  %41 = getelementptr inbounds i8, ptr %1, i64 24
  %42 = load i32, ptr %41, align 4, !tbaa !19
  %43 = getelementptr inbounds i8, ptr %1, i64 12
  %44 = load i32, ptr %43, align 4, !tbaa !20
  %45 = getelementptr inbounds i8, ptr %1, i64 16
  %46 = load i32, ptr %45, align 4, !tbaa !21
  %47 = getelementptr inbounds i8, ptr %2, i64 8
  %48 = load ptr, ptr %47, align 8, !tbaa !22
  %49 = load ptr, ptr %2, align 8, !tbaa !25
  %50 = getelementptr inbounds i8, ptr %9, i64 8
  %51 = load i32, ptr %50, align 4, !tbaa !15
  %52 = getelementptr inbounds i8, ptr %9, i64 4
  %53 = load i32, ptr %52, align 4, !tbaa !16
  %54 = getelementptr inbounds i8, ptr %1, i64 4
  %55 = load i32, ptr %54, align 4, !tbaa !26
  %56 = load i32, ptr %1, align 4, !tbaa !27
  %57 = getelementptr inbounds i8, ptr %1, i64 36
  %58 = load i32, ptr %57, align 4, !tbaa !28
  %59 = getelementptr inbounds i8, ptr %1, i64 40
  %60 = load i32, ptr %59, align 4, !tbaa !29
  tail call void @depthwise_conv_s8_mult_4(ptr noundef %4, i32 noundef %28, i32 noundef %30, i32 noundef %32, ptr noundef %6, i32 noundef %34, i32 noundef %19, i32 noundef %36, i32 noundef %38, i32 noundef %40, i32 noundef %42, i32 noundef %44, i32 noundef %46, ptr noundef %8, ptr noundef %10, ptr noundef %48, ptr noundef %49, i32 noundef %51, i32 noundef %53, i32 noundef %55, i32 noundef %56, i32 noundef %58, i32 noundef %60)
  br label %110

61:                                               ; preds = %22, %11
  %62 = trunc i32 %.pre to i16
  %63 = getelementptr inbounds i8, ptr %3, i64 8
  %64 = load i32, ptr %63, align 4, !tbaa !15
  %65 = trunc i32 %64 to i16
  %66 = getelementptr inbounds i8, ptr %3, i64 4
  %67 = load i32, ptr %66, align 4, !tbaa !16
  %68 = trunc i32 %67 to i16
  %69 = getelementptr inbounds i8, ptr %3, i64 12
  %70 = load i32, ptr %69, align 4, !tbaa !17
  %71 = trunc i32 %70 to i16
  %72 = getelementptr inbounds i8, ptr %9, i64 12
  %73 = load i32, ptr %72, align 4, !tbaa !17
  %74 = trunc i32 %73 to i16
  %75 = trunc i32 %19 to i16
  %76 = getelementptr inbounds i8, ptr %5, i64 8
  %77 = load i32, ptr %76, align 4, !tbaa !15
  %78 = trunc i32 %77 to i16
  %79 = getelementptr inbounds i8, ptr %5, i64 4
  %80 = load i32, ptr %79, align 4, !tbaa !16
  %81 = trunc i32 %80 to i16
  %82 = getelementptr inbounds i8, ptr %1, i64 20
  %83 = load i32, ptr %82, align 4, !tbaa !18
  %84 = trunc i32 %83 to i16
  %85 = getelementptr inbounds i8, ptr %1, i64 24
  %86 = load i32, ptr %85, align 4, !tbaa !19
  %87 = trunc i32 %86 to i16
  %88 = getelementptr inbounds i8, ptr %1, i64 12
  %89 = load i32, ptr %88, align 4, !tbaa !20
  %90 = trunc i32 %89 to i16
  %91 = getelementptr inbounds i8, ptr %1, i64 16
  %92 = load i32, ptr %91, align 4, !tbaa !21
  %93 = trunc i32 %92 to i16
  %94 = getelementptr inbounds i8, ptr %2, i64 8
  %95 = load ptr, ptr %94, align 8, !tbaa !22
  %96 = load ptr, ptr %2, align 8, !tbaa !25
  %97 = getelementptr inbounds i8, ptr %9, i64 8
  %98 = load i32, ptr %97, align 4, !tbaa !15
  %99 = trunc i32 %98 to i16
  %100 = getelementptr inbounds i8, ptr %9, i64 4
  %101 = load i32, ptr %100, align 4, !tbaa !16
  %102 = trunc i32 %101 to i16
  %103 = getelementptr inbounds i8, ptr %1, i64 4
  %104 = load i32, ptr %103, align 4, !tbaa !26
  %105 = load i32, ptr %1, align 4, !tbaa !27
  %106 = getelementptr inbounds i8, ptr %1, i64 36
  %107 = load i32, ptr %106, align 4, !tbaa !28
  %108 = getelementptr inbounds i8, ptr %1, i64 40
  %109 = load i32, ptr %108, align 4, !tbaa !29
  tail call void @depthwise_conv_s8_generic(ptr noundef %4, i16 noundef zeroext %62, i16 noundef zeroext %65, i16 noundef zeroext %68, i16 noundef zeroext %71, ptr noundef %6, i16 noundef zeroext %74, i16 noundef zeroext %75, i16 noundef zeroext %78, i16 noundef zeroext %81, i16 noundef zeroext %84, i16 noundef zeroext %87, i16 noundef zeroext %90, i16 noundef zeroext %93, ptr noundef %8, ptr noundef %10, ptr noundef %95, ptr noundef %96, i16 noundef zeroext %99, i16 noundef zeroext %102, i32 noundef %104, i32 noundef %105, i32 noundef %107, i32 noundef %109, i16 noundef zeroext %14, i16 noundef zeroext %17)
  br label %110

110:                                              ; preds = %61, %26
  ret i32 0
}

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

; Function Attrs: nounwind uwtable
declare hidden void @depthwise_conv_s8_generic(ptr noundef, i16 noundef zeroext, i16 noundef zeroext, i16 noundef zeroext, i16 noundef zeroext, ptr noundef, i16 noundef zeroext, i16 noundef zeroext, i16 noundef zeroext, i16 noundef zeroext, i16 noundef zeroext, i16 noundef zeroext, i16 noundef zeroext, i16 noundef zeroext, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i16 noundef zeroext, i16 noundef zeroext, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i16 noundef zeroext, i16 noundef zeroext) local_unnamed_addr #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" }

!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 28}
!6 = !{!"", !7, i64 0, !7, i64 4, !7, i64 8, !10, i64 12, !10, i64 20, !10, i64 28, !10, i64 36}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"", !7, i64 0, !7, i64 4}
!11 = !{!6, !7, i64 32}
!12 = !{!6, !7, i64 8}
!13 = !{!14, !7, i64 0}
!14 = !{!"", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12}
!15 = !{!14, !7, i64 8}
!16 = !{!14, !7, i64 4}
!17 = !{!14, !7, i64 12}
!18 = !{!6, !7, i64 20}
!19 = !{!6, !7, i64 24}
!20 = !{!6, !7, i64 12}
!21 = !{!6, !7, i64 16}
!22 = !{!23, !24, i64 8}
!23 = !{!"", !24, i64 0, !24, i64 8}
!24 = !{!"any pointer", !8, i64 0}
!25 = !{!23, !24, i64 0}
!26 = !{!6, !7, i64 4}
!27 = !{!6, !7, i64 0}
!28 = !{!6, !7, i64 36}
!29 = !{!6, !7, i64 40}


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