; LLVM IR from niessner/Matterport :: code/gaps/pkgs/R3Shapes (R3MeshSearchTree)

; 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.R3MeshIntersection = type { i32, ptr, ptr, ptr, %class.R3Point, double }
%class.R3Point = type { [3 x double] }
%class.R3MeshSearchTree = type { ptr, ptr, i32, i32 }

; 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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNK6R3Mesh9FacePlaneEPK10R3MeshFace(ptr noundef nonnull align 8 dereferenceable(272), ptr noundef) #1 align 2

declare noundef nonnull align 8 dereferenceable(24) ptr @_ZN7R3PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN18R3MeshIntersectionC2Ev(ptr noundef nonnull align 8 dereferenceable(64)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK16R3MeshSearchTree16FindIntersectionERK5R3RayR18R3MeshIntersectiondRdPFiRK7R3PointRK8R3VectorP6R3MeshP10R3MeshFacePvESG_SF_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 8 dereferenceable(64) %2, double noundef %3, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef %5, ptr noundef %6, ptr noundef %7) #3 align 2 {
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca double, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca double, align 8
  %18 = alloca i32, align 4
  %19 = alloca %struct.R3MeshIntersection, align 8
  store ptr %0, ptr %9, align 8, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !5
  store ptr %2, ptr %11, align 8, !tbaa !5
  store double %3, ptr %12, align 8, !tbaa !9
  store ptr %4, ptr %13, align 8, !tbaa !5
  store ptr %5, ptr %14, align 8, !tbaa !5
  store ptr %6, ptr %15, align 8, !tbaa !5
  store ptr %7, ptr %16, align 8, !tbaa !5
  %20 = load ptr, ptr %9, align 8
  %21 = load ptr, ptr %14, align 8, !tbaa !5
  %22 = icmp ne ptr %21, null
  br i1 %22, label %23, label %37

23:                                               ; preds = %8
  %24 = load ptr, ptr %14, align 8, !tbaa !5
  %25 = load ptr, ptr %10, align 8, !tbaa !5
  %26 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK5R3Ray5StartEv(ptr noundef nonnull align 8 dereferenceable(48) %25)
  %27 = load ptr, ptr %10, align 8, !tbaa !5
  %28 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK5R3Ray6VectorEv(ptr noundef nonnull align 8 dereferenceable(48) %27)
  %29 = getelementptr inbounds %class.R3MeshSearchTree, ptr %20, i32 0, i32 0
  %30 = load ptr, ptr %29, align 8, !tbaa !11
  %31 = load ptr, ptr %16, align 8, !tbaa !5
  %32 = load ptr, ptr %15, align 8, !tbaa !5
  %33 = call noundef i32 %24(ptr noundef nonnull align 8 dereferenceable(24) %26, ptr noundef nonnull align 8 dereferenceable(24) %28, ptr noundef %30, ptr noundef %31, ptr noundef %32)
  %34 = icmp ne i32 %33, 0
  br i1 %34, label %36, label %35

35:                                               ; preds = %23
  br label %101

36:                                               ; preds = %23
  br label %37

37:                                               ; preds = %36, %8
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %38 = load ptr, ptr %10, align 8, !tbaa !5
  %39 = getelementptr inbounds %class.R3MeshSearchTree, ptr %20, i32 0, i32 0
  %40 = load ptr, ptr %39, align 8, !tbaa !11
  %41 = load ptr, ptr %16, align 8, !tbaa !5
  %42 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK6R3Mesh9FacePlaneEPK10R3MeshFace(ptr noundef nonnull align 8 dereferenceable(272) %40, ptr noundef %41)
  %43 = call noundef i32 @_Z12R3IntersectsRK5R3RayRK7R3PlaneP7R3PointPd(ptr noundef nonnull align 8 dereferenceable(48) %38, ptr noundef nonnull align 8 dereferenceable(32) %42, ptr noundef null, ptr noundef %17)
  %44 = icmp ne i32 %43, 0
  br i1 %44, label %46, label %45

