	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ldns_key_new_frm_fp_ecdsa_l
_ldns_key_new_frm_fp_ecdsa_l:           ## @ldns_key_new_frm_fp_ecdsa_l
	.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
	movl	$16408, %eax                    ## imm = 0x4018
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	$0, -16424(%rbp)
	movq	%rdx, (%rsp)
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %rdx
	leaq	L_.str.2(%rip), %r8
	leaq	-16416(%rbp), %rcx
	movl	$16384, %r9d                    ## imm = 0x4000
	callq	_ldns_fget_keyword_data_l
	cmpl	$-1, %eax
	je	LBB0_14
## %bb.1:
	leaq	-16424(%rbp), %rdi
	leaq	-16416(%rbp), %rsi
	callq	_ldns_str2rdf_b64
	movq	_LDNS_STATUS_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.2:
	movq	-16424(%rbp), %rdi
	callq	_ldns_rdf_data
	movq	%rax, %r15
	movq	_LDNS_ECDSAP256SHA256@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jne	LBB0_4
## %bb.3:
	movq	_NID_X9_62_prime256v1@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_LDNS_ECDSAP384SHA384@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jne	LBB0_7
## %bb.5:
	movq	_NID_secp384r1@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %edi
	callq	_EC_KEY_new_by_curve_name
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %r14
	movq	-16424(%rbp), %rdi
	callq	_ldns_rdf_size
	movq	%r15, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_BN_bin2bn
	movq	%rax, %rbx
	movq	-16424(%rbp), %rdi
	callq	_ldns_rdf_deep_free
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.9:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_EC_KEY_set_private_key
	movq	%rbx, %rdi
	callq	_BN_free
	movq	%r14, %rdi
	callq	_ldns_EC_KEY_calc_public
	testl	%eax, %eax
	je	LBB0_13
## %bb.10:
	xorl	%eax, %eax
	callq	_EVP_PKEY_new
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_EVP_PKEY_assign_EC_KEY
	testl	%eax, %eax
	jne	LBB0_15
## %bb.12:
	movq	%rbx, %rdi
	callq	_EVP_PKEY_free
LBB0_13:
	movq	%r14, %rdi
	callq	_EC_KEY_free
	jmp	LBB0_14
LBB0_7:
	movq	-16424(%rbp), %rdi
	callq	_ldns_rdf_deep_free
LBB0_14:
	xorl	%ebx, %ebx
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	movq	%rbx, %rax
	addq	$16408, %rsp                    ## imm = 0x4018
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PrivateKey"

L_.str.1:                               ## @.str.1
	.asciz	": "

