; LLVM IR from ARM-software/Arm-2D :: examples/common/controls (list_view)

; 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.__arm_2d_list_core_cfg_t = type { %struct.arm_2d_size_t, ptr, %union.anon.2, ptr, ptr, ptr, i32, ptr, i16, i16, i16, i16, ptr }
%struct.arm_2d_size_t = type { i16, i16 }
%union.anon.2 = type { ptr }
%struct.list_view_cfg_t = type { %struct.arm_2d_size_t, ptr, ptr, ptr, ptr, %union.anon, ptr, i16, i16, i16, i8, i8, %union.anon.0, ptr }
%union.anon = type { ptr }
%union.anon.0 = type { %union.COLOUR_TYPE_T }
%union.COLOUR_TYPE_T = type { i32 }
%struct.list_view_t = type { %union.anon.1, %struct.anon.25 }
%union.anon.1 = type { %struct.__arm_2d_list_core_t }
%struct.__arm_2d_list_core_t = type { %struct.anon, %struct.anon.3, %struct.anon.22 }
%struct.anon = type { %struct.__arm_2d_list_core_cfg_t }
%struct.anon.3 = type { %struct.anon.4, [112 x i8] }
%struct.anon.4 = type { %struct.arm_2d_tile_t, %struct.arm_2d_tile_t, %struct.__arm_2d_list_work_area_t, i8, %union.anon.20 }
%struct.arm_2d_tile_t = type { %union.anon.5, %union.anon.16, %union.anon.19 }
%union.anon.5 = type { %struct.anon.6 }
%struct.anon.6 = type { i8, %union.arm_2d_color_info_t, %union.anon.9 }
%union.arm_2d_color_info_t = type { %struct.anon.7 }
%struct.anon.7 = type { i8 }
%union.anon.9 = type { i16 }
%union.anon.16 = type { %struct.arm_2d_region_t }
%struct.arm_2d_region_t = type { %union.anon.17, %union.anon.18 }
%union.anon.17 = type { %struct.arm_2d_location_t }
%struct.arm_2d_location_t = type { i16, i16 }
%union.anon.18 = type { %struct.arm_2d_size_t }
%union.anon.19 = type { ptr }
%struct.__arm_2d_list_work_area_t = type { ptr, %struct.arm_2d_region_t, %struct.arm_2d_list_item_param_t, i32 }
%struct.arm_2d_list_item_param_t = type { i8, i8, i16 }
%union.anon.20 = type { %struct.anon.21 }
%struct.anon.21 = type { i16 }
%struct.anon.22 = type { i8, i8, i16, i32, %union.anon.23 }
%union.anon.23 = type { %struct.anon.24 }
%struct.anon.24 = type { i16, i16, i16, i16 }
%struct.anon.25 = type { %struct.list_view_cfg_t }

@.str = external hidden unnamed_addr constant [15 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [90 x i8], align 1
@__PRETTY_FUNCTION__.list_view_init = external hidden unnamed_addr constant [54 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [26 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @list_view_init(ptr noundef nonnull %0, ptr noundef nonnull %1) #0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %struct.__arm_2d_list_core_cfg_t, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %6 = load ptr, ptr %3, align 8, !tbaa !5
  %7 = icmp ne ptr null, %6
  br i1 %7, label %8, label %9

8:                                                ; preds = %2
  br label %10

9:                                                ; preds = %2
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 97, ptr noundef @__PRETTY_FUNCTION__.list_view_init) #5
  unreachable

10:                                               ; preds = %8
  %11 = load ptr, ptr %4, align 8, !tbaa !5
  %12 = icmp ne ptr null, %11
  br i1 %12, label %13, label %14

13:                                               ; preds = %10
  br label %15

14:                                               ; preds = %10
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 98, ptr noundef @__PRETTY_FUNCTION__.list_view_init) #5
  unreachable

15:                                               ; preds = %13
  %16 = load ptr, ptr %4, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.list_view_cfg_t, ptr %16, i32 0, i32 4
  %18 = load ptr, ptr %17, align 8, !tbaa !9
  %19 = icmp ne ptr null, %18
  br i1 %19, label %20, label %21

20:                                               ; preds = %15
  br label %22

21:                                               ; preds = %15
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 99, ptr noundef @__PRETTY_FUNCTION__.list_view_init) #5
  unreachable

