	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bn_div_words                   ## -- Begin function bn_div_words
	.p2align	4, 0x90
_bn_div_words:                          ## @bn_div_words
	.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
	testl	%edx, %edx
	je	LBB0_1
## %bb.2:
	movl	%edx, %ebx
	movl	%esi, %r13d
	movl	%edi, %r15d
	movl	%edx, %edi
	callq	_BN_num_bits_word
	movl	%eax, %r14d
	movq	_BN_BITS2@GOTPCREL(%rip), %r12
	cmpl	(%r12), %eax
	sete	%al
	movl	$1, %edx
	movl	%r14d, %ecx
	shll	%cl, %edx
	cmpl	%r15d, %edx
	setl	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	movl	(%r12), %eax
	xorl	%ecx, %ecx
	cmpl	%ebx, %r15d
	cmovgel	%ebx, %ecx
	subl	%ecx, %r15d
	subl	%r14d, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ecx
	shll	%cl, %ebx
	shll	%cl, %r15d
	movl	%r13d, %edx
	movl	%r14d, %ecx
	sarl	%cl, %edx
	orl	%r15d, %edx
	movl	%eax, %ecx
	shll	%cl, %r13d
	movl	%edx, %r15d
LBB0_4:
	movq	_BN_MASK2h@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	%r9d, %r14d
	andl	%ebx, %r14d
	movq	_BN_BITS4@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	sarl	%cl, %r14d
	movq	_BN_MASK2l@GOTPCREL(%rip), %rax
	movl	(%rax), %r11d
	movl	%r11d, %r10d
	andl	%ebx, %r10d
	movq	_BN_MASK2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	%r15d, %eax
	sarl	%cl, %eax
	movl	%r11d, %r8d
	cmpl	%r14d, %eax
	je	LBB0_6
## %bb.5:
	movl	%r15d, %eax
	cltd
	idivl	%r14d
	movl	%eax, %r8d
LBB0_6:
	movl	%r8d, %edx
	imull	%r14d, %edx
	movl	%r8d, %eax
	imull	%r10d, %eax
	movl	%r15d, %edi
	subl	%edx, %edi
	testl	%r9d, %edi
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	je	LBB0_8
## %bb.7:
	movl	%r13d, %ebx
	jmp	LBB0_11
LBB0_1:
	movq	_BN_MASK2@GOTPCREL(%rip), %rax
	movl	(%rax), %r11d
	jmp	LBB0_18
LBB0_8:
	movl	%r13d, %ebx
	andl	%r9d, %r13d
	sarl	%cl, %r13d
	leal	-1(%r8), %esi
	imull	%r14d, %esi
	movl	%r15d, %r12d
	subl	%esi, %r12d
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	%edi, %esi
	shll	%cl, %esi
	orl	%r13d, %esi
	cmpl	%esi, %eax
	jle	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	decl	%r8d
	subl	%r14d, %edx
	subl	%r10d, %eax
	addl	%r14d, %edi
	leal	(%r12,%r14), %esi
	testl	%r9d, %r12d
	movl	%esi, %r12d
	je	LBB0_9
LBB0_11:
	movl	%eax, %esi
	sarl	%cl, %esi
	shll	%cl, %eax
	addl	%edx, %esi
	andl	%r9d, %eax
	xorl	%edx, %edx
	movl	%ebx, %r12d
	subl	%eax, %r12d
	setl	%dl
	addl	%esi, %edx
	xorl	%eax, %eax
	xorl	%esi, %esi
	subl	%edx, %r15d
	setl	%sil
	cmovll	-44(%rbp), %eax                 ## 4-byte Folded Reload
	subl	%esi, %r8d
	shll	%cl, %r8d
	addl	%r15d, %eax
	shll	%cl, %eax
	movl	%r12d, %edx
	sarl	%cl, %edx
	orl	%eax, %edx
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	andl	%edx, %r13d
	andl	%r11d, %r12d
	shll	%cl, %r12d
	movl	%r13d, %eax
	sarl	%cl, %eax
	cmpl	%r14d, %eax
	je	LBB0_13
## %bb.12:
	movl	%r13d, %eax
	cltd
	idivl	%r14d
	movl	%eax, %r11d
LBB0_13:
	movl	%r11d, %edx
	imull	%r14d, %edx
	movl	%r11d, %eax
	imull	%r10d, %eax
	movl	%r13d, %ebx
	subl	%edx, %ebx
	testl	%r9d, %ebx
	jne	LBB0_17
## %bb.14:
	movl	%r12d, %r15d
	andl	%r9d, %r15d
	sarl	%cl, %r15d
	leal	-1(%r11), %edi
	imull	%r14d, %edi
	movl	%r13d, %esi
	subl	%edi, %esi
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	shll	%cl, %edi
	orl	%r15d, %edi
	cmpl	%edi, %eax
	jle	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	decl	%r11d
	subl	%r14d, %edx
	subl	%r10d, %eax
	addl	%r14d, %ebx
	leal	(%rsi,%r14), %edi
	testl	%r9d, %esi
	movl	%edi, %esi
	je	LBB0_15
LBB0_17:
	movl	%eax, %esi
	sarl	%cl, %esi
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	addl	%edx, %esi
	andl	%r9d, %eax
	xorl	%ecx, %ecx
	cmpl	%eax, %r12d
	setl	%cl
	addl	%esi, %ecx
	xorl	%eax, %eax
	cmpl	%ecx, %r13d
	setl	%al
	subl	%eax, %r11d
	orl	%r8d, %r11d
