	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_rand
_do_rand:                               ## @do_rand
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rcx
	movq	%rcx, %rax
	shrq	%rax
	movabsq	$-9223372028264841207, %rdx     ## imm = 0x8000000200000009
	mulq	%rdx
	shrq	$29, %rdx
	movl	%edx, %eax
	shll	$31, %eax
	addl	%edx, %eax
	addl	%edx, %eax
	addl	%ecx, %eax
	incl	%eax
	imulq	$110892733, %rax, %rcx          ## imm = 0x69C16BD
	shrq	$32, %rcx
	movl	%eax, %edx
	subl	%ecx, %edx
	shrl	%edx
	addl	%ecx, %edx
	shrl	$16, %edx
	imull	$127773, %edx, %ecx             ## imm = 0x1F31D
	subl	%ecx, %eax
	imull	$16807, %eax, %ecx              ## imm = 0x41A7
	imulq	$-2836, %rdx, %rdx              ## imm = 0xF4EC
	leaq	(%rdx,%rcx), %rax
	addq	$2147483647, %rax               ## imm = 0x7FFFFFFF
	addq	%rcx, %rdx
	cmovnsq	%rdx, %rax
	decq	%rax
	movq	%rax, (%rdi)
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_do_rand
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_rand
_do_rand:                               ; @do_rand
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	lsr	x9, x8, #1
	mov	x10, #9
	movk	x10, #2, lsl #32
	movk	x10, #32768, lsl #48
	umulh	x9, x9, x10
	lsr	x9, x9, #29
	mov	w10, #2147483646
	msub	w8, w9, w10, w8
	add	w8, w8, #1
	mov	w9, #5821
	movk	w9, #1692, lsl #16
	umull	x9, w8, w9
	lsr	x9, x9, #32
	sub	w10, w8, w9
	add	w9, w9, w10, lsr #1
	lsr	w9, w9, #16
	mov	w10, #62237
	movk	w10, #1, lsl #16
	msub	w8, w9, w10, w8
	mov	w10, #16807
	mul	w8, w8, w10
	mov	x10, #-2836
	madd	x8, x9, x10, x8
	mov	w9, #2147483647
	add	x9, x8, x9
	cmp	x8, #0
	csel	x8, x9, x8, lt
	sub	x8, x8, #1
	str	x8, [x0]
	mov	x0, x8
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_do_rand
.subsections_via_symbols
