	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BN_sub                         ## -- Begin function BN_sub
	.p2align	4, 0x90
_BN_sub:                                ## @BN_sub
	.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	%rdx, %rbx
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_bn_check_top
	movq	%rbx, %rdi
	callq	_bn_check_top
	cmpl	$0, (%r13)
	movl	(%rbx), %eax
	je	LBB0_6
## %bb.1:
	testl	%eax, %eax
	je	LBB0_8
## %bb.2:
	movq	%rbx, %r15
	jmp	LBB0_3
LBB0_6:
	xorl	%r15d, %r15d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:
	movq	%r13, %r15
	movq	%rbx, %r13
LBB0_3:
	movl	4(%r15), %eax
	movl	4(%r13), %esi
	cmpl	%esi, %eax
	cmovgl	%eax, %esi
	movq	%r14, %rdi
	callq	_bn_wexpand
	xorl	%r12d, %r12d
	testq	%rax, %rax
	je	LBB0_14
## %bb.4:
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_BN_ucmp
	movq	%r14, %rdi
	testq	%rax, %rax
	js	LBB0_5
## %bb.11:
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_BN_usub
	xorl	%r15d, %r15d
	movl	$0, %r12d
	testl	%eax, %eax
	jne	LBB0_13
	jmp	LBB0_14
LBB0_8:
	movl	$1, %r15d
LBB0_9:
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_BN_uadd
	testl	%eax, %eax
	jne	LBB0_13
## %bb.10:
	xorl	%r12d, %r12d
	jmp	LBB0_14
LBB0_5:
	movq	%r13, %rsi
	movq	%r15, %rdx
	callq	_BN_usub
	movl	$1, %r15d
	testl	%eax, %eax
	je	LBB0_14
LBB0_13:
	movl	%r15d, (%r14)
	movl	$1, %r12d
LBB0_14:
	movl	%r12d, %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_sub                         ; -- Begin function BN_sub
	.p2align	2
_BN_sub:                                ; @BN_sub
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_bn_check_top
	mov	x0, x21
	bl	_bn_check_top
	ldr	w9, [x20]
	ldr	w8, [x21]
	cbz	w9, LBB0_3
; %bb.1:
	cbz	w8, LBB0_5
; %bb.2:
	mov	x22, x21
	b	LBB0_8
LBB0_3:
	cbz	w8, LBB0_7
; %bb.4:
	mov	w22, #0
	b	LBB0_6
LBB0_5:
	mov	w22, #1
LBB0_6:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_BN_uadd
	cbnz	w0, LBB0_13
	b	LBB0_14
LBB0_7:
	mov	x22, x20
	mov	x20, x21
LBB0_8:
	ldr	w8, [x22, #4]
	ldr	w9, [x20, #4]
	cmp	w8, w9
	csel	w1, w8, w9, gt
	mov	x0, x19
	bl	_bn_wexpand
	cbz	x0, LBB0_14
; %bb.9:
	mov	x0, x22
	mov	x1, x20
	bl	_BN_ucmp
	tbnz	x0, #63, LBB0_11
; %bb.10:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	bl	_BN_usub
	mov	x8, x0
	mov	w22, #0
	mov	w0, #0
	cbnz	w8, LBB0_13
	b	LBB0_14
LBB0_11:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_BN_usub
	cbz	w0, LBB0_14
; %bb.12:
	mov	w22, #1
LBB0_13:
	str	w22, [x19]
	mov	w0, #1
LBB0_14:
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
