; LLVM IR from yettabaa/cub3D :: bonus (sprites_init)

; 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.s_data = type { double, double, double, double, double, double, double, double, double, double, i32, double, double, ptr, %struct.s_sprites, %struct.s_minimap, %struct.s_door, %struct.s_textures, %struct.s_hook, %struct.s_map_result, %struct.s_rycast, %struct.s_mlx, ptr }
%struct.s_sprites = type { ptr, i32, i32, i32, i32, i32, i32 }
%struct.s_minimap = type { double, double, double, double, double }
%struct.s_door = type { ptr, i32, i32, i32 }
%struct.s_textures = type { i32, ptr, i32, i32, i32, ptr, i32, i32, i32, ptr, i32, i32, i32, ptr, i32, i32, i32, ptr, i32, i32, i32 }
%struct.s_hook = type { double, i32, double, double, double }
%struct.s_map_result = type { i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i8 }
%struct.s_rycast = type { double, double, double, double, double, double, double, double, double }
%struct.s_mlx = type { ptr, ptr, ptr, ptr, ptr, i32, i32, i32 }

@.str = external hidden unnamed_addr constant [36 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [28 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @get_text_sprites(ptr noundef %0) #0 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  store i32 0, ptr %3, align 4, !tbaa !9
  %8 = call noalias ptr @malloc(i64 noundef 40) #6
  %9 = load ptr, ptr %2, align 8, !tbaa !5
  %10 = getelementptr inbounds %struct.s_data, ptr %9, i32 0, i32 14
  %11 = getelementptr inbounds %struct.s_sprites, ptr %10, i32 0, i32 0
  store ptr %8, ptr %11, align 8, !tbaa !11
  %12 = load ptr, ptr %2, align 8, !tbaa !5
  %13 = getelementptr inbounds %struct.s_data, ptr %12, i32 0, i32 14
  %14 = getelementptr inbounds %struct.s_sprites, ptr %13, i32 0, i32 0
  %15 = load ptr, ptr %14, align 8, !tbaa !11
  %16 = icmp ne ptr %15, null
  br i1 %16, label %19, label %17

17:                                               ; preds = %1
  %18 = load ptr, ptr %2, align 8, !tbaa !5
  call void @my_exit(ptr noundef %18, ptr noundef @.str, i32 noundef 1)
  br label %19

19:                                               ; preds = %17, %1
  br label %20

20:                                               ; preds = %46, %19
  %21 = load i32, ptr %3, align 4, !tbaa !9
  %22 = icmp slt i32 %21, 5
  br i1 %22, label %23, label %65

23:                                               ; preds = %20
  %24 = load i32, ptr %3, align 4, !tbaa !9
  %25 = call ptr @ft_itoa(i32 noundef %24)
  store ptr %25, ptr %5, align 8, !tbaa !5
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = call ptr @ft_strjoin3(ptr noundef @.str.1, ptr noundef %26, ptr noundef @.str.2)
  store ptr %27, ptr %6, align 8, !tbaa !5
  %28 = load ptr, ptr %2, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.s_data, ptr %28, i32 0, i32 21
  %30 = getelementptr inbounds %struct.s_mlx, ptr %29, i32 0, i32 0
  %31 = load ptr, ptr %30, align 8, !tbaa !22
  %32 = load ptr, ptr %6, align 8, !tbaa !5
  %33 = load ptr, ptr %2, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.s_data, ptr %33, i32 0, i32 14
  %35 = getelementptr inbounds %struct.s_sprites, ptr %34, i32 0, i32 1
  %36 = load ptr, ptr %2, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.s_data, ptr %36, i32 0, i32 14
  %38 = getelementptr inbounds %struct.s_sprites, ptr %37, i32 0, i32 2
  %39 = call ptr @mlx_xpm_file_to_image(ptr noundef %31, ptr noundef %32, ptr noundef %35, ptr noundef %38)
  store ptr %39, ptr %7, align 8, !tbaa !5
  %40 = load ptr, ptr %5, align 8, !tbaa !5
  call void @free(ptr noundef %40) #5
  %41 = load ptr, ptr %6, align 8, !tbaa !5
  call void @free(ptr noundef %41) #5
  %42 = load ptr, ptr %7, align 8, !tbaa !5
  %43 = icmp ne ptr %42, null
  br i1 %43, label %46, label %44

44:                                               ; preds = %23
  %45 = load ptr, ptr %2, align 8, !tbaa !5
  call void @my_exit(ptr noundef %45, ptr noundef @.str.3, i32 noundef 1)
  br label %46

46:                                               ; preds = %44, %23
  %47 = load ptr, ptr %7, align 8, !tbaa !5
  %48 = load ptr, ptr %2, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.s_data, ptr %48, i32 0, i32 14
  %50 = getelementptr inbounds %struct.s_sprites, ptr %49, i32 0, i32 3
  %51 = call ptr @mlx_get_data_addr(ptr noundef %47, ptr noundef %4, ptr noundef %50, ptr noundef %4)
  %52 = load ptr, ptr %2, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.s_data, ptr %52, i32 0, i32 14
  %54 = getelementptr inbounds %struct.s_sprites, ptr %53, i32 0, i32 0
  %55 = load ptr, ptr %54, align 8, !tbaa !11
  %56 = load i32, ptr %3, align 4, !tbaa !9
  %57 = add nsw i32 %56, 1
  store i32 %57, ptr %3, align 4, !tbaa !9
  %58 = sext i32 %56 to i64
  %59 = getelementptr inbounds ptr, ptr %55, i64 %58
  store ptr %51, ptr %59, align 8, !tbaa !5
  %60 = load ptr, ptr %2, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.s_data, ptr %60, i32 0, i32 22
  %62 = load ptr, ptr %2, align 8, !tbaa !5
  %63 = load ptr, ptr %7, align 8, !tbaa !5
  %64 = call ptr @creat_node(ptr noundef %62, ptr noundef %63)
  call void @collect_node(ptr noundef %61, ptr noundef %64)
  br label %20, !llvm.loop !23

65:                                               ; preds = %20
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  ret void
}

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

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #2

declare void @my_exit(ptr noundef, ptr noundef, i32 noundef) #3

declare ptr @ft_itoa(i32 noundef) #3

declare ptr @ft_strjoin3(ptr noundef, ptr noundef, ptr noundef) #3

declare ptr @mlx_xpm_file_to_image(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

; Function Attrs: nounwind
declare void @free(ptr noundef) #4

declare ptr @mlx_get_data_addr(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

declare void @collect_node(ptr noundef, ptr noundef) #3

declare ptr @creat_node(ptr noundef, ptr noundef) #3

; 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 allocsize(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 = { "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 = { nounwind allocsize(0) }

!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, !6, i64 112}
!12 = !{!"s_data", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !13, i64 40, !13, i64 48, !13, i64 56, !13, i64 64, !13, i64 72, !10, i64 80, !13, i64 88, !13, i64 96, !6, i64 104, !14, i64 112, !15, i64 144, !16, i64 184, !17, i64 208, !18, i64 336, !19, i64 376, !20, i64 456, !21, i64 528, !6, i64 584}
!13 = !{!"double", !7, i64 0}
!14 = !{!"s_sprites", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28}
!15 = !{!"s_minimap", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32}
!16 = !{!"s_door", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16}
!17 = !{!"s_textures", !10, i64 0, !6, i64 8, !10, i64 16, !10, i64 20, !10, i64 24, !6, i64 32, !10, i64 40, !10, i64 44, !10, i64 48, !6, i64 56, !10, i64 64, !10, i64 68, !10, i64 72, !6, i64 80, !10, i64 88, !10, i64 92, !10, i64 96, !6, i64 104, !10, i64 112, !10, i64 116, !10, i64 120}
!18 = !{!"s_hook", !13, i64 0, !10, i64 8, !13, i64 16, !13, i64 24, !13, i64 32}
!19 = !{!"s_map_result", !10, i64 0, !10, i64 4, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68, !7, i64 72}
!20 = !{!"s_rycast", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !13, i64 40, !13, i64 48, !13, i64 56, !13, i64 64}
!21 = !{!"s_mlx", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !10, i64 40, !10, i64 44, !10, i64 48}
!22 = !{!12, !6, i64 528}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}


; 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 [36 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [28 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @get_text_sprites(ptr noundef %0) local_unnamed_addr #0 {
  %2 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  %3 = tail call noalias dereferenceable_or_null(40) ptr @malloc(i64 noundef 40) #6
  %4 = getelementptr inbounds i8, ptr %0, i64 112
  store ptr %3, ptr %4, align 8, !tbaa !5
  %.not = icmp eq ptr %3, null
  br i1 %.not, label %5, label %6

5:                                                ; preds = %1
  tail call void @my_exit(ptr noundef nonnull %0, ptr noundef nonnull @.str, i32 noundef 1) #5
  br label %6

6:                                                ; preds = %5, %1
  %7 = getelementptr inbounds i8, ptr %0, i64 528
  %8 = getelementptr inbounds i8, ptr %0, i64 120
  %9 = getelementptr inbounds i8, ptr %0, i64 124
  %10 = getelementptr inbounds i8, ptr %0, i64 128
  %11 = getelementptr inbounds i8, ptr %0, i64 584
  %12 = tail call ptr @ft_itoa(i32 noundef 0) #5
  %13 = tail call ptr @ft_strjoin3(ptr noundef nonnull @.str.1, ptr noundef %12, ptr noundef nonnull @.str.2) #5
  %14 = load ptr, ptr %7, align 8, !tbaa !20
  %15 = tail call ptr @mlx_xpm_file_to_image(ptr noundef %14, ptr noundef %13, ptr noundef nonnull %8, ptr noundef nonnull %9) #5
  tail call void @free(ptr noundef %12) #5
  tail call void @free(ptr noundef %13) #5
  %.not20 = icmp eq ptr %15, null
  br i1 %.not20, label %16, label %17

16:                                               ; preds = %6
  tail call void @my_exit(ptr noundef nonnull %0, ptr noundef nonnull @.str.3, i32 noundef 1) #5
  br label %17

17:                                               ; preds = %16, %6
  %18 = call ptr @mlx_get_data_addr(ptr noundef %15, ptr noundef nonnull %2, ptr noundef nonnull %10, ptr noundef nonnull %2) #5
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %18, ptr %19, align 8, !tbaa !21
  %20 = call ptr @creat_node(ptr noundef nonnull %0, ptr noundef %15) #5
  call void @collect_node(ptr noundef nonnull %11, ptr noundef %20) #5
  %21 = call ptr @ft_itoa(i32 noundef 1) #5
  %22 = call ptr @ft_strjoin3(ptr noundef nonnull @.str.1, ptr noundef %21, ptr noundef nonnull @.str.2) #5
  %23 = load ptr, ptr %7, align 8, !tbaa !20
  %24 = call ptr @mlx_xpm_file_to_image(ptr noundef %23, ptr noundef %22, ptr noundef nonnull %8, ptr noundef nonnull %9) #5
  call void @free(ptr noundef %21) #5
  call void @free(ptr noundef %22) #5
  %.not20.1 = icmp eq ptr %24, null
  br i1 %.not20.1, label %25, label %26

25:                                               ; preds = %17
  call void @my_exit(ptr noundef nonnull %0, ptr noundef nonnull @.str.3, i32 noundef 1) #5
  br label %26

26:                                               ; preds = %25, %17
  %27 = call ptr @mlx_get_data_addr(ptr noundef %24, ptr noundef nonnull %2, ptr noundef nonnull %10, ptr noundef nonnull %2) #5
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  %29 = getelementptr inbounds i8, ptr %28, i64 8
  store ptr %27, ptr %29, align 8, !tbaa !21
  %30 = call ptr @creat_node(ptr noundef nonnull %0, ptr noundef %24) #5
  call void @collect_node(ptr noundef nonnull %11, ptr noundef %30) #5
  %31 = call ptr @ft_itoa(i32 noundef 2) #5
  %32 = call ptr @ft_strjoin3(ptr noundef nonnull @.str.1, ptr noundef %31, ptr noundef nonnull @.str.2) #5
  %33 = load ptr, ptr %7, align 8, !tbaa !20
  %34 = call ptr @mlx_xpm_file_to_image(ptr noundef %33, ptr noundef %32, ptr noundef nonnull %8, ptr noundef nonnull %9) #5
  call void @free(ptr noundef %31) #5
  call void @free(ptr noundef %32) #5
  %.not20.2 = icmp eq ptr %34, null
  br i1 %.not20.2, label %35, label %36

35:                                               ; preds = %26
  call void @my_exit(ptr noundef nonnull %0, ptr noundef nonnull @.str.3, i32 noundef 1) #5
  br label %36

36:                                               ; preds = %35, %26
  %37 = call ptr @mlx_get_data_addr(ptr noundef %34, ptr noundef nonnull %2, ptr noundef nonnull %10, ptr noundef nonnull %2) #5
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  %39 = getelementptr inbounds i8, ptr %38, i64 16
  store ptr %37, ptr %39, align 8, !tbaa !21
  %40 = call ptr @creat_node(ptr noundef nonnull %0, ptr noundef %34) #5
  call void @collect_node(ptr noundef nonnull %11, ptr noundef %40) #5
  %41 = call ptr @ft_itoa(i32 noundef 3) #5
  %42 = call ptr @ft_strjoin3(ptr noundef nonnull @.str.1, ptr noundef %41, ptr noundef nonnull @.str.2) #5
  %43 = load ptr, ptr %7, align 8, !tbaa !20
  %44 = call ptr @mlx_xpm_file_to_image(ptr noundef %43, ptr noundef %42, ptr noundef nonnull %8, ptr noundef nonnull %9) #5
  call void @free(ptr noundef %41) #5
  call void @free(ptr noundef %42) #5
  %.not20.3 = icmp eq ptr %44, null
  br i1 %.not20.3, label %45, label %46

45:                                               ; preds = %36
  call void @my_exit(ptr noundef nonnull %0, ptr noundef nonnull @.str.3, i32 noundef 1) #5
  br label %46

46:                                               ; preds = %45, %36
  %47 = call ptr @mlx_get_data_addr(ptr noundef %44, ptr noundef nonnull %2, ptr noundef nonnull %10, ptr noundef nonnull %2) #5
  %48 = load ptr, ptr %4, align 8, !tbaa !5
  %49 = getelementptr inbounds i8, ptr %48, i64 24
  store ptr %47, ptr %49, align 8, !tbaa !21
  %50 = call ptr @creat_node(ptr noundef nonnull %0, ptr noundef %44) #5
  call void @collect_node(ptr noundef nonnull %11, ptr noundef %50) #5
  %51 = call ptr @ft_itoa(i32 noundef 4) #5
  %52 = call ptr @ft_strjoin3(ptr noundef nonnull @.str.1, ptr noundef %51, ptr noundef nonnull @.str.2) #5
  %53 = load ptr, ptr %7, align 8, !tbaa !20
  %54 = call ptr @mlx_xpm_file_to_image(ptr noundef %53, ptr noundef %52, ptr noundef nonnull %8, ptr noundef nonnull %9) #5
  call void @free(ptr noundef %51) #5
  call void @free(ptr noundef %52) #5
  %.not20.4 = icmp eq ptr %54, null
  br i1 %.not20.4, label %55, label %56

55:                                               ; preds = %46
  call void @my_exit(ptr noundef nonnull %0, ptr noundef nonnull @.str.3, i32 noundef 1) #5
  br label %56

56:                                               ; preds = %55, %46
  %57 = call ptr @mlx_get_data_addr(ptr noundef %54, ptr noundef nonnull %2, ptr noundef nonnull %10, ptr noundef nonnull %2) #5
  %58 = load ptr, ptr %4, align 8, !tbaa !5
  %59 = getelementptr inbounds i8, ptr %58, i64 32
  store ptr %57, ptr %59, align 8, !tbaa !21
  %60 = call ptr @creat_node(ptr noundef nonnull %0, ptr noundef %54) #5
  call void @collect_node(ptr noundef nonnull %11, ptr noundef %60) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  ret void
}

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

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #2

declare void @my_exit(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

declare ptr @ft_itoa(i32 noundef) local_unnamed_addr #3

declare ptr @ft_strjoin3(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare ptr @mlx_xpm_file_to_image(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #4

declare ptr @mlx_get_data_addr(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @collect_node(ptr noundef, ptr noundef) local_unnamed_addr #3

declare ptr @creat_node(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress 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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { "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 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { nounwind allocsize(0) }

!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 112}
!6 = !{!"s_data", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !10, i64 80, !7, i64 88, !7, i64 96, !11, i64 104, !12, i64 112, !13, i64 144, !14, i64 184, !15, i64 208, !16, i64 336, !17, i64 376, !18, i64 456, !19, i64 528, !11, i64 584}
!7 = !{!"double", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!"s_sprites", !11, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28}
!13 = !{!"s_minimap", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32}
!14 = !{!"s_door", !11, i64 0, !10, i64 8, !10, i64 12, !10, i64 16}
!15 = !{!"s_textures", !10, i64 0, !11, i64 8, !10, i64 16, !10, i64 20, !10, i64 24, !11, i64 32, !10, i64 40, !10, i64 44, !10, i64 48, !11, i64 56, !10, i64 64, !10, i64 68, !10, i64 72, !11, i64 80, !10, i64 88, !10, i64 92, !10, i64 96, !11, i64 104, !10, i64 112, !10, i64 116, !10, i64 120}
!16 = !{!"s_hook", !7, i64 0, !10, i64 8, !7, i64 16, !7, i64 24, !7, i64 32}
!17 = !{!"s_map_result", !10, i64 0, !10, i64 4, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68, !8, i64 72}
!18 = !{!"s_rycast", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64}
!19 = !{!"s_mlx", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !10, i64 40, !10, i64 44, !10, i64 48}
!20 = !{!6, !11, i64 528}
!21 = !{!11, !11, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,SROAPass,TailCallElimPass