	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BN_cmp                         ## -- Begin function BN_cmp
	.p2align	4, 0x90
_BN_cmp:                                ## @BN_cmp
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	testq	%r14, %r14
	je	LBB0_2
## %bb.3:
	movq	%rbx, %rdi
	callq	_bn_check_top
	movq	%r14, %rdi
	callq	_bn_check_top
	movq	(%rbx), %rdx
	xorl	%r8d, %r8d
	movq	%rdx, %rax
	negq	%rax
	movl	$0, %eax
	sbbl	%eax, %eax
	orl	$1, %eax
	cmpq	(%r14), %rdx
	jne	LBB0_11
## %bb.4:
	cmpq	$1, %rdx
	sbbl	%r8d, %r8d
	orl	$1, %r8d
	movl	8(%rbx), %edx
	cmpl	8(%r14), %edx
	jg	LBB0_11
## %bb.5:
	jl	LBB0_10
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	testl	%edx, %edx
	jle	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	decl	%edx
	movq	16(%rbx), %rsi
	movl	%edx, %edi
	movq	16(%r14), %rcx
	movq	(%rcx,%rdi,8), %rcx
	cmpq	%rcx, (%rsi,%rdi,8)
	jg	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	jge	LBB0_6
LBB0_10:
	movl	%r8d, %eax
	jmp	LBB0_11
LBB0_2:
	xorl	%ecx, %ecx
	testq	%r14, %r14
	setne	%cl
	xorl	%eax, %eax
	negq	%rbx
	sbbl	%eax, %eax
	orl	%ecx, %eax
LBB0_11:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	xorl	%eax, %eax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BN_cmp                         ; -- Begin function BN_cmp
	.p2align	2
_BN_cmp:                                ; @BN_cmp
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	cbz	x0, LBB0_9
; %bb.1:
	cbz	x20, LBB0_9
; %bb.2:
	mov	x0, x19
	bl	_bn_check_top
	mov	x0, x20
	bl	_bn_check_top
	ldr	x8, [x19]
	ldr	x9, [x20]
	cmp	x8, #0
	mov	w10, #1
	cneg	w0, w10, ne
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.3:
	cmp	x8, #0
	mov	w8, #-1
	cneg	w8, w8, ne
	ldr	w9, [x19, #8]
	ldr	w10, [x20, #8]
	cmp	w9, w10
	b.gt	LBB0_10
; %bb.4:
	b.lt	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	subs	w9, w9, #1
	b.lt	LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x10, [x19, #16]
	lsl	x11, x9, #3
	ldr	x10, [x10, x11]
	ldr	x12, [x20, #16]
	ldr	x11, [x12, x11]
	cmp	x10, x11
	b.gt	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	b.ge	LBB0_5
LBB0_8:
	mov	x0, x8
	b	LBB0_10
LBB0_9:
	cmp	x20, #0
	cset	w8, ne
	cmp	x19, #0
	csinv	w0, w8, wzr, eq
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_11:
	mov	w0, #0
	b	LBB0_10
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
