	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function good_rand
_good_rand:                             ## @good_rand
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movabsq	$4730756183288445817, %rcx      ## imm = 0x41A705AF1FE3FB79
	movq	%rdi, %rax
	imulq	%rcx
	movq	%rdx, %rax
	shrq	$63, %rax
	sarq	$15, %rdx
	addq	%rax, %rdx
	imulq	$127773, %rdx, %rax             ## imm = 0x1F31D
	subq	%rax, %rdi
	imulq	$16807, %rdi, %rax              ## imm = 0x41A7
	imulq	$-2836, %rdx, %rcx              ## imm = 0xF4EC
	leaq	(%rcx,%rax), %rdx
	testq	%rdx, %rdx
	leaq	2147483647(%rcx,%rax), %rax
	cmovgq	%rdx, %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_good_rand
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function good_rand
_good_rand:                             ; @good_rand
	.cfi_startproc
; %bb.0:
	mov	x8, #64377
	movk	x8, #8163, lsl #16
	movk	x8, #1455, lsl #32
	movk	x8, #16807, lsl #48
	smulh	x8, x0, x8
	asr	x9, x8, #15
	add	x8, x9, x8, lsr #63
	mov	w9, #62237
	movk	w9, #1, lsl #16
	msub	x9, x8, x9, x0
	mov	w10, #16807
	mul	x9, x9, x10
	mov	x10, #-2836
	madd	x8, x8, x10, x9
	mov	w9, #2147483647
	add	x9, x8, x9
	cmp	x8, #1
	csel	x0, x9, x8, lt
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_good_rand
.subsections_via_symbols
