	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ccm_encrypt
_ccm_encrypt:                           ## @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	%r8, -88(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r13
	movl	%edx, %r14d
	movl	%esi, %r12d
	movl	%esi, -80(%rbp)                 ## 4-byte Spill
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%r8), %r15
	movq	(%rdi), %rsi
	leaq	-60(%rbp), %rdi
	movl	$8, %edx
	callq	_memcpy
	leaq	-56(%rbp), %rdi
	movl	16(%rbx), %esi
	callq	_br_enc64be
	movl	16(%rbx), %esi
	leal	1(%rsi), %eax
	movl	%eax, 16(%rbx)
	leaq	-73(%rbp), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_br_enc64be
	movb	%r12b, -65(%rbp)
	leaq	-64(%rbp), %rdi
	movl	%r14d, %r14d
	movq	%r14, %rsi
	callq	_br_enc16be
	leaq	-62(%rbp), %rdi
	movq	%r15, %rsi
	callq	_br_enc16be
	leaq	12(%rbx), %rsi
	leaq	-92(%rbp), %r12
	movq	%r12, %rdi
	callq	_br_ccm_init
	movl	8(%rbx), %r9d
	movq	%r12, %rdi
	leaq	-60(%rbp), %rsi
	movl	$12, %edx
	movl	$13, %ecx
	movq	%r15, %r8
	callq	_br_ccm_reset
	movq	%r12, %rdi
	leaq	-73(%rbp), %rsi
	movl	$13, %edx
	callq	_br_ccm_aad_inject
	movq	%r12, %rdi
	callq	_br_ccm_flip
	movq	%r12, %rdi
	movl	$1, %esi
	movq	%r13, %rdx
	movq	%r15, %rcx
	callq	_br_ccm_run
	leaq	(%r15,%r13), %rsi
	movq	%r12, %rdi
	callq	_br_ccm_get_tag
	movslq	8(%rbx), %rbx
	leaq	(%rbx,%r15), %r12
	addq	$8, %r12
	leaq	-8(%r13), %rdi
	leaq	-56(%rbp), %rsi
	movl	$8, %edx
	callq	_memcpy
	movl	-80(%rbp), %eax                 ## 4-byte Reload
	movb	%al, -13(%r13)
	leaq	-12(%r13), %rdi
	movq	%r14, %rsi
	callq	_br_enc16be
	leaq	-10(%r13), %rdi
	movq	%r12, %rsi
	callq	_br_enc16be
	leaq	(%rbx,%r15), %rax
	addq	$13, %rax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	addq	$-13, %r13
	movq	%r13, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ccm_encrypt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ccm_encrypt
_ccm_encrypt:                           ; @ccm_encrypt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x20, x4
	mov	x19, x3
	mov	x25, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	ldr	x23, [x4]
	ldr	x1, [x0]
	add	x24, sp, #28
	add	x0, sp, #28
	mov	w2, #8
	bl	_memcpy
	add	x24, x24, #4
	ldr	w1, [x22, #16]
	mov	x0, x24
	bl	_br_enc64be
	ldr	w1, [x22, #16]
	add	w8, w1, #1
	str	w8, [x22, #16]
	add	x26, sp, #15
	add	x0, sp, #15
	bl	_br_enc64be
	strb	w21, [sp, #23]
	add	x0, x26, #9
	mov	w25, w25
	mov	x1, x25
	bl	_br_enc16be
	add	x0, x26, #11
	mov	x1, x23
	bl	_br_enc16be
	add	x1, x22, #12
	add	x0, sp, #8
	bl	_br_ccm_init
	ldr	w5, [x22, #8]
	add	x0, sp, #8
	add	x1, sp, #28
	mov	w2, #12
	mov	w3, #13
	mov	x4, x23
	bl	_br_ccm_reset
	add	x0, sp, #8
	add	x1, sp, #15
	mov	w2, #13
	bl	_br_ccm_aad_inject
	add	x0, sp, #8
	bl	_br_ccm_flip
	add	x0, sp, #8
	mov	w1, #1
	mov	x2, x19
	mov	x3, x23
	bl	_br_ccm_run
	add	x1, x19, x23
	add	x0, sp, #8
	bl	_br_ccm_get_tag
	ldrsw	x8, [x22, #8]
	add	x23, x8, x23
	add	x22, x23, #8
	sub	x0, x19, #8
	mov	x1, x24
	mov	w2, #8
	bl	_memcpy
	strb	w21, [x19, #-13]!
	add	x0, x19, #1
	mov	x1, x25
	bl	_br_enc16be
	add	x0, x19, #3
	mov	x1, x22
	bl	_br_enc16be
	add	x8, x23, #13
	str	x8, [x20]
	ldr	x8, [sp, #40]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ccm_encrypt
.subsections_via_symbols
