	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aes_ccm_encr_auth
_aes_ccm_encr_auth:                     ## @aes_ccm_encr_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	%r8, %r15
	movq	%rcx, %r13
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_AES_BLOCK_SIZE@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	_MSG_EXCESSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdx
	movq	%r14, %rcx
	callq	_wpa_hexdump_key
	movq	_AES_BLOCK_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	-8(,%rax,4), %rdi
	addq	%r13, %rdi
	xorl	%esi, %esi
	callq	_WPA_PUT_BE16
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_aes_encrypt
	testq	%r14, %r14
	je	LBB0_14
## %bb.1:
	xorl	%eax, %eax
	cmpq	$8, %r14
	jb	LBB0_10
## %bb.2:
	movq	%r15, %rcx
	subq	%r12, %rcx
	cmpq	$32, %rcx
	jb	LBB0_10
## %bb.3:
	movq	%r14, %rax
	andq	$-8, %rax
	leaq	-8(%rax), %rcx
	movq	%rcx, %rdx
	shrq	$3, %rdx
	incq	%rdx
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.5:
	movq	%rdx, %rsi
	andq	$-2, %rsi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movups	(%r12,%rcx,4), %xmm0
	movups	16(%r12,%rcx,4), %xmm1
	xorps	(%rbx,%rcx,4), %xmm0
	xorps	16(%rbx,%rcx,4), %xmm1
	movups	%xmm0, (%r15,%rcx,4)
	movups	%xmm1, 16(%r15,%rcx,4)
	movups	32(%r12,%rcx,4), %xmm0
	movups	48(%r12,%rcx,4), %xmm1
	xorps	32(%rbx,%rcx,4), %xmm0
	xorps	48(%rbx,%rcx,4), %xmm1
	movups	%xmm0, 32(%r15,%rcx,4)
	movups	%xmm1, 48(%r15,%rcx,4)
	addq	$16, %rcx
	addq	$-2, %rsi
	jne	LBB0_6
## %bb.7:
	testb	$1, %dl
	je	LBB0_9
LBB0_8:
	movups	(%r12,%rcx,4), %xmm0
	movups	16(%r12,%rcx,4), %xmm1
	xorps	(%rbx,%rcx,4), %xmm0
	xorps	16(%rbx,%rcx,4), %xmm1
	movups	%xmm0, (%r15,%rcx,4)
	movups	%xmm1, 16(%r15,%rcx,4)
LBB0_9:
	cmpq	%r14, %rax
	je	LBB0_14
LBB0_10:
	movq	%rax, %rcx
	notq	%rcx
	addq	%r14, %rcx
	movq	%r14, %rdx
	andq	$3, %rdx
	je	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rbx,%rax,4), %esi
	xorl	(%r12,%rax,4), %esi
	movl	%esi, (%r15,%rax,4)
	incq	%rax
	decq	%rdx
	jne	LBB0_11
LBB0_12:
	cmpq	$3, %rcx
	jb	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rbx,%rax,4), %ecx
	xorl	(%r12,%rax,4), %ecx
	movl	%ecx, (%r15,%rax,4)
	movl	4(%rbx,%rax,4), %ecx
	xorl	4(%r12,%rax,4), %ecx
	movl	%ecx, 4(%r15,%rax,4)
	movl	8(%rbx,%rax,4), %ecx
	xorl	8(%r12,%rax,4), %ecx
	movl	%ecx, 8(%r15,%rax,4)
	movl	12(%rbx,%rax,4), %ecx
	xorl	12(%r12,%rax,4), %ecx
	movl	%ecx, 12(%r15,%rax,4)
	addq	$4, %rax
	cmpq	%rax, %r14
	jne	LBB0_13
LBB0_14:
	movq	_MSG_EXCESSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdx
	movq	%r14, %rcx
	callq	_wpa_hexdump_key
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	xorl	%ecx, %ecx
	testb	$1, %dl
	jne	LBB0_8
	jmp	LBB0_9
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AES_BLOCK_SIZE,4,2             ## @AES_BLOCK_SIZE
	.comm	_MSG_EXCESSIVE,4,2              ## @MSG_EXCESSIVE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CCM T"

L_.str.1:                               ## @.str.1
	.asciz	"CCM U"

	.no_dead_strip	_aes_ccm_encr_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_encr_auth
_aes_ccm_encr_auth:                     ; @aes_ccm_encr_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
	sub	sp, sp, #16
	mov	x19, x4
	mov	x23, x3
	mov	x21, x2
	mov	x20, x1
	mov	x24, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x26, _AES_BLOCK_SIZE@GOTPAGE
Lloh4:
	ldr	x26, [x26, _AES_BLOCK_SIZE@GOTPAGEOFF]
	ldr	w8, [x26]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x22, x9, x8
	mov	sp, x22
Lloh7:
	adrp	x25, _MSG_EXCESSIVE@GOTPAGE
Lloh8:
	ldr	x25, [x25, _MSG_EXCESSIVE@GOTPAGEOFF]
	ldr	w0, [x25]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x20
	bl	_wpa_hexdump_key
	ldrsw	x8, [x26]
	add	x8, x23, x8, lsl #2
	sub	x0, x8, #8
	mov	w1, #0
	bl	_WPA_PUT_BE16
	mov	x0, x24
	mov	x1, x23
	mov	x2, x22
	bl	_aes_encrypt
	cbz	x20, LBB0_8
; %bb.1:
	mov	x8, #0
	cmp	x20, #16
	b.lo	LBB0_6
; %bb.2:
	sub	x9, x19, x21
	cmp	x9, #64
	b.lo	LBB0_6
; %bb.3:
	and	x8, x20, #0xfffffffffffffff0
	add	x9, x21, #32
	add	x10, x19, #32
	add	x11, x22, #32
	mov	x12, x8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x9, #-32]
	ldp	q2, q3, [x9], #64
	ldp	q4, q5, [x11, #-32]
	ldp	q6, q7, [x11], #64
	eor.16b	v0, v4, v0
	eor.16b	v1, v5, v1
	eor.16b	v2, v6, v2
	eor.16b	v3, v7, v3
	stp	q0, q1, [x10, #-32]
	stp	q2, q3, [x10], #64
	subs	x12, x12, #16
	b.ne	LBB0_4
; %bb.5:
	cmp	x8, x20
	b.eq	LBB0_8
LBB0_6:
	sub	x9, x20, x8
	lsl	x11, x8, #2
	add	x8, x19, x11
	add	x10, x22, x11
	add	x11, x21, x11
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11], #4
	ldr	w13, [x10], #4
	eor	w12, w13, w12
	str	w12, [x8], #4
	subs	x9, x9, #1
	b.ne	LBB0_7
LBB0_8:
	ldr	w0, [x25]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	mov	x3, x20
	bl	_wpa_hexdump_key
	ldur	x8, [x29, #-72]
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_10
; %bb.9:
	sub	sp, x29, #64
	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
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_AES_BLOCK_SIZE,4,2             ; @AES_BLOCK_SIZE
	.comm	_MSG_EXCESSIVE,4,2              ; @MSG_EXCESSIVE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CCM T"

l_.str.1:                               ; @.str.1
	.asciz	"CCM U"

	.no_dead_strip	_aes_ccm_encr_auth
.subsections_via_symbols
