	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bn_from_mont_fixed_top         ## -- Begin function bn_from_mont_fixed_top
	.p2align	4, 0x90
_bn_from_mont_fixed_top:                ## @bn_from_mont_fixed_top
	.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
	movq	%rcx, %r13
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%rcx, %rdi
	callq	_BN_CTX_start
	movq	%r13, %rdi
	callq	_BN_CTX_get
	movq	%rax, %r14
	movq	%r13, %rdi
	callq	_BN_CTX_get
	testq	%rax, %rax
	je	LBB0_14
## %bb.1:
	movq	%rax, %r15
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_BN_copy
	testq	%rax, %rax
	je	LBB0_14
## %bb.2:
	movl	4(%r12), %esi
	movq	%r14, %rdi
	callq	_BN_mask_bits
	leaq	8(%r12), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r13, %rcx
	callq	_BN_mul
	testl	%eax, %eax
	je	LBB0_14
## %bb.3:
	movl	4(%r12), %esi
	movq	%r15, %rdi
	callq	_BN_mask_bits
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	_BN_mul
	testl	%eax, %eax
	je	LBB0_14
## %bb.4:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_BN_add
	testl	%eax, %eax
	je	LBB0_14
## %bb.5:
	movl	4(%r12), %edx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_BN_rshift
	testl	%eax, %eax
	je	LBB0_14
## %bb.6:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_BN_ucmp
	testq	%rax, %rax
	movl	$0, %ebx
	js	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_BN_usub
	testl	%eax, %eax
	je	LBB0_15
LBB0_8:
	movq	%r14, %rdi
	callq	_bn_check_top
	movl	$1, %ebx
	jmp	LBB0_15
LBB0_14:
	xorl	%ebx, %ebx
LBB0_15:
	movq	%r13, %rdi
	callq	_BN_CTX_end
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bn_from_mont_fixed_top         ; -- Begin function bn_from_mont_fixed_top
	.p2align	2
_bn_from_mont_fixed_top:                ; @bn_from_mont_fixed_top
	.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, x3
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	mov	x0, x3
	bl	_BN_CTX_start
	mov	x0, x19
	bl	_BN_CTX_get
	mov	x24, x0
	mov	x0, x19
	bl	_BN_CTX_get
	cbz	x0, LBB0_9
; %bb.1:
	mov	x23, x0
	mov	x0, x24
	mov	x1, x22
	bl	_BN_copy
	cbz	x0, LBB0_9
; %bb.2:
	ldr	w1, [x21, #4]
	mov	x0, x24
	bl	_BN_mask_bits
	add	x2, x21, #8
	mov	x0, x23
	mov	x1, x24
	mov	x3, x19
	bl	_BN_mul
	cbz	w0, LBB0_9
; %bb.3:
	ldr	w1, [x21, #4]
	mov	x0, x23
	bl	_BN_mask_bits
	mov	x0, x24
	mov	x1, x23
	mov	x2, x21
	mov	x3, x19
	bl	_BN_mul
	cbz	w0, LBB0_9
; %bb.4:
	mov	x0, x23
	mov	x1, x22
	mov	x2, x24
	bl	_BN_add
	cbz	w0, LBB0_9
; %bb.5:
	ldr	w2, [x21, #4]
	mov	x0, x20
	mov	x1, x23
	bl	_BN_rshift
	cbz	w0, LBB0_9
; %bb.6:
	mov	x0, x20
	mov	x1, x21
	bl	_BN_ucmp
	tbnz	x0, #63, LBB0_8
; %bb.7:
	mov	x0, x20
	mov	x1, x20
	mov	x2, x21
	bl	_BN_usub
	cbz	w0, LBB0_9
LBB0_8:
	mov	x0, x20
	bl	_bn_check_top
	mov	w20, #1
	b	LBB0_10
LBB0_9:
	mov	w20, #0
LBB0_10:
	mov	x0, x19
	bl	_BN_CTX_end
	mov	x0, x20
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
