	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aes_ccm_encr
_aes_ccm_encr:                          ## @aes_ccm_encr
	.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	%r9, %r12
	movq	%r8, %rbx
	movq	%rcx, %r15
	movq	%rdx, %r14
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	_AES_BLOCK_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%r15, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_2
## %bb.1:
	movq	%r15, %rax
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_3
LBB0_2:
	movl	%r15d, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_3:
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	$1, %r13d
	cmpq	%r15, %rcx
	jbe	LBB0_9
LBB0_4:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	testq	%r15, %r15
	je	LBB0_23
## %bb.5:
	leaq	(%r12,%rcx,4), %rdi
	addq	$-8, %rdi
	movq	%r13, %rsi
	callq	_WPA_PUT_BE16
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_aes_encrypt
	cmpq	$8, %r15
	jb	LBB0_6
## %bb.11:
	leaq	(%r14,%r15,4), %rax
	cmpq	%rax, %rbx
	jae	LBB0_14
## %bb.12:
	leaq	(%rbx,%r15,4), %rax
	cmpq	%rax, %r14
	jae	LBB0_14
LBB0_6:
	xorl	%eax, %eax
LBB0_21:
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r14,%rcx,4), %edx
	xorl	%edx, (%rbx,%rcx,4)
	leaq	(%rax,%rcx), %rdx
	incq	%rdx
	incq	%rcx
	cmpq	%r15, %rdx
	jb	LBB0_22
LBB0_23:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_9 Depth=1
	movq	%r15, %rax
	xorl	%edx, %edx
	divq	%rcx
LBB0_8:                                 ##   in Loop: Header=BB0_9 Depth=1
	leaq	(%rbx,%rcx,4), %rbx
	leaq	(%r14,%rcx,4), %r14
	cmpq	%rax, %r13
	ja	LBB0_4
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%r12,%rcx,4), %rdi
	addq	$-8, %rdi
	movq	%r13, %rsi
	callq	_WPA_PUT_BE16
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_aes_encrypt
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_xor_aes_block
	movq	_AES_BLOCK_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	incq	%r13
	movq	%r15, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	jne	LBB0_7
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	%r15d, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
	jmp	LBB0_8
LBB0_14:
	movq	%r15, %rax
	andq	$-8, %rax
	leaq	-8(%rax), %rcx
	movq	%rcx, %rdx
	shrq	$3, %rdx
	incq	%rdx
	testq	%rcx, %rcx
	je	LBB0_24
## %bb.15:
	movq	%rdx, %rsi
	andq	$-2, %rsi
	xorl	%ecx, %ecx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movups	(%r14,%rcx,4), %xmm0
	movups	16(%r14,%rcx,4), %xmm1
	movups	(%rbx,%rcx,4), %xmm2
	xorps	%xmm0, %xmm2
	movups	16(%rbx,%rcx,4), %xmm0
	xorps	%xmm1, %xmm0
	movups	32(%rbx,%rcx,4), %xmm1
	movups	48(%rbx,%rcx,4), %xmm3
	movups	%xmm2, (%rbx,%rcx,4)
	movups	%xmm0, 16(%rbx,%rcx,4)
	movups	32(%r14,%rcx,4), %xmm0
	xorps	%xmm1, %xmm0
	movups	48(%r14,%rcx,4), %xmm1
	xorps	%xmm3, %xmm1
	movups	%xmm0, 32(%rbx,%rcx,4)
	movups	%xmm1, 48(%rbx,%rcx,4)
	addq	$16, %rcx
	addq	$2, %rdi
	cmpq	%rsi, %rdi
	jne	LBB0_16
## %bb.17:
	testb	$1, %dl
	je	LBB0_19
