	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eckey_type2param
_eckey_type2param:                      ## @eckey_type2param
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	_V_ASN1_SEQUENCE@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	jne	LBB0_3
## %bb.1:
	movq	(%r14), %rax
	movq	%rax, -24(%rbp)
	movl	8(%r14), %edx
	leaq	-24(%rbp), %rsi
	xorl	%edi, %edi
	callq	_d2i_ECParameters
	testq	%rax, %rax
	je	LBB0_10
## %bb.2:
	movq	%rax, %rbx
	jmp	LBB0_13
LBB0_3:
	movq	_V_ASN1_OBJECT@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	jne	LBB0_10
## %bb.4:
	xorl	%eax, %eax
	callq	_EC_KEY_new
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_OBJ_obj2nid
	movl	%eax, %edi
	callq	_EC_GROUP_new_by_curve_name
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %r14
	movq	_OPENSSL_EC_NAMED_CURVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_EC_GROUP_set_asn1_flag
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_EC_KEY_set_group
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	movq	%r14, %rdi
	callq	_EC_GROUP_free
	jmp	LBB0_13
LBB0_10:
	movq	_EC_F_ECKEY_TYPE2PARAM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EC_R_DECODE_ERROR@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %esi
	callq	_ECerr
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
LBB0_12:
	movq	%rbx, %rdi
	callq	_EC_KEY_free
	movq	%r14, %rdi
	callq	_EC_GROUP_free
	xorl	%ebx, %ebx
LBB0_13:
	movq	%rbx, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movq	_EC_F_ECKEY_TYPE2PARAM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_7:
	xorl	%r14d, %r14d
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_V_ASN1_SEQUENCE,4,2            ## @V_ASN1_SEQUENCE
	.comm	_EC_F_ECKEY_TYPE2PARAM,4,2      ## @EC_F_ECKEY_TYPE2PARAM
	.comm	_EC_R_DECODE_ERROR,4,2          ## @EC_R_DECODE_ERROR
	.comm	_V_ASN1_OBJECT,4,2              ## @V_ASN1_OBJECT
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.comm	_OPENSSL_EC_NAMED_CURVE,4,2     ## @OPENSSL_EC_NAMED_CURVE
	.no_dead_strip	_eckey_type2param
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eckey_type2param
_eckey_type2param:                      ; @eckey_type2param
	.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
Lloh0:
	adrp	x8, _V_ASN1_SEQUENCE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V_ASN1_SEQUENCE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w0
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x20]
	str	x8, [sp, #8]
	ldr	w2, [x20, #8]
	add	x1, sp, #8
	mov	x0, #0
	bl	_d2i_ECParameters
	mov	x19, x0
	cbnz	x0, LBB0_12
; %bb.2:
Lloh3:
	adrp	x8, _EC_F_ECKEY_TYPE2PARAM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EC_F_ECKEY_TYPE2PARAM@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _EC_R_DECODE_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EC_R_DECODE_ERROR@GOTPAGEOFF]
	b	LBB0_10
LBB0_3:
Lloh8:
	adrp	x8, _V_ASN1_OBJECT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _V_ASN1_OBJECT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w8, w0
	b.ne	LBB0_8
; %bb.4:
	bl	_EC_KEY_new
	mov	x19, x0
	cbz	x0, LBB0_9
; %bb.5:
	mov	x0, x20
	bl	_OBJ_obj2nid
	bl	_EC_GROUP_new_by_curve_name
	mov	x20, x0
	cbz	x0, LBB0_11
; %bb.6:
Lloh11:
	adrp	x8, _OPENSSL_EC_NAMED_CURVE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _OPENSSL_EC_NAMED_CURVE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_EC_GROUP_set_asn1_flag
	mov	x0, x19
	mov	x1, x20
	bl	_EC_KEY_set_group
	cbz	x0, LBB0_11
; %bb.7:
	mov	x0, x20
	bl	_EC_GROUP_free
	b	LBB0_12
LBB0_8:
Lloh14:
	adrp	x8, _EC_F_ECKEY_TYPE2PARAM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EC_F_ECKEY_TYPE2PARAM@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x8, _EC_R_DECODE_ERROR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EC_R_DECODE_ERROR@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	bl	_ECerr
	mov	x20, #0
	mov	x19, #0
	b	LBB0_11
LBB0_9:
Lloh20:
	adrp	x8, _EC_F_ECKEY_TYPE2PARAM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EC_F_ECKEY_TYPE2PARAM@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
LBB0_10:
	ldr	w1, [x8]
	bl	_ECerr
	mov	x20, #0
LBB0_11:
	mov	x0, x19
	bl	_EC_KEY_free
	mov	x0, x20
	bl	_EC_GROUP_free
	mov	x19, #0
LBB0_12:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_V_ASN1_SEQUENCE,4,2            ; @V_ASN1_SEQUENCE
	.comm	_EC_F_ECKEY_TYPE2PARAM,4,2      ; @EC_F_ECKEY_TYPE2PARAM
	.comm	_EC_R_DECODE_ERROR,4,2          ; @EC_R_DECODE_ERROR
	.comm	_V_ASN1_OBJECT,4,2              ; @V_ASN1_OBJECT
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.comm	_OPENSSL_EC_NAMED_CURVE,4,2     ; @OPENSSL_EC_NAMED_CURVE
	.no_dead_strip	_eckey_type2param
.subsections_via_symbols
