; LLVM IR from ARMmbed/mbed-crypto :: library (psa_crypto)

; 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.aead_operation_t = type { ptr, ptr, %union.anon.3, i32, i8, i8 }
%union.anon.3 = type { %struct.mbedtls_gcm_context }
%struct.mbedtls_gcm_context = type { %struct.mbedtls_cipher_context_t, [16 x i64], [16 x i64], i64, i64, [16 x i8], [16 x i8], [16 x i8], i32 }
%struct.mbedtls_cipher_context_t = type { ptr, i32, i32, ptr, ptr, [16 x i8], i64, [16 x i8], i64, ptr, ptr }

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

; Function Attrs: nounwind uwtable
declare hidden i32 @mbedtls_to_psa_error(i32 noundef) #2

; Function Attrs: nounwind uwtable
define dso_local i32 @psa_aead_encrypt(i16 noundef zeroext %0, i32 noundef %1, ptr noundef %2, i64 noundef %3, ptr noundef %4, i64 noundef %5, ptr noundef %6, i64 noundef %7, ptr noundef %8, i64 noundef %9, ptr noundef %10) #2 {
  %12 = alloca i32, align 4
  %13 = alloca i16, align 2
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca i64, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i64, align 8
  %19 = alloca ptr, align 8
  %20 = alloca i64, align 8
  %21 = alloca ptr, align 8
  %22 = alloca i64, align 8
  %23 = alloca ptr, align 8
  %24 = alloca i32, align 4
  %25 = alloca %struct.aead_operation_t, align 8
  %26 = alloca ptr, align 8
  %27 = alloca i32, align 4
  store i16 %0, ptr %13, align 2, !tbaa !5
  store i32 %1, ptr %14, align 4, !tbaa !9
  store ptr %2, ptr %15, align 8, !tbaa !11
  store i64 %3, ptr %16, align 8, !tbaa !13
  store ptr %4, ptr %17, align 8, !tbaa !11
  store i64 %5, ptr %18, align 8, !tbaa !13
  store ptr %6, ptr %19, align 8, !tbaa !11
  store i64 %7, ptr %20, align 8, !tbaa !13
  store ptr %8, ptr %21, align 8, !tbaa !11
  store i64 %9, ptr %22, align 8, !tbaa !13
  store ptr %10, ptr %23, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #4
  call void @llvm.lifetime.start.p0(i64 448, ptr %25) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #4
  %28 = load ptr, ptr %23, align 8, !tbaa !11
  store i64 0, ptr %28, align 8, !tbaa !13
  %29 = load i16, ptr %13, align 2, !tbaa !5
  %30 = load i32, ptr %14, align 4, !tbaa !9
  %31 = call i32 @psa_aead_setup(ptr noundef %25, i16 noundef zeroext %29, i32 noundef 256, i32 noundef %30)
  store i32 %31, ptr %24, align 4, !tbaa !9
  %32 = load i32, ptr %24, align 4, !tbaa !9
  %33 = icmp ne i32 %32, 0
  br i1 %33, label %34, label %36

34:                                               ; preds = %11
  %35 = load i32, ptr %24, align 4, !tbaa !9
  store i32 %35, ptr %12, align 4
  store i32 1, ptr %27, align 4
  br label %135

36:                                               ; preds = %11
  %37 = load i64, ptr %22, align 8, !tbaa !13
  %38 = load i64, ptr %20, align 8, !tbaa !13
  %39 = getelementptr inbounds %struct.aead_operation_t, ptr %25, i32 0, i32 5
  %40 = load i8, ptr %39, align 1, !tbaa !15
  %41 = zext i8 %40 to i64
  %42 = add i64 %38, %41
  %43 = icmp ult i64 %37, %42
  br i1 %43, label %44, label %45

44:                                               ; preds = %36
  store i32 -138, ptr %24, align 4, !tbaa !9
  br label %123

45:                                               ; preds = %36
  %46 = load ptr, ptr %21, align 8, !tbaa !11
  %47 = load i64, ptr %20, align 8, !tbaa !13
  %48 = getelementptr inbounds i8, ptr %46, i64 %47
  store ptr %48, ptr %26, align 8, !tbaa !11
  %49 = getelementptr inbounds %struct.aead_operation_t, ptr %25, i32 0, i32 3
  %50 = load i32, ptr %49, align 8, !tbaa !17
  %51 = icmp eq i32 %50, 104861698
  br i1 %51, label %52, label %67

