	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_ecdsa2pkey_raw            ## -- Begin function ldns_ecdsa2pkey_raw
	.p2align	4, 0x90
_ldns_ecdsa2pkey_raw:                   ## @ldns_ecdsa2pkey_raw
	.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
	subq	$296, %rsp                      ## imm = 0x128
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	leaq	-304(%rbp), %rax
	movq	%rax, -320(%rbp)
	movq	_LDNS_ECDSAP256SHA256@GOTPCREL(%rip), %rax
	cmpq	%rdx, (%rax)
	jne	LBB0_3
## %bb.1:
	cmpq	$64, %r14
	jne	LBB0_13
## %bb.2:
	movq	_NID_X9_62_prime256v1@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_3:
	movq	_LDNS_ECDSAP384SHA384@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpq	%rdx, (%rax)
	jne	LBB0_14
## %bb.4:
	cmpq	$96, %r14
	jne	LBB0_14
## %bb.5:
	movq	_NID_secp384r1@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %edi
	callq	_EC_KEY_new_by_curve_name
	movq	%rax, -312(%rbp)
	testq	%rax, %rax
	je	LBB0_13
## %bb.7:
	movq	_POINT_CONVERSION_UNCOMPRESSED@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, -304(%rbp)
	leaq	-303(%rbp), %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_memmove
	incl	%r14d
	leaq	-312(%rbp), %rdi
	leaq	-320(%rbp), %rsi
	movl	%r14d, %edx
	callq	_o2i_ECPublicKey
	testl	%eax, %eax
	je	LBB0_11
## %bb.8:
	xorl	%eax, %eax
	callq	_EVP_PKEY_new
	movq	-312(%rbp), %rsi
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_EVP_PKEY_assign_EC_KEY
	testl	%eax, %eax
	jne	LBB0_14
## %bb.10:
	movq	%rbx, %rdi
	callq	_EVP_PKEY_free
LBB0_11:
	movq	-312(%rbp), %rsi
LBB0_12:
	movq	%rsi, %rdi
	callq	_EC_KEY_free
LBB0_13:
	xorl	%ebx, %ebx
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	movq	%rbx, %rax
	addq	$296, %rsp                      ## imm = 0x128
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.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
	.comm	_POINT_CONVERSION_UNCOMPRESSED,1,0 ## @POINT_CONVERSION_UNCOMPRESSED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_ecdsa2pkey_raw            ; -- Begin function ldns_ecdsa2pkey_raw
	.p2align	2
_ldns_ecdsa2pkey_raw:                   ; @ldns_ecdsa2pkey_raw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #336
	.cfi_def_cfa_offset 336
	stp	x22, x21, [sp, #288]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #304]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #320]            ; 16-byte Folded Spill
	add	x29, sp, #320
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	add	x8, sp, #22
	str	x8, [sp, #8]
Lloh3:
	adrp	x8, _LDNS_ECDSAP256SHA256@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LDNS_ECDSAP256SHA256@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, x2
	b.ne	LBB0_3
; %bb.1:
	cmp	x19, #64
	b.ne	LBB0_13
; %bb.2:
Lloh6:
	adrp	x8, _NID_X9_62_prime256v1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NID_X9_62_prime256v1@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
	mov	x21, #0
Lloh8:
	adrp	x8, _LDNS_ECDSAP384SHA384@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LDNS_ECDSAP384SHA384@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x8, x2
	b.ne	LBB0_14
; %bb.4:
	cmp	x19, #96
	b.ne	LBB0_14
; %bb.5:
Lloh11:
	adrp	x8, _NID_secp384r1@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NID_secp384r1@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
	bl	_EC_KEY_new_by_curve_name
	str	x0, [sp]
	cbz	x0, LBB0_13
; %bb.7:
Lloh13:
	adrp	x8, _POINT_CONVERSION_UNCOMPRESSED@GOTPAGE
Lloh14:
	ldr	x8, [x8, _POINT_CONVERSION_UNCOMPRESSED@GOTPAGEOFF]
	ldrb	w8, [x8]
	strb	w8, [sp, #22]
	add	x8, sp, #22
	add	x0, x8, #1
	mov	x1, x20
	mov	x2, x19
	bl	_memmove
	add	w2, w19, #1
	mov	x0, sp
	add	x1, sp, #8
	bl	_o2i_ECPublicKey
	cbz	w0, LBB0_11
; %bb.8:
	bl	_EVP_PKEY_new
	ldr	x1, [sp]
	cbz	x0, LBB0_12
; %bb.9:
	mov	x21, x0
	bl	_EVP_PKEY_assign_EC_KEY
	cbnz	w0, LBB0_14
; %bb.10:
	mov	x0, x21
	bl	_EVP_PKEY_free
LBB0_11:
	ldr	x1, [sp]
LBB0_12:
	mov	x0, x1
	bl	_EC_KEY_free
LBB0_13:
	mov	x21, #0
LBB0_14:
	ldur	x8, [x29, #-40]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	mov	x0, x21
	ldp	x29, x30, [sp, #320]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #304]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #288]            ; 16-byte Folded Reload
	add	sp, sp, #336
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.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
	.comm	_POINT_CONVERSION_UNCOMPRESSED,1,0 ; @POINT_CONVERSION_UNCOMPRESSED
.subsections_via_symbols
