	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function chacha20_poly1305_get_ctx_params
_chacha20_poly1305_get_ctx_params:      ## @chacha20_poly1305_get_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_OSSL_CIPHER_PARAM_IVLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_OSSL_PARAM_locate
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movl	16(%r14), %esi
	movq	%rax, %rdi
	callq	_OSSL_PARAM_set_size_t
	testl	%eax, %eax
	je	LBB0_2
LBB0_4:
	movq	_OSSL_CIPHER_PARAM_KEYLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_OSSL_PARAM_locate
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_CHACHA20_POLY1305_KEYLEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_OSSL_PARAM_set_size_t
	testl	%eax, %eax
	je	LBB0_2
LBB0_6:
	movq	_OSSL_CIPHER_PARAM_AEAD_TAGLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_OSSL_PARAM_locate
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movl	12(%r14), %esi
	movq	%rax, %rdi
	callq	_OSSL_PARAM_set_size_t
	testl	%eax, %eax
	je	LBB0_2
LBB0_8:
	movq	_OSSL_CIPHER_PARAM_AEAD_TLS1_AAD_PAD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_OSSL_PARAM_locate
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movl	8(%r14), %esi
	movq	%rax, %rdi
	callq	_OSSL_PARAM_set_size_t
	testl	%eax, %eax
	je	LBB0_2
LBB0_10:
	movq	_OSSL_CIPHER_PARAM_AEAD_TAG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_OSSL_PARAM_locate
	movl	$1, %ebx
	testq	%rax, %rax
	je	LBB0_18
## %bb.11:
	movq	(%rax), %rcx
	movq	_OSSL_PARAM_OCTET_STRING@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_2
## %bb.12:
	cmpl	$0, 4(%r14)
	je	LBB0_13
