; LLVM IR from boschglobal/dse.network :: dse/network/examples/stub (stub)

; 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.stub_mux_message_t = type { i32, i8, double, float }

; 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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i8 @pack_left_shift_u8(i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext) #2

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i8 @pack_right_shift_u32(i32 noundef, i8 noundef zeroext, i8 noundef zeroext) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i8 @pack_left_shift_u32(i32 noundef, i8 noundef zeroext, i8 noundef zeroext) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i8 @pack_right_shift_u64(i64 noundef, i8 noundef zeroext, i8 noundef zeroext) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i8 @pack_left_shift_u64(i64 noundef, i8 noundef zeroext, i8 noundef zeroext) #2

; 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

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

13:                                               ; preds = %3
  store i32 -22, ptr %4, align 4
  store i32 1, ptr %10, align 4
  br label %180

14:                                               ; preds = %3
  %15 = load ptr, ptr %5, align 8, !tbaa !5
  %16 = getelementptr inbounds i8, ptr %15, i64 0
  call void @llvm.memset.p0.i64(ptr align 1 %16, i8 0, i64 12, i1 false)
  %17 = load ptr, ptr %6, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.stub_mux_message_t, ptr %17, i32 0, i32 0
  %19 = load i32, ptr %18, align 8, !tbaa !11
  %20 = call zeroext i8 @pack_left_shift_u32(i32 noundef %19, i8 noundef zeroext 0, i8 noundef zeroext -1)
  %21 = zext i8 %20 to i32
  %22 = load ptr, ptr %5, align 8, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %22, i64 0
  %24 = load i8, ptr %23, align 1, !tbaa !16
  %25 = zext i8 %24 to i32
  %26 = or i32 %25, %21
  %27 = trunc i32 %26 to i8
  store i8 %27, ptr %23, align 1, !tbaa !16
  %28 = load ptr, ptr %6, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.stub_mux_message_t, ptr %28, i32 0, i32 0
  %30 = load i32, ptr %29, align 8, !tbaa !11
  %31 = call zeroext i8 @pack_right_shift_u32(i32 noundef %30, i8 noundef zeroext 8, i8 noundef zeroext -1)
  %32 = zext i8 %31 to i32
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = getelementptr inbounds i8, ptr %33, i64 1
  %35 = load i8, ptr %34, align 1, !tbaa !16
  %36 = zext i8 %35 to i32
  %37 = or i32 %36, %32
  %38 = trunc i32 %37 to i8
  store i8 %38, ptr %34, align 1, !tbaa !16
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.stub_mux_message_t, ptr %39, i32 0, i32 0
  %41 = load i32, ptr %40, align 8, !tbaa !11
  %42 = call zeroext i8 @pack_right_shift_u32(i32 noundef %41, i8 noundef zeroext 16, i8 noundef zeroext -1)
  %43 = zext i8 %42 to i32
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  %45 = getelementptr inbounds i8, ptr %44, i64 2
  %46 = load i8, ptr %45, align 1, !tbaa !16
  %47 = zext i8 %46 to i32
  %48 = or i32 %47, %43
  %49 = trunc i32 %48 to i8
  store i8 %49, ptr %45, align 1, !tbaa !16
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.stub_mux_message_t, ptr %50, i32 0, i32 1
  %52 = load i8, ptr %51, align 4, !tbaa !17
  %53 = call zeroext i8 @pack_left_shift_u8(i8 noundef zeroext %52, i8 noundef zeroext 0, i8 noundef zeroext -1)
  %54 = zext i8 %53 to i32
  %55 = load ptr, ptr %5, align 8, !tbaa !5
  %56 = getelementptr inbounds i8, ptr %55, i64 3
  %57 = load i8, ptr %56, align 1, !tbaa !16
  %58 = zext i8 %57 to i32
  %59 = or i32 %58, %54
  %60 = trunc i32 %59 to i8
  store i8 %60, ptr %56, align 1, !tbaa !16
  %61 = load ptr, ptr %6, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.stub_mux_message_t, ptr %61, i32 0, i32 0
  %63 = load i32, ptr %62, align 8, !tbaa !11
  switch i32 %63, label %178 [
    i32 601, label %64
    i32 602, label %139
  ]

