	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EVP_CIPHER_asn1_to_param       ## -- Begin function EVP_CIPHER_asn1_to_param
	.p2align	4, 0x90
_EVP_CIPHER_asn1_to_param:              ## @EVP_CIPHER_asn1_to_param
	.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, %r14
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	*%rcx
LBB0_8:
	movl	%eax, %ebx
	testl	%eax, %eax
	jg	LBB0_14
## %bb.9:
	movq	_EVP_F_EVP_CIPHER_ASN1_TO_PARAM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	cmpl	$-2, %ebx
	je	LBB0_12
## %bb.10:
	movq	_EVP_R_CIPHER_PARAMETER_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_2:
	movq	_EVP_CIPH_FLAG_DEFAULT_ASN1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 8(%rax)
	je	LBB0_3
## %bb.4:
	movq	%r15, %rdi
	callq	_EVP_CIPHER_CTX_mode
                                        ## kill: def $eax killed $eax def $rax
	leal	-130(%rax), %ecx
	cmpl	$3, %ecx
	jb	LBB0_11
## %bb.5:
	cmpl	$128, %eax
	je	LBB0_11
## %bb.6:
	movl	$1, %ebx
	cmpl	$129, %eax
	je	LBB0_14
## %bb.7:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_EVP_CIPHER_get_asn1_iv
	jmp	LBB0_8
LBB0_11:
	movq	_EVP_F_EVP_CIPHER_ASN1_TO_PARAM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
LBB0_12:
	movq	_EVP_R_UNSUPPORTED_CIPHER@GOTPCREL(%rip), %rax
	movl	$-2, %ebx
	jmp	LBB0_13
LBB0_3:
	movq	_EVP_F_EVP_CIPHER_ASN1_TO_PARAM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EVP_R_CIPHER_PARAMETER_ERROR@GOTPCREL(%rip), %rax
	movl	$-1, %ebx
LBB0_13:
	movl	(%rax), %esi
	callq	_EVPerr
LBB0_14:
	testl	%ebx, %ebx
	movl	$-1, %eax
	cmovnsl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EVP_CIPH_FLAG_DEFAULT_ASN1,4,2 ## @EVP_CIPH_FLAG_DEFAULT_ASN1
	.comm	_EVP_F_EVP_CIPHER_ASN1_TO_PARAM,4,2 ## @EVP_F_EVP_CIPHER_ASN1_TO_PARAM
	.comm	_EVP_R_UNSUPPORTED_CIPHER,4,2   ## @EVP_R_UNSUPPORTED_CIPHER
	.comm	_EVP_R_CIPHER_PARAMETER_ERROR,4,2 ## @EVP_R_CIPHER_PARAMETER_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EVP_CIPHER_asn1_to_param       ; -- Begin function EVP_CIPHER_asn1_to_param
	.p2align	2
_EVP_CIPHER_asn1_to_param:              ; @EVP_CIPHER_asn1_to_param
	.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	x19, x1
	mov	x20, x0
	ldr	x9, [x0]
	ldr	x8, [x9]
	cbz	x8, LBB0_5
; %bb.1:
	mov	x0, x20
	mov	x1, x19
	blr	x8
LBB0_2:
	mov	x19, x0
	cmp	w0, #1
	b.ge	LBB0_14
; %bb.3:
Lloh0:
	adrp	x8, _EVP_F_EVP_CIPHER_ASN1_TO_PARAM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EVP_F_EVP_CIPHER_ASN1_TO_PARAM@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	cmn	w19, #2
	b.eq	LBB0_11
; %bb.4:
Lloh3:
	adrp	x8, _EVP_R_CIPHER_PARAMETER_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EVP_R_CIPHER_PARAMETER_ERROR@GOTPAGEOFF]
	b	LBB0_13
LBB0_5:
	ldr	w8, [x9, #8]
Lloh5:
	adrp	x9, _EVP_CIPH_FLAG_DEFAULT_ASN1@GOTPAGE
Lloh6:
	ldr	x9, [x9, _EVP_CIPH_FLAG_DEFAULT_ASN1@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.6:
	mov	x0, x20
	bl	_EVP_CIPHER_CTX_mode
	sub	w8, w0, #130
	cmp	w8, #3
	b.lo	LBB0_10
; %bb.7:
	cmp	w0, #128
	b.eq	LBB0_10
; %bb.8:
	cmp	w0, #129
	b.ne	LBB0_15
; %bb.9:
	mov	w19, #1
	b	LBB0_14
LBB0_10:
Lloh8:
	adrp	x8, _EVP_F_EVP_CIPHER_ASN1_TO_PARAM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EVP_F_EVP_CIPHER_ASN1_TO_PARAM@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
LBB0_11:
Lloh11:
	adrp	x8, _EVP_R_UNSUPPORTED_CIPHER@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EVP_R_UNSUPPORTED_CIPHER@GOTPAGEOFF]
	mov	w19, #-2
	b	LBB0_13
LBB0_12:
Lloh13:
	adrp	x8, _EVP_F_EVP_CIPHER_ASN1_TO_PARAM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EVP_F_EVP_CIPHER_ASN1_TO_PARAM@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x8, _EVP_R_CIPHER_PARAMETER_ERROR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EVP_R_CIPHER_PARAMETER_ERROR@GOTPAGEOFF]
	mov	w19, #-1
LBB0_13:
	ldr	w1, [x8]
	bl	_EVPerr
LBB0_14:
	cmp	w19, #0
	csinv	w0, w19, wzr, ge
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_15:
	mov	x0, x20
	mov	x1, x19
	bl	_EVP_CIPHER_get_asn1_iv
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_EVP_CIPH_FLAG_DEFAULT_ASN1,4,2 ; @EVP_CIPH_FLAG_DEFAULT_ASN1
	.comm	_EVP_F_EVP_CIPHER_ASN1_TO_PARAM,4,2 ; @EVP_F_EVP_CIPHER_ASN1_TO_PARAM
	.comm	_EVP_R_UNSUPPORTED_CIPHER,4,2   ; @EVP_R_UNSUPPORTED_CIPHER
	.comm	_EVP_R_CIPHER_PARAMETER_ERROR,4,2 ; @EVP_R_CIPHER_PARAMETER_ERROR
.subsections_via_symbols
