	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pkey_ecd_digestsign25519
_pkey_ecd_digestsign25519:              ## @pkey_ecd_digestsign25519
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %rbx
	callq	_EVP_MD_CTX_pkey_ctx
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movq	(%r12), %rcx
	movq	_ED25519_SIGSIZE@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rcx
	jae	LBB0_4
## %bb.3:
	movq	_EC_F_PKEY_ECD_DIGESTSIGN25519@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EC_R_BUFFER_TOO_SMALL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ECerr
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_1:
	movq	_ED25519_SIGSIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_7
LBB0_4:
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %r8d
	movl	4(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_ED25519_sign
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	(%r13), %rax
LBB0_7:
	movq	%rax, (%r12)
	movl	$1, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	xorl	%eax, %eax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_ED25519_SIGSIZE,8,3            ## @ED25519_SIGSIZE
	.comm	_EC_F_PKEY_ECD_DIGESTSIGN25519,4,2 ## @EC_F_PKEY_ECD_DIGESTSIGN25519
	.comm	_EC_R_BUFFER_TOO_SMALL,4,2      ## @EC_R_BUFFER_TOO_SMALL
	.no_dead_strip	_pkey_ecd_digestsign25519
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pkey_ecd_digestsign25519
_pkey_ecd_digestsign25519:              ; @pkey_ecd_digestsign25519
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x4
	mov	x21, x3
	mov	x19, x2
	mov	x22, x1
	bl	_EVP_MD_CTX_pkey_ctx
	cbz	x22, LBB0_3
; %bb.1:
	ldr	x8, [x19]
Lloh0:
	adrp	x23, _ED25519_SIGSIZE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ED25519_SIGSIZE@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	b.hs	LBB0_4
; %bb.2:
Lloh2:
	adrp	x8, _EC_F_PKEY_ECD_DIGESTSIGN25519@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EC_F_PKEY_ECD_DIGESTSIGN25519@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x8, _EC_R_BUFFER_TOO_SMALL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EC_R_BUFFER_TOO_SMALL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_ECerr
	mov	w0, #0
	b	LBB0_7
LBB0_3:
Lloh8:
	adrp	x8, _ED25519_SIGSIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ED25519_SIGSIZE@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	b	LBB0_6
LBB0_4:
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldp	w4, w3, [x8]
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_ED25519_sign
	cbz	x0, LBB0_7
; %bb.5:
	ldr	x8, [x23]
LBB0_6:
	str	x8, [x19]
	mov	w0, #1
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ED25519_SIGSIZE,8,3            ; @ED25519_SIGSIZE
	.comm	_EC_F_PKEY_ECD_DIGESTSIGN25519,4,2 ; @EC_F_PKEY_ECD_DIGESTSIGN25519
	.comm	_EC_R_BUFFER_TOO_SMALL,4,2      ; @EC_R_BUFFER_TOO_SMALL
	.no_dead_strip	_pkey_ecd_digestsign25519
.subsections_via_symbols