45:                                               ; preds = %37
  store i32 1, ptr %18, align 4
  br label %99

46:                                               ; preds = %37
  %47 = load double, ptr %17, align 8, !tbaa !9
  %48 = load ptr, ptr %13, align 8, !tbaa !5
  %49 = load double, ptr %48, align 8, !tbaa !9
  %50 = fcmp oge double %47, %49
  br i1 %50, label %51, label %52

51:                                               ; preds = %46
  store i32 1, ptr %18, align 4
  br label %99

52:                                               ; preds = %46
  %53 = load double, ptr %17, align 8, !tbaa !9
  %54 = load double, ptr %12, align 8, !tbaa !9
  %55 = fcmp olt double %53, %54
  br i1 %55, label %56, label %57

56:                                               ; preds = %52
  store i32 1, ptr %18, align 4
  br label %99

57:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 64, ptr %19) #4
  call void @_ZN18R3MeshIntersectionC2Ev(ptr noundef nonnull align 8 dereferenceable(64) %19)
  %58 = getelementptr inbounds %class.R3MeshSearchTree, ptr %20, i32 0, i32 0
  %59 = load ptr, ptr %58, align 8, !tbaa !11
  %60 = load ptr, ptr %10, align 8, !tbaa !5
  %61 = load ptr, ptr %16, align 8, !tbaa !5
  %62 = load ptr, ptr %59, align 8, !tbaa !14
  %63 = getelementptr inbounds ptr, ptr %62, i64 47
  %64 = load ptr, ptr %63, align 8
  %65 = call noundef i32 %64(ptr noundef nonnull align 8 dereferenceable(272) %59, ptr noundef nonnull align 8 dereferenceable(48) %60, ptr noundef %61, ptr noundef %19)
  %66 = icmp ne i32 %65, 0
  br i1 %66, label %68, label %67

67:                                               ; preds = %57
  store i32 1, ptr %18, align 4
  br label %98

68:                                               ; preds = %57
  %69 = getelementptr inbounds %struct.R3MeshIntersection, ptr %19, i32 0, i32 5
  %70 = load double, ptr %69, align 8, !tbaa !16
  %71 = load ptr, ptr %13, align 8, !tbaa !5
  %72 = load double, ptr %71, align 8, !tbaa !9
  %73 = fcmp oge double %70, %72
  br i1 %73, label %74, label %75

74:                                               ; preds = %68
  store i32 1, ptr %18, align 4
  br label %98

75:                                               ; preds = %68
  %76 = getelementptr inbounds %struct.R3MeshIntersection, ptr %19, i32 0, i32 5
  %77 = load double, ptr %76, align 8, !tbaa !16
  %78 = load double, ptr %12, align 8, !tbaa !9
  %79 = fcmp olt double %77, %78
  br i1 %79, label %80, label %81

80:                                               ; preds = %75
  store i32 1, ptr %18, align 4
  br label %98

81:                                               ; preds = %75
  %82 = load ptr, ptr %11, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.R3MeshIntersection, ptr %82, i32 0, i32 0
  store i32 3, ptr %83, align 8, !tbaa !20
  %84 = load ptr, ptr %16, align 8, !tbaa !5
  %85 = load ptr, ptr %11, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.R3MeshIntersection, ptr %85, i32 0, i32 3
  store ptr %84, ptr %86, align 8, !tbaa !21
  %87 = getelementptr inbounds %struct.R3MeshIntersection, ptr %19, i32 0, i32 4
  %88 = load ptr, ptr %11, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.R3MeshIntersection, ptr %88, i32 0, i32 4
  %90 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN7R3PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(24) %89, ptr noundef nonnull align 8 dereferenceable(24) %87)
  %91 = getelementptr inbounds %struct.R3MeshIntersection, ptr %19, i32 0, i32 5
  %92 = load double, ptr %91, align 8, !tbaa !16
  %93 = load ptr, ptr %11, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.R3MeshIntersection, ptr %93, i32 0, i32 5
  store double %92, ptr %94, align 8, !tbaa !16
  %95 = getelementptr inbounds %struct.R3MeshIntersection, ptr %19, i32 0, i32 5
  %96 = load double, ptr %95, align 8, !tbaa !16
  %97 = load ptr, ptr %13, align 8, !tbaa !5
  store double %96, ptr %97, align 8, !tbaa !9
  store i32 0, ptr %18, align 4
  br label %98

