	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function s_qdiv
LCPI0_0:
	.quad	-9223372036854775808            ## 0x8000000000000000
	.quad	-9223372036854775808            ## 0x8000000000000000
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_s_qdiv:                                ## @s_qdiv
	.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	%rdi, %r14
	movq	_MP_DIGIT_BIT@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	movq	%rsi, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_1
## %bb.2:
	movq	%rsi, %rax
	cqto
	idivq	%rcx
	movq	%rdx, %r15
	movq	%rax, %r12
	jmp	LBB0_3
LBB0_1:
	movl	%esi, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %r15d
	movl	%eax, %r12d
LBB0_3:
	movq	%r14, %rdi
	callq	_MP_USED
	testq	%r12, %r12
	je	LBB0_24
## %bb.4:
	movslq	%eax, %r13
	cmpq	%r13, %r12
	jge	LBB0_39
## %bb.5:
	movq	%r14, %rdi
	callq	_MP_DIGITS
	leaq	(%rax,%r12,8), %rdx
	movq	%r13, %r8
	subq	%r12, %r8
	cmpq	$4, %r8
	jb	LBB0_16
## %bb.6:
	leaq	(,%r12,8), %rcx
	negq	%rcx
	cmpq	$32, %rcx
	jb	LBB0_16
## %bb.7:
	movq	%rbx, %r10
	movq	%r8, %r9
	andq	$-4, %r9
	leaq	-4(%r9), %rsi
	movq	%rsi, %rdi
	shrq	$2, %rdi
	incq	%rdi
	movl	%edi, %ecx
	andl	$3, %ecx
	cmpq	$12, %rsi
	jae	LBB0_9
## %bb.8:
	xorl	%esi, %esi
	jmp	LBB0_11
LBB0_39:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mp_int_zero                    ## TAILCALL
LBB0_9:
	andq	$-4, %rdi
	leaq	(%rax,%r12,8), %rbx
	addq	$112, %rbx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movups	-112(%rbx,%rsi,8), %xmm0
	movups	-96(%rbx,%rsi,8), %xmm1
	movups	%xmm0, (%rax,%rsi,8)
	movups	%xmm1, 16(%rax,%rsi,8)
	movups	-80(%rbx,%rsi,8), %xmm0
	movups	-64(%rbx,%rsi,8), %xmm1
	movups	%xmm0, 32(%rax,%rsi,8)
	movups	%xmm1, 48(%rax,%rsi,8)
	movups	-48(%rbx,%rsi,8), %xmm0
	movups	-32(%rbx,%rsi,8), %xmm1
	movups	%xmm0, 64(%rax,%rsi,8)
	movups	%xmm1, 80(%rax,%rsi,8)
	movdqu	-16(%rbx,%rsi,8), %xmm0
	movdqu	(%rbx,%rsi,8), %xmm1
	movdqu	%xmm0, 96(%rax,%rsi,8)
	movdqu	%xmm1, 112(%rax,%rsi,8)
	addq	$16, %rsi
	addq	$-4, %rdi
	jne	LBB0_10
LBB0_11:
	testq	%rcx, %rcx
	je	LBB0_14
## %bb.12:
	leaq	(%rax,%rsi,8), %rsi
	addq	$16, %rsi
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movdqu	-16(%rsi,%r12,8), %xmm0
	movdqu	(%rsi,%r12,8), %xmm1
	movdqu	%xmm0, -16(%rsi)
	movdqu	%xmm1, (%rsi)
	addq	$32, %rsi
	decq	%rcx
	jne	LBB0_13
LBB0_14:
	cmpq	%r9, %r8
	movq	%r10, %rbx
	je	LBB0_23
## %bb.15:
	addq	%r9, %r12
	leaq	(%rdx,%r9,8), %rdx
	leaq	(%rax,%r9,8), %rax
LBB0_16:
	movl	%r13d, %ecx
	subl	%r12d, %ecx
	movq	%r12, %rsi
	notq	%rsi
	addq	%r13, %rsi
	andq	$7, %rcx
	je	LBB0_20
## %bb.17:
	movq	%rbx, %r9
	negq	%rcx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdx), %rbx
	addq	$8, %rdx
	movq	%rbx, (%rax)
	addq	$8, %rax
	decq	%rdi
	cmpq	%rdi, %rcx
	jne	LBB0_18
## %bb.19:
	subq	%rdi, %r12
	movq	%r9, %rbx
LBB0_20:
	cmpq	$7, %rsi
	jb	LBB0_23
## %bb.21:
	subq	%r12, %r13
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rcx,8), %rsi
	movq	%rsi, (%rax,%rcx,8)
	movq	8(%rdx,%rcx,8), %rsi
	movq	%rsi, 8(%rax,%rcx,8)
	movq	16(%rdx,%rcx,8), %rsi
	movq	%rsi, 16(%rax,%rcx,8)
	movq	24(%rdx,%rcx,8), %rsi
	movq	%rsi, 24(%rax,%rcx,8)
	movq	32(%rdx,%rcx,8), %rsi
	movq	%rsi, 32(%rax,%rcx,8)
	movq	40(%rdx,%rcx,8), %rsi
	movq	%rsi, 40(%rax,%rcx,8)
	movq	48(%rdx,%rcx,8), %rsi
	movq	%rsi, 48(%rax,%rcx,8)
	movq	56(%rdx,%rcx,8), %rsi
	movq	%rsi, 56(%rax,%rcx,8)
	addq	$8, %rcx
	cmpq	%rcx, %r13
	jne	LBB0_22
