; LLVM IR from Overload-Technologies/Overload :: Dependencies/assimp/contrib/unzip (ioapi)

; 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.zlib_filefunc64_32_def_s = type { %struct.zlib_filefunc64_def_s, ptr, ptr, ptr }
%struct.zlib_filefunc64_def_s = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.zlib_filefunc_def_s = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

; Function Attrs: nounwind uwtable
define dso_local void @fill_zlib_filefunc64_32_def_from_filefunc32(ptr noundef %0, ptr noundef %1) #0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %5 = load ptr, ptr %3, align 8, !tbaa !5
  %6 = getelementptr inbounds %struct.zlib_filefunc64_32_def_s, ptr %5, i32 0, i32 0
  %7 = getelementptr inbounds %struct.zlib_filefunc64_def_s, ptr %6, i32 0, i32 0
  store ptr null, ptr %7, align 8, !tbaa !9
  %8 = load ptr, ptr %4, align 8, !tbaa !5
  %9 = getelementptr inbounds %struct.zlib_filefunc_def_s, ptr %8, i32 0, i32 0
  %10 = load ptr, ptr %9, align 8, !tbaa !12
  %11 = load ptr, ptr %3, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.zlib_filefunc64_32_def_s, ptr %11, i32 0, i32 1
  store ptr %10, ptr %12, align 8, !tbaa !14
  %13 = load ptr, ptr %4, align 8, !tbaa !5
  %14 = getelementptr inbounds %struct.zlib_filefunc_def_s, ptr %13, i32 0, i32 1
  %15 = load ptr, ptr %14, align 8, !tbaa !15
  %16 = load ptr, ptr %3, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.zlib_filefunc64_32_def_s, ptr %16, i32 0, i32 0
  %18 = getelementptr inbounds %struct.zlib_filefunc64_def_s, ptr %17, i32 0, i32 1
  store ptr %15, ptr %18, align 8, !tbaa !16
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.zlib_filefunc_def_s, ptr %19, i32 0, i32 2
  %21 = load ptr, ptr %20, align 8, !tbaa !17
  %22 = load ptr, ptr %3, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.zlib_filefunc64_32_def_s, ptr %22, i32 0, i32 0
  %24 = getelementptr inbounds %struct.zlib_filefunc64_def_s, ptr %23, i32 0, i32 2
  store ptr %21, ptr %24, align 8, !tbaa !18
  %25 = load ptr, ptr %3, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.zlib_filefunc64_32_def_s, ptr %25, i32 0, i32 0
  %27 = getelementptr inbounds %struct.zlib_filefunc64_def_s, ptr %26, i32 0, i32 3
  store ptr null, ptr %27, align 8, !tbaa !19
  %28 = load ptr, ptr %3, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.zlib_filefunc64_32_def_s, ptr %28, i32 0, i32 0
  %30 = getelementptr inbounds %struct.zlib_filefunc64_def_s, ptr %29, i32 0, i32 4
  store ptr null, ptr %30, align 8, !tbaa !20
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.zlib_filefunc_def_s, ptr %31, i32 0, i32 5
  %33 = load ptr, ptr %32, align 8, !tbaa !21
  %34 = load ptr, ptr %3, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.zlib_filefunc64_32_def_s, ptr %34, i32 0, i32 0
  %36 = getelementptr inbounds %struct.zlib_filefunc64_def_s, ptr %35, i32 0, i32 5
  store ptr %33, ptr %36, align 8, !tbaa !22
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.zlib_filefunc_def_s, ptr %37, i32 0, i32 6
  %39 = load ptr, ptr %38, align 8, !tbaa !23
  %40 = load ptr, ptr %3, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.zlib_filefunc64_32_def_s, ptr %40, i32 0, i32 0
  %42 = getelementptr inbounds %struct.zlib_filefunc64_def_s, ptr %41, i32 0, i32 6
  store ptr %39, ptr %42, align 8, !tbaa !24
  %43 = load ptr, ptr %4, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.zlib_filefunc_def_s, ptr %43, i32 0, i32 7
  %45 = load ptr, ptr %44, align 8, !tbaa !25
  %46 = load ptr, ptr %3, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.zlib_filefunc64_32_def_s, ptr %46, i32 0, i32 0
  %48 = getelementptr inbounds %struct.zlib_filefunc64_def_s, ptr %47, i32 0, i32 7
  store ptr %45, ptr %48, align 8, !tbaa !26
  %49 = load ptr, ptr %4, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.zlib_filefunc_def_s, ptr %49, i32 0, i32 4
  %51 = load ptr, ptr %50, align 8, !tbaa !27
  %52 = load ptr, ptr %3, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.zlib_filefunc64_32_def_s, ptr %52, i32 0, i32 3
  store ptr %51, ptr %53, align 8, !tbaa !28
  %54 = load ptr, ptr %4, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.zlib_filefunc_def_s, ptr %54, i32 0, i32 3
  %56 = load ptr, ptr %55, align 8, !tbaa !29
  %57 = load ptr, ptr %3, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.zlib_filefunc64_32_def_s, ptr %57, i32 0, i32 2
  store ptr %56, ptr %58, align 8, !tbaa !30
  ret void
}

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"zlib_filefunc64_32_def_s", !11, i64 0, !6, i64 64, !6, i64 72, !6, i64 80}
!11 = !{!"zlib_filefunc64_def_s", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56}
!12 = !{!13, !6, i64 0}
!13 = !{!"zlib_filefunc_def_s", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56}
!14 = !{!10, !6, i64 64}
!15 = !{!13, !6, i64 8}
!16 = !{!10, !6, i64 8}
!17 = !{!13, !6, i64 16}
!18 = !{!10, !6, i64 16}
!19 = !{!10, !6, i64 24}
!20 = !{!10, !6, i64 32}
!21 = !{!13, !6, i64 40}
!22 = !{!10, !6, i64 40}
!23 = !{!13, !6, i64 48}
!24 = !{!10, !6, i64 48}
!25 = !{!13, !6, i64 56}
!26 = !{!10, !6, i64 56}
!27 = !{!13, !6, i64 32}
!28 = !{!10, !6, i64 80}
!29 = !{!13, !6, i64 24}
!30 = !{!10, !6, i64 72}


