	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function chacha20_poly1305_set_ctx_params
_chacha20_poly1305_set_ctx_params:      ## @chacha20_poly1305_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	%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
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	32(%rdi), %r13
	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	-48(%rbp), %rsi
	movq	%rax, %rdi
	callq	_OSSL_PARAM_get_size_t
	testl	%eax, %eax
	je	LBB0_15
## %bb.2:
	movq	-48(%rbp), %rax
	movq	_CHACHA20_POLY1305_KEYLEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
LBB0_3:
	movq	_OSSL_CIPHER_PARAM_IVLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_OSSL_PARAM_locate_const
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	leaq	-48(%rbp), %rsi
	movq	%rax, %rdi
	callq	_OSSL_PARAM_get_size_t
	testl	%eax, %eax
	je	LBB0_15
## %bb.5:
	movq	-48(%rbp), %rcx
	movq	_PROV_R_INVALID_IV_LENGTH@GOTPCREL(%rip), %rax
	testq	%rcx, %rcx
	je	LBB0_32
## %bb.6:
	movq	_CHACHA20_POLY1305_MAX_IVLEN@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	ja	LBB0_32
## %bb.7:
	movq	%rcx, (%r14)
LBB0_8:
	leaq	24(%r14), %r15
	movq	_OSSL_CIPHER_PARAM_AEAD_TAG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_OSSL_PARAM_locate_const
	testq	%rax, %rax
	je	LBB0_21
## %bb.9:
	movq	%rax, %r12
	movq	(%rax), %rax
	movq	_OSSL_PARAM_OCTET_STRING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.10:
	movq	8(%r12), %rdx
	movq	_PROV_R_INVALID_TAGLEN@GOTPCREL(%rip), %rax
	testq	%rdx, %rdx
	je	LBB0_32
## %bb.11:
	movq	_POLY1305_BLOCK_SIZE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	jg	LBB0_32
## %bb.12:
	movq	16(%r12), %rsi
	testq	%rsi, %rsi
	je	LBB0_20
## %bb.13:
	cmpq	$0, (%r15)
	je	LBB0_19
## %bb.14:
	movq	_PROV_R_TAG_NOT_NEEDED@GOTPCREL(%rip), %rax
	jmp	LBB0_32
LBB0_16:
	movq	_PROV_R_INVALID_KEY_LENGTH@GOTPCREL(%rip), %rax
	jmp	LBB0_32
LBB0_19:
	movl	40(%r14), %edi
	callq	_memcpy
	movq	8(%r12), %rdx
LBB0_20:
	movq	%rdx, 8(%r14)
LBB0_21:
	movq	_OSSL_CIPHER_PARAM_AEAD_TLS1_AAD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_OSSL_PARAM_locate_const
	testq	%rax, %rax
	je	LBB0_25
## %bb.22:
	movq	(%rax), %rcx
	movq	_OSSL_PARAM_OCTET_STRING@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_15
## %bb.23:
	movq	8(%rax), %rdx
	movq	16(%rax), %rsi
	movq	%r15, %rdi
	callq	*(%r13)
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	je	LBB0_31
## %bb.24:
	movq	%rax, 16(%r14)
LBB0_25:
	movq	_OSSL_CIPHER_PARAM_AEAD_TLS1_IV_FIXED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_OSSL_PARAM_locate_const
	movl	$1, %ebx
	testq	%rax, %rax
	je	LBB0_33
## %bb.26:
	movq	(%rax), %rcx
	movq	_OSSL_PARAM_OCTET_STRING@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_15
## %bb.27:
	movq	8(%rax), %rdx
	movq	16(%rax), %rsi
	movq	%r15, %rdi
	callq	*8(%r13)
	testq	%rax, %rax
	jne	LBB0_33
## %bb.28:
	movq	_PROV_R_INVALID_IVLEN@GOTPCREL(%rip), %rax
	jmp	LBB0_32
LBB0_15:
	movq	_PROV_R_FAILED_TO_GET_PARAMETER@GOTPCREL(%rip), %rax
LBB0_32:
	movq	_ERR_LIB_PROV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	(%rax), %esi
	callq	_ERR_raise
	xorl	%ebx, %ebx