LBB0_18:
	movups	(%r14,%rcx,4), %xmm0
	movups	16(%r14,%rcx,4), %xmm1
	movups	(%rbx,%rcx,4), %xmm2
	xorps	%xmm0, %xmm2
	movups	16(%rbx,%rcx,4), %xmm0
	xorps	%xmm1, %xmm0
	movups	%xmm2, (%rbx,%rcx,4)
	movups	%xmm0, 16(%rbx,%rcx,4)
LBB0_19:
	cmpq	%rax, %r15
	je	LBB0_23
## %bb.20:
	leaq	(%r14,%rax,4), %r14
	leaq	(%rbx,%rax,4), %rbx
	jmp	LBB0_21
LBB0_24:
	xorl	%ecx, %ecx
	testb	$1, %dl
	jne	LBB0_18
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_AES_BLOCK_SIZE,8,3             ## @AES_BLOCK_SIZE
	.no_dead_strip	_aes_ccm_encr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aes_ccm_encr
_aes_ccm_encr:                          ; @aes_ccm_encr
	.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	x21, x5
	mov	x19, x4
	mov	x20, x2
	mov	x22, x0
Lloh0:
	adrp	x26, _AES_BLOCK_SIZE@GOTPAGE
Lloh1:
	ldr	x26, [x26, _AES_BLOCK_SIZE@GOTPAGEOFF]
	ldr	x8, [x26]
	udiv	x9, x3, x8
	msub	x25, x9, x8, x3
	cmp	x8, x3
	b.ls	LBB0_2
; %bb.1:
	mov	w23, #1
	b	LBB0_4
LBB0_2:
	mov	x24, x3
	mov	w23, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x21, x8, lsl #2
	sub	x0, x8, #8
	mov	x1, x23
	bl	_WPA_PUT_BE16
	mov	x0, x22
	mov	x1, x21
	mov	x2, x19
	bl	_aes_encrypt
	mov	x0, x19
	mov	x1, x20
	bl	_xor_aes_block
	ldr	x8, [x26]
	lsl	x9, x8, #2
	add	x19, x19, x9
	add	x20, x20, x9
	add	x23, x23, #1
	udiv	x9, x24, x8
	cmp	x23, x9
	b.ls	LBB0_3
LBB0_4:
	cbz	x25, LBB0_12
; %bb.5:
	add	x8, x21, x8, lsl #2
	sub	x0, x8, #8
	mov	x1, x23
	bl	_WPA_PUT_BE16
	mov	x0, x22
	mov	x1, x21
	mov	x2, x19
	bl	_aes_encrypt
	cmp	x25, #16
	b.lo	LBB0_10
; %bb.6:
	lsl	x8, x25, #2
	add	x9, x19, x8
	add	x8, x20, x8
	cmp	x19, x8
	ccmp	x20, x9, #2, lo
	b.lo	LBB0_10
; %bb.7:
	mov	x11, #0
	and	x8, x25, #0xfffffffffffffff0
	lsl	x10, x8, #2
	add	x9, x20, x10
	add	x10, x19, x10
	add	x12, x20, #32
	add	x13, x19, #32
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x12, #-32]
	ldp	q2, q3, [x12], #64
	ldp	q4, q5, [x13, #-32]
	ldp	q6, q7, [x13]
	eor.16b	v0, v4, v0
	eor.16b	v1, v5, v1
	eor.16b	v2, v6, v2
	eor.16b	v3, v7, v3
	stp	q0, q1, [x13, #-32]
	stp	q2, q3, [x13], #64
	add	x11, x11, #16
	cmp	x11, x8
	b.ne	LBB0_8
; %bb.9:
	cmp	x25, x8
	b.ne	LBB0_11
	b	LBB0_12
LBB0_10:
	mov	x8, #0
	mov	x9, x20
	mov	x10, x19
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x9], #4
	ldr	w12, [x10]
	eor	w11, w12, w11
	str	w11, [x10], #4
	add	x8, x8, #1
	cmp	x8, x25
	b.lo	LBB0_11
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_encr
.subsections_via_symbols
