	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pk_use_ecparams
_pk_use_ecparams:                       ## @pk_use_ecparams
	.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
	movq	(%rdi), %rax
	movq	_MBEDTLS_ASN1_OID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.1:
	movq	%rsi, %rbx
	leaq	-16(%rbp), %rsi
	callq	_mbedtls_oid_get_ec_grp
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_MBEDTLS_ERR_PK_UNKNOWN_NAMED_CURVE@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_3:
	movq	(%rbx), %rax
	movq	_MBEDTLS_ECP_DP_NONE@GOTPCREL(%rip), %rcx
	movq	-16(%rbp), %rsi
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.4:
	cmpq	%rsi, %rax
	je	LBB0_8
LBB0_5:
	movq	_MBEDTLS_ERR_PK_KEY_INVALID_FORMAT@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_8:
	movq	%rbx, %rdi
	callq	_mbedtls_ecp_group_load
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_ASN1_OID,8,3           ## @MBEDTLS_ASN1_OID
	.comm	_MBEDTLS_ERR_PK_UNKNOWN_NAMED_CURVE,4,2 ## @MBEDTLS_ERR_PK_UNKNOWN_NAMED_CURVE
	.comm	_MBEDTLS_ERR_PK_KEY_INVALID_FORMAT,4,2 ## @MBEDTLS_ERR_PK_KEY_INVALID_FORMAT
	.comm	_MBEDTLS_ECP_DP_NONE,8,3        ## @MBEDTLS_ECP_DP_NONE
	.no_dead_strip	_pk_use_ecparams
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pk_use_ecparams
_pk_use_ecparams:                       ; @pk_use_ecparams
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _MBEDTLS_ASN1_OID@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MBEDTLS_ASN1_OID@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.1:
	mov	x19, x1
	add	x1, sp, #8
	bl	_mbedtls_oid_get_ec_grp
	cbz	x0, LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _MBEDTLS_ERR_PK_UNKNOWN_NAMED_CURVE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MBEDTLS_ERR_PK_UNKNOWN_NAMED_CURVE@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
	ldr	x8, [x19]
Lloh5:
	adrp	x9, _MBEDTLS_ECP_DP_NONE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MBEDTLS_ECP_DP_NONE@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	ldr	x1, [sp, #8]
	cmp	x8, x9
	ccmp	x8, x1, #4, ne
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_mbedtls_ecp_group_load
	b	LBB0_7
LBB0_5:
Lloh8:
	adrp	x8, _MBEDTLS_ERR_PK_KEY_INVALID_FORMAT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MBEDTLS_ERR_PK_KEY_INVALID_FORMAT@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
LBB0_7:
	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	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_ASN1_OID,8,3           ; @MBEDTLS_ASN1_OID
	.comm	_MBEDTLS_ERR_PK_UNKNOWN_NAMED_CURVE,4,2 ; @MBEDTLS_ERR_PK_UNKNOWN_NAMED_CURVE
	.comm	_MBEDTLS_ERR_PK_KEY_INVALID_FORMAT,4,2 ; @MBEDTLS_ERR_PK_KEY_INVALID_FORMAT
	.comm	_MBEDTLS_ECP_DP_NONE,8,3        ; @MBEDTLS_ECP_DP_NONE
	.no_dead_strip	_pk_use_ecparams
.subsections_via_symbols