22:                                               ; preds = %20
  %23 = load ptr, ptr %3, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.list_view_t, ptr %23, i32 0, i32 1
  %25 = getelementptr inbounds %struct.anon.25, ptr %24, i32 0, i32 0
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %25, ptr align 8 %26, i64 80, i1 false), !tbaa.struct !13
  %27 = load ptr, ptr %3, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.list_view_t, ptr %27, i32 0, i32 1
  %29 = getelementptr inbounds %struct.anon.25, ptr %28, i32 0, i32 0
  %30 = getelementptr inbounds %struct.list_view_cfg_t, ptr %29, i32 0, i32 11
  %31 = load i8, ptr %30, align 1, !tbaa !16
  %32 = zext i8 %31 to i32
  %33 = icmp eq i32 0, %32
  br i1 %33, label %34, label %39

34:                                               ; preds = %22
  %35 = load ptr, ptr %3, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.list_view_t, ptr %35, i32 0, i32 1
  %37 = getelementptr inbounds %struct.anon.25, ptr %36, i32 0, i32 0
  %38 = getelementptr inbounds %struct.list_view_cfg_t, ptr %37, i32 0, i32 11
  store i8 -1, ptr %38, align 1, !tbaa !16
  br label %39

39:                                               ; preds = %34, %22
  br label %40

40:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 80, ptr %5) #6
  %41 = getelementptr inbounds %struct.__arm_2d_list_core_cfg_t, ptr %5, i32 0, i32 0
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.list_view_cfg_t, ptr %42, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %41, ptr align 8 %43, i64 4, i1 false), !tbaa.struct !19
  %44 = getelementptr inbounds %struct.__arm_2d_list_core_cfg_t, ptr %5, i32 0, i32 1
  %45 = load ptr, ptr %4, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.list_view_cfg_t, ptr %45, i32 0, i32 4
  %47 = load ptr, ptr %46, align 8, !tbaa !9
  store ptr %47, ptr %44, align 8, !tbaa !20
  %48 = getelementptr inbounds %struct.__arm_2d_list_core_cfg_t, ptr %5, i32 0, i32 2
  %49 = load ptr, ptr %4, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.list_view_cfg_t, ptr %49, i32 0, i32 5
  %51 = load ptr, ptr %50, align 8, !tbaa !15
  store ptr %51, ptr %48, align 8, !tbaa !15
  %52 = getelementptr inbounds %struct.__arm_2d_list_core_cfg_t, ptr %5, i32 0, i32 3
  store ptr null, ptr %52, align 8, !tbaa !23
  %53 = getelementptr inbounds %struct.__arm_2d_list_core_cfg_t, ptr %5, i32 0, i32 4
  store ptr @__arm_2d_list_view_draw_background, ptr %53, align 8, !tbaa !24
  %54 = getelementptr inbounds %struct.__arm_2d_list_core_cfg_t, ptr %5, i32 0, i32 5
  store ptr null, ptr %54, align 8, !tbaa !25
  %55 = getelementptr inbounds %struct.__arm_2d_list_core_cfg_t, ptr %5, i32 0, i32 6
  store i32 0, ptr %55, align 8, !tbaa !26
  %56 = getelementptr inbounds %struct.__arm_2d_list_core_cfg_t, ptr %5, i32 0, i32 7
  %57 = load ptr, ptr %4, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.list_view_cfg_t, ptr %57, i32 0, i32 6
  %59 = load ptr, ptr %58, align 8, !tbaa !27
  store ptr %59, ptr %56, align 8, !tbaa !28
  %60 = getelementptr inbounds %struct.__arm_2d_list_core_cfg_t, ptr %5, i32 0, i32 8
  %61 = load ptr, ptr %4, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.list_view_cfg_t, ptr %61, i32 0, i32 8
  %63 = load i16, ptr %62, align 2, !tbaa !29
  store i16 %63, ptr %60, align 8, !tbaa !30
  %64 = getelementptr inbounds %struct.__arm_2d_list_core_cfg_t, ptr %5, i32 0, i32 9
  %65 = load ptr, ptr %4, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.list_view_cfg_t, ptr %65, i32 0, i32 7
  %67 = load i16, ptr %66, align 8, !tbaa !31
  store i16 %67, ptr %64, align 2, !tbaa !32
  %68 = getelementptr inbounds %struct.__arm_2d_list_core_cfg_t, ptr %5, i32 0, i32 10
  %69 = load ptr, ptr %4, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.list_view_cfg_t, ptr %69, i32 0, i32 9
  %71 = load i16, ptr %70, align 4, !tbaa !33
  store i16 %71, ptr %68, align 4, !tbaa !34
  %72 = getelementptr inbounds %struct.__arm_2d_list_core_cfg_t, ptr %5, i32 0, i32 11
  %73 = load ptr, ptr %4, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.list_view_cfg_t, ptr %73, i32 0, i32 10
  %75 = load i8, ptr %74, align 2
  %76 = lshr i8 %75, 1
  %77 = and i8 %76, 1
  %78 = zext i8 %77 to i16
  %79 = load i16, ptr %72, align 2
  %80 = and i16 %78, 1
  %81 = and i16 %79, -2
  %82 = or i16 %81, %80
  store i16 %82, ptr %72, align 2
  %83 = getelementptr inbounds %struct.__arm_2d_list_core_cfg_t, ptr %5, i32 0, i32 11
  %84 = load ptr, ptr %4, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.list_view_cfg_t, ptr %84, i32 0, i32 10
  %86 = load i8, ptr %85, align 2
  %87 = lshr i8 %86, 2
  %88 = and i8 %87, 1
  %89 = zext i8 %88 to i16
  %90 = load i16, ptr %83, align 2
  %91 = and i16 %89, 1
  %92 = shl i16 %91, 1
  %93 = and i16 %90, -3
  %94 = or i16 %93, %92
  store i16 %94, ptr %83, align 2
  %95 = getelementptr inbounds %struct.__arm_2d_list_core_cfg_t, ptr %5, i32 0, i32 11
  %96 = load ptr, ptr %4, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.list_view_cfg_t, ptr %96, i32 0, i32 10
  %98 = load i8, ptr %97, align 2
  %99 = lshr i8 %98, 3
  %100 = and i8 %99, 1
  %101 = zext i8 %100 to i16
  %102 = load i16, ptr %95, align 2
  %103 = and i16 %101, 1
  %104 = shl i16 %103, 2
  %105 = and i16 %102, -5
  %106 = or i16 %105, %104
  store i16 %106, ptr %95, align 2
  %107 = getelementptr inbounds %struct.__arm_2d_list_core_cfg_t, ptr %5, i32 0, i32 12
  %108 = load ptr, ptr %4, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.list_view_cfg_t, ptr %108, i32 0, i32 13
  %110 = load ptr, ptr %109, align 8, !tbaa !35
  store ptr %110, ptr %107, align 8, !tbaa !36
  %111 = load ptr, ptr %4, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.list_view_cfg_t, ptr %111, i32 0, i32 2
  %113 = load ptr, ptr %112, align 8, !tbaa !37
  %114 = icmp ne ptr null, %113
  br i1 %114, label %115, label %120

115:                                              ; preds = %40
  %116 = load ptr, ptr %4, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.list_view_cfg_t, ptr %116, i32 0, i32 2
  %118 = load ptr, ptr %117, align 8, !tbaa !37
  %119 = getelementptr inbounds %struct.__arm_2d_list_core_cfg_t, ptr %5, i32 0, i32 4
  store ptr %118, ptr %119, align 8, !tbaa !24
  br label %120

120:                                              ; preds = %115, %40
  %121 = load ptr, ptr %4, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.list_view_cfg_t, ptr %121, i32 0, i32 3
  %123 = load ptr, ptr %122, align 8, !tbaa !38
  %124 = icmp ne ptr null, %123
  br i1 %124, label %125, label %130

