	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pk_get_ecparams
_pk_get_ecparams:                       ## @pk_get_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movzbl	(%rax), %ecx
	movb	%cl, (%rdx)
	movq	_MBEDTLS_ASN1_OID@GOTPCREL(%rip), %rax
	cmpb	(%rax), %cl
	jne	LBB0_1
## %bb.2:
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	addq	$16, %rdx
	callq	_mbedtls_asn1_get_tag
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	_MBEDTLS_ERR_PK_KEY_INVALID_FORMAT@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_1:
	movq	_MBEDTLS_ERR_PK_KEY_INVALID_FORMAT@GOTPCREL(%rip), %rcx
	movq	_MBEDTLS_ERR_ASN1_UNEXPECTED_TAG@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
LBB0_8:
	addl	(%rcx), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	(%rbx), %rax
	movq	%rax, 8(%r15)
	movslq	16(%r15), %rax
	addq	(%rbx), %rax
	movq	%rax, (%rbx)
	cmpq	%r14, %rax
	je	LBB0_5
## %bb.6:
	movq	_MBEDTLS_ERR_PK_KEY_INVALID_FORMAT@GOTPCREL(%rip), %rcx
	movq	_MBEDTLS_ERR_ASN1_LENGTH_MISMATCH@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	xorl	%eax, %eax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_ASN1_OID,1,0           ## @MBEDTLS_ASN1_OID
	.comm	_MBEDTLS_ERR_PK_KEY_INVALID_FORMAT,4,2 ## @MBEDTLS_ERR_PK_KEY_INVALID_FORMAT
	.comm	_MBEDTLS_ERR_ASN1_UNEXPECTED_TAG,4,2 ## @MBEDTLS_ERR_ASN1_UNEXPECTED_TAG
	.comm	_MBEDTLS_ERR_ASN1_LENGTH_MISMATCH,4,2 ## @MBEDTLS_ERR_ASN1_LENGTH_MISMATCH
	.comm	_MBEDTLS_ASN1_CONSTRUCTED,4,2   ## @MBEDTLS_ASN1_CONSTRUCTED
	.comm	_MBEDTLS_ASN1_SEQUENCE,4,2      ## @MBEDTLS_ASN1_SEQUENCE
	.no_dead_strip	_pk_get_ecparams
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pk_get_ecparams
_pk_get_ecparams:                       ; @pk_get_ecparams
	.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
	ldr	x8, [x0]
	ldrb	w3, [x8]
	strb	w3, [x2]
Lloh0:
	adrp	x8, _MBEDTLS_ASN1_OID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MBEDTLS_ASN1_OID@GOTPAGEOFF]
	ldrb	w8, [x8]
	cmp	w3, w8
	b.ne	LBB0_3
; %bb.1:
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	add	x2, x2, #16
	bl	_mbedtls_asn1_get_tag
	cbz	w0, LBB0_6
; %bb.2:
Lloh2:
	adrp	x8, _MBEDTLS_ERR_PK_KEY_INVALID_FORMAT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MBEDTLS_ERR_PK_KEY_INVALID_FORMAT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	add	w0, w8, w0
	b	LBB0_5
LBB0_3:
Lloh5:
	adrp	x8, _MBEDTLS_ERR_PK_KEY_INVALID_FORMAT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MBEDTLS_ERR_PK_KEY_INVALID_FORMAT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _MBEDTLS_ERR_ASN1_UNEXPECTED_TAG@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MBEDTLS_ERR_ASN1_UNEXPECTED_TAG@GOTPAGEOFF]
LBB0_4:
	ldr	w9, [x9]
	add	w0, w9, w8
LBB0_5:
	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_6:
	ldr	x8, [x20]
	str	x8, [x21, #8]
	ldrsw	x8, [x21, #16]
	ldr	x9, [x20]
	add	x8, x9, x8
	cmp	x8, x19
	str	x8, [x20]
	b.eq	LBB0_8
; %bb.7:
Lloh10:
	adrp	x8, _MBEDTLS_ERR_PK_KEY_INVALID_FORMAT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MBEDTLS_ERR_PK_KEY_INVALID_FORMAT@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _MBEDTLS_ERR_ASN1_LENGTH_MISMATCH@GOTPAGE
Lloh14:
	ldr	x9, [x9, _MBEDTLS_ERR_ASN1_LENGTH_MISMATCH@GOTPAGEOFF]
	b	LBB0_4
LBB0_8:
	mov	w0, #0
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_ASN1_OID,1,0           ; @MBEDTLS_ASN1_OID
	.comm	_MBEDTLS_ERR_PK_KEY_INVALID_FORMAT,4,2 ; @MBEDTLS_ERR_PK_KEY_INVALID_FORMAT
	.comm	_MBEDTLS_ERR_ASN1_UNEXPECTED_TAG,4,2 ; @MBEDTLS_ERR_ASN1_UNEXPECTED_TAG
	.comm	_MBEDTLS_ERR_ASN1_LENGTH_MISMATCH,4,2 ; @MBEDTLS_ERR_ASN1_LENGTH_MISMATCH
	.comm	_MBEDTLS_ASN1_CONSTRUCTED,4,2   ; @MBEDTLS_ASN1_CONSTRUCTED
	.comm	_MBEDTLS_ASN1_SEQUENCE,4,2      ; @MBEDTLS_ASN1_SEQUENCE
	.no_dead_strip	_pk_get_ecparams
.subsections_via_symbols
