; LLVM IR from libxsmm/libxsmm :: src (generator_x86_instructions)

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

@.str = external hidden unnamed_addr constant [82 x i8], align 1
@libxsmm_ninit = external global i32, align 4
@libxsmm_verbosity = external global i32, align 4
@stderr = external global ptr, align 8
@.str.79 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.84 = external hidden unnamed_addr constant [78 x i8], align 1
@__func__.libxsmm_x86_instruction_mask_move_mem = external hidden unnamed_addr constant [38 x i8], align 1
@__PRETTY_FUNCTION__.libxsmm_x86_instruction_mask_move_mem = external hidden unnamed_addr constant [180 x i8], align 1
@.str.85 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.86 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.87 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.88 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.89 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.90 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.91 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.92 = external hidden unnamed_addr constant [51 x i8], align 1

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

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

declare void @libxsmm_handle_error(ptr noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #3

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #4

declare void @libxsmm_get_x86_gp_reg_name(i32 noundef, ptr noundef, i32 noundef) #1

declare void @libxsmm_get_x86_instr_name(i32 noundef, ptr noundef, i32 noundef) #1

; Function Attrs: nounwind
declare i32 @snprintf(ptr noundef, i64 noundef, ptr noundef, ...) #4

declare void @libxsmm_append_code_as_string(ptr noundef, ptr noundef, i32 noundef) #1

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_x86_instruction_mask_move_mem(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6) #2 {
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca [512 x i8], align 16
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca [4 x i8], align 1
  %20 = alloca [4 x i8], align 1
  %21 = alloca [16 x i8], align 16
  store ptr %0, ptr %8, align 8, !tbaa !5
  store i32 %1, ptr %9, align 4, !tbaa !9
  store i32 %2, ptr %10, align 4, !tbaa !9
  store i32 %3, ptr %11, align 4, !tbaa !9
  store i32 %4, ptr %12, align 4, !tbaa !9
  store i32 %5, ptr %13, align 4, !tbaa !9
  store i32 %6, ptr %14, align 4, !tbaa !9
  %22 = load i32, ptr %9, align 4, !tbaa !9
  switch i32 %22, label %24 [
    i32 -1610280560, label %23
    i32 -1610346096, label %23
    i32 -1601891952, label %23
    i32 -1601957488, label %23
    i32 -1610280559, label %23
    i32 -1610346095, label %23
    i32 -1601891951, label %23
    i32 -1601957487, label %23
  ]

23:                                               ; preds = %7, %7, %7, %7, %7, %7, %7, %7
  br label %36

24:                                               ; preds = %7
  %25 = load ptr, ptr @stderr, align 8, !tbaa !5
  %26 = load i32, ptr %9, align 4, !tbaa !9
  %27 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef @.str.84, i32 noundef %26) #5
  %28 = load ptr, ptr %8, align 8, !tbaa !5
  %29 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %30 = icmp ult i32 1, %29
  br i1 %30, label %31, label %33

31:                                               ; preds = %24
  %32 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %34

33:                                               ; preds = %24
  br label %34

34:                                               ; preds = %33, %31
  %35 = phi i32 [ %32, %31 ], [ 1, %33 ]
  call void @libxsmm_handle_error(ptr noundef %28, i32 noundef 90000, ptr noundef @__func__.libxsmm_x86_instruction_mask_move_mem, ptr noundef @.str, i32 noundef 3372, i32 noundef %35)
  br label %191

36:                                               ; preds = %23
  %37 = load i32, ptr %9, align 4, !tbaa !9
  %38 = and i32 %37, 768
  %39 = icmp ne i32 %38, 768
  br i1 %39, label %40, label %41

40:                                               ; preds = %36
  br label %42

41:                                               ; preds = %36
  call void @__assert_fail(ptr noundef @.str.79, ptr noundef @.str, i32 noundef 3376, ptr noundef @__PRETTY_FUNCTION__.libxsmm_x86_instruction_mask_move_mem) #6
  unreachable