LBB0_23:
	movq	%r8, 16(%r14)
LBB0_24:
	testq	%r15, %r15
	je	LBB0_35
## %bb.25:
	movq	(%rbx), %r13
	movq	%r14, %rdi
	callq	_MP_USED
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_MP_DIGITS
	testl	%r12d, %r12d
	jle	LBB0_34
## %bb.26:
	subq	%r15, %r13
	movl	%r12d, %edx
	leaq	(%rax,%rdx,8), %rsi
	cmpl	$4, %r12d
	jae	LBB0_28
## %bb.27:
	xorl	%eax, %eax
	jmp	LBB0_32
LBB0_28:
	movl	%edx, %r9d
	andl	$-4, %r9d
	movl	%edx, %r8d
	andl	$3, %r8d
	movq	%r9, %rcx
	negq	%rcx
	leaq	(,%r9,8), %rdi
	subq	%rdi, %rsi
	movq	%r15, %xmm0
	movq	%r13, %xmm8
	leaq	(%rax,%rdx,8), %rax
	addq	$-16, %rax
	pxor	%xmm7, %xmm7
	xorl	%edi, %edi
	movdqa	LCPI0_0(%rip), %xmm2            ## xmm2 = [9223372036854775808,9223372036854775808]
	psrlq	%xmm0, %xmm2
	.p2align	4, 0x90
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	movdqu	-16(%rax,%rdi,8), %xmm3
	movdqu	(%rax,%rdi,8), %xmm4
	pshufd	$78, %xmm4, %xmm4               ## xmm4 = xmm4[2,3,0,1]
	pshufd	$78, %xmm3, %xmm1               ## xmm1 = xmm3[2,3,0,1]
	movdqa	%xmm4, %xmm5
	palignr	$8, %xmm7, %xmm5                ## xmm5 = xmm7[8,9,10,11,12,13,14,15],xmm5[0,1,2,3,4,5,6,7]
	movdqa	%xmm1, %xmm6
	movdqa	%xmm1, %xmm7
	palignr	$8, %xmm4, %xmm1                ## xmm1 = xmm4[8,9,10,11,12,13,14,15],xmm1[0,1,2,3,4,5,6,7]
	psrlq	%xmm0, %xmm4
	pxor	%xmm2, %xmm4
	psubq	%xmm2, %xmm4
	psrlq	%xmm0, %xmm6
	pxor	%xmm2, %xmm6
	psubq	%xmm2, %xmm6
	psllq	%xmm8, %xmm5
	psllq	%xmm8, %xmm1
	por	%xmm4, %xmm5
	por	%xmm6, %xmm1
	pshufd	$78, %xmm5, %xmm4               ## xmm4 = xmm5[2,3,0,1]
	movdqu	%xmm4, (%rax,%rdi,8)
	pshufd	$78, %xmm1, %xmm1               ## xmm1 = xmm1[2,3,0,1]
	movdqu	%xmm1, -16(%rax,%rdi,8)
	addq	$-4, %rdi
	cmpq	%rdi, %rcx
	jne	LBB0_29
## %bb.30:
	cmpq	%rdx, %r9
	je	LBB0_34
## %bb.31:
	movq	%xmm3, %rax
	movq	%r8, %rdx
LBB0_32:
	incq	%rdx
	addq	$-8, %rsi
	.p2align	4, 0x90
LBB0_33:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rsi), %rbx
	movq	%rbx, %rdi
	movl	%r15d, %ecx
	sarq	%cl, %rdi
	movl	%r13d, %ecx
	shlq	%cl, %rax
	orq	%rdi, %rax
	movq	%rax, (%rsi)
	decq	%rdx
	addq	$-8, %rsi
	movq	%rbx, %rax
	cmpq	$1, %rdx
	ja	LBB0_33
LBB0_34:
	movq	%r14, %rdi
	callq	_CLAMP
LBB0_35:
	movq	%r14, %rdi
	callq	_MP_USED
	cmpl	$1, %eax
	jne	LBB0_38
## %bb.36:
	movq	(%r14), %rax
	cmpq	$0, (%rax)
	jne	LBB0_38
## %bb.37:
	movq	_MP_ZPOS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
LBB0_38:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MP_DIGIT_BIT,8,3               ## @MP_DIGIT_BIT
	.comm	_MP_ZPOS,4,2                    ## @MP_ZPOS
	.no_dead_strip	_s_qdiv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s_qdiv
_s_qdiv:                                ; @s_qdiv
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _MP_DIGIT_BIT@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MP_DIGIT_BIT@GOTPAGEOFF]
	ldr	x21, [x22]
	sdiv	x23, x1, x21
	bl	_MP_USED
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	x23, LBB0_12
; %bb.1:
	sxtw	x24, w0
	cmp	x23, x24
	b.ge	LBB0_7
