	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s_qmul
_s_qmul:                                ## @s_qmul
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$1, %r13d
	testl	%esi, %esi
	je	LBB0_47
## %bb.1:
	movl	%esi, %ebx
	movq	%rdi, %r12
	callq	_MP_USED
	movl	%eax, %esi
	movq	_MP_DIGIT_BIT@GOTPCREL(%rip), %r15
	movl	%ebx, %eax
	cltd
	idivl	(%r15)
	movl	%eax, %r14d
	movl	%edx, %ebx
	xorl	%r13d, %r13d
	movl	$0, %ecx
	testl	%edx, %edx
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_3
## %bb.2:
	movq	%r12, %rdi
	callq	_MP_DIGITS
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movslq	%esi, %rcx
	movl	-4(%rax,%rcx,4), %eax
	movl	(%r15), %ecx
	subl	%ebx, %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %eax
	xorl	%ecx, %ecx
	testl	%eax, %eax
	setne	%cl
LBB0_3:
	leal	(%r14,%rsi), %eax
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	leal	(%rcx,%rax), %esi
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_s_pad
	testl	%eax, %eax
	je	LBB0_47
## %bb.4:
	testl	%r14d, %r14d
	jle	LBB0_5
## %bb.6:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_MP_DIGITS
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	testl	%ecx, %ecx
	movl	%ebx, %r13d
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	jle	LBB0_28
## %bb.7:
	movl	%ecx, %ebx
	movq	%rcx, %rsi
	leaq	(%rax,%rbx,4), %r10
	leaq	(%rax,%rbx,4), %rcx
	addq	$-4, %rcx
	movl	%r14d, %r11d
	leaq	(%r10,%r11,4), %rdx
	addq	$-4, %rdx
	leal	-1(%rsi), %r9d
	xorl	%r8d, %r8d
	cmpl	$7, %r9d
	jb	LBB0_8
## %bb.9:
	leaq	(,%r9,4), %rsi
	movq	%rdx, %rdi
	subq	%rsi, %rdi
	cmpq	%rdx, %rdi
	ja	LBB0_8
## %bb.10:
	movq	%rcx, %rdi
	subq	%rsi, %rdi
	cmpq	%rcx, %rdi
	ja	LBB0_8
## %bb.11:
	leaq	(,%r11,4), %rsi
	negq	%rsi
	cmpq	$32, %rsi
	jb	LBB0_8
## %bb.12:
	incq	%r9
	movq	%r9, %r8
	andq	$-8, %r8
	leaq	-8(%r8), %rsi
	movq	%rsi, %rdi
	shrq	$3, %rdi
	incq	%rdi
	testq	%rsi, %rsi
	je	LBB0_13
## %bb.14:
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	andq	$-2, %rdi
	leaq	(%rax,%rbx,4), %rsi
	addq	$-16, %rsi
	leaq	(%r10,%r11,4), %rbx
	addq	$-16, %rbx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movups	-16(%rsi,%rax,4), %xmm0
	movups	(%rsi,%rax,4), %xmm1
	movups	%xmm1, (%rbx,%rax,4)
	movups	%xmm0, -16(%rbx,%rax,4)
	movdqu	-48(%rsi,%rax,4), %xmm0
	movdqu	-32(%rsi,%rax,4), %xmm1
	movdqu	%xmm1, -32(%rbx,%rax,4)
	movdqu	%xmm0, -48(%rbx,%rax,4)
	addq	$-16, %rax
	addq	$-2, %rdi
	jne	LBB0_15
## %bb.16:
	negq	%rax
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	-48(%rbp), %r10                 ## 8-byte Reload
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_17
LBB0_5:
	movq	-48(%rbp), %r12                 ## 8-byte Reload
                                        ## kill: def $r12d killed $r12d killed $r12 def $r12
	movl	%ebx, %r13d
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	testl	%r13d, %r13d
	jne	LBB0_30
	jmp	LBB0_46