LBB0_33:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_31:
	movq	_PROV_R_INVALID_DATA@GOTPCREL(%rip), %rax
	jmp	LBB0_32
	.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_POLY1305_KEYLEN,8,3   ## @CHACHA20_POLY1305_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_POLY1305_MAX_IVLEN,8,3 ## @CHACHA20_POLY1305_MAX_IVLEN
	.comm	_PROV_R_INVALID_IV_LENGTH,4,2   ## @PROV_R_INVALID_IV_LENGTH
	.comm	_OSSL_CIPHER_PARAM_AEAD_TAG,4,2 ## @OSSL_CIPHER_PARAM_AEAD_TAG
	.comm	_OSSL_PARAM_OCTET_STRING,8,3    ## @OSSL_PARAM_OCTET_STRING
	.comm	_POLY1305_BLOCK_SIZE,8,3        ## @POLY1305_BLOCK_SIZE
	.comm	_PROV_R_INVALID_TAGLEN,4,2      ## @PROV_R_INVALID_TAGLEN
	.comm	_PROV_R_TAG_NOT_NEEDED,4,2      ## @PROV_R_TAG_NOT_NEEDED
	.comm	_OSSL_CIPHER_PARAM_AEAD_TLS1_AAD,4,2 ## @OSSL_CIPHER_PARAM_AEAD_TLS1_AAD
	.comm	_PROV_R_INVALID_DATA,4,2        ## @PROV_R_INVALID_DATA
	.comm	_OSSL_CIPHER_PARAM_AEAD_TLS1_IV_FIXED,4,2 ## @OSSL_CIPHER_PARAM_AEAD_TLS1_IV_FIXED
	.comm	_PROV_R_INVALID_IVLEN,4,2       ## @PROV_R_INVALID_IVLEN
	.no_dead_strip	_chacha20_poly1305_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_poly1305_set_ctx_params
