	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function crypto_authenc_setkey
_crypto_authenc_setkey:                 ## @crypto_authenc_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, %r12d
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_crypto_aead_ctx
	movq	(%rax), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %r13
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_RTA_OK
	testl	%eax, %eax
	je	LBB0_8
## %bb.1:
	movq	(%r14), %rax
	movq	_CRYPTO_AUTHENC_KEYA_PARAM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.2:
	movq	%r14, %rdi
	callq	_RTA_PAYLOAD
	cmpl	$4, %eax
	jb	LBB0_8
## %bb.3:
	movq	%r14, %rdi
	callq	_RTA_DATA
	movl	(%rax), %edi
	callq	_be32_to_cpu
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	8(%r14), %edi
	callq	_RTA_ALIGN
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	8(%r14), %edi
	callq	_RTA_ALIGN
	subl	%eax, %r12d
	subl	-44(%rbp), %r12d                ## 4-byte Folded Reload
	jae	LBB0_4
LBB0_8:
	movq	_CRYPTO_TFM_RES_BAD_KEY_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_6:
	movq	%r15, %rdi
	callq	_crypto_aead_set_flags
LBB0_7:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%r14,%rax,4), %r14
	movq	_CRYPTO_TFM_REQ_MASK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_crypto_ahash_clear_flags
	movq	%r15, %rdi
	callq	_crypto_aead_get_flags
	andl	(%rbx), %eax
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_crypto_ahash_set_flags
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	%r12d, %edx
	callq	_crypto_ahash_setkey
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_crypto_ahash_get_flags
	movq	_CRYPTO_TFM_RES_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_crypto_aead_set_flags
	testl	%ebx, %ebx
	jne	LBB0_7
## %bb.5:
	movq	_CRYPTO_TFM_REQ_MASK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_crypto_ablkcipher_clear_flags
	movq	%r15, %rdi
	callq	_crypto_aead_get_flags
	andl	(%rbx), %eax
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_crypto_ablkcipher_set_flags
	movl	%r12d, %eax
	leaq	(%r14,%rax,4), %rsi
	movq	%r13, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_crypto_ablkcipher_setkey
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_crypto_ablkcipher_get_flags
	movl	%eax, %esi
	movq	_CRYPTO_TFM_RES_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %esi
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CRYPTO_AUTHENC_KEYA_PARAM,8,3  ## @CRYPTO_AUTHENC_KEYA_PARAM
	.comm	_CRYPTO_TFM_REQ_MASK,4,2        ## @CRYPTO_TFM_REQ_MASK
	.comm	_CRYPTO_TFM_RES_MASK,4,2        ## @CRYPTO_TFM_RES_MASK
	.comm	_CRYPTO_TFM_RES_BAD_KEY_LEN,4,2 ## @CRYPTO_TFM_RES_BAD_KEY_LEN
	.no_dead_strip	_crypto_authenc_setkey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function crypto_authenc_setkey
_crypto_authenc_setkey:                 ; @crypto_authenc_setkey
	.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
	mov	x23, x2
	mov	x24, x1
	mov	x19, x0
	bl	_crypto_aead_ctx
	ldp	x20, x22, [x0]
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w26, [x8]
	mov	x0, x24
	mov	x1, x23
	bl	_RTA_OK
	cbz	w0, LBB0_4
; %bb.1:
	ldr	x8, [x24]
Lloh3:
	adrp	x9, _CRYPTO_AUTHENC_KEYA_PARAM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CRYPTO_AUTHENC_KEYA_PARAM@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	mov	x0, x24
	bl	_RTA_PAYLOAD
	cmp	w0, #4
	b.lo	LBB0_4
; %bb.3:
	mov	x0, x24
	bl	_RTA_DATA
	ldr	w0, [x0]
	bl	_be32_to_cpu
	mov	x21, x0
	ldr	w0, [x24, #8]
	bl	_RTA_ALIGN
	mov	x25, x0
	ldr	w0, [x24, #8]
	bl	_RTA_ALIGN
	sub	w8, w23, w0
	subs	w23, w8, w21
	b.hs	LBB0_7
LBB0_4:
	neg	w25, w26
Lloh6:
	adrp	x8, _CRYPTO_TFM_RES_BAD_KEY_LEN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CRYPTO_TFM_RES_BAD_KEY_LEN@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
LBB0_5:
	mov	x0, x19
	bl	_crypto_aead_set_flags
LBB0_6:
	mov	x0, x25
	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_7:
	add	x24, x24, x25, lsl #2
Lloh9:
	adrp	x26, _CRYPTO_TFM_REQ_MASK@GOTPAGE
Lloh10:
	ldr	x26, [x26, _CRYPTO_TFM_REQ_MASK@GOTPAGEOFF]
	ldr	w1, [x26]
	mov	x0, x22
	bl	_crypto_ahash_clear_flags
	mov	x0, x19
	bl	_crypto_aead_get_flags
	ldr	w8, [x26]
	and	w1, w8, w0
	mov	x0, x22
	bl	_crypto_ahash_set_flags
	mov	x0, x22
	mov	x1, x24
	mov	x2, x23
	bl	_crypto_ahash_setkey
	mov	x25, x0
	mov	x0, x22
	bl	_crypto_ahash_get_flags
Lloh11:
	adrp	x22, _CRYPTO_TFM_RES_MASK@GOTPAGE
Lloh12:
	ldr	x22, [x22, _CRYPTO_TFM_RES_MASK@GOTPAGEOFF]
	ldr	w8, [x22]
	and	w1, w8, w0
	mov	x0, x19
	bl	_crypto_aead_set_flags
	cbnz	w25, LBB0_6
; %bb.8:
	ldr	w1, [x26]
	mov	x0, x20
	bl	_crypto_ablkcipher_clear_flags
	mov	x0, x19
	bl	_crypto_aead_get_flags
	ldr	w8, [x26]
	and	w1, w8, w0
	mov	x0, x20
	bl	_crypto_ablkcipher_set_flags
	add	x1, x24, w23, uxtw #2
	mov	x0, x20
	mov	x2, x21
	bl	_crypto_ablkcipher_setkey
	mov	x25, x0
	mov	x0, x20
	bl	_crypto_ablkcipher_get_flags
	ldr	w8, [x22]
	and	w1, w8, w0
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CRYPTO_AUTHENC_KEYA_PARAM,8,3  ; @CRYPTO_AUTHENC_KEYA_PARAM
	.comm	_CRYPTO_TFM_REQ_MASK,4,2        ; @CRYPTO_TFM_REQ_MASK
	.comm	_CRYPTO_TFM_RES_MASK,4,2        ; @CRYPTO_TFM_RES_MASK
	.comm	_CRYPTO_TFM_RES_BAD_KEY_LEN,4,2 ; @CRYPTO_TFM_RES_BAD_KEY_LEN
	.no_dead_strip	_crypto_authenc_setkey
.subsections_via_symbols