42:                                               ; preds = %40
  %43 = load ptr, ptr %8, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %43, i32 0, i32 3
  %45 = load i32, ptr %44, align 8, !tbaa !11
  %46 = icmp ugt i32 %45, 1
  br i1 %46, label %47, label %55

47:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 0, ptr %15, align 4, !tbaa !9
  %48 = load ptr, ptr %8, align 8, !tbaa !5
  %49 = load i32, ptr %9, align 4, !tbaa !9
  %50 = load i32, ptr %10, align 4, !tbaa !9
  %51 = load i32, ptr %11, align 4, !tbaa !9
  %52 = load i32, ptr %12, align 4, !tbaa !9
  %53 = load i32, ptr %13, align 4, !tbaa !9
  %54 = load i32, ptr %14, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_vex_compute_2reg_mem(ptr noundef %48, i32 noundef %49, i32 noundef %50, i32 noundef %51, i32 noundef %52, i32 noundef %53, i32 noundef 0, i32 noundef 0, i32 noundef %54)
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %191

55:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 512, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  store i32 511, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  store i32 0, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #5
  %56 = load i32, ptr %10, align 4, !tbaa !9
  %57 = getelementptr inbounds [4 x i8], ptr %19, i64 0, i64 0
  call void @libxsmm_get_x86_gp_reg_name(i32 noundef %56, ptr noundef %57, i32 noundef 3)
  %58 = load i32, ptr %9, align 4, !tbaa !9
  %59 = getelementptr inbounds [16 x i8], ptr %21, i64 0, i64 0
  call void @libxsmm_get_x86_instr_name(i32 noundef %58, ptr noundef %59, i32 noundef 15)
  %60 = load i32, ptr %9, align 4, !tbaa !9
  %61 = icmp eq i32 %60, -1610280559
  br i1 %61, label %71, label %62

62:                                               ; preds = %55
  %63 = load i32, ptr %9, align 4, !tbaa !9
  %64 = icmp eq i32 %63, -1610346095
  br i1 %64, label %71, label %65

65:                                               ; preds = %62
  %66 = load i32, ptr %9, align 4, !tbaa !9
  %67 = icmp eq i32 %66, -1601891951
  br i1 %67, label %71, label %68

68:                                               ; preds = %65
  %69 = load i32, ptr %9, align 4, !tbaa !9
  %70 = icmp eq i32 %69, -1601957487
  br i1 %70, label %71, label %129

71:                                               ; preds = %68, %65, %62, %55
  %72 = load i32, ptr %11, align 4, !tbaa !9
  %73 = icmp eq i32 %72, 127
  br i1 %73, label %74, label %98

74:                                               ; preds = %71
  %75 = load ptr, ptr %8, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %75, i32 0, i32 3
  %77 = load i32, ptr %76, align 8, !tbaa !11
  %78 = icmp eq i32 %77, 0
  br i1 %78, label %79, label %88

79:                                               ; preds = %74
  %80 = getelementptr inbounds [512 x i8], ptr %16, i64 0, i64 0
  %81 = load i32, ptr %17, align 4, !tbaa !9
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [16 x i8], ptr %21, i64 0, i64 0
  %84 = load i32, ptr %14, align 4, !tbaa !9
  %85 = load i32, ptr %13, align 4, !tbaa !9
  %86 = getelementptr inbounds [4 x i8], ptr %19, i64 0, i64 0
  %87 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %80, i64 noundef %82, ptr noundef @.str.85, ptr noundef %83, i32 noundef %84, i32 noundef %85, ptr noundef %86) #5
  store i32 %87, ptr %18, align 4, !tbaa !9
  br label %97

88:                                               ; preds = %74
  %89 = getelementptr inbounds [512 x i8], ptr %16, i64 0, i64 0
  %90 = load i32, ptr %17, align 4, !tbaa !9
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [16 x i8], ptr %21, i64 0, i64 0
  %93 = load i32, ptr %14, align 4, !tbaa !9
  %94 = load i32, ptr %13, align 4, !tbaa !9
  %95 = getelementptr inbounds [4 x i8], ptr %19, i64 0, i64 0
  %96 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %89, i64 noundef %91, ptr noundef @.str.86, ptr noundef %92, i32 noundef %93, i32 noundef %94, ptr noundef %95) #5
  store i32 %96, ptr %18, align 4, !tbaa !9
  br label %97

