	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_aes_ccm_ae                     ## -- Begin function aes_ccm_ae
	.p2align	4, 0x90
_aes_ccm_ae:                            ## @aes_ccm_ae
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -96(%rbp)                  ## 8-byte Spill
	movq	%r8, -88(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r12
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_AES_BLOCK_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %r15
	movl	%r15d, %ebx
	shlq	$2, %rbx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	movl	$-1, %r13d
	cmpq	$30, 24(%rbp)
	ja	LBB0_4
## %bb.1:
	cmpq	%r12, %r15
	jb	LBB0_4
## %bb.2:
	movq	%r12, %rbx
	movq	%r14, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_aes_encrypt_init
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, %r12
	movq	16(%rbp), %r8
	movl	$2, %edx
	movq	%rax, %rdi
	movq	%rbx, %rsi
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	24(%rbp), %r9
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	pushq	%r15
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	pushq	%rbx
	callq	_aes_ccm_auth_start
	addq	$16, %rsp
	movq	%r12, %rdi
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	%rbx, %rdx
	movq	%r15, %rcx
	callq	_aes_ccm_auth
	movl	$2, %edi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	_aes_ccm_encr_start
	movl	$2, %esi
	movq	%r12, %rdi
	movq	%r13, %rdx
	movq	%rbx, %rcx
	movq	32(%rbp), %r8
	movq	%r14, %r9
	callq	_aes_ccm_encr
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	movq	%r14, %rcx
	movq	40(%rbp), %r8
	callq	_aes_ccm_encr_auth
	movq	%r12, %rdi
	callq	_aes_encrypt_deinit
	xorl	%r13d, %r13d
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	movl	%r13d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AES_BLOCK_SIZE,4,2             ## @AES_BLOCK_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_aes_ccm_ae                     ; -- Begin function aes_ccm_ae
	.p2align	2
_aes_ccm_ae:                            ; @aes_ccm_ae
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x25, x7
	mov	x26, x6
	mov	x20, x5
	mov	x21, x4
	mov	x19, x3
	mov	x23, x2
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _AES_BLOCK_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AES_BLOCK_SIZE@GOTPAGEOFF]
Lloh5:
	ldrsw	x12, [x8]
	and	x8, x12, #0xffffffff
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x13, x10, #0x7fffffff0
	sub	x22, x9, x13
	mov	sp, x22
	mov	x9, x8
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x24, x8, x13
	mov	sp, x24
	mov	w8, #-1
	cmp	x7, #30
	b.hi	LBB0_5
; %bb.1:
	cmp	x12, x19
	b.lo	LBB0_5
; %bb.2:
	bl	_aes_encrypt_init
	cbz	x0, LBB0_4
; %bb.3:
	mov	x27, x0
	ldp	x28, x8, [x29, #16]
	stur	x8, [x29, #-96]                 ; 8-byte Folded Spill
	mov	x1, x19
	mov	w2, #2
	mov	x3, x23
	mov	x4, x26
	mov	x5, x25
	mov	x6, x20
	mov	x7, x22
	bl	_aes_ccm_auth_start
	mov	x0, x27
	mov	x1, x21
	mov	x2, x20
	mov	x3, x22
	bl	_aes_ccm_auth
	mov	w0, #2
	mov	x1, x23
	mov	x2, x24
	bl	_aes_ccm_encr_start
	mov	x0, x27
	mov	w1, #2
	mov	x2, x21
	mov	x3, x20
	mov	x4, x28
	mov	x5, x24
	bl	_aes_ccm_encr
	mov	x0, x27
	mov	x1, x19
	mov	x2, x22
	mov	x3, x24
	ldur	x4, [x29, #-96]                 ; 8-byte Folded Reload
	bl	_aes_ccm_encr_auth
	mov	x0, x27
	bl	_aes_encrypt_deinit
	mov	w8, #0
	b	LBB0_5
LBB0_4:
	mov	w8, #-1
LBB0_5:
	ldur	x9, [x29, #-88]
Lloh10:
	adrp	x10, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x10, [x10, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x10, [x10]
	cmp	x10, x9
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x8
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_AES_BLOCK_SIZE,4,2             ; @AES_BLOCK_SIZE
.subsections_via_symbols
