	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnrand_range
_bnrand_range:                          ## @bnrand_range
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, (%rdx)
	jne	LBB0_2
## %bb.1:
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movl	%edi, %r13d
	movq	%rdx, %rdi
	callq	_BN_is_zero
	testq	%rax, %rax
	je	LBB0_3
LBB0_2:
	movq	_BN_F_BNRAND_RANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_BN_R_INVALID_RANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_BNerr
	xorl	%r15d, %r15d
LBB0_21:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%rbx, %rdi
	callq	_BN_num_bits
	cmpl	$1, %eax
	jne	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_BN_zero
	jmp	LBB0_20
LBB0_5:
	movl	%eax, %r15d
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	leal	-2(%r15), %esi
	movq	%rbx, %rdi
	callq	_BN_is_bit_set
	testl	%eax, %eax
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	jne	LBB0_6
## %bb.10:
	leal	-3(%r15), %esi
	movq	%rbx, %rdi
	callq	_BN_is_bit_set
	testl	%eax, %eax
	je	LBB0_11
LBB0_6:
	movl	$-100, %r12d
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	_BN_RAND_TOP_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_BN_RAND_BOTTOM_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	%r13d, %edi
	movq	%r14, %rsi
	movq	%r15, %rbx
	movl	%r15d, %edx
	callq	_bnrand
	xorl	%r15d, %r15d
	testl	%eax, %eax
	je	LBB0_21
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	incl	%r12d
	je	LBB0_18
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_BN_cmp
	testq	%rax, %rax
	movq	%rbx, %r15
	jns	LBB0_7
LBB0_20:
	movq	%r14, %rdi
	callq	_bn_check_top
	movl	$1, %r15d
	jmp	LBB0_21
LBB0_11:
	incl	%r15d
	movl	$-100, %ebx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movl	%r13d, -52(%rbp)                ## 4-byte Spill
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	_BN_RAND_TOP_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_BN_RAND_BOTTOM_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	%r13d, %edi
	movq	%r14, %rsi
	movq	%r15, %r12
	movl	%r15d, %edx
	callq	_bnrand
	xorl	%r15d, %r15d
	testl	%eax, %eax
	je	LBB0_21
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%r14, %rdi
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_BN_cmp
	testq	%rax, %rax
	js	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%r14, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	callq	_BN_sub
	testl	%eax, %eax
	je	LBB0_21
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_BN_cmp
	testq	%rax, %rax
	js	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%r14, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	callq	_BN_sub
	testl	%eax, %eax
	je	LBB0_21
LBB0_17:                                ##   in Loop: Header=BB0_12 Depth=1
	incl	%ebx
	je	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_BN_cmp
	testq	%rax, %rax
	movq	%r12, %r15
	movl	-52(%rbp), %r13d                ## 4-byte Reload
	jns	LBB0_12
	jmp	LBB0_20
LBB0_18:
	movq	_BN_F_BNRAND_RANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_BN_R_TOO_MANY_ITERATIONS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_BNerr
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_BN_F_BNRAND_RANGE,4,2          ## @BN_F_BNRAND_RANGE
	.comm	_BN_R_INVALID_RANGE,4,2         ## @BN_R_INVALID_RANGE
	.comm	_BN_RAND_TOP_ANY,4,2            ## @BN_RAND_TOP_ANY
	.comm	_BN_RAND_BOTTOM_ANY,4,2         ## @BN_RAND_BOTTOM_ANY
	.comm	_BN_R_TOO_MANY_ITERATIONS,4,2   ## @BN_R_TOO_MANY_ITERATIONS
	.no_dead_strip	_bnrand_range
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnrand_range
_bnrand_range:                          ; @bnrand_range
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x8, [x2]
	cbnz	x8, LBB0_2
; %bb.1:
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	mov	x0, x2
	bl	_BN_is_zero
	cbz	x0, LBB0_5