125:                                              ; preds = %120
  %126 = load ptr, ptr %4, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.list_view_cfg_t, ptr %126, i32 0, i32 3
  %128 = load ptr, ptr %127, align 8, !tbaa !38
  %129 = getelementptr inbounds %struct.__arm_2d_list_core_cfg_t, ptr %5, i32 0, i32 5
  store ptr %128, ptr %129, align 8, !tbaa !25
  br label %130

130:                                              ; preds = %125, %120
  %131 = load ptr, ptr %4, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.list_view_cfg_t, ptr %131, i32 0, i32 1
  %133 = load ptr, ptr %132, align 8, !tbaa !39
  %134 = icmp ne ptr null, %133
  br i1 %134, label %135, label %140

135:                                              ; preds = %130
  %136 = load ptr, ptr %4, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.list_view_cfg_t, ptr %136, i32 0, i32 1
  %138 = load ptr, ptr %137, align 8, !tbaa !39
  %139 = getelementptr inbounds %struct.__arm_2d_list_core_cfg_t, ptr %5, i32 0, i32 3
  store ptr %138, ptr %139, align 8, !tbaa !23
  br label %140

140:                                              ; preds = %135, %130
  %141 = load ptr, ptr %3, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.list_view_t, ptr %141, i32 0, i32 0
  %143 = call i32 @__arm_2d_list_core_init(ptr noundef %142, ptr noundef %5)
  call void @llvm.lifetime.end.p0(i64 80, ptr %5) #6
  br label %144

144:                                              ; preds = %140
  ret void
}

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #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) #2

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

; Function Attrs: nounwind uwtable
declare hidden i32 @__arm_2d_list_view_draw_background(ptr noundef, ptr noundef, i1 noundef zeroext) #0