; %bb.2:
	mov	x0, x19
	bl	_MP_DIGITS
	lsl	x11, x23, #3
	add	x8, x0, x11
	sub	x9, x24, x23
	cmp	x9, #8
	b.lo	LBB0_8
; %bb.3:
	neg	x12, x11
	mov	x10, x23
	cmp	x12, #64
	b.lo	LBB0_9
; %bb.4:
	and	x12, x9, #0xfffffffffffffff8
	add	x10, x23, x12
	lsl	x13, x12, #3
	add	x8, x8, x13
	add	x13, x0, x13
	add	x14, x0, #32
	mov	x15, x12
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x16, x14, x11
	ldp	q0, q1, [x16, #-32]
	ldp	q2, q3, [x16]
	stp	q0, q1, [x14, #-32]
	stp	q2, q3, [x14], #64
	subs	x15, x15, #8
	b.ne	LBB0_5
; %bb.6:
	mov	x0, x13
	cmp	x9, x12
	b.ne	LBB0_9
	b	LBB0_11
LBB0_7:
	mov	x0, x19
	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
	b	_mp_int_zero
LBB0_8:
	mov	x10, x23
LBB0_9:
	sub	x10, x24, x10
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x8], #8
	str	x11, [x0], #8
	subs	x10, x10, #1
	b.ne	LBB0_10
LBB0_11:
	str	x9, [x19, #16]
LBB0_12:
	msub	x21, x23, x21, x20
	cbz	x21, LBB0_22
; %bb.13:
	ldr	x22, [x22]
	mov	x0, x19
	bl	_MP_USED
	mov	x20, x0
	mov	x0, x19
	bl	_MP_DIGITS
	cmp	w20, #1
	b.lt	LBB0_21
; %bb.14:
	sub	x8, x22, x21
	mov	w11, w20
	add	x9, x0, w20, uxtw #3
	cmp	w20, #8
	b.hs	LBB0_16
; %bb.15:
	mov	x13, #0
	mov	x10, x11
	b	LBB0_19
LBB0_16:
	and	x12, x11, #0xfffffff8
	and	x10, x11, #0x7
	dup.2d	v1, x21
	dup.2d	v0, x8
	sub	x9, x9, x12, lsl #3
	add	x13, x0, x11, lsl #3
	sub	x13, x13, #32
	movi.2d	v3, #0000000000000000
	neg.2d	v1, v1
	mov	x14, x12
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldp	q4, q2, [x13]
	ext.16b	v5, v2, v2, #8
	ext.16b	v4, v4, v4, #8
	ldp	q2, q6, [x13, #-32]
	ext.16b	v6, v6, v6, #8
	ext.16b	v3, v3, v5, #8
	ext.16b	v7, v2, v2, #8
	ext.16b	v16, v5, v4, #8
	ext.16b	v17, v4, v6, #8
	ext.16b	v18, v6, v7, #8
	sshl.2d	v5, v5, v1
	sshl.2d	v4, v4, v1
	sshl.2d	v6, v6, v1
	sshl.2d	v19, v7, v1
	ushl.2d	v3, v3, v0
	ushl.2d	v16, v16, v0
	ushl.2d	v17, v17, v0
	ushl.2d	v18, v18, v0
	orr.16b	v3, v5, v3
	orr.16b	v4, v4, v16
	orr.16b	v5, v6, v17
	orr.16b	v6, v19, v18
	ext.16b	v3, v3, v3, #8
	ext.16b	v4, v4, v4, #8
	stp	q4, q3, [x13]
	ext.16b	v3, v5, v5, #8
	ext.16b	v4, v6, v6, #8
	stp	q4, q3, [x13, #-32]
	sub	x13, x13, #64
	mov.16b	v3, v7
	sub	x14, x14, #8
	cbnz	x14, LBB0_17
; %bb.18:
	fmov	x13, d2
	cmp	x12, x11
	b.eq	LBB0_21
LBB0_19:
	add	x10, x10, #1
	sub	x9, x9, #8
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	lsl	x11, x13, x8
	ldr	x13, [x9]
	asr	x12, x13, x21
	orr	x11, x12, x11
	str	x11, [x9], #-8
	sub	x10, x10, #1
	cmp	x10, #1
	b.hi	LBB0_20
LBB0_21:
	mov	x0, x19
	bl	_CLAMP
LBB0_22:
	mov	x0, x19
	bl	_MP_USED
	cmp	w0, #1
	b.ne	LBB0_25
; %bb.23:
	ldr	x8, [x19]
	ldr	x8, [x8]
	cbnz	x8, LBB0_25
; %bb.24:
Lloh2:
	adrp	x8, _MP_ZPOS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MP_ZPOS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x19, #8]
LBB0_25:
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MP_DIGIT_BIT,8,3               ; @MP_DIGIT_BIT
	.comm	_MP_ZPOS,4,2                    ; @MP_ZPOS
	.no_dead_strip	_s_qdiv
.subsections_via_symbols
