	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rc2_get_asn1_type_and_iv
_rc2_get_asn1_type_and_iv:              ## @rc2_get_asn1_type_and_iv
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	$0, -56(%rbp)
	movq	_EVP_MAX_IV_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	testq	%r12, %r12
	je	LBB0_7
## %bb.1:
	movq	%r14, %rdi
	callq	_EVP_CIPHER_CTX_iv_length
	movl	%eax, %r13d
	xorl	%edi, %edi
	cmpl	%ebx, %eax
	setbe	%dil
	callq	_OPENSSL_assert
	leaq	-56(%rbp), %rsi
	movq	%r12, %rdi
	movq	%r15, %rdx
	movl	%r13d, %ecx
	callq	_ASN1_TYPE_get_int_octetstring
	cmpl	%r13d, %eax
	jne	LBB0_11
## %bb.2:
	movl	-56(%rbp), %edi
	callq	_rc2_magic_to_meth
	testl	%eax, %eax
	je	LBB0_11
## %bb.3:
	movl	%eax, %r12d
	testl	%r13d, %r13d
	jle	LBB0_5
## %bb.4:
	movl	$-1, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%r15, %r8
	movl	$-1, %r9d
	callq	_EVP_CipherInit_ex
	testl	%eax, %eax
	je	LBB0_12
LBB0_5:
	movq	_EVP_CTRL_SET_RC2_KEY_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r12d, %edx
	xorl	%ecx, %ecx
	callq	_EVP_CIPHER_CTX_ctrl
	testq	%rax, %rax
	jle	LBB0_11
## %bb.6:
	leal	7(%r12), %esi
	testl	%r12d, %r12d
	cmovnsl	%r12d, %esi
	sarl	$3, %esi
	movq	%r14, %rdi
	callq	_EVP_CIPHER_CTX_set_key_length
	movl	$-1, %ebx
	testq	%rax, %rax
	jg	LBB0_8
	jmp	LBB0_12
LBB0_11:
	movl	$-1, %ebx
	jmp	LBB0_12
LBB0_7:
	xorl	%r13d, %r13d
LBB0_8:
	movl	%r13d, %ebx
LBB0_12:
	movq	-64(%rbp), %rsp                 ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EVP_MAX_IV_LENGTH,4,2          ## @EVP_MAX_IV_LENGTH
	.comm	_EVP_CTRL_SET_RC2_KEY_BITS,4,2  ## @EVP_CTRL_SET_RC2_KEY_BITS
	.no_dead_strip	_rc2_get_asn1_type_and_iv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rc2_get_asn1_type_and_iv
_rc2_get_asn1_type_and_iv:              ; @rc2_get_asn1_type_and_iv
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #16
	mov	x22, x1
	mov	x20, x0
	mov	x24, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	stur	xzr, [x29, #-64]
Lloh3:
	adrp	x8, _EVP_MAX_IV_LENGTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EVP_MAX_IV_LENGTH@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	mov	x9, x23
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x23, #15
	and	x9, x9, #0x1fffffff0
	sub	x21, x8, x9
	mov	sp, x21
	cbz	x1, LBB0_8
; %bb.1:
	mov	x0, x20
	bl	_EVP_CIPHER_CTX_iv_length
	mov	x19, x0
	cmp	w0, w23
	cset	w0, ls
	bl	_OPENSSL_assert
	sub	x1, x29, #64
	mov	x0, x22
	mov	x2, x21
	mov	x3, x19
	bl	_ASN1_TYPE_get_int_octetstring
	cmp	w0, w19
	b.ne	LBB0_7
; %bb.2:
	ldur	w0, [x29, #-64]
	bl	_rc2_magic_to_meth
	cbz	w0, LBB0_7
; %bb.3:
	mov	x22, x0
	cmp	w19, #1
	b.lt	LBB0_5
; %bb.4:
	mov	x0, x20
	mov	x1, #0
	mov	x2, #0
	mov	x3, #0
	mov	x4, x21
	mov	w5, #-1
	bl	_EVP_CipherInit_ex
	cbz	w0, LBB0_7
LBB0_5:
Lloh8:
	adrp	x8, _EVP_CTRL_SET_RC2_KEY_BITS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EVP_CTRL_SET_RC2_KEY_BITS@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x22
	mov	x3, #0
	bl	_EVP_CIPHER_CTX_ctrl
	cmp	x0, #1
	b.lt	LBB0_7
; %bb.6:
	add	w8, w22, #7
	cmp	w22, #0
	csel	w8, w8, w22, lt
	asr	w1, w8, #3
	mov	x0, x20
	bl	_EVP_CIPHER_CTX_set_key_length
	cmp	x0, #1
	b.ge	LBB0_9
LBB0_7:
	mov	w19, #-1
	b	LBB0_9
LBB0_8:
	mov	w19, #0
LBB0_9:
	mov	sp, x24
	ldur	x8, [x29, #-56]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	mov	x0, x19
	sub	sp, x29, #48
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EVP_MAX_IV_LENGTH,4,2          ; @EVP_MAX_IV_LENGTH
	.comm	_EVP_CTRL_SET_RC2_KEY_BITS,4,2  ; @EVP_CTRL_SET_RC2_KEY_BITS
	.no_dead_strip	_rc2_get_asn1_type_and_iv
.subsections_via_symbols
