	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aes_ocb_set_ctx_params
_aes_ocb_set_ctx_params:                ## @aes_ocb_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
	subq	$24, %rsp
	.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), %rcx
	movq	_OSSL_PARAM_OCTET_STRING@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_2
## %bb.5:
	movq	8(%rax), %rdx
	movq	16(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.8:
	xorl	%ebx, %ebx
	cmpq	(%r14), %rdx
	jne	LBB0_4
## %bb.9:
	cmpq	$0, 24(%r14)
	jne	LBB0_4
## %bb.10:
	movl	32(%r14), %edi
	callq	_memcpy
	jmp	LBB0_11
LBB0_6:
	movq	_OCB_MAX_TAG_LEN@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpq	(%rax), %rdx
	jg	LBB0_4
## %bb.7:
	movq	%rdx, (%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_16
## %bb.12:
	leaq	-40(%rbp), %rsi
	movq	%rax, %rdi
	callq	_OSSL_PARAM_get_size_t
	testl	%eax, %eax
	je	LBB0_2
## %bb.13:
	movq	-40(%rbp), %rax
	movq	_OCB_MIN_IV_LEN@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	jb	LBB0_4
## %bb.14:
	movq	_OCB_MAX_IV_LEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	ja	LBB0_4
## %bb.15:
	movq	%rax, 8(%r14)
LBB0_16:
	movq	_OSSL_CIPHER_PARAM_KEYLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_OSSL_PARAM_locate_const
	movl	$1, %ebx
	testq	%rax, %rax
	je	LBB0_4
## %bb.17:
	leaq	-32(%rbp), %rsi
	movq	%rax, %rdi
	callq	_OSSL_PARAM_get_size_t
	testl	%eax, %eax
	je	LBB0_2
## %bb.18:
	movq	16(%r14), %rax
	cmpq	-32(%rbp), %rax
	je	LBB0_4
## %bb.19:
	movq	_ERR_LIB_PROV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PROV_R_INVALID_KEY_LENGTH@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	movq	_ERR_LIB_PROV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PROV_R_FAILED_TO_GET_PARAMETER@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	callq	_ERR_raise
	xorl	%ebx, %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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	_OCB_MAX_TAG_LEN,8,3            ## @OCB_MAX_TAG_LEN
	.comm	_OSSL_CIPHER_PARAM_AEAD_IVLEN,4,2 ## @OSSL_CIPHER_PARAM_AEAD_IVLEN
	.comm	_OCB_MIN_IV_LEN,8,3             ## @OCB_MIN_IV_LEN
	.comm	_OCB_MAX_IV_LEN,8,3             ## @OCB_MAX_IV_LEN
	.comm	_OSSL_CIPHER_PARAM_KEYLEN,4,2   ## @OSSL_CIPHER_PARAM_KEYLEN
	.comm	_PROV_R_INVALID_KEY_LENGTH,4,2  ## @PROV_R_INVALID_KEY_LENGTH
	.no_dead_strip	_aes_ocb_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 aes_ocb_set_ctx_params
_aes_ocb_set_ctx_params:                ; @aes_ocb_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	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_8
; %bb.1:
	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_16
; %bb.2:
	ldp	x2, x1, [x0, #8]
	cbz	x1, LBB0_6
; %bb.3:
	ldr	x8, [x19]
	cmp	x2, x8
	b.ne	LBB0_18
; %bb.4:
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_18
; %bb.5:
	ldr	w0, [x19, #32]
	bl	_memcpy
	b	LBB0_8
LBB0_6:
Lloh6:
	adrp	x8, _OCB_MAX_TAG_LEN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OCB_MAX_TAG_LEN@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x2, x8
	b.gt	LBB0_18
; %bb.7:
	str	x2, [x19]
LBB0_8:
Lloh9:
	adrp	x8, _OSSL_CIPHER_PARAM_AEAD_IVLEN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _OSSL_CIPHER_PARAM_AEAD_IVLEN@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_OSSL_PARAM_locate_const
	cbz	x0, LBB0_12
; %bb.9:
	add	x1, sp, #8
	bl	_OSSL_PARAM_get_size_t
	cbz	w0, LBB0_16
; %bb.10:
	ldr	x8, [sp, #8]
Lloh12:
	adrp	x9, _OCB_MIN_IV_LEN@GOTPAGE
Lloh13:
	ldr	x9, [x9, _OCB_MIN_IV_LEN@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
Lloh15:
	adrp	x10, _OCB_MAX_IV_LEN@GOTPAGE
Lloh16:
	ldr	x10, [x10, _OCB_MAX_IV_LEN@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #2, hs
	b.hi	LBB0_18
; %bb.11:
	str	x8, [x19, #8]
LBB0_12:
Lloh18:
	adrp	x8, _OSSL_CIPHER_PARAM_KEYLEN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _OSSL_CIPHER_PARAM_KEYLEN@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_OSSL_PARAM_locate_const
	cbz	x0, LBB0_15
; %bb.13:
	mov	x1, sp
	bl	_OSSL_PARAM_get_size_t
	cbz	w0, LBB0_16
; %bb.14:
	ldr	x8, [x19, #16]
	ldr	x9, [sp]
	cmp	x8, x9
	b.ne	LBB0_20
LBB0_15:
	mov	w0, #1
	b	LBB0_19
LBB0_16:
Lloh21:
	adrp	x8, _ERR_LIB_PROV@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ERR_LIB_PROV@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
Lloh24:
	adrp	x8, _PROV_R_FAILED_TO_GET_PARAMETER@GOTPAGE
Lloh25:
	ldr	x8, [x8, _PROV_R_FAILED_TO_GET_PARAMETER@GOTPAGEOFF]
LBB0_17:
	ldr	w1, [x8]
	bl	_ERR_raise
LBB0_18:
	mov	w0, #0
LBB0_19:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_20:
Lloh26:
	adrp	x8, _ERR_LIB_PROV@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ERR_LIB_PROV@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
Lloh29:
	adrp	x8, _PROV_R_INVALID_KEY_LENGTH@GOTPAGE
Lloh30:
	ldr	x8, [x8, _PROV_R_INVALID_KEY_LENGTH@GOTPAGEOFF]
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.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	_OCB_MAX_TAG_LEN,8,3            ; @OCB_MAX_TAG_LEN
	.comm	_OSSL_CIPHER_PARAM_AEAD_IVLEN,4,2 ; @OSSL_CIPHER_PARAM_AEAD_IVLEN
	.comm	_OCB_MIN_IV_LEN,8,3             ; @OCB_MIN_IV_LEN
	.comm	_OCB_MAX_IV_LEN,8,3             ; @OCB_MAX_IV_LEN
	.comm	_OSSL_CIPHER_PARAM_KEYLEN,4,2   ; @OSSL_CIPHER_PARAM_KEYLEN
	.comm	_PROV_R_INVALID_KEY_LENGTH,4,2  ; @PROV_R_INVALID_KEY_LENGTH
	.no_dead_strip	_aes_ocb_set_ctx_params
.subsections_via_symbols