97:                                               ; preds = %88, %79
  br label %128

98:                                               ; preds = %71
  %99 = load i32, ptr %11, align 4, !tbaa !9
  %100 = getelementptr inbounds [4 x i8], ptr %20, i64 0, i64 0
  call void @libxsmm_get_x86_gp_reg_name(i32 noundef %99, ptr noundef %100, i32 noundef 3)
  %101 = load ptr, ptr %8, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %101, i32 0, i32 3
  %103 = load i32, ptr %102, align 8, !tbaa !11
  %104 = icmp eq i32 %103, 0
  br i1 %104, label %105, label %116

105:                                              ; preds = %98
  %106 = getelementptr inbounds [512 x i8], ptr %16, i64 0, i64 0
  %107 = load i32, ptr %17, align 4, !tbaa !9
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds [16 x i8], ptr %21, i64 0, i64 0
  %110 = load i32, ptr %14, align 4, !tbaa !9
  %111 = load i32, ptr %13, align 4, !tbaa !9
  %112 = getelementptr inbounds [4 x i8], ptr %19, i64 0, i64 0
  %113 = getelementptr inbounds [4 x i8], ptr %20, i64 0, i64 0
  %114 = load i32, ptr %12, align 4, !tbaa !9
  %115 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %106, i64 noundef %108, ptr noundef @.str.87, ptr noundef %109, i32 noundef %110, i32 noundef %111, ptr noundef %112, ptr noundef %113, i32 noundef %114) #5
  store i32 %115, ptr %18, align 4, !tbaa !9
  br label %127

116:                                              ; preds = %98
  %117 = getelementptr inbounds [512 x i8], ptr %16, i64 0, i64 0
  %118 = load i32, ptr %17, align 4, !tbaa !9
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds [16 x i8], ptr %21, i64 0, i64 0
  %121 = load i32, ptr %14, align 4, !tbaa !9
  %122 = load i32, ptr %13, align 4, !tbaa !9
  %123 = getelementptr inbounds [4 x i8], ptr %19, i64 0, i64 0
  %124 = getelementptr inbounds [4 x i8], ptr %20, i64 0, i64 0
  %125 = load i32, ptr %12, align 4, !tbaa !9
  %126 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %117, i64 noundef %119, ptr noundef @.str.88, ptr noundef %120, i32 noundef %121, i32 noundef %122, ptr noundef %123, ptr noundef %124, i32 noundef %125) #5
  store i32 %126, ptr %18, align 4, !tbaa !9
  br label %127

127:                                              ; preds = %116, %105
  br label %128

128:                                              ; preds = %127, %97
  br label %187

129:                                              ; preds = %68
  %130 = load i32, ptr %11, align 4, !tbaa !9
  %131 = icmp eq i32 %130, 127
  br i1 %131, label %132, label %156

132:                                              ; preds = %129
  %133 = load ptr, ptr %8, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %133, i32 0, i32 3
  %135 = load i32, ptr %134, align 8, !tbaa !11
  %136 = icmp eq i32 %135, 0
  br i1 %136, label %137, label %146

137:                                              ; preds = %132
  %138 = getelementptr inbounds [512 x i8], ptr %16, i64 0, i64 0
  %139 = load i32, ptr %17, align 4, !tbaa !9
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds [16 x i8], ptr %21, i64 0, i64 0
  %142 = load i32, ptr %13, align 4, !tbaa !9
  %143 = getelementptr inbounds [4 x i8], ptr %19, i64 0, i64 0
  %144 = load i32, ptr %14, align 4, !tbaa !9
  %145 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %138, i64 noundef %140, ptr noundef @.str.89, ptr noundef %141, i32 noundef %142, ptr noundef %143, i32 noundef %144) #5
  store i32 %145, ptr %18, align 4, !tbaa !9
  br label %155