## %bb.14:
	movq	8(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_16
## %bb.15:
	movq	_POLY1305_BLOCK_SIZE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	jg	LBB0_16
## %bb.17:
	movl	16(%rax), %edi
	movl	(%r14), %esi
	callq	_memcpy
	jmp	LBB0_18
LBB0_2:
	movq	_ERR_LIB_PROV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PROV_R_FAILED_TO_SET_PARAMETER@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	callq	_ERR_raise
	xorl	%ebx, %ebx
LBB0_18:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_13:
	movq	_ERR_LIB_PROV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PROV_R_TAG_NOTSET@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_16:
	movq	_ERR_LIB_PROV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PROV_R_INVALID_TAGLEN@GOTPCREL(%rip), %rax
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_OSSL_CIPHER_PARAM_IVLEN,4,2    ## @OSSL_CIPHER_PARAM_IVLEN
	.comm	_ERR_LIB_PROV,4,2               ## @ERR_LIB_PROV
	.comm	_PROV_R_FAILED_TO_SET_PARAMETER,4,2 ## @PROV_R_FAILED_TO_SET_PARAMETER
	.comm	_OSSL_CIPHER_PARAM_KEYLEN,4,2   ## @OSSL_CIPHER_PARAM_KEYLEN
	.comm	_CHACHA20_POLY1305_KEYLEN,4,2   ## @CHACHA20_POLY1305_KEYLEN
	.comm	_OSSL_CIPHER_PARAM_AEAD_TAGLEN,4,2 ## @OSSL_CIPHER_PARAM_AEAD_TAGLEN
	.comm	_OSSL_CIPHER_PARAM_AEAD_TLS1_AAD_PAD,4,2 ## @OSSL_CIPHER_PARAM_AEAD_TLS1_AAD_PAD
	.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	_PROV_R_TAG_NOTSET,4,2          ## @PROV_R_TAG_NOTSET
	.comm	_POLY1305_BLOCK_SIZE,8,3        ## @POLY1305_BLOCK_SIZE
	.comm	_PROV_R_INVALID_TAGLEN,4,2      ## @PROV_R_INVALID_TAGLEN
	.no_dead_strip	_chacha20_poly1305_get_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_get_ctx_params
_chacha20_poly1305_get_ctx_params:      ; @chacha20_poly1305_get_ctx_params
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _OSSL_CIPHER_PARAM_IVLEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OSSL_CIPHER_PARAM_IVLEN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_OSSL_PARAM_locate
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w1, [x19, #16]
	bl	_OSSL_PARAM_set_size_t
	cbz	w0, LBB0_13
LBB0_2:
Lloh3:
	adrp	x8, _OSSL_CIPHER_PARAM_KEYLEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OSSL_CIPHER_PARAM_KEYLEN@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_OSSL_PARAM_locate
	cbz	x0, LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _CHACHA20_POLY1305_KEYLEN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CHACHA20_POLY1305_KEYLEN@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_OSSL_PARAM_set_size_t
	cbz	w0, LBB0_13
LBB0_4:
Lloh9:
	adrp	x8, _OSSL_CIPHER_PARAM_AEAD_TAGLEN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _OSSL_CIPHER_PARAM_AEAD_TAGLEN@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_OSSL_PARAM_locate
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w1, [x19, #12]
	bl	_OSSL_PARAM_set_size_t
	cbz	w0, LBB0_13
LBB0_6:
Lloh12:
	adrp	x8, _OSSL_CIPHER_PARAM_AEAD_TLS1_AAD_PAD@GOTPAGE
Lloh13:
	ldr	x8, [x8, _OSSL_CIPHER_PARAM_AEAD_TLS1_AAD_PAD@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_OSSL_PARAM_locate
	cbz	x0, LBB0_8
; %bb.7:
	ldr	w1, [x19, #8]
	bl	_OSSL_PARAM_set_size_t
	cbz	w0, LBB0_13
LBB0_8:
Lloh15:
	adrp	x8, _OSSL_CIPHER_PARAM_AEAD_TAG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _OSSL_CIPHER_PARAM_AEAD_TAG@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_OSSL_PARAM_locate
	cbz	x0, LBB0_18
; %bb.9:
	ldr	x8, [x0]
Lloh18:
	adrp	x9, _OSSL_PARAM_OCTET_STRING@GOTPAGE
Lloh19:
	ldr	x9, [x9, _OSSL_PARAM_OCTET_STRING@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.10:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_16
; %bb.11:
	ldr	x2, [x0, #8]
Lloh21:
	adrp	x8, _POLY1305_BLOCK_SIZE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _POLY1305_BLOCK_SIZE@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	cmp	x2, #0
	ccmp	x2, x8, #0, ne
	b.le	LBB0_17
; %bb.12:
Lloh24:
	adrp	x8, _ERR_LIB_PROV@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ERR_LIB_PROV@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
Lloh27:
	adrp	x8, _PROV_R_INVALID_TAGLEN@GOTPAGE
Lloh28:
	ldr	x8, [x8, _PROV_R_INVALID_TAGLEN@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
Lloh29:
	adrp	x8, _ERR_LIB_PROV@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ERR_LIB_PROV@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
Lloh32:
	adrp	x8, _PROV_R_FAILED_TO_SET_PARAMETER@GOTPAGE
Lloh33:
	ldr	x8, [x8, _PROV_R_FAILED_TO_SET_PARAMETER@GOTPAGEOFF]
LBB0_14:
	ldr	w1, [x8]
	bl	_ERR_raise
	mov	w0, #0
LBB0_15:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_16:
Lloh34:
	adrp	x8, _ERR_LIB_PROV@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ERR_LIB_PROV@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
Lloh37:
	adrp	x8, _PROV_R_TAG_NOTSET@GOTPAGE
Lloh38:
	ldr	x8, [x8, _PROV_R_TAG_NOTSET@GOTPAGEOFF]
	b	LBB0_14
LBB0_17:
	ldr	w0, [x0, #16]
	ldr	w1, [x19]
	bl	_memcpy
LBB0_18:
	mov	w0, #1
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_OSSL_CIPHER_PARAM_IVLEN,4,2    ; @OSSL_CIPHER_PARAM_IVLEN
	.comm	_ERR_LIB_PROV,4,2               ; @ERR_LIB_PROV
	.comm	_PROV_R_FAILED_TO_SET_PARAMETER,4,2 ; @PROV_R_FAILED_TO_SET_PARAMETER
	.comm	_OSSL_CIPHER_PARAM_KEYLEN,4,2   ; @OSSL_CIPHER_PARAM_KEYLEN
	.comm	_CHACHA20_POLY1305_KEYLEN,4,2   ; @CHACHA20_POLY1305_KEYLEN
	.comm	_OSSL_CIPHER_PARAM_AEAD_TAGLEN,4,2 ; @OSSL_CIPHER_PARAM_AEAD_TAGLEN
	.comm	_OSSL_CIPHER_PARAM_AEAD_TLS1_AAD_PAD,4,2 ; @OSSL_CIPHER_PARAM_AEAD_TLS1_AAD_PAD
	.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	_PROV_R_TAG_NOTSET,4,2          ; @PROV_R_TAG_NOTSET
	.comm	_POLY1305_BLOCK_SIZE,8,3        ; @POLY1305_BLOCK_SIZE
	.comm	_PROV_R_INVALID_TAGLEN,4,2      ; @PROV_R_INVALID_TAGLEN
	.no_dead_strip	_chacha20_poly1305_get_ctx_params
.subsections_via_symbols
