	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EC_GROUP_get_ecpkparameters    ## -- Begin function EC_GROUP_get_ecpkparameters
	.p2align	4, 0x90
_EC_GROUP_get_ecpkparameters:           ## @EC_GROUP_get_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.3:
	movq	%rsi, %rbx
	movl	(%rsi), %eax
	cmpl	$1, %eax
	je	LBB0_6
## %bb.4:
	testl	%eax, %eax
	jne	LBB0_8
## %bb.5:
	movq	16(%rbx), %rdi
	callq	_ASN1_OBJECT_free
	jmp	LBB0_8
LBB0_1:
	xorl	%eax, %eax
	callq	_ECPKPARAMETERS_new
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_8
## %bb.2:
	movq	_EC_F_EC_GROUP_GET_ECPKPARAMETERS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ECerr
	jmp	LBB0_14
LBB0_6:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:
	callq	_ECPARAMETERS_free
LBB0_8:
	movq	%r14, %rdi
	callq	_EC_GROUP_get_asn1_flag
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	%r14, %rdi
	callq	_EC_GROUP_get_curve_name
	testl	%eax, %eax
	je	LBB0_13
## %bb.10:
	movl	$0, (%rbx)
	movl	%eax, %edi
	callq	_OBJ_nid2obj
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	jne	LBB0_15
	jmp	LBB0_13
LBB0_11:
	movl	$1, (%rbx)
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_EC_GROUP_get_ecparameters
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	jne	LBB0_15
LBB0_13:
	movq	%rbx, %rdi
	callq	_ECPKPARAMETERS_free
LBB0_14:
	xorl	%ebx, %ebx
LBB0_15:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EC_F_EC_GROUP_GET_ECPKPARAMETERS,4,2 ## @EC_F_EC_GROUP_GET_ECPKPARAMETERS
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EC_GROUP_get_ecpkparameters    ; -- Begin function EC_GROUP_get_ecpkparameters
	.p2align	2
_EC_GROUP_get_ecpkparameters:           ; @EC_GROUP_get_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
	mov	x20, x0
	cbz	x1, LBB0_4
; %bb.1:
	mov	x19, x1
	ldr	w8, [x1]
	cmp	w8, #1
	b.eq	LBB0_6
; %bb.2:
	cbnz	w8, LBB0_8
; %bb.3:
	ldr	x0, [x19, #16]
	bl	_ASN1_OBJECT_free
	b	LBB0_8
LBB0_4:
	bl	_ECPKPARAMETERS_new
	mov	x19, x0
	cbnz	x0, LBB0_8
; %bb.5:
Lloh0:
	adrp	x8, _EC_F_EC_GROUP_GET_ECPKPARAMETERS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EC_F_EC_GROUP_GET_ECPKPARAMETERS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_ECerr
	b	LBB0_12
LBB0_6:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_8
; %bb.7:
	bl	_ECPARAMETERS_free
LBB0_8:
	mov	x0, x20
	bl	_EC_GROUP_get_asn1_flag
	cbz	x0, LBB0_13
; %bb.9:
	mov	x0, x20
	bl	_EC_GROUP_get_curve_name
	cbz	w0, LBB0_11
; %bb.10:
	str	wzr, [x19]
	bl	_OBJ_nid2obj
	str	x0, [x19, #16]
	cbnz	x0, LBB0_12
LBB0_11:
	mov	x0, x19
	bl	_ECPKPARAMETERS_free
	mov	x19, #0
LBB0_12:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_13:
	mov	w8, #1
	str	w8, [x19]
	mov	x0, x20
	mov	x1, #0
	bl	_EC_GROUP_get_ecparameters
	str	x0, [x19, #8]
	cbnz	x0, LBB0_12
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EC_F_EC_GROUP_GET_ECPKPARAMETERS,4,2 ; @EC_F_EC_GROUP_GET_ECPKPARAMETERS
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
.subsections_via_symbols
