	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EC_GROUP_new_from_ecpkparameters ## -- Begin function EC_GROUP_new_from_ecpkparameters
	.p2align	4, 0x90
_EC_GROUP_new_from_ecpkparameters:      ## @EC_GROUP_new_from_ecpkparameters
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movl	(%rdi), %eax
	cmpl	$2, %eax
	je	LBB0_14
## %bb.3:
	cmpl	$1, %eax
	je	LBB0_9
## %bb.4:
	testl	%eax, %eax
	jne	LBB0_12
## %bb.5:
	movl	8(%rdi), %edi
	callq	_OBJ_obj2nid
	movl	%eax, %edi
	callq	_EC_GROUP_new_by_curve_name
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %rbx
	movq	_OPENSSL_EC_NAMED_CURVE@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_1:
	movq	_EC_F_EC_GROUP_NEW_FROM_ECPKPARAMETERS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EC_R_MISSING_PARAMETERS@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_9:
	movl	4(%rdi), %edi
	callq	_EC_GROUP_new_from_ecparameters
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	%rax, %rbx
	movq	_OPENSSL_EC_EXPLICIT_CURVE@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_EC_GROUP_set_asn1_flag
	jmp	LBB0_15
LBB0_12:
	movq	_EC_F_EC_GROUP_NEW_FROM_ECPKPARAMETERS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EC_R_ASN1_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_10:
	movq	_EC_F_EC_GROUP_NEW_FROM_ECPKPARAMETERS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_EC_LIB@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_6:
	movq	_EC_F_EC_GROUP_NEW_FROM_ECPKPARAMETERS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EC_R_EC_GROUP_NEW_BY_NAME_FAILURE@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %esi
	callq	_ECerr
LBB0_14:
	xorl	%ebx, %ebx
LBB0_15:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EC_F_EC_GROUP_NEW_FROM_ECPKPARAMETERS,4,2 ## @EC_F_EC_GROUP_NEW_FROM_ECPKPARAMETERS
	.comm	_EC_R_MISSING_PARAMETERS,4,2    ## @EC_R_MISSING_PARAMETERS
	.comm	_EC_R_EC_GROUP_NEW_BY_NAME_FAILURE,4,2 ## @EC_R_EC_GROUP_NEW_BY_NAME_FAILURE
	.comm	_OPENSSL_EC_NAMED_CURVE,4,2     ## @OPENSSL_EC_NAMED_CURVE
	.comm	_ERR_R_EC_LIB,4,2               ## @ERR_R_EC_LIB
	.comm	_OPENSSL_EC_EXPLICIT_CURVE,4,2  ## @OPENSSL_EC_EXPLICIT_CURVE
	.comm	_EC_R_ASN1_ERROR,4,2            ## @EC_R_ASN1_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EC_GROUP_new_from_ecpkparameters ; -- Begin function EC_GROUP_new_from_ecpkparameters
	.p2align	2
_EC_GROUP_new_from_ecpkparameters:      ; @EC_GROUP_new_from_ecpkparameters
	.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
	cbz	x0, LBB0_6
; %bb.1:
	ldr	w8, [x0]
	cmp	w8, #2
	b.eq	LBB0_12
; %bb.2:
	cmp	w8, #1
	b.eq	LBB0_7
; %bb.3:
	cbnz	w8, LBB0_10
; %bb.4:
	ldr	w0, [x0, #8]
	bl	_OBJ_obj2nid
	bl	_EC_GROUP_new_by_curve_name
	mov	x19, x0
	cbz	x0, LBB0_15
; %bb.5:
Lloh0:
	adrp	x8, _OPENSSL_EC_NAMED_CURVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OPENSSL_EC_NAMED_CURVE@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
Lloh2:
	adrp	x8, _EC_F_EC_GROUP_NEW_FROM_ECPKPARAMETERS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EC_F_EC_GROUP_NEW_FROM_ECPKPARAMETERS@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x8, _EC_R_MISSING_PARAMETERS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EC_R_MISSING_PARAMETERS@GOTPAGEOFF]
	b	LBB0_11
LBB0_7:
	ldr	w0, [x0, #4]
	bl	_EC_GROUP_new_from_ecparameters
	mov	x19, x0
	cbz	x0, LBB0_14
; %bb.8:
Lloh7:
	adrp	x8, _OPENSSL_EC_EXPLICIT_CURVE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _OPENSSL_EC_EXPLICIT_CURVE@GOTPAGEOFF]
LBB0_9:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_EC_GROUP_set_asn1_flag
	b	LBB0_13
LBB0_10:
Lloh9:
	adrp	x8, _EC_F_EC_GROUP_NEW_FROM_ECPKPARAMETERS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EC_F_EC_GROUP_NEW_FROM_ECPKPARAMETERS@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x8, _EC_R_ASN1_ERROR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EC_R_ASN1_ERROR@GOTPAGEOFF]
LBB0_11:
	ldr	w1, [x8]
	bl	_ECerr
LBB0_12:
	mov	x19, #0
LBB0_13:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_14:
Lloh14:
	adrp	x8, _EC_F_EC_GROUP_NEW_FROM_ECPKPARAMETERS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EC_F_EC_GROUP_NEW_FROM_ECPKPARAMETERS@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x8, _ERR_R_EC_LIB@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ERR_R_EC_LIB@GOTPAGEOFF]
	b	LBB0_16
LBB0_15:
Lloh19:
	adrp	x8, _EC_F_EC_GROUP_NEW_FROM_ECPKPARAMETERS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EC_F_EC_GROUP_NEW_FROM_ECPKPARAMETERS@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
Lloh22:
	adrp	x8, _EC_R_EC_GROUP_NEW_BY_NAME_FAILURE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EC_R_EC_GROUP_NEW_BY_NAME_FAILURE@GOTPAGEOFF]
LBB0_16:
	ldr	w1, [x8]
	bl	_ECerr
	b	LBB0_13
	.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
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_EC_F_EC_GROUP_NEW_FROM_ECPKPARAMETERS,4,2 ; @EC_F_EC_GROUP_NEW_FROM_ECPKPARAMETERS
	.comm	_EC_R_MISSING_PARAMETERS,4,2    ; @EC_R_MISSING_PARAMETERS
	.comm	_EC_R_EC_GROUP_NEW_BY_NAME_FAILURE,4,2 ; @EC_R_EC_GROUP_NEW_BY_NAME_FAILURE
	.comm	_OPENSSL_EC_NAMED_CURVE,4,2     ; @OPENSSL_EC_NAMED_CURVE
	.comm	_ERR_R_EC_LIB,4,2               ; @ERR_R_EC_LIB
	.comm	_OPENSSL_EC_EXPLICIT_CURVE,4,2  ; @OPENSSL_EC_EXPLICIT_CURVE
	.comm	_EC_R_ASN1_ERROR,4,2            ; @EC_R_ASN1_ERROR
.subsections_via_symbols
