	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dragonfly_get_random_qr_qnr    ## -- Begin function dragonfly_get_random_qr_qnr
	.p2align	4, 0x90
_dragonfly_get_random_qr_qnr:           ## @dragonfly_get_random_qr_qnr
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	$0, (%rdx)
	movq	$0, (%rsi)
	xorl	%eax, %eax
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, (%r14)
	je	LBB0_13
LBB0_1:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_crypto_bignum_deinit
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r15), %rax
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, (%r14)
	jne	LBB0_5
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	callq	_crypto_bignum_init
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_14
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_crypto_bignum_rand
	testq	%rax, %rax
	js	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_crypto_bignum_legendre
	cmpl	$-1, %eax
	je	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$1, %eax
	jne	LBB0_1
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, (%r15)
	jne	LBB0_1
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, (%r15)
	jmp	LBB0_2
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, (%r14)
	jmp	LBB0_2
LBB0_14:
	xorl	%r12d, %r12d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_crypto_bignum_deinit
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.16:
	cmpq	$0, (%r14)
	jne	LBB0_18
	jmp	LBB0_17
LBB0_15:
	xorl	%edi, %edi
LBB0_17:
	xorl	%esi, %esi
	callq	_crypto_bignum_deinit
	movq	(%r14), %rdi
	xorl	%esi, %esi
	callq	_crypto_bignum_deinit
	movq	$0, (%r14)
	movq	$0, (%r15)
	movl	$-1, %r12d
	jmp	LBB0_18
LBB0_5:
	xorl	%r12d, %r12d
LBB0_18:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dragonfly_get_random_qr_qnr    ; -- Begin function dragonfly_get_random_qr_qnr
	.p2align	2
_dragonfly_get_random_qr_qnr:           ; @dragonfly_get_random_qr_qnr
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x2
	mov	x19, x1
	mov	x21, x0
	mov	x8, #0
	str	xzr, [x2]
	str	xzr, [x1]
	b	LBB0_4
LBB0_1:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20]
	cbz	x8, LBB0_12
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	mov	w1, #0
	bl	_crypto_bignum_deinit
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x8, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20]
	cbnz	x8, LBB0_15
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_crypto_bignum_init
	mov	x22, x0
	cbz	x0, LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	mov	x1, x21
	bl	_crypto_bignum_rand
	tbnz	x0, #63, LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	mov	x1, x21
	bl	_crypto_bignum_legendre
	cmn	w0, #1
	b.eq	LBB0_1
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w0, #1
	b.ne	LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19]
	cbnz	x8, LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	str	x22, [x19]
	b	LBB0_3
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	str	x22, [x20]
	b	LBB0_3
LBB0_13:
	mov	x0, x22
	mov	w1, #0
	bl	_crypto_bignum_deinit
	ldr	x0, [x19]
	cbz	x0, LBB0_16
; %bb.14:
	ldr	x8, [x20]
	cbz	x8, LBB0_16
LBB0_15:
	mov	w0, #0
	b	LBB0_17
LBB0_16:
	mov	w1, #0
	bl	_crypto_bignum_deinit
	ldr	x0, [x20]
	mov	w1, #0
	bl	_crypto_bignum_deinit
	str	xzr, [x20]
	str	xzr, [x19]
	mov	w0, #-1
LBB0_17:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