_chacha20_poly1305_set_ctx_params:      ; @chacha20_poly1305_set_ctx_params
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x23, [x0, #32]
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_26
; %bb.2:
	ldr	x8, [sp, #8]
Lloh3:
	adrp	x9, _CHACHA20_POLY1305_KEYLEN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CHACHA20_POLY1305_KEYLEN@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
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_8
; %bb.4:
	add	x1, sp, #8
	bl	_OSSL_PARAM_get_size_t
	cbz	w0, LBB0_26
; %bb.5:
	ldr	x9, [sp, #8]
Lloh9:
	adrp	x8, _PROV_R_INVALID_IV_LENGTH@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PROV_R_INVALID_IV_LENGTH@GOTPAGEOFF]
	cbz	x9, LBB0_27
; %bb.6:
Lloh11:
	adrp	x10, _CHACHA20_POLY1305_MAX_IVLEN@GOTPAGE
Lloh12:
	ldr	x10, [x10, _CHACHA20_POLY1305_MAX_IVLEN@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	cmp	x9, x10
	b.hi	LBB0_27
; %bb.7:
	str	x9, [x20]
LBB0_8:
	add	x21, x20, #24
Lloh14:
	adrp	x8, _OSSL_CIPHER_PARAM_AEAD_TAG@GOTPAGE
Lloh15:
	ldr	x8, [x8, _OSSL_CIPHER_PARAM_AEAD_TAG@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_OSSL_PARAM_locate_const
	cbz	x0, LBB0_18
; %bb.9:
	mov	x22, x0
	ldr	x8, [x0]
Lloh17:
	adrp	x9, _OSSL_PARAM_OCTET_STRING@GOTPAGE
Lloh18:
	ldr	x9, [x9, _OSSL_PARAM_OCTET_STRING@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_26
; %bb.10:
	ldr	x2, [x22, #8]
Lloh20:
	adrp	x8, _POLY1305_BLOCK_SIZE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _POLY1305_BLOCK_SIZE@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	cmp	x2, #0
	ccmp	x2, x8, #0, ne
	b.le	LBB0_13
; %bb.11:
Lloh23:
	adrp	x8, _PROV_R_INVALID_TAGLEN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _PROV_R_INVALID_TAGLEN@GOTPAGEOFF]
	b	LBB0_27
LBB0_12:
Lloh25:
	adrp	x8, _PROV_R_INVALID_KEY_LENGTH@GOTPAGE
Lloh26:
	ldr	x8, [x8, _PROV_R_INVALID_KEY_LENGTH@GOTPAGEOFF]
	b	LBB0_27
LBB0_13:
	ldr	x1, [x22, #16]
	cbz	x1, LBB0_17
; %bb.14:
	ldr	x8, [x21]
	cbz	x8, LBB0_16
; %bb.15:
Lloh27:
	adrp	x8, _PROV_R_TAG_NOT_NEEDED@GOTPAGE
Lloh28:
	ldr	x8, [x8, _PROV_R_TAG_NOT_NEEDED@GOTPAGEOFF]
	b	LBB0_27
LBB0_16:
	ldr	w0, [x20, #40]
	bl	_memcpy
	ldr	x2, [x22, #8]
LBB0_17:
	str	x2, [x20, #8]
LBB0_18:
Lloh29:
	adrp	x8, _OSSL_CIPHER_PARAM_AEAD_TLS1_AAD@GOTPAGE
Lloh30:
	ldr	x8, [x8, _OSSL_CIPHER_PARAM_AEAD_TLS1_AAD@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_OSSL_PARAM_locate_const
	cbz	x0, LBB0_22
; %bb.19:
	ldr	x8, [x0]
Lloh32:
	adrp	x9, _OSSL_PARAM_OCTET_STRING@GOTPAGE
Lloh33:
	ldr	x9, [x9, _OSSL_PARAM_OCTET_STRING@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_26
; %bb.20:
	ldr	x8, [x23]
	ldp	x2, x1, [x0, #8]
	mov	x0, x21
	blr	x8
	str	x0, [sp, #8]
	cbz	x0, LBB0_29
; %bb.21:
	str	x0, [x20, #16]
LBB0_22:
Lloh35:
	adrp	x8, _OSSL_CIPHER_PARAM_AEAD_TLS1_IV_FIXED@GOTPAGE
Lloh36:
	ldr	x8, [x8, _OSSL_CIPHER_PARAM_AEAD_TLS1_IV_FIXED@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_OSSL_PARAM_locate_const
	cbz	x0, LBB0_25
; %bb.23:
	ldr	x8, [x0]
Lloh38:
	adrp	x9, _OSSL_PARAM_OCTET_STRING@GOTPAGE
Lloh39:
	ldr	x9, [x9, _OSSL_PARAM_OCTET_STRING@GOTPAGEOFF]
Lloh40:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_26
; %bb.24:
	ldr	x8, [x23, #8]
	ldp	x2, x1, [x0, #8]
	mov	x0, x21
	blr	x8
	cbz	x0, LBB0_30
LBB0_25:
	mov	w0, #1
	b	LBB0_28
LBB0_26:
Lloh41:
	adrp	x8, _PROV_R_FAILED_TO_GET_PARAMETER@GOTPAGE
Lloh42:
	ldr	x8, [x8, _PROV_R_FAILED_TO_GET_PARAMETER@GOTPAGEOFF]
LBB0_27:
Lloh43:
	adrp	x9, _ERR_LIB_PROV@GOTPAGE
Lloh44:
	ldr	x9, [x9, _ERR_LIB_PROV@GOTPAGEOFF]
Lloh45:
	ldr	w0, [x9]
	ldr	w1, [x8]
	bl	_ERR_raise
	mov	w0, #0
LBB0_28:
	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
	add	sp, sp, #80
	ret
LBB0_29:
Lloh46:
	adrp	x8, _PROV_R_INVALID_DATA@GOTPAGE
Lloh47:
	ldr	x8, [x8, _PROV_R_INVALID_DATA@GOTPAGEOFF]
	b	LBB0_27
LBB0_30:
Lloh48:
	adrp	x8, _PROV_R_INVALID_IVLEN@GOTPAGE
Lloh49:
	ldr	x8, [x8, _PROV_R_INVALID_IVLEN@GOTPAGEOFF]
	b	LBB0_27
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh48, Lloh49
	.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_POLY1305_KEYLEN,8,3   ; @CHACHA20_POLY1305_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_POLY1305_MAX_IVLEN,8,3 ; @CHACHA20_POLY1305_MAX_IVLEN
	.comm	_PROV_R_INVALID_IV_LENGTH,4,2   ; @PROV_R_INVALID_IV_LENGTH
	.comm	_OSSL_CIPHER_PARAM_AEAD_TAG,4,2 ; @OSSL_CIPHER_PARAM_AEAD_TAG
	.comm	_OSSL_PARAM_OCTET_STRING,8,3    ; @OSSL_PARAM_OCTET_STRING
	.comm	_POLY1305_BLOCK_SIZE,8,3        ; @POLY1305_BLOCK_SIZE
	.comm	_PROV_R_INVALID_TAGLEN,4,2      ; @PROV_R_INVALID_TAGLEN
	.comm	_PROV_R_TAG_NOT_NEEDED,4,2      ; @PROV_R_TAG_NOT_NEEDED
	.comm	_OSSL_CIPHER_PARAM_AEAD_TLS1_AAD,4,2 ; @OSSL_CIPHER_PARAM_AEAD_TLS1_AAD
	.comm	_PROV_R_INVALID_DATA,4,2        ; @PROV_R_INVALID_DATA
	.comm	_OSSL_CIPHER_PARAM_AEAD_TLS1_IV_FIXED,4,2 ; @OSSL_CIPHER_PARAM_AEAD_TLS1_IV_FIXED
	.comm	_PROV_R_INVALID_IVLEN,4,2       ; @PROV_R_INVALID_IVLEN
	.no_dead_strip	_chacha20_poly1305_set_ctx_params
.subsections_via_symbols
