	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_crypto_sign_ed25519_keypair    ## -- Begin function crypto_sign_ed25519_keypair
	.p2align	4, 0x90
_crypto_sign_ed25519_keypair:           ## @crypto_sign_ed25519_keypair
	.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	%r12
	pushq	%rbx
	subq	$96, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	%rsi, %rdi
	movl	$32, %esi
	callq	_randombytes
	leaq	-112(%rbp), %r15
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$32, %edx
	callq	_crypto_hash_sha512
	andb	$-8, -112(%rbp)
	movb	-81(%rbp), %al
	andb	$63, %al
	orb	$64, %al
	movb	%al, -81(%rbp)
	leaq	-120(%rbp), %r12
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_sc25519_from32bytes
	leaq	-116(%rbp), %r15
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_ge25519_scalarmult_base
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_ge25519_pack
	movq	%r14, %rax
	subq	%rbx, %rax
	addq	$32, %rax
	cmpq	$15, %rax
	ja	LBB0_5
## %bb.1:
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx,%rax), %ecx
	movb	%cl, 32(%r14,%rax)
	movzbl	1(%rbx,%rax), %ecx
	movb	%cl, 33(%r14,%rax)
	movzbl	2(%rbx,%rax), %ecx
	movb	%cl, 34(%r14,%rax)
	movzbl	3(%rbx,%rax), %ecx
	movb	%cl, 35(%r14,%rax)
	addq	$4, %rax
	cmpq	$32, %rax
	jne	LBB0_2
	jmp	LBB0_3
LBB0_5:
	movups	(%rbx), %xmm0
	movups	%xmm0, 32(%r14)
	movups	16(%rbx), %xmm0
	movups	%xmm0, 48(%r14)
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_6
## %bb.4:
	xorl	%eax, %eax
	addq	$96, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_crypto_sign_ed25519_keypair    ; -- Begin function crypto_sign_ed25519_keypair
	.p2align	2
_crypto_sign_ed25519_keypair:           ; @crypto_sign_ed25519_keypair
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	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, #-24]
	mov	x0, x1
	mov	w1, #32
	bl	_randombytes
	add	x0, sp, #8
	mov	x1, x19
	mov	w2, #32
	bl	_crypto_hash_sha512
	ldrb	w8, [sp, #8]
	and	w8, w8, #0xf8
	strb	w8, [sp, #8]
	ldrb	w8, [sp, #39]
	mov	w9, #64
	bfxil	w9, w8, #0, #6
	strb	w9, [sp, #39]
	add	x0, sp, #4
	add	x1, sp, #8
	bl	_sc25519_from32bytes
	mov	x0, sp
	add	x1, sp, #4
	bl	_ge25519_scalarmult_base
	mov	x1, sp
	mov	x0, x20
	bl	_ge25519_pack
	ldrb	w8, [x20]
	strb	w8, [x19, #32]
	ldrb	w8, [x20, #1]
	strb	w8, [x19, #33]
	ldrb	w8, [x20, #2]
	strb	w8, [x19, #34]
	ldrb	w8, [x20, #3]
	strb	w8, [x19, #35]
	ldrb	w8, [x20, #4]
	strb	w8, [x19, #36]
	ldrb	w8, [x20, #5]
	strb	w8, [x19, #37]
	ldrb	w8, [x20, #6]
	strb	w8, [x19, #38]
	ldrb	w8, [x20, #7]
	strb	w8, [x19, #39]
	ldrb	w8, [x20, #8]
	strb	w8, [x19, #40]
	ldrb	w8, [x20, #9]
	strb	w8, [x19, #41]
	ldrb	w8, [x20, #10]
	strb	w8, [x19, #42]
	ldrb	w8, [x20, #11]
	strb	w8, [x19, #43]
	ldrb	w8, [x20, #12]
	strb	w8, [x19, #44]
	ldrb	w8, [x20, #13]
	strb	w8, [x19, #45]
	ldrb	w8, [x20, #14]
	strb	w8, [x19, #46]
	ldrb	w8, [x20, #15]
	strb	w8, [x19, #47]
	ldrb	w8, [x20, #16]
	strb	w8, [x19, #48]
	ldrb	w8, [x20, #17]
	strb	w8, [x19, #49]
	ldrb	w8, [x20, #18]
	strb	w8, [x19, #50]
	ldrb	w8, [x20, #19]
	strb	w8, [x19, #51]
	ldrb	w8, [x20, #20]
	strb	w8, [x19, #52]
	ldrb	w8, [x20, #21]
	strb	w8, [x19, #53]
	ldrb	w8, [x20, #22]
	strb	w8, [x19, #54]
	ldrb	w8, [x20, #23]
	strb	w8, [x19, #55]
	ldrb	w8, [x20, #24]
	strb	w8, [x19, #56]
	ldrb	w8, [x20, #25]
	strb	w8, [x19, #57]
	ldrb	w8, [x20, #26]
	strb	w8, [x19, #58]
	ldrb	w8, [x20, #27]
	strb	w8, [x19, #59]
	ldrb	w8, [x20, #28]
	strb	w8, [x19, #60]
	ldrb	w8, [x20, #29]
	strb	w8, [x19, #61]
	ldrb	w8, [x20, #30]
	strb	w8, [x19, #62]
	ldrb	w8, [x20, #31]
	strb	w8, [x19, #63]
	ldur	x8, [x29, #-24]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
