	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AES_CBC_MAC_Final              ## -- Begin function AES_CBC_MAC_Final
	.p2align	4, 0x90
_AES_CBC_MAC_Final:                     ## @AES_CBC_MAC_Final
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_CCM_CBC_BLOCK_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r15, %rax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	cmpq	$0, (%r12)
	je	LBB0_2
## %bb.1:
	movq	8(%r12), %rsi
	movq	16(%r12), %rdx
	movq	%r12, %rdi
	callq	_xor_and_encrypt
	movl	(%r12), %eax
	addl	%eax, 40(%r12)
	movq	$0, (%r12)
	movq	8(%r12), %rdi
	movl	$8, %esi
	callq	_explicit_bzero
LBB0_2:
	leal	(,%r15,4), %r15d
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_bzero
	movl	32(%r12), %edx
	movl	$14, %eax
	subl	%edx, %eax
	movl	%eax, (%rbx)
	movl	36(%r12), %edi
	leaq	4(%rbx), %rsi
	callq	_bcopy
	movl	24(%r12), %esi
	movl	28(%r12), %edi
	movq	%rbx, %rdx
	movq	%rbx, %rcx
	callq	_rijndaelEncrypt
	movq	_AES_CBC_MAC_HASH_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_17
## %bb.3:
	movq	16(%r12), %rcx
	cmpq	$8, %rax
	jae	LBB0_5
## %bb.4:
	xorl	%edx, %edx
LBB0_14:
	movq	%rdx, %r8
	notq	%r8
	addq	%rax, %r8
	movq	%rax, %rdi
	andq	$3, %rdi
	je	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rbx,%rdx,4), %esi
	xorl	(%rcx,%rdx,4), %esi
	movl	%esi, (%r14,%rdx,4)
	incq	%rdx
	decq	%rdi
	jne	LBB0_15
LBB0_16:
	cmpq	$3, %r8
	jb	LBB0_17
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rbx,%rdx,4), %esi
	xorl	(%rcx,%rdx,4), %esi
	movl	%esi, (%r14,%rdx,4)
	movl	4(%rbx,%rdx,4), %esi
	xorl	4(%rcx,%rdx,4), %esi
	movl	%esi, 4(%r14,%rdx,4)
	movl	8(%rbx,%rdx,4), %esi
	xorl	8(%rcx,%rdx,4), %esi
	movl	%esi, 8(%r14,%rdx,4)
	movl	12(%rbx,%rdx,4), %esi
	xorl	12(%rcx,%rdx,4), %esi
	movl	%esi, 12(%r14,%rdx,4)
	addq	$4, %rdx
	cmpq	%rdx, %rax
	jne	LBB0_19
	jmp	LBB0_17
LBB0_5:
	movq	%r14, %rsi
	subq	%rcx, %rsi
	xorl	%edx, %edx
	cmpq	$32, %rsi
	jb	LBB0_14
## %bb.6:
	movq	%r14, %rsi
	subq	%rbx, %rsi
	cmpq	$32, %rsi
	jb	LBB0_14
## %bb.7:
	movq	%rax, %rdx
	andq	$-8, %rdx
	leaq	-8(%rdx), %rsi
	movq	%rsi, %r8
	shrq	$3, %r8
	incq	%r8
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.9:
	movq	%r8, %rdi
	andq	$-2, %rdi
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movups	(%rcx,%rsi,4), %xmm0
	movups	16(%rcx,%rsi,4), %xmm1
	xorps	(%rbx,%rsi,4), %xmm0
	xorps	16(%rbx,%rsi,4), %xmm1
	movups	%xmm0, (%r14,%rsi,4)
	movups	%xmm1, 16(%r14,%rsi,4)
	movups	32(%rcx,%rsi,4), %xmm0
	movups	48(%rcx,%rsi,4), %xmm1
	xorps	32(%rbx,%rsi,4), %xmm0
	xorps	48(%rbx,%rsi,4), %xmm1
	movups	%xmm0, 32(%r14,%rsi,4)
	movups	%xmm1, 48(%r14,%rsi,4)
	addq	$16, %rsi
	addq	$-2, %rdi
	jne	LBB0_10
## %bb.11:
	testb	$1, %r8b
	je	LBB0_13