LBB0_8:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	-48(%rbp), %r10                 ## 8-byte Reload
LBB0_21:
	movl	%r10d, %edi
	subl	%r8d, %edi
	movl	%r8d, %esi
	notl	%esi
	addl	%r10d, %esi
	andl	$7, %edi
	je	LBB0_25
## %bb.22:
	negl	%edi
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rcx), %ebx
	addq	$-4, %rcx
	movl	%ebx, (%rdx)
	addq	$-4, %rdx
	decq	%rax
	cmpl	%eax, %edi
	jne	LBB0_23
## %bb.24:
	subl	%eax, %r8d
LBB0_25:
	cmpl	$7, %esi
	jb	LBB0_28
## %bb.26:
	subl	%r10d, %r8d
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rcx,%rax,4), %esi
	movl	%esi, (%rdx,%rax,4)
	movl	-4(%rcx,%rax,4), %esi
	movl	%esi, -4(%rdx,%rax,4)
	movl	-8(%rcx,%rax,4), %esi
	movl	%esi, -8(%rdx,%rax,4)
	movl	-12(%rcx,%rax,4), %esi
	movl	%esi, -12(%rdx,%rax,4)
	movl	-16(%rcx,%rax,4), %esi
	movl	%esi, -16(%rdx,%rax,4)
	movl	-20(%rcx,%rax,4), %esi
	movl	%esi, -20(%rdx,%rax,4)
	movl	-24(%rcx,%rax,4), %esi
	movl	%esi, -24(%rdx,%rax,4)
	movl	-28(%rcx,%rax,4), %esi
	movl	%esi, -28(%rdx,%rax,4)
	addq	$-8, %rax
	cmpl	%eax, %r8d
	jne	LBB0_27
	jmp	LBB0_28
LBB0_13:
	xorl	%eax, %eax
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	-48(%rbp), %r10                 ## 8-byte Reload
LBB0_17:
	testb	$1, %dil
	je	LBB0_19
## %bb.18:
	shlq	$2, %rax
	movq	%rdx, %rsi
	subq	%rax, %rsi
	movq	%rcx, %rdi
	subq	%rax, %rdi
	movdqu	-28(%rdi), %xmm0
	movdqu	-12(%rdi), %xmm1
	movdqu	%xmm1, -12(%rsi)
	movdqu	%xmm0, -28(%rsi)
LBB0_19:
	cmpq	%r8, %r9
	jne	LBB0_20
LBB0_28:
	movq	%r15, %rdi
	callq	_MP_DIGITS
	movq	%rax, %rdi
	movl	%r14d, %esi
	callq	_ZERO
	testl	%r13d, %r13d
	je	LBB0_46
LBB0_30:
	movq	%r15, %rdi
	callq	_MP_DIGITS
	movslq	%r14d, %r9
	leaq	(%rax,%r9,4), %rdx
	xorl	%edi, %edi
	cmpl	%r12d, %r14d
	jge	LBB0_31
## %bb.32:
	xorl	%esi, %esi
	testl	%r14d, %r14d
	movl	$0, %r11d
	cmovgl	%r14d, %r11d
	movq	-48(%rbp), %r10                 ## 8-byte Reload
	addl	%r10d, %r11d
	movl	%r14d, %edi
	notl	%edi
	addl	%edi, %r11d
	cmpl	$3, %r11d
	movq	_MP_DIGIT_BIT@GOTPCREL(%rip), %rbx
	jb	LBB0_43
## %bb.33:
	xorl	%esi, %esi
	testl	%r14d, %r14d
	movl	$0, %r8d
	cmovgl	%r14d, %r8d
	leaq	4(%rbx), %rcx
	cmpq	%rcx, %rdx
	jae	LBB0_35