L_.str.2:                               ## @.str.2
	.asciz	"\n"

	.comm	_LDNS_STATUS_OK,8,3             ## @LDNS_STATUS_OK
	.comm	_LDNS_ECDSAP256SHA256,8,3       ## @LDNS_ECDSAP256SHA256
	.comm	_NID_X9_62_prime256v1,4,2       ## @NID_X9_62_prime256v1
	.comm	_LDNS_ECDSAP384SHA384,8,3       ## @LDNS_ECDSAP384SHA384
	.comm	_NID_secp384r1,4,2              ## @NID_secp384r1
	.no_dead_strip	_ldns_key_new_frm_fp_ecdsa_l
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ldns_key_new_frm_fp_ecdsa_l
_ldns_key_new_frm_fp_ecdsa_l:           ; @ldns_key_new_frm_fp_ecdsa_l
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [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 w27, -40
	.cfi_offset w28, -48
	mov	w9, #16400
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #4, lsl #12             ; =16384
	mov	x6, x2
	mov	x19, x1
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	str	xzr, [sp, #-16]!
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
Lloh7:
	adrp	x2, l_.str.1@PAGE
Lloh8:
	add	x2, x2, l_.str.1@PAGEOFF
Lloh9:
	adrp	x4, l_.str.2@PAGE
Lloh10:
	add	x4, x4, l_.str.2@PAGEOFF
	add	x3, sp, #8
	mov	w5, #16384
	bl	_ldns_fget_keyword_data_l
	cmn	w0, #1
	b.eq	LBB0_14
; %bb.1:
	mov	x0, sp
	add	x1, sp, #8
	bl	_ldns_str2rdf_b64
Lloh11:
	adrp	x8, _LDNS_STATUS_OK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _LDNS_STATUS_OK@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_14
; %bb.2:
	ldr	x0, [sp]
	bl	_ldns_rdf_data
	mov	x20, x0
Lloh14:
	adrp	x8, _LDNS_ECDSAP256SHA256@GOTPAGE
Lloh15:
	ldr	x8, [x8, _LDNS_ECDSAP256SHA256@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cmp	x8, x19
	b.ne	LBB0_4
; %bb.3:
Lloh17:
	adrp	x8, _NID_X9_62_prime256v1@GOTPAGE
Lloh18:
	ldr	x8, [x8, _NID_X9_62_prime256v1@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh19:
	adrp	x8, _LDNS_ECDSAP384SHA384@GOTPAGE
Lloh20:
	ldr	x8, [x8, _LDNS_ECDSAP384SHA384@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	cmp	x8, x19
	b.ne	LBB0_13
; %bb.5:
Lloh22:
	adrp	x8, _NID_secp384r1@GOTPAGE
Lloh23:
	ldr	x8, [x8, _NID_secp384r1@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
	bl	_EC_KEY_new_by_curve_name
	cbz	x0, LBB0_13
; %bb.7:
	mov	x19, x0
	ldr	x0, [sp]
	bl	_ldns_rdf_size
	mov	x1, x0
	mov	x0, x20
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x2, #0
	bl	_BN_bin2bn
	mov	x20, x0
	ldr	x0, [sp]
	bl	_ldns_rdf_deep_free
	cbz	x20, LBB0_17
; %bb.8:
	mov	x0, x19
	mov	x1, x20
	bl	_EC_KEY_set_private_key
	mov	x0, x20
	bl	_BN_free
	mov	x0, x19
	bl	_ldns_EC_KEY_calc_public
	cbz	w0, LBB0_12
; %bb.9:
	bl	_EVP_PKEY_new
	mov	x20, x0
	cbz	x0, LBB0_17
; %bb.10:
	mov	x0, x20
	mov	x1, x19
	bl	_EVP_PKEY_assign_EC_KEY
	cbnz	w0, LBB0_15
; %bb.11:
	mov	x0, x20
	bl	_EVP_PKEY_free
LBB0_12:
	mov	x0, x19
	bl	_EC_KEY_free
	b	LBB0_14
LBB0_13:
	ldr	x0, [sp]
	bl	_ldns_rdf_deep_free
LBB0_14:
	mov	x20, #0
LBB0_15:
	ldur	x8, [x29, #-40]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.16:
	mov	x0, x20
	add	sp, sp, #4, lsl #12             ; =16384
	add	sp, sp, #16
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_17:
	mov	x0, x19
	bl	_EC_KEY_free
	b	LBB0_15
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PrivateKey"

l_.str.1:                               ; @.str.1
	.asciz	": "

l_.str.2:                               ; @.str.2
	.asciz	"\n"

	.comm	_LDNS_STATUS_OK,8,3             ; @LDNS_STATUS_OK
	.comm	_LDNS_ECDSAP256SHA256,8,3       ; @LDNS_ECDSAP256SHA256
	.comm	_NID_X9_62_prime256v1,4,2       ; @NID_X9_62_prime256v1
	.comm	_LDNS_ECDSAP384SHA384,8,3       ; @LDNS_ECDSAP384SHA384
	.comm	_NID_secp384r1,4,2              ; @NID_secp384r1
	.no_dead_strip	_ldns_key_new_frm_fp_ecdsa_l
.subsections_via_symbols