64:                                               ; preds = %14
  %65 = load ptr, ptr %6, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.stub_mux_message_t, ptr %65, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %9, ptr align 8 %66, i64 8, i1 false)
  %67 = load i64, ptr %9, align 8, !tbaa !9
  %68 = call zeroext i8 @pack_left_shift_u64(i64 noundef %67, i8 noundef zeroext 0, i8 noundef zeroext -1)
  %69 = zext i8 %68 to i32
  %70 = load ptr, ptr %5, align 8, !tbaa !5
  %71 = getelementptr inbounds i8, ptr %70, i64 4
  %72 = load i8, ptr %71, align 1, !tbaa !16
  %73 = zext i8 %72 to i32
  %74 = or i32 %73, %69
  %75 = trunc i32 %74 to i8
  store i8 %75, ptr %71, align 1, !tbaa !16
  %76 = load i64, ptr %9, align 8, !tbaa !9
  %77 = call zeroext i8 @pack_right_shift_u64(i64 noundef %76, i8 noundef zeroext 8, i8 noundef zeroext -1)
  %78 = zext i8 %77 to i32
  %79 = load ptr, ptr %5, align 8, !tbaa !5
  %80 = getelementptr inbounds i8, ptr %79, i64 5
  %81 = load i8, ptr %80, align 1, !tbaa !16
  %82 = zext i8 %81 to i32
  %83 = or i32 %82, %78
  %84 = trunc i32 %83 to i8
  store i8 %84, ptr %80, align 1, !tbaa !16
  %85 = load i64, ptr %9, align 8, !tbaa !9
  %86 = call zeroext i8 @pack_right_shift_u64(i64 noundef %85, i8 noundef zeroext 16, i8 noundef zeroext -1)
  %87 = zext i8 %86 to i32
  %88 = load ptr, ptr %5, align 8, !tbaa !5
  %89 = getelementptr inbounds i8, ptr %88, i64 6
  %90 = load i8, ptr %89, align 1, !tbaa !16
  %91 = zext i8 %90 to i32
  %92 = or i32 %91, %87
  %93 = trunc i32 %92 to i8
  store i8 %93, ptr %89, align 1, !tbaa !16
  %94 = load i64, ptr %9, align 8, !tbaa !9
  %95 = call zeroext i8 @pack_right_shift_u64(i64 noundef %94, i8 noundef zeroext 24, i8 noundef zeroext -1)
  %96 = zext i8 %95 to i32
  %97 = load ptr, ptr %5, align 8, !tbaa !5
  %98 = getelementptr inbounds i8, ptr %97, i64 7
  %99 = load i8, ptr %98, align 1, !tbaa !16
  %100 = zext i8 %99 to i32
  %101 = or i32 %100, %96
  %102 = trunc i32 %101 to i8
  store i8 %102, ptr %98, align 1, !tbaa !16
  %103 = load i64, ptr %9, align 8, !tbaa !9
  %104 = call zeroext i8 @pack_right_shift_u64(i64 noundef %103, i8 noundef zeroext 32, i8 noundef zeroext -1)
  %105 = zext i8 %104 to i32
  %106 = load ptr, ptr %5, align 8, !tbaa !5
  %107 = getelementptr inbounds i8, ptr %106, i64 8
  %108 = load i8, ptr %107, align 1, !tbaa !16
  %109 = zext i8 %108 to i32
  %110 = or i32 %109, %105
  %111 = trunc i32 %110 to i8
  store i8 %111, ptr %107, align 1, !tbaa !16
  %112 = load i64, ptr %9, align 8, !tbaa !9
  %113 = call zeroext i8 @pack_right_shift_u64(i64 noundef %112, i8 noundef zeroext 40, i8 noundef zeroext -1)
  %114 = zext i8 %113 to i32
  %115 = load ptr, ptr %5, align 8, !tbaa !5
  %116 = getelementptr inbounds i8, ptr %115, i64 9
  %117 = load i8, ptr %116, align 1, !tbaa !16
  %118 = zext i8 %117 to i32
  %119 = or i32 %118, %114
  %120 = trunc i32 %119 to i8
  store i8 %120, ptr %116, align 1, !tbaa !16
  %121 = load i64, ptr %9, align 8, !tbaa !9
  %122 = call zeroext i8 @pack_right_shift_u64(i64 noundef %121, i8 noundef zeroext 48, i8 noundef zeroext -1)
  %123 = zext i8 %122 to i32
  %124 = load ptr, ptr %5, align 8, !tbaa !5
  %125 = getelementptr inbounds i8, ptr %124, i64 10
  %126 = load i8, ptr %125, align 1, !tbaa !16
  %127 = zext i8 %126 to i32
  %128 = or i32 %127, %123
  %129 = trunc i32 %128 to i8
  store i8 %129, ptr %125, align 1, !tbaa !16
  %130 = load i64, ptr %9, align 8, !tbaa !9
  %131 = call zeroext i8 @pack_right_shift_u64(i64 noundef %130, i8 noundef zeroext 56, i8 noundef zeroext -1)
  %132 = zext i8 %131 to i32
  %133 = load ptr, ptr %5, align 8, !tbaa !5
  %134 = getelementptr inbounds i8, ptr %133, i64 11
  %135 = load i8, ptr %134, align 1, !tbaa !16
  %136 = zext i8 %135 to i32
  %137 = or i32 %136, %132
  %138 = trunc i32 %137 to i8
  store i8 %138, ptr %134, align 1, !tbaa !16
  br label %179

