	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eckey_param2type
_eckey_param2type:                      ## @eckey_param2type
	.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
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.1:
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	%rdx, %rdi
	callq	_EC_KEY_get0_group
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_EC_GROUP_get_asn1_flag
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	%rbx, %rdi
	callq	_EC_GROUP_get_curve_name
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %edi
	callq	_OBJ_nid2obj
	movq	%rax, (%r15)
	movq	_V_ASN1_OBJECT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	jmp	LBB0_10
LBB0_2:
	movq	_EC_F_ECKEY_PARAM2TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EC_R_MISSING_PARAMETERS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ECerr
	xorl	%r12d, %r12d
	jmp	LBB0_11
LBB0_6:
	movq	%r12, %rbx
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_ASN1_STRING_new
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	movq	%rax, %r13
	movq	%rax, %rsi
	addq	$8, %rsi
	movq	%r14, %rdi
	callq	_i2d_ECParameters
	movq	%rax, (%r13)
	testq	%rax, %rax
	jle	LBB0_8
## %bb.9:
	movq	%r13, (%r15)
	movq	_V_ASN1_SEQUENCE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
LBB0_10:
	movl	$1, %r12d
LBB0_11:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r13, %rdi
	callq	_ASN1_STRING_free
	movq	_EC_F_ECKEY_PARAM2TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_EC_LIB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ECerr
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_EC_F_ECKEY_PARAM2TYPE,4,2      ## @EC_F_ECKEY_PARAM2TYPE
	.comm	_EC_R_MISSING_PARAMETERS,4,2    ## @EC_R_MISSING_PARAMETERS
	.comm	_V_ASN1_OBJECT,4,2              ## @V_ASN1_OBJECT
	.comm	_ERR_R_EC_LIB,4,2               ## @ERR_R_EC_LIB
	.comm	_V_ASN1_SEQUENCE,4,2            ## @V_ASN1_SEQUENCE
	.no_dead_strip	_eckey_param2type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eckey_param2type
_eckey_param2type:                      ; @eckey_param2type
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	cbz	x2, LBB0_5
; %bb.1:
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	mov	x0, x2
	bl	_EC_KEY_get0_group
	cbz	x0, LBB0_5
; %bb.2:
	mov	x22, x0
	bl	_EC_GROUP_get_asn1_flag
	cbz	x0, LBB0_7
; %bb.3:
	mov	x0, x22
	bl	_EC_GROUP_get_curve_name
	cbz	w0, LBB0_7
; %bb.4:
	bl	_OBJ_nid2obj
	str	x0, [x20]
Lloh0:
	adrp	x8, _V_ASN1_OBJECT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V_ASN1_OBJECT@GOTPAGEOFF]
	b	LBB0_10
LBB0_5:
Lloh2:
	adrp	x8, _EC_F_ECKEY_PARAM2TYPE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EC_F_ECKEY_PARAM2TYPE@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x8, _EC_R_MISSING_PARAMETERS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EC_R_MISSING_PARAMETERS@GOTPAGEOFF]
LBB0_6:
	ldr	w1, [x8]
	bl	_ECerr
	mov	w0, #0
	b	LBB0_11
LBB0_7:
	bl	_ASN1_STRING_new
	cbz	x0, LBB0_11
; %bb.8:
	mov	x22, x0
	add	x1, x0, #8
	mov	x0, x21
	bl	_i2d_ECParameters
	str	x0, [x22]
	cmp	x0, #0
	b.le	LBB0_12
; %bb.9:
	str	x22, [x20]
Lloh7:
	adrp	x8, _V_ASN1_SEQUENCE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _V_ASN1_SEQUENCE@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	str	w8, [x19]
	mov	w0, #1
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_12:
	mov	x0, x22
	bl	_ASN1_STRING_free
Lloh9:
	adrp	x8, _EC_F_ECKEY_PARAM2TYPE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EC_F_ECKEY_PARAM2TYPE@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x8, _ERR_R_EC_LIB@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ERR_R_EC_LIB@GOTPAGEOFF]
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EC_F_ECKEY_PARAM2TYPE,4,2      ; @EC_F_ECKEY_PARAM2TYPE
	.comm	_EC_R_MISSING_PARAMETERS,4,2    ; @EC_R_MISSING_PARAMETERS
	.comm	_V_ASN1_OBJECT,4,2              ; @V_ASN1_OBJECT
	.comm	_ERR_R_EC_LIB,4,2               ; @ERR_R_EC_LIB
	.comm	_V_ASN1_SEQUENCE,4,2            ; @V_ASN1_SEQUENCE
	.no_dead_strip	_eckey_param2type
.subsections_via_symbols
