	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bbs_next_random_byte           ## -- Begin function bbs_next_random_byte
	.p2align	4, 0x90
_bbs_next_random_byte:                  ## @bbs_next_random_byte
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_BN_new
	movq	%rax, %r14
	movq	8(%rbx), %rdx
	movl	20(%rbx), %ecx
	movl	16(%rbx), %r8d
	movq	%rax, %rdi
	movq	%rdx, %rsi
	callq	_BN_mod_mul_reciprocal
	movq	8(%rbx), %rdi
	movl	$8, %esi
	callq	_BN_mask_bits
	movq	8(%rbx), %rdi
	callq	_BN_get_word
	movl	%eax, %r15d
	xorl	%edi, %edi
	cmpl	$256, %eax                      ## imm = 0x100
	setb	%dil
	callq	_assert
	movq	8(%rbx), %rdi
	callq	_BN_clear_free
	movq	%r14, 8(%rbx)
	incl	(%rbx)
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	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	_bbs_next_random_byte           ; -- Begin function bbs_next_random_byte
	.p2align	2
_bbs_next_random_byte:                  ; @bbs_next_random_byte
	.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	x19, x0
	bl	_BN_new
	mov	x20, x0
	ldr	x1, [x19, #8]
	ldp	w4, w3, [x19, #16]
	mov	x2, x1
	bl	_BN_mod_mul_reciprocal
	ldr	x0, [x19, #8]
	mov	w1, #8
	bl	_BN_mask_bits
	ldr	x0, [x19, #8]
	bl	_BN_get_word
	mov	x21, x0
	cmp	w0, #256
	cset	w0, lo
	bl	_assert
	ldr	x0, [x19, #8]
	bl	_BN_clear_free
	str	x20, [x19, #8]
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	mov	x0, x21
	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
