	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_genkeys                        ## -- Begin function genkeys
	.p2align	4, 0x90
_genkeys:                               ## @genkeys
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%edi, %edi
	callq	_mp_itom
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	xorl	%edi, %edi
	callq	_mp_itom
	movq	%rax, %r12
	movl	$-32768, %edi                   ## imm = 0x8000
	callq	_mp_itom
	movq	%rax, %r13
	movq	_PROOT@GOTPCREL(%rip), %rax
	movswl	(%rax), %edi
	callq	_mp_itom
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_HEXMODULUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_mp_xtom
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_KEYSIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movabsq	$-8608480567731124087, %rcx     ## imm = 0x8888888888888889
	mulq	%rcx
	shrq	$3, %rdx
	leaq	1(%rdx), %rbx
	leaq	(%rdx,%rdx), %rax
	addq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	addl	%ebx, %ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_getseed
	movq	$-1, %r15
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movzwl	2(%r14,%r15,2), %edi
	andl	$32767, %edi                    ## imm = 0x7FFF
	callq	_mp_itom
	movq	%rax, %rbx
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_mp_mult
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_mp_madd
	movq	%rbx, %rdi
	callq	_mp_mfree
	movq	_KEYSIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movabsq	$-8608480567731124087, %rcx     ## imm = 0x8888888888888889
	mulq	%rcx
	shrq	$3, %rdx
	incq	%r15
	cmpq	%rdx, %r15
	jb	LBB0_1
## %bb.2:
	xorl	%edi, %edi
	callq	_mp_itom
	movq	%rax, %rbx
	movq	%r12, %rdi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	%rax, %rdx
	movq	%r12, %rcx
	callq	_mp_mdiv
	movq	%rbx, %rdi
	callq	_mp_mfree
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rcx
	callq	_mp_pow
	movq	%r12, %rdi
	callq	_mp_mtox
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rsi
	callq	_adjust
	movq	%rbx, %rdi
	callq	_mp_mtox
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rsi
	callq	_adjust
	movq	%r12, %rdi
	callq	_mp_mfree
	movq	%r13, %rdi
	callq	_mp_mfree
	movq	%rbx, %rdi
	callq	_mp_mfree
	movq	%r14, %rdi
	callq	_mp_mfree
	movq	%r15, %rdi
	callq	_mp_mfree
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PROOT,2,1                      ## @PROOT
	.comm	_HEXMODULUS,4,2                 ## @HEXMODULUS
	.comm	_KEYSIZE,4,2                    ## @KEYSIZE
	.comm	_BASE,2,1                       ## @BASE
	.comm	_BASEBITS,4,2                   ## @BASEBITS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_genkeys                        ; -- Begin function genkeys
	.p2align	2
_genkeys:                               ; @genkeys
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #32
	stp	x1, x0, [x29, #-104]            ; 16-byte Folded Spill
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	mov	w0, #0
	bl	_mp_itom
	mov	x19, x0
	mov	w0, #0
	bl	_mp_itom
	mov	x21, x0
	mov	w0, #-32768
	bl	_mp_itom
	mov	x23, x0
Lloh3:
	adrp	x8, _PROOT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PROOT@GOTPAGEOFF]
Lloh5:
	ldrsh	w0, [x8]
	bl	_mp_itom
	mov	x24, x0
Lloh6:
	adrp	x8, _HEXMODULUS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HEXMODULUS@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_mp_xtom
	mov	x25, x0
Lloh9:
	adrp	x28, _KEYSIZE@GOTPAGE
Lloh10:
	ldr	x28, [x28, _KEYSIZE@GOTPAGEOFF]
	ldrsw	x8, [x28]
	mov	x20, #-8608480567731124088
	movk	x20, #34953
	umulh	x8, x8, x20
	lsr	x8, x8, #3
	add	x8, x8, #1
	lsl	x9, x8, #1
	add	x10, x9, #15
	and	x12, x10, #0xfffffffffffffff0
Lloh11:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh12:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x26, x9, x12
	mov	sp, x26
	lsl	w1, w8, #1
	mov	x0, x26
	bl	_getseed
	mov	x22, #0
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldrh	w8, [x26, x22, lsl #1]
	and	w0, w8, #0x7fff
	bl	_mp_itom
	mov	x27, x0
	mov	x0, x21
	mov	x1, x23
	mov	x2, x21
	bl	_mp_mult
	mov	x0, x21
	mov	x1, x27
	mov	x2, x21
	bl	_mp_madd
	mov	x0, x27
	bl	_mp_mfree
	ldrsw	x8, [x28]
	umulh	x8, x8, x20
	cmp	x22, x8, lsr #3
	add	x22, x22, #1
	b.lo	LBB0_1
; %bb.2:
	mov	w0, #0
	bl	_mp_itom
	mov	x26, x0
	mov	x0, x21
	mov	x1, x25
	mov	x2, x26
	mov	x3, x21
	bl	_mp_mdiv
	mov	x0, x26
	bl	_mp_mfree
	mov	x0, x24
	mov	x1, x21
	mov	x2, x25
	mov	x3, x19
	bl	_mp_pow
	mov	x0, x21
	bl	_mp_mtox
	mov	x1, x0
	ldur	x0, [x29, #-104]                ; 8-byte Folded Reload
	bl	_adjust
	mov	x0, x19
	bl	_mp_mtox
	mov	x1, x0
	ldur	x0, [x29, #-96]                 ; 8-byte Folded Reload
	bl	_adjust
	mov	x0, x21
	bl	_mp_mfree
	mov	x0, x23
	bl	_mp_mfree
	mov	x0, x19
	bl	_mp_mfree
	mov	x0, x24
	bl	_mp_mfree
	mov	x0, x25
	bl	_mp_mfree
	ldur	x8, [x29, #-88]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_PROOT,2,1                      ; @PROOT
	.comm	_HEXMODULUS,4,2                 ; @HEXMODULUS
	.comm	_KEYSIZE,4,2                    ; @KEYSIZE
	.comm	_BASE,2,1                       ; @BASE
	.comm	_BASEBITS,4,2                   ; @BASEBITS
.subsections_via_symbols