139:                                              ; preds = %14
  %140 = load ptr, ptr %6, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.stub_mux_message_t, ptr %140, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %8, ptr align 8 %141, i64 4, i1 false)
  %142 = load i32, ptr %8, align 4, !tbaa !18
  %143 = call zeroext i8 @pack_left_shift_u32(i32 noundef %142, i8 noundef zeroext 0, i8 noundef zeroext -1)
  %144 = zext i8 %143 to i32
  %145 = load ptr, ptr %5, align 8, !tbaa !5
  %146 = getelementptr inbounds i8, ptr %145, i64 4
  %147 = load i8, ptr %146, align 1, !tbaa !16
  %148 = zext i8 %147 to i32
  %149 = or i32 %148, %144
  %150 = trunc i32 %149 to i8
  store i8 %150, ptr %146, align 1, !tbaa !16
  %151 = load i32, ptr %8, align 4, !tbaa !18
  %152 = call zeroext i8 @pack_right_shift_u32(i32 noundef %151, i8 noundef zeroext 8, i8 noundef zeroext -1)
  %153 = zext i8 %152 to i32
  %154 = load ptr, ptr %5, align 8, !tbaa !5
  %155 = getelementptr inbounds i8, ptr %154, i64 5
  %156 = load i8, ptr %155, align 1, !tbaa !16
  %157 = zext i8 %156 to i32
  %158 = or i32 %157, %153
  %159 = trunc i32 %158 to i8
  store i8 %159, ptr %155, align 1, !tbaa !16
  %160 = load i32, ptr %8, align 4, !tbaa !18
  %161 = call zeroext i8 @pack_right_shift_u32(i32 noundef %160, i8 noundef zeroext 16, i8 noundef zeroext -1)
  %162 = zext i8 %161 to i32
  %163 = load ptr, ptr %5, align 8, !tbaa !5
  %164 = getelementptr inbounds i8, ptr %163, i64 6
  %165 = load i8, ptr %164, align 1, !tbaa !16
  %166 = zext i8 %165 to i32
  %167 = or i32 %166, %162
  %168 = trunc i32 %167 to i8
  store i8 %168, ptr %164, align 1, !tbaa !16
  %169 = load i32, ptr %8, align 4, !tbaa !18
  %170 = call zeroext i8 @pack_right_shift_u32(i32 noundef %169, i8 noundef zeroext 24, i8 noundef zeroext -1)
  %171 = zext i8 %170 to i32
  %172 = load ptr, ptr %5, align 8, !tbaa !5
  %173 = getelementptr inbounds i8, ptr %172, i64 7
  %174 = load i8, ptr %173, align 1, !tbaa !16
  %175 = zext i8 %174 to i32
  %176 = or i32 %175, %171
  %177 = trunc i32 %176 to i8
  store i8 %177, ptr %173, align 1, !tbaa !16
  br label %179

178:                                              ; preds = %14
  br label %179

179:                                              ; preds = %178, %139, %64
  store i32 12, ptr %4, align 4
  store i32 1, ptr %10, align 4
  br label %180

