	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function chacha20_set_ctx_params
_chacha20_set_ctx_params:               ## @chacha20_set_ctx_params
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movq	_OSSL_CIPHER_PARAM_KEYLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_OSSL_PARAM_locate_const
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	leaq	-16(%rbp), %rsi
	movq	%rax, %rdi
	callq	_OSSL_PARAM_get_size_t
	testl	%eax, %eax
	je	LBB0_9
## %bb.2:
	movq	-16(%rbp), %rax
	movq	_CHACHA20_KEYLEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
LBB0_3:
	movq	_OSSL_CIPHER_PARAM_IVLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_OSSL_PARAM_locate_const
	movl	$1, %ebx
	testq	%rax, %rax
	je	LBB0_11
## %bb.4:
	leaq	-16(%rbp), %rsi
	movq	%rax, %rdi
	callq	_OSSL_PARAM_get_size_t
	testl	%eax, %eax
	je	LBB0_9
## %bb.5:
	movq	-16(%rbp), %rax
	movq	_CHACHA20_IVLEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_11
## %bb.6:
	movq	_PROV_R_INVALID_IV_LENGTH@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_9:
	movq	_PROV_R_FAILED_TO_GET_PARAMETER@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_8:
	movq	_PROV_R_INVALID_KEY_LENGTH@GOTPCREL(%rip), %rax
LBB0_10:
	movq	_ERR_LIB_PROV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	(%rax), %esi
	callq	_ERR_raise
	xorl	%ebx, %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OSSL_CIPHER_PARAM_KEYLEN,4,2   ## @OSSL_CIPHER_PARAM_KEYLEN
	.comm	_ERR_LIB_PROV,4,2               ## @ERR_LIB_PROV
	.comm	_PROV_R_FAILED_TO_GET_PARAMETER,4,2 ## @PROV_R_FAILED_TO_GET_PARAMETER
	.comm	_CHACHA20_KEYLEN,8,3            ## @CHACHA20_KEYLEN
	.comm	_PROV_R_INVALID_KEY_LENGTH,4,2  ## @PROV_R_INVALID_KEY_LENGTH
	.comm	_OSSL_CIPHER_PARAM_IVLEN,4,2    ## @OSSL_CIPHER_PARAM_IVLEN
	.comm	_CHACHA20_IVLEN,8,3             ## @CHACHA20_IVLEN
	.comm	_PROV_R_INVALID_IV_LENGTH,4,2   ## @PROV_R_INVALID_IV_LENGTH
	.no_dead_strip	_chacha20_set_ctx_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function chacha20_set_ctx_params
_chacha20_set_ctx_params:               ; @chacha20_set_ctx_params
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
Lloh0:
	adrp	x8, _OSSL_CIPHER_PARAM_KEYLEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OSSL_CIPHER_PARAM_KEYLEN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_OSSL_PARAM_locate_const
	cbz	x0, LBB0_3
; %bb.1:
	add	x1, sp, #8
	bl	_OSSL_PARAM_get_size_t
	cbz	w0, LBB0_7
; %bb.2:
	ldr	x8, [sp, #8]
Lloh3:
	adrp	x9, _CHACHA20_KEYLEN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CHACHA20_KEYLEN@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
LBB0_3:
Lloh6:
	adrp	x8, _OSSL_CIPHER_PARAM_IVLEN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OSSL_CIPHER_PARAM_IVLEN@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_OSSL_PARAM_locate_const
	cbz	x0, LBB0_6
; %bb.4:
	add	x1, sp, #8
	bl	_OSSL_PARAM_get_size_t
	cbz	w0, LBB0_7
; %bb.5:
	ldr	x8, [sp, #8]
Lloh9:
	adrp	x9, _CHACHA20_IVLEN@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CHACHA20_IVLEN@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
LBB0_6:
	mov	w0, #1
	b	LBB0_11
LBB0_7:
Lloh12:
	adrp	x8, _PROV_R_FAILED_TO_GET_PARAMETER@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PROV_R_FAILED_TO_GET_PARAMETER@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
Lloh14:
	adrp	x8, _PROV_R_INVALID_KEY_LENGTH@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PROV_R_INVALID_KEY_LENGTH@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh16:
	adrp	x8, _PROV_R_INVALID_IV_LENGTH@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PROV_R_INVALID_IV_LENGTH@GOTPAGEOFF]
LBB0_10:
Lloh18:
	adrp	x9, _ERR_LIB_PROV@GOTPAGE
Lloh19:
	ldr	x9, [x9, _ERR_LIB_PROV@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x9]
	ldr	w1, [x8]
	bl	_ERR_raise
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_OSSL_CIPHER_PARAM_KEYLEN,4,2   ; @OSSL_CIPHER_PARAM_KEYLEN
	.comm	_ERR_LIB_PROV,4,2               ; @ERR_LIB_PROV
	.comm	_PROV_R_FAILED_TO_GET_PARAMETER,4,2 ; @PROV_R_FAILED_TO_GET_PARAMETER
	.comm	_CHACHA20_KEYLEN,8,3            ; @CHACHA20_KEYLEN
	.comm	_PROV_R_INVALID_KEY_LENGTH,4,2  ; @PROV_R_INVALID_KEY_LENGTH
	.comm	_OSSL_CIPHER_PARAM_IVLEN,4,2    ; @OSSL_CIPHER_PARAM_IVLEN
	.comm	_CHACHA20_IVLEN,8,3             ; @CHACHA20_IVLEN
	.comm	_PROV_R_INVALID_IV_LENGTH,4,2   ; @PROV_R_INVALID_IV_LENGTH
	.no_dead_strip	_chacha20_set_ctx_params
.subsections_via_symbols