146:                                              ; preds = %132
  %147 = getelementptr inbounds [512 x i8], ptr %16, i64 0, i64 0
  %148 = load i32, ptr %17, align 4, !tbaa !9
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds [16 x i8], ptr %21, i64 0, i64 0
  %151 = load i32, ptr %13, align 4, !tbaa !9
  %152 = getelementptr inbounds [4 x i8], ptr %19, i64 0, i64 0
  %153 = load i32, ptr %14, align 4, !tbaa !9
  %154 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %147, i64 noundef %149, ptr noundef @.str.90, ptr noundef %150, i32 noundef %151, ptr noundef %152, i32 noundef %153) #5
  store i32 %154, ptr %18, align 4, !tbaa !9
  br label %155

155:                                              ; preds = %146, %137
  br label %186

156:                                              ; preds = %129
  %157 = load i32, ptr %11, align 4, !tbaa !9
  %158 = getelementptr inbounds [4 x i8], ptr %20, i64 0, i64 0
  call void @libxsmm_get_x86_gp_reg_name(i32 noundef %157, ptr noundef %158, i32 noundef 3)
  %159 = load ptr, ptr %8, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %159, i32 0, i32 3
  %161 = load i32, ptr %160, align 8, !tbaa !11
  %162 = icmp eq i32 %161, 0
  br i1 %162, label %163, label %174

163:                                              ; preds = %156
  %164 = getelementptr inbounds [512 x i8], ptr %16, i64 0, i64 0
  %165 = load i32, ptr %17, align 4, !tbaa !9
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds [16 x i8], ptr %21, i64 0, i64 0
  %168 = load i32, ptr %13, align 4, !tbaa !9
  %169 = getelementptr inbounds [4 x i8], ptr %19, i64 0, i64 0
  %170 = getelementptr inbounds [4 x i8], ptr %20, i64 0, i64 0
  %171 = load i32, ptr %12, align 4, !tbaa !9
  %172 = load i32, ptr %14, align 4, !tbaa !9
  %173 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %164, i64 noundef %166, ptr noundef @.str.91, ptr noundef %167, i32 noundef %168, ptr noundef %169, ptr noundef %170, i32 noundef %171, i32 noundef %172) #5
  store i32 %173, ptr %18, align 4, !tbaa !9
  br label %185

174:                                              ; preds = %156
  %175 = getelementptr inbounds [512 x i8], ptr %16, i64 0, i64 0
  %176 = load i32, ptr %17, align 4, !tbaa !9
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds [16 x i8], ptr %21, i64 0, i64 0
  %179 = load i32, ptr %13, align 4, !tbaa !9
  %180 = getelementptr inbounds [4 x i8], ptr %19, i64 0, i64 0
  %181 = getelementptr inbounds [4 x i8], ptr %20, i64 0, i64 0
  %182 = load i32, ptr %12, align 4, !tbaa !9
  %183 = load i32, ptr %14, align 4, !tbaa !9
  %184 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %175, i64 noundef %177, ptr noundef @.str.92, ptr noundef %178, i32 noundef %179, ptr noundef %180, ptr noundef %181, i32 noundef %182, i32 noundef %183) #5
  store i32 %184, ptr %18, align 4, !tbaa !9
  br label %185

185:                                              ; preds = %174, %163
  br label %186

186:                                              ; preds = %185, %155
  br label %187

187:                                              ; preds = %186, %128
  %188 = load ptr, ptr %8, align 8, !tbaa !5
  %189 = getelementptr inbounds [512 x i8], ptr %16, i64 0, i64 0
  %190 = load i32, ptr %18, align 4, !tbaa !9
  call void @libxsmm_append_code_as_string(ptr noundef %188, ptr noundef %189, i32 noundef %190)
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 512, ptr %16) #5
  br label %191

191:                                              ; preds = %187, %47, %34
  ret void
}

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

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

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


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