; 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 nofree norecurse nosync nounwind willreturn memory(argmem: readwrite) uwtable
define dso_local void @fill_zlib_filefunc64_32_def_from_filefunc32(ptr nocapture noundef writeonly %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
  store ptr null, ptr %0, align 8, !tbaa !5
  %3 = load ptr, ptr %1, align 8, !tbaa !11
  %4 = getelementptr inbounds i8, ptr %0, i64 64
  store ptr %3, ptr %4, align 8, !tbaa !13
  %5 = getelementptr inbounds i8, ptr %1, i64 8
  %6 = getelementptr inbounds i8, ptr %0, i64 8
  %7 = load <2 x ptr>, ptr %5, align 8, !tbaa !14
  store <2 x ptr> %7, ptr %6, align 8, !tbaa !14
  %8 = getelementptr inbounds i8, ptr %0, i64 24
  %9 = getelementptr inbounds i8, ptr %1, i64 40
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %8, i8 0, i64 16, i1 false)
  %10 = getelementptr inbounds i8, ptr %0, i64 40
  %11 = load <2 x ptr>, ptr %9, align 8, !tbaa !14
  store <2 x ptr> %11, ptr %10, align 8, !tbaa !14
  %12 = getelementptr inbounds i8, ptr %1, i64 56
  %13 = load ptr, ptr %12, align 8, !tbaa !15
  %14 = getelementptr inbounds i8, ptr %0, i64 56
  store ptr %13, ptr %14, align 8, !tbaa !16
  %15 = getelementptr inbounds i8, ptr %1, i64 24
  %16 = getelementptr inbounds i8, ptr %0, i64 72
  %17 = load <2 x ptr>, ptr %15, align 8, !tbaa !14
  store <2 x ptr> %17, ptr %16, align 8, !tbaa !14
  ret void
}

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

attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: readwrite) 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 nounwind willreturn memory(argmem: write) }

!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, !8, i64 0}
!6 = !{!"zlib_filefunc64_32_def_s", !7, i64 0, !8, i64 64, !8, i64 72, !8, i64 80}
!7 = !{!"zlib_filefunc64_def_s", !8, i64 0, !8, i64 8, !8, i64 16, !8, i64 24, !8, i64 32, !8, i64 40, !8, i64 48, !8, i64 56}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !8, i64 0}
!12 = !{!"zlib_filefunc_def_s", !8, i64 0, !8, i64 8, !8, i64 16, !8, i64 24, !8, i64 32, !8, i64 40, !8, i64 48, !8, i64 56}
!13 = !{!6, !8, i64 64}
!14 = !{!8, !8, i64 0}
!15 = !{!12, !8, i64 56}
!16 = !{!6, !8, i64 56}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InstCombinePass,MemCpyOptPass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,TailCallElimPass