	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aes_ccm_auth
_aes_ccm_auth:                          ## @aes_ccm_auth
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %rcx
	movq	%rsi, %rbx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	_AES_BLOCK_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rdx, %rax
	orq	%rsi, %rax
	shrq	$32, %rax
	je	LBB0_1
## %bb.2:
	movq	%rcx, %rax
	xorl	%edx, %edx
	divq	%rsi
	jmp	LBB0_3
LBB0_1:
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $edx killed $edx def $rdx
LBB0_3:
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	cmpq	%rcx, %rsi
	jbe	LBB0_4
LBB0_9:
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	testq	%rdx, %rdx
	je	LBB0_25
## %bb.10:
	cmpq	$8, %rdx
	jae	LBB0_12
## %bb.11:
	xorl	%eax, %eax
	jmp	LBB0_23
LBB0_4:
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	xorl	%edx, %edx
	divq	%rcx
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	leaq	(%rbx,%r14,4), %rbx
	cmpq	%rax, %r12
	jae	LBB0_9
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_xor_aes_block
	movq	_AES_BLOCK_SIZE@GOTPCREL(%rip), %r13
	movq	(%r13), %r14
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	%r15, %rdx
	callq	_aes_encrypt
	incq	%r12
	movq	(%r13), %rcx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
	jmp	LBB0_8
LBB0_25:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	leaq	(%rbx,%rdx,4), %rax
	cmpq	%r15, %rax
	jbe	LBB0_15
## %bb.13:
	leaq	(%r15,%rdx,4), %rax
	cmpq	%rax, %rbx
	jae	LBB0_15
## %bb.14:
	xorl	%eax, %eax
	jmp	LBB0_23
LBB0_15:
	movq	%rdx, %rax
	andq	$-8, %rax
	leaq	-8(%rax), %rcx
	movq	%rcx, %r8
	shrq	$3, %r8
	incq	%r8
	testq	%rcx, %rcx
	je	LBB0_16
## %bb.17:
	movq	%r8, %rsi
	andq	$-2, %rsi
	xorl	%ecx, %ecx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movups	(%rbx,%rcx,4), %xmm0
	movups	16(%rbx,%rcx,4), %xmm1
	movups	(%r15,%rcx,4), %xmm2
	xorps	%xmm0, %xmm2
	movups	16(%r15,%rcx,4), %xmm0
	xorps	%xmm1, %xmm0
	movups	32(%r15,%rcx,4), %xmm1
	movups	48(%r15,%rcx,4), %xmm3
	movups	%xmm2, (%r15,%rcx,4)
	movups	%xmm0, 16(%r15,%rcx,4)
	movups	32(%rbx,%rcx,4), %xmm0
	xorps	%xmm1, %xmm0
	movups	48(%rbx,%rcx,4), %xmm1
	xorps	%xmm3, %xmm1
	movups	%xmm0, 32(%r15,%rcx,4)
	movups	%xmm1, 48(%r15,%rcx,4)
	addq	$16, %rcx
	addq	$2, %rdi
	cmpq	%rsi, %rdi
	jne	LBB0_18
## %bb.19:
	testb	$1, %r8b
	je	LBB0_21
LBB0_20:
	movups	(%rbx,%rcx,4), %xmm0
	movups	16(%rbx,%rcx,4), %xmm1
	movups	(%r15,%rcx,4), %xmm2
	xorps	%xmm0, %xmm2
	movups	16(%r15,%rcx,4), %xmm0
	xorps	%xmm1, %xmm0
	movups	%xmm2, (%r15,%rcx,4)
	movups	%xmm0, 16(%r15,%rcx,4)
LBB0_21:
	cmpq	%rax, %rdx
	je	LBB0_24
## %bb.22:
	leaq	(%rbx,%rax,4), %rbx
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %ecx
	xorl	%ecx, (%r15,%rax,4)
	addq	$4, %rbx
	incq	%rax
	cmpq	%rdx, %rax
	jb	LBB0_23
LBB0_24:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	%r15, %rdx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_aes_encrypt                    ## TAILCALL
LBB0_16:
	xorl	%ecx, %ecx
	testb	$1, %r8b
	jne	LBB0_20
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_AES_BLOCK_SIZE,8,3             ## @AES_BLOCK_SIZE
	.no_dead_strip	_aes_ccm_auth
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aes_ccm_auth
_aes_ccm_auth:                          ; @aes_ccm_auth
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x3
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x24, _AES_BLOCK_SIZE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _AES_BLOCK_SIZE@GOTPAGEOFF]
	ldr	x8, [x24]
	udiv	x9, x2, x8
	msub	x23, x9, x8, x2
	cmp	x8, x2
	b.hi	LBB0_3
; %bb.1:
	mov	x22, x2
	mov	x25, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_xor_aes_block
	ldr	x8, [x24]
	add	x21, x21, x8, lsl #2
	mov	x0, x20
	mov	x1, x19
	mov	x2, x19
	bl	_aes_encrypt
	add	x25, x25, #1
	ldr	x8, [x24]
	udiv	x8, x22, x8
	cmp	x25, x8
	b.lo	LBB0_2
LBB0_3:
	cbz	x23, LBB0_12
; %bb.4:
	cmp	x23, #16
	b.lo	LBB0_9
; %bb.5:
	lsl	x8, x23, #2
	add	x9, x19, x8
	add	x8, x21, x8
	cmp	x8, x19
	ccmp	x21, x9, #2, hi
	b.lo	LBB0_9
; %bb.6:
	mov	x10, #0
	and	x8, x23, #0xfffffffffffffff0
	add	x9, x21, x8, lsl #2
	add	x11, x21, #32
	add	x12, x19, #32
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x11, #-32]
	ldp	q2, q3, [x11], #64
	ldp	q4, q5, [x12, #-32]
	ldp	q6, q7, [x12]
	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
	add	x10, x10, #16
	cmp	x10, x8
	b.ne	LBB0_7
; %bb.8:
	cmp	x23, x8
	b.ne	LBB0_10
	b	LBB0_11
LBB0_9:
	mov	x8, #0
	mov	x9, x21
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9], #4
	lsl	x11, x8, #2
	ldr	w12, [x19, x11]
	eor	w10, w12, w10
	str	w10, [x19, x11]
	add	x8, x8, #1
	cmp	x8, x23
	b.lo	LBB0_10
LBB0_11:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_aes_encrypt
LBB0_12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AES_BLOCK_SIZE,8,3             ; @AES_BLOCK_SIZE
	.no_dead_strip	_aes_ccm_auth
.subsections_via_symbols