@.str = external hidden unnamed_addr constant [82 x i8], align 1
@libxsmm_ninit = external local_unnamed_addr global i32, align 4
@libxsmm_verbosity = external local_unnamed_addr global i32, align 4
@stderr = external local_unnamed_addr global ptr, align 8
@.str.79 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.84 = external hidden unnamed_addr constant [78 x i8], align 1
@__func__.libxsmm_x86_instruction_mask_move_mem = external hidden unnamed_addr constant [38 x i8], align 1
@__PRETTY_FUNCTION__.libxsmm_x86_instruction_mask_move_mem = external hidden unnamed_addr constant [180 x i8], align 1
@.str.85 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.86 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.87 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.88 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.89 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.90 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.91 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.92 = external hidden unnamed_addr constant [51 x i8], align 1

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

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

declare void @libxsmm_handle_error(ptr noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

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

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

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

declare void @libxsmm_get_x86_gp_reg_name(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

declare void @libxsmm_get_x86_instr_name(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nofree nounwind
declare noundef i32 @snprintf(ptr noalias nocapture noundef writeonly, i64 noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #4

declare void @libxsmm_append_code_as_string(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_x86_instruction_mask_move_mem(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6) local_unnamed_addr #2 {
  %8 = alloca [512 x i8], align 16
  %9 = alloca [4 x i8], align 1
  %10 = alloca [4 x i8], align 1
  %11 = alloca [16 x i8], align 16
  switch i32 %1, label %12 [
    i32 -1610280560, label %19
    i32 -1610346096, label %19
    i32 -1601891952, label %19
    i32 -1601957488, label %19
    i32 -1610280559, label %19
    i32 -1610346095, label %19
    i32 -1601891951, label %19
    i32 -1601957487, label %19
  ]

12:                                               ; preds = %7
  %13 = load ptr, ptr @stderr, align 8, !tbaa !5
  %14 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef nonnull @.str.84, i32 noundef %1) #5
  %15 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %16 = icmp ugt i32 %15, 1
  %17 = load i32, ptr @libxsmm_verbosity, align 4
  %18 = select i1 %16, i32 %17, i32 1
  tail call void @libxsmm_handle_error(ptr noundef %0, i32 noundef 90000, ptr noundef nonnull @__func__.libxsmm_x86_instruction_mask_move_mem, ptr noundef nonnull @.str, i32 noundef 3372, i32 noundef %18) #6
  br label %61

19:                                               ; preds = %7, %7, %7, %7, %7, %7, %7, %7
  %20 = and i32 %1, 768
  %.not = icmp eq i32 %20, 768
  br i1 %.not, label %21, label %22

21:                                               ; preds = %19
  tail call void @__assert_fail(ptr noundef nonnull @.str.79, ptr noundef nonnull @.str, i32 noundef 3376, ptr noundef nonnull @__PRETTY_FUNCTION__.libxsmm_x86_instruction_mask_move_mem) #7
  unreachable

22:                                               ; preds = %19
  %23 = getelementptr inbounds i8, ptr %0, i64 16
  %24 = load i32, ptr %23, align 8, !tbaa !11
  %25 = icmp ugt i32 %24, 1
  br i1 %25, label %26, label %27

26:                                               ; preds = %22
  tail call void @libxsmm_x86_instruction_vex_compute_2reg_mem(ptr noundef nonnull %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef 0, i32 noundef 0, i32 noundef %6)
  br label %61

27:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #6
  call void @libxsmm_get_x86_gp_reg_name(i32 noundef %2, ptr noundef nonnull %9, i32 noundef 3) #6
  call void @libxsmm_get_x86_instr_name(i32 noundef %1, ptr noundef nonnull %11, i32 noundef 15) #6
  switch i32 %1, label %44 [
    i32 -1601891951, label %28
    i32 -1601957487, label %28
    i32 -1610280559, label %28
    i32 -1610346095, label %28
  ]

28:                                               ; preds = %27, %27, %27, %27
  %29 = icmp eq i32 %3, 127
  br i1 %29, label %30, label %37

30:                                               ; preds = %28
  %31 = load i32, ptr %23, align 8, !tbaa !11
  %32 = icmp eq i32 %31, 0
  br i1 %32, label %33, label %35

33:                                               ; preds = %30
  %34 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %8, i64 noundef 511, ptr noundef nonnull @.str.85, ptr noundef nonnull %11, i32 noundef %6, i32 noundef %5, ptr noundef nonnull %9) #6
  br label %60

35:                                               ; preds = %30
  %36 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %8, i64 noundef 511, ptr noundef nonnull @.str.86, ptr noundef nonnull %11, i32 noundef %6, i32 noundef %5, ptr noundef nonnull %9) #6
  br label %60

37:                                               ; preds = %28
  call void @libxsmm_get_x86_gp_reg_name(i32 noundef %3, ptr noundef nonnull %10, i32 noundef 3) #6
  %38 = load i32, ptr %23, align 8, !tbaa !11
  %39 = icmp eq i32 %38, 0
  br i1 %39, label %40, label %42

40:                                               ; preds = %37
  %41 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %8, i64 noundef 511, ptr noundef nonnull @.str.87, ptr noundef nonnull %11, i32 noundef %6, i32 noundef %5, ptr noundef nonnull %9, ptr noundef nonnull %10, i32 noundef %4) #6
  br label %60

42:                                               ; preds = %37
  %43 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %8, i64 noundef 511, ptr noundef nonnull @.str.88, ptr noundef nonnull %11, i32 noundef %6, i32 noundef %5, ptr noundef nonnull %9, ptr noundef nonnull %10, i32 noundef %4) #6
  br label %60

