	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_test_random                    ## -- Begin function test_random
	.p2align	4, 0x90
_test_random:                           ## @test_random
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	_test_random.pos(%rip), %ecx
	xorl	%eax, %eax
	cmpl	$31, %ecx
	cmovnel	%ecx, %eax
	movq	_test_random_state@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	leal	28(%rax), %edx
	imulq	$138547333, %rdx, %rsi          ## imm = 0x8421085
	shrq	$32, %rsi
	subl	%esi, %edx
	shrl	%edx
	addl	%esi, %edx
	shrl	$4, %edx
	movl	%edx, %esi
	shll	$5, %esi
	subl	%esi, %edx
	addl	%eax, %edx
	addl	$28, %edx
	movl	(%rcx,%rax,4), %esi
	addl	(%rcx,%rdx,4), %esi
	movl	%esi, (%rcx,%rax,4)
	incl	%eax
	movl	%eax, _test_random.pos(%rip)
	movl	%esi, %eax
	shrl	$31, %eax
	addl	%esi, %eax
	sarl	%eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__data
	.p2align	2                               ## @test_random.pos
_test_random.pos:
	.long	3                               ## 0x3

	.comm	_test_random_state,8,3          ## @test_random_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_test_random                    ; -- Begin function test_random
	.p2align	2
_test_random:                           ; @test_random
	.cfi_startproc
; %bb.0:
	adrp	x8, _test_random.pos@PAGE
	ldr	w9, [x8, _test_random.pos@PAGEOFF]
	cmp	w9, #31
	csel	w9, wzr, w9, eq
Lloh0:
	adrp	x10, _test_random_state@GOTPAGE
Lloh1:
	ldr	x10, [x10, _test_random_state@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	add	w11, w9, #28
	mov	w12, #4229
	movk	w12, #2114, lsl #16
	umull	x12, w11, w12
	lsr	x12, x12, #32
	sub	w13, w11, w12
	add	w12, w12, w13, lsr #1
	lsr	w12, w12, #4
	sub	w12, w12, w12, lsl #5
	add	w11, w11, w12
	ldr	w11, [x10, w11, uxtw #2]
	lsl	x12, x9, #2
	ldr	w13, [x10, x12]
	add	w11, w13, w11
	str	w11, [x10, x12]
	add	w9, w9, #1
	str	w9, [x8, _test_random.pos@PAGEOFF]
	cmp	w11, #0
	cinc	w8, w11, lt
	asr	w0, w8, #1
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
	.p2align	2                               ; @test_random.pos
_test_random.pos:
	.long	3                               ; 0x3

	.comm	_test_random_state,8,3          ; @test_random_state
.subsections_via_symbols
