	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BN_add_word                    ## -- Begin function BN_add_word
	.p2align	4, 0x90
_BN_add_word:                           ## @BN_add_word
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	cmpl	$0, (%rdi)
	je	LBB0_3
## %bb.1:
	movl	$0, (%rbx)
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_BN_sub_word
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_BN_is_zero
	testl	%eax, %eax
	jne	LBB0_11
## %bb.2:
	xorl	%eax, %eax
	cmpl	$0, (%rbx)
	sete	%al
	movl	%eax, (%rbx)
	jmp	LBB0_11
LBB0_3:
	movq	_BN_MASK2@GOTPCREL(%rip), %r15
	movl	(%r15), %r12d
	movl	4(%rbx), %esi
	incl	%esi
	movq	%rbx, %rdi
	callq	_bn_wexpand
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	andl	%r14d, %r12d
	movq	8(%rbx), %rax
	movl	(%rax), %ecx
	addl	%r12d, %ecx
	andl	(%r15), %ecx
	movl	%ecx, (%rax)
	cmpl	%ecx, %r12d
	jle	LBB0_6
## %bb.7:
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%rax,%rcx,4), %edx
	incl	%edx
	andl	(%r15), %edx
	movl	%edx, 4(%rax,%rcx,4)
	incq	%rcx
	testl	%edx, %edx
	jle	LBB0_8
	jmp	LBB0_9
LBB0_4:
	xorl	%r14d, %r14d
	jmp	LBB0_11
LBB0_6:
	xorl	%ecx, %ecx
LBB0_9:
	movl	4(%rbx), %eax
	movl	$1, %r14d
	cmpl	%ecx, %eax
	jg	LBB0_11
## %bb.10:
	incl	%eax
	movl	%eax, 4(%rbx)
LBB0_11:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	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_add_word                    ; -- Begin function BN_add_word
	.p2align	2
_BN_add_word:                           ; @BN_add_word
	.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	x20, x1
	mov	x19, x0
	ldr	w8, [x0]
	cbz	w8, LBB0_3
; %bb.1:
	str	wzr, [x19]
	mov	x0, x19
	mov	x1, x20
	bl	_BN_sub_word
	mov	x20, x0
	mov	x0, x19
	bl	_BN_is_zero
	cbnz	w0, LBB0_12
; %bb.2:
	ldr	w8, [x19]
	cmp	w8, #0
	cset	w8, eq
	str	w8, [x19]
	b	LBB0_12
LBB0_3:
Lloh0:
	adrp	x21, _BN_MASK2@GOTPAGE
Lloh1:
	ldr	x21, [x21, _BN_MASK2@GOTPAGEOFF]
	ldr	w22, [x21]
	ldr	w8, [x19, #4]
	add	w1, w8, #1
	mov	x0, x19
	bl	_bn_wexpand
	cbz	x0, LBB0_7
; %bb.4:
	and	w8, w22, w20
	ldr	x9, [x19, #8]
	ldr	w10, [x9]
	ldr	w11, [x21]
	add	w10, w10, w8
	and	w10, w10, w11
	str	w10, [x9]
	cmp	w8, w10
	b.le	LBB0_8
; %bb.5:
	mov	x8, #0
	add	x9, x9, #4
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x10, x8, #2
	ldr	w11, [x9, x10]
	add	w11, w11, #1
	ldr	w12, [x21]
	and	w11, w11, w12
	str	w11, [x9, x10]
	add	x8, x8, #1
	cmp	w11, #1
	b.lt	LBB0_6
	b	LBB0_9
LBB0_7:
	mov	w20, #0
	b	LBB0_12
LBB0_8:
	mov	x8, #0
LBB0_9:
	ldr	w9, [x19, #4]
	cmp	w9, w8
	b.gt	LBB0_11
; %bb.10:
	add	w8, w9, #1
	str	w8, [x19, #4]
LBB0_11:
	mov	w20, #1
LBB0_12:
	mov	x0, x20
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_BN_MASK2,4,2                   ; @BN_MASK2
.subsections_via_symbols
