	.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
	imulq	$1103515245, (%rdi), %rax       ## imm = 0x41C64E6D
	addq	$12345, %rax                    ## imm = 0x3039
	movq	%rax, (%rdi)
	movq	_PHP_RAND_MAX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	incq	%rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_1
## %bb.2:
	xorl	%edx, %edx
	divq	%rcx
	movq	%rdx, %rax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_1:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PHP_RAND_MAX,8,3               ## @PHP_RAND_MAX
	.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]
	mov	w9, #20077
	movk	w9, #16838, lsl #16
	mov	w10, #12345
	madd	x8, x8, x9, x10
Lloh0:
	adrp	x9, _PHP_RAND_MAX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PHP_RAND_MAX@GOTPAGEOFF]
	str	x8, [x0]
Lloh2:
	ldr	x9, [x9]
	add	x9, x9, #1
	udiv	x10, x8, x9
	msub	w0, w10, w9, w8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PHP_RAND_MAX,8,3               ; @PHP_RAND_MAX
	.no_dead_strip	_do_rand
.subsections_via_symbols
