	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s_reduce
_s_reduce:                              ## @s_reduce
	.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	%r8d, -56(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r13d
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	%esi, %r12d
	movl	%edi, %ebx
	movl	%esi, %edi
	callq	_MP_USED
	movl	%eax, %r14d
	movq	_MP_DIGIT_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	movl	%r13d, %esi
	callq	_mp_int_copy
	movq	_MP_OK@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.1:
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	leal	1(%r14), %r12d
	imull	%r15d, %r12d
	decl	%r14d
	imull	%r15d, %r14d
	movl	%r13d, %edi
	movl	%r14d, %esi
	callq	_s_qdiv
	movl	%r13d, %edi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	-56(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edx
	callq	_UMUL
	movl	%ebx, %edi
	movl	%r12d, %esi
	callq	_s_qdiv
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edi
	movl	%r12d, %esi
	callq	_s_qmod
	movl	%ebx, %edi
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %esi
	movl	%r13d, %edx
	callq	_UMUL
	movl	%r13d, %edi
	movl	%r12d, %esi
	callq	_s_qmod
	movl	%r15d, %edi
	movl	%r13d, %esi
	movl	%r15d, %edx
	callq	_mp_int_sub
	movl	%r15d, %edi
	callq	_CMPZ
	testq	%rax, %rax
	jns	LBB0_3
## %bb.2:
	movl	%r15d, %edi
	movl	%r12d, %esi
	callq	_s_qsub
	xorl	%edx, %edx
	testl	%eax, %eax
	je	LBB0_7
LBB0_3:
	movl	%r15d, %edi
	movl	%r14d, %esi
	callq	_mp_int_compare
	movl	$1, %edx
	testq	%rax, %rax
	js	LBB0_7
## %bb.4:
	movl	%r15d, %edi
	movl	%r14d, %esi
	movl	%r15d, %edx
	callq	_mp_int_sub
	movl	%r15d, %edi
	movl	%r14d, %esi
	callq	_mp_int_compare
	testq	%rax, %rax
	js	LBB0_6
## %bb.5:
	movl	%r15d, %edi
	movl	%r14d, %esi
	movl	%r15d, %edx
	callq	_mp_int_sub
LBB0_6:
	movl	$1, %edx
LBB0_7:
	movl	%edx, %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_OK,8,3                      ## @MP_OK
	.no_dead_strip	_s_reduce
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s_reduce
_s_reduce:                              ; @s_reduce
	.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	x23, x4
	mov	x21, x3
	mov	x24, x2
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_MP_USED
	mov	x25, x0
Lloh0:
	adrp	x8, _MP_DIGIT_BIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MP_DIGIT_BIT@GOTPAGEOFF]
Lloh2:
	ldr	w26, [x8]
	mov	x0, x19
	mov	x1, x21
	bl	_mp_int_copy
Lloh3:
	adrp	x8, _MP_OK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MP_OK@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.1:
	madd	w22, w26, w25, w26
	sub	w8, w25, #1
	mul	w1, w8, w26
	mov	x0, x21
	bl	_s_qdiv
	mov	x0, x21
	mov	x1, x24
	mov	x2, x23
	bl	_UMUL
	mov	x0, x23
	mov	x1, x22
	bl	_s_qdiv
	mov	x0, x19
	mov	x1, x22
	bl	_s_qmod
	mov	x0, x23
	mov	x1, x20
	mov	x2, x21
	bl	_UMUL
	mov	x0, x21
	mov	x1, x22
	bl	_s_qmod
	mov	x0, x19
	mov	x1, x21
	mov	x2, x19
	bl	_mp_int_sub
	mov	x0, x19
	bl	_CMPZ
	tbz	x0, #63, LBB0_3
; %bb.2:
	mov	x0, x19
	mov	x1, x22
	bl	_s_qsub
	cbz	w0, LBB0_8
LBB0_3:
	mov	x0, x19
	mov	x1, x20
	bl	_mp_int_compare
	tbnz	x0, #63, LBB0_6
; %bb.4:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x19
	bl	_mp_int_sub
	mov	x0, x19
	mov	x1, x20
	bl	_mp_int_compare
	tbnz	x0, #63, LBB0_6
; %bb.5:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x19
	bl	_mp_int_sub
LBB0_6:
	mov	w0, #1
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MP_DIGIT_BIT,4,2               ; @MP_DIGIT_BIT
	.comm	_MP_OK,8,3                      ; @MP_OK
	.no_dead_strip	_s_reduce
.subsections_via_symbols