declare i32 @__arm_2d_list_core_init(ptr noundef, ptr noundef) #4

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

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 = { 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 #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { "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 = { noreturn nounwind }
attributes #6 = { 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, !6, i64 32}
!10 = !{!"list_view_cfg_t", !11, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !7, i64 40, !6, i64 48, !12, i64 56, !12, i64 58, !12, i64 60, !7, i64 62, !7, i64 62, !7, i64 62, !7, i64 62, !7, i64 63, !7, i64 64, !6, i64 72}
!11 = !{!"arm_2d_size_t", !12, i64 0, !12, i64 2}
!12 = !{!"short", !7, i64 0}
!13 = !{i64 0, i64 2, !14, i64 2, i64 2, !14, i64 8, i64 8, !5, i64 16, i64 8, !5, i64 24, i64 8, !5, i64 32, i64 8, !5, i64 40, i64 8, !15, i64 48, i64 8, !5, i64 56, i64 2, !14, i64 58, i64 2, !14, i64 60, i64 2, !14, i64 62, i64 1, !15, i64 63, i64 1, !15, i64 64, i64 4, !15, i64 72, i64 8, !5}
!14 = !{!12, !12, i64 0}
!15 = !{!7, !7, i64 0}
!16 = !{!17, !7, i64 351}
!17 = !{!"list_view_t", !7, i64 0, !18, i64 288}
!18 = !{!"", !10, i64 0}
!19 = !{i64 0, i64 2, !14, i64 2, i64 2, !14}
!20 = !{!21, !6, i64 8}
!21 = !{!"__arm_2d_list_core_cfg_t", !11, i64 0, !6, i64 8, !7, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !22, i64 48, !6, i64 56, !12, i64 64, !12, i64 66, !12, i64 68, !12, i64 70, !12, i64 70, !12, i64 70, !6, i64 72}
!22 = !{!"int", !7, i64 0}
!23 = !{!21, !6, i64 24}
!24 = !{!21, !6, i64 32}
!25 = !{!21, !6, i64 40}
!26 = !{!21, !22, i64 48}
!27 = !{!10, !6, i64 48}
!28 = !{!21, !6, i64 56}
!29 = !{!10, !12, i64 58}
!30 = !{!21, !12, i64 64}
!31 = !{!10, !12, i64 56}
!32 = !{!21, !12, i64 66}
!33 = !{!10, !12, i64 60}
!34 = !{!21, !12, i64 68}
!35 = !{!10, !6, i64 72}
!36 = !{!21, !6, i64 72}
!37 = !{!10, !6, i64 16}
!38 = !{!10, !6, i64 24}
!39 = !{!10, !6, 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"

%struct.__arm_2d_list_core_cfg_t = type { %struct.arm_2d_size_t, ptr, %union.anon.2, ptr, ptr, ptr, i32, ptr, i16, i16, i16, i16, ptr }
%struct.arm_2d_size_t = type { i16, i16 }
%union.anon.2 = type { ptr }

@.str.1 = external hidden unnamed_addr constant [90 x i8], align 1
@__PRETTY_FUNCTION__.list_view_init = external hidden unnamed_addr constant [54 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [26 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @list_view_init(ptr noundef nonnull %0, ptr nocapture noundef nonnull readonly %1) local_unnamed_addr #0 {
  %3 = alloca %struct.__arm_2d_list_core_cfg_t, align 8
  %4 = getelementptr inbounds i8, ptr %1, i64 32
  %5 = load ptr, ptr %4, align 8, !tbaa !5
  %.not = icmp eq ptr %5, null
  br i1 %.not, label %6, label %7

6:                                                ; preds = %2
  tail call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, i32 noundef 99, ptr noundef nonnull @__PRETTY_FUNCTION__.list_view_init) #5
  unreachable

7:                                                ; preds = %2
  %8 = getelementptr inbounds i8, ptr %0, i64 288
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %8, ptr noundef nonnull align 8 dereferenceable(80) %1, i64 80, i1 false), !tbaa.struct !12
  %9 = getelementptr inbounds i8, ptr %0, i64 351
  %10 = load i8, ptr %9, align 1, !tbaa !16
  %11 = icmp eq i8 %10, 0
  br i1 %11, label %12, label %13

12:                                               ; preds = %7
  store i8 -1, ptr %9, align 1, !tbaa !16
  br label %13

13:                                               ; preds = %7, %12
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %3) #6
  %14 = load i32, ptr %1, align 8
  store i32 %14, ptr %3, align 8
  %15 = getelementptr inbounds i8, ptr %3, i64 8
  %16 = load <2 x ptr>, ptr %4, align 8, !tbaa !15
  store <2 x ptr> %16, ptr %15, align 8, !tbaa !15
  %17 = getelementptr inbounds i8, ptr %3, i64 24
  store ptr null, ptr %17, align 8, !tbaa !19
  %18 = getelementptr inbounds i8, ptr %3, i64 32
  store ptr @__arm_2d_list_view_draw_background, ptr %18, align 8, !tbaa !22
  %19 = getelementptr inbounds i8, ptr %3, i64 40
  store ptr null, ptr %19, align 8, !tbaa !23
  %20 = getelementptr inbounds i8, ptr %3, i64 48
  store i32 0, ptr %20, align 8, !tbaa !24
  %21 = getelementptr inbounds i8, ptr %3, i64 56
  %22 = getelementptr inbounds i8, ptr %1, i64 48
  %23 = load ptr, ptr %22, align 8, !tbaa !25
  store ptr %23, ptr %21, align 8, !tbaa !26
  %24 = getelementptr inbounds i8, ptr %3, i64 64
  %25 = getelementptr inbounds i8, ptr %1, i64 56
  %26 = load <2 x i16>, ptr %25, align 8, !tbaa !13
  %27 = shufflevector <2 x i16> %26, <2 x i16> poison, <2 x i32> <i32 1, i32 0>
  store <2 x i16> %27, ptr %24, align 8, !tbaa !13
  %28 = getelementptr inbounds i8, ptr %3, i64 68
  %29 = getelementptr inbounds i8, ptr %1, i64 60
  %30 = load i16, ptr %29, align 4, !tbaa !27
  store i16 %30, ptr %28, align 4, !tbaa !28
  %31 = getelementptr inbounds i8, ptr %3, i64 70
  %32 = getelementptr inbounds i8, ptr %1, i64 62
  %33 = load i8, ptr %32, align 2
  %34 = lshr i8 %33, 1
  %35 = and i8 %34, 7
  %36 = zext nneg i8 %35 to i16
  store i16 %36, ptr %31, align 2
  %37 = getelementptr inbounds i8, ptr %3, i64 72
  %38 = getelementptr inbounds i8, ptr %1, i64 72
  %39 = load ptr, ptr %38, align 8, !tbaa !29
  store ptr %39, ptr %37, align 8, !tbaa !30
  %40 = getelementptr inbounds i8, ptr %1, i64 16
  %41 = load ptr, ptr %40, align 8, !tbaa !31
  %.not27 = icmp eq ptr %41, null
  br i1 %.not27, label %43, label %42

42:                                               ; preds = %13
  store ptr %41, ptr %18, align 8, !tbaa !22
  br label %43

43:                                               ; preds = %42, %13
  %44 = getelementptr inbounds i8, ptr %1, i64 24
  %45 = load ptr, ptr %44, align 8, !tbaa !32
  %.not28 = icmp eq ptr %45, null
  br i1 %.not28, label %47, label %46

46:                                               ; preds = %43
  store ptr %45, ptr %19, align 8, !tbaa !23
  br label %47

47:                                               ; preds = %46, %43
  %48 = getelementptr inbounds i8, ptr %1, i64 8
  %49 = load ptr, ptr %48, align 8, !tbaa !33
  %.not29 = icmp eq ptr %49, null
  br i1 %.not29, label %51, label %50

50:                                               ; preds = %47
  store ptr %49, ptr %17, align 8, !tbaa !19
  br label %51

51:                                               ; preds = %50, %47
  %52 = call i32 @__arm_2d_list_core_init(ptr noundef nonnull %0, ptr noundef nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %3) #6
  ret void
}

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

