	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_bn_small_factors
_test_bn_small_factors:                 ## @test_bn_small_factors
	.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
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_BN_new
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_TEST_ptr
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	%r12, %rdi
	movl	$3, %esi
	callq	_BN_set_word
	movl	%eax, %edi
	callq	_TEST_true
	testq	%rax, %rax
	je	LBB0_10
## %bb.2:
	movq	_NUMPRIMES@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	cmpl	$2, %eax
	jl	LBB0_9
## %bb.3:
	movl	$1, %ebx
	movq	_primes@GOTPCREL(%rip), %r13
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$751, %esi                      ## imm = 0x2EF
	jg	LBB0_9
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rcx
	movl	(%rcx,%rbx,4), %esi
	leal	-4(%rsi), %ecx
	cmpl	$747, %ecx                      ## imm = 0x2EB
	ja	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_BN_mul_word
	testl	%eax, %eax
	je	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r15), %eax
	jmp	LBB0_8
LBB0_9:
	xorl	%eax, %eax
	callq	_bn_get0_small_factors
	movl	%eax, %edi
	movq	%r12, %rsi
	callq	_TEST_BN_eq
	movl	%eax, %r14d
LBB0_10:
	movq	%r12, %rdi
	callq	_BN_free
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NUMPRIMES,4,2                  ## @NUMPRIMES
	.comm	_primes,8,3                     ## @primes
	.no_dead_strip	_test_bn_small_factors
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_bn_small_factors
_test_bn_small_factors:                 ; @test_bn_small_factors
	.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
	bl	_BN_new
	mov	x19, x0
	bl	_TEST_ptr
	cbz	x0, LBB0_9
; %bb.1:
	mov	x0, x19
	mov	w1, #3
	bl	_BN_set_word
	bl	_TEST_true
	cbz	x0, LBB0_9
; %bb.2:
Lloh0:
	adrp	x20, _NUMPRIMES@GOTPAGE
Lloh1:
	ldr	x20, [x20, _NUMPRIMES@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #2
	b.lt	LBB0_10
; %bb.3:
	mov	w21, #1
Lloh2:
	adrp	x22, _primes@GOTPAGE
Lloh3:
	ldr	x22, [x22, _primes@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	cmp	w1, #751
	b.gt	LBB0_10
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x21, x21, #1
	cmp	x21, w8, sxtw
	b.ge	LBB0_10
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x22]
	ldr	w1, [x9, x21, lsl #2]
	sub	w9, w1, #4
	cmp	w9, #747
	b.hi	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	bl	_BN_mul_word
	cbz	w0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x20]
	b	LBB0_5
LBB0_9:
	mov	w20, #0
	b	LBB0_11
LBB0_10:
	bl	_bn_get0_small_factors
	mov	x1, x19
	bl	_TEST_BN_eq
	mov	x20, x0
LBB0_11:
	mov	x0, x19
	bl	_BN_free
	mov	x0, x20
	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	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_NUMPRIMES,4,2                  ; @NUMPRIMES
	.comm	_primes,8,3                     ; @primes
	.no_dead_strip	_test_bn_small_factors
.subsections_via_symbols
