	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BN_usub                        ## -- Begin function BN_usub
	.p2align	4, 0x90
_BN_usub:                               ## @BN_usub
	.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, %r12
	movq	%rsi, %rbx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_bn_check_top
	movq	%r12, %rdi
	callq	_bn_check_top
	movl	(%rbx), %r15d
	movl	(%r12), %r14d
	xorl	%r13d, %r13d
	cmpl	%r14d, %r15d
	jl	LBB0_22
## %bb.1:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	callq	_bn_wexpand
	testq	%rax, %rax
	je	LBB0_22
## %bb.2:
	movq	8(%rbx), %r10
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	8(%rdi), %r11
	testl	%r14d, %r14d
	jle	LBB0_3
## %bb.4:
	movq	8(%r12), %r9
	xorl	%r12d, %r12d
	movq	_BN_MASK2@GOTPCREL(%rip), %r8
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	subl	%edx, %eax
	setl	%sil
	movl	(%r8), %ecx
	andl	%ecx, %eax
	movl	%eax, %edx
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	andl	%edx, %ecx
	movzbl	%sil, %esi
	movl	%ecx, (%r11,%rbx,4)
	incq	%rbx
	addq	$-4, %r12
	cmpl	%ebx, %r14d
	je	LBB0_9
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r10,%rbx,4), %eax
	movl	(%r9,%rbx,4), %edx
	testl	%esi, %esi
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	%edx, %eax
	setle	%sil
	notl	%edx
	addl	%eax, %edx
	movl	(%r8), %ecx
	andl	%ecx, %edx
	jmp	LBB0_8
LBB0_9:
	subq	%r12, %r11
	subq	%r12, %r10
	testl	%esi, %esi
	je	LBB0_14
## %bb.10:
	cmpl	%r15d, %r14d
	movl	%r15d, %eax
	cmovgl	%r14d, %eax
	xorl	%esi, %esi
	testl	%eax, %eax
	cmovgl	%eax, %esi
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	cmpl	%r15d, %r14d
	jge	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	incl	%r14d
	movl	(%r10), %eax
	leal	-1(%rax), %ecx
	andl	(%r8), %ecx
	addq	$4, %r10
	movl	%ecx, (%r11)
	addq	$4, %r11
	cmpl	%ecx, %eax
	jle	LBB0_11
	jmp	LBB0_14
LBB0_3:
	xorl	%r14d, %r14d
LBB0_14:
	cmpq	%r10, %r11
	je	LBB0_21
LBB0_15:
	cmpl	%r15d, %r14d
	jge	LBB0_21
## %bb.16:
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	leal	1(%r14), %eax
	movl	(%r10,%rdx), %ecx
	movl	%ecx, (%r11,%rdx)
	cmpl	%r15d, %eax
	jge	LBB0_21
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	leal	2(%r14), %eax
	movl	4(%r10,%rdx), %ecx
	movl	%ecx, 4(%r11,%rdx)
	cmpl	%r15d, %eax
	jge	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_17 Depth=1
	leal	3(%r14), %eax
	movl	8(%r10,%rdx), %ecx
	movl	%ecx, 8(%r11,%rdx)
	cmpl	%r15d, %eax
	jge	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_17 Depth=1
	addl	$4, %r14d
	movl	12(%r10,%rdx), %eax
	movl	%eax, 12(%r11,%rdx)
	addq	$16, %rdx
	cmpl	%r15d, %r14d
	jl	LBB0_17
	jmp	LBB0_21
LBB0_12:
	movl	%esi, %r14d
	cmpq	%r10, %r11
	jne	LBB0_15
LBB0_21:
	movl	%r15d, (%rdi)
	callq	_bn_fix_top
	movl	$1, %r13d
LBB0_22:
	movl	%r13d, %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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BN_usub                        ; -- Begin function BN_usub
	.p2align	2