52:                                               ; preds = %45
  %53 = getelementptr inbounds %struct.aead_operation_t, ptr %25, i32 0, i32 2
  %54 = load i64, ptr %20, align 8, !tbaa !13
  %55 = load ptr, ptr %15, align 8, !tbaa !11
  %56 = load i64, ptr %16, align 8, !tbaa !13
  %57 = load ptr, ptr %17, align 8, !tbaa !11
  %58 = load i64, ptr %18, align 8, !tbaa !13
  %59 = load ptr, ptr %19, align 8, !tbaa !11
  %60 = load ptr, ptr %21, align 8, !tbaa !11
  %61 = getelementptr inbounds %struct.aead_operation_t, ptr %25, i32 0, i32 5
  %62 = load i8, ptr %61, align 1, !tbaa !15
  %63 = zext i8 %62 to i64
  %64 = load ptr, ptr %26, align 8, !tbaa !11
  %65 = call i32 @mbedtls_gcm_crypt_and_tag(ptr noundef %53, i32 noundef 1, i64 noundef %54, ptr noundef %55, i64 noundef %56, ptr noundef %57, i64 noundef %58, ptr noundef %59, ptr noundef %60, i64 noundef %63, ptr noundef %64)
  %66 = call i32 @mbedtls_to_psa_error(i32 noundef %65)
  store i32 %66, ptr %24, align 4, !tbaa !9
  br label %113

67:                                               ; preds = %45
  %68 = getelementptr inbounds %struct.aead_operation_t, ptr %25, i32 0, i32 3
  %69 = load i32, ptr %68, align 8, !tbaa !17
  %70 = icmp eq i32 %69, 104861697
  br i1 %70, label %71, label %86

71:                                               ; preds = %67
  %72 = getelementptr inbounds %struct.aead_operation_t, ptr %25, i32 0, i32 2
  %73 = load i64, ptr %20, align 8, !tbaa !13
  %74 = load ptr, ptr %15, align 8, !tbaa !11
  %75 = load i64, ptr %16, align 8, !tbaa !13
  %76 = load ptr, ptr %17, align 8, !tbaa !11
  %77 = load i64, ptr %18, align 8, !tbaa !13
  %78 = load ptr, ptr %19, align 8, !tbaa !11
  %79 = load ptr, ptr %21, align 8, !tbaa !11
  %80 = load ptr, ptr %26, align 8, !tbaa !11
  %81 = getelementptr inbounds %struct.aead_operation_t, ptr %25, i32 0, i32 5
  %82 = load i8, ptr %81, align 1, !tbaa !15
  %83 = zext i8 %82 to i64
  %84 = call i32 @mbedtls_ccm_encrypt_and_tag(ptr noundef %72, i64 noundef %73, ptr noundef %74, i64 noundef %75, ptr noundef %76, i64 noundef %77, ptr noundef %78, ptr noundef %79, ptr noundef %80, i64 noundef %83)
  %85 = call i32 @mbedtls_to_psa_error(i32 noundef %84)
  store i32 %85, ptr %24, align 4, !tbaa !9
  br label %112

86:                                               ; preds = %67
  %87 = getelementptr inbounds %struct.aead_operation_t, ptr %25, i32 0, i32 3
  %88 = load i32, ptr %87, align 8, !tbaa !17
  %89 = icmp eq i32 %88, 100667397
  br i1 %89, label %90, label %110

90:                                               ; preds = %86
  %91 = load i64, ptr %16, align 8, !tbaa !13
  %92 = icmp ne i64 %91, 12
  br i1 %92, label %98, label %93

93:                                               ; preds = %90
  %94 = getelementptr inbounds %struct.aead_operation_t, ptr %25, i32 0, i32 5
  %95 = load i8, ptr %94, align 1, !tbaa !15
  %96 = zext i8 %95 to i32
  %97 = icmp ne i32 %96, 16
  br i1 %97, label %98, label %99

98:                                               ; preds = %93, %90
  store i32 -134, ptr %24, align 4, !tbaa !9
  br label %123

99:                                               ; preds = %93
  %100 = getelementptr inbounds %struct.aead_operation_t, ptr %25, i32 0, i32 2
  %101 = load i64, ptr %20, align 8, !tbaa !13
  %102 = load ptr, ptr %15, align 8, !tbaa !11
  %103 = load ptr, ptr %17, align 8, !tbaa !11
  %104 = load i64, ptr %18, align 8, !tbaa !13
  %105 = load ptr, ptr %19, align 8, !tbaa !11
  %106 = load ptr, ptr %21, align 8, !tbaa !11
  %107 = load ptr, ptr %26, align 8, !tbaa !11
  %108 = call i32 @mbedtls_chachapoly_encrypt_and_tag(ptr noundef %100, i64 noundef %101, ptr noundef %102, ptr noundef %103, i64 noundef %104, ptr noundef %105, ptr noundef %106, ptr noundef %107)
  %109 = call i32 @mbedtls_to_psa_error(i32 noundef %108)
  store i32 %109, ptr %24, align 4, !tbaa !9
  br label %111

