	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_aes_ccm_ad                     ## -- Begin function aes_ccm_ad
	.p2align	4, 0x90
_aes_ccm_ad:                            ## @aes_ccm_ad
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -88(%rbp)                  ## 8-byte Spill
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r14
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	movq	%rdi, -96(%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
	movslq	(%rax), %r12
	movl	%r12d, %r13d
	shlq	$2, %r13
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movl	$-1, %ebx
	cmpq	$30, 24(%rbp)
	ja	LBB0_6
## %bb.1:
	cmpq	%r14, %r12
	jb	LBB0_6
## %bb.2:
	movq	%r14, %r12
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	callq	_aes_encrypt_init
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	%rax, %r14
	movl	$2, %edi
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_aes_ccm_encr_start
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	movq	32(%rbp), %rcx
	movq	%r13, %r8
	callq	_aes_ccm_decr_auth
	movl	$2, %esi
	movq	%r14, %rdi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	%r12, %r13
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rcx
	movq	40(%rbp), %r8
	movq	%r15, %r9
	callq	_aes_ccm_encr
	movl	$2, %edx
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rcx
	movq	16(%rbp), %r8
	movq	24(%rbp), %r9
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	pushq	%rbx
	pushq	%r12
	callq	_aes_ccm_auth_start
	addq	$16, %rsp
	movq	%r14, %rdi
	movq	40(%rbp), %rsi
	movq	%r12, %rdx
	movq	%rbx, %rcx
	callq	_aes_ccm_auth
	movq	%r14, %rdi
	callq	_aes_encrypt_deinit
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	callq	_os_memcmp_const
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	_MSG_EXCESSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	movl	$-1, %ebx
	jmp	LBB0_6
LBB0_4:
	xorl	%ebx, %ebx
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	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: Auth mismatch"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_aes_ccm_ad                     ; -- Begin function aes_ccm_ad
	.p2align	2
_aes_ccm_ad:                            ; @aes_ccm_ad
	.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, #32
	mov	x21, x7
	mov	x22, x6
	mov	x20, x5
	mov	x25, x4
	mov	x19, x3
	mov	x24, x2
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, _AES_BLOCK_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AES_BLOCK_SIZE@GOTPAGEOFF]
Lloh5:
	ldrsw	x12, [x8]
	and	x8, x12, #0xffffffff
	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	x10, x8, #15
	and	x13, x10, #0x7fffffff0
	sub	x23, x9, x13
	mov	sp, x23
	mov	x9, x8
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x27, x9, x13
	mov	sp, x27
	mov	x9, x8
Lloh10:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh11:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x26, x8, x13
	mov	sp, x26
	mov	w8, #-1
	cmp	x7, #30
	b.hi	LBB0_7
; %bb.1:
	cmp	x12, x19
	b.lo	LBB0_7
; %bb.2:
	bl	_aes_encrypt_init
	cbz	x0, LBB0_5
; %bb.3:
	mov	x28, x0
	stp	x25, x22, [x29, #-104]          ; 16-byte Folded Spill
	ldp	x25, x22, [x29, #16]
	mov	w0, #2
	mov	x1, x24
	mov	x2, x27
	bl	_aes_ccm_encr_start
	mov	x0, x28
	mov	x1, x19
	mov	x2, x27
	mov	x3, x25
	mov	x4, x26
	bl	_aes_ccm_decr_auth
	mov	x0, x28
	mov	w1, #2
	ldur	x2, [x29, #-104]                ; 8-byte Folded Reload
	mov	x3, x20
	mov	x4, x22
	mov	x5, x27
	bl	_aes_ccm_encr
	mov	x0, x28
	mov	x1, x19
	mov	w2, #2
	mov	x3, x24
	ldur	x4, [x29, #-96]                 ; 8-byte Folded Reload
	mov	x5, x21
	mov	x6, x20
	mov	x7, x23
	bl	_aes_ccm_auth_start
	mov	x0, x28
	mov	x1, x22
	mov	x2, x20
	mov	x3, x23
	bl	_aes_ccm_auth
	mov	x0, x28
	bl	_aes_encrypt_deinit
	mov	x0, x23
	mov	x1, x26
	mov	x2, x19
	bl	_os_memcmp_const
	cbz	x0, LBB0_6
; %bb.4:
Lloh12:
	adrp	x8, _MSG_EXCESSIVE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MSG_EXCESSIVE@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
LBB0_5:
	mov	w8, #-1
	b	LBB0_7
LBB0_6:
	mov	w8, #0
LBB0_7:
	ldur	x9, [x29, #-88]
Lloh17:
	adrp	x10, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x10, [x10, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x10, [x10]
	cmp	x10, x9
	b.ne	LBB0_9
; %bb.8:
	mov	x0, x8
	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_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.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: Auth mismatch"

.subsections_via_symbols
