	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s_mp_add
_s_mp_add:                              ## @s_mp_add
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	movl	(%rsi), %r13d
	cmpl	%r13d, %eax
	movq	%rsi, %rcx
	cmovgq	%rdi, %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%r13d, %r14d
	cmovll	%eax, %r14d
	cmovgl	%eax, %r13d
	leal	1(%r13), %r12d
	cmpl	%r13d, 4(%rdx)
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	jg	LBB0_2
## %bb.1:
	movq	%rdx, %rdi
	movl	%r12d, %esi
	callq	_mp_grow
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	_MP_OKAY@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_24
LBB0_2:
	movl	(%rdx), %r8d
	movl	%r12d, (%rdx)
	movq	8(%rdx), %rdi
	testl	%r14d, %r14d
	jle	LBB0_3
## %bb.4:
	movq	8(%r15), %r10
	movq	8(%rbx), %r15
	movq	_DIGIT_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	cmpl	$1, %r14d
	jne	LBB0_6
## %bb.5:
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_3:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_6:
	movl	%r14d, %r9d
	andl	$-2, %r9d
	xorl	%esi, %esi
	movq	_MP_MASK@GOTPCREL(%rip), %r11
	xorl	%eax, %eax
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	addl	(%r15,%rsi,4), %ebx
	addl	(%r10,%rsi,4), %ebx
	movl	%ebx, %edx
	sarl	%cl, %edx
	movl	%ebx, (%rdi,%rsi,4)
	andl	(%r11), %ebx
	movl	%ebx, (%rdi,%rsi,4)
	addl	4(%r15,%rsi,4), %edx
	addl	4(%r10,%rsi,4), %edx
	movl	%edx, %ebx
	sarl	%cl, %ebx
	movl	%edx, 4(%rdi,%rsi,4)
	andl	(%r11), %edx
	movl	%edx, 4(%rdi,%rsi,4)
	addq	$-8, %rax
	addq	$2, %rsi
	cmpl	%esi, %r9d
	jne	LBB0_7
## %bb.8:
	subq	%rax, %rdi
	subq	%rax, %r10
	subq	%rax, %r15
LBB0_9:
	movl	%r14d, %eax
	testb	$1, %r14b
	je	LBB0_11
## %bb.10:
	addl	(%r15), %ebx
	addl	(%r10), %ebx
	movl	%ebx, (%rdi)
	movl	%ebx, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %eax
	movq	_MP_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %ebx
	movl	%ebx, (%rdi)
	addq	$4, %rdi
	movl	%eax, %ebx
	movl	%r14d, %eax
LBB0_11:
	cmpl	%r13d, %r14d
	je	LBB0_12
## %bb.13:
	cmpl	%r13d, %eax
	jge	LBB0_12
## %bb.14:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rsi
	movq	_DIGIT_BIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%eax, %edx
	movl	%r13d, %r11d
	subl	%eax, %r13d
	movq	%rdx, %r10
	notq	%r10
	testb	$1, %r13b
	jne	LBB0_16
## %bb.15:
                                        ## implicit-def: $r9d
	jmp	LBB0_17
LBB0_12:
	movl	%ebx, %r9d
	movq	-48(%rbp), %r10                 ## 8-byte Reload
	jmp	LBB0_21
LBB0_16:
	addl	(%rsi,%rdx,4), %ebx
	movl	%ebx, %r9d
	sarl	%cl, %r9d
	movl	%ebx, (%rdi)
	movq	_MP_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movl	%ebx, (%rdi)
	addq	$4, %rdi
	incq	%rdx
	movl	%r9d, %ebx
LBB0_17:
	addq	%r11, %r10
	movq	-48(%rbp), %r10                 ## 8-byte Reload
	je	LBB0_21
## %bb.18:
	movq	_MP_MASK@GOTPCREL(%rip), %r9
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	addl	(%rsi,%rdx,4), %ebx
	movl	%ebx, %eax
	sarl	%cl, %eax
	movl	%ebx, (%rdi)
	andl	(%r9), %ebx
	movl	%ebx, (%rdi)
	addl	4(%rsi,%rdx,4), %eax
	movl	%eax, %ebx
	sarl	%cl, %ebx
	movl	%eax, 4(%rdi)
	andl	(%r9), %eax
	movl	%eax, 4(%rdi)
	addq	$8, %rdi
	addq	$2, %rdx
	cmpq	%rdx, %r11
	jne	LBB0_19