LBB0_18:
	movl	%r11d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BN_MASK2,4,2                   ## @BN_MASK2
	.comm	_BN_BITS2,4,2                   ## @BN_BITS2
	.comm	_BN_MASK2h,4,2                  ## @BN_MASK2h
	.comm	_BN_BITS4,4,2                   ## @BN_BITS4
	.comm	_BN_MASK2l,4,2                  ## @BN_MASK2l
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bn_div_words                   ; -- Begin function bn_div_words
	.p2align	2
_bn_div_words:                          ; @bn_div_words
	.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
	cbz	w2, LBB0_14
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x0, x2
	bl	_BN_num_bits_word
	mov	x22, x0
Lloh0:
	adrp	x23, _BN_BITS2@GOTPAGE
Lloh1:
	ldr	x23, [x23, _BN_BITS2@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w0, w8
	mov	w8, #1
	lsl	w8, w8, w0
	ccmp	w8, w21, #8, ne
	cset	w0, lt
	bl	_assert
	ldr	w8, [x23]
	cmp	w21, w19
	csel	w9, wzr, w19, lt
	sub	w9, w21, w9
	sub	w10, w8, w22
	lsl	w11, w19, w10
	lsl	w12, w9, w10
	asr	w13, w20, w22
	orr	w12, w12, w13
	lsl	w10, w20, w10
	cmp	w8, w22
	csel	w15, w20, w10, eq
	csel	w13, w19, w11, eq
	csel	w14, w9, w12, eq
Lloh2:
	adrp	x8, _BN_MASK2h@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BN_MASK2h@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _BN_BITS4@GOTPAGE
Lloh6:
	ldr	x9, [x9, _BN_BITS4@GOTPAGEOFF]
	and	w11, w8, w13
Lloh7:
	ldr	w10, [x9]
	asr	w11, w11, w10
Lloh8:
	adrp	x9, _BN_MASK2l@GOTPAGE
Lloh9:
	ldr	x9, [x9, _BN_MASK2l@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	and	w12, w9, w13
Lloh11:
	adrp	x17, _BN_MASK2@GOTPAGE
Lloh12:
	ldr	x17, [x17, _BN_MASK2@GOTPAGEOFF]
	asr	w0, w14, w10
	mov	x16, x9
	cmp	w0, w11
	b.eq	LBB0_3
; %bb.2:
	sdiv	w16, w14, w11
LBB0_3:
	ldr	w17, [x17]
	mul	w0, w16, w11
	mul	w1, w16, w12
	sub	w2, w14, w0
	tst	w2, w8
	b.ne	LBB0_7
; %bb.4:
	and	w2, w15, w8
	asr	w2, w2, w10
	mneg	w3, w16, w11
	sub	w4, w16, #1
	mneg	w4, w11, w4
	mov	x5, x14
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	w6, w3, w5
	lsl	w6, w6, w10
	orr	w6, w6, w2
	cmp	w1, w6
	b.le	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	sub	w16, w16, #1
	sub	w0, w0, w11
	sub	w1, w1, w12
	add	w6, w4, w5
	add	w5, w5, w11
	tst	w6, w8
	b.eq	LBB0_5
LBB0_7:
	asr	w2, w1, w10
	lsl	w1, w1, w10
	and	w1, w1, w8
	add	w0, w2, w0
	subs	w1, w15, w1
	and	w15, w1, w9
	cinc	w0, w0, lt
	subs	w14, w14, w0
	csel	w13, w13, wzr, lt
	add	w13, w14, w13
	cset	w14, lt
	sub	w14, w16, w14
	lsl	w13, w13, w10
	asr	w16, w1, w10
	orr	w13, w13, w16
	and	w13, w17, w13
	asr	w16, w13, w10
	cmp	w16, w11
	b.eq	LBB0_9
; %bb.8:
	sdiv	w9, w13, w11
LBB0_9:
	lsl	w14, w14, w10
	lsl	w15, w15, w10
	mul	w16, w9, w11
	mul	w17, w9, w12
	sub	w0, w13, w16
	tst	w0, w8
	b.ne	LBB0_13
; %bb.10:
	and	w0, w15, w8
	asr	w0, w0, w10
	mneg	w1, w9, w11
	sub	w2, w9, #1
	mneg	w2, w11, w2
	mov	x3, x13
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	add	w4, w1, w3
	lsl	w4, w4, w10
	orr	w4, w4, w0
	cmp	w17, w4
	b.le	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	sub	w9, w9, #1
	sub	w16, w16, w11
	sub	w17, w17, w12
	add	w4, w2, w3
	add	w3, w3, w11
	tst	w4, w8
	b.eq	LBB0_11
LBB0_13:
	asr	w11, w17, w10
	add	w11, w11, w16
	lsl	w10, w17, w10
	and	w8, w10, w8
	cmp	w15, w8
	cinc	w8, w11, lt
	cmp	w13, w8
	cset	w8, lt
	sub	w8, w9, w8
	orr	w0, w8, w14
	b	LBB0_15
LBB0_14:
Lloh13:
	adrp	x8, _BN_MASK2@GOTPAGE
Lloh14:
	ldr	x8, [x8, _BN_MASK2@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
LBB0_15:
	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	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_BN_MASK2,4,2                   ; @BN_MASK2
	.comm	_BN_BITS2,4,2                   ; @BN_BITS2
	.comm	_BN_MASK2h,4,2                  ; @BN_MASK2h
	.comm	_BN_BITS4,4,2                   ; @BN_BITS4
	.comm	_BN_MASK2l,4,2                  ; @BN_MASK2l
.subsections_via_symbols