## %bb.34:
	addl	%r8d, %r10d
	addl	%edi, %r10d
	addq	%r9, %r10
	leaq	(%rax,%r10,4), %rcx
	addq	$4, %rcx
	cmpq	_MP_DIGIT_BIT@GOTPCREL(%rip), %rcx
	ja	LBB0_43
LBB0_35:
	incq	%r11
	movabsq	$8589934584, %r8                ## imm = 0x1FFFFFFF8
	orq	$4, %r8
	andq	%r11, %r8
	movd	%r13d, %xmm0
	leaq	-4(%r8), %rcx
	movq	%rcx, %r10
	shrq	$2, %r10
	incq	%r10
	pmovzxdq	%xmm0, %xmm0                    ## xmm0 = xmm0[0],zero,xmm0[1],zero
	testq	%rcx, %rcx
	je	LBB0_36
## %bb.37:
	movq	%r10, %rdi
	andq	$-2, %rdi
	movq	_MP_DIGIT_BIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	subl	%r13d, %ecx
	movd	%ecx, %xmm1
	leaq	(%rax,%r9,4), %rsi
	addq	$16, %rsi
	pxor	%xmm3, %xmm3
	xorl	%eax, %eax
	pmovzxdq	%xmm1, %xmm2                    ## xmm2 = xmm1[0],zero,xmm1[1],zero
	.p2align	4, 0x90
LBB0_38:                                ## =>This Inner Loop Header: Depth=1
	movdqu	-16(%rsi,%rax,4), %xmm4
	movdqu	(%rsi,%rax,4), %xmm1
	movdqa	%xmm4, %xmm5
	palignr	$12, %xmm3, %xmm5               ## xmm5 = xmm3[12,13,14,15],xmm5[0,1,2,3,4,5,6,7,8,9,10,11]
	movdqa	%xmm1, %xmm3
	palignr	$12, %xmm4, %xmm3               ## xmm3 = xmm4[12,13,14,15],xmm3[0,1,2,3,4,5,6,7,8,9,10,11]
	pslld	%xmm0, %xmm4
	psrad	%xmm2, %xmm5
	por	%xmm4, %xmm5
	movdqu	%xmm5, -16(%rsi,%rax,4)
	movdqa	%xmm1, %xmm4
	pslld	%xmm0, %xmm4
	psrad	%xmm2, %xmm3
	por	%xmm4, %xmm3
	movdqu	%xmm3, (%rsi,%rax,4)
	addq	$8, %rax
	movdqa	%xmm1, %xmm3
	addq	$-2, %rdi
	jne	LBB0_38
	jmp	LBB0_39
LBB0_31:
	movq	_MP_DIGIT_BIT@GOTPCREL(%rip), %rbx
	jmp	LBB0_44
LBB0_20:
	leaq	(,%r8,4), %rax
	subq	%rax, %rdx
	subq	%rax, %rcx
	jmp	LBB0_21
LBB0_36:
	pxor	%xmm1, %xmm1
	xorl	%eax, %eax
LBB0_39:
	testb	$1, %r10b
	movq	_MP_DIGIT_BIT@GOTPCREL(%rip), %rbx
	je	LBB0_41
## %bb.40:
	movdqu	(%rdx,%rax,4), %xmm2
	movdqa	%xmm2, %xmm3
	movdqa	%xmm2, %xmm4
	pslld	%xmm0, %xmm4
	palignr	$12, %xmm1, %xmm3               ## xmm3 = xmm1[12,13,14,15],xmm3[0,1,2,3,4,5,6,7,8,9,10,11]
	movdqa	%xmm2, %xmm1
	movl	(%rbx), %ecx
	subl	%r13d, %ecx
	movd	%ecx, %xmm0
	psrad	%xmm0, %xmm3
	por	%xmm4, %xmm3
	movdqu	%xmm3, (%rdx,%rax,4)
LBB0_41:
	leaq	(%rdx,%r8,4), %rdx
	pextrd	$3, %xmm1, %edi
	cmpq	%r8, %r11
	je	LBB0_44