_BN_usub:                               ; @BN_usub
	.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	x21, x2
	mov	x22, x1
	mov	x19, x0
	mov	x0, x1
	bl	_bn_check_top
	mov	x0, x21
	bl	_bn_check_top
	ldr	w20, [x22]
	ldr	w23, [x21]
	cmp	w20, w23
	b.ge	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_23
LBB0_2:
	mov	x0, x19
	mov	x1, x20
	bl	_bn_wexpand
	cbz	x0, LBB0_23
; %bb.3:
	ldr	x8, [x22, #8]
	ldr	x9, [x19, #8]
	cmp	w23, #1
	b.lt	LBB0_14
; %bb.4:
	mov	x10, #0
	mov	w14, #0
	ldr	x12, [x21, #8]
Lloh0:
	adrp	x11, _BN_MASK2@GOTPAGE
Lloh1:
	ldr	x11, [x11, _BN_MASK2@GOTPAGEOFF]
	mov	x13, x23
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w15, [x11]
	subs	w14, w16, w17
	and	w16, w15, w14
	cset	w14, lt
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	and	w15, w15, w16
	str	w15, [x9, x10]
	add	x10, x10, #4
	subs	w13, w13, #1
	b.eq	LBB0_9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w16, [x8, x10]
	ldr	w17, [x12, x10]
	cbz	w14, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	w16, w17
	cset	w14, le
	mvn	w17, w17
	ldr	w15, [x11]
	add	w16, w16, w17
	and	w16, w15, w16
	b	LBB0_6
LBB0_9:
	cbz	w14, LBB0_15
; %bb.10:
	mov	x12, #0
	cmp	w23, w20
	csel	w13, w23, w20, gt
	cmp	w13, #0
	csel	w13, w13, wzr, gt
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	cmp	w23, w20
	b.ge	LBB0_16
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x14, x9, x12
	add	x15, x8, x12
	add	w23, w23, #1
	ldr	w15, [x15, x10]
	sub	w16, w15, #1
	ldr	w17, [x11]
	and	w16, w16, w17
	str	w16, [x14, x10]
	add	x12, x12, #4
	cmp	w15, w16
	b.le	LBB0_11
; %bb.13:
	add	x8, x8, x10
	add	x8, x8, x12
	add	x9, x9, x10
	add	x9, x9, x12
	cmp	x9, x8
	b.ne	LBB0_17
	b	LBB0_22
LBB0_14:
	mov	w23, #0
	cmp	x9, x8
	b.ne	LBB0_17
	b	LBB0_22
LBB0_15:
	add	x9, x9, x10
	add	x8, x8, x10
	cmp	x9, x8
	b.ne	LBB0_17
	b	LBB0_22
LBB0_16:
	add	x8, x8, x10
	add	x8, x8, x12
	add	x9, x9, x10
	add	x9, x9, x12
	mov	x23, x13
	cmp	x9, x8
	b.eq	LBB0_22
LBB0_17:
	cmp	w23, w20
	b.ge	LBB0_22
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	add	w10, w23, #1
	ldr	w11, [x8]
	str	w11, [x9]
	cmp	w10, w20
	b.ge	LBB0_22
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	add	w10, w23, #2
	ldr	w11, [x8, #4]
	str	w11, [x9, #4]
	cmp	w10, w20
	b.ge	LBB0_22
; %bb.20:                               ;   in Loop: Header=BB0_18 Depth=1
	add	w10, w23, #3
	ldr	w11, [x8, #8]
	str	w11, [x9, #8]
	cmp	w10, w20
	b.ge	LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_18 Depth=1
	add	w23, w23, #4
	ldr	w10, [x8, #12]
	str	w10, [x9, #12]
	add	x8, x8, #16
	add	x9, x9, #16
	cmp	w23, w20
	b.lt	LBB0_18
LBB0_22:
	str	w20, [x19]
	mov	x0, x19
	bl	_bn_fix_top
	mov	w0, #1
LBB0_23:
	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	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_BN_MASK2,4,2                   ; @BN_MASK2
.subsections_via_symbols