## %bb.20:
	movl	%ebx, %r9d
LBB0_21:
	movl	%r9d, (%rdi)
	movl	(%r10), %eax
	cmpl	%r8d, %eax
	jge	LBB0_23
## %bb.22:
	addq	$4, %rdi
	notl	%eax
	addl	%eax, %r8d
	leaq	4(,%r8,4), %rsi
	callq	___bzero
	movq	-48(%rbp), %r10                 ## 8-byte Reload
LBB0_23:
	movq	%r10, %rdi
	callq	_mp_clamp
	movq	_MP_OKAY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_24:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MP_OKAY,4,2                    ## @MP_OKAY
	.comm	_DIGIT_BIT,8,3                  ## @DIGIT_BIT
	.comm	_MP_MASK,4,2                    ## @MP_MASK
	.no_dead_strip	_s_mp_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s_mp_add
_s_mp_add:                              ; @s_mp_add
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldr	w8, [x0]
	ldr	w9, [x1]
	cmp	w8, w9
	csel	w26, w8, w9, lt
	csel	x25, x0, x1, gt
	csel	w24, w8, w9, gt
	ldr	w8, [x2, #4]
	add	w22, w24, #1
Lloh0:
	adrp	x23, _MP_OKAY@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MP_OKAY@GOTPAGEOFF]
	cmp	w8, w24
	b.gt	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x22
	bl	_mp_grow
	ldr	w8, [x23]
	cmp	w0, w8
	b.ne	LBB0_13
LBB0_2:
	ldr	w8, [x19]
	str	w22, [x19]
	ldr	x9, [x19, #8]
Lloh2:
	adrp	x12, _DIGIT_BIT@GOTPAGE
Lloh3:
	ldr	x12, [x12, _DIGIT_BIT@GOTPAGEOFF]
Lloh4:
	adrp	x11, _MP_MASK@GOTPAGE
Lloh5:
	ldr	x11, [x11, _MP_MASK@GOTPAGEOFF]
	cmp	w26, #1
	b.lt	LBB0_6
; %bb.3:
	mov	w10, #0
	ldr	x13, [x21, #8]
	ldr	x14, [x20, #8]
	mov	x15, x26
	ldr	w16, [x12]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w17, [x14], #4
	ldr	w0, [x13], #4
	add	w10, w17, w10
	add	w17, w10, w0
	str	w17, [x9]
	asr	w10, w17, w16
	ldr	w0, [x11]
	and	w17, w0, w17
	str	w17, [x9], #4
	subs	w15, w15, #1
	b.ne	LBB0_4
; %bb.5:
	mov	x14, x26
	cmp	w26, w24
	b.ne	LBB0_7
	b	LBB0_10
LBB0_6:
	mov	w10, #0
	mov	w14, #0
	cmp	w26, w24
	b.eq	LBB0_10
LBB0_7:
	cmp	w14, w24
	b.ge	LBB0_10
; %bb.8:
	ldr	x13, [x25, #8]
	ldr	w12, [x12]
	add	x13, x13, w14, uxtw #2
	sub	x14, x24, w14, uxtw
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w15, [x13], #4
	add	w10, w15, w10
	str	w10, [x9]
	ldr	w15, [x11]
	and	w15, w15, w10
	asr	w10, w10, w12
	str	w15, [x9], #4
	subs	x14, x14, #1
	b.ne	LBB0_9
LBB0_10:
	str	w10, [x9]
	ldr	w10, [x19]
	cmp	w10, w8
	b.ge	LBB0_12
; %bb.11:
	add	x0, x9, #4
	mvn	w9, w10
	add	w8, w8, w9
	lsl	x8, x8, #2
	add	x1, x8, #4
	bl	_bzero
LBB0_12:
	mov	x0, x19
	bl	_mp_clamp
	ldr	w0, [x23]
LBB0_13:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_MP_OKAY,4,2                    ; @MP_OKAY
	.comm	_DIGIT_BIT,8,3                  ; @DIGIT_BIT
	.comm	_MP_MASK,4,2                    ; @MP_MASK
	.no_dead_strip	_s_mp_add
.subsections_via_symbols