98:                                               ; preds = %81, %80, %74, %67
  call void @llvm.lifetime.end.p0(i64 64, ptr %19) #4
  br label %99

99:                                               ; preds = %98, %56, %51, %45
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  %100 = load i32, ptr %18, align 4
  switch i32 %100, label %102 [
    i32 0, label %101
    i32 1, label %101
  ]

101:                                              ; preds = %99, %99, %35
  ret void

102:                                              ; preds = %99
  unreachable
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNK5R3Ray5StartEv(ptr noundef nonnull align 8 dereferenceable(48)) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNK5R3Ray6VectorEv(ptr noundef nonnull align 8 dereferenceable(48)) #1 align 2

declare noundef i32 @_Z12R3IntersectsRK5R3RayRK7R3PlaneP7R3PointPd(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint mustprogress 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 = { "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 = { mustprogress 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 #4 = { 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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTS16R3MeshSearchTree", !6, i64 0, !6, i64 8, !13, i64 16, !13, i64 20}
!13 = !{!"int", !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"vtable pointer", !8, i64 0}
!16 = !{!17, !10, i64 56}
!17 = !{!"_ZTS18R3MeshIntersection", !18, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !19, i64 32, !10, i64 56}
!18 = !{!"_ZTS10R3MeshType", !7, i64 0}
!19 = !{!"_ZTS7R3Point", !7, i64 0}
!20 = !{!17, !18, i64 0}
!21 = !{!17, !6, i64 24}


; 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.R3MeshIntersection = type { i32, ptr, ptr, ptr, %class.R3Point, double }
%class.R3Point = type { [3 x double] }

; 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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNK6R3Mesh9FacePlaneEPK10R3MeshFace(ptr noundef nonnull align 8 dereferenceable(272), ptr noundef) local_unnamed_addr #1 align 2

declare noundef nonnull align 8 dereferenceable(24) ptr @_ZN7R3PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN18R3MeshIntersectionC2Ev(ptr noundef nonnull align 8 dereferenceable(64)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK16R3MeshSearchTree16FindIntersectionERK5R3RayR18R3MeshIntersectiondRdPFiRK7R3PointRK8R3VectorP6R3MeshP10R3MeshFacePvESG_SF_(ptr nocapture noundef nonnull readonly align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 8 dereferenceable(64) %2, double noundef %3, ptr nocapture noundef nonnull align 8 dereferenceable(8) %4, ptr noundef readonly %5, ptr noundef %6, ptr noundef %7) local_unnamed_addr #3 align 2 {
  %9 = alloca double, align 8
  %10 = alloca %struct.R3MeshIntersection, align 8
  %.not = icmp eq ptr %5, null
  br i1 %.not, label %16, label %11

11:                                               ; preds = %8
  %12 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK5R3Ray5StartEv(ptr noundef nonnull align 8 dereferenceable(48) %1)
  %13 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK5R3Ray6VectorEv(ptr noundef nonnull align 8 dereferenceable(48) %1)
  %14 = load ptr, ptr %0, align 8, !tbaa !5
  %15 = tail call noundef i32 %5(ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef %14, ptr noundef %7, ptr noundef %6)
  %.not24 = icmp eq i32 %15, 0
  br i1 %.not24, label %46, label %16

16:                                               ; preds = %11, %8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #4
  %17 = load ptr, ptr %0, align 8, !tbaa !5
  %18 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK6R3Mesh9FacePlaneEPK10R3MeshFace(ptr noundef nonnull align 8 dereferenceable(272) %17, ptr noundef %7)
  %19 = call noundef i32 @_Z12R3IntersectsRK5R3RayRK7R3PlaneP7R3PointPd(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef null, ptr noundef nonnull %9)
  %.not25 = icmp eq i32 %19, 0
  br i1 %.not25, label %45, label %20

20:                                               ; preds = %16
  %21 = load double, ptr %9, align 8, !tbaa !11
  %22 = load double, ptr %4, align 8, !tbaa !11
  %23 = fcmp oge double %21, %22
  %24 = fcmp olt double %21, %3
  %or.cond = or i1 %24, %23
  br i1 %or.cond, label %45, label %25

25:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %10) #4
  call void @_ZN18R3MeshIntersectionC2Ev(ptr noundef nonnull align 8 dereferenceable(64) %10)
  %26 = load ptr, ptr %0, align 8, !tbaa !5
  %27 = load ptr, ptr %26, align 8, !tbaa !13
  %28 = getelementptr inbounds i8, ptr %27, i64 376
  %29 = load ptr, ptr %28, align 8
  %30 = call noundef i32 %29(ptr noundef nonnull align 8 dereferenceable(272) %26, ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef %7, ptr noundef nonnull %10)
  %.not26 = icmp eq i32 %30, 0
  br i1 %.not26, label %44, label %31

31:                                               ; preds = %25
  %32 = getelementptr inbounds i8, ptr %10, i64 56
  %33 = load double, ptr %32, align 8, !tbaa !15
  %34 = load double, ptr %4, align 8, !tbaa !11
  %35 = fcmp oge double %33, %34
  %36 = fcmp olt double %33, %3
  %or.cond27 = or i1 %36, %35
  br i1 %or.cond27, label %44, label %37

37:                                               ; preds = %31
  store i32 3, ptr %2, align 8, !tbaa !19
  %38 = getelementptr inbounds i8, ptr %2, i64 24
  store ptr %7, ptr %38, align 8, !tbaa !20
  %39 = getelementptr inbounds i8, ptr %10, i64 32
  %40 = getelementptr inbounds i8, ptr %2, i64 32
  %41 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN7R3PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(24) %40, ptr noundef nonnull align 8 dereferenceable(24) %39)
  %42 = load double, ptr %32, align 8, !tbaa !15
  %43 = getelementptr inbounds i8, ptr %2, i64 56
  store double %42, ptr %43, align 8, !tbaa !15
  store double %42, ptr %4, align 8, !tbaa !11
  br label %44

44:                                               ; preds = %31, %25, %37
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %10) #4
  br label %45

45:                                               ; preds = %20, %16, %44
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  br label %46

46:                                               ; preds = %11, %45
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNK5R3Ray5StartEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNK5R3Ray6VectorEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #1 align 2

declare noundef i32 @_Z12R3IntersectsRK5R3RayRK7R3PlaneP7R3PointPd(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef) local_unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint mustprogress 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 = { "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 = { mustprogress 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 #4 = { 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, !7, i64 0}
!6 = !{!"_ZTS16R3MeshSearchTree", !7, i64 0, !7, i64 8, !10, i64 16, !10, i64 20}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !8, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"vtable pointer", !9, i64 0}
!15 = !{!16, !12, i64 56}
!16 = !{!"_ZTS18R3MeshIntersection", !17, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !18, i64 32, !12, i64 56}
!17 = !{!"_ZTS10R3MeshType", !8, i64 0}
!18 = !{!"_ZTS7R3Point", !8, i64 0}
!19 = !{!16, !17, i64 0}
!20 = !{!16, !7, i64 24}


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