	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EVP_CIPHER_param_to_asn1       ## -- Begin function EVP_CIPHER_param_to_asn1
	.p2align	4, 0x90
_EVP_CIPHER_param_to_asn1:              ## @EVP_CIPHER_param_to_asn1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	*%rcx
LBB0_10:
	movl	%eax, %ebx
	testl	%eax, %eax
	jg	LBB0_16
## %bb.11:
	movq	_EVP_F_EVP_CIPHER_PARAM_TO_ASN1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	cmpl	$-2, %ebx
	je	LBB0_14
## %bb.12:
	movq	_EVP_R_CIPHER_PARAMETER_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_2:
	movq	_EVP_CIPH_FLAG_DEFAULT_ASN1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 8(%rax)
	je	LBB0_3
## %bb.4:
	movq	%rbx, %rdi
	callq	_EVP_CIPHER_CTX_mode
                                        ## kill: def $eax killed $eax def $rax
	leal	-130(%rax), %ecx
	cmpl	$3, %ecx
	jb	LBB0_13
## %bb.5:
	cmpl	$128, %eax
	je	LBB0_13
## %bb.6:
	movq	%rbx, %rdi
	cmpl	$129, %eax
	jne	LBB0_9
## %bb.7:
	callq	_EVP_CIPHER_CTX_nid
	movq	_NID_id_smime_alg_CMS3DESwrap@GOTPCREL(%rip), %rcx
	movl	$1, %ebx
	cmpl	(%rcx), %eax
	jne	LBB0_16
## %bb.8:
	movq	_V_ASN1_NULL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_ASN1_TYPE_set
	jmp	LBB0_16
LBB0_13:
	movq	_EVP_F_EVP_CIPHER_PARAM_TO_ASN1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
LBB0_14:
	movq	_ASN1_R_UNSUPPORTED_CIPHER@GOTPCREL(%rip), %rax
	movl	$-2, %ebx
	jmp	LBB0_15
LBB0_3:
	movq	_EVP_F_EVP_CIPHER_PARAM_TO_ASN1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EVP_R_CIPHER_PARAMETER_ERROR@GOTPCREL(%rip), %rax
	movl	$-1, %ebx
LBB0_15:
	movl	(%rax), %esi
	callq	_EVPerr
LBB0_16:
	testl	%ebx, %ebx
	movl	$-1, %eax
	cmovnsl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_9:
	movq	%r14, %rsi
	callq	_EVP_CIPHER_set_asn1_iv
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_EVP_CIPH_FLAG_DEFAULT_ASN1,4,2 ## @EVP_CIPH_FLAG_DEFAULT_ASN1
	.comm	_NID_id_smime_alg_CMS3DESwrap,4,2 ## @NID_id_smime_alg_CMS3DESwrap
	.comm	_V_ASN1_NULL,4,2                ## @V_ASN1_NULL
	.comm	_EVP_F_EVP_CIPHER_PARAM_TO_ASN1,4,2 ## @EVP_F_EVP_CIPHER_PARAM_TO_ASN1
	.comm	_ASN1_R_UNSUPPORTED_CIPHER,4,2  ## @ASN1_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_param_to_asn1       ; -- Begin function EVP_CIPHER_param_to_asn1
	.p2align	2
_EVP_CIPHER_param_to_asn1:              ; @EVP_CIPHER_param_to_asn1
	.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_15
; %bb.3:
Lloh0:
	adrp	x8, _EVP_F_EVP_CIPHER_PARAM_TO_ASN1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EVP_F_EVP_CIPHER_PARAM_TO_ASN1@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	cmn	w19, #2
	b.eq	LBB0_12
; %bb.4:
Lloh3:
	adrp	x8, _EVP_R_CIPHER_PARAMETER_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EVP_R_CIPHER_PARAMETER_ERROR@GOTPAGEOFF]
	b	LBB0_14
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_13
; %bb.6:
	mov	x0, x20
	bl	_EVP_CIPHER_CTX_mode
	sub	w8, w0, #130
	cmp	w8, #3
	b.lo	LBB0_11
; %bb.7:
	cmp	w0, #128
	b.eq	LBB0_11
; %bb.8:
	cmp	w0, #129
	b.ne	LBB0_16
; %bb.9:
	mov	x0, x20
	bl	_EVP_CIPHER_CTX_nid
Lloh8:
	adrp	x8, _NID_id_smime_alg_CMS3DESwrap@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NID_id_smime_alg_CMS3DESwrap@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_17
; %bb.10:
Lloh11:
	adrp	x8, _V_ASN1_NULL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _V_ASN1_NULL@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	bl	_ASN1_TYPE_set
	mov	w19, #1
	b	LBB0_15
LBB0_11:
Lloh14:
	adrp	x8, _EVP_F_EVP_CIPHER_PARAM_TO_ASN1@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EVP_F_EVP_CIPHER_PARAM_TO_ASN1@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
LBB0_12:
Lloh17:
	adrp	x8, _ASN1_R_UNSUPPORTED_CIPHER@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ASN1_R_UNSUPPORTED_CIPHER@GOTPAGEOFF]
	mov	w19, #-2
	b	LBB0_14
LBB0_13:
Lloh19:
	adrp	x8, _EVP_F_EVP_CIPHER_PARAM_TO_ASN1@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EVP_F_EVP_CIPHER_PARAM_TO_ASN1@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
Lloh22:
	adrp	x8, _EVP_R_CIPHER_PARAMETER_ERROR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EVP_R_CIPHER_PARAMETER_ERROR@GOTPAGEOFF]
	mov	w19, #-1
LBB0_14:
	ldr	w1, [x8]
	bl	_EVPerr
LBB0_15:
	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_16:
	mov	x0, x20
	mov	x1, x19
	bl	_EVP_CIPHER_set_asn1_iv
	b	LBB0_2
LBB0_17:
	mov	w19, #1
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_EVP_CIPH_FLAG_DEFAULT_ASN1,4,2 ; @EVP_CIPH_FLAG_DEFAULT_ASN1
	.comm	_NID_id_smime_alg_CMS3DESwrap,4,2 ; @NID_id_smime_alg_CMS3DESwrap
	.comm	_V_ASN1_NULL,4,2                ; @V_ASN1_NULL
	.comm	_EVP_F_EVP_CIPHER_PARAM_TO_ASN1,4,2 ; @EVP_F_EVP_CIPHER_PARAM_TO_ASN1
	.comm	_ASN1_R_UNSUPPORTED_CIPHER,4,2  ; @ASN1_R_UNSUPPORTED_CIPHER
	.comm	_EVP_R_CIPHER_PARAMETER_ERROR,4,2 ; @EVP_R_CIPHER_PARAMETER_ERROR
.subsections_via_symbols
