	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aead_setkey
_aead_setkey:                           ## @aead_setkey
	.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
	movl	%edx, %r13d
	movq	%rsi, %rbx
	movq	%rdi, %r12
	callq	_crypto_aead_ctx
	movq	%rax, %r15
	movq	40(%rax), %r14
	leaq	-64(%rbp), %rdi
	movq	%rbx, %rsi
	movl	%r13d, %edx
	callq	_crypto_authenc_extractkeys
	testq	%rax, %rax
	jne	LBB0_5
## %bb.1:
	movq	-64(%rbp), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	_TALITOS_MAX_KEY_SIZE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jbe	LBB0_2
LBB0_5:
	movq	_CRYPTO_TFM_RES_BAD_KEY_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_crypto_aead_set_flags
	leaq	-64(%rbp), %rdi
	movl	$24, %esi
	callq	_memzero_explicit
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	32(%r15), %esi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r14, %rdi
	movq	%rax, %rdx
	callq	_dma_unmap_single
	movq	-64(%rbp), %rdx
LBB0_4:
	movq	24(%r15), %rdi
	movl	-44(%rbp), %esi
	callq	_memcpy
	movq	-64(%rbp), %rdi
	movq	-56(%rbp), %rdx
	shlq	$2, %rdi
	addq	24(%r15), %rdi
	movl	-48(%rbp), %esi
	callq	_memcpy
	movq	-64(%rbp), %rax
	movq	-56(%rbp), %rcx
	leaq	(%rcx,%rax), %rdx
	movq	%rdx, (%r15)
	movq	%rcx, 8(%r15)
	movq	%rax, 16(%r15)
	movq	24(%r15), %rsi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_dma_map_single
	movl	%eax, 32(%r15)
	leaq	-64(%rbp), %rdi
	movl	$24, %esi
	callq	_memzero_explicit
	xorl	%eax, %eax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_TALITOS_MAX_KEY_SIZE,8,3       ## @TALITOS_MAX_KEY_SIZE
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_CRYPTO_TFM_RES_BAD_KEY_LEN,4,2 ## @CRYPTO_TFM_RES_BAD_KEY_LEN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_aead_setkey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aead_setkey
_aead_setkey:                           ; @aead_setkey
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x22, x2
	mov	x23, x1
	mov	x21, x0
	bl	_crypto_aead_ctx
	mov	x19, x0
	ldr	x20, [x0, #40]
	add	x0, sp, #8
	mov	x1, x23
	mov	x2, x22
	bl	_crypto_authenc_extractkeys
	cbnz	x0, LBB0_2
; %bb.1:
	ldp	x2, x8, [sp, #8]
Lloh0:
	adrp	x9, _TALITOS_MAX_KEY_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TALITOS_MAX_KEY_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x8, x8, x2
	cmp	x8, x9
	b.ls	LBB0_4
LBB0_2:
Lloh3:
	adrp	x8, _CRYPTO_TFM_RES_BAD_KEY_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CRYPTO_TFM_RES_BAD_KEY_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_crypto_aead_set_flags
	add	x0, sp, #8
	mov	w1, #24
	bl	_memzero_explicit
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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
	add	sp, sp, #96
	ret
LBB0_4:
	ldr	x8, [x19]
Lloh9:
	adrp	x21, _DMA_TO_DEVICE@GOTPAGE
Lloh10:
	ldr	x21, [x21, _DMA_TO_DEVICE@GOTPAGEOFF]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	w1, [x19, #32]
	ldr	w3, [x21]
	mov	x0, x20
	mov	x2, x8
	bl	_dma_unmap_single
	ldr	x2, [sp, #8]
LBB0_6:
	ldr	x0, [x19, #24]
	ldr	w1, [sp, #28]
	bl	_memcpy
	ldr	x8, [x19, #24]
	ldp	x9, x2, [sp, #8]
	add	x0, x8, x9, lsl #2
	ldr	w1, [sp, #24]
	bl	_memcpy
	ldp	x8, x9, [sp, #8]
	add	x2, x9, x8
	stp	x2, x9, [x19]
	str	x8, [x19, #16]
	ldr	x1, [x19, #24]
	ldr	w3, [x21]
	mov	x0, x20
	bl	_dma_map_single
	str	w0, [x19, #32]
	add	x0, sp, #8
	mov	w1, #24
	bl	_memzero_explicit
	mov	w0, #0
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_TALITOS_MAX_KEY_SIZE,8,3       ; @TALITOS_MAX_KEY_SIZE
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_CRYPTO_TFM_RES_BAD_KEY_LEN,4,2 ; @CRYPTO_TFM_RES_BAD_KEY_LEN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_aead_setkey
.subsections_via_symbols
