	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EC_GROUP_get_ecparameters      ## -- Begin function EC_GROUP_get_ecparameters
	.p2align	4, 0x90
_EC_GROUP_get_ecparameters:             ## @EC_GROUP_get_ecparameters
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	$0, -40(%rbp)
	movq	%rsi, %rbx
	testq	%rsi, %rsi
	jne	LBB0_3
## %bb.1:
	xorl	%eax, %eax
	callq	_ECPARAMETERS_new
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_2
LBB0_3:
	movq	$1, (%rbx)
	movl	36(%rbx), %esi
	movq	%r15, %rdi
	callq	_ec_asn1_group2fieldid
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	32(%rbx), %esi
	movq	%r15, %rdi
	callq	_ec_asn1_group2curve
	testl	%eax, %eax
	je	LBB0_4
## %bb.6:
	movq	%r15, %rdi
	callq	_EC_GROUP_get0_generator
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_EC_GROUP_get_point_conversion_form
	leaq	-40(%rbp), %rcx
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	xorl	%r8d, %r8d
	callq	_EC_POINT_point2buf
	testq	%rax, %rax
	je	LBB0_4
## %bb.9:
	movq	%rax, %r12
	movq	24(%rbx), %rdi
	testq	%rdi, %rdi
	jne	LBB0_12
## %bb.10:
	xorl	%eax, %eax
	callq	_ASN1_OCTET_STRING_new
	movq	%rax, %rdi
	movq	%rax, 24(%rbx)
	testq	%rax, %rax
	je	LBB0_11
LBB0_12:
	movq	-40(%rbp), %rsi
	movq	%r12, %rdx
	callq	_ASN1_STRING_set0
	movq	%r15, %rdi
	callq	_EC_GROUP_get0_order
	testq	%rax, %rax
	je	LBB0_4
## %bb.13:
	movq	16(%rbx), %rsi
	movq	%rax, %rdi
	callq	_BN_to_ASN1_INTEGER
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:
	movq	%r15, %rdi
	callq	_EC_GROUP_get0_cofactor
	testq	%rax, %rax
	je	LBB0_20
## %bb.15:
	movq	8(%rbx), %rsi
	movq	%rax, %rdi
	callq	_BN_to_ASN1_INTEGER
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	jne	LBB0_20
LBB0_16:
	movq	_EC_F_EC_GROUP_GET_ECPARAMETERS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_ASN1_LIB@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_4:
	movq	_EC_F_EC_GROUP_GET_ECPARAMETERS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_EC_LIB@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %esi
	callq	_ECerr
	testq	%r14, %r14
	jne	LBB0_19
	jmp	LBB0_18
LBB0_2:
	movq	_EC_F_EC_GROUP_GET_ECPARAMETERS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ECerr
	xorl	%ebx, %ebx
LBB0_18:
	movq	%rbx, %rdi
	callq	_ECPARAMETERS_free
LBB0_19:
	xorl	%ebx, %ebx
LBB0_20:
	movq	%rbx, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_EC_F_EC_GROUP_GET_ECPARAMETERS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EC_R_UNDEFINED_GENERATOR@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_11:
	movq	-40(%rbp), %rdi
	callq	_OPENSSL_free
	movq	_EC_F_EC_GROUP_GET_ECPARAMETERS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_EC_F_EC_GROUP_GET_ECPARAMETERS,4,2 ## @EC_F_EC_GROUP_GET_ECPARAMETERS
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.comm	_ERR_R_EC_LIB,4,2               ## @ERR_R_EC_LIB
	.comm	_EC_R_UNDEFINED_GENERATOR,4,2   ## @EC_R_UNDEFINED_GENERATOR
	.comm	_ERR_R_ASN1_LIB,4,2             ## @ERR_R_ASN1_LIB
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EC_GROUP_get_ecparameters      ; -- Begin function EC_GROUP_get_ecparameters
	.p2align	2