LBB0_2:
Lloh0:
	adrp	x8, _BN_F_BNRAND_RANGE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BN_F_BNRAND_RANGE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _BN_R_INVALID_RANGE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BN_R_INVALID_RANGE@GOTPAGEOFF]
LBB0_3:
	ldr	w1, [x8]
	bl	_BNerr
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	x0, x20
	bl	_BN_num_bits
	cmp	w0, #1
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_BN_zero
	b	LBB0_13
LBB0_7:
	mov	x22, x0
	sub	w1, w0, #2
	mov	x0, x20
	bl	_BN_is_bit_set
	cbnz	w0, LBB0_9
; %bb.8:
	sub	w1, w22, #3
	mov	x0, x20
	bl	_BN_is_bit_set
	cbz	w0, LBB0_14
LBB0_9:
	mov	w23, #-100
Lloh5:
	adrp	x24, _BN_RAND_TOP_ANY@GOTPAGE
Lloh6:
	ldr	x24, [x24, _BN_RAND_TOP_ANY@GOTPAGEOFF]
Lloh7:
	adrp	x25, _BN_RAND_BOTTOM_ANY@GOTPAGE
Lloh8:
	ldr	x25, [x25, _BN_RAND_BOTTOM_ANY@GOTPAGEOFF]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w3, [x24]
	ldr	w4, [x25]
	mov	x0, x21
	mov	x1, x19
	mov	x2, x22
	bl	_bnrand
	cbz	w0, LBB0_4
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	adds	w23, w23, #1
	b.hs	LBB0_22
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_BN_cmp
	tbz	x0, #63, LBB0_10
LBB0_13:
	mov	x0, x19
	bl	_bn_check_top
	mov	w0, #1
	b	LBB0_4
LBB0_14:
	add	w22, w22, #1
	mov	w23, #-100
Lloh9:
	adrp	x24, _BN_RAND_TOP_ANY@GOTPAGE
Lloh10:
	ldr	x24, [x24, _BN_RAND_TOP_ANY@GOTPAGEOFF]
Lloh11:
	adrp	x25, _BN_RAND_BOTTOM_ANY@GOTPAGE
Lloh12:
	ldr	x25, [x25, _BN_RAND_BOTTOM_ANY@GOTPAGEOFF]
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	w3, [x24]
	ldr	w4, [x25]
	mov	x0, x21
	mov	x1, x19
	mov	x2, x22
	bl	_bnrand
	cbz	w0, LBB0_4
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_BN_cmp
	tbnz	x0, #63, LBB0_20
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	x0, x19
	mov	x1, x19
	mov	x2, x20
	bl	_BN_sub
	cbz	w0, LBB0_4
; %bb.18:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_BN_cmp
	tbnz	x0, #63, LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	x0, x19
	mov	x1, x19
	mov	x2, x20
	bl	_BN_sub
	cbz	w0, LBB0_4
LBB0_20:                                ;   in Loop: Header=BB0_15 Depth=1
	adds	w23, w23, #1
	b.hs	LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_BN_cmp
	tbz	x0, #63, LBB0_15
	b	LBB0_13
LBB0_22:
Lloh13:
	adrp	x8, _BN_F_BNRAND_RANGE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _BN_F_BNRAND_RANGE@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x8, _BN_R_TOO_MANY_ITERATIONS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _BN_R_TOO_MANY_ITERATIONS@GOTPAGEOFF]
	b	LBB0_3
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_BN_F_BNRAND_RANGE,4,2          ; @BN_F_BNRAND_RANGE
	.comm	_BN_R_INVALID_RANGE,4,2         ; @BN_R_INVALID_RANGE
	.comm	_BN_RAND_TOP_ANY,4,2            ; @BN_RAND_TOP_ANY
	.comm	_BN_RAND_BOTTOM_ANY,4,2         ; @BN_RAND_BOTTOM_ANY
	.comm	_BN_R_TOO_MANY_ITERATIONS,4,2   ; @BN_R_TOO_MANY_ITERATIONS
	.no_dead_strip	_bnrand_range
.subsections_via_symbols
