	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gen_rand64                     ## -- Begin function gen_rand64
	.p2align	4, 0x90
_gen_rand64:                            ## @gen_rand64
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	(%rax), %r14
	movl	(%rdi), %edi
	callq	_assert
	movl	4(%rbx), %edi
	notl	%edi
	andl	$1, %edi
	callq	_assert
	movl	4(%rbx), %ecx
	movq	_N32@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jl	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_gen_rand_all
	movl	$0, 4(%rbx)
	xorl	%ecx, %ecx
LBB0_2:
	movl	%ecx, %eax
	shrl	$31, %eax
	addl	%ecx, %eax
	sarl	%eax
	cltq
	movl	(%r14,%rax,4), %eax
	addl	$2, %ecx
	movl	%ecx, 4(%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_N32,4,2                        ## @N32
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gen_rand64                     ; -- Begin function gen_rand64
	.p2align	2
_gen_rand64:                            ; @gen_rand64
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x20, [x8]
	ldr	w0, [x0]
	bl	_assert
	ldr	w8, [x19, #4]
	mvn	w8, w8
	and	w0, w8, #0x1
	bl	_assert
	ldr	w8, [x19, #4]
Lloh0:
	adrp	x9, _N32@GOTPAGE
Lloh1:
	ldr	x9, [x9, _N32@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.lt	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_gen_rand_all
	mov	w8, #0
	str	wzr, [x19, #4]
LBB0_2:
	cmp	w8, #0
	cinc	w9, w8, lt
	asr	w9, w9, #1
	ldr	w0, [x20, w9, sxtw #2]
	add	w8, w8, #2
	str	w8, [x19, #4]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_N32,4,2                        ; @N32
.subsections_via_symbols
