	.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
	movslq	%edi, %rax
	imulq	$-2147483645, %rax, %rcx        ## imm = 0x80000003
	shrq	$32, %rcx
	addl	%eax, %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	sarl	$30, %ecx
	addl	%edx, %ecx
	movl	%ecx, %edx
	shll	$31, %edx
	addl	%ecx, %edx
	addl	%ecx, %edx
	leal	(%rax,%rdx), %ecx
	addl	%edx, %eax
	incl	%eax
	cltq
	imulq	$-2092037281, %rax, %rdx        ## imm = 0x834E0B5F
	shrq	$32, %rdx
	addl	%edx, %ecx
	incl	%ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	sarl	$16, %ecx
	addl	%edx, %ecx
	imull	$127773, %ecx, %edx             ## imm = 0x1F31D
	subl	%edx, %eax
	imull	$16807, %eax, %edx              ## imm = 0x41A7
	imull	$-2836, %ecx, %ecx              ## imm = 0xF4EC
	leal	(%rcx,%rdx), %eax
	addl	$2147483647, %eax               ## imm = 0x7FFFFFFF
                                        ## kill: def $ecx killed $ecx killed $rcx
	addl	%edx, %ecx
	cmovnsl	%ecx, %eax
	decl	%eax
	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	w8, #-2147483645
	smull	x8, w0, w8
	lsr	x8, x8, #32
	add	w8, w8, w0
	asr	w9, w8, #30
	add	w8, w9, w8, lsr #31
	mov	w9, #2147483646
	msub	w8, w8, w9, w0
	add	w8, w8, #1
	mov	w9, #2911
	movk	w9, #33614, lsl #16
	smull	x9, w8, w9
	lsr	x9, x9, #32
	add	w9, w9, w8
	asr	w10, w9, #16
	add	w9, w10, w9, lsr #31
	mov	w10, #62237
	movk	w10, #1, lsl #16
	msub	w8, w9, w10, w8
	mov	w10, #16807
	mul	w8, w8, w10
	mov	w10, #-2836
	madd	w8, w9, w10, w8
	mov	w9, #2147483647
	add	w9, w8, w9
	cmp	w8, #0
	csel	w8, w9, w8, lt
	sub	w0, w8, #1
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_good_rand
.subsections_via_symbols