110:                                              ; preds = %86
  store i32 -134, ptr %12, align 4
  store i32 1, ptr %27, align 4
  br label %135

111:                                              ; preds = %99
  br label %112

112:                                              ; preds = %111, %71
  br label %113

113:                                              ; preds = %112, %52
  %114 = load i32, ptr %24, align 4, !tbaa !9
  %115 = icmp ne i32 %114, 0
  br i1 %115, label %116, label %122

116:                                              ; preds = %113
  %117 = load i64, ptr %22, align 8, !tbaa !13
  %118 = icmp ne i64 %117, 0
  br i1 %118, label %119, label %122

119:                                              ; preds = %116
  %120 = load ptr, ptr %21, align 8, !tbaa !11
  %121 = load i64, ptr %22, align 8, !tbaa !13
  call void @llvm.memset.p0.i64(ptr align 1 %120, i8 0, i64 %121, i1 false)
  br label %122

122:                                              ; preds = %119, %116, %113
  br label %123

123:                                              ; preds = %122, %98, %44
  call void @psa_aead_abort_internal(ptr noundef %25)
  %124 = load i32, ptr %24, align 4, !tbaa !9
  %125 = icmp eq i32 %124, 0
  br i1 %125, label %126, label %133

126:                                              ; preds = %123
  %127 = load i64, ptr %20, align 8, !tbaa !13
  %128 = getelementptr inbounds %struct.aead_operation_t, ptr %25, i32 0, i32 5
  %129 = load i8, ptr %128, align 1, !tbaa !15
  %130 = zext i8 %129 to i64
  %131 = add i64 %127, %130
  %132 = load ptr, ptr %23, align 8, !tbaa !11
  store i64 %131, ptr %132, align 8, !tbaa !13
  br label %133

133:                                              ; preds = %126, %123
  %134 = load i32, ptr %24, align 4, !tbaa !9
  store i32 %134, ptr %12, align 4
  store i32 1, ptr %27, align 4
  br label %135

135:                                              ; preds = %133, %110, %34
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 448, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  %136 = load i32, ptr %12, align 4
  ret i32 %136
}

; Function Attrs: nounwind uwtable
declare hidden i32 @psa_aead_setup(ptr noundef, i16 noundef zeroext, i32 noundef, i32 noundef) #2

declare i32 @mbedtls_gcm_crypt_and_tag(ptr noundef, i32 noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef) #3

declare i32 @mbedtls_ccm_encrypt_and_tag(ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef) #3