LBB0_12:
	movups	(%rcx,%rsi,4), %xmm0
	movups	16(%rcx,%rsi,4), %xmm1
	xorps	(%rbx,%rsi,4), %xmm0
	xorps	16(%rbx,%rsi,4), %xmm1
	movups	%xmm0, (%r14,%rsi,4)
	movups	%xmm1, 16(%r14,%rsi,4)
LBB0_13:
	cmpq	%rdx, %rax
	jne	LBB0_14
LBB0_17:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_explicit_bzero
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_20
## %bb.18:
	leaq	-32(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	xorl	%esi, %esi
	testb	$1, %r8b
	jne	LBB0_12
	jmp	LBB0_13
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CCM_CBC_BLOCK_LEN,4,2          ## @CCM_CBC_BLOCK_LEN
	.comm	_AES_CBC_MAC_HASH_LEN,8,3       ## @AES_CBC_MAC_HASH_LEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AES_CBC_MAC_Final              ; -- Begin function AES_CBC_MAC_Final
	.p2align	2
_AES_CBC_MAC_Final:                     ; @AES_CBC_MAC_Final
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	sub	sp, sp, #16
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x8, _CCM_CBC_BLOCK_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CCM_CBC_BLOCK_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	lsl	x8, x21, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x19, x9, x8
	mov	sp, x19
	ldr	x8, [x1]
	cbz	x8, LBB0_2
; %bb.1:
	ldp	x1, x2, [x22, #8]
	mov	x0, x22
	bl	_xor_and_encrypt
	ldr	w8, [x22]
	ldr	w9, [x22, #40]
	add	w8, w9, w8
	str	w8, [x22, #40]
	str	xzr, [x22]
	ldr	x0, [x22, #8]
	mov	w1, #8
	bl	_explicit_bzero
LBB0_2:
	lsl	w21, w21, #2
	mov	x0, x19
	mov	x1, x21
	bl	_bzero
	mov	w8, #14
	ldp	w2, w0, [x22, #32]
	sub	w8, w8, w2
	mov	x1, x19
	str	w8, [x1], #4
	bl	_bcopy
	ldp	w1, w0, [x22, #24]
	mov	x2, x19
	mov	x3, x19
	bl	_rijndaelEncrypt
Lloh8:
	adrp	x8, _AES_CBC_MAC_HASH_LEN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AES_CBC_MAC_HASH_LEN@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x8]
	cbz	x9, LBB0_7
; %bb.3:
	ldr	x8, [x22, #16]
	cmp	x9, #16
	b.hs	LBB0_9
; %bb.4:
	mov	x10, #0
LBB0_5:
	sub	x9, x9, x10
	lsl	x12, x10, #2
	add	x10, x20, x12
	add	x11, x19, x12
	add	x8, x8, x12
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x8], #4
	ldr	w13, [x11], #4
	eor	w12, w13, w12
	str	w12, [x10], #4
	subs	x9, x9, #1
	b.ne	LBB0_6
LBB0_7:
	mov	x0, x19
	mov	x1, x21
	bl	_explicit_bzero
	ldur	x8, [x29, #-40]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.8:
	sub	sp, x29, #32
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_9:
	mov	x10, #0
	sub	x11, x20, x8
	cmp	x11, #64
	b.lo	LBB0_5
; %bb.10:
	sub	x11, x20, x19
	cmp	x11, #64
	b.lo	LBB0_5
; %bb.11:
	and	x10, x9, #0xfffffffffffffff0
	add	x11, x8, #32
	add	x12, x20, #32
	add	x13, x19, #32
	mov	x14, x10
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x11, #-32]
	ldp	q2, q3, [x11], #64
	ldp	q4, q5, [x13, #-32]
	ldp	q6, q7, [x13], #64
	eor.16b	v0, v4, v0
	eor.16b	v1, v5, v1
	eor.16b	v2, v6, v2
	eor.16b	v3, v7, v3
	stp	q0, q1, [x12, #-32]
	stp	q2, q3, [x12], #64
	subs	x14, x14, #16
	b.ne	LBB0_12
; %bb.13:
	cmp	x9, x10
	b.ne	LBB0_5
	b	LBB0_7
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_CCM_CBC_BLOCK_LEN,4,2          ; @CCM_CBC_BLOCK_LEN
	.comm	_AES_CBC_MAC_HASH_LEN,8,3       ; @AES_CBC_MAC_HASH_LEN
.subsections_via_symbols
