	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cf_ccm_encrypt                 ## -- Begin function cf_ccm_encrypt
	.p2align	4, 0x90
_cf_ccm_encrypt:                        ## @cf_ccm_encrypt
	.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, -80(%rbp)                  ## 8-byte Spill
	movq	%r8, %r15
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	56(%rbp), %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_CF_MAXBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	leaq	-4(%rbx), %rax
	movl	%ebx, %ecx
	notl	%ecx
	andl	$1, %ecx
	xorl	%edi, %edi
	cmpq	$13, %rax
	cmovbl	%ecx, %edi
	callq	_assert
	leaq	-2(%r15), %rax
	xorl	%edi, %edi
	cmpq	$7, %rax
	setb	%dil
	callq	_assert
	movq	%r15, %rax
	notq	%rax
	addq	(%r13), %rax
	xorl	%edi, %edi
	cmpq	32(%rbp), %rax
	sete	%dil
	callq	_assert
	leaq	-52(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdx
	callq	_cf_cbcmac_stream_init
	movq	(%r13), %rdx
	subq	$8, %rsp
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	24(%rbp), %rcx
	movq	32(%rbp), %r8
	movq	%r15, %r9
	pushq	56(%rbp)
	movq	16(%rbp), %rbx
	pushq	%rbx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, %r14
	pushq	%rax
	callq	_add_block0
	addq	$32, %rsp
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rcx
	leaq	-52(%rbp), %rdi
	movq	%r12, %rsi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	callq	_add_aad
LBB0_2:
	leaq	-52(%rbp), %rbx
	movq	%rbx, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	_cf_cbcmac_stream_update
	movq	%rbx, %rdi
	callq	_zero_pad
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_cf_cbcmac_stream_nopad_final
	movq	_CF_MAXBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	24(%rbp), %rdx
	movq	32(%rbp), %rcx
	callq	_build_ctr_nonce
	leaq	-92(%rbp), %r14
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movq	%rbx, %rcx
	callq	_cf_ctr_init
	movq	(%r13), %rsi
	subq	%r15, %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_cf_ctr_custom_counter
	movq	(%r13), %rcx
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r12, %rdx
	callq	_cf_ctr_cipher
	movq	48(%rbp), %rdi
	movq	%r12, %rsi
	movq	56(%rbp), %rdx
	callq	_memcpy
	movq	%r14, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	40(%rbp), %rdx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	callq	_cf_ctr_cipher
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CF_MAXBLOCK,4,2                ## @CF_MAXBLOCK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cf_ccm_encrypt                 ; -- Begin function cf_ccm_encrypt
	.p2align	2
_cf_ccm_encrypt:                        ; @cf_ccm_encrypt
	.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, #48
	mov	x28, x7
	mov	x23, x6
	mov	x24, x4
	mov	x19, x3
	mov	x20, x2
	mov	x27, x1
	mov	x25, x0
	ldp	x8, x22, [x29, #32]
	stp	x5, x8, [x29, #-120]            ; 16-byte Folded Spill
	ldp	x21, x8, [x29, #16]
	stur	x8, [x29, #-104]                ; 8-byte Folded Spill
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, _CF_MAXBLOCK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CF_MAXBLOCK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	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	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x26, x9, x8
	mov	sp, x26
	sub	x8, x22, #4
	mvn	w9, w22
	and	w9, w9, #0x1
	cmp	x8, #13
	csel	w0, w9, wzr, lo
	bl	_assert
	sub	x8, x24, #2
	cmp	x8, #7
	cset	w0, lo
	bl	_assert
	ldr	x8, [x25]
	mvn	x9, x24
	add	x8, x8, x9
	cmp	x8, x21
	cset	w0, eq
	bl	_assert
	sub	x0, x29, #92
	mov	x1, x25
	mov	x2, x27
	bl	_cf_cbcmac_stream_init
	ldr	x2, [x25]
	str	x22, [sp, #-16]!
	sub	x0, x29, #92
	mov	x1, x26
	mov	x3, x28
	mov	x4, x21
	mov	x5, x24
	mov	x6, x19
	mov	x7, x23
	bl	_add_block0
	add	sp, sp, #16
	cbz	x23, LBB0_2
; %bb.1:
	sub	x0, x29, #92
	mov	x1, x26
	ldur	x2, [x29, #-120]                ; 8-byte Folded Reload
	mov	x3, x23
	bl	_add_aad
LBB0_2:
	sub	x0, x29, #92
	mov	x1, x20
	mov	x2, x19
	bl	_cf_cbcmac_stream_update
	sub	x0, x29, #92
	bl	_zero_pad
	sub	x0, x29, #92
	mov	x1, x26
	bl	_cf_cbcmac_stream_nopad_final
Lloh8:
	adrp	x8, _CF_MAXBLOCK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CF_MAXBLOCK@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh11:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh12:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x23, x9, x8
	mov	sp, x23
	mov	x0, x23
	mov	x1, x24
	mov	x2, x28
	mov	x3, x21
	bl	_build_ctr_nonce
	sub	x0, x29, #96
	mov	x1, x25
	mov	x2, x27
	mov	x3, x23
	bl	_cf_ctr_init
	ldr	x8, [x25]
	sub	x1, x8, x24
	sub	x0, x29, #96
	mov	x2, x24
	bl	_cf_ctr_custom_counter
	ldr	x3, [x25]
	sub	x0, x29, #96
	mov	x1, x26
	mov	x2, x26
	bl	_cf_ctr_cipher
	ldur	x0, [x29, #-112]                ; 8-byte Folded Reload
	mov	x1, x26
	mov	x2, x22
	bl	_memcpy
	sub	x0, x29, #96
	mov	x1, x20
	ldur	x2, [x29, #-104]                ; 8-byte Folded Reload
	mov	x3, x19
	bl	_cf_ctr_cipher
	ldur	x8, [x29, #-88]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	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_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_CF_MAXBLOCK,4,2                ; @CF_MAXBLOCK
.subsections_via_symbols