declare i32 @mbedtls_chachapoly_encrypt_and_tag(ptr noundef, i64 noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
declare hidden void @psa_aead_abort_internal(ptr noundef) #2

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

!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 = !{!"short", !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, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!16, !7, i64 445}
!16 = !{!"", !12, i64 0, !12, i64 8, !7, i64 16, !10, i64 440, !7, i64 444, !7, i64 445}
!17 = !{!16, !10, i64 440}


; 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.aead_operation_t = type { ptr, ptr, %union.anon.3, i32, i8, i8 }
%union.anon.3 = type { %struct.mbedtls_gcm_context }
%struct.mbedtls_gcm_context = type { %struct.mbedtls_cipher_context_t, [16 x i64], [16 x i64], i64, i64, [16 x i8], [16 x i8], [16 x i8], i32 }
%struct.mbedtls_cipher_context_t = type { ptr, i32, i32, ptr, ptr, [16 x i8], i64, [16 x i8], i64, ptr, ptr }

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

; Function Attrs: nounwind uwtable
declare hidden i32 @mbedtls_to_psa_error(i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local i32 @psa_aead_encrypt(i16 noundef zeroext %0, i32 noundef %1, ptr noundef %2, i64 noundef %3, ptr noundef %4, i64 noundef %5, ptr noundef %6, i64 noundef %7, ptr noundef %8, i64 noundef %9, ptr nocapture noundef writeonly %10) local_unnamed_addr #2 {
  %12 = alloca %struct.aead_operation_t, align 8
  call void @llvm.lifetime.start.p0(i64 448, ptr nonnull %12) #4
  store i64 0, ptr %10, align 8, !tbaa !5
  %13 = call i32 @psa_aead_setup(ptr noundef nonnull %12, i16 noundef zeroext %0, i32 noundef 256, i32 noundef %1)
  %.not = icmp eq i32 %13, 0
  br i1 %.not, label %14, label %47

14:                                               ; preds = %11
  %15 = getelementptr inbounds i8, ptr %12, i64 445
  %16 = load i8, ptr %15, align 1
  %17 = zext i8 %16 to i64
  %18 = add i64 %17, %7
  %19 = icmp ugt i64 %18, %9
  br i1 %19, label %.thread, label %20

20:                                               ; preds = %14
  %21 = getelementptr inbounds i8, ptr %8, i64 %7
  %22 = getelementptr inbounds i8, ptr %12, i64 440
  %23 = load i32, ptr %22, align 8, !tbaa !9
  switch i32 %23, label %47 [
    i32 104861698, label %24
    i32 104861697, label %27
    i32 100667397, label %30
  ]

24:                                               ; preds = %20
  %25 = getelementptr inbounds i8, ptr %12, i64 16
  %26 = call i32 @mbedtls_gcm_crypt_and_tag(ptr noundef nonnull %25, i32 noundef 1, i64 noundef %7, ptr noundef %2, i64 noundef %3, ptr noundef %4, i64 noundef %5, ptr noundef %6, ptr noundef %8, i64 noundef %17, ptr noundef %21) #4
  br label %36

27:                                               ; preds = %20
  %28 = getelementptr inbounds i8, ptr %12, i64 16
  %29 = call i32 @mbedtls_ccm_encrypt_and_tag(ptr noundef nonnull %28, i64 noundef %7, ptr noundef %2, i64 noundef %3, ptr noundef %4, i64 noundef %5, ptr noundef %6, ptr noundef %8, ptr noundef %21, i64 noundef %17) #4
  br label %36

30:                                               ; preds = %20
  %31 = icmp ne i64 %3, 12
  %32 = icmp ne i8 %16, 16
  %or.cond = or i1 %31, %32
  br i1 %or.cond, label %.thread, label %33

33:                                               ; preds = %30
  %34 = getelementptr inbounds i8, ptr %12, i64 16
  %35 = call i32 @mbedtls_chachapoly_encrypt_and_tag(ptr noundef nonnull %34, i64 noundef %7, ptr noundef %2, ptr noundef %4, i64 noundef %5, ptr noundef %6, ptr noundef %8, ptr noundef %21) #4
  br label %36

36:                                               ; preds = %27, %33, %24
  %.sink = phi i32 [ %29, %27 ], [ %35, %33 ], [ %26, %24 ]
  %37 = call i32 @mbedtls_to_psa_error(i32 noundef %.sink)
  %38 = icmp ne i32 %37, 0
  %39 = icmp ne i64 %9, 0
  %or.cond5 = and i1 %39, %38
  br i1 %or.cond5, label %40, label %41

40:                                               ; preds = %36
  call void @llvm.memset.p0.i64(ptr align 1 %8, i8 0, i64 %9, i1 false)
  br label %.thread

.thread:                                          ; preds = %40, %14, %30
  %.1.ph = phi i32 [ -134, %30 ], [ -138, %14 ], [ %37, %40 ]
  call void @psa_aead_abort_internal(ptr noundef nonnull %12)
  br label %47

41:                                               ; preds = %36
  call void @psa_aead_abort_internal(ptr noundef nonnull %12)
  %42 = icmp eq i32 %37, 0
  br i1 %42, label %43, label %47

43:                                               ; preds = %41
  %44 = load i8, ptr %15, align 1, !tbaa !13
  %45 = zext i8 %44 to i64
  %46 = add i64 %45, %7
  store i64 %46, ptr %10, align 8, !tbaa !5
  br label %47

47:                                               ; preds = %.thread, %41, %43, %20, %11
  %.0 = phi i32 [ %13, %11 ], [ -134, %20 ], [ 0, %43 ], [ %37, %41 ], [ %.1.ph, %.thread ]
  call void @llvm.lifetime.end.p0(i64 448, ptr nonnull %12) #4
  ret i32 %.0
}

; Function Attrs: nounwind uwtable
declare hidden i32 @psa_aead_setup(ptr noundef, i16 noundef zeroext, i32 noundef, i32 noundef) local_unnamed_addr #2

declare i32 @mbedtls_gcm_crypt_and_tag(ptr noundef, i32 noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #3

declare i32 @mbedtls_ccm_encrypt_and_tag(ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #3

declare i32 @mbedtls_chachapoly_encrypt_and_tag(ptr noundef, i64 noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare hidden void @psa_aead_abort_internal(ptr noundef) local_unnamed_addr #2

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

!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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !12, i64 440}
!10 = !{!"", !11, i64 0, !11, i64 8, !7, i64 16, !12, i64 440, !7, i64 444, !7, i64 445}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!10, !7, i64 445}


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