	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_crypto_sign_ed25519_open       ## -- Begin function crypto_sign_ed25519_open
	.p2align	4, 0x90
_crypto_sign_ed25519_open:              ## @crypto_sign_ed25519_open
	.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
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movq	%rcx, %r12
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsp, -112(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_crypto_hash_sha512_BYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rax
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movq	$-1, (%rbx)
	movl	$-1, %r13d
	cmpq	$64, %r12
	jb	LBB0_10
## %bb.1:
	movq	%rax, %rbx
	leaq	-88(%rbp), %rdi
	movq	%r15, %rsi
	callq	_ge25519_unpackneg_vartime
	testq	%rax, %rax
	je	LBB0_2
LBB0_10:
	movq	-112(%rbp), %rsp                ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	movl	%r13d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%rbx, %r13
	movq	%rbx, %rdi
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movq	%r14, %rcx
	movq	%r12, %r8
	callq	_get_hram
	leaq	-84(%rbp), %rdi
	movq	%r13, %rsi
	callq	_sc25519_from64bytes
	leaq	32(%rbx), %rsi
	leaq	-116(%rbp), %r15
	movq	%r15, %rdi
	callq	_sc25519_from32bytes
	movq	_ge25519_base@GOTPCREL(%rip), %rcx
	leaq	-120(%rbp), %r13
	leaq	-88(%rbp), %rsi
	movq	%r13, %rdi
	leaq	-84(%rbp), %rdx
	movq	%r15, %r8
	callq	_ge25519_double_scalarmult_vartime
	leaq	-80(%rbp), %r15
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_ge25519_pack
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_crypto_verify_32
	addq	$-64, %r12
	testl	%eax, %eax
	je	LBB0_6
## %bb.3:
	movl	%eax, %r13d
	testq	%r12, %r12
	je	LBB0_10
## %bb.4:
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movb	$0, (%r14,%rax)
	incl	%eax
	cmpq	%rax, %r12
	ja	LBB0_5
	jmp	LBB0_10
LBB0_6:
	testq	%r12, %r12
	je	LBB0_9
## %bb.7:
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	leal	64(%rax), %ecx
	movzbl	(%rbx,%rcx), %ecx
	movb	%cl, (%r14,%rax)
	incl	%eax
	cmpq	%rax, %r12
	ja	LBB0_8
LBB0_9:
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	%r12, (%rax)
	xorl	%r13d, %r13d
	jmp	LBB0_10
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_crypto_hash_sha512_BYTES,4,2   ## @crypto_hash_sha512_BYTES
	.comm	_ge25519_base,4,2               ## @ge25519_base
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_crypto_sign_ed25519_open       ; -- Begin function crypto_sign_ed25519_open
	.p2align	2
_crypto_sign_ed25519_open:              ; @crypto_sign_ed25519_open
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #64
	mov	x23, x4
	mov	x22, x3
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	mov	x25, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _crypto_hash_sha512_BYTES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _crypto_hash_sha512_BYTES@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x24, x9, x8
	mov	sp, x24
	mov	x8, #-1
	str	x8, [x1]
	subs	x26, x3, #64
	b.lo	LBB0_2
; %bb.1:
	sub	x0, x29, #108
	mov	x1, x23
	bl	_ge25519_unpackneg_vartime
	cbz	x0, LBB0_5
LBB0_2:
	mov	w0, #-1
LBB0_3:
	mov	sp, x25
	ldur	x8, [x29, #-72]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.4:
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	x0, x24
	mov	x1, x21
	mov	x2, x23
	mov	x3, x19
	mov	x4, x22
	bl	_get_hram
	sub	x0, x29, #116
	mov	x1, x24
	bl	_sc25519_from64bytes
	add	x1, x21, #32
	sub	x0, x29, #120
	bl	_sc25519_from32bytes
Lloh11:
	adrp	x3, _ge25519_base@GOTPAGE
Lloh12:
	ldr	x3, [x3, _ge25519_base@GOTPAGEOFF]
	sub	x0, x29, #112
	sub	x1, x29, #108
	sub	x2, x29, #116
	sub	x4, x29, #120
	bl	_ge25519_double_scalarmult_vartime
	sub	x0, x29, #104
	sub	x1, x29, #112
	bl	_ge25519_pack
	sub	x1, x29, #104
	mov	x0, x21
	bl	_crypto_verify_32
	cbz	w0, LBB0_9
; %bb.6:
	cbz	x26, LBB0_3
; %bb.7:
	mov	x8, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	strb	wzr, [x19, x8]
	add	w8, w8, #1
	cmp	x26, x8
	b.hi	LBB0_8
	b	LBB0_3
LBB0_9:
	cbz	x26, LBB0_12
; %bb.10:
	mov	x8, #0
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	add	w9, w8, #64
	ldrb	w9, [x21, w9, uxtw]
	strb	w9, [x19, x8]
	add	w8, w8, #1
	cmp	x26, x8
	b.hi	LBB0_11
LBB0_12:
	mov	w0, #0
	str	x26, [x20]
	b	LBB0_3
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_crypto_hash_sha512_BYTES,4,2   ; @crypto_hash_sha512_BYTES
	.comm	_ge25519_base,4,2               ; @ge25519_base
.subsections_via_symbols
