	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sieve_large
_sieve_large:                           ## @sieve_large
	.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	%edi, %r15d
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	callq	_debug3
	movq	_largetries@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	_largebase@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_BN_mod_word
	movl	%eax, %r14d
	movl	%r15d, %eax
	subl	%r14d, %eax
	testl	%r14d, %r14d
	cmovel	%r14d, %eax
	movq	_largebits@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	leal	(%rcx,%rcx), %edx
	cmpl	%edx, %eax
	jge	LBB0_4
## %bb.1:
	movl	%eax, %edx
	andl	$1, %edx
	negl	%edx
	andl	%r15d, %edx
	addl	%eax, %edx
	movl	%edx, %ebx
	shrl	$31, %ebx
	addl	%edx, %ebx
	sarl	%ebx
	cmpl	%ecx, %ebx
	jge	LBB0_4
## %bb.2:
	movq	_LargeSieve@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	movl	%ebx, %esi
	callq	_BIT_SET
	addl	%r15d, %ebx
	movl	(%r12), %ecx
	cmpl	%ecx, %ebx
	jl	LBB0_3
LBB0_4:
	leal	(%r14,%r14), %eax
	incl	%eax
	cltd
	idivl	%r15d
	movl	%r15d, %eax
	subl	%edx, %eax
	testl	%edx, %edx
	cmovel	%edx, %eax
	leal	(,%rcx,4), %edx
	cmpl	%edx, %eax
	jge	LBB0_12
## %bb.5:
	testb	$3, %al
	je	LBB0_9
## %bb.6:
	movq	_SMALL_MAXIMUM@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	addl	%r15d, %edx
	subl	%eax, %edx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	subl	%r15d, %edx
	cmpl	%r15d, %edx
	jl	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	addl	%r15d, %eax
	testb	$3, %al
	jne	LBB0_7
LBB0_9:
	leal	3(%rax), %ebx
	testl	%eax, %eax
	cmovnsl	%eax, %ebx
	sarl	$2, %ebx
	cmpl	%ecx, %ebx
	jge	LBB0_12
## %bb.10:
	movq	_LargeSieve@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	movl	%ebx, %esi
	callq	_BIT_SET
	addl	%r15d, %ebx
	cmpl	(%r12), %ebx
	jl	LBB0_11
LBB0_12:
	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	"sieve_large %u"

	.comm	_largetries,4,2                 ## @largetries
	.comm	_largebase,4,2                  ## @largebase
	.comm	_largebits,4,2                  ## @largebits
	.comm	_LargeSieve,4,2                 ## @LargeSieve
	.comm	_SMALL_MAXIMUM,4,2              ## @SMALL_MAXIMUM
	.no_dead_strip	_sieve_large
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sieve_large
_sieve_large:                           ; @sieve_large
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_debug3
Lloh2:
	adrp	x8, _largetries@GOTPAGE
Lloh3:
	ldr	x8, [x8, _largetries@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
Lloh4:
	adrp	x8, _largebase@GOTPAGE
Lloh5:
	ldr	x8, [x8, _largebase@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_BN_mod_word
	mov	x20, x0
	sub	w8, w19, w0
	cmp	w0, #0
	csel	w9, wzr, w8, eq
Lloh7:
	adrp	x22, _largebits@GOTPAGE
Lloh8:
	ldr	x22, [x22, _largebits@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w9, w8, lsl #1
	b.ge	LBB0_4
; %bb.1:
	sbfx	w10, w9, #0, #1
	and	w10, w10, w19
	add	w9, w10, w9
	cmp	w9, #0
	cinc	w9, w9, lt
	asr	w21, w9, #1
	cmp	w21, w8
	b.ge	LBB0_4
; %bb.2:
Lloh9:
	adrp	x23, _LargeSieve@GOTPAGE
Lloh10:
	ldr	x23, [x23, _LargeSieve@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	mov	x1, x21
	bl	_BIT_SET
	ldr	w8, [x22]
	add	w21, w21, w19
	cmp	w21, w8
	b.lt	LBB0_3
LBB0_4:
	mov	w9, #1
	bfi	w9, w20, #1, #31
	sdiv	w10, w9, w19
	msub	w9, w10, w19, w9
	sub	w10, w19, w9
	cmp	w9, #0
	csel	w9, wzr, w10, eq
	cmp	w9, w8, lsl #2
	b.ge	LBB0_12
; %bb.5:
	tst	w9, #0x3
	b.eq	LBB0_9
; %bb.6:
Lloh11:
	adrp	x10, _SMALL_MAXIMUM@GOTPAGE
Lloh12:
	ldr	x10, [x10, _SMALL_MAXIMUM@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	sub	w10, w10, w9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	subs	w10, w10, w19
	b.lt	LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	w9, w9, w19
	tst	w9, #0x3
	b.ne	LBB0_7
LBB0_9:
	add	w10, w9, #3
	cmp	w9, #0
	csel	w9, w10, w9, lt
	asr	w20, w9, #2
	cmp	w20, w8
	b.ge	LBB0_12
; %bb.10:
Lloh14:
	adrp	x21, _LargeSieve@GOTPAGE
Lloh15:
	ldr	x21, [x21, _LargeSieve@GOTPAGEOFF]
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	mov	x1, x20
	bl	_BIT_SET
	ldr	w8, [x22]
	add	w20, w20, w19
	cmp	w20, w8
	b.lt	LBB0_11
LBB0_12:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sieve_large %u"

	.comm	_largetries,4,2                 ; @largetries
	.comm	_largebase,4,2                  ; @largebase
	.comm	_largebits,4,2                  ; @largebits
	.comm	_LargeSieve,4,2                 ; @LargeSieve
	.comm	_SMALL_MAXIMUM,4,2              ; @SMALL_MAXIMUM
	.no_dead_strip	_sieve_large
.subsections_via_symbols