180:                                              ; preds = %179, %13
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  %181 = load i32, ptr %4, align 4
  ret i32 %181
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { inlinehint 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { 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 = !{!"long", !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"stub_mux_message_t", !13, i64 0, !7, i64 4, !14, i64 8, !15, i64 16}
!13 = !{!"int", !7, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{!"float", !7, i64 0}
!16 = !{!7, !7, i64 0}
!17 = !{!12, !7, i64 4}
!18 = !{!13, !13, i64 0}


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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i8 @pack_left_shift_u8(i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext) local_unnamed_addr #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i8 @pack_right_shift_u32(i32 noundef, i8 noundef zeroext, i8 noundef zeroext) local_unnamed_addr #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i8 @pack_left_shift_u32(i32 noundef, i8 noundef zeroext, i8 noundef zeroext) local_unnamed_addr #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i8 @pack_right_shift_u64(i64 noundef, i8 noundef zeroext, i8 noundef zeroext) local_unnamed_addr #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i8 @pack_left_shift_u64(i64 noundef, i8 noundef zeroext, i8 noundef zeroext) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local range(i32 -22, 13) i32 @stub_mux_message_pack(ptr nocapture noundef %0, ptr nocapture noundef readonly %1, i64 noundef %2) local_unnamed_addr #2 {
  %4 = icmp ult i64 %2, 12
  br i1 %4, label %76, label %5

5:                                                ; preds = %3
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(12) %0, i8 0, i64 12, i1 false)
  %6 = load i32, ptr %1, align 8, !tbaa !5
  %7 = tail call zeroext i8 @pack_left_shift_u32(i32 noundef %6, i8 noundef zeroext 0, i8 noundef zeroext -1)
  %8 = load i8, ptr %0, align 1, !tbaa !12
  %9 = or i8 %8, %7
  store i8 %9, ptr %0, align 1, !tbaa !12
  %10 = load i32, ptr %1, align 8, !tbaa !5
  %11 = tail call zeroext i8 @pack_right_shift_u32(i32 noundef %10, i8 noundef zeroext 8, i8 noundef zeroext -1)
  %12 = getelementptr inbounds i8, ptr %0, i64 1
  %13 = load i8, ptr %12, align 1, !tbaa !12
  %14 = or i8 %13, %11
  store i8 %14, ptr %12, align 1, !tbaa !12
  %15 = load i32, ptr %1, align 8, !tbaa !5
  %16 = tail call zeroext i8 @pack_right_shift_u32(i32 noundef %15, i8 noundef zeroext 16, i8 noundef zeroext -1)
  %17 = getelementptr inbounds i8, ptr %0, i64 2
  %18 = load i8, ptr %17, align 1, !tbaa !12
  %19 = or i8 %18, %16
  store i8 %19, ptr %17, align 1, !tbaa !12
  %20 = getelementptr inbounds i8, ptr %1, i64 4
  %21 = load i8, ptr %20, align 4, !tbaa !13
  %22 = tail call zeroext i8 @pack_left_shift_u8(i8 noundef zeroext %21, i8 noundef zeroext 0, i8 noundef zeroext -1)
  %23 = getelementptr inbounds i8, ptr %0, i64 3
  %24 = load i8, ptr %23, align 1, !tbaa !12
  %25 = or i8 %24, %22
  store i8 %25, ptr %23, align 1, !tbaa !12
  %26 = load i32, ptr %1, align 8, !tbaa !5
  switch i32 %26, label %76 [
    i32 601, label %27
    i32 602, label %58
  ]

27:                                               ; preds = %5
  %28 = getelementptr inbounds i8, ptr %1, i64 8
  %.0.copyload = load i64, ptr %28, align 8
  %29 = tail call zeroext i8 @pack_left_shift_u64(i64 noundef %.0.copyload, i8 noundef zeroext 0, i8 noundef zeroext -1)
  %30 = getelementptr inbounds i8, ptr %0, i64 4
  %31 = load i8, ptr %30, align 1, !tbaa !12
  %32 = or i8 %31, %29
  store i8 %32, ptr %30, align 1, !tbaa !12
  %33 = tail call zeroext i8 @pack_right_shift_u64(i64 noundef %.0.copyload, i8 noundef zeroext 8, i8 noundef zeroext -1)
  %34 = getelementptr inbounds i8, ptr %0, i64 5
  %35 = load i8, ptr %34, align 1, !tbaa !12
  %36 = or i8 %35, %33
  store i8 %36, ptr %34, align 1, !tbaa !12
  %37 = tail call zeroext i8 @pack_right_shift_u64(i64 noundef %.0.copyload, i8 noundef zeroext 16, i8 noundef zeroext -1)
  %38 = getelementptr inbounds i8, ptr %0, i64 6
  %39 = load i8, ptr %38, align 1, !tbaa !12
  %40 = or i8 %39, %37
  store i8 %40, ptr %38, align 1, !tbaa !12
  %41 = tail call zeroext i8 @pack_right_shift_u64(i64 noundef %.0.copyload, i8 noundef zeroext 24, i8 noundef zeroext -1)
  %42 = getelementptr inbounds i8, ptr %0, i64 7
  %43 = load i8, ptr %42, align 1, !tbaa !12
  %44 = or i8 %43, %41
  store i8 %44, ptr %42, align 1, !tbaa !12
  %45 = tail call zeroext i8 @pack_right_shift_u64(i64 noundef %.0.copyload, i8 noundef zeroext 32, i8 noundef zeroext -1)
  %46 = getelementptr inbounds i8, ptr %0, i64 8
  %47 = load i8, ptr %46, align 1, !tbaa !12
  %48 = or i8 %47, %45
  store i8 %48, ptr %46, align 1, !tbaa !12
  %49 = tail call zeroext i8 @pack_right_shift_u64(i64 noundef %.0.copyload, i8 noundef zeroext 40, i8 noundef zeroext -1)
  %50 = getelementptr inbounds i8, ptr %0, i64 9
  %51 = load i8, ptr %50, align 1, !tbaa !12
  %52 = or i8 %51, %49
  store i8 %52, ptr %50, align 1, !tbaa !12
  %53 = tail call zeroext i8 @pack_right_shift_u64(i64 noundef %.0.copyload, i8 noundef zeroext 48, i8 noundef zeroext -1)
  %54 = getelementptr inbounds i8, ptr %0, i64 10
  %55 = load i8, ptr %54, align 1, !tbaa !12
  %56 = or i8 %55, %53
  store i8 %56, ptr %54, align 1, !tbaa !12
  %57 = tail call zeroext i8 @pack_right_shift_u64(i64 noundef %.0.copyload, i8 noundef zeroext 56, i8 noundef zeroext -1)
  br label %.sink.split

58:                                               ; preds = %5
  %59 = getelementptr inbounds i8, ptr %1, i64 16
  %.0.copyload8 = load i32, ptr %59, align 8
  %60 = tail call zeroext i8 @pack_left_shift_u32(i32 noundef %.0.copyload8, i8 noundef zeroext 0, i8 noundef zeroext -1)
  %61 = getelementptr inbounds i8, ptr %0, i64 4
  %62 = load i8, ptr %61, align 1, !tbaa !12
  %63 = or i8 %62, %60
  store i8 %63, ptr %61, align 1, !tbaa !12
  %64 = tail call zeroext i8 @pack_right_shift_u32(i32 noundef %.0.copyload8, i8 noundef zeroext 8, i8 noundef zeroext -1)
  %65 = getelementptr inbounds i8, ptr %0, i64 5
  %66 = load i8, ptr %65, align 1, !tbaa !12
  %67 = or i8 %66, %64
  store i8 %67, ptr %65, align 1, !tbaa !12
  %68 = tail call zeroext i8 @pack_right_shift_u32(i32 noundef %.0.copyload8, i8 noundef zeroext 16, i8 noundef zeroext -1)
  %69 = getelementptr inbounds i8, ptr %0, i64 6
  %70 = load i8, ptr %69, align 1, !tbaa !12
  %71 = or i8 %70, %68
  store i8 %71, ptr %69, align 1, !tbaa !12
  %72 = tail call zeroext i8 @pack_right_shift_u32(i32 noundef %.0.copyload8, i8 noundef zeroext 24, i8 noundef zeroext -1)
  br label %.sink.split

.sink.split:                                      ; preds = %58, %27
  %.sink41 = phi i64 [ 11, %27 ], [ 7, %58 ]
  %.sink40 = phi i8 [ %57, %27 ], [ %72, %58 ]
  %73 = getelementptr inbounds i8, ptr %0, i64 %.sink41
  %74 = load i8, ptr %73, align 1, !tbaa !12
  %75 = or i8 %74, %.sink40
  store i8 %75, ptr %73, align 1, !tbaa !12
  br label %76

76:                                               ; preds = %.sink.split, %5, %3
  %.0 = phi i32 [ -22, %3 ], [ 12, %5 ], [ 12, %.sink.split ]
  ret i32 %.0
}

attributes #0 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #1 = { inlinehint 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 = { 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 0}
!6 = !{!"stub_mux_message_t", !7, i64 0, !8, i64 4, !10, i64 8, !11, i64 16}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"double", !8, i64 0}
!11 = !{!"float", !8, i64 0}
!12 = !{!8, !8, i64 0}
!13 = !{!6, !8, i64 4}


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