	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_prng_lg_range_u64
_test_prng_lg_range_u64:                ## @test_prng_lg_range_u64
	.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
	movl	$42, -44(%rbp)
	leaq	-44(%rbp), %r14
	movq	%r14, %rdi
	movl	$64, %esi
	callq	_prng_lg_range_u64
	movl	%eax, %ebx
	movl	$42, -44(%rbp)
	movq	%r14, %rdi
	movl	$64, %esi
	callq	_prng_lg_range_u64
	leaq	L_.str(%rip), %rdx
	movl	%ebx, %edi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_assert_u64_eq
	movl	$42, -48(%rbp)
	leaq	-48(%rbp), %rdi
	movl	$64, %esi
	callq	_prng_lg_range_u64
	leaq	L_.str.1(%rip), %rdx
	movl	%ebx, %edi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_assert_u64_eq
	movl	$42, -44(%rbp)
	movq	%r14, %rdi
	movl	$64, %esi
	callq	_prng_lg_range_u64
	movl	%eax, %ebx
	movq	%r14, %rdi
	movl	$64, %esi
	callq	_prng_lg_range_u64
	leaq	L_.str.2(%rip), %rdx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_assert_u64_ne
	movl	$42, -44(%rbp)
	movq	%r14, %rdi
	movl	$64, %esi
	callq	_prng_lg_range_u64
	movl	%eax, %r14d
	movl	$63, %ebx
	movl	$1, %r12d
	leaq	L_.str.4(%rip), %r15
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	$42, -48(%rbp)
	leaq	-48(%rbp), %rdi
	movl	%ebx, %esi
	callq	_prng_lg_range_u64
	movl	%eax, %r13d
	movl	$-1, %edi
	callq	_UINT64_C
	movl	%ebx, %ecx
	shll	%cl, %eax
	andl	%r13d, %eax
	movl	%eax, %edi
	xorl	%esi, %esi
	leaq	L_.str.3(%rip), %rdx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_assert_u64_eq
	movl	%r14d, %esi
	movl	%r12d, %ecx
	shrl	%cl, %esi
	movl	%r13d, %edi
	movq	%r15, %rdx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_assert_u64_eq
	incl	%r12d
	decl	%ebx
	jne	LBB0_1
## %bb.2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Repeated generation should produce repeated results"

L_.str.1:                               ## @.str.1
	.asciz	"Equivalent generation should produce equivalent results"

L_.str.2:                               ## @.str.2
	.asciz	"Full-width results must not immediately repeat"

L_.str.3:                               ## @.str.3
	.asciz	"High order bits should be 0, lg_range=%u"

L_.str.4:                               ## @.str.4
	.asciz	"Expected high order bits of full-width result, lg_range=%u"

	.no_dead_strip	_test_prng_lg_range_u64
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_prng_lg_range_u64
_test_prng_lg_range_u64:                ; @test_prng_lg_range_u64
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	w24, #42
	str	w24, [sp, #12]
	add	x0, sp, #12
	mov	w1, #64
	bl	_prng_lg_range_u64
	mov	x19, x0
	str	w24, [sp, #12]
	add	x0, sp, #12
	mov	w1, #64
	bl	_prng_lg_range_u64
	mov	x1, x0
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_assert_u64_eq
	str	w24, [sp, #8]
	add	x0, sp, #8
	mov	w1, #64
	bl	_prng_lg_range_u64
	mov	x1, x0
Lloh2:
	adrp	x2, l_.str.1@PAGE
Lloh3:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_assert_u64_eq
	str	w24, [sp, #12]
	add	x0, sp, #12
	mov	w1, #64
	bl	_prng_lg_range_u64
	mov	x19, x0
	add	x0, sp, #12
	mov	w1, #64
	bl	_prng_lg_range_u64
	mov	x1, x0
Lloh4:
	adrp	x2, l_.str.2@PAGE
Lloh5:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_assert_u64_ne
	str	w24, [sp, #12]
	add	x0, sp, #12
	mov	w1, #64
	bl	_prng_lg_range_u64
	mov	x19, x0
	mov	w20, #63
	mov	w25, #1
Lloh6:
	adrp	x21, l_.str.3@PAGE
Lloh7:
	add	x21, x21, l_.str.3@PAGEOFF
Lloh8:
	adrp	x22, l_.str.4@PAGE
Lloh9:
	add	x22, x22, l_.str.4@PAGEOFF
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	str	w24, [sp, #8]
	add	x0, sp, #8
	mov	x1, x20
	bl	_prng_lg_range_u64
	mov	x23, x0
	mov	w0, #-1
	bl	_UINT64_C
	lsl	w8, w0, w20
	and	w0, w8, w23
	str	x20, [sp]
	mov	w1, #0
	mov	x2, x21
	bl	_assert_u64_eq
	lsr	w1, w19, w25
	str	x20, [sp]
	mov	x0, x23
	mov	x2, x22
	bl	_assert_u64_eq
	add	w25, w25, #1
	subs	w20, w20, #1
	b.ne	LBB0_1
; %bb.2:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Repeated generation should produce repeated results"

l_.str.1:                               ; @.str.1
	.asciz	"Equivalent generation should produce equivalent results"

l_.str.2:                               ; @.str.2
	.asciz	"Full-width results must not immediately repeat"

l_.str.3:                               ; @.str.3
	.asciz	"High order bits should be 0, lg_range=%u"

l_.str.4:                               ; @.str.4
	.asciz	"Expected high order bits of full-width result, lg_range=%u"

	.no_dead_strip	_test_prng_lg_range_u64
.subsections_via_symbols
