	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function test_rand_range_single
LCPI0_0:
	.long	1127219200                      ## 0x43300000
	.long	1160773632                      ## 0x45300000
	.long	0                               ## 0x0
	.long	0                               ## 0x0
LCPI0_1:
	.quad	0x4330000000000000              ## double 4503599627370496
	.quad	0x4530000000000000              ## double 1.9342813113834067E+25
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_test_rand_range_single:                ## @test_rand_range_single
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	_rand_range_cases@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rdi, %rcx
	shlq	$4, %rcx
	movl	(%rax,%rcx), %ebx
	movl	4(%rax,%rcx), %r12d
	movsd	8(%rax,%rcx), %xmm0             ## xmm0 = mem[0],zero
	movsd	%xmm0, -72(%rbp)                ## 8-byte Spill
	leal	(,%rbx,8), %edi
	callq	_OPENSSL_zalloc
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_BN_new
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_BN_new
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_25
## %bb.5:
	movq	%rbx, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_BN_set_word
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_25
## %bb.6:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, %rbx
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_10
## %bb.7:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, %r13d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_BN_rand_range
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_9
## %bb.14:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%r12, %rdi
	callq	_BN_get_word
	movq	%rax, %r14
	movl	%r14d, %edi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_TEST_uint_lt
	testl	%eax, %eax
	je	LBB0_9
## %bb.15:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	%r14d, %eax
	incq	(%r15,%rax,8)
	decl	%r13d
	jne	LBB0_8
LBB0_10:
	cvtsi2sdq	-56(%rbp), %xmm1        ## 8-byte Folded Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rdx, %xmm0
	divsd	%xmm0, %xmm1
	testq	%rdx, %rdx
	je	LBB0_11
## %bb.12:
	leaq	-1(%rdx), %rcx
	movl	%edx, %eax
	andl	$3, %eax
	cmpq	$3, %rcx
	movq	%rbx, %r13
	jae	LBB0_16
## %bb.13:
	xorpd	%xmm0, %xmm0
	xorl	%ecx, %ecx
	xorl	%r14d, %r14d
	jmp	LBB0_18
LBB0_1:
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_25
LBB0_3:
	xorl	%r12d, %r12d
	jmp	LBB0_25
LBB0_9:
	xorl	%r14d, %r14d
	jmp	LBB0_24
LBB0_11:
	xorpd	%xmm0, %xmm0
	xorl	%r14d, %r14d
	movq	%rbx, %r13
	jmp	LBB0_21
LBB0_16:
                                        ## kill: def $edx killed $edx killed $rdx def $rdx
	andl	$-4, %edx
	xorpd	%xmm0, %xmm0
	xorl	%ecx, %ecx
	movapd	LCPI0_0(%rip), %xmm2            ## xmm2 = [1127219200,1160773632,0,0]
	movapd	LCPI0_1(%rip), %xmm3            ## xmm3 = [4.503599627370496E+15,1.9342813113834067E+25]
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movsd	(%r15,%rcx,8), %xmm4            ## xmm4 = mem[0],zero
	unpcklps	%xmm2, %xmm4                    ## xmm4 = xmm4[0],xmm2[0],xmm4[1],xmm2[1]
	subpd	%xmm3, %xmm4
	movapd	%xmm4, %xmm5
	unpckhpd	%xmm4, %xmm5                    ## xmm5 = xmm5[1],xmm4[1]
	addsd	%xmm4, %xmm5
	subsd	%xmm1, %xmm5
	mulsd	%xmm5, %xmm5
	addsd	%xmm0, %xmm5
	movsd	8(%r15,%rcx,8), %xmm0           ## xmm0 = mem[0],zero
	unpcklps	%xmm2, %xmm0                    ## xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
	subpd	%xmm3, %xmm0
	movapd	%xmm0, %xmm4
	unpckhpd	%xmm0, %xmm4                    ## xmm4 = xmm4[1],xmm0[1]
	addsd	%xmm0, %xmm4
	subsd	%xmm1, %xmm4
	mulsd	%xmm4, %xmm4
	addsd	%xmm5, %xmm4
	movsd	16(%r15,%rcx,8), %xmm0          ## xmm0 = mem[0],zero
	unpcklps	%xmm2, %xmm0                    ## xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
	subpd	%xmm3, %xmm0
	movapd	%xmm0, %xmm5
	unpckhpd	%xmm0, %xmm5                    ## xmm5 = xmm5[1],xmm0[1]
	addsd	%xmm0, %xmm5
	subsd	%xmm1, %xmm5
	mulsd	%xmm5, %xmm5
	addsd	%xmm4, %xmm5
	movsd	24(%r15,%rcx,8), %xmm4          ## xmm4 = mem[0],zero
	unpcklps	%xmm2, %xmm4                    ## xmm4 = xmm4[0],xmm2[0],xmm4[1],xmm2[1]
	subpd	%xmm3, %xmm4
	movapd	%xmm4, %xmm0
	unpckhpd	%xmm4, %xmm0                    ## xmm0 = xmm0[1],xmm4[1]
	addsd	%xmm4, %xmm0
	subsd	%xmm1, %xmm0
	mulsd	%xmm0, %xmm0
	addsd	%xmm5, %xmm0
	addq	$4, %rcx
	cmpq	%rcx, %rdx
	jne	LBB0_17
