	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_crypto_aead_ctx
	movq	%rax, %r15
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_RTA_OK
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movq	(%rbx), %rax
	movq	_CRYPTO_AUTHENC_KEYA_PARAM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	callq	_RTA_PAYLOAD
	cmpl	$4, %eax
	jb	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_RTA_DATA
	movl	(%rax), %edi
	callq	_be32_to_cpu
	movl	%eax, (%r15)
	movl	8(%rbx), %edi
	callq	_RTA_ALIGN
	movq	%rax, %r13
	movl	8(%rbx), %edi
	callq	_RTA_ALIGN
	subl	%eax, %r12d
	movl	(%r15), %edx
	subl	%edx, %r12d
	jae	LBB0_5
LBB0_4:
	movl	$0, (%r15)
	movq	_CRYPTO_TFM_RES_BAD_KEY_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_crypto_aead_set_flags
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	(%rbx,%r13,4), %rbx
	movl	%r12d, 4(%r15)
	movl	12(%r15), %edi
	leaq	(%rbx,%r12,4), %rsi
	callq	_memcpy
	movl	4(%r15), %edx
	movl	8(%r15), %edi
	movq	%rbx, %rsi
	callq	_memcpy
	movq	%r14, %rdi
	callq	_crypto_aead_authsize
	movq	%r14, %rdi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_aead_setup                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CRYPTO_AUTHENC_KEYA_PARAM,8,3  ## @CRYPTO_AUTHENC_KEYA_PARAM
	.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:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x1
	mov	x19, x0
	bl	_crypto_aead_ctx
	mov	x20, x0
	mov	x0, x21
	mov	x1, x22
	bl	_RTA_OK
	cbz	w0, LBB0_4
; %bb.1:
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _CRYPTO_AUTHENC_KEYA_PARAM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CRYPTO_AUTHENC_KEYA_PARAM@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	mov	x0, x21
	bl	_RTA_PAYLOAD
	cmp	w0, #4
	b.lo	LBB0_4
; %bb.3:
	mov	x0, x21
	bl	_RTA_DATA
	ldr	w0, [x0]
	bl	_be32_to_cpu
	str	w0, [x20]
	ldr	w0, [x21, #8]
	bl	_RTA_ALIGN
	mov	x23, x0
	ldr	w0, [x21, #8]
	bl	_RTA_ALIGN
	ldr	w2, [x20]
	sub	w8, w22, w0
	subs	w8, w8, w2
	b.hs	LBB0_5
LBB0_4:
	str	wzr, [x20]
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, x19
	bl	_crypto_aead_set_flags
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_5:
	add	x21, x21, x23, lsl #2
	str	w8, [x20, #4]
	ldr	w0, [x20, #12]
	add	x1, x21, w8, uxtw #2
	bl	_memcpy
	ldp	w2, w0, [x20, #4]
	mov	x1, x21
	bl	_memcpy
	mov	x0, x19
	bl	_crypto_aead_authsize
	mov	x1, x0
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_aead_setup
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_CRYPTO_AUTHENC_KEYA_PARAM,8,3  ; @CRYPTO_AUTHENC_KEYA_PARAM
	.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