## %bb.42:
	addl	%r8d, %r14d
	movl	%edi, %esi
	.p2align	4, 0x90
LBB0_43:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rdx), %edi
	movl	%edi, %eax
	movl	%r13d, %ecx
	shll	%cl, %eax
	movl	(%rbx), %ecx
	subl	%r13d, %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %esi
	orl	%eax, %esi
	movl	%esi, (%rdx)
	incl	%r14d
	addq	$4, %rdx
	movl	%edi, %esi
	cmpl	%r12d, %r14d
	jl	LBB0_43
LBB0_44:
	movl	(%rbx), %ecx
	subl	%r13d, %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %edi
	testl	%edi, %edi
	je	LBB0_46
## %bb.45:
	movl	%edi, (%rdx)
	addl	-72(%rbp), %r12d                ## 4-byte Folded Reload
LBB0_46:
	movl	%r12d, (%r15)
	movq	%r15, %rdi
	callq	_CLAMP
	movl	$1, %r13d
LBB0_47:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MP_DIGIT_BIT,4,2               ## @MP_DIGIT_BIT
	.no_dead_strip	_s_qmul
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s_qmul
_s_qmul:                                ; @s_qmul
	.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
	cbz	w1, LBB0_31
; %bb.1:
	mov	x22, x1
	mov	x19, x0
	bl	_MP_USED
	mov	x21, x0