_EC_GROUP_get_ecparameters:             ; @EC_GROUP_get_ecparameters
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x21, x0
	str	xzr, [sp, #8]
	mov	x19, x1
	cbnz	x1, LBB0_2
; %bb.1:
	bl	_ECPARAMETERS_new
	mov	x19, x0
	cbz	x0, LBB0_15
LBB0_2:
	mov	w8, #1
	str	x8, [x19]
	ldr	w1, [x19, #36]
	mov	x0, x21
	bl	_ec_asn1_group2fieldid
	cbz	w0, LBB0_13
; %bb.3:
	ldr	w1, [x19, #32]
	mov	x0, x21
	bl	_ec_asn1_group2curve
	cbz	w0, LBB0_13
; %bb.4:
	mov	x0, x21
	bl	_EC_GROUP_get0_generator
	cbz	x0, LBB0_19
; %bb.5:
	mov	x22, x0
	mov	x0, x21
	bl	_EC_GROUP_get_point_conversion_form
	mov	x2, x0
	add	x3, sp, #8
	mov	x0, x21
	mov	x1, x22
	mov	x4, #0
	bl	_EC_POINT_point2buf
	cbz	x0, LBB0_13
; %bb.6:
	mov	x22, x0
	ldr	x0, [x19, #24]
	cbnz	x0, LBB0_8
; %bb.7:
	bl	_ASN1_OCTET_STRING_new
	str	x0, [x19, #24]
	cbz	x0, LBB0_20
LBB0_8:
	ldr	x1, [sp, #8]
	mov	x2, x22
	bl	_ASN1_STRING_set0
	mov	x0, x21
	bl	_EC_GROUP_get0_order
	cbz	x0, LBB0_13
; %bb.9:
	ldr	x1, [x19, #16]
	bl	_BN_to_ASN1_INTEGER
	str	x0, [x19, #16]
	cbz	x0, LBB0_12
; %bb.10:
	mov	x0, x21
	bl	_EC_GROUP_get0_cofactor
	cbz	x0, LBB0_18
; %bb.11:
	ldr	x1, [x19, #8]
	bl	_BN_to_ASN1_INTEGER
	str	x0, [x19, #8]
	cbnz	x0, LBB0_18
LBB0_12:
Lloh0:
	adrp	x8, _EC_F_EC_GROUP_GET_ECPARAMETERS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EC_F_EC_GROUP_GET_ECPARAMETERS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _ERR_R_ASN1_LIB@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERR_R_ASN1_LIB@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
Lloh5:
	adrp	x8, _EC_F_EC_GROUP_GET_ECPARAMETERS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EC_F_EC_GROUP_GET_ECPARAMETERS@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _ERR_R_EC_LIB@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERR_R_EC_LIB@GOTPAGEOFF]
LBB0_14:
	ldr	w1, [x8]
	bl	_ECerr
	cbnz	x20, LBB0_17
	b	LBB0_16
LBB0_15:
Lloh10:
	adrp	x8, _EC_F_EC_GROUP_GET_ECPARAMETERS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EC_F_EC_GROUP_GET_ECPARAMETERS@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	bl	_ECerr
LBB0_16:
	mov	x0, x19
	bl	_ECPARAMETERS_free
LBB0_17:
	mov	x19, #0
LBB0_18:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_19:
Lloh16:
	adrp	x8, _EC_F_EC_GROUP_GET_ECPARAMETERS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EC_F_EC_GROUP_GET_ECPARAMETERS@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x8, _EC_R_UNDEFINED_GENERATOR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EC_R_UNDEFINED_GENERATOR@GOTPAGEOFF]
	b	LBB0_14
LBB0_20:
	ldr	x0, [sp, #8]
	bl	_OPENSSL_free
Lloh21:
	adrp	x8, _EC_F_EC_GROUP_GET_ECPARAMETERS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EC_F_EC_GROUP_GET_ECPARAMETERS@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
Lloh24:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
	b	LBB0_14
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_EC_F_EC_GROUP_GET_ECPARAMETERS,4,2 ; @EC_F_EC_GROUP_GET_ECPARAMETERS
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.comm	_ERR_R_EC_LIB,4,2               ; @ERR_R_EC_LIB
	.comm	_EC_R_UNDEFINED_GENERATOR,4,2   ; @EC_R_UNDEFINED_GENERATOR
	.comm	_ERR_R_ASN1_LIB,4,2             ; @ERR_R_ASN1_LIB
.subsections_via_symbols
