	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s_mp_sqr
_s_mp_sqr:                              ## @s_mp_sqr
	.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, %r14
	movq	%rdi, %r15
	movl	(%rdi), %r12d
	leal	(%r12,%r12), %r13d
	incl	%r13d
	leaq	-56(%rbp), %rdi
	movl	%r13d, %esi
	callq	_mp_init_size
	movq	_MP_OKAY@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_10
## %bb.1:
	movl	%r13d, -56(%rbp)
	testl	%r12d, %r12d
	jle	LBB0_9
## %bb.2:
	movq	-48(%rbp), %r8
	movq	8(%r15), %r11
	movl	$1, %r10d
	xorl	%r9d, %r9d
	movq	_MP_MASK@GOTPCREL(%rip), %r15
	movq	_DIGIT_BIT@GOTPCREL(%rip), %rax
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
                                        ##     Child Loop BB0_7 Depth 2
	movq	%r9, %rdx
	movq	%r9, %rdi
	shlq	$4, %rdi
	movl	(%r11,%r9,8), %esi
	imull	%esi, %esi
	addl	(%r8,%rdi), %esi
	movl	(%r15), %ecx
	andl	%esi, %ecx
	movslq	%ecx, %rcx
	movq	%rcx, (%r8,%rdi)
	movb	(%rax), %cl
	sarl	%cl, %esi
	leaq	(%r8,%rdi), %rbx
	addq	$8, %rbx
	incq	%r9
	cmpq	%r12, %r9
	jae	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r11,%rdx,8), %edx
	addl	%edx, %edx
	movq	%r10, %rdi
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r11,%rdi,8), %ecx
	imull	%edx, %ecx
	addl	(%rbx), %esi
	addl	%ecx, %esi
	movl	(%r15), %ecx
	andl	%esi, %ecx
	movslq	%ecx, %rcx
	movq	%rcx, (%rbx)
	movzbl	(%rax), %ecx
	sarl	%cl, %esi
	addq	$8, %rbx
	incq	%rdi
	cmpq	%rdi, %r12
	jne	LBB0_6
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_7 Depth=2
	addl	(%rbx), %esi
	movl	(%r15), %ecx
	andl	%esi, %ecx
	movslq	%ecx, %rcx
	movq	%rcx, (%rbx)
	addq	$8, %rbx
	movzbl	(%rax), %ecx
	sarl	%cl, %esi
LBB0_7:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testl	%esi, %esi
	jne	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%r10
	cmpq	%r12, %r9
	jne	LBB0_4
LBB0_9:
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_mp_clamp
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_mp_exch
	movq	%rbx, %rdi
	callq	_mp_clear
	movq	_MP_OKAY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_10:
	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	_MP_MASK,8,3                    ## @MP_MASK
	.comm	_DIGIT_BIT,8,3                  ## @DIGIT_BIT
	.no_dead_strip	_s_mp_sqr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s_mp_sqr
_s_mp_sqr:                              ; @s_mp_sqr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	w23, [x0]
	mov	w21, #1
	bfi	w21, w23, #1, #31
	mov	x0, sp
	mov	x1, x21
	bl	_mp_init_size
Lloh0:
	adrp	x22, _MP_OKAY@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MP_OKAY@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_10
; %bb.1:
	str	w21, [sp]
	cmp	w23, #1
	b.lt	LBB0_9
; %bb.2:
	mov	x17, #0
	ldr	x8, [sp, #8]
	ldr	x9, [x20, #8]
	add	x10, x9, #8
	mov	w11, #1
Lloh2:
	adrp	x12, _MP_MASK@GOTPAGE
Lloh3:
	ldr	x12, [x12, _MP_MASK@GOTPAGEOFF]
Lloh4:
	adrp	x13, _DIGIT_BIT@GOTPAGE
Lloh5:
	ldr	x13, [x13, _DIGIT_BIT@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x11, x11, #1
	add	x10, x10, #8
	mov	x17, x15
	cmp	x15, x23
	b.eq	LBB0_9
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
                                        ;     Child Loop BB0_8 Depth 2
	add	x14, x8, x17, lsl #4
	ldr	w15, [x14]
	ldr	x16, [x9, x17, lsl #3]
	madd	w15, w16, w16, w15
	ldr	w16, [x12]
	and	w16, w15, w16
	sxtw	x16, w16
	str	x16, [x14], #8
	ldr	w16, [x13]
	asr	w16, w15, w16
	add	x15, x17, #1
	cmp	x15, x23
	b.hs	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	lsl	x17, x17, #3
	ldr	w17, [x9, x17]
	lsl	w17, w17, #1
	mov	x0, x23
	mov	x1, x10
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w2, [x1], #8
	ldr	w3, [x14]
	add	w16, w16, w3
	madd	w16, w17, w2, w16
	ldr	w2, [x12]
	and	w2, w16, w2
	sxtw	x2, w2
	str	x2, [x14], #8
	ldr	w2, [x13]
	asr	w16, w16, w2
	sub	x0, x0, #1
	cmp	x11, x0
	b.ne	LBB0_6
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	cbz	w16, LBB0_3
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w17, [x14]
	ldr	w0, [x12]
	add	w16, w16, w17
	and	w17, w16, w0
	sxtw	x17, w17
	str	x17, [x14], #8
	ldr	w17, [x13]
	asr	w16, w16, w17
	cbnz	w16, LBB0_8
	b	LBB0_3
LBB0_9:
	mov	x0, sp
	bl	_mp_clamp
	mov	x0, sp
	mov	x1, x19
	bl	_mp_exch
	mov	x0, sp
	bl	_mp_clear
	ldr	w0, [x22]
LBB0_10:
	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
	add	sp, sp, #80
	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	_MP_MASK,8,3                    ; @MP_MASK
	.comm	_DIGIT_BIT,8,3                  ; @DIGIT_BIT
	.no_dead_strip	_s_mp_sqr
.subsections_via_symbols