; Function Attrs: mustprogress 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) #2

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

; Function Attrs: nounwind uwtable
declare hidden i32 @__arm_2d_list_view_draw_background(ptr noundef, ptr noundef, i1 noundef zeroext) #0

declare i32 @__arm_2d_list_core_init(ptr noundef, ptr noundef) local_unnamed_addr #4

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

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 = { 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 #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { "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 = { noreturn nounwind }
attributes #6 = { 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, !11, i64 32}
!6 = !{!"list_view_cfg_t", !7, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !9, i64 40, !11, i64 48, !8, i64 56, !8, i64 58, !8, i64 60, !9, i64 62, !9, i64 62, !9, i64 62, !9, i64 62, !9, i64 63, !9, i64 64, !11, i64 72}
!7 = !{!"arm_2d_size_t", !8, i64 0, !8, i64 2}
!8 = !{!"short", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{i64 0, i64 2, !13, i64 2, i64 2, !13, i64 8, i64 8, !14, i64 16, i64 8, !14, i64 24, i64 8, !14, i64 32, i64 8, !14, i64 40, i64 8, !15, i64 48, i64 8, !14, i64 56, i64 2, !13, i64 58, i64 2, !13, i64 60, i64 2, !13, i64 62, i64 1, !15, i64 63, i64 1, !15, i64 64, i64 4, !15, i64 72, i64 8, !14}
!13 = !{!8, !8, i64 0}
!14 = !{!11, !11, i64 0}
!15 = !{!9, !9, i64 0}
!16 = !{!17, !9, i64 351}
!17 = !{!"list_view_t", !9, i64 0, !18, i64 288}
!18 = !{!"", !6, i64 0}
!19 = !{!20, !11, i64 24}
!20 = !{!"__arm_2d_list_core_cfg_t", !7, i64 0, !11, i64 8, !9, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !21, i64 48, !11, i64 56, !8, i64 64, !8, i64 66, !8, i64 68, !8, i64 70, !8, i64 70, !8, i64 70, !11, i64 72}
!21 = !{!"int", !9, i64 0}
!22 = !{!20, !11, i64 32}
!23 = !{!20, !11, i64 40}
!24 = !{!20, !21, i64 48}
!25 = !{!6, !11, i64 48}
!26 = !{!20, !11, i64 56}
!27 = !{!6, !8, i64 60}
!28 = !{!20, !8, i64 68}
!29 = !{!6, !11, i64 72}
!30 = !{!20, !11, i64 72}
!31 = !{!6, !11, i64 16}
!32 = !{!6, !11, i64 24}
!33 = !{!6, !11, i64 8}


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