	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s_qsub
_s_qsub:                                ## @s_qsub
	.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
	movl	%esi, %r13d
	movq	%rdi, %rbx
	movq	_MP_DIGIT_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%esi, %eax
	xorl	%edx, %edx
	divl	%r15d
	movl	%eax, %r14d
	movl	%edx, %ecx
	xorl	%r12d, %r12d
	movl	$1, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leal	1(%r14), %esi
	callq	_s_pad
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_MP_DIGITS
	movq	%rax, %r12
	xorl	%ebx, %ebx
	cmpl	%r13d, %r15d
	ja	LBB0_4
## %bb.2:
	cmpl	$2, %r14d
	movl	$1, %r13d
	cmovael	%r14d, %r13d
	xorl	%ebx, %ebx
	movq	_MP_DIGIT_MAX@GOTPCREL(%rip), %r14
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	addl	(%r14), %ebx
	subl	(%r12), %ebx
	incl	%ebx
	movl	%ebx, %edi
	callq	_LOWER_HALF
	movl	%eax, (%r12)
	movl	%ebx, %edi
	callq	_UPPER_HALF
	cmpq	$1, %rax
	movl	$0, %ebx
	sbbl	%ebx, %ebx
	incl	%r15d
	addq	$4, %r12
	cmpl	%r13d, %r15d
	jne	LBB0_3
LBB0_4:
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	addl	%ebx, %r14d
	movq	_MP_DIGIT_MAX@GOTPCREL(%rip), %rax
	addl	(%rax), %r14d
	subl	(%r12), %r14d
	incl	%r14d
	movl	%r14d, %edi
	callq	_LOWER_HALF
	movl	%eax, (%r12)
	movl	%r14d, %edi
	callq	_UPPER_HALF
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movq	_MP_ZPOS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, (%rdi)
	callq	_CLAMP
	movl	$1, %r12d
LBB0_5:
	movl	%r12d, %eax
	addq	$24, %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
	.comm	_MP_DIGIT_MAX,8,3               ## @MP_DIGIT_MAX
	.comm	_MP_ZPOS,4,2                    ## @MP_ZPOS
	.no_dead_strip	_s_qsub
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s_qsub
_s_qsub:                                ; @s_qsub
	.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	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _MP_DIGIT_BIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MP_DIGIT_BIT@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
	udiv	w25, w1, w24
	add	w1, w25, #1
	bl	_s_pad
	cbz	w0, LBB0_6
; %bb.1:
	msub	w8, w25, w24, w21
	mov	w9, #1
	lsl	w22, w9, w8
	mov	x0, x19
	bl	_MP_DIGITS
	mov	x20, x0
Lloh3:
	adrp	x23, _MP_DIGIT_MAX@GOTPAGE
Lloh4:
	ldr	x23, [x23, _MP_DIGIT_MAX@GOTPAGEOFF]
	cmp	w24, w21
	b.ls	LBB0_3
; %bb.2:
	mov	w8, #0
	b	LBB0_5
LBB0_3:
	mov	w8, #0
	mov	w24, #0
	cmp	w25, #1
	csinc	w25, w25, wzr, hi
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x23]
	ldr	w10, [x20]
	add	w8, w8, w9
	sub	w8, w8, w10
	add	w21, w8, #1
	mov	x0, x21
	bl	_LOWER_HALF
	str	w0, [x20], #4
	mov	x0, x21
	bl	_UPPER_HALF
	cmp	x0, #0
	csetm	w8, eq
	add	w24, w24, #1
	cmp	w24, w25
	b.ne	LBB0_4
LBB0_5:
	ldr	w9, [x23]
	ldr	w10, [x20]
	add	w8, w22, w8
	add	w8, w8, w9
	sub	w8, w8, w10
	add	w21, w8, #1
	mov	x0, x21
	bl	_LOWER_HALF
	str	w0, [x20]
	mov	x0, x21
	bl	_UPPER_HALF
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
Lloh5:
	adrp	x8, _MP_ZPOS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MP_ZPOS@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x19]
	mov	x0, x19
	bl	_CLAMP
	mov	w0, #1
LBB0_6:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MP_DIGIT_BIT,4,2               ; @MP_DIGIT_BIT
	.comm	_MP_DIGIT_MAX,8,3               ; @MP_DIGIT_MAX
	.comm	_MP_ZPOS,4,2                    ; @MP_ZPOS
	.no_dead_strip	_s_qsub
.subsections_via_symbols
