	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function crypto_rfc3686_setkey
_crypto_rfc3686_setkey:                 ## @crypto_rfc3686_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, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_crypto_ablkcipher_ctx
	movq	_CTR_RFC3686_NONCE_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	cmpl	%ebx, %edx
	jbe	LBB0_3
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_2
LBB0_3:
	movq	8(%rax), %r12
	movl	(%rax), %edi
	movl	%ebx, %eax
	subl	%edx, %eax
	leaq	(%r15,%rax,4), %rsi
	callq	_memcpy
	subl	(%r13), %ebx
	movq	_CRYPTO_TFM_REQ_MASK@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_crypto_ablkcipher_clear_flags
	movq	%r14, %rdi
	callq	_crypto_ablkcipher_get_flags
	andl	(%r13), %eax
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_crypto_ablkcipher_set_flags
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_crypto_ablkcipher_setkey
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_crypto_ablkcipher_get_flags
	movq	_CRYPTO_TFM_RES_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_crypto_ablkcipher_set_flags
	movl	%ebx, %eax
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CTR_RFC3686_NONCE_SIZE,4,2     ## @CTR_RFC3686_NONCE_SIZE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CRYPTO_TFM_REQ_MASK,4,2        ## @CRYPTO_TFM_REQ_MASK
	.comm	_CRYPTO_TFM_RES_MASK,4,2        ## @CRYPTO_TFM_RES_MASK
	.no_dead_strip	_crypto_rfc3686_setkey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function crypto_rfc3686_setkey
_crypto_rfc3686_setkey:                 ; @crypto_rfc3686_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	x21, x2
	mov	x20, x1
	mov	x19, x0
	bl	_crypto_ablkcipher_ctx
Lloh0:
	adrp	x23, _CTR_RFC3686_NONCE_SIZE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _CTR_RFC3686_NONCE_SIZE@GOTPAGEOFF]
	ldr	w2, [x23]
	cmp	w2, w21
	b.ls	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
	ldr	x22, [x0, #8]
	ldr	w0, [x0]
	sub	w8, w21, w2
	add	x1, x20, w8, uxtw #2
	bl	_memcpy
	ldr	w8, [x23]
	sub	w21, w21, w8
Lloh5:
	adrp	x23, _CRYPTO_TFM_REQ_MASK@GOTPAGE
Lloh6:
	ldr	x23, [x23, _CRYPTO_TFM_REQ_MASK@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x22
	bl	_crypto_ablkcipher_clear_flags
	mov	x0, x19
	bl	_crypto_ablkcipher_get_flags
	ldr	w8, [x23]
	and	w1, w8, w0
	mov	x0, x22
	bl	_crypto_ablkcipher_set_flags
	mov	x0, x22
	mov	x1, x20
	mov	x2, x21
	bl	_crypto_ablkcipher_setkey
	mov	x20, x0
	mov	x0, x22
	bl	_crypto_ablkcipher_get_flags
Lloh7:
	adrp	x8, _CRYPTO_TFM_RES_MASK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CRYPTO_TFM_RES_MASK@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	and	w1, w8, w0
	mov	x0, x19
	bl	_crypto_ablkcipher_set_flags
	mov	x0, x20
LBB0_3:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_CTR_RFC3686_NONCE_SIZE,4,2     ; @CTR_RFC3686_NONCE_SIZE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CRYPTO_TFM_REQ_MASK,4,2        ; @CRYPTO_TFM_REQ_MASK
	.comm	_CRYPTO_TFM_RES_MASK,4,2        ; @CRYPTO_TFM_RES_MASK
	.no_dead_strip	_crypto_rfc3686_setkey
.subsections_via_symbols
