	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rc2_get_ctx_params
_rc2_get_ctx_params:                    ## @rc2_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	%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, %r12
	callq	_cipher_generic_get_ctx_params
	xorl	%r14d, %r14d
	testl	%eax, %eax
	je	LBB0_16
## %bb.1:
	movq	_OSSL_CIPHER_PARAM_RC2_KEYBITS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_OSSL_PARAM_locate
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movl	8(%r12), %esi
	movq	%rax, %rdi
	callq	_OSSL_PARAM_set_size_t
	testl	%eax, %eax
	je	LBB0_3
LBB0_5:
	movq	_OSSL_CIPHER_PARAM_ALG_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_OSSL_PARAM_locate
	testq	%rax, %rax
	je	LBB0_15
## %bb.6:
	movq	%rax, %r15
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	leaq	-48(%rbp), %r13
	cmoveq	%rax, %r13
	movq	8(%r15), %rax
	movq	_OSSL_PARAM_OCTET_STRING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.7:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_ASN1_TYPE_new
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rax, %rbx
	movl	8(%r12), %edi
	callq	_rc2_keybits_to_magic
	movl	(%r12), %ecx
	movl	4(%r12), %edx
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_ASN1_TYPE_set_int_octetstring
	testl	%eax, %eax
	je	LBB0_10
## %bb.12:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_i2d_ASN1_TYPE
	testl	%eax, %eax
	js	LBB0_13
## %bb.14:
	movl	%eax, %eax
	movq	%rax, 16(%r15)
	movq	%rbx, %rdi
	callq	_ASN1_TYPE_free
LBB0_15:
	movl	$1, %r14d
	jmp	LBB0_16
LBB0_3:
	movq	_ERR_LIB_PROV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PROV_R_FAILED_TO_SET_PARAMETER@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %esi
	callq	_ERR_raise
LBB0_16:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_ERR_LIB_PROV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_10:
	movq	%rbx, %rdi
	callq	_ASN1_TYPE_free
	movq	_ERR_LIB_PROV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_13:
	movq	%rbx, %rdi
	callq	_ASN1_TYPE_free
	movq	_ERR_LIB_PROV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PROV_R_FAILED_TO_SET_PARAMETER@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %esi
	callq	_ERR_raise
	xorl	%r14d, %r14d
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_OSSL_CIPHER_PARAM_RC2_KEYBITS,4,2 ## @OSSL_CIPHER_PARAM_RC2_KEYBITS
	.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_ALG_ID,4,2   ## @OSSL_CIPHER_PARAM_ALG_ID
	.comm	_OSSL_PARAM_OCTET_STRING,8,3    ## @OSSL_PARAM_OCTET_STRING
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.no_dead_strip	_rc2_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 rc2_get_ctx_params
_rc2_get_ctx_params:                    ; @rc2_get_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
	bl	_cipher_generic_get_ctx_params
	cbz	w0, LBB0_15
; %bb.1:
Lloh0:
	adrp	x8, _OSSL_CIPHER_PARAM_RC2_KEYBITS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OSSL_CIPHER_PARAM_RC2_KEYBITS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_OSSL_PARAM_locate
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w1, [x19, #8]
	bl	_OSSL_PARAM_set_size_t
	cbz	w0, LBB0_13
LBB0_3:
Lloh3:
	adrp	x8, _OSSL_CIPHER_PARAM_ALG_ID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OSSL_CIPHER_PARAM_ALG_ID@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_OSSL_PARAM_locate
	cbz	x0, LBB0_9
; %bb.4:
	mov	x20, x0
	ldp	x8, x9, [x0]
	str	x8, [sp, #8]
	add	x10, sp, #8
	cmp	x8, #0
	csel	x22, xzr, x10, eq
Lloh6:
	adrp	x8, _OSSL_PARAM_OCTET_STRING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OSSL_PARAM_OCTET_STRING@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.5:
	bl	_ASN1_TYPE_new
	cbz	x0, LBB0_11
; %bb.6:
	mov	x21, x0
	ldr	w0, [x19, #8]
	bl	_rc2_keybits_to_magic
	mov	x1, x0
	ldp	w3, w2, [x19]
	mov	x0, x21
	bl	_ASN1_TYPE_set_int_octetstring
	cbz	w0, LBB0_10
; %bb.7:
	mov	x0, x21
	mov	x1, x22
	bl	_i2d_ASN1_TYPE
	tbnz	w0, #31, LBB0_12
; %bb.8:
	mov	w8, w0
	str	x8, [x20, #16]
	mov	x0, x21
	bl	_ASN1_TYPE_free
LBB0_9:
	mov	w0, #1
	b	LBB0_15
LBB0_10:
	mov	x0, x21
	bl	_ASN1_TYPE_free
LBB0_11:
Lloh9:
	adrp	x8, _ERR_LIB_PROV@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ERR_LIB_PROV@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
	b	LBB0_14
LBB0_12:
	mov	x0, x21
	bl	_ASN1_TYPE_free
LBB0_13:
Lloh14:
	adrp	x8, _ERR_LIB_PROV@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ERR_LIB_PROV@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x8, _PROV_R_FAILED_TO_SET_PARAMETER@GOTPAGE
Lloh18:
	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, #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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_OSSL_CIPHER_PARAM_RC2_KEYBITS,4,2 ; @OSSL_CIPHER_PARAM_RC2_KEYBITS
	.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_ALG_ID,4,2   ; @OSSL_CIPHER_PARAM_ALG_ID
	.comm	_OSSL_PARAM_OCTET_STRING,8,3    ; @OSSL_PARAM_OCTET_STRING
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.no_dead_strip	_rc2_get_ctx_params
.subsections_via_symbols
