	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ldns_pkey_is_ecdsa
_ldns_pkey_is_ecdsa:                    ## @ldns_pkey_is_ecdsa
	.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, %r14
	movq	_key@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_EVP_PKEY_type
	movq	_EVP_PKEY_EC@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.1:
	movq	%r14, %rdi
	callq	_EVP_PKEY_get1_EC_KEY
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_EC_KEY_get0_group
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_EC_GROUP_get_curve_name
	movq	_NID_X9_62_prime256v1@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_EC_KEY_free
	movl	$32, %ebx
	jmp	LBB0_6
LBB0_4:
	movq	%r15, %rdi
	callq	_EC_GROUP_get_curve_name
	movq	_NID_secp384r1@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	movl	$48, %ebx
	cmovnel	%edx, %ebx
LBB0_5:
	movq	%r14, %rdi
	callq	_EC_KEY_free
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_key,8,3                        ## @key
	.comm	_EVP_PKEY_EC,8,3                ## @EVP_PKEY_EC
	.comm	_NID_X9_62_prime256v1,8,3       ## @NID_X9_62_prime256v1
	.comm	_NID_secp384r1,8,3              ## @NID_secp384r1
	.no_dead_strip	_ldns_pkey_is_ecdsa
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ldns_pkey_is_ecdsa
_ldns_pkey_is_ecdsa:                    ; @ldns_pkey_is_ecdsa
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _key@GOTPAGE
Lloh1:
	ldr	x8, [x8, _key@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w0, [x8]
	bl	_EVP_PKEY_type
Lloh3:
	adrp	x8, _EVP_PKEY_EC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EVP_PKEY_EC@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_EVP_PKEY_get1_EC_KEY
	mov	x19, x0
	bl	_EC_KEY_get0_group
	cbz	x0, LBB0_5
; %bb.2:
	mov	x20, x0
	bl	_EC_GROUP_get_curve_name
Lloh6:
	adrp	x8, _NID_X9_62_prime256v1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NID_X9_62_prime256v1@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_EC_KEY_free
	mov	w0, #32
	b	LBB0_7
LBB0_4:
	mov	w0, #0
	b	LBB0_7
LBB0_5:
	mov	x0, x19
	bl	_EC_KEY_free
	mov	w0, #0
	b	LBB0_7
LBB0_6:
	mov	x0, x20
	bl	_EC_GROUP_get_curve_name
	mov	x20, x0
Lloh9:
	adrp	x8, _NID_secp384r1@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NID_secp384r1@GOTPAGEOFF]
Lloh11:
	ldr	x21, [x8]
	mov	x0, x19
	bl	_EC_KEY_free
	cmp	x20, x21
	mov	w8, #48
	csel	w0, w8, wzr, eq
LBB0_7:
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_key,8,3                        ; @key
	.comm	_EVP_PKEY_EC,8,3                ; @EVP_PKEY_EC
	.comm	_NID_X9_62_prime256v1,8,3       ; @NID_X9_62_prime256v1
	.comm	_NID_secp384r1,8,3              ; @NID_secp384r1
	.no_dead_strip	_ldns_pkey_is_ecdsa
.subsections_via_symbols