Lloh0:
	adrp	x23, _MP_DIGIT_BIT@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MP_DIGIT_BIT@GOTPAGEOFF]
	ldr	w8, [x23]
	sdiv	w20, w22, w8
	msub	w22, w20, w8, w22
	cbz	w22, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_MP_DIGITS
	add	x8, x0, w21, sxtw #2
	ldur	w8, [x8, #-4]
	ldr	w9, [x23]
	sub	w9, w9, w22
	asr	w8, w8, w9
	cmp	w8, #0
	cset	w25, ne
	b	LBB0_4
LBB0_3:
	mov	w25, #0
LBB0_4:
	add	w24, w20, w21
	add	w1, w25, w24
	mov	x0, x19
	bl	_s_pad
	cbz	w0, LBB0_32
; %bb.5:
	cmp	w20, #1
	b.lt	LBB0_9
; %bb.6:
	mov	x0, x19
	bl	_MP_DIGITS
	subs	w11, w21, #1
	b.lt	LBB0_17
; %bb.7:
	add	x8, x0, w21, uxtw #2
	sub	x8, x8, #4
	add	x9, x8, w20, uxtw #2
	cmp	w11, #15
	b.hs	LBB0_10
; %bb.8:
	mov	w10, #0
	b	LBB0_15
LBB0_9:
	mov	x24, x21
	cbnz	w22, LBB0_18
	b	LBB0_30
LBB0_10:
	mov	w10, #0
	lsl	x12, x11, #2
	sub	x13, x8, x12
	sub	x12, x9, x12
	cmp	x12, x9
	ccmp	x13, x8, #2, ls
	b.hi	LBB0_15
; %bb.11:
	neg	x12, x20, lsl #2
	cmp	x12, #64
	b.lo	LBB0_15
; %bb.12:
	mov	w13, w21
	add	x11, x11, #1
	and	x10, x11, #0x1fffffff0
	lsl	x12, x10, #2
	sub	x9, x9, x12
	sub	x8, x8, x12
	lsl	x12, x20, #2
	add	x13, x0, x13, lsl #2
	sub	x13, x13, #32
	mov	x14, x10
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldp	q1, q0, [x13]
	ldp	q3, q2, [x13, #-32]
	add	x15, x13, x12
	stp	q1, q0, [x15]
	stp	q3, q2, [x15, #-32]
	sub	x13, x13, #64
	sub	x14, x14, #16
	cbnz	x14, LBB0_13
; %bb.14:
	cmp	x11, x10
	b.eq	LBB0_17
LBB0_15:
	sub	w10, w21, w10
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x8], #-4
	str	w11, [x9], #-4
	subs	w10, w10, #1
	b.ne	LBB0_16
LBB0_17:
	mov	x0, x19
	bl	_MP_DIGITS
	mov	x1, x20
	bl	_ZERO
	cbz	w22, LBB0_30
LBB0_18:
	mov	x0, x19
	bl	_MP_DIGITS
	add	x8, x0, w20, sxtw #2
	cmp	w20, w24
	b.ge	LBB0_21
; %bb.19:
	cmp	w20, #0
	csel	w9, w20, wzr, gt
	mvn	w10, w20
	add	w9, w21, w9
	add	w9, w9, w10
	cmp	w9, #15
	b.hs	LBB0_22
; %bb.20:
	mov	w11, #0
	b	LBB0_27
LBB0_21:
	mov	w12, #0
	b	LBB0_28
LBB0_22:
	mov	x11, x20
	sxtw	x12, w11
	cmp	w20, #0
	csel	w13, w20, wzr, gt
	add	x11, x23, #4
	cmp	x8, x11
	b.hs	LBB0_24
; %bb.23:
	mov	w11, #0
	add	w13, w21, w13
	add	w10, w13, w10
	add	x10, x12, x10
	add	x10, x0, x10, lsl #2
	add	x10, x10, #4
	cmp	x10, x23
	b.hi	LBB0_27
LBB0_24:
	add	x9, x9, #1
	and	x10, x9, #0x1fffffff0
	add	x8, x8, x10, lsl #2
	dup.4s	v0, w22
	ldr	w11, [x23]
	sub	w11, w11, w22
	dup.4s	v1, w11
	add	w20, w20, w10
	add	x11, x0, x12, lsl #2
	add	x11, x11, #32
	movi.2d	v2, #0000000000000000
	neg.4s	v1, v1
	mov	x12, x10
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	ldp	q3, q4, [x11, #-32]
	ext.16b	v5, v2, v3, #12
	ldp	q6, q2, [x11]
	ext.16b	v7, v3, v4, #12
	ext.16b	v16, v4, v6, #12
	ext.16b	v17, v6, v2, #12
	ushl.4s	v3, v3, v0
	ushl.4s	v4, v4, v0
	ushl.4s	v6, v6, v0
	ushl.4s	v18, v2, v0
	sshl.4s	v5, v5, v1
	sshl.4s	v7, v7, v1
	sshl.4s	v16, v16, v1
	sshl.4s	v17, v17, v1
	orr.16b	v3, v5, v3
	orr.16b	v4, v7, v4
	orr.16b	v5, v16, v6
	stp	q3, q4, [x11, #-32]
	orr.16b	v3, v17, v18
	stp	q5, q3, [x11], #64
	subs	x12, x12, #16
	b.ne	LBB0_25
; %bb.26:
	mov.s	w11, v2[3]
	mov	x12, x11
	cmp	x9, x10
	b.eq	LBB0_28
LBB0_27:                                ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x8]
	lsl	w9, w12, w22
	ldr	w10, [x23]
	sub	w10, w10, w22
	asr	w10, w11, w10
	orr	w9, w10, w9
	str	w9, [x8], #4
	add	w20, w20, #1
	mov	x11, x12
	cmp	w20, w24
	b.lt	LBB0_27
LBB0_28:
	ldr	w9, [x23]
	sub	w9, w9, w22
	asr	w9, w12, w9
	cbz	w9, LBB0_30
; %bb.29:
	str	w9, [x8]
	add	w24, w24, w25
LBB0_30:
	str	w24, [x19]
	mov	x0, x19
	bl	_CLAMP
LBB0_31:
	mov	w0, #1
LBB0_32:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_MP_DIGIT_BIT,4,2               ; @MP_DIGIT_BIT
	.no_dead_strip	_s_qmul
.subsections_via_symbols