44:                                               ; preds = %27
  %45 = icmp eq i32 %3, 127
  br i1 %45, label %46, label %53

46:                                               ; preds = %44
  %47 = load i32, ptr %23, align 8, !tbaa !11
  %48 = icmp eq i32 %47, 0
  br i1 %48, label %49, label %51

49:                                               ; preds = %46
  %50 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %8, i64 noundef 511, ptr noundef nonnull @.str.89, ptr noundef nonnull %11, i32 noundef %5, ptr noundef nonnull %9, i32 noundef %6) #6
  br label %60

51:                                               ; preds = %46
  %52 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %8, i64 noundef 511, ptr noundef nonnull @.str.90, ptr noundef nonnull %11, i32 noundef %5, ptr noundef nonnull %9, i32 noundef %6) #6
  br label %60

53:                                               ; preds = %44
  call void @libxsmm_get_x86_gp_reg_name(i32 noundef %3, ptr noundef nonnull %10, i32 noundef 3) #6
  %54 = load i32, ptr %23, align 8, !tbaa !11
  %55 = icmp eq i32 %54, 0
  br i1 %55, label %56, label %58

56:                                               ; preds = %53
  %57 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %8, i64 noundef 511, ptr noundef nonnull @.str.91, ptr noundef nonnull %11, i32 noundef %5, ptr noundef nonnull %9, ptr noundef nonnull %10, i32 noundef %4, i32 noundef %6) #6
  br label %60

58:                                               ; preds = %53
  %59 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %8, i64 noundef 511, ptr noundef nonnull @.str.92, ptr noundef nonnull %11, i32 noundef %5, ptr noundef nonnull %9, ptr noundef nonnull %10, i32 noundef %4, i32 noundef %6) #6
  br label %60

60:                                               ; preds = %51, %49, %58, %56, %35, %33, %42, %40
  %.0 = phi i32 [ %34, %33 ], [ %36, %35 ], [ %41, %40 ], [ %43, %42 ], [ %50, %49 ], [ %52, %51 ], [ %57, %56 ], [ %59, %58 ]
  call void @libxsmm_append_code_as_string(ptr noundef nonnull %0, ptr noundef nonnull %8, i32 noundef %.0) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %8) #6
  br label %61

61:                                               ; preds = %60, %26, %12
  ret void
}

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

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

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


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