LBB0_18:
	testq	%rax, %rax
	je	LBB0_21
## %bb.19:
	leaq	(%r15,%rcx,8), %rcx
	xorl	%edx, %edx
	movapd	LCPI0_0(%rip), %xmm2            ## xmm2 = [1127219200,1160773632,0,0]
	movapd	LCPI0_1(%rip), %xmm3            ## xmm3 = [4.503599627370496E+15,1.9342813113834067E+25]
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movsd	(%rcx,%rdx,8), %xmm4            ## xmm4 = mem[0],zero
	unpcklps	%xmm2, %xmm4                    ## xmm4 = xmm4[0],xmm2[0],xmm4[1],xmm2[1]
	subpd	%xmm3, %xmm4
	movapd	%xmm4, %xmm5
	unpckhpd	%xmm4, %xmm5                    ## xmm5 = xmm5[1],xmm4[1]
	addsd	%xmm4, %xmm5
	subsd	%xmm1, %xmm5
	mulsd	%xmm5, %xmm5
	addsd	%xmm5, %xmm0
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_20
LBB0_21:
	divsd	%xmm1, %xmm0
	movsd	-72(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	ucomisd	%xmm1, %xmm0
	jbe	LBB0_22
## %bb.23:
	leaq	L_.str(%rip), %rdi
	callq	_TEST_info
	incq	%r13
	leaq	L_.str.1(%rip), %rdi
	movq	%r13, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_TEST_note
	jmp	LBB0_24
LBB0_22:
	movl	$1, %r14d
LBB0_24:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_25:
	movq	%rbx, %rdi
	callq	_BN_free
	movq	%r12, %rdi
	callq	_BN_free
	movq	%r15, %rdi
	callq	_OPENSSL_free
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_rand_range_cases,8,3           ## @rand_range_cases
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Chi^2 test negative %.4f > %4.f"

L_.str.1:                               ## @.str.1
	.asciz	"test case %zu  range %u  iterations %u"

	.no_dead_strip	_test_rand_range_single
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_rand_range_single
_test_rand_range_single:                ; @test_rand_range_single
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-96]!             ; 16-byte Folded Spill
	.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
	.cfi_offset b8, -88
	.cfi_offset b9, -96
	mov	x23, x0
Lloh0:
	adrp	x8, _rand_range_cases@GOTPAGE
Lloh1:
	ldr	x8, [x8, _rand_range_cases@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x8, x8, x0, lsl #4
	ldp	w22, w24, [x8]
	ldr	d8, [x8, #8]
	lsl	w0, w22, #3
	bl	_OPENSSL_zalloc
	mov	x19, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_12
; %bb.1:
	bl	_BN_new
	mov	x20, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_13
; %bb.2:
	bl	_BN_new
	mov	x21, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_14
; %bb.3:
	mov	x0, x20
	mov	x1, x22
	bl	_BN_set_word
	bl	_TEST_true
	cbz	w0, LBB0_14
; %bb.4:
	cbz	w24, LBB0_9
; %bb.5:
	mov	x26, x24
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x20
	bl	_BN_rand_range
	bl	_TEST_true
	cbz	w0, LBB0_14
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	bl	_BN_get_word
	mov	x25, x0
	mov	x1, x22
	bl	_TEST_uint_lt
	cbz	w0, LBB0_14
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	and	x8, x25, #0xffffffff
	lsl	x8, x8, #3
	ldr	x9, [x19, x8]
	add	x9, x9, #1
	str	x9, [x19, x8]
	subs	w26, w26, #1
	b.ne	LBB0_6
LBB0_9:
	ucvtf	d0, w24
	ucvtf	d1, w22
	fdiv	d0, d0, d1
	cbz	w22, LBB0_16
; %bb.10:
	cmp	w22, #4
	b.hs	LBB0_17
; %bb.11:
	mov	x8, #0
	movi	d1, #0000000000000000
	b	LBB0_20
LBB0_12:
	mov	x21, #0
	mov	x20, #0
	b	LBB0_14
LBB0_13:
	mov	x21, #0
LBB0_14:
	mov	w22, #0
LBB0_15:
	mov	x0, x20
	bl	_BN_free
	mov	x0, x21
	bl	_BN_free
	mov	x0, x19
	bl	_OPENSSL_free
	mov	x0, x22
	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
	ldp	d9, d8, [sp], #96               ; 16-byte Folded Reload
	ret
LBB0_16:
	movi	d1, #0000000000000000
	b	LBB0_22
LBB0_17:
	and	x8, x22, #0xfffffffc
	dup.2d	v2, v0[0]
	movi	d1, #0000000000000000
	mov	x9, x8
	mov	x10, x19
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	d3, [x10]
	ucvtf	d3, d3
	ldr	d4, [x10, #24]
	ucvtf	d4, d4
	fsub	d3, d3, d0
	fsub	d4, d4, d0
	fmul	d3, d3, d3
	ldur	q5, [x10, #8]
	ucvtf.2d	v5, v5
	fsub.2d	v5, v5, v2
	fmul.2d	v5, v5, v5
	fmul	d4, d4, d4
	fadd	d1, d1, d3
	fadd	d1, d1, d5
	mov	d3, v5[1]
	fadd	d1, d1, d3
	fadd	d1, d1, d4
	add	x10, x10, #32
	subs	x9, x9, #4
	b.ne	LBB0_18
; %bb.19:
	cmp	x8, x22
	b.eq	LBB0_22
LBB0_20:
	add	x9, x19, x8, lsl #3
	sub	x8, x22, x8
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldr	d2, [x9], #8
	ucvtf	d2, d2
	fsub	d2, d2, d0
	fmadd	d1, d2, d2, d1
	subs	x8, x8, #1
	b.ne	LBB0_21
LBB0_22:
	fdiv	d0, d1, d0
	fcmp	d0, d8
	b.le	LBB0_24
; %bb.23:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	fmov	d1, d8
	bl	_TEST_info
	add	x1, x23, #1
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, x22
	mov	x3, x24
	bl	_TEST_note
	b	LBB0_14
LBB0_24:
	mov	w22, #1
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_rand_range_cases,8,3           ; @rand_range_cases
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Chi^2 test negative %.4f > %4.f"

l_.str.1:                               ; @.str.1
	.asciz	"test case %zu  range %u  iterations %u"

	.no_dead_strip	_test_rand_range_single
.subsections_via_symbols
