	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ccm_set_ctx_params             ## -- Begin function ccm_set_ctx_params
	.p2align	4, 0x90
_ccm_set_ctx_params:                    ## @ccm_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_OSSL_CIPHER_PARAM_AEAD_TAG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_OSSL_PARAM_locate_const
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	_OSSL_PARAM_OCTET_STRING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.3:
	movl	8(%rbx), %edx
	leal	-17(%rdx), %eax
	cmpl	$-13, %eax
	jb	LBB0_5
## %bb.4:
	movl	%edx, %eax
	andl	$1, %eax
	jne	LBB0_5
## %bb.6:
	movq	16(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.7:
	cmpq	$0, 32(%r14)
	je	LBB0_9
## %bb.8:
	movq	_ERR_LIB_PROV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PROV_R_TAG_NOT_NEEDED@GOTPCREL(%rip), %rax
	jmp	LBB0_24
LBB0_5:
	movq	_ERR_LIB_PROV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PROV_R_INVALID_TAGLEN@GOTPCREL(%rip), %rax
	jmp	LBB0_24
LBB0_9:
	movl	24(%r14), %edi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	movl	$1, (%r14)
	movl	8(%rbx), %edx
LBB0_10:
	movl	%edx, 4(%r14)
LBB0_11:
	movq	_OSSL_CIPHER_PARAM_AEAD_IVLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_OSSL_PARAM_locate_const
	testq	%rax, %rax
	je	LBB0_15
## %bb.12:
	leaq	-32(%rbp), %rsi
	movq	%rax, %rdi
	callq	_OSSL_PARAM_get_size_t
	testl	%eax, %eax
	je	LBB0_2
## %bb.13:
	movq	-32(%rbp), %rax
	leaq	-14(%rax), %rcx
	cmpq	$-8, %rcx
	ja	LBB0_14
LBB0_23:
	movq	_ERR_LIB_PROV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PROV_R_INVALID_IVLEN@GOTPCREL(%rip), %rax
	jmp	LBB0_24
LBB0_14:
	movl	$15, %ecx
	subq	%rax, %rcx
	movq	%rcx, 8(%r14)
LBB0_15:
	movq	_OSSL_CIPHER_PARAM_AEAD_TLS1_AAD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_OSSL_PARAM_locate_const
	testq	%rax, %rax
	je	LBB0_20
## %bb.16:
	movq	(%rax), %rcx
	movq	_OSSL_PARAM_OCTET_STRING@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_2
## %bb.17:
	movq	16(%rax), %rsi
	movl	8(%rax), %edx
	movq	%r14, %rdi
	callq	_ccm_tls_init
	movq	%rax, -32(%rbp)
	testq	%rax, %rax
	je	LBB0_18
## %bb.19:
	movq	%rax, 16(%r14)
LBB0_20:
	movq	_OSSL_CIPHER_PARAM_AEAD_TLS1_IV_FIXED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_OSSL_PARAM_locate_const
	movl	$1, %ebx
	testq	%rax, %rax
	je	LBB0_25
## %bb.21:
	movq	(%rax), %rcx
	movq	_OSSL_PARAM_OCTET_STRING@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_2
## %bb.22:
	movq	16(%rax), %rsi
	movl	8(%rax), %edx
	movq	%r14, %rdi
	callq	_ccm_tls_iv_set_fixed
	testq	%rax, %rax
	jne	LBB0_25
	jmp	LBB0_23
LBB0_2:
	movq	_ERR_LIB_PROV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PROV_R_FAILED_TO_GET_PARAMETER@GOTPCREL(%rip), %rax
LBB0_24:
	movl	(%rax), %esi
	callq	_ERR_raise
	xorl	%ebx, %ebx
LBB0_25:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	_ERR_LIB_PROV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PROV_R_INVALID_DATA@GOTPCREL(%rip), %rax
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.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	_ERR_LIB_PROV,4,2               ## @ERR_LIB_PROV
	.comm	_PROV_R_FAILED_TO_GET_PARAMETER,4,2 ## @PROV_R_FAILED_TO_GET_PARAMETER
	.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_IVLEN,4,2 ## @OSSL_CIPHER_PARAM_AEAD_IVLEN
	.comm	_PROV_R_INVALID_IVLEN,4,2       ## @PROV_R_INVALID_IVLEN
	.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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ccm_set_ctx_params             ; -- Begin function ccm_set_ctx_params
	.p2align	2
_ccm_set_ctx_params:                    ; @ccm_set_ctx_params
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _OSSL_CIPHER_PARAM_AEAD_TAG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OSSL_CIPHER_PARAM_AEAD_TAG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_OSSL_PARAM_locate_const
	cbz	x0, LBB0_9
; %bb.1:
	mov	x21, x0
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _OSSL_PARAM_OCTET_STRING@GOTPAGE
Lloh4:
	ldr	x9, [x9, _OSSL_PARAM_OCTET_STRING@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_22
; %bb.2:
	ldr	w2, [x21, #8]
	and	w8, w2, #0x1
	sub	w9, w2, #17
	cmn	w9, #13
	ccmp	w8, #0, #0, hs
	b.eq	LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _ERR_LIB_PROV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERR_LIB_PROV@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _PROV_R_INVALID_TAGLEN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PROV_R_INVALID_TAGLEN@GOTPAGEOFF]
	b	LBB0_23
LBB0_4:
	ldr	x1, [x21, #16]
	cbz	x1, LBB0_8
; %bb.5:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_7
; %bb.6:
Lloh11:
	adrp	x8, _ERR_LIB_PROV@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ERR_LIB_PROV@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x8, _PROV_R_TAG_NOT_NEEDED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PROV_R_TAG_NOT_NEEDED@GOTPAGEOFF]
	b	LBB0_23
LBB0_7:
	ldr	w0, [x19, #24]
	bl	_memcpy
	mov	w8, #1
	str	w8, [x19]
	ldr	w2, [x21, #8]
LBB0_8:
	str	w2, [x19, #4]
LBB0_9:
Lloh16:
	adrp	x8, _OSSL_CIPHER_PARAM_AEAD_IVLEN@GOTPAGE
Lloh17:
	ldr	x8, [x8, _OSSL_CIPHER_PARAM_AEAD_IVLEN@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_OSSL_PARAM_locate_const
	cbz	x0, LBB0_14
; %bb.10:
	add	x1, sp, #8
	bl	_OSSL_PARAM_get_size_t
	cbz	w0, LBB0_22
; %bb.11:
	ldr	x8, [sp, #8]
	sub	x9, x8, #14
	cmn	x9, #8
	b.hi	LBB0_13
LBB0_12:
Lloh19:
	adrp	x8, _ERR_LIB_PROV@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ERR_LIB_PROV@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
Lloh22:
	adrp	x8, _PROV_R_INVALID_IVLEN@GOTPAGE
Lloh23:
	ldr	x8, [x8, _PROV_R_INVALID_IVLEN@GOTPAGEOFF]
	b	LBB0_23
LBB0_13:
	mov	w9, #15
	sub	x8, x9, x8
	str	x8, [x19, #8]
LBB0_14:
Lloh24:
	adrp	x8, _OSSL_CIPHER_PARAM_AEAD_TLS1_AAD@GOTPAGE
Lloh25:
	ldr	x8, [x8, _OSSL_CIPHER_PARAM_AEAD_TLS1_AAD@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_OSSL_PARAM_locate_const
	cbz	x0, LBB0_18
; %bb.15:
	ldr	x8, [x0]
Lloh27:
	adrp	x9, _OSSL_PARAM_OCTET_STRING@GOTPAGE
Lloh28:
	ldr	x9, [x9, _OSSL_PARAM_OCTET_STRING@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_22
; %bb.16:
	ldr	x1, [x0, #16]
	ldr	w2, [x0, #8]
	mov	x0, x19
	bl	_ccm_tls_init
	str	x0, [sp, #8]
	cbz	x0, LBB0_25
; %bb.17:
	str	x0, [x19, #16]
LBB0_18:
Lloh30:
	adrp	x8, _OSSL_CIPHER_PARAM_AEAD_TLS1_IV_FIXED@GOTPAGE
Lloh31:
	ldr	x8, [x8, _OSSL_CIPHER_PARAM_AEAD_TLS1_IV_FIXED@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_OSSL_PARAM_locate_const
	cbz	x0, LBB0_21
; %bb.19:
	ldr	x8, [x0]
Lloh33:
	adrp	x9, _OSSL_PARAM_OCTET_STRING@GOTPAGE
Lloh34:
	ldr	x9, [x9, _OSSL_PARAM_OCTET_STRING@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_22
; %bb.20:
	ldr	x1, [x0, #16]
	ldr	w2, [x0, #8]
	mov	x0, x19
	bl	_ccm_tls_iv_set_fixed
	cbz	x0, LBB0_12
LBB0_21:
	mov	w0, #1
	b	LBB0_24
LBB0_22:
Lloh36:
	adrp	x8, _ERR_LIB_PROV@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ERR_LIB_PROV@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
Lloh39:
	adrp	x8, _PROV_R_FAILED_TO_GET_PARAMETER@GOTPAGE
Lloh40:
	ldr	x8, [x8, _PROV_R_FAILED_TO_GET_PARAMETER@GOTPAGEOFF]
LBB0_23:
	ldr	w1, [x8]
	bl	_ERR_raise
	mov	w0, #0
LBB0_24:
	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
	add	sp, sp, #64
	ret
LBB0_25:
Lloh41:
	adrp	x8, _ERR_LIB_PROV@GOTPAGE
Lloh42:
	ldr	x8, [x8, _ERR_LIB_PROV@GOTPAGEOFF]
Lloh43:
	ldr	w0, [x8]
Lloh44:
	adrp	x8, _PROV_R_INVALID_DATA@GOTPAGE
Lloh45:
	ldr	x8, [x8, _PROV_R_INVALID_DATA@GOTPAGEOFF]
	b	LBB0_23
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.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	_ERR_LIB_PROV,4,2               ; @ERR_LIB_PROV
	.comm	_PROV_R_FAILED_TO_GET_PARAMETER,4,2 ; @PROV_R_FAILED_TO_GET_PARAMETER
	.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_IVLEN,4,2 ; @OSSL_CIPHER_PARAM_AEAD_IVLEN
	.comm	_PROV_R_INVALID_IVLEN,4,2       ; @PROV_R_INVALID_IVLEN
	.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
.subsections_via_symbols
