	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rand_long
_rand_long:                             ## @rand_long
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_LRAND_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	%r15, %rax
	orq	%rdi, %rax
	shrq	$32, %rax
	je	LBB0_1
## %bb.2:
	movq	%r15, %rax
	cqto
	idivq	%r14
	jmp	LBB0_3
LBB0_1:
	movl	%r15d, %eax
	xorl	%edx, %edx
	divl	%r14d
                                        ## kill: def $edx killed $edx def $rdx
LBB0_3:
	subq	%rdx, %r15
	movq	_RAND_MAX@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %r13
	incq	%r13
	xorl	%eax, %eax
	callq	_rand
	movq	%rax, %rbx
	imulq	%r13, %rbx
	xorl	%eax, %eax
	callq	_rand
	addq	%rbx, %rax
	cmpq	%r15, %rax
	jge	LBB0_4
## %bb.5:
	movq	%rax, %rcx
	orq	%r14, %rcx
	shrq	$32, %rcx
	je	LBB0_6
## %bb.7:
	cqto
	idivq	%r14
	movq	%rdx, %rax
	jmp	LBB0_8
LBB0_6:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%r14d
	movl	%edx, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LRAND_MAX,8,3                  ## @LRAND_MAX
	.comm	_RAND_MAX,8,3                   ## @RAND_MAX
	.no_dead_strip	_rand_long
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rand_long
_rand_long:                             ; @rand_long
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
Lloh0:
	adrp	x8, _LRAND_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LRAND_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	sdiv	x8, x8, x0
	mul	x20, x8, x0
Lloh3:
	adrp	x21, _RAND_MAX@GOTPAGE
Lloh4:
	ldr	x21, [x21, _RAND_MAX@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x22, [x21]
	bl	_rand
	madd	x22, x0, x22, x0
	bl	_rand
	add	x8, x22, x0
	cmp	x8, x20
	b.ge	LBB0_1
; %bb.2:
	sdiv	x9, x8, x19
	msub	x0, x9, x19, x8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LRAND_MAX,8,3                  ; @LRAND_MAX
	.comm	_RAND_MAX,8,3                   ; @RAND_MAX
	.no_dead_strip	_rand_long
.subsections_via_symbols
