	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_aes_gcm_ad                     ## -- Begin function aes_gcm_ad
	.p2align	4, 0x90
_aes_gcm_ad:                            ## @aes_gcm_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	$168, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -208(%rbp)                 ## 8-byte Spill
	movq	%r8, -200(%rbp)                 ## 8-byte Spill
	movq	%rcx, -192(%rbp)                ## 8-byte Spill
	movq	%rdx, -184(%rbp)                ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_AES_BLOCK_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	shlq	$2, %rbx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_aes_gcm_init_hash_subkey
	movq	%rax, %rbx
	movl	$-1, %eax
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.1:
	movq	-184(%rbp), %rdi                ## 8-byte Reload
	movq	-192(%rbp), %rsi                ## 8-byte Reload
	movq	%r14, %rdx
	movq	%r13, %rcx
	callq	_aes_gcm_prepare_j0
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	-200(%rbp), %r15                ## 8-byte Reload
	movq	%r15, %rdx
	movq	-208(%rbp), %r12                ## 8-byte Reload
	movq	%r12, %rcx
	movq	40(%rbp), %r8
	callq	_aes_gcm_gctr
	leaq	-112(%rbp), %r9
	movq	%r14, %rdi
	movq	16(%rbp), %rsi
	movq	24(%rbp), %rdx
	movq	%r15, %rcx
	movq	%r12, %r8
	movq	%r9, %r15
	callq	_aes_gcm_ghash
	leaq	-176(%rbp), %r14
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	movl	$64, %ecx
	movq	%r14, %r8
	callq	_aes_gctr
	movq	%rbx, %rdi
	callq	_aes_encrypt_deinit
	movq	32(%rbp), %rdi
	movq	%r14, %rsi
	movl	$16, %edx
	callq	_os_memcmp_const
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	_MSG_EXCESSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	movl	$-1, %eax
	jmp	LBB0_4
LBB0_2:
	xorl	%eax, %eax
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_6
## %bb.5:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	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	"GCM: Tag mismatch"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_aes_gcm_ad                     ; -- Begin function aes_gcm_ad
	.p2align	2
_aes_gcm_ad:                            ; @aes_gcm_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, #144
	mov	x19, x7
	mov	x21, x6
	mov	x20, x5
	mov	x22, x4
	mov	x26, x3
	mov	x27, 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:
	ldr	w8, [x8]
	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	x12, x10, #0x7fffffff0
	sub	x24, x9, x12
	mov	sp, x24
	mov	x9, x8
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x23, x8, x12
	mov	sp, x23
	mov	x2, x24
	bl	_aes_gcm_init_hash_subkey
	cbz	x0, LBB0_3
; %bb.1:
	mov	x25, x0
	ldp	x8, x28, [x29, #16]
	stur	x8, [x29, #-224]                ; 8-byte Folded Spill
	mov	x0, x27
	mov	x1, x26
	mov	x2, x24
	mov	x3, x23
	bl	_aes_gcm_prepare_j0
	mov	x0, x25
	mov	x1, x23
	mov	x2, x22
	mov	x3, x20
	mov	x4, x28
	bl	_aes_gcm_gctr
	sub	x5, x29, #152
	mov	x0, x24
	mov	x1, x21
	mov	x2, x19
	mov	x3, x22
	mov	x4, x20
	bl	_aes_gcm_ghash
	sub	x2, x29, #152
	sub	x4, x29, #216
	mov	x0, x25
	mov	x1, x23
	mov	w3, #64
	bl	_aes_gctr
	mov	x0, x25
	bl	_aes_encrypt_deinit
	sub	x1, x29, #216
	ldur	x0, [x29, #-224]                ; 8-byte Folded Reload
	mov	w2, #16
	bl	_os_memcmp_const
	cbz	x0, LBB0_4
; %bb.2:
Lloh10:
	adrp	x8, _MSG_EXCESSIVE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MSG_EXCESSIVE@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
LBB0_3:
	mov	w0, #-1
LBB0_4:
	ldur	x8, [x29, #-88]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	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_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.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	"GCM: Tag mismatch"

.subsections_via_symbols